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

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

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


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

 Copyright Google LLC All Rights Reserved.

 Use of this source code is governed by an MIT-style license that can be
 found in the LICENSE file at https://angular.dev/license
*/
/*

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

 -----------------------------------------------------------------------------
 Ported from zlib, which is under the following license
 https://github.com/madler/zlib/blob/master/zlib.h

 zlib.h -- interface of the 'zlib' general purpose compression library
   version 1.2.8, April 28th, 2013
   Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler
   This software is provided 'as-is', without any express or implied
   warranty.  In no event will the authors be held liable for any damages
   arising from the use of this software.
   Permission is granted to anyone to use this software for any purpose,
   including commercial applications, and to alter it and redistribute it
   freely, subject to the following restrictions:
   1. The origin of this software must not be misrepresented; you must not
      claim that you wrote the original software. If you use this software
      in a product, an acknowledgment in the product documentation would be
      appreciated but is not required.
   2. Altered source versions must be plainly marked as such, and must not be
      misrepresented as being the original software.
   3. This notice may not be removed or altered from any source distribution.
   Jean-loup Gailly        Mark Adler
   jloup@gzip.org          madler@alumni.caltech.edu
   The data format used by the zlib library is described by RFCs (Request for
   Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950
   (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format).
*/
/*

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

 Use of this source code is governed by an MIT-style license that can be
 found in the LICENSE file at https://angular.io/license
*/
/*

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var oT,fNQ,GjN,B9,e1,gQV,dW,H9,qA,QN,e1T,bMW,YQ,z1M,R19,LM,h1K,PKQ,vQT,B7,iMK,HMM,$AM,rsV,jTx,h1,V$,im,qN,LxA,$X,kj1,rN,xX,s8,sTj,U8,A1,INx,As1,NWG,lm,ZMN,oo,t11,Gn,M1j,ge,uGj,WxG,oXG,x$,S8A,BNj,Go1,gX1,ejV,Ou,csW,QM,lNK,fvs,hjM,F6G,VmM,DZ,J19,Pm1,vXN,K6G,iiK,HiV,QgA,yM,jgG,xNM,L61,DNN,IvG,cO,BQ,UNG,MmT,e0,ZiK,y1G,uLQ,mz,av9,bd,dNG,XT,hr,VH,zX,Jr,lvV,W6M,c1T,id,fZj,o$1,SuK,GnV,Bex,rI,g$x,eBM,KX,m2A,zBM,E7,XOj,Fu1,nX,KuN,wO9,d2G,iY9,HYK,jos,Qo1,U7,pX,x2V,LuN,knW,IZj,NeQ,Wu9,ogQ,eDj,eZ,mkG,RDN,wc,TC,
F6,Po,vo,Y6,jZ,OQ,JrV,IP,vgV,iXx,uo,aP,q7j,co,lo,fQ,os,QOK,Y7A,rr9,jOs,OXQ,xkM,Egj,LzA,kX9,sO1,mr,eN,Dk9,IgN,UkW,pQN,CdN,Arj,Fz,M0N,VB,Jm,PV,vV,HV,t0x,qc,agQ,fas,QB,o6V,SQ1,BcN,rz,GCQ,g61,jN,OK,mb1,EK,Xoj,woW,LQ,Tcs,hXV,Fgj,VZs,JJN,PoG,sK,v6x,KgK,DE,dbx,iCW,Is,UK,pQ,Am,HCQ,$b9,qQN,Nc,YQN,rJj,jPT,ZE,uJ,as,yB,WV,cV,lJ,OC1,xbN,E6s,LgV,kCK,n6G,sPQ,DbN,IaQ,Ubx,Cos,o$,poA,AJs,GW,Nc1,er,bB,MZN,u6x,aaK,yJx,cJ9,lax,fEx,GTx,gdM,eK1,bQA,mcW,zKj,RKV,TzW,R$,Fr1,VN9,JmK,PJ1,vdj,Krj,iQQ,kTj,nd1,ssT,IE1,Ucs,Ko,CJs,
du,ZQM,tNN,uzK,aEV,ymA,WrG,cmj,lEj,Qq,ovM,NzW,SI9,BuN,GWj,gvV,eQN,boG,mvN,zQx,RQ1,hQK,wdN,Vrx,TuN,Fa1,vvs,KaQ,dvA,Jxj,Hox,PBx,$vN,Co,Q$Q,po,Nv,YIN,j$K,OoT,LaK,NuT,nvQ,kWN,Dvs,UvQ,s$Q,urN,ZoG,aM1,yxG,WaV,cx1,lM1,oAM,fL1,SbN,Bj1,GSV,gAA,bSx,zeK,ReG,Xv1,heT,wvG,$Rs,Wd,QKK,ra1,jKN,OSV,xRx,EAT,kSN,nAK,sKs,GS,gj,DR9,AaQ,zS,RK,tIM,u91,G1x,F9,bjW,m9K,wWN,Rv9,XWN,dj,hvW,x9N,L8Q,k1s,npQ,s0W,D9V,IxQ,U9x,pW1,Aj1,MpT,NAQ,uEV,Ob,LS,yjN,W8W,cjK,lxN,ft9,o5V,BgW,g5G,G8G,u5,yf,Wv,P0M,v5A,fj,dpN,iLK,o0,q6K,HLV,LCV,
k8A,n5N,Dpj,pfT,NgV,M9j,ZLW,t9G,atM,WCN,cA1,gA,SZV,g0G,ePA,bN1,mHN,zP1,GtA,o0s,fzT,bv,ltj,RPs,wL1,V7x,TOV,wA,PaK,KEG,dHN,iNK,HN9,Jj,qZM,Qy1,$HM,YZN,jyj,Kj,DHM,UH1,pLN,NOQ,HW,ZN1,QJ,rA,Yp,yYN,M7M,WEA,xp,oJ1,kp,GVA,bOT,z0A,R0A,XUx,I0,wU1,h09,TZN,VCQ,JyA,PPN,vJT,d7K,Cj,iON,HOW,Aj,Zx,QJV,Y4T,ryT,uv,x7M,EJ1,kVG,fL,CPV,pUN,Ay9,NZs,MCj,e9,mC,z8,WN1,Rj,cy9,lXW,f01,oH9,BCN,GMM,SUT,wg,e_V,m6V,hA,bgA,z_M,gHM,R_1,Fq,wDA,h_K,TCW,Fmx,JEj,VD1,Ps1,d6W,vHj,Hg9,jrQ,x6V,EHG,kM1,D6K,srQ,nHK,I01,CsT,AEA,pDN,MDN,Zg1,tD1,
uXj,a0V,rg,o2N,fcM,Sl1,B0N,O6,x5,G$N,eYA,mCA,XSG,hY9,wS1,Wf,T01,b_T,dCT,i_j,H_1,BL,qlG,QfN,jfV,E21,xCK,sfQ,DCG,Ics,UCM,pSx,tuN,ALT,MuT,Z_T,ujK,acT,WI1,yLN,lcW,cLA,Fl,fTM,SfN,BiW,bks,HL,qH,m5N,zSQ,$0,hSN,j7,OZ,x0,J2V,EZ,KjA,nN,d5V,ik9,HkT,qfx,Iy,$5W,Yfs,r2K,Ok1,Ec1,ncN,D51,yP,ITM,U59,CTV,pZV,A2W,Nix,Me1,Zkj,la,aTQ,y2j,Wj9,c21,lTN,fuQ,oTN,SLN,BhG,GZK,gTT,eLG,b2s,bP,vT9,KUT,mN,zV,RJ,dEQ,i2G,H2W,qLV,$EM,QDx,YLN,ETN,LUW,kZN,nTV,sDs,TV,Vd,Jy,PU,dZ,iP,HU,IuT,$J,CWs,rZ,pKW,Afx,jC,NhN,MwG,Z2V,orW,B9j,mzj,
w2Q,X2W,SAN,hxV,Vfs,OJQ,iJT,nrT,qAM,kcG,scN,nO,IKQ,DX,CC1,p2N,N9T,MfA,ZJA,uVW,CO,yRN,WWW,cRj,lKW,fUj,oGV,St1,aK1,gGW,e7j,bnQ,Ay,h7Q,T3G,wtj,VaK,JKN,vG1,KdQ,Ptx,YtW,jeK,xox,LdK,lP,UoA,IUV,MaV,taT,u29,aU1,yKT,Wds,cK1,zM,bPx,zuK,gb1,GYN,mJj,fej,XFM,iPx,TvK,F91,VdM,EbQ,kYN,xJj,CuV,OPQ,lUW,UJA,huV,dJ1,L9K,RuM,SWG,obK,BvM,euQ,jlM,YH,SnN,Gi1,geG,e5T,bHs,VP1,iHs,HHj,Ir,$Bs,rZG,Ees,xBG,kiV,nex,DBA,UBj,IwK,CkK,y0,psW,AZ9,MPV,NRN,WD,WTG,yZG,awx,o8K,cZx,Sox,fdj,BmN,ls,GDj,m11,edx,b9Q,Rdj,hdN,BS,Vq1,TmW,J3s,d1Q,
i9K,$1T,YoT,bi,mI,x11,E8j,z$,Rf,Lys,Xj,w0,kDA,hL,n8Q,T$,sas,D1M,V3,IdQ,U1A,CF9,pwT,A3N,Mq1,NmM,tqM,y3W,adN,WyN,c3G,Z9x,ldj,SRM,oKA,ud9,BbG,GGK,d0,gKM,bFN,e$K,mlA,z$x,X8Q,R$T,w8T,HS,TbA,FsG,h$x,JD1,Pxx,vKj,HF9,YRV,EKT,s8W,qC,UlT,Cx1,$2,p8V,ju,Ol,u$W,Y2,L_,aPs,yDM,cDV,lPT,oVQ,B5x,GNG,gVG,eoN,zo1,T5N,we1,mVx,FvK,V3N,Dc,hoj,Jp1,C_,P1K,vVQ,KvK,dVx,$V1,iyA,qCW,jYN,Oy9,nVW,kNN,IpT,M3K,Zyx,u8j,ypj,WvW,lpQ,fW1,ojV,BL9,Gq1,gjN,m_s,wY9,hFN,zFs,FZN,J9j,VOW,TLV,PGK,KZV,d_1,izx,Hzs,qyN,fk,o4,Gl,ee,YyA,r9x,Ozs,
LZj,bT,mj,kq1,zl,D_V,IWN,U_K,Xv,MOA,aWW,WZ1,c91,lWM,fIM,oWQ,Gd9,h2,gWM,ma1,Tl,zhs,w_1,hhj,Tpj,X_x,KGM,H4M,daM,qHN,YHA,jmG,xas,nWQ,kd1,UaG,vZ,ChN,p_W,Kk,A$A,di,NpN,MTK,Z4K,uxT,tTV,aI9,y$N,WGs,c$M,gUW,bb9,z21,mFW,SJ9,f$W,XqQ,h2x,P41,vUN,ib1,rex,ObN,$c,xFK,LRQ,k4Q,sF1,C4V,N89,ts1,ua1,a$A,yes,ooK,WRK,goG,erN,mMs,ri,Rrs,XEj,wE1,hrQ,TX1,F5s,VAx,PXV,voN,Ef,K51,dMM,H8W,kc,i81,$Mj,jtA,DT,O81,xM1,EoA,noW,stK,L5x,I29,AqN,NXG,MA1,M5,Z8N,yqN,W5N,a4,fRQ,cqK,l2N,SEV,Ga1,g_G,zc1,wzW,XzG,Rcs,hcj,Fbj,Vzx,di1,JVV,iuj,
qEK,Huj,OuW,LbV,n_N,DiK,pzG,aRx,Wb1,cVW,ScM,G6Q,xT,C2,RC1,TFW,hCK,VnA,J_Q,v9Q,P6x,KnM,dsN,p2,zxx,Xy1,Fn9,wyG,ID,qc1,$sT,QNT,YcN,r_N,jNN,OTj,xsG,lW,E9j,oc,LnA,k6V,n9V,sN9,Gc,DsN,C61,A_W,NF1,WnV,l7W,f9s,oRM,B1Q,Gw1,hR,ezV,bsM,mIj,zzs,RzV,XG1,hzN,Fw1,JoN,P8V,qeA,is9,$I1,roW,jHs,KJ,Oss,xI9,ERx,nRM,DIN,sHG,UI9,PHN,qz,Kps,dxA,vms,idM,HdK,$xG,YdV,QVG,r5K,qdT,jVN,OdN,xxN,EmK,LpN,keK,nmG,sV9,Dxx,CHG,UxN,puN,NxK,A5K,$r,Mxx,uYK,c59,ZdW,l6T,fSN,ofx,S2j,nJ,X1A,w1x,TU1,FkN,Ic,vfM,HWM,$GN,UA,jR9,rvG,OWM,AR,xGN,
EfV,LkT,nfK,sR1,DGx,ISQ,Ce1,p1A,cvG,u1W,yvx,frT,lSs,oZG,SXV,GEQ,efs,mwW,RfT,KiN,HDG,$wN,QhV,YX1,r0Q,jh1,xwQ,EZN,nZG,sh9,Dw1,Irj,Uwj,CON,pnK,A0N,ZD1,y0G,Bt,GF,g3,ea,Wi9,zF,lrQ,mm1,TQ1,w4W,O5M,xmQ,EkM,okQ,b5M,Gbs,kbM,nkW,svQ,RHs,ICG,C_N,AiW,Z5T,tj1,qo,YG,r3,ff1,lC1,G71,gNW,TP1,Vy1,P3N,vNM,iVQ,q0j,HVK,Y01,j5A,s51,k7W,xfx,nNQ,ENK,Dfx,plA,No,W$N,uDK,lfQ,fV1,SkM,BDN,ZU,GJA,bRV,z9G,R9M,wX1,XXG,ae,PEM,ol,K4s,dr1,BF,iR9,HRW,qkW,$r1,QuN,Ykx,rlQ,jux,OR1,xrM,EPT,L49,kJA,nP1,suT,GY,Dr9,IVV,UrV,CE1,pXW,Al9,NDx,
MtN,ZRK,ttV,usx,aV1,ed,W41,lVV,oqN,G5G,bfK,mjM,ziT,X0M,hiW,TEQ,FXQ,TY,KX9,Prs,djW,ifT,HfK,Q_N,YiN,rg1,OfM,Qg,EqG,qJ,k59,nq1,Yb,s_Q,DjQ,I3W,UjV,jd,NEW,ZfV,WXG,ygV,l3Q,fy1,sW,oaM,Srx,G0N,eEA,btx,zEj,REs,gaQ,XxM,VL1,KYK,duK,De,itK,Ht1,rHs,qrV,QA1,YrW,k0N,OtA,naN,DuG,UuG,CQT,pxA,AHx,Nns,MLj,tLK,utQ,ay9,yHW,WYG,lyQ,oMG,Gf1,my1,XmM,hRN,VcN,MJ,JkT,Pb1,vMx,K_Q,dyA,Hps,qwM,$yx,QCA,YwA,rkN,jCG,OpA,xyT,EM1,L_A,nMV,kfV,IDG,CbM,uu,pmG,McT,NKK,yg,u0M,aD1,ykW,lDK,Sq1,onW,ckN,gn9,Gu9,RJT,eJG,SP,mSA,JSW,hJM,TMT,F01,
VQ9,PcW,K0W,vn1,Bs,Gi,YqN,iIM,Q6x,$ST,HIx,qq9,OIN,EnQ,kuK,L0s,IHs,DSA,pHW,ASK,MQV,ZI9,NM1,tQs,aH1,uf1,W0N,fJ1,wR,owN,S$G,gw1,RtG,Vox,Ti,PY1,ixW,QzN,$DN,HxW,q$Q,vs,Oxj,Y$T,r7G,xD9,LD9,Ewj,szx,DD9,UDQ,CYs,pJj,A7K,Naj,ZxN,to9,En,aJV,ke,y7s,fGx,oY1,IS,Sa1,Gs1,hZW,NB,mLQ,wIN,zZN,RZG,J6W,PgK,V6W,vYN,K7A,qa1,dLs,$LT,QM1,Zw,r6V,jMG,Ocj,Ya1,aS,xLM,tZ,nYT,A6N,NS1,M61,ZcW,t6T,u4j,c69,y69,W71,aGN,fiK,BtA,eWV,bwT,zWN,wCs,RWW,XCx,hWj,FSQ,Vh1,J4W,PRj,v4K,KSN,iwx,Bw,Hwj,QbV,$Tj,r4Q,YmT,jbQ,OwW,xTW,GD,LSN,MhT,A4K,
uBs,ai1,oCQ,SNK,BdM,GyM,gCs,ebW,zbW,RbK,X5G,w5x,Fq1,V5G,JwA,P7V,vCx,KqW,dtN,i39,H3T,qN9,Q2s,YN9,rwT,xt1,LqT,DtT,s2V,nCV,ky1,p5V,Ut1,Ndx,Z3s,t5A,uNj,Hw,alK,ywx,WqK,oss,cw9,SBQ,llW,BoM,rm,GUN,gsx,eyN,f_K,bl9,wMx,Tos,hys,x8,FtG,VKW,JU1,Pj1,vsN,KtK,ils,HlT,qBs,$hG,rUK,YBA,LtV,QBW,L9,kUs,jBs,Es9,DhK,UhN,MKN,AUQ,NoT,pMK,CjQ,C9,Zls,upQ,a_N,yUj,WtW,cUj,B_T,f5K,l_9,oOK,T_T,wNQ,S3N,XNs,dnx,i0j,H0s,q39,$nj,Qx1,Y3T,rFM,xnN,LB1,nO1,Dn1,I5Q,UnG,N_G,AF9,MBV,tBW,bx,yF9,WBN,cF9,l51,zG,R8,SpN,glG,Xc1,FL1,VSG,JuK,PSQ,
vlW,KL9,ir1,qpT,HrN,$WN,YpV,ruA,jwN,OrK,xWA,Els,F$,LLQ,CSN,pcW,DWj,swA,UWG,InT,yus,tSQ,P8,WLW,cuK,lnM,fB1,o3j,Sh1,B6G,Gpj,g31,bmG,zgQ,XgG,hgx,FfT,v3s,Kf1,d8s,qhx,Hmx,imW,$8K,QU9,rMN,jU1,OmQ,x8N,ql,LfK,kpA,n3Q,D8Q,sUx,IBA,CV9,N6V,MlG,ZmG,tlN,uiN,Wfx,cMN,aBx,yMx,gyN,eA9,m49,bGT,zAQ,wpN,hAA,TVG,F29,JGK,V8x,vy1,$4A,q11,Y11,rGQ,jdK,kIM,nyV,sds,D4s,C$V,ppx,M8V,t8G,ZG9,uZj,Nl,aQx,yGT,W2V,cG1,SMx,oF9,BJM,Gv1,esN,bEN,RsK,wTK,hsV,TJj,FFA,V4A,JP1,PMN,vF1,KFW,d3N,HEN,iET,qM1,$3K,Q7Q,YMK,rPG,j7N,OEW,EFj,LFA,x3j,
W8,s7W,D3N,Ijs,U3M,CMK,APQ,ZEN,t41,uPW,aj1,yPN,WFx,ljG,fos,SGN,GAx,eIM,RI1,mqQ,beW,zIA,XbG,wbx,hIK,VYK,Jnx,PLW,KeT,dqM,ieA,He1,$q1,YGQ,qG1,rnV,jnW,OeA,xqs,Exs,Le1,nxA,kAW,snT,DqT,Ioj,Uqs,AnN,NyN,MY1,ZeV,tYs,uQG,WeN,cnQ,ao1,ynW,SSG,B7j,zN,mUV,zTN,X3x,T7j,hTx,FV1,V$N,RY,F8,PwK,vtT,Pe,ve,H6M,KVN,dUW,QEV,jEM,xUN,EtN,LVG,k3W,ntQ,DUs,IFV,UUj,Cw1,p31,AI1,N7x,i1,M$9,Z6N,qV,t$j,u5M,aFj,yIW,WVW,cIN,YV,r5,lFN,fOQ,j3,oSG,SDx,BfQ,GOj,elN,bU1,zlW,TfT,hls,wax,FlK,VHK,iUM,vSM,Kls,PN1,dZN,xV,$Z1,QZG,YD9,rzV,jZN,xZN,
nSW,LlQ,EC,ESN,CNK,Azx,Nfs,MH9,ZUW,tHG,aON,yzj,WlM,czK,f8T,ohj,SP1,Gg1,gh9,b$T,mdV,h4N,FOM,TrV,JCG,i$x,H$G,qPA,$dQ,YP1,O$A,IY,Cy,UC,xdG,Eh1,LO1,kgj,sq1,Ddx,I8N,UdT,pj9,NrG,MVG,Z$s,py,tV1,a8Q,yCG,WO1,f4Q,oz1,Ap,NV,GP1,Sz1,bax,gz1,mQx,Zp,RON,XRx,TTW,Vij,tp,PUs,vzK,KhQ,dQ9,iaW,HaK,qzG,QiQ,OaM,xQV,kPW,Ezs,LhM,nzj,UQA,siW,I4x,CUQ,pRM,AT9,ZaW,tix,ueT,a4N,yTQ,S_9,oIK,mgG,XPs,SO,wPN,YbQ,hNM,TsM,VMK,PIT,vIj,Q9j,Y_W,bG,rbA,j9T,O7N,EIV,LP9,nI1,DgT,kmN,s9T,UgQ,IsW,Nsj,pPN,MMW,Z71,tMG,ukG,as9,WPT,ybV,oBW,G_W,
S9j,gBW,eqN,b1j,Xg,mK1,zqV,h9,Xis,RqQ,wiQ,hqG,F1V,VUx,PqG,vBQ,K11,dKj,i1s,$KQ,rcQ,xKN,O1s,EBT,L1j,sGs,tUG,CqG,aqQ,ycQ,cc9,lqM,B$K,e3W,me1,z3M,R3j,wBK,h3N,T$j,FAV,VvM,J8N,PnN,KAA,HvN,qFA,$e1,Q1V,j1s,r8M,LA9,kkV,nDN,pBK,UeN,A81,N$V,Mvx,tvs,Oy,aYK,sy,WAj,lYG,f1x,giM,bK9,X61,haV,TBK,V_Q,JNK,PA1,K31,iK1,HKs,$0j,rNK,YxW,QLs,pz,OKM,jLN,x0T,Ei9,L3K,kQV,niM,sLj,D0W,U09,CAj,p61,ANT,NBG,M_V,ZK9,t_G,uyA,yN1,W39,guT,e8V,bhN,mPQ,z8Q,w$j,aQ,PZG,vu1,KMV,dPK,ihT,yG,WY,aK,cY,om,OhW,kxG,s3M,nuN,ST,DPN,IkQ,NIN;
_.fM=function(f,S){if(Error.captureStackTrace)Error.captureStackTrace(this,_.fM);else{var B=Error().stack;B&&(this.stack=B)}f&&(this.message=String(f));S!==void 0&&(this.cause=S)};
oT=function(){throw Error("B");};
fNQ=function(f,S){S=String.fromCharCode.apply(null,S);return f==null?S:f+S};
GjN=function(f){var S=!1;S=S===void 0?!1:S;if(oQQ){if(S&&(SVN?!f.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(f)))throw Error("C");f=(BWN||(BWN=new TextEncoder)).encode(f)}else{for(var B=0,G=new Uint8Array(3*f.length),g=0;g<f.length;g++){var b=f.charCodeAt(g);if(b<128)G[B++]=b;else{if(b<2048)G[B++]=b>>6|192;else{if(b>=55296&&b<=57343){if(b<=56319&&g<f.length){var z=f.charCodeAt(++g);if(z>=56320&&z<=57343){b=(b-55296)*1024+z-56320+65536;G[B++]=b>>18|
240;G[B++]=b>>12&63|128;G[B++]=b>>6&63|128;G[B++]=b&63|128;continue}else g--}if(S)throw Error("C");b=65533}G[B++]=b>>12|224;G[B++]=b>>6&63|128}G[B++]=b&63|128}}f=B===G.length?G:G.subarray(0,B)}return f};
B9=function(f){_.S1.setTimeout(function(){throw f;},0)};
_.Gj=function(f,S){return f.lastIndexOf(S,0)==0};
e1=function(f,S){var B=f.length-S.length;return B>=0&&f.indexOf(S,B)==B};
_.bK=function(f){return/^[\s\xa0]*$/.test(f)};
_.XG=function(f,S){return f.indexOf(S)!=-1};
_.wW=function(f,S){return _.XG(f.toLowerCase(),S.toLowerCase())};
_.FG=function(f,S){var B=0;f=hs(String(f)).split(".");S=hs(String(S)).split(".");for(var G=Math.max(f.length,S.length),g=0;B==0&&g<G;g++){var b=f[g]||"",z=S[g]||"";do{b=/(\d*)(\D*)(.*)/.exec(b)||["","","",""];z=/(\d*)(\D*)(.*)/.exec(z)||["","","",""];if(b[0].length==0&&z[0].length==0)break;B=gQV(b[1].length==0?0:parseInt(b[1],10),z[1].length==0?0:parseInt(z[1],10))||gQV(b[2].length==0,z[2].length==0)||gQV(b[2],z[2]);b=b[3];z=z[3]}while(B==0)}return B};
gQV=function(f,S){return f<S?-1:f>S?1:0};
_.Js=function(){var f=_.S1.navigator;return f&&(f=f.userAgent)?f:""};
dW=function(f){if(!P9||!v9)return!1;for(var S=0;S<v9.brands.length;S++){var B=v9.brands[S].brand;if(B&&_.XG(B,f))return!0}return!1};
H9=function(f){return _.XG(_.Js(),f)};
qA=function(){return P9?!!v9&&v9.brands.length>0:!1};
QN=function(){return qA()?!1:H9("Opera")};
e1T=function(){return qA()?!1:H9("Trident")||H9("MSIE")};
bMW=function(){return qA()?dW("Microsoft Edge"):H9("Edg/")};
YQ=function(){return H9("Firefox")||H9("FxiOS")};
_.EV=function(){return H9("Safari")&&!(_.xQ()||(qA()?0:H9("Coast"))||QN()||(qA()?0:H9("Edge"))||bMW()||(qA()?dW("Opera"):H9("OPR"))||YQ()||H9("Silk")||H9("Android"))};
_.xQ=function(){return qA()?dW("Chromium"):(H9("Chrome")||H9("CriOS"))&&!(qA()?0:H9("Edge"))||H9("Silk")};
_.mAx=function(){return H9("Android")&&!(_.xQ()||YQ()||QN()||H9("Silk"))};
z1M=function(f){var S={};f.forEach(function(B){S[B[0]]=B[1]});
return function(B){return S[B.find(function(G){return G in S})]||""}};
R19=function(f){var S=_.Js();if(f==="Internet Explorer"){if(e1T())if((f=/rv: *([\d\.]*)/.exec(S))&&f[1])S=f[1];else{f="";var B=/MSIE +([\d\.]+)/.exec(S);if(B&&B[1])if(S=/Trident\/(\d.\d)/.exec(S),B[1]=="7.0")if(S&&S[1])switch(S[1]){case "4.0":f="8.0";break;case "5.0":f="9.0";break;case "6.0":f="10.0";break;case "7.0":f="11.0"}else f="7.0";else f=B[1];S=f}else S="";return S}var G=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");B=[];for(var g;g=G.exec(S);)B.push([g[1],g[2],g[3]||void 0]);
S=z1M(B);switch(f){case "Opera":if(QN())return S(["Version","Opera"]);if(qA()?dW("Opera"):H9("OPR"))return S(["OPR"]);break;case "Microsoft Edge":if(qA()?0:H9("Edge"))return S(["Edge"]);if(bMW())return S(["Edg"]);break;case "Chromium":if(_.xQ())return S(["Chrome","CriOS","HeadlessChrome"])}return f==="Firefox"&&YQ()||f==="Safari"&&_.EV()||f==="Android Browser"&&_.mAx()||f==="Silk"&&H9("Silk")?(S=B[2])&&S[1]||"":""};
_.X91=function(f){if(qA()&&f!=="Silk"){var S=v9.brands.find(function(B){return B.brand===f});
if(!S||!S.version)return NaN;S=S.version.split(".")}else{S=R19(f);if(S==="")return NaN;S=S.split(".")}return S.length===0?NaN:Number(S[0])};
LM=function(){return P9?!!v9&&!!v9.platform:!1};
_.w9N=function(){return LM()?v9.platform==="Android":H9("Android")};
h1K=function(){return H9("iPhone")&&!H9("iPod")&&!H9("iPad")};
_.kQ=function(){return h1K()||H9("iPad")||H9("iPod")};
_.TWQ=function(){return LM()?v9.platform==="macOS":H9("Macintosh")};
_.FxN=function(){return LM()?v9.platform==="Windows":H9("Windows")};
_.V11=function(){return LM()?v9.platform==="Chrome OS":H9("CrOS")};
_.sV=function(f){return f[f.length-1]};
_.DN=function(f,S,B){S=_.JsN(f,S,B);return S<0?null:typeof f==="string"?f.charAt(S):f[S]};
_.JsN=function(f,S,B){for(var G=f.length,g=typeof f==="string"?f.split(""):f,b=0;b<G;b++)if(b in g&&S.call(B,g[b],b,f))return b;return-1};
PKQ=function(f){for(var S=_.IT,B=typeof f==="string"?f.split(""):f,G=f.length-1;G>=0;G--)if(G in B&&S.call(void 0,B[G],G,f))return G;return-1};
_.As=function(f,S){return _.CM(f,S)>=0};
_.ZN=function(f,S){_.As(f,S)||f.push(S)};
_.uK=function(f,S){S=_.CM(f,S);var B;(B=S>=0)&&_.ts(f,S);return B};
_.ts=function(f,S){Array.prototype.splice.call(f,S,1)};
_.aT=function(f){var S=f.length;if(S>0){for(var B=Array(S),G=0;G<S;G++)B[G]=f[G];return B}return[]};
_.c9=function(f,S){for(var B=1;B<arguments.length;B++){var G=arguments[B];if(_.W9(G)){var g=f.length||0,b=G.length||0;f.length=g+b;for(var z=0;z<b;z++)f[g+z]=G[z]}else f.push(G)}};
_.Kx1=function(f,S,B,G){Array.prototype.splice.apply(f,vQT(arguments,1))};
vQT=function(f,S,B){return arguments.length<=2?Array.prototype.slice.call(f,S):Array.prototype.slice.call(f,S,B)};
B7=function(f,S){S=S||f;for(var B=0,G=0,g={};G<f.length;){var b=f[G++],z=_.og(b)?"o"+_.Sm(b):(typeof b).charAt(0)+b;Object.prototype.hasOwnProperty.call(g,z)||(g[z]=!0,S[B++]=b)}S.length=B};
_.dAG=function(f,S,B){B=B||_.gN;for(var G=0,g=f.length,b;G<g;){var z=G+(g-G>>>1);var X=B(S,f[z]);X>0?G=z+1:(g=z,b=!X)}return b?G:-G-1};
_.m6=function(f,S,B){if(!_.W9(f)||!_.W9(S)||f.length!=S.length)return!1;var G=f.length;B=B||iMK;for(var g=0;g<G;g++)if(!B(f[g],S[g]))return!1;return!0};
_.gN=function(f,S){return f>S?1:f<S?-1:0};
iMK=function(f,S){return f===S};
HMM=function(f,S,B){S=Array.prototype.splice.call(f,S,1);Array.prototype.splice.call(f,B,0,S[0])};
$AM=function(f){return qV9[f]||""};
rsV=function(f){if(!QTG)return _.Rg(f);f=YVx.test(f)?f.replace(YVx,$AM):f;f=atob(f);for(var S=new Uint8Array(f.length),B=0;B<f.length;B++)S[B]=f.charCodeAt(B);return S};
jTx=function(f,S){f.__closure__error__context__984382||(f.__closure__error__context__984382={});f.__closure__error__context__984382.severity=S};
_.XL=function(f){f=Error(f);jTx(f,"warning");return f};
h1=function(f,S){if(f!=null){var B;var G=(B=OMN)!=null?B:OMN={};B=G[f]||0;B>=S||(G[f]=B+1,f=Error(),jTx(f,"incident"),B9(f))}};
V$=function(f,S,B){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(B===void 0?0:B)&&Symbol.for&&f?Symbol.for(f):f!=null?Symbol(f):Symbol():S};
im=function(f,S){Ki||_.dN in f||xAs(f,EQ1);f[_.dN]|=S};
qN=function(f,S){Ki||_.dN in f||xAs(f,EQ1);f[_.dN]=S};
LxA=function(f){if(4&f)return 512&f?512:1024&f?1024:0};
$X=function(f){im(f,34);return f};
kj1=function(f){im(f,32);return f};
rN=function(){return typeof BigInt==="function"};
xX=function(f,S){return S===void 0?f.copyOnWrite!==jm&&!!(2&(f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.dN]|0)):!!(2&S)&&f.copyOnWrite!==jm};
_.ni=function(f,S){if(f!=null)if(typeof f==="string")f=f?new E8(f,Li):_.kX();else if(f.constructor!==E8)if(nQV&&f!=null&&f instanceof Uint8Array)f=f.length?new E8(new Uint8Array(f),Li):_.kX();else{if(!S)throw Error();f=void 0}return f};
s8=function(f,S){if(typeof S!=="number"||S<0||S>=f.length)throw Error();};
sTj=function(f,S,B){var G=S&128?0:-1,g=f.length,b;if(b=!!g)b=f[g-1],b=b!=null&&typeof b==="object"&&b.constructor===Object;var z=g+(b?-1:0);for(S=S&128?1:0;S<z;S++)B(S-G,f[S]);if(b){f=f[g-1];for(var X in f)!isNaN(X)&&B(+X,f[X])}};
U8=function(f){return f&128?Dv:void 0};
A1=function(f){f.isGuard_doNotManuallySetPrettyPlease=!0;return f};
INx=function(){var f=DAN;return A1(function(S){for(var B in f)if(S===f[B]&&!/^[0-9]+$/.test(B))return!0;return!1})};
_.Zv=function(f){var S=f;if(UAG(S)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(S))throw Error(String(S));}else if(CK1(S)&&!Number.isSafeInteger(S))throw Error(String(S));return MN?BigInt(f):f=p9K(f)?f?"1":"0":UAG(f)?f.trim()||"0":String(f)};
As1=function(f,S){if(f.length>S.length)return!1;if(f.length<S.length||f===S)return!0;for(var B=0;B<f.length;B++){var G=f[B],g=S[B];if(G>g)return!1;if(G<g)return!0}};
NWG=function(f){var S=f>>>0;ag=S;y$=(f-S)/4294967296>>>0};
lm=function(f){if(f<0){NWG(-f);var S=_.m(M1j(ag,y$));f=S.next().value;S=S.next().value;ag=f>>>0;y$=S>>>0}else NWG(f)};
ZMN=function(f,S){var B=S*4294967296+(f>>>0);return Number.isSafeInteger(B)?B:_.fY(f,S)};
oo=function(f,S){var B=S&2147483648;B&&(f=~f+1>>>0,S=~S>>>0,f==0&&(S=S+1>>>0));f=ZMN(f,S);return typeof f==="number"?B?-f:f:B?"-"+f:f};
_.fY=function(f,S){S>>>=0;f>>>=0;if(S<=2097151)var B=""+(4294967296*S+f);else rN()?B=""+(BigInt(S)<<BigInt(32)|BigInt(f)):(B=(f>>>24|S<<8)&16777215,S=S>>16&65535,f=(f&16777215)+B*6777216+S*6710656,B+=S*8147497,S*=2,f>=1E7&&(B+=f/1E7>>>0,f%=1E7),B>=1E7&&(S+=B/1E7>>>0,B%=1E7),B=S+t11(B)+t11(f));return B};
t11=function(f){f=String(f);return"0000000".slice(f.length)+f};
_.S2=function(f,S){S&2147483648?rN()?f=""+(BigInt(S|0)<<BigInt(32)|BigInt(f>>>0)):(S=_.m(M1j(f,S)),f=S.next().value,S=S.next().value,f="-"+_.fY(f,S)):f=_.fY(f,S);return f};
Gn=function(f){if(f.length<16)lm(Number(f));else if(rN())f=BigInt(f),ag=Number(f&BigInt(4294967295))>>>0,y$=Number(f>>BigInt(32)&BigInt(4294967295));else{var S=+(f[0]==="-");y$=ag=0;for(var B=f.length,G=S,g=(B-S)%6+S;g<=B;G=g,g+=6)G=Number(f.slice(G,g)),y$*=1E6,ag=ag*1E6+G,ag>=4294967296&&(y$+=Math.trunc(ag/4294967296),y$>>>=0,ag>>>=0);S&&(S=_.m(M1j(ag,y$)),f=S.next().value,S=S.next().value,ag=f,y$=S)}};
M1j=function(f,S){S=~S;f?f=~f+1:S+=1;return[f,S]};
ge=function(f){return Array.prototype.slice.call(f)};
_.mu=function(f,S){throw Error(S===void 0?"unexpected value "+f+"!":S);};
_.zn=function(f){if(f!=null&&typeof f!=="number")throw Error("I`"+typeof f+"`"+f);return f};
_.Ro=function(f){if(f==null||typeof f==="number")return f;if(f==="NaN"||f==="Infinity"||f==="-Infinity")return Number(f)};
uGj=function(f){if(f!=null&&typeof f!=="boolean")throw Error("J`"+_.Xu(f)+"`"+f);return f};
_.aN9=function(f){if(f==null||typeof f==="boolean")return f;if(typeof f==="number")return!!f};
_.PO=function(f){switch(typeof f){case "bigint":return!0;case "number":return Fu(f);case "string":return ysK.test(f);default:return!1}};
_.de=function(f){if(!Fu(f))throw _.XL("enum");return f|0};
_.iz=function(f){return f==null?f:Fu(f)?f|0:void 0};
WxG=function(f){if(typeof f!=="number")throw _.XL("int32");if(!Fu(f))throw _.XL("int32");return f|0};
_.HO=function(f){return f==null?f:WxG(f)};
_.q2=function(f){if(f==null)return f;if(typeof f==="string"&&f)f=+f;else if(typeof f!=="number")return;return Fu(f)?f|0:void 0};
_.$$=function(f){if(f==null)return f;if(typeof f==="string"&&f)f=+f;else if(typeof f!=="number")return;return Fu(f)?f>>>0:void 0};
oXG=function(f){var S=0;S=S===void 0?0:S;if(!_.PO(f))throw _.XL("int64");var B=typeof f;switch(S){case 512:switch(B){case "string":return QM(f);case "bigint":return String(j2(64,f));default:return csW(f)}case 1024:switch(B){case "string":return lNK(f);case "bigint":return _.Zv(j2(64,f));default:return fvs(f)}case 0:switch(B){case "string":return QM(f);case "bigint":return _.Zv(j2(64,f));default:return Ou(f)}default:return _.mu(S,"Unknown format requested type for int64")}};
x$=function(f){return f==null?f:oXG(f)};
S8A=function(f){if(f[0]==="-")return!1;var S=f.length;return S<20?!0:S===20&&Number(f.substring(0,6))<184467};
BNj=function(f){var S=f.length;return f[0]==="-"?S<20?!0:S===20&&Number(f.substring(0,7))>-922337:S<19?!0:S===19&&Number(f.substring(0,6))<922337};
Go1=function(f){if(f<0){lm(f);var S=_.fY(ag,y$);f=Number(S);return Eu(f)?f:S}S=String(f);if(S8A(S))return S;lm(f);return ZMN(ag,y$)};
gX1=function(f){if(BNj(f))return f;Gn(f);return _.S2(ag,y$)};
ejV=function(f){if(S8A(f))return f;Gn(f);return _.fY(ag,y$)};
Ou=function(f){f=LY(f);Eu(f)||(lm(f),f=oo(ag,y$));return f};
_.bi1=function(f){f=LY(f);return f>=0&&Eu(f)?f:Go1(f)};
csW=function(f){f=LY(f);if(Eu(f))f=String(f);else{var S=String(f);BNj(S)?f=S:(lm(f),f=_.S2(ag,y$))}return f};
_.mNW=function(f){f=LY(f);if(f>=0&&Eu(f))f=String(f);else{var S=String(f);S8A(S)?f=S:(lm(f),f=_.fY(ag,y$))}return f};
QM=function(f){var S=LY(Number(f));if(Eu(S))return String(S);S=f.indexOf(".");S!==-1&&(f=f.substring(0,S));return gX1(f)};
lNK=function(f){var S=LY(Number(f));if(Eu(S))return _.Zv(S);S=f.indexOf(".");S!==-1&&(f=f.substring(0,S));return rN()?_.Zv(j2(64,BigInt(f))):_.Zv(gX1(f))};
fvs=function(f){return Eu(f)?_.Zv(Ou(f)):_.Zv(csW(f))};
_.zjN=function(f){return Eu(f)?_.Zv(_.bi1(f)):_.Zv(_.mNW(f))};
_.Rj1=function(f){var S=LY(Number(f));if(Eu(S)&&S>=0)return String(S);S=f.indexOf(".");S!==-1&&(f=f.substring(0,S));return ejV(f)};
_.X7x=function(f){var S=LY(Number(f));if(Eu(S)&&S>=0)return _.Zv(S);S=f.indexOf(".");S!==-1&&(f=f.substring(0,S));return rN()?_.Zv((0,_.k$)(64,BigInt(f))):_.Zv(ejV(f))};
_.w7W=function(f){if(f==null)return f;if(typeof f==="bigint")return nY(f)?f=Number(f):(f=j2(64,f),f=nY(f)?Number(f):String(f)),f;if(_.PO(f))return typeof f==="number"?Ou(f):QM(f)};
hjM=function(f,S){S=S===void 0?!1:S;var B=typeof f;if(f==null)return f;if(B==="bigint")return String(j2(64,f));if(_.PO(f))return B==="string"?QM(f):S?csW(f):Ou(f)};
_.TNT=function(f){var S=typeof f;if(f==null)return f;if(S==="bigint")return _.Zv(j2(64,f));if(_.PO(f))return S==="string"?lNK(f):fvs(f)};
F6G=function(f){if(f==null)return f;var S=typeof f;if(S==="bigint")return String(j2(64,f));if(_.PO(f)){if(S==="string")return QM(f);if(S==="number")return Ou(f)}};
VmM=function(f){if(f==null)return f;var S=typeof f;if(S==="bigint")return String((0,_.k$)(64,f));if(_.PO(f)){if(S==="string")return _.Rj1(f);if(S==="number")return _.bi1(f)}};
_.su=function(f){if(typeof f!=="string")throw Error();return f};
DZ=function(f){if(f!=null&&typeof f!=="string")throw Error();return f};
_.CY=function(f){return f==null||typeof f==="string"?f:void 0};
J19=function(f,S,B,G){if(f!=null&&f[pY]===AX)return f;if(!Array.isArray(f))return B?G&2?((f=S[N2])||(f=new S,$X(f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),f=S[N2]=f),S=f):S=new S:S=void 0,S;B=f[_.dN]|0;G=B|G&32|G&2;G!==B&&qN(f,G);return new S(f)};
Pm1=function(f,S,B){f=S?WxG(f):_.q2(f);return f==null?B?0:void 0:f|0};
vXN=function(f){return f};
K6G=function(f){return f};
iiK=function(f,S,B,G,g,b){f=J19(f,G,B,b);g&&(f=dNG(f));return f};
HiV=function(f){return[f,this.get(f)]};
QgA=function(){return q8T||(q8T=new M2($X([]),void 0,void 0,void 0,$NN))};
yM=function(f){var S=ZZ(tX);return S?f[S]:void 0};
jgG=function(f,S){var B=B===void 0?!1:B;if(ZZ(Y8Q)&&ZZ(tX)&&void 0===Y8Q){var G=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=G[tX];if(!g)return;if(g=g.reviveUnknownFields)try{g(G,S,r1W);return}catch(b){B9(b)}}B&&(f=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(B=ZZ(tX))&&B in f&&(f=f[B])&&delete f[S])};
xNM=function(f,S){var B=ZZ(tX),G;Ki&&B&&((G=f[B])==null?void 0:G[S])!=null&&h1(OiK,3)};
L61=function(f,S){S<100||h1(EXG,1)};
DNN=function(f,S,B,G){var g=G!==void 0;G=!!G;var b=ZZ(tX),z;!g&&Ki&&b&&(z=f[b])&&WO(z,L61);b=[];var X=f.length;z=4294967295;var w=!1,F=!!(S&64),V=F?S&128?0:-1:void 0;if(!(S&1)){var J=X&&f[X-1];J!=null&&typeof J==="object"&&J.constructor===Object?(X--,z=X):J=void 0;if(F&&!(S&128)&&!g){w=!0;var P;z=((P=koW)!=null?P:vXN)(z-V,V,f,J,void 0)+V}}S=void 0;for(P=0;P<X;P++){var d=f[P];if(d!=null&&(d=B(d,G))!=null)if(F&&P>=z){var Q=P-V,x=void 0;((x=S)!=null?x:S={})[Q]=d}else b[P]=d}if(J)for(var E in J)X=J[E],
X!=null&&(X=B(X,G))!=null&&(P=+E,d=void 0,F&&!Number.isNaN(P)&&(d=P+V)<z?b[d]=X:(P=void 0,((P=S)!=null?P:S={})[E]=X));S&&(w?b.push(S):b[z]=S);g&&ZZ(tX)&&(f=yM(f))&&f instanceof nXT&&(b[tX]=sgV(f));return b};
IvG=function(f){f[0]=cO(f[0]);f[1]=cO(f[1]);return f};
cO=function(f){switch(typeof f){case "number":return Number.isFinite(f)?f:""+f;case "bigint":return nY(f)?Number(f):""+f;case "boolean":return f?1:0;case "object":if(Array.isArray(f)){var S=f[_.dN]|0;return f.length===0&&S&1?void 0:DNN(f,S,cO)}if(f!=null&&f[pY]===AX)return UNG(f);if(f instanceof E8){S=f.JSC$6864_value_;if(S==null)f="";else if(typeof S==="string")f=S;else{if(QTG){for(var B="",G=0,g=S.length-10240;G<g;)B+=String.fromCharCode.apply(null,S.subarray(G,G+=10240));B+=String.fromCharCode.apply(null,
G?S.subarray(G):S);S=btoa(B)}else S=_.oO(S);f=f.JSC$6864_value_=S}return f}if(f instanceof M2)return f=f.size!==0?Array.from(S0.prototype.entries.call(f),IvG):void 0,f;return}return f};
BQ=function(f,S){if(S){koW=S==null||S===vXN||S[CmA]!==p7Q?vXN:S;try{return UNG(f)}finally{koW=void 0}}return UNG(f)};
UNG=function(f){f=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return DNN(f,f[_.dN]|0,cO)};
MmT=function(f){switch(typeof f){case "boolean":return A1N||(A1N=[0,void 0,!0]);case "number":return f>0?void 0:f===0?NNV||(NNV=[0,void 0]):[-f,void 0];case "string":return[0,f];case "object":return f}};
e0=function(f,S,B){return f=_.gI(f,S[0],S[1],B?1:2)};
_.gI=function(f,S,B,G){G=G===void 0?0:G;if(f==null){var g=32;B?(f=[B],g|=128):f=[];S&&(g=g&-8380417|(S&1023)<<13)}else{if(!Array.isArray(f))throw Error("L");g=f[_.dN]|0;2048&g&&!(2&g)&&ZiK();if(g&256)throw Error("N");if(g&64)return G!==0||g&2048||qN(f,g|2048),f;if(B&&(g|=128,B!==f[0]))throw Error("O");a:{B=f;g|=64;var b=B.length;if(b){var z=b-1,X=B[z];if(X!=null&&typeof X==="object"&&X.constructor===Object){S=g&128?0:-1;z-=S;if(z>=1024)throw Error("Q");for(var w in X)b=+w,b<z&&(B[b+S]=X[w],delete X[w]);
g=g&-8380417|(z&1023)<<13;break a}}if(S){w=Math.max(S,b-(g&128?0:-1));if(w>1024)throw Error("R");g=g&-8380417|(w&1023)<<13}}}g|=64;G===0&&(g|=2048);qN(f,g);return f};
ZiK=function(){h1(tm1,5)};
y1G=function(f,S){if(typeof f!=="object")return f;if(Array.isArray(f)){var B=f[_.dN]|0;return f.length===0&&B&1?void 0:uLQ(f,B,S)}if(f!=null&&f[pY]===AX)return av9(f);if(f instanceof M2){S=f.arrayState;if(S&2)return f;if(!f.size)return;B=$X(Array.from(S0.prototype.entries.call(f)));if(f.valueCtor)for(f=0;f<B.length;f++){var G=B[f],g=G[1];g==null||typeof g!=="object"?g=void 0:g!=null&&g[pY]===AX?g=av9(g):Array.isArray(g)?g=uLQ(g,g[_.dN]|0,!!(S&32)):g=void 0;G[1]=g}return B}if(f instanceof E8)return f};
uLQ=function(f,S,B){if(S&2)return f;!B||4096&S||16&S?f=bd(f,S,!1,B&&!(S&16)):(im(f,34),S&4&&Object.freeze(f));return f};
mz=function(f,S,B){f=new f.constructor(S);B&&(f.copyOnWrite=jm);f.noLegacyNull=jm;return f};
av9=function(f){var S=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,B=S[_.dN]|0;return xX(f,B)?f:zX(f,S,B)?mz(f,S):bd(S,B)};
bd=function(f,S,B,G){G!=null||(G=!!(34&S));f=DNN(f,S,y1G,G);G=32;B&&(G|=2);S=S&8380609|G;qN(f,S);return f};
dNG=function(f){var S=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,B=S[_.dN]|0;return xX(f,B)?zX(f,S,B)?mz(f,S,!0):new f.constructor(bd(S,B,!1)):f};
XT=function(f){if(f.copyOnWrite!==jm)return!1;var S=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;S=bd(S,S[_.dN]|0);im(S,2048);f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=S;f.copyOnWrite=void 0;f.noLegacyNull=void 0;return!0};
hr=function(f){if(!XT(f)&&xX(f,f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.dN]|0))throw Error();};
VH=function(f,S){S===void 0&&(S=f[_.dN]|0);S&32&&!(S&4096)&&qN(f,S|4096)};
zX=function(f,S,B){return B&2?!0:B&32&&!(B&4096)?(qN(S,B|2),f.copyOnWrite=jm,!0):!1};
Jr=function(f,S,B,G,g){var b=B+(g?0:-1),z=f.length-1;if(z>=1+(g?0:-1)&&b>=z){var X=f[z];if(X!=null&&typeof X==="object"&&X.constructor===Object)return X[B]=G,S}if(b<=z)return f[b]=G,S;if(G!==void 0){var w;z=((w=S)!=null?w:S=f[_.dN]|0)>>13&1023||536870912;B>=z?G!=null&&(b={},f[z+(g?0:-1)]=(b[B]=G,b)):f[b]=G}return S};
_.dI=function(f,S,B,G,g){var b=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z=b[_.dN]|0;G=xX(f,z)?1:G;g=!!g||G===3;G===2&&XT(f)&&(b=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z=b[_.dN]|0);f=W6M(b,S);var X=f===vQ?7:f[_.dN]|0,w=c1T(X,z);var F=4&w?!1:!0;if(F){4&w&&(f=ge(f),X=0,w=KX(w,z),z=Jr(b,z,S,f));for(var V=0,J=0;V<f.length;V++){var P=B(f[V]);P!=null&&(f[J++]=P)}J<V&&(f.length=J);B=(w|4)&-513;w=B&=-1025;w&=-4097}w!==X&&(qN(f,w),2&w&&Object.freeze(f));return f=lvV(f,w,b,
z,S,G,F,g)};
lvV=function(f,S,B,G,g,b,z,X){var w=S;b===1||(b!==4?0:2&S||!(16&S)&&32&G)?id(S)||(S|=!f.length||z&&!(4096&S)||32&G&&!(4096&S||16&S)?2:256,S!==w&&qN(f,S),Object.freeze(f)):(b===2&&id(S)&&(f=ge(f),w=0,S=KX(S,G),G=Jr(B,G,g,f)),id(S)||(X||(S|=16),S!==w&&qN(f,S)));2&S||!(4096&S||16&S)||VH(B,G);return f};
W6M=function(f,S,B){f=HQ(f,S,B);return Array.isArray(f)?f:vQ};
c1T=function(f,S){2&S&&(f|=2);return f|1};
id=function(f){return!!(2&f)&&!!(4&f)||!!(256&f)};
fZj=function(f){return _.ni(f,!0)};
o$1=function(f,S){var B=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G=B[_.dN]|0;a:{var g=G;G=xX(f,G);!G&&XT(f)&&(B=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=B[_.dN]|0);var b=HQ(B,S);f=!1;if(b==null){if(G){S=QgA();break a}b=[]}else if(b.constructor===M2)if(b.arrayState&2&&!G)b=Array.from(S0.prototype.entries.call(b));else{S=b;break a}else Array.isArray(b)?f=!!((b[_.dN]|0)&2):b=[];if(G){if(!b.length){S=QgA();break a}f||(f=!0,$X(b))}else if(f){f=!1;G=b;G=ge(G);for(b=0;b<
G.length;b++){var z=G[b]=ge(G[b]);Array.isArray(z[1])&&(z[1]=$X(z[1]))}b=G}!f&&g&32&&kj1(b);G=new M2(b,void 0,Pm1,Pm1);g=Jr(B,g,S,G);f||VH(B,g);S=G}return S};
_.qk=function(f,S,B,G){hr(f);var g=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b=g[_.dN]|0;if(B==null)return Jr(g,b,S),f;var z=B===vQ?7:B[_.dN]|0,X=z,w=id(z),F=w||Object.isFrozen(B);w||(z=0);F||(B=ge(B),X=0,z=KX(z,b),F=!1);z|=5;var V;w=(V=LxA(z))!=null?V:0;for(V=0;V<B.length;V++){var J=B[V],P=G(J,w);Object.is(J,P)||(F&&(B=ge(B),X=0,z=KX(z,b),F=!1),B[V]=P)}z!==X&&(F&&(B=ge(B),z=KX(z,b)),qN(B,z));Jr(g,b,S,B);return f};
_.$g=function(f,S,B,G,g){hr(f);var b=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Jr(b,b[_.dN]|0,S,(G==="0"?Number(B)===0:B===G)?void 0:B,g);return f};
_.QH=function(f,S,B){if(S&2)throw Error();var G=U8(S),g=W6M(f,B,G),b=g===vQ?7:g[_.dN]|0,z=c1T(b,S);if(2&z||id(z)||16&z)g=ge(g),b=0,z=KX(z,S),Jr(f,S,B,g,G);z&=-13;z!==b&&qN(g,z);return g};
SuK=function(f){if(Ki){var S;return(S=f[Yg])!=null?S:f[Yg]=new Map}if(Yg in f)return f[Yg];S=new Map;Object.defineProperty(f,Yg,{value:S});return S};
GnV=function(f,S,B,G,g){var b=SuK(f),z=Bex(b,f,S,B,g);z!==G&&(z&&(S=Jr(f,S,z,void 0,g)),b.set(B,G));return S};
Bex=function(f,S,B,G,g){var b=f.get(G);if(b!=null)return b;for(var z=b=0;z<G.length;z++){var X=G[z];HQ(S,X,g)!=null&&(b!==0&&(B=Jr(S,B,b,void 0,g)),b=X)}f.set(G,b);return b};
rI=function(f,S,B,G,g){var b=!1;G=HQ(f,G,g,function(z){var X=J19(z,B,!1,S);b=X!==z&&X!=null;return X});
if(G!=null)return b&&!xX(G)&&VH(f,S),G};
g$x=function(f,S,B,G,g,b,z,X){var w=xX(f,B);b=w?1:b;z=!!z||b===3;w=X&&!w;(b===2||w)&&XT(f)&&(S=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,B=S[_.dN]|0);f=W6M(S,g);var F=f===vQ?7:f[_.dN]|0,V=c1T(F,B);if(X=!(4&V)){var J=f,P=B,d=!!(2&V);d&&(P|=2);for(var Q=!d,x=!0,E=0,U=0;E<J.length;E++){var A=J19(J[E],G,!1,P);if(A instanceof G){if(!d){var t=xX(A);Q&&(Q=!t);x&&(x=t)}J[U++]=A}}U<E&&(J.length=U);V|=4;V=x?V&-4097:V|4096;V=Q?V|8:V&-9}V!==F&&(qN(f,V),2&V&&Object.freeze(f));if(w&&!(8&V||!f.length&&
(b===1||(b!==4?0:2&V||!(16&V)&&32&B)))){id(V)&&(f=ge(f),V=KX(V,B),B=Jr(S,B,g,f));G=f;w=V;for(F=0;F<G.length;F++)J=G[F],V=dNG(J),J!==V&&(G[F]=V);w|=8;V=w=G.length?w|4096:w&-4097;qN(f,V)}return f=lvV(f,V,S,B,g,b,X,z)};
eBM=function(f){f==null&&(f=void 0);return f};
KX=function(f,S){return f=(2&S?f|2:f&-3)&-273};
_.bYW=function(f,S,B,G,g){hr(f);S=_.dI(f,S,g,2,!0);var b;g=(b=LxA(S===vQ?7:S[_.dN]|0))!=null?b:0;S.push(B(G,g));return f};
m2A=function(f,S,B,G,g,b,z){hr(f);var X=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;f=g$x(f,X,X[_.dN]|0,B,S,2,!0);if(b&&z)g!=null||(g=f.length-1),s8(f,g),f.splice(g,b),f.length||(f[_.dN]&=-4097);else{if(b){if(typeof g!=="number"||g<0||g>f.length)throw Error();}else G=G!=null?G:new B;g!=void 0?f.splice(g,b,G):f.push(G);g=B=f===vQ?7:f[_.dN]|0;(G=xX(G))?(B&=-9,f.length===1&&(B&=-4097)):B|=4096;B!==g&&qN(f,B);G||VH(X)}};
zBM=function(f,S){if(typeof f==="string")return new O7(rsV(f),S);if(Array.isArray(f))return new O7(new Uint8Array(f),S);if(f.constructor===Uint8Array)return new O7(f,!1);if(f.constructor===ArrayBuffer)return f=new Uint8Array(f),new O7(f,!1);if(f.constructor===E8)return S=xg(f)||new Uint8Array(0),new O7(S,!0,f);if(f instanceof Uint8Array)return f=f.constructor===Uint8Array?f:new Uint8Array(f.buffer,f.byteOffset,f.byteLength),new O7(f,!1);throw Error();};
E7=function(){var f=function(){throw Error();};
Object.setPrototypeOf(f,f.prototype);return f};
XOj=function(f,S){var B=B===void 0?RBj:B;return new LX(f,S,B)};
Fu1=function(f,S,B,G,g){S=wO9(S,G);S!=null&&(B=_.hBx(f,B),g(S,f),_.Tej(f,B))};
nX=function(f,S,B,G){var g=G[f];if(g)return g;g={};g.binaryFields=G;g.messageMetadata=MmT(G[0]);var b=G[1],z=1;b&&b.constructor===Object&&(g.extensions=b,b=G[++z],typeof b==="function"&&(g.isMessageSet=!0,V2K!=null||(V2K=b),JXx!=null||(JXx=G[z+1]),b=G[z+=2]));for(var X={};b&&Array.isArray(b)&&b.length&&typeof b[0]==="number"&&b[0]>0;){for(var w=0;w<b.length;w++)X[b[w]]=b;b=G[++z]}for(w=1;b!==void 0;){typeof b==="number"&&(w+=b,b=G[++z]);var F=void 0;if(b instanceof LX)var V=b;else V=Pzx,z--;b=void 0;
if((b=V)==null?0:b.$$isMsg){b=G[++z];F=G;var J=z;typeof b==="function"&&(b=b(),F[J]=b);F=b}b=G[++z];J=w+1;typeof b==="number"&&b<0&&(J-=b,b=G[++z]);for(;w<J;w++){var P=X[w];F?B(g,w,V,F,P):S(g,w,V,P)}}return G[f]=g};
KuN=function(f){return Array.isArray(f)?f[0]instanceof LX?f:[v$G,f]:[f,void 0]};
wO9=function(f,S){if(f instanceof _.s7)return f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(f))return e0(f,S,!1)};
d2G=function(f,S,B,G){var g=B.$$binaryReaderFn;f[S]=G?function(b,z,X){return g(b,z,X,G)}:g};
iY9=function(f,S,B,G,g){var b=B.$$binaryReaderFn,z,X;f[S]=function(w,F,V){return b(w,F,V,X||(X=nX(Dg,d2G,iY9,G).messageMetadata),z||(z=HYK(G)),g)}};
HYK=function(f){var S=f[quN];if(S!=null)return S;var B=nX(Dg,d2G,iY9,f);S=B.isMessageSet?function(G,g){return V2K(G,g,B)}:function(G,g){for(;$2s(g)&&g.nextWireType_!=4;){var b=g.nextField_,z=B[b];
if(z==null){var X=B.extensions;X&&(X=X[b])&&(X=Qo1(X),X!=null&&(z=B[b]=X))}if(z==null||!z(g,G,b)){X=g;z=X.fieldCursor_;IO(X);if(X.discardUnknownFields)var w=void 0;else{var F=X.decoder_.cursor_-z;X.decoder_.cursor_=z;w=YuG(X.decoder_,F)}F=X=z=void 0;var V=G;w&&((z=(X=(F=V[tX])!=null?F:V[tX]=new nXT)[b])!=null?z:X[b]=[]).push(w)}}if(G=yM(G))G.reviveUnknownFields=B.binaryFields[rXT];return!0};
f[quN]=S;f[rXT]=jos.bind(f);return S};
jos=function(f,S,B,G){var g=this[Dg],b=this[quN],z=e0(void 0,g.messageMetadata,!1),X=yM(f);if(X){var w=!1,F=g.extensions;if(F){g=function(Q,x,E){if(E.length!==0)if(F[x])for(Q=_.m(E),x=Q.next();!x.done;x=Q.next()){x=OYN(x.value);try{w=!0,b(z,x)}finally{x.free()}}else G==null||G(f,x,E)};
if(S==null)WO(X,g);else if(X!=null){var V=X[S];V&&g(X,S,V)}if(w){var J=f[_.dN]|0;if(J&2&&J&2048&&(B==null||!B.reviveIntoImmutable))throw Error();var P=U8(J),d=function(Q,x){if(HQ(f,Q,P)!=null)switch(B==null?void 0:B.resolutionBehavior){case 1:return;default:throw Error();}x!=null&&(J=Jr(f,J,Q,x,P));delete X[Q]};
S==null?sTj(z,z[_.dN]|0,function(Q,x){d(Q,x)}):d(S,HQ(z,S,P))}}}};
Qo1=function(f){f=KuN(f);var S=f[0].$$binaryReaderFn;if(f=f[1]){var B=HYK(f),G=nX(Dg,d2G,iY9,f).messageMetadata;return function(g,b,z){return S(g,b,z,G,B)}}return S};
U7=function(f,S,B){f[S]=B.$$binaryWriterFn};
pX=function(f,S,B,G){var g,b,z=B.$$binaryWriterFn;f[S]=function(X,w,F){return z(X,w,F,b||(b=nX(CX,U7,pX,G).messageMetadata),g||(g=x2V(G)))}};
x2V=function(f){var S=f[E$1];if(!S){var B=nX(CX,U7,pX,f);S=function(G,g){return LuN(G,g,B)};
f[E$1]=S}return S};
LuN=function(f,S,B){sTj(f,f[_.dN]|0,function(G,g){if(g!=null){var b=knW(B,G);b?b(S,g,G):G<500||h1(n$1,3)}});
(f=yM(f))&&WO(f,function(G,g,b){Ar(S,S.encoder_.end());for(G=0;G<b.length;G++)Ar(S,xg(b[G])||new Uint8Array(0))})};
knW=function(f,S){var B=f[S];if(B)return B;if(B=f.extensions)if(B=B[S]){B=KuN(B);var G=B[0].$$binaryWriterFn;if(B=B[1]){var g=x2V(B),b=nX(CX,U7,pX,B).messageMetadata;B=f.isMessageSet?JXx(b,g):function(z,X,w){return G(z,X,w,b,g)}}else B=G;
return f[S]=B}};
_.soj=function(f,S,B){if(Array.isArray(S)){var G=S[_.dN]|0;if(G&4)return S;for(var g=0,b=0;g<S.length;g++){var z=f(S[g]);z!=null&&(S[b++]=z)}b<g&&(S.length=b);B&&(qN(S,(G|5)&-1537),G&2&&Object.freeze(S));return S}};
_.Nk=function(f,S,B){return new LX(f,S,B)};
_.D29=function(f,S,B){return new LX(f,S,B)};
_.Mk=function(f,S,B){Jr(f,f[_.dN]|0,S,B,U8(f[_.dN]|0))};
IZj=function(f,S,B){S=_.Ro(S);S!=null&&(_.tr(f,B,1),f=f.encoder_,B=ud||(ud=new DataView(new ArrayBuffer(8))),B.setFloat64(0,+S,!0),ag=B.getUint32(0,!0),y$=B.getUint32(4,!0),_.aO(f,ag),_.aO(f,y$))};
_.yH=function(f,S,B){S=F6G(S);if(S!=null){switch(typeof S){case "string":U2A(S)}if(S!=null)switch(_.tr(f,B,0),typeof S){case "number":f=f.encoder_;lm(S);Cz9(f,ag,y$);break;case "bigint":B=BigInt.asUintN(64,S);B=new pOA(Number(B&BigInt(4294967295)),Number(B>>BigInt(32)));Cz9(f.encoder_,B.JSC$6908_lo,B.JSC$6908_hi);break;default:B=U2A(S),Cz9(f.encoder_,B.JSC$6908_lo,B.JSC$6908_hi)}}};
NeQ=function(f,S,B){S=_.q2(S);S!=null&&S!=null&&(_.tr(f,B,0),_.AXK(f.encoder_,S))};
_.ZYT=function(f,S,B){M2x(f,B,VmM(S))};
_.t2G=function(f,S,B){S=_.aN9(S);S!=null&&(_.tr(f,B,0),f.encoder_.JSC$6910_buffer_.push(S?1:0))};
_.yX1=function(f,S,B){S=_.CY(S);S!=null&&aZK(f,B,GjN(S))};
Wu9=function(f,S,B,G,g){S=wO9(S,G);S!=null&&(B=_.hBx(f,B),g(S,f),_.Tej(f,B))};
_.cXT=function(f,S,B){S=S==null||typeof S=="string"||S instanceof E8?S:void 0;S!=null&&aZK(f,B,zBM(S,!0).buffer)};
_.lZs=function(f,S,B){S=_.q2(S);S!=null&&(S=parseInt(S,10),_.tr(f,B,0),_.AXK(f.encoder_,S))};
_.WQ=function(f,S){return function(B,G){var g={treatNewDataAsImmutable:!0};G&&Object.assign(g,G);B=OYN(B,void 0,void 0,g);try{var b=new f,z=b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;HYK(S)(z,B);var X=b}finally{B.free()}return X}};
_.cQ=function(f){return function(S){return fg9(S,f)}};
ogQ=function(f){return function(){return fg9(this,f)}};
_.ld=function(f){return A1(function(S){return S instanceof f&&!xX(S)})};
_.fC=function(f){return function(S){return S7N(f,S)}};
eDj=function(f,S){return BIN({child:f,origin:S||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:GX1,getPayloadCase:function(B){return B.getPayloadCase()},
createInitMessage:function(B){var G=new oP,g=new ggN;B=_.SZ(g,1,B);return _.Bo(G,5,GC,B)}})};
eZ=function(f){return{valueOf:f}.valueOf()};
mkG=function(){var f=null;if(!bXM)return f;try{var S=function(B){return B};
f=bXM.createPolicy("goog#html",{createHTML:S,createScript:S,createScriptURL:S})}catch(B){}return f};
RDN=function(){zD9===void 0&&(zD9=mkG());return zD9};
_.zC=function(f){var S=RDN();f=S?S.createScriptURL(f):f;return new mg(f)};
_.RP=function(f){if(f instanceof mg)return f.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("da");};
_.X6=function(f){return Object.isFrozen(f)&&Object.isFrozen(f.raw)};
wc=function(f){return f.toString().indexOf("`")===-1};
TC=function(f){return new _.hJ(XQK,f)};
F6=function(f){return f instanceof _.hJ};
_.Ve=function(f){if(F6(f))return f.privateDoNotAccessOrElseWrappedUrl;throw Error("da");};
Po=function(f){return new wQW(function(S){return S.substr(0,f.length+1).toLowerCase()===f+":"})};
vo=function(f,S){S=S===void 0?hDN:S;if(F6(f))return f;for(var B=0;B<S.length;++B){var G=S[B];if(G instanceof wQW&&G.isValid(f))return TC(f)}};
_.io=function(f,S){S=S===void 0?hDN:S;return vo(f,S)||dc};
_.Ho=function(f){var S=window;if(typeof MediaSource!=="undefined"&&f instanceof MediaSource||typeof S.ManagedMediaSource!=="undefined"&&f instanceof S.ManagedMediaSource)return TC(URL.createObjectURL(f));S=f.type;S.toLowerCase()==="application/octet-stream"?S=!0:(S=S.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),S=(S==null?void 0:S.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(S[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(S[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(S[1])||/^font\/[\w-]+$/i.test(S[1])));if(!S)throw Error("da");return TC(URL.createObjectURL(f))};
_.$6=function(f){for(var S=_.qb.apply(1,arguments),B=[f[0]],G=0;G<S.length;G++)B.push(String(S[G])),B.push(f[G+1]);return TC(B.join(""))};
_.FzW=function(f){if(!TIG){a:{var S=document.createElement("a");try{S.href=f}catch(B){f=void 0;break a}f=S.protocol;f=f===":"||f===""?"https:":f}return f}try{S=new URL(f)}catch(B){return"https:"}return S.protocol};
_.Qe=function(f){f instanceof _.hJ?f=_.Ve(f):f=V01.test(f)?f:void 0;return f};
Y6=function(f,S){S=_.Qe(S);S!==void 0&&(f.href=S)};
jZ=function(f){var S=RDN();f=S?S.createHTML(f):f;return new rc(f)};
OQ=function(f){if(f instanceof rc)return f.privateDoNotAccessOrElseWrappedHtml;throw Error("da");};
_.x6=function(f,S){f.src=_.RP(S).toString()};
JrV=function(f,S){f.setAttribute("sandbox","");for(var B=0;B<S.length;B++)f.sandbox.supports&&!f.sandbox.supports(S[B])||f.sandbox.add(S[B])};
_.Pd9=function(f,S,B){f.removeAttribute("srcdoc");switch(S){case 0:if(B instanceof mg)throw new EQ("TrustedResourceUrl",0);JrV(f,[]);S=_.Qe(B);S!==void 0&&(f.src=S);break;case 1:if(!(B instanceof mg))throw new EQ(typeof B,1);JrV(f,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.x6(f,B);break;case 2:if(B instanceof mg)throw new EQ("TrustedResourceUrl",2);JrV(f,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
S=_.Qe(B);S!==void 0&&(f.src=S);break;default:_.mu(S)}};
_.LC=function(f,S,B,G){S=_.Qe(S);return S!==void 0?f.open(S,B,G):null};
_.k6=function(f){f=f===void 0?document:f;var S,B;f=(B=(S=f).querySelector)==null?void 0:B.call(S,"script[nonce]");return f==null?"":f.nonce||f.getAttribute("nonce")||""};
_.Da=function(f){var S=RDN();f=S?S.createScript(f):f;return new _.sQ(f)};
IP=function(f){if(f instanceof _.sQ)return f.privateDoNotAccessOrElseWrappedScript;throw Error("da");};
vgV=function(f){var S=_.k6(f.ownerDocument);S&&f.setAttribute("nonce",S)};
_.UQ=function(f,S){f.textContent=IP(S);vgV(f)};
_.CC=function(f,S){f.src=_.RP(S);vgV(f)};
_.pC=function(f,S){if(f.nodeType===1&&/^(script|style)$/i.test(f.tagName))throw Error("da");f.innerHTML=OQ(S)};
_.AJ=function(f,S,B,G){if(f.length===0)throw Error("da");f=f.map(function(b){if(b instanceof KzT)b=b.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("da");return b});
var g=B.toLowerCase();if(f.every(function(b){return g.indexOf(b)!==0}))throw Error("fa`"+B);
S.setAttribute(B,G)};
_.Nb=function(f,S,B){if(S instanceof mg)f.href=_.RP(S).toString(),f.rel=B;else{if(dkM.indexOf(B)===-1)throw Error("ga`"+B);S=_.Qe(S);S!==void 0&&(f.href=S,f.rel=B)}};
iXx=function(f){return"function"==typeof _.Za&&f instanceof _.Za};
_.HXQ=function(f){if(iXx(f))return f.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("da");};
_.tJ=function(f,S){S=_.Qe(S);S!==void 0&&(f.href=S)};
uo=function(f,S){f&&(S=f.indexOf(S),0<=S&&f.splice(S,1))};
aP=function(f){return typeof f==="function"};
q7j=function(f){return f instanceof Wo||f&&"closed"in f&&aP(f.remove)&&aP(f.add)&&aP(f.unsubscribe)};
co=function(){};
lo=function(f){$kj(function(){throw f;})};
fQ=function(f){return f};
os=function(){return QOK(_.qb.apply(0,arguments))};
QOK=function(f){return f.length===0?fQ:f.length===1?f[0]:function(S){return f.reduce(function(B,G){return G(B)},S)}};
Y7A=function(f){var S;return(S=f!=null?f:void 0)!=null?S:Promise};
rr9=function(f,S){return new SN(function(B){var G=0;return S.schedule(function(){G===f.length?B.complete():(B.next(f[G++]),B.closed||this.schedule())})})};
jOs=function(f,S){if(!f)throw Error("ha");return new SN(function(B){var G=new Wo;G.add(S.schedule(function(){var g=f[Symbol.asyncIterator]();G.add(S.schedule(function(){var b=this;g.next().then(function(z){z.done?B.complete():(B.next(z.value),b.schedule())})}))}));
return G})};
OXQ=function(f,S,B){S=S.schedule(function(){try{B.call(this)}catch(G){f.error(G)}},0);
f.add(S)};
xkM=function(f,S){return new SN(function(B){var G;B.add(S.schedule(function(){G=f[BV]();OXQ(B,S,function(){var g=G.next(),b=g.value;g.done?B.complete():(B.next(b),this.schedule())})}));
return function(){var g;return aP((g=G)==null?void 0:g.return)&&G.return()}})};
Egj=function(f,S){return new SN(function(B){var G=new Wo;G.add(S.schedule(function(){var g=f[GT]();G.add(g.subscribe({next:function(b){G.add(S.schedule(function(){return B.next(b)}))},
error:function(b){G.add(S.schedule(function(){return B.error(b)}))},
complete:function(){G.add(S.schedule(function(){return B.complete()}))}}))}));
return G})};
LzA=function(f,S){return new SN(function(B){return S.schedule(function(){return f.then(function(G){B.add(S.schedule(function(){B.next(G);B.add(S.schedule(function(){return B.complete()}))}))},function(G){B.add(S.schedule(function(){return B.error(G)}))})})})};
kX9=function(f){return new TypeError("ia`"+(f!==null&&typeof f==="object"?"an invalid object":"'"+f+"'"))};
sO1=function(f,S){if(f!=null){if(aP(f[GT]))return Egj(f,S);if(ngG(f))return rr9(f,S);if(aP(f==null?void 0:f.then))return LzA(f,S);if(Symbol.asyncIterator&&aP(f==null?void 0:f[Symbol.asyncIterator]))return jOs(f,S);if(aP(f==null?void 0:f[BV]))return xkM(f,S)}throw kX9(f);};
mr=function(f,S){return S?sO1(f,S):eN(f)};
eN=function(f){if(f instanceof SN)return f;if(f!=null){if(aP(f[GT]))return Dk9(f);if(ngG(f))return IgN(f);if(aP(f==null?void 0:f.then))return UkW(f);if(Symbol.asyncIterator&&aP(f==null?void 0:f[Symbol.asyncIterator]))return CdN(f);if(aP(f==null?void 0:f[BV]))return pQN(f)}throw kX9(f);};
Dk9=function(f){return new SN(function(S){var B=f[GT]();if(aP(B.subscribe))return B.subscribe(S);throw new TypeError("ja");})};
IgN=function(f){return new SN(function(S){for(var B=0;B<f.length&&!S.closed;B++)S.next(f[B]);S.complete()})};
UkW=function(f){return new SN(function(S){f.then(function(B){S.closed||(S.next(B),S.complete())},function(B){return S.error(B)}).then(null,lo)})};
pQN=function(f){return new SN(function(S){for(var B=f[BV]();!S.closed;){var G=B.next(),g=G.value;G.done?S.complete():S.next(g)}return function(){return aP(B==null?void 0:B.return)&&B.return()}})};
CdN=function(f){return new SN(function(S){Arj(f,S).catch(function(B){return S.error(B)})})};
Arj=function(f,S){var B,G,g,b,z,X;return _.R(function(w){switch(w.nextAddress){case 1:_.zT(w,2,3);var F=f[Symbol.asyncIterator];b=F!==void 0?F.call(f):new NIN(_.m(f));case 5:return _.h(w,b.next(),8);case 8:G=w.yieldResult;if(G.done){w.jumpTo(3);break}z=G.value;S.next(z);w.jumpTo(5);break;case 3:_.Rs(w);_.Xz(w,9);if(!G||G.done||!(g=b.return)){w.jumpTo(9);break}return _.h(w,g.call(b),9);case 9:_.Rs(w,0,0,1);if(B)throw B.error;_.wz(w,10,1);break;case 10:_.wz(w,4);break;case 2:X=_.hm(w);B={error:X};w.jumpTo(3);
break;case 4:S.complete(),_.TT(w)}})};
Fz=function(f,S){return S?rr9(f,S):IgN(f)};
M0N=function(f){return aP(f[f.length-1])?f.pop():void 0};
VB=function(f){var S=f[f.length-1];return S&&aP(S.schedule)?f.pop():void 0};
Jm=function(){var f=_.qb.apply(0,arguments),S=VB(f);return S?rr9(f,S):Fz(f)};
PV=function(f){var S=aP(f)?f:function(){return f};
return new SN(function(B){return B.error(S())})};
vV=function(f){return function(S){if(aP(S==null?void 0:S.lift))return S.lift(function(B){try{return f(B,this)}catch(G){this.error(G)}});
throw new TypeError("ka");}};
HV=function(){return vV(function(f,S){var B=null;f._refCount++;var G=new iJ(S,void 0,void 0,void 0,function(){if(!f||f._refCount<=0||0<--f._refCount)B=null;else{var g=f._connection,b=B;B=null;!g||b&&g!==b||g.unsubscribe();S.unsubscribe()}});
f.subscribe(G);G.closed||(B=f.connect())})};
t0x=function(){var f=ZXG;var S=S===void 0?0:S;return vV(function(B,G){G.add(f.schedule(function(){return B.subscribe(G)},S))})};
qc=function(f){return vV(function(S,B){var G=0;S.subscribe(new iJ(B,function(g){B.next(f.call(void 0,g,G++))}))})};
agQ=function(f){return qc(function(S){return uTs(S)?f.apply(null,_.$d(S)):f(S)})};
fas=function(f){if(f.length===1){var S=f[0];if(yrG(S))return{args:S,keys:null};if(S&&typeof S==="object"&&Wzj(S)===crG)return f=lgj(S),{args:f.map(function(B){return S[B]}),
keys:f}}return{args:f,keys:null}};
QB=function(){var f=_.qb.apply(0,arguments),S=VB(f),B=M0N(f);f=fas(f);var G=f.args,g=f.keys;if(G.length===0)return mr([],S);S=new SN(o6V(G,S,g?function(b){for(var z={},X=0;X<b.length;X++)z[g[X]]=b[X];return z}:fQ));
return B?S.pipe(agQ(B)):S};
o6V=function(f,S,B){B=B===void 0?fQ:B;return function(G){SQ1(S,function(){for(var g=f.length,b=Array(g),z=g,X=f.map(function(){return!1}),w=!0,F={i$jscomp$216:0};F.i$jscomp$216<g;F={i$jscomp$216:F.i$jscomp$216},F.i$jscomp$216++)SQ1(S,function(V){return function(){mr(f[V.i$jscomp$216],S).subscribe(new Yd(G,function(J){b[V.i$jscomp$216]=J;
w&&(X[V.i$jscomp$216]=!0,w=!X.every(fQ));w||G.next(B(b.slice()))},function(){return--z===0}))}}(F),G)},G)}};
SQ1=function(f,S,B){f?B.add(f.schedule(S)):S()};
BcN=function(f,S,B,G){var g=[],b=0,z=0,X=!1,w=function(F){b++;eN(B(F,z++)).subscribe(new iJ(S,function(V){S.next(V)},void 0,function(){b--;
for(var V={};g.length&&b<G;V={bufferedValue:void 0})V.bufferedValue=g.shift(),w(V.bufferedValue);!X||g.length||b||S.complete()}))};
f.subscribe(new iJ(S,function(F){return b<G?w(F):g.push(F)},void 0,function(){X=!0;
!X||g.length||b||S.complete()}));
return function(){g=null}};
rz=function(f,S){var B=B===void 0?Infinity:B;if(aP(S))return rz(function(G,g){return qc(function(b,z){return S(G,b,g,z)})(eN(f(G,g)))},B);
typeof S==="number"&&(B=S);return vV(function(G,g){return BcN(G,g,f,B)})};
GCQ=function(f){f=f===void 0?Infinity:f;return rz(fQ,f)};
g61=function(){var f=_.qb.apply(0,arguments);return GCQ(1)(Fz(f,VB(f)))};
jN=function(f){return new SN(function(S){eN(f()).subscribe(S)})};
OK=function(f,S,B){if(aP(B)){var G=B;B=void 0}if(G)return OK(f,S,B).pipe(agQ(G));G=_.m(aP(f.addEventListener)&&aP(f.removeEventListener)?eX9.map(function(z){return function(X){return f[z](S,X,B)}}):aP(f.addListener)&&aP(f.removeListener)?bCA.map(mb1(f,S)):aP(f.on)&&aP(f.off)?zXG.map(mb1(f,S)):[]);
var g=G.next().value,b=G.next().value;return!g&&ngG(f)?rz(function(z){return OK(z,S,B)})(Fz(f)):new SN(function(z){if(!g)throw new TypeError("la");
var X=function(){var w=_.qb.apply(0,arguments);return z.next(1<w.length?w:w[0])};
g(X);return function(){return b(X)}})};
mb1=function(f,S){return function(B){return function(G){return f[B](S,G)}}};
EK=function(){var f=_.qb.apply(0,arguments),S=VB(f);var B=typeof f[f.length-1]==="number"?f.pop():Infinity;return f.length?f.length===1?eN(f[0]):GCQ(B)(Fz(f,S)):xd};
Xoj=function(f){return f.length===1&&RXW(f[0])?f[0]:f};
woW=function(){var f=Xoj(_.qb.apply(0,arguments));return vV(function(S,B){var G=[S].concat(_.$d(f)),g=function(){if(!B.closed)if(G.length>0){try{var b=eN(G.shift())}catch(X){g();return}var z=new iJ(B,void 0,co,co);B.add(b.subscribe(z));z.add(g)}else B.complete()};
g()})};
LQ=function(f){return vV(function(S,B){var G=0;S.subscribe(new iJ(B,function(g){return f.call(void 0,g,G++)&&B.next(g)}))})};
Tcs=function(){var f=_.qb.apply(0,arguments);f=Xoj(f);return f.length===1?eN(f[0]):new SN(hXV(f))};
hXV=function(f){return function(S){for(var B=[],G={i$jscomp$219:0};B&&!S.closed&&G.i$jscomp$219<f.length;G={i$jscomp$219:G.i$jscomp$219},G.i$jscomp$219++)B.push(eN(f[G.i$jscomp$219]).subscribe(new iJ(S,function(g){return function(b){if(B){for(var z=0;z<B.length;z++)z!==g.i$jscomp$219&&B[z].unsubscribe();B=null}S.next(b)}}(G))))}};
Fgj=function(){var f=_.qb.apply(0,arguments),S=M0N(f),B=Xoj(f);return B.length?new SN(function(G){var g=B.map(function(){return[]}),b=B.map(function(){return!1});
G.add(function(){g=b=null});
for(var z={sourceIndex$jscomp$1:0};!G.closed&&z.sourceIndex$jscomp$1<B.length;z={sourceIndex$jscomp$1:z.sourceIndex$jscomp$1},z.sourceIndex$jscomp$1++)eN(B[z.sourceIndex$jscomp$1]).subscribe(new iJ(G,function(X){return function(w){g[X.sourceIndex$jscomp$1].push(w);g.every(function(F){return F.length})&&(w=g.map(function(F){return F.shift()}),G.next(S?S.apply(null,_.$d(w)):w),g.some(function(F,V){return!F.length&&b[V]})&&G.complete())}}(z),void 0,function(X){return function(){b[X.sourceIndex$jscomp$1]=
!0;
!g[X.sourceIndex$jscomp$1].length&&G.complete()}}(z)));
return function(){g=b=null}}):xd};
VZs=function(f){var S,B,G;return!!f&&typeof f.active==="boolean"&&typeof((S=f.clock)==null?void 0:S.now)==="function"&&((B=f.clock)==null?void 0:B.timeline)!==void 0&&!((G=f.lastMeasurement)==null||!G.timestamp)&&typeof f.equivalentTo==="function"&&typeof f.extrapolateToNow==="function"&&typeof f.extrapolateToTime==="function"&&typeof f.map==="function"&&typeof f.joinWith==="function"};
JJN=function(f){function S(B){return typeof B==="boolean"||typeof B==="string"||typeof B==="number"||B===void 0||B===null}
return S(f)?!0:Array.isArray(f)?f.every(S):typeof f==="object"?Object.keys(f).every(function(B){return typeof B==="string"})&&Object.values(f).every(function(B){return Array.isArray(B)?B.every(S):S(B)}):!1};
PoG=function(f){if(JJN(f))return f;if(VZs(f))return{lastMeasurement:{value:PoG(f.lastMeasurement.value),timestamp:kd(f.lastMeasurement.timestamp,new nQ(0,f.lastMeasurement.timestamp.timeline))},active:f.active};try{return JSON.parse(JSON.stringify(f))}catch(S){}return String(f)};
sK=function(f,S){return function(B){return new SN(function(G){return B.subscribe(function(g){f.timeExecution(S,function(){G.next(g)})()},function(g){f.timeExecution(S,function(){G.error(g)})()},function(){f.timeExecution(S,function(){G.complete()})()})})}};
v6x=function(f,S){var B=!1;return new SN(function(G){var g=f.setTimeout(function(){B=!0;G.next(!0);G.complete()},S);
return function(){B||f.clearTimeout(g)}})};
KgK=function(f){f=f.global;if(f.fetchLater)return f.fetchLater.bind(f)};
DE=function(f){return vV(function(S,B){var G=null,g=!1,b;G=S.subscribe(new iJ(B,void 0,function(z){b=eN(f(z,DE(f)(S)));G?(G.unsubscribe(),G=null,b.subscribe(B)):g=!0}));
g&&(G.unsubscribe(),G=null,b.subscribe(B))})};
dbx=function(f,S,B){return function(G,g){var b=B,z=S,X=0;G.subscribe(new iJ(g,function(w){var F=X++;z=b?f(z,w,F):(b=!0,w);g.next(z)},void 0,void 0))}};
iCW=function(f){f=f===void 0?null:f;return vV(function(S,B){var G=!1;S.subscribe(new iJ(B,function(g){G=!0;B.next(g)},void 0,function(){G||B.next(f);
B.complete()}))})};
Is=function(){return vV(function(f,S){f.subscribe(new iJ(S,co))})};
UK=function(f){return vV(function(S,B){S.subscribe(new iJ(B,function(){return B.next(f)}))})};
pQ=function(f){return f<=0?function(){return xd}:vV(function(S,B){var G=0;
S.subscribe(new iJ(B,function(g){++G<=f&&(B.next(g),f<=G&&B.complete())}))})};
Am=function(f){var S=S===void 0?fQ:S;var B;f=(B=f)!=null?B:HCQ;return vV(function(G,g){var b,z=!0;G.subscribe(new iJ(g,function(X){var w=S(X);if(z||!f(b,w))z=!1,b=w,g.next(X)}))})};
HCQ=function(f,S){return f===S};
$b9=function(f){f=f===void 0?qQN:f;return vV(function(S,B){var G=!1;S.subscribe(new iJ(B,function(g){G=!0;B.next(g)},void 0,function(){return G?B.complete():B.error(f())}))})};
qQN=function(){return new QPx};
Nc=function(){var f=_.qb.apply(0,arguments);return function(S){return g61(S,Jm.apply(null,_.$d(f)))}};
YQN=function(f){return vV(function(S,B){var G=0;S.subscribe(new iJ(B,function(g){f.call(void 0,g,G++,S)||(B.next(!1),B.complete())},void 0,function(){B.next(!0);
B.complete()}))})};
rJj=function(){return vV(function(f,S){var B=[];f.subscribe(new iJ(S,function(G){B.push(G);1<B.length&&B.shift()},void 0,function(){for(var G=_.m(B),g=G.next();!g.done;g=G.next())S.next(g.value);
S.complete()},function(){B=null}))})};
jPT=function(f,S){var B=arguments.length>=2;return function(G){return G.pipe(f?LQ(function(g,b){return f(g,b,G)}):fQ,rJj(),B?iCW(S):$b9(function(){return new QPx}))}};
ZE=function(f){var S=aP(f)?f:function(){return f};
return aP()?vV(function(B,G){var g=S();(void 0)(g).subscribe(G).add(B.subscribe(g))}):function(B){var G=new Mc(B,S);
aP(B==null?void 0:B.lift)&&(G.lift=B.lift);G.source=B;G.subjectFactory=S;return G}};
uJ=function(f){var S=new tm(f,void 0,void 0);return function(B){return ZE(function(){return S})(B)}};
as=function(f,S){return vV(dbx(f,S,arguments.length>=2))};
yB=function(){var f=_.qb.apply(0,arguments),S=VB(f);return vV(function(B,G){(S?g61(f,B,S):g61(f,B)).subscribe(G)})};
WV=function(f){return vV(function(S,B){var G=null,g=0,b=!1;S.subscribe(new iJ(B,function(z){var X;(X=G)==null||X.unsubscribe();X=g++;eN(f(z,X)).subscribe(G=new iJ(B,function(w){return B.next(w)},void 0,function(){G=null;
b&&!G&&B.complete()}))},void 0,function(){(b=!0,!G)&&B.complete()}))})};
cV=function(f,S){S=S===void 0?!1:S;return vV(function(B,G){var g=0;B.subscribe(new iJ(G,function(b){var z=f(b,g++);(z||S)&&G.next(b);!z&&G.complete()}))})};
lJ=function(f,S,B){var G=aP(f)||S||B?{next:f,error:S,complete:B}:f;return G?vV(function(g,b){g.subscribe(new iJ(b,function(z){var X;(X=G.next)==null||X.call(G,z);b.next(z)},function(z){var X;
(X=G.error)==null||X.call(G,z);b.error(z)},function(){var z;
(z=G.complete)==null||z.call(G);b.complete()}))}):fQ};
OC1=function(){var f=_.qb.apply(0,arguments),S=M0N(f);return vV(function(B,G){for(var g=f.length,b=Array(g),z=f.map(function(){return!1}),X=!1,w={i$jscomp$229:0};w.i$jscomp$229<g;w={i$jscomp$229:w.i$jscomp$229},w.i$jscomp$229++)eN(f[w.i$jscomp$229]).subscribe(new iJ(G,function(F){return function(V){b[F.i$jscomp$229]=V;
X||z[F.i$jscomp$229]||(z[F.i$jscomp$229]=!0,(X=z.every(fQ))&&(z=null))}}(w),void 0,co));
B.subscribe(new iJ(G,function(F){X&&(F=[F].concat(_.$d(b)),G.next(S?S.apply(null,_.$d(F)):F))}))})};
xbN=function(f){var S=[],B=0,G;for(G in f)S[B++]=G;return S};
E6s=function(f,S){for(var B in f)if(f[B]==S)return!0;return!1};
LgV=function(f,S,B){for(var G in f)if(S.call(B,f[G],G,f))return G};
kCK=function(f){if(!f||typeof f!=="object")return f;if(typeof f.clone==="function")return f.clone();if(typeof Map!=="undefined"&&f instanceof Map)return new Map(f);if(typeof Set!=="undefined"&&f instanceof Set)return new Set(f);if(f instanceof Date)return new Date(f.getTime());var S=Array.isArray(f)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(f)||f instanceof DataView?{}:new f.constructor(f.length),B;for(B in f)S[B]=kCK(f[B]);return S};
n6G=function(f){var S=arguments.length;if(S==1&&Array.isArray(arguments[0]))return n6G.apply(null,arguments[0]);if(S%2)throw Error("pa");for(var B={},G=0;G<S;G+=2)B[arguments[G]]=arguments[G+1];return B};
sPQ=function(f){var S=arguments.length;if(S==1&&Array.isArray(arguments[0]))return sPQ.apply(null,arguments[0]);for(var B={},G=0;G<S;G++)B[arguments[G]]=!0;return B};
_.fo=function(f){return new KzT(f[0].toLowerCase())};
DbN=function(f){try{return new URL(f,window.document.baseURI)}catch(S){return new URL("about:invalid")}};
IaQ=function(f,S){var B=S.createRange();B.selectNode(S.body);f=jZ(f);return B.createContextualFragment(OQ(f))};
Ubx=function(f){f=f.nodeName;return typeof f==="string"?f:"FORM"};
Cos=function(f){f=f.nodeType;return f===1||typeof f!=="number"};
o$=function(f,S,B){f.setAttribute(S,B)};
poA=function(f){return f.parts.map(function(S){var B=S.descriptor;return""+S.url+(B?" "+B:"")}).join(" , ")};
_.Sr=function(f){var S=_.qb.apply(1,arguments);if(S.length===0)return _.zC(f[0]);for(var B=f[0],G=0;G<S.length;G++)B+=encodeURIComponent(S[G])+f[G+1];return _.zC(B)};
_.Bd=function(f,S){f=_.RP(f).toString();var B=f.split(/[?#]/),G=/[?]/.test(f)?"?"+B[1]:"";return AJs(B[0],G,/[#]/.test(f)?"#"+(G?B[2]:B[1]):"",S)};
AJs=function(f,S,B,G){function g(z,X){z!=null&&(Array.isArray(z)?z.forEach(function(w){return g(w,X)}):(S+=b+encodeURIComponent(X)+"="+encodeURIComponent(z),b="&"))}
var b=S.length?"&":"?";G.constructor===Object&&(G=Object.entries(G));Array.isArray(G)?G.forEach(function(z){return g(z[1],z[0])}):G.forEach(g);
return _.zC(f+S+B)};
GW=function(f,S,B,G){this.top=f;this.right=S;this.bottom=B;this.left=G};
Nc1=function(f){f=f.global;if(f.PendingGetBeacon)return f.PendingGetBeacon};
er=function(f){return function(S){return S.pipe(MZN(f,ZE(new gu)))}};
bB=function(f){return function(S){return S.pipe(MZN(f,uJ(1)))}};
MZN=function(f,S){function B(G){return new SN(function(g){return G.subscribe(function(b){ma(f,function(){return void g.next(b)},3)},function(b){ma(f,function(){return void g.error(b)},3)},function(){ma(f,function(){return void g.complete()},3)})})}
return os(B,t0x(),S,HV(),B)};
u6x=function(f){var S=ZCV(f);return S===null?new zW(null):S.pipe(qc(function(B){B=B.serialize();if(tZ1)B=_.S1.btoa(B);else{for(var G=[],g=0,b=0;b<B.length;b++){var z=B.charCodeAt(b);z>255&&(G[g++]=z&255,z>>=8);G[g++]=z}B=_.oO(G)}return B}),pQ(1),bB(f.queue))};
aaK=function(f){var S=S===void 0?{}:S;if(typeof Event==="function")return new Event(f,S);if(typeof document!=="undefined"){var B=document.createEvent("CustomEvent");B.initCustomEvent(f,S.bubbles||!1,S.cancelable||!1,S.detail);return B}throw Error();};
yJx=function(f){return typeof f==="string"?document.getElementById(f):f};
cJ9=function(f){var S=!1;S=S===void 0?!1:S;if(f.tagName==="IMG"){if(f.complete&&(!f.naturalWidth||!f.naturalHeight))return!0;var B;if(S&&((B=f.style)==null?void 0:B.display)==="none")return!0}var G,g;return WgQ.test((G=f.getAttribute("width"))!=null?G:"")&&WgQ.test((g=f.getAttribute("height"))!=null?g:"")};
lax=function(f,S){if(f.tagName==="IMG")return f.naturalWidth&&f.naturalHeight?!0:!1;try{if(f.readyState)var B=f.readyState;else{var G,g;B=(G=f.contentWindow)==null?void 0:(g=G.document)==null?void 0:g.readyState}return B==="complete"}catch(b){return S===void 0?!1:S}};
fEx=function(f){f||(f=function(S,B,G){S.addEventListener(B,G)});
return f};
GTx=function(f,S){var B=od9();B=B===void 0?new SKT:B;if(f=yJx(f)){var G=fEx(G);for(var g=!1,b=function(E){g||(g=!0,S(E))},z,X=2,w=0;w<Bzs.length;++w)if(Bzs[w]===f.tagName){X=3;
z=[f];break}z||(z=f.querySelectorAll(Bzs.join(",")));var F=0,V=0,J=!0,P=f=!1;w={};for(var d=0;d<z.length;w={isImg:void 0},d++){var Q=z[d];if(!cJ9(Q))if(w.isImg=Q.tagName==="IMG",lax(Q,B.crossDomainLoadedDefault))f=!0,w.isImg&&(J=!0);else{F++;var x=function(E){return function(U){F--;!F&&J&&b(X);E.isImg&&(U=U&&U.type==="error",V--,U||(J=!0),!V&&P&&J&&b(X))}}(w);
G(Q,"load",x);w.isImg&&(V++,G(Q,"error",x))}}V===0&&(J=!0);z=null;z=_.S1.document.readyState==="complete";if(F===0&&!f&&z)X=5;else if(F||!f){G(_.S1,"load",function(){!B.pendingImagesBlockLoad||!V&&J?b(4):P=!0});
return}b(X)}};
gdM=function(f,S,B){if(f)for(var G=0;f!=null&&G<500&&!B(f);++G)f=S(f)};
eK1=function(f,S){gdM(f,function(B){try{return B===B.parent?null:B.parent}catch(G){}return null},S)};
bQA=function(f,S){if(f.tagName=="IFRAME")S(f);else{f=f.querySelectorAll("IFRAME");for(var B=0;B<f.length&&!S(f[B]);++B);}};
mcW=function(f){return(f=f.ownerDocument)&&(f.parentWindow||f.defaultView)||null};
zKj=function(f,S,B){try{var G=JSON.parse(B.data)}catch(z){}if(typeof G==="object"&&G&&G.type==="creativeLoad"){var g=mcW(f);if(B.source&&g){var b;eK1(B.source,function(z){try{if(z.parent===g)return b=z,!0}catch(X){}});
b&&bQA(f,function(z){if(z.contentWindow===b)return S(G),!0})}}};
RKV=function(f){return typeof f==="string"?document.getElementById(f):f};
TzW=function(){var f={};return f[0]=_.Sr(XVN,"current"),f[1]=_.Sr(wV9),f[2]=_.Sr(hKW),f};
R$=function(f,S){return f.left===S.left&&f.top===S.top&&f.width===S.width&&f.height===S.height};
Fr1=function(f,S){return{left:Math.max(f.left,S.left),top:Math.max(f.top,S.top),width:Math.max(0,Math.min(f.left+f.width,S.left+S.width)-Math.max(f.left,S.left)),height:Math.max(0,Math.min(f.top+f.height,S.top+S.height)-Math.max(f.top,S.top))}};
VN9=function(f,S){return{left:Math.round(f.left+S.x),top:Math.round(f.top+S.y),width:f.width,height:f.height}};
JmK=function(f,S,B){if(f&&S!==null&&S!=S.top){if(!S.top)return new _.Xr(-12245933,-12245933);S=S.top}try{return(B===void 0?0:B)?(new _.Xr(S.innerWidth,S.innerHeight)).round():_.TW(S).round()}catch(G){return new _.Xr(-12245933,-12245933)}};
PJ1=function(f,S,B){try{if(f){if(!S.top)return new GW(-12245933,-12245933,-12245933,-12245933);S=S.top}var G=JmK(f,S,B),g=G.height,b=G.width;if(b===-12245933)return new GW(b,b,b,b);var z=Fr(Vq(S.document)),X=z.x,w=z.y;return new GW(w,X+b,w+g,X)}catch(F){return new GW(-12245933,-12245933,-12245933,-12245933)}};
vdj=function(f){var S;return(S=f.google_tag_data)!=null?S:f.google_tag_data={}};
Krj=function(f){var S,B;return typeof((S=f.navigator)==null?void 0:(B=S.userAgentData)==null?void 0:B.getHighEntropyValues)==="function"};
iQQ=function(f){if(!Krj(f))return null;var S=vdj(f);if(S.uach_promise)return S.uach_promise;f=f.navigator.userAgentData.getHighEntropyValues(dcM).then(function(B){S.uach!=null||(S.uach=B);return B});
return S.uach_promise=f};
kTj=function(f){var S;return HQV(qKV($cK(Qsx(YKN(rm1(js9(OQT(xcj(new Eds,f.architecture||""),f.bitness||""),f.mobile||!1),f.model||""),f.platform||""),f.platformVersion||""),f.uaFullVersion||""),((S=f.fullVersionList)==null?void 0:S.map(function(B){var G=new LrN;G=_.Jx(G,1,B.brand);return _.Jx(G,2,B.version)}))||[]),f.wow64||!1)};
nd1=function(f){var S,B;return(B=(S=iQQ(f))==null?void 0:S.then(function(G){return kTj(G)}))!=null?B:null};
ssT=function(f,S){return new SN(function(B){var G=!1,g=Array(S.length);g.fill(void 0);var b=new Set,z=new Set,X=function(J,P){f.running?(g[P]=J,b.add(P),G||(G=!0,ma(f,function(){G=!1;B.next(_.aT(g))},1))):B.error(new Pd(P))},w=function(J,P){z.add(P);
b.add(P);ma(f,function(){B.error(J)},1)},F=function(J){z.add(J);
ma(f,function(){z.size===S.length&&B.complete()},1)},V=S.map(function(J,P){return J.subscribe(function(d){return void X(d,P)},function(d){return void w(d,P)},function(){return void F(P)})});
return function(){V.forEach(function(J){return void J.unsubscribe()})}})};
IE1=function(f,S,B){function G(){if(S.debugChannel){var E=S.debugChannel,U=E.next;var A={creativeId:S.debugNames.getName(B),requiredSignals:g,signals:Object.assign({},b),hasPrematurelyCompleted:z,errorMessage:X,erroredSignalKey:w};A={specMajor:2,specMinor:0,specPatch:0,timestamp:kd(S.timeProvider.now(),new nQ(0,S.timeProvider.timeline)),instanceId:S.debugNames.getName(S.symbol),creativeState:A};U.call(E,A)}}
for(var g=Object.keys(f),b={},z=!1,X=null,w=null,F={},V=new Set,J=[],P=[],d=_.m(g),Q=d.next(),x={};!Q.done;x={key$jscomp$375:void 0},Q=d.next())x.key$jscomp$375=Q.value,Q=f[x.key$jscomp$375],Q instanceof zW?(F[x.key$jscomp$375]=Q.value,V.add(x.key$jscomp$375),S.debugChannel&&(b[String(x.key$jscomp$375)]=PoG(Q.value))):(Q=Q.pipe(Am(function(E,U){return VZs(E)||VZs(U)?!1:E===U}),qc(function(E){return function(U){S.debugChannel&&(b[String(E.key$jscomp$375)]=PoG(U),G());
var A={};return A[E.key$jscomp$375]=U,A}}(x)),DE(function(E){return function(U){if(U instanceof Pd)throw new DcN(String(E.key$jscomp$375));
throw U;}}(x)),lJ(function(E){return function(){V.add(E.key$jscomp$375)}}(x),function(E){return function(U){w=String(E.key$jscomp$375);
X=String(U);G()}}(x),function(E){return function(){V.has(E.key$jscomp$375)||(z=!0,G())}}(x))),P.push(x.key$jscomp$375),J.push(Q));
(f=Object.keys(b).length>0)&&G();d=ssT(S.queue,J).pipe(DE(function(E){if(E instanceof Pd)throw new vd(String(P[E.inputObservableIndex]));throw E;}),qc(function(E){return Object.freeze(Object.assign.apply(Object,[{},
F].concat(_.$d(E))))}));
return(J=J.length>0)&&f?EK(Jm(Object.freeze(F)),d):J?d:Jm(Object.freeze(F))};
Ucs=function(f,S,B,G,g){return f.performanceMonitor.timeExecution.bind(f.performanceMonitor)(733,function(){var b={};try{return S.pipe(DE(function(z){G(Object.assign({},b,{error:z}));return xd}),rz(function(z){try{var X=B(f,z)}catch(F){return G(Object.assign({},b,{error:F instanceof Error?F:String(F)})),xd}var w={};
return IE1(X,f,z.symbol).pipe(lJ(function(F){w=F}),uJ(1),HV()).pipe(g,DE(function(F){G(Object.assign({},w,{error:F}));
return xd}),Nc(void 0),qc(function(){return!0}))})).pipe(as(function(z){return z+1},0),DE(function(z){G(Object.assign({},b,{error:z}));
return xd}))}catch(z){return G(Object.assign({},b,{error:z})),xd}})()};
Ko=function(f){var S=new Map;if(typeof f!=="object"||f===null)return S;Object.values(f).forEach(function(B){B&&typeof B.extrapolateToNow==="function"&&(S.has(B.clock.timeline)||S.set(B.clock.timeline,B.clock.now()))});
return S};
CJs=function(f,S){return typeof f==="string"?encodeURIComponent(f):typeof f==="number"?String(f):Array.isArray(f)?f.map(function(B){return CJs(B,S)}).join(","):f instanceof nQ?f.toString():f&&typeof f.extrapolateToNow==="function"?CJs(f.extrapolateUsingTimestampMap(S).value,S):f===!0?"1":f===!1?"0":f===void 0||f===null?null:f instanceof pV1?AmM(f):[f.top,
f.left,f.top+f.height,f.left+f.width].join()};
du=function(f,S){f=Object.entries(f).map(function(B){var G=_.m(B);B=G.next().value;G=G.next().value;G=CJs(G,S);return G===null?"":B+"="+G}).filter(function(B){return B!==""});
return f.length?f.join("&"):""};
ZQM=function(f,S){var B=NzW,G=MNA;S=S===void 0?.01:S;return function(g){S>0&&Math.random()<=S&&(f.global.HTMLFencedFrameElement&&f.global.fence&&typeof f.global.fence.reportEvent==="function"&&f.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),g=Object.assign({},g,{errorMessage:g.error instanceof Error&&g.error.message?g.error.message:String(g.error),errorStack:g.error instanceof Error&&g.error.stack?String(g.error.stack):null,errorName:g.error instanceof
Error&&g.error.name?String(g.error.name):null,errorContext:String(f.performanceMonitor.timedFunctionContext),errorEscapedQueryId:g.escapedQueryId}),B(Object.assign({},g,{payloadMapper:function(){return function(b){try{return G(Object.assign({},b))}catch(z){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),Ko(g)).forEach(function(b){f.beaconFactory.makeBeacon(b).sendNow()}))}};
tNN=function(){var f=_.qb.apply(0,arguments);return function(S){var B=S.pipe(uJ(1),HV());S=f.map(function(G){return B.pipe(G,Nc(!0))});
return QB(S).pipe(pQ(1),Is())}};
uzK=function(){var f=_.qb.apply(0,arguments);return function(S){var B=S.pipe(uJ(1),HV());S=f.map(function(G){return B.pipe(G,Nc(!0))});
return EK.apply(null,_.$d(S)).pipe(pQ(1),Is())}};
aEV=function(f,S){return function(B){var G=B.pipe(uJ(1),HV());B=G.pipe(f,Nc(!0));G=G.pipe(os(S,uJ(),HV()),Nc(!0));B=QB([B,G]);return Tcs(B,G).pipe(pQ(1),Is())}};
ymA=function(f,S,B){B(!0)};
WrG=function(f,S){return os(WV(function(B){var G=f(B),g=S(B),b={};return G&&g&&b?new SN(function(z){g(G,b,function(X){z.next(Object.assign({},B,{canEmit:X}));z.complete()});
return function(){}}):iB}),LQ(function(B){return B.canEmit}))};
cmj=function(f){var S={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(B){return B.pipe(WV(function(G){return new SN(function(g){function b(){X.disconnect();w.unsubscribe()}
var z=f.MutationObserver;if(z&&G.ref!==void 0){var X=new z(function(F){g.next(F)});
X.observe(G.ref,S);var w=G.JSC$7405_released.subscribe(b);return b}})}))}};
lEj=function(f){if(f.measurementDeferralState===3)return null;if(f.timeOnScreenReason!==void 0){var S=f.creativeFound===!1?"n":null;if(S!==null)return S}return f.geometricMeasurementErrors instanceof Hd?"msf":f.contextValidationErrors instanceof qv?"c":f.contextVisibilityKnown===!1?"pv":f.geometricMeasurementErrors||f.contextValidationErrors?"x":null};
Qq=function(f,S){return f.replace(fMN,function(B,G){try{var g=_.$v.get(S,G);if(g==null||g.toString()==null)return B;g=g.toString();if(g==""||!_.bK(g==null?"":String(g)))return encodeURIComponent(g).replace(/%2C/g,",")}catch(b){}return B})};
ovM=function(f,S){var B=Object.assign({},f),G=f.userAgentClientHints;B=(delete B.userAgentClientHints,B);B=f.payloadMapper(B);var g=du(B,S);return _.Yv(f.urlPrefixes,function(b){var z="";typeof G==="string"&&(z="&"+du({uach:G},S));var X={};return Qq(b,(X.VIEWABILITY=g,X))+z})};
NzW=function(f,S){var B=f.payloadMapper(f),G=du(B,S);return G?_.Yv(f.urlPrefixes,function(g){g=g.indexOf("?")>=0?g:g+"?";g="?&".indexOf(g.slice(-1))>=0?g:g+"&";return g+G}):f.urlPrefixes};
SI9=function(){return os(LQ(function(f){return f!==void 0}),qc(function(f){return f}))};
BuN=function(f){return os(qc(function(){return!0}),yB(!1),bB(f))};
GWj=function(f){return f.length<=0?xd:QB(f.map(function(S){var B=0;return S.pipe(qc(function(G){return{index:B++,value:G}}))})).pipe(LQ(function(S){return S.every(function(B){return B.index===S[0].index})}),qc(function(S){return S.map(function(B){return B.value})}))};
gvV=function(f,S){f.currentState&&(f.previousState=f.currentState);f.currentState=S;f.previousState&&f.previousState.value?(S=Math.max(0,kd(S.timestamp,f.previousState.timestamp)),f.totalTime+=S,f.consecutiveTime+=S):f.consecutiveTime=0;return f};
eQN=function(){return os(as(gvV,{totalTime:0,consecutiveTime:0}),qc(function(f){return f.totalTime}))};
boG=function(){return os(as(gvV,{totalTime:0,consecutiveTime:0}),qc(function(f){return f.consecutiveTime}))};
mvN=function(f,S){return function(B){return GWj(S.map(function(G){return B.pipe(f(G))}))}};
zQx=function(){var f;return os(lJ(function(S){return void(f=S.timestamp)}),boG(),qc(function(S){return{timestamp:f,
value:Math.round(S)}}))};
RQ1=function(f,S){return R$(f.topWindowViewportExternalGeometry,S.topWindowViewportExternalGeometry)&&R$(f.elementGeometry,S.elementGeometry)&&R$(f.exposedViewportLocalGeometry,S.exposedViewportLocalGeometry)&&R$(f.intersectionGeometry,S.intersectionGeometry)&&f.elementGeometrySourceName===S.elementGeometrySourceName&&f.measurementRequests===S.measurementRequests&&f.viewportGeometrySourceName===S.viewportGeometrySourceName&&f.viewportLocalAppOffset.x===S.viewportLocalAppOffset.x&&f.viewportLocalAppOffset.y===
S.viewportLocalAppOffset.y};
hQK=function(f,S){return function(B){return function(G){var g=G.pipe(ZE(new gu),HV());G=B.element.pipe(Am());g=g.pipe(qc(function(b){return b.value}));
return QB([G,g,S]).pipe(qc(function(b){var z=_.m(b);b=z.next().value;var X=z.next().value;z=z.next().value;if(b.ref===void 0)var w={top:0,left:0,width:0,height:0};else{w=b.ref.getBoundingClientRect();var F=b.ref,V=f.global,J=new _.ru(0,0),P=jr(_.OI(F));if(xv(P,"parent")){do{if(P==V)var d=_.EI(F);else d=XdQ(F),d=new _.ru(d.left,d.top);J.x+=d.x;J.y+=d.y}while(P&&P!=V&&P!=P.parent&&(F=P.frameElement)&&(P=P.parent))}w={top:J.y,left:J.x,width:w.width,height:w.height}}w=VN9(w,X.viewportLocalAppOffset);
V=Fr1(w,X.exposedViewportLocalGeometry);J=f.timeProvider.now();P=Object;F=P.assign;if(z!==2||f.inCrossDomainIframe||V.width<=0||V.height<=0)var Q=!1;else try{var x=f.document.elementFromPoint(V.left+V.width/2,V.top+V.height/2);Q=x?!wdN(x,b):!1}catch(E){Q=!1}return{timestamp:J,value:F.call(P,{},X,{elementGeometrySourceName:"geo",intersectionGeometry:Q?Lo.intersectionGeometry:V,elementGeometry:w})}}),er(f.queue))}}};
wdN=function(f,S,B){B=B===void 0?0:B;return f.ref===void 0||S.ref===void 0?!1:f.ref===S.ref||_.kv(S.ref,function(G){return G===f.ref})?!0:S.ref.ownerDocument&&S.ref.ownerDocument.defaultView&&S.ref.ownerDocument.defaultView===S.ref.ownerDocument.defaultView.top?!1:B<10&&S.ref.ownerDocument&&S.ref.ownerDocument.defaultView&&S.ref.ownerDocument.defaultView.frameElement?wdN(f,new no(S.ref.ownerDocument.defaultView.frameElement),B+1):!0};
Vrx=function(f){return function(S){return S.pipe(f.ResizeObserver?TuN(f):Fa1(f),uJ(1),HV())}};
TuN=function(f){return function(S){return S.pipe(WV(function(B){var G=f.ResizeObserver;if(!G||B.ref===void 0)return Jm(Lo.elementGeometry);var g=(new SN(function(b){function z(){B.ref!==void 0&&X.unobserve(B.ref);X.disconnect();w.unsubscribe()}
if(B.ref===void 0)return b.complete(),function(){};
var X=new G(function(F){F.forEach(function(V){b.next(V)})});
X.observe(B.ref);var w=B.JSC$7405_released.subscribe(z);return z})).pipe(sK(f.performanceMonitor,736),qc(function(b){return b.contentRect}));
return EK(Jm(B.ref.getBoundingClientRect()),g)}),Am(R$))}};
Fa1=function(f){return function(S){var B=S.pipe(cmj(f)),G=f.onResize;B=EK(S.pipe(qc(function(){return aaK("resize")})),B,G);
return QB(S,B).pipe(sK(f.performanceMonitor,737),qc(function(g){g=_.m(g).next().value;return g.ref===void 0?void 0:g.ref.getBoundingClientRect()}),SI9(),Am(R$))}};
vvs=function(f,S){var B=Jxj(f,S).pipe(uJ(1),HV());return function(G){return function(g){g=g.pipe(WV(function(b){return b.element}),Am());
return QB([B,g]).pipe(WV(function(b){var z=_.m(b);b=z.next().value;z=z.next().value;return PBx(f,b.intersectionObserver,Vrx(f),b.observations,G,b.flushRecords,z)}),er(f.queue))}}};
KaQ=function(f){return qc(function(S){return S.value.viewportGeometrySourceName!=="nio"?S:Object.assign({},S,{value:Object.assign({},S.value,{exposedViewportLocalGeometry:sI(f,!0),topWindowViewportExternalGeometry:sI(f,!0)})})})};
dvA=function(f,S){return Jm(S).pipe(f,qc(function(){return S}))};
Jxj=function(f,S){return f.timeProvider.timeline!==io1?PV(new Hd(2)):f.MutationObserver?typeof IntersectionObserver==="undefined"?PV(new Hd(0)):(new SN(function(B){var G=new gu,g=new DM(G.next.bind(G),{threshold:[].concat(_.$d(S))});B.next({observations:G.pipe(sK(f.performanceMonitor,735)),intersectionObserver:g,flushRecords:function(b){b=g.takeRecords(b);b.length>0&&G.next(b)}})})).pipe(pQ(1),uJ(1),HV()):PV(new Hd(1))};
Hox=function(f){return sO1(f.sort(function(S,B){return S.time-B.time}),ZXG)};
PBx=function(f,S,B,G,g,b,z){return new SN(function(X){function w(){Q||(Q=!0,z.ref!==void 0&&S.unobserve(g,z.ref),V.unsubscribe(),d.unsubscribe(),P.unsubscribe(),x.unsubscribe())}
if(z.ref!==void 0){qIV(S,g);S.observe(g,z.ref);var F=new I$({timestamp:f.timeProvider.now(),value:Object.assign({},Lo,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),V=G.pipe(rz(function(E){return Hox(E)}),LQ(function(E){return E.target===z.ref}),qc(function(E){return{timestamp:new nQ(E.time,io1),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:E.rootBounds||UI,topWindowViewportExternalGeometry:E.rootBounds||sI(f,!0),measurementRequests:J,elementGeometrySourceName:"nio",intersectionGeometry:E.intersectionRect,elementGeometry:E.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:E.isIntersecting,isV2Visible:E.isVisible}}}),ZE(F),HV()).subscribe(X),J=new gu,P=J.subscribe(function(){b(g);
X.next({timestamp:f.timeProvider.now(),value:F.value.value});z.ref!==void 0&&(S.unobserve(g,z.ref),S.observe(g,z.ref))}),d=dvA(B,z).subscribe(function(){J.next()}),Q=!1,x=z.JSC$7405_released.subscribe(function(){return w()});
return w}})};
$vN=function(f,S){var B=f.getOnBackgrounded().pipe(qc(function(){return"b"}));
return Tcs(S,B).pipe(pQ(1),bB(f.queue))};
Co=function(f){return function(S){var B;return S.pipe(lJ(function(G){return void(B=G.timestamp)}),qc(function(G){return G.value}),f,qc(function(G){return{timestamp:B,
value:G}}))}};
Q$Q=function(f){return f.intersectionGeometry.width*f.intersectionGeometry.height/(f.elementGeometry.width*f.elementGeometry.height)};
po=function(f,S,B){B=B===void 0?function(G,g){return G===g}:B;
return f.timestamp.equals(S.timestamp)&&B(f.value,S.value)};
Nv=function(f,S){return S.pipe(qc(function(B){return new Ax(f.timeProvider,{timestamp:f.timeProvider.now(),value:B})}))};
YIN=function(f){return function(S){return S.pipe(OC1(f),qc(function(B){var G=_.m(B);B=G.next().value;G=G.next().value;var g=B.value;return{timestamp:B.timestamp,value:g>=1?!0:g<=0?!1:g>=G}}))}};
j$K=function(){return os(LQ(function(f,S){return S>0}),rxQ,yB(-1),Am())};
OoT=function(f,S,B){return f?QB([S,B]).pipe(LQ(function(G){var g=_.m(G);G=g.next().value;g=g.next().value;return G.timestamp.equals(g.timestamp)}),qc(function(G){var g=_.m(G);
G=g.next().value;g=g.next().value;return G.value>g.value?G:g})):S};
LaK=function(f){return function(S){var B=S.pipe(xv1),G=S.pipe(EvT);return f instanceof SN?f.pipe(WV(function(g){return OoT(g,B,G)})):OoT(f.value,B,G)}};
NuT=function(f,S,B,G){var g=G.geometryIsOccluded,b=G.exposureThreshold,z=G.wasLargeAdAtRender,X=G.allowLargeAdThreshold,w=G.largeAdExposureThreshold,F=G.mayUseViewportShareExposure,V=G.hasMeasurementStarted;G=G.useIntersectionObserverV2;S=kWN(f,B,S);B=nvQ(f,B);G=s$Q(S,G);var J=Dvs(f,g,F,S),P=J.pipe(qc(function(a){return a.value}),Am(),bB(f),as(function(a,l){return Math.max(a,l)},0)),d=J.pipe(qc(function(a){return a.value}),j$K(),bB(f)),Q=S.pipe(IMQ,qc(function(a){return a.value}),pQ(2),Am(),bB(f));
z=UvQ(f,S,z,X);var x=z.pipe(yB(!1),Am(),qc(function(a){return a?w:b}));
X=J.pipe(YIN(x),Am(),bB(f));var E=QB([X,S]).pipe(LQ(function(a){var l=_.m(a);a=l.next().value;l=l.next().value;return a.timestamp.equals(l.timestamp)}),qc(function(a){var l=_.m(a);
a=l.next().value;l=l.next().value;return{visible:a.value,geometry:l.value.elementGeometry}}),as(function(a,l){return!l.visible&&a.visible?a:l},{visible:!1,
geometry:UI}),qc(function(a){return a.geometry}),yB(UI),bB(f),Am(R$));
F=F instanceof SN?F.pipe(Am(),UK()):iB;x=QB([F,x]).pipe(UK());var U=S.pipe(LQ(function(a){return a.value.viewportGeometrySourceName!=="ns"&&a.value.elementGeometrySourceName!=="ns"}),as(function(a){return a+1},0),yB(0),bB(f)),A=B.pipe(UK(!0),yB(!1),bB(f));
A=QB([V,A]).pipe(qc(function(a){var l=_.m(a);a=l.next().value;l=l.next().value;return a&&!l}),bB(f));
var t=S.pipe(CBx,Am()),M=t.pipe(qc(function(a){return a.value}),as(function(a,l){return Math.max(a,l)},0),Am(),bB(f));
f=t.pipe(qc(function(a){return a.value}),j$K(),bB(f));
return{shouldResetExposureSignals:F,shouldResetViewabilitySignals:x,geometrySignals:{readyGeometryWithDefault:S,measurementStrategy:S.pipe(pdV),creativePosition:E.pipe(Am(R$)),visible:X.pipe(Am(po)),timestampedExposure:J.pipe(Am(po)),maximumExposure:P,minimumExposure:d,browserSize:S.pipe(Ax1,Am(_.m6)),timestampedScreenShare:t,maxScreenShare:M,minScreenShare:f,geometricMeasurementErrors:B,measurementRequests:S.pipe(qc(function(a){return a.value.measurementRequests})),
isLargeAd:z,geometryIsOccluded:g,hasMeasurementStarted:V,geometryMeasurable:A,validMeasurementCount:U,loadTimeExposure:Q,v2VisibilityBitVector:G}}};
nvQ=function(f,S){return S.pipe(LQ(function(){return!1}),qc(function(B){return B}),DE(function(B){return Mv(new zW(B),f)}))};
kWN=function(f,S,B){return S.pipe(woW(iB),bB(f)).pipe(Am(function(G,g){return po(G,g,RQ1)}),yB({timestamp:B.now(),
value:Lo}),bB(f))};
Dvs=function(f,S,B,G){B=G.pipe(LaK(B),Co(qc(function(g){return Math.round(g*100)/100})),bB(f));
return S instanceof zW?B:QB([B,S]).pipe(qc(function(g){var b=_.m(g);g=b.next().value;b=b.next().value;return{timestamp:b.timestamp.maximum(g.timestamp),value:b.value?0:g.value}}),Am(po),bB(f))};
UvQ=function(f,S,B,G){S=[S.pipe(qc(function(g){return g.value.elementGeometry.width*g.value.elementGeometry.height>=242500}))];
B instanceof SN&&S.push(B.pipe(qc(function(g){return!!g})));
B=QB(S);return G?B.pipe(qc(function(g){return g.some(function(b){return b})}),yB(!1),Am(),bB(f)):Mv(new zW(!1),f)};
s$Q=function(f,S){f=QB([f,S]).pipe(qc(function(g){var b=_.m(g);g=b.next().value;if(b.next().value&&g.value.isIntersecting)return g.value.isV2Visible}),Am());
var B=f.pipe(qc(function(g){return g===void 0?!0:g}),as(function(g,b){return g||!b},!1)),G=f.pipe(as(function(g,b){return b===void 0?g:b?!1:g!=null?g:!0},void 0),qc(function(g){return!!g}));
return QB([S,Fgj(f,B,G)]).pipe(qc(function(g){var b=_.m(g);g=b.next().value;var z=_.m(b.next().value);b=z.next().value;var X=z.next().value;z=z.next().value;var w=0;if(!g)return 0;if(b===void 0)return 16;b&&(w|=1);b||(w|=2);X&&(w|=4);z&&(w|=8);return w}))};
urN=function(f,S,B,G,g){var b=ZM.timeThresholdMs;var z=z===void 0?new MrA(S,G):z;return(new SN(function(X){var w=B.pipe(yB(void 0),WV(function(){return ZoG(g)})).pipe(qc(function(F){var V=F.value;
F=F.timestamp;var J=V.visible;V=V.consecutiveViewTime;var P=V>=b;P||!J?tx(z):(F=Math.max(0,kd(S.now(),F)),trT(z,Math.max(0,b-V-F)));return P}),as(function(F,V){return V||F},!1),Am()).subscribe(X);
return function(){z.dispose();w.unsubscribe()}})).pipe(cV(function(X){return!X},!0),bB(f))};
ZoG=function(f){return GWj([f,f.pipe(zQx())]).pipe(qc(function(S){var B=_.m(S);S=B.next().value;B=B.next().value;return{timestamp:S.timestamp,value:{visible:S.value,consecutiveViewTime:B.value}}}),Am(function(S,B){return po(S,B,function(G,g){return G.consecutiveViewTime===g.consecutiveViewTime&&G.visible===g.visible})}))};
aM1=function(){return os(boG(),as(function(f,S){return Math.max(f,S)},0),qc(function(f){return Math.round(f)}))};
yxG=function(f){return os(YIN(Jm(f)),aM1())};
WaV=function(f,S){return S instanceof SN?S.pipe(WV(function(B){return(B=B?15:null)?PV(new Hd(B)):f})):(S=S.value?15:null)?PV(new Hd(S)):f};
cx1=function(f){var S=new Hd(13);if(f.length<1)return{chain:xd,capturedErrors:xd};var B=new gu,G=f[0];return{chain:f.slice(1).reduce(function(g,b){return g.pipe(DE(function(z){B.next(z);return b}))},G).pipe(DE(function(g){B.next(g);
return PV(S)}),ZE(new gu),HV()),
capturedErrors:B}};
lM1=function(f,S){var B=f.pipe(ZE(new gu),HV());return WV(function(G){return B.pipe(S(G))})};
oAM=function(f,S){if(f.inCrossDomainIframe)return PV(new Hd(6));var B=new gu;return EK(Jm({}),S,B).pipe(qc(function(){return{timestamp:f.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:fL1(f),topWindowViewportExternalGeometry:sI(f,!0),measurementRequests:B,viewportLocalAppOffset:{x:0,y:0}}}}),er(f.queue))};
fL1=function(f){var S=sI(f,!1);if(!f.inIframe||!uB(f.global.parent)||f.global.parent===f.global)return S;var B=new a$(f.global.parent,f.debugChannel);B.beaconFactory=f.beaconFactory;B=fL1(B);f=f.global.frameElement.getBoundingClientRect();return Fr1(VN9(Fr1(B,f),{x:S.left-f.left,y:S.top-f.top}),S)};
SbN=function(f){if(f.prerendering)return 3;var S;return(S={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[f.visibilityState||f.webkitVisibilityState||f.mozVisibilityState||""])!=null?S:0};
Bj1=function(f){return f.document.JSC$7416_onVisibilityChange.pipe(qc(function(S){return S==="visible"}),Am(),bB(f.queue))};
GSV=function(f,S,B){var G;return S.pipe(Am(),WV(function(g){return B.pipe(qc(function(){if(!G){G=!0;try{g.next()}finally{G=!1}}return!0}))}),yB(!1),bB(f.queue))};
gAA=function(f){return os(Co(qc(function(S){return S>=1?!0:S<=0?!1:S>=f})),eQN(),qc(function(S){return Math.round(S)}))};
bSx=function(f,S,B,G,g){var b=eeT;if(b.length>1)for(var z=0;z<b.length-1;z++)if(b[z]<b[z+1])throw Error();z=g.pipe(yB(void 0),WV(function(){return B.pipe(zQx())}),Am(),bB(f));
g=g.pipe(yB(void 0),WV(function(){return B.pipe(aM1())}),Am(),bB(f));
return{totalMeasurementTime:G.pipe(yB(void 0),WV(function(){return S.pipe(qc(function(X){return{timestamp:X.timestamp,value:!0}}),eQN())}),Am(),bB(f)),
totalUnviewedTime:G.pipe(yB(void 0),WV(function(){return S.pipe(qc(function(X){return{timestamp:X.timestamp,value:X.value===0}}),eQN())}),Am(),bB(f)),
maxTimeOnScreen:G.pipe(yB(void 0),WV(function(){return S.pipe(mvN(yxG,b))}),Am(_.m6),bB(f)),
timeOnScreen:G.pipe(yB(void 0),WV(function(){return S.pipe(mvN(gAA,b),qc(function(X){return X.map(function(w,F){return F>0?w-X[F-1]:w})}))}),Am(_.m6),bB(f)),
maxConsecutiveViewTime:g,consecutiveViewTime:z.pipe(Am(po),bB(f))}};
zeK=function(f){var S=!0;S=S===void 0?!1:S;return os(WV(function(B){return mRW(f.document,B,S)}),bB(f.queue))};
ReG=function(f,S,B){var G=B.pipe(qc(function(g){return{value:g,timestamp:f.timeProvider.now()}}),Am(po));
return S instanceof SN?S.pipe(Am(),WV(function(g){return g?Mv(new zW({value:!1,timestamp:f.timeProvider.now()}),f.queue):G})):S.value===!1?G:new zW(!1)};
Xv1=function(f,S,B,G,g,b,z){var X=ZM;S=S instanceof SN?S.pipe(yB(!1),Am()):S;var w=!f.isMobile();B=ReG(f,B,G);f=z.measurableCreative.pipe(BuN(f.queue));return Object.assign({},X,{geometryIsOccluded:B,wasLargeAdAtRender:g,allowLargeAdThreshold:w,mayUseViewportShareExposure:S,hasMeasurementStarted:f,useIntersectionObserverV2:b})};
heT=function(f,S,B,G,g,b){var z=1;b=b===void 0?!0:b;z=z===void 0?.01:z;var X=X===void 0?f.timeProvider.intervalObservable(100).pipe(bB(f.queue)):X;return f.performanceMonitor.timeExecution(916,function(){return wvG(f,S.pipe(er(f.queue)),B.pipe(er(f.queue)),G,g,b,z,X)})()};
wvG=function(f,S,B,G,g,b,z,X){var w=Bj1(f).pipe(qc(function(V){return!V})),F=new TjT(f,[new FoK(f,eeT),
new VIN(f,X)]);X=tNN(Jas,P5K);return Ucs(f,S,function(V,J){var P=Mv(new zW(J.element),V.queue).pipe(zeK(V),bB(V.queue)),d={loadedElement:P,shouldMeasure:P.pipe(UK(!0)),measurableCreative:P.pipe(qc(function(a){var l=l===void 0?Symbol():l;return Object.freeze({symbol:l,element:Mv(new zW(a),V.queue)})})),
creativeSearchResult:Mv(new zW("mue"),V.queue)},Q=new zW(!1),x=new zW(!1),E=new zW(17),U=new zW(!1),A=new zW(!1),t=Mv(yq,V.queue);Q=F.buildGeometrySource(d,{inApp:Q,useV2:!1,requestSource:Mv(E,V.queue)}).geometrySource;d=Xv1(V,U,x,w,A,t,d);x=NuT(V.queue,V.timeProvider,Q,d);d=x.geometrySignals;U=x.shouldResetViewabilitySignals;x=bSx(V.queue,d.timestampedExposure,d.visible,x.shouldResetExposureSignals,U);U=urN(V.queue,V.timeProvider,U,d.measurementRequests,d.visible);A=B.pipe(LQ(function(a){return a===
J.element.ref}),qc(function(){return"ur"}));
t=v6x(V.timeProvider,g).pipe(UK("t"));A=$vN(V,EK(A,t));t=GSV(V,d.measurementRequests,A.pipe(LQ(function(a){return a!==null})));
Q=A.pipe(LQ(function(a){return a!==null}),qc(function(){return SbN(V.global.document)===1}));
var M=vAN(V.document);return Object.assign({},{beaconFactory:new zW(V.beaconFactory),context:new zW(V),inferredPingId:new zW("lidar2"),timeOnScreenPingId:new zW("lidartos"),binaryContext:new zW(17),binaryVersion:new zW(G),requestSource:E,contextValidationErrors:new zW(V.validate()?null:new qv),contextVisibilityKnown:new zW(M),payloadMapper:new zW(MNA),endOfSessionReason:A,timeOnScreenReason:A,requestMeasurementOnEndOfSession:t,hasImpressionFired:Ko1,crossDomainIframeState:new zW(V.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:yq,inFetchLaterBeaconExperiment:yq,isTurtlex:yq,turtlexReportEventData:new zW(""),reportFencedFrameEvent:iB,isViewableAttributionEnabled:yq,inViewableAttributionExperiment:new zW(0),fetchBeaconFactory:iB,supportsPendingBeacon:yq,supportsFetchLater:yq,emit:new zW(ymA),beginToRenderEvent:new zW(Symbol()),activeViewUnmeasurableEvent:new zW(Symbol()),activeViewViewableEvent:new zW(Symbol()),creativeFound:Ko1,immediateUrlPrefixes:new zW(J.immediateUrls),timeOnScreenUrlPrefixes:new zW(J.timeOnScreenUrls),
cpmavUrls:iB,viewableRelayUrls:iB,measurementDeferralState:new zW(2),urlSerializer:new zW(ovM),viewUrlSerializer:new zW(dRN),isCreativeLoaded:P.pipe(BuN(V.queue)),pageVisible:w.pipe(qc(function(a){return!a})),
eosPageVisible:Q,timestampedExposureHistory:d.timestampedExposure.pipe(as(function(a,l){a.push(l);return a},[]))},d,{viewable:Nv(V,U),
maxTimeOnScreen:Nv(V,x.maxTimeOnScreen),timeOnScreen:Nv(V,x.timeOnScreen),maxConsecutiveViewTime:Nv(V,x.maxConsecutiveViewTime),consecutiveViewTime:x.consecutiveViewTime.pipe(qc(function(a){return new Ax(V.timeProvider,a)})),
totalMeasurementTime:Nv(V,x.totalMeasurementTime),totalUnviewedTime:Nv(V,x.totalUnviewedTime),userAgentClientHints:u6x(V),clientOrderPingCounter:new zW(new pV1)})},ZQM(f,z),uzK(b?aEV(X,iSs):aEV(X,HST),qbT))};
$Rs=function(f){var S=_.qb.apply(1,arguments).filter(Boolean).join("&");if(!S)return f;var B=f.match(/[?&]adurl=/);return B?f.slice(0,B.index+1)+S+"&"+f.slice(B.index+1):f+(f.indexOf("?")<0?"?":"&")+S};
Wd=function(f,S){return S?"&"+f+"="+encodeURIComponent(S):""};
QKK=function(){try{var f,S;return!!((f=window)==null?0:(S=f.top)==null?0:S.location.href)&&!1}catch(B){return!0}};
_.cd=function(f){f&&typeof f.dispose=="function"&&f.dispose()};
_.lB=function(f){for(var S=0,B=arguments.length;S<B;++S){var G=arguments[S];_.W9(G)?_.lB.apply(null,G):_.cd(G)}};
ra1=function(){var f=YbQ();f=f===void 0?"bevasrsg":f;return new Promise(function(S){var B=window===window.top?window:QKK()?window:window.top,G=B[f],g;((g=G)==null?0:g.bevasrs)?S(new fS(G.bevasrs)):(G||(G={},G=(G.nqfbel=[],G),B[f]=G),G.nqfbel.push(function(b){S(new fS(b))}))})};
jKN=function(f){var S={c:f.rU,e:f.qsV,mc:f.sPt,me:f.dCy};f.wC&&(S.co={c:f.wC.qGV,a:f.wC.u35,s:f.wC.pWw});return S};
OSV=function(f){var S,B,G={rU:f.c,qsV:f.e,sPt:(S=f.mc)!=null?S:!1,dCy:(B=f.me)!=null?B:!1};f.co&&(G.wC={qGV:f.co.c,u35:f.co.a,pWw:f.co.s});return G};
xRx=function(f){return function(){var S;return _.R(function(B){if(B.nextAddress==1)return _.h(B,f(),2);S=B.yieldResult;return B.return({f:function(){return S.xiY()},
c:function(G){return S.ziy(G)},
m:function(G){return S.cV(OSV(G))},
mws:function(G){return S.tQ(OSV(G))}})})}};
EAT=function(f,S){var B=YbQ();B=B===void 0?"bevasrsg":B;S={s:function(b){var z;return f.snapshot(Object.assign({},b.c&&{rU:b.c},b.s&&{qU4:b.s},{p9D:(z=b.p)!=null?z:!0}))},
e:function(b){var z;return void((z=f.z6F)==null?void 0:z.call(f,b))},
c:function(b,z){return f.qXJ(b,z)},
p:f.rO9,l:function(){return f.jKD()},
wpc:S?xRx(S):void 0};var G=window===window.top?window:QKK()?window:window.top,g=G[B];if(g){g.bevasrs=S;if(g.nqfbel!==void 0)for(B=_.m(g.nqfbel),G=B.next();!G.done;G=B.next())G=G.value,G(S);g.nqfbel=void 0}else g={},g=(g.bevasrs=S,g.nqfbel=void 0,g),G[B]=g};
kSN=function(f){var S=S===void 0?49:S;var B=[];_.oK(f,Lox,6,_.SI()).forEach(function(G){_.Bv(G,2)<=S&&B.push(_.Bv(G,1))});
return B};
nAK=function(f){var S=S===void 0?49:S;var B=[];_.oK(f,Lox,6,_.SI()).forEach(function(G){_.Bv(G,2)>S&&B.push(_.Bv(G,1))});
return B};
sKs=function(f){f.then(function(){},function(){})};
GS=function(f){return{fieldType:1,fieldName:f}};
gj=function(f){return{fieldType:2,fieldName:f}};
_.eI=function(f){return{fieldType:3,fieldName:f}};
DR9=function(){function f(){g[0]=1732584193;g[1]=4023233417;g[2]=2562383102;g[3]=271733878;g[4]=3285377520;V=F=0}
function S(J){for(var P=z,d=0;d<64;d+=4)P[d/4]=J[d]<<24|J[d+1]<<16|J[d+2]<<8|J[d+3];for(d=16;d<80;d++)J=P[d-3]^P[d-8]^P[d-14]^P[d-16],P[d]=(J<<1|J>>>31)&4294967295;J=g[0];var Q=g[1],x=g[2],E=g[3],U=g[4];for(d=0;d<80;d++){if(d<40)if(d<20){var A=E^Q&(x^E);var t=1518500249}else A=Q^x^E,t=1859775393;else d<60?(A=Q&x|E&(Q|x),t=2400959708):(A=Q^x^E,t=3395469782);A=((J<<5|J>>>27)&4294967295)+A+U+t+P[d]&4294967295;U=E;E=x;x=(Q<<30|Q>>>2)&4294967295;Q=J;J=A}g[0]=g[0]+J&4294967295;g[1]=g[1]+Q&4294967295;g[2]=
g[2]+x&4294967295;g[3]=g[3]+E&4294967295;g[4]=g[4]+U&4294967295}
function B(J,P){if(typeof J==="string"){J=unescape(encodeURIComponent(J));for(var d=[],Q=0,x=J.length;Q<x;++Q)d.push(J.charCodeAt(Q));J=d}P||(P=J.length);d=0;if(F==0)for(;d+64<P;)S(J.slice(d,d+64)),d+=64,V+=64;for(;d<P;)if(b[F++]=J[d++],V++,F==64)for(F=0,S(b);d+64<P;)S(J.slice(d,d+64)),d+=64,V+=64}
function G(){var J=[],P=V*8;F<56?B(X,56-F):B(X,64-(F-56));for(var d=63;d>=56;d--)b[d]=P&255,P>>>=8;S(b);for(d=P=0;d<5;d++)for(var Q=24;Q>=0;Q-=8)J[P++]=g[d]>>Q&255;return J}
for(var g=[],b=[],z=[],X=[128],w=1;w<64;++w)X[w]=0;var F,V;f();return{reset:f,update:B,digest:G,digestString:function(){for(var J=G(),P="",d=0;d<J.length;d++)P+="0123456789ABCDEF".charAt(Math.floor(J[d]/16))+"0123456789ABCDEF".charAt(J[d]%16);return P}}};
AaQ=function(f,S){S=S===void 0?ILA:S;if(!UR9){var B;f=(B=f.navigator)==null?void 0:B.userAgentData;if(!f||typeof f.getHighEntropyValues!=="function"||f.brands&&typeof f.brands.map!=="function")return Promise.reject(Error("za"));C5W((f.brands||[]).map(function(g){var b=new pvA;b=_.Jx(b,1,g.brand);return _.Jx(b,2,g.version)}));
typeof f.mobile==="boolean"&&_.b5(mo,2,f.mobile);UR9=f.getHighEntropyValues(S)}var G=new Set(S);return UR9.then(function(g){var b=mo.clone();G.has("platform")&&_.Jx(b,3,g.platform);G.has("platformVersion")&&_.Jx(b,4,g.platformVersion);G.has("architecture")&&_.Jx(b,5,g.architecture);G.has("model")&&_.Jx(b,6,g.model);G.has("uaFullVersion")&&_.Jx(b,7,g.uaFullVersion);return b.serialize()}).catch(function(){return mo.serialize()})};
zS=function(f,S,B,G){this.initialValue_=f;this.maxValue_=S;this.currBaseValue_=this.currValue_=f;this.randomFactor_=B||0;this.backoffFactor_=G||2};
RK=function(f){this.src=f;this.listeners={};this.typeCount_=0};
tIM=function(){for(var f;f=NjM.remove();){try{f.fn.call(f.scope)}catch(S){B9(S)}MIK.put(f)}ZSj=!1};
_.X9=function(f){switch(f){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}};
u91=function(f){switch(f){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""}};
_.aLx=function(){};
G1x=function(f,S,B,G){f=yaN(WoG(caM(new _.wj(1828,"0"),f),new lLG));S.length&&fxG(f,op1(new Sv9,S));G!==void 0&&(f.destinationUrl=G);var g=new BA1(1828,"","",!1,"",f.build());_.ha(g,f);var b=new TS({flush:function(z){try{g.flush(z)}catch(X){B(X)}}});
b.addOnDisposeCallback(function(){setTimeout(function(){try{b.snapshotAndFlush()}finally{g.dispose()}})});
b.invocationLimit=1E5;b.flushInterval=3E4;b.JSC$7832_flushTimer.setInterval(3E4);return b};
F9=function(){var f,S,B;return(B=(f=globalThis.performance)==null?void 0:(S=f.now)==null?void 0:S.call(f))!=null?B:Date.now()};
bjW=function(f,S){if(f.disable)return new gpV;S=S?kSN(S):[];f={oB:f.oB,lUv:f.omw,fVg:f.bFI,destinationUrl:f.destinationUrl,jEn:f.jEn,lCV:f.lCV};S=S===void 0?[]:S;return new evM(f,S)};
m9K=function(f){if(!f)return null;f=_.Vf(f,2);return f===null||f===void 0?null:jZ(f)};
_.zvQ=function(f){if(!f)return null;f=_.Vf(f,4);return f===null||f===void 0?null:_.zC(f)};
wWN=function(f,S){return S?Rv9(S):f?XWN(f):Promise.resolve()};
Rv9=function(f){return new Promise(function(S,B){var G=_.Ja("SCRIPT"),g=_.zvQ(f);_.CC(G,g);G.onload=function(){_.Pv(G);S()};
G.onerror=function(){_.Pv(G);B(Error("Ka"))};
(KS("HEAD")[0]||document.documentElement).appendChild(G)})};
XWN=function(f){return new Promise(function(S){var B=_.Ja("SCRIPT");if(f){var G=_.Vf(f,6);G=G===null||G===void 0?null:_.Da(G)}else G=null;_.UQ(B,G);(KS("HEAD")[0]||document.documentElement).appendChild(B);_.Pv(B);S()})};
dj=function(f,S,B){var G,g=new Promise(function(b){G=setTimeout(b,S)});
return Promise.race([f.finally(function(){return void clearTimeout(G)}),
g.then(B)])};
hvW=function(f,S){try{return globalThis.sessionStorage.setItem(f,S),!0}catch(B){return!1}};
x9N=function(f,S,B,G){S=S===void 0?0:S;B=B===void 0?f.length:B;var g=0;for(G&&(g=x9N(G));S<B;S++)G=typeof f==="string"?f.charCodeAt(S):f[S],g=Ep1(31,g)+G|0;return g};
L8Q=function(f,S){return[x9N(f,0,f.length>>1,S),x9N(f,f.length>>1)]};
k1s=function(f){var S=_.m(L8Q(f,i5));f=S.next().value;S=S.next().value;return f.toString(16)+S.toString(16)};
npQ=function(f,S){var B=L8Q(S);f=new Uint32Array(f.buffer);S=f[0];var G=_.m(B);B=G.next().value;G=G.next().value;for(var g=1;g<f.length;g+=2){for(var b=S,z=g,X=B,w=G,F=0;F<22;F++)z=z>>>8|z<<24,z+=b|0,z^=X+38293,b=b<<3|b>>>29,b^=z,w=w>>>8|w<<24,w+=X|0,w^=F+38293,X=X<<3|X>>>29,X^=w;b=[b,z];f[g]^=b[0];g+1<f.length&&(f[g+1]^=b[1])}};
s0W=function(f,S,B,G,g){var b=(4-(i5.length+B.length)%4)%4,z=new Uint8Array(4+b+i5.length+4+B.length),X=new DataView(z.buffer),w=0;X.setUint32(w,Math.random()*4294967295);w=w+4+b;z.set(i5,w);w+=i5.length;X.setUint32(w,g);z.set(B,w+4);npQ(z,G);return f.insert(S,function(F){return void globalThis.sessionStorage.removeItem(F)})?hvW(S,_.oO(z))?"s":"t":"i"};
D9V=function(f,S){var B=globalThis.sessionStorage.getItem(f);if(!B)return["m"];try{var G=_.Rg(B);npQ(G,S)}catch(g){return globalThis.sessionStorage.removeItem(f),["c"]}for(S=4;S<7&&G[S]===0;)S++;for(B=0;B<i5.length;B++)if(G[S++]!==i5[B])return globalThis.sessionStorage.removeItem(f),["d"];B=(new DataView(G.buffer)).getUint32(S);return Math.floor(Date.now()/1E3)>=B?(globalThis.sessionStorage.removeItem(f),["e"]):["a",new Uint8Array(G.buffer,S+4)]};
IxQ=function(f){return globalThis.TextEncoder?(new TextEncoder).encode(f):_.Hv(f)};
U9x=function(f){var S=f,B;return function(){if(S){var G=S;S=void 0;B=G.apply(this,arguments)}return B}};
pW1=function(f){return A1(function(S){if(S instanceof f)return!0;var B,G,g=S==null?void 0:(B=S.ownerDocument)==null?void 0:(G=B.defaultView)==null?void 0:G[f.name];return CvK(g)&&S instanceof g})};
_.Qf=function(f,S,B){_.qR.call(this);this.JSC$8045_listener_=f;this.JSC$8045_interval_=S||0;this.handler_=B;this.callback_=(0,_.$A)(this.JSC$8047_doAction_,this)};
_.YA=function(f){f=Aj1(f);return _.zC(f)};
Aj1=function(f){return f===null?"null":f===void 0?"undefined":f};
MpT=function(f){if(f&&f.focus)if(f!==document.activeElement)f.focus();else return NAQ(function(){return _.R(function(S){document.activeElement&&document.activeElement.blur();return S.return(NAQ(function(){f.focus()}))})})};
_.ZjG=function(f){var S=S===void 0?5:S;setTimeout(function(){var B;return _.R(function(G){G.nextAddress==1&&(B=document.activeElement);if(G.nextAddress!=5)return(document.activeElement===B||document.activeElement===document.body)&&S>=0&&f?_.h(G,MpT(f),5):G.jumpTo(0);if(document.activeElement===f)return G.return();f=f.parentElement;--S;return G.jumpTo(2)})},15)};
NAQ=function(f){return new Promise(function(S){requestAnimationFrame(function(){S(f())})})};
uEV=function(f){if(_.rj)f(_.rj);else{var S;((S=tpj)!=null?S:tpj=[]).push(f)}};
Ob=function(){!_.rj&&_.jI&&_.axN(_.jI());return _.rj};
_.axN=function(f){_.rj=f;var S;(S=tpj)==null||S.forEach(uEV);tpj=void 0};
_.xA=function(f){_.rj&&_.rj.beforeLoadModuleCode(f)};
_.Eb=function(){_.rj&&_.rj.JSC$9001_setLoaded()};
LS=function(f){return nY(f)?Number(f):String(f)};
yjN=function(f){this.action=f;this.wfv=!1};
W8W=function(f,S){yjN.call(this,"set-drive-options");this.appId=f;this.appOrigin=S};
cjK=function(f){yjN.call(this,"visibility");this.visible=f};
lxN=function(f,S,B){kA.call(this,f,S,B)};
ft9=function(f){nS.call(this,f)};
o5V=function(f){f=f&&f.getWindow()||window;return f.gadgets&&f.gadgets.rpc};
BgW=function(f,S){var B=S&&S.getWindow()||window;if(o5V(S))f();else if(S61)S61.push(f);else var G=S61=[f],g=B.setInterval(function(){if(o5V(S)){B.clearInterval(g);for(var b=0;b<G.length;b++)G[b]();S61=null}},100)};
g5G=function(f,S){var B=new sb(f);_.ha(S,B);var G={passive:!1};S.listen(B,"mousewheel",function(g){return void G8G(f,g)},G).listen(f,"scroll",function(g){return void G8G(f,g)},G)};
G8G=function(f,S){var B;a:{for(B=S.target;B;){if(B.nodeType==1){var G=_.DL(B,"overflowY");if(G=="auto"||G=="scroll")break a}B=B.parentNode}B=null}if(!B||!_.CS(f,B)||B.scrollHeight==B.clientHeight||S.deltaY>0&&Math.abs(B.scrollTop-(B.scrollHeight-B.clientHeight))<=1||S.deltaY<0&&B.scrollTop==0)S.preventDefault(),S.stopPropagation()};
u5=function(f,S,B,G,g,b,z,X,w){X=X===void 0?!1:X;w=w===void 0?!1:w;kA.call(this,void 0,void 0,void 0);kA.call(this,b?b+" picker modal-dialog":"picker modal-dialog",!0,B);_.pS(f,"protocol");this.iframeManager_=new ens;this.targetId_=Aa();this.rpcToken_=Aa();f=_.NR(f);_.MR(f,"hostId");B=_.MR(f,"parent");this.useGapi_=!w&&!0||(B==null?void 0:B.includes("onepick.corp.google.com"));X&&_.ZL(f,"fv2","true");this.setUrl(f.toString());this.preferredDialogWidth_=G;this.preferredDialogHeight_=g;G!==void 0||
g!==void 0?G=!0:(G=_.MR(_.NR(f.toString()),"hostId"),bLx||(bLx=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),G=!bLx.has(G));this.autoSizeDialog_=G;this.JSC$8235_gadgetsDomHelper_=z||this.JSC$8186_dom_;S&&(z=this.JSC$8235_gadgetsDomHelper_,S=_.MR(_.NR(this.JSC$8237_url_),"grugl")=="true"?mpN:znM,o5V(z)||(z=z||Vq(document),G=z.createElement("SCRIPT"),_.CC(G,S),G.type="text/javascript",z.JSC$7371_document_.body.appendChild(G)));
f=f.toString();S=null;z=f.indexOf("/picker?");z>-1?S=f.substring(0,z+8-1):e1(f,"/picker")&&(S=f);S&&this.setRelayUrl(S+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(f=this.buttons_,f.JSC$8220_element_=this.buttonEl_,f.render()):_.pC(this.buttonEl_,Rns),_.ta(this.buttonEl_,!!this.buttons_))};
_.Tgs=function(f){var S=S===void 0?Xfx:S;var B=_.Sm(f),G=function(b){b=_.m(b);b.next();b=aK(b);return S(B,b)},g=function(b){var z=_.m(b);
b=z.next().value;z=aK(z);return f.apply(b,z)};
return function(){var b=_.qb.apply(0,arguments),z=this||_.S1,X=wfQ.get(z);X||(X={},wfQ.set(z,X));return hn1(X,[this].concat(_.$d(b)),g,G)}};
yf=function(f){var S={};f=f.replace(/\r/g,"").split("\n");for(var B=0;B<f.length;B++){var G=f[B],g=G.indexOf(":");g<0||(S[G.substring(0,g)]=G.substring(g+2,G.length))}return S};
Wv=function(f,S,B){B=B===void 0?function(){}:B;
return f?S():B()};
_.V9s=function(f){var S;return((S=FCA.documentOverride)!=null?S:f).__wizdispatcher};
_.l5=function(f){var S=cv;cv=f;return S};
P0M=function(f){return f===JAV||(f==null?void 0:f.name)==="\u0275NotFound"};
v5A=function(f,S){var B;if((B=f)==null?0:B.isDisposed)throw Error("ob`"+String(f.debugName));for(;f!==void 0;){B=f;if(B.retrieve)return B.retrieve(S,{optional:!0});f=f.parent}return JAV};
fj=function(f){return{"\u0275prov":{providedIn:"root",token:Symbol(f),factory:void 0,value:void 0}}};
_.KCN=function(f){var S=cv;if(!S){switch(f===void 0?3:f){case 0:f=Error("nb");break;case 1:f=Error("pb");break;case 2:f=Error("qb");break;default:f=Error("rb")}throw f;}return S};
dpN=function(f){var S=_.l5(f);f={};return f[Symbol.dispose]=function(){_.l5(S)},f};
iLK=function(f,S){f.disposables||(f.disposables=[]);f.disposables.push(S)};
o0=function(f){var S=cv;S&&!S.isDisposed&&(iLK(S,f),f.parent=S)};
q6K=function(f){if(f.disposables){for(var S=_.m(f.disposables),B=S.next();!B.done;B=S.next())B=B.value,typeof B==="function"?B():HLV(B);f.disposables.length=0}};
HLV=function(f){if(!f.isDisposed){f.isDisposed=!0;var S;(S=f[Symbol.dispose])==null||S.call(f);delete f.parent;q6K(f)}};
LCV=function(f){var S={retrieve:function(B){switch(B.\u0275prov.token){case $pK.\u0275prov.token:var G=f.asyncDeps;break;case Qj9.\u0275prov.token:G=f.rootElement;break;case Y6Q.\u0275prov.token:G=f.modelRootElement;break;case rAj.\u0275prov.token:G=f.appContext;break;case jjK.\u0275prov.token:G=f.rendererData;break;case OLM.\u0275prov.token:G=f.injectingConstructor;break;case xpV.\u0275prov.token:G=f.dispatcher}if(G)B=G;else a:{for(G=S.parent;G;){var g=G;if(g.retrieve){B=g.retrieve(B);break a}G=
G.parent}G=B.\u0275prov.token;g=E51[G];g!==void 0?B=g:(g=B.\u0275prov.providedIn,B.\u0275prov.factory?(B=B.\u0275prov.factory(),G&&g==="root"&&(E51[G]=B)):B=JAV)}return B}};
o0(S);return S};
k8A=function(){var f=_.KCN(1),S=v5A(f,rAj);P0M(S)&&(f=v5A(f,xpV),P0M(f)||f.getOptionalAppContext())};
n5N=function(f){if(typeof document!=="undefined"&&document&&document.getElementById&&(f=document.getElementById(f))){var S=f.tagName.toUpperCase();if(S=="SCRIPT"||S=="LINK")return f}return null};
Dpj=function(f,S){if((f=f===void 0?"":f)&&S)throw Error("xb");var B="";var G=_.S1._F_jsUrl;(f=S||n5N(f))&&(B=f.src?f.src:f.getAttribute("href"));if(G&&B){if(G!=B)throw Error("yb`"+G+"`"+B);B=G}else B=G||B;if(!sjx(B))throw Error("zb");return B};
pfT=function(){if(!ItA){ItA=!0;try{var f=Dpj(_.S1._F_jsUrl?"":"base-js")}catch(G){return}var S=Up9(C0K(f)),B=Object.keys(S);B.length!==0&&uEV(function(G){for(var g=_.m(B),b=g.next();!b.done;b=g.next()){b=b.value;for(var z=_.m(Object.keys(S[b])),X=z.next();!X.done;X=z.next())G.addExtraEdge(b,X.value)}})}};
NgV=function(){var f=Object.assign({},AAx);Object.getOwnPropertyNames(AAx).forEach(function(S){_.Sp[S]!==void 0&&(f[S]=_.Sp[S])});
return f};
M9j=function(f,S){if(_.Sp.enablePerformanceTiming){var B,G;(G=(B=performance).mark)==null||G.call(B,f+"Start__"+S)}};
ZLW=function(f,S){if(_.Sp.enablePerformanceTiming){var B,G;(G=(B=performance).measure)==null||G.call(B,f+"__"+S,f+"Start__"+S)}};
t9G=function(f,S,B){var G;return f&&S?f+"__"+S:(G=f!=null?f:S)!=null?G:B};
atM=function(f,S){var B=Object.create(uqM);B.debugName=S;!cv||o0(B);S=_.l5(B);try{f(B)}finally{_.l5(S)}return function(){return void HLV(B)}};
WCN=function(f){return BW(f)&&yAN in f};
cA1=function(f,S){return Object.is(f,S)};
gA=function(f){var S=G1;G1=f;return S};
SZV=function(f){if(ep)throw Error("da");if(G1!==null){var S=G1.nextProducerIndex++;ltj(G1);S<G1.producerNode.length&&G1.producerNode[S]!==f&&bv(G1)&&fzT(G1.producerNode[S],G1.producerIndexOfThis[S]);G1.producerNode[S]!==f&&(G1.producerNode[S]=f,G1.producerIndexOfThis[S]=bv(G1)?o0s(f,G1,S):0);G1.producerLastReadVersion[S]=f.version}};
g0G=function(f){if(!bv(f)||f.dirty)if(f.dirty||f.lastCleanEpoch!==BOW)(f.producerMustRecompute(f)||GtA(f))&&f.producerRecomputeValue(f),f.dirty=!1,f.lastCleanEpoch=BOW};
ePA=function(f){if(f.liveConsumerNode!==void 0){var S=ep;ep=!0;try{for(var B=_.m(f.liveConsumerNode),G=B.next();!G.done;G=B.next()){var g=G.value;g.dirty||(f=void 0,g.dirty=!0,ePA(g),(f=g.consumerMarkedDirty)==null||f.call(g,g))}}finally{ep=S}}};
bN1=function(){var f;return((f=G1)==null?void 0:f.consumerAllowSignalWrites)!==!1};
mHN=function(f){f&&(f.nextProducerIndex=0);return gA(f)};
zP1=function(f,S){gA(S);if(f&&f.producerNode!==void 0&&f.producerIndexOfThis!==void 0&&f.producerLastReadVersion!==void 0){if(bv(f))for(S=f.nextProducerIndex;S<f.producerNode.length;S++)fzT(f.producerNode[S],f.producerIndexOfThis[S]);for(;f.producerNode.length>f.nextProducerIndex;)f.producerNode.pop(),f.producerLastReadVersion.pop(),f.producerIndexOfThis.pop()}};
GtA=function(f){ltj(f);for(var S=0;S<f.producerNode.length;S++){var B=f.producerNode[S],G=f.producerLastReadVersion[S];if(G!==B.version)return!0;g0G(B);if(G!==B.version)return!0}return!1};
o0s=function(f,S,B){RPs(f);if(f.liveConsumerNode.length===0&&f.producerNode!==void 0)for(var G=0;G<f.producerNode.length;G++)f.producerIndexOfThis[G]=o0s(f.producerNode[G],f,G);f.liveConsumerIndexOfThis.push(B);return f.liveConsumerNode.push(S)-1};
fzT=function(f,S){RPs(f);if(f.liveConsumerNode.length===1&&f.producerNode!==void 0)for(var B=0;B<f.producerNode.length;B++)fzT(f.producerNode[B],f.producerIndexOfThis[B]);B=f.liveConsumerNode.length-1;f.liveConsumerNode[S]=f.liveConsumerNode[B];f.liveConsumerIndexOfThis[S]=f.liveConsumerIndexOfThis[B];f.liveConsumerNode.length--;f.liveConsumerIndexOfThis.length--;S<f.liveConsumerNode.length&&(B=f.liveConsumerIndexOfThis[S],f=f.liveConsumerNode[S],ltj(f),f.producerIndexOfThis[B]=S)};
bv=function(f){var S,B;return f.consumerIsAlwaysLive||((B=f==null?void 0:(S=f.liveConsumerNode)==null?void 0:S.length)!=null?B:0)>0};
ltj=function(f){f.producerNode!=null||(f.producerNode=[]);f.producerIndexOfThis!=null||(f.producerIndexOfThis=[]);f.producerLastReadVersion!=null||(f.producerLastReadVersion=[])};
RPs=function(f){f.liveConsumerNode!=null||(f.liveConsumerNode=[]);f.liveConsumerIndexOfThis!=null||(f.liveConsumerIndexOfThis=[])};
wL1=function(f){var S=Object.create(XLx);S.computation=f;f=function(){g0G(S);SZV(S);if(S.value===R0)throw S.error;return S.value};
f[XE]=S;return f};
V7x=function(f,S){var B=Object.create(hPN);B.value=f;S!==void 0&&(B.equal=S);f=function(){SZV(B);return B.value};
f[XE]=B;return[f,function(G){return TOV(B,G)},
function(G){bN1()||FE9(B);TOV(B,G(B.value))}]};
TOV=function(f,S){bN1()||FE9(f);if(!f.equal(f.value,S)){f.value=S;f.version++;BOW++;ePA(f);var B;(B=JYj)==null||B(f)}};
wA=function(f){var S=gA(null);try{return f()}finally{gA(S)}};
_.hj=function(f,S,B){B=B===void 0?"":B;f=V7x(f,S==null?void 0:S.equals);var G=f[0],g=G[XE];g.debugName=t9G(S==null?void 0:S.debugName,B,"[signal]");if(!_.Sp.enablePerformanceTiming)return f;var b=f[1],z=f[2];return[G,function(X){PaK(function(){return void b(X)},g)},
function(X){PaK(function(){return void z(X)},g)}]};
PaK=function(f,S){M9j("signalSet",S.debugName);try{f()}finally{ZLW("signalSet",S.debugName)}};
KEG=function(f,S){var B=_.m(_.hj(f,void 0,"cPpJzc"));f=B.next().value;B=B.next().value;f[v0N]=B;f[FE]=S;return f};
dHN=function(f){return!!f&&typeof f==="object"&&Object.getPrototypeOf(f)===Object.prototype};
iNK=function(f){return typeof f==="function"&&v0N in f&&typeof f[v0N]==="function"};
HN9=function(f,S){Object.defineProperty(f,FE,{get:function(){return S}})};
Jj=function(f,S){if(VJ(f)){var B=f.map(function(b){return Jj(b,S)});
HN9(B,S);return B}if(dHN(f)){B={};f=_.m(Object.entries(f));for(var G=f.next();!G.done;G=f.next()){var g=_.m(G.value);G=g.next().value;g=g.next().value;B[G]=Jj(g,S)}HN9(B,S);return B}return KEG(f,S)};
qZM=function(f){if(VJ(f))return f.map(function(g){return qZM(g)});
if(dHN(f)){var S={};f=_.m(Object.entries(f));for(var B=f.next();!B.done;B=f.next()){var G=_.m(B.value);B=G.next().value;G=G.next().value;S[B]=qZM(G)}return S}return iNK(f)?f():f};
Qy1=function(){var f={height:0,width:0};if(!dHN(f))throw Error("Lb");var S=Symbol("Mb");return[Jj(f,S),function(B,G){if(B[FE]===S)if(typeof G==="function"){var g=[].concat(_.$d(qZM(B)));G=G(g)||g;$HM(B,[].concat(_.$d(G)))}else $HM(B,G);else throw Error("Nb");}]};
$HM=function(f,S){if(iNK(f))f[v0N](S);else if(VJ(f)&&VJ(S))S=Jj(S,f[FE]),f.length=0,f.push.apply(f,_.$d(S));else if((dHN(f)||VJ(f))&&(VJ(S)||typeof S==="object"&&S!==null)){S=_.m(Object.entries(S));for(var B=S.next();!B.done;B=S.next()){var G=_.m(B.value);B=G.next().value;G=G.next().value;var g=f,b=g[B];Object.hasOwn(f,B)?$HM(b,G):g[B]=Jj(G,f[FE])}}else throw Error("Ob");};
YZN=function(f){return Object.create(Object.assign({},PW,f))};
jyj=function(){var f;return(f=rYW)!=null?f:rYW=YZN({consumerAllowSignalWrites:!0})};
_.vW=function(f,S,B){B=B===void 0?"":B;f=wL1(f);var G=f[XE];G.debugName=t9G(S==null?void 0:S.debugName,B,"[computed]");(S==null?void 0:S.equals)!=null&&(G.equal=S.equals);return f};
Kj=function(f){var S=gA(ON1);try{f()}finally{gA(S)}};
DHM=function(f){if(!f.isDisposed)switch(f.effectType){case xH1:E0G.schedule(f);break;case LEW:kt1.schedule(f);break;case n0K:syW.schedule(f);break;default:_.mu(f.effectType)}};
UH1=function(f){Izj.push(f);return function(){var S=Izj.indexOf(f);S!==-1&&Izj.splice(S,1)}};
pLN=function(){if(dA>0)_.Sp.flushRenderEffectsDuringRender&&E0G.flush();else for(var f=_.m(Ca1),S=f.next();!S.done;S=f.next())S.value.flush()};
NOQ=function(f){iv=!0;try{for(var S=_.m(f),B=S.next();!B.done;B=S.next()){for(var G=B.value,g=[G],b=G;b.parent!==void 0;)b=b.parent,AYK(b)&&f.has(b)&&g.push(b);for(;g.length>0;){var z=g.pop();f.delete(z);z.run()}}}finally{iv=!1}};
HW=function(f){dA--;if(f){f=_.m(Ca1);for(var S=f.next();!S.done;S=f.next())S.value.clear()}else dA>0||iv&&!_.Sp.flushRenderEffectsDuringRender||pLN()};
ZN1=function(f,S,B){var G=M7M(f);q9={name:B?G+" ("+B+")":G,isReactive:f.componentType!==$p,parent:q9};f=S();q9=q9.parent;return f};
QJ=function(){var f=q9;return f?f.isReactive:!1};
rA=function(f,S){var B=q9;S&&(q9=S);try{return f()}catch(b){f=b;Yp(f,q9);if(f!==t7x){ulT=q9;S=[];for(var G=cv;G;){var g=void 0;S.push((g=G.debugName)!=null?g:"[context]");g=void 0;G=(g=G.parent)!=null?g:null}azT=S.reverse()}t7x=f;throw f;}finally{q9=B}};
Yp=function(f,S){try{var B=yYN(S);if(B&&!f.componentStack&&(f.componentStack=B,_.Sp.enableComponentStacksInErrorMessages)){var G=f.message+"\n\nComponent stack: "+B;f.stack&&(f.stack=f.stack.replace(f.message,G));f.message=G}}catch(g){}};
yYN=function(f){if(BW(f)&&f.name!==void 0&&f.isReactive!==void 0&&f.parent!==void 0||f===null){for(var S=0,B="";S<20&&f;)B+=f.name+" > ",f=f.parent,S++;f=B.slice(0,-3)}else if(_.Sp.enableContextBasedComponentStacks){a:{for(f=f===void 0?cv:f;f;){if(WCN(f))break a;S=void 0;f=(S=f.parent)!=null?S:null}f=null}f=f.getComponentStack().slice(0,20).join(" > ")}else f="";return f};
M7M=function(f){return f.debugName||f.name||"[component]"};
WEA=function(f,S,B){S=Object.create(S);S.effectFn=f;B&&(S.debugName=B);o0(S);S.componentStack=q9;return S};
_.jp=function(f,S){f=WEA(f,cYA,S);DHM(f)};
_.Ov=function(f){var S=cv;if(S){var B=q9;iLK(S,function(){var G=gA(jyj());try{rA(function(){return void f()},B)}catch(g){throw _.Sp.enableContextBasedComponentStacks&&Yp(g),g;
}finally{gA(G)}})}};
xp=function(f,S){var B={};(S===void 0||S)&&o0(B);S=_.l5(B);try{f(B)}finally{_.l5(S)}return function(){return void HLV(B)}};
_.Ev=function(f){return typeof f==="function"?f():(f==null?0:f[lzj])?f.get():f};
_.Lj=function(f,S){f=WEA(f,fXQ,S);DHM(f)};
oJ1=function(f){if(cv)throw Error("sb");xp(f,!1)};
kp=function(f,S){f=_.l5(f);try{return wA(S)}finally{_.l5(f)}};
_.nj=function(f,S){var B=yYN(ulT),G,g;var b=(g=(G=azT)==null?void 0:G.slice())!=null?g:[];S={componentStack:B,contextTrace:b,errorSeverity:3,featureFlags:NgV(),tagName:S};return[f,S]};
GVA=function(f,S,B){if(Object.hasOwnProperty.call(S4T,f)&&(f=S4T[f],Object.hasOwnProperty.call(f,S)&&(f=f[S],f instanceof Array))){for(var G=null,g=!1,b=0,z=f.length;b<z;++b){var X=f[b],w=X.contingentAttribute;if(!w)return X.contract;G===null&&(G={});w=Object.hasOwnProperty.call(G,w)?G[w]:G[w]=B(w);if(w===X.requiredValue)return X.contract;w==null&&(g=!0)}if(g)return null}S=BZG[S];return typeof S==="number"?S:null};
bOT=function(f,S,B){var G=null;(f=gJN[f])&&(G=f[S]);return typeof G!=="number"&&((f=gJN["*"])&&(G=f[S]),typeof G!=="number")?!1:!0===e0T[G][String(B).toLowerCase()]};
z0A=function(f,S){S=GVA(f.toLowerCase(),S,function(){var G;(G=_.Sp.handleError)==null||G.call.apply(G,[_.Sp].concat(_.$d(_.nj(Error("Sb"),f.toLowerCase()))))});
if(S===null)return null;var B;return(B=m7T[S])!=null?B:null};
R0A=function(f,S,B){if(B===null||B===void 0)return B;f=z0A(f,S);return f===null?B:f(S,B)};
XUx=function(){};
I0=function(f,S){for(;f.length>S;)f.pop()};
wU1=function(f){f=Array(f);I0(f,0);return f};
h09=function(f,S,B){if(B==null)f.removeAttribute(S);else{var G;(G=S.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":S.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?f.setAttributeNS(G,S,B):f.setAttribute(S,B)}};
TZN=function(f,S,B){f[S]=B};
VCQ=function(f,S,B){f=f.style;if(typeof B==="string")f.cssText=B;else{f.cssText="";for(var G in B)if(FNK.call(B,G)){S=f;var g=G,b=B[G];g.indexOf("-")>=0?S.setProperty(g,b):S[g]=b}}};
JyA=function(f,S,B){var G=typeof B;G==="object"||G==="function"?f[S]=B:h09(f,S,B)};
PPN=function(){var f=new XUx;f[Uv.default]=JyA;f.style=VCQ;return f};
vJT=function(f,S,B,G){(G[S]||G[Uv.default])(f,S,B)};
d7K=function(f,S,B){S=new KNM(S,B);return f.__incrementalDOMData=S};
Cj=function(f,S){if(f.__incrementalDOMData)return f.__incrementalDOMData;var B=f.nodeType===1?f.localName:f.nodeName,G=f.nodeType===1?f.getAttribute("key"):null;S=d7K(f,B,f.nodeType===1?G||S:null);if(f.nodeType===1&&(f=f.attributes,B=f.length)){G=S._attrsArr||(S._attrsArr=wU1(B*2));for(var g=0,b=0;g<B;g+=1,b+=2){var z=f[g],X=z.value;G[b]=z.name;G[b+1]=X}}return S};
iON=function(f,S,B,G,g){return S==B&&G==g};
HOW=function(f){for(var S=pj,B=Aj();B!==f;){var G=B.nextSibling;S.removeChild(B);N9.deleted.push(B);B=G}};
Aj=function(){return M9?M9.nextSibling:pj.firstChild};
Zx=function(){M9=Aj()};
QJV=function(f,S,B){Zx();var G;a:{if(G=M9){do{var g=G,b=f,z=S,X=Cj(g,z);if(q4W(g,b,X.nameOrCtor,z,X.key))break a}while(S&&(G=G.nextSibling))}G=null}G||(f==="#text"?(B=tj.createTextNode(""),d7K(B,"#text",null),f=B):(G=tj,g=pj,typeof f==="function"?G=new f:G=(g=f==="svg"?"http://www.w3.org/2000/svg":f==="math"?"http://www.w3.org/1998/Math/MathML":g==null||Cj(g).nameOrCtor==="foreignObject"?null:g.namespaceURI)?G.createElementNS(g,f):G.createElement(f),d7K(G,f,S),f=G,B&&f.setAttribute("nonce",B)),N9.created.push(f),
G=f);B=G;if(B!==M9){if($7A.indexOf(B)>=0)for(f=pj,S=B.nextSibling,G=M9;G!==null&&G!==B;)g=G.nextSibling,f.insertBefore(G,S),G=g;else pj.insertBefore(B,M9);M9=B}};
Y4T=function(f,S,B){QJV(f,S,B);pj=M9;M9=null;return pj};
ryT=function(){HOW(null);M9=pj;pj=pj.parentNode};
uv=function(){M9=pj.lastChild};
x7M=function(f,S){S=S===void 0?{}:S;var B=S.matches===void 0?iON:S.matches;return function(G,g,b){var z=N9,X=tj,w=$7A,F=a0,V=yJ,J=M9,P=pj,d=q4W;tj=G.ownerDocument;N9=new jJ9(G);q4W=B;a0=[];yJ=[];M9=null;var Q=pj=G.parentNode,x,E=OOM.call(G);if((x=E.nodeType===11||E.nodeType===9?E.activeElement:null)&&G.contains(x)){for(E=[];x!==Q;)E.push(x),x=x.parentNode||(Q?x.host:null);Q=E}else Q=[];$7A=Q;try{return f(G,g,b)}finally{G=N9,WW&&G.deleted.length>0&&WW(G.deleted),tj=X,N9=z,q4W=d,a0=F,yJ=V,M9=J,pj=P,
$7A=w}}};
EJ1=function(f,S,B,G){cW.push(vJT);cW.push(f);cW.push(S);cW.push(B);cW.push(G)};
kVG=function(f,S,B){var G=yJ;S=S._attrsArr||(S._attrsArr=wU1(G.length));for(var g=!S.length||!1,b=0;b<G.length;b+=2){var z=G[b];if(g)S[b]=z;else if(S[b]!==z)break;var X=G[b+1];if(g||S[b+1]!==X)S[b+1]=X,EJ1(f,z,X,B)}if(b<G.length||b<S.length){for(b=g=b;b<S.length;b+=2)lv[S[b]]=S[b+1];for(b=g;b<G.length;b+=2)g=G[b],z=G[b+1],lv[g]!==z&&EJ1(f,g,z,B),S[b]=g,S[b+1]=z,delete lv[g];I0(S,G.length);for(var w in lv)EJ1(f,w,void 0,B),delete lv[w]}f=LNT;LNT=B=cW.length;for(w=f;w<B;w+=5)(0,cW[w])(cW[w+1],cW[w+
2],cW[w+3],cW[w+4]);LNT=f;I0(cW,f);I0(G,0)};
fL=function(f){QJV("#text",null);var S=M9;var B=Cj(S);if(B.text!==f){B=B.text=f;for(var G=1;G<arguments.length;G+=1)B=(0,arguments[G])(B);S.data!==B&&(S.data=B)}};
CPV=function(f,S,B){if(B===!1&&nJs.has(S))h09(f,S,null);else if(S!=="idomKey"&&S!=="skip"&&S!=="skipchildren"&&S!=="children"&&S!=="el")if(S.startsWith("on"))if(S[2]===":")if(B===void 0||B===null){var G;(G=_.Sp.handleError)==null||G.call.apply(G,[_.Sp].concat(_.$d(_.nj(Error("Wb`"+S),f.tagName))));f[S]=void 0}else{var g=S.slice(3);G=QJ();if(g==="jsaction"){B=_.m(Array.isArray(B)?B:[B]);for(var b=B.next();!b.done;b=B.next()){b=b.value;if(typeof b!=="object"||b===null||typeof b.selfReg!=="function")throw Error("Zb`"+
S);b.selfReg(0,f,G?_.Ov:function(){})}}else{if(typeof B!=="object"||B===null)throw Error("Xb`"+S+"`"+typeof B);
if(typeof B.getFn!=="function")throw Error("Yb`"+S+"`"+Object.keys(B));if(B.selfReg)B.selfReg(0,f,g,G?_.Ov:function(){});
else if(G&&f["on"+g]===void 0){var z=B.getFn(0);f.addEventListener(g,z);_.Ov(function(){return void f.removeEventListener(g,z)})}else if(G||!sJG.includes(g))f["on"+g]=B.getFn(0)}}else D7A(f,S,B);
else{if(S.startsWith("data-")&&typeof B==="string")try{B=IXN(B)}catch(X){B="zSoyz"}typeof B!=="function"||f._disposeEffects!=null?(_.Sp.enableAttributeSanitization&&(B=R0A(f.tagName,S,B)),S==="style"?("function"==typeof _.S9&&B instanceof _.S9&&(B=B.toString()),U7x(f,S,B)):S.startsWith("prop:")?(S=S.slice(5),f[S]=B):D7A(f,S,B)):(f._signalProps||(f._signalProps=[]),f._signalValues||(f._signalValues=[]),f._signalProps.push(S))}};
pUN=function(f,S,B){B=(B===void 0?{}:B).isReactive;if(S==null?0:S.el){var G=S.el;if(typeof G==="function")G(f);else{var g;(g=G.onRender)==null||g.call(G,f);f._disposeRef||(f._disposeRef=function(){var b;(b=G.onUnmount)==null||b.call(G);delete f._disposeRef},B&&_.Ov(function(){var b;
return void((b=f._disposeRef)==null?void 0:b.call(f))}))}}};
Ay9=function(f){return BW(f)&&Bf in f};
NZs=function(f){return Ay9(f)?f[Bf].flattened:f};
MCj=function(f,S){var B=_.qb.apply(2,arguments),G;S=(G=S)!=null?G:{};G={};return G.type=f,G.props=S,G.children=B,G[G8]=!0,G};
_.gg=function(f){return f.children};
e9=function(f){var S=ZON!==MCj;ZON=f?tCG:MCj;return S};
_.b0=function(f){return _.og(f)?"nodeType"in f:!1};
mC=function(){return document.createTextNode("")};
z8=function(f){f=document.createTextNode(String(f));f._isSignalTextNode=!0;return f};
WN1=function(f){var S=document.createElement("div");if(u3K(f)&&m9K(f))_.pC(S,m9K(f));else if(f instanceof rc)_.pC(S,f);else if(aXT(f)){if(f.contentKind!==yyK)throw Error("Vb");f=jZ(f.toString());_.pC(S,f)}f=_.m(S.childNodes);for(var B=f.next();!B.done;B=f.next())B.value._isSafeOrSanitizedHtmlNode=!0;return S};
Rj=function(f){f=typeof f;return f==="string"||f==="number"||f==="boolean"};
cy9=function(f){return f instanceof mg||F6(f)||"function"==typeof _.Za&&f instanceof _.Za||"function"==typeof _.S9&&f instanceof _.S9};
lXW=function(f,S){var B=f.parentElement;if(!B)return S;B.replaceChild(S,f);return S};
f01=function(f,S){var B=f[0].parentElement;if(B)if(f[0].previousSibling||f[f.length-1].nextSibling){B.insertBefore(S,f[0]);for(var G=f.length-1;G>=0;G--)B.removeChild(f[G])}else B.textContent="",B.appendChild(S);return S};
oH9=function(f,S){if(f[0].parentElement)for(var B=f[0].parentElement,G=S.length,g=f.length,b=G,z=0,X=0,w=f[g-1].nextSibling,F=null;z<g||X<b;)if(f[z]===S[X])z++,X++;else{for(;f[g-1]===S[b-1];)g--,b--;if(g===z)for(var V=b<G?X?S[X-1].nextSibling:S[b-X]:w;X<b;){var J=S[X++];B.insertBefore(J,V)}else if(b===X)for(;z<g;)V=f[z],F&&F.has(V)||B.removeChild(V),z++;else if(f[z]===S[b-1]&&S[X]===f[g-1])V=f[--g].nextSibling,B.insertBefore(S[X++],f[z++].nextSibling),B.insertBefore(S[--b],V),f[g]=S[b];else{if(!F)for(F=
new Map,V=X;V<b;)F.set(S[V],V++);V=F.get(f[z]);if(V==null)B.removeChild(f[z]),z++;else if(X<V&&V<b){J=z;for(var P=1,d=void 0;++J<g&&J<b&&(d=F.get(f[J]))!=null&&d===V+P;)P++;if(P>V-X)for(J=f[z];X<V;)B.insertBefore(S[X++],J);else B.replaceChild(S[X++],f[z++])}else z++}}return S};
BCN=function(f){if(Array.isArray(f)){if(f.length>1)throw Error("hc`"+f.length+"`"+f.map(SUT).join(", "));f=f[0]}if(f==null)return null;if(!(f instanceof _.sQ)){var S,B;if((S=window)==null?0:(B=S.trustedTypes)==null?0:B.isScript(f))throw Error("gc");if(String(f).trim().length===0)return null;throw Error("ic`"+SUT(f));}return f};
GMM=function(f){if(Array.isArray(f)){if(f.length>1)throw Error("jc`"+f.length+"`"+f.map(SUT).join(", "));f=f[0]}if(f==null)return null;if(!iXx(f)){if(String(f).trim().length===0)return null;throw Error("kc`"+SUT(f));}return f};
SUT=function(f){return"("+typeof f+") "+(f!=null&&typeof f==="object"?f.constructor.name:typeof f)+" "+f};
wg=function(f,S){S=S===void 0?{}:S;var B=gHM();_.Sp.legacyTriggerSoyRendererEvents&&k8A();_.Lj(function(){S.isControlFlowComponent&&dA++;var G=B[0],g=B[Bf].flattened,b=e9(!0);try{var z=f(),X=e_V(G,z,B);Array.isArray(X)||(B[Bf].flattened=[X]);var w=B[Bf].flattened;if(g&&(!Array.isArray(g)||g.length!==0)){var F=Array.isArray(g)?g[0]:g,V=F[Xq],J=F._disposeEffects;F._disposeEffects=void 0;F=Array.isArray(w)?w[0]:w;F[Xq]=V;F[Xq]&&(F[Xq].numNodes=F===w?1:w.length);F._disposeEffects=J}B[0]=X;S.isControlFlowComponent&&
HW(!1)}catch(P){throw S.isControlFlowComponent&&HW(!0),P;}finally{e9(b)}},S.debugName);
return B};
e_V=function(f,S,B){for(;typeof S==="function";)S=S();if(S!=null&&S[G8]){var G,g,b;(b=_.Sp.handleError)==null||b.call.apply(b,[_.Sp].concat(_.$d(_.nj(Error("lc`"+((G=S.type)==null?void 0:G.TAG_NAME)),(g=S.type)==null?void 0:g.TAG_NAME))))}if(f==null)return S==null?mC():Rj(S)?z8(S):cy9(S)?z8(S.toString()):_.b0(S)?S:S.length===0?mC():bgA(S,B);if(_.b0(f)){if(S==null)return lXW(f,mC());if(Rj(S))return m6V(f,S);if(cy9(S))return m6V(f,S.toString());if(_.b0(S))return lXW(f,S);if(S.length===0)return lXW(f,
mC());S=bgA(S,B);oH9([f],B[Bf].flattened);return S}f=hA(f);if(S==null)return f01(f,mC());if(Rj(S))return f01(f,z8(S));if(cy9(S))return f01(f,z8(S.toString()));if(_.b0(S))return oH9(f,[S])[0];if(S.length===0)return f01(f,mC());S=bgA(S,B);oH9(f,B[Bf].flattened);return S};
m6V=function(f,S){f.nodeType===Node.TEXT_NODE?f.textContent!==String(S)&&(f.textContent=String(S)):f=lXW(f,z8(S));return f};
hA=function(f,S,B){return z_M(f,S!=null?S:[],B===void 0?!1:B)};
bgA=function(f,S){var B=hA(f,void 0,!0);if(B.length===0)return mC();S[Bf].flattened=B;return f};
z_M=function(f,S,B,G,g){S=S===void 0?[]:S;B=B===void 0?!1:B;g=g===void 0?-1:g;if(f==null)return S;if(f instanceof T8)return f=f.render(),z_M(f,S,B,G,g);if(_.b0(S)&&S.nodeType===Node.ELEMENT_NODE)switch(S.tagName){case "SCRIPT":B=BCN(f);B!==null&&_.UQ(S,B);return;case "STYLE":B=GMM(f);B!==null&&(S.textContent=_.HXQ(B));return}Rj(f)&&(f=z8(f),G&&B&&(G[g]=f));if(aXT(f)||f instanceof rc||u3K(f)){B=WN1(f);B=Array.from(B.childNodes);B=_.m(B);for(f=B.next();!f.done;f=B.next())R_1(S,f.value);return S}cy9(f)&&
(f=z8(f.toString()),G&&B&&(G[g]=f));if(_.b0(f))return R_1(S,f);if(Array.isArray(f)){for(var b=0;b<f.length;b++)z_M(f[b],S,B,f,b);return S}if(typeof f==="function"){f=wg(f,{debugName:"qmF2ne"})[0];if(Array.isArray(f)){B=_.m(f);for(f=B.next();!f.done;f=B.next())R_1(S,f.value);return S}G&&B&&(G[g]=f);return R_1(S,f)}if(f!=null&&f[G8]){G=e9(!0);g=ZON;try{b=g.apply(null,[f.type,f.props].concat(_.$d(f.children)))}finally{e9(G)}return z_M(b,S,B)}var z;(z=_.Sp.handleError)==null||z.call.apply(z,[_.Sp].concat(_.$d(_.nj(Error("mc")))));
return S};
gHM=function(f){var S={};S=Object.assign([],(S[Bf]={flattened:[]},S));if(!f)return S;S[0]=bgA(f,S);return S};
R_1=function(f,S){Array.isArray(f)?f.push(S):f.appendChild(S);return f};
Fq=function(f){if(!_.Sp.enableLazyTsx)return f;if(Array.isArray(f)){for(var S=0;S<f.length;S++)f[S]=Fq(f[S]);return f}return f instanceof T8?(f=f.render(),Fq(f)):f};
wDA=function(f,S){var B,G,g=M7M(f),b=function(d){G=d;d=e9(!0);var Q=gA(VR);M9j("render",g);try{B=Fq(f(S))}finally{ZLW("render",g),gA(Q),e9(d)}};
b=_.Sp.enableContextPerComponent?atM(b,g):xp(b,_.Sp.alwaysTrackContexts||!!cv);WCN(G);if(!S.renderedFromIdom){var z=_.l5(G);try{return XDA(f,S,B),B}finally{_.l5(z)}}!Ay9(B)&&Array.isArray(B)&&(B=gHM(B));var X=NZs(B);z=Array.isArray(X)?X[0]:X;var w=!1;if(z){var F,V=(F=S==null?void 0:S.idomKey)!=null?F:f;F=X!==z;z._disposeEffects=b;var J=z[Xq]||{},P=Ay9(B)?B:J.sourceDynamicRange;Object.assign(J,{key:V,numNodes:F?X.length:1,context:G,higherOrder:!!z[Xq],sourceDynamicRange:P});z[Xq]=J}else w=!0;(function(){var d=
_.l5(G);try{XDA(f,S,X)}finally{_.l5(d)}})();
w&&b();return B};
h_K=function(f){var S={},B;for(B in f)S={prev$jscomp$23:void 0,next$jscomp$32:void 0},S.prev$jscomp$23=JA[B],S.next$jscomp$32=f[B],JA[B]=function(G){return function(){var g=_.qb.apply(0,arguments);G.prev$jscomp$23.apply(null,_.$d(g));G.next$jscomp$32.apply(null,_.$d(g))}}(S)};
TCW=function(){if(QJ())throw Error("nc");return Pf};
Fmx=function(f,S){if(!f.__unmounted&&S){f.__unmounted=!0;try{f.didUnmount()}catch(g){var B,G;(G=_.Sp.handleError)==null||G.call.apply(G,[_.Sp].concat(_.$d(_.nj(g,(B=f.JSC$8259___type)==null?void 0:B.TAG_NAME))))}JA.didUnmount(f);f.el=null;S.__instance&&delete S.__instance}};
JEj=function(f,S,B){f._signalProps!=null&&f._disposeEffects==null&&((B===void 0?0:B)?f._disposeEffects=xp(function(){return void VD1(f,S)},_.Sp.alwaysTrackContexts||!!cv):VD1(f,S))};
VD1=function(f,S){_.Lj(function(){for(var B=f._signalProps,G=f._signalValues,g=0;g<B.length;g++){var b=B[g],z=S[b]();G[g]!==z&&(G[g]=z,CPV(f,b,z))}},"e3YVbb")};
Ps1=function(f,S,B){var G,g=[];f._disposeEffects=xp(function(){_.Lj(function(){var b=B();if(b===null||b===void 0)b="";if(Rj(b)||b===null)G!=null||(G=document.createTextNode("")),G.parentNode!==f&&(G._isSignalTextNode=!0,f.insertBefore(G,S)),G.textContent=String(b);else if(aXT(b)||b instanceof rc||u3K(b)){for(var z=g.length>0?g[g.length-1].nextSibling:S,X=_.m(g),w=X.next();!w.done;w=X.next())f.removeChild(w.value);b=WN1(b);g=Array.from(b.childNodes);b=_.m(g);for(X=b.next();!X.done;X=b.next())f.insertBefore(X.value,
z)}else throw w=(X=(z=q9)==null?void 0:z.name)!=null?X:"unknown",Error("cc`"+w+"`"+typeof b);},"VvDgC")},_.Sp.alwaysTrackContexts||!!cv)};
d6W=function(f,S){var B=_.qb.apply(2,arguments);S!=null||(S={});return!_.Sp.enableLazyTsx||q9!=null&&!QJ()?vHj(f,S,B):new KmN(f,S,B)};
vHj=function(f,S,B){if(f===_.gg)return B;if(typeof f==="function")return q9&&!QJ()&&(S.renderedFromIdom=!0),ZN1(f,function(){var b=igM(f,S,B);if(b)return b;B.length>0&&(S.children=B.length===1?B[0]:B);if(f.componentType===$p){var z;atM(function(){var X=S;if(f.componentType!==$p)z=!1;else{X||(X={});var w=new vf(X,f),F=gA(VR);try{var V=w.render(X)}finally{gA(F)}V instanceof HTMLElement?(V.__instance=w,w.el=V,w.JSC$8259___type=f,f.TAG_NAME=V.tagName.toLowerCase(),JA.didPatch(w),z=V):z=V}},f.name);
if(z)return z}return wDA(f,S)},S.debugInstance);
var G=Hg9(f,S),g;for(g in S)CPV(G,g,S[g]);JEj(G,S);hA(B,G);pUN(G,S,{isReactive:!0});qUK(G,S);return G};
Hg9=function(f,S){f=($6G.has(f.toLowerCase())?0:QrG.has(f.startsWith("svg:")?f.replace("svg:",""):f))?document.createElementNS("http://www.w3.org/2000/svg",f.startsWith("svg:")?f.replace("svg:",""):f):YUN(f,S)||document.createElement(f);f[rEx]=!0;return f};
jrQ=function(f){if(f){var S;(S=f._disposeRef)==null||S.call(f);var B;(B=f._disposeEffects)==null||B.call(f);f.__instance&&f.__instance instanceof KL&&(S=f.__instance,Fmx(S,f),S instanceof vf&&S.disposeEffects());for(S=0;S<f.childNodes.length;S++)jrQ(f.childNodes[S])}};
x6V=function(f){OgQ.push(f)===1&&requestAnimationFrame(function(){setTimeout(function(){var S=[].concat(_.$d(OgQ));OgQ=[];S=_.m(S);for(var B=S.next();!B.done;B=S.next()){B=B.value;try{for(var G=0;G<B.length;G++)jrQ(B[G])}catch(g){G=B=void 0,(G=(B=_.Sp).handleError)==null||G.call.apply(G,[B].concat(_.$d(_.nj(g))))}}})})};
_.T=function(f,S){return ZON.apply(null,[f,S].concat(_.$d(_.qb.apply(2,arguments))))};
EHG=function(f,S){S=S===void 0?new Map:S;f=_.m(f);for(var B=f.next();!B.done;B=f.next())if(B=B.value,!S.has(B)){var G=void 0,g=(G=B.producerNode)!=null?G:[];S.set(B,g);EHG(g,S)}return S};
_.v=function(f){var S=f.cond;if(S===void 0)return f.else&&f.else();var B=_.vW(function(){return!!S()},void 0,"JHVi8"),G=function(){var g=S();
if(!g){var b;(b=_.Sp.handleError)==null||b.call.apply(b,[_.Sp].concat(_.$d(_.nj(Lm1.nonNullableCondIsNull()))))}return g};
return wg(function(){var g=B(),b;xp(function(){var z=gA(VR);try{b=Fq(g?f.then(G):f.else&&f.else())}finally{gA(z)}},!0);
return b},{debugName:f.debugInstance,
isControlFlowComponent:!0})};
kM1=function(f){return _.v(f)};
_.dg=function(f){return f.keyBy==="INDEX"?nHK(f):srQ(f)};
D6K=function(f){f=_.m(f);for(var S=f.next();!S.done;S=f.next()){var B=void 0;(B=S.value)==null||B()}};
srQ=function(f){var S=f.keyBy===void 0||f.keyBy==="REFERENCE",B=S?function(V){return V}:f.keyBy,G=[],g=[],b=[],z=[],X=[],w=[],F=!0;
_.Ov(function(){D6K(z)});
return wg(function(){var V=f.each(),J=V.length;if(J===0){if(G.length===0&&!F)return b;D6K(z);G=V;g=[];for(V=0;V<G.length;V++)g.push(B(G[V]));b=[];z=[];X=[];w=[];f.fallback&&(z[0]=I01(function(){b[0]=Fq(f.fallback())}));
F=!1;return b}for(var P=new U6T,d=G.length-1;d>=0;d--)P.push(g[d],d);d=Array(J);for(var Q=Array(J),x=Array(J),E=Array(J),U=Array(S?0:J),A={i$jscomp$443:0};A.i$jscomp$443<J;A={i$jscomp$443:A.i$jscomp$443,item$jscomp$103:void 0,key$jscomp$524:void 0},A.i$jscomp$443++){A.item$jscomp$103=V[A.i$jscomp$443];A.key$jscomp$524=B(A.item$jscomp$103);var t=P.pop(A.key$jscomp$524);t!=null?(x[A.i$jscomp$443]=b[t],Q[A.i$jscomp$443]=g[t],d[A.i$jscomp$443]=z[t],E[A.i$jscomp$443]=X[t],S||(U[A.i$jscomp$443]=w[t]),Kj(function(M){return function(){E[M.i$jscomp$443](M.i$jscomp$443);
if(!S)U[M.i$jscomp$443](M.item$jscomp$103)}}(A)),delete z[t]):d[A.i$jscomp$443]=I01(function(M){return function(){var a=_.m(_.hj(M.i$jscomp$443,void 0,"Fqk1zd")),l=a.next().value;
a=a.next().value;E[M.i$jscomp$443]=a;Q[M.i$jscomp$443]=M.key$jscomp$524;if(S)x[M.i$jscomp$443]=Fq(f.children(M.item$jscomp$103,l));else{var mx=_.m(_.hj(M.item$jscomp$103,void 0,"GBj5de"));a=mx.next().value;mx=mx.next().value;U[M.i$jscomp$443]=mx;x[M.i$jscomp$443]=Fq(f.children(a,l))}}}(A))}D6K(z);
G=V;g=Q;b=x;z=d;X=E;w=U;F=!1;return x},{debugName:f.debugInstance,
isControlFlowComponent:!0})};
nHK=function(f){var S=[],B=[],G=[],g=[],b=!1;_.Ov(function(){for(var z=_.m(g),X=z.next();!X.done;X=z.next())X=X.value,X()});
return wg(function(){var z=f.each();b&&z.length>0&&(g.pop()(),S.pop(),b=!1);for(var X=Array(z.length),w={i$jscomp$444:0};w.i$jscomp$444<z.length;w={i$jscomp$444:w.i$jscomp$444},w.i$jscomp$444++)if(w.i$jscomp$444<S.length)S[w.i$jscomp$444]!==z[w.i$jscomp$444]&&(Kj(function(V){return function(){return void B[V.i$jscomp$444](z[V.i$jscomp$444])}}(w)),S[w.i$jscomp$444]=z[w.i$jscomp$444]),X[w.i$jscomp$444]=G[w.i$jscomp$444];
else{var F=I01(function(V){return function(){S[V.i$jscomp$444]=z[V.i$jscomp$444];var J=_.m(_.hj(z[V.i$jscomp$444],void 0,"kGMqJe")),P=J.next().value;J=J.next().value;B[V.i$jscomp$444]=J;X[V.i$jscomp$444]=Fq(f.children(P,V.i$jscomp$444))}}(w));
g[w.i$jscomp$444]=F}for(;S.length>z.length;)S.pop(),g.pop()(),B.pop();z.length===0&&!b&&f.fallback&&(w=I01(function(){X[0]=Fq(f.fallback())}),g[0]=w,b=!0);
return G=X},{debugName:f.debugInstance,
isControlFlowComponent:!0})};
I01=function(f){var S=cv;return xp(function(B){var G=gA(VR);try{B.parent=S,f(B)}finally{gA(G)}},!1)};
_.i0=function(f){return f};
_.Hf=function(f){return{isDefault:!0,children:f.children}};
_.qp=function(f){var S=CsT(f),B=_.vW(function(){return pDN(S)},void 0,"F1PF4");
return wg(function(){var G=B(),g;xp(function(){var b=gA(VR);try{g=Fq(G())}finally{gA(b)}});
return g},{debugName:f.debugInstance,
isControlFlowComponent:!0})};
CsT=function(f){f=f.children;return Array.isArray(f)?f:[f]};
AEA=function(f){var S=f.props;f=f.getChildren()[0];return S.when?{when:S.when,children:f}:{isDefault:!0,children:f}};
pDN=function(f){var S=function(){return null};
f=_.m(f);for(var B=f.next();!B.done;B=f.next())if(B=B.value,B!=null&&B[G8]&&(B=B.type===_.Hf?{isDefault:!0,children:B.children[0]}:{when:B.props.when,children:B.children[0]}),B instanceof T8&&(B=AEA(B)),B.isDefault)S=B.children;else if(B.when())return B.children;return S};
MDN=function(f){var S=null,B,G={get value(){var b,z;(z=(b=g).validateGetValue)==null||z.call(b);return g.__value},set value(b){g.__hasBeenSet=!0;g.__value=b}},g=(G.__value=null,G.__hasBeenSet=!1,G.__hasErrored=!1,G.onRender=function(b){if(B&&b!==B){B._disposeRef=void 0;var z;(z=S)==null||z()}B=b;S=f(b)||null},G.onUnmount=function(){var b;
(b=S)==null||b();S=null},G[NCM]=!0,G);
return g};
Zg1=function(f){var S=TCW();if(S==null)throw _.$5.PRIMITIVE_INVALID_HOOK_CALL();var B=S.hookCounter++;S.hooks||(S.hooks=[]);var G=S.hooks;G[B]||(G[B]={key:f,host:S});if(f!==G[B].key){if(S.JSC$8259___type){var g;f=(g=S.JSC$8259___type)==null?void 0:g.name}else f=S instanceof vf?M7M(S.functionComponent):"<"+S.el.tagName.toLowerCase()+">";throw _.$5.OUT_OF_ORDER_HOOK_CALL(f);}return G[B]};
tD1=function(f,S){return!f||f.length!==(S==null?void 0:S.length)||f.some(function(B,G){return B!==S[G]})};
uXj=function(f,S){var B=Zg1("onChange"),G=TCW();tD1(B.deps,S)&&(B.deps=S,B.pendingEffect=f,G.__syncEffects||(G.__syncEffects=[]),G.__syncEffects.push(B))};
_.QR=function(f,S){var B=B===void 0?{}:B;B=B.appContext;var G=!!_.Sp.legacyTriggerSoyRendererEvents;S=a0V(f,S,B);G&&(B==null&&(B=_.V9s(document).getAppContext()),B.get(yEQ).JSC$25587_getEventTarget().dispatchEvent(new Wmx(cEW,f,yyK)));return S};
a0V=function(f,S,B){var G=rA(function(){var g=gA(VR);try{return xp(function(){var b=_.V9s(_.OI(f)),z;var X=LCV({rootElement:{value:f},appContext:B||(b==null?void 0:(z=b.getOptionalAppContext)==null?void 0:z.call(b)),dispatcher:b});b=_.l5(X);X=e9(!0);dA++;try{hA(S(),f),HW(!1)}catch(w){throw HW(!0),w;}finally{e9(X),_.l5(b)}},!1)}catch(b){throw _.Sp.enableContextBasedComponentStacks&&Yp(b),b;
}finally{gA(g)}});
f[l0G]=!0;return function(){f.textContent="";G();f[l0G]=!1}};
_.Y5=function(f){if(AYK(G1)){var S;(S=_.Sp.handleError)==null||S.call.apply(S,[_.Sp].concat(_.$d(_.nj(Error("bc")))))}var B=cv,G=q9;Promise.resolve().then(function(){if(B&&!B.isDisposed){var g=_.l5(B);try{rA(function(){return void f()},G)}catch(b){throw _.Sp.enableContextBasedComponentStacks&&Yp(b),b;
}finally{_.l5(g)}}})};
rg=function(f,S){uXj(function(){return wA(f)},S)};
_.j9=function(f){QJ()?_.Y5(function(){wA(f)}):uXj(function(){return wA(f)},[])};
o2N=function(f){var S=[].concat(_.$d(f));f.length=0;f=_.m(S);for(S=f.next();!S.done;S=f.next()){S=S.value;fcM(S);var B=S.pendingEffect;S.pendingEffect=null;if(B=B==null?void 0:B())S.pendingCleanup=B}};
fcM=function(f){var S=f.pendingCleanup;f.pendingCleanup=null;S==null||S()};
Sl1=function(f,S){if(QJ())return f();var B=Zg1("useMemoInternal");tD1(B.deps,S)&&(B.deps=S,B.value=f());return B.value};
B0N=function(f,S){return Sl1(f,S)};
O6=function(f){return Sl1(f,[])};
x5=function(f){return O6(function(){return{value:f}})};
_.E6=function(f,S){if(!f)return null;f=Object.keys(f);f=_.m(f);for(var B=f.next();!B.done;B=f.next()){B=B.value;var G=B.toLowerCase();if(G.indexOf(S,G.length-S.length)>-1)return B}return null};
_.k5=function(){var f=arguments,S=_.LL;f.length>1?S[f[0]]=f[1]:f.length===1&&Object.assign(S,f[0])};
_.nL=function(f,S){return f in _.LL?_.LL[f]:S};
_.s6=function(f,S){return!!_.nL(f,S)};
G$N=function(f){var S=_.LL.EXPERIMENT_FLAGS;return S?S[f]:void 0};
eYA=function(f){g2N.forEach(function(S){return S(f)})};
_.Ij=function(f){return f&&window.yterr?function(){try{return f.apply(this,arguments)}catch(S){_.Dt(S)}}:f};
_.Dt=function(f){var S=_.U6("yt.logging.errors.log");S?S(f,"ERROR",void 0,void 0,void 0,void 0,void 0):(S=_.nL("ERRORS",[]),S.push([f,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.k5("ERRORS",S));eYA(f)};
_.CL=function(f,S,B,G,g){var b=_.U6("yt.logging.errors.log");b?b(f,"WARNING",S,B,G,void 0,g):(b=_.nL("ERRORS",[]),b.push([f,"WARNING",S,B,G,void 0,g]),_.k5("ERRORS",b))};
mCA=function(f,S){S=f.split(S);for(var B={},G=0,g=S.length;G<g;G++){var b=S[G].split("=");if(b.length===1&&b[0]||b.length===2)try{var z=b_T(b[0]||""),X=b_T(b[1]||"");if(z in B){var w=B[z];Array.isArray(w)?_.c9(w,X):B[z]=[w,X]}else B[z]=X}catch(P){var F=P,V=b[0],J=String(mCA);F.args=[{key:V,value:b[1],query:f,method:zYs===J?"unchanged":J}];RYV.hasOwnProperty(V)||_.CL(F)}}return B};
XSG=function(f){var S=[];_.$v.forEach(f,function(B,G){var g=_.pL(G);_.AA(Array.isArray(B)?B:[B],function(b){b==""?S.push(g):S.push(g+"="+_.pL(b))})});
return S.join("&")};
_.Np=function(f){f.charAt(0)==="?"&&(f=f.substring(1));return mCA(f,"&")};
_.Mp=function(f){return f.indexOf("?")!==-1?(f=(f||"").split("#")[0],f=f.split("?",2),_.Np(f.length>1?f[1]:f[0])):{}};
_.Zt=function(f,S){return wS1(f,S||{},!0)};
hY9=function(f,S){return wS1(f,S||{},!1)};
wS1=function(f,S,B){var G=f.split("#",2);f=G[0];G=G.length>1?"#"+G[1]:"";var g=f.split("?",2);f=g[0];g=_.Np(g[1]||"");for(var b in S)if(B||!_.$v.containsKey(g,b))g[b]=S[b];return _.tA(f,g)+G};
Wf=function(f){if(!S)var S=window.location.href;var B=_.u0(f)[1]||null,G=_.aj(f);return B&&G?yR(f,S):G?_.aj(S)===G&&(Number(_.u0(S)[4]||null)||null)===(Number(_.u0(f)[4]||null)||null):!0};
_.FIN=function(f){f=T01(f);return f===null?!1:f[0]==="com"&&f[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
T01=function(f){f=_.aj(f);return f!==null?f.split(".").reverse():null};
b_T=function(f){return f&&f.match(Vuj)?f:l0(f)};
_.fN=function(f){return new JLV(f)};
_.oy=function(){PiN||(PiN=new v2T);return PiN};
dCT=function(f){var S=_.S7,B,G;_.R(function(g){B=_.oy();return(G=B.resolve(_.fN(S)))?(f(G),g.return(Promise.resolve(G))):g.return(B.resolve(new KIN(S)).then(function(b){f(b);return b}))})};
_.K=function(f){f=BL(f);return typeof f==="string"&&f==="false"?!1:!!f};
_.Gt=function(f,S){f=BL(f);return f===void 0&&S!==void 0?S:Number(f||0)};
i_j=function(f){f=BL(f);return Array.isArray(f)?_.Yv(f,function(S){return Number(S||0)}):[Number(f||0)]};
_.gO=function(f){f=BL(f);return f!==void 0?String(f):""};
_.e7=function(f){f=BL(f);return Array.isArray(f)?_.Yv(f,function(S){return String(S||"")}):[String(f||"")]};
H_1=function(){return _.nL("EXPERIMENTS_TOKEN","")};
BL=function(f){return _.nL("EXPERIMENT_FLAGS",{})[f]};
qlG=function(){for(var f=[],S=_.nL("EXPERIMENTS_FORCED_FLAGS",{}),B=_.m(Object.keys(S)),G=B.next();!G.done;G=B.next())G=G.value,f.push({key:G,value:String(S[G])});B=_.nL("EXPERIMENT_FLAGS",{});G=_.m(Object.keys(B));for(var g=G.next();!g.done;g=G.next())g=g.value,g.startsWith("force_")&&S[g]===void 0&&f.push({key:g,value:String(B[g])});return f};
QfN=function(){if(!$Cs)return null;var f=$Cs();return"open"in f?f:null};
_.YlV=function(f){switch(_.ba(f)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.ba=function(f){return f&&"status"in f?f.status:-1};
_.mE=function(f,S){typeof f==="function"&&(f=_.Ij(f));return window.setTimeout(f,S)};
_.zt=function(f,S){typeof f==="function"&&(f=_.Ij(f));return window.setInterval(f,S)};
_.Ry=function(f){window.clearTimeout(f)};
jfV=function(f){f=_.Mp(f);for(var S=_.m(rLV),B=S.next();!B.done;B=S.next())if(f[B.value]!==void 0)return!0;return!1};
E21=function(f,S,B,G,g,b,z,X){B=B===void 0?"GET":B;G=G===void 0?"":G;X=X===void 0?!1:X;var w=QfN();if(!w)return null;var F=function(){(w&&"readyState"in w?w.readyState:0)===4&&S&&_.Ij(S)(w)};
"onloadend"in w?w.addEventListener("loadend",F,!1):w.onreadystatechange=F;_.K("debug_forward_web_query_parameters")&&(f=O_W(f,window.location.search));w.open(B,f,!0);b&&(w.responseType=b);z&&(w.withCredentials=!0);B=B==="POST"&&(window.FormData===void 0||!(G instanceof FormData));if(g=xCK(f,g))for(var V in g)w.setRequestHeader(V,g[V]),"content-type"===V.toLowerCase()&&(B=!1);B&&w.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(X&&"setAttributionReporting"in XMLHttpRequest.prototype){f=
{eventSourceEligible:!0,triggerEligible:!1};try{w.setAttributionReporting(f)}catch(J){_.CL(J)}}w.send(G);return w};
xCK=function(f,S){S=S===void 0?{}:S;var B=Wf(f),G=_.nL("INNERTUBE_CLIENT_NAME"),g=_.K("web_ajax_ignore_global_headers_if_set"),b;for(b in LIT){var z=_.nL(LIT[b]),X=b==="X-Goog-AuthUser"||b==="X-Goog-PageId";b!=="X-Goog-Visitor-Id"||z||(z=_.nL("VISITOR_DATA"));var w;if(!(w=!z)){if(!(w=B||(_.aj(f)?!1:!0))){w=f;var F;if(F=_.K("add_auth_headers_to_remarketing_google_dot_com_ping")&&b==="Authorization"&&(G==="TVHTML5"||G==="TVHTML5_UNPLUGGED"||G==="TVHTML5_SIMPLY"))F=T01(w),F=F===null?!1:F[1]==="google"?
!0:F[2]==="google"?F[0]==="au"&&F[1]==="com"?!0:F[0]==="uk"&&F[1]==="co"?!0:!1:!1;F&&(w=_.Xl(w)||"",w=w.split("/"),w="/"+(w.length>1?w[1]:""),F=w==="/pagead");w=F?!0:!1}w=!w}w||g&&S[b]!==void 0||G==="TVHTML5_UNPLUGGED"&&X||(S[b]=z)}"X-Goog-EOM-Visitor-Id"in S&&"X-Goog-Visitor-Id"in S&&delete S["X-Goog-Visitor-Id"];if(B||!_.aj(f))S["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(B||!_.aj(f)){try{var V=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(J){}V&&(S["X-YouTube-Time-Zone"]=
V)}document.location.hostname.endsWith("youtubeeducation.com")||!B&&_.aj(f)||(S["X-YouTube-Ad-Signals"]=XSG(k$j()));return S};
_.n2V=function(f,S){var B=_.aj(f);_.K("debug_handle_relative_url_for_query_forward_killswitch")||!B&&Wf(f)&&(B=document.location.hostname);var G=_.Xl(f);G=(B=B&&(B.endsWith("youtube.com")||B.endsWith("youtube-nocookie.com")))&&G&&G.startsWith("/api/");if(!B||G)return f;var g=_.Np(S),b={};_.AA(rLV,function(z){g[z]&&(b[z]=g[z])});
return hY9(f,b)};
sfQ=function(f,S){S.method="POST";S.postParams||(S.postParams={});return _.wO(f,S)};
DCG=function(f,S){var B=_.nL("XSRF_FIELD_NAME"),G;S.headers&&(G=S.headers["Content-Type"]);return!S.excludeXsrf&&(!_.aj(f)||S.withCredentials||_.aj(f)===document.location.hostname)&&S.method==="POST"&&(!G||G==="application/x-www-form-urlencoded")&&!(S.postParams&&S.postParams[B])};
_.wO=function(f,S){var B=S.format||"JSON";f=Ics(f,S);var G=UCM(f,S),g=!1,b=Cij(f,function(w){if(!g){g=!0;X&&_.Ry(X);var F=_.YlV(w),V=null,J=400<=w.status&&w.status<500,P=500<=w.status&&w.status<600;if(F||J||P)V=pSx(f,B,w,S.convertToSafeHtml);F&&(F=ALT(B,w,V));V=V||{};J=S.context||_.S1;F?S.onSuccess&&S.onSuccess.call(J,w,V):S.onError&&S.onError.call(J,w,V);S.onFinish&&S.onFinish.call(J,w,V)}},S.method,G,S.headers,S.responseType,S.withCredentials);
G=S.timeout||0;if(S.onTimeout&&G>0){var z=S.onTimeout;var X=_.mE(function(){g||(g=!0,b.abort(),_.Ry(X),z.call(S.context||_.S1,b))},G)}return b};
Ics=function(f,S){S.includeDomain&&(f=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+f);var B=_.nL("XSRF_FIELD_NAME");if(S=S.urlParams)S[B]&&delete S[B],f=_.Zt(f,S);return f};
UCM=function(f,S){var B=_.nL("XSRF_FIELD_NAME"),G=_.nL("XSRF_TOKEN"),g=S.postBody||"",b=S.postParams;DCG(f,S)&&(b||(b={}),b[B]=G);(_.K("ajax_parse_query_data_only_when_filled")&&b&&Object.keys(b).length>0||b)&&typeof g==="string"&&(g=_.Np(g),_.$v.extend(g,b),g=S.postBodyFormat&&S.postBodyFormat==="JSON"?JSON.stringify(g):_.hY(g));b=g||b&&!_.$v.isEmpty(b);!N0x&&b&&S.method!=="POST"&&(N0x=!0,_.Dt(Error("Gc")));return g};
pSx=function(f,S,B,G){var g=null;switch(S){case "JSON":try{var b=B.responseText}catch(z){throw G=Error("Hc"),G.params=f,_.CL(G),z;}f=B.getResponseHeader("Content-Type")||"";b&&f.indexOf("json")>=0&&(b.substring(0,5)===")]}'\n"&&(b=b.substring(5)),g=JSON.parse(b));break;case "XML":if(f=(f=B.responseXML)?MuT(f):null)g={},_.AA(f.getElementsByTagName("*"),function(z){g[z.tagName]=Z_T(z)})}G&&tuN(g);
return g};
tuN=function(f){if(_.og(f))for(var S in f)S==="html_content"||e1(S,"_html")?f[S]=jZ(f[S]):tuN(f[S])};
ALT=function(f,S,B){if(S&&S.status===204)return!0;switch(f){case "JSON":return!!B;case "XML":return Number(B&&B.return_code)===0;case "RAW":return!0;default:return!!B}};
MuT=function(f){return f?(f=("responseXML"in f?f.responseXML:f).getElementsByTagName("root"))&&f.length>0?f[0]:null:null};
Z_T=function(f){var S="";_.AA(f.childNodes,function(B){S+=B.nodeValue});
return S};
ujK=function(f){if(f.name==="JavaException")return!0;f=f.stack;return f.includes("chrome://")||f.includes("-extension://")||f.includes("webkit-masked-url://")};
acT=function(f){if(!f.stack)return!0;var S=!f.stack.includes("\n");return S&&f.stack.includes("ErrorType: ")||S&&f.stack.includes("Anonymous function (Unknown script")||f.stack.toLowerCase()==="not available"||f.fileName==="user-script"||f.fileName.startsWith("user-script:")?!0:!1};
_.Tt=function(f){_.qR.call(this);this.JSC$8492_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!f};
WI1=function(f,S){var B=f.length,G=0,g=function(){return f.charCodeAt(G++)};
do{var b=yLN(g);if(b===Infinity)break;var z=b>>3;switch(b&7){case 0:b=yLN(g);if(z===S)return b;break;case 1:if(z===S)return;G+=8;break;case 2:b=yLN(g);if(z===S)return f.substr(G,b);G+=b;break;case 5:if(z===S)return;G+=4;break;default:return}}while(G<B)};
yLN=function(f){var S=f(),B=S&127;if(S<128)return B;S=f();B|=(S&127)<<7;if(S<128)return B;S=f();B|=(S&127)<<14;if(S<128)return B;S=f();return S<128?B|(S&127)<<21:Infinity};
lcW=function(f,S,B,G){if(f)if(Array.isArray(f)){var g=G;for(G=0;G<f.length&&!(f[G]&&(g+=cLA(G,f[G],S,B),g>500));G++);G=g}else if(typeof f==="object")for(g in f){if(f[g]){var b=g;var z=f[g],X=S,w=B;b=typeof z!=="string"||b!=="clickTrackingParams"&&b!=="trackingParams"?0:(z=WI1(atob(z.replace(/-/g,"+").replace(/_/g,"/")),2))?cLA(b+".ve",z,X,w):0;G+=b;G+=cLA(g,f[g],S,B);if(G>500)break}}else B[S]=Fl(f),G+=B[S].length;else B[S]=Fl(f),G+=B[S].length;return G};
cLA=function(f,S,B,G){B+="."+f;f=Fl(S);G[B]=f;return B.length+f.length};
Fl=function(f){try{return(typeof f==="string"?f:String(JSON.stringify(f))).substr(0,500)}catch(S){return"unable to serialize "+typeof f+" ("+S.message+")"}};
fTM=function(f){switch(f){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}};
_.JY=function(f,S,B,G,g){_.VP.set(f,S,{maxAge:B,path:"/",domain:G===void 0?"youtube.com":G,secure:g===void 0?!1:g})};
_.oc1=function(f,S,B){_.VP.remove(f,S===void 0?"/":S,B===void 0?"youtube.com":B)};
_.PL=function(){if(_.K("embeds_web_enable_cookie_detection_fix")){if(!_.S1.navigator.cookieEnabled)return!1}else if(!_.VP.isEnabled())return!1;if(!_.VP.isEmpty())return!0;_.K("embeds_web_enable_cookie_detection_fix")?_.VP.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.VP.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.VP.get("TESTCOOKIESENABLED")!=="1")return!1;_.VP.remove("TESTCOOKIESENABLED");return!0};
SfN=function(){var f=_.S1.navigator;return f?f.connection:void 0};
BiW=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(f){}};
_.gcM=function(){var f=SfN();if(f){var S=GlM[f.type||"unknown"]||"CONN_UNKNOWN";f=GlM[f.effectiveType||"unknown"]||"CONN_UNKNOWN";S==="CONN_CELLULAR_UNKNOWN"&&f!=="CONN_UNKNOWN"&&(S=f);if(S!=="CONN_UNKNOWN")return S;if(f!=="CONN_UNKNOWN")return f}};
bks=function(){var f=SfN();if(f!=null&&f.effectiveType)return eSN.hasOwnProperty(f.effectiveType)?eSN[f.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.KN=function(){try{return _.vL(),!0}catch(f){return!1}};
_.vL=function(f){if(_.nL("DATASYNC_ID")!==void 0)return _.nL("DATASYNC_ID");throw new _.dO("Datasync ID not set",f===void 0?"unknown":f);};
_.ia=function(f){this.mechanism=f};
HL=function(f){this.mechanism=f};
qH=function(f){this.storage_=f;this.cachedIsStorageAvailable_=null};
m5N=function(){var f=null;try{f=_.S1.localStorage||null}catch(S){}qH.call(this,f)};
zSQ=function(){var f=null;try{f=_.S1.sessionStorage||null}catch(S){}qH.call(this,f)};
$0=function(f,S){this.mechanism_=f;this.JSC$8594_prefix_=S+"::"};
_.RST=function(f){var S=new m5N;return S.isAvailable()?f?new $0(S,f):S:null};
_.XZK=function(f){var S=new zSQ;return S.isAvailable()?f?new $0(S,f):S:null};
hSN=function(){var f;return(f=wZT())==null?void 0:f.get("LAST_RESULT_ENTRY_KEY",!0)};
_.rO=function(f){TiQ||(_.QP?_.QP.logError(f):(_.Y0.push({type:"ERROR",payload:f}),_.Y0.length>10&&_.Y0.shift()))};
j7=function(f,S){TiQ||(_.QP?_.QP.logEvent(f,S):(_.Y0.push({type:"EVENT",eventType:f,payload:S}),_.Y0.length>10&&_.Y0.shift()))};
OZ=function(f){if(f.indexOf(":")>=0)throw Error("Oc");};
x0=function(f){return f.substr(0,f.indexOf(":"))||f};
J2V=function(){return(FjN||VeV)&&EZ("applewebkit")&&!EZ("version")&&(!EZ("safari")||EZ("gsa/"))};
EZ=function(f){var S=_.Js();return S?S.toLowerCase().indexOf(f)>=0:!1};
KjA=function(f,S,B,G){S=x0(S);var g=f instanceof Error?f:Error("Pc`"+f);if(g instanceof LN)return g;f={objectStoreNames:B,dbName:S,dbVersion:G};if(g.name==="QuotaExceededError")return new LN("QUOTA_EXCEEDED",f);if(_.k0&&g.name==="UnknownError")return new LN("QUOTA_MAYBE_EXCEEDED",f);if(g instanceof PTK)return new LN("MISSING_INDEX",Object.assign({},f,{objectStore:g.objectStore,index:g.index}));if(g.name==="InvalidStateError"&&vcx.some(function(b){return g.message.includes(b)}))return new LN("EXECUTE_TRANSACTION_ON_CLOSED_DB",
f);
if(g.name==="AbortError")return new LN("UNKNOWN_ABORT",f,g.message);g.args=[Object.assign({},f,{name:"IdbError",originalName:g.name})];g.level="WARNING";return g};
nN=function(f,S,B){var G=hSN();return new LN("IDB_NOT_SUPPORTED",{context:{caller:f,publicName:S,version:B,hasSucceededOnce:G==null?void 0:G.hasSucceededOnce}})};
d5V=function(f){if(!f)throw Error();throw f;};
ik9=function(f){return f};
HkT=function(f,S,B){var G=function(){try{f.removeEventListener("success",g),f.removeEventListener("error",b)}catch(z){}},g=function(){S(f.result);
G()},b=function(){B(f.error);
G()};
f.addEventListener("success",g);f.addEventListener("error",b)};
qfx=function(f){return new Promise(function(S,B){HkT(f,S,B)})};
Iy=function(f){return new sZ(new Dz(function(S,B){HkT(f,S,B)}))};
$5W=function(f,S){return new sZ(new Dz(function(B,G){var g=function(){var b=f?S(f):null;b?b.then(function(z){f=z;g()},G):B()};
g()}))};
Yfs=function(f,S,B){return new Promise(function(G,g){var b=S!==void 0?self.indexedDB.open(f,S):self.indexedDB.open(f);var z=B.blocked,X=B.blocking,w=B.terminated,F=B.upgrade,V=B.closed,J,P=function(){J||(J=new UZ(b.result,{closed:V}));return J};
b.addEventListener("upgradeneeded",function(d){try{if(d.newVersion===null)throw Error("Uc");if(b.transaction===null)throw Error("Vc");d.dataLoss&&d.dataLoss!=="none"&&j7("IDB_DATA_CORRUPTED",{reason:d.dataLossMessage||"unknown reason",dbName:x0(f)});var Q=P(),x=new Q4W(b.transaction);F&&F(Q,function(E){return d.oldVersion<E&&d.newVersion>=E},x);
x.done.catch(function(E){g(E)})}catch(E){g(E)}});
b.addEventListener("success",function(){var d=b.result;X&&d.addEventListener("versionchange",function(){X(P())});
d.addEventListener("close",function(){j7("IDB_UNEXPECTEDLY_CLOSED",{dbName:x0(f),dbVersion:d.version});w&&w()});
G(P())});
b.addEventListener("error",function(){g(b.error)});
z&&b.addEventListener("blocked",function(){z()})})};
r2K=function(f,S,B){B=B===void 0?{}:B;return Yfs(f,S,B)};
_.pN=function(f,S){S=S===void 0?{}:S;var B,G,g,b;return _.R(function(z){if(z.nextAddress==1)return _.zT(z,2),B=self.indexedDB.deleteDatabase(f),G=S,(g=G.blocked)&&B.addEventListener("blocked",function(){g()}),_.h(z,qfx(B),4);
if(z.nextAddress!=2)return _.CN(z,0);b=_.hm(z);throw KjA(b,f,"",-1);})};
Ok1=function(f,S){var B;return _.R(function(G){if(G.nextAddress==1)return _.h(G,_.AY(j49,S),2);B=G.yieldResult;return G.return(_.MH(B,["databases"],{enableRetries:!0,mode:"readwrite"},function(g){var b=g.objectStore("databases");return b.get(f.actualName).then(function(z){if(z?f.actualName!==z.actualName||f.publicName!==z.publicName||f.userIdentifier!==z.userIdentifier:1)return b.put(f).then(function(){})})}))})};
_.Zz=function(f,S){var B;return _.R(function(G){if(G.nextAddress==1)return f?_.h(G,_.AY(j49,S),2):G.return();B=G.yieldResult;return G.return(B.delete("databases",f))})};
_.x5W=function(f,S){var B,G;return _.R(function(g){return g.nextAddress==1?(B=[],_.h(g,_.AY(j49,S),2)):g.nextAddress!=3?(G=g.yieldResult,_.h(g,_.MH(G,["databases"],{enableRetries:!0,mode:"readonly"},function(b){B.length=0;return ua(b.objectStore("databases"),{},function(z){f(z.getValue())&&B.push(z.getValue());return z.continue()})}),3)):g.return(B)})};
Ec1=function(f,S){return _.x5W(function(B){return B.publicName===f&&B.userIdentifier!==void 0},S)};
ncN=function(){var f,S,B,G;return _.R(function(g){switch(g.nextAddress){case 1:f=hSN();if((S=f)==null?0:S.hasSucceededOnce)return g.return(!0);var b;if(b=Lj1)b=/WebKit\/([0-9]+)/.exec(_.Js()),b=!!(b&&parseInt(b[1],10)>=600);b&&(b=/WebKit\/([0-9]+)/.exec(_.Js()),b=!(b&&parseInt(b[1],10)>=602));if(b||ay)return g.return(!1);try{if(B=self,!(B.indexedDB&&B.IDBIndex&&B.IDBKeyRange&&B.IDBObjectStore))return g.return(!1)}catch(z){return g.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return g.return(!1);
_.zT(g,2);G={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return _.h(g,Ok1(G,klj),4);case 4:return _.h(g,_.Zz("yt-idb-test-do-not-use",klj),5);case 5:return g.return(!0);case 2:return _.hm(g),g.return(!1)}})};
D51=function(){if(s4M!==void 0)return s4M;TiQ=!0;return s4M=ncN().then(function(f){TiQ=!1;var S;if((S=wZT())!=null&&S.expiringStorage_){var B;S={hasSucceededOnce:((B=hSN())==null?void 0:B.hasSucceededOnce)||f};var G;(G=wZT())==null||G.set("LAST_RESULT_ENTRY_KEY",S,2592E3,!0)}return f})};
yP=function(){return _.U6("ytglobal.idbToken_")||void 0};
_.cL=function(){var f=yP();return f?Promise.resolve(f):D51().then(function(S){(S=S?klj:void 0)&&_.WL("ytglobal.idbToken_",S);return S})};
ITM=function(f){if(!_.KN())throw f=new LN("AUTH_INVALID",{dbName:f}),_.rO(f),f;var S=_.vL();return{actualName:f+":"+S,publicName:f,userIdentifier:S}};
U59=function(f,S,B,G){var g,b,z,X,w,F;return _.R(function(V){switch(V.nextAddress){case 1:return b=(g=Error().stack)!=null?g:"",_.h(V,_.cL(),2);case 2:z=V.yieldResult;if(!z)throw X=nN("openDbImpl",f,S),_.K("ytidb_async_stack_killswitch")||(X.stack=X.stack+"\n"+b.substring(b.indexOf("\n")+1)),_.rO(X),X;OZ(f);w=B?{actualName:f,publicName:f,userIdentifier:void 0}:ITM(f);_.zT(V,3);return _.h(V,Ok1(w,z),5);case 5:return _.h(V,r2K(w.actualName,S,G),6);case 6:return V.return(V.yieldResult);case 3:return F=
_.hm(V),_.zT(V,7),_.h(V,_.Zz(w.actualName,z),9);case 9:_.CN(V,8);break;case 7:_.hm(V);case 8:throw F;}})};
CTV=function(f,S,B){B=B===void 0?{}:B;return U59(f,S,!1,B)};
pZV=function(f,S,B){B=B===void 0?{}:B;return U59(f,S,!0,B)};
A2W=function(f,S){S=S===void 0?{}:S;var B,G;return _.R(function(g){if(g.nextAddress==1)return _.h(g,_.cL(),2);if(g.nextAddress!=3){B=g.yieldResult;if(!B)return g.return();OZ(f);G=ITM(f);return _.h(g,_.pN(G.actualName,S),3)}return _.h(g,_.Zz(G.actualName,B),0)})};
Nix=function(f,S,B){f=f.map(function(G){return _.R(function(g){return g.nextAddress==1?_.h(g,_.pN(G.actualName,S),2):_.h(g,_.Zz(G.actualName,B),0)})});
return Promise.all(f).then(function(){})};
Me1=function(f){var S=S===void 0?{}:S;var B,G;return _.R(function(g){if(g.nextAddress==1)return _.h(g,_.cL(),2);if(g.nextAddress!=3){B=g.yieldResult;if(!B)return g.return();OZ(f);return _.h(g,Ec1(f,B),3)}G=g.yieldResult;return _.h(g,Nix(G,S,B),0)})};
Zkj=function(f,S){S=S===void 0?{}:S;var B;return _.R(function(G){if(G.nextAddress==1)return _.h(G,_.cL(),2);if(G.nextAddress!=3){B=G.yieldResult;if(!B)return G.return();OZ(f);return _.h(G,_.pN(f,S),3)}return _.h(G,_.Zz(f,B),0)})};
la=function(f,S){return te9(f,S)};
aTQ=function(f){return _.AY(uv1(),f)};
y2j=function(f,S,B,G){var g,b,z;return _.R(function(X){switch(X.nextAddress){case 1:return g={config:f,hashData:S,timestamp:G!==void 0?G:(0,_.fO)()},_.h(X,aTQ(B),2);case 2:return b=X.yieldResult,_.h(X,b.clear("hotConfigStore"),3);case 3:return _.h(X,b.put("hotConfigStore",g),4);case 4:return z=X.yieldResult,X.return(z)}})};
Wj9=function(f,S,B,G,g){var b,z,X;return _.R(function(w){switch(w.nextAddress){case 1:return b={config:f,hashData:S,configData:B,timestamp:g!==void 0?g:(0,_.fO)()},_.h(w,aTQ(G),2);case 2:return z=w.yieldResult,_.h(w,z.clear("coldConfigStore"),3);case 3:return _.h(w,z.put("coldConfigStore",b),4);case 4:return X=w.yieldResult,w.return(X)}})};
c21=function(f){var S,B;return _.R(function(G){return G.nextAddress==1?_.h(G,aTQ(f),2):G.nextAddress!=3?(S=G.yieldResult,B=void 0,_.h(G,_.MH(S,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(g){return _.oJ(g.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(b){B=b.getValue()})}),3)):G.return(B)})};
lTN=function(f){var S,B;return _.R(function(G){return G.nextAddress==1?_.h(G,aTQ(f),2):G.nextAddress!=3?(S=G.yieldResult,B=void 0,_.h(G,_.MH(S,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(g){return _.oJ(g.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(b){B=b.getValue()})}),3)):G.return(B)})};
fuQ=function(){return _.R(function(f){return _.h(f,Me1("ytGcfConfig"),0)})};
oTN=function(){return"INNERTUBE_API_KEY"in _.LL&&"INNERTUBE_API_VERSION"in _.LL};
_.SC=function(){return{innertubeApiKey:_.nL("INNERTUBE_API_KEY"),innertubeApiVersion:_.nL("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.nL("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.nL("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.nL("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.nL("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.nL("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.nL("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.nL("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.s6("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.s6("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.nL("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.mEV=function(f){var S={client:{hl:f.innertubeContextHostLanguage,gl:f.innertubeContextGeoLocation,clientName:f.innertubeContextClientName,clientVersion:f.innertubeContextClientVersion,configInfo:f.innertubeContextClientConfigInfo}};navigator.userAgent&&(S.client.userAgent=String(navigator.userAgent));var B=_.S1.devicePixelRatio;B&&B!=1&&(S.client.screenDensityFloat=String(B));B=H_1();B!==""&&(S.client.experimentsToken=B);B=qlG();B.length>0&&(S.request={internalExperimentFlags:B});SLN(f,void 0,S);
BhG(void 0,S);GZK(void 0,S);gTT(f,void 0,S);eLG(void 0,S);_.K("start_client_gcf")&&b2s(void 0,S);_.nL("DELEGATED_SESSION_ID")&&!_.K("pageid_as_header_web")&&(S.user={onBehalfOfUser:_.nL("DELEGATED_SESSION_ID")});!_.K("fill_delegate_context_in_gel_killswitch")&&(f=_.nL("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(S.user=Object.assign({},S.user,{serializedDelegationContext:f}));f=_.nL("INNERTUBE_CONTEXT");var G;if(_.K("enable_persistent_device_token")&&(f==null?0:(G=f.client)==null?0:G.rolloutToken)){var g;
S.client.rolloutToken=f==null?void 0:(g=f.client)==null?void 0:g.rolloutToken}G=Object;g=G.assign;f=S.client;B={};for(var b=_.m(Object.entries(_.Np(_.nL("DEVICE","")))),z=b.next();!z.done;z=b.next()){var X=_.m(z.value);z=X.next().value;X=X.next().value;z==="cbrand"?B.deviceMake=X:z==="cmodel"?B.deviceModel=X:z==="cbr"?B.browserName=X:z==="cbrver"?B.browserVersion=X:z==="cos"?B.osName=X:z==="cosver"?B.osVersion=X:z==="cplatform"&&(B.platform=X)}S.client=g.call(G,f,B);return S};
SLN=function(f,S,B){f=f.innertubeContextClientName;if(f==="WEB"||f==="MWEB"||f===1||f===2)if(S){B=_.BU(S,zL9,96)||new zL9;var G=RLM();G=Object.keys(XKQ).indexOf(G);G=G===-1?null:G;G!==null&&_.GV(B,3,G);_.SZ(S,96,B)}else B&&(B.client.mainAppWebInfo=(G=B.client.mainAppWebInfo)!=null?G:{},B.client.mainAppWebInfo.webDisplayMode=RLM())};
BhG=function(f,S){var B=_.U6("yt.embedded_player.embed_url");B&&(f?(S=_.BU(f,wKN,7)||new wKN,_.Jx(S,4,B),_.SZ(f,7,S)):S&&(S.thirdParty={embedUrl:B}))};
GZK=function(f,S){var B;if(_.K("web_log_memory_total_kbytes")&&((B=_.S1.navigator)==null?0:B.deviceMemory)){var G;B=(G=_.S1.navigator)==null?void 0:G.deviceMemory;f?_.gZ(f,95,x$(B*1E6)):S&&(S.client.memoryTotalKbytes=""+B*1E6)}};
gTT=function(f,S,B){if(f.appInstallData)if(S){var G;B=(G=_.BU(S,eC,62))!=null?G:new eC;_.Jx(B,6,f.appInstallData);_.SZ(S,62,B)}else B&&(B.client.configInfo=B.client.configInfo||{},B.client.configInfo.appInstallData=f.appInstallData)};
eLG=function(f,S){var B=_.gcM();B&&(f?_.GV(f,61,hL9[B]):S&&(S.client.connectionType=B));_.K("web_log_effective_connection_type")&&(B=bks())&&(f?_.GV(f,94,Ths[B]):S&&(S.client.effectiveConnectionType=B))};
_.Jfj=function(f,S,B){B=B===void 0?{}:B;var G={};_.nL("EOM_VISITOR_DATA")?G={"X-Goog-EOM-Visitor-Id":_.nL("EOM_VISITOR_DATA")}:G={"X-Goog-Visitor-Id":B.visitorData||_.nL("VISITOR_DATA","")};if(S&&S.includes("www.youtube-nocookie.com"))return G;S=B.authorization||_.nL("AUTHORIZATION");S||(f?S="Bearer "+_.U6("gapi.auth.getToken")().access_token:(FUN.instance||(FUN.instance=new FUN),f=Vw1(),_.K("pageid_as_header_web")||delete f["X-Goog-PageId"],G=Object.assign({},G,f)));S&&(G.Authorization=S);return G};
b2s=function(f,S){var B=PWN();if(B){var G=B.coldConfigData,g=B.coldHashData;B=B.hotHashData;if(f){var b;S=(b=_.BU(f,eC,62))!=null?b:new eC;G=_.Jx(S,1,G);_.Jx(G,3,g).setHotHashData(B);_.SZ(f,62,S)}else S&&(S.client.configInfo=S.client.configInfo||{},G&&(S.client.configInfo.coldConfigData=G),g&&(S.client.configInfo.coldHashData=g),B&&(S.client.configInfo.hotHashData=B))}};
bP=function(f){for(var S=f.length;--S>=0;)f[S]=0};
vT9=function(f,S,B,G,g){this.static_tree=f;this.extra_bits=S;this.extra_base=B;this.elems=G;this.max_length=g;this.has_stree=f&&f.length};
KUT=function(f,S){this.dyn_tree=f;this.max_code=0;this.stat_desc=S};
mN=function(f,S){f.pending_buf[f.pending++]=S&255;f.pending_buf[f.pending++]=S>>>8&255};
zV=function(f,S,B){f.bi_valid>16-B?(f.bi_buf|=S<<f.bi_valid&65535,mN(f,f.bi_buf),f.bi_buf=S>>16-f.bi_valid,f.bi_valid+=B-16):(f.bi_buf|=S<<f.bi_valid&65535,f.bi_valid+=B)};
RJ=function(f,S,B){zV(f,B[S*2],B[S*2+1])};
dEQ=function(f,S){var B=0;do B|=f&1,f>>>=1,B<<=1;while(--S>0);return B>>>1};
i2G=function(f,S,B){var G=Array(16),g=0,b;for(b=1;b<=15;b++)G[b]=g=g+B[b-1]<<1;for(B=0;B<=S;B++)g=f[B*2+1],g!==0&&(f[B*2]=dEQ(G[g]++,g))};
H2W=function(f){var S;for(S=0;S<286;S++)f.dyn_ltree[S*2]=0;for(S=0;S<30;S++)f.dyn_dtree[S*2]=0;for(S=0;S<19;S++)f.bl_tree[S*2]=0;f.dyn_ltree[512]=1;f.opt_len=f.static_len=0;f.last_lit=f.matches=0};
qLV=function(f){f.bi_valid>8?mN(f,f.bi_buf):f.bi_valid>0&&(f.pending_buf[f.pending++]=f.bi_buf);f.bi_buf=0;f.bi_valid=0};
$EM=function(f,S,B){qLV(f);mN(f,B);mN(f,~B);X3.arraySet(f.pending_buf,f.window,S,B,f.pending);f.pending+=B};
QDx=function(f,S,B,G){var g=S*2,b=B*2;return f[g]<f[b]||f[g]===f[b]&&G[S]<=G[B]};
YLN=function(f,S,B){for(var G=f.heap[B],g=B<<1;g<=f.heap_len;){g<f.heap_len&&QDx(S,f.heap[g+1],f.heap[g],f.depth)&&g++;if(QDx(S,G,f.heap[g],f.depth))break;f.heap[B]=f.heap[g];B=g;g<<=1}f.heap[B]=G};
ETN=function(f,S,B){var G=0;if(f.last_lit!==0){do{var g=f.pending_buf[f.d_buf+G*2]<<8|f.pending_buf[f.d_buf+G*2+1];var b=f.pending_buf[f.l_buf+G];G++;if(g===0)RJ(f,b,S);else{var z=wZ[b];RJ(f,z+256+1,S);var X=rfK[z];X!==0&&(b-=jDQ[z],zV(f,b,X));g--;z=g<256?hy[g]:hy[256+(g>>>7)];RJ(f,z,B);X=O2M[z];X!==0&&(g-=xEV[z],zV(f,g,X))}}while(G<f.last_lit)}RJ(f,256,S)};
LUW=function(f,S){var B=S.dyn_tree,G=S.stat_desc.static_tree,g=S.stat_desc.has_stree,b=S.stat_desc.elems,z,X=-1;f.heap_len=0;f.heap_max=573;for(z=0;z<b;z++)B[z*2]!==0?(f.heap[++f.heap_len]=X=z,f.depth[z]=0):B[z*2+1]=0;for(;f.heap_len<2;){var w=f.heap[++f.heap_len]=X<2?++X:0;B[w*2]=1;f.depth[w]=0;f.opt_len--;g&&(f.static_len-=G[w*2+1])}S.max_code=X;for(z=f.heap_len>>1;z>=1;z--)YLN(f,B,z);w=b;do z=f.heap[1],f.heap[1]=f.heap[f.heap_len--],YLN(f,B,1),G=f.heap[1],f.heap[--f.heap_max]=z,f.heap[--f.heap_max]=
G,B[w*2]=B[z*2]+B[G*2],f.depth[w]=(f.depth[z]>=f.depth[G]?f.depth[z]:f.depth[G])+1,B[z*2+1]=B[G*2+1]=w,f.heap[1]=w++,YLN(f,B,1);while(f.heap_len>=2);f.heap[--f.heap_max]=f.heap[1];z=S.dyn_tree;w=S.max_code;G=S.stat_desc.static_tree;g=S.stat_desc.has_stree;b=S.stat_desc.extra_bits;var F=S.stat_desc.extra_base,V=S.stat_desc.max_length,J,P=0;for(J=0;J<=15;J++)f.bl_count[J]=0;z[f.heap[f.heap_max]*2+1]=0;for(S=f.heap_max+1;S<573;S++){var d=f.heap[S];J=z[z[d*2+1]*2+1]+1;J>V&&(J=V,P++);z[d*2+1]=J;if(!(d>
w)){f.bl_count[J]++;var Q=0;d>=F&&(Q=b[d-F]);var x=z[d*2];f.opt_len+=x*(J+Q);g&&(f.static_len+=x*(G[d*2+1]+Q))}}if(P!==0){do{for(J=V-1;f.bl_count[J]===0;)J--;f.bl_count[J]--;f.bl_count[J+1]+=2;f.bl_count[V]--;P-=2}while(P>0);for(J=V;J!==0;J--)for(d=f.bl_count[J];d!==0;)G=f.heap[--S],G>w||(z[G*2+1]!==J&&(f.opt_len+=(J-z[G*2+1])*z[G*2],z[G*2+1]=J),d--)}i2G(B,X,f.bl_count)};
kZN=function(f,S,B){var G,g=-1,b=S[1],z=0,X=7,w=4;b===0&&(X=138,w=3);S[(B+1)*2+1]=65535;for(G=0;G<=B;G++){var F=b;b=S[(G+1)*2+1];++z<X&&F===b||(z<w?f.bl_tree[F*2]+=z:F!==0?(F!==g&&f.bl_tree[F*2]++,f.bl_tree[32]++):z<=10?f.bl_tree[34]++:f.bl_tree[36]++,z=0,g=F,b===0?(X=138,w=3):F===b?(X=6,w=3):(X=7,w=4))}};
nTV=function(f,S,B){var G,g=-1,b=S[1],z=0,X=7,w=4;b===0&&(X=138,w=3);for(G=0;G<=B;G++){var F=b;b=S[(G+1)*2+1];if(!(++z<X&&F===b)){if(z<w){do RJ(f,F,f.bl_tree);while(--z!==0)}else F!==0?(F!==g&&(RJ(f,F,f.bl_tree),z--),RJ(f,16,f.bl_tree),zV(f,z-3,2)):z<=10?(RJ(f,17,f.bl_tree),zV(f,z-3,3)):(RJ(f,18,f.bl_tree),zV(f,z-11,7));z=0;g=F;b===0?(X=138,w=3):F===b?(X=6,w=3):(X=7,w=4)}}};
sDs=function(f){var S=4093624447,B;for(B=0;B<=31;B++,S>>>=1)if(S&1&&f.dyn_ltree[B*2]!==0)return 0;if(f.dyn_ltree[18]!==0||f.dyn_ltree[20]!==0||f.dyn_ltree[26]!==0)return 1;for(B=32;B<256;B++)if(f.dyn_ltree[B*2]!==0)return 1;return 0};
TV=function(f,S,B){f.pending_buf[f.d_buf+f.last_lit*2]=S>>>8&255;f.pending_buf[f.d_buf+f.last_lit*2+1]=S&255;f.pending_buf[f.l_buf+f.last_lit]=B&255;f.last_lit++;S===0?f.dyn_ltree[B*2]++:(f.matches++,S--,f.dyn_ltree[(wZ[B]+256+1)*2]++,f.dyn_dtree[(S<256?hy[S]:hy[256+(S>>>7)])*2]++);return f.last_lit===f.lit_bufsize-1};
Vd=function(f,S){f.msg=F3[S];return S};
Jy=function(f){for(var S=f.length;--S>=0;)f[S]=0};
PU=function(f){var S=f.state,B=S.pending;B>f.avail_out&&(B=f.avail_out);B!==0&&(X3.arraySet(f.output,S.pending_buf,S.pending_out,B,f.next_out),f.next_out+=B,S.pending_out+=B,f.total_out+=B,f.avail_out-=B,S.pending-=B,S.pending===0&&(S.pending_out=0))};
dZ=function(f,S){var B=f.block_start>=0?f.block_start:-1,G=f.strstart-f.block_start,g=0;if(f.level>0){f.strm.data_type===2&&(f.strm.data_type=sDs(f));LUW(f,f.l_desc);LUW(f,f.d_desc);kZN(f,f.dyn_ltree,f.l_desc.max_code);kZN(f,f.dyn_dtree,f.d_desc.max_code);LUW(f,f.bl_desc);for(g=18;g>=3&&f.bl_tree[DEK[g]*2+1]===0;g--);f.opt_len+=3*(g+1)+5+5+4;var b=f.opt_len+3+7>>>3;var z=f.static_len+3+7>>>3;z<=b&&(b=z)}else b=z=G+5;if(G+4<=b&&B!==-1)zV(f,S?1:0,3),$EM(f,B,G);else if(f.strategy===4||z===b)zV(f,2+(S?
1:0),3),ETN(f,vU,KO);else{zV(f,4+(S?1:0),3);B=f.l_desc.max_code+1;G=f.d_desc.max_code+1;g+=1;zV(f,B-257,5);zV(f,G-1,5);zV(f,g-4,4);for(b=0;b<g;b++)zV(f,f.bl_tree[DEK[b]*2+1],3);nTV(f,f.dyn_ltree,B-1);nTV(f,f.dyn_dtree,G-1);ETN(f,f.dyn_ltree,f.dyn_dtree)}H2W(f);S&&qLV(f);f.block_start=f.strstart;PU(f.strm)};
iP=function(f,S){f.pending_buf[f.pending++]=S};
HU=function(f,S){f.pending_buf[f.pending++]=S>>>8&255;f.pending_buf[f.pending++]=S&255};
IuT=function(f,S){var B=f.max_chain_length,G=f.strstart,g=f.prev_length,b=f.nice_match,z=f.strstart>f.w_size-262?f.strstart-(f.w_size-262):0,X=f.window,w=f.w_mask,F=f.prev,V=f.strstart+258,J=X[G+g-1],P=X[G+g];f.prev_length>=f.good_match&&(B>>=2);b>f.lookahead&&(b=f.lookahead);do{var d=S;if(X[d+g]===P&&X[d+g-1]===J&&X[d]===X[G]&&X[++d]===X[G+1]){G+=2;for(d++;X[++G]===X[++d]&&X[++G]===X[++d]&&X[++G]===X[++d]&&X[++G]===X[++d]&&X[++G]===X[++d]&&X[++G]===X[++d]&&X[++G]===X[++d]&&X[++G]===X[++d]&&G<V;);
d=258-(V-G);G=V-258;if(d>g){f.match_start=S;g=d;if(d>=b)break;J=X[G+g-1];P=X[G+g]}}}while((S=F[S&w])>z&&--B!==0);return g<=f.lookahead?g:f.lookahead};
$J=function(f){var S=f.w_size,B;do{var G=f.window_size-f.lookahead-f.strstart;if(f.strstart>=S+(S-262)){X3.arraySet(f.window,f.window,S,S,0);f.match_start-=S;f.strstart-=S;f.block_start-=S;var g=B=f.hash_size;do{var b=f.head[--g];f.head[g]=b>=S?b-S:0}while(--B);g=B=S;do b=f.prev[--g],f.prev[g]=b>=S?b-S:0;while(--B);G+=S}if(f.strm.avail_in===0)break;g=f.strm;B=f.window;b=f.strstart+f.lookahead;var z=g.avail_in;z>G&&(z=G);z===0?B=0:(g.avail_in-=z,X3.arraySet(B,g.input,g.next_in,z,b),g.state.wrap===
1?g.adler=UEV(g.adler,B,z,b):g.state.wrap===2&&(g.adler=q7(g.adler,B,z,b)),g.next_in+=z,g.total_in+=z,B=z);f.lookahead+=B;if(f.lookahead+f.insert>=3)for(G=f.strstart-f.insert,f.ins_h=f.window[G],f.ins_h=(f.ins_h<<f.hash_shift^f.window[G+1])&f.hash_mask;f.insert&&!(f.ins_h=(f.ins_h<<f.hash_shift^f.window[G+3-1])&f.hash_mask,f.prev[G&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=G,G++,f.insert--,f.lookahead+f.insert<3););}while(f.lookahead<262&&f.strm.avail_in!==0)};
CWs=function(f,S){for(var B;;){if(f.lookahead<262){$J(f);if(f.lookahead<262&&S===0)return 1;if(f.lookahead===0)break}B=0;f.lookahead>=3&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+3-1])&f.hash_mask,B=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart);B!==0&&f.strstart-B<=f.w_size-262&&(f.match_length=IuT(f,B));if(f.match_length>=3)if(B=TV(f,f.strstart-f.match_start,f.match_length-3),f.lookahead-=f.match_length,f.match_length<=f.max_lazy_match&&f.lookahead>=3){f.match_length--;
do f.strstart++,f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+3-1])&f.hash_mask,f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart;while(--f.match_length!==0);f.strstart++}else f.strstart+=f.match_length,f.match_length=0,f.ins_h=f.window[f.strstart],f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+1])&f.hash_mask;else B=TV(f,0,f.window[f.strstart]),f.lookahead--,f.strstart++;if(B&&(dZ(f,!1),f.strm.avail_out===0))return 1}f.insert=f.strstart<2?f.strstart:2;return S===4?(dZ(f,
!0),f.strm.avail_out===0?3:4):f.last_lit&&(dZ(f,!1),f.strm.avail_out===0)?1:2};
rZ=function(f,S){for(var B,G;;){if(f.lookahead<262){$J(f);if(f.lookahead<262&&S===0)return 1;if(f.lookahead===0)break}B=0;f.lookahead>=3&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+3-1])&f.hash_mask,B=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart);f.prev_length=f.match_length;f.prev_match=f.match_start;f.match_length=2;B!==0&&f.prev_length<f.max_lazy_match&&f.strstart-B<=f.w_size-262&&(f.match_length=IuT(f,B),f.match_length<=5&&(f.strategy===1||f.match_length===3&&
f.strstart-f.match_start>4096)&&(f.match_length=2));if(f.prev_length>=3&&f.match_length<=f.prev_length){G=f.strstart+f.lookahead-3;B=TV(f,f.strstart-1-f.prev_match,f.prev_length-3);f.lookahead-=f.prev_length-1;f.prev_length-=2;do++f.strstart<=G&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+3-1])&f.hash_mask,f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart);while(--f.prev_length!==0);f.match_available=0;f.match_length=2;f.strstart++;if(B&&(dZ(f,!1),f.strm.avail_out===0))return 1}else if(f.match_available){if((B=
TV(f,0,f.window[f.strstart-1]))&&dZ(f,!1),f.strstart++,f.lookahead--,f.strm.avail_out===0)return 1}else f.match_available=1,f.strstart++,f.lookahead--}f.match_available&&(TV(f,0,f.window[f.strstart-1]),f.match_available=0);f.insert=f.strstart<2?f.strstart:2;return S===4?(dZ(f,!0),f.strm.avail_out===0?3:4):f.last_lit&&(dZ(f,!1),f.strm.avail_out===0)?1:2};
pKW=function(f,S){for(var B,G,g,b=f.window;;){if(f.lookahead<=258){$J(f);if(f.lookahead<=258&&S===0)return 1;if(f.lookahead===0)break}f.match_length=0;if(f.lookahead>=3&&f.strstart>0&&(G=f.strstart-1,B=b[G],B===b[++G]&&B===b[++G]&&B===b[++G])){for(g=f.strstart+258;B===b[++G]&&B===b[++G]&&B===b[++G]&&B===b[++G]&&B===b[++G]&&B===b[++G]&&B===b[++G]&&B===b[++G]&&G<g;);f.match_length=258-(g-G);f.match_length>f.lookahead&&(f.match_length=f.lookahead)}f.match_length>=3?(B=TV(f,1,f.match_length-3),f.lookahead-=
f.match_length,f.strstart+=f.match_length,f.match_length=0):(B=TV(f,0,f.window[f.strstart]),f.lookahead--,f.strstart++);if(B&&(dZ(f,!1),f.strm.avail_out===0))return 1}f.insert=0;return S===4?(dZ(f,!0),f.strm.avail_out===0?3:4):f.last_lit&&(dZ(f,!1),f.strm.avail_out===0)?1:2};
Afx=function(f,S){for(var B;;){if(f.lookahead===0&&($J(f),f.lookahead===0)){if(S===0)return 1;break}f.match_length=0;B=TV(f,0,f.window[f.strstart]);f.lookahead--;f.strstart++;if(B&&(dZ(f,!1),f.strm.avail_out===0))return 1}f.insert=0;return S===4?(dZ(f,!0),f.strm.avail_out===0?3:4):f.last_lit&&(dZ(f,!1),f.strm.avail_out===0)?1:2};
jC=function(f,S,B,G,g){this.good_length=f;this.max_lazy=S;this.nice_length=B;this.max_chain=G;this.func=g};
NhN=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 X3.Buf16(1146);this.dyn_dtree=new X3.Buf16(122);this.bl_tree=new X3.Buf16(78);Jy(this.dyn_ltree);Jy(this.dyn_dtree);Jy(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new X3.Buf16(16);this.heap=new X3.Buf16(573);Jy(this.heap);this.heap_max=this.heap_len=0;this.depth=new X3.Buf16(573);Jy(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};
MwG=function(f,S){if(!f||!f.state||S>5||S<0)return f?Vd(f,-2):-2;var B=f.state;if(!f.output||!f.input&&f.avail_in!==0||B.status===666&&S!==4)return Vd(f,f.avail_out===0?-5:-2);B.strm=f;var G=B.last_flush;B.last_flush=S;if(B.status===42)if(B.wrap===2)f.adler=0,iP(B,31),iP(B,139),iP(B,8),B.gzhead?(iP(B,(B.gzhead.text?1:0)+(B.gzhead.hcrc?2:0)+(B.gzhead.extra?4:0)+(B.gzhead.name?8:0)+(B.gzhead.comment?16:0)),iP(B,B.gzhead.time&255),iP(B,B.gzhead.time>>8&255),iP(B,B.gzhead.time>>16&255),iP(B,B.gzhead.time>>
24&255),iP(B,B.level===9?2:B.strategy>=2||B.level<2?4:0),iP(B,B.gzhead.os&255),B.gzhead.extra&&B.gzhead.extra.length&&(iP(B,B.gzhead.extra.length&255),iP(B,B.gzhead.extra.length>>8&255)),B.gzhead.hcrc&&(f.adler=q7(f.adler,B.pending_buf,B.pending,0)),B.gzindex=0,B.status=69):(iP(B,0),iP(B,0),iP(B,0),iP(B,0),iP(B,0),iP(B,B.level===9?2:B.strategy>=2||B.level<2?4:0),iP(B,3),B.status=113);else{var g=8+(B.w_bits-8<<4)<<8;g|=(B.strategy>=2||B.level<2?0:B.level<6?1:B.level===6?2:3)<<6;B.strstart!==0&&(g|=
32);B.status=113;HU(B,g+(31-g%31));B.strstart!==0&&(HU(B,f.adler>>>16),HU(B,f.adler&65535));f.adler=1}if(B.status===69)if(B.gzhead.extra){for(g=B.pending;B.gzindex<(B.gzhead.extra.length&65535)&&(B.pending!==B.pending_buf_size||(B.gzhead.hcrc&&B.pending>g&&(f.adler=q7(f.adler,B.pending_buf,B.pending-g,g)),PU(f),g=B.pending,B.pending!==B.pending_buf_size));)iP(B,B.gzhead.extra[B.gzindex]&255),B.gzindex++;B.gzhead.hcrc&&B.pending>g&&(f.adler=q7(f.adler,B.pending_buf,B.pending-g,g));B.gzindex===B.gzhead.extra.length&&
(B.gzindex=0,B.status=73)}else B.status=73;if(B.status===73)if(B.gzhead.name){g=B.pending;do{if(B.pending===B.pending_buf_size&&(B.gzhead.hcrc&&B.pending>g&&(f.adler=q7(f.adler,B.pending_buf,B.pending-g,g)),PU(f),g=B.pending,B.pending===B.pending_buf_size)){var b=1;break}b=B.gzindex<B.gzhead.name.length?B.gzhead.name.charCodeAt(B.gzindex++)&255:0;iP(B,b)}while(b!==0);B.gzhead.hcrc&&B.pending>g&&(f.adler=q7(f.adler,B.pending_buf,B.pending-g,g));b===0&&(B.gzindex=0,B.status=91)}else B.status=91;if(B.status===
91)if(B.gzhead.comment){g=B.pending;do{if(B.pending===B.pending_buf_size&&(B.gzhead.hcrc&&B.pending>g&&(f.adler=q7(f.adler,B.pending_buf,B.pending-g,g)),PU(f),g=B.pending,B.pending===B.pending_buf_size)){b=1;break}b=B.gzindex<B.gzhead.comment.length?B.gzhead.comment.charCodeAt(B.gzindex++)&255:0;iP(B,b)}while(b!==0);B.gzhead.hcrc&&B.pending>g&&(f.adler=q7(f.adler,B.pending_buf,B.pending-g,g));b===0&&(B.status=103)}else B.status=103;B.status===103&&(B.gzhead.hcrc?(B.pending+2>B.pending_buf_size&&PU(f),
B.pending+2<=B.pending_buf_size&&(iP(B,f.adler&255),iP(B,f.adler>>8&255),f.adler=0,B.status=113)):B.status=113);if(B.pending!==0){if(PU(f),f.avail_out===0)return B.last_flush=-1,0}else if(f.avail_in===0&&(S<<1)-(S>4?9:0)<=(G<<1)-(G>4?9:0)&&S!==4)return Vd(f,-5);if(B.status===666&&f.avail_in!==0)return Vd(f,-5);if(f.avail_in!==0||B.lookahead!==0||S!==0&&B.status!==666){G=B.strategy===2?Afx(B,S):B.strategy===3?pKW(B,S):O4[B.level].func(B,S);if(G===3||G===4)B.status=666;if(G===1||G===3)return f.avail_out===
0&&(B.last_flush=-1),0;if(G===2&&(S===1?(zV(B,2,3),RJ(B,256,vU),B.bi_valid===16?(mN(B,B.bi_buf),B.bi_buf=0,B.bi_valid=0):B.bi_valid>=8&&(B.pending_buf[B.pending++]=B.bi_buf&255,B.bi_buf>>=8,B.bi_valid-=8)):S!==5&&(zV(B,0,3),$EM(B,0,0),S===3&&(Jy(B.head),B.lookahead===0&&(B.strstart=0,B.block_start=0,B.insert=0))),PU(f),f.avail_out===0))return B.last_flush=-1,0}if(S!==4)return 0;if(B.wrap<=0)return 1;B.wrap===2?(iP(B,f.adler&255),iP(B,f.adler>>8&255),iP(B,f.adler>>16&255),iP(B,f.adler>>24&255),iP(B,
f.total_in&255),iP(B,f.total_in>>8&255),iP(B,f.total_in>>16&255),iP(B,f.total_in>>24&255)):(HU(B,f.adler>>>16),HU(B,f.adler&65535));PU(f);B.wrap>0&&(B.wrap=-B.wrap);return B.pending!==0?0:1};
Z2V=function(f){if(!(this instanceof Z2V))return new Z2V(f);f=this.options=X3.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},f||{});f.raw&&f.windowBits>0?f.windowBits=-f.windowBits:f.gzip&&f.windowBits>0&&f.windowBits<16&&(f.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new tw1;this.strm.avail_out=0;var S=this.strm;var B=f.level,G=f.method,g=f.windowBits,b=f.memLevel,z=f.strategy;if(S){var X=1;B===-1&&(B=6);g<0?(X=0,g=-g):g>15&&
(X=2,g-=16);if(b<1||b>9||G!==8||g<8||g>15||B<0||B>9||z<0||z>4)S=Vd(S,-2);else{g===8&&(g=9);var w=new NhN;S.state=w;w.strm=S;w.wrap=X;w.gzhead=null;w.w_bits=g;w.w_size=1<<w.w_bits;w.w_mask=w.w_size-1;w.hash_bits=b+7;w.hash_size=1<<w.hash_bits;w.hash_mask=w.hash_size-1;w.hash_shift=~~((w.hash_bits+3-1)/3);w.window=new X3.Buf8(w.w_size*2);w.head=new X3.Buf16(w.hash_size);w.prev=new X3.Buf16(w.w_size);w.lit_bufsize=1<<b+6;w.pending_buf_size=w.lit_bufsize*4;w.pending_buf=new X3.Buf8(w.pending_buf_size);
w.d_buf=w.lit_bufsize;w.l_buf=3*w.lit_bufsize;w.level=B;w.strategy=z;w.method=G;if(S&&S.state){S.total_in=S.total_out=0;S.data_type=2;B=S.state;B.pending=0;B.pending_out=0;B.wrap<0&&(B.wrap=-B.wrap);B.status=B.wrap?42:113;S.adler=B.wrap===2?0:1;B.last_flush=0;if(!uhG){G=Array(16);for(b=z=0;b<28;b++)for(jDQ[b]=z,g=0;g<1<<rfK[b];g++)wZ[z++]=b;wZ[z-1]=b;for(b=z=0;b<16;b++)for(xEV[b]=z,g=0;g<1<<O2M[b];g++)hy[z++]=b;for(z>>=7;b<30;b++)for(xEV[b]=z<<7,g=0;g<1<<O2M[b]-7;g++)hy[256+z++]=b;for(g=0;g<=15;g++)G[g]=
0;for(g=0;g<=143;)vU[g*2+1]=8,g++,G[8]++;for(;g<=255;)vU[g*2+1]=9,g++,G[9]++;for(;g<=279;)vU[g*2+1]=7,g++,G[7]++;for(;g<=287;)vU[g*2+1]=8,g++,G[8]++;i2G(vU,287,G);for(g=0;g<30;g++)KO[g*2+1]=5,KO[g*2]=dEQ(g,5);au1=new vT9(vU,rfK,257,286,15);yfM=new vT9(KO,O2M,0,30,15);WU9=new vT9([],cfT,0,19,7);uhG=!0}B.l_desc=new KUT(B.dyn_ltree,au1);B.d_desc=new KUT(B.dyn_dtree,yfM);B.bl_desc=new KUT(B.bl_tree,WU9);B.bi_buf=0;B.bi_valid=0;H2W(B);B=0}else B=Vd(S,-2);B===0&&(S=S.state,S.window_size=2*S.w_size,Jy(S.head),
S.max_lazy_match=O4[S.level].max_lazy,S.good_match=O4[S.level].good_length,S.nice_match=O4[S.level].nice_length,S.max_chain_length=O4[S.level].max_chain,S.strstart=0,S.block_start=0,S.lookahead=0,S.insert=0,S.match_length=S.prev_length=2,S.match_available=0,S.ins_h=0);S=B}}else S=-2;if(S!==0)throw Error(F3[S]);f.header&&(S=this.strm)&&S.state&&S.state.wrap===2&&(S.state.gzhead=f.header);if(f.dictionary){var F;typeof f.dictionary==="string"?F=luN(f.dictionary):fKA.call(f.dictionary)==="[object ArrayBuffer]"?
F=new Uint8Array(f.dictionary):F=f.dictionary;f=this.strm;b=F;z=b.length;if(f&&f.state)if(F=f.state,S=F.wrap,S===2||S===1&&F.status!==42||F.lookahead)S=-2;else{S===1&&(f.adler=UEV(f.adler,b,z,0));F.wrap=0;z>=F.w_size&&(S===0&&(Jy(F.head),F.strstart=0,F.block_start=0,F.insert=0),B=new X3.Buf8(F.w_size),X3.arraySet(B,b,z-F.w_size,F.w_size,0),b=B,z=F.w_size);B=f.avail_in;G=f.next_in;g=f.input;f.avail_in=z;f.next_in=0;f.input=b;for($J(F);F.lookahead>=3;){b=F.strstart;z=F.lookahead-2;do F.ins_h=(F.ins_h<<
F.hash_shift^F.window[b+3-1])&F.hash_mask,F.prev[b&F.w_mask]=F.head[F.ins_h],F.head[F.ins_h]=b,b++;while(--z);F.strstart=b;F.lookahead=2;$J(F)}F.strstart+=F.lookahead;F.block_start=F.strstart;F.insert=F.lookahead;F.lookahead=0;F.match_length=F.prev_length=2;F.match_available=0;f.next_in=G;f.input=g;f.avail_in=B;F.wrap=S;S=0}else S=-2;if(S!==0)throw Error(F3[S]);this._dict_set=!0}};
orW=function(f,S){S=S||{};S.gzip=!0;S=new Z2V(S);S.push(f,!0);if(S.err)throw S.msg||F3[S.err];return S.result};
B9j=function(f,S){var B=SAN();B&&B.publish.call(B,f.toString(),f,S)};
mzj=function(f,S,B){var G=SAN();if(!G)return 0;var g=G.subscribe(f.toString(),function(b,z){var X=_.U6("ytPubsub2Pubsub2SkipSubKey");X&&X==g||(X=function(){if(GcT[g])try{if(z&&f instanceof grT&&f!=b)try{var w=f.dataClass,F=z;if(!F.args||!F.version)throw Error("Xc");try{if(!w.version_){var V=new w;w.version_=V.version}var J=w.version_}catch(P){}if(!J||F.version!=J)throw Error("Yc");try{z=Reflect.construct(w,_.aT(F.args))}catch(P){throw P.message="yt.pubsub2.Data.deserialize(): "+P.message,P;}}catch(P){throw P.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+f.toString()+": "+P.message,P;}S.call(B||window,z)}catch(P){_.Dt(P)}},exK[f.toString()]?_.U6("yt.scheduler.instance")?_.xJ.addLowPriorityJob(X):_.mE(X,0):X())});
GcT[g]=!0;bJN[f.toString()]||(bJN[f.toString()]=[]);bJN[f.toString()].push(g);return g};
w2Q=function(){var f=zxx,S=mzj(RxN,function(B){f.apply(void 0,arguments);X2W(S)});
return S};
X2W=function(f){var S=SAN();S&&(typeof f==="number"&&(f=[f]),_.AA(f,function(B){S.unsubscribeByKey(B);delete GcT[B]}))};
SAN=function(){return _.U6("ytPubsub2Pubsub2Instance")};
hxV=function(f,S,B){B=B===void 0?{sampleRate:.1}:B;Math.random()<Math.min(.02,B.sampleRate/100)&&B9j("meta_logging_csi_event",{timerName:f,timelineData:S})};
_.T9V=function(f){return f?(f=f.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.Da(f):null:null};
_.E4=function(f){return f?(f=f.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.zC(f):null:null};
Vfs=function(){FW9||(FW9=_.E4(_.nL("WORKER_SERIALIZATION_URL")));return FW9||void 0};
_.PCQ=function(){var f=Vfs();JRN||f===void 0||(JRN=new Worker(_.RP(f),void 0));return JRN};
_.vrx=function(){return typeof Worker==="function"&&Vfs()?!0:!1};
_.HJ9=function(){if(_.vrx()&&!KW1){var f=function(B){B=B.data;if(B.op==="gzippedGelBatch"){var G=dzs.get(B.key);G&&(iJT(B.gzippedBatch,G.latencyPayload,G.url,G.options,G.sendFn),dzs.delete(B.key))}},S=_.PCQ();
S&&(S.addEventListener("message",f),S.onerror=function(){dzs.clear()},KW1=!0)}};
OJQ=function(f,S,B,G,g){g=g===void 0?!1:g;var b={startTime:(0,_.fO)(),ticks:{},infos:{}};if(LO)try{var z=qAM(S);if(z!=null&&(z>$zQ||z<Qcj))G(f,B);else{if(_.K("gzip_gel_with_worker")&&(_.K("initial_gzip_use_main_thread")&&!YAN||!_.K("initial_gzip_use_main_thread"))){KW1||_.HJ9();var X=_.PCQ();if(X&&!g){dzs.set(rRs,{latencyPayload:b,url:f,options:B,sendFn:G});X.postMessage({op:"gelBatchToGzip",serializedBatch:S,key:rRs});rRs++;return}}var w=orW(jcs(S));iJT(w,b,f,B,G)}}catch(F){_.CL(F),G(f,B)}else G(f,
B)};
iJT=function(f,S,B,G,g){YAN=!1;var b=(0,_.fO)();S.ticks.gelc=b;kJ++;_.K("disable_compression_due_to_performance_degredation")&&b-S.startTime>=xzW&&(Ers++,_.K("abandon_compression_after_N_slow_zips")?kJ===_.Gt("compression_disable_point")&&Ers>LWQ&&(LO=!1):LO=!1);kcG(S);G.headers||(G.headers={});G.headers["Content-Encoding"]="gzip";G.postBody=f;G.postParams=void 0;g(B,G)};
nrT=function(f){var S=S===void 0?!1:S;var B=B===void 0?!1:B;var G=(0,_.fO)(),g={startTime:G,ticks:{},infos:{}},b=S?_.U6("yt.logging.gzipForFetch",!1):!0;if(LO&&b){if(!f.body)return f;try{var z=B?f.body:typeof f.body==="string"?f.body:JSON.stringify(f.body);b=z;if(!B&&typeof z==="string"){var X=qAM(z);if(X!=null&&(X>$zQ||X<Qcj))return f;B=S?{level:1}:void 0;b=orW(jcs(z),B);var w=(0,_.fO)();g.ticks.gelc=w;if(S){kJ++;if((_.K("disable_compression_due_to_performance_degredation")||_.K("disable_compression_due_to_performance_degradation_lr"))&&
w-G>=xzW)if(Ers++,_.K("abandon_compression_after_N_slow_zips")||_.K("abandon_compression_after_N_slow_zips_lr")){S=Ers/kJ;var F=LWQ/_.Gt("compression_disable_point");kJ>0&&kJ%_.Gt("compression_disable_point")===0&&S>=F&&(LO=!1)}else LO=!1;kcG(g)}}f.headers=Object.assign({},{"Content-Encoding":"gzip"},f.headers||{});f.body=b;return f}catch(V){return _.CL(V),f}}else return f};
qAM=function(f){try{return(new Blob(f.split(""))).size}catch(S){return _.CL(S),null}};
kcG=function(f){_.K("gel_compression_csi_killswitch")||!_.K("log_gel_compression_latency")&&!_.K("log_gel_compression_latency_lr")||hxV("gel_compression",f,{sampleRate:.1})};
scN=function(){this.blockSize=-1};
nO=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var f=1;f<this.blockSize;++f)this.pad_[f]=0;this.total_=this.inbuf_=0;this.reset()};
IKQ=function(f){f=Object.assign({},f);delete f.Authorization;var S=_.DzN();if(S){var B=new nO;B.update(_.nL("INNERTUBE_API_KEY"));B.update(S);f.hash=_.oO(B.digest(),3)}return f};
DX=function(){UzK||(UzK=new _.s4("yt.innertube"));return UzK};
CC1=function(f,S,B,G){if(G)return null;G=DX().get("nextId",!0)||1;var g=DX().get("requests",!0)||{};g[G]={method:f,request:S,authState:IKQ(B),requestTime:Math.round((0,_.fO)())};DX().set("nextId",G+1,86400,!0);DX().set("requests",g,86400,!0);return G};
p2N=function(f){var S=DX().get("requests",!0)||{};delete S[f];DX().set("requests",S,86400,!0)};
N9T=function(f){var S=DX().get("requests",!0);if(S){for(var B in S){var G=S[B];if(!(Math.round((0,_.fO)())-G.requestTime<6E4)){var g=G.authState,b=IKQ(_.Jfj(!1));_.$v.equals(g,b)&&(g=G.request,"requestTimeMs"in g&&(g.requestTimeMs=Math.round((0,_.fO)())),AR1(f,G.method,g,{}));delete S[B]}}DX().set("requests",S,86400,!0)}};
MfA=function(f){var S;return(f=f==null?void 0:(S=f.error)==null?void 0:S.code)&&f>=400&&f<=599?!1:!0};
ZJA=function(f){var S;f=f==null?void 0:(S=f.error)==null?void 0:S.code;return!(f!==400&&f!==415)};
uVW=function(){if(tfA)return tfA();var f={};tfA=la("LogsDatabaseV2",{objectStores:(f.LogsRequestsStore={addedAtVersion:2},f),shared:!1,upgrade:function(S,B,G){B(2)&&IJ(S,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});B(3);B(5)&&(G=G.objectStore("LogsRequestsStore"),G.JSC$8653_wrapped.indexNames.contains("newRequest")&&G.JSC$8653_wrapped.deleteIndex("newRequest"),U4(G,"newRequestV2",["status","interface","timestamp"]));B(7)&&S.JSC$8638_wrapped.objectStoreNames.contains("sapisid")&&S.JSC$8638_wrapped.deleteObjectStore("sapisid");
B(9)&&S.JSC$8638_wrapped.objectStoreNames.contains("SWHealthLog")&&S.JSC$8638_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return tfA()};
CO=function(f){return _.AY(uVW(),f)};
yRN=function(f,S){var B,G,g,b;return _.R(function(z){if(z.nextAddress==1)return B={startTime:(0,_.fO)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},_.h(z,CO(S),2);if(z.nextAddress!=3)return G=z.yieldResult,g=Object.assign({},f,{options:JSON.parse(JSON.stringify(f.options)),interface:_.nL("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),_.h(z,G.put("LogsRequestsStore",g),3);b=z.yieldResult;B.ticks.tc=(0,_.fO)();aK1(B);return z.return(b)})};
WWW=function(f,S){var B,G,g,b,z,X,w,F;return _.R(function(V){if(V.nextAddress==1)return B={startTime:(0,_.fO)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},_.h(V,CO(S),2);if(V.nextAddress!=3)return G=V.yieldResult,g=_.nL("INNERTUBE_CONTEXT_CLIENT_NAME",0),b=[f,g,0],z=[f,g,(0,_.fO)()],X=IDBKeyRange.bound(b,z),w="prev",_.K("use_fifo_for_networkless")&&(w="next"),F=void 0,_.h(V,_.MH(G,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(J){return _.oJ(J.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:X,direction:w},function(P){P.getValue()&&(F=P.getValue(),f==="NEW"&&(F.status="QUEUED",P.update(F)))})}),3);
B.ticks.tc=(0,_.fO)();aK1(B);return V.return(F)})};
cRj=function(f,S){var B;return _.R(function(G){if(G.nextAddress==1)return _.h(G,CO(S),2);B=G.yieldResult;return G.return(_.MH(B,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(g){var b=g.objectStore("LogsRequestsStore");return b.get(f).then(function(z){if(z)return z.status="QUEUED",b.put(z).then(function(){return z})})}))})};
lKW=function(f,S,B,G){B=B===void 0?!0:B;var g;return _.R(function(b){if(b.nextAddress==1)return _.h(b,CO(S),2);g=b.yieldResult;return b.return(_.MH(g,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(z){var X=z.objectStore("LogsRequestsStore");return X.get(f).then(function(w){return w?(w.status="NEW",B&&(w.sendCount+=1),G!==void 0&&(w.options.compress=G),X.put(w).then(function(){return w})):sZ.resolve(void 0)})}))})};
fUj=function(f,S){var B;return _.R(function(G){if(G.nextAddress==1)return _.h(G,CO(S),2);B=G.yieldResult;return G.return(B.delete("LogsRequestsStore",f))})};
oGV=function(f){var S,B;return _.R(function(G){if(G.nextAddress==1)return _.h(G,CO(f),2);S=G.yieldResult;B=(0,_.fO)()-2592E6;return _.h(G,_.MH(S,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(g){return ua(g.objectStore("LogsRequestsStore"),{},function(b){if(b.getValue().timestamp<=B)return b.delete().then(function(){return b.continue()})})}),0)})};
St1=function(){_.R(function(f){return _.h(f,Me1("LogsDatabaseV2"),0)})};
aK1=function(f){_.K("nwl_csi_killswitch")||hxV("networkless_performance",f,{sampleRate:1})};
_.GFT=function(f){return _.AY(B3K(),f)};
gGW=function(f){var S,B;_.R(function(G){if(G.nextAddress==1)return _.h(G,_.GFT(f),2);S=G.yieldResult;B=(0,_.fO)()-2592E6;return _.h(G,_.MH(S,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(g){return ua(g.objectStore("SWHealthLog"),{},function(b){if(b.getValue().timestamp<=B)return b.delete().then(function(){return b.continue()})})}),0)})};
e7j=function(f){var S;return _.R(function(B){if(B.nextAddress==1)return _.h(B,_.GFT(f),2);S=B.yieldResult;return _.h(B,S.clear("SWHealthLog"),0)})};
_.pO=function(f,S,B,G,g,b,z){g=g===void 0?"":g;b=b===void 0?!1:b;z=z===void 0?!1:z;if(f)if(B&&!EZ("cobalt"))_.CL(new _.dO("Legacy referrer-scrubbed ping detected")),f&&bnQ(f,void 0,{scrubReferrer:!0});else if(g)E21(f,S,"POST",g,G);else if(_.nL("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||G||z)E21(f,S,"GET","",G,void 0,b,z);else{b:{try{c:{var X=new moT({url:f});if(X.urlParamValues_.dsh==="1")var w=null;else{var F=X.urlParamValues_.ae;if(F==="1"){var V=X.urlParamValues_.adurl;if(V)try{w={version:3,directUrl:decodeURIComponent(V),
asyncUrl:$Rs(X.JSC$7521_url_,"act=1","ri=1",z71(X))};break c}catch(Q){}}w=F==="2"?{version:4,directUrl:$Rs(X.JSC$7521_url_,"dct=1","suid="+X.suid_,""),asyncUrl:$Rs(X.JSC$7521_url_,"act=1","ri=1","suid="+X.suid_)}:null}}if(w){var J=_.Xl(f);var P=!(!J||!J.endsWith("/aclk")||_.pS(f,"ri")!=="1");break b}}catch(Q){}P=!1}if(P){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(f,"")){var d=!0;break b}}catch(Q){}d=!1}d?(S&&S(),B=!0):B=!1}else B=!1;B||bnQ(f,S)}};
bnQ=function(f,S,B){B=B===void 0?{}:B;var G=new Image,g=""+R71++;Xt1[g]=G;G.onload=G.onerror=function(){S&&Xt1[g]&&S();delete Xt1[g]};
B.scrubReferrer&&(G.referrerPolicy="no-referrer");G.src=f};
Ay=function(f,S){wtj(f,S==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
h7Q=function(f){var S;return((S=document.featurePolicy)==null?0:S.allowedFeatures().includes("attribution-reporting"))?f+"&nis=6":f+"&nis=5"};
T3G=function(f){if(!f)return!1;try{var S;if(((S=_.Np(f))==null?void 0:S.asm)==="4")return!0}catch(B){_.Dt(B)}return!1};
wtj=function(f,S){S?(f=h7Q(f),_.pO(f,void 0,void 0,void 0,"",!0,!0)):_.pO(f)};
VaK=function(){Fd9||(Fd9=new _.s4("yt.offline"));return Fd9};
JKN=function(f){if(_.K("offline_error_handling")){var S=VaK().get("errors",!0)||{};S[f.message]={name:f.name,stack:f.stack};f.level&&(S[f.message].level=f.level);VaK().set("errors",S,2592E3,!0)}};
vG1=function(f,S,B,G){G=G===void 0?!1:G;S=_.K("web_fp_via_jspb")?Object.assign({},S):S;_.K("use_cfr_monitor")&&Ptx(f,S);if(_.K("use_request_time_ms_header"))S.headers&&Wf(f)&&(S.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.fO)())));else{var g;if((g=S.postParams)==null?0:g.requestTimeMs)S.postParams.requestTimeMs=Math.round((0,_.fO)())}B&&Object.keys(S).length===0?_.pO(f):S.compress?S.postBody?(typeof S.postBody!=="string"&&(S.postBody=JSON.stringify(S.postBody)),OJQ(f,S.postBody,
S,_.wO,G)):OJQ(f,JSON.stringify(S.postParams),S,sfQ,G):_.wO(f,S)};
KdQ=function(f,S){_.K("use_event_time_ms_header")&&Wf(f)&&(S.headers||(S.headers={}),S.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.fO)())));return S};
_.inV=function(){doj||(doj=new _.N7({logOfflineErrors:!0,enablePolling:!0}));return doj};
Ptx=function(f,S){var B=S.onError?S.onError:function(){};
S.onError=function(g,b){M7().requestComplete(f,!1);B(g,b)};
var G=S.onSuccess?S.onSuccess:function(){};
S.onSuccess=function(g,b){M7().requestComplete(f,!0);G(g,b)}};
_.HnW=function(){return _.aj(document.location.toString())!=="www.youtube-nocookie.com"};
_.QeA=function(){return _.U6("ytNetworklessLoggingInitializationOptions")?_.qtj.isNwlInitialized:_.$oM};
YtW=function(f,S){if(_.K("polymer_on_demand_shady_dom")){var B;var G=(B=f.__shady_native_firstElementChild)!=null?B:f.firstElementChild}else G=f.firstElementChild;for(;G;){if(f=S(G)?G:YtW(G,S))return f;G=G.nextElementSibling}return null};
jeK=function(){var f=document;if("visibilityState"in f)return f.visibilityState;var S=rKW+"VisibilityState";if(S in f)return f[S]};
_.OnM=function(f,S){var B;ZX(f,function(G){B=S[G];return!!B});
return B};
_.uP=function(f){var S=xox(f);S?S.focus(void 0):_.ty(f)};
xox=function(f){return(f=YtW(f,function(S){return _.aJ(S)?EGT(S)&&!!S.offsetParent:!1}))?f:null};
_.ty=function(f,S){f.hasAttribute("tabindex")||f.setAttribute("tabindex","-1");f.focus(S)};
LdK=function(f,S,B,G){G=G===void 0?{}:G;f.addEventListener&&(S!="mouseenter"||"onmouseenter"in document?S!="mouseleave"||"onmouseenter"in document?S=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(S="MozMousePixelScroll"):S="mouseout":S="mouseover");return _.$v.findKey(yd,function(g){var b=typeof g[4]==="boolean"&&g[4]==!!G,z=_.og(g[4])&&_.og(G)&&_.$v.equals(g[4],G);return!!g.length&&g[0]==f&&g[1]==S&&g[2]==B&&(b||z)})};
_.cU=function(f,S,B,G){G=G===void 0?{}:G;if(!f||!f.addEventListener&&!f.attachEvent)return"";var g=LdK(f,S,B,G);if(g)return g;g=++kFV.count+"";var b=!(S!="mouseenter"&&S!="mouseleave"||!f.addEventListener||"onmouseenter"in document);var z=b?function(X){X=new WU(X);if(!_.kv(X.relatedTarget,function(w){return w==f},!0))return X.currentTarget=f,X.type=S,B.call(f,X)}:function(X){X=new WU(X);
X.currentTarget=f;return B.call(f,X)};
z=_.Ij(z);f.addEventListener?(S=="mouseenter"&&b?S="mouseover":S=="mouseleave"&&b?S="mouseout":S=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(S="MozMousePixelScroll"),nGx()||typeof G==="boolean"?f.addEventListener(S,z,G):f.addEventListener(S,z,!!G.capture)):f.attachEvent("on"+S,z);yd[g]=[f,S,B,z,G];return g};
_.DoQ=function(f,S,B){var G=G===void 0?{}:G;var g=_.cU(f,S,function(){_.seN(g);B.apply(f,arguments)},G)};
_.seN=function(f){f&&(typeof f=="string"&&(f=[f]),_.AA(f,function(S){if(S in yd){var B=yd[S],G=B[0],g=B[1],b=B[3];B=B[4];G.removeEventListener?nGx()||typeof B==="boolean"?G.removeEventListener(g,b,B):G.removeEventListener(g,b,!!B.capture):G.detachEvent&&G.detachEvent("on"+g,b);delete yd[S]}}))};
lP=function(f){this.callback_=f;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(f=0;f<4;f++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.cU(window,"mousemove",(0,_.$A)(this.onMouseMove_,this));this.timerId_=_.zt((0,_.$A)(this.checkPosition_,this),25)};
UoA=function(){var f={};var S=f.preferMobileEvents===void 0?!1:f.preferMobileEvents;f=f.enableScrollEventListener===void 0?!0:f.enableScrollEventListener;if(_.U6("_lact",window)==null){var B=parseInt(_.nL("LACT"),10);B=isFinite(B)?Date.now()-Math.max(B,0):-1;_.WL("_lact",B,window);_.WL("_fact",B,window);B==-1&&_.fg();_.cU(document,"keydown",_.fg);_.cU(document,"keyup",_.fg);_.cU(document,"mousedown",_.fg);_.cU(document,"mouseup",_.fg);S?_.cU(window,"touchmove",function(){IUV("touchmove",200)},{passive:!0}):
(_.cU(window,"resize",function(){IUV("resize",200)}),f&&_.cU(window,"scroll",function(){IUV("scroll",200)}));
new lP(function(){IUV("mouse",100)});
_.cU(document,"touchstart",_.fg,{passive:!0});_.cU(document,"touchend",_.fg,{passive:!0})}};
IUV=function(f,S){CtN[f]||(CtN[f]=!0,_.xJ.addLowPriorityJob(function(){_.fg();CtN[f]=!1},S))};
_.fg=function(){_.U6("_lact",window)==null&&UoA();var f=Date.now();_.WL("_lact",f,window);_.U6("_fact",window)==-1&&_.WL("_fact",f,window);(f=_.U6("ytglobal.ytUtilActivityCallback_"))&&f()};
_.or=function(){var f=_.U6("_lact",window);return f==null?-1:Math.max(Date.now()-f,0)};
_.eD=function(f,S,B){var G=_.SD();if(G&&S){var g=G.subscribe(f,function(){var b=arguments,z=function(){BD[g]&&S.apply&&typeof S.apply=="function"&&S.apply(B||window,b)};
try{_.ptQ[f]?z():_.mE(z,0)}catch(X){_.Dt(X)}},B);
BD[g]=!0;gC[f]||(gC[f]=[]);gC[f].push(g);return g}return 0};
_.AKW=function(f){var S=_.SD();S&&(typeof f==="number"?f=[f]:typeof f==="string"&&(f=[parseInt(f,10)]),_.AA(f,function(B){S.unsubscribeByKey(B);delete BD[B]}))};
_.N3T=function(f,S){var B=_.SD();B&&B.publish.apply(B,arguments)};
_.ZnA=function(f){var S=_.SD();if(S)if(S.clear(f),f)MaV(f);else for(var B in gC)MaV(B)};
_.SD=function(){return _.S1.ytPubsubPubsubInstance};
MaV=function(f){gC[f]&&(f=gC[f],_.AA(f,function(S){BD[S]&&delete BD[S]}),f.length=0)};
taT=function(){var f,S;return"h5vcc"in bs&&((f=bs.h5vcc.traceEvent)==null?0:f.traceBegin)&&((S=bs.h5vcc.traceEvent)==null?0:S.traceEnd)?1:"performance"in bs&&bs.performance.mark&&bs.performance.measure?2:0};
u29=function(f){var S=taT();switch(S){case 1:bs.h5vcc.traceEvent.traceBegin("YTLR",f);break;case 2:bs.performance.mark(f+"-start");break;case 0:break;default:_.mu(S,"unknown trace type")}};
aU1=function(f){var S=taT();switch(S){case 1:bs.h5vcc.traceEvent.traceEnd("YTLR",f);break;case 2:S=f+"-start";var B=f+"-end";bs.performance.mark(B);bs.performance.measure(f,S,B);break;case 0:break;default:_.mu(S,"unknown trace type")}};
yKT=function(f){var S,B;(B=(S=window).onerror)==null||B.call(S,f.message,"",0,0,f)};
Wds=function(f){if(_.K("web_lifecycle_error_handling_killswitch"))return f();try{return f()}catch(S){yKT(S)}};
cK1=function(f){return[f.auth===void 0?"undefined":f.auth,f.isJspb===void 0?"undefined":f.isJspb,f.cttAuthInfo===void 0?"undefined":f.cttAuthInfo,f.tier===void 0?"undefined":f.tier].join("/")};
_.H=function(f,S){if(f)return f[S.name]};
zM=function(){var f=_.U6("yt.logging.ims");f||(f=new mm,_.WL("yt.logging.ims",f));return f};
bPx=function(f,S){if(f.endpoint==="log_event"){lUW(f);var B=fej(f),G=obK(f.payload)||"",g=SWG(G),b=200;if(g){if(g.enabled===!1&&!_.K("web_payload_policy_disabled_killswitch"))return;b=BvM(g.tier);if(b===400){GYN(f,S);return}}Rr[B]=!0;B={cttAuthInfo:B,isJspb:!1,tier:b};zM().storePayload(B,f.payload);gb1(S,!1,B,euQ(G))}};
zuK=function(f,S,B){if(S.endpoint==="log_event"){lUW(void 0,S);var G=fej(S,!0),g=SWG(f),b=200;if(g){if(g.enabled===!1&&!_.K("web_payload_policy_disabled_killswitch"))return;b=BvM(g.tier);if(b===400){mJj(f,S,B);return}}Rr[G]=!0;G={cttAuthInfo:G,isJspb:!0,tier:b};zM().storePayload(G,BQ(S.payload));gb1(B,!0,G,euQ(f))}};
gb1=function(f,S,B,G){S=S===void 0?!1:S;G=G===void 0?!1:G;f&&(XX=new f);f=_.Gt("tvhtml5_logging_max_batch_ads_fork")||_.Gt("tvhtml5_logging_max_batch")||_.Gt("web_logging_max_batch")||100;var g=(0,_.fO)(),b=RuM(S,B.tier),z=b.lastDebounceQueueFromLogTimeMs;G&&(b.useVideoStatsEndPoint=!0);G=0;B&&(G=zM().getSequenceCount(B));var X=function(){XFM({writeThenSend:!0},S,B.tier)};
G>=1E3?X():G>=f?wF9||(wF9=huV(function(){X();wF9=void 0},0)):g-z>=10&&(TvK(S,B.tier),b.lastDebounceQueueFromLogTimeMs=g)};
GYN=function(f,S){if(f.endpoint==="log_event"){_.K("more_accurate_gel_parser")&&zM().storePayload({isJspb:!1},f.payload);lUW(f);var B=fej(f),G=new Map;G.set(B,[f.payload]);var g=obK(f.payload)||"";S&&(XX=new S);return new _.TM(function(b,z){XX&&XX.isReady()?F91(G,XX,b,z,{bypassNetworkless:!0},!0,euQ(g)):b()})}};
mJj=function(f,S,B){if(S.endpoint==="log_event"){lUW(void 0,S);var G=fej(S,!0),g=new Map;g.set(G,[BQ(S.payload)]);B&&(XX=new B);return new _.TM(function(b){XX&&XX.isReady()?VdM(g,XX,b,{bypassNetworkless:!0},!0,euQ(f)):b()})}};
fej=function(f,S){var B="";if(f.dangerousLogToVisitorSession)B="visitorOnlyApprovedKey";else if(f.cttAuthInfo){if(S===void 0?0:S){S=f.cttAuthInfo.token;B=f.cttAuthInfo;var G=new JOV;B.videoId?G.setVideoId(B.videoId):B.playlistId&&FX(G,2,PuT,DZ(B.playlistId));vbs[S]=G}else S=f.cttAuthInfo,B={},S.videoId?B.videoId=S.videoId:S.playlistId&&(B.playlistId=S.playlistId),K9W[f.cttAuthInfo.token]=B;B=f.cttAuthInfo.token}return B};
XFM=function(f,S,B){f=f===void 0?{}:f;S=S===void 0?!1:S;new _.TM(function(G,g){var b=RuM(S,B),z=b.useVideoStatsEndPoint;b.useVideoStatsEndPoint=!1;dJ1(b.queueTimer);dJ1(b.queueMaxTimer);b.queueMaxTimer=0;XX&&XX.isReady()?B===void 0&&_.K("enable_web_tiered_gel")?iPx(G,g,f,S,300,z):iPx(G,g,f,S,B,z):(TvK(S,B),G())})};
iPx=function(f,S,B,G,g,b){var z=XX;B=B===void 0?{}:B;G=G===void 0?!1:G;g=g===void 0?200:g;b=b===void 0?!1:b;var X=new Map,w=new Map,F={isJspb:G,cttAuthInfo:void 0,tier:g},V={isJspb:G,cttAuthInfo:void 0};if(G){S=_.m(Object.keys(Rr));for(g=S.next();!g.done;g=S.next())g=g.value,w=_.K("enable_web_tiered_gel")?zM().smartExtractMatchingEntries({keys:[F,V],sizeLimit:1E3}):zM().extractMatchingEntries({isJspb:!0,cttAuthInfo:g}),w.length>0&&X.set(g,w),(_.K("web_fp_via_jspb_and_json")&&B.writeThenSend||!_.K("web_fp_via_jspb_and_json"))&&
delete Rr[g];VdM(X,z,f,B,!1,b)}else{X=_.m(Object.keys(Rr));for(F=X.next();!F.done;F=X.next())F=F.value,V=_.K("enable_web_tiered_gel")?zM().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:F,tier:g},{isJspb:!1,cttAuthInfo:F}],sizeLimit:1E3}):zM().extractMatchingEntries({isJspb:!1,cttAuthInfo:F}),V.length>0&&w.set(F,V),(_.K("web_fp_via_jspb_and_json")&&B.writeThenSend||!_.K("web_fp_via_jspb_and_json"))&&delete Rr[F];F91(w,z,f,S,B,!1,b)}};
TvK=function(f,S){f=f===void 0?!1:f;S=S===void 0?200:S;var B=function(){XFM({writeThenSend:!0},f,S)},G=RuM(f,S),g=G===HPj||G===qW1?5E3:$Js;
_.K("web_gel_timeout_cap")&&!G.queueMaxTimer&&(g=huV(function(){B()},g),G.queueMaxTimer=g);
dJ1(G.queueTimer);g=_.nL("LOGGING_BATCH_TIMEOUT",_.Gt("web_gel_debounce_ms",1E4));_.K("shorten_initial_gel_batch_timeout")&&QlV&&(g=YWT);g=huV(function(){_.Gt("gel_min_batch_size")>0?zM().getSequenceCount({cttAuthInfo:void 0,isJspb:f,tier:S})>=rOG&&B():B()},g);
G.queueTimer=g};
F91=function(f,S,B,G,g,b,z){g=g===void 0?{}:g;var X=Math.round((0,_.fO)()),w=f.size,F=jlM(z);f=_.m(f);var V=f.next();for(z={};!V.done;z={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},V=f.next()){var J=_.m(V.value);V=J.next().value;J=J.next().value;z.batchRequest=_.$v.unsafeClone({context:_.mEV(S.config_||_.SC())});if(!_.W9(J)&&!_.K("throw_err_when_logevent_malformed_killswitch")){G();break}z.batchRequest.events=J;
(J=K9W[V])&&OPQ(z.batchRequest,V,J);delete K9W[V];z.dangerousLogToVisitorSession=V==="visitorOnlyApprovedKey";xJj(z.batchRequest,X,z.dangerousLogToVisitorSession);EbQ(g);z.onSuccess$jscomp$3=function(P){_.K("start_client_gcf")&&_.xJ.addLowPriorityJob(function(){return _.R(function(d){return _.h(d,L9K(P),0)})});
w--;w||B()};
z.networkFailures=0;z.onError$jscomp$5=function(P){return function(){P.networkFailures++;if(g.bypassNetworkless&&P.networkFailures===1)try{AR1(S,F,P.batchRequest,kYN({writeThenSend:!0},P.dangerousLogToVisitorSession,P.onSuccess$jscomp$3,P.onError$jscomp$5,b)),QlV=!1}catch(d){_.Dt(d),G()}w--;w||B()}}(z);
try{AR1(S,F,z.batchRequest,kYN(g,z.dangerousLogToVisitorSession,z.onSuccess$jscomp$3,z.onError$jscomp$5,b)),QlV=!1}catch(P){_.Dt(P),G()}}};
VdM=function(f,S,B,G,g,b){G=G===void 0?{}:G;var z=Math.round((0,_.fO)()),X={value:f.size},w=new Map([].concat(_.$d(f)));w=_.m(w);for(var F=w.next();!F.done;F=w.next()){var V=_.m(F.value).next().value,J=f.get(V);F=new nbK;var P=S.config_||_.SC(),d=new V0,Q=new slQ;_.Jx(Q,1,P.innertubeContextHostLanguage);_.Jx(Q,2,P.innertubeContextGeoLocation);_.GV(Q,16,P.innertubeContextClientNameFieldNumber);_.Jx(Q,17,P.innertubeContextClientVersion);if(P.innertubeContextClientConfigInfo){var x=P.innertubeContextClientConfigInfo,
E=new eC;x.coldConfigData&&_.Jx(E,1,x.coldConfigData);x.appInstallData&&_.Jx(E,6,x.appInstallData);x.coldHashData&&_.Jx(E,3,x.coldHashData);x.hotHashData&&E.setHotHashData(x.hotHashData);_.SZ(Q,62,E)}(x=_.S1.devicePixelRatio)&&x!=1&&_.gZ(Q,65,_.zn(x));x=H_1();x!==""&&_.Jx(Q,54,x);x=qlG();if(x.length>0){E=new DJV;for(var U=0;U<x.length;U++){var A=new JE;A.setKey(x[U].key);FX(A,2,IeV,DZ(x[U].value));PD(E,15,JE,A)}_.SZ(d,5,E)}SLN(P,Q);BhG(d);GZK(Q);gTT(P,Q);eLG(Q);_.K("start_client_gcf")&&b2s(Q);_.nL("DELEGATED_SESSION_ID")&&
!_.K("pageid_as_header_web")&&(P=new vD,_.Jx(P,3,_.nL("DELEGATED_SESSION_ID")));!_.K("fill_delegate_context_in_gel_killswitch")&&(x=_.nL("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(E=_.BU(d,vD,3)||new vD,P=d,x=_.Jx(E,18,x),_.SZ(P,3,x));P=Q;x=_.m(Object.entries(_.Np(_.nL("DEVICE",""))));for(E=x.next();!E.done;E=x.next())U=_.m(E.value),E=U.next().value,U=U.next().value,E==="cbrand"?_.Jx(P,12,U):E==="cmodel"?_.Jx(P,13,U):E==="cbr"?_.Jx(P,87,U):E==="cbrver"?_.Jx(P,88,U):E==="cos"?_.Jx(P,18,
U):E==="cosver"?_.Jx(P,19,U):E==="cplatform"&&_.GV(P,42,fTM(U));d.setClient(Q);_.SZ(F,1,d);if(Q=vbs[V])a:{if(_.Vf(Q,Kg(Q,PuT,1)))d=1;else if(Q.getPlaylistId())d=2;else break a;_.SZ(F,4,Q);Q=F.getContext()||new V0;P=_.BU(Q,vD,3)||new vD;x=new dC;x.setToken(V);_.GV(x,1,d);PD(P,12,dC,x);_.SZ(Q,3,P)}delete vbs[V];V=V==="visitorOnlyApprovedKey";UJA()||_.is(F,2,z);!V&&(d=_.nL("EVENT_ID"))&&(Q=CuV(),P=new pFs,_.Jx(P,1,d),_.is(P,2,Q),_.SZ(F,5,P));EbQ(G);if(_.K("jspb_serialize_with_worker")&&(d=_.PCQ())&&
G.writeThenSend){_.AO1.set(NvN,{client:S,resolve:B,networklessOptions:G,isIsolated:g,useVSSEndpoint:b,dangerousLogToVisitorSession:V,requestsOutstanding:X});d.postMessage({op:"gelBatchToSerialize",batchRequest:BQ(F),clientEvents:J,key:NvN});NvN++;break}if(J){d=[];for(Q=0;Q<J.length;Q++)try{d.push(new HD(J[Q]))}catch(t){_.Dt(new _.dO("Transport failed to deserialize "+String(J[Q])))}J=d}else J=[];J=_.m(J);for(d=J.next();!d.done;d=J.next())PD(F,3,HD,d.value);J={startTime:(0,_.fO)(),ticks:{},infos:{}};
F=F.serialize();J.ticks.geljspc=(0,_.fO)();_.K("log_jspb_serialize_latency")&&hxV("gel_jspb_serialize",J,{sampleRate:.1});_.MdN(F,S,B,G,g,b,V,X)}};
_.MdN=function(f,S,B,G,g,b,z,X){G=G===void 0?{}:G;X=X===void 0?{value:0}:X;b=jlM(b);G=kYN(G,z,function(w){_.K("start_client_gcf")&&_.xJ.addLowPriorityJob(function(){return _.R(function(F){return _.h(F,L9K(w),0)})});
X.value--;X.value||B()},function(){X.value--;
X.value||B()},g);
G.headers["Content-Type"]="application/json+protobuf";G.postBodyFormat="JSPB";G.postBody=f;AR1(S,b,"",G);QlV=!1};
EbQ=function(f){_.K("always_send_and_write")&&(f.writeThenSend=!1)};
kYN=function(f,S,B,G,g){f={retry:!0,onSuccess:B,onError:G,networklessOptions:f,dangerousLogToVisitorSession:S,bypassMonitoring:!!g,headers:{},postBodyFormat:"",postBody:"",compress:_.K("compress_gel")||_.K("compress_gel_lr")};UJA()&&(f.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.fO)())));return f};
xJj=function(f,S,B){UJA()||(f.requestTimeMs=String(S));_.K("unsplit_gel_payloads_in_logs")&&(f.unsplitGelPayloadsInLogs=!0);!B&&(S=_.nL("EVENT_ID"))&&(B=CuV(),f.serializedClientEventId={serializedEventId:S,clientCounter:String(B)})};
CuV=function(){var f=_.nL("BATCH_CLIENT_COUNTER")||0;f||(f=Math.floor(Math.random()*65535/2));f++;f>65535&&(f=1);_.k5("BATCH_CLIENT_COUNTER",f);return f};
OPQ=function(f,S,B){if(B.videoId)var G="VIDEO";else if(B.playlistId)G="PLAYLIST";else return;f.credentialTransferTokenTargetId=B;f.context=f.context||{};f.context.user=f.context.user||{};f.context.user.credentialTransferTokens=[{token:S,scope:G}]};
lUW=function(f,S){var B=_.gO("il_payload_scraping")==="enable_il_payload_scraping";if(!_.U6("yt.logging.transport.enableScrapingForTest"))if(B)ZPN=[],_.WL("yt.logging.transport.enableScrapingForTest",!0),_.WL("yt.logging.transport.scrapedPayloadsForTesting",ZPN),_.WL("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.WL("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.WL("yt.logging.transport.scrapeClientEvent",!0);else return;B=_.U6("yt.logging.transport.scrapedPayloadsForTesting");var G=_.U6("yt.logging.transport.payloadToScrape");S&&(S=_.U6("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(S.payload)())&&B.push(S);S=_.U6("yt.logging.transport.scrapeClientEvent");if(G&&G.length>=1)for(var g=0;g<G.length;g++)if(f&&f.payload[G[g]])if(S)B.push(f.payload);else{var b=void 0;B.push(((b=f)==null?void 0:b.payload)[G[g]])}_.WL("yt.logging.transport.scrapedPayloadsForTesting",
B)};
UJA=function(){return _.K("use_request_time_ms_header")||_.K("lr_use_request_time_ms_header")};
huV=function(f,S){return _.K("transport_use_scheduler")===!1?_.mE(f,S):_.K("logging_avoid_blocking_during_navigation")||_.K("lr_logging_avoid_blocking_during_navigation")?_.q6(_.xJ,function(){if(_.tdN().currentState==="none")f();else{var B={};_.tdN().install((B.none={callback:f},B))}},S):_.q6(_.xJ,f,S)};
dJ1=function(f){_.K("transport_use_scheduler")?_.xJ.cancelJob(f):_.Ry(f)};
L9K=function(f){var S,B,G,g,b,z,X,w,F,V;return _.R(function(J){return J.nextAddress==1?(G=(S=f)==null?void 0:(B=S.responseContext)==null?void 0:B.globalConfigGroup,g=_.H(G,ucT),z=(b=G)==null?void 0:b.hotHashData,X=_.H(G,aeG),F=(w=G)==null?void 0:w.coldHashData,(V=_.oy().resolve(_.fN($H)))?z?g?_.h(J,yO9(V,z,g),2):_.h(J,yO9(V,z),2):J.jumpTo(2):J.return()):F?X?_.h(J,W99(V,F,X),0):_.h(J,W99(V,F),0):J.jumpTo(0)})};
RuM=function(f,S){S=S===void 0?200:S;return f?S===300?HPj:cOV:S===300?qW1:lex};
SWG=function(f){if(_.K("enable_web_tiered_gel")){f=fwN[f||""];var S,B,G,g=_.oy().resolve(_.fN($H))==null?void 0:(S=oeM())==null?void 0:(B=S.loggingHotConfig)==null?void 0:(G=B.eventLoggingConfig)==null?void 0:G.payloadPolicies;if(g)for(S=0;S<g.length;S++)if(g[S].payloadNumber===f)return g[S]}};
obK=function(f){f=Object.keys(f);f=_.m(f);for(var S=f.next();!S.done;S=f.next())if(S=S.value,fwN[S])return S};
BvM=function(f){switch(f){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}};
euQ=function(f){return f==="gelDebuggingEvent"};
jlM=function(f){return(f===void 0?0:f)&&_.K("vss_through_gel_video_stats")?"video_stats":"log_event"};
YH=function(f,S,B,G){G=G===void 0?{}:G;var g={},b=Math.round(G.timestamp||(0,_.fO)());g.eventTimeMs=b<Number.MAX_SAFE_INTEGER?b:0;g[f]=S;f=_.or();g.context={lastActivityMs:String(G.timestamp||!isFinite(f)?-1:f)};G.sequenceGroup&&!_.K("web_gel_sequence_info_killswitch")&&(f=g.context,S=G.sequenceGroup,S={index:SnN(S),groupKey:S},f.sequence=S,G.endOfSequence&&delete Q0[G.sequenceGroup]);(G.sendIsolatedPayload?GYN:bPx)({endpoint:"log_event",payload:g,cttAuthInfo:G.cttAuthInfo,dangerousLogToVisitorSession:G.dangerousLogToVisitorSession},
B)};
SnN=function(f){Q0[f]=f in Q0?Q0[f]+1:0;return Q0[f]};
_.jD=function(f,S,B){B=B===void 0?{}:B;var G=rC;_.s6("ytLoggingEventsDefaultDisabled",!1)&&rC===rC&&(G=null);YH(f,S,G,B)};
_.OU=function(){if(_.K("web_fp_via_jspb")){var f=!0;f=f===void 0?!1:f;var S=BRA;BRA=[];if(S){S=_.m(S);for(var B=S.next();!B.done;B=S.next())B=B.value,f?YH(B.payloadName,B.payload,rC,B.options):_.jD(B.payloadName,B.payload,B.options)}XFM(void 0,!0);if(!_.K("web_fp_via_jspb_and_json"))return}XFM(void 0,!1)};
Gi1=function(f,S){var B;if((B=S)==null?0:B.componentStack)return S;if(f=f.componentStack)S||(S={}),S.componentStack=f;return S};
geG=function(){_.AA(_.nL("ERRORS")||[],function(f){_.xH.apply(null,f)});
_.k5("ERRORS",[])};
_.EU=function(f){_.xH(f)};
_.Lg=function(f){_.xH(f,"WARNING")};
e5T=function(f){f instanceof Error?_.xH(f):(f=_.og(f)?JSON.stringify(f):String(f),f=new _.dO(f),f.name="RejectedPromiseError",_.Lg(f))};
bHs=function(f,S,B,G,g,b){S=S===void 0?"Unknown file":S;B=B===void 0?0:B;var z=!1,X=G$N("log_window_onerror_fraction");if(X&&Math.random()<X)z=!0;else{X=document.getElementsByTagName("script");for(var w=0,F=X.length;w<F;w++)if(X[w].src.indexOf("/debug-")>0){z=!0;break}}z&&(z=!1,g?z=!0:(typeof f==="string"?X=f:ErrorEvent&&f instanceof ErrorEvent?(z=!0,X=f.message,S=f.filename,B=f.lineno,G=f.colno):(X="Unknown error",S="Unknown file",B=0),g=new _.dO(X),g.name="UnhandledWindowError",g.message=X,g.fileName=
S,g.lineNumber=B,isNaN(G)?delete g.columnNumber:g.columnNumber=G),_.K("wiz_enable_component_stack_propagation_killswitch")||(b=Gi1(g,b)),b&&_.kH(g,b),z?_.xH(g):_.Lg(g))};
_.xH=function(f,S,B,G,g,b,z,X){b=b===void 0?{}:b;b.name=B||_.nL("INNERTUBE_CONTEXT_CLIENT_NAME",1);b.version=G||_.nL("INNERTUBE_CONTEXT_CLIENT_VERSION");B=b;S=S===void 0?"ERROR":S;z=z===void 0?!1:z;S=S===void 0?"ERROR":S;z=z===void 0?!1:z;if(f&&(f.hasOwnProperty("level")&&f.level&&(S=f.level),_.K("console_log_js_exceptions")&&(G=[],G.push("Name: "+f.name),G.push("Message: "+f.message),f.hasOwnProperty("params")&&G.push("Error Params: "+JSON.stringify(f.params)),f.hasOwnProperty("args")&&G.push("Error args: "+
JSON.stringify(f.args)),G.push("File name: "+f.fileName),G.push("Stacktrace: "+f.stack),G=G.join("\n"),window.console.log(G,f)),!(mBj>=5))){G=[];g=_.m(z5Q);for(b=g.next();!b.done;b=g.next()){b=b.value;try{b()&&G.push(b())}catch(E){}}G=[].concat(_.$d(R5N),_.$d(G));var w=XsA(f);g=w.message||"Unknown Error";b=w.name||"UnknownError";var F=w.stack||f.stacktrace||"Not available";if(F.startsWith(b+": "+g)){var V=F.split("\n");V.shift();F=V.join("\n")}V=w.lineNumber||"Not available";w=w.fileName||"Not available";
var J=0;if(f.hasOwnProperty("args")&&f.args&&f.args.length)for(var P=0;P<f.args.length&&!(J=lcW(f.args[P],"params."+P,B,J),J>=500);P++);else if(f.hasOwnProperty("params")&&f.params){var d=f.params;if(typeof f.params==="object")for(P in d){if(d[P]){var Q="params."+P,x=Fl(d[P]);B[Q]=x;J+=Q.length+x.length;if(J>500)break}}else B.params=Fl(d)}if(G.length)for(P=0;P<G.length&&!(J=lcW(G[P],"params.context."+P,B,J),J>=500);P++);navigator.vendor&&!B.hasOwnProperty("vendor")&&(B["device.vendor"]=navigator.vendor);
P={message:g,name:b,lineNumber:V,fileName:w,stack:F,params:B,sampleWeight:1};B=Number(f.columnNumber);isNaN(B)||(P.lineNumber=P.lineNumber+":"+B);if(f.level==="IGNORED")f=0;else a:{f=wss();B=_.m(f.messageWeights);for(G=B.next();!G.done;G=B.next())if(G=G.value,P.message&&P.message.match(G.messageRegExp)){f=G.weight;break a}f=_.m(f.callbackWeights);for(B=f.next();!B.done;B=f.next())if(B=B.value,B.callback(P)){f=B.weight;break a}f=1}P.sampleWeight=f;f=_.m(h5N);for(B=f.next();!B.done;B=f.next())if(B=
B.value,B.patternsForType[P.name])for(g=_.m(B.patternsForType[P.name]),G=g.next();!G.done;G=g.next())if(b=G.value,G=P.message.match(b.regexp)){P.params["params.error.original"]=G[0];g=b.groups;b={};for(V=0;V<g.length;V++)b[g[V]]=G[V+1],P.params["params.error."+g[V]]=G[V+1];P.message=B.messageFn(b);break}P.params||(P.params={});f=wss();P.params["params.errorServiceSignature"]="msg="+f.messageWeights.length+"&cb="+f.callbackWeights.length;P.params["params.serviceWorker"]="false";_.S1.document&&_.S1.document.querySelectorAll&&
(P.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new sU(TRM,"sample")).constructor!==sU&&(P.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(P);if(P.sampleWeight!==0&&!FTM.has(P.message)){if(z&&_.K("web_enable_error_204"))VP1(S===void 0?"ERROR":S,P);else{S=S===void 0?"ERROR":S;S==="ERROR"?(JZW.publish("handleError",P),_.K("record_app_crashed_web")&&PkT===0&&P.sampleWeight===1&&(PkT++,z={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.K("report_client_error_with_app_crash_ks")||(z.systemHealth={crashData:{clientError:{logMessage:{message:P.message}}}}),_.jD("appCrashed",z)),veA++):S==="WARNING"&&JZW.publish("handleWarning",P);if(_.K("kevlar_gel_error_routing")){z=S;X=X===void 0?{}:X;b:{f=_.m(KTA);for(B=f.next();!B.done;B=f.next())if(EZ(B.value.toLowerCase())){f=!0;break b}f=!1}if(f)X=void 0;else{B={stackTrace:P.stack};P.fileName&&(B.filename=P.fileName);f=P.lineNumber&&P.lineNumber.split?P.lineNumber.split(":"):[];f.length!==
0&&(f.length!==1||isNaN(Number(f[0]))?f.length!==2||isNaN(Number(f[0]))||isNaN(Number(f[1]))||(B.lineNumber=Number(f[0]),B.columnNumber=Number(f[1])):B.lineNumber=Number(f[0]));f={level:"ERROR_LEVEL_UNKNOWN",message:P.message,errorClassName:P.name,sampleWeight:P.sampleWeight};z==="ERROR"?f.level="ERROR_LEVEL_ERROR":z==="WARNING"&&(f.level="ERROR_LEVEL_WARNNING");B={isObfuscated:!0,browserStackInfo:B};X.pageUrl=window.location.href;X.kvPairs=[];_.nL("FEXP_EXPERIMENTS")&&(X.experimentIds=_.nL("FEXP_EXPERIMENTS"));
G=_.nL("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!G$N("web_disable_gel_stp_ecatcher_killswitch")&&G)for(g=_.m(Object.keys(G)),b=g.next();!b.done;b=g.next())b=b.value,X.kvPairs.push({key:b,value:String(G[b])});if(G=P.params)for(g=_.m(Object.keys(G)),b=g.next();!b.done;b=g.next())b=b.value,X.kvPairs.push({key:"client."+b,value:String(G[b])});G=_.nL("SERVER_NAME");g=_.nL("SERVER_VERSION");G&&g&&(X.kvPairs.push({key:"server.name",value:G}),X.kvPairs.push({key:"server.version",value:g}));X={errorMetadata:X,
stackTrace:B,logMessage:f}}X&&(_.jD("clientError",X),(z==="ERROR"||_.K("errors_flush_gel_always_killswitch"))&&_.OU())}_.K("suppress_error_204_logging")||VP1(S,P)}try{FTM.add(P.message)}catch(E){}mBj++}}};
VP1=function(f,S){var B=S.params||{};f={urlParams:{a:"logerror",t:"jserror",type:S.name,msg:S.message.substr(0,250),line:S.lineNumber,level:f,"client.name":B.name},postParams:{url:_.nL("PAGE_NAME",window.location.href),file:S.fileName},method:"POST"};B.version&&(f["client.version"]=B.version);if(f.postParams){S.stack&&(f.postParams.stack=S.stack);S=_.m(Object.keys(B));for(var G=S.next();!G.done;G=S.next())G=G.value,f.postParams["client."+G]=B[G];if(B=_.nL("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(S=
_.m(Object.keys(B)),G=S.next();!G.done;G=S.next())G=G.value,f.postParams[G]=B[G];(B=_.nL("LAVA_VERSION"))&&(f.postParams["lava.version"]=B);B=_.nL("SERVER_NAME");S=_.nL("SERVER_VERSION");B&&S&&(f.postParams["server.name"]=B,f.postParams["server.version"]=S)}_.wO(_.nL("ECATCHER_REPORT_HOST","")+"/error_204",f)};
_.dBG=function(f,S){S=S===void 0?"ERROR":S;var B=B===void 0?{}:B;var G=_.U6("ytbin.polymer.shared.lib.tampering.info");G&&(G=G())&&(B["params.tamperingInfo"]=G.sort().join(","));_.xH(f,S,void 0,void 0,!0,B)};
_.kH=function(f){var S=_.qb.apply(1,arguments);f.args||(f.args=[]);Array.isArray(f.args)&&f.args.push.apply(f.args,_.$d(S))};
iHs=function(f){f.level="IGNORED"};
HHj=function(f,S){R5N.push(f);S();R5N.pop()};
Ir=function(f,S){for(var B in S)S.hasOwnProperty(B)&&(f=_.D0(f,B,S[B]));return f};
_.qns=function(f,S,B){B=B===void 0?!1:B;if(!f)return null;if(f.adInfoDialogEndpoint||f.backstageImageUploadEndpoint||f.confirmDialogEndpoint||f.clientActionEndpoint||f.createBackstagePostDialogEndpoint||f.createCommentReplyDialogEndpoint||f.flowEndpoint||f.guideBuilderEndpoint||f.liveChatDialogEndpoint||f.modalEndpoint||f.openPopupAction||f.shareEndpoint||f.shareEntityEndpoint||f.showLiveChatItemEndpoint||f.subscriptionManagerEndpoint||f.unlimitedCreateFamilyEndpoint||f.unlimitedFamilyFlowEndpoint||
f.updateCommentDialogEndpoint||f.updateCommentReplyDialogEndpoint||f.userFeedbackEndpoint||f.videoEditorEndpoint||f.ypcCancelSurveyEndpoint)return S=_.Gt("polymer_report_client_url_requested_rate"),!B&&Math.random()<S&&_.Lg(new _.dO("urlForEndpoint used on client endpoint",f)),null;var G=_.Gt("polymer_report_missing_web_navigation_endpoint_rate");if(f.liveChatEndpoint||f.liveChatReplayEndpoint)G=0;if(!f.commandMetadata&&!f.clickTrackingParams&&Math.random()<G){var g={},b;for(b in f)g[b]="1";_.Lg(new _.dO("Missing navigation data",
g))}g="";if(f.commandMetadata&&f.commandMetadata.webCommandMetadata&&f.commandMetadata.webCommandMetadata.url)g=f.commandMetadata.webCommandMetadata.url;else if(f.searchEndpoint)Math.random()<G&&_.Lg(new _.dO("Should not manually handle search",f)),g="/results?search_query="+encodeURIComponent(f.searchEndpoint.query).replace(/%20/g,"+"),f.searchEndpoint.params&&(g+="&sp="+f.searchEndpoint.params);else if(f.watchEndpoint)Math.random()<G&&_.Lg(new _.dO("Should not manually handle watch",f)),g="/watch?v="+
f.watchEndpoint.videoId,f.watchEndpoint.playlistId&&(g+="&list="+f.watchEndpoint.playlistId),f.watchEndpoint.index&&(g+="&index="+f.watchEndpoint.index),f.watchEndpoint.startTimeSeconds&&(g+="&t="+f.watchEndpoint.startTimeSeconds);else if(f.browseEndpoint)G=f.browseEndpoint.browseId,(b=f.browseEndpoint.canonicalBaseUrl)?g=b:G&&(g=G.substr(0,2),g=g==="FE"?G==="FEwhat_to_watch"?"/":G==="FEmy_videos"?"/my_videos":"/feed/"+G.substr(2):g==="VL"?"/playlist?list="+G.substr(2):"/channel/"+G),g&&f.browseEndpoint.query&&
(g=Ir(g+"/search",{query:f.browseEndpoint.query})),g&&f.browseEndpoint.params&&(g=Ir(g,{params:f.browseEndpoint.params}));else{if(f.urlEndpoint)return f.urlEndpoint.url;f.signInEndpoint?(g="https://accounts.google.com/ServiceLogin",G={},_.$v.extend(G,S||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),S=G):f.uploadEndpoint?g="//www.youtube.com/upload":f.liveChatEndpoint?(g=f.liveChatEndpoint,G=_.$v.clone(g),_.og(g.continuation)&&(b=Object.keys(g.continuation)[0],
G.continuation=g.continuation[b].continuation),g=Ir("/youtubei/v1/live_chat/get_live_chat",G)):f.liveChatReplayEndpoint?(g=_.$v.clone(f.liveChatReplayEndpoint),g.currentPlayerState&&(_.$v.extend(g,g.currentPlayerState),delete g.currentPlayerState),g=Ir("/youtubei/v1/live_chat/get_live_chat_replay",g)):f.liveChatItemContextMenuEndpoint?g=Ir("/youtubei/v1/live_chat/get_item_context_menu",f.liveChatItemContextMenuEndpoint):f.liveChatPurchaseMessageEndpoint?g=Ir("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
f.liveChatPurchaseMessageEndpoint):f.openSuperStickerBuyFlowCommand?g=Ir("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",f.openSuperStickerBuyFlowCommand):f.videoEditEndpoint?g=Ir("/edit",{video_id:f.videoEditEndpoint.videoId}):f.liveDashboardEndpoint?g=f.liveDashboardEndpoint.videoId?Ir("/live_dashboard",{v:f.liveDashboardEndpoint.videoId}):"/live_dashboard":f.signalNavigationEndpoint&&f.signalNavigationEndpoint.signal&&f.signalNavigationEndpoint.signal==="WEBCAM"?g="/webcam":f.getPdgBuyFlowCommand&&
(g=Ir(f.getPdgBuyFlowCommand.buyflowApiPath,{params:f.getPdgBuyFlowCommand.params}))}return g||B?Ir(g,S||{}):(_.Lg(new _.dO("Error: Can't construct url for endpoint","keys:"+Object.keys(f).sort().join(","),f)),null)};
$Bs=function(f){if(f){if(f.browseEndpoint)return!!f.browseEndpoint.nofollow;if(f.watchEndpoint)return!!f.watchEndpoint.nofollow;if(f.urlEndpoint)return!!f.urlEndpoint.nofollow}return!1};
_.Yn1=function(f,S){var B=S+f,G=QSK.get(B);if(G)return G;f=S+"-"+f.replace(/([A-Z])/g,"-$1").toLowerCase();QSK.set(B,f);return f};
rZG=function(f){var S=_.E6(f,"action")||_.E6(f,"command")||_.E6(f,"endpoint");if(!S)return null;S=_.Yn1(S,"yt");_.H(f,_.UU)&&(S+="-"+_.H(f,_.UU).signal.toLowerCase().replace(/_/g,"-"));return S};
Ees=function(f){try{var S=Object.keys(f)}catch(g){return[]}for(var B=0;B<S.length;B++){var G=S[B];if(jS9.test(G)||OHV.test(G))return xBG(f[G])}return[]};
xBG=function(f){return f.command?[f.command]:f.onExecutionAction?[f.onExecutionAction]:f.onResponseReceivedCommand?[f.onResponseReceivedCommand]:f.updateFlowCommand?[f.updateFlowCommand]:f.clientActions?f.clientActions:f.action?[f.action]:f.actions||f.commands||f.onResponseReceivedActions||f.onResponseReceivedCommands||f.onResponseReceivedEndpoints||[]};
kiV=function(f,S){S=S===void 0?!1:S;var B=_.oy().resolve(_.fN(Cg));B||(B=new LTj,_.oy().addProvider({provide:Cg,useValue:B}));return B&&f&&!_.$v.isEmpty(f)?B.getUrl(f,S):""};
nex=function(f,S,B){B=B===void 0?"":B;if(S){f.data=S;var G=kiV(S);G?(Y6(f,G),$Bs(S)||!Wf(G)?f.rel="nofollow":f.removeAttribute("rel"),_.H(S,_.pg)&&_.H(S,_.pg).target==="TARGET_NEW_WINDOW"?f.target="_blank":B?f.target=B:f.removeAttribute("target")):(f.removeAttribute("href"),f.removeAttribute("rel"),f.removeAttribute("target"))}};
_.Z0=function(f,S){var B=cv;if(QJ())sSV(f,function(){var b=_.qb.apply(0,arguments);kp(B,function(){S.apply(null,_.$d(b))})});
else{var G=_.AE.getInstance(),g=x5(S);uXj(function(){g.value=S});
_.j9(function(){var b={},z=_.N6(G,(b[f]=function(){var X=_.qb.apply(0,arguments);kp(B,function(){g.value.apply(g,_.$d(X))})},b));
return function(){var X={};_.M6(G,(X[f]="",X),z)}})}};
_.tE=function(f,S){return DBA(f,!1,S)};
_.us=function(f,S){return DBA(f,!0,S)};
DBA=function(f,S,B){return QJ()?IwK(f,S,B):UBj(f,S,B)};
UBj=function(f,S,B){return O6(function(){return IwK(f,S,B)})};
IwK=function(f,S,B){var G=MDN(function(g){G.__value&&G.__value===g||(G.__count=G.__count?G.__count+1:1);G.value=g;var b=function(){var z=gA(null);try{return B==null?void 0:B(g)}finally{gA(z)}}();
return function(){b==null||b();G.value=null}});
f!==_.ar&&(G.__expectedTagName=f);G.__optional=S;G.isIdom=!QJ();return G};
CkK=function(f){var S=cv,B=q9;return{getFn:function(){return function(G){S.isDisposed||rA(function(){return wA(function(){return f(G)})},B)!==!0&&G.stopPropagation()}}}};
y0=function(f){if(typeof f.children==="function")return f.children(),null;f=_.m(f.children);for(var S=f.next();!S.done;S=f.next())S=S.value,S();return null};
psW=function(f){var S;return((S=f.prototype)==null?void 0:S.render)===void 0};
AZ9=function(f){f=f.items.map(f.children);return f.length>0&&typeof f[0]==="string"?f.join(""):f};
MPV=function(f,S,B){B=B===void 0?!1:B;rA(function(){return NRN(f,S,B)})};
NRN=function(f,S,B){var G=null;dA++;B=(B===void 0?0:B)?ZHj:tP1;try{G=B(f,function(){WD(S)}),HW(!1)}catch(g){throw HW(!0),g;
}return G===null?f:G};
WD=function(f){if(f!==void 0&&f!==null)if(f instanceof T8)for(var S=pj;Aj()!=null&&rEx in Aj()&&S.contains(Aj());)Zx();else if(Array.isArray(f))for(S=_.m(f),f=S.next();!f.done;f=S.next())WD(f.value);else if(f instanceof mg||"function"==typeof _.Za&&f instanceof _.Za||"function"==typeof _.S9&&f instanceof _.S9)fL(f.toString());else if(_.b0(f)){if(Aj()!==f){var B,G;S=(G=(B=q9)==null?void 0:B.name)!=null?G:"unknown";throw Error("fc`"+f.tagName+"`"+S);}Zx()}else if(aXT(f)||f instanceof rc||u3K(f))for(S=
WN1(f),S=Array.from(S.childNodes),S=_.m(S),f=S.next();!f.done;f=S.next())pj.appendChild(f.value),Zx();else if(F6(f)&&(f=f.toString()),B=typeof f,B==="boolean"||B==="number"||B==="string")fL(f);else if(typeof f==="function"){S=pj;var g=Aj();g&&(g._isSignalTextNode||g._isSafeOrSanitizedHtmlNode)||Ps1(S,g,f);Zx()}else if(f.type===AZ9)WD(f.type(Object.assign({},f.props,{children:f.children[0]})));else{JA.beforeVisit(f);if(typeof f.type==="string"){a:{f.__open||Y4T(f.type,f.props.idomKey);g=pj;for(S in f.props)if(f.props[S]!==
u_M){var b=f.props[S];B=yJ;B.push(S);B.push(b)}S=_.Sp.attributes;S=S===void 0?cD:S;b=pj;B=Cj(b);kVG(b,B,S);JEj(g,f.props,!0);if((f.props.skip||f.props.skipchildren)&&pj.hasChildNodes())uv();else{if(f.type==="style"&&GMM(f.children)===null){uv();S=void 0;break a}WD(f.children)}ryT();f.__open&&(f.__open=!1);pUN(g,f.props);S=g}return S}if(f.type===_.gg)WD(f.children);else if(!awx(f)){S=f;try{yZG(S)}catch(z){f=z,(b=_.Sp.handleError)==null||b.call.apply(b,[_.Sp].concat(_.$d(_.nj(f,(g=S.type)==null?void 0:
g.TAG_NAME))))}S.__open&&(ryT(),S.__open=!1)}}};
WTG=function(f,S){var B;psW(f)?B=new vf(S,f):B=new f(S);B.JSC$8259___type=f;B.__updateContext={nextState:B.state,isForced:!1};return B};
yZG=function(f){var S=f.type,B=S.TAG_NAME;if(S===y0)f.props.children=f.children,S(f.props);else{f.children.length>0&&(f.props.children=f.children);var G;(G=f.props).idomKey||(G.idomKey=S);if(B){var g=Y4T(B,f.props.idomKey);f.__open=!0;var b=g.__instance}b||(b=WTG(S,f.props),b.props=null,g&&(g.__instance=b,b.el=g));var z;B=((z=b.__updateContext)!=null?z:{nextState:b.state,isForced:!1}).nextState;b.__updateContext=void 0;S.getDerivedStateFromProps&&(B=S.getDerivedStateFromProps(f.props,B));b.props=
f.props;b.state=B;z=function(){var X=b;JA.beforeRender(X);var w=X.render(X.props);JA.afterRender(X,w);w?(X.props.idomKey&&(w.props.idomKey=X.props.idomKey),X=w):X=void 0;if(w=X)if(w.__open=f.__open,X=WD(w),f.__open=w.__open,!S.TAG_NAME)if(X)S.TAG_NAME=X.tagName.toLowerCase(),X.__instance=b,b.el=X;else{var F;if((F=b.hooks)==null?0:F.length){var V;(V=_.Sp.handleError)==null||V.call.apply(V,[_.Sp].concat(_.$d(_.nj(Error("kd")))))}}b.didPatch();JA.didPatch(b)};
(B=b.functionComponent)?ZN1(B,z,b.props.debugInstance):z()}};
awx=function(f){var S=f.type;if(!psW(S)||S===y0||S.componentType===$p)return!1;f.props.children=f.children.length>1?f.children:f.children[0];var B,G=(B=f.props.idomKey)!=null?B:f.type,g;if(Aj()&&((g=Aj()[Xq])==null?void 0:g.key)===G){var b=Aj(),z=b[Xq];if(!z)throw Error("ec`"+b.tagName);var X;(X=z.updateSignalsFromIdomProps)==null||X.call(z,f.props);cZx(z);return!0}if(lw9.has(S.name))throw X=S.name,S=(z=(b=q9)==null?void 0:b.name)!=null?z:"unknown",Error("dc`"+X+"`"+S);igM(f.type,f.props,f.children);
f.props.renderedFromIdom=!0;(X=ZN1(f.type,function(){return wDA(f.type,f.props)},f.props.debugInstance))&&fdj(X);
return!0};
o8K=function(f){for(var S=0;S<hA(f).length;S++)Zx()};
cZx=function(f){var S=Sox();if(S)o8K(S);else for(var B=0;B<f.numNodes;B++)(S=Sox())?o8K(S):Zx()};
Sox=function(){var f;return(f=Aj()[Xq])==null?void 0:f.sourceDynamicRange};
fdj=function(f){f=NZs(f);f=Array.isArray(f)?f:[f];f=_.m(f);for(var S=f.next();!S.done;S=f.next())pj.insertBefore(S.value,Aj()),Zx()};
BmN=function(f){var S=TCW(),B=O6(function(){return{value:typeof f==="function"?f():f}});
return[B.value,function(G){if(Pf!==null){var g;(g=_.Sp.handleError)==null||g.call.apply(g,[_.Sp].concat(_.$d(_.nj(Error("ld")))))}B.value=typeof G==="function"?G(B.value):G;S.__updateContext={nextState:S.state,isForced:!0};G=_.l5(S.effectContext);g=e9(!1);try{if(S.el){var b,z={},X=(z.props=S.props,z.type=S.JSC$8259___type,z.children=(b=S.props.children)!=null?b:[],z[G8]=!0,z);try{MPV(S.el,X,!0)}catch(V){var w,F;(F=_.Sp.handleError)==null||F.call.apply(F,[_.Sp].concat(_.$d(_.nj(V,(w=S.JSC$8259___type)==
null?void 0:w.TAG_NAME))))}}}finally{e9(g),_.l5(G)}}]};
ls=function(f,S){var B=cv,G=function(g){kp(B,function(){S(g)})};
window.addEventListener(f,G,void 0);_.Ov(function(){window.removeEventListener(f,G,void 0)})};
_.of=function(f,S){var B=cv;_.j9(function(){var G,g=(G=S.observer)!=null?G:_.oy().resolve(f_);if(G=f.value){var b=GDj(G),z=[];S.showOption&&z.push(g.observe(G,function(){kp(B,function(){S.visibilityCallback(!0)})},S.showOption));
S.hideOption&&z.push(g.observe(G,function(){kp(B,function(){S.visibilityCallback(!1)})},S.hideOption));
S.prescanOption&&S.prescanCallback&&z.push(g.observe(G,function(){kp(B,function(){S.prescanCallback()})},S.prescanOption));
var X;b.visibilityMonitorKeys=((X=b.visibilityMonitorKeys)!=null?X:[]).concat(z)}})};
GDj=function(f){var S;return(S=f.polymerController)!=null?S:f};
_.Su=function(f){f.componentType=$p};
m11=function(f,S){var B=g81;return _.T(_.gg,null,Wv(_.Sp.enableLazyTsx,function(){return _.T(edx,{id:B,value:f,children:S})},function(){var G=b9Q(B,f);
o0(G);G=_.l5(G);try{return S()}finally{_.l5(G)}}))};
edx=function(f){var S=f.children;f=b9Q(f.id,f.value);o0(f);f=_.l5(f);try{return _.T(_.gg,null,Fq(S()))}finally{_.l5(f)}};
b9Q=function(f,S){return Object.assign(Object.create(zd1),{id:f,contextValue:S})};
Rdj=function(f){var S,B=cv;_.Lj(function(){var G=_.l5(B),g=e9(!S);try{if(S)MPV(S,f.children(),!0);else if(S=Fq(f.children()),!(S instanceof Element))throw Error("md");}finally{e9(g),_.l5(G)}});
return S};
_.Xw1=function(f,S){var B;S=xp(function(){var G=e9(!0);try{B=hA(f())}finally{e9(G)}},S===void 0?!1:S);
return[B,S]};
hdN=function(f){f=f.buf.charCodeAt(f.pos++);return wwx[f]};
BS=function(f){var S=0,B=0;do{var G=hdN(f);S|=(G&31)<<B;B+=5}while(G&32);return S<0?S+4294967296:S};
Vq1=function(f,S,B){TmW(f,S);f[S][FyG].unshift(B)};
TmW=function(f,S){if(!f[S]||!f[S][FyG]){var B=f[S],G=B?[B]:[];f[S]=function(){for(var g=_.m(G),b=g.next();!b.done;b=g.next())b.value.apply(this,arguments)};
f[S][FyG]=G}};
J3s=function(f){if(!f)return[];var S=[];f=_.m(f);for(var B=f.next();!B.done;B=f.next())B=B.value,Array.isArray(B)?S.push.apply(S,_.$d(J3s(B))):S.push(B);return S};
_.g0=function(f,S){if(f&&PFG.test(f)||f==="//")return f;if(v89===void 0){v89=!1;try{var B=new URL("b","http://a");B.pathname="c%20d";v89=B.href==="http://a/c%20d"}catch(G){}}S||(S=document.baseURI||window.location.href);if(v89)try{return(new URL(f,S)).href}catch(G){return f}G$||(G$=document.implementation.createHTMLDocument("temp"),G$.base=G$.createElement("base"),G$.head.appendChild(G$.base),G$.anchor=G$.createElement("a"),G$.body.appendChild(G$.anchor));G$.base.href=S;G$.anchor.href=f;return G$.anchor.href||
f};
d1Q=function(f,S){return f.replace(KyW,function(B,G,g,b){return G+"'"+_.g0(g.replace(/["']/g,""),S)+"'"+b})};
i9K=function(f){return f.substring(0,f.lastIndexOf("/")+1)};
$1T=function(){H9T=!1;for(var f=eu.length,S=0;S<f;S++){var B=eu[S];if(B)try{B()}catch(G){setTimeout(function(){throw G;})}}eu.splice(0,f);
qoQ+=f};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(f){console.log("["+f.is+"]: registered")};
YoT=function(f){QaK.push(f)};
bi=function(f){return r39[f]||(r39[f]=f.indexOf("-")<0?f:f.replace(jaN,function(S){return S[1].toUpperCase()}))};
mI=function(f){return r39[f]||(r39[f]=f.replace(O9N,"-$1").toLowerCase())};
x11=function(f,S){var B=S.parentInfo&&x11(f,S.parentInfo);if(B)for(f=B.firstChild,B=0;f;f=f.nextSibling){if(S.parentIndex===B++)return f}else return f};
E8j=function(f,S){f=f._methodHost||f;return function(B){if(f[S])f[S](B,B.detail);else console.warn("listener method `"+S+"` not defined")}};
z$=function(f){return f.indexOf(".")>=0};
Rf=function(f){var S=f.indexOf(".");return S===-1?f:f.slice(0,S)};
Lys=function(f,S){return f.indexOf(S+".")===0};
Xj=function(f,S){return S.indexOf(f+".")===0};
w0=function(f,S,B){return S+B.slice(f.length)};
kDA=function(f,S){return f===S||Lys(f,S)||Xj(f,S)};
hL=function(f){if(Array.isArray(f)){for(var S=[],B=0;B<f.length;B++)for(var G=f[B].toString().split("."),g=0;g<G.length;g++)S.push(G[g]);return S.join(".")}return f};
n8Q=function(f){return Array.isArray(f)?hL(f).split("."):f.toString().split(".")};
T$=function(f,S,B){S=n8Q(S);for(var G=0;G<S.length;G++){if(!f)return;f=f[S[G]]}B&&(B.path=S.join("."));return f};
sas=function(f,S,B){var G=n8Q(S),g=G[G.length-1];if(G.length>1){for(S=0;S<G.length-1;S++)if(f=f[G[S]],!f)return;f[g]=B}else f[S]=B;return G.join(".")};
D1M=function(f,S,B){var G=f[S];if(!G)G=f[S]={};else if(!f.hasOwnProperty(S)&&(G=f[S]=Object.create(f[S]),B))for(var g in G)for(f=G[g],S=G[g]=Array(f.length),B=0;B<f.length;B++)S[B]=f[B];return G};
V3=function(f,S,B,G,g,b){if(S){var z=!1,X=Fj++,w;for(w in B){var F=g?Rf(w):w;if(F=S[F])for(var V=0,J=F.length,P=void 0;V<J&&(P=F[V]);V++)P.info&&P.info.lastRun===X||g&&!IdQ(w,P.trigger)||(P.info&&(P.info.lastRun=X),P.fn(f,w,B,G,P.info,g,b),z=!0)}return z}return!1};
IdQ=function(f,S){if(S){var B=S.name;return B==f||!(!S.structured||!Lys(B,f))||!(!S.wildcard||!Xj(B,f))}return!0};
U1A=function(f,S,B,G,g){S=typeof g.method==="string"?f[g.method]:g.method;B=g.property;S?S.call(f,f.__data[B],G[B]):g.dynamicFn||console.warn("observer method `"+g.method+"` not defined")};
CF9=function(f,S,B,G){B={value:B,queueProperty:!0};G&&(B.path=G);(0,_.JL)(f).dispatchEvent(new CustomEvent(S,{detail:B}))};
pwT=function(f,S,B,G,g,b){b=(G=(b?Rf(S):S)!=S?S:null)?T$(f,G):f.__data[S];G&&b===void 0&&(b=B[S]);CF9(f,g.eventName,b,G)};
A3N=function(f,S,B,G,g){B=f.__data[S];PS&&(B=PS(B,g.attrName,"attribute",f));f._propertyToAttribute(S,g.attrName,B)};
Mq1=function(f){var S=f.constructor.__orderedComputedDeps;if(!S){S=new Map;for(var B=f.__computeEffects,G=NmM(f),g=G.counts,b=G.ready,z=G.total;G=b.shift();)S.set(G,S.size),(G=B[G])&&G.forEach(function(X){X=X.info.methodInfo;--z;--g[X]===0&&b.push(X)});
z!==0&&console.warn("Computed graph for "+f.localName+" incomplete; circular?");f.constructor.__orderedComputedDeps=S}return S};
NmM=function(f){var S=f.__computeInfo,B={};f=f.__computeEffects;var G=[],g=0,b;for(b in S){var z=S[b];g+=B[b]=z.args.filter(function(w){return!w.literal}).length+(z.dynamicFn?1:0)}for(var X in f)S[X]||G.push(X);
return{counts:B,ready:G,total:g}};
tqM=function(f,S,B,G,g){S=Z9x(f,S,B,G,g);if(S===vS)return!1;g=g.methodInfo;if(f.__dataHasAccessor&&f.__dataHasAccessor[g])return f._setPendingProperty(g,S,!0);f[g]=S;return!1};
y3W=function(f,S,B,G,g,b,z){B.bindings=B.bindings||[];G={kind:G,target:g,parts:b,literal:z,isCompound:b.length!==1};B.bindings.push(G);G.target&&G.kind!="attribute"&&G.kind!="text"&&!G.isCompound&&G.parts[0].mode==="{"&&(B=G.parts[0],b=B.negate,G.listenerEvent=B.event||mI(g)+"-changed",G.listenerNegate=b);g=S.nodeInfoList.length;for(B=0;B<G.parts.length;B++){var X=G.parts[B];X.compoundIndex=B;b=f;z=S;var w=G,F=X,V=g;if(!F.literal)if(w.kind==="attribute"&&w.target[0]==="-")console.warn("Cannot set attribute "+
w.target+' because "-" is not a valid attribute starting character');else for(X=F.dependencies,w={index:V,binding:w,part:F,evaluator:b},F=0;F<X.length;F++)V=X[F],typeof V=="string"&&(V=ud9(V),V.wildcard=!0),b._addTemplatePropertyEffect(z,V.rootProperty,{fn:adN,info:w,trigger:V})}};
adN=function(f,S,B,G,g,b,z){z=z[g.index];var X=g.binding,w=g.part;b&&w.source&&S.length>w.source.length&&X.kind=="property"&&!X.isCompound&&z.__isPropertyEffectsClient&&z.__dataHasAccessor&&z.__dataHasAccessor[X.target]?(B=B[S],S=w0(w.source,X.target,S),z._setPendingPropertyOrPath(S,B,!1,!0)&&f._enqueueClient(z)):(S=g.evaluator._evaluateBinding(f,w,S,B,G,b),S!==vS&&(X.isCompound&&(B=z.__dataCompoundStorage[X.target],B[w.compoundIndex]=S,S=B.join("")),X.kind==="attribute"||X.target!=="textContent"&&
(X.target!=="value"||z.localName!=="input"&&z.localName!=="textarea")||(S=S==void 0?"":S),w=S,PS&&(w=PS(w,X.target,X.kind,z)),X.kind=="attribute"?f._valueToNodeAttribute(z,w,X.target):(X=X.target,z.__isPropertyEffectsClient&&z.__dataHasAccessor&&z.__dataHasAccessor[X]?z.__readOnly&&z.__readOnly[X]||z._setPendingProperty(X,w)&&f._enqueueClient(z):f._setUnmanagedPropertyToNode(z,X,w))))};
WyN=function(f,S,B){if(B.listenerEvent){var G=B.parts[0];f.addEventListener(B.listenerEvent,function(g){var b=B.target,z=G.source,X=G.negate,w=g.detail,F=w&&w.path;F?(z=w0(b,z,F),g=w&&w.value):g=g.currentTarget[b];S.__readOnly&&S.__readOnly[z]||!S._setPendingPropertyOrPath(z,X?!g:g,!0,!!F)||w&&w.queueProperty||S._invalidateProperties()})}};
c3G=function(f,S,B,G,g,b){b=S.static||b&&(typeof b!=="object"||b[S.methodName]);g={methodName:S.methodName,args:S.args,methodInfo:g,dynamicFn:b};for(var z=0,X=void 0;z<S.args.length&&(X=S.args[z]);z++)X.literal||f._addPropertyEffect(X.rootProperty,B,{fn:G,info:g,trigger:X});b&&f._addPropertyEffect(S.methodName,B,{fn:G,info:g});return g};
Z9x=function(f,S,B,G,g){G=f._methodHost||f;var b=G[g.methodName];if(b)return f=f._marshalArgs(g.args,S,B),f===vS?vS:b.apply(G,f);g.dynamicFn||console.warn("method `"+g.methodName+"` not defined")};
ldj=function(f){for(var S="",B=0;B<f.length;B++)S+=f[B].literal||"";return S};
SRM=function(f){if(f=f.match(/([^\s]+?)\(([\s\S]*)\)/)){var S={methodName:f[1],static:!0,args:fP1};return f[2].trim()?oKA(f[2].replace(/\\,/g,"&comma;").split(","),S):S}return null};
oKA=function(f,S){S.args=f.map(function(B){B=ud9(B);B.literal||(S.static=!1);return B},this);
return S};
ud9=function(f){f=f.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var S={name:f,value:"",literal:!1},B=f[0];B==="-"&&(B=f[1]);B>="0"&&B<="9"&&(B="#");switch(B){case "'":case '"':S.value=f.slice(1,-1);S.literal=!0;break;case "#":S.value=Number(f),S.literal=!0}S.literal||(S.rootProperty=Rf(f),S.structured=z$(f),S.structured&&(S.wildcard=f.slice(-2)==".*",S.wildcard&&(S.name=f.slice(0,-2))));return S};
BbG=function(f,S,B){f=T$(f,B);f===void 0&&(f=S[B]);return f};
GGK=function(f,S,B,G){G={indexSplices:G};K_&&!f._overrideLegacyUndefined&&(S.splices=G);f.notifyPath(B+".splices",G);f.notifyPath(B+".length",S.length);K_&&!f._overrideLegacyUndefined&&(G.indexSplices=[])};
d0=function(f,S,B,G,g,b){GGK(f,S,B,[{index:G,addedCount:g,removed:b,object:S,type:"splice"}])};
gKM=function(f){f=d1Q((f.body?f.body:f).textContent,f.baseURI);var S=document.createElement("style");S.textContent=f;return S};
bFN=function(f){f=f.trim().split(/\s+/);for(var S=[],B=0;B<f.length;B++)S.push.apply(S,_.$d(e$K(f[B])));return S};
e$K=function(f){var S=ii.import(f);if(!S)return console.warn("Could not find style data in module named",f),[];if(S._styles===void 0){f=[];f.push.apply(f,_.$d(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(S)));var B=S.querySelector("template");B&&f.push.apply(f,_.$d(mlA(B,S.assetpath)));S._styles=f}return S._styles};
mlA=function(f,S){if(!f._styles){for(var B=[],G=f.content.querySelectorAll("style"),g=0;g<G.length;g++){var b=G[g],z=b.getAttribute("include");z&&B.push.apply(B,_.$d(bFN(z).filter(function(X,w,F){return F.indexOf(X)===w})));
S&&(b.textContent=d1Q(b.textContent,S));B.push(b)}f._styles=B}return f._styles};
z$x=function(f){return(f=ii.import(f))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(f):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(f){var S=[];f=f.querySelectorAll("link[rel=import][type~=css]");for(var B=0;B<f.length;B++){var G=f[B];if(G.import){var g=G.import;if((G=G.hasAttribute("shady-unscoped"))&&!g._unscopedStyle){var b=gKM(g);b.setAttribute("shady-unscoped","");g._unscopedStyle=b}else g._style||(g._style=gKM(g));S.push(G?g._unscopedStyle:g._style)}}return S};
X8Q=function(f){f=f.trim().split(/\s+/);for(var S="",B=0;B<f.length;B++)S+=R$T(f[B]);return S};
R$T=function(f){var S=ii.import(f);if(S&&S._cssText===void 0){var B=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(S),G=S.querySelector("template");G&&(B+=w8T(G,S.assetpath));S._cssText=B||null}S||console.warn("Could not find style data in module named",f);return S&&S._cssText||""};
w8T=function(f,S){var B="";f=mlA(f,S);for(S=0;S<f.length;S++){var G=f[S];G.parentNode&&G.parentNode.removeChild(G);B+=G.textContent}return B};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(f){var S="";f=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(f);for(var B=0;B<f.length;B++)S+=f[B].textContent;return S};
HS=function(f,S){return{index:f,removed:[],addedCount:S}};
TbA=function(f,S,B,G){var g=0,b=0,z=0,X=0,w=Math.min(S-g,G-b);if(g==0&&b==0)a:{for(z=0;z<w;z++)if(f[z]!==B[z])break a;z=w}if(S==f.length&&G==B.length){X=f.length;for(var F=B.length,V=0;V<w-z&&h$x(f[--X],B[--F]);)V++;X=V}g+=z;b+=z;S-=X;G-=X;if(S-g==0&&G-b==0)return[];if(g==S){for(S=HS(g,0);b<G;)S.removed.push(B[b++]);return[S]}if(b==G)return[HS(g,S-g)];w=g;z=b;G=G-z+1;X=S-w+1;S=Array(G);for(F=0;F<G;F++)S[F]=Array(X),S[F][0]=F;for(F=0;F<X;F++)S[0][F]=F;for(F=1;F<G;F++)for(V=1;V<X;V++)if(f[w+V-1]===
B[z+F-1])S[F][V]=S[F-1][V-1];else{var J=S[F-1][V]+1,P=S[F][V-1]+1;S[F][V]=J<P?J:P}w=S.length-1;z=S[0].length-1;G=S[w][z];for(f=[];w>0||z>0;)w==0?(f.push(2),z--):z==0?(f.push(3),w--):(X=S[w-1][z-1],F=S[w-1][z],V=S[w][z-1],J=F<V?F<X?F:X:V<X?V:X,J==X?(X==G?f.push(0):(f.push(1),G=X),w--,z--):J==F?(f.push(3),w--,G=F):(f.push(2),z--,G=V));f.reverse();S=void 0;w=[];for(z=0;z<f.length;z++)switch(f[z]){case 0:S&&(w.push(S),S=void 0);g++;b++;break;case 1:S||(S=HS(g,0));S.addedCount++;g++;S.removed.push(B[b]);
b++;break;case 2:S||(S=HS(g,0));S.addedCount++;g++;break;case 3:S||(S=HS(g,0)),S.removed.push(B[b]),b++}S&&w.push(S);return w};
FsG=function(f,S){return TbA(f,f.length,S,S.length)};
h$x=function(f,S){return f===S};
JD1=function(f){if(f instanceof VWK)return f.value;throw Error("Dd`"+f);};
Pxx=function(f,S){for(var B in S)B===null?f.style.removeProperty(B):f.style.setProperty(B,S[B])};
vKj=function(f,S){return(f=window.getComputedStyle(f).getPropertyValue(S))?f.trim():""};
HF9=function(f){requestAnimationFrame(function(){Ksj?Ksj(f):(dl9||(dl9=new Promise(function(S){iF1=S}),document.readyState==="complete"?iF1():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&iF1()})),dl9.then(function(){f&&f()}))})};
YRV=function(f){qRW=f&&f.shimcssproperties?!1:$lN||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
EKT=function(f){if(!(rD9.indexOf(f)>-1)&&f!=="touchend"&&j8Q&&OFT&&xl1)return{passive:!0}};
s8W=function(f){for(var S=LsG?["click"]:rD9,B=0,G;B<S.length;B++)G=S[B],f?(kGG.length=0,document.addEventListener(G,nKA,!0)):document.removeEventListener(G,nKA,!0)};
qC=function(f){var S=f.type;return rD9.indexOf(S)>-1?S==="mousemove"?(S=f.buttons===void 0?1:f.buttons,f instanceof window.MouseEvent&&!Dl1&&(S=IPQ[f.which]||0),!!(S&1)):(f.button===void 0?0:f.button)===0:!1};
UlT=function(f){if(f.type==="click"){if(f.detail===0)return!0;var S=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f);if(!S.nodeType||S.nodeType!==Node.ELEMENT_NODE)return!0;S=S.getBoundingClientRect();var B=f.pageX;f=f.pageY;return!(B>=S.left&&B<=S.right&&f>=S.top&&f<=S.bottom)}return!1};
Cx1=function(f,S,B){f.movefn=S;f.upfn=B;document.addEventListener("mousemove",S);document.addEventListener("mouseup",B)};
$2=function(f){document.removeEventListener("mousemove",f.movefn);document.removeEventListener("mouseup",f.upfn);f.movefn=null;f.upfn=null};
p8V=function(f,S){for(var B=document.elementFromPoint(f,S),G=B;G&&G.shadowRoot&&!window.ShadyDOM;){var g=G;G=G.shadowRoot.elementFromPoint(f,S);if(g===G)break;G&&(B=G)}return B};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(f){var S=ADT(f);return S.length>0?S[0]:f.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(f){var S=f.type,B=f.currentTarget.__polymerGestures;if(B&&(B=B[S])){if(!f.__polymerGesturesHandled&&(f.__polymerGesturesHandled={},S.slice(0,5)==="touch")){var G=f.changedTouches[0];S==="touchstart"&&f.touches.length===1&&(Nbj=G.identifier);if(Nbj!==G.identifier)return;j8Q||(S==="touchstart"||S==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f)}G=
f.__polymerGesturesHandled;if(!G.skip){for(var g=0,b;g<Q3.length;g++)b=Q3[g],B[b.name]&&!G[b.name]&&b.flow&&b.flow.start.indexOf(f.type)>-1&&b.reset&&b.reset();for(g=0;g<Q3.length;g++)b=Q3[g],B[b.name]&&!G[b.name]&&(G[b.name]=!0,b[S](f))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(f){var S=f.changedTouches[0],B=f.type;if(B==="touchstart")MWV=S.clientX,ZFM=S.clientY,tWV=!1;else if(B==="touchmove"&&!tWV){tWV=!0;B="auto";for(var G=ADT(f),g=0,b;g<G.length;g++)if(b=G[g],b.__polymerGesturesTouchAction){B=b.__polymerGesturesTouchAction;break}G=!1;g=Math.abs(MWV-S.clientX);S=Math.abs(ZFM-S.clientY);f.cancelable&&(B==="none"?G=!0:B==="pan-x"?G=S>g:B==="pan-y"&&(G=g>S));G?f.preventDefault():
Y2("track")}};
ju=function(f,S,B){return r0[S]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f,S,B),!0):!1};
Ol=function(f,S,B){return r0[S]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f,S,B),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(f,S,B){var G=r0[S],g=G.deps,b=G.name,z=f.__polymerGestures;z||(f.__polymerGestures=z={});for(var X=0,w,F;X<g.length;X++)w=g[X],LsG&&rD9.indexOf(w)>-1&&w!=="click"||((F=z[w])||(z[w]=F={_count:0}),F._count===0&&f.addEventListener(w,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,EKT(w)),F[b]=(F[b]||0)+1,F._count=(F._count||0)+1);f.addEventListener(S,B);G.touchAction&&_.x2(f,G.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(f,S,B){var G=r0[S],g=G.deps;G=G.name;var b=f.__polymerGestures;if(b)for(var z=0,X,w;z<g.length;z++)X=g[z],(w=b[X])&&w[G]&&(w[G]=(w[G]||1)-1,w._count=(w._count||1)-1,w._count===0&&f.removeEventListener(X,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,EKT(X)));f.removeEventListener(S,B)};
u$W=function(f){Q3.push(f);for(var S=0;S<f.emits.length;S++)r0[f.emits[S]]=f};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(f){for(var S=0,B;S<Q3.length;S++){B=Q3[S];for(var G=0,g;G<B.emits.length;G++)if(g=B.emits[G],g===f)return B}return null};
_.x2=function(f,S){j8Q&&f instanceof HTMLElement&&El.run(function(){f.style.touchAction=S});
f.__polymerGesturesTouchAction=S};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(f,S,B){S=new Event(S,{bubbles:!0,cancelable:!0,composed:!0});S.detail=B;(0,_.JL)(f).dispatchEvent(S);S.defaultPrevented&&(f=B.preventer||B.sourceEvent)&&f.preventDefault&&f.preventDefault()};
Y2=function(f){f=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f);f.info&&(f.info.prevent=!0)};
L_=function(f,S,B,G){S&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(S,f,{x:B.clientX,y:B.clientY,sourceEvent:B,preventer:G,prevent:function(g){return Y2(g)}})};
aPs=function(f,S,B){if(f.prevent)return!1;if(f.started)return!0;B=Math.abs(f.y-B);return Math.abs(f.x-S)>=5||B>=5};
yDM=function(f,S,B){if(S){var G=f.moves[f.moves.length-2],g=f.moves[f.moves.length-1],b=g.x-f.x,z=g.y-f.y,X=0;if(G){var w=g.x-G.x;X=g.y-G.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(S,"track",{state:f.state,x:B.clientX,y:B.clientY,dx:b,dy:z,ddx:w,ddy:X,sourceEvent:B,hover:function(){return p8V(B.clientX,B.clientY)}})}};
cDV=function(f,S,B){var G=Math.abs(S.clientX-f.x),g=Math.abs(S.clientY-f.y),b=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(B||S);!b||Wsx[b.localName]&&b.hasAttribute("disabled")||!(isNaN(G)||isNaN(g)||G<=25&&g<=25||UlT(S))||f.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(b,"tap",{x:S.clientX,y:S.clientY,sourceEvent:S,preventer:B})};
lPT=function(f,S,B,G,g){var b;g&&(b=typeof B==="object"&&B!==null)&&(G=f.__dataTemp[S]);G=G!==B&&(G===G||B===B);b&&G&&(f.__dataTemp[S]=B);return G};
oVQ=function(){if(k2&&!n_){if(!fps){fps=!0;var f=document.createElement("style");f.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(f)}return!0}return!1};
B5x=function(){return SC1};
GNG=function(f,S){SC1=f;Object.setPrototypeOf(f,S.prototype);new S;SC1=null};
gVG=function(f,S){for(var B=0;B<S.length;B++){var G=S[B];if(!!f!=!!G.__hideTemplateChildren__)if(G.nodeType===Node.TEXT_NODE)f?(G.__polymerTextContent__=G.textContent,G.textContent=""):G.textContent=G.__polymerTextContent__;else if(G.localName==="slot")if(f)G.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.JL)((0,_.JL)(G).parentNode).replaceChild(G.__polymerReplaced__,G);else{var g=G.__polymerReplaced__;g&&(0,_.JL)((0,_.JL)(g).parentNode).replaceChild(G,g)}else G.style&&(f?(G.__polymerDisplay__=
G.style.display,G.style.display="none"):G.style.display=G.__polymerDisplay__);G.__hideTemplateChildren__=f;G._showHideChildren&&G._showHideChildren(f)}};
eoN=function(f){return(f=f.__dataHost)&&f._methodHost||f};
zo1=function(f,S,B){var G=B.mutableData?by9:sl;Dc.mixin&&(G=Dc.mixin(G));var g=function(){return G.apply(this,arguments)||this};
_.q(g,G);g.prototype.__templatizeOptions=B;g.prototype._bindTemplate(f);mVx(g,f,S,B);return g};
T5N=function(f,S,B,G){var g=B.forwardHostProp;if(g&&S.hasHostProps){var b=f.localName=="template",z=S.templatizeTemplateClass;if(!z){if(b){var X=B.mutableData?Rox:XeN;z=function(){return X.apply(this,arguments)||this};
_.q(z,X);z=S.templatizeTemplateClass=z}else{var w=f.constructor;z=function(){return w.apply(this,arguments)||this};
_.q(z,w);z=S.templatizeTemplateClass=z}var F=S.hostProps,V;for(V in F)z.prototype._addPropertyEffect("_host_"+V,z.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:we1(g)}),z.prototype._createNotifyingProperty("_host_"+V);If&&G&&hoj(S,B,G)}f.__dataProto&&Object.assign(f.__data,f.__dataProto);if(b)GNG(f,z),f.__dataTemp={},f.__dataPending=null,f.__dataOld=null,f._enableProperties();else{Object.setPrototypeOf(f,z.prototype);S=S.hostProps;for(var J in S)J="_host_"+J,J in f&&(S=f[J],delete f[J],f.__data[J]=
S)}}};
we1=function(f){return function(S,B,G){f.call(S.__templatizeOwner,B.substring(6),G[B])}};
mVx=function(f,S,B,G){var g=B.hostProps||{},b;for(b in G.instanceProps){delete g[b];var z=G.notifyInstanceProp;z&&f.prototype._addPropertyEffect(b,f.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:FvK(z)})}if(G.forwardHostProp&&S.__dataHost)for(var X in g)B.hasHostProps||(B.hasHostProps=!0),f.prototype._addPropertyEffect(X,f.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:V3N()})};
FvK=function(f){return function(S,B,G){f.call(S.__templatizeOwner,S,B,G[B])}};
V3N=function(){return function(f,S,B){f.__dataHost._setPendingPropertyOrPath("_host_"+S,B[S],!0,!0)}};
Dc=function(f,S,B){if(Ul&&!eoN(f))throw Error("Jd");B=B||{};if(f.__templatizeOwner)throw Error("Kd");f.__templatizeOwner=S;var G=(S?S.constructor:sl)._parseTemplate(f),g=G.templatizeInstanceClass;g||(g=zo1(f,G,B),G.templatizeInstanceClass=g);var b=eoN(f);T5N(f,G,B,b);B=function(){return g.apply(this,arguments)||this};
_.q(B,g);B.prototype._methodHost=b;B.prototype.__dataHost=f;B.prototype.__templatizeOwner=S;B.prototype.__hostProps=G.hostProps;return B};
hoj=function(f,S,B){B=B.constructor._properties;f=f.propertyEffects;S=S.instanceProps;for(var G in f)if(!(B[G]||S&&S[G]))for(var g=f[G],b=0;b<g.length;b++){var z=g[b].info.part;if(!z.signature||!z.signature.static){console.warn("Property '"+G+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
Jp1=function(f,S){for(var B;S;)if(B=S.__dataHost?S:S.__templatizeInstance)if(B.__dataHost!=f)S=B.__dataHost;else return B;else S=(0,_.JL)(S).parentNode;return null};
C_=function(f){return f.localName==="slot"};
P1K=function(){for(var f=p_.prototype,S="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),B={},G=0;G<S.length;B={method$jscomp$30:void 0},G++)B.method$jscomp$30=S[G],f[B.method$jscomp$30]=function(g){return function(){return this.node[g.method$jscomp$30].apply(this.node,arguments)}}(B)};
vVQ=function(f,S){for(var B={},G=0;G<S.length;B={name$jscomp$381:void 0},G++)B.name$jscomp$381=S[G],Object.defineProperty(f,B.name$jscomp$381,{get:function(g){return function(){return this.node[g.name$jscomp$381]}}(B),
configurable:!0})};
KvK=function(){for(var f=p_.prototype,S=["textContent","innerHTML","className"],B={},G=0;G<S.length;B={name$jscomp$382:void 0},G++)B.name$jscomp$382=S[G],Object.defineProperty(f,B.name$jscomp$382,{get:function(g){return function(){return this.node[g.name$jscomp$382]}}(B),
set:function(g){return function(b){this.node[g.name$jscomp$382]=b}}(B),
configurable:!0})};
dVx=function(){AL=document.documentElement.getAttribute("dir");AL=document.documentElement.getAttribute("dir");for(var f=0;f<NC.length;f++){var S=NC[f];S.__autoDirOptOut||S.setAttribute("dir",AL)}};
$V1=function(){MC=!0;requestAnimationFrame(function(){MC=!1;iyA(Hy1);setTimeout(function(){for(var f=0,S=Zc.length;f<S;f++)qCW(Zc.shift())})})};
iyA=function(f){for(;f.length;)qCW(f.shift())};
qCW=function(f){var S=f[0],B=f[1];f=f[2];try{B.apply(S,f)}catch(G){setTimeout(function(){throw G;})}};
_.QY1=function(f,S,B){MC||$V1();Hy1.push([f,S,B])};
_.ui=function(f,S,B){MC||$V1();Zc.push([f,S,B])};
jYN=function(f,S){S=S===void 0?!1:S;if(!YCV||!rpM||!YCV.handlesDynamicScoping)return null;var B=rpM.ScopingShim;if(!B)return null;var G=B.scopeForNode(f),g=(0,_.JL)(f).getRootNode(),b=function(z){if((0,_.JL)(z).getRootNode()===g){var X=Array.from(YCV.nativeMethods.querySelectorAll.call(z,"*"));X.push(z);for(z=0;z<X.length;z++){var w=X[z];if((0,_.JL)(w).getRootNode()===g){var F=B.currentScopeForNode(w);F!==G&&(F!==""&&B.unscopeNode(w,F),B.scopeNode(w,G))}}}};
b(f);return S?(S=new MutationObserver(function(z){for(var X=0;X<z.length;X++)for(var w=z[X],F=0;F<w.addedNodes.length;F++){var V=w.addedNodes[F];V.nodeType===Node.ELEMENT_NODE&&b(V)}}),S.observe(f,{childList:!0,
subtree:!0}),S):null};
Oy9=function(){document.body.removeAttribute("unresolved")};
nVW=function(f){var S=f=f.replace(xVs,"").replace(EVj,""),B=new Lv1;B.start=0;B.end=S.length;for(var G=B,g=0,b=S.length;g<b;g++)if(S[g]==="{"){G.rules||(G.rules=[]);var z=G,X=z.rules[z.rules.length-1]||null;G=new Lv1;G.start=g+1;G.parent=z;G.previous=X;z.rules.push(G)}else S[g]==="}"&&(G.end=g+1,G=G.parent||B);return kNN(B,f)};
kNN=function(f,S){var B=S.substring(f.start,f.end-1);f.parsedCssText=f.cssText=B.trim();f.parent&&(B=S.substring(f.previous?f.previous.end:f.parent.start,f.start-1),B=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(B),B=B.replace(sY1," "),B=B.substring(B.lastIndexOf(";")+1),B=f.parsedSelector=f.selector=B.trim(),f.atRule=B.indexOf("@")===0,f.atRule?B.indexOf("@media")===0?f.type=4:B.match(DVA)&&(f.type=7,f.keyframesName=f.selector.split(sY1).pop()):B.indexOf("--")===
0?f.type=1E3:f.type=1);if(B=f.rules)for(var G=0,g=B.length,b=void 0;G<g&&(b=B[G]);G++)kNN(b,S);return f};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(f){return f.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var S=arguments[1],B=6-S.length;B--;)S="0"+S;return"\\"+S})};
IpT=function(f,S,B){B=B===void 0?"":B;var G="";if(f.cssText||f.rules){var g=f.rules;if(g&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(g))for(var b=0,z=g.length,X=void 0;b<z&&(X=g[b]);b++)G=IpT(X,S,G);else S?S=f.cssText:(S=f.cssText,S=S.replace(UVT,"").replace(C19,""),S=S.replace(pe1,"").replace(ApN,"")),(G=S.trim())&&(G="  "+G+"\n")}G&&(f.selector&&(B+=f.selector+" {\n"),B+=G,f.selector&&(B+="}\n\n"));return B};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(f){f=f[0];return!!f&&!!f.selector&&f.selector.indexOf("--")===0};
M3K=function(f){if(f=N5T[f])f._applyShimCurrentVersion=f._applyShimCurrentVersion||0,f._applyShimValidatingVersion=f._applyShimValidatingVersion||0,f._applyShimNextVersion=(f._applyShimNextVersion||0)+1};
Zyx=function(f){return f._applyShimCurrentVersion===f._applyShimNextVersion};
u8j=function(f){f._applyShimValidatingVersion=f._applyShimNextVersion;f._validating||(f._validating=!0,t3T.then(function(){f._applyShimCurrentVersion=f._applyShimNextVersion;f._validating=!1}))};
ypj=function(f){if(!f)return"";typeof f==="string"&&(f=nVW(f));return IpT(f,apK)};
WvW=function(f){!f.__cssRules&&f.textContent&&(f.__cssRules=nVW(f.textContent));return f.__cssRules||null};
lpQ=function(f,S,B,G){if(f){var g=!1,b=f.type;if(G&&b===4){var z=f.selector.match(cpM);z&&(window.matchMedia(z[1]).matches||(g=!0))}b===1?S(f):B&&b===7?B(f):b===1E3&&(g=!0);if((f=f.rules)&&!g)for(g=0,b=f.length,z=void 0;g<b&&(z=f[g]);g++)lpQ(z,S,B,G)}};
fW1=function(f,S){var B=f.indexOf("var(");if(B===-1)return S(f,"","","");a:{var G=0;var g=B+3;for(var b=f.length;g<b;g++)if(f[g]==="(")G++;else if(f[g]===")"&&--G===0)break a;g=-1}G=f.substring(B+4,g);B=f.substring(0,B);f=fW1(f.substring(g+1),S);b=G.indexOf(",");if(b===-1)return S(B,G.trim(),"",f);g=G.substring(0,b).trim();G=G.substring(b+1).trim();return S(B,g,G,f)};
ojV=function(f){if(af!==void 0)return af;if(f.__cssBuild===void 0){var S=f.getAttribute("css-build");if(S)f.__cssBuild=S;else{a:{S=f.localName==="template"?f.content.firstChild:f.firstChild;if(S instanceof Comment&&(S=S.textContent.trim().split(":"),S[0]==="css-build")){S=S[1];break a}S=""}if(S!==""){var B=f.localName==="template"?f.content.firstChild:f.firstChild;B.parentNode.removeChild(B)}f.__cssBuild=S}}return f.__cssBuild||""};
BL9=function(f,S,B,G){for(var g=S._noAccessors,b=Object.getOwnPropertyNames(S),z=0;z<b.length;z++){var X=b[z];if(!(X in G))if(g)f[X]=S[X];else{var w=Object.getOwnPropertyDescriptor(S,X);w&&(w.configurable=!0,Object.defineProperty(f,X,w))}}for(var F in SyW)S[F]&&(B[F]=B[F]||[],B[F].push(S[F]))};
Gq1=function(f,S,B){S=S||[];for(var G=f.length-1;G>=0;G--){var g=f[G];g?Array.isArray(g)?Gq1(g,S):S.indexOf(g)<0&&(!B||B.indexOf(g)<0)&&S.unshift(g):console.warn("behavior is null, check for missing or 404 import")}return S};
gjN=function(f,S){for(var B in S){var G=f[B],g=S[B];f[B]=!("value"in g)&&G&&"value"in G?Object.assign({value:G.value},g):g}};
m_s=function(f,S,B){var G={},g=function(){return S.apply(this,arguments)||this};
_.q(g,S);g._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(z)for(var w=0,F;w<z.length;w++)F=z[w],F.properties&&this.createProperties(F.properties),F.observers&&this.createObservers(F.observers,F.properties);f.properties&&this.createProperties(f.properties);f.observers&&this.createObservers(f.observers,f.properties);this._prepareTemplate()}else S._finalizeClass.call(this)};
g.prototype.created=function(){S.prototype.created.call(this);var w=G.created;if(w)for(var F=0;F<w.length;F++)w[F].call(this)};
g.prototype._registered=function(){var w=g.prototype;if(!w.hasOwnProperty("__hasRegisterFinished")){w.__hasRegisterFinished=!0;S.prototype._registered.call(this);k2&&X(w);w=Object.getPrototypeOf(this);var F=G.beforeRegister;if(F)for(var V=0;V<F.length;V++)F[V].call(w);if(F=G.registered)for(V=0;V<F.length;V++)F[V].call(w)}};
g.prototype._applyListeners=function(){S.prototype._applyListeners.call(this);var w=G.listeners;if(w)for(var F=0;F<w.length;F++){var V=w[F];if(V)for(var J in V)this._addMethodEventListenerToNode(this,J,V[J])}};
g.prototype._ensureAttributes=function(){var w=G.hostAttributes;if(w)for(var F=w.length-1;F>=0;F--){var V=w[F],J;for(J in V)this._ensureAttribute(J,V[J])}S.prototype._ensureAttributes.call(this)};
g.prototype.ready=function(){S.prototype.ready.call(this);var w=G.ready;if(w)for(var F=0;F<w.length;F++)w[F].call(this)};
g.prototype.attached=function(){S.prototype.attached.call(this);var w=G.attached;if(w)for(var F=0;F<w.length;F++)w[F].call(this)};
g.prototype.detached=function(){S.prototype.detached.call(this);var w=G.detached;if(w)for(var F=0;F<w.length;F++)w[F].call(this)};
g.prototype.attributeChanged=function(w,F,V){S.prototype.attributeChanged.call(this);var J=G.attributeChanged;if(J)for(var P=0;P<J.length;P++)J[P].call(this,w,F,V)};
_.y3.Object.defineProperties(g,{properties:{configurable:!0,enumerable:!0,get:function(){var w={};if(z)for(var F=0;F<z.length;F++)gjN(w,z[F].properties);gjN(w,f.properties);return w}},
observers:{configurable:!0,enumerable:!0,get:function(){var w=[];if(z)for(var F=0,V;F<z.length;F++)V=z[F],V.observers&&(w=w.concat(V.observers));f.observers&&(w=w.concat(f.observers));return w}}});
if(B){Array.isArray(B)||(B=[B]);var b=S.prototype.behaviors;var z=Gq1(B,null,b);g.prototype.behaviors=b?b.concat(B):z}var X=function(w){if(z)for(var F=z,V=0;V<F.length;V++)BL9(w,F[V],G,eF1);BL9(w,f,G,bzM)};
k2||X(g.prototype);g.generatedFrom=f;return g};
wY9=function(f){var S=typeof f!=="string"?f:{is:f,notifyObserversOnUndefined:!0};S.fastInit===void 0&&(S.fastInit=!0);return function(B){if(!S.disableInheritanceCheck&&Object.getPrototypeOf(B.prototype).constructor!==_.WS)throw Error("Od");var G=B.prototype;G.is=S.is;Vq1(G,"created",function(){this.hostElement=this;this.polymerController=this});
zFs(G,B,S.fastInit);S.notifyObserversOnUndefined&&(G._overrideLegacyUndefined=!0);if(RF1)for(var g=_.m(Object.getOwnPropertyNames(G)),b=g.next();!b.done;b=g.next()){b=b.value;var z=Object.getOwnPropertyDescriptor(G,b);z.enumerable===!1&&(z.enumerable=!0,Object.defineProperty(G,b,z))}if("template"in B)var X=function(){return B.template};
else S.template!==void 0&&(X=S.template);if(X!==void 0){var w;Object.defineProperty(G,"_template",{get:function(){w===void 0&&(w=X());return w},
set:function(F){w=F},
configurable:!0,enumerable:!0})}Polymer(G);B[XYG]=G}};
hFN=function(f){f=f===void 0?{}:f;f.fastInit===void 0&&(f.fastInit=!0);return function(S){if(!f.disableInheritanceCheck&&Object.getPrototypeOf(S.prototype).constructor!==cS)throw Error("Pd");zFs(S.prototype,S,f.fastInit)}};
zFs=function(f,S,B){B=B===void 0?!1:B;TLV(S);B?Vq1(f,"created",function(){this.disableEnforceFastDefaultValuesCheck||FZN(S,this)}):Vq1(f,"ready",function(){for(var G={},g=_.m(J3s(this.behaviors)),b=g.next();!b.done;b=g.next())b=b.value,b.properties&&Object.assign(G,VOW(this,b.properties));
Object.assign(G,VOW(this,this.properties));FZN(S,this);g=_.m(Object.keys(G));for(b=g.next();!b.done;b=g.next())b=b.value,this[b]=G[b]})};
FZN=function(f,S){if(RF1){f=new f;for(var B=_.m(Object.getOwnPropertyNames(f)),G=B.next();!G.done;G=B.next())G=G.value,S[G]=f[G];for(B=S;B&&B!==Object.prototype;B=Object.getPrototypeOf(B)){G=_.m(Object.getOwnPropertyNames(B));for(var g=G.next();!g.done;g=G.next())g=g.value,f.hasOwnProperty(g)||Object.defineProperty(f,g,J9j(S,g))}}else f.apply(S)};
J9j=function(f,S){return{get:function(){var B=f[S];return B instanceof Function?B.bind(f):B},
set:function(B){f[S]=B}}};
VOW=function(f,S){if(!S)return{};for(var B={},G=_.m(Object.keys(S)),g=G.next();!g.done;g=G.next())if(g=g.value,!S[g].readOnly){var b=f[g];b!==void 0&&(B[g]=b)}return B};
TLV=function(f){var S=new f;f=f.prototype.properties||{};for(var B=_.m(Object.keys(f)),G=B.next();!G.done;G=B.next())if(G=G.value,S.hasOwnProperty(G)){var g=f[G];typeof g==="function"&&(f[G]=g={type:g});S[G]!=null&&g.type===Object&&(g.type=PGK(S[G].constructor))}};
PGK=function(f){for(var S=_.m(vjV),B=S.next();!B.done;B=S.next())if(B=B.value,f===B)return B;return Object};
KZV=function(f){return function(S,B){S.behaviors=S.behaviors||[];S.behaviors.push(f||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",S,B).prototype:void 0));Object.defineProperty(S,B,{get:function(){return this},
enumerable:!0,configurable:!0})}};
d_1=function(f){f=f===void 0?{}:f;return function(S,B){S.properties=S.properties||{};f.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?f.type=PGK(Reflect.getMetadata("design:type",S,B)):f.type=String);var G=f,g=S.properties[B];S.properties[B]=g?Object.assign({},g,G):G}};
izx=function(f){return function(S,B){S.listeners=S.listeners||{};S.listeners[f]=B}};
Hzs=function(){var f=_.qb.apply(0,arguments);if(f.length===0)throw Error("Qd");return function(S,B){S.observers=S.observers||[];S.observers.push(B+"("+f.join(",")+")")}};
qyN=function(){var f=_.qb.apply(0,arguments);return function(S,B,G){var g=Object.getOwnPropertyDescriptor(S,B).get,b="__compute__"+B;Object.defineProperty(S,b,{value:g,enumerable:!0});S.properties=S.properties||{};g=S.properties[B];g||(g={},S.properties[B]=g);g.computed=b+"("+f.join(",")+")";G.get=void 0}};
_.li=function(f,S,B){_.qR.call(this);this.JSC$9273_id_=null;this.usingListeners_=!1;this.JSC$9273_listener_=f;this.handler_=B;this.JSC$9273_win_=S||window;this.callback_=(0,_.$A)(this.JSC$9275_doAction_,this)};
fk=function(f){this.range_=f};
o4=function(f){this.range_=f};
Gl=function(f,S,B){_.qR.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=f;this.scrollTimer_=new _.Se(50);this.JSC$9352_eventHandler_=new _.BZ(this);this.scrollDelta_=new _.ru;this.containerIsActuallyContent_=f.tagName==="BODY"||f.tagName==="HTML";this.containerBounds_=$_1(f);this.containerIsActuallyContent_&&(f=_.TW(),this.containerBounds_.height=f.height,this.containerBounds_.width=f.width);this.margin_=S||0;if(S){if(S=this.containerBounds_.clone(),f=this.margin_){var G=
Math.min(f,S.height*.25);S.top+=G;S.height-=2*G;f=Math.min(f,S.width*.25);S.left+=f;S.width-=2*f}}else S=this.containerBounds_;this.scrollBounds_=S;B||this.JSC$9352_eventHandler_.listen(_.OI(this.containerNode_),"mousemove",this.JSC$9354_onMouseMove);this.JSC$9352_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$9354_onTick_)};
_.gi=function(f){this.mechanism=f};
ee=function(f,S){this.JSC$9450_key_=f;this.JSC$9450_value_=S};
YyA=function(f){if(f>=55296&&f<=57343||f>1114111)return"\ufffd";f in QQs&&(f=QQs[f]);var S="";f>65535&&(f-=65536,S+=String.fromCharCode(f>>>10&1023|55296),f=56320|f&1023);return S+=String.fromCharCode(f)};
r9x=function(f,S){return f<S?1:-1};
Ozs=function(){return function(f){return f.charAt(1)==="#"?f.charAt(2)==="X"||f.charAt(2)==="x"?YyA(parseInt(f.substr(3),16)):YyA(parseInt(f.substr(2),10)):jQj[f.slice(1,-1)]}};
LZj=function(f){return f.slice(1,f.length-1).trim().replace(x_T,function(S){return Ej9[S]||" "})};
bT=function(f){return f===32||f===9};
mj=function(f,S){return S<f.length?f.charCodeAt(S):-1};
kq1=function(f){for(;f;){if(f._lastLineBlank)return!0;var S=f.type;if(S==="list"||S==="item")f=f._lastChild;else break}return!1};
zl=function(f){if(njN.test(f)){var S=1,B=0,G=0;for(f[B]=="|"&&B++;B<f.length;){switch(f[B]){case "|":G=1;break;case " ":break;case "\t":break;default:G&&(G=0,S++)}B++}return sQ1.test(f)?-S:S}return 0};
D_V=function(f){return f=="table"||f=="row"||f=="cell"};
IWN=function(){return new R4("document",[[1,1],[0,0]])};
U_K=function(){};
Xv=function(){var f={safe:!1};f=f||{};f.softbreak=f.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=f};
MOA=function(f,S){var B="";if(f)if(f=f.toLowerCase(),f===" "||CGj.test(f))B="space";else if(pY9.test(f))B="esc";else if(f.length==1){if(!S||A9x.test(f))B=f}else B=NLM.test(f)?f.replace("arrow",""):f=="multiply"?"*":f;return B};
aWW=function(f,S){var B=f.hasModifiers;if(S.key)B=MOA(S.key,B);else if(S.detail&&S.detail.key)B=MOA(S.detail.key,B);else{B=S.keyIdentifier;var G="";B&&(B in ZzA?G=ZzA[B]:tO9.test(B)?(B=parseInt(B.replace("U+","0x"),16),G=String.fromCharCode(B).toLowerCase()):G=B.toLowerCase());(B=G)||(B=S.keyCode,G="",Number(B)&&(B>=65&&B<=90?G=String.fromCharCode(32+B):B>=112&&B<=123?G="f"+(B-112+1):B>=48&&B<=57?G=String(B-48):B>=96&&B<=105?G=String(B-96):G=ug1[B]),B=G);B=B||""}return B===f.key&&(!f.hasModifiers||
!!S.shiftKey===!!f.shiftKey&&!!S.ctrlKey===!!f.ctrlKey&&!!S.altKey===!!f.altKey&&!!S.metaKey===!!f.metaKey)};
WZ1=function(f){return f.length===1?{combo:f,key:f,event:"keydown"}:f.split("+").reduce(function(S,B){var G=B.split(":");B=G[0];G=G[1];B in y9M?(S[y9M[B]]=!0,S.hasModifiers=!0):(S.key=B,S.event=G||"keydown");return S},{combo:f.split(":").shift()})};
c91=function(f){return f.trim().split(" ").map(function(S){return WZ1(S)})};
lWM=function(f,S){if(f&&f.fn){var B=f.fn;f.fn=function(){try{B.apply(this,arguments)}catch(G){if(G instanceof wi)console.warn("Argument '"+G.arg+"'"+(S?" for method '"+S+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw G;}}}return f};
fIM=function(){var f=_.qb.apply(0,arguments);return f.length===0?function(S){return S}:f.length===1?f[0]:f.reduce(function(S,B){return function(){return S(B.apply(null,_.$d(_.qb.apply(0,arguments))))}})};
oWQ=function(){var f=_.qb.apply(0,arguments);return function(S){return function(B,G){B=S(B,G);var g=function(){throw Error("Ae");},b={getState:B.getState,
dispatch:function(z){return g.apply(null,[z].concat(_.$d(_.qb.apply(1,arguments))))}};
G=f.map(function(z){return z(b)});
g=fIM.apply(null,_.$d(G))(B.dispatch);return Object.assign({},B,{dispatch:g})}}};
Gd9=function(f){Object.keys(f).forEach(function(S){var B=f[S];if(typeof B(void 0,{type:SHA})==="undefined")throw Error("Be`"+S);if(typeof B(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+BpM()})==="undefined")throw Error("Ce`"+S+"`"+SHA);})};
h2=function(f){for(var S=Object.keys(f),B={},G=0;G<S.length;G++){var g=S[G];typeof f[g]==="function"&&(B[g]=f[g])}var b=Object.keys(B);try{Gd9(B)}catch(X){var z=X}return function(X,w){X=X===void 0?{}:X;if(z)throw z;for(var F=!1,V={},J=0;J<b.length;J++){var P=b[J],d=X[P],Q=(0,B[P])(d,w);if(typeof Q==="undefined")throw X=w&&w.type,Error("De`"+(X?'"'+String(X)+'"':"(unknown type)")+"`"+P);V[P]=Q;F=F||Q!==d}return(F=F||b.length!==Object.keys(X).length)?V:X}};
gWM=function(f,S,B){function G(){if(V)throw Error("Ee");return X}
function g(d){if(typeof d!=="function")throw Error("Fe`"+typeof d);if(V)throw Error("Ge");var Q=!0;F===w&&(F=w.slice());F.push(d);return function(){if(Q){if(V)throw Error("He");Q=!1;F===w&&(F=w.slice());var x=F.indexOf(d);F.splice(x,1);w=null}}}
function b(d){if(typeof d!=="object"||d===null)var Q=!1;else{for(Q=d;Object.getPrototypeOf(Q)!==null;)Q=Object.getPrototypeOf(Q);Q=Object.getPrototypeOf(d)===Q}if(!Q)throw Error("Ie`"+typeof d);if(typeof d.type==="undefined")throw Error("Je");if(V)throw Error("Ke");try{V=!0,X=z(X,d)}finally{V=!1}Q=w=F;for(var x=0;x<Q.length;x++)(0,Q[x])();return d}
if(typeof S==="function"&&typeof B==="function"||typeof B==="function"&&typeof arguments[3]==="function")throw Error("Le");typeof S==="function"&&typeof B==="undefined"&&(B=S,S=void 0);if(typeof B!=="undefined"){if(typeof B!=="function")throw Error("Me`"+typeof B);return B(gWM)(f,S)}if(typeof f!=="function")throw Error("Ne`"+typeof f);var z=f,X=S,w=[],F=w,V=!1;b({type:SHA});var J={},P=(J.dispatch=b,J.subscribe=g,J.getState=G,J.replaceReducer=function(d){if(typeof d!=="function")throw Error("Oe`"+
typeof d);z=d;b({type:ehA});return P},J[b4M]=function(){var d={};
return d.subscribe=function(Q){function x(){Q.next&&Q.next(G())}
if(typeof Q!=="object"||Q===null)throw new TypeError("Pe`"+typeof Q);x();return{unsubscribe:g(x)}},d[b4M]=function(){return this},d},J);
return P};
ma1=function(f){function S(){g&&(g=!1,f());b&&G()}
function B(){requestAnimationFrame(S)}
function G(){var X=Date.now();if(g){if(X-z<2)return;b=!0}else g=!0,b=!1,setTimeout(B,20);z=X}
var g=!1,b=!1,z=0;return G};
Tl=function(f){return typeof f==="number"?f:parseFloat(f)||0};
zhs=function(f){return _.qb.apply(1,arguments).reduce(function(S,B){return S+Tl(f["border-"+B+"-width"])},0)};
_.Y=function(f,S){S=OQ(jZ(S));f.innerHTML=S};
w_1=function(f){var S=Rh1;S||(S=X_x(),S=Rh1=_.$v.transpose(S));S=S[f];return typeof S==="string"?S:_.Fv(f)};
hhj=function(f){f=String(f).toLowerCase();var S=X_x()[f];return typeof S==="string"?S:_.Vw(f)};
Tpj=function(f){f=f.toLowerCase();f=X_x()[f];return typeof f==="string"?f:null};
X_x=function(){if(!FGK){for(var f=Object.assign({},VTT),S=_.m(J$1),B=S.next();!B.done;B=S.next())B=B.value,f[B.toLowerCase()]=B;FGK=f}return FGK};
KGM=function(f,S){var B=window.customElements;return B&&B.get(f)||PhN[f]===!0?2:S.name==="HTMLUnknownElement"?1:S.name==="HTMLElement"&&vWN.test(f)?3:0};
H4M=function(f,S){switch(S){case "innerHTML":return daM(f)===1?2:null;case "textContent":return f=daM(f),f===1||f===6?1:null;default:var B,G;return(G=(B=i41[f.localName])==null?void 0:B[S])!=null?G:null}};
daM=function(f){var S=f.localName,B=KGM(S,f.constructor);switch(B){case 0:case 1:return qHN(S,f);case 3:case 2:return 1;default:_.mu(B,"got an unknown element classification")}};
qHN=function(f,S){var B=Object.hasOwnProperty.call($aW,f)?$aW[f]:null;return B!==null?B:Object.hasOwnProperty.call(Qm1,f)&&S instanceof SVGElement?Qm1[f]:null};
YHA=function(f,S){return S};
jmG=function(f){return(f=f.split(r$K,2))?{url:f[0],metadata:f[1]}:null};
xas=function(f){var S=String(f.url).replace(O4T,encodeURIComponent);if(f=f.metadata){O4T.lastIndex=0;if(O4T.test(f))return null;S+=" "+f}return S};
nWQ=function(f){function S(F){var V=F.localName;if(!F.getAttribute("is")&&KGM(V,F.constructor)===2){var J;return(J=w)!=null?J:w=document.createElement("polyresinuncustomized")}(F=X[V])||(F=X[V]=document.createElement(V));return F}
var B=f.reportHandler||void 0,G=f.safeTypesBridge||EW9,g=/^$/;if(f=f.allowedIdentifierPrefixes){f=_.m(f);for(var b=f.next();!b.done;b=f.next())g=new RegExp(g.source+"|^"+_.LGN(b.value))}B&&B(!1,"initResin",null);var z=kd1(g,G,B),X={},w=null;return function(F,V,J){var P=F.nodeType;if(P!==Node.ELEMENT_NODE){if(P===Node.TEXT_NODE){V=F.parentElement;J=!V;if(V&&V.nodeType===Node.ELEMENT_NODE){P=V.localName;var d=KGM(P,V.constructor);switch(d){case 0:case 1:V=qHN(P,V);J=V===1||V===6;break;case 3:case 2:J=
!0;break;default:_.mu(d,"got an unknown element classification")}}if(J)return function(U){return""+G(U,"STRING",U)}}return function(U){if(!U&&U!==document.all)return U;
B&&B(!0,"Failed to sanitize "+(F.parentElement&&F.parentElement.nodeName)+" #text node to value "+U,F.parentElement);return J2}}var Q=F.localName;
P=S(F);var x=null;switch(J){case "attribute":if(hhj(V)in P)break;return function(U){return U};
case "property":if(V in P){x=H4M(P,V);break}if((d=Tpj(V))&&d in P)break;return function(U){return U};
default:_.mu(J,"got an unknown resin type, expected either 'property' or 'attribute'")}var E=J==="attribute"?V.toLowerCase():w_1(V);x||(x=GVA(Q,E,function(U){var A=F.getAttribute(U);return!A||/[\[\{]/.test(U)?null:A}));
return function(U){var A=PZ,t=null;if(!U&&U!==document.all)return U;if(x!=null){var M=z[x],a=M.safeType;t=M.safeReplacement;a&&(A=G(U,a,PZ));A===PZ&&(M.filterString?(A=String(G(U,"STRING",U)),A=M.filterString(Q,E,A)):M.filterRaw&&(A=M.filterRaw(Q,E,U,F)),A===t&&(A=PZ))}A===PZ&&(A=t||J2,B&&B(!0,"Failed to sanitize attribute of <"+Q+">: <"+Q+" "+E+'="'+U+'">',F));return A}}};
kd1=function(f,S,B){return[,{filterRaw:function(G,g,b){return b},
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:smK,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:smK,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:J2,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:DaW,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(G,g,b){b=
String(b).toLowerCase();return bOT(G,g,b)?b:J2},
safeReplacement:J2,safeType:void 0},,{filterRaw:void 0,filterString:function(G,g,b){return f.test(b)?b:J2},
safeReplacement:J2,safeType:"CONSTANT"},{filterRaw:function(G,g,b,z){if(typeof b==="string")var X=(X=b.match(IIj))?X.map(jmG).filter(Boolean):[];else if(Array.isArray(b))X=b;else return smK;var w=X;X=[];var F=[],V={};if(Array.isArray(w))for(var J=0,P=w.length;J<P;++J){var d=w[J],Q=d&&d.url;if(Q){var x=S(Q,"URL",V);if(x){var E=x!==V;(E?X:F).push({url:E?x:Q,metadata:d.metadata})}}}else F.push(w);w=F.length?JSON.stringify(F):null;F=PZ;if(X.length){if(!Array.isArray(X))throw Error();F=X.map(xas).filter(Boolean).join(" , ")||
PZ}w&&B&&B(!0,"Failed to sanitize attribute value of <"+G+">: <"+G+" "+g+'="'+b+'">: '+w,z);return F===PZ?smK:F},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
UaG=function(f){var S=nWQ(f);return function(B,G,g,b){return b||b===document.all?S(B,G,g)(b):b}};
vZ=function(f,S){function B(){function g(X,w,F){for(w=Reflect.getMetadata("parameters",X)||[];w.length<=F;)w.push(null);w[F]=w[F]||[];w[F].push(z);Reflect.defineMetadata(w,X);return X}
var b=_.qb.apply(0,arguments);if(this instanceof B)return G.apply(this,b),this;var z=new (Function.prototype.bind.apply(B,[null].concat(_.$d(b))));g.annotation=z;return g}
var G=ChN(S);B.prototype.toString=function(){return"@"+f};
return B.annotationCls=B};
ChN=function(f){return function(){var S=_.qb.apply(0,arguments),B=this;f.forEach(function(G,g){g=S[g];if(Array.isArray(G))B[G[0]]=g&&g!==void 0?g:G[1];else for(var b in G)B[b]=g&&g[b]!==void 0?g[b]:G[b]})}};
p_W=function(f){return f!==void 0&&f!==null};
Kk=function(f){if(typeof f==="string")return f;if(f===void 0||f===null)return""+f;if(f.overriddenName)return f.overriddenName;if(f.name)return f.name;f=f.toString();var S=f.indexOf("\n");return S===-1?f:f.substring(0,S)};
A$A=function(f){f.__forward_ref__=A$A;f.toString=function(){return Kk(this())};
return f};
di=function(f){return typeof f==="function"&&f.hasOwnProperty("__forward_ref__")&&f.__forward_ref__===A$A?f():f};
NpN=function(f){return f?f.map(function(S){return new (Function.prototype.bind.apply(S.type.annotationCls,[null].concat(_.$d(S.args?S.args:[]))))}):[]};
MTK=function(f){for(var S=[],B=0;B<f.length;++B){if(S.indexOf(f[B])>-1){S.push(f[B]);break}S.push(f[B])}return S};
Z4K=function(f){return f.length>1?" ("+MTK(f.slice().reverse()).map(function(S){return Kk(S.token)}).join(" -> ")+")":""};
uxT=function(f,S,B,G){if(G){var g=Error("We``"+(G instanceof Error?G.message:G));g.ngOriginalError=G}else g=Error();g.addKey=tTV;g.keys=[S];g.injectors=[f];g.constructResolvingMessage=B;g.message=g.constructResolvingMessage();g.ngOriginalError=G;return g};
tTV=function(f,S){this.injectors.push(f);this.keys.push(S);this.message=this.constructResolvingMessage()};
aI9=function(f,S){return uxT(f,S,function(){return"No provider for "+Kk(this.keys[0].token)+"!"+Z4K(this.keys)})};
y$N=function(f,S){return uxT(f,S,function(){return"Cannot instantiate cyclic dependency!"+Z4K(this.keys)})};
WGs=function(f,S,B){return uxT(f,B,function(){var G=Kk(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+G+"!"+Z4K(this.keys)+"."},S)};
c$M=function(f,S){for(var B=[],G=0,g=S.length;G<g;G++){var b=S[G];b&&b.length!=0?B.push(b.map(Kk).join(" ")):B.push("?")}return Error("$e`"+Kk(f)+"`"+B.join(", ")+"`"+Kk(f))};
gUW=function(f){var S=void 0,B=void 0;if(f&&f.useClass!==void 0){S=f.useClass;var G=di(f.useClass);var g=lIj.factory(G);G=f$W(G)}else f&&f.useExisting!==void 0?(g=function(b){return b},G=[oUN(iT.get(di(f.useExisting)))]):f&&f.useFactory!==void 0?(g=f.useFactory,G=SJ9(f.useFactory,f.deps)):(B=f.useValue,g=function(){return f.useValue},G=B8A);
return new G4x(g,G,S,B)};
bb9=function(f){return new e2K(iT.get(di(f.provide)),[gUW(f)],f.multi)};
z21=function(f){f=mFW(f,[]).map(bb9);for(var S=new Map,B=0;B<f.length;B++){var G=f[B],g=S.get(G.key.id);if(g){if(G.multiProvider!==g.multiProvider)throw Error("bf`"+g+"`"+G);if(G.multiProvider)for(var b=0;b<G.resolvedFactories.length;b++)g.resolvedFactories.push(G.resolvedFactories[b]);else S.set(G.key.id,G)}else g=void 0,G.multiProvider?g=new e2K(G.key,G.resolvedFactories.slice(),G.multiProvider):g=G,S.set(G.key.id,g)}return Array.from(S.values())};
mFW=function(f,S){f.forEach(function(B){if(B instanceof R2V)S.push({provide:B,useClass:B});else if(B&&typeof B=="object"&&B.provide!==void 0)S.push(B);else if(B instanceof Array)mFW(B,S);else throw Error("Ze`"+B);});
return S};
SJ9=function(f,S){if(S){var B=S.map(function(G){return[G]});
return S.map(function(G){return XqQ(f,G,B)})}return f$W(f)};
f$W=function(f){var S=lIj.parameters(f);if(!S)return[];if(S.some(function(B){return B==null}))throw c$M(f,S);
return S.map(function(B){return XqQ(f,B,S)})};
XqQ=function(f,S,B){var G=null,g=!1;if(!Array.isArray(S))return S instanceof wqK?h2x(S.token,g,null):h2x(S,g,null);for(var b=null,z=0;z<S.length;++z){var X=S[z];if(X instanceof R2V)G=X;else if(X instanceof wqK)G=X.token;else if(X instanceof T8G)g=!0;else if(X instanceof FRA||X instanceof VsT)b=X}G=di(G);if(G!=null)return h2x(G,g,b);throw c$M(f,B);};
h2x=function(f,S,B){return new JeN(iT.get(di(f)),S,B)};
P41=function(f,S){for(var B=Array(f.providers.length),G=0;G<f.providers.length;++G){var g=G;if(G<0||G>=f.providers.length)throw Error("af`"+G);B[g]=S(f.providers[G])}return B};
vUN=function(f){return typeof f==="function"&&lIj.parameters(f).every(function(S){return!!S})};
ib1=function(f){var S=KRT;dFN.get(f)||dFN.set(f,new S);return dFN.get(f)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(f){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(f)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(f){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(f)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(f,S){var B,G;if(f.contains(S))return!0;f=_.HZ(f).querySelectorAll("content,slot");for(B=0;B<f.length;++B){var g=_.HZ(f[B]).getDistributedNodes();for(G=0;G<g.length;++G)if(g[G].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(g[G],S))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(f){f.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(f)&&f.preventDefault();f.targetTouches&&(f=f.targetTouches[0],Hbx=f.pageX,qJQ=f.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 f=0,S=q5.length;f<S;f++)document.addEventListener(q5[f],_._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 f=0,S=q5.length;f<S;f++)document.removeEventListener(q5[f],_._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(f){var S=_.HZ(f).rootTarget;f.type!=="touchmove"&&$FQ!==S&&($FQ=S,QFV=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.HZ(f).path));if(!QFV.length)return!0;if(f.type==="touchstart")return!1;f=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(f);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(QFV,f.deltaX,f.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(f){for(var S=[],B=f.indexOf(YJj),G=0;G<=B;G++)if(f[G].nodeType===Node.ELEMENT_NODE){var g=f[G],b=g.style;b.overflow!=="scroll"&&b.overflow!=="auto"&&(b=window.getComputedStyle(g));b.overflow!=="scroll"&&b.overflow!=="auto"||S.push(g)}return S};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(f,S,B){if(S||B)for(var G=Math.abs(B)>=Math.abs(S),g=0;g<f.length;g++){var b=f[g];if(G?B<0?b.scrollTop>0:b.scrollTop<b.scrollHeight-b.clientHeight:S<0?b.scrollLeft>0:b.scrollLeft<b.scrollWidth-b.clientWidth)return b}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(f){var S={deltaX:f.deltaX,deltaY:f.deltaY};"deltaX"in f||("wheelDeltaX"in f&&"wheelDeltaY"in f?(S.deltaX=-f.wheelDeltaX,S.deltaY=-f.wheelDeltaY):"wheelDelta"in f?(S.deltaX=0,S.deltaY=-f.wheelDelta):"axis"in f?(S.deltaX=f.axis===1?f.detail:0,S.deltaY=f.axis===2?f.detail:0):f.targetTouches&&(f=f.targetTouches[0],S.deltaX=Hbx-f.pageX,S.deltaY=qJQ-f.pageY));return S};
rex=function(f){this.element=f;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
ObN=function(f){this.element=f;this.color=window.getComputedStyle(f).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");_.HZ(this.waveContainer).appendChild(this.wave);jF1(this)};
$c=function(f,S){for(var B in f)if(B.toLowerCase()===S.toLowerCase())return f[B]};
xFK=function(f,S){for(var B in f)if(B.toLowerCase()===S.toLowerCase()){delete f[B];break}};
LRQ=function(f){f=_.$v.clone(f);for(var S=0;S<EUx.length;++S){var B=EUx[S],G=$c(f,B);G&&(f["X-Goog-Upload-Header-"+B]=G,xFK(f,B))}return f};
k4Q=function(f){f=_.$v.clone(f);xFK(f,"X-Goog-Upload-Status")};
sF1=function(f){return nUV.some(function(S){return S.test(f)})};
C4V=function(f,S){var B;var G=(B=f.formContent)==null?void 0:B.locale;B=G==null?void 0:G.split("-")[0];G=G&&DFK.includes(G)?G:B&&DFK.includes(B)?B:void 0;G=(G!=null?G:"en").replaceAll("-","_").toLowerCase();var g;f=((g=f.initializationData)==null?0:g.useNightlyRelease)?"nightly":"live";var b;return(S==null?0:(b=S.getEnableAlohaBinarySplit)==null?0:b.call(S))?_.Sr(I$V,f):_.Sr(UFG,f,G)};
N89=function(f,S,B,G){if(pqM&&AeM===S)return pqM;AeM=S;var g=C4V(f,G);return pqM=S.feedbackV2GlobalObject?Promise.resolve(S.feedbackV2GlobalObject):new Promise(function(b,z){var X=_.Ja("SCRIPT");_.CC(X,g);X.onload=function(){S.feedbackV2GlobalObject?b(S.feedbackV2GlobalObject):z(Error("ef"))};
X.onerror=function(){z(Error("ff`"+g.toString()))};
B.body.appendChild(X)})};
ts1=function(f,S,B,G){if(MsT&&ZbG===S)return MsT;ZbG=S;var g=C4V(f,G);return MsT=S.feedbackV2GlobalObject?Promise.resolve(S.feedbackV2GlobalObject):new Promise(function(b,z){var X=_.Ja("SCRIPT");_.CC(X,g);X.onload=function(){S.feedbackV2GlobalObject?b(S.feedbackV2GlobalObject):z(Error("ef"))};
X.onerror=function(){z(Error("ff`"+g.toString()))};
B.body.appendChild(X)})};
ua1=function(f,S,B,G,g){g=g===void 0?!0:g;var b,z,X,w,F;return _.R(function(V){switch(V.nextAddress){case 1:return b=Date.now(),_.h(V,N89(f,B,G,S),2);case 2:z=V.yieldResult;if(!(g||((w=f.initializationData)==null?0:w.useNightlyRelease)||((F=f.initializationData)==null?0:F.isLocalServer))){X=z.initializeFeedbackClient(f,b,S);V.jumpTo(3);break}return _.h(V,z.initializeFeedbackClientAsync(f,b,S),4);case 4:X=V.yieldResult;case 3:return X.initiateAloha(),V.return(X)}})};
a$A=function(f,S,B,G){var g,b,z;return _.R(function(X){if(X.nextAddress==1)return g=Date.now(),_.h(X,ts1(f,B,G.document,S),2);if(X.nextAddress!=3)return b=X.yieldResult,_.h(X,b.initializeFeedbackClientAsync(f,g,S,G),3);z=X.yieldResult;z.initiateAloha();return X.return(z)})};
yes=function(f,S,B){var G=!0;G=G===void 0?!0:G;var g,b,z,X,w,F,V,J,P,d;return _.R(function(Q){g=B||_.S1;if((b=S)==null?0:(X=(z=b).getEnableAlohaBinarySplit)==null?0:X.call(z)){w=g;if(w.isFormOpened)throw F=Error("gf"),F.name="DuplicateFormError",F;w.isFormOpened=!0;f.callbacks=f.callbacks||{};V=f.callbacks.onClose||function(){};
f.callbacks.onClose=function(x){w.isFormOpened=!1;V(x)};
try{return Q.return(a$A(f,S,w,g))}catch(x){throw w.isFormOpened=!1,x;}}else{J=g;if(J.isFormOpened)throw P=Error("gf"),P.name="DuplicateFormError",P;J.isFormOpened=!0;f.callbacks=f.callbacks||{};d=f.callbacks.onClose||function(){};
f.callbacks.onClose=function(x){J.isFormOpened=!1;d(x)};
try{return Q.return(ua1(f,S,J,g.document,G))}catch(x){throw J.isFormOpened=!1,x;}}_.TT(Q)})};
ooK=function(f,S){return _.R(function(B){return B.return(new Promise(function(G){var g=WRK(S!=null?S:"")+"/aloha_form_properties?productId="+f;cej(g,function(b){b=b.target;var z=null;try{var X=JSON,w=X.stringify;if(b.JSC$7841_xhr_){var F=b.JSC$7841_xhr_.responseText;F.indexOf(")]}'\n")==0&&(F=F.substring(5));var V=(0,_.Qw)(F)}else V=void 0;z=S7N(l$1,w.call(X,V))}catch(J){w=new l$1,V=f2N(),V=_.Yc(V,13,!1),V=_.Yc(V,14,!0),V=_.Yc(V,15,!0),V=_.Yc(V,20,!1),z=_.SZ(w,1,V)}G(z)},"GET","",{},2E3,!0)}))})};
WRK=function(f){return sF1(f)?f:"https://www.google.com/tools/feedback"};
goG=function(f){f=f.match(new RegExp(STW,"gi"))||[];f=_.m(f);for(var S=f.next();!S.done;S=f.next()){S=S.value;a:{var B=_.m(BXM);for(var G=B.next();!G.done;G=B.next())if(G.value.test(S)){B=!1;break a}B=!0}if(!B)a:{B=_.m(GhA);for(G=B.next();!G.done;G=B.next())if(G.value.test(S)){B=!0;break a}B=!1}if(B)return!0}return!1};
erN=function(f){switch(f){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"}};
mMs=function(f){if(window.crypto&&window.crypto.getRandomValues)try{var S=Array(f),B=new Uint8Array(f);window.crypto.getRandomValues(B);for(var G=0;G<S.length;G++)S[G]=B[G];return S}catch(b){}S=Array(f);for(B=0;B<f;B++){G=Date.now();for(var g=0;g<G%23;g++)S[B]=Math.random();S[B]=Math.floor(Math.random()*256)}if(b8j)for(B=1,G=0;G<b8j.length;G++)S[B%f]^=S[(B-1)%f]/4^b8j.charCodeAt(G),B++;return S};
ri=function(f){f=mMs(f);for(var S=[],B=0;B<f.length;B++)S.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(f[B]&63));return S.join("")};
Rrs=function(f){f&&_.jD("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:zrG,clientScreenNonce:f})};
XEj=function(f){return _.nL("client-screen-nonce-store",{})[f===void 0?0:f]};
wE1=function(f,S){S=S===void 0?0:S;var B=_.nL("client-screen-nonce-store");B||(B={},_.k5("client-screen-nonce-store",B));B[S]=f};
hrQ=function(f){f=f===void 0?0:f;return f===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+f};
TX1=function(f){return _.nL(hrQ(f===void 0?0:f))};
_.Of=function(f){return(f=TX1(f===void 0?0:f))?new _.je({veType:f,youtubeData:void 0,jspbYoutubeData:void 0}):null};
F5s=function(){var f=_.nL("csn-to-ctt-auth-info");f||(f={},_.k5("csn-to-ctt-auth-info",f));return f};
VAx=function(){return Object.values(_.nL("client-screen-nonce-store",{})).filter(function(f){return f!==void 0})};
_.xc=function(f){f=XEj(f===void 0?0:f);if(!f&&!_.s6("USE_CSN_FALLBACK",!0))return null;f||(f="UNDEFINED_CSN");return f?f:null};
PXV=function(f){for(var S=_.m(Object.values(Jq9)),B=S.next();!B.done;B=S.next())if(_.xc(B.value)===f)return!0;return!1};
voN=function(f,S,B){var G=F5s();(B=_.xc(B))&&delete G[B];S&&(G[f]=S)};
Ef=function(f){return F5s()[f]};
_.Lk=function(f,S,B,G){B=B===void 0?0:B;if(f!==XEj(B)||S!==_.nL(hrQ(B)))if(voN(f,G,B),wE1(f,B),_.k5(hrQ(B),S),S=function(){setTimeout(function(){Rrs(f)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(S)}catch(g){S()}else S()};
K51=function(f,S){S=S===void 0?"":S;var B=[],G;for(G in f)if(f.hasOwnProperty(G)){var g=S!==""?S+"."+G:G;typeof f[G]==="object"?B.push.apply(B,_.$d(K51(f[G],g))):B.push([g,f[G]])}B.sort();return B};
_.nk=function(f){var S=_.qb.apply(1,arguments);if(!kc(f)||S.some(function(G){return!kc(G)}))throw Error("hf");
S=_.m(S);for(var B=S.next();!B.done;B=S.next())dMM(f,B.value)};
dMM=function(f,S){for(var B in S)if(kc(S[B])){if(B in f&&!kc(f[B]))throw Error("jf");B in f||(f[B]={});dMM(f[B],S[B])}else if(i81(S[B])){if(B in f&&!i81(f[B]))throw Error("kf");B in f||(f[B]=[]);H8W(f[B],S[B])}else f[B]=S[B];return f};
H8W=function(f,S){S=_.m(S);for(var B=S.next();!B.done;B=S.next())B=B.value,kc(B)?f.push(dMM({},B)):i81(B)?f.push(H8W([],B)):f.push(B);return f};
kc=function(f){return typeof f==="object"&&!Array.isArray(f)};
i81=function(f){return typeof f==="object"&&Array.isArray(f)};
$Mj=function(f){for(var S=_.m(Object.entries(qTx)),B=S.next();!B.done;B=S.next())if(B=_.m(B.value),B.next(),B=B.next().value,B==="SLI_STATUS_"+f)return B;return"SLI_STATUS_UNKNOWN"};
_.sf=function(f,S,B,G){return Qtj(f,S,function(){return new _.YT1(f,S,B,G)})};
_.rq9=function(){return _.sf("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
jtA=function(){return _.sf("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
DT=function(){return _.sf("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
O81=function(){return _.sf("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
xM1=function(){return _.sf("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
EoA=function(){return _.sf("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
noW=function(f){f&&(f.dataset?f.dataset[L5x()]="true":_.AJ([_.fo(khx)],f,"data-loaded","true".toString()))};
stK=function(f){return f?f.dataset?f.dataset[L5x()]:f.getAttribute("data-loaded"):null};
L5x=function(){return DMW.loaded||(DMW.loaded="loaded".replace(/\-([a-z])/g,function(f,S){return S.toUpperCase()}))};
_.I4=function(f,S,B){I29(f,S,B===void 0?null:B)};
_.CXG=function(f,S){f&&S&&(f=""+_.Sm(S),(f=UMV[f])&&_.AKW(f))};
I29=function(f,S,B){B=B===void 0?null:B;var G=_.pET(f),g=document.getElementById(G),b=g&&stK(g),z=g&&!b;b?S&&S():(S&&(b=_.eD(G,S),S=""+_.Sm(S),UMV[S]=b),z||(g=AqN(f,G,function(){stK(g)||(noW(g),_.N3T(G),_.mE(function(){_.ZnA(G)},0))},B)))};
AqN=function(f,S,B,G){G=G===void 0?null:G;var g=_.Ja("SCRIPT");g.id=S;g.onload=function(){B&&setTimeout(B,0)};
g.onreadystatechange=function(){switch(g.readyState){case "loaded":case "complete":g.onload()}};
G&&g.setAttribute("nonce",G);_.CC(g,_.YA(f));f=document.getElementsByTagName("head")[0]||document.body;f.insertBefore(g,f.firstChild);return g};
_.pET=function(f){var S=document.createElement("a");Y6(S,f);return"js-"+Uf(S.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
NXG=function(f){var S=_.nL("INNERTUBE_HOST_OVERRIDE");S&&(f=String(S)+String(_.Ck(f)));return f};
MA1=function(f){var S={};_.K("json_condensed_response")&&(S.prettyPrint="false");return f=hY9(f,S)};
_.A2=function(f){return Wf(f)?"same-origin":"include"};
_.N5=function(f){return Wf(f)?"same-origin":"cors"};
M5=function(f,S,B){B=B===void 0?{}:B;f={method:S===void 0?"POST":S,mode:_.N5(f),credentials:_.A2(f)};S={};for(var G=_.m(Object.keys(B)),g=G.next();!g.done;g=G.next())g=g.value,B[g]&&(S[g]=B[g]);Object.keys(S).length>0&&(f.headers=S);return f};
_.ZT=function(f,S){S=S===void 0?{}:S;return"service:"+f+"/"+Object.keys(S).sort().map(function(B){return B+":"+S[B]}).join("/")};
Z8N=function(f){var S,B,G,g;f=(S=_.H(f,_.t2))==null?void 0:(B=S.watchEndpointSupportedOnesieConfig)==null?void 0:(G=B.html5PlaybackOnesieConfig)==null?void 0:(g=G.commonConfig)==null?void 0:g.url;if(!f)return[];S=new _.uT(f);return S.JSC$8076_domain_?["https://"+S.JSC$8076_domain_+"/generate_204"]:[]};
_.a2Q=function(){return tAT()||J2V()||u7M&&EZ("version/")?!0:_.nL("EOM_VISITOR_DATA")?!1:!0};
yqN=function(f){var S=f.docid||f.video_id||f.videoId||f.id;if(S)return S;S=f.raw_player_response;S||(f=f.player_response)&&(S=JSON.parse(f));return S&&S.videoDetails&&S.videoDetails.videoId||null};
W5N=function(f){return f.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
a4=function(f){return!isNaN(Number(f))&&!_.bK(f)};
_.WZ=function(f,S,B,G){G=G===void 0?!0:G;var g=_.nL("VALID_SESSION_TEMPDATA_DOMAINS",[]),b=_.aj(window.location.href);b&&g.push(b);b=_.aj(f);if(_.As(g,b)||!b&&_.Gj(f,"/"))if(g=document.createElement("a"),Y6(g,f),f=g.href)if(f=_.Ck(f),f=_.yw(f))G&&!S.csn&&(S.itct||S.ved)&&(S=Object.assign({csn:_.xc()},S)),B?(B=parseInt(B,10),isFinite(B)&&B>0&&cqK(f,S,B)):cqK(f,S)};
fRQ=function(f){var S=_.nL("VALID_SESSION_TEMPDATA_DOMAINS",[]),B=_.aj(window.location.href);B&&S.push(B);B=_.aj(f);if(!(_.As(S,B)||!B&&_.Gj(f,"/")))return null;f=_.Ck(f);(f=_.yw(f))?(f=l2N(f),f=(f=_.VP.get(f,void 0)||null)?_.Np(f):{}):f=null;return f};
cqK=function(f,S,B){f=l2N(f);S=S?_.hY(S):"";B=B||5;_.a2Q()&&_.JY(f,S,B)};
l2N=function(f){for(var S=_.m(o_G),B=S.next();!B.done;B=S.next())f=_.cZ(f,B.value);return"ST-"+Uf(f).toString(36)};
SEV=function(f,S){f.commandMetadata&&_.H(f.commandMetadata,_.oD)&&_.H(f.commandMetadata,_.oD).url&&(f=_.Mp(_.H(f.commandMetadata,_.oD).url).adurl)&&_.FIN(f)&&_.WZ(_.Ck(f),{encoded_ad_playback_context:S})};
_.BHG=function(f){if(f.requestFullscreen)f=f.requestFullscreen(void 0);else if(f.webkitRequestFullscreen)f=f.webkitRequestFullscreen();else if(f.mozRequestFullScreen)f=f.mozRequestFullScreen();else if(f.msRequestFullscreen)f=f.msRequestFullscreen();else if(f.webkitEnterFullscreen)f=f.webkitEnterFullscreen();else return Promise.reject(Error("tf"));return f instanceof Promise?f:Promise.resolve()};
_.BK=function(f){var S;_.OnM(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.Sw()==f&&(S=document):S=f;if(S&&(f=_.OnM(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],S))){f.call(S)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.Sw=function(){var f=f===void 0?!1:f;var S=_.OnM(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(f)for(;S&&S.shadowRoot;)S=S.shadowRoot.fullscreenElement;return S?S:null};
_.GZ=function(f,S){S=S===void 0?!0:S;f.addEventListener("wheel",Ga1);f.overscrollConfig={cooldown:S}};
_.gh=function(f){f.overscrollConfig=void 0;f.removeEventListener("wheel",Ga1)};
Ga1=function(f){var S=f.deltaY,B=f.target,G=null;if(window.Polymer&&window.Polymer.Element){if(B=f.path||f.composedPath&&f.composedPath()){B=_.m(B);for(var g=B.next();!g.done&&(g=g.value,!g_G(g,S));g=B.next())if(g.overscrollConfig){G=g;break}}}else for(;B&&!g_G(B,S);){if(B.overscrollConfig){G=B;break}B=B.parentElement}G&&(S=G.overscrollConfig,S.cooldown?(G=f.deltaY,B=S.lastDeltaY||0,S.lastDeltaY=G,g=S.lastStopped||0,B&&g&&B>0==G>0?Math.abs(B)>=Math.abs(G)?(G=g+1200,B=!1):(G=g+600,B=!0):(G=Date.now()+
600,B=!0),G>Date.now()&&(f.preventDefault(),B&&(S.lastStopped=Date.now()))):f.preventDefault())};
g_G=function(f,S){return S<0&&f.scrollTop>0||S>0&&f.scrollTop<f.scrollHeight-f.clientHeight-1?(f=getComputedStyle(f).overflowY,f=="auto"||f=="scroll"):!1};
_.ew=function(f,S,B,G){G||(G={bubbles:!0,cancelable:!1,composed:!0});B!==null&&B!==void 0&&(G.detail=B);var g=new CustomEvent(S,G);_.K("untrack_fire_custom_event_killswitch")?f.dispatchEvent(g):wA(function(){return void f.dispatchEvent(g)});
return g};
_.bW=function(f,S,B,G){S=new ecN(S,!(G===void 0||!G),B);_.ew(f,"yt-action",S);return S.returnValue};
_.mU=function(f,S,B){return _.bW(f,S,B,!0)};
_.zZ=function(f,S,B){return _.bW(f,S,B)[0]};
_.Xh=function(f,S,B,G){S&&S.length&&S.forEach(function(g){var b=rZG(g);b&&(_.K("handle_service_request_actions")&&g.commandMetadata&&g.commandMetadata.webCommandMetadata&&g.commandMetadata.webCommandMetadata.sendPost?_.RD(B?B:f,[g]):_.mU(f,b,[g,B,G]))})};
_.RD=function(f,S){var B=[f];S&&B.push.apply(B,S);S=_.bW(f,"yt-service-request",B);return S.length>0&&(S=S[0],_.ew(f,"yt-service-request-sent",S),S&&S.ajaxPromise)?(S.ajaxPromise.then(function(G){_.ew(f,"yt-service-request-completed",G)},function(G){_.ew(f,"yt-service-request-error",{error:G,
params:B})},f),S.ajaxPromise):_.wh()};
_.TZ=function(f,S){if(_.K("handle_service_request_actions"))_.Xh(S,f,S);else{f=_.m(f);for(var B=f.next();!B.done;B=f.next()){B=B.value;var G=void 0;((G=_.H(B,_.hf))==null?0:G.commands)?_.TZ(_.H(B,_.hf).commands,S):(G=void 0,((G=_.H(B,_.Fh))==null?0:G.actions)?_.TZ(_.H(B,_.Fh).actions,S):(G=void 0,((G=_.H(B.commandMetadata,_.oD))==null?0:G.sendPost)?_.RD(S,[B]):_.Xh(S,[B],S)))}}};
_.miN=function(f,S,B){S=S===void 0?{}:S;typeof S==="function"&&(S={callback:S});B||S._c&&S._c.jsl&&S._c.jsl.h||_.$v.extend(S,{_c:{jsl:{h:_.nL("GAPI_HINT_PARAMS")}}});(S.gapiHintOverride||_.nL("GAPI_HINT_OVERRIDE"))&&(B=_.Mp(document.location.href).gapi_jsh)&&_.$v.extend(S,{_c:{jsl:{h:B}}});buN(f,S)};
_.Jf=function(f,S,B){S=S===void 0?{}:S;f=(f=f in Vp?Vp[f]:B)||"";B={};for(var G in S){B={key$jscomp$789:B.key$jscomp$789};B.key$jscomp$789=G;var g=function(b){return function(){return String(S[b.key$jscomp$789])}}(B);
f=f.replace(new RegExp("\\$\\{"+B.key$jscomp$789+"\\}","gi"),g);f=f.replace(new RegExp("\\$"+B.key$jscomp$789,"gi"),g)}return f};
_.PK=function(f,S){return zc1(f in Vp?Vp[f]:{},S)};
zc1=function(f,S){var B=_.nL("I18N_PLURAL_RULES");B||(B=function(G){return G==1?"one":"other"});
return(f=f["case"+S]||f[B(S)])?f.replace("#",S.toString()):S+""};
wzW=function(f){var S=Rcs(f),B=document.getElementById(S),G=B&&stK(B);G||B&&!G||(B=XzG(f,S,function(){if(!stK(B)){noW(B);_.N3T(S);var g=_.vK(_.ZnA,S);_.mE(g,0)}}))};
XzG=function(f,S,B){var G=document.createElement("link");G.id=S;G.onload=function(){B&&setTimeout(B,0)};
f=_.YA(f);_.Nb(G,f,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(G);return G};
Rcs=function(f){var S=_.Ja("A");Y6(S,TC(f));return"css-"+Uf(S.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.THN=function(f){var S=hcj();f!==S&&(S=_.K2(),!_.K("web_autonav_allow_off_by_default")&&f||_.dh(0,141,!0),_.dh(0,140,!f),S.save())};
hcj=function(){var f=_.K2();return _.K("web_autonav_allow_off_by_default")&&!f.getFlag(141)&&_.nL("AUTONAV_OFF_BY_DEFAULT")?!1:!f.getFlag(140)};
Fbj=function(f,S){var B,G;f=((B=f.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(G=B.videoAuthorizationToken)==null?void 0:G.credentialTransferTokens)||[];for(B=0;B<f.length;++B)if(f[B].scope===S)return f[B].token||void 0};
Vzx=function(f){for(var S=0,B=0;B<f.length;B++)S=S*31+f.charCodeAt(B),B<f.length-1&&(S%=0x800000000000);return S%1E5};
_.iW=function(f){return _.U6("ytcsi."+(f||"")+"data_")||JVV(f)};
_.Plj=function(f){f=_.iW(f);f.metadata||(f.metadata={});return f.metadata};
_.v_N=function(f){f=_.iW(f);f.tick||(f.tick={});return f.tick};
_.HK=function(f){f=_.iW(f);if(f.gel){var S=f.gel;S.gelInfos||(S.gelInfos={});S.gelTicks||(S.gelTicks={})}else f.gel={gelTicks:{},gelInfos:{}};return f.gel};
_.KbV=function(f){f=_.HK(f);f.gelInfos||(f.gelInfos={});return f.gelInfos};
di1=function(f){var S=_.iW(f).nonce;S||(S=ri(16),_.iW(f).nonce=S);return S};
JVV=function(f){var S={tick:{},info:{}};_.WL("ytcsi."+(f||"")+"data_",S);return S};
iuj=function(){var f=_.U6("ytcsi.debug");f||(f=[],_.WL("ytcsi.debug",f),_.WL("ytcsi.reference",{}));return f};
_.qE=function(f){f=f||"";var S=Huj();if(S[f])return S[f];var B=iuj(),G={timerName:f,info:{},tick:{},span:{},jspbInfo:[]};B.push(G);return S[f]=G};
qEK=function(f){f=f||"";var S=Huj();S[f]&&delete S[f];var B=iuj(),G={timerName:f,info:{},tick:{},span:{},jspbInfo:[]};B.push(G);S[f]=G};
Huj=function(){var f=_.U6("ytcsi.reference");if(f)return f;iuj();return _.U6("ytcsi.reference")};
_.QIx=function(f){return $iK[f]||"LATENCY_ACTION_UNKNOWN"};
OuW=function(f,S,B){B=B===void 0?{}:B;var G=!1;_.s6("ytLoggingEventsDefaultDisabled",!1)&&(G=!0);G=G?null:rC;B=B===void 0?{}:B;var g=Math.round(B.timestamp||(0,_.fO)());_.is(S,1,g<Number.MAX_SAFE_INTEGER?g:0);g=new YEN;if(B.lact)_.is(g,1,isFinite(B.lact)?B.lact:-1);else if(B.timestamp)_.is(g,1,-1);else{var b=_.or();_.is(g,1,isFinite(b)?b:-1)}if(B.sequenceGroup&&!_.K("web_gel_sequence_info_killswitch")){b=B.sequenceGroup;var z=SnN(b),X=new rVV;_.is(X,2,z);_.Jx(X,1,b);_.SZ(g,3,X);B.endOfSequence&&delete jIN[B.sequenceGroup]}_.SZ(S,
33,g);(B.sendIsolatedPayload?mJj:zuK)(f,{endpoint:"log_event",payload:S,cttAuthInfo:B.cttAuthInfo,dangerousLogToVisitorSession:B.dangerousLogToVisitorSession},G)};
_.Qp=function(){return(_.K("csi_use_time_origin")||_.K("csi_use_time_origin_tvhtml5"))&&_.$T.timeOrigin?Math.floor(_.$T.timeOrigin):_.$T.timing.navigationStart};
_.xi1=function(f,S){_.rh("_start",f,S)};
_.jw=function(f,S){if(!_.K("web_csi_action_sampling_enabled")||!_.iW(S).actionDisabled){var B=_.qE(S||"");_.nk(B.info,f);f.loadType&&(B=f.loadType,_.Plj(S).loadType=B);_.nk(_.KbV(S),f);B=di1(S);S=_.iW(S).cttAuthInfo;E_1().info(f,B,S)}};
LbV=function(){var f,S,B,G;return((G=_.oy().resolve(_.fN($H))==null?void 0:(f=oeM())==null?void 0:(S=f.loggingHotConfig)==null?void 0:(B=S.csiConfig)==null?void 0:B.debugTicks)!=null?G:[]).map(function(g){return Object.values(g)[0]})};
_.rh=function(f,S,B){if(!_.K("web_csi_action_sampling_enabled")||!_.iW(B).actionDisabled){var G=di1(B),g;if(g=_.K("web_csi_debug_sample_enabled")&&G){(_.oy().resolve(_.fN($H))==null?0:oeM())&&!kas&&(kas=!0,_.rh("gcfl",(0,_.fO)(),B));var b,z,X;g=(_.oy().resolve(_.fN($H))==null?void 0:(b=oeM())==null?void 0:(z=b.loggingHotConfig)==null?void 0:(X=z.csiConfig)==null?void 0:X.debugSampleWeight)||0;if(b=g!==0)b:{b=LbV();if(b.length>0)for(z=0;z<b.length;z++)if(f===b[z]){b=!0;break b}b=!1}b?(g=Vzx(G)%g!==
0,_.iW(B).debugTicksExcludedLogged||(b={},b.debugTicksExcluded=g,_.jw(b,B)),_.iW(B).debugTicksExcludedLogged=!0):g=!1}if(!g){f[0]!=="_"&&n_N(f,B,S);g=_.qE(B||"");g.tick[f]=S||(0,_.fO)();if(g.callback&&g.callback[f])for(g=_.m(g.callback[f]),b=g.next();!b.done;b=g.next())b=b.value,b();g=_.HK(B);g.gelTicks&&(g.gelTicks[f]=!0);b=_.v_N(B);g=S||(0,_.fO)();_.K("log_repeated_ytcsi_ticks")?f in b||(b[f]=g):b[f]=g;b=_.iW(B).cttAuthInfo;f==="_start"?E_1().baseline(G,S,b):E_1().tick(f,G,S,b);_.sI1(B);return g}}};
n_N=function(f,S,B){if(_.$T.mark)if(f.startsWith("mark_")||(f="mark_"+f),S&&(f+=" ("+S+")"),B===void 0||_.K("web_csi_disable_alt_time_performance_mark"))_.$T.mark(f);else{B=_.K("csi_use_performance_navigation_timing")?B-_.$T.timeOrigin:B-(_.$T.timeOrigin||_.$T.timing.navigationStart);try{_.$T.mark(f,{startTime:B})}catch(G){}}};
DiK=function(){var f,S=(f=_.$T.getEntriesByType)==null?void 0:f.call(_.$T,"mark");S&&S.forEach(function(B){if(B.name.startsWith("mark_")){var G;(G=_.$T.clearMarks)==null||G.call(_.$T,B.name)}})};
_.IRN=function(){switch(jeK()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.UiV=function(f){var S={},B=function(b,z,X){z=z.match("_rid")?z.split("_rid")[0]:z;typeof X==="number"&&(X=JSON.stringify(X));b.requestIds?b.requestIds.push({endpoint:z,id:X}):b.requestIds=[{endpoint:z,id:X}]};
f=_.m(Object.entries(f));for(var G=f.next();!G.done;G=f.next()){var g=_.m(G.value);G=g.next().value;g=g.next().value;switch(G){case "GetBrowse_rid":B(S,G,g);break;case "GetGuide_rid":B(S,G,g);break;case "GetHome_rid":B(S,G,g);break;case "GetPlayer_rid":B(S,G,g);break;case "GetSearch_rid":B(S,G,g);break;case "GetSettings_rid":B(S,G,g);break;case "GetTrending_rid":B(S,G,g);break;case "GetWatchNext_rid":B(S,G,g);break;case "yt_red":S.isRedSubscriber=!!g;break;case "yt_ad":S.isMonetized=!!g}}return S};
pzG=function(f,S,B,G,g,b){if(!_.K("web_csi_action_sampling_enabled")||!_.iW(b).actionDisabled){var z=_.HK(b);if(z.gelSpans)z.gelSpans[f]=!0;else{var X={};z.gelSpans=(X[f]=!0,X)}ClN++;f={spanName:f,spanLengthUsec:String(Math.round(S*1E3)),spanNonce:ClN};G&&(f.spanInfo=G);g&&(f.parentSpanNonce=g);B&&(f.spanStartTimeUsec=String(Math.round(B*1E3)));_.qE(b||"").span[String(f.spanName)]=f;B=_.HK(b);B.gelSpans||(B.gelSpans={});_.nk(B.gelSpans,f);B=di1(b);b=_.iW(b).cttAuthInfo;E_1().span(f,B,b);return f.spanNonce}};
_.AVj=function(f){var S=_.OL("aft",f);if(S)return S;S=_.nL((f||"")+"TIMING_AFT_KEYS",["ol"]);for(var B=S.length,G=0;G<B;G++){var g=_.OL(S[G],f);if(g)return g}return NaN};
_.NHT=function(f,S){_.WL("ytglobal.timing"+(S||"")+"ready_",f)};
_.OL=function(f,S){if(f=_.v_N(S)[f])return typeof f==="number"?f:f[f.length-1]};
_.sI1=function(f){var S=_.OL("_start",f),B=_.AVj(f),G=!Mzs;S&&B&&G&&(B9j(ZuM,new tzM(Math.round(B-S),f)),Mzs=!0)};
aRx=function(f){JVV(f);uH1();DiK();f||(_.nL("TIMING_ACTION")&&_.k5("PREVIOUS_ACTION",_.nL("TIMING_ACTION")),_.k5("TIMING_ACTION",""))};
_.yVM=function(f){f=f===void 0?{}:f;_.Ij(function(){xT();qEK();aRx();_.NHT(!1);f.cttAuthInfo&&(_.iW().cttAuthInfo=f.cttAuthInfo);_.k5("TIMING_AFT_KEYS",[]);f.isHot?_.EL({loadType:"hot"}):_.EL({loadType:"warm"});_.k5("TIMING_ACTION","");delete _.nL("TIMING_INFO",{}).yt_lt;_.Ij(_.xi1)(f.startTime,void 0)})()};
_.L2=function(f,S,B,G){S=S===void 0?{}:S;_.Ij(function(){var g=B?B:f;Wb1(g);var b=S.sampleRate;if(!_.K("web_csi_action_sampling_enabled")||b===void 0||b<=1)b=!1;else{var z=di1(g);b=Vzx(z)%b!==0}b&&(_.iW(g).actionDisabled=!0);_.qE(g||"").info.actionType=f;S.cttAuthInfo&&(_.iW(g).cttAuthInfo=S.cttAuthInfo);_.k5(g+"TIMING_ACTION",f);_.Ij(_.xi1)(S.startTime,g);b={actionType:G||_.QIx(f)};S.logPreviousAction&&(b.previousAction=_.QIx(_.nL("TIMING_ACTION")));(z=_.xc())&&z!=="UNDEFINED_CSN"&&(b.clientScreenNonce=
z);_.EL(b,g);_.NHT(!0,g)})()};
Wb1=function(f){_.Ij(function(){xT(f);qEK(f);aRx(f)})()};
cVW=function(){_.Ij(function(){var f=[],S;for(S in _.U6("ytcsi.".slice(0,-1)))S.endsWith("data_")&&f.push(S.slice(0,-5));f=_.m(f);for(S=f.next();!S.done;S=f.next())Wb1(S.value);xT()})()};
_.f7K=function(f){return _.Ij(function(){return _.lRT("_start",f)})()};
_.EL=function(f,S,B){_.Ij(_.jw)(f,S,B===void 0?!1:B)};
_.kT=function(f,S,B){return _.Ij(_.rh)(f,S,B)};
_.lRT=function(f,S){return _.Ij(function(){var B=_.v_N(S);return f in B})()};
ScM=function(f){if(!_.K("universal_csi_network_ticks"))return"";f=_.Xl(f)||"";for(var S=Object.keys(o9N),B=0;B<S.length;B++){var G=S[B];if(f.includes(G))return G}return""};
G6Q=function(f){if(!_.K("universal_csi_network_ticks"))return function(){};
var S=o9N[f];return S?(_.n2(S),function(){var B=_.K("universal_csi_network_ticks")?(B=BFM[f])?_.n2(B):!1:!1;return B}):function(){}};
_.n2=function(f,S,B){return _.Ij(function(){if(_.lRT(f,B))return!1;_.kT(f,S,B);return!0})()};
_.sL=function(f,S,B){_.Ij(function(){if(!_.f7K(B)||_.lRT(f,B))return!1;_.kT(f,S,B);return!0})()};
_.Du=function(f){return _.Ij(_.OL)(f,void 0)};
xT=function(f){_.f7K(f)&&_.kT("aa",void 0,f)};
_.zCV=function(f,S,B,G,g,b,z,X,w){var F=g9s();X=new _.je({veType:S,youtubeData:b,jspbYoutubeData:X});b=ID({},F);g&&(b.cttAuthInfo=g);g={csn:F,pageVe:X.getAsJson()};_.K("expectation_logging")&&w&&w.screenCreatedLoggingExpectations&&(g.screenCreatedLoggingExpectations=w.screenCreatedLoggingExpectations);B&&B.visualElement?(g.implicitGesture={parentCsn:B.clientScreenNonce,gesturedVe:B.visualElement.getAsJson()},z&&(g.implicitGesture.gestureType=z)):B&&_.Lg(new _.dO("newScreen() parent element does not have a VE - rootVe",
S));G&&(g.cloneCsn=G);f?YH("screenCreated",g,f,b):_.jD("screenCreated",g,b);B9j(RxN,new eC1(F));UL.clear();bTV.clear();ms9.clear();return F};
C2=function(f,S,B,G,g){RC1(f,S,B,[G],g===void 0?!1:g)};
RC1=function(f,S,B,G,g){g=g===void 0?!1:g;for(var b=ID({cttAuthInfo:Ef(S)||void 0},S),z=_.m(G),X=z.next();!X.done;X=z.next()){X=X.value;var w=X.getAsJson();(_.$v.isEmpty(w)||!w.trackingParams&&!w.veType)&&_.Lg(Error("uf"));if(_.K("no_client_ve_attach_unless_shown")){var F=Xy1(X,S);if(w.veType&&!bTV.has(F)&&!ms9.has(F)&&!g){if(!_.K("il_attach_cache_limit")||UL.size<1E3){UL.set(F,[f,S,B,X]);return}_.K("il_attach_cache_limit")&&UL.size>1E3&&_.Lg(new _.dO("IL Attach cache exceeded limit"))}X=Xy1(B,S);
UL.has(X)?wyG(B,S):ms9.set(X,!0)}}G=G.filter(function(V){V.csn!==S?(V.csn=S,V=!0):V=!1;return V});
B={csn:S,parentVe:B.getAsJson(),childVes:_.Yv(G,function(V){return V.getAsJson()})};
S==="UNDEFINED_CSN"?p2("visualElementAttached",b,B):f?YH("visualElementAttached",B,f,b):_.jD("visualElementAttached",B,b)};
TFW=function(f,S,B,G,g){hCK(f,S,B,g)};
hCK=function(f,S,B,G){Fn9(B,S);var g=ID({cttAuthInfo:Ef(S)||void 0},S);B={csn:S,ve:B.getAsJson(),eventType:1};G&&(B.clientData=G);S==="UNDEFINED_CSN"?p2("visualElementShown",g,B):f?YH("visualElementShown",B,f,g):_.jD("visualElementShown",B,g)};
VnA=function(f,S,B,G){Fn9(B,S);var g=ID({cttAuthInfo:Ef(S)||void 0},S);B={csn:S,ve:B.getAsJson(),eventType:4};G&&(B.clientData=G);S==="UNDEFINED_CSN"?p2("visualElementShown",g,B):f?YH("visualElementShown",B,f,g):_.jD("visualElementShown",B,g)};
J_Q=function(f,S,B,G,g){var b=(G=G===void 0?!1:G)?16:8;G=ID({cttAuthInfo:Ef(S)||void 0,endOfSequence:G},S);B={csn:S,ve:B.getAsJson(),eventType:b};g&&(B.clientData=g);S==="UNDEFINED_CSN"?p2("visualElementHidden",G,B):f?YH("visualElementHidden",B,f,G):_.jD("visualElementHidden",B,G)};
v9Q=function(f,S,B,G,g){P6x(f,S,B,void 0,G,g)};
P6x=function(f,S,B,G,g){Fn9(B,S);G=G||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var b=ID({cttAuthInfo:Ef(S)||void 0},S);B={csn:S,ve:B.getAsJson(),gestureType:G};g&&(B.clientData=g);S==="UNDEFINED_CSN"?p2("visualElementGestured",b,B):f?YH("visualElementGestured",B,f,b):_.jD("visualElementGestured",B,b)};
KnM=function(f,S,B,G){var g=ID({cttAuthInfo:Ef(S)||void 0},S);B={csn:S,ve:B.getAsJson(),clientData:G};S==="UNDEFINED_CSN"?p2("visualElementStateChanged",g,B):f?YH("visualElementStateChanged",B,f,g):_.jD("visualElementStateChanged",B,g)};
dsN=function(){var f=mMs(16);for(var S=[],B=0;B<f.length;B++)S.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(f[B]&63));return S.join("")};
p2=function(f,S,B){iTK.push({payloadName:f,payload:B,jspbPayload:void 0,options:S});HT9||(HT9=w2Q())};
zxx=function(f){if(iTK){for(var S=_.m(iTK),B=S.next();!B.done;B=S.next())B=B.value,B.payload&&(B.payload.csn=f.csn,_.jD(B.payloadName,B.payload,B.options));iTK.length=0}HT9=0};
Xy1=function(f,S){return""+f.getAsJson().veType+f.getAsJson().veCounter+S};
Fn9=function(f,S){if(_.K("no_client_ve_attach_unless_shown")){var B=Xy1(f,S);bTV.set(B,!0);wyG(f,S)}};
wyG=function(f,S){f=Xy1(f,S);UL.has(f)&&(S=UL.get(f)||[],C2(S[0],S[1],S[2],S[3],!0),UL.delete(f))};
ID=function(f,S){_.K("log_sequence_info_on_gel_web")&&(f.sequenceGroup=S);return f};
_.Af=function(f,S,B){_.Ij(C2)(void 0,f,S,B)};
_.NE=function(f,S,B){_.Ij(RC1)(void 0,f,S,B)};
_.ME=function(f,S){_.Ij(TFW)(void 0,f,S,void 0,void 0,void 0)};
_.Zu=function(f,S,B){_.Ij(function(){_.AA(S,function(G){VnA(void 0,f,G,B)})})()};
_.tf=function(f,S,B,G){_.Ij(function(){_.AA(S,function(g){J_Q(void 0,f,g,B,G)})})()};
_.uW=function(f,S,B){_.Ij(v9Q)(void 0,f,S,B,void 0)};
_.aD=function(f,S,B,G){_.Ij(P6x)(void 0,f,S,B,G,void 0)};
_.yp=function(f,S,B){_.Ij(KnM)(void 0,f,S,B,void 0)};
qc1=function(f,S){WK.set(f,S)};
$sT=function(f){return cK?cK.enabledSpans?!!cK.enabledSpans[f]:!0:!1};
QNT=function(f){if(!cK)throw Error("xf");cK.processors.push(f)};
YcN=function(f,S){if(f){S=S===void 0?1:S;if(f&&(f.endTime=performance.now(),S&&(f.status=S),S=cK)){S=_.m(S.processors);for(var B=S.next();!B.done;B=S.next()){var G=void 0,g=void 0;(g=(G=B.value).onSpanEnd)==null||g.call(G,f)}}if(S=cK){if(f!==S.activeSpan)throw Error("yf");var b;S.activeSpan=(b=S.activeSpan)==null?void 0:b.parent}}};
r_N=function(f,S,B){var G;if((G=cK)&&$sT(f)){var g=G.nextSpanId++,b=G.activeSpan;f={id:g,parent:b,name:f,attributes:S,traceId:b?b.traceId:g,sessionId:G.sessionId,startTime:performance.now(),status:0};if(G.activeSpan){var z;(z=G.activeSpan).children||(z.children=[]);G.activeSpan.children.push(f)}G=_.m(G.processors);for(z=G.next();!z.done;z=G.next())g=S=void 0,(g=(S=z.value).onSpanStart)==null||g.call(S,f);G=f}else G=void 0;f=cK;G=G&&f?f.activeSpan=G:void 0;if(!G)return B();try{var X=B(G);YcN(G);return X}catch(w){throw YcN(G,
2),w;}};
jNN=function(f,S){var B=Object.keys(f);f=new _.dO("[Command Handler] "+S,{filteredCommandNames:B,originalCommand:f});_.xH(f)};
OTj=function(f,S){jNN(f,S+" was called but not set")};
xsG=function(f){return function(){return new f}};
lW=function(f){return function(){return _.oy().resolve(f)}};
E9j=function(f,S){var B=_.H(f,_.UU);if(B&&(B=S[B.signal]))return B();f=_.m(Object.keys(f));for(B=f.next();!B.done;B=f.next())if(B=B.value,S[B]&&(B=S[B]))return B()};
oc=function(f,S,B,G){return{browseEndpoint:{browseId:f},commandMetadata:{webCommandMetadata:{url:S,rootVe:B,webPageType:G===void 0?"WEB_PAGE_TYPE_BROWSE":G}}}};
LnA=function(f,S,B){var G=S=S===void 0?0:S;B=B===void 0?0:B;var g=B-G;return _.Sf(f,"PPSV",void 0,void 0,(g>600?0:g<60||B<=0||G/B>.9)?0:S)};
_.Sf=function(f,S,B,G,g){var b="/watch?v="+f;f={videoId:f};S&&(f.playlistId=S,b+="&list="+S);G&&(b+="&pp="+G);g&&(f.startTimeSeconds=g,b+="&t="+g+"s");S={watchEndpoint:f,commandMetadata:{webCommandMetadata:{url:b,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};B&&(S.clickTrackingParams=B);G&&(_.H(S,_.t2).playerParams=G);return S};
k6V=function(f){return{browseEndpoint:{browseId:"VL"+f},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+f,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
n9V=function(f){if(f){var S;if(f){var B=(S=_.H(f.commandMetadata,_.oD))==null?void 0:S.url;S=!(!B||B==="/service_ajax")}else S=!1;if(S)return f;var G;if(f=(G=_.H(f,_.hf))==null?void 0:G.commands)for(G=_.m(f),f=G.next();!f.done;f=G.next())if(f=n9V(f.value))return f}};
_.B2=function(f){return{runs:[{text:f}]}};
sN9=function(f,S){return f&&S?{runs:[{text:f,navigationEndpoint:S}]}:void 0};
Gc=function(f){return f?_.B2(f):void 0};
_.g9=function(f){return f?{simpleText:f}:void 0};
_.ef=function(f){var S=f.type;f=f.payload;S={type:S};f!==void 0&&(S.payload=f);return S};
DsN=function(f,S,B){for(var G=Object.assign({},f),g=_.m(Object.keys(S)),b=g.next();!b.done;b=g.next()){b=b.value;var z=f[b],X=S[b];if(X===void 0)delete G[b];else if(z===void 0)G[b]=X;else if(Array.isArray(X)&&Array.isArray(z))G[b]=B?[].concat(_.$d(z),_.$d(X)):X;else if(!Array.isArray(X)&&_.og(X)&&!Array.isArray(z)&&_.og(z))G[b]=DsN(z,X,B);else if(typeof X===typeof z)G[b]=X;else return S=new _.dO("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:b,originalValue:z,updateValue:X}),
_.xH(S),f}return G};
C61=function(f){if(!f.length)return"";try{if(I7Q)return I7Q.decode(f);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(f)}catch(z){}for(var S=0,B=[],G=f.length;S<G;){for(var g=0;g<1024&&S<G;){var b=f[S++];if(b<128)Usx[g++]=b;else{if(b<224)b=(b&31)<<6|f[S++]&63;else if(b<240)b=(b&15)<<12|(f[S++]&63)<<6|f[S++]&63;else{if(g+1===1024){--S;break}b=(b&7)<<18|(f[S++]&63)<<12|(f[S++]&63)<<6|f[S++]&63;b-=65536;Usx[g++]=55296|b>>10;b=56320|b&1023}Usx[g++]=b}}b=String.fromCharCode.apply(String,
Usx);g<1024&&(b=b.substring(0,g));B.push(b)}return B.join("")};
A_W=function(f,S){var B;if((B=pyM)==null?0:B.encodeInto)return S=pyM.encodeInto(f,S),S.read<f.length?f.length*4:S.written;for(var G=B=0;G<f.length;G++){var g=f.charCodeAt(G);g<128?S[B++]=g:(g<2048?S[B++]=g>>6|192:((g&64512)===55296&&G+1<f.length&&(f.charCodeAt(G+1)&64512)===56320?(g=65536+((g&1023)<<10)+(f.charCodeAt(++G)&1023),S[B++]=g>>18|240,S[B++]=g>>12&63|128):S[B++]=g>>12|224,S[B++]=g>>6&63|128),S[B++]=g&63|128)}return B};
NF1=function(f,S){f=new Uint8Array(f);S&&f.set(S);return f};
_.mW=function(f){f=new MnG(new ZT1([_.Rg(decodeURIComponent(f))]));if(tnW(f,2)){var S=bC(f);var B=f.pos;var G=f.arrayView;B=B===void 0?0:B;var g=S===void 0?-1:S;B=B===void 0?0:B;g=g===void 0?-1:g;if(G.totalLength&&g){g<0&&(g=G.totalLength-B);G.focus(B);if(!(B-G.arrayPos+g<=G.arrays[G.arrayIdx].length)){var b=G.arrayIdx,z=G.arrayPos;G.focus(B+g-1);z=new Uint8Array(G.arrayPos+G.arrays[G.arrayIdx].length-z);for(var X=0,w=b;w<=G.arrayIdx;w++)z.set(G.arrays[w],X),X+=G.arrays[w].length;G.arrays.splice(b,
G.arrayIdx-b+1,z);G.arrayIdx=0;G.arrayPos=0;G.focus(B)}b=G.arrays[G.arrayIdx];G=new DataView(b.buffer,b.byteOffset+B-G.arrayPos,g)}else G=new DataView(new ArrayBuffer(0));G=new Uint8Array(G.buffer,G.byteOffset,G.byteLength);f.pos+=S;S=G}else S=void 0;S=S?C61(S):void 0;f=tnW(f,4)?bC(f):void 0;G=un1[f];if(typeof G==="undefined")throw f=new _.dO("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:f}),_.xH(f),f;return{entityTypeFieldNumber:f,entityType:G,entityId:S}};
_.XV=function(f,S,B){B=B===void 0?0:B;var G=new a7M;if(pyM)f=pyM.encode(f);else{var g=new Uint8Array(Math.ceil(f.length*1.2)),b=A_W(f,g);g.length<b&&(g=new Uint8Array(b),b=A_W(f,g));g.length>b&&(g=g.subarray(0,b));f=g}f!==void 0&&(zc(G,18),g=f.length,zc(G,g),Rc(G,g),G.buf.set(f,G.pos),G.pos+=g);f=y_W[S];if(typeof f==="undefined")throw B=new _.dO("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:S}),_.xH(B),B;f!==void 0&&(zc(G,32),zc(G,f));zc(G,40);zc(G,1);S=new Uint8Array(G.buf.buffer,
G.buf.byteOffset,G.pos);return encodeURIComponent(_.oO(S,B))};
WnV=function(f){f=f.key||f.id;if(!f)throw Error("zf");return f};
l7W=function(f,S){f=f===void 0?{}:f;return c_9(f,S)};
f9s=function(f,S,B,G){if(G===void 0)return G=Object.assign({},f[S]||{}),B=(delete G[B],G),G={},Object.assign({},f,(G[S]=B,G));var g={},b={};return Object.assign({},f,(b[S]=Object.assign({},f[S],(g[B]=G,g)),b))};
oRM=function(f,S,B,G,g){var b=f[S];if(b==null||!b[B])return f;G=DsN(b[B],G,g==="REPEATED_FIELDS_MERGE_OPTION_APPEND");g={};b={};return Object.assign({},f,(b[S]=Object.assign({},f[S],(g[B]=G,g)),b))};
_.w9=function(f,S,B){return f[S]?f[S][B]||null:null};
B1Q=function(){if(SeN)return SeN();var f={};SeN=la("PersistentEntityStoreDb",{objectStores:(f.EntityStore={addedAtVersion:1},f.EntityAssociationStore={addedAtVersion:2},f),shared:!1,upgrade:function(S,B){B(1)&&U4(IJ(S,"EntityStore",{keyPath:"key"}),"entityType","entityType");B(2)&&(S=IJ(S,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),U4(S,"byParentEntityKey","parentEntityKey"),U4(S,"byChildEntityKey","childEntityKey"))},
version:3});return SeN()};
Gw1=function(f){return _.AY(B1Q(),f)};
hR=function(f){return window.Int32Array?new Int32Array(f):Array(f)};
ezV=function(f){return _.AY(gRj(),f)};
bsM=function(f){return new Tc("WRONG_DATA_TYPE",{encoderVersion:f})};
mIj=function(f){return f instanceof Error?new Tc("UNKNOWN_ENCODE_ERROR",{originalMessage:f.message}):new Tc("UNKNOWN_ENCODE_ERROR")};
zzs=function(f){return f instanceof Error?new Tc("UNKNOWN_DECODE_ERROR",{originalMessage:f.message}):new Tc("UNKNOWN_DECODE_ERROR")};
RzV=function(f,S){f=f instanceof Tc?f:S(f);_.xH(f);throw f;};
XG1=function(f){f=(new TextEncoder).encode(f).subarray(0,16);var S=new Uint8Array(16);S.set(f);return S};
hzN=function(f){var S=wGN[f];if(S)return S;_.Lg(new _.dO("Entity model not found.",{entityType:f}))};
_.FV=function(){T19||(T19=Fw1());return T19};
Fw1=function(){var f,S,B;return _.R(function(G){if(G.nextAddress==1)return _.zT(G,2),_.h(G,_.cL(),4);if(G.nextAddress!=2){f=G.yieldResult;if(!f||!_.KN()||typeof _.S1.BroadcastChannel==="undefined")return G.return();S=new VbG;return G.return(new VI(f,S))}B=_.hm(G);B instanceof Error&&_.xH(B);return G.return()})};
_.JR=function(f,S){var B;return _.R(function(G){if(G.nextAddress==1){B=f.mutations;if(!B||B.length<=0)return G.return();S&&S.dispatch(_.ef({type:"ENTITY_LOADED",payload:B}));return _.h(G,JoN(B),2)}B.length=0;_.TT(G)})};
JoN=function(f){var S;return _.R(function(B){return B.nextAddress==1?_.h(B,_.FV(),2):(S=B.yieldResult)?_.h(B,_.P2(S,"readwrite",function(G){for(var g={},b=_.m(f),z=b.next(),X={};!z.done;X={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},z=b.next())X.mutation$jscomp$4=z.value,X.mutation$jscomp$4.entityKey&&P8V(X.mutation$jscomp$4)&&(X.mutationEntityType$jscomp$3=(0,_.$v.getAnyKey)(X.mutation$jscomp$4.payload),z=void 0,X.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(z=function(w){return function(){return _.vRV(G,
w.mutation$jscomp$4.payload[w.mutationEntityType$jscomp$3],w.mutationEntityType$jscomp$3)}}(X)),X.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(z=function(w){return function(){return KwV(G,w.mutation$jscomp$4.entityKey)}}(X)),X.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(z=function(w){return function(){return dIK(G,w.mutation$jscomp$4.entityKey,w.mutation$jscomp$4.payload[w.mutationEntityType$jscomp$3],w.mutationEntityType$jscomp$3)}}(X)),z&&(g[X.mutation$jscomp$4.entityKey]=
g[X.mutation$jscomp$4.entityKey]?g[X.mutation$jscomp$4.entityKey].then(z):z()));
return sZ.all(Object.values(g))}),0):B.return()})};
P8V=function(f){var S;f=(S=f.options)==null?void 0:S.persistenceOption;return f==="ENTITY_PERSISTENCE_OPTION_PERSIST"||f==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
qeA=function(f,S){var B,G;_.R(function(g){if(g.nextAddress==1)return _.h(g,_.FV(),2);if(g.nextAddress!=3)return(B=g.yieldResult)?_.h(g,_.P2(B,"readonly",function(b){var z={},X=Object.keys(S).map(function(w){var F=S[w]?[].concat(_.$d(S[w])):[];return is9(b,w,F,z)});
return sZ.all(X).then(function(){return z})}),3):g.return();
G=g.yieldResult;Object.keys(G).length>0&&f.dispatch(HsG(G));_.TT(g)})};
is9=function(f,S,B,G){return v2(f,S,B).then(function(g){G[S]=$I1(B,g)})};
$I1=function(f,S){if(S.length!==f.length)throw Error("Cf");return S.reduce(function(B,G,g){B[f[g]]=G;return B},{})};
roW=function(f){var S=f.filter(function(g){var b;return(g==null?void 0:(b=g.transferEntity)==null?void 0:b.transferState)==="TRANSFER_STATE_COMPLETE"}).length,B=f.filter(function(g){var b;
return(g==null?void 0:(b=g.transferEntity)==null?void 0:b.transferState)==="TRANSFER_STATE_FAILED"}).length,G=f.filter(function(g){var b;
return(g==null?void 0:(b=g.transferEntity)==null?void 0:b.transferState)&&QHG.includes(g.transferEntity.transferState)});
if(!(S||G!=null&&G.length))return 0;S=_.Yes(G)+S;f=f.length-B;return f===0?0:Math.round(S*100/f)/100};
_.Yes=function(f){var S=[];S=S.concat.apply(S,_.$d(f.filter(function(b){return b.streamEntity}).map(function(b){var z=Object.assign({},b.streamEntity),X,w=(X=b.transferEntity)==null?void 0:X.transferState;
z.streamsProgress=z.streamsProgress||[];z.streamsProgress=z.streamsProgress.map(function(F){var V=Object.assign({},F);V.numBytesDownloaded=w==="TRANSFER_STATE_COMPLETE"?F.numTotalBytes:F.numBytesDownloaded;return V});
return z}).map(function(b){return b.streamsProgress})));
var B=f=0;S=_.m(S);for(var G=S.next();!G.done;G=S.next()){var g=G.value;G=Number(g.numBytesDownloaded);g=Number(g.numTotalBytes);B+=isNaN(G)?0:G;f+=isNaN(g)?0:g}return f===0?0:Math.round(B*100/f)/100};
jHs=function(f){if(!f||!f.expirationTimestamp||!f.action)return!1;var S=(0,_.fO)()/1E3;return Number(f.expirationTimestamp)>=S};
KJ=function(f){return f&&f.expirationTimestamp&&f.action?jHs(f)&&f.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.d9=function(f){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(f||"TRANSFER_STATE_UNKNOWN")};
Oss=function(f){var S=new a7M;if(f!==void 0){var B=Math.ceil(Math.log2(f.length*4+2)/7);B=B===void 0?2:B;zc(S,10);S.submessagePosStack.push(S.pos);S.submessagePosStack.push(B);S.pos+=B;Rc(S,f.length*1.2);B=A_W(f,S.buf.subarray(S.pos));S.pos+B>S.buf.length&&(Rc(S,B),B=A_W(f,S.buf.subarray(S.pos)));S.pos+=B;f=S.submessagePosStack.pop();B=S.submessagePosStack.pop();for(var G=S.pos-B-f;f--;){var g=f?128:0;S.view.setUint8(B++,G&127|g);G>>=7}}S=new Uint8Array(S.buf.buffer,S.buf.byteOffset,S.pos);return(new TextDecoder("utf-8")).decode(S)};
_.iC=function(f){var S=0;f=_.m(f);for(var B=f.next(),G={};!B.done;G={transferState$jscomp$3:void 0},B=f.next()){var g=B.value,b=void 0;B=(b=g.streamEntity)!=null?b:{};b=void 0;G.transferState$jscomp$3=(b=g.transferEntity)==null?void 0:b.transferState;b=g=void 0;((g=B)==null?0:(b=g.streamsProgress)==null?0:b.length)&&B.streamsProgress.forEach(function(z){return function(X){X=Number(z.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?X.numTotalBytes:X.numBytesDownloaded);isFinite(X)&&(S+=X)}}(G))}return S};
xI9=function(f){return f.some(function(S){var B;if(!(S==null?0:(B=S.transferEntity)==null?0:B.transferState)){var G;return!(S==null?0:(G=S.policyEntity)==null?0:G.action)||S.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return QHG.includes(S.transferEntity.transferState)})};
ERx=function(f,S){if(!S)return!1;if(_.K("of_pb_en_po_ks"))return!0;var B;f=(B=_.w9(f,"offlineVideoPolicy",_.XV(S,"offlineVideoPolicy")))!=null?B:void 0;return!!f&&KJ(f)};
_.kwV=function(f){var S=["TRANSFER_STATE_COMPLETE"];S=S===void 0?Lw9:S;return f.filter(function(B){var G,g;return S.includes((g=(G=B.transferEntity)==null?void 0:G.transferState)!=null?g:"TRANSFER_STATE_UNKNOWN")})};
nRM=function(f,S){if(S){var B,G=(B=_.w9(f,"playbackData",_.XV(S,"playbackData")))!=null?B:null,g;B=(g=_.w9(f,"transfer",_.XV(S,"transfer")))!=null?g:null;var b;g=(b=_.w9(f,"offlineVideoStreams",_.XV(S,"offlineVideoStreams")))!=null?b:null;var z;f=(z=_.w9(f,"offlineVideoPolicy",_.XV(S,"offlineVideoPolicy")))!=null?z:null;if(G||B||g||f)return{playbackDataEntity:G,transferEntity:B,streamEntity:g,policyEntity:f}}};
_.H2=function(f){var S=f.playbackData;if(!S)return[];var B=[];S=_.m(Object.keys(S));for(var G=S.next();!G.done;G=S.next()){var g=G.value;if(!sHG(f,_.mW(g).entityId)&&(G=nRM(f,_.mW(g).entityId))){var b=void 0,z=void 0;g=(z=Number((b=_.w9(f,"playbackData",g))==null?void 0:b.streamDownloadTimestampSeconds))!=null?z:(0,_.fO)();B.push({entity:G,streamDownloadTimestamp:g})}}return B.sort(function(X,w){var F=X.streamDownloadTimestamp,V=w.streamDownloadTimestamp;return V===F?X.entity.streamEntity&&!w.entity.streamEntity?
1:-1:V-F}).map(function(X){return X.entity})};
DIN=function(f){return _.kwV(_.H2(f))};
_.I9Q=function(f){return _.H2(f).filter(function(S){var B;if(((B=S.policyEntity)==null?0:B.action)&&S.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var G;if((G=S.transferEntity)==null?0:G.transferState){var g;return QHG.includes((g=S.transferEntity)==null?void 0:g.transferState)}return!0})};
sHG=function(f,S){var B;return((B=_.w9(f,"downloadStatusEntity",_.XV(S,"downloadStatusEntity")))==null?void 0:B.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
UI9=function(f){var S;if(f==null?0:(S=f.playbackDataEntity)==null?0:S.key)return _.mW(f.playbackDataEntity.key).entityId;var B;if(f==null?0:(B=f.transferEntity)==null?0:B.key)return _.mW(f.transferEntity.key).entityId;var G;if(f==null?0:(G=f.streamEntity)==null?0:G.key)return _.mW(f.streamEntity.key).entityId;var g;if(f==null?0:(g=f.policyEntity)==null?0:g.key)return _.mW(f.policyEntity.key).entityId};
PHN=function(f){var S=new Set,B;f=(B=f.mainDownloadsListEntity)==null?void 0:B[C8j];var G;if(!(f==null?0:(G=f.downloads)==null?0:G.length))return S;var g;f==null||(g=f.downloads)==null||g.forEach(function(b){(b==null?0:b.videoItem)&&S.add(b.videoItem)});
return S};
qz=function(f,S){if(S){var B=_.w9(f,"mainVideoEntity",_.XV(S,"mainVideoEntity")),G=_.w9(f,"downloadStatusEntity",_.XV(S,"downloadStatusEntity")),g=_.w9(f,"ytMainChannelEntity",_.XV(S,"ytMainChannelEntity")),b={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};f=nRM(f,S);G=(G==null?void 0:G.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.K("woffle_render_failed_download_state_ks")&&(G==null?void 0:G.downloadState)==="DOWNLOAD_STATE_FAILED";!f&&G&&(f=b);if(f&&B&&
g)return Object.assign({},{videoEntity:B,channelEntity:g},f)}};
Kps=function(f,S){return vms(f,S)==="TRANSFER_STATE_COMPLETE"&&ERx(f,S)};
dxA=function(f,S){if(!S)return!1;var B;f=(B=_.w9(f,"playbackData",_.XV(S,"playbackData")))!=null?B:void 0;return!!f&&!!f.playerResponseJson};
vms=function(f,S){if(!S)return"TRANSFER_STATE_UNKNOWN";var B=_.w9(f,"transfer",_.XV(S,"transfer"));if(B){var G;return(G=B.transferState)!=null?G:"TRANSFER_STATE_UNKNOWN"}B=_.w9(f,"offlineOrchestrationActionWrapperEntity",_.XV(S,"offlineOrchestrationActionWrapperEntity"));f=_.w9(f,"mainVideoEntity",_.XV(S,"mainVideoEntity"));return B||f?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
idM=function(f,S){if(!S)return"TRANSFER_STATE_UNKNOWN";if(f=_.w9(f,"transfer",_.XV(S,"transfer"))){var B;return(B=f.transferState)!=null?B:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
HdK=function(f,S){return S&&(f=_.w9(f,"videoPlaybackPositionEntity",_.XV(S,"videoPlaybackPositionEntity")),f==null?0:f.lastPlaybackPositionSeconds)?Number(f.lastPlaybackPositionSeconds):0};
$xG=function(f,S){return qdT(f).some(function(B){var G;return(B==null?void 0:(G=B.mainPlaylistEntity)==null?void 0:G.playlistId)===S})};
YdV=function(f,S,B){var G=QVG(f,S);if(!G.length)return[];S=[];G=_.m(G);for(var g=G.next();!g.done;g=G.next()){g=g.value;var b=qz(f,g);B&&vms(f,g)!=="TRANSFER_STATE_COMPLETE"||b&&S.push(b)}return S};
QVG=function(f,S){if(!S)return[];var B=_.XV(S,"mainPlaylistEntity"),G;S=(G=f.mainPlaylistEntity)==null?void 0:G[B];G=[];if(S==null||!S.videos)return G;S=_.m(S.videos);for(B=S.next();!B.done;B=S.next()){B=B.value;var g=void 0,b=void 0,z=void 0,X=(g=f)==null?void 0:(b=g.mainPlaylistVideoEntity)==null?void 0:(z=b[B])==null?void 0:z.video;X&&(B=_.mW(X).entityId)&&G.push(B)}return G};
r5K=function(f,S){if(S){var B=_.w9(f,"mainPlaylistEntity",_.XV(S,"mainPlaylistEntity")),G=_.w9(f,"mainPlaylistDownloadStateEntity",_.XV(S,"mainPlaylistDownloadStateEntity"));f=_.w9(f,"ytMainChannelEntity",_.XV(S,"ytMainChannelEntity"));if(G&&B)return Object.assign({},{mainPlaylistEntity:B,mainPlaylistDownloadStateEntity:G},!!f&&{channelEntity:f})}};
qdT=function(f){return jVN(f).sort(function(S,B){return B.addedTimestampMillis-S.addedTimestampMillis}).map(function(S){return S.downloadedPlaylistEntities})};
jVN=function(f){var S=f.mainPlaylistDownloadStateEntity,B=[];if(!S)return B;for(var G=_.m(Object.keys(S)),g=G.next();!g.done;g=G.next()){var b=g.value;g=r5K(f,_.mW(b).entityId);var z=void 0;b=Number((z=S[b])==null?void 0:z.addedTimestampMillis);z=isNaN(b)?(0,_.fO)():b;g!==void 0&&B.push({downloadedPlaylistEntities:g,addedTimestampMillis:z})}return B};
OdN=function(f){var S,B=(S=f.mainPlaylistVideoEntity)!=null?S:{};return new Set(qdT(f).reduce(function(G,g){G=G===void 0?[]:G;var b,z;g==null||(b=g.mainPlaylistEntity)==null||(z=b.videos)==null||z.forEach(function(X){var w;(X=(w=B[X])==null?void 0:w.video)&&G.push(X)});
return G},[]))};
xxN=function(f){return"downloadedMusicPlaylistEntities"in f};
EmK=function(f){return"mainPlaylistEntity"in f&&"mainPlaylistDownloadStateEntity"in f};
LpN=function(f){return"videoEntity"in f&&"channelEntity"in f};
keK=function(f){var S=f.musicPlaylistDownloadMetadataEntity,B=[];if(!S)return B;for(var G=_.m(Object.keys(S)),g=G.next();!g.done;g=G.next()){g=g.value;a:{var b=f,z=_.mW(g).entityId;if(z){var X=_.w9(b,"musicPlaylist",_.XV(z,"musicPlaylist"));b=_.w9(b,"musicPlaylistDownloadMetadataEntity",_.XV(z,"musicPlaylistDownloadMetadataEntity"));if(X&&b){X={musicPlaylistEntity:X,musicPlaylistDownloadStateEntity:b};break a}}X=void 0}b=void 0;g=Number((b=S[g])==null?void 0:b.addedTimestampMillis);g=isNaN(g)?(0,_.fO)():
g;X!==void 0&&B.push({downloadedMusicPlaylistEntities:X,addedTimestampMillis:g})}return B};
nmG=function(f){var S=new Set;f=_.m(f);for(var B=f.next();!B.done;B=f.next())if(B=B.value,"musicPlaylistEntity"in B&&"musicPlaylistDownloadStateEntity"in B){B=_.m(B.musicPlaylistEntity.tracks);for(var G=B.next();!G.done;G=B.next())S.add(G.value)}return S};
sV9=function(f,S){if(S){var B=_.w9(f,"musicTrack",_.XV(S,"musicTrack")),G=_.w9(f,"musicArtist",_.XV(S,"musicArtist"))||{};if((f=nRM(f,S))&&B&&G)return Object.assign({},{musicTrackEntity:B,musicArtistEntity:G},f)}};
Dxx=function(f){var S=f.musicTrackDownloadMetadataEntity,B=[];if(!S)return[];S=_.m(Object.keys(S));for(var G=S.next();!G.done;G=S.next()){var g=G.value;G=sV9(f,_.mW(g).entityId);var b=void 0;g=Number((b=_.w9(f,"musicTrackDownloadMetadataEntity",g))==null?void 0:b.addedTimestampMillis);b=isNaN(g)?(0,_.fO)():g;G!==void 0&&B.push({downloadedMusicEntities:G,addedTimestampMillis:b})}return B};
CHG=function(f,S){if(!S)return[];if(Object.values(I69).includes(S))return UxN(f,S);S=_.XV(S,"musicPlaylist");var B;f=(B=f.musicPlaylist)==null?void 0:B[S];B=[];if(f==null||!f.tracks)return B;f=_.m(f.tracks);for(S=f.next();!S.done;S=f.next())(S=_.mW(S.value).entityId)&&B.push(S);return B};
UxN=function(f,S){var B=new Set,G=keK(f).map(function(b){return b.downloadedMusicPlaylistEntities});
G=nmG(G);G=_.m(G);for(var g=G.next();!g.done;g=G.next())(g=_.mW(g.value).entityId)&&B.add(g);return puN(f).downloadedMusicEntities.filter(function(b){var z;if((z=b.musicTrackEntity)!=null&&z.videoId){b=b.musicTrackEntity;if(z=S==="PPOM"?!0:!B.has(b.videoId))b:switch(b=b.musicVideoType,S){case "PPSE":z=b==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:z=b!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}b=z}else b=!1;return b}).map(function(b){var z;
return(z=b.musicTrackEntity)==null?void 0:z.videoId})};
puN=function(f){var S=Dxx(f).sort(function(B,G){return G.addedTimestampMillis-B.addedTimestampMillis}).map(function(B){return"downloadedMusicEntities"in B?B.downloadedMusicEntities:xxN(B)?B.downloadedMusicPlaylistEntities:{}});
f=keK(f).sort(function(B,G){return G.addedTimestampMillis-B.addedTimestampMillis}).map(function(B){return"downloadedMusicEntities"in B?B.downloadedMusicEntities:xxN(B)?B.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:S,downloadedMusicPlaylistEntities:f}};
NxK=function(f,S){S=_.nL("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?CHG(f,S):QVG(f,S);if(!S.length)return"TRANSFER_STATE_UNKNOWN";S=S.map(function(B){return idM(f,B)});
return A5K(S)};
A5K=function(f){var S=new Set(f);if(S.has("TRANSFER_STATE_FAILED")&&S.size===1)return"TRANSFER_STATE_FAILED";S.delete("TRANSFER_STATE_FAILED");if(S.has("TRANSFER_STATE_UNKNOWN")&&S.size===1)return"TRANSFER_STATE_PRE_TRANSFER";S.delete("TRANSFER_STATE_UNKNOWN");if(S.has("TRANSFER_STATE_PRE_TRANSFER")&&S.size===1||S.size===0)return"TRANSFER_STATE_PRE_TRANSFER";f=S.has("TRANSFER_STATE_TRANSFERRING");S=S.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return f||S?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
$r=function(f){var S=f.mainVideoDownloadStateEntity,B=[];if(!S)return[];S=_.m(Object.keys(S));for(var G=S.next();!G.done;G=S.next()){var g=G.value;if(!sHG(f,_.mW(g).entityId)){G=qz(f,_.mW(g).entityId);var b=void 0,z=void 0;g=(z=Number((b=_.w9(f,"mainVideoDownloadStateEntity",g))==null?void 0:b.addedTimestampMillis))!=null?z:(0,_.fO)();G!==void 0&&B.push({downloadedVideoEntities:G,addedTimestampMillis:g})}}return B};
Mxx=function(f){return $r(f).sort(function(S,B){return B.addedTimestampMillis-S.addedTimestampMillis}).map(function(S){return S.downloadedVideoEntities})};
_.txN=function(f){var S=OdN(f),B=_.QI(f),G=PHN(f),g=$r(f).filter(function(z){var X,w;if((z==null?void 0:(X=z.downloadedVideoEntities)==null?void 0:(w=X.transferEntity)==null?void 0:w.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var F,V;z=z==null?void 0:(F=z.downloadedVideoEntities)==null?void 0:(V=F.videoEntity)==null?void 0:V.key;return _.K("kevlar_use_library_entity")?z&&(G.has(z)||B[z]):z&&!S.has(z)}),b=jVN(f).filter(function(z){return NxK(f,z.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.$d(g),_.$d(b)).sort(function(z,X){return X.addedTimestampMillis-z.addedTimestampMillis}).map(function(z){return ZdW(z)})};
uYK=function(f,S){if(S&&ERx(f,S)){var B,G,g=(G=(B=_.w9(f,"playbackData",_.XV(S,"playbackData")))!=null?B:void 0)==null?void 0:G.playerResponseJson;if(g){try{var b=JSON.parse(g);var z=_.w9(f,"transfer",_.XV(S,"transfer")),X=HdK(f,S);X&&(b=Object.assign({},b,{playerConfig:Object.assign({},b.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+X*1E3}}})}));b.cotn=z==null?void 0:z.cotn}catch(w){}return b}}};
_.y5M=function(f){var S,B,G;f=(G=(B=((S=f.downloadsPageViewConfigurationEntity)!=null?S:{})[_.Yr])==null?void 0:B.smartDownloadsOptInBannerVisibility)!=null?G:{};var g;return(g=_.H(f,a6V))!=null?g:{}};
_.QI=function(f){var S,B,G;f=(G=(B=((S=f.mainDownloadsListEntity)!=null?S:{})[_.WpK])==null?void 0:B.downloads)!=null?G:[];S={};B=_.m(f);for(G=B.next();!G.done;G=B.next())f=void 0,S[(f=G.value.videoItem)!=null?f:""]=!0;return S};
c59=function(f){var S=_.QI(f);if(Object.keys(S).length===0)return!1;var B=f.mainVideoEntity;if(!B)return!0;B=_.m(Object.keys(B));for(var G=B.next();!G.done;G=B.next()){G=G.value;var g=_.mW(G).entityId;if(S[G]&&!sHG(f,g))return!1}return!0};
_.r9=function(f){var S=_.QI(f);return $r(f).sort(function(B,G){return B.addedTimestampMillis-G.addedTimestampMillis}).map(function(B){return B.downloadedVideoEntities}).filter(function(B){var G;
return(B=B==null?void 0:(G=B.videoEntity)==null?void 0:G.key)&&!!S[B]})};
ZdW=function(f){return"downloadedVideoEntities"in f?f.downloadedVideoEntities:"downloadedPlaylistEntities"in f?f.downloadedPlaylistEntities:{}};
l6T=function(f){var S=_.QI(f),B=OdN(f),G=$r(f).filter(function(g){var b,z;return(g=g==null?void 0:(b=g.downloadedVideoEntities)==null?void 0:(z=b.videoEntity)==null?void 0:z.key)&&!S[g]&&!B.has(g)});
f=jVN(f);return[].concat(_.$d(G),_.$d(f)).sort(function(g,b){return b.addedTimestampMillis-g.addedTimestampMillis}).map(function(g){return ZdW(g)})};
_.jf=function(f){if(!_.K("kevlar_use_library_entity"))return l6T(f);var S=$r(f).filter(function(G){var g,b;if(g=G=G==null?void 0:(g=G.downloadedVideoEntities)==null?void 0:(b=g.videoEntity)==null?void 0:b.key){var z,X,w;g=((X=(z=f.mainDownloadsListEntity)==null?void 0:z[C8j])==null?0:(w=X.downloads)==null?0:w.length)?PHN(f).has(G):!1}return g}),B=jVN(f);
return[].concat(_.$d(S),_.$d(B)).sort(function(G,g){return g.addedTimestampMillis-G.addedTimestampMillis}).map(function(G){return ZdW(G)})};
fSN=function(f){var S=_.QI(f),B=OdN(f);return Mxx(f).filter(function(G){var g;return(G=G==null?void 0:(g=G.videoEntity)==null?void 0:g.key)&&!S[G]&&!B.has(G)})};
ofx=function(f){if(!_.K("kevlar_use_library_entity"))return fSN(f);var S=_.QI(f),B=PHN(f);return Mxx(f).filter(function(G){var g;return(G=G==null?void 0:(g=G.videoEntity)==null?void 0:g.key)&&!S[G]&&B.has(G)})};
S2j=function(f,S){S=_.XV(S,"settingEntity");var B,G,g;return!!((g=(G=((B=f.settingEntity)!=null?B:{})[S])==null?void 0:G.settingOptionValue)!=null?g:{}).boolValue};
_.OA=function(f){var S=_.r9(f);if(xI9(S))return 0;var B=[];S=_.m(S);for(var G=S.next();!G.done;G=S.next()){G=G.value;var g=void 0,b=void 0;if((g=G)==null?0:(b=g.videoEntity)==null?0:b.key)g=_.mW(G.videoEntity.key).entityId,G=f,g=_.XV(g,"mainVideoDownloadStateEntity"),G=_.w9(G,"mainVideoDownloadStateEntity",g),(G=Number(G==null?void 0:G.addedTimestampMillis))&&B.push(G)}return Math.max.apply(Math,_.$d(B))};
_.xr=function(f){return f.ui.richGridMiniMode};
_.EA=function(f){return f.ui.richGridItemsPerRow};
_.BUW=function(f){return f.ui.richGridSlimItemsPerRow};
_.G9V=function(f){return f.ui.guideIsExpanded};
_.LJ=function(f){return f.ui.miniplayerIsActive};
_.gf9=function(f){return f.ui.singleOptionSurveyIsActive};
_.kr=function(f){return f.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.eGK=function(f){return f.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.bW9=function(f){return f.ui.inlinePreviewIsActive};
_.mG9=function(f){return f.ui.inlinePreviewIsEnabled};
_.zG9=function(f){return f.ui.miniplayerPlaybackState};
nJ=function(f){return f.ui.isOnline};
_.RG1=function(f){return f.ui.frostedGlassMode};
_.sA=function(f,S){return vms(f.entities,S)};
_.DK=function(f,S){return NxK(f.entities,S)};
X1A=function(f,S){var B;if(S){var G;f=(G=_.w9(f.entities,"offlineVideoPolicy",_.XV(S,"offlineVideoPolicy")))==null?void 0:G.action}else f=void 0;return(B=f)!=null?B:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
w1x=function(f,S){var B;S?(f=_.w9(f.entities,"offlineVideoPolicy",_.XV(S,"offlineVideoPolicy")),f=Number(f==null?void 0:f.expirationTimestamp)):f=void 0;return(B=f)!=null?B:0};
_.hGV=function(f){return _.H2(f.entities).length};
TU1=function(f,S){return qz(f.entities,S)};
FkN=function(f,S){return r5K(f.entities,S)};
Ic=function(f,S){return(f=qz(f.entities,S))?_.Yes([f]):0};
_.VRN=function(f,S){var B=_.nL("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(B){var G=f.entities;var g=CHG(G,S);if(g.length){var b=[];g=_.m(g);for(var z=g.next();!z.done;z=g.next())(z=sV9(G,z.value))&&b.push(z);G=b}else G=[]}else G=YdV(f.entities,S);var X;if(B){var w=f.entities;S?(S=_.XV(S,"musicPlaylist"),w=(X=w.musicPlaylist)==null?void 0:X[S],X=w!=null&&w.tracks?w.tracks.length:0):X=0}else X=f.entities,S?(S=_.XV(S,"mainPlaylistEntity"),X=(w=X.mainPlaylistEntity)==null?void 0:w[S],X=X!=null&&X.videos?
X.videos.length:0):X=0;return G.length!==X?0:G?roW(G):0};
_.Jv9=function(f){return f.download.isLeaderTab};
_.Pe1=function(f,S,B){if(!S&&B){var G=f.entities;if(B){var g=Oss(B),b,z;S=(z=(b=_.w9(G,"offlineabilityEntity",_.XV(g,"offlineabilityEntity")))==null?void 0:b.addToOfflineButtonState)!=null?z:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else S="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else b=f.entities,S?(z=Oss(S),S=(g=(G=_.w9(b,"offlineabilityEntity",_.XV(z,"offlineabilityEntity")))==null?void 0:G.addToOfflineButtonState)!=null?g:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):S="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return S};
vfM=function(f,S){f=f.entities;if(S){S=Oss(S);var B,G;S=(G=(B=_.w9(f,"offlineabilityEntity",_.XV(S,"offlineabilityEntity")))==null?void 0:B.addToOfflineButtonState)!=null?G:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else S="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return S};
_.Kks=function(f){var S=f.entities;f=nJ(f);var B=S2j(S,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.K("kevlar_modern_downloads_page")&&B)var G=!1;else{var g,b;S=(b=(g=((G=S.downloadsPageViewConfigurationEntity)!=null?G:{})[_.Yr])==null?void 0:g.smartDownloadsOptInBannerVisibility)!=null?b:{};G=f?!!S.visibleWithConnection:!!S.visibleWithoutConnection}return G};
_.dGM=function(f){return S2j(f.entities,"SMART_DOWNLOADS_ENABLED")};
_.iWx=function(f){return c59(f.entities)};
HWM=function(f){return _.r9(f.entities).every(function(S){var B;return(S==null?void 0:(B=S.transferEntity)==null?void 0:B.transferState)&&!QHG.includes(S.transferEntity.transferState)})};
_.q2T=function(f,S){return sHG(f.entities,S)};
$GN=function(f,S){if(S){var B,G;f=(G=(B=_.w9(f.entities,"downloadStatusEntity",_.XV(S,"downloadStatusEntity")))==null?void 0:B.downloadState)!=null?G:"DOWNLOAD_STATE_UNKNOWN"}else f="DOWNLOAD_STATE_UNKNOWN";return f};
UA=function(f,S){return HdK(f.entities,S)};
jR9=function(f){f=_.QR1(f);var S=f.hours===void 0?0:f.hours,B=f.minutes===void 0?0:f.minutes,G=f.seconds===void 0?0:f.seconds,g=S>0;f=[];g&&(S=_.Y2x(S),f.push(S));S=g;S=S===void 0?!1:S;B=(["af","be","lt"].includes(_.CJ)||S)&&B<10?rvG().format(B):(new Intl.NumberFormat("en-u-nu-latn")).format(B);f.push(B);B=rvG().format(G);f.push(B);B=":";"da fi id si sr sr-Latn".split(" ").includes(_.CJ)&&(B=".");return f.join(B)};
_.QR1=function(f){var S=f.hours||0,B=f.minutes||0,G=f.seconds||0;S=G+B*60+S*3600+(f.days||0)*86400+(f.weeks||0)*604800+(f.months||0)*2629800+(f.years||0)*31557600;if(S<=0)return{hours:0,minutes:0,seconds:0};f=S;S=Math.floor(f/3600);f%=3600;B=Math.floor(f/60);G=Math.floor(f%60);return{hours:S,minutes:B,seconds:G}};
_.Y2x=function(f){f=(new Intl.NumberFormat("en-u-nu-latn")).format(f);var S=["fr"],B="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(_.CJ)?f.replace(",","\u00a0"):S.includes(_.CJ)?f.replace(",","\u202f"):B.includes(_.CJ)?f.replace(",","."):f};
rvG=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
OWM=function(f){try{return(new _.pJ(5)).format(f)}catch(S){}};
AR=function(f){return{thumbnailOverlayDownloadingRenderer:{state:f}}};
xGN=function(f){if(f=OWM(f))return{thumbnailOverlaySidePanelRenderer:{text:_.B2(f),icon:{iconType:"PLAYLISTS"}}}};
EfV=function(){var f=_.Jf("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.B2(f),icon:{iconType:"PLAY_ALL"}}}};
LkT=function(f){f=_.Nz(f,2);return _.CJ!=="ru"&&_.CJ!=="es_419"&&_.CJ!=="es-419"&&_.CJ!=="es"&&_.CJ!=="es_US"&&_.CJ!=="es-US"&&_.CJ!=="fr"&&_.CJ!=="pl"&&_.CJ!=="it"&&_.CJ!=="nl"&&_.CJ!=="uk"&&_.CJ!=="fr_CA"&&_.CJ!=="fr-CA"||f===""?f:f[0].toLocaleUpperCase()+f.substring(1)};
nfK=function(f){return function(S){var B=f(),G=_.Nz(S,B.dateFormat);S=_.Nz(S,B.timeFormat);var g=k9s.DATETIMEFORMATS[B.joinerStyle];g=g.replace(/'(?!')/g,"");g=g.replace("{0}",S);g=g.replace("{1}",G);return B.capitalize(g)}};
sR1=function(f){return f?typeof f.seconds==="string"&&(f.nanos===void 0||typeof f.nanos==="number"):!1};
DGx=function(f){return new Date(Number(f.seconds)*1E3+(f.nanos||0)*1E-6)};
_.Nz=function(f,S){if(typeof f.getTime==="function")f={date:f};else if(sR1(f))f={date:DGx(f)};else if(typeof sR1(f.timestamp)&&typeof f.i18nInternalSecondsEastOfUtc==="number")f={date:DGx(f.timestamp),timeZone:Mz(-f.i18nInternalSecondsEastOfUtc/60)};else throw Error("Df`"+JSON.stringify(f));var B=f;f=B.date;B=B.timeZone;S=ISQ(S).format(f,B);_.CJ==="zh-TW"&&(f=B?Number(ISQ("H").format(f,B)):f.getHours(),S=f<5?S.replace("\u4e0a\u5348","\u51cc\u6668"):f<8?S.replace("\u4e0a\u5348","\u65e9\u4e0a"):f<12?
S.replace("\u4e0a\u5348","\u4e0a\u5348"):f<13?S.replace("\u4e0b\u5348","\u4e2d\u5348"):f<19?S.replace("\u4e0b\u5348","\u4e0b\u5348"):S.replace("\u4e0b\u5348","\u665a\u4e0a"));return S};
ISQ=function(f){if(UGT.has(f))return UGT.get(f);var S=Ce1(f);S=p1A(S);AvN!==!0&&(AvN=!0);NU1=!0;NU1=!1;S=new ZK(S,k9s);UGT.set(f,S);return S};
Ce1=function(f){return(new ZK(f,k9s)).patternParts_.map(function(S){return S.type===0?"'"+S.text+"'":S.text}).join("")};
p1A=function(f){return _.CJ==="en"||_.CJ==="es_US"||_.CJ==="es-US"?f:f.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(S,B,G){return"H".repeat(B.length)+G})};
cvG=function(f,S){MRM||(_.tR=_.ZWx,MRM=new tRj);var B=MRM;a:if(f=u1W(f),S=u1W(S||new Date),f>S)B=f.getTime()-S.getTime()>6048E5?_.Nz(f,1):aS1(f);else{for(var G=0;yvx(f,12*(G+1))<S;)++G;if(G>0)B=B.format(-G,0);else{for(G=0;yvx(f,G+1)<S;)++G;if(G>0)B=B.format(-G,2);else{f=S.getTime()-f.getTime();S=_.m(WkM);for(G=S.next();!G.done;G=S.next()){G=G.value;var g=G.unit,b=Math.floor(f/G.unitDuration);if(b>=(G.threshold===void 0?1:G.threshold)){B=B.format(-b,g);break a}}B=B.format(-0,7)}}}return B};
u1W=function(f){if(typeof f.getTime==="function")return f;if(sR1(f))return DGx(f);throw Error("Ef`"+JSON.stringify(f));};
yvx=function(f,S){for(var B=0,G;;++B)if(G=new Date(f.getFullYear(),f.getMonth()+S,f.getDate()-B,f.getHours(),f.getMinutes(),f.getSeconds()),G.getMonth()===(f.getMonth()+S)%12)return G};
_.uC=function(f){return{runs:[{text:f}]}};
_.ac=function(f){if(f&&f.simpleText)return f.simpleText;var S="";if(f&&f.runs)for(var B=0;B<f.runs.length;B++)f.runs[B].text&&(S+=f.runs[B].text);return S};
frT=function(f,S,B,G){return f.videoEntity&&!f.policyEntity&&B!=="DOWNLOAD_STATE_FAILED"?[AR("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:KJ(f.policyEntity)&&S!=="TRANSFER_STATE_FAILED"&&S!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?S==="TRANSFER_STATE_PAUSED_BY_USER"?[AR("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.d9(S)?[AR("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:f.videoEntity.lengthSeconds?lSs(f.videoEntity.lengthSeconds,G):[]:
[AR("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
lSs=function(f,S){var B=[{thumbnailOverlayTimeStatusRenderer:{text:_.B2(jR9({seconds:f})),style:"DEFAULT"}}];S&&(f=S<=0||f<=0?0:S>=f?100:Math.ceil(S*100/f),f>0&&B.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:f}}));return B};
oZG=function(f,S,B,G,g){if(S==="TRANSFER_STATE_UNKNOWN"||!f)return{};if(_.d9(S)||S==="TRANSFER_STATE_PRE_TRANSFER")var b=[AR("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var z,X;if(S==="TRANSFER_STATE_COMPLETE"&&((z=f.mainPlaylistEntity)==null?0:(X=z.videos)==null?0:X.length)){if(_.K("web_modern_collections_v2")){var w;var F=(b=f.mainPlaylistEntity)==null?void 0:(w=b.videos)==null?void 0:w.length;b=(b=OWM(F))?{thumbnailOverlayBottomPanelRenderer:{text:_.B2(b),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var V;b=xGN((F=f.mainPlaylistEntity)==null?void 0:(V=F.videos)==null?void 0:V.length)}var J;b=[EfV(),Object.assign({},(J=b)!=null?J:{})]}else b=[]}J=b;a:if(S==="TRANSFER_STATE_PRE_TRANSFER")B=Gc(_.Jf("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(S==="TRANSFER_STATE_TRANSFER_IN_QUEUE")B=Gc(_.Jf("WAITING_TO_DOWNLOAD"));else if(_.d9(S))B=Math.floor(B*100).toString(),B=Gc(_.Jf("DOWNLOADING_PERCENT",{percent:B},"Downloading... "+B+"%"));else{if(G&&(_.K("playlist_is_offline_selector_killswitch")&&
(g=_.oy().resolve(_.N7).isNetworkAvailable()),g)){B=sN9(_.Jf("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),k6V(G));break a}B=void 0}S=S==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.Jf("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},J.length?{thumbnailOverlays:J}:{},B?{viewPlaylistText:B}:{viewPlaylistText:_.uC("")},S.length?{badges:S}:{})};
SXV=function(f,S,B,G,g,b){if(S==="TRANSFER_STATE_UNKNOWN"||!f)return{};if(G==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var z=frT(f,S,G);if(f.videoEntity&&!f.policyEntity&&G!=="DOWNLOAD_STATE_FAILED"){var X=_.Jf("WAITING_TO_DOWNLOAD");if(X)return{shortViewCountText:_.uC(X),publishedTimeText:void 0,thumbnailOverlays:z}}if(!KJ(f.policyEntity)){b=f.policyEntity&&!jHs(f.policyEntity)?_.Jf("DOWNLOAD_EXPIRED",{},"Download expired"):
_.Jf("TRANSFER_FAILED",{},"Download failed");var w;if((w=f.policyEntity)==null?0:w.shortMessageForDisabledAction)b=f.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:Gc(b),publishedTimeText:void 0,thumbnailOverlays:z}}if(S==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.uC(_.Jf("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:z};if(S==="TRANSFER_STATE_FAILED"||S==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.uC(_.Jf("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:z};if(S==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(w=_.Jf("WAITING_TO_DOWNLOAD"),G==="DOWNLOAD_STATE_PAUSED"&&(w=_.Jf("DOWNLOAD_PAUSED",{},"Download paused")),w))return{shortViewCountText:_.uC(w),publishedTimeText:void 0,thumbnailOverlays:z};if(_.d9(S))return f=Math.floor(B*100).toString(),{shortViewCountText:_.uC(_.Jf("DOWNLOADING_PERCENT",{percent:f},"Downloading... "+f+"%")),publishedTimeText:void 0,thumbnailOverlays:z};S=void 0;f.videoEntity.publishedTimestampMillis&&
(S=new Date,g&&(S=new Date(g)),S=Gc(cvG(new Date(Number(f.videoEntity.publishedTimestampMillis)),S)));g=[];_.K("kevlar_woffle_badge_killswitch")||(g=[{metadataBadgeRenderer:{label:_.Jf("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var F;f=Gc((F=f.videoEntity.localizedStrings)==null?void 0:F.viewCount);return Object.assign({},b?{shortViewCountText:void 0}:{shortViewCountText:f},b?{}:{publishedTimeText:S},{badges:g,thumbnailOverlays:z})};
GEQ=function(f,S){f=f===void 0?BYA:f;switch(S.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:S.payload.playlistId,inviteLinkURL:S.payload.inviteLinkUrl};default:return f}};
efs=function(f,S){f=f===void 0?gZW:f;switch(S.type){case "SET_CURRENT_FORM_ID":return S=S.payload.formId,f.currentFormId===S?f:{currentFormId:S,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var B=S.payload;S=B.groupId;B=B.command;if(f.currentFormId){var G=Object.assign({},f.commandsMap);G[S]=B;f=Object.assign({},f,{commandsMap:G})}return f;case "RESET_COMMAND_MAP":return Object.assign({},f,{commandsMap:{}});default:return f}};
mwW=function(f,S){f=f===void 0?bDT:f;switch(S.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},f,{guideIsExpanded:S.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},f,{scrollAtTop:S.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},f,{guideIsVisibleButNotPersistent:S.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},f,{miniplayerIsActive:S.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},f,{singleOptionSurveyIsActive:S.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},f,{slimlineSurveyRatingSelectedIndex:S.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},f,{richGridMiniMode:S.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},f,{richGridItemsPerRow:S.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},f,{richGridSlimItemsPerRow:S.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},f,{richGridContainerWidth:S.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},f,{richGridStyle:S.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},f,{currentPageType:S.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},f,{inlinePreviewIsActive:S.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},f,{inlinePreviewIsEnabled:S.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},f,{darkModeIsEnabled:S.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
f,{miniplayerPlaybackState:S.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},f,{tabGesturesIsActive:S.payload});case "SET_ONLINE_STATUS":return Object.assign({},f,{isOnline:S.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},f,{chipBarIsSticky:S.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},f,{frostedGlassMode:S.payload});default:return f}};
RfT=function(f,S){f=f===void 0?zfs:f;switch(S.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},f,{transcription:S.payload});case "SET_OVERLAY_STATE":return Object.assign({},f,{overlay:S.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return f}};
KiN=function(){return h2(Object.assign({},{continuation:XnT,entities:l7W,download:wnQ,reportChannelAbuse:hfT,share:TYs,talkToRecs:FiN,ui:mwW,voiceSearch:RfT,watch:VEQ,ypc:J0T,shorts:POM,radioButtonGroup:efs,collabInviteLink:GEQ},vZ1))};
HDG=function(){return _.K("web_player_entities_middleware")?new yI(KiN(),[dwM,iDx]):new yI(KiN(),[dwM])};
_.W2=function(){qXx||(qXx=HDG());return qXx};
$wN=function(f,S,B){if(f.length)return{titleText:_.B2(S!=null?S:_.Jf("DOWNLOADS",void 0,"Downloads")),contents:f.map(function(G){var g=G.videoEntity;G={videoId:g.videoId,title:Gc(g.title),shortBylineText:Gc(G.channelEntity.title),thumbnail:g.thumbnail};var b=g.videoId?UA(_.W2().getState(),g.videoId):0;g.videoId&&B?G.navigationEndpoint=_.Sf(g.videoId,B,void 0,void 0,b):g.videoId&&(G.navigationEndpoint=LnA(g.videoId,b,g.lengthSeconds));g.lengthSeconds&&(G.thumbnailOverlays=lSs(g.lengthSeconds,b));return{playlistPanelVideoRenderer:G}}),
totalVideos:f.length}};
QhV=function(f){return(f=(0,_.$v.getValueByKeys)(f,"playlistId"))?{playlistId:f}:null};
YX1=function(){return{}};
r0Q=function(f,S){return new _.TM(function(B,G){f.then(function(g){if(g){if(g=S(g))return B(g);G()}},G)})};
jh1=function(f){var S,B,G,g=(S=f.contents)==null?void 0:(B=S.twoColumnWatchNextResults)==null?void 0:(G=B.autoplay)==null?void 0:G.autoplay,b,z,X;S=(b=f.contents)==null?void 0:(z=b.twoColumnWatchNextResults)==null?void 0:(X=z.playlist)==null?void 0:X.playlist;return g&&S&&S.playlistId?{rawResponse:f,autoplayRenderer:g,playlistPanelRenderer:S,playlistId:S.playlistId}:null};
xwQ=function(f){var S=S===void 0?"UNKNOWN_INTERFACE":S;if(f.length===1)return f[0];var B=ODK[S];if(B){B=new RegExp(B);for(var G=_.m(f),g=G.next();!g.done;g=G.next())if(g=g.value,B.exec(g))return g}var b=[];Object.entries(ODK).forEach(function(z){var X=_.m(z);z=X.next().value;X=X.next().value;S!==z&&b.push(X)});
B=new RegExp(b.join("|"));f.sort(function(z,X){return z.length-X.length});
G=_.m(f);for(g=G.next();!g.done;g=G.next())if(g=g.value,!B.exec(g))return g;return f[0]};
_.lC=function(f){return"/youtubei/v1/"+xwQ(f)};
_.fn=function(f){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:f}}}}};
_.oe=function(f){return _.fn(_.uC(f))};
EZN=function(f,S){var B={mode:"NORMAL"};f&&(B.autoplayVideo=f.navigationEndpoint,B.nextButtonVideo=f.navigationEndpoint);S&&(B.previousButtonVideo=S.navigationEndpoint);return B};
nZG=function(f,S,B){if(!B||!B.sets)return{sets:[EZN(f,S)]};var G=B.sets.find(function(z){return z.mode==="NORMAL"}),g=(0,_.$v.unsafeClone)(B);
if(!G)return g.sets.push(EZN(f,S)),g;if(!f)return B;G=_.$v.getValueByKeys.apply(null,[G].concat(_.$d(Li1)));var b=_.$v.getValueByKeys.apply(null,[f].concat(_.$d(kEs)));if(G===b)return B;g.sets=g.sets.filter(function(z){return z.mode!=="NORMAL"});
g.sets.push(EZN(f,S));return g};
sh9=function(f){return!!f.playlistPanelVideoRenderer&&!f.playlistPanelVideoRenderer.unplayableText};
Dw1=function(f){return!!f.playlistPanelVideoRenderer&&!!f.playlistPanelVideoRenderer.title};
Irj=function(f,S){if(S.contents&&!(f>=S.contents.length)&&(f=S.contents.slice(f).find(sh9)))return f.playlistPanelVideoRenderer};
Uwj=function(f,S){if(S.contents)return(S=S.contents.find(function(B){return!!B.playlistPanelVideoRenderer&&B.playlistPanelVideoRenderer.videoId===f}))?S.playlistPanelVideoRenderer:void 0};
CON=function(f,S){return S.contents?S.contents.findIndex(function(B){return!!B.playlistPanelVideoRenderer&&B.playlistPanelVideoRenderer.videoId===f}):-1};
pnK=function(f,S){return S.contents?S.contents.findIndex(function(B){return!!B.playlistPanelVideoRenderer&&B.playlistPanelVideoRenderer.playlistSetVideoId===f}):-1};
A0N=function(f,S){f.contents&&S!==-1&&f.contents.splice(S,1).length===1&&f.totalVideos!==void 0&&(--f.totalVideos,delete f.videoCountText)};
_.NYQ=function(f){var S=[];if(!f||!f.contents)return S;f=_.m(f.contents);for(var B=f.next();!B.done;B=f.next())B=B.value,B.playlistPanelVideoRenderer&&B.playlistPanelVideoRenderer.videoId&&S.push(B.playlistPanelVideoRenderer.videoId);return S};
_.MEV=function(f){if(f&&f.contents)return(f=f.contents.find(function(S){return!!S.playlistPanelVideoRenderer&&!!S.playlistPanelVideoRenderer.selected})||f.contents[f.currentIndex])?f.playlistPanelVideoRenderer:void 0};
ZD1=function(f,S,B,G,g,b,z){g=g===void 0?!1:g;b=b===void 0?!1:b;z=z===void 0?!1:z;if(f.contents&&f.contents.length!==0){G&&(f.contents=f.contents.filter(G));G=f.contents.length;for(var X=0;X<G;X++){var w=f.contents[X].playlistPanelVideoRenderer;w&&(X===S?(b&&delete w.menu,w.indexText=_.uC("\u25b6")):g||f.isInfinite||w.indexText===void 0?delete w.indexText:w.indexText=_.uC((X+1+B).toString()))}f.currentIndex=S+B;z&&(delete f.videoCountText,f.totalVideos=G)}};
_.Sa=function(f){f=tEK(f);if(f){var S=f.length;var B=-60%S;B<0&&(B=S+B);f=f.slice(S-B)+f.slice(0,S-B)}else f="";B="";for(S=0;S<f.length&&f[S]!==uo9;S++)B+=f[S];return B};
_.arK=function(f,S){var B=document.body;S=S===void 0?function(X){return X}:S;
var G,g=null;f=_.m(f);for(G=f.next();!G.done;G=f.next()){var b=G.value;G=void 0;var z=(G=b[2])!=null?G:"div";G=document.createElement(z);g||(g=G);z=b[0];b=b[1];z&&(G.id=S(z));if(b)for(b=_.m(b),z=b.next();!z.done;z=b.next())G.classList.add(S(z.value));B.appendChild(G);B=G}return[g,B]};
y0G=function(f,S){for(var B="",G=0;G<S;G++)B+=f.charAt(Math.floor(Math.random()*f.length));return B};
Bt=function(f){return y0G("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",f)};
GF=function(f){return y0G("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",f)};
g3=function(f){return y0G("0123456789",f)};
ea=function(){var f=performance.now(),S=new Date;var B="2."+S.getFullYear()+String(S.getMonth()+1).padStart(2,"0")+String(S.getDate()).padStart(2,"0");for(var G,g=Math.floor(Math.random()*11)+15,b=[],z=0;z<g;z++)b.push(Math.floor(Math.random()*26476865)+24547720);G=b.join(",");var X=Bt(10),w=Bt(100),F=Bt(102),V=Bt(106),J=Bt(108),P=Bt(11),d=Bt(1140),Q=Bt(123),x=Bt(14),E=Bt(16),U=Bt(1900),A=Bt(23),t=Bt(26),M=Bt(34),a=Bt(397),l=Bt(44),mx=Bt(5),zj=Bt(72),VN=Bt(74),$Q=Bt(75),OV=Bt(88),rW=Bt(91),MA="rr2---sn-q4flrnee rr1---sn-t0a7sn7d rr3---sn-q4fl6n6d rr4---sn-q4fzen7l rr1---sn-aigzrnld rr2---sn-ntq7yned rr2---sn-5hnednss rr2---sn-q4flrnl7 rr5---sn-ntqe6nee rr2---sn-aigl6ney rr3---sn-q4fl6nde rr4---sn-5hne6nsd rr4---sn-t0a7sn7d rr2---sn-q4fl6nsr rr2---sn-q4fl6n6d rr3---sn-q4flrnsd rr1---sn-q4flrn7r rr5---sn-5hneknes rr1---sn-q4flrnsk rr2---sn-t0a7ln7d".split(" ");
var UV=MA[Math.floor(Math.random()*MA.length)];var W7=(new Date("2010-01-01")).getTime();var c7=(new Date(W7+Math.random()*((new Date).getTime()-W7))).toISOString().split("T")[0];for(var Q$,To=[],Ci=0;Ci<4;Ci++)To.push(Math.floor(Math.random()*100));Q$=To.join(".");var VM=Number(g3(5)),Go=Number(g3(6)),Io=Number(g3(7)),uz=Number(g3(9)),RT=g3(1),P7=g3(10),O8=g3(16),ao=g3(19),H7=g3(2),um=g3(20),CQ=g3(21),t1=g3(3),em=g3(4),Ig=g3(5),vO=g3(6),v7=g3(7),YX=g3(8),we=g3(9);var bo=y0G("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var bz=[GF(5),GF(5),GF(5)].join("%2C"),KQ=[g3(3),g3(5),g3(5)].join("%2C"),pk=GF(0),pi=GF(1),Y$=GF(10),fX=GF(108),RO=GF(11),m8=GF(12),wu=GF(13),z1=GF(14),cf=GF(15),ye=GF(16),GM=GF(17),iK=GF(18),nM=GF(19),pM=GF(2),FL=GF(20),e2=GF(22),j0=GF(23),hX=GF(24),J1=GF(266),wN=GF(3),KY=GF(30),TX=GF(34),bm=GF(35),JJ=GF(36),vv=GF(4),kg=GF(40),dz=GF(43),NH=GF(47),xj=GF(5),NA=GF(6),BO=GF(7),Uu=GF(75),lz=GF(8),gz=GF(80),Mb=GF(9),FT="https://www."+GF(12)+".com",c2={},Ey={},si={},uuj={},D3={},gr={},eV={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:G}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:B},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+GF(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:B},{key:"client.name",value:"WEB"},{key:"client.fexp",value:G}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:CQ+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+GF(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:kg,ypcGetOfflineUpsellEndpoint:{params:gz}},trackingParams:bm+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+UV+".googlevideo.com/videoplayback?expire="+P7+"&ei="+A+"&ip="+Q$+"&id=o-AF"+dz+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+KQ+"&mn="+bz+"&ms="+bz+"&mv="+pi+"&mvi="+RT+"&pl="+H7+"&initcwndbps="+v7+"&siu="+RT+"&spc="+l+"&vprv="+RT+"&svpuc="+RT+"&mime=video%2Fmp4&ns="+hX+"&cnr="+H7+"&ratebypass=yes&dur="+YX+"&lmt="+O8+"&mt="+P7+"&fvip=3&c=WEB&txp="+v7+"&n="+E+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:Go,width:640,height:360,lastModified:O8,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:v7,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+UV+".googlevideo.com/videoplayback?expire="+P7+"&ei="+A+"&ip="+Q$+"&id=o-AF"+dz+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+KQ+"&mn="+
bz+"&ms="+bz+"&mv="+pi+"&mvi="+RT+"&pl="+H7+"&initcwndbps="+v7+"&siu="+RT+"&spc="+l+"&vprv="+RT+"&svpuc="+RT+"&mime=video%2Fmp4&ns="+hX+"&cnr="+H7+"&ratebypass=yes&dur="+YX+"&lmt="+O8+"&mt="+P7+"&fvip=3&c=WEB&txp="+v7+"&n="+E+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+fX+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:Go,width:1280,
height:720,lastModified:O8,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:v7,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+UV+".googlevideo.com/videoplayback?expire="+P7+"&ei="+A+"&ip="+Q$+"&id=o-AF"+dz+"&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="+KQ+"&mn="+bz+"&ms="+
bz+"&mv="+pi+"&mvi="+RT+"&pl="+H7+"&initcwndbps="+v7+"&siu="+RT+"&spc="+l+"&vprv="+RT+"&svpuc="+RT+"&mime=video%2Fmp4&ns="+hX+"&gir="+wN+"&clen="+we+"&dur="+YX+"&lmt="+O8+"&mt="+P7+"&fvip=3&keepalive="+wN+"&c=WEB&txp="+v7+"&n="+ye+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:Io,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:t1,end:em},lastModified:O8,contentLength:we,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Io,approxDurationMs:v7},{itag:248,url:"https://"+UV+".googlevideo.com/videoplayback?expire="+P7+"&ei="+A+"&ip="+Q$+"&id=o-AF"+dz+"&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="+KQ+"&mn="+bz+"&ms="+bz+"&mv="+
pi+"&mvi="+RT+"&pl="+H7+"&initcwndbps="+v7+"&siu="+RT+"&spc="+l+"&vprv="+RT+"&svpuc="+RT+"&mime=video%2Fwebm&ns="+hX+"&gir="+wN+"&clen="+we+"&dur="+YX+"&lmt="+O8+"&mt="+P7+"&fvip=3&keepalive="+wN+"&c=WEB&txp="+v7+"&n="+ye+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/webm; codecs="vp9"',bitrate:Io,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:t1,end:em},lastModified:O8,contentLength:we,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Io,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:v7},{itag:399,url:"https://"+UV+".googlevideo.com/videoplayback?expire="+P7+"&ei="+A+"&ip="+Q$+"&id=o-AF"+dz+"&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="+
KQ+"&mn="+bz+"&ms="+bz+"&mv="+pi+"&mvi="+RT+"&pl="+H7+"&initcwndbps="+v7+"&siu="+RT+"&spc="+l+"&vprv="+RT+"&svpuc="+RT+"&mime=video%2Fmp4&ns="+hX+"&gir="+wN+"&clen="+we+"&dur="+YX+"&lmt="+O8+"&mt="+P7+"&fvip=3&keepalive="+wN+"&c=WEB&txp="+v7+"&n="+ye+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:Io,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:t1,end:em},lastModified:O8,contentLength:we,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Io,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:v7},{itag:136,url:"https://"+UV+".googlevideo.com/videoplayback?expire="+P7+"&ei="+A+"&ip="+Q$+"&id=o-AF"+dz+"&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="+
KQ+"&mn="+bz+"&ms="+bz+"&mv="+pi+"&mvi="+RT+"&pl="+H7+"&initcwndbps="+v7+"&siu="+RT+"&spc="+l+"&vprv="+RT+"&svpuc="+RT+"&mime=video%2Fmp4&ns="+hX+"&gir="+wN+"&clen="+we+"&dur="+YX+"&lmt="+O8+"&mt="+P7+"&fvip=3&keepalive="+wN+"&c=WEB&txp="+v7+"&n="+ye+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Io,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:t1,end:em},lastModified:O8,contentLength:we,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Go,approxDurationMs:v7},{itag:247,url:"https://"+UV+".googlevideo.com/videoplayback?expire="+P7+"&ei="+A+"&ip="+Q$+"&id=o-AF"+dz+"&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="+KQ+"&mn="+
bz+"&ms="+bz+"&mv="+pi+"&mvi="+RT+"&pl="+H7+"&initcwndbps="+v7+"&siu="+RT+"&spc="+l+"&vprv="+RT+"&svpuc="+RT+"&mime=video%2Fwebm&ns="+hX+"&gir="+wN+"&clen="+we+"&dur="+YX+"&lmt="+O8+"&mt="+P7+"&fvip=3&keepalive="+wN+"&c=WEB&txp="+v7+"&n="+ye+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/webm; codecs="vp9"',bitrate:Io,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:t1,end:em},lastModified:O8,contentLength:we,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Go,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:v7},{itag:398,url:"https://"+UV+".googlevideo.com/videoplayback?expire="+P7+"&ei="+A+"&ip="+Q$+"&id=o-AF"+dz+"&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="+
KQ+"&mn="+bz+"&ms="+bz+"&mv="+pi+"&mvi="+RT+"&pl="+H7+"&initcwndbps="+v7+"&siu="+RT+"&spc="+l+"&vprv="+RT+"&svpuc="+RT+"&mime=video%2Fmp4&ns="+hX+"&gir="+wN+"&clen="+we+"&dur="+YX+"&lmt="+O8+"&mt="+P7+"&fvip=3&keepalive="+wN+"&c=WEB&txp="+v7+"&n="+ye+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:Io,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:t1,end:em},lastModified:O8,contentLength:we,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Go,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:v7},{itag:135,url:"https://"+UV+".googlevideo.com/videoplayback?expire="+P7+"&ei="+A+"&ip="+Q$+"&id=o-AF"+dz+"&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="+
KQ+"&mn="+bz+"&ms="+bz+"&mv="+pi+"&mvi="+RT+"&pl="+H7+"&initcwndbps="+v7+"&siu="+RT+"&spc="+l+"&vprv="+RT+"&svpuc="+RT+"&mime=video%2Fmp4&ns="+hX+"&gir="+wN+"&clen="+YX+"&dur="+YX+"&lmt="+O8+"&mt="+P7+"&fvip=3&keepalive="+wN+"&c=WEB&txp="+v7+"&n="+ye+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Go,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:t1,end:em},lastModified:O8,contentLength:YX,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Go,approxDurationMs:v7},{itag:244,url:"https://"+UV+".googlevideo.com/videoplayback?expire="+P7+"&ei="+A+"&ip="+Q$+"&id=o-AF"+dz+"&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="+KQ+"&mn="+
bz+"&ms="+bz+"&mv="+pi+"&mvi="+RT+"&pl="+H7+"&initcwndbps="+v7+"&siu="+RT+"&spc="+l+"&vprv="+RT+"&svpuc="+RT+"&mime=video%2Fwebm&ns="+hX+"&gir="+wN+"&clen="+YX+"&dur="+YX+"&lmt="+O8+"&mt="+P7+"&fvip=3&keepalive="+wN+"&c=WEB&txp="+v7+"&n="+ye+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+fX+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/webm; codecs="vp9"',bitrate:Go,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:t1,end:em},lastModified:O8,contentLength:YX,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Go,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:v7},{itag:397,url:"https://"+UV+".googlevideo.com/videoplayback?expire="+P7+"&ei="+A+"&ip="+Q$+"&id=o-AF"+dz+"&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="+
KQ+"&mn="+bz+"&ms="+bz+"&mv="+pi+"&mvi="+RT+"&pl="+H7+"&initcwndbps="+v7+"&siu="+RT+"&spc="+l+"&vprv="+RT+"&svpuc="+RT+"&mime=video%2Fmp4&ns="+hX+"&gir="+wN+"&clen="+YX+"&dur="+YX+"&lmt="+O8+"&mt="+P7+"&fvip=3&keepalive="+wN+"&c=WEB&txp="+v7+"&n="+ye+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:Go,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:t1,end:em},lastModified:O8,contentLength:YX,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Go,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:v7},{itag:134,url:"https://"+UV+".googlevideo.com/videoplayback?expire="+P7+"&ei="+A+"&ip="+Q$+"&id=o-AF"+dz+"&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="+
KQ+"&mn="+bz+"&ms="+bz+"&mv="+pi+"&mvi="+RT+"&pl="+H7+"&initcwndbps="+v7+"&siu="+RT+"&spc="+l+"&vprv="+RT+"&svpuc="+RT+"&mime=video%2Fmp4&ns="+hX+"&gir="+wN+"&clen="+YX+"&dur="+YX+"&lmt="+O8+"&mt="+P7+"&fvip=3&keepalive="+wN+"&c=WEB&txp="+v7+"&n="+ye+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:Go,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:t1,end:em},lastModified:O8,contentLength:YX,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Go,highReplication:!0,approxDurationMs:v7},{itag:243,url:"https://"+UV+".googlevideo.com/videoplayback?expire="+P7+"&ei="+A+"&ip="+Q$+"&id=o-AF"+dz+"&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="+
KQ+"&mn="+bz+"&ms="+bz+"&mv="+pi+"&mvi="+RT+"&pl="+H7+"&initcwndbps="+v7+"&siu="+RT+"&spc="+l+"&vprv="+RT+"&svpuc="+RT+"&mime=video%2Fwebm&ns="+hX+"&gir="+wN+"&clen="+YX+"&dur="+YX+"&lmt="+O8+"&mt="+P7+"&fvip=3&keepalive="+wN+"&c=WEB&txp="+v7+"&n="+ye+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/webm; codecs="vp9"',bitrate:Go,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:t1,end:em},lastModified:O8,contentLength:YX,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Go,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:v7},{itag:396,url:"https://"+UV+".googlevideo.com/videoplayback?expire="+P7+"&ei="+A+"&ip="+Q$+"&id=o-AF"+dz+"&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="+
KQ+"&mn="+bz+"&ms="+bz+"&mv="+pi+"&mvi="+RT+"&pl="+H7+"&initcwndbps="+v7+"&siu="+RT+"&spc="+l+"&vprv="+RT+"&svpuc="+RT+"&mime=video%2Fmp4&ns="+hX+"&gir="+wN+"&clen="+YX+"&dur="+YX+"&lmt="+O8+"&mt="+P7+"&fvip=3&keepalive="+wN+"&c=WEB&txp="+v7+"&n="+ye+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:Go,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:t1,end:em},lastModified:O8,contentLength:YX,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Go,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:v7},{itag:133,url:"https://"+UV+".googlevideo.com/videoplayback?expire="+P7+"&ei="+A+"&ip="+Q$+"&id=o-AF"+dz+"&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="+
KQ+"&mn="+bz+"&ms="+bz+"&mv="+pi+"&mvi="+RT+"&pl="+H7+"&initcwndbps="+v7+"&siu="+RT+"&spc="+l+"&vprv="+RT+"&svpuc="+RT+"&mime=video%2Fmp4&ns="+hX+"&gir="+wN+"&clen="+YX+"&dur="+YX+"&lmt="+O8+"&mt="+P7+"&fvip=3&keepalive="+wN+"&c=WEB&txp="+v7+"&n="+ye+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:Go,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:t1,end:em},lastModified:O8,contentLength:YX,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Go,approxDurationMs:v7},{itag:242,url:"https://"+UV+".googlevideo.com/videoplayback?expire="+P7+"&ei="+A+"&ip="+Q$+"&id=o-AF"+dz+"&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="+KQ+"&mn="+
bz+"&ms="+bz+"&mv="+pi+"&mvi="+RT+"&pl="+H7+"&initcwndbps="+v7+"&siu="+RT+"&spc="+l+"&vprv="+RT+"&svpuc="+RT+"&mime=video%2Fwebm&ns="+hX+"&gir="+wN+"&clen="+YX+"&dur="+YX+"&lmt="+O8+"&mt="+P7+"&fvip=3&keepalive="+wN+"&c=WEB&txp="+v7+"&n="+ye+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/webm; codecs="vp9"',bitrate:Go,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:t1,end:em},lastModified:O8,contentLength:YX,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Go,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:v7},{itag:395,url:"https://"+UV+".googlevideo.com/videoplayback?expire="+P7+"&ei="+A+"&ip="+Q$+"&id=o-AF"+dz+"&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="+
KQ+"&mn="+bz+"&ms="+bz+"&mv="+pi+"&mvi="+RT+"&pl="+H7+"&initcwndbps="+v7+"&siu="+RT+"&spc="+l+"&vprv="+RT+"&svpuc="+RT+"&mime=video%2Fmp4&ns="+hX+"&gir="+wN+"&clen="+YX+"&dur="+YX+"&lmt="+O8+"&mt="+P7+"&fvip=3&keepalive="+wN+"&c=WEB&txp="+v7+"&n="+ye+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Go,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:t1,end:em},lastModified:O8,contentLength:YX,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Go,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:v7},{itag:160,url:"https://"+UV+".googlevideo.com/videoplayback?expire="+P7+"&ei="+A+"&ip="+Q$+"&id=o-AF"+dz+"&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="+
KQ+"&mn="+bz+"&ms="+bz+"&mv="+pi+"&mvi="+RT+"&pl="+H7+"&initcwndbps="+v7+"&siu="+RT+"&spc="+l+"&vprv="+RT+"&svpuc="+RT+"&mime=video%2Fmp4&ns="+hX+"&gir="+wN+"&clen="+YX+"&dur="+YX+"&lmt="+O8+"&mt="+P7+"&fvip=3&keepalive="+wN+"&c=WEB&txp="+v7+"&n="+ye+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:Go,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:t1,end:em},lastModified:O8,contentLength:YX,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:VM,approxDurationMs:v7},{itag:278,url:"https://"+UV+".googlevideo.com/videoplayback?expire="+P7+"&ei="+A+"&ip="+Q$+"&id=o-AF"+dz+"&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="+KQ+"&mn="+
bz+"&ms="+bz+"&mv="+pi+"&mvi="+RT+"&pl="+H7+"&initcwndbps="+v7+"&siu="+RT+"&spc="+l+"&vprv="+RT+"&svpuc="+RT+"&mime=video%2Fwebm&ns="+hX+"&gir="+wN+"&clen="+YX+"&dur="+YX+"&lmt="+O8+"&mt="+P7+"&fvip=3&keepalive="+wN+"&c=WEB&txp="+v7+"&n="+ye+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/webm; codecs="vp9"',bitrate:Go,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:t1,end:em},lastModified:O8,contentLength:YX,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:VM,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:v7},{itag:394,url:"https://"+UV+".googlevideo.com/videoplayback?expire="+P7+"&ei="+A+"&ip="+Q$+"&id=o-AF"+dz+"&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="+
KQ+"&mn="+bz+"&ms="+bz+"&mv="+pi+"&mvi="+RT+"&pl="+H7+"&initcwndbps="+v7+"&siu="+RT+"&spc="+l+"&vprv="+RT+"&svpuc="+RT+"&mime=video%2Fmp4&ns="+hX+"&gir="+wN+"&clen="+YX+"&dur="+YX+"&lmt="+O8+"&mt="+P7+"&fvip=3&keepalive="+wN+"&c=WEB&txp="+v7+"&n="+ye+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:VM,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:t1,end:em},lastModified:O8,contentLength:YX,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:VM,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:v7},{itag:140,url:"https://"+UV+".googlevideo.com/videoplayback?expire="+P7+"&ei="+A+"&ip="+Q$+"&id=o-AF"+dz+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
KQ+"&mn="+bz+"&ms="+bz+"&mv="+pi+"&mvi="+RT+"&pl="+H7+"&initcwndbps="+v7+"&siu="+RT+"&spc="+l+"&vprv="+RT+"&svpuc="+RT+"&mime=audio%2Fmp4&ns="+hX+"&gir="+wN+"&clen="+YX+"&dur="+YX+"&lmt="+O8+"&mt="+P7+"&fvip=3&keepalive="+wN+"&c=WEB&txp="+v7+"&n="+ye+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:Go,
initRange:{start:"0",end:"631"},indexRange:{start:t1,end:em},lastModified:O8,contentLength:YX,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Go,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:v7,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+UV+".googlevideo.com/videoplayback?expire="+P7+"&ei="+A+"&ip="+Q$+"&id=o-AF"+dz+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+KQ+"&mn="+bz+"&ms="+bz+"&mv="+pi+"&mvi="+RT+"&pl="+
H7+"&initcwndbps="+v7+"&siu="+RT+"&spc="+l+"&vprv="+RT+"&svpuc="+RT+"&mime=audio%2Fwebm&ns="+hX+"&gir="+wN+"&clen="+v7+"&dur="+YX+"&lmt="+O8+"&mt="+P7+"&fvip=3&keepalive="+wN+"&c=WEB&txp="+v7+"&n="+ye+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'audio/webm; codecs="opus"',bitrate:VM,initRange:{start:"0",end:"265"},indexRange:{start:t1,
end:em},lastModified:O8,contentLength:v7,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:VM,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:v7,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+UV+".googlevideo.com/videoplayback?expire="+P7+"&ei="+A+"&ip="+Q$+"&id=o-AF"+dz+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+KQ+"&mn="+bz+"&ms="+bz+"&mv="+pi+"&mvi="+RT+"&pl="+H7+"&initcwndbps="+v7+"&siu="+RT+"&spc="+l+"&vprv="+RT+"&svpuc="+RT+"&mime=audio%2Fwebm&ns="+
hX+"&gir="+wN+"&clen="+v7+"&dur="+YX+"&lmt="+O8+"&mt="+P7+"&fvip=3&keepalive="+wN+"&c=WEB&txp="+v7+"&n="+ye+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'audio/webm; codecs="opus"',bitrate:VM,initRange:{start:"0",end:"265"},indexRange:{start:t1,end:em},lastModified:O8,contentLength:v7,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:VM,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:v7,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+UV+".googlevideo.com/videoplayback?expire="+P7+"&ei="+A+"&ip="+Q$+"&id=o-AF"+dz+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+KQ+"&mn="+bz+"&ms="+bz+"&mv="+pi+"&mvi="+RT+"&pl="+H7+"&initcwndbps="+v7+"&siu="+RT+"&spc="+l+"&vprv="+RT+"&svpuc="+RT+"&mime=audio%2Fwebm&ns="+hX+"&gir="+wN+"&clen="+YX+"&dur="+YX+"&lmt="+O8+"&mt="+P7+"&fvip=3&keepalive="+wN+"&c=WEB&txp="+
v7+"&n="+ye+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'audio/webm; codecs="opus"',bitrate:Go,initRange:{start:"0",end:"265"},indexRange:{start:t1,end:em},lastModified:O8,contentLength:YX,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Go,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:v7,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="+we+"&docid="+P+"&ei="+A+"&feature="+X+"&fexp="+pk+"&ns="+pM+"&plid="+E+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+pi+"&el="+Y$+"&len="+em+"&of="+e2+
"&uga="+H7+"&vm="+J1},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+we+"&docid="+P+"&ei="+A+"&feature="+X+"&fexp="+pk+"&ns="+pM+"&plid="+E+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+pi+"&el="+Y$+"&len="+em+"&of="+e2+"&uga="+H7+"&vm="+J1},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+we+"&docid="+P+"&ei="+A+"&feature="+X+"&fexp="+pk+"&ns="+pM+"&plid="+E+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
pi+"&el="+Y$+"&len="+em+"&of="+e2+"&uga="+H7+"&vm="+J1},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+A+"&m="+OV+"&oid="+e2+"&plid="+E+"&pltype="+BO+"&ptchn="+e2+"&ptk="+x+"&video_id="+P},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+we+"&docid="+P+"&ei="+A+"&event="+z1+"&feature="+X+"&fexp="+pk+"&ns="+pM+"&plid="+E+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+pi},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+P+"&ei="+A+"&feature="+
X+"&len="+em+"&ns="+pM+"&plid="+E+"&ver="+RT,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+P+"&caps="+wN+"&opi="+we+"&xoaf="+RT+"&hl="+pM+"&ip="+Q$+"&ipbits="+RT+"&expire="+P7+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+Q$+"&key="+wN+"&lang="+mx,name:{simpleText:nM},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+P+"&caps="+wN+"&opi="+we+"&xoaf="+RT+"&hl="+pM+"&ip="+Q$+"&ipbits="+RT+"&expire="+P7+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+Q$+"&key="+wN+"&kind="+wN+"&lang="+pM,name:{simpleText:cf},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:RO,title:BO,lengthSeconds:"1155",keywords:[vv,GM,wu,xj],
channelId:hX,isOwnerViewing:!1,shortDescription:m8,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+P+"/hqdefault.jpg?sqp=-oaymwE"+JJ+"G&rs="+TX,width:168,height:94},{url:"https://i.ytimg.com/vi/"+P+"/hqdefault.jpg?sqp=-oaymwE"+JJ+"G&rs="+TX,width:196,height:110},{url:"https://i.ytimg.com/vi/"+P+"/hqdefault.jpg?sqp=-oaymwE"+JJ+"G&rs="+M,width:246,height:138},{url:"https://i.ytimg.com/vi/"+P+"/hqdefault.jpg?sqp=-oaymwE"+JJ+"G&rs="+M,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
P+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:v7,author:wu,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:v7,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+e2+"/featured_channel.jpg?v="+lz,width:40,height:40}]},trackingParams:bm+"=",navigationEndpoint:{clickTrackingParams:kg,commandMetadata:{webCommandMetadata:{url:"/channel/"+hX,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:hX}},channelName:wu,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:GM}]},subscribed:!1,enabled:!0,type:"FREE",channelId:hX,showPreferences:!1,subscribedButtonText:{runs:[{text:nM}]},unsubscribedButtonText:{runs:[{text:xj}]},trackingParams:bm+"=",unsubscribeButtonText:{runs:[{text:xj}]},serviceEndpoints:[{clickTrackingParams:kg,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[hX],params:lz}},{clickTrackingParams:kg,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:kg,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:bm+"=",dialogMessages:[{runs:[{text:z1},{text:BO},{text:RO}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:vv}]},serviceEndpoint:{clickTrackingParams:kg,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[hX],params:lz}},accessibility:{label:Mb},trackingParams:bm+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:cf}]},accessibility:{label:wu},trackingParams:bm+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:nM}},unsubscribeAccessibility:{accessibilityData:{label:iK}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:YX},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:kg,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:kg,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[hX],params:lz}},unsubscribeCommand:{clickTrackingParams:kg,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[hX],params:lz}},addToWatchLaterCommand:{clickTrackingParams:kg,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:RO,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:kg,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:RO}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+P+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+JJ+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
P+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+RO,width:1280,height:720},title:{simpleText:lz},description:{simpleText:BO},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+GM,externalChannelId:hX,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:v7,category:"Travel & Events",publishDate:c7,ownerChannelName:wu,uploadDate:c7}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:NA},trackingParams:bm+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:kg,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:bm+"="}}],headerText:{simpleText:vv},icon:{infoCardIconRenderer:{trackingParams:bm+"="}},closeButton:{infoCardIconRenderer:{trackingParams:bm+"="}},trackingParams:bm+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:bm+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+RO+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:bo,interpreterSafeUrl:(c2.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+KY+".js",c2),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:RO},{text:Mb,bold:!0}]},endpoint:{clickTrackingParams:kg,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:bm+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:ye}]},actionButton:{buttonRenderer:{text:{runs:[{text:iK}]},navigationEndpoint:{clickTrackingParams:kg,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+P,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
P,target:"TARGET_NEW_WINDOW"}},trackingParams:bm+"="}},trackingParams:bm+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+zj+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+zj+"=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:v7,endMs:v7,title:{accessibility:{accessibilityData:{label:Mb}},simpleText:Y$},metadata:{simpleText:Y$},callToAction:{simpleText:nM},dismiss:{simpleText:z1},endpoint:{clickTrackingParams:kg,commandMetadata:{webCommandMetadata:{url:"/channel/"+hX,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:hX}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:m8}]},subscribed:!1,enabled:!0,type:"FREE",channelId:hX,showPreferences:!1,
subscribedButtonText:{runs:[{text:cf}]},unsubscribedButtonText:{runs:[{text:Mb}]},trackingParams:bm+"=",unsubscribeButtonText:{runs:[{text:m8}]},serviceEndpoints:[{clickTrackingParams:kg,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[hX],params:lz}},{clickTrackingParams:kg,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:kg,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:bm+
"=",dialogMessages:[{runs:[{text:m8},{text:Y$},{text:NA}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:xj}]},serviceEndpoint:{clickTrackingParams:kg,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[hX],params:lz}},accessibility:{label:lz},trackingParams:bm+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:z1}]},
accessibility:{label:GM},trackingParams:bm+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:Y$}},unsubscribeAccessibility:{accessibilityData:{label:m8}}}},trackingParams:bm+"=",isSubscribe:!0,id:um}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+P+"/hqdefault.jpg?sqp=-oaymwE"+JJ+"G&rs="+M,width:168,height:94},{url:"https://i.ytimg.com/vi/"+P+"/hqdefault.jpg?sqp=-oaymwE"+JJ+"G&rs="+TX,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+P+"/hqdefault.jpg?sqp=-oaymwE"+JJ+"G&rs="+M,width:246,height:138},{url:"https://i.ytimg.com/vi/"+P+"/hqdefault.jpg?sqp=-oaymwE"+JJ+"G&rs="+M,width:336,height:188},{url:"https://i.ytimg.com/vi/"+P+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:v7,endMs:v7,title:{accessibility:{accessibilityData:{label:lz}},simpleText:Mb},metadata:{simpleText:wu},endpoint:{clickTrackingParams:kg,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
RO,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:RO,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+UV+".googlevideo.com/videoplayback?source=youtube&oeis="+RT+"&c=WEB&oad="+em+"&ovd="+em+"&oaad="+Ig+"&oavd="+Ig+"&ocs="+t1+"&oewis="+RT+"&oputc="+RT+"&ofpcc="+RT+"&siu="+RT+"&msp="+RT+"&odepv="+RT+
"&id=o-AF"+dz+"&ip="+Q$+"&initcwndbps="+v7+"&mt="+P7+"&oweuc="+pk}}}}},trackingParams:bm+"=",id:um,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:ye}},simpleText:NA},style:"DEFAULT"}}]}}],startMs:v7,trackingParams:bm+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:RT,offsetEndMilliseconds:Ig},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+we+";dc_trk_cid="+we+";dc_dbm_token="+J+";ord="+P7+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+RT+";dc_rui="+RT+";dc_exteid="+um+";dc_av="+t1+";dc_sk="+RT+";dc_ctype="+H7+";dc_ref=http://www.youtube.com/video/"+RO+";dc_pubid="+RT+";dc_btype=23?gclid="+rW+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
d+"____________"+Q+"AxAA&sigh="+RO+"&cid="+t+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+RT+"&ns="+RT+"&event="+RT+"&device="+RT+"&content_v="+P+"&el="+Y$+"&ei="+A+"&devicever="+B+"&bti="+v7+"&format="+vO+"&break_type="+RT+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+RT+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+Q$+"&slot_pos="+RT+"&slot_len="+RT+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+KQ+"&ad_len="+Ig+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
RO+"&aqi="+A+"&ad_rmp="+RT+"&sli="+RT}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+Q+"AxAA&sigh="+P+"&cid="+t+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+Q+"AxAA&sigh="+P+"&cid="+t+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RT+";dc_exteid="+um+";met="+RT+";ecn"+RT+"="+RT+
";etm1="+RT+";eid1="+H7+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+Q+"AxAA&sigh="+P+"&cid="+t+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RT+";dc_exteid="+um+";met="+RT+";ecn"+RT+"="+RT+";etm1="+RT+";eid1="+vO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
d+"____________"+Q+"AxAA&sigh="+P+"&cid="+t+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RT+";dc_exteid="+um+";met="+RT+";ecn"+RT+"="+RT+";etm1="+RT+";eid1="+H7+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+Q+"AxAA&sigh="+P+"&cid="+t+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+Q+"AxAA&sigh="+P+"&cid="+t+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RT+";dc_exteid="+um+";met="+RT+";ecn"+RT+"="+RT+";etm1="+RT+";eid1="+H7+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+Q+"AxAA&sigh="+P+"&cid="+t+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RT+";dc_exteid="+um+";met="+RT+";ecn"+RT+"="+RT+";etm1="+RT+";eid1="+v7+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+Q+"AxAA&sigh="+P+"&cid="+t+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
d+"____________"+Q+"AxAA&sigh="+P+"&cid="+t+"&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+"____________"+Q+"AxAA&ase=2&num="+RT+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+FT+"&ctype="+t1+"&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+"____________"+Q+"AxAA&ase=2&num="+RT+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+FT+"&label=video_engaged_view&ctype="+t1+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RT+";dc_exteid="+um+";met="+RT+";ecn"+RT+"="+RT+";etm1="+RT+";eid1="+vO+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
we+";dc_trk_cid="+we+";dc_dbm_token="+J+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+RT+";ord="+we+";dc_rui="+RT+";dc_exteid="+ao+";dc_av="+RT+";dc_sk="+RT+";dc_ctype="+H7+";dc_pubid="+RT+";dc_btype=3?gclid="+rW+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+Q+"AxAA&sigh="+P+"&cid="+t+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RT+";dc_exteid="+um+";met="+RT+";ecn"+RT+"="+RT+";etm1="+RT+";eid1="+H7+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+F+"&sig="+j0+"&ad_cpn=[AD_CPN]&id="+NA+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+NA+"&dc_pubid="+RT+"&dc_exteid="+um+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+Q+"AxAA&sigh="+P+"&cid="+t+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+F+"&sig="+j0+"&ad_cpn=[AD_CPN]&id="+NA+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+RT},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+NA+"&avm="+RT+"&dc_pubid="+RT+"&dc_exteid="+
um+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+Q+"AxAA&sigh="+P+"&cid="+t+"&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="+RT+";dc_exteid="+um+";met="+RT+";ecn"+RT+"="+RT+";etm1="+RT+";eid1="+H7+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
F+"&sig="+j0+"&ad_cpn=[AD_CPN]&id="+NA+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+RT},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+NA+"&dc_pubid="+RT+"&dc_exteid="+um+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RT+";dc_exteid="+um+";met="+RT+";ecn"+RT+"="+RT+";etm1="+RT+";eid1="+H7+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
RT+";dc_exteid="+um+";met="+RT+";ecn"+RT+"="+RT+";etm1="+RT+";eid1="+vO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RT+";dc_exteid="+um+";met="+RT+";ecn"+RT+"="+RT+";etm1="+RT+";eid1="+H7+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RT+";dc_exteid="+um+";met="+RT+";ecn"+RT+"="+RT+";etm1="+RT+";eid1="+vO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+Q+"AxAA&sigh="+P+"&cid="+t+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RT+";dc_exteid="+um+";met="+RT+";ecn"+RT+"="+RT+";etm1="+RT+";eid1="+H7+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:kg,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+Q+"AxAA&ase=2&num="+RT+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+FT+"&label=video_click_to_advertiser_site&ctype="+t1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+Q+"AxAA&ase=2&num="+RT+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+FT+"&label=video_click_to_advertiser_site&ctype="+
t1+"&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/"+P+"/mqdefault.jpg",width:320,height:180}]},trackingParams:bm+"="},trackingParams:bm+
"=",templatedCountdown:{templatedAdText:{text:RO,isTemplated:!0,trackingParams:bm+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:z1,isTemplated:!1,trackingParams:bm+"="},trackingParams:bm+"="}},trackingParams:bm+"=",skipOffsetMilliseconds:5E3}},trackingParams:bm+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:NA},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:kg,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
d+"____________"+Q+"AxAA&ase=2&num="+RT+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+FT+"&label=video_click_to_advertiser_site&ctype="+t1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+Q+"AxAA&ase=2&num="+RT+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+FT+"&label=video_click_to_advertiser_site&ctype="+t1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:bm+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:BO,isTemplated:!1,trackingParams:bm+"="},trackingParams:bm+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:FL,isTemplated:!0,trackingParams:bm+"="}},trackingParams:bm+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:kg,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Ey.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+U+"&hl="+pM+"&origin=www.youtube.com&ata_theme="+vv,Ey),trackingParams:bm+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:bm+"="}},hoverText:{runs:[{text:xj}]},trackingParams:bm+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+NH+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:bm+"="},headline:{text:cf,isTemplated:!1,trackingParams:bm+"="},description:{text:ye,
trackingParams:bm+"="},actionButton:{buttonRenderer:{text:{simpleText:RO},navigationEndpoint:{clickTrackingParams:kg,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+we+";dc_trk_cid="+we+";dc_dbm_token="+J+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+RT+";ord="+we+";dc_rui="+RT+";dc_exteid="+um+";dc_av="+RT+";dc_sk="+RT+";dc_ctype="+H7+";dc_pubid="+RT+";dc_btype=3?gclid="+rW+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
d+"____________"+Q+"AxAA&ase=2&num="+RT+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+FT+"&label=video_click_to_advertiser_site&ctype="+t1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+Q+"AxAA&ase=2&num="+RT+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+FT+"&label=video_click_to_advertiser_site&ctype="+t1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:bm+"="}},startMs:RT,trackingParams:bm+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:vv},elementId:ye}},elementId:BO,trackingParams:bm+"=",legacyInfoCardVastExtension:ye,sodarExtensionData:{siub:RO,bgub:Mb,scs:vv,bgp:GM},externalVideoId:RO,adLayoutLoggingData:{serializedAdServingDataEntry:GM},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+NH+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:bm+"="},
headline:{text:NA,isTemplated:!1,trackingParams:bm+"="},description:{text:RO,isTemplated:!1,trackingParams:bm+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:m8},navigationEndpoint:{clickTrackingParams:kg,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+we+";dc_trk_cid="+we+";dc_dbm_token="+J+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+RT+";ord="+we+";dc_rui="+RT+";dc_exteid="+
um+";dc_av="+RT+";dc_sk="+RT+";dc_ctype="+H7+";dc_pubid="+RT+";dc_btype=3?gclid="+rW+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+Q+"AxAA&ase=2&num="+RT+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+FT+"&label=video_click_to_advertiser_site&ctype="+t1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+Q+"AxAA&ase=2&num="+
RT+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+FT+"&label=video_click_to_advertiser_site&ctype="+t1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:bm+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:bm+"="}},navigationEndpoint:{clickTrackingParams:kg,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+we+";dc_trk_cid="+
we+";dc_dbm_token="+J+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+RT+";ord="+we+";dc_rui="+RT+";dc_exteid="+um+";dc_av="+RT+";dc_sk="+RT+";dc_ctype="+H7+";dc_pubid="+RT+";dc_btype=3?gclid="+rW+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+Q+"AxAA&sigh="+P+"&cid="+t+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+
Q+"AxAA&ase=2&num="+RT+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+FT+"&label=video_click_to_advertiser_site&ctype="+t1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+Q+"AxAA&ase=2&num="+RT+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+FT+"&label=video_click_to_advertiser_site&ctype="+t1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:bm+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:bm+"="},abandonCommands:{commands:[{clickTrackingParams:kg,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+Q+"AxAA&sigh="+P+"&cid="+t+"&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="+RT+";dc_exteid="+um+";met="+RT+";ecn"+
RT+"="+RT+";etm1="+RT+";eid1="+H7+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:kg,commandExecutorCommand:{commands:[{clickTrackingParams:kg,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+Q+"AxAA&sigh="+P+"&cid="+t+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:z1,isTemplated:!1,trackingParams:bm+
"="},trackingParams:bm+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:GM},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+Q+"AxAA&sigh="+P+"&cid="+t+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RT+";dc_exteid="+um+";met="+RT+";ecn"+RT+"="+RT+";etm1="+RT+";eid1="+v7+";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="+we+";dc_trk_cid="+we+";ord="+P7+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+RT+";dc_rui="+RT+";dc_exteid="+um+";dc_av="+t1+";dc_sk="+RT+";dc_ctype="+H7+";dc_ref=http://www.youtube.com/video/"+RO+";dc_pubid="+RT+";dc_btype=23?gclid="+rW+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+d+"____________"+Q+"AxAA&sigh="+RO+"&cid="+t+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+RT+"&ns="+RT+"&event="+RT+"&device="+RT+"&content_v="+P+"&el="+Y$+"&ei="+A+"&devicever="+B+"&bti="+v7+"&format="+vO+"&break_type="+RT+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+RT+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+Q$+"&slot_pos="+RT+"&slot_len="+RT+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
KQ+"&ad_len="+Ig+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+RO+"&aqi="+A+"&ad_rmp="+RT+"&sli="+RT}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+Q+"AxAA&sigh="+RO+"&cid="+t+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+Q+"AxAA&sigh="+RO+"&cid="+t+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
RT+";dc_exteid="+um+";met="+RT+";ecn"+RT+"="+RT+";etm1="+RT+";eid1="+H7+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+Q+"AxAA&sigh="+RO+"&cid="+t+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RT+";dc_exteid="+um+";met="+RT+";ecn"+RT+"="+RT+";etm1="+RT+";eid1="+vO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+Q+"AxAA&sigh="+RO+"&cid="+t+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RT+";dc_exteid="+um+";met="+RT+";ecn"+RT+"="+RT+";etm1="+RT+";eid1="+H7+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+Q+"AxAA&sigh="+RO+"&cid="+
t+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+Q+"AxAA&sigh="+RO+"&cid="+t+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RT+";dc_exteid="+um+";met="+RT+";ecn"+RT+"="+RT+";etm1="+RT+";eid1="+H7+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
d+"____________"+Q+"AxAA&sigh="+RO+"&cid="+t+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RT+";dc_exteid="+um+";met="+RT+";ecn"+RT+"="+RT+";etm1="+RT+";eid1="+v7+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+Q+"AxAA&sigh="+RO+"&cid="+t+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+Q+"AxAA&sigh="+RO+"&cid="+t+"&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+"____________"+Q+"AxAA&ase=2&num="+RT+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+FT+"&ctype="+t1+"&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+"____________"+Q+"AxAA&ase=2&num="+RT+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+FT+"&label=video_engaged_view&ctype="+t1+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RT+";dc_exteid="+um+";met="+RT+";ecn"+RT+"="+RT+";etm1="+RT+";eid1="+vO+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+Q+"AxAA&sigh="+RO+"&cid="+t+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RT+";dc_exteid="+um+";met="+RT+";ecn"+RT+"="+RT+";etm1="+RT+";eid1="+H7+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+F+"&sig="+j0+"&ad_cpn=[AD_CPN]&id="+
NA+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+NA+"&dc_pubid="+RT+"&dc_exteid="+um+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+Q+"AxAA&sigh="+RO+"&cid="+t+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+F+
"&sig="+j0+"&ad_cpn=[AD_CPN]&id="+NA+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+RT},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+NA+"&avm="+RT+"&dc_pubid="+RT+"&dc_exteid="+um+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+Q+"AxAA&sigh="+RO+"&cid="+t+"&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="+RT+";dc_exteid="+um+";met="+RT+";ecn"+RT+"="+RT+";etm1="+RT+";eid1="+H7+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+F+"&sig="+j0+"&ad_cpn=[AD_CPN]&id="+NA+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+RT},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+NA+"&dc_pubid="+RT+"&dc_exteid="+um+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RT+";dc_exteid="+um+";met="+RT+";ecn"+RT+"="+RT+";etm1="+RT+";eid1="+H7+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RT+";dc_exteid="+um+";met="+RT+";ecn"+RT+"="+RT+";etm1="+RT+";eid1="+vO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
RT+";dc_exteid="+um+";met="+RT+";ecn"+RT+"="+RT+";etm1="+RT+";eid1="+H7+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RT+";dc_exteid="+um+";met="+RT+";ecn"+RT+"="+RT+";etm1="+RT+";eid1="+vO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+Q+"AxAA&sigh="+RO+"&cid="+t+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RT+";dc_exteid="+um+";met="+RT+";ecn"+RT+"="+RT+";etm1="+RT+";eid1="+H7+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:kg,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+Q+"AxAA&ase=2&num="+RT+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+FT+"&label=video_click_to_advertiser_site&ctype="+
t1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+Q+"AxAA&ase=2&num="+RT+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+FT+"&label=video_click_to_advertiser_site&ctype="+t1+"&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/"+P+"/mqdefault.jpg",width:320,height:180}]},trackingParams:bm+"="},trackingParams:bm+"=",templatedCountdown:{templatedAdText:{text:z1,isTemplated:!0,trackingParams:bm+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:cf,isTemplated:!1,trackingParams:bm+"="},trackingParams:bm+"="}},
trackingParams:bm+"=",skipOffsetMilliseconds:5E3}},trackingParams:bm+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Y$},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:kg,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+Q+"AxAA&ase=2&num="+RT+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+FT+"&label=video_click_to_advertiser_site&ctype="+t1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+Q+"AxAA&ase=2&num="+RT+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+FT+"&label=video_click_to_advertiser_site&ctype="+t1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:bm+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:z1,isTemplated:!1,trackingParams:bm+"="},trackingParams:bm+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:FL,
isTemplated:!0,trackingParams:bm+"="}},trackingParams:bm+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:kg,openPopupAction:{popup:{aboutThisAdRenderer:{url:(si.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+U+"&hl="+pM+"&origin=www.youtube.com&ata_theme="+vv,si),trackingParams:bm+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:bm+"="}},hoverText:{runs:[{text:GM}]},trackingParams:bm+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+VN+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:bm+"="},headline:{text:BO,isTemplated:!1,trackingParams:bm+"="},description:{text:BO,trackingParams:bm+"="},actionButton:{buttonRenderer:{text:{simpleText:vv},navigationEndpoint:{clickTrackingParams:kg,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
d+"____________"+Q+"AxAA&ase=2&num="+RT+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+FT+"&label=video_click_to_advertiser_site&ctype="+t1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+Q+"AxAA&ase=2&num="+RT+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+FT+"&label=video_click_to_advertiser_site&ctype="+t1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:bm+"="}},startMs:RT,trackingParams:bm+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:vv},elementId:m8}},elementId:FL,trackingParams:bm+"=",legacyInfoCardVastExtension:nM,sodarExtensionData:{siub:NA,bgub:iK,scs:z1,bgp:Y$},externalVideoId:RO,adLayoutLoggingData:{serializedAdServingDataEntry:FL},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+VN+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:bm+"="},headline:{text:BO,
isTemplated:!1,trackingParams:bm+"="},description:{text:vv,isTemplated:!1,trackingParams:bm+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:iK},navigationEndpoint:{clickTrackingParams:kg,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+Q+"AxAA&ase=2&num="+RT+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+FT+"&label=video_click_to_advertiser_site&ctype="+t1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+Q+"AxAA&ase=2&num="+RT+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+FT+"&label=video_click_to_advertiser_site&ctype="+t1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:bm+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:bm+"="}},navigationEndpoint:{clickTrackingParams:kg,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
d+"____________"+Q+"AxAA&sigh="+RO+"&cid="+t+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+Q+"AxAA&ase=2&num="+RT+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+FT+"&label=video_click_to_advertiser_site&ctype="+t1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+Q+"AxAA&ase=2&num="+
RT+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+FT+"&label=video_click_to_advertiser_site&ctype="+t1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:bm+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:bm+"="},abandonCommands:{commands:[{clickTrackingParams:kg,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+Q+"AxAA&sigh="+RO+"&cid="+t+"&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="+RT+";dc_exteid="+um+";met="+RT+";ecn"+RT+"="+RT+";etm1="+RT+";eid1="+H7+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:kg,commandExecutorCommand:{commands:[{clickTrackingParams:kg,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+Q+"AxAA&sigh="+RO+"&cid="+t+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:lz,isTemplated:!1,trackingParams:bm+"="},trackingParams:bm+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:vv},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+Q+"AxAA&sigh="+RO+"&cid="+t+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RT+";dc_exteid="+um+";met="+RT+";ecn"+RT+"="+RT+";etm1="+RT+";eid1="+
v7+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:m8}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Y$}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Ig,offsetEndMilliseconds:vO},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+A+"&m_pos="+H7+"&token=ALHj"+a+"&index="+RT+"&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="+B+"&m_pos_ms="+Ig}},adSlotLoggingData:{serializedSlotAdServingDataEntry:z1}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:vO,offsetEndMilliseconds:vO},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+A+"&m_pos="+t1+"&token=ALHj"+a+"&index="+RT+"&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="+
B+"&m_pos_ms="+vO}},adSlotLoggingData:{serializedSlotAdServingDataEntry:cf}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:vO,offsetEndMilliseconds:vO},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+A+"&m_pos="+t1+"&token=ALHj"+a+"&index="+RT+"&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="+
B+"&m_pos_ms="+vO}},adSlotLoggingData:{serializedSlotAdServingDataEntry:ye}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:vO,offsetEndMilliseconds:vO},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+A+"&m_pos="+t1+"&token=ALHj"+a+"&index="+RT+"&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="+
B+"&m_pos_ms="+vO}},adSlotLoggingData:{serializedSlotAdServingDataEntry:FL}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:vO,offsetEndMilliseconds:H7},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+A+"&m_pos="+t1+"&token=ALHj"+a+"&index="+RT+"&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="+
B+"&m_pos_ms="+vO}},adSlotLoggingData:{serializedSlotAdServingDataEntry:NA}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:H7,offsetEndMilliseconds:H7},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+A+"&m_pos="+H7+"&token=ALHj"+a+"&index="+RT+"&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="+
B+"&m_pos_ms="+H7}},adSlotLoggingData:{serializedSlotAdServingDataEntry:lz}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Mb,isTemplated:!1,trackingParams:bm+"="},description:{text:m8,isTemplated:!1,trackingParams:bm+"="},actionButton:{buttonRenderer:{text:{simpleText:wu},navigationEndpoint:{clickTrackingParams:kg,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
we+";dc_trk_cid="+we+";dc_dbm_token="+J+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+RT+";ord="+we+";dc_rui="+RT+";dc_exteid="+um+";dc_av="+RT+";dc_sk="+RT+";dc_ctype="+H7+";dc_pubid="+RT+";dc_btype=3?gclid="+rW+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+Q+"AxAA&ase=2&num="+RT+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+FT+"&label=video_click_to_advertiser_site&ctype="+t1+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+Q+"AxAA&ase=2&num="+RT+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+FT+"&label=video_click_to_advertiser_site&ctype="+t1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:bm+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+NH+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:bm+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+$Q+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:bm+"="},navigationEndpoint:{clickTrackingParams:kg,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+we+";dc_trk_cid="+we+";dc_dbm_token="+J+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+RT+";ord="+we+
";dc_rui="+RT+";dc_exteid="+um+";dc_av="+RT+";dc_sk="+RT+";dc_ctype="+H7+";dc_pubid="+RT+";dc_btype=3?gclid="+rW+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+Q+"AxAA&ase=2&num="+RT+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+FT+"&label=video_click_to_advertiser_site&ctype="+t1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
d+"____________"+Q+"AxAA&ase=2&num="+RT+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+FT+"&label=video_click_to_advertiser_site&ctype="+t1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:bm+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:kg,openPopupAction:{popup:{aboutThisAdRenderer:{url:(uuj.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+U+"&hl="+pM+"&origin=www.youtube.com&ata_theme="+vv,uuj),trackingParams:bm+"="}},popupType:"DIALOG"}},trackingParams:bm+"="}},hoverText:{runs:[{text:Mb}]},trackingParams:bm+"="}},adVideoId:RO,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+Q+"AxAA&sigh="+P+"&cid="+t+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:nM},associatedCompositePlayerBytesLayoutId:ye}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:ye}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:z1,isTemplated:!1,trackingParams:bm+"="},description:{text:BO,isTemplated:!1,trackingParams:bm+"="},actionButton:{buttonRenderer:{text:{simpleText:Mb},navigationEndpoint:{clickTrackingParams:kg,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+
Q+"AxAA&ase=2&num="+RT+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+FT+"&label=video_click_to_advertiser_site&ctype="+t1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+Q+"AxAA&ase=2&num="+RT+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+FT+"&label=video_click_to_advertiser_site&ctype="+t1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:bm+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+VN+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:bm+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Uu+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:bm+"="},navigationEndpoint:{clickTrackingParams:kg,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+Q+"AxAA&ase=2&num="+
RT+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+FT+"&label=video_click_to_advertiser_site&ctype="+t1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+Q+"AxAA&ase=2&num="+RT+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+FT+"&label=video_click_to_advertiser_site&ctype="+t1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:bm+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:kg,openPopupAction:{popup:{aboutThisAdRenderer:{url:(D3.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+U+"&hl="+pM+"&origin=www.youtube.com&ata_theme="+vv,D3),trackingParams:bm+"="}},popupType:"DIALOG"}},trackingParams:bm+"="}},
hoverText:{runs:[{text:z1}]},trackingParams:bm+"="}},adVideoId:RO,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+Q+"AxAA&sigh="+RO+"&cid="+t+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Mb},associatedCompositePlayerBytesLayoutId:ye}},adSlotLoggingData:{serializedSlotAdServingDataEntry:iK}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:NA,
isTemplated:!1,trackingParams:bm+"="},description:{text:nM,isTemplated:!1,trackingParams:bm+"="},actionButton:{buttonRenderer:{text:{simpleText:BO},navigationEndpoint:{clickTrackingParams:kg,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+we+";dc_trk_cid="+we+";dc_dbm_token="+J+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+RT+";ord="+we+";dc_rui="+RT+";dc_exteid="+um+";dc_av="+RT+";dc_sk="+RT+";dc_ctype="+
H7+";dc_pubid="+RT+";dc_btype=3?gclid="+rW+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+Q+"AxAA&ase=2&num="+RT+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+FT+"&label=video_click_to_advertiser_site&ctype="+t1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+Q+"AxAA&ase=2&num="+RT+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+
M+"&adurl="+FT+"&label=video_click_to_advertiser_site&ctype="+t1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:bm+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+NH+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:bm+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+$Q+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:bm+
"="},navigationEndpoint:{clickTrackingParams:kg,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+we+";dc_trk_cid="+we+";dc_dbm_token="+J+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+RT+";ord="+we+";dc_rui="+RT+";dc_exteid="+um+";dc_av="+RT+";dc_sk="+RT+";dc_ctype="+H7+";dc_pubid="+RT+";dc_btype=3?gclid="+rW+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
d+"____________"+Q+"AxAA&ase=2&num="+RT+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+FT+"&label=video_click_to_advertiser_site&ctype="+t1+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+Q+"AxAA&ase=2&num="+RT+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+FT+"&label=video_click_to_advertiser_site&ctype="+t1+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:bm+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:kg,openPopupAction:{popup:{aboutThisAdRenderer:{url:(gr.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+U+"&hl="+pM+"&origin=www.youtube.com&ata_theme="+vv,gr),trackingParams:bm+"="}},popupType:"DIALOG"}},trackingParams:bm+
"="}},hoverText:{runs:[{text:NA}]},trackingParams:bm+"="}},adVideoId:RO,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+Q+"AxAA&sigh="+P+"&cid="+t+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:GM},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:ye}},adSlotLoggingData:{serializedSlotAdServingDataEntry:iK}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:KY,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:KY,command:{innertubeCommand:{clickTrackingParams:kg,ypcGetOfflineUpsellEndpoint:{params:gz}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:bm+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:P7,nanos:uz}}}},Q8K=JSON.stringify(eV),bD=performance.now()-f;return{objectRepresentation:eV,jsonRepresentation:Q8K,generationTime:bD}};
Wi9=function(f,S){if(f===S)return!0;if(!f||!S||typeof f!==typeof S)return!1;if(f instanceof Array&&S instanceof Array){if(f.length!==S.length)return!1;for(var B=0;B<f.length;B++)if(!Wi9(f[B],S[B]))return!1;return!0}if(typeof f==="object"&&typeof S==="object"&&f&&S){for(B in f)if(!(B in S&&Wi9(f[B],S[B])))return!1;for(var G in S)if(!(G in f))return!1;return!0}return!1};
_.md=function(){if(!bt){bt=new TS(new c0j);var f=_.Gt("client_streamz_web_flush_count",-1);f!==-1&&(bt.invocationLimit=f)}return bt};
zF=function(f,S,B,G){if(f===S)return!0;if(Array.isArray(f)&&Array.isArray(S)){if(f.length!==S.length)return!1;for(var g=0;g<f.length;g++)if(!zF(f[g],S[g],B,G))return!1;return!0}if(f instanceof Set||S instanceof Set){if(f instanceof Set&&S instanceof Set){if(f.size!==S.size)return!1;G=_.m(f.values());for(g=G.next();!g.done;g=G.next())if(!S.has(g.value))return!1;return!0}return!1}if(f instanceof Function){if(G)return!0;f.name===""&&_.xH(Error("If"),"ERROR");return!1}if(f instanceof Date&&S instanceof
Date)return f.getTime()===S.getTime();if(f instanceof Object&&S instanceof Object){if(lrQ(f)&&lrQ(S))try{return f.equals(S)}catch(z){_.xH(Error("Jf`"+z),"ERROR")}g=Object.getOwnPropertyNames(f).filter(function(z){return B?f[z]!==void 0:!0});
var b=Object.getOwnPropertyNames(S).filter(function(z){return B?S[z]!==void 0:!0});
if(g.length!==b.length)return!1;g=_.m(g);for(b=g.next();!b.done;b=g.next())if(b=b.value,!zF(f[b],S[b],B,G))return!1;return!0}return!1};
lrQ=function(f){f=Object.getPrototypeOf(f).equals;return f instanceof Function&&f.length===1};
_.Sj1=function(){return _.R(function(f){if(f.nextAddress==1)return fCV!==2?f.jumpTo(2):_.h(f,okQ(),3);f.nextAddress!=2&&(fCV=f.yieldResult);return f.return(fCV)})};
_.gk1=function(){return _.R(function(f){if(f.nextAddress==1)return _.K("ab_pl_man")?BQV!==2?f.jumpTo(2):_.h(f,Gbs(),3):f.return(1);f.nextAddress!=2&&(BQV=f.yieldResult);return f.return(BQV)})};
mm1=function(){return _.R(function(f){if(f.nextAddress==1)return _.K("ab_fk_sk_cl")?eHG!==2?f.jumpTo(2):_.h(f,b5M(),3):f.return(1);f.nextAddress!=2&&(eHG=f.yieldResult);return f.return(eHG)})};
_.X49=function(){return _.R(function(f){if(f.nextAddress==1)return _.K("ab_det_apb_b")?zHs!==2?f.jumpTo(2):_.h(f,RHs(),3):f.return(1);f.nextAddress!=2&&(zHs=f.yieldResult);return f.return(zHs)})};
TQ1=function(){var f;return _.R(function(S){if(S.nextAddress==1)return _.h(S,Promise.all([_.Sj1(),_.X49(),_.gk1(),mm1()]),2);if(S.nextAddress!=3)return w4W()?S.return(!0):_.h(S,_.hHx(),3);f=S.yieldResult;return S.return(f===0)})};
w4W=function(){var f=!1,S=function(B,G){FQj.increment(G,B);B===0&&(f=!0)};
S(_.VjM(),"j.s_");S(fCV,"f.i_");S(zHs,"a.b_");S(BQV,"p.m_");S(eHG,"i.f_");Ji9===2&&(Ji9=_.P_s(vkV));S(Ji9,"e.h_");_.K("ks_det_gpbl")||S(_.KQQ(),"p.i_");_.K("ks_get_o_pp")||S(_.dmG(),"g.o_");_.K("ab_deg_unex_thr")||S(_.i5G(),"a.o_");S(H5K,"s.t_");_.K("ab_det_sc_inj_enf")&&S(_.qjG(),"s.i_");S($mN,"d.p_");S(_.Qvs(_.Re),"o.p_");S(_.Yj9()===0?0:_.rij(),"o.a_");return _.K("debug_sk_em_precheck")?!0:f};
O5M=function(){var f=[].concat(_.$d(jv1));try{var S=ea();f.push({jsonRepresentation:S.jsonRepresentation,objectRepresentation:S.objectRepresentation})}catch(B){f=[].concat(_.$d(jv1))}return f};
xmQ=function(){var f=["adPlacements","adSlots"];try{return f.filter(function(){return!0}).length!==f.length?0:1}catch(S){return 0}};
_.dmG=function(){if(xmQ()===0)return 0;var f=ea(),S=f.objectRepresentation,B=(0,_.$v.unsafeClone)(S),G=[];if(S&&typeof S==="object")for(var g in S)G.push(g);else return 4;f=f.objectRepresentation.adPlacements;if(!(f&&f.length>0))return 4;try{if(!Wi9(G,Object.getOwnPropertyNames(S)))return 0}catch(b){return 0}return Wi9(B,S)?1:0};
_.Qvs=function(f){if(!f||!f.length||typeof f==="string")return 0;for(var S=Object.getOwnPropertyNames(Object.prototype),B=0;B<f.length;B++)for(var G=_.Sa(f[B]),g=_.m(S),b=g.next();!b.done;b=g.next())if(G===b.value)return 0;return 1};
EkM=function(f){var S=_.Sa(f[1]);if(f[0]===null)return S;f=f[0];for(var B={},G=0;G<f.length;G++){var g=_.Sa(f[G]);if(G===0)B[g]=S;else{var b={};b[g]=B;B=b}}return B};
_.Yj9=function(){for(var f=_.X2,S=0;S<f.length;S++){var B=EkM(f[S]),G=[];G.push(B);if(G.length===0)return 0}return 1};
_.rij=function(){for(var f=_.X2,S={},B=0;B<f.length;S={gvF:void 0},B++){var G=[EkM(f[B])];S.gvF=[];G.forEach(function(g){return function(b){g.gvF[g.gvF.length]=b}}(S));
if(S.gvF.length===0)return 0}return 1};
_.VjM=function(){for(var f=_.m(O5M()),S=f.next();!S.done;S=f.next()){var B=S.value;S=B.jsonRepresentation;B=B.objectRepresentation;try{var G=JSON.parse(S);if(!zF(G,B,!1,!1))return 0}catch(g){return 0}}return 1};
_.qjG=function(){try{var f=_.e7("ab_det_sc_inj_val");f.length===1&&f[0]===""&&(f=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var S=document.querySelectorAll("script"),B=_.m(S),G=B.next();!G.done;G=B.next())for(var g=G.value,b=_.m(f),z=b.next();!z.done;z=b.next()){var X=z.value;S=void 0;if((S=g.textContent)==null?0:S.includes(X))return 0}}catch(w){return 4}return 1};
_.hHx=function(){var f,S,B,G,g,b,z;return _.R(function(X){switch(X.nextAddress){case 1:_.zT(X,2),f=_.m(jv1),S=f.next();case 4:if(S.done)return X.return(1);G=B=S.value;g=G.jsonRepresentation;b=G.objectRepresentation;return _.h(X,(new Response(g,{status:200})).json(),7);case 7:z=X.yieldResult;if(!zF(z,b,!1,!1))return X.return(0);S=f.next();X.jumpTo(4);break;case 2:return _.hm(X),X.return(4)}})};
_.i5G=function(){try{btoa("abc")}catch(f){return 0}return 1};
okQ=function(){var f,S,B,G,g,b,z,X,w,F,V;return _.R(function(J){switch(J.nextAddress){case 1:_.zT(J,2),f=_.m(O5M()),S=f.next();case 4:if(S.done)return J.return(1);G=B=S.value;g=G.jsonRepresentation;b=G.objectRepresentation;z=btoa(g);X="data:application/json;base64,"+z;w=new Request(X);Object.defineProperty(w,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(w,"method",{get:function(){return"POST"}});
Object.defineProperty(w,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(w,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(w,"body",{get:function(){return new ReadableStream}});
return _.h(J,fetch(w),7);case 7:return F=J.yieldResult,_.h(J,F.json(),8);case 8:V=J.yieldResult;if(!zF(V,b,!1,!1))return J.return(0);S=f.next();J.jumpTo(4);break;case 2:return _.hm(J),J.return(4)}})};
_.P_s=function(f){if(!f||!f.length||typeof f==="string")return 0;for(var S=function(g){return _.Sa(g)},B=2,G=0;G<f.length&&(B=_.LQQ(_.arK(f[G],S)),B!==0);G++);
return B};
_.LQQ=function(f){var S=_.m(f);f=S.next().value;S=S.next().value;try{var B=document.createElement("div");document.body.appendChild(B);var G=getComputedStyle(B).display;document.body.removeChild(B);if(G==="none")return 4;var g=getComputedStyle(S).display==="none"?0:1;document.body.removeChild(f);return g}catch(b){return 4}};
b5M=function(){var f,S,B;return _.R(function(G){f=new _.w3;S=document.createElement("button");S.classList.add("ytp-ad-skip-button");S.style.opacity="0";S.style.height="0px";S.style.width="0px";S.style.padding="0px";S.style.border="none";B=function(){S.parentElement&&S.parentElement.removeChild(S)};
S.onclick=function(){f.resolve(0);B()};
document.body.appendChild(S);setTimeout(function(){B();f.resolve(1)},50);
return G.return(f.promise)})};
Gbs=function(){var f,S,B,G,g,b,z;return _.R(function(X){f=new _.w3;S=document.createElement("ytd-player");try{document.body.prepend(S)}catch(w){return X.return(4)}B=function(){S.parentElement&&S.parentElement.removeChild(S)};
S.getElementsByTagName("div").length>0?G=S.getElementsByTagName("div")[0]:(G=document.createElement("div"),S.appendChild(G));g=document.createElement("div");G.appendChild(g);b=document.createElement("video");z=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"});b.src=_.Ve(_.Ho(z));b.ontimeupdate=function(){B();f.resolve(0)};
g.appendChild(b);b.classList.add("html5-main-video");setTimeout(function(){g.classList.add("ad-interrupting")},200);
setTimeout(function(){B();f.resolve(1)},5E3);
return X.return(f.promise)})};
kbM=function(f,S){var B,G;return _.R(function(g){switch(g.nextAddress){case 1:B=[],G=0;case 2:if(!(G<3)){g.jumpTo(4);break}return _.h(g,fetch(f,{cache:"no-store",method:S}).then(function(b){B.push(b.status)}).catch(function(){B.push(-1)}),3);
case 3:G++;g.jumpTo(2);break;case 4:return g.return(B)}})};
nkW=function(f){return f.domainLookupStart===0&&f.domainLookupEnd===0&&f.connectStart===0&&f.connectEnd===0};
svQ=function(f,S,B){B=B===void 0?"GET":B;var G,g,b,z,X,w,F,V,J,P;return _.R(function(d){if(d.nextAddress==1)return _.h(d,Promise.all([kbM(f,B),kbM(S,B)]),2);G=d.yieldResult;g=_.m(G);b=g.next().value;z=g.next().value;X=b;w=z;if(Math.min.apply(Math,_.$d(w))!==Math.max.apply(Math,_.$d(w))||Math.min.apply(Math,_.$d(X))!==Math.max.apply(Math,_.$d(X)))return d.return(2);if(Math.min.apply(Math,_.$d(w))===Math.min.apply(Math,_.$d(X)))return d.return(1);V=(F=performance.getEntriesByName(f))==null?void 0:F[0];
P=(J=performance.getEntriesByName(S))==null?void 0:J[0];return V&&P?nkW(P)?d.return(1):nkW(V)?d.return(0):d.return(1):d.return(2)})};
RHs=function(){var f;return _.R(function(S){var B=[];var G;var g,b,z;(g=G=(g=ea().objectRepresentation.streamingData)==null?void 0:(b=g.formats)==null?void 0:(z=b[0])==null?void 0:z.url)&&g&&!G.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(g=g.replace("initcwndbps","ctier=L&initcwndbps"),g=g.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),G={testUrl:g,baseUrl:G,method:"GET"}):G=void 0;G&&B.push(G);_.K("ab_net_tp_e")&&B.push({testUrl:_.S1.location.origin+"/ad_companion",baseUrl:_.S1.location.origin+
"/generate_204",method:"OPTIONS"});if(_.K("ad_net_pb_ab")){var X;b:{G=/api\/stats\/ads/;var w,F,V,J;g=(X=ea().objectRepresentation.adPlacements)==null?void 0:(w=X[0])==null?void 0:(F=w.adPlacementRenderer)==null?void 0:(V=F.renderer)==null?void 0:(J=V.linearAdSequenceRenderer)==null?void 0:J.linearAds;if(g!=null&&g.length&&(X=_.H(g[0],DmT))&&(X=X.pings,X!=null&&X.impressionPings))for(w=[].concat(_.$d(X.impressionPings)),X.progressPings&&(w=[].concat(_.$d(w),_.$d(X.progressPings))),X=_.m(w),w=X.next();!w.done;w=
X.next())if(w=w.value,w.baseUrl&&G.test(w.baseUrl)){X=w.baseUrl.replace("https://www.youtube.com","");break b}X=void 0}X&&B.push({testUrl:_.S1.location.origin+X,baseUrl:_.S1.location.origin+"/feed/download",method:"GET"})}if(_.K("ad_net_pb_pbp")){var P;b:{X=/api\/stats\/qoe/;if(w=ea().objectRepresentation.playbackTracking){F=[];F.push(w==null?void 0:(P=w.videostatsPlaybackUrl)==null?void 0:P.baseUrl);var d;F.push(w==null?void 0:(d=w.videostatsDelayplayUrl)==null?void 0:d.baseUrl);var Q;F.push(w==
null?void 0:(Q=w.videostatsWatchtimeUrl)==null?void 0:Q.baseUrl);var x;F.push(w==null?void 0:(x=w.ptrackingUrl)==null?void 0:x.baseUrl);var E;F.push(w==null?void 0:(E=w.qoeUrl)==null?void 0:E.baseUrl);var U;F.push(w==null?void 0:(U=w.atrUrl)==null?void 0:U.baseUrl);P=_.m(F);for(d=P.next();!d.done;d=P.next())if((d=d.value)&&X.test(d)){P=d.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}P=void 0}P&&B.push({testUrl:_.S1.location.origin+P,baseUrl:_.S1.location.origin+
"/feed/download",method:"GET"})}B=B.length!==0?B[Math.floor(Math.random()*B.length)]:void 0;return(f=B)?S.return(svQ(f.testUrl,f.baseUrl,f.method)):S.return(4)})};
_.KQQ=function(){if(_.S1.l6y===void 0||_.S1.l6y===null||typeof _.S1.l6y!=="function")return 2;try{return _.S1.l6y()===!0?0:1}catch(f){return 0}};
ICG=function(f){switch(f){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.mu(f,"unknown result type")}};
_.UmK=function(f,S){var B=Number(_.nL("CATSTAT",0));if(S.oZ9===void 0)return B;S=S.oZ9;f=ICG(f);return B&~(3<<S)|f<<S};
C_N=function(f){var S,B;if((f=(S=f.auxiliaryUi)==null?void 0:(B=S.messageRenderers)==null?void 0:B.bkaEnforcementMessageViewModel)&&f.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return f};
AiW=function(){for(var f=_.m(Object.values(_.p4s)),S=f.next();!S.done;S=f.next())S=S.value,S.isAsync&&S.oZ9&&_.k5("CATSTAT",_.UmK(2,S))};
_.VW=function(f,S){f=_.hK("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",f);(S===void 0?0:S)?_.NQs(f,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.TF(_.F2(),f,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
Z5T=function(){if(!Mj9){if(Polymer.Base){var f=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{f.apply(this,arguments)}catch(J){_.Dt(J)}};
var S=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{S.apply(this,arguments)}catch(J){_.Dt(J)}};
var B=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{B.apply(this,arguments)}catch(J){_.Dt(J)}};
var G=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{G.apply(this,arguments)}catch(J){_.Dt(J)}};
var g=Polymer.Base._listen,b=new WeakMap;Polymer.Base._listen=function(J,P,d){var Q=function(){try{d.apply(this,arguments)}catch(x){_.Dt(x)}};
b.set(d,Q);g.call(this,J,P,Q)};
var z=Polymer.Base._unlisten;Polymer.Base._unlisten=function(J,P,d){z.call(this,J,P,b.get(d))}}if(Polymer.Async){var X=Polymer.Async,w=X._atEndOfMicrotask;
X._atEndOfMicrotask=function(){try{w.apply(X,arguments)}catch(J){_.Dt(J)}}}if(Polymer.RenderStatus){var F=Polymer.RenderStatus,V=F.afterNextRender;
F.afterNextRender=function(J,P,d){V.call(F,J,function(){try{P.apply(this,arguments)}catch(Q){_.Dt(Q)}},d)}}Mj9=!0}};
_.JK=function(f){var S=f?_.Xl(f):"";if(S){if(S.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(S.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(S.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(S.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(S.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.K("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(S.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";S=S.toLowerCase();if(S==="/")return"home";if(S==="/channel_memberships")return"channel-memberships-shopfront";if(S.indexOf("/feed/trending")===0)return"trending";if(S.indexOf("/feed/explore")===0)return"explore";if(S.indexOf("/live")===0)return"live";if(S.indexOf("/results")===0)return"search";if(S.indexOf("/sports")===0)return"sports";if(S.indexOf("/fashion")===0||S.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(S))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(S))return _.K("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(S.indexOf("/channel/")===0||S.indexOf("/user/")===0||S.indexOf("/gaming")===0||S.indexOf("/post/")===0)return"channel";if(tj1(f))return"show";if(S==="/playlist"||S.indexOf("/playlist/")===0||S==="/view_play_list"||S.indexOf("/view_play_list/")===0||S.indexOf("/show/")===0)return"playlist";if(S==="/feed/history"||S.indexOf("/feed/history/")===0)return"history";if(S===
"/new")return"labs";if(S==="/feed/subscriptions")return"subscriptions";if(S.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(S==="/history_controls")return"standalone";if(S.indexOf("/account")===0||S==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(S.indexOf("/paid_memberships")===0||S.indexOf("/refund")===0||S.indexOf("/purchases")===0||S.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(S.indexOf("/product")===0)return"yts-products";if(S.indexOf("/premium")===
0||S.indexOf("/musicpremium")===0)return S.indexOf("/premium/offers")===0||S.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(S==="/cart/checkout"||S==="/cart")return"ypc-checkout";if(S.indexOf("/feed/downloads")===0||S.indexOf("/redeem")===0||S.indexOf("/reporthistory")===0)return"browse";if(S.indexOf("/hashtag")===0)return"hashtag-landing-page";if(S.indexOf("/handle")===0)return"handle";if(S.indexOf("/source")===0)return"audio-pivot";if(S.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";
if(S.indexOf("/playables")===0)return"playables";if(S.indexOf("/create/live/join")===0)return"open-in-app";if(S.indexOf("/shorts")===0)return"shorts";if(S.indexOf("/feed/channels")===0)return"subscriptions-channels";(S=f?_.Xl(f):"")&&S.indexOf("/watch")===0&&_.K("web_watch_enable_learning_journey")?(f=_.Mp(f),f=!!f.list&&f.list.indexOf("LJPP")===0):f=!1;if(f)return"learning_journey_watch"}};
_.Pt=function(f){var S,B;(f=(B=_.H(f==null?void 0:f.commandMetadata,_.oD))==null?void 0:B.url)&&(S=_.JK(f));return S};
tj1=function(f){var S=f?_.Xl(f):"";if(!S)return!1;S=S.toLowerCase();return S.indexOf("/show/")===0||S.indexOf("/playlist")===0&&(f=_.Mp(f),f.list&&f.list.indexOf("EL")===0)?!0:!1};
qo=function(f){var S="unknown",B;var G=((B=_.H(f==null?void 0:f.commandMetadata,_.oD))==null?void 0:B.webPageType)||"";G?(B=G.toLowerCase(),B.startsWith("web_page_type_")&&(B=B.slice(14))):B=G;B&&uw1[B.toUpperCase()]?S=uw1[B.toUpperCase()]:_.H(f,_.d3)||_.H(f,aCN)?S="browse":_.H(f,_.Ht)?S="search":_.H(f,_.t2)&&(S="watch");S==="watch"&&_.Pt(f||null)==="learning_journey_watch"&&(S="learning_journey_watch");S==="unknown"&&_.Lg(Error("Lf`"+JSON.stringify({clickTrackingParams:f==null?void 0:f.clickTrackingParams,
commandMetadata:f==null?void 0:f.commandMetadata,allEndpointKeys:Object.keys(f||[])})));return S};
_.$G=function(f){if(!_.yiM||f)_.yiM=_.TW();return _.yiM};
_.WQN=function(f){return!!_.H(f,_.t2)||!!_.H(f,_.QW)&&_.K("kevlar_enable_shorts_prefetch")};
_.ci1=function(f,S){f=_.H(f,_.t2)||_.H(f,_.QW);return"v"+f.videoId+(f.playlistId?"-pl"+f.playlistId:"")+(S?"-an1":"")+(f.params?"-pr"+f.params:"")};
YG=function(f){return function(){return new f}};
r3=function(f){var S=_.oy();return function(){return S.resolve(f)}};
ff1=function(f){var S=_.Gt("web_pbj_log_warning_rate",0);S=S>0&&Math.random()<S;if(!_.H(f,_.QW))return S&&_.Lg(Error("Of")),!1;var B;return _.K("shorts_controller_retrieve_seedless_sequence_v2")&&((B=_.H(f,_.QW))==null?void 0:B.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:lC1(f)?!0:(S&&_.Lg(Error("Pf")),!1)};
lC1=function(f){var S=(_.H(f,_.t2)||_.H(f,_.QW)).videoId;if(!S||!oNA.test(S))return!1;var B;return(f=(B=_.H(f.commandMetadata,_.oD))==null?void 0:B.url)&&(f.includes(S)||f.startsWith("/clip"))?!0:!1};
_.BPx=function(){var f=_.K2();return f.getFlag(192)?f.getFlag(190):!(_.K("web_watch_cinematics_disabled_by_default")||_.K("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&S0V())};
_.ja=function(f,S,B){var G={};G.currentUrl=S;G.vis=f.vis!==void 0?f.vis:0;G.splay=!1;S=_.K2();G.autoCaptionsDefaultOn=S.getFlag(66);S.getFlag(141)?S.getFlag(140)?G.autonavState="STATE_OFF":G.autonavState="STATE_ON":G.autonavState="STATE_NONE";G.html5Preference="HTML5_PREF_WANTS";isNaN(_.nL("STS"))||(G.signatureTimestamp=_.nL("STS"));f.autonav&&(G.autoplay=!0,G.autonav=!0);f.mutedAutoplay&&(G.autoplay=!0,G.mutedAutoplay=!0);f.inlinePlayback&&(G.autoplay=!0,G.autonav=!1,G.isInlineUnmutedPlayback=!!f.inlineUnmuted);
G.referer=B;G.lactMilliseconds=f.lact!==void 0?f.lact.toString():"-1";_.K("enable_unknown_lact_fix_on_html5")&&G.lactMilliseconds==="-1"&&_.Lg(new _.dO("Unknown LACT is set in playbackContext.",{"lact in tempData":f.lact||"undefined",autonav:f.autonav||"undefined"}));f={};S.getFlag(194)&&(f.hasShownAmbientMode=!0);S.getFlag(192)&&(f.hasToggledOffAmbientMode=!0);_.BPx()&&(f.watchAmbientModeEnabled=!0);G.watchAmbientModeContext=f;return G};
G71=function(f){var S={},B=f.pbis||0;B&&(S.playbackBeginsInSeconds=B);f.prefetch_reason&&f.prefetch_reason==="hc_pbis"&&(S.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return S};
_.xG=function(f){f=f===void 0?!1:f;var S=_.K2(),B="USER_INTERFACE_THEME_LIGHT";S.getFlag(165)?B="USER_INTERFACE_THEME_DARK":S.getFlag(174)?B="USER_INTERFACE_THEME_LIGHT":_.Ot()&&(B="USER_INTERFACE_THEME_DARK");return f?B:gNW()||B};
_.ekM=function(){return!_.K("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.Ot=function(){return _.ekM()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.Et=function(){var f=_.K2();return _.ekM()&&!f.getFlag(165)&&!f.getFlag(174)};
gNW=function(){var f=f===void 0?window.location.href:f;if(_.K("kevlar_disable_theme_param"))return null;var S=_.Xl(f);if(_.bVA(S))return"USER_INTERFACE_THEME_DARK";try{var B=_.Mp(f).theme;return mfx.get(B)||null}catch(G){}return null};
_.bVA=function(f){return _.K("enable_dark_theme_only_on_shorts")?!(f==null||!f.startsWith("/shorts/")):!1};
_.XlV=function(f,S,B,G,g){S=S===void 0?!1:S;B=B===void 0?!1:B;var b=_.nL("INNERTUBE_CONTEXT");if(!b)return _.xH(Error("Sf")),{};b=(0,_.$v.unsafeClone)(b);_.K("web_no_tracking_params_in_shell_killswitch")||delete b.clickTracking;b.client||(b.client={});var z=b.client;z.clientName==="MWEB"&&z.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(z.clientFormFactor=_.nL("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");z.screenWidthPoints=window.innerWidth;z.screenHeightPoints=window.innerHeight;z.screenPixelDensity=
Math.round(window.devicePixelRatio||1);z.screenDensityFloat=window.devicePixelRatio||1;z.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());z.userInterfaceTheme=_.xG();if(!S){var X=_.gcM();X&&(z.connectionType=X);_.K("web_log_effective_connection_type")&&(X=bks())&&(b.client.effectiveConnectionType=X)}var w;if(_.K("web_log_memory_total_kbytes")&&((w=_.S1.navigator)==null?0:w.deviceMemory)){var F;w=(F=_.S1.navigator)==null?void 0:F.deviceMemory;b.client.memoryTotalKbytes=""+w*1E6}S&&G&&!_.K("web_it_context_set_original_url_ks")&&
(z.originalUrl=zk1(_.S1.location.href,G).toString());_.K("web_gcf_hashes_innertube")&&(X=PWN())&&(F=X.coldConfigData,w=X.coldHashData,X=X.hotHashData,b.client.configInfo=b.client.configInfo||{},F&&(b.client.configInfo.coldConfigData=F),w&&(b.client.configInfo.coldHashData=w),X&&(b.client.configInfo.hotHashData=X));F=_.Mp(_.S1.location.href);!_.K("web_populate_internal_geo_killswitch")&&F.internalcountrycode&&(z.internalGeo=F.internalcountrycode);!_.K("web_populate_client_screen_killswitch")&&g&&(z.clientScreen=
g);z.clientName==="MWEB"||z.clientName==="WEB"?(z.mainAppWebInfo||(z.mainAppWebInfo={}),z.mainAppWebInfo.graftUrl=G||_.S1.location.href,_.K("kevlar_woffle")&&_.Ln.instance&&(G=_.Ln.instance,z.mainAppWebInfo.pwaInstallabilityStatus=!G.appInstalledEventFired&&G.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),z.mainAppWebInfo.webDisplayMode=RLM(),z.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):z.clientName==="TVHTML5"&&
(!_.K("web_lr_app_quality_killswitch")&&(G=_.nL("LIVING_ROOM_APP_QUALITY"))&&(z.tvAppInfo=Object.assign(z.tvAppInfo||{},{appQuality:G})),G=_.nL("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(z.tvAppInfo=Object.assign(z.tvAppInfo||{},{certificationScope:G}));!_.K("web_populate_time_zone_itc_killswitch")&&(G=BiW())&&(z.timeZone=G);(G=H_1())?z.experimentsToken=G:delete z.experimentsToken;z=qlG();G=_.Rk9();G=(0,_.$v.getValues)(G.tokenJars);b.request=Object.assign({},b.request,{internalExperimentFlags:z,consistencyTokenJars:G});
!_.K("web_prequest_context_killswitch")&&(z=_.nL("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(b.request.externalPrequestContext=z);G=_.K2();z=G.getFlag(58);G=G.get("gsml","");b.user=Object.assign({},b.user);z&&(b.user.enableSafetyMode=z);G&&(b.user.lockedSafetyMode=!0);_.K("warm_op_csn_cleanup")?B&&(S=_.xc())&&(b.clientScreenNonce=S):!S&&(S=_.xc())&&(b.clientScreenNonce=S);f&&(b.clickTracking={clickTrackingParams:f});if(f=_.U6("yt.mdx.remote.remoteClient_"))b.remoteClient=f;_.kG.getInstance().setLocationOnInnerTubeContext(b);
try{var V=k$j(),J=V.bid;delete V.bid;b.adSignalsInfo={params:[],bid:J};for(var P=_.m(Object.entries(V)),d=P.next();!d.done;d=P.next()){var Q=_.m(d.value),x=Q.next().value,E=Q.next().value;V=x;J=E;f=void 0;(f=b.adSignalsInfo.params)==null||f.push({key:V,value:""+J})}var U,A;if(((U=b.client)==null?void 0:U.clientName)==="TVHTML5"||((A=b.client)==null?void 0:A.clientName)==="TVHTML5_UNPLUGGED"){var t=_.nL("INNERTUBE_CONTEXT");t.adSignalsInfo&&(b.adSignalsInfo.advertisingId=t.adSignalsInfo.advertisingId,
b.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",b.adSignalsInfo.limitAdTracking=t.adSignalsInfo.limitAdTracking)}}catch(M){_.xH(M)}return b};
_.wl1=function(f){var S=new nn(_.nL("ONE_PICK_URL",""));S.urlParamMap_.set("hostId",f);(f=_.nL("GAPI_LOCALE"))&&S.urlParamMap_.set("hl",f);(f=_.nL("SESSION_INDEX"))&&S.urlParamMap_.set("authuser",f);(f=_.nL("DELEGATED_SESSION_ID"))&&S.urlParamMap_.set("groupId",f);return S};
TP1=function(){var f=_.oy(),S=f.resolve(_.st);f=f.resolve(_.DU);return new hkQ(S,f)};
Vy1=function(f){if(window.IntersectionObserver)return new F$K(f,400);throw new TypeError("Zf");};
P3N=function(){var f=Hammer.TouchAction,S=f.prototype.preventDefaults;f.prototype.preventDefaults=function(B){var G=this.actions.indexOf("pan-down")>-1;if(!G)return S.call(this,B);if(!JWA){var g=B.srcEvent;B=B.direction;var b;if((b=this.manager)==null?0:b.session.prevented)g.preventDefault();else if(G&&B&Hammer.DIRECTION_DOWN)return this.preventSrc(g)}}};
vNM=function(f){if(!f||f.size===0)return Hammer.DIRECTION_ALL;if(f.size===2){if(f.has("up")&&f.has("down"))return Hammer.DIRECTION_VERTICAL;if(f.has("right")&&f.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(f.size===1){if(f.has("up"))return Hammer.DIRECTION_UP;if(f.has("down"))return Hammer.DIRECTION_DOWN;if(f.has("right"))return Hammer.DIRECTION_RIGHT;if(f.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.dfQ=function(){return K$N?Promise.resolve(K$N):new Promise(function(f,S){var B=self.indexedDB.open("swpushnotificationsdb");B.onerror=S;B.onsuccess=function(){var G=B.result;if(G.objectStoreNames.contains("swpushnotificationsstore"))K$N=G,f(K$N);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.dfQ()};
B.onupgradeneeded=iVQ})};
iVQ=function(f){f=f.target.result;f.objectStoreNames.contains("swpushnotificationsstore")&&f.deleteObjectStore("swpushnotificationsstore");f.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
q0j=function(f){var S=HVK(),B;return _.R(function(G){switch(G.nextAddress){case 1:return _.zT(G,2),_.h(G,f.match(S,{cacheName:"yt-appshell-assets"}),4);case 4:B=G.yieldResult;_.CN(G,3);break;case 2:_.hm(G);case 3:return G.return(B)}})};
HVK=function(){var f=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?$fs.registration.scope:Q5W;f.endsWith("/")&&(f=f.slice(0,-1));return f+"/app_shell_home"};
Y01=function(f){f.map(function(S){return S.source}).join("|")};
_.rWx=function(f){return _.R(function(S){return S.return(q0j(f))})};
j5A=function(){var f=window.caches,S;return _.R(function(B){if(B.nextAddress==1)return _.h(B,_.rWx(f),2);S=B.yieldResult;return B.return(!!S)})};
s51=function(){_.R(function(f){if(f.nextAddress==1){if(OVK)return f.jumpTo(0);OVK=!0;if(_.K("enable_system_health_primes_monitoring"))return _.zt(xfx,3E4),ENK(),f.return();if(!(Math.random()<_.Gt("web_system_health_fraction")))return f.jumpTo(0);L$Q={heightPixels:screen.height,widthPixels:screen.width};Ie&&!isNaN(Ie.jsHeapSizeLimit)&&(L$Q.memoryTotalKbytes=String(Math.round(Ie.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(L$Q.devicePixelRatio=window.devicePixelRatio);return _.h(f,k7W(),4)}_.zt(xfx,
3E4);return _.h(f,nNQ(),0)})};
k7W=function(){return _.R(function(f){if(f.nextAddress==1)return Ut.intersectionObserverPresent="IntersectionObserver"in window,Ut.serviceWorkerPresent="serviceWorker"in navigator,Ut.webSharePresent="share"in navigator,Ut.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,Ut.cacheStoragePresent="caches"in window,Ut.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,Ut.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
Ut.webkitTemporaryStoragePresent="webkitTemporaryStorage"in Cn&&Cn.webkitTemporaryStorage&&"queryUsageAndQuota"in Cn.webkitTemporaryStorage,Ut.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",_.h(f,D51(),2);Ut.indexedDbPresent=f.yieldResult;Ut.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;Ut.broadcastChannelPresent="BroadcastChannel"in window;Ut.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(Ut.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,Ut.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.TT(f)})};
xfx=function(){var f=9E4+Math.random()*2E3;_.or()>f||(_.K("enable_system_health_primes_monitoring")?ENK():nNQ())};
nNQ=function(){var f;return _.R(function(S){if(S.nextAddress==1)return _.h(S,Dfx(),2);f=S.yieldResult;_.jD("systemHealthCaptured",f);_.TT(S)})};
ENK=function(){var f={metric:{}},S=If1();S.networkEvents.length&&(f.metric.networkEvents=Uf9(S));_.jD("systemHealthCaptured",f)};
Dfx=function(){var f,S,B,G,g,b,z,X,w,F;return _.R(function(V){switch(V.nextAddress){case 1:f={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)};S=window.screen;_.K("enable_is_extended_monitoring")&&S&&"isExtended"in S&&(f.isExtended=!!S.isExtended);B={metric:{staticContext:L$Q,dynamicContext:f,webMetric:C3W,webApiSupport:Ut}};
if(G=_.xc())B.csn=G;Ie&&(B.metric.webMetric.currentHeapKbytes=Math.round(Ie.usedJSHeapSize/1E3));window.matchMedia&&(B.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,B.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,B.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in Cn&&typeof Cn.getBattery==="function")){V.jumpTo(2);break}return _.h(V,Cn.getBattery(),3);case 3:if(g=
V.yieldResult)B.metric.dynamicContext.chargingStatus=g.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(B.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(Ut.storageEstimatePresent)return _.h(V,navigator.storage.estimate(),8);if(!Ut.webkitTemporaryStoragePresent){V.jumpTo(5);break}return _.h(V,plA(),7);case 7:b=V.yieldResult;V.jumpTo(5);break;case 8:b=V.yieldResult;case 5:return B.metric.dynamicContext.deviceStorageQuotaMbytes=((z=b)==null?0:z.quota)?String(Math.round(b.quota/
1048576/10)*10):"-1",B.metric.dynamicContext.deviceStorageUsageMbytes=((X=b)==null?0:X.usage)?String(Math.round(b.usage/1048576/10)*10):"-1",w=B.metric.dynamicContext,_.h(V,j5A(),9);case 9:return w.hasAppShell=V.yieldResult,F=If1(),F.networkEvents.length&&(B.metric.networkEvents=Uf9(F)),V.return(B)}})};
plA=function(){return new Promise(function(f){var S;Ut.webkitTemporaryStoragePresent&&(S=Cn.webkitTemporaryStorage)!=null&&S.queryUsageAndQuota?Cn.webkitTemporaryStorage.queryUsageAndQuota(function(B,G){f({usage:B,quota:G})}):f(void 0)})};
_.pn=function(f){f&=16777215;f=[(f&16711680)>>16,(f&65280)>>8,f&255];return AWG(f[0],f[1],f[2])};
_.AK=function(f){f=[(f&16711680)>>>16,(f&65280)>>>8,f&255,(f&4278190080)>>>24];var S=_.NPQ(f,function(B){return B==(B&255)});
f[3]=(f[3]/255).toFixed(3);if(!S)throw Error("$f`"+f.join(","));return"rgba("+f.join(",")+")"};
_.MyK=function(f){return[(f&16711680)>>>16,(f&65280)>>>8,f&255]};
_.ZVs=function(f){f=f.map(function(S){S/=255;return S<=.03928?S/12.92:Math.pow((S+.05)/1.05,2.4)});
return f[0]*.2126+f[1]*.7152+f[2]*.0722};
No=function(f,S){f=_.MyK(f);return"rgba("+f[0]+", "+f[1]+", "+f[2]+", "+S+")"};
_.tyQ=function(){try{return!!self.localStorage}catch(f){return!1}};
W$N=function(){if(uDK())_.Lg(Error("ag"));else{var f=document.createElement("iframe");f.style.display="none";var S=S===void 0?window.location.href:S;var B=_.E4(_.nL("PERSIST_IDENTITY_IFRAME_URL"));S=B?B:(new URL(S)).host.indexOf("studio")===0?_.Sr(afM,"persist_identity"):_.Sr(yW1,"persist_identity");_.Pd9(f,1,S);f.id="persist_identity";var G;(G=document.body)==null||G.appendChild(f)}};
uDK=function(){var f=cWN;f||(f=document.querySelector("#persist_identity"));return f};
lfQ=function(){var f=!1;try{f=!!window.sessionStorage.getItem("session_logininfo")}catch(S){f=!0}return(_.nL("INNERTUBE_CLIENT_NAME")==="WEB"||_.nL("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&f};
fV1=function(f,S){if(!lfQ())return!1;S||(S=_.nL("LOGIN_INFO"));return S?(f.session_logininfo=S,!0):!1};
SkM=function(f,S){f=f===void 0?!1:f;if((S===void 0||!S)&&oPN!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.s6("LOG_STICKINESS",!1)){S=_.xc();var B=_.Of(),G={identityStickinessData:{initialState:oPN}};S&&B&&_.yp(S,B,G)}if(S=uDK())if(B=S.src?(new URL(S.src)).origin:"*",f){var g;(g=S.contentWindow)==null||g.postMessage({action:"clear"},B)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(f=window.sessionStorage.getItem("session_logininfo"))){var b;(b=S.contentWindow)==null||b.postMessage({loginInfo:f},B)}};
_.Mo=function(f){f=f===void 0?!0:f;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.k5("LOGIN_INFO",""),f&&window.sessionStorage.setItem("from_switch_account","1"),SkM(!0,f)}catch(S){}};
BDN=function(f){f&&(f.startsWith("https://accounts.google.com/AddSession")?_.Mo():f.startsWith("https://accounts.google.com/ServiceLogin")?_.Mo():f.startsWith("https://myaccount.google.com")&&_.NR(f).getPath().endsWith("/youtubeoptions")&&_.Mo())};
ZU=function(f,S){BDN(f);if(_.s6("LOGGED_IN",!0)&&lfQ()){var B=fRQ(f);B==null&&(B={});fV1(B,S)&&_.WZ(f,B)}};
GJA=function(){function f(S){for(S=S.target;S&&S.nodeName!=="A";)if(S=S.parentNode,!(S&&S instanceof HTMLElement))return;if(S&&!S.hasAttribute("download")&&S.getAttribute("rel")!=="external"&&S.href)return S.href}
document.addEventListener("mousedown",function(S){S.button!==0&&(S=f(S))&&ZU(S)});
document.addEventListener("click",function(S){(S=f(S))&&ZU(S)})};
bRV=function(){var f=new gPK;try{if(_.s6("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(X){f.increment(5,!1);return}if(_.nL("LOGIN_INFO")){var S=e9M?e9M:window.location;_.nL("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&W$N();var B=fRQ(S.href);B==null&&(B={});var G=B.session_logininfo,g=Number(window.sessionStorage.getItem("stickiness_reload")),b=G===_.nL("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
g>=2||b)g>=2?f.increment(2,b):b?f.increment(7,b):window.sessionStorage.getItem("session_logininfo")||(f.increment(3,b),oPN="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.nL("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.nL("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))f.increment(4,b),window.sessionStorage.removeItem("stickiness_reload");
else if(g<2){window.sessionStorage.setItem("stickiness_reload",String(g+1));var z=S.href;z=_.cZ(z,"sttick");ZU(z,window.sessionStorage.getItem("session_logininfo"));z=_.Zt(z,{sttick:g});f.increment(g,b);_.tJ(S,z)}}else f.increment(6,!1)}else _.Mo(!1)}catch(X){}};
_.tK=function(f,S,B,G,g){S=S===void 0?{}:S;B=B===void 0?"":B;G=G===void 0?window:G;f=_.tA(f,S);ZU(f);B=_.io(f+B,g);_.tJ(G.location,B)};
_.mrN=function(f,S,B,G,g){g=g===void 0?!1:g;B&&_.WZ(f,B);B=_.io(f);var b=_.Ve(B);f!=b&&_.CL(Error("bg`"+f));f=b;S=S||Uf(f).toString(36);try{if(g)return g=f,g=h7Q(g),ZU(g),_.LC(window,g,S,"attributionsrc")}catch(z){_.Dt(z)}ZU(f);return _.LC(window,B,S,G)};
z9G=function(f){if(f.urlEndpoint){if(f=_.Mp(f.urlEndpoint.url),f.adurl)return l0(f.adurl)}else if(f.watchEndpoint)return"//www.youtube.com/watch?v="+f.watchEndpoint.videoId;return null};
R9M=function(f){if(!f||!f.reportingPings)return null;var S={};f.reportingPings.forEach(function(B){B.pingType in S?S[B.pingType].push(B.url):S[B.pingType]=[B.url]});
return{adpings:XSG(S)}};
_.ut=function(){return{isShellLoad:_.s6("IS_SHELL_LOAD",!1)}};
wX1=function(){navigator.serviceWorker.getRegistrations().then(function(f){f.forEach(XXG)})};
XXG=function(f){f&&_.h9Q(TDN,f.scope)};
_.h9Q=function(f,S){S={scope:S||_.gO("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.RP(f),S)};
ae=function(f,S,B,G){if(S&&S.serializedYpcCujLoggingParams){if(B){var g={};g.transactionErrorType=B;G&&(g.errorMessage=G);S.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:g}}}B={};B.ypcCujContext=S;f=_.hK("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",f,B);_.TF(_.F2(),f,"FLOW_TYPE_YPC_ACQUISITION")}};
_.F4j=function(f,S,B,G){var g={};g.serializedTransactionFlowLoggingParams=S;B&&(g.errorType=B);G&&(g.errorMessage=G);_.jD(f,g);_.OU()};
_.VtA=function(f){f&&_.F4j("transactionFlowStarted",f)};
_.JlT=function(f){f&&_.F4j("transactionFlowCancelled",f)};
_.yW=function(f,S,B){S&&_.F4j("transactionFlowFailed",S,f,B)};
PEM=function(f){var S=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");S&&(S.inert=f)};
_.Wt=function(){this.megabloxUrl_=null};
_.ct=function(f){try{var S=vPN==null?void 0:vPN.composedPath(f)}catch(B){S=f.composedPath?f.composedPath():[]}return S&&S.length>0?S:f.composedPath?f.composedPath():[]};
_.lt=function(f){return _.ct(f)[0]};
_.fP=function(f){if(!(f instanceof Element))return null;f=f.classList?Array.from(f.classList):void 0;if(!f)return null;var S=f.indexOf("style-scope");return S>-1&&S+1<f.length?f[S+1]:null};
ol=function(f){if(!(f instanceof HTMLElement))return null;var S=f&&(f.$$||f.polymerController)?f.tagName.toLowerCase():null;return S?S:_.fP(f)};
K4s=function(f,S){return f.replace(/[^a-z]*[^\s]+/g,function(B){return B+".style-scope."+S})};
dr1=function(f,S){return S?f.split(",").map(function(B){return K4s(B.trim(),S)}).join(", "):f};
_.Sd=function(f){var S,B,G,g;return(g=(G=(B=(S=f.root)!=null?S:f.shadowRoot)!=null?B:f.__shady_native_shadowRoot)!=null?G:f.__shady_shadowRoot)!=null?g:f};
BF=function(f){return f instanceof ShadowRoot?ShadowRoot:f instanceof DocumentFragment?DocumentFragment:f instanceof Document?Document:HTMLElement};
iR9=function(f){var S,B,G;return(G=(B=(S=f.parentElement)!=null?S:f.__shady_native_parentElement)!=null?B:f.__shady_parentElement)!=null?G:null};
HRW=function(f){var S,B,G;return(G=(B=(S=f.parentNode)!=null?S:f.__shady_native_parentNode)!=null?B:f.__shady_parentNode)!=null?G:null};
qkW=function(f){var S,B,G;return(G=(B=(S=f.__shady_parentNode)!=null?S:f.__shady_native_parentNode)!=null?B:f.parentNode)!=null?G:null};
$r1=function(f){var S,B;return(B=(S=HRW(f))!=null?S:f.host)!=null?B:null};
QuN=function(f){var S,B,G;return(G=(B=(S=f.nextSibling)!=null?S:f.__shady_native_nextSibling)!=null?B:f.__shady_nextSibling)!=null?G:null};
Ykx=function(f){var S,B,G;return(G=(B=(S=f.previousSibling)!=null?S:f.__shady_native_previousSibling)!=null?B:f.__shady_previousSibling)!=null?G:null};
rlQ=function(f){var S,B,G;return(G=(B=(S=f.nextElementSibling)!=null?S:f.__shady_native_nextElementSibling)!=null?B:f.__shady_nextElementSibling)!=null?G:null};
jux=function(f){var S,B,G;return(G=(B=(S=f.previousElementSibling)!=null?S:f.__shady_native_previousElementSibling)!=null?B:f.__shady_previousElementSibling)!=null?G:null};
OR1=function(f){var S,B,G;return new Set([].concat(_.$d((S=f.children)!=null?S:[]),_.$d((B=f.__shady_native_children)!=null?B:[]),_.$d((G=f.__shady_children)!=null?G:[])))};
xrM=function(f){var S,B,G;return new Set([].concat(_.$d((S=f.childNodes)!=null?S:[]),_.$d((B=f.__shady_native_childNodes)!=null?B:[]),_.$d((G=f.__shady_childNodes)!=null?G:[])))};
EPT=function(f){if(!f)return null;var S=_.fP(f);if(!S){var B;return(B=Node.prototype.getRootNode)==null?void 0:B.call(f)}S=S.toUpperCase();for(f=iR9(f);f&&f.tagName!==S;)f=iR9(f);return f?_.Sd(f):null};
L49=function(f){for(;f&&!(f instanceof HTMLElement);)f=$r1(f);return f};
kJA=function(f){var S=L49(f);return f===S?_.fP(f):S?ol(S):null};
nP1=function(f){return(f=L49(f))?ol(f):null};
suT=function(f){if(f instanceof Comment)return!1;if(f instanceof Text){var S,B;if(((B=(S=f.textContent)==null?void 0:S.trim())!=null?B:"")==="")return!1}return!0};
GY=function(f,S,B){var G=S(f);for(B=B===void 0?nP1(f):B;G&&(kJA(G)!==B||!suT(G));)f=G,G=S(f);return G};
Dr9=function(f,S,B){if(!S)return null;f=nP1(f);return kJA(S)===f&&suT(S)?S:GY(S,B,f)};
IVV=function(f){return GY(f,qkW,_.fP(f))};
UrV=function(f){return GY(f,rlQ)};
CE1=function(f){return GY(f,QuN)};
pXW=function(f){return GY(f,jux)};
Al9=function(f){return GY(f,Ykx)};
NDx=function(f){return Dr9(f,f.firstChild||f.__shady_native_firstChild||f.__shady_firstChild||null,QuN)};
MtN=function(f){var S,B,G;var g=(G=(B=(S=f.firstElementChild)!=null?S:f.__shady_native_firstElementChild)!=null?B:f.__shady_firstElementChild)!=null?G:null;return Dr9(f,g,rlQ)};
ZRK=function(f){var S,B,G;var g=(G=(B=(S=f.lastChild)!=null?S:f.__shady_native_lastChild)!=null?B:f.__shady_lastChild)!=null?G:null;return Dr9(f,g,Ykx)};
ttV=function(f){var S,B,G;var g=(G=(B=(S=f.lastElementChild)!=null?S:f.__shady_native_lastElementChild)!=null?B:f.__shady_lastElementChild)!=null?G:null;return Dr9(f,g,jux)};
usx=function(f){var S=nP1(f);return Array.from(xrM(f)).filter(function(B){return kJA(B)===S})};
aV1=function(f){var S=ol(f);return Array.from(OR1(f)).filter(function(B){return _.fP(B)===S})};
_.gv=function(f,S,B){if(f instanceof HTMLElement&&_.fP(f)===B){var G=Array.from(f.classList).indexOf("style-scope");if(G===-1)f.classList.add("style-scope"),f.classList.add(S);else if(!(G+1>=f.classList.length)){G=f.classList[G+1];var g,b;f==null||(g=f.classList)==null||(b=g.replace)==null||b.call(g,G,S)}}if(f instanceof HTMLElement||f instanceof DocumentFragment)for(g=_.m(OR1(f)),b=g.next();!b.done;b=g.next())_.gv(b.value,S,B);return f};
ed=function(f,S){if(f instanceof HTMLElement&&_.fP(f)===S){var B=Array.from(f.classList).indexOf("style-scope");B===-1||B+1>=f.classList.length||f.classList.remove("style-scope",f.classList[B+1])}if(f instanceof HTMLElement||f instanceof DocumentFragment){B=_.m(f.children);for(var G=B.next();!G.done;G=B.next())ed(G.value,S)}return f};
_.yls=function(f,S){return BF(f).prototype.appendChild.call(f,S)};
W41=function(f,S){if(f===S)return!0;f=xrM(f);return Array.from(f).some(function(B){return W41(B,S)})};
_.m9=function(f,S){if(f instanceof bu)return f;(S==null?0:S.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(f,"ownerDocument")&&Object.defineProperty(f,"ownerDocument",{get:function(){return window.document}});
return new bu(f)};
lVV=function(){var f=bu.prototype,S=[].concat(_.$d(clN?[]:["getRootNode"]),["setAttribute","removeAttribute"]);S=_.m(S);for(var B=S.next(),G={};!B.done;G={method$jscomp$48:void 0},B=S.next())G.method$jscomp$48=B.value,f[G.method$jscomp$48]=function(g){return function(){return this.host[g.method$jscomp$48].apply(this.host,arguments)}}(G)};
oqN=function(){var f=bu.prototype,S=[].concat(_.$d(clN?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.$d(f3V?[]:["querySelector","querySelectorAll"]));S=_.m(S);for(var B=S.next(),G={};!B.done;G={method$jscomp$49:void 0},B=S.next())G.method$jscomp$49=B.value,f[G.method$jscomp$49]=function(g){return function(){return this.root[g.method$jscomp$49].apply(this.root,arguments)}}(G)};
G5G=function(){var f=bu.prototype,S=[].concat(_.$d(SiG?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.$d(BEj?[]:["parentNode"]));S=_.m(S);for(var B=S.next(),G={};!B.done;G={prop$jscomp$62:void 0},B=S.next())G.prop$jscomp$62=B.value,Object.defineProperty(f,G.prop$jscomp$62,{get:function(g){return function(){return this.host[g.prop$jscomp$62]}}(G),
configurable:!0})};
bfK=function(){var f=bu.prototype,S=["activeElement"].concat(_.$d(SiG?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.$d(gq9?[]:["children"]),_.$d(eiM?[]:["lastChild"]));S=_.m(S);for(var B=S.next(),G={};!B.done;G={prop$jscomp$63:void 0},B=S.next())G.prop$jscomp$63=B.value,Object.defineProperty(f,G.prop$jscomp$63,{get:function(g){return function(){return this.root[g.prop$jscomp$63]}}(G),
configurable:!0})};
mjM=function(){for(var f=bu.prototype,S=_.m(["innerHTML","textContent"]),B=S.next(),G={};!B.done;G={prop$jscomp$64:void 0},B=S.next())G.prop$jscomp$64=B.value,Object.defineProperty(f,G.prop$jscomp$64,{get:function(g){return function(){return this.root[g.prop$jscomp$64]}}(G),
set:function(g){return function(b){this.root[g.prop$jscomp$64]=b}}(G),
configurable:!0})};
ziT=function(f){var S=bu.prototype;f=_.m(Object.entries(f));for(var B=f.next(),G={};!B.done;G={fn$jscomp$361:void 0},B=f.next()){var g=_.m(B.value);B=g.next().value;g=g.next().value;G.fn$jscomp$361=g;S[B]=function(b){return function(){return b.fn$jscomp$361.apply(null,[this.host.node||this.host].concat(_.$d(arguments)))}}(G)}};
X0M=function(){for(var f=bu.prototype,S=_.m(Object.entries(Ri1)),B=S.next(),G={};!B.done;G={fn$jscomp$362:void 0},B=S.next()){var g=_.m(B.value);B=g.next().value;g=g.next().value;G.fn$jscomp$362=g;Object.defineProperty(f,B,{get:function(b){return function(){return b.fn$jscomp$362.apply(null,[this.host.node||this.host].concat(_.$d(arguments)))}}(G),
configurable:!0})}};
_.zY=function(f){return f instanceof w0j||f instanceof Document?f:new w0j(f)};
hiW=function(){for(var f=w0j.prototype,S=_.m("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),B=S.next(),G={};!B.done;G={method$jscomp$50:void 0},B=S.next())G.method$jscomp$50=B.value,f[G.method$jscomp$50]=function(g){return function(){return HTMLElement.prototype[g.method$jscomp$50].call.apply(HTMLElement.prototype[g.method$jscomp$50],[this.node].concat(_.$d(arguments)))}}(G)};
TEQ=function(){for(var f=w0j.prototype,S=_.m("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),B=S.next(),G={};!B.done;G={prop$jscomp$65:void 0},B=S.next())G.prop$jscomp$65=B.value,Object.defineProperty(f,G.prop$jscomp$65,{get:function(g){return function(){var b;return(b=this.node["__shady_native_"+g.prop$jscomp$65])!=null?b:this.node[g.prop$jscomp$65]}}(G),
configurable:!0})};
_.Rl=function(f,S,B){B===void 0&&(B=!f.classList.contains(S));B?f.classList.add(S):f.classList.remove(S)};
_.Xc=function(f,S,B){B===void 0&&(B=!f.hasAttribute(S));if(S==="class")throw Error("fg");B?_.zY(f).setAttribute(S,""):_.zY(f).removeAttribute(S)};
FXQ=function(f){return(f.localName!=="slot"?[]:(0,_.wv)(f).assignedNodes({flatten:!0})).filter(function(S){return S.nodeType===Node.ELEMENT_NODE})};
_.VGG=function(f){return(f=_.m9(f).querySelector("slot"))&&f.localName==="slot"?FXQ(f):[]};
_.hO=function(f,S){window.ShadyCSS&&window.ShadyCSS.styleSubtree(f,S)};
TY=function(f,S){var B=S.bind(f);return function(G){B(G,G.detail)}};
_.Fc=function(f,S){var B=JgV.get(f);B||(B=new WeakMap,JgV.set(f,B));if(B.has(S))return B.get(S);if(_.K("web_fi_listen_disable_bound_fn_helper")){var G=S.bind(f);f=function(g){G(g,g==null?void 0:g.detail)}}else f=TY(f,S);
B.set(S,f);return f};
KX9=function(f,S){Prs(f);f.created[vqM].push(S)};
Prs=function(f){if(!f.created||!f.created[vqM]){var S=f.created,B=S?[S]:[];f.created=function(){for(var G=_.m(B),g=G.next();!g.done;g=G.next())g.value.apply(this)};
f.created[vqM]=B}};
djW=function(f){return function(){var S=_.qb.apply(0,arguments);return function(B,G,g){f.apply(null,_.$d(S))(B,G,g)}}};
ifT=function(){return function(){var f=_.qb.apply(0,arguments);return function(S,B,G){KZV.apply(null,_.$d(f))(S,B,G)}}};
_.r=function(f){return ifT()(f)};
_.k=function(){return djW(qyN).apply(null,_.$d(_.qb.apply(0,arguments)))};
_.Vg=function(f){return _.K("pbcm_fi_listen_decorators")?HfK(f):djW(izx)(f)};
HfK=function(f){return function(S,B){KX9(S,function(){var G=this[B],g=_.K("web_fi_listen_disable_bound_fn_helper")?function(b){G(b,b.detail)}.bind(this):TY(this,G);
qiK.has(f)?ju(this.hostElement,f,g):this.hostElement.addEventListener(f,g)})}};
_.JO=function(){return djW(Hzs).apply(null,_.$d(_.qb.apply(0,arguments)))};
_.n=function(f){f=f===void 0?{}:f;return djW(d_1)(f)};
_.PF=function(f){if(f.hostElement&&f!==f.hostElement){var S=_.HZ(f.hostElement);S=f.renderIdom?S:S.shadowRoot}S||(f=f.root,S=f instanceof Node?_.HZ(f):null);return S};
_.vF=function(f){return $j9?Q_N(f):function(S,B){Object.defineProperty(S,B,{get:function(){var G;return(G=_.PF(this))==null?void 0:G.querySelector(f)},
enumerable:!0,configurable:!0})}};
Q_N=function(f){return function(S,B){Object.defineProperty(S,B,{get:function(){var G,g=(G=_.m9(this.hostElement))==null?void 0:G.querySelector(f);if(g)return g;var b;return(b=_.PF(this))==null?void 0:b.querySelector(f)},
enumerable:!0,configurable:!0})}};
_.KP=function(f){return $j9?YiN(f):function(S,B){Object.defineProperty(S,B,{get:function(){var G;return(G=_.PF(this))==null?void 0:G.querySelectorAll(f)},
enumerable:!0,configurable:!0})}};
YiN=function(f){return function(S,B){Object.defineProperty(S,B,{get:function(){var G,g=(G=_.m9(this.hostElement))==null?void 0:G.querySelectorAll(f);if(g==null?0:g.length)return g;var b;return(b=_.PF(this))==null?void 0:b.querySelectorAll(f)},
enumerable:!0,configurable:!0})}};
rg1=function(f){return function(S){if(![_.WS,_.I].includes(Object.getPrototypeOf(S.prototype).constructor))throw Error("gg");wY9(Object.assign({},typeof f!=="string"?f:{is:f,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(S)}};
_.iu=function(){var f=f===void 0?{}:f;return function(S){if(![cS,_.dv].includes(Object.getPrototypeOf(S.prototype).constructor))throw Error("hg");hFN(Object.assign({},f,{disableInheritanceCheck:!0}))(S)}};
OfM=function(f,S){j_1[f]!=null||(j_1[f]=new Set);j_1[f].add(S)};
_.HF=function(){var f=_.JO.apply(null,_.$d(_.qb.apply(0,arguments)));return function(S,B){OfM(S.is,B);f(S,B)}};
Qg=function(f,S,B){if(qJ(f)&&!xjN.has(S)){S=S.replace(/^JSC\$[\d]+_/,"");S=S.replace(/\.\d+(\.|$)/g,function(b,z){return".#"+z});
$b[f]!=null||($b[f]={});var G,g;(G=$b[f])[g=S]!=null||(G[g]=new Set);$b[f][S].has(B)||($b[f][S].add(B),_.jD("polymerPropertyAccessEvent",{componentName:f,propertyName:S,accessType:B}))}};
EqG=function(){return _.K("polymer_property_access_logging_debug")||_.K("polymer_enable_property_access_logging")};
qJ=function(f){if(_.K("polymer_property_access_logging_debug"))return!0;if(!_.K("polymer_enable_property_access_logging"))return!1;LXW||(LXW=Date.now());return(Uf(f)+LXW)%100<_.Gt("polymer_property_access_logging_percent")};
k59=function(f,S){return qJ(S)&&f.hostElement.loggingStatus?new Proxy(f,{get:function(B,G,g){if(B.hostElement.loggingStatus.bypassProxyController)return B[G];B.hostElement.loggingStatus.isExternalGet=!0;var b=B[G];B.hostElement.loggingStatus.isExternalGet=!1;if(b instanceof Function)return function(){var z=_.qb.apply(0,arguments);try{return B.hostElement.loggingStatus.currentExternalCall=G,Qg(S,G,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),b.apply(this===g?B:this,z)}finally{B.hostElement.loggingStatus.currentExternalCall=
void 0}};
Qg(S,G,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return b},
set:function(B,G,g){if(B.hostElement.loggingStatus.bypassProxyController)return B[G]=g,!0;B.hostElement.loggingStatus.isRendererStamper?Qg(S,G,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):B.hostElement.loggingStatus.isDeclarativeExternal||Qg(S,G,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{B.hostElement.loggingStatus.currentExternalSet=G,B[G]=g}finally{B.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):f};
nq1=function(f,S){f&&f.loggingStatus&&!f.loggingStatus.isDeclarativeExternal&&!f.loggingStatus.isExternalGet&&f.loggingStatus.currentExternalSet!==S&&Qg(f.tagName.toLowerCase(),S,"PROPERTY_ACCESS_GET_INTERNAL")};
Yb=function(f,S,B){f&&(B||f.loggingStatus&&!f.loggingStatus.isInitializing&&!f.loggingStatus.isDefiningPropertyAccessor&&f.loggingStatus.currentExternalSet!==S)&&Qg(f.tagName.toLowerCase(),S,"PROPERTY_ACCESS_SET_INTERNAL")};
s_Q=function(){return{_definePropertyAccessor:function(f,S){var B=this,G=B.hostElement.loggingStatus;G&&(G.isDefiningPropertyAccessor=!0);var g=B[f];g!==void 0&&(B.__data?B._setPendingProperty(f,g):(B.__dataProto!=null||(B.__dataProto={}),B.__dataProto[f]=g));G&&(G.isDefiningPropertyAccessor=!1);Object.defineProperty(this,f,{get:function(){nq1(B.hostElement,f);return this.__data[f]},
set:function(b){S||this._setPendingProperty(f,b,!0)&&this._invalidateProperties()}})},
created:function(){var f=this._setPendingProperty.bind(this);this._setPendingProperty=function(S,B,G){Yb(this.hostElement,S);return f.apply(this,[S,B,G])}}}};
DjQ=function(f){EqG()&&_.r(rv.prototype)(f.prototype,"__templateBindingLoggingBehavior")};
I3W=function(f,S){if(S.resolvedFactories.length!==f.resolvedFactories.length)return!0;S=_.m(S.resolvedFactories.entries());for(var B=S.next();!B.done;B=S.next()){var G=_.m(B.value);B=G.next().value;G=G.next().value;if(G.providerClass){if(G.providerClass!==f.resolvedFactories[B].providerClass)return!0}else if(G.providerValue){if(G.providerValue!==f.resolvedFactories[B].providerValue)return!0}else if(G.factory!==f.resolvedFactories[B].factory)return!0}return!1};
UjV=function(f,S){f=_.m(f);for(var B=f.next();!B.done;B=f.next())if(B=B.value,B.constructor===Array)UjV(B,S);else{var G=S;G.has(B)||(B.inject&&G.add(B),B.behaviors&&UjV(B.behaviors,G))}};
jd=function(f,S){var B=f[S];f[S]=function(){var G=_.qb.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(B)return B.apply(this,G)}};
NEW=function(){_.OW.Class=function(B,G){B=Crj(B,G);jd(B.prototype,"created");return B};
jd(xb.prototype,"_initializeProperties");jd(_.EW.prototype,"_initializeProperties");if(p0j)jd(AgT,"created");else{var f=function(){jd(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))f();else{var S=customElements.define;customElements.define=function(B,G,g){S.call(customElements,B,G,g);B==="tp-yt-iron-list"&&(f(),customElements.define=S)}}}};
ZfV=function(f,S){f.prototype.behaviors=f.prototype.behaviors||[];f.prototype.behaviors.unshift(MGx.InjectBehavior);f.prototype.provide=S};
_.nP=function(f){return function(S){if(!f.disableElementRegistration){f.noInjection||ZfV(S,f.providers);var B=S.prototype;B.__templateHelpers||KZV(LP.prototype)(B,"__templateHelpers");B=f.is;tGM||(tGM=Date.now());(Uf(B)+tGM)%100<_.Gt("polymer_log_prop_change_observer_percent")&&KZV(kb.prototype)(S.prototype,"__propertyObserverObserver");S.prototype.behaviors=S.prototype.behaviors||[];S.prototype.behaviors.unshift(_.uSM.YtHostElementBehavior);DjQ(S);rg1({is:f.is,notifyObserversOnUndefined:f.notifyObserversOnUndefined!==
!1,fastInit:f.fastInit,template:f.template,disableEnforceFastDefaultValuesCheck:!0})(S)}}};
_.C=function(f){return _.nP({is:f.is,template:f.template,disableElementRegistration:f.disableElementRegistration,cssBuildOptOut:f.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
WXG=function(f,S){if(a3V){f=new f;for(var B=_.m(Object.getOwnPropertyNames(f)),G=B.next();!G.done;G=B.next())G=G.value,S[G]=f[G];for(B=S;B&&B!==Object.prototype;B=Object.getPrototypeOf(B)){G=_.m(Object.getOwnPropertyNames(B));for(var g=G.next();!g.done;g=G.next())g=g.value,f.hasOwnProperty(g)||Object.defineProperty(f,g,ygV(S,g))}}else f.apply(S)};
ygV=function(f,S){return{get:function(){var B=f[S];return B instanceof Function?B.bind(f):B},
set:function(B){f[S]=B}}};
l3Q=function(f,S){for(var B=f._noAccessors,G=_.m(Object.getOwnPropertyNames(f)),g=G.next();!g.done;g=G.next())if(g=g.value,!cgG.has(g))if(B)S[g]=f[g];else{var b=Object.getOwnPropertyDescriptor(f,g);b&&(b.configurable=!0,Object.defineProperty(S,g,b))}};
fy1=function(f,S,B){return function(G){if(B){var g=B();G.model=g}if(f[S])f[S](G,G.detail)}};
sW=function(f){var S=[];if(typeof f==="string")f.length>0&&S.push.apply(S,_.$d(f.split(".")));else{f=_.m(f);for(var B=f.next();!B.done;B=f.next())B=B.value,typeof B==="string"?S.push.apply(S,_.$d(B.split("."))):S.push(B)}return S};
oaM=function(f,S){if(S[S.length-1]!=="*"&&S[S.length-1]!=="splices"){for(var B=0;B<S.length;B++){if(!f)return;f=f[S[B]]}return f}};
Srx=function(f,S){if(f.length>S.length)return!1;for(var B=0;B<f.length;B++)if(f[B]!==S[B])return!1;return!0};
G0N=function(f,S,B){if(S.type==="compute"){var G=S.getter.bind(B);var g=S.args}else G=function(){return B[S.method.methodName].apply(B,_.$d(_.qb.apply(0,arguments)))},g=S.method.args;
BnQ(f,S.propertyKey,G,g,S.value)};
eEA=function(f,S){if(S.readOnly){var B=Object.getOwnPropertyDescriptor(f.model,S.propertyKey);Object.defineProperty(f.model,S.propertyKey,{get:B.get,set:function(){}});
f.model[gaQ(S.propertyKey)]=B.set}};
btx=function(f,S,B){if(B){var G=S.propertyKey,g=S.selector;S=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.$d(S.selectorArgs.map(function(b){return{type:"path",path:b}})));
BnQ(f,G,function(b){var z=_.qb.apply(1,arguments);return g.apply(null,[B.getState()].concat(_.$d(z)))},S)}};
zEj=function(f,S,B){var G=_.Fv(S.propertyKey)+"-changed";muT(f,function(g){var b={value:g.value,queueProperty:!0};g.path.split(".").length>1&&(b.path=g.path);B.dispatchEvent(new CustomEvent(G,{detail:b}))},[{type:"wildcard",
path:S.propertyKey}])};
REs=function(f,S,B){muT(f,function(){B[S.method.methodName].apply(B,_.$d(_.qb.apply(0,arguments)))},S.method.args)};
gaQ=function(f){return"_set"+(f.charAt(0).toUpperCase()+f.slice(1))};
XxM=function(){var f,S=xp(function(B){f=B},!1);
return[f,S]};
VL1=function(f){f=f.trim().replace(wx9,",").replace(hEx,"$1");var S=f[0];S==="-"&&(S=f[1]);if(S>="0"&&S<="9")return{type:"literal",value:Number(f)};if(S==="'"||S==='"')return{type:"literal",value:f.slice(1,-1)};if(S=f.match(TnA)){S=S[1];var B=FYT[S];if(B)return{type:B,path:f.slice(0,-(S.length+1))}}return{type:"path",path:f}};
KYK=function(f){var S=f.match(JHW);if(S)return f={methodName:S[1],args:PQW},S[2].trim()&&(S=S[2].replace(vaQ,"&comma;").split(","),f.args=S.map(VL1)),f};
duK=function(f,S,B,G){G=G===void 0?!1:G;S=_.Fv(S);var g=PS;g&&(B=g(B,S,"attribute",f));De(f,B,S,G)};
De=function(f,S,B,G){S=itK(S,G===void 0?!1:G);S===void 0?f.removeAttribute(B):f.setAttribute(B,S)};
itK=function(f,S){switch(typeof f){case "object":case "function":if(f instanceof Date)return f.toString();if(f){if((S===void 0?0:S)&&!_.K("polymer_reflect_objects_as_boolean_killswitch"))return f?"":void 0;S=window.trustedTypes?window.trustedTypes.isHTML(f)||window.trustedTypes.isScript(f)||window.trustedTypes.isScriptURL(f):void 0;if(S)return f;try{return JSON.stringify(f)}catch(B){_.Lg(Error("Dg`"+f))}}break;case "boolean":return f?"":void 0;default:return f!==null&&f!==void 0?f.toString():void 0}};
Ht1=function(f){if(f===void 0)throw Error("Eg");return f};
rHs=function(f,S,B,G){var g=qrV(G);if(g.length){G=B;var b="property";$uG.test(B)?b="attribute":B[B.length-1]==="$"&&(B=B.slice(0,-1),b="attribute");var z=QA1(g);z&&b==="attribute"&&(B==="class"&&f.hasAttribute("class")&&(z+=" "+f.getAttribute(B)),De(f,z,B));b==="attribute"&&G==="disable-upgrade$"&&f.setAttribute("disable-upgrade","");f.localName==="input"&&G==="value"&&f.setAttribute("value","");f.removeAttribute(G);b==="property"&&(B=_.Vw(B));S=Ht1(S);YrW(S,b,B,g);return!0}return B.slice(0,3)===
"on-"?(f.removeAttribute(B),(b=S).events!=null||(b.events=[]),S.events.push({name:B.slice(3),value:G}),!0):B==="id"?(S.id=G,!0):!1};
qrV=function(f){for(var S=[],B=0,G;(G=jAx.exec(f))!==null;){G.index>B&&S.push({type:"literal",value:f.slice(B,G.index)});var g=G[1][0];B=!!G[2];G=G[3].trim();if(g==="{")throw Error("Fg");(g=KYK(G))?S.push({type:"method",negate:B,signature:g}):S.push({type:"path",negate:B,path:G});B=jAx.lastIndex}B&&B<f.length&&(f=f.substring(B))&&S.push({type:"literal",value:f});return S};
QA1=function(f){for(var S="",B=0;B<f.length;B++){var G=f[B];G.type==="literal"&&(S+=G.value)}return S};
YrW=function(f,S,B,G){f.bindings!=null||(f.bindings=[]);f.bindings.push({kind:S,target:B,parts:G})};
k0N=function(f,S,B){var G=!1;if(f.localName==="template"){G=B;var g=S.stripWhitespace;g=OtA(f,g===void 0?!1:g);var b=f.content.ownerDocument.createDocumentFragment();g.content=b;b.appendChild(f.content);G&&(G.templateInfo=g);G=!0}else f.localName==="slot"&&(S.hasInsertionPoint=!0);if(f.firstChild&&(g=B,f.localName!=="script"&&f.localName!=="style")){b=0;for(var z=f.firstChild;z;){var X=z;if(X.localName==="template"){var w=X.getAttribute("is");if((z=w==="dom-if")||w==="dom-repeat"){X.removeAttribute("is");
w=X.ownerDocument.createElement("ps-"+w);X.parentNode.replaceChild(w,X);w.appendChild(X);var F=Array.from(X.attributes);F=_.m(F);for(var V=F.next();!V.done;V=F.next())V=V.value,z?xuA.has(V.name)&&De(w,V.value,V.name):EaM.has(V.name)?De(w,V.value,V.name):LYQ.has(V.name),X.removeAttribute(V.name);z=w}else z=X}if(z.nodeType===Node.TEXT_NODE){X=void 0;w=f;for(F=z;((X=F.nextSibling)==null?void 0:X.nodeType)===Node.TEXT_NODE;)V=void 0,(V=F).textContent!=null||(V.textContent=""),F.nextSibling.textContent&&
(F.textContent+=F.nextSibling.textContent),w.removeChild(F.nextSibling);if(S.stripWhitespace&&z.textContent&&!z.textContent.trim()){f.removeChild(z);z=z.nextSibling;continue}}k0N(z,S,{parentIndex:b,parentInfo:g});z.parentNode&&b++;z=z.nextSibling}}var J;if((J=f.hasAttributes)==null?0:J.call(f)){J=B=Ht1(B);g=!1;b=Array.from(f.attributes);b=_.m(b);for(X=b.next();!X.done;X=b.next())X=X.value,g=rHs(f,J,X.name,X.value)||g;G=g||G}f.nodeType===Node.TEXT_NODE&&(J=qrV(f.textContent),J.length&&(f.textContent=
QA1(J)||" ",B=Ht1(B),YrW(B,"text","textContent",J),G=!0));B&&G&&(B.infoIndex=S.nodeInfoList.push(B)-1)};
OtA=function(f,S){S={nodeInfoList:[],stripWhitespace:(S===void 0?!1:S)||f.hasAttribute("strip-whitespace")};k0N(f.content,S);return S};
naN=function(f){Object.assign(f,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
DuG=function(f,S,B){S.signalCache!=null||(S.signalCache={});var G=S.signalCache[B];if(!G){var g=B.split(".");G=!sAN(f,g[0]);if(g.length>1&&G){var b=f.getPathMutationSignal(g);G=function(){var z=kp(f.owner,function(){return f.getWithPath([g[0]])}),X,w=(X=b())==null?void 0:X.value;
return{rootWasDefined:z!==void 0,value:w}}}else G=function(){var z=f.getWithPath(g);
return{rootWasDefined:z!==void 0,value:z}};
S.signalCache[B]=G}return G()};
UuG=function(f,S,B,G,g){S=S.parts.map(function(z,X){if(z.type==="literal"){B.partWasDefined!=null||(B.partWasDefined=[]);var w;(w=B.partWasDefined)[X]||(w[X]=z.value!==void 0);return z.value}var F;if(z.type==="method"){var V,J=(V=(F=B.partWasDefined)==null?void 0:F[X])!=null?V:!1;J||(J=z.signature.args.every(function(Q){return Q.type==="literal"}));
var P=!1,d=!0;F=z.signature.args.map(function(Q){if(Q.type==="literal")return Q.value;if(Q.type!=="path")throw Error("Gg`"+Q.type);var x=DuG(f,B,Q.path);Q=x.value;x=x.rootWasDefined;P||(P=x);d&&(d=x);return Q});
J||(J=g===1?d:P);B.partWasDefined!=null||(B.partWasDefined={});B.partWasDefined[X]=J;if(!J)return;F=(X=DuG(f,B,z.signature.methodName).value)&&typeof X==="function"?X.apply(G,F):void 0}else V=DuG(f,B,z.path),F=V.value,B.partWasDefined!=null||(B.partWasDefined={}),(J=B.partWasDefined)[X]||(J[X]=F!==void 0||V.rootWasDefined);z.negate&&(F=!F);return F});
if(S.length===1){var b;return((b=B.partWasDefined)==null?0:b[0])?S[0]:IyV}return S.join("")};
CQT=function(f){return typeof f==="object"&&!!f&&"notifyPath"in f&&"canNotifyPath"in f};
pxA=function(f){return typeof f==="object"&&!!f&&"notifyPath"in f};
AHx=function(f){return"polymerController"in f};
Nns=function(f,S){S=""+sW(S)[0];if(CQT(f))return f.canNotifyPath(S);if(AHx(f)&&CQT(f.polymerController))return f.polymerController.canNotifyPath(S);if(pxA(f)){var B;return!((B=f.properties)==null||!B[S])}if(AHx(f)&&pxA(f.polymerController)){var G;return!((G=f.polymerController.properties)==null||!G[S])}return!1};
MLj=function(f,S,B){CQT(f)||pxA(f)?f.notifyPath(S,B):AHx(f)&&(CQT(f.polymerController)||pxA(f.polymerController))&&f.polymerController.notifyPath(S,B)};
tLK=function(f,S,B){if(B!==IyV){f.kind==="attribute"||f.target!=="textContent"&&(f.target!=="value"||S.localName!=="input"&&S.localName!=="textarea")||(B=B===void 0?"":B);var G,g=(G=Zt9.Polymer)==null?void 0:G.sanitizeDOMValue;g&&(B=g(B,f.target,f.kind,S));if(f.kind==="attribute"){f=f.target;if(f==="class"||f==="name"||f==="slot")S=(0,_.wv)(S);De(S,B,f)}else if(f=f.target,B!==S[f]||typeof B==="object")S.loggingStatus&&(S.loggingStatus.isDeclarativeExternal=!0,Qg(S.localName,f,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
S[f]=B,S.loggingStatus&&(S.loggingStatus.isDeclarativeExternal=!1)}};
utQ=function(f,S,B,G){var g=S.parts[0];if(S.parts.length!==1||g.type!=="path"||!Nns(B,S.target))return!1;var b=_.m(g.path.split(".")),z=b.next().value,X=aK(b);if(sAN(f,z))return!1;G.signalCache!=null||(G.signalCache={});b=G.signalCache[g.path];var w;b=(w=b)==null?void 0:w().value;if((b==null?void 0:b.path)!==void 0){G=sW(b.path);var F=sW(g.path);G=[S.target].concat(_.$d(G.slice(F.length-1)));MLj(B,G,g.negate?!b.value:b.value);return!0}var V=Il(f,z);var J=V.getChangeRecordSignal(X),P=!1;b=function(){if(!P){var Q=
kp(f.owner,function(){return V.getWithPath([])});
P||(P=Q!==void 0)}return{value:J(),rootWasDefined:P}};
G.signalCache[g.path]=b;G.partWasDefined!=null||(G.partWasDefined={});b=b();(F=G.partWasDefined)[0]||(F[0]=b.rootWasDefined);var d=kp(f.owner,function(){return V.getWithPath(X)});
G.partWasDefined[0]&&kp(f.owner,function(){return void tLK(S,B,g.negate?!d:d)});
return!0};
ay9=function(f,S,B,G,g,b){if(!utQ(f,S,B,G)){var z=UuG(f,S,G,g,b);kp(f.owner,function(){return void tLK(S,B,z)})}};
yHW=function(f,S,B,G,g,b){B=_.m(B);for(var z=B.next(),X={};!z.done;X={infoIndex:void 0},z=B.next()){z=z.value;var w=z.bindings;X.infoIndex=z.infoIndex;z=z.parentInfo;if(w){w=_.m(w);for(var F=w.next(),V={};!F.done;V={b$jscomp$252:void 0,bindingCtx$jscomp$4:void 0},F=w.next()){V.b$jscomp$252=F.value;if(X.infoIndex===void 0)throw Error("Hg");V.bindingCtx$jscomp$4={};f.effect(function(J,P){return function(){g&&!g()||ay9(f,J.b$jscomp$252,S[P.infoIndex],J.bindingCtx$jscomp$4,G,b)}}(V,X))}}z&&yHW(f,S,[z],
G,g,b)}};
WYG=function(f,S){f=(S.parentInfo?WYG(f,S.parentInfo):f).firstChild;for(var B=0;f;f=f.nextSibling)if(S.parentIndex===B++)return f;throw Error("Ig");};
lyQ=function(f,S,B,G){f=document.importNode(f.content,!0);f.__noInsertionPoint=!(G==null?0:G.hasInsertionPoint);for(var g=Array(S.length),b={},z=0;z<S.length;z++){var X=S[z],w=WYG(f,X);g[z]=w;X.id&&(b[X.id]=w);if(X.templateInfo){var F=w.parentElement;F&&(F.templateInfo=X.templateInfo,F.parentSignalProxy=B,F.eventListenerHost=G.eventListenerHost,F.stampingEnabled=G.enabledSignal)}F=void 0;if((F=X.events)==null?0:F.length)for(F=0;F<X.events.length;F++){var V=X.events[F];cHN(G.eventListenerHost,w,V.name,
V.value,G.getModel)}}yHW(B,g,S,G.thisCtx,G.enabledSignal,G.methodInvocationRequirement);return{root:f,nodes:g,nodesById:b}};
oMG=function(f,S){f=f();var B;(B=fDV.ShadyCSS)==null||B.prepareTemplate(f,S);S=OtA(f);return{template:f,nodeInfoList:S.nodeInfoList,hasInsertionPoint:S.hasInsertionPoint}};
Gf1=function(){SwG=!1;for(var f=UW.length,S=0;S<f;S++){var B=UW[S];if(B)try{B()}catch(G){Promise.resolve().then(function(){throw G;})}}UW.splice(0,f);
BKT+=f};
my1=function(f){SwG||(SwG=!0,gMK.textContent=(eR9++).toString());UW.push(f);return bp1++};
_.AO=function(f,S,B){CP++;f=S?new zRQ(CP,f,S,B):new RRW(CP,f);pP.set(CP,f);return CP};
XmM=function(f){(f=pP.get(f))&&f.cancel()};
hRN=function(f,S){f=wmW.get(f);return f?(S=f.get(S))?S:null:null};
_.NJ=function(f,S,B,G){var g=hRN(f,S);if(!g){g=new TKV;var b=wmW.get(f);b||(b=new Map,wmW.set(f,b));b.set(S,g)}f=B.bind(f);g.run(f,G,void 0)};
_.F_1=function(f,S){var B;(B=hRN(f,S))==null||B.cancel()};
VcN=function(f){var S;(S=hRN(f,"doRender"))==null||S.flush()};
MJ=function(f){var S;return(S=f.hostElement)!=null?S:f};
JkT=function(f){var S=f.indexOf(".");return S===-1?f:f.slice(0,S)};
Pb1=function(f,S,B,G,g,b){b=(g=(G=b?JkT(S):S)?S:null)?f.get(g):f.__data[S];g&&b===void 0&&(b=B[S]);_.ew(f.hostElement,W5N(G)+"-changed",{value:b,queueProperty:!0,path:g!=null?g:void 0},{bubbles:!1,composed:!1})};
vMx=function(f,S){f.__isReflecting=!0;duK(f.hostElement,S,f.__data[S]);f.__isReflecting=!1};
K_Q=function(f){if(f._onIronRequestResizeNotifications){var S=f._onIronRequestResizeNotifications.bind(f);f._onIronRequestResizeNotifications=function(B){_.lt(B)!==f.hostElement&&S(B)}}f._ariaActiveAttributeChanged&&(f._ariaActiveAttributeChanged=f._ariaActiveAttributeChanged.bind(f.hostElement));
f._activeChanged&&(f._activeChanged=function(B){f.toggles?De(f.hostElement,B?"true":"false",f.ariaActiveAttribute):f.hostElement.removeAttribute(f.ariaActiveAttribute);f._changedButtonState()});
f._asyncClick&&(f._asyncClick=function(){_.AO(function(){f.hostElement.click()},1)});
!f.keyEventTarget||f.keyEventTarget instanceof EventTarget||(f.keyEventTarget=MJ(f.keyEventTarget));f._disabledChanged&&(f._disabledChanged=f._disabledChanged.bind(f.hostElement));f._observeItems&&(f._observeItems=function(B){var G=MJ(B);return _.HZ(G).observeNodes(function(g){f._updateItems();f._updateSelected();_.ew(G,"iron-items-changed",g,{bubbles:!1,cancelable:!1})})});
f._updateItems&&f._updateItems===_.Ze._updateItems&&(f._updateItems=function(){var B=_.HZ(f.hostElement).queryDistributedElements(f.selectable||"*");B=Array.prototype.filter.call(B,f._bindFilterItem);f._setItems(B)});
f._computeKeyboardClass&&(f._computeKeyboardClass=function(B){_.Rl(f.hostElement,"keyboard-focus",B)});
f.ensureRipple&&(f.ensureRipple=function(B){if(f.hasRipple&&!f.hasRipple()){if(!f._createRipple)return;f._ripple=f._createRipple();f._ripple.noink=f.noink;var G=f._rippleContainer||f.hostElement;G&&_.m9(G).appendChild(f._ripple)}var g;if(B&&((g=f._ripple)==null?0:g.uiDownAction)){G=_.m9(f._rippleContainer||f.hostElement);var b;g=(b=B.composedPath())==null?void 0:b[0];G.contains(g)&&f._ripple.uiDownAction(B)}});
f._updateMultiselectable&&(f._updateMultiselectable=function(B){B?f.hostElement.setAttribute("aria-multiselectable","true"):f.hostElement.removeAttribute("aria-multiselectable")})};
dyA=function(f,S,B){B=_.m(B);for(var G=B.next();!G.done;G=B.next())WXG(G.value.constructor,f);WXG(S.constructor,f)};
Hps=function(f,S){f=_.m(f);for(var B=f.next();!B.done;B=f.next())if(B=B.value,B.type==="signal"){var G=B.propertyKey;if(S.hasOwnProperty(G)&&S[G]!=null&&B.attributeType===Object){a:{G=S[G].constructor;for(var g=_.m(ipW),b=g.next();!b.done;b=g.next())if(b=b.value,G===b){G=b;break a}G=Object}B.attributeType=G}}};
qwM=function(){};
$yx=function(f){var S;return(S=f.hostElement)!=null?S:f};
QCA=function(){throw Error("Mg");};
YwA=function(f,S){f.constructor.prototype.useSignals=!0;var B=new f.constructor;dyA(B,f,S.behaviors);Hps(S.reactiveSchemas,B);B={};for(var G=_.m(S.reactiveSchemas),g=G.next();!g.done;g=G.next())g=g.value,g.type==="signal"&&(B[g.propertyKey]=g.attributeType);var b={copyPropertiesToProto:QCA,didRegister:!1,typesForSignals:B},z=["disable-upgrade"].concat(_.$d(S.observedAttributes)),X=function(w){tO.call(this,f,S,b,w)};
_.q(X,tO);_.y3.Object.defineProperties(X,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return z}}});
b.copyPropertiesToProto=function(){for(var w=0;w<S.behaviors.length;w++)l3Q(S.behaviors[w],X.prototype);l3Q(f,X.prototype)};
S.legacyOptimizations||b.copyPropertiesToProto();X.prototype.is=f.is;return X};
rkN=function(f,S){if(Object.getPrototypeOf(S.prototype).constructor!==_.I)throw Error("Ng");S.prototype.is=f.is;return YwA(S.prototype,f)};
jCG=function(f){return f.type==="compute"||f.type==="computeWithMethod"};
OpA=function(f){for(var S=f.reactiveSchemas.filter(jCG),B=new Map,G=new Map,g=new Map,b=_.m(S),z=b.next();!z.done;z=b.next())z=z.value,B.set(z.propertyKey,z),G.set(z.propertyKey,[]),g.set(z.propertyKey,0);b=0;S=_.m(S);for(z=S.next();!z.done;z=S.next()){z=z.value;for(var X=_.m(z.type==="computeWithMethod"?z.method.args:z.args),w=X.next();!w.done;w=X.next())w=w.value,w.type!=="literal"&&(w=w.path.split(".")[0],G.has(w)&&(G.get(w).push(z.propertyKey),g.set(z.propertyKey,g.get(z.propertyKey)+1),b++))}z=
[].concat(_.$d(G.keys())).filter(function(F){return g.get(F)===0});
for(S=[];z.length;)for(X=z.shift(),S.push(B.get(X)),X=_.m(G.get(X)),w=X.next();!w.done;w=X.next())w=w.value,g.set(w,g.get(w)-1),b--,g.get(w)===0&&z.push(w);B=f.reactiveSchemas.filter(function(F){return!jCG(F)});
f.reactiveSchemas=[].concat(_.$d(B),_.$d(S))};
xyT=function(f,S){if(S.properties)for(var B=_.m(Object.entries(S.properties)),G=B.next();!G.done;G=B.next()){var g=_.m(G.value);G=g.next().value;g=g.next().value;f.properties[G]=typeof g==="function"?{type:g}:g}S.observers&&f.observers.push.apply(f.observers,_.$d(S.observers));S.disabledPolySiReactions&&f.disabledPolySiReactions.push.apply(f.disabledPolySiReactions,_.$d(S.disabledPolySiReactions))};
EM1=function(f,S){for(var B=S.length-1;B>=0;B--){var G=S[B];Array.isArray(G)?EM1(f,G):f.indexOf(G)<0&&f.unshift(G)}};
L_A=function(f,S){f.reactiveSchemas=f.reactiveSchemas.filter(function(B){return B.type==="observe"&&S.includes(B.method.methodName)||jCG(B)&&S.includes(B.propertyKey)?!1:!0})};
nMV=function(f,S){var B=S.prototype,G,g,b={is:f.is,reactiveSchemas:[],observedAttributes:[],behaviors:[MGx.InjectBehavior,LP.prototype],disableElementRegistration:f.disableElementRegistration,provide:(G=f.providers)!=null?G:[],reactivityMode:f.reactivityMode,signalProperties:(g=B.signalProperties)!=null?g:[]};"template"in S?b.templateGetter=function(){return S.template}:f.getTemplate&&(b.templateGetter=f.getTemplate);
B.behaviors&&EM1(b.behaviors,B.behaviors);kfV(b,S);return b};
kfV=function(f,S){for(var B=S.prototype,G={properties:{},observers:[],disabledPolySiReactions:[]},g=_.m(f.behaviors),b=g.next();!b.done;b=g.next())xyT(G,b.value);xyT(G,B);if(f.signalProperties)for(B=_.m(f.signalProperties),g=B.next();!g.done;g=B.next())delete G.properties[g.value];B=_.m(Object.entries(G.properties));for(g=B.next();!g.done;g=B.next()){b=_.m(g.value);g=b.next().value;b=b.next().value;var z=void 0;if((z=f.signalProperties)==null||!z.includes(g)){z=void 0;var X=f,w=b.type;if(!w)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{w=Reflect.getMetadata("design:type",S,g);for(var F=_.m(sCG),V=F.next();!V.done;V=F.next())if(V=V.value,w===V){w=V;break a}w=Object}else w=String;b.computed||b.selector||(X.reactiveSchemas.push({type:"signal",propertyKey:g,value:b.value,attributeType:w,readOnly:b.readOnly}),X.observedAttributes.push(_.Fv(g)));b.reflectToAttribute&&X.reactiveSchemas.push({type:"reflect",propertyKey:g});if(b.computed){w=KYK(b.computed);if(!w)throw Error("Og");X.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:g,method:w,value:b.value})}b.observer&&X.reactiveSchemas.push({type:"observe",method:{methodName:b.observer,args:[{type:"path",path:g}]}});b.notify&&X.reactiveSchemas.push({type:"notify",propertyKey:g});b.selector&&X.reactiveSchemas.push({type:"redux",propertyKey:g,selector:b.selector,selectorArgs:(z=b.selectorArgs)!=null?z:[]})}}Dys&&OpA(f);S=_.m(G.observers);for(g=S.next();!g.done;g=S.next())B=f,g=g.value,(b=KYK(g))?B.reactiveSchemas.push({type:"observe",method:b}):console.log('Warning: unable to parse observe declaration: "'+
g+'"');L_A(f,G.disabledPolySiReactions)};
IDG=function(f,S){for(var B=0;B<S.length;B++){var G=S[B],g=void 0;(g=G).showHideApi!=null||(g.showHideApi={});g=void 0;!!f!==!((g=G.showHideApi)==null||!g.hideTemplateChildren)&&(G.nodeType===Node.TEXT_NODE?f?(G.showHideApi.polymerTextContent=G.textContent,G.textContent=""):(g=void 0,G.textContent=(g=G.showHideApi.polymerTextContent)!=null?g:null):G instanceof Element&&G.localName==="slot"?f?(G.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.wv)((0,_.wv)(G).parentNode).replaceChild(G.showHideApi.polymerReplaced,
G)):(g=G.showHideApi.polymerReplaced)&&(0,_.wv)((0,_.wv)(g).parentNode).replaceChild(G,g):G instanceof HTMLElement&&G.style&&(f?(G.showHideApi.polymerDisplay=G.style.display,G.style.display="none"):G.style.display=G.showHideApi.polymerDisplay));G.showHideApi.hideTemplateChildren=f;G.showHideChildren&&G.showHideChildren(f)}};
CbM=function(){if(!Uyj){var f=document.createElement("style");f.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(f);Uyj=!0}};
uu=function(){return _.K("disable_hidden_dom_if_using_stamper")||_.K("creator_disable_hidden_dom_if_using_stamper")};
pmG=function(f,S){var B=_.al().getState();return S?f.apply(null,[B].concat(_.$d(S))):f(B)};
McT=function(){if(Ak1)return Ak1;var f=_.m(_.hj(0,void 0,"Nl6eIe")),S=f.next().value;f.next();var B=f.next().value;_.al().subscribe(function(){NKK(B)});
return Ak1=S};
NKK=function(f){_.K("delay_redux_signal_update_killswitch")?f(function(S){return S+1}):ZpM||(ZpM=!0,Promise.resolve().then(function(){f(function(S){return S+1});
ZpM=!1}))};
_.al=function(){return tcs.getAppStore()};
yg=function(f,S){return tcs.getSelectFn()(f,S)};
_.WF=function(f){tcs.getDispatchFn()(f)};
u0M=function(f,S){var B={},G;for(G in f)B[G]=S(f[G],G);return B};
_.cF=function(f,S){return function(){var B;return(B=_.Ev(f))!=null?B:S}};
_.lu=function(f,S){var B=Object.assign({},f),G;for(G in S)S.hasOwnProperty(G)&&(B[G]=_.cF(f[G],S[G]));return B};
aD1=function(f,S,B){f instanceof Element&&(B.debugName||(B.debugName="<"+f.tagName.toLowerCase()+(f.tagName.includes("-")?">":"."+f.className+">")),_.K("ytwiz_enable_debug_component_props")&&(f.debugProps||(f.debugProps=u0M(S,function(G){return function(){return G()}}))))};
ykW=function(f){var S;if(!(S=fH.traceAllComponents)){var B;S=(B=cK)==null?void 0:B.activeSpan;S=(S==null?void 0:S.name)!=="ytComponent"}return S?r_N("ytComponent",{},f):f()};
_.oS=function(f,S){var B=function(G){return ykW(function(g){var b=W_T={};var z;if(((z=B)==null?0:z.idomCompat)&&G.renderedFromIdom){var X;z=typeof B.idomCompat==="object"?(X=B)==null?void 0:X.idomCompat.callbacks:{};z=_.m(ckN(G,z,B.debugName));X=z.next().value;z.next();z=z.next().value;var w=lDK(f,X);b.privateValue=w;W_T=void 0;aD1(w,X,B);b={debugName:B.debugName};g&&b&&Object.assign(g.attributes,b);g=NZs(w);g=Array.isArray(g)?g[0]:g;g[Xq]||(g[Xq]={});g[Xq].updateSignalsFromIdomProps=z;fHj(X,w);return w}z=
u0M(G,onW);X=lDK(f,z);b.privateValue=X;W_T=void 0;aD1(X,z,B);b={debugName:B.debugName};g&&b&&Object.assign(g.attributes,b);fHj(z,X);return X})};
B.debugName=S===void 0?"":S;return B};
lDK=function(f,S){f=f(S);return Fq(f)};
Sq1=function(f,S){f[S]||(f=new _.dO("IDOM interop setter undefined. Key:",S),_.xH(f))};
onW=function(f,S){return S==="children"||S==="ref"||typeof f==="function"||f===void 0?f:function(){return _.Ev(f)}};
ckN=function(f,S,B){var G={},g={},b={},z={},X;for(X in f){z={key$jscomp$894:z.key$jscomp$894};z.key$jscomp$894=X;var w=f[z.key$jscomp$894];if(z.key$jscomp$894==="children"||z.key$jscomp$894==="ref")G[z.key$jscomp$894]=w;else if(typeof w==="function")z.key$jscomp$894 in S||w.length>0?(b[z.key$jscomp$894]=w,G[z.key$jscomp$894]=function(V){return function(){return b[V.key$jscomp$894].apply(b,_.$d(_.qb.apply(0,arguments)))}}(z)):G[z.key$jscomp$894]=w;
else if(!(f[z.key$jscomp$894]===void 0&&z.key$jscomp$894 in S)){var F=_.m(_.hj(f[z.key$jscomp$894],{debugName:"__cwis:"+B+":"+z.key$jscomp$894},"WAasgc"));w=F.next().value;F=F.next().value;G[z.key$jscomp$894]=w;g[z.key$jscomp$894]=F}}return[G,g,function(V){var J={},P;for(P in V)J={key$jscomp$895:J.key$jscomp$895,val$jscomp$117:void 0},J.key$jscomp$895=P,J.val$jscomp$117=V[J.key$jscomp$895],J.key$jscomp$895!=="children"&&J.key$jscomp$895!=="ref"&&(typeof J.val$jscomp$117==="function"?J.key$jscomp$895 in
S?b[J.key$jscomp$895]=J.val$jscomp$117:J.val$jscomp$117.length>0&&(b[J.key$jscomp$895]=J.val$jscomp$117,_.Lg(new _.dO("Callback detected that was not set in the idomCompat callbacks map. Key:",J.key$jscomp$895))):J.key$jscomp$895 in S&&J.val$jscomp$117===void 0||(Sq1(g,J.key$jscomp$895),Kj(function(d){return function(){g[d.key$jscomp$895](d.val$jscomp$117)}}(J))))}]};
gn9=function(f,S,B){var G=m_s(f.prototype,BM9,f.prototype.behaviors);G.prototype.is=S;G.prototype.localName=S;B&&Gu9(G,B);return function(g){g&&(G.prototype.hostElement=g);var b=new G;b.root=b;b.hostElement=g;return b}};
Gu9=function(f,S){var B;Object.defineProperty(f.prototype,"_template",{get:function(){B===void 0&&(B=S());return B},
set:function(G){B=G},
configurable:!0,enumerable:!0})};
RJT=function(f,S,B,G){function g(){if(!d){for(var Q=new Set,x=_.m(V),E=x.next();!E.done;E=x.next()){E=E.value;for(var U=_.m(Object.getOwnPropertyNames(E)),A=U.next();!A.done;A=U.next()){A=A.value;var t=void 0,M=(t=Object.getOwnPropertyDescriptor(E,A))==null?void 0:t.value;M&&M instanceof Function&&!SP(A)&&(!X[A]||_.K("polymer_forward_method_killswitch"))&&Q.add(A)}}x=_.m(Object.entries(Object.getOwnPropertyDescriptors(f.prototype)));for(E=x.next();!E.done;E=x.next())U=_.m(E.value),E=U.next().value,
U=U.next().value,U.value instanceof Function&&!SP(E)&&Q.add(E);d=Q}return d}
eJG(f,S,G==null?void 0:G.providers);zFs(f.prototype,f,!0);var b=gn9(f,S,B),z,X=(z=f.prototype.properties)!=null?z:{},w,F,V=(F=(w=f.prototype.behaviors)==null?void 0:w.flat(Infinity))!=null?F:[];B=_.m(V);for(z=B.next();!z.done;z=B.next())X=Object.assign({},z.value.properties,X);var J=[].concat(_.$d(bI1),_.$d(Object.keys(X).map(function(Q){return _.Fv(Q)}))),P=!1,d;
return{ctor:function(Q,x){var E=b(Q),U,A;Q=[].concat(_.$d((U=G==null?void 0:G.allowedProps)!=null?U:[]),_.$d((A=G==null?void 0:G.allowedPropsFromBehaviors)!=null?A:[]));E.allowedProps=Q.length>0?Q:void 0;U={};A=_.m(J);for(Q=A.next();!Q.done;Q=A.next())Q=Q.value,U[Q]=_.Vw(Q);E.__dataAttributes=U;var t=E.ready.bind(E);E.ready=function(){x.beforeReady();t();if(qJ(S)&&!P){var M=E.__templateInfo;if(M==null?0:M.hostProps){M=_.m(Object.keys(M.hostProps));for(var a=M.next();!a.done;a=M.next())Qg(S,a.value,
"PROPERTY_ACCESS_GET_INTERNAL")}P=!0}};
E._overrideLegacyUndefined=!0;return E},
props:X,observedAttributes:J,getInitialMethods:g,getPropsToForwardBeforeRegister:function(){for(var Q=[],x=new Set,E=_.m(Object.keys(X)),U=E.next();!U.done;U=E.next())U=U.value,Q.push([U,X[U].readOnly]),x.add(U);E=g();U=_.m(Object.keys(Object.getOwnPropertyDescriptors(f.prototype)));for(var A=U.next();!A.done;A=U.next())A=A.value,!mSA(A)||E.has(A)||x.has(A)||(Q.push([A,!1]),x.add(A));x=_.m(zJj);for(E=x.next();!E.done;E=x.next())Q.push([E.value,!0]);return Q},
getPropsToForwardBeforeReady:function(Q){for(var x=[],E=_.m(Object.entries(Q)),U=E.next();!U.done;U=E.next()){var A=_.m(U.value);U=A.next().value;A=A.next().value;if(mSA(U)&&!(A instanceof Function)&&(x.push([U,!1]),qJ(S))){var t=A=void 0;(t=(A=Q)._createPropertyAccessor)==null||t.call(A,U)}}return x},
shouldForwardProp:mSA,shouldLog:qJ}};
eJG=function(f,S,B){ZfV(f,B);f.prototype.behaviors.unshift(XHV);if(EqG()){if(qJ(S)){var G;(G=f.prototype).behaviors!=null||(G.behaviors=[]);f.prototype.behaviors.unshift(s_Q())}DjQ(f)}_.r(LP.prototype)(f.prototype,"__templateHelpers")};
SP=function(f){return wHT.has(f)||f.startsWith("__compute__")};
mSA=function(f){return!SP(f)&&!f.startsWith("_")&&!f.endsWith("_")};
JSW=function(f,S){function B(){var P=w();P=_.m(P);for(var d=P.next();!d.done;d=P.next()){var Q=_.m(d.value);d=Q.next().value;Q=Q.next().value;hJM(J.prototype,d,Q)}G=!0}
var G=!1,g=f.ctor,b=f.getInitialMethods,z=f.observedAttributes,X=f.getPropsToForwardBeforeReady,w=f.getPropsToForwardBeforeRegister,F=f.shouldForwardProp,V=f.shouldLog,J=function(){var P=HTMLElement.call(this)||this;P.didForwardDynamicProps=!1;P.loggingStatus={};G||B();P.inst=g(P,{beforeReady:function(){P.didForwardDynamicProps||(P.forwardDynamicProps(),P.didForwardDynamicProps=!0)}});
P.controllerProxy=k59(P.inst,S);P.forwardMethods();return P};
_.q(J,HTMLElement);J.prototype.forwardMethods=function(){for(var P=this,d=_.m(this.inst.getExtraMethodsToForward()),Q=d.next(),x={};!Q.done;x={method$jscomp$60:void 0},Q=d.next()){var E=_.m(Q.value);Q=E.next().value;E=E.next().value;x.method$jscomp$60=E;this[Q]=function(U){return function(){return U.method$jscomp$60.call.apply(U.method$jscomp$60,[P.inst].concat(_.$d(_.qb.apply(0,arguments))))}}(x)}d=_.m(b());
for(x=d.next();!x.done;x=d.next())x=x.value,F(x)&&TMT(this,x),V(S)&&!SP(x)&&F01(this.inst,x)};
J.prototype.forwardDynamicProps=function(){var P=X(this.inst);P=_.m(P);for(var d=P.next();!d.done;d=P.next()){var Q=_.m(d.value);d=Q.next().value;Q=Q.next().value;hJM(this,d,Q);V(S)&&!SP(d)&&VQ9(this.inst,d)}};
J.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
J.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
J.prototype.attributeChangedCallback=function(P,d,Q){this.inst.attributeChangedCallbackWrapper(P,d,Q)};
_.y3.Object.defineProperties(J.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return S}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.y3.Object.defineProperties(J,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return z}}});
customElements.define(S,J)};
hJM=function(f,S,B){f.hasOwnProperty(S)||Object.defineProperty(f,S,{get:function(){var G,g=((G=f.is)!=null?G:f.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||Qg(g,S,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,G=this.polymerController[S],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,G},
set:function(G){if(!B){var g,b=((g=f.is)!=null?g:f.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||Qg(b,S,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=S,this.loggingStatus.bypassProxyController=!0,this.polymerController[S]!==G&&(g={},this.polymerController.setProperties((g[S]=G,g)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
TMT=function(f,S,B){var G=f.polymerController;f[S]=function(){var g=_.qb.apply(0,arguments);f.loggingStatus.currentExternalCall=S;f.loggingStatus.bypassProxyController=!0;var b,z=((b=f.is)!=null?b:f.tagName).toLowerCase();Qg(z,S,"PROPERTY_ACCESS_CALL_EXTERNAL");var X;b=(X=B!=null?B:G[S])==null?void 0:X.call.apply(X,[G].concat(_.$d(g)));f.loggingStatus.currentExternalCall=void 0;f.loggingStatus.bypassProxyController=!1;return b}};
F01=function(f,S){var B=f.hostElement,G=f[S];f[S]=function(){var g=_.qb.apply(0,arguments);if(B.loggingStatus.currentExternalCall!==S){var b,z=((b=B.is)!=null?b:B.tagName).toLowerCase();Qg(z,S,"PROPERTY_ACCESS_CALL_INTERNAL")}return G==null?void 0:G.apply(f,g)}};
VQ9=function(f,S){var B=Object.getOwnPropertyDescriptor(f,S);B&&!B.get&&Object.defineProperty(f,S,{get:function(){nq1(f.hostElement,S);return B.value},
set:function(G){Yb(f.hostElement,S);B.value=G}})};
PcW=function(f){return _.K("poly_si_dom_repeat_detached_fix_killswitch")||f.tagName!=="PS-DOM-REPEAT"?f.tagName==="DOM-REPEAT":!0};
K0W=function(f,S){var B=vn1(f);f instanceof Element&&B.unshift(f);f=_.m(B.filter(PcW));for(var G=f.next();!G.done;G=f.next()){var g=void 0;G=_.m((g=G.value.__instances)!=null?g:[]);for(g=G.next();!g.done;g=G.next())if(g=g.value,g.root){g=Array.from(g.root.children);g=_.m(g);for(var b=g.next();!b.done;b=g.next())B.push.apply(B,_.$d(K0W(b.value,S)))}}return B.filter(function(z){return z.usePatchedLifecycles&&z.lifecycleIsConnected===S})};
vn1=function(f){var S=null;f instanceof Element?S=Element.prototype.querySelectorAll:f instanceof DocumentFragment&&(S=DocumentFragment.prototype.querySelectorAll);return S?Array.from(S.call(f,"*")):[]};
Bs=function(f){wA(function(){for(var S=_.m(K0W(f,!1)),B=S.next();!B.done;B=S.next()){B=B.value;B.lifecycleIsConnected=!0;try{var G=void 0,g=void 0,b=void 0,z=void 0;(G=(z=B.polymerController)!=null?z:B)==null||(b=(g=G).connectedCallback)==null||b.call(g)}catch(X){_.xH(X)}}})};
Gi=function(f){wA(function(){for(var S=_.m(K0W(f,!0)),B=S.next();!B.done;B=S.next()){B=B.value;B.lifecycleIsConnected=!1;try{var G=void 0,g=void 0,b=void 0,z=void 0;(G=(z=B.polymerController)!=null?z:B)==null||(b=(g=G).disconnectedCallback)==null||b.call(g)}catch(X){_.xH(X)}}})};
YqN=function(){if(!dSM){dSM=!0;var f=[Node];gR&&f.push(gR.Wrapper);var S=Node.prototype.insertBefore,B=Node.prototype.removeChild;f=_.m(f);for(var G=f.next(),g={};!G.done;g={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},G=f.next())G=G.value,g.nativeInsertBefore=G.prototype.insertBefore,G.prototype.insertBefore=function(z){return function(X,w){if(X instanceof DocumentFragment){var F=Array.from(X.children);X=z.nativeInsertBefore.call(this,X,w);
if(this.isConnected&&z.nativeInsertBefore===S)for(w=_.m(F),F=w.next();!F.done;F=w.next())Bs(F.value);return X}F=X instanceof Element&&X.isConnected;w=z.nativeInsertBefore.call(this,X,w);F&&Gi(X);this.isConnected&&Bs(X);return w}}(g),g.nativeAppendChild=G.prototype.appendChild,G.prototype.appendChild=function(z){return function(X){if(X instanceof DocumentFragment){var w=Array.from(X.children);
X=z.nativeAppendChild.call(this,X);if(this.isConnected){w=_.m(w);for(var F=w.next();!F.done;F=w.next())Bs(F.value)}return X}w=X instanceof Element&&X.isConnected;F=z.nativeAppendChild.call(this,X);w&&Gi(X);this.isConnected&&Bs(X);return F}}(g),g.nativeRemoveChild=G.prototype.removeChild,G.prototype.removeChild=function(z){return function(X){var w=X instanceof Element&&X.isConnected,F=z.nativeRemoveChild.call(this,X);
w&&B===z.nativeRemoveChild&&Gi(X);return F}}(g),g.nativeReplaceChild=G.prototype.replaceChild,G.prototype.replaceChild=function(z){return function(X,w){if(X instanceof DocumentFragment){var F=Array.from(X.children);
X=z.nativeReplaceChild.call(this,X,w);if(this.isConnected)for(Gi(w),w=_.m(F),F=w.next();!F.done;F=w.next())Bs(F.value);return X}F=X instanceof Element&&X.isConnected;var V=this.isConnected,J=z.nativeReplaceChild.call(this,X,w);V&&Gi(w);F&&Gi(X);V&&Bs(X);return J}}(g);
f=[Element];gR&&f.push(gR.Wrapper);f=_.m(f);G=f.next();for(g={};!G.done;g={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},G=f.next())G=G.value,G.prototype.before=iIM(G.prototype.before),G.prototype.after=iIM(G.prototype.after),g.nativeReplaceWith=G.prototype.replaceWith,G.prototype.replaceWith=function(z){return function(){var X=_.qb.apply(0,arguments),w=_.m(HIx(X)),F=w.next().value,
V=w.next().value;w=this.isConnected;z.nativeReplaceWith.apply(this,X);X=_.m(V);for(V=X.next();!V.done;V=X.next())Gi(V.value);if(w)for(Gi(this),F=_.m(F),w=F.next();!w.done;w=F.next())w=w.value,w instanceof Element&&Bs(w)}}(g),g.nativeRemove=G.prototype.remove,G.prototype.remove=function(z){return function(){var X=this.isConnected;
z.nativeRemove.call(this);X&&Gi(this)}}(g),g.nativeInsertAdjacentElement=G.prototype.insertAdjacentElement,G.prototype.insertAdjacentElement=function(z){return function(X,w){var F=w.isConnected;
X=z.nativeInsertAdjacentElement.call(this,X,w);F&&Gi(w);X.isConnected&&Bs(X);return X}}(g),g.nativeSetAttribute=G.prototype.setAttribute,G.prototype.setAttribute=function(z){return function(X,w){var F=qq9(this);
if(!F.usePatchedLifecycles)return z.nativeSetAttribute.call(this,X,w);var V=this.getAttribute(X);z.nativeSetAttribute.call(this,X,w);w=this.getAttribute(X);$ST(F,X,V,w)}}(g),g.nativeRemoveAttribute=G.prototype.removeAttribute,G.prototype.removeAttribute=function(z){return function(X){var w=qq9(this);
if(!w.usePatchedLifecycles)return z.nativeRemoveAttribute.call(this,X);var F=this.getAttribute(X);z.nativeRemoveAttribute.call(this,X);F!==null&&$ST(w,X,F,null)}}(g),g.nativeToggleAttribute=G.prototype.toggleAttribute,G.prototype.toggleAttribute=function(z){return function(X,w){var F=qq9(this);
if(!this.usePatchedLifecycles)return z.nativeToggleAttribute.call(this,X,w);var V=this.getAttribute(X),J=V!==null;w=z.nativeToggleAttribute.call(this,X,w);w!==J&&$ST(F,X,V,w?"":null);return w}}(g);
f=[Document,DocumentFragment,Element,ShadowRoot];gR&&f.push(gR.Wrapper);f=_.m(f);for(g=f.next();!g.done;g=f.next())g=g.value,g.prototype.prepend=iIM(g.prototype.prepend),g.prototype.append=iIM(g.prototype.append);(gR==null?void 0:gR.noPatch)===!0&&Q6x();document.readyState==="complete"?Bs(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Bs(document.body)});
var b=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");b&&b.get&&b.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:b.enumerable,configurable:!0,get:b.get,set:function(z){z||Gi(this);b.set.call(this,z);return z}})}};
iIM=function(f){return function(){var S=_.qb.apply(0,arguments),B=_.m(HIx(S)),G=B.next().value;B=B.next().value;f.apply(this,S);S=_.m(B);for(B=S.next();!B.done;B=S.next())Gi(B.value);if(this.isConnected)for(G=_.m(G),S=G.next();!S.done;S=G.next())S=S.value,S instanceof Element&&Bs(S)}};
Q6x=function(){for(var f=_.m(rSG),S=f.next();!S.done;S=f.next()){S=S.value.prototype;for(var B=_.m(j6K),G=B.next();!G.done;G=B.next()){G=G.value;var g=Object.getOwnPropertyDescriptor(S,G);g&&Object.defineProperty(S,"__shady_native_"+G,g)}}};
$ST=function(f,S,B,G){var g,b;if((g=f.polymerController)==null?0:(b=g.observedAttributes)==null?0:b.includes(S))if(f=f.polymerController,f.attributeChangedCallbackWrapper)f.attributeChangedCallbackWrapper.call(f,S,B,G);else{var z;(z=f.attributeChangedCallback)==null||z.call(f,S,B,G)}};
HIx=function(f){var S=[],B=[];f=_.m(f);for(var G=f.next();!G.done;G=f.next())G=G.value,G instanceof Element&&G.isConnected&&B.push(G),G instanceof DocumentFragment?S.push.apply(S,_.$d(Array.from(G.children))):S.push(G);return[S,B]};
qq9=function(f){return!(f instanceof Element)&&f.node instanceof Element?f.node:f};
OIN=function(f,S){var B=S?["children"].concat(_.$d(S)):["children"];S=[];B=_.m(B);for(var G=B.next();!G.done;G=B.next()){var g=G.value;if(f.hasOwnProperty(g)){G=f[g];G=typeof G==="function"?G():G;G=Fq(Array.isArray(G)?G:[G]).flat();if(g!=="children"){g=W5N(g);for(var b=_.m(G),z=b.next();!z.done;z=b.next())z=z.value,z instanceof Element&&z.setAttribute("slot",g)}S.push(G)}}S.length===0?f=[]:(f=Fq(_.T("div",null,S)),f=Array.from(f.childNodes));return f};
EnQ=function(f,S,B){var G={};_.Lj(function(){var g={},b;for(b in S)if(S.hasOwnProperty(b)){var z=void 0,X=void 0;if(!(((z=B.slotProps)==null?0:z.includes(b))||b==="children"||((X=B.callbackProps)==null?0:X.includes(b))||b==="ref")&&(z=_.Ev(S[b]),G[b]!==z)){G[b]=z;X=void 0;var w=(X=f.hostElement)!=null?X:f;xS1.has(b)&&(w[b]=z);g[b]=z}}Kj(function(){if(f.setProperties)f.setProperties(g);else for(var F=_.m(Object.entries(g)),V=F.next();!V.done;V=F.next()){var J=_.m(V.value);V=J.next().value;J=J.next().value;
f[V]=J}})})};
kuK=function(f,S,B,G){var g=OIN(B,G.slotProps),b=(0,_.wv)(f);g=_.m(g);for(var z=g.next();!z.done;z=g.next())b.appendChild(z.value);EnQ(S,B,G);G=_.m(G.callbackProps||[]);g=G.next();for(b={};!g.done;b={kebabEventName:void 0,eventListener:void 0},g=G.next())z=g=g.value,String(g).substring(0,2)==="on"&&B[z]?(b.kebabEventName=W5N(String(g).substring(2)),b.eventListener=B[z],f.addEventListener(b.kebabEventName,b.eventListener),_.Ov(function(V){return function(){f.removeEventListener(V.kebabEventName,V.eventListener)}}(b))):
S[z]=B[z];
if(B.ref){B=_.m(L0s(B.ref));var X=B.next().value,w=B.next().value,F=S.attached.bind(S);S.attached=function(){X(f);F()};
_.Ov(function(){w()})}};
L0s=function(f){if(typeof f==="function"){var S;return[function(B){S=f(B)},
function(){var B;(B=S)==null||B()}]}if(!f.onRender||!f.onUnmount)throw Error("Sg");
return[f.onRender,f.onUnmount]};
IHs=function(f,S,B,G,g){G=G===void 0?{}:G;var b=nnN,z=!1;b?(z=!0,nnN=void 0):(s6Q=S,b=document.createElement(S),s6Q=void 0);var X=b;X.usePatchedLifecycles=!0;X.lifecycleIsConnected=!1;b.loggingStatus={};var w=DSA(f,S,b,G,g);_.Ov(function(){X.lifecycleIsConnected&&(X.lifecycleIsConnected=!1,w.disconnectedCallback())});
z||kuK(b,w,B,G);return b};
DSA=function(f,S,B,G,g){g=g===void 0?RJT:g;USG[S]!=null||(USG[S]=g(f,S,G==null?void 0:G.getTemplate,G));var b=USG[S],z=b.ctor;g=b.getInitialMethods;var X=b.getPropsToForwardBeforeReady;f=b.getPropsToForwardBeforeRegister;G=b.shouldForwardProp;var w=b.observedAttributes,F=b.shouldLog,V=z(B,{beforeReady:function(){var J=V;J._takeAttributes?J._takeAttributes():J.setPropertiesFromInitialAttributeValues&&J.setPropertiesFromInitialAttributeValues();J=_.m(X(B.polymerController));for(var P=J.next();!P.done;P=
J.next()){var d=_.m(P.value);P=d.next().value;d=d.next().value;hJM(B,P,d);F(S)&&!SP(P)&&VQ9(B.polymerController,P)}B.polymerController=k59(V,S)}});
B.polymerController=V;B.polymerController.observedAttributes=w;b=_.m(V.getExtraMethodsToForward());for(z=b.next();!z.done;z=b.next())w=_.m(z.value),z=w.next().value,w=w.next().value,TMT(B,z,w);g=_.m(g());for(b=g.next();!b.done;b=g.next())b=b.value,G(b)&&TMT(B,b),F(S)&&!SP(b)&&F01(V,b);f=_.m(f());for(G=f.next();!G.done;G=f.next())g=_.m(G.value),G=g.next().value,g=g.next().value,hJM(B,G,g);return V};
pHW=function(f,S){return eP===S?(f.isInert=!0,eP="",!0):CcG===S?(f.isInert=!0,CcG="",!0):!1};
ASK=function(f){var S=bk;bk=f;return S};
MQV=function(f){if(mT.has(f))CcG=f;else if(zi.has(f)&&bk&&NM1(bk)===f){var S;(S=bk)._numRenders!=null||(S._numRenders=0);bk._numRenders++;if(bk._numRenders>1)throw Error("Tg");return bk}};
ZI9=function(f){mT.has(NM1(f))?CcG=NM1(f):zi.has(NM1(f))&&bk!==f&&(f._isInert=!0)};
NM1=function(f){var S;return(S=f==null?void 0:f.tagName.toLowerCase())!=null?S:""};
tQs=function(f,S){if(f.componentType===$p)throw Error("Ug");zi.add(S);var B=function(){var G=HTMLElement.call(this)||this;G.is=S;if(s6Q===S)return G.isInert=!0,G;G.createElement();return G};
_.q(B,HTMLElement);B.prototype.createElement=function(){if(!this.isInert){nnN=this;var G=_.m(_.Xw1(function(){return _.T(f,null)})).next().value;
nnN=void 0;naN(this);return G}};
customElements.define(S,B)};
aH1=function(f,S,B,G,g){f.prototype.is=S;(G==null?0:G.useSink)?uf1(f,S,B,G,g):(B=RJT(f,S,B,G),JSW(B,S));return f};
uf1=function(f,S,B,G,g){YqN();var b=_.oS(function(z){return IHs(f,S,z,Object.assign({},G,{getTemplate:B}),g)},"a");
tQs(b,S);return b};
W0N=function(f){return!ySG.has(f)};
fJ1=function(f,S,B,G){function g(){if(!J){for(var P=new Set(cSQ),d=_.m(b.behaviors),Q=d.next();!Q.done;Q=d.next()){Q=Q.value;for(var x=_.m(Object.getOwnPropertyNames(Q)),E=x.next();!E.done;E=x.next()){E=E.value;var U=void 0,A=(U=Object.getOwnPropertyDescriptor(Q,E))==null?void 0:U.value;A&&A instanceof Function&&(!F[E]||_.K("polymer_forward_method_killswitch"))&&P.add(E)}}d=_.m(Object.entries(Object.getOwnPropertyDescriptors(f.prototype)));for(Q=d.next();!Q.done;Q=d.next())x=_.m(Q.value),Q=x.next().value,
x=x.next().value,x.value instanceof Function&&P.add(Q);J=P}return J}
var b=nMV({is:S,disableElementRegistration:!1,getTemplate:B,providers:G==null?void 0:G.providers,reactivityMode:G==null?void 0:G.reactivityMode},f);if((G==null?0:G.allowedProps)||(G==null?0:G.allowedPropsFromBehaviors)){var z,X;b.allowedProps=[].concat(_.$d((z=G.allowedProps)!=null?z:[]),_.$d((X=G.allowedPropsFromBehaviors)!=null?X:[]))}var w=rkN(b,f);S=w.observedAttributes;var F={};B=_.m(b.reactiveSchemas);for(G=B.next();!G.done;G=B.next())if(G=G.value,G.type==="signal")F[G.propertyKey]={readOnly:G.readOnly},
G.readOnly&&(F[gaQ(G.propertyKey)]={readOnly:!0});else if(G.type==="compute"||G.type==="computeWithMethod"||G.type==="redux")F[G.propertyKey]={readOnly:!0};var V=b.reactiveSchemas.length,J;return{ctor:function(P,d){P=new w(P);P.beforeReady=d.beforeReady;return P},
props:F,observedAttributes:S,getInitialMethods:g,getPropsToForwardBeforeRegister:function(){for(var P=[],d=new Set,Q=_.m(lHG),x=Q.next();!x.done;x=Q.next())x=x.value,P.push([x,x!=="observers"&&x!=="properties"]),d.add(x);Q=_.m(Object.keys(F));for(x=Q.next();!x.done;x=Q.next())x=x.value,P.push([x,F[x].readOnly]),d.add(x);Q=g();x=_.m(Object.keys(Object.getOwnPropertyDescriptors(f.prototype)));for(var E=x.next();!E.done;E=x.next())E=E.value,!W0N(E)||Q.has(E)||d.has(E)||(P.push([E,!1]),d.add(E));P.push(["allowedProps",
!0]);return P},
getPropsToForwardBeforeReady:function(P){var d=[];P=_.m(Object.keys(P));for(var Q=P.next();!Q.done;Q=P.next()){Q=Q.value;var x=g();W0N(Q)&&!x.has(Q)&&d.push([Q,!1])}P=_.m(b.reactiveSchemas.slice(V));for(Q=P.next();!Q.done;Q=P.next())Q=Q.value,Q.type!=="compute"&&Q.type!=="computeWithMethod"&&Q.type!=="redux"&&Q.type!=="signal"||d.push([Q.propertyKey,Q.type==="signal"?Q.readOnly:!0]);return d},
shouldForwardProp:W0N,shouldLog:qJ}};
_.p=function(f,S,B,G){var g,b,z=(b=(g=G)==null?void 0:g.mode)!=null?b:0;G!=null||(G={});var X;(X=G).reactivityMode!=null||(X.reactivityMode=0);z===1&&_.e7("creator_poly_si_disable_list").includes(S)&&(z=2);return z===1?aH1(f,S,B,Object.assign({},G,{useSink:!0}),fJ1):aH1(f,S,B,Object.assign({},G,{useSink:z===2}))};
_.RS=function(){return function(f,S,B,G){var g,b,z=(b=(g=G)==null?void 0:g.mode)!=null?b:2;G!=null||(G={});var X;(X=G).reactivityMode!=null||(X.reactivityMode=0);if(z===0)throw Error("Vg`"+z);return uf1(f,S,B,G,z===1?fJ1:void 0)}};
_.X_=function(f){return _.K("creator_poly_si_killswitch")?!1:_.K("force_all_poly_si_batches")&&(f==="poly_si_all_on_test_check"||f==="creator_poly_si_batch_050"?0:f)||document.documentElement.hasAttribute("use-signals")?!0:!f||_.K(f+"_holdback_enabled")&&_.K("kevlar_polysi_holdback")?!1:_.K(f)};
wR=function(f){return f?f.icon?f.icon.iconType.toLowerCase():f.customThumbnail?"member":"":""};
owN=function(f){if(!f)return"";f=_.m(f);for(var S=f.next();!S.done;S=f.next())if((S=S.value)&&S.liveChatAuthorBadgeRenderer&&(S=wR(S.liveChatAuthorBadgeRenderer))&&S!=="verified")return S;return""};
S$G=function(f,S){if(!f)return null;var B;return((B=f.find(function(G){return G&&G.liveChatAuthorBadgeRenderer?wR(G.liveChatAuthorBadgeRenderer)===S:!1}))==null?void 0:B.liveChatAuthorBadgeRenderer)||null};
_.mDG=function(f){var S=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;f=BaA(f);S=BaA(S);var B=GHM(f.hex);S=GHM(S.hex);var G=S[0]/255;var g=S[1]/255,b=S[2]/255,z=Math.max(G,g,b),X=Math.min(G,g,b),w=0,F=0,V=.5*(z+X);z!=X&&(z==G?w=60*(g-b)/(z-X):z==g?w=60*(b-G)/(z-X)+120:z==b&&(w=60*(G-g)/(z-X)+240),F=0<V&&V<=.5?(z-X)/(2*V):(z-X)/(2-2*V));G=[Math.round(w+360)%360,F,V];B=gw1(B,S);for(f=etQ(f.hex);B<4.5;){f=G[2]>=.5?f.darker((4.5-B)/2):f.brighter((4.5-B)/2);B=f.toString();
g=bxx(B);if(!g.length)throw Error("Sd`"+B);B=g;B=gw1(B,S)}return f.hex()};
gw1=function(f,S){f=_.ZVs(f);S=_.ZVs(S);return(Math.max(f,S)+.05)/(Math.min(f,S)+.05)};
_.hZ=function(f){return"#"+("000000"+(f&16777215).toString(16)).slice(-6)};
_.ztK=function(f){for(var S=0,B=0;B<f.length;B++)S=f.charCodeAt(B)+((S<<5)-S);f="#";for(B=0;B<3;B++)f+=("00"+(S>>B*8&255).toString(16)).slice(-2);return f};
RtG=function(f){f=(f||"").split(":");f.length===1&&f.unshift("yt-icons");f[1]=f[1].toLowerCase();return f};
Vox=function(f,S){var B=(S=S===void 0?!1:S)?XJs:wJK,G=S?hts:TaK;f.getIconNames().forEach(function(g){g=S?g:g.substring(g.indexOf(":")+1);f.name==="yt-icons"?FDj.add(g):g.includes("-filled")?B.add(g):G.add(g)})};
Ti=function(f,S,B,G){B=B===void 0?!1:B;G=G===void 0?!1:G;var g,b,z;return _.R(function(X){if(X.nextAddress==1)return _.h(X,J7A,2);if(G)return X.return(FDj.has(f));g=B?XJs:wJK;b=B?hts:TaK;return S?(z=f.includes("-filled")?f:f.concat("-filled"),X.return(g.has(z))):X.return(b.has(f))})};
_.KDN=function(f){if(PY1(f))return f;var S=f=f.toLowerCase();(f=vw1.get(f))&&(S=f);return S};
_.F_=function(f){if(PY1(f))return f.toString();var S=dDj.get(f);if(S)return S;S=f.toLowerCase();var B="yt-icons",G=S.replace(/_/g,"-");switch(f){case "MY_CHANNEL":S="account_circle";break;case "ADD_TO_LIBRARY":S="add";break;case "ALERT_WARN_RED":S="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":S="person_music";break;case "BLOCK_USER":S="block";break;case "CAPTIONS":S="closed_caption";break;case "CLOSED_CAPTION":B="av";S="closed-caption";break;case "COLLECTION":B="maps";S="layers";break;case "CONTACT":B=
"icons";S="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":B="ytcp-icons";S=G.split("creator-studio-")[1];break;case "DISMISSAL":S="close";break;case "DO_NOT_DISTURB":S="block";break;case "DOGFOOD":B="icons";S="pets";break;case "DRAFT":S="paper_corner_folded";break;
case "EMPTY_LIKE":S="like_outline";break;case "EXIT_APP":S="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":S=G;break;case "GAMES":B="ytg";S="my-games";break;case "GO_TO_PAGE":S="arrow-forward";break;case "GROUP":B="social";break;case "HIDE":S="not_interested";break;case "INPUT_COMPONENT":B="icons";S="settings-input-component";break;case "KIDS_BLOCK":S="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":B="ytg";S="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":B=
"ytg";S="membership-post-purchase";break;case "MULTIVIEW":S="screen_multi_view";break;case "MY_LOCATION":B="maps";S=G;break;case "NOTIFICATIONS_INBOX":S="NOTIFICATIONS";break;case "NEXT":S="chevron_right";break;case "OFFLINE":S="power-settings-new";break;case "PAUSE":B="miniplayer";break;case "PAYMENT":B="icons";break;case "PHONE_DOWNLOAD":S="phone_download";break;case "PREMIUM_STANDALONE":B="yt-logos";S="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":B="yt-logos";S="premium_standalone_cairo";
break;case "QUESTION_ANSWER":S="question_answer";break;case "REDEEM":B="icons";S="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":S="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":S="library_add";break;case "SCHOOL":B="yt-sys-icons";S="creator_academy";break;case "SETTINGS_LIGHT":S="settings_applications";break;case "SETTINGS_MATERIAL":S="settings";break;case "SEARCH_HISTORY":S="watch_history";break;case "SHOPPING_BAG":S="bag";break;case "SOCIAL":case "PEOPLE":B=
"yt-icons";S="people";break;case "STAFF_PICK":B="ytg";S="spotlight";break;case "START_DVR":S="add";break;case "STOP_DVR":B="av";S="stop";break;case "TAB_LIKED":S="like";break;case "TAB_INBOX":S="mail";break;case "TERMS_OF_SERVICE":B="icons";S="description";break;case "TRENDING":S="fire";break;case "UNBLOCK_USER":S="remove";break;case "UNPLUGGED_DARK_THEME":B="image";S="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":S="live";break;case "UNPLUGGED_SPORTS":B="ytu";S="visibility-off";break;
case "VIDEOS":B="av";S="play-circle-filled";break;case "YOUTUBE":B="yt-logos";S="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":B="yt-logos-ext";S="yt-logo-red-updated";break;case "YOUTUBE_LOGO":B="yt-logos-ext";S="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":B="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":B="shorts";S=G;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":B="yt-sys-icons";S="youtube_improve_tv";break;case "OUTLINE_BAG":B=
"yt-sys-icons";S="bag";break;case "QUEUE_PLAY_LAST":B="yt-sys-icons";S="list_queue_last";break;case "SLASH_CIRCLE_LEFT":S="slash_circle_left";break;case "SPEED_1_POINT_2X":S="1_point_2x";break;case "SPEED_1_POINT_5X":S="1_point_5x";break;case "SPEED_1_POINT_8X":S="1_point_8x";break;case "SPEED_POINT_2X":S="point_2x";break;case "SPEED_POINT_5X":S="point_5x";break;case "SPEED_POINT_8X":S="point_8x";break;case "SPEED_1X":S="1x";break;case "SPEED_2X":S="2x";break;case "TAB_BOOKMARK":S="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":B="yt-sys-icons";S="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":B="yt-sys-icons";S="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":B="yt-sys-icons",S="tic_tac_toe"}S=B+":"+S;dDj.set(f,S);return S};
PY1=function(f){var S;_.K("kevlar_use_wil_icons")?S=!!_.oy().resolve(_.VU).resolveIcon({iconName:f.toString()}):S=!1;return S};
_.Ps=function(f,S,B,G){B=B===void 0?{}:B;G=G===void 0?!1:G;B===null&&(B={});var g=_.e7("kevlar_command_handler_command_banlist");g=_.m(g);for(var b=g.next();!b.done;b=g.next())if(b=f?f.hasOwnProperty(b.value):void 0,b)return!1;g=_.H(f.commandMetadata,_.oD);return G&&g!=null&&g.url?!1:!S.disableCommandHandlerOverride&&_.JZ.instance?(G=_.JZ.instance,B.form||(B.form={element:S}),B.form.element||(B.form.element=S),!B.clickedVisualElement&&S.visualElement&&(B.clickedVisualElement=S.visualElement),G.resolveCommand(f,
B),!0):!1};
ixW=function(f,S){f=vs(f);for(var B=_.m(f.visibilityMonitorKeys||[]),G=B.next();!G.done;G=B.next())S.unobserveByKey(G.value);f.visibilityMonitorKeys=void 0};
QzN=function(f,S){if(_.xc()){if(_.K("kevlar_vimio_use_shared_monitor"))HxW(f,S.data);else if(!HxW(f,S.data))return;var B=S.data,G=q$Q(B);if(_.K("enable_client_ve_spec_logging"))ixW(f,S.observer);else{var g=vs(f);g.trackedParams&&g.trackedParams!==G&&ixW(f,S.observer)}g=vs(f);!B||g.data&&g.data===B||(g.data=B);$DN(f,S);g.trackedParams=G}};
$DN=function(f,S){var B=S.observer;if(!B&&_.K("web_skip_missing_vimio_observer")){var G,g;_.Lg(new _.dO("VisibilityObserver is not defined.",f.tagName,f.trackedParams,(G=S.data)==null?void 0:G.trackingParams,(g=S.data)==null?void 0:g.loggingDirectives))}else{var b=S.layer,z=S.visibilityCallback||function(){},X=S.prescanCallback,w=vs(f);
G=[];S.showOption&&G.push(B.observe(f,function(){S.skipLogging&&S.skipLogging()||_.KH().reportShown(w,void 0,b);z(!0)},S.showOption));
S.hideOption&&G.push(B.observe(f,function(){_.KH().reportHidden(w,void 0,b);z(!1)},S.hideOption));
S.prescanOption&&X&&G.push(B.observe(f,function(){X()},S.prescanOption));
w.visibilityMonitorKeys=G}};
HxW=function(f,S){f=vs(f);if(f.visualElement&&!S)return!0;if(!S)return!1;var B=!1;if(_.K("enable_client_ve_spec_logging")){var G,g;B=!!((G=S.loggingDirectives)==null?0:(g=G.clientVeSpec)==null?0:g.uiType)}G=q$Q(S);if(!G&&!B)return!1;_.K("mweb_component_visibility_logging")&&(f.veContainer||(f.veContainer={}),f.veContainer.trackingParams=G);if(f.trackedParams&&f.trackedParams===G)return!1;var b;if(_.K("enable_client_ve_spec_logging")&&((b=f.visualElement)==null?0:b.isClientVe())){var z;b=(z=f.visualElement)==
null?void 0:z.getAsJspb();var X,w,F,V;if(_.Bv(b,2)===((X=S.loggingDirectives)==null?void 0:(w=X.clientVeSpec)==null?void 0:w.uiType)&&_.Bv(b,3,-1)===((F=S.loggingDirectives)==null?void 0:(V=F.clientVeSpec)==null?void 0:V.elementIndex))return!1}if(_.K("enable_client_ve_spec_logging")){var J,P;!f.visualElement&&((J=S.loggingDirectives)==null?0:(P=J.clientVeSpec)==null?0:P.uiType)&&(X=S.loggingDirectives.clientVeSpec,S=X.uiType,z=X.elementIndex,X=X.clientYoutubeData,f.visualElement=_.dR(_.ik(),{veType:S,
elementIndex:z,clientYouTubeData:X}))}return!0};
q$Q=function(f){if(f==null?0:f.rendererContext){var S=_.H(f.rendererContext,_.Hs);if(S==null?0:S.loggingDirectives)return S.loggingDirectives.trackingParams}return(f==null?0:f.loggingDirectives)?f.loggingDirectives.trackingParams:f==null?void 0:f.trackingParams};
vs=function(f){var S;return(S=f.polymerController)!=null?S:f};
Oxj=function(f){_.KH();if(_.Ij(qB().JSC$10523_elementShouldLogGesture).bind(qB())(f,4)){Y$T(f);var S=r7G(f);jz9.set(f,S)}};
Y$T=function(f){jz9.has(f)&&(jz9.get(f).cancel("untrack hover element"),jz9.delete(f))};
r7G=function(f){var S,B=[],G=!1,g=new _.TM(function(b,z){$e(f,"mouseenter",_.Ij(function(){var X,w,F;return _.R(function(V){if(V.nextAddress==1)return S=(0,_.fO)(),X=xD9(f),B.push(X),w=Ewj(f,function(){G=!0;z(Error("Wg"))}),_.h(V,X,2);
if(V.nextAddress!=3)return w&&QU(w),F=LD9(f),B.push(F),_.h(V,F,3);b();_.TT(V)})}))});
g.then(function(){var b=(0,_.fO)()-S;b=Math.round(b);if(!(500>b||6E5<=b)){var z=f.getScreenLayer?f.getScreenLayer():void 0;z=_.xc(z)||"";var X=kHW(_.KH(),f);_.aD(z,f.visualElement?f.visualElement:_.Ye(X),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:b}})}Oxj(f)},function(){rR&&(rR(),rR=null);
G&&(Y$T(f),Oxj(f))});
return g};
xD9=function(f){var S;return(new _.TM(function(B,G){rR=function(){G(Error("Xg"))};
S=_.xJ.debounce(_.Ij(function(){QU(g);B()}),1,100);
var g=_.jP(f,"mousemove",S)})).thenCatch(function(){var B=_.xJ.cancelDebouncedJobMap.get(S);
B&&_.xJ.cancelJob(B)})};
LD9=function(f){var S;return(new _.TM(function(B,G){rR=function(){G(Error("Yg"))};
S=$e(f,"mouseleave",_.Ij(function(){B()}))})).thenCatch(function(){QU(S)})};
Ewj=function(f,S){return $e(f,"mouseleave",_.Ij(S))};
szx=function(f){nwW&&_.On.cancel(nwW);nwW=_.On.run(function(){_.ew(f,"yt-visibility-refresh");nwW=0})};
DD9=function(f){f=Number(f);return"rgba("+[f>>16&255,f>>8&255,f&255,(f>>24&255)/255].join()+")"};
UDQ=function(f){if(!f)return!1;if(_.H(f,_.IJ1))return!0;var S;if(f=(S=_.H(f,_.hf))==null?void 0:S.commands)for(S=_.m(f),f=S.next();!f.done;f=S.next())if(_.H(f.value,_.IJ1))return!0;return!1};
CYs=function(f){var S=!0;S=S===void 0?!0:S;if(!f.useSignals&&!f.experimentalPropertiesChanged||_.K("experimental_templating_behavior_nopatch_killswitch")){var B=f._propertiesChanged;f._propertiesChanged=function(G,g,b){S?f.debounceRender():f.doRender();B&&B.call(f,G,g,b)}}};
pJj=function(f,S){if(f.useSignals||f.experimentalPropertiesChanged)if(_.K("experimental_templating_behavior_nopatch_killswitch"))f.experimentalPropertiesChanged=function(){};
else return;var B=new Set,G=[f].concat(_.$d(f.behaviors));G=_.m(G);for(var g=G.next();!g.done;g=G.next()){g=g.value;for(var b in g.properties)B.has(b)||(f._addPropertyEffect(b,"function",S),B.add(b))}};
A7K=function(){var f=Polymer.Element,S=f._prepareTemplate;f._prepareTemplate=function(){S.call(this);var B=this.prototype;if(B.experimentalTemplatingInUse&&B.experimentalTemplatingInUse()&&B.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.xH(Error("Zg"));else{B=this.template.content.childNodes;for(var G=B.length-1;G>=0;G--){var g=B[G];g.nodeName!=="STYLE"&&g.nodeName!=="LINK"&&g.nodeName!=="SCRIPT"&&g.nodeName!=="#comment"&&g.remove()}}}};
Naj=function(f){var S=!0;S=S===void 0?!0:S;A7K();var B=f.ready;f.ready=function(){this._template=null;B.call(this)};
pJj(f,S?f.debounceRender:f.doRender)};
ZxN=function(f,S,B){if(B===null||B===void 0)return B;var G=GVA(f.tagName.toLowerCase(),S,function(){throw Error("Sb");});
if(G===null)return B;G=Mo1[G];var g;if((g=G.isUnwrappable)==null?0:g.call(G,B)){if(G.unwrap)return G.unwrap(B);throw Error("bh");}return G.filterString?G.filterString(f.tagName,S,String(B)):B};
to9=function(f,S,B){var G=S[S.length-1]!=="$",g=ZxN(f,S,B);if(G)if(typeof g==="function"&&S.startsWith("reactiveon")&&S===S.toLowerCase()){var b=cv;TZN(f,S.slice(8),function(z){kp(b,function(){g(z)})})}else f[S]=g;
else B=g==null?null:String(g),h09(f,S.slice(0,-1),B)};
En=function(f){uCx.length===0&&requestAnimationFrame(function(){setTimeout(function(){var S=uCx.slice();uCx.length=0;S=_.m(S);for(var B=S.next();!B.done;B=S.next()){B=B.value;try{B()}catch(G){_.xe(G)}}})});
uCx.push(f)};
aJV=function(f){if(f){var S=f.component;if(S){var B;S==null||(B=S.events)==null||B.publish("DISCONNECTED");var G;S==null||(G=S.onDisconnected)==null||G.call(S)}var g,b;(g=f.__spec)==null||(b=g.didUnmount)==null||b.call(g);for(S=0;S<f.childNodes.length;S++)aJV(f.childNodes[S])}};
ke=function(f,S,B){var G=S&&S.key,g=a0;g[0]=f;g[1]=G;g[2]=void 0;for(var b in S)S.hasOwnProperty(b)&&(f=S[b],G=yJ,G.push(b),G.push(f));S=a0;a:{if(b=a0[2])for(f=0;f<b.length;f+=2)if(b[f]==="nonce"){b=b[f+1];break a}b=""}b=Y4T(S[0],S[1],b);f=Cj(b);G=S[2];if(!f.staticsApplied&&(f.staticsApplied=!0,G&&G.length))if((g=f._attrsArr)&&g.length){for(g=0;g<G.length;g+=2)LH[G[g]]=g+1;g=f._attrsArr||(f._attrsArr=wU1(0));for(var z=0,X=0;X<g.length;X+=2){var w=g[X],F=g[X+1],V=LH[w];V?G[V]===F&&delete LH[w]:(g[z]=
w,g[z+1]=F,z+=2)}I0(g,z);for(var J in LH)vJT(b,J,G[LH[J]],cD),delete LH[J]}else for(J=0;J<G.length;J+=2)vJT(b,G[J],G[J+1],cD);kVG(b,f,cD);I0(S,0);B&&B(pj);ryT()};
y7s=function(f){var S=f.toString().toLowerCase();return function(B,G){ke(S,B,G)}};
_.nH=function(f,S,B){B===void 0?delete f[S.name]:f[S.name]=B};
_.sn=function(f){var S={androidIncludeFontPadding:!1},B=0,G=[],g=[],b=[];if(f.simpleText)return S.content=f.simpleText,S;if(f.runs===void 0)return S.content="",S;f=_.m(f.runs);for(var z=f.next();!z.done;z=f.next()){z=z.value;var X=z.text,w=void 0,F=(w=X)==null?void 0:w.length;if(X&&F){G.push(X);if(z.bold||z.italics||z.strikethrough||z.underline||z.textColor!=null&&z.textColor!==0||z.deemphasize){X=g;w=X.push;var V={startIndex:B,length:F};z.bold&&(V.weightLabel="FONT_WEIGHT_MEDIUM");z.italics&&(V.italic=
!0);z.strikethrough&&(V.strikethrough="LINE_STYLE_SINGLE");z.underline&&(V.underline="LINE_STYLE_SINGLE");z.textColor!=null&&z.textColor!==0?document.documentElement.hasAttribute("dark")?V.fontColor=z.darkModeTextColor||z.textColor:V.fontColor=z.textColor:z.deemphasize&&(document.documentElement.hasAttribute("dark")?V.fontColor=parseInt("ff"+WDT("#aaa").substring(1),16):V.fontColor=parseInt("ff"+WDT("#606060").substring(1),16));w.call(X,V)}z.navigationEndpoint&&(X=b,w=X.push,V={startIndex:B,length:F,
onTap:{innertubeCommand:z.navigationEndpoint}},z.loggingDirectives&&_.nH(V,c7W,z.loggingDirectives),w.call(X,V));B+=F}}S.content=G.join("");S.styleRuns=g.length?g:void 0;S.commandRuns=b.length?b:void 0;return S};
fGx=function(f){if(f==null||!f.runs)return!0;f=_.m(f.runs);for(var S=f.next();!S.done;S=f.next())if(S=S.value,S.bracket||S.errorUnderline||S.deemphasize||_.H(S,Dw)||_.H(S,lJQ))return!1;return!0};
oY1=function(f,S){return function(B){var G=S.unit;if(G!==B)throw Error("eh`"+f+"`"+G+"`"+B);return S}};
IS=function(f){if(!((f==null?0:f.value)&&(f==null?0:f.unit)))return"";switch(f.unit){case "DIMENSION_UNIT_FRACTION":var S="%";break;default:S="px"}f=f.value;S==="%"&&(f*=100);return""+f+S};
Sa1=function(f){try{return f()}catch(S){_.Lg(S)}};
_.CH=function(f){var S=_.H(f,_.Un);if(S)return S;if((S=_.H(f,BSN))&&S.commands)return Gs1(S.commands);if((S=_.H(f,gY9))&&S.commands)return Gs1(S.commands);if((f=_.H(f,eZM))&&f.identifier&&f.command&&(bcx||(bcx=[]),!bcx.includes(f.identifier)))return bcx.push(f.identifier),_.H(f.command,_.Un)};
Gs1=function(f){if(f.length!==0){var S=[];f=_.m(f);for(var B=f.next();!B.done;B=f.next())(B=_.CH(B.value))&&S.push(B);return{commandExecutorCommand:{commands:S}}}};
_.AZ=function(f){var S=f.defaultTarget,B=f.elementConfig,G=f.elementsCommand,g=f.skipOnClick,b=f.forceNewState,z=f.additionalCommandArgs,X=f.innertubeCommand||_.CH(G);if(X){f={};var w=mLQ(X);G=w.navigatingCommand;w=w.href;G&&w?(f.href$=w,zZN(f,G,w,S),_.K("web_atagconfig_pointerdown")&&RZG(f,G),b&&(f["force-new-state$"]=!0)):(f.role$="button",f.href$="javascript:void(0);");_.H(X,XI9)&&(f["aria-haspopup$"]=!0);g||(f.onclick=function(F){if(wIN(F)){var V=Object.assign({},{form:{element:F.target,event:F}},
z);F.preventDefault();_.pH(X,V)}});
return Object.assign({},B,f)}};
hZW=function(f){if(f.length){if(f.length===1)return f[0];var S={};_.nH(S,_.hf,{commands:f});return S}};
NB=function(f){return f&&f.href$!=="javascript:void(0);"};
mLQ=function(f){var S,B=((S=_.H(f,_.hf))==null?void 0:S.commands)||[f];f=_.m(B);for(S=f.next();!S.done;S=f.next()){S=S.value;var G=void 0,g=void 0;B=(g=_.H((G=S)==null?void 0:G.commandMetadata,_.oD))==null?void 0:g.url;_.K("web_remove_web_navigation_endpoint_data")||(G=void 0,B=B||((G=_.H(S,TSV))==null?void 0:G.url));if(B&&B!=="/service_ajax"){if(G=vo(B,F7A))return f=_.Ve(G),{navigatingCommand:S,href:f};_.Lg(new _.dO("AttributedString URL could not be sanitized",B))}}return{}};
wIN=function(f){return f.button!==void 0?f.button===0&&!(f.shiftKey||f.altKey||f.metaKey||f.ctrlKey):!(f.shiftKey||f.altKey||f.metaKey||f.ctrlKey)};
zZN=function(f,S,B,G){B=!Wf(B);var g,b,z;if((g=_.H(S,_.d3))!=null&&g.nofollow||(b=_.H(S,_.t2))!=null&&b.nofollow||(z=_.H(S,_.pg))!=null&&z.nofollow||B)f.rel$="nofollow";var X;S=((X=_.H(S,_.pg))==null?void 0:X.target)==="TARGET_NEW_WINDOW"?"_blank":G===void 0?"":G;f.target$=S};
RZG=function(f,S){S.clickTrackingParams&&(f.params={itct:S.clickTrackingParams});f.onpointerdown=function(B){V6W(B)};
f._data=S};
J6W=function(f){(f.loggingUrls||[]).forEach(function(S){Ay(S.baseUrl,S.attributionSrcMode)})};
PgK=function(f){f.currentTarget._data&&J6W(f.currentTarget._data)};
V6W=function(f){var S=f.currentTarget;f=Sa1(function(){return S.href});
var B=S.params;f&&_.WZ(f,B||{},8,!0)};
vYN=function(f,S){if(S=_.H(S,_.pg))(S==null?void 0:S.target)==="TARGET_NEW_WINDOW"&&(f.target="_blank"),S.nofollow&&(f.rel="nofollow")};
K7A=function(f){f=_.H(f==null?void 0:f.commandMetadata,_.oD);return(f==null?0:f.url)?f.url:null};
_.MB=function(f,S){(f=_.CH(f))&&_.pH(f,S)};
_.pH=function(f,S){dCT(function(B){S?B.resolveCommand(f,S):B.resolveCommand(f)})};
qa1=function(f,S){var B=["yt-core-attributed-string__link"];S!=null&&S.noLinkColor||((S==null?0:S.isOverlay)?B.push("yt-core-attributed-string__link--overlay-call-to-action-color"):B.push("yt-core-attributed-string__link--call-to-action-color"),(S==null?0:S.linkInheritColor)&&B.push("yt-core-attributed-string--link-inherit-color"));B={className:B.join(" "),tabindex$:"0"};var G=f.onTap||f.onLongPress;if(!G)return B;var g=dLs(f);g&&(B["aria-label$"]=g);S=_.AZ({elementsCommand:G,elementConfig:B,skipOnClick:!(S==
null||!S.skipOnClick),forceNewState:!0});f.onLongPress&&(G=new icW(function(){var b=_.CH(f.onLongPress);b&&_.oy().resolve(_.S7).resolveCommand(b)}),S&&HcM(G,S));
return S||B};
dLs=function(f){var S,B;return(S=f.onTapOptions)==null?void 0:(B=S.accessibilityInfo)==null?void 0:B.accessibilityLabel};
$LT=function(f){var S=f;f<=16777215&&(S+=parseInt("ff000000",16));return _.AK(S)};
QM1=function(f){var S=f.isDarkTheme;var B=f.extension;f=f.runColor;var G=void 0;if(B=B==null?void 0:B.colorMap){S=S?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";B=_.m(B);for(var g=B.next();!g.done;g=B.next())if(g=g.value,S===g.key){G=g.value;break}}G==null&&f&&(G=f);if(G)return $LT(G)};
Zw=function(f){var S=f.config;var B=f.image;var G=f.imageConfig;var g=f.imageWrapperConfig;var b=f.run;var z=f.tag;var X=f.textLength;var w=f.startIndex===void 0?0:f.startIndex;f=f.length;w===void 0&&(w=0);b={run:b,startIndex:w,endIndex:f!==void 0?w+f:X,tag:z};B&&(b.image=B);G&&(b.imageConfig=G);g&&(b.imageWrapperConfig=g);S&&(b.config=S);return b};
r6V=function(f,S){var B=[];B.push("yt-core-attributed-string");(S==null?0:S.className)&&B.push(S==null?void 0:S.className);(S==null?0:S.ellipsisTruncate)?B.push("yt-core-attributed-string--ellipsis-truncate"):(S==null?0:S.noWrap)?B.push("yt-core-attributed-string--white-space-no-wrap"):(S==null?0:S.noPreWrap)||B.push("yt-core-attributed-string--white-space-pre-wrap");(S==null?0:S.linkInheritColor)&&B.push("yt-core-attributed-string--link-inherit-color");f.alignment&&B.push(Ya1(f.alignment));f.lineBreakMode&&
B.push("yt-core-attributed-string--word-wrapping");return B.join(" ")};
jMG=function(f){if(f.weight)return f.weight;switch(f.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}};
Ocj=function(f){switch(f){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"}};
Ya1=function(f){switch(f){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"}};
aS=function(f,S,B){var G=S;f.content&&B&&(B=f.content.indexOf("\n"),B!==-1&&(G=Math.min(S,B)));if(!f.content||f.content.length<=G)S=f;else if(f.attachmentRuns||f.commandRuns||f.decorationRuns||f.styleRuns||f.paragraphStyleRuns){S=tZ(f.content,G);B=G;var g=f.attachmentRuns;if(g){var b=[];g=_.m(g);for(var z=g.next();!z.done;z=g.next())z=Object.assign({},z.value),z.startIndex===void 0||z.startIndex>=B||(z.length||(z.length=0),z.length+z.startIndex>B&&(z.length=B-z.startIndex),b.push(z));B=b}else B=void 0;
b=xLM(G,f.commandRuns);g=G;var X=f.decorationRuns;if(X){z=[];X=_.m(X);for(var w=X.next();!w.done;w=X.next()){w=w.value;var F=_.H(w.textDecorator,uk);if(F&&F.startIndex!==void 0&&!(F.startIndex>=g)){w=Object.assign({},w,{textDecorator:{highlightTextDecorator:Object.assign({},F)}});F=_.H(w.textDecorator,uk);if(!F.length||F.length+F.startIndex>g)F.length=g-F.startIndex;z.push(w)}}g=z}else g=void 0;z=xLM(G,f.styleRuns);if(X=f.paragraphStyleRuns)for(f=[],X=_.m(X),w=X.next();!w.done;w=X.next()){var V=w.value;
w=Object.assign({},V);if(!(w.startIndex===void 0||w.startIndex>=G)){if(!w.length||w.length+w.startIndex>G)w.length=G-w.startIndex;F=[];var J=void 0,P=void 0;if((J=V)==null?0:(P=J.listGroup)==null?0:P.listItems)for(V=_.m(V.listGroup.listItems),J=V.next();!J.done;J=V.next())if(J=Object.assign({},J.value),!(J.startIndex===void 0||J.startIndex>=G)){if(!J.length||J.length+J.startIndex>G)J.length=G-J.startIndex;F.push(J)}F.length>0&&(w.listGroup||(w.listGroup={}),w.listGroup=Object.assign({},w.listGroup,
{listItems:F}));f.push(w)}}else f=void 0;S={content:S,attachmentRuns:B,commandRuns:b,decorationRuns:g,styleRuns:z,paragraphStyleRuns:f}}else S=Object.assign({},f,{content:tZ(f.content,G)});return S};
xLM=function(f,S){if(S){var B=[];S=_.m(S);for(var G=S.next();!G.done;G=S.next())if(G=Object.assign({},G.value),!(G.startIndex===void 0||G.startIndex>=f)){if(!G.length||G.length+G.startIndex>f)G.length=f-G.startIndex;B.push(G)}return B}};
tZ=function(f,S){var B=S,G;if(G=B>0)G=f.charCodeAt(B-1),G=G>=55296&&G<=56319;G&&(B=f.charCodeAt(B),G=B>=56320&&B<=57343);G&&--S;return f.substring(0,S)};
nYT=function(f,S,B){B=B===void 0?EYN:B;if(f){var G=_.oy().resolve(f_);G||_.K("mweb_no_observer_killswitch")?QzN(f,{data:S,observer:G,visibilityCallback:B,hideOption:L7s,showOption:ksA,layer:f.layer}):_.Lg(new _.dO("Warning: monitorVisibility called with null observer",f.tagName,S==null?void 0:S.loggingDirectives,S==null?void 0:S.trackingParams))}else _.Lg(new _.dO("Warning: monitorVisibility called with null element",S==null?void 0:S.loggingDirectives,S==null?void 0:S.trackingParams,S==null?void 0:
S.rendererContext))};
A6N=function(f,S){var B=[],G=f.content.length,g,b=(g=_.oy().resolve(_.fN(_.yU)))==null?void 0:g();if(f.paragraphStyleRuns){g=_.m(f.paragraphStyleRuns);for(var z=g.next();!z.done;z=g.next()){var X=B.push,w=X.apply;var F=void 0;z=z.value;if((F=z.listGroup)!=null&&F.listItems){F=[];b:switch(z.listGroup.listType){case "LIST_TYPE_BULLET":var V="ul";break b;default:V="span"}F.push(Zw({run:z,textLength:G,tag:V,config:{className:"yt-core-attributed-string__list-group"},startIndex:z.startIndex,length:z.length}));
V=_.m(z.listGroup.listItems);for(var J=V.next();!J.done;J=V.next()){J=J.value;b:switch(z.listGroup.listType){case "LIST_TYPE_BULLET":var P="li";break b;default:P="span"}F.push(Zw({run:z,textLength:G,tag:P,startIndex:J.startIndex,length:J.length}))}z=F}else z=[];w.call(X,B,_.$d(z))}}if(f.styleRuns&&(S==null||!S.noStyleRuns))for(g=_.m(f.styleRuns),X=g.next();!X.done;X=g.next()){X=X.value;w=QM1({extension:_.H(X.styleRunExtensions,sMQ),isDarkTheme:b===void 0?!1:b,runColor:X.fontColor});F=[];w&&F.push("yt-core-attributed-string--link-inherit-color");
X.italic&&F.push("yt-core-attributed-string--italicized");X.underline&&X.strikethrough?F.push("yt-core-attributed-string--underline-strikethrough",Ocj(X.underline)):X.underline?F.push("yt-core-attributed-string--underlined",Ocj(X.underline)):X.strikethrough&&F.push("yt-core-attributed-string--strikethrough",Ocj(X.strikethrough));if(X.baselineOffset){a:switch(X.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":z="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":z=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:z="yt-core-attributed-string--baseline-offset-unknown"}F.push(z)}z=F.join(" ");F=X;V={};if(F.weight||F.weightLabel)V.fontWeight=jMG(F).toString();w&&(V.color=w);B.push(Zw({run:X,textLength:G,tag:"span",config:{className:z,style:V},startIndex:X.startIndex,length:X.length}))}if(f.decorationRuns)for(g=_.m(f.decorationRuns),X=g.next();!X.done;X=g.next())X=X.value,w={},X.textDecorator&&(V=X.textDecorator,z=b===void 0?!1:b,J=[],F=
_.H(V,uk),V=_.H(V,DLj),F?(V=J,J=V.concat,P=[],(z=QM1({extension:_.H(F.highlightTextDecoratorExtensions,IGV),isDarkTheme:z,runColor:F.backgroundColor}))&&P.push("background-color: "+z+";"),F.backgroundCornerRadius!==void 0&&P.push("border-radius: "+F.backgroundCornerRadius+"px;"),F.leftPadding!==void 0&&P.push("padding-left: "+F.leftPadding+"px;"),F.rightPadding!==void 0&&P.push("padding-right: "+F.rightPadding+"px;"),F.topPadding!==void 0&&P.push("padding-top: "+F.topPadding+"px;"),F.bottomPadding!==
void 0&&P.push("padding-bottom: "+F.bottomPadding+"px;"),J=J.call(V,P)):V&&(F=J,J=F.concat,z=z?"#2ba640":"#107516",z=V.color?$LT(V.color):z,z=["padding: 2px;","border-top: solid "+z+" 2px;","border-bottom: solid "+z+" 2px;","background: linear-gradient(135deg, "+z+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+z+" 3px, rgba(0, 0, 0, 0) 3px);"],J=J.call(F,z)),z=J.join(" "),w.style$=z,z=X.textDecorator,F=[],V=_.H(z,DLj),_.H(z,uk)?F.push("yt-core-attributed-string--highlight-text-decorator"):
V&&F.push("yt-core-attributed-string--bracket-text-decorator"),z=F.join(" "),w.className=z,w.dir="auto"),z=_.H(X.textDecorator,uk),F=_.H(X.textDecorator,DLj),V=_.H(X.textDecorator,uk),J=_.H(X.textDecorator,DLj),B.push(Zw({run:X,textLength:G,tag:"span",config:w,startIndex:(z==null?void 0:z.startIndex)||(F==null?void 0:F.startIndex)||0,length:(V==null?void 0:V.length)||(J==null?void 0:J.length)||0}));if(f.commandRuns&&(S==null||!S.noEndpoints))for(b=_.m(f.commandRuns),g=b.next();!g.done;g=b.next())g=
g.value,X=qa1(g,S),B.push(Zw({run:g,textLength:G,tag:"a",config:X,startIndex:g.startIndex,length:g.length}));if(f.attachmentRuns)for(f=_.m(f.attachmentRuns),b=f.next();!b.done;b=f.next()){b=b.value;w=X=void 0;g={className:"yt-core-attributed-string--inline-block-mod"};if((w=b.element)==null?0:w.properties){w=(X=b.element)==null?void 0:X.properties;X=[];w=_.H(w,ULQ);if(w==null?0:w.margin)w=w.margin,w.left&&X.push("margin-left: "+IS(w.left)+";"),w.right&&X.push("margin-right: "+IS(w.right)+";"),w.top&&
X.push("margin-top: "+IS(w.top)+";"),w.bottom&&X.push("margin-bottom: "+IS(w.bottom)+";");X=X.length!==0?X.join(" "):void 0;g.style$=X}z=void 0;X={alt:"",preserveHeight:!0,preserveWidth:!0};w=["yt-core-attributed-string__image-element"];if(b.alignment){a:switch(b.alignment){case "ALIGNMENT_BASELINE":F="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":F="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:F=
"yt-core-attributed-string__image-element--image-alignment-bottom"}w.push(F)}if((z=b.element)==null?0:z.properties)z=[],F=_.H(b.element.properties,ULQ),(F==null?0:F.height)&&z.push("height: "+IS(F.height)+";"),(F==null?0:F.width)&&z.push("width: "+IS(F.width)+";"),z=z.length!==0?z.join(" "):void 0,X.style$=z,F=void 0,z=((F=_.H(b.element.properties,CgM))==null?void 0:F.label)||"",X.alt=z;X.className=w.join(" ");w=void 0;V=F=void 0;z=((V=b.element)==null?0:V.type)?(F=_.H(b.element.type,pIQ))==null?
void 0:F.image:void 0;B.push(Zw({run:b,textLength:G,tag:"img",image:z,imageConfig:X,imageWrapperConfig:g,startIndex:b.startIndex,length:(w=b.length)!=null?w:0}))}if(S==null?0:S.headerRuns)for(S=_.m(S.headerRuns),f=S.next();!f.done;f=S.next())if(f=f.value,f.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(f.headerMapping)){a:{switch(f.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":b=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":b="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":b="yt-core-attributed-string--heading-3";break a}b=void 0}B.push(Zw({run:f,textLength:G,tag:"span",config:b?{className:b}:void 0,startIndex:f.startIndex,length:f.length}))}return B};
_.Ws=function(f){return(f==null?void 0:f.content)!==void 0};
NS1=function(f){return _.Ws(f)?f:_.sn(f)};
M61=function(f){return f.image!==void 0&&f.imageConfig!==void 0};
ZcW=function(f,S){if(S==null?0:S.userInput)for(f=_.m(f),S=f.next();!S.done;S=f.next())if(S=S.value,S.tag!=="a"&&S.tag!=="li"){var B=void 0;(B=S).config||(B.config={});S.config.dir=S.tag==="ul"?_.oy().resolve(_.cs):"auto"}};
t6T=function(f){return function(S){var B=f.run;(B.onTap!==void 0||B.onLongPress!==void 0)&&_.H(B,c7W)&&nYT(S,{loggingDirectives:_.H(B,c7W)})}};
u4j=function(f){return function(S){for(var B in f)(cD[B]||cD[Uv["default"]])(S,B,f[B])}};
c69=function(f,S){aGN(S);var B={data:null,start:0,end:f.length,parts:[]};S=_.m(S);for(var G=S.next();!G.done;G=S.next())G=G.value,y69(B,G.startIndex,G.endIndex,G);W71(f,B);return B};
y69=function(f,S,B,G){for(var g=_.m(f.parts),b=g.next();!b.done;b=g.next()){b=b.value;if(typeof b==="string")throw Error("gh");if(b.start<=S&&B<=b.end){y69(b,S,B,G);return}}f.parts.push({data:G,parts:[],start:S,end:B})};
W71=function(f,S){for(var B=S.parts.length;B>=0;B--){var G=S.parts[B],g=S.parts[B-1],b=B===S.parts.length?S.end:G.start;g=B===0?S.start:g.end;b!==g&&S.parts.splice(B,0,f.slice(g,b));G&&W71(f,G)}};
aGN=function(f){f.sort(function(S,B){if(S.startIndex<B.startIndex)return-1;if(B.startIndex<S.startIndex)return 1;S=S.endIndex-S.startIndex;B=B.endIndex-B.startIndex;return S>B?-1:B>S?1:0})};
_.lGV=function(f){var S=f.thumbnails;if(S){f={sources:[]};S=_.m(S);for(var B=S.next();!B.done;B=S.next()){B=B.value;var G={};G.url=B.url;G.width=B.width;G.height=B.height;f.sources.push(G)}return f}};
fiK=function(f,S,B,G){if(!S)return f.length>=1?f[f.length-1]:null;if(G)for(var g=_.m(f),b=g.next();!b.done;b=g.next()){b=b.value;var z=void 0,X=(z=b.url)==null?void 0:z.indexOf(G);if(X!==void 0&&X>=0)return b}G=_.m(f);for(g=G.next();!g.done;g=G.next())if(g=g.value,g.width&&g.height&&(B&&g.width>=S||!B&&g.height>=S))return g;for(S=f.length-1;S>=0;S--)if(B&&f[S].width||!B&&f[S].height)return f[S];return f[0]};
_.o4x=function(f){var S;return(f=(S=f.sources)==null?void 0:S[0])?f.width/f.height:0};
_.Sm1=function(f){if(f.sources){f=_.m(f.sources);for(var S=f.next();!S.done;S=f.next()){S=S.value;var B=void 0;if((B=S.clientResource)==null?0:B.imageName)return S}}};
BtA=function(f){var S;if((S=f.clientResource)!=null&&S.imageColor)return _.AK(f.clientResource.imageColor)};
_.g4N=function(f,S,B,G,g,b,z){if(!S||S.length===0||S[0].clientResource)return null;if(B&&S[0].url)return S[0].url;G===void 0&&(G=!0);if(G){var X;f=GRT*(g||(f==null?void 0:(X=f.getBoundingClientRect())==null?void 0:X.width)||0)}else{var w;f=GRT*(b||(f==null?void 0:(w=f.getBoundingClientRect())==null?void 0:w.height)||0)}S=fiK(S,f,G,z);return(S==null?0:S.url)?S.url:(S==null?0:S.imageData)?S.imageData:null};
eWV=function(f,S,B){B=B?[B]:[];f.opacity&&B.push("opacity: "+f.opacity+";");S&&f.placeholderColor?(f=_.AK(f.placeholderColor),B.push("background-color: "+f+";")):B.push("background-color: transparent;");return B.join(" ")};
bwT=function(f,S,B,G,g){var b=["yt-core-image"];S&&b.push(S);B||b.push("yt-core-image--fill-parent-height");G||b.push("yt-core-image--fill-parent-width");switch(f.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":b.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":b.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":b.push("yt-core-image--content-mode-center");break;default:b.push("yt-core-image--content-mode-scale-to-fill")}f.flipForRtlLayout&&
b.push("yt-core-image--flip-rtl");switch(g){case "TOP_START":var z;b.push(((z=document.body)==null?void 0:z.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return b.join(" ")};
zWN=function(f){var S;if(f==null?0:(S=f.clientResource)==null?0:S.imageName){var B;f=(B=f.clientResource)==null?void 0:B.imageName;a:{switch(f){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":B="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":B="yt-logos-ext:yt-logo-updated";break a}B=void 0}return B||mTT.get(f)||f}};
wCs=function(f){return _.K("mweb_wiz_skip_render")?RWW(f):XCx(f)};
RWW=function(f){return function(S){var B=Y4T("wink-root");uv();ryT();MPV(B,_.T(f,S))}};
XCx=function(f){var S=S===void 0?!1:S;return function(B){if(!S||!_.K("mweb_skip_keto_to_c3_if_no_data")||B.data!==void 0){var G=e9(!1);try{var g=B.children;_.K("mweb_render_outside_patch_killswitch")||pj?g?WD(_.T(f,B,g)):WD(_.T(f,B)):_.Lg(new _.dO("ketoToC3 called outside of a patch",{tagName:f.TAG_NAME}))}finally{e9(G)}}}};
hWj=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
FSQ=function(f,S){f.onViewportEntered=S;Tts.observe(f)};
Vh1=function(){var f={rootMargin:"10%",threshold:.01};_.K("mweb_enable_set_io_root_to_null_safari")?f.root=null:_.K("mweb_enable_set_io_root_to_body_safari")&&(f.root=document.body);return new IntersectionObserver(function(S,B){S.filter(function(G){return G.intersectionRect.height>0}).forEach(function(G){G=G.target;
if(!_.K("mweb_enable_only_update_image_when_connected")||G.isConnected!==!1){var g;(g=G.onViewportEntered)==null||g.call(G);B.unobserve(G)}})},f)};
J4W=function(f,S,B,G,g){function b(){if(G){var X=G.loadedClass,w=G.notifyOnUnloaded;X&&_.lk(f,X);w&&f.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function z(){var X=B(S,f);X&&f.getAttribute("src")!==X&&(_.K("mweb_enable_only_update_image_when_connected")&&f.isConnected===!1||X===f.src||(f.src=X),b())}
g=g===void 0?!0:g;f.removeAttribute("src");b();S&&(g?FSQ(f,z):z())};
PRj=function(f,S,B){if(!S)return!1;S=B(S,f);B=f.getAttribute("src");return S&&S===B&&f.complete};
v4K=function(f,S){for(var B in S)B==="className"?f.className=S[B]:(cD[B]||cD[Uv.default])(f,B,S[B])};
KSN=function(f,S,B,G){wCs(_.f9)({contentMode:S.contentMode,loadedClass:S.loadedClass,isPreloaded:S.isPreloaded,notifyOnLoaded:S.notifyOnLoaded,notifyOnUnloaded:S.notifyOnUnloaded,preferredThumbnail:S.preferredThumbnail,preserveHeight:S.preserveHeight,preserveWidth:S.preserveWidth,objectPosition:S.objectPosition,targetWidth:S.targetWidth,targetHeight:S.targetHeight,shouldShowPlaceholder:S.shouldShowPlaceholder,useWidth:S.useWidth,isToggled:S.isToggled,alt:S.alt,className:S.className,onerror:S.onerror,
onload:S.onload,style$:S.style$,color:S.color,width:S.width,height:S.height,"aria-hidden$":S["aria-hidden$"],draggable:S.draggable,"data-disabled$":S["data-disabled$"],data:f,callback:B,renderLazy:G===void 0?!0:G,hideOn404:!1})};
iwx=function(f,S,B){B=B===void 0?!1:B;var G=f.sources!==void 0?f:_.lGV(f);if(G){var g=S.onload;S.onload=function(w){var F=w.target;B&&F.naturalWidth===120||_.oa(F,"yt-core-image--loaded");S.notifyOnLoaded&&F.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));g==null||g(w)};
S.targetWidth&&S.preserveWidth&&(S.width=S.targetWidth);S.targetHeight&&S.preserveHeight&&(S.height=S.targetHeight);var b=_.Sm1(G),z=b&&zWN(b);if(z)return(f=BtA(b))&&(S.color=f),{type:"icon",iconName:z,config:Object.assign({},S,S.alt?{}:{"aria-hidden$":"true"},{"aria-label$":S.alt,role:"img"})};if(f.sources===void 0){S.alt=f.accessibility&&f.accessibility.accessibilityData&&f.accessibility.accessibilityData.label||S.alt;S.style$=eWV(f,S.shouldShowPlaceholder,S.style$);var X;S.isPreloaded=!((X=_.H(f,
dTK))==null||!X.isPreloaded)}S.contentMode&&!G.contentMode&&(G.contentMode=S.contentMode);S.className=bwT(G,S.className,S.preserveHeight,S.preserveWidth,S.objectPosition);S.loadedClass="yt-core-image--loaded";return{type:"image",image:G,config:S}}};
_.Sq=function(){var f=_.qb.apply(0,arguments);return _.us(_.ar,function(S){var B=f.map(function(G){return G(S)});
return function(){return void B.forEach(function(G){return void(G==null?void 0:G())})}})};
Bw=function(f,S){var B=S==null?void 0:S.initial;return _.vW(function(){_.Ev(!0);return B=f(B)},{equals:S==null?void 0:S.isEqual},"rSlKsc")};
Hwj=function(f,S){if(f===S)return!0;if(f===void 0||S===void 0)return!1;var B,G,g,b,z,X,w,F;return f.content===S.content&&((B=f.styleRuns)==null?void 0:B.length)===((G=S.styleRuns)==null?void 0:G.length)&&((g=f.commandRuns)==null?void 0:g.length)===((b=S.commandRuns)==null?void 0:b.length)&&((z=f.attachmentRuns)==null?void 0:z.length)===((X=S.attachmentRuns)==null?void 0:X.length)&&((w=f.decorationRuns)==null?void 0:w.length)===((F=S.decorationRuns)==null?void 0:F.length)};
QbV=function(f,S){if(f){var B=NS1(f);if(B!=null&&B.content)if(_.K("attr_string_reactive"))wCs(qmN)({text:f,config:S});else{var G=!(S==null||!S.ariaLabel)||!(B.commandRuns&&B.commandRuns.length!==0||B.paragraphStyleRuns&&B.paragraphStyleRuns.length!==0);f=G?S==null?void 0:S.ariaLabel:null;G=G?"text":null;ke("span",{className:r6V(B,S),dir$:(S==null?0:S.userInput)?"auto":void 0,"aria-label$":f,role$:G},function(){if(B.styleRuns||B.commandRuns||B.attachmentRuns||B.decorationRuns){var g=A6N(B,S);ZcW(g,
S);g=c69(B.content,g);g=_.m(g.parts);for(var b=g.next();!b.done;b=g.next())$Tj(b.value)}else fL(B.content)})}}};
$Tj=function(f){typeof f==="string"?fL(f):M61(f.data)?ke("span",f.data.imageWrapperConfig,function(){KSN(f.data.image,f.data.imageConfig)}):ke(f.data.tag,f.data.config,function(S){t6T(f.data)(S);
S=_.m(f.parts);for(var B=S.next();!B.done;B=S.next())$Tj(B.value)})};
r4Q=function(f){return f.parts.map(YmT)};
YmT=function(f){if(typeof f==="string")return f;f=M61(f.data)?_.T("span",{el:_.Sq(u4j(f.data.imageWrapperConfig))},_.T(_.f9,Object.assign({},{data:f.data.image},f.data.imageConfig))):_.T(f.data.tag,{el:_.Sq(t6T(f.data),u4j(f.data.config))},f.parts.map(YmT));return Fq(f)};
jbQ=function(f,S){return f===S?!0:f===void 0||S===void 0?!1:f.noStyleRuns===S.noStyleRuns&&f.noLinkColor===S.noLinkColor&&f.noEndpoints===S.noEndpoints&&f.headerRuns===S.headerRuns&&f.isOverlay===S.isOverlay&&f.linkInheritColor===S.linkInheritColor&&f.userInput===S.userInput};
OwW=function(f){return function(){var S,B,G,g,b,z,X,w,F,V,J,P,d,Q;return{ariaLabel:(S=f.ariaLabel)==null?void 0:S.call(f),className:(B=f.className)==null?void 0:B.call(f),ellipsisTruncate:(G=f.ellipsisTruncate)==null?void 0:G.call(f),isOverlay:(g=f.isOverlay)==null?void 0:g.call(f),linkInheritColor:(b=f.linkInheritColor)==null?void 0:b.call(f),noEndpoints:(z=f.noEndpoints)==null?void 0:z.call(f),noStyleRuns:(X=f.noStyleRuns)==null?void 0:X.call(f),noLinkColor:(w=f.noLinkColor)==null?void 0:w.call(f),
noPreWrap:(F=f.noPreWrap)==null?void 0:F.call(f),noWrap:(V=f.noWrap)==null?void 0:V.call(f),skipOnClick:(J=f.skipOnClick)==null?void 0:J.call(f),stopPropagation:(P=f.stopPropagation)==null?void 0:P.call(f),userInput:(d=f.userInput)==null?void 0:d.call(f),headerRuns:(Q=f.headerRuns)==null?void 0:Q.call(f)}}};
xTW=function(f){return f.value===""||f.value==="true"?!0:f.value==="false"?!1:isNaN(Number(f.value))?f.value:Number(f.value)};
GD=function(f,S){f=new E4j(f,S);_.xH(f);throw f;};
LSN=function(f,S,B){var G=ASK(f);f._numRenders=0;try{var g=_.Xw1(function(){return _.T(S,Object.assign({},B))})}catch(z){var b=function(X){X.args||(X.args=[]);
X.args.push("Error in web component wrapper");X.args.push(f.tagName.toLowerCase());return X};
_.EU(z instanceof Error?b(z):new E4j("Wiz rendering error",f.tagName.toLowerCase()));throw z;}finally{ASK(G)}return g};
_.eq=function(f,S,B){function G(V){var J={};V=_.m(V);for(var P=V.next();!P.done;P=V.next()){P=P.value;var d=void 0,Q=void 0,x=void 0,E=_.Vw((x=(Q=(d=P).getAttribute)==null?void 0:Q.call(d,"slot"))!=null?x:"children");if(d=J[E])d.push(P);else if(E in b||E==="children")J[E]=[P]}V=_.m(Object.keys(J));E=V.next();for(P={};!E.done;P={content$jscomp$56:void 0},E=V.next())E=E.value,E!=="children"&&(P.content$jscomp$56=J[E],J[E]=function(U){return function(){return U.content$jscomp$56}}(P));
return J}
B=B===void 0?{}:B;f.componentType!==$p||GD("Components must be marked reactive to be used from web component wrapper.",S);mT.has(S)&&GD("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",S);var g,b=(g=B.props)!=null?g:{};zi.add(S);var z=kRx();g=function(){var V=z.apply(this,arguments)||this;V.rawProps={};V.queuingRender=!1;V.dispose=function(){};
V.isWebComponentWrapper=!0;V.isReparenting=!1;V.hasRendered=!1;return V};
_.q(g,z);g.prototype.render=function(){this.hasRendered=!0;for(var V=_.m([].concat(_.$d(this.attributes))),J=V.next();!J.done;J=V.next())J=J.value,J.name!=="slot"&&this.removeAttribute(J.name);V=Object.assign({},this.componentProps,this.slotProps);J=_.m(LSN(this,f,V));V=J.next().value;J=J.next().value;!(V[0]instanceof Element)||V.length>1?GD("Wrapped Wiz components must return a single root element.",S):(V=V[0].tagName.toLowerCase(),V!==S&&GD("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(V+" !== '"+S),S),this.dispose=J)};
g.prototype.setUpProps=function(){for(var V=this.rawProps,J=this.attributes,P=_.m(Object.keys(b)),d=P.next();!d.done;d=P.next()){d=d.value;var Q=void 0;((Q=this)==null?0:Q[d])&&this[d]!==n4M&&V[d]===void 0&&(V[d]=this[d],(Q=Object.getOwnPropertyDescriptor(this.constructor.prototype,d))&&Object.defineProperty(this,d,Q))}P=_.m(J);for(d=P.next();!d.done;d=P.next()){Q=d.value;d=_.Vw(Q.name);var x=d==="class"&&!J.getNamedItem("class-name");if(d in b||x)Q=xTW(Q),d!=="class"||V.className?V[d]=Q:V.className=
Q}J={};for(var E in b)b[E]!==_.gm&&b[E]!==sbW&&(V[E]instanceof Function&&GD("Function props must be configured as STATIC, not SIGNAL.",S),d=_.m(_.hj(V[E],void 0,"Ri8MSe")),P=d.next().value,d=d.next().value,J[E]=d,V[E]=P);V=_.m([V,J]);this.componentProps=V.next().value;this.setters=V.next().value;this.slotProps=G(this.childNodes)};
g.prototype.connectedCallback=function(){eP===S&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in b&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
g.prototype.disconnectedCallback=function(){if(!this._isInert){var V;a:{if(_.DTQ)for(V=this;V;){if(_.Iij.has(V)){V=!0;break a}V=V.parentElement}V=!1}if(V)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){V=_.m([].concat(_.$d(this.attributes)));for(var J=V.next();!J.done;J=V.next())J=J.value,J.name!=="slot"&&this.removeAttribute(J.name)}this.innerText="";naN(this)}}};
g.prototype._setPendingPropertyOrPath=function(){};
g.prototype.notifyPath=function(){};
_.y3.Object.defineProperties(g.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var X=_.m(Object.keys(b)),w=X.next(),F={};!w.done;F={prop$jscomp$104:void 0},w=X.next())F.prop$jscomp$104=w.value,w=void 0,((w=B.legacyPolymer)==null?0:w.forwardHostProps)&&xS1.has(F.prop$jscomp$104)||Object.defineProperty(g.prototype,F.prop$jscomp$104,{set:function(V){return function(J){var P=this;this._isInert||(this.setters?Kj(function(){var d,Q;return void((Q=(d=P.setters)[V.prop$jscomp$104])==null?void 0:Q.call(d,J))}):(this.rawProps[V.prop$jscomp$104]=J,this.queuingRender&&V.prop$jscomp$104===
"data"&&J!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(F),
get:UTV.has(F.prop$jscomp$104)?void 0:function(){return n4M}});
customElements.define(S,g)};
_.CRs=function(f,S){return(f=_.bF(f,S))?_.Ve(_.io(f)):null};
_.my=function(f){if(f=_.bF(f,Number.MAX_VALUE,void 0,"width"))return _.io(f)};
_.bF=function(f,S,B,G){G=G===void 0?"width":G;if(!f||!f.length)return null;if(_.K("kevlar_tuner_should_always_use_device_pixel_ratio")){var g=window.devicePixelRatio;_.K("kevlar_tuner_should_clamp_device_pixel_ratio")?g=Math.min(g,_.Gt("kevlar_tuner_clamp_device_pixel_ratio")):_.K("kevlar_tuner_should_use_thumbnail_factor")&&(g=_.Gt("kevlar_tuner_thumbnail_factor"));pCj=g}else pCj||(pCj=window.devicePixelRatio);g=pCj;_.K("kevlar_tuner_should_always_use_device_pixel_ratio")?S*=g:g>1&&(S*=g);if(_.K("kevlar_tuner_min_thumbnail_quality"))return f[0].url||
null;g=f.length;if(_.K("kevlar_tuner_max_thumbnail_quality"))return f[g-1].url||null;if(B)for(var b=0;b<g;b++)if(f[b].url.indexOf(B)>=0)return f[b].url||null;for(B=0;B<g;B++)if(f[B][G]>=S)return f[B].url||null;for(S=g-1;S>0;S--)if(f[S][G])return f[S].url||null;return f[0].url||null};
MhT=function(){zD.size?setTimeout(function(){Ra(A4K)},0):Nt1=0};
A4K=function(){var f=(0,_.fO)(),S=null,B=!1;zD.forEach(function(g){g.loaded=!0;g.loadTime=f;g.pendingPaint=!1;var b=Zwj.get(g);b&&b.resolve(f);S=g;B||!g.ftlEligible&&g.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(B=!0)});
var G;((G=S)==null?0:G.markDirty)&&S.markDirty();zD.clear();Nt1=0;B&&th1(f)};
uBs=function(f){zD.add(f);f.pendingPaint=!0;Nt1||(Nt1=_.Xd(_.xJ,MhT))};
ai1=function(f){f.loaded=!1;f.loadTime=Infinity;var S=Zwj.get(f);S&&(S.reject(Error("mh")),Zwj.delete(f));f.pendingPaint&&(zD.delete(f),f.pendingPaint=!1)};
_.y4Q=function(f){var S=f.indexOf(":");return S===-1?{originalName:f}:{originalName:f.substring(0,S),datasyncId:f.substring(S+1)}};
_.c41=function(){return _.R(function(f){if(WST!==void 0)return f.return(WST);WST=new Promise(function(S){var B;return _.R(function(G){switch(G.nextAddress){case 1:return _.zT(G,2),_.h(G,_.wm.open("test-only"),4);case 4:return _.h(G,_.wm.delete("test-only"),5);case 5:_.CN(G,3);break;case 2:if(B=_.hm(G),B instanceof Error&&B.name==="SecurityError")return S(!1),G.return();case 3:S("caches"in window),_.TT(G)}})});
return f.return(WST)})};
oCQ=function(){return _.R(function(f){if(f.nextAddress==1)return _.h(f,_.c41(),2);if(!f.yieldResult)return f.return(void 0);li9||(li9=new flN);return f.return(li9)})};
SNK=function(f){var S,B,G,g;return _.R(function(b){switch(b.nextAddress){case 1:return _.h(b,oCQ(),2);case 2:S=b.yieldResult;if(!S)throw Error("oh");return _.h(b,S.open("yt-player-local-img"),3);case 3:return B=b.yieldResult,_.h(b,B.match(f),4);case 4:G=b.yieldResult;if(!G)throw Error("ph");return _.h(b,G.blob(),5);case 5:return g=b.yieldResult,b.return(g)}})};
BdM=function(f,S){for(var B in f)if(f.hasOwnProperty(B)&&S[B])return B;return null};
GyM=function(f){return"stamp"+f.replace("-","_")+"_"};
gCs=function(f){var S=f.match(/\[\[([\w\.]+)\]\]/);if(S&&S.length>1)return S[1];_.xH(Error("rh`"+f));return null};
ebW=function(f){return f===void 0?_.s6("REUSE_COMPONENTS",!1):f||!1};
zbW=function(f,S,B){B&&(S.is?(b31.has(S)&&(f=b31.get(S),B=f.listener,delete S[f.property],B.type==="element"&&S.removeEventListener(B.eventName,B.handler),b31.delete(S)),mtK(S)):S.__proto__==HTMLElement.prototype&&(S=new _.dO("Rendererstamper removed a non custom element","Stamper: "+f+" element: "+(S&&S.nodeName)),_.Lg(S)))};
RbK=function(f,S,B,G){var g=S.node?S.node:S;_.m9(B).parentNode===g&&(S.removeChild(B),zbW(f,B,G));if(f=h3.get(B))h3.delete(B),_.xJ.cancelJob(f);B.hidden=!1};
X5G=function(f,S,B,G){if(S&&S.children&&(B=S.children[B]))if(_.s6("DEFERRED_DETACH"))for(;B&&!h3.has(B);){var g=f,b=S,z=B,X=G;z.hidden=!0;g=_.q6(_.xJ,RbK.bind(null,g,b,z,X),0);h3.set(z,g);B=B.nextElementSibling}else for(;(z=S.lastElementChild)&&(S.removeChild(z),zbW(f,z,G),z!=B););};
w5x=function(f){var S=_.tE("__slot-el");_.j9(function(){for(var B=_.m(f.slotContent),G=B.next();!G.done;G=B.next())S.value.appendChild(G.value)});
return _.T("__slot-el",{el:S,skip:!0})};
_.TD=function(f,S,B){B=B===void 0?hbN:B;mT.add(S);var G;(G=B).propNames!=null||(G.propNames=[]);var g=new Set(B.propNames),b=kRx();G=function(){var F=b.call(this)||this;F.props={};F.isUpdating=!1;F.hasAttached=!1;F.isInert=!1;F.updateQueued=!1;F.initialClasses=[];pHW(F,S);return F};
_.q(G,b);G.prototype.forwardKebabCaseProp=function(F,V){F=_.Vw(F);if(g.has(F)||F==="children")this.props[F]=V};
G.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var F=_.m(this.initialClasses),V=F.next();!V.done;V=F.next())(V=V.value)&&this.classList.add(V);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
G.prototype.handleSlottedContent=function(){for(var F=new Map,V=_.m(this.children),J=V.next();!J.done;J=V.next()){J=J.value;var P=void 0,d=(P=J.getAttribute("slot"))!=null?P:"children";(P=F.get(d))?P.push(J):F.set(d,[J]);if(!J.getAttribute("key")){var Q=void 0,x=void 0;J.setAttribute("key",d+"_"+((x=(Q=P)==null?void 0:Q.length)!=null?x:0))}}F=_.m(F);for(V=F.next();!V.done;V=F.next())J=_.m(V.value),V=J.next().value,J=J.next().value,this.forwardKebabCaseProp(V,_.T(w5x,{slotContent:J}))};
G.prototype.connectedCallback=function(){var F=this;if(!pHW(this,S)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var V=_.m(this.attributes),J=V.next();!J.done;J=V.next())J=J.value,this.forwardKebabCaseProp(J.name,xTW(J));this.handleSlottedContent();B.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){F.afterFirstPatch()});
this.hasAttached=!0}};
G.prototype.attributeChangedCallback=function(F,V,J){this.isInert||this.isUpdating||this.isConnected||F!=="class"||this.initialClasses.push.apply(this.initialClasses,_.$d(J.split(" ")))};
G.prototype.disconnectedCallback=function(){jrQ(this)};
G.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var F,V;MPV(this,_.T(f,Object.assign({},this.props,{idomKey:(V=(F=this.__incrementalDOMData)==null?void 0:F.key)!=null?V:S})),!0)}catch(P){var J=P instanceof Error?P:new _.dO("Wiz rendering error");J.args||(J.args=[]);J.args.push("Error in deprecated web component wrapper");J.args.push(S.toLowerCase());_.xH(J);throw P;}finally{this.updateQueued=this.isUpdating=!1}}};
G.prototype.enqueueUpdate=function(){var F=this;return _.R(function(V){if(B.synchronous)return F.update(),V.return();if(F.updateQueued)return V.return();F.updateQueued=!0;return V.return(Promise.resolve().then(function(){F.update()}))})};
G.prototype.notifyPath=function(){B.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.y3.Object.defineProperties(G,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var z=_.m(B.propNames),X=z.next(),w={};!X.done;w={prop$jscomp$106:void 0},X=z.next())w.prop$jscomp$106=X.value,Object.defineProperty(G.prototype,w.prop$jscomp$106,{set:function(F){return function(V){this.isInert||V===this.props[F.prop$jscomp$106]||(this.props[F.prop$jscomp$106]=V,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(w)});
customElements.define(S,G)};
_.TdN=function(f,S){return _.w9(f.entities,"markersEngagementPanelSyncEntity",S)};
Fq1=function(f,S){return _.w9(f.entities,"fantasyWinProbabilityEntity",S)};
V5G=function(f,S){return _.w9(f.entities,"fantasyTeamEntity",S)};
JwA=function(f,S){return _.w9(f.entities,"fantasyPlayerEntity",S)};
P7V=function(f,S){return _.w9(f.entities,"booleanEntity",S)};
vCx=function(f,S){return _.w9(f.entities,"qrCodeEntity",S)};
KqW=function(f){return _.w9(f.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
dtN=function(){if(Fd)return Fd;if(window.lottie)return Fd=Promise.resolve(window.lottie);var f=_.E4(_.nL("LOTTIE_URL"));return f?Fd=new Promise(function(S,B){var G=document.createElement("script");G.addEventListener("load",function(){S(lottie)});
G.addEventListener("error",function(g){var b="Lottie library failed to load.";g?g.message&&(b+=" Original description: "+g.message,_.kH(g,b)):g=Error(b);_.Lg(g);B(g)});
G.setAttribute("async","");_.CC(G,f);document.head.appendChild(G)}):Promise.reject(Error("sh"))};
i39=function(){return Fd?Fd:dtN()};
H3T=function(f){if(f)switch(f){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.K("kevlar_use_wil_icons"))return f=(f=KqW(_.W2().getState()))&&f.animationLightUrl&&f.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:f.animationLightUrl,pathDarkTheme:f.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,f?f:Vj.get("LIKE")}};
qN9=function(f){var S=H3T(f);if(S)return S;switch(f){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return Vj.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return Vj.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return Vj.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return Vj.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return Vj.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return Vj.get("NOTIFICATION_BELL")}};
Q2s=function(f,S){if(!f||$t1)S=!1;else{if(f.closest){var B=!!H3T(S);B=_.nL("ID_TOKEN")&&B?!!f.closest("segmented-like-dislike-button-view-model"):!1}else B=!1;if(!B)if(f.closest)if(B=!_.nL("ID_TOKEN"),f=f.closest("ytd-subscription-notification-toggle-button-renderer-next"),B||!f)B=!1;else{var G;B=((G=f.data)==null?void 0:G.targetId)==="notification-bell"&&S!=="EXPAND_MORE"}else B=!1;S=B}return S};
YN9=function(f){var S,B;return _.R(function(G){switch(G.nextAddress){case 1:return _.zT(G,2),_.h(G,fetch(f),4);case 4:return S=G.yieldResult,_.h(G,S.json(),5);case 5:return G.return(G.yieldResult);case 2:B=_.hm(G),_.Lg(B),_.TT(G)}})};
rwT=function(f,S){var B,G,g;return _.R(function(b){if(b.nextAddress==1)return(B=S?f.pathDarkTheme:f.path)?_.h(b,Promise.all([YN9(B),dtN()]),2):b.return();G=b.yieldResult;g=G[0];J3.set(B,g);_.TT(b)})};
_.Pw=function(){for(var f=_.qb.apply(0,arguments),S=!0,B=_.m(f),G=B.next();!G.done;G=B.next())if(typeof G.value!=="string"){S=!1;break}return S?f.join(" ").trim()||void 0:function(){for(var g="",b=_.m(f),z=b.next();!z.done;z=b.next())if(z=z.value,typeof z==="function"&&(z=z()),z)if(typeof z==="string")g+=" "+z;else for(var X in z)if(z.hasOwnProperty(X)){var w=z[X];typeof w==="function"&&(w=w());w&&(g+=" "+X)}g=g.trim()||void 0;return _.Ev(g)}};
_.vw=function(f){var S;var B=f.data;var G=f.className;var g=f.animationName;var b=f.animationRef;var z=(S=f.elRefForInterop)||_.tE("lottie-component"),X;_.Ov(function(){var V;return void((V=X)==null?void 0:V.destroy())});
var w;_.jp(function(){var V=_.Ev(g);if(V!==w){w=V;var J=Object.assign({},{animationName:V,animationRef:_.Ev(b)},_.Ev(B));try{_.oy().resolve(j29)().then(function(Q){var x;(x=X)==null||x.destroy();x=J.animationRef;var E=J.listeners;Q=Q.loadAnimation(Object.assign({},{container:z.value},J.animationConfig));x&&(x.lottieEl=Q);if(E)for(x=_.m(Object.entries(E)),E=x.next();!E.done;E=x.next()){var U=_.m(E.value);E=U.next().value;(U=U.next().value)&&Q.addEventListener(E,U)}X=Q})}catch(Q){V=Q;
var P="LottieComponent error.";V.message&&(P+=" Original description: "+V.message);_.kH(V,P);_.Lg(V);var d;((d=J.listeners)==null?0:d.error)&&J.listeners.error(V)}}},"Cu2JNe");
var F=_.Pw("ytLottieComponentHost",G);return _.T(kM1,{cond:function(){return!S},
then:function(){return _.T("lottie-component",{class:F,el:z})}})};
xt1=function(f,S,B,G){function g(z,X){if(S.value===X&&f!=null&&f.value){for(;f.value.firstChild;)f.value.removeChild(f.value.firstChild);f.value.classList.add("yt-spec-icon-shape");z(f.value,G)}}
B=_.O31(_.oy().resolve(_.VU),B);if(typeof B==="function")S.value=null,g(B,null);else{var b=new _.TM(B.then,B);S.value=b;b.then(function(z){g(z,b)})}};
LqT=function(f,S){var B=document.createElement("div"),G=_.QR(B,function(){return _.T(_.v,{cond:f,then:function(g){return _.T(ECK,{data:g,options:S})}})});
return[B,G]};
_.K9=function(){for(var f=[],S=_.m(_.qb.apply(0,arguments)),B=S.next();!B.done;B=S.next())if(B=B.value)if(typeof B==="string")f.push(B);else{B=_.m(Object.entries(B));for(var G=B.next();!G.done;G=B.next()){var g=_.m(G.value);G=g.next().value;(g=g.next().value)&&f.push(G)}}return f.join(" ")};
DtT=function(f){var S=_.tE("animated-rolling-character"),B=x5(),G=a4(f.character)||a4(f.previousCharacter);uXj(function(){if(f.marginMultiplier){var g;(g=B.value)==null||g.cancel();G?(g=f.previousCharacter?Number(f.previousCharacter)+10:f.rollUp?0:30,f.shouldAnimate||(g-=ky1(f,g))):(g=f.rollUp?0:2,f.shouldAnimate||(g-=f.rollUp?-1:1));S.value.style.marginTop="-"+g*f.marginMultiplier+"px";f.shouldAnimate?B.value=nCV(S.value,f,g,G):S.value.style.display=f.character?"":"none"}});
return _.T("animated-rolling-character",{el:S,class:"animated-rolling-character-wiz"},Wv(G,function(){for(var g=[],b=1;b<30;b++)g.push(_.T("div",null,b%10));return _.T(_.gg,null,_.T("div",null,"\u00a0"),g,_.T("div",null,"\u00a0"))},function(){return s2V(f.character)}))};
s2V=function(f){return _.T(_.gg,null,_.T("div",null,"\u00a0"),_.T(_.gg,null,Wv(!f||_.bK(f),function(){return _.T("div",null,"\u00a0")},function(){return _.T("div",null,f)})),_.T("div",null,"\u00a0"))};
nCV=function(f,S,B,G){B=new Animation(new KeyframeEffect(f,[{transform:"translateY(0px)"},{transform:"translateY("+(G?ky1(S,B):S.rollUp?-1:1)*S.marginMultiplier+"px)"}],IlN),document.timeline);S.character?(f.style.display="",B.onfinish=null):B.onfinish=function(){f.style.display="none"};
B.play();return B};
ky1=function(f,S){var B=Number(f.character)+10;if(f.previousCharacter)if(f.character){var G=Number(f.character),g=Number(f.previousCharacter);f=f.rollUp?g<G?B:B+10:g<G?B-10:B}else f=f.rollUp?30:0;else f=f.character==="0"?B:f.rollUp?B-10:B+10;return S-f};
_.dm=function(f,S){return function(B){var G={},g;for(g in B){var b=void 0,z=void 0;((b=S)==null?0:(z=b.callbacks)==null?0:z[g])||(G[g]=B[g])}return _.T(Rdj,null,function(){for(var X in G)B[X]=_.Ev(G[X]);B.disableReactiveLogging=!0;return _.T(f,Object.assign({},B))})}};
p5V=function(f,S,B,G,g,b,z){B=new Animation(new KeyframeEffect(f,[{transform:"translateY(0px)"},{transform:"translateY("+(b?Ut1(S,B,G,g):G?-1:1)*z+"px)"}],C71),document.timeline);S?(f.style.display="",B.onfinish=null):B.onfinish=function(){f.style.display="none"};
B.play();return B};
Ut1=function(f,S,B,G){var g=Number(f)+10;S?f?(f=Number(f),S=Number(S),B=B?S<f?g:g+10:S<f?g-10:g):B=B?30:0:B=f==="0"?g:B?g-10:g+10;return G-B};
Ndx=function(f){var S=x5(),B=x5();rg(function(){S.value=f.numberText;B.value=f.numberValue},[f.numberText]);
var G=f.fontSizeMultiplier?f.heightPx*f.fontSizeMultiplier:f.heightPx,g=B0N(function(){if(f.numberText){var z=f.numberText;var X=f.forceRollUp||!B.value||!f.numberValue||B.value<f.numberValue;var w=!!f.shouldAnimate,F=S.value,V=[],J=0,P=0,d=(F?F.replace(/\D/g,"").length:0)-(z?z.replace(/\D/g,"").length:0);F=F?F.split(/(\d)/).filter(Boolean):[];for(z=z.split(/(\d)/).filter(Boolean);d<0;){var Q=z[P];V.push({character:Q,rollUp:X,marginMultiplier:G,shouldAnimate:w});P++;a4(Q)&&d++}for(;J<d;)Q=F[J],V.push({previousCharacter:Q,
rollUp:X,marginMultiplier:G,shouldAnimate:w}),J++,a4(Q)||d++;for(;P<z.length;)d=z[P],Q=F[J],a4(d)===a4(Q)?(P++,J++):a4(d)?(J++,d=void 0):a4(Q)&&(P++,Q=void 0),V.push({character:d,previousCharacter:Q,rollUp:X,marginMultiplier:G,shouldAnimate:w});X=V}else X=[];return X},[f.numberText]),b=f.numberText?["height: "+G+"px;",
"line-height: "+f.heightPx+"px;"].join(" "):"";return _.T("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:b,dir:"ltr","aria-hidden":"true"},g.map(function(z){return _.T(Aw1,Object.assign({},z))}))};
Z3s=function(f){var S;return(S=M5A[f])!=null?S:"EVENT_SPAN_TYPE_UNKNOWN"};
t5A=function(f){var S=f.nodeName;if(f.id)return S+="#"+f.id;if(f.classList)for(var B=_.m(f.classList),G=B.next();!G.done;G=B.next())S+="."+G.value;f.parentElement&&(S=t5A(f.parentElement)+" > "+S);return S};
uNj=function(f){return function(S){var B=Z3s(S.type);return B==="EVENT_SPAN_TYPE_UNKNOWN"?f(S):r_N("event",{type:B,nodepath:S.target instanceof Element?t5A(S.target):void 0},function(){return f(S)})}};
_.iF=function(f){f&&$sT("event")&&(f=uNj(f));return CkK(function(S){var B,G=(B=f)==null?void 0:B(S);return typeof G==="boolean"?G:!0})};
Hw=function(f){return function(){return f()?f():void 0}};
alK=function(f){return new KeyframeEffect(f,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
ywx=function(f){return new KeyframeEffect(f,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.$8=function(f){var S=Bw(function(B){B=B?wA(B[0]):void 0;return _.hj(f(B),void 0,"AwTxXe")},{isEqual:function(B,G){return wA(B[0])===wA(G[0])}});
return[function(){return S()[0]()},
function(B){return void S()[1](B)}]};
_.Qj=function(f){return function(){var S="",B;for(B in f){for(var G=f[B];typeof G==="function";)G=G();G!==void 0&&G!==null&&(S+="; "+B+": "+G)}return S.length>0?_.Ev(S.slice(2)):_.Ev()}};
WqK=function(f){switch(f){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"}};
oss=function(f,S,B,G,g,b){var z=cw9(f),X=z.disabled,w=z.iconPosition,F=z.style,V=z.focused,J=function(){return!!Q()&&w()==="icon-only"},P=function(){return!!Q()&&w()==="icon-only-40"},d=function(){return!!Q()&&w()==="icon-with-label"},Q=function(){return!!S||!(G==null||!G())};
return{type:function(){return F()==="call-to-action-inverse"?"text":F()==="overlay-dark"&&f().type!=="filled"&&f().type!=="tonal"?"tonal":f().type},
shouldFocus:function(){return(V()||(b==null?void 0:b()))&&!X()},
hasIconLeading:function(){return!!Q()&&w()==="leading"},
hasIconTrailing:function(){return!!Q()&&w()==="trailing"},
hasIconLeadingTrailing:function(){return!!Q()&&!!(B||g!=null&&g())&&w()==="leading-trailing"},
hasIconOnly:J,hasIconOnly40:P,hasIconWithLabel:d,iconButton:function(){return J()||P()||d()},
visiblyDisabled:function(){return(X()?"disabled":f().state)==="disabled"||X()},
overrideSmallSizeIcon:function(){return!f().ignoreIconSizeOverride&&llW(f(),Q())},
iconToRender:S?S:function(){return _.T(_.Y8,{icon:G,size:function(){return rm(f(),!0,f().ignoreIconSizeOverride)},
active:function(){return f().toggled},
iconFilter:function(){return f_K(f())}})},
secondaryIconToRender:B?B:function(){return _.T(_.Y8,{icon:g,size:function(){return rm(f(),!0,f().ignoreIconSizeOverride)},
active:function(){return f().toggled},
iconFilter:function(){return f_K(f())}})}}};
cw9=function(f){return{size:function(){return f().size},
style:function(){return f().style},
focused:function(){return f().focused},
disabled:function(){return f().disabled},
onTap:function(S){var B,G;return(G=(B=f()).onTap)==null?void 0:G.call(B,S)},
alignByText:function(){return f().alignByText},
aTagConfig:function(){return f().aTagConfig},
customColors:function(){return f().customColors},
segmentedPosition:function(){return f().segmentedPosition},
toggled:function(){return f().toggled},
toggleable:function(){return f().toggleable},
accessibilityLabel:function(){return f().accessibilityLabel},
onToggle:function(S){var B,G;return(G=(B=f()).onToggle)==null?void 0:G.call(B,S)},
iconPosition:function(){return f().iconPosition},
oneOffCustomTextWrap:function(){return f().oneOffCustomTextWrap},
disableTextEllipsis:function(){return f().disableTextEllipsis},
disableBackdropFilter:function(){return f().disableBackdropFilter},
tooltipText:function(){return f().tooltipText},
ariaHidden:function(){return f().ariaHidden},
tabIndex:function(){return f().tabIndex},
buttonText:function(){return f().buttonText},
formattedButtonText:function(){return f().formattedButtonText},
animatedTextProps:function(){return f().animatedTextProps}}};
SBQ=function(f){return f.style==="overlay-dark"?4:f.style==="overlay"?f.type==="filled"?4:3:f.type==="filled"||f.style==="call-to-action-inverse"||f.style==="mono-inverse"?2:1};
llW=function(f,S){S=(f.iconPosition==="icon-only"||f.iconPosition==="icon-only-40"||f.iconPosition==="icon-with-label")&&S;return!f.segmentedPosition&&S&&f.size==="S"};
BoM=function(){return!_.K("web_disable_backdrop_filter")};
rm=function(f,S,B){switch(f.size){case "XS":return 16;case "S":return!B&&llW(f,S)?24:16;default:return 24}};
GUN=function(f){switch(f){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"}};
gsx=function(f){switch(f){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"}};
eyN=function(f){switch(f){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"}};
f_K=function(f){if(f.style==="overlay-dark"&&f.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
bl9=function(f){if(!f)return{};var S=f.color,B=f.backgroundColor;f=f.borderColor;var G="";S&&(G+="color: "+S+";");B&&(G+="background-color: "+B+";");f&&(G+="border-color: "+f+";");return{style:G}};
wMx=function(f,S,B){var G=f.buttonText,g=f.formattedButtonText,b=f.formattedButtonTextLegacy,z=f.animatedTextProps,X=f.style,w=f.size,F=f.focused,V=f.disabled,J=f.onTap,P=f.alignByText,d=f.aTagConfig,Q=f.customColors,x=f.segmentedPosition,E=f.toggled,U=f.toggleable,A=f.accessibilityLabel,t=f.onToggle,M=f.iconPosition,a=f.oneOffCustomTextWrap,l=f.disableTextEllipsis,mx=f.disableBackdropFilter,zj=f.tooltipText,VN=f.ariaHidden,$Q=f.tabIndex,OV=f.ignoreIconSizeOverride,rW=f.state,MA=f.type;X==="call-to-action-inverse"&&
(MA="text");X==="overlay-dark"&&MA!=="filled"&&MA!=="tonal"&&(MA="tonal");var UV=!!S&&M==="leading",W7=!!S&&M==="trailing",c7=!!S&&!!B&&M==="leading-trailing",Q$=!!S&&M==="icon-only",To=!!S&&M==="icon-only-40",Ci=!!S&&M==="icon-with-label",VM=Q$||To||Ci;V&&(rW="disabled");var Go=rW==="disabled"||V;OV=!OV&&llW(f,!!S);rW={};var Io=(rW["yt-spec-button-shape-next"]=!0,rW[GUN(MA)]=!0,rW[gsx(X)]=!Go,rW["yt-spec-button-shape-next--disabled"]=!!Go,rW[eyN(w)]=!0,rW["yt-spec-button-shape-next--focused"]=!!F&&
!V,rW["yt-spec-button-shape-next--icon-trailing"]=W7,rW["yt-spec-button-shape-next--icon-leading"]=UV,rW["yt-spec-button-shape-next--icon-leading-trailing"]=c7,rW["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=c7&&!(G||g),rW["yt-spec-button-shape-next--icon-button"]=Q$||Ci,rW["yt-spec-button-shape-next--icon-only-default"]=To,rW["yt-spec-button-shape-next--align-by-text"]=!!P,rW["yt-spec-button-shape-next--segmented-start"]=x==="start",rW["yt-spec-button-shape-next--segmented-end"]=x===
"end",rW["yt-spec-button-shape-next--override-small-size-icon"]=OV,rW["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!a,rW["yt-spec-button-shape-next--disable-text-ellipsis"]=!!l,rW["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!mx&&BoM(),rW),uz=function(){if(z)wCs(_.mhV)(z);else if(b)b(M==="icon-with-label"||a?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(g){var um=M==="icon-with-label"||a;QbV(Object.assign({},
g,um?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),{noLinkColor:!0,noWrap:!um})}else G&&fL(G)},RT=function(um){J==null||J(um);
U&&(t==null||t(um))},P7=d?zyN:Rys,O8=d?"aria-current$":"aria-pressed$",ao=function(){S&&(UV||c7||VM)&&function(){jq({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){S()})}();
(G||g||b||z)&&!VM&&function(){jq({className:"yt-spec-button-shape-next__button-text-content"},function(){uz()})}();
W7&&function(){jq({className:"yt-spec-button-shape-next__icon"},function(){S()})}();
c7&&function(){jq({className:"yt-spec-button-shape-next__secondary-icon"},function(){B()})}();
V||wCs(_.Oo)({model:{color:SBQ(f)}})},H7=function(){var um={};
P7(Object.assign({},(um.className=_.K9(Io),um.onclick=d?void 0:RT,um.disabled=V,um["aria-disabled$"]=Go,um.style=V&&d?"pointer-events:none":void 0,um[O8]=U?!!E:void 0,um["aria-label$"]=A,um.title$=zj!=null?zj:"",um["aria-hidden$"]=VN,um.tabindex$=$Q,um),d,bl9(Q)),function(){ao()})};
Ci?(w={},X=(w["yt-spec-button-shape-with-label"]=!0,w["yt-spec-button-shape-with-label--is-overlay"]=X==="overlay"||X==="overlay-dark",w),XMs({className:_.K9(X)},function(){H7();jq({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},uz)})):H7()};
Tos=function(f,S){if(!cv){var B;oJ1(function(){return B=m11(f,S)});
return B}f.parent=hys();return m11(f,S)};
hys=function(){var f=v5A(cv||void 0,g81);return P0M(f)?void 0:f};
x8=function(f,S){_.pH(f,Object.assign({},S,{forceClickLogging:!0}))};
FtG=function(f,S,B,G){var g=void 0;return function(b){var z=_.CH(B?f==null?void 0:f.onDisabledTap:f==null?void 0:f.onTap);if(z){var X;g=(X=g)!=null?X:S==null?void 0:S.value;if(z)if(_.K("web_button_vm_click_client_ve_killswitch"))x8(z,Object.assign({},{form:{element:g,event:b}},void 0));else{var w;X=z==null?void 0:z.clickTrackingParams;var F,V=f==null?void 0:(w=f.loggingDirectives)==null?void 0:(F=w.clientVeSpec)==null?void 0:F.uiType;w=V&&!X?_.Eo(V):void 0;x8(z,Object.assign({},{form:{element:g,event:b}},
{clickedVisualElement:w}))}}G&&G(b)}};
VKW=function(f){switch(f){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"}};
JU1=function(f){switch(f){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"}};
Pj1=function(f){switch(f){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"}};
vsN=function(f){switch(f){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"}};
KtK=function(f,S){return _.w9(f.entities,"engagementToolbarStateEntityPayload",S)};
ils=function(f){(f=_.Ye(f))&&_.dh9(f)};
_.dh9=function(f){var S=_.xc();S&&_.ME(S,f)};
HlT=function(f,S,B){_.bW(f,"yt-open-popup-action",[S,B||f])};
qBs=function(f,S){var B=_.E6(f,"endpoint"),G=_.E6(f,"action");return(B=G?G:B)&&S&&(B=S.navigationEndpointPopupMap[B])&&(f=_.U6(B,f),(B=_.E6(f,"renderer"))&&S.supportedPopups.hasOwnProperty(B))?{openPopupAction:{popupType:S.popupTypeMap[B],popup:f}}:null};
$hG=function(f,S,B,G){if(G){var g;B=B==null?void 0:(g=B.data)==null?void 0:g.contents;(g=B instanceof Array&&B.length?B[0]:B)&&(B=_.E6(g,"renderer"))&&G.supportedPopups.hasOwnProperty(B)&&(S.stopPropagation(),HlT(f,{openPopupAction:{popupType:G.popupTypeMap[B],popup:g}}))}};
rUK=function(f,S,B,G){G=G===void 0?!1:G;var g=QBW(S);if(g){g.href&&ZU(g.href);var b=S.button;b=b!==void 0?b===0&&!L9(S):!L9(S);g.data&&b&&YBA(f,g,S,B,G)}};
YBA=function(f,S,B,G,g){g=g===void 0?!1:g;var b=_.Gt("pbj_navigate_limit",-1)===0;jBs(S);_.oy().resolve(_.fN(Cg));var z=S.data;if(Object.keys(z).length!==0)if(!_.K("unplugged_web_disable_actions_for_cec_endpoint")&&_.H(z,_.hf))_.K("endpoint_behavior_command_executor_fix_killswitch")||(B.preventDefault(),B.stopPropagation()),_.Xh(f,[z],f);else if(G=qBs(z,G))z.loggingUrls&&z.loggingUrls.forEach(function(w){w.baseUrl&&_.pO(w.baseUrl)}),B.preventDefault(),B.stopPropagation(),HlT(f,G,S);
else{var X=Ol1(0,S.data,B);if(f=S.getForm)f=f(),X.tempData=X.tempData||{},X.tempData=Object.assign({},X.tempData,f);f=_.ct(B);if(G=f.find(function(w){return!!w.visualElement}))X.createScreenConfig=X.createScreenConfig||{},X.createScreenConfig.clickedVisualElement=G.visualElement;
if(!b)if(B.preventDefault(),B.stopPropagation(),_.H(z,_.xhj)&&!g&&_.JZ.instance)_.JZ.instance.resolveCommand(z,X);else if(_.K("kevlar_command_handler_formatted_string")&&!g&&_.JZ.instance&&Es9(z))g=f.find(function(w){return!!w.is})||B.target,B={form:Object.assign({},X,{event:B,
element:g,originatingNode:S})},_.JZ.instance.resolveCommand(z,B);else{z=_.ct(B);B=[];for(g=0;g<z.length;g++)(b=z[g].is)&&B.push(b);HHj({parents:B.join(","),text:S.innerText},function(){_.ew(S,"yt-navigate",X)})}}};
LtV=function(f){if(f=QBW(f))jBs(f),BDN(f.href)};
QBW=function(f){f=_.ct(f);for(var S,B=0;B<f.length;B++)if(S=f[B],S.tagName==="A"&&S.classList.contains("yt-simple-endpoint")){if(!S.data)break;return S}return null};
L9=function(f){return f.shiftKey||f.altKey||f.metaKey||f.ctrlKey};
kUs=function(f,S){var B={itct:S.clickTrackingParams};_.K("kevlar_client_side_screens")&&(!_.H(S,_.QW)||_.K("kevlar_exclude_endpoint_killswitch"))&&(B.endpoint=JSON.stringify(S));_.K("enable_unknown_lact_fix_on_html5")&&_.oy().resolve(_.fN(_.k8))&&(B.lact=_.or());fV1(B);_.WZ(f,B)};
jBs=function(f){f.href&&Object.keys(f.data).length!==0&&kUs(f.href,f.data)};
Es9=function(f){for(var S=_.m(nsj),B=S.next();!B.done;B=S.next())if(f[B.value])return!1;return!0};
_.n9=function(f,S){if(S){var B={};sBK.forEach(function(G){G=DhK(S,G,"--yt-lightsource-");Object.assign(B,G)});
I_V.forEach(function(G){G=DhK(S,G,"--yt-basic-");Object.assign(B,G)});
_.hO(f,B)}};
DhK=function(f,S,B){var G={};G[B+_.Fv(S)]=f&&f[S]?_.AK(f[S]):"";return G};
_.Dd=function(f,S,B){so[f]||(so[f]={});so[f][S]=B};
_.Ia=function(f){so[f]||(so[f]={});return so[f]};
UhN=function(f){if(!f)return{};var S=f.foregroundTitleColor,B=f.backgroundColor;f=f.borderColor;var G="text";f?G="outline":B&&(G="filled");return{type:G,customColors:{color:S?_.AK(S):void 0,backgroundColor:B?_.AK(B):void 0,borderColor:f?_.AK(f):void 0}}};
MKN=function(f){var S=f.renderer;var B=f.element;var G=f.commandController;var g=f.onTapCallback;var b=f.skipCommandHandling;var z=f.overrides;var X=f.forceIcon;var w=f.forceModernIconButton;var F=f.forceDisabled;var V=f.isSubscribe===void 0?!1:f.isSubscribe;var J=f.isPressed===void 0?!1:f.isPressed;var P=f.useButtonSize===void 0?!1:f.useButtonSize;f=CjQ(S);V&&(f.style="mono",f.type="filled");X=!S.icon||!X&&S.text?S.icon?S.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:w?"icon-only":"icon-only-40";X==="icon-only-40"&&(f.type="text");var d;w=Object;V=w.assign;P=pMK(S,P);J=!!S.isSelected||!_.K("web_propagate_is_pressed_killswitch")&&!!J;var Q=S.isSelected!==void 0;F=F===void 0?S.isDisabled:F;var x=S.text?_.sn(S.text):void 0;var E,U,A,t=((E=S.accessibilityData)==null?void 0:(U=E.accessibilityData)==null?void 0:U.label)||((A=S.accessibility)==null?void 0:A.label);E=t?t:_.ac(S.text);B=AUQ(S,B,G,g,b);G=NoT(S);G!=null&&G.length?(G=_.AZ({innertubeCommand:hZW(G),
forceNewState:!0}),G=NB(G)?G:void 0):G=void 0;return V.call(w,{},f,P,{iconPosition:X},z,{focused:!1,toggled:J,toggleable:Q,disabled:F,formattedButtonText:x,accessibilityLabel:E,onTap:B,aTagConfig:G},UhN((d=S.colorData)==null?void 0:d.basicColorPaletteData),{oneOffCustomTextWrap:S.oneOffCustomTextWrap})};
AUQ=function(f,S,B,G,g){return function(b){var z=NoT(f);G(z,b);if(!g){z=_.m(z);for(var X=z.next();!X.done;X=z.next())x8(X.value,{form:{element:S,event:b},commandController:B})}}};
NoT=function(f){var S=[];f.command&&S.push(f.command);f.serviceEndpoint&&S.push(f.serviceEndpoint);f.navigationEndpoint&&S.push(f.navigationEndpoint);return S};
pMK=function(f,S){if(S)switch(f.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(f.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
CjQ=function(f){switch(f.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"}}};
_.Uo=function(f){return _.vW(function(){McT()();return yg(f)},void 0,"Icv7j")};
C9=function(f,S){return _.w9(f.entities,"likeStatusEntity",S)};
Zls=function(f,S){return _.w9(f.entities,"likeCountEntity",S)};
_.tK1=function(f,S){return _.w9(f.entities,"stringEntity",S)};
upQ=function(f,S){if(!f)return!1;var B,G=(B=_.H(f,_.Fh))==null?void 0:B.signal;if(G&&S.signalEndpointMap)return!!S.signalEndpointMap[G];var g;if((B=(g=_.H(f,_.p9))==null?void 0:g.request)&&S.continuationEndpointMap)return!!S.continuationEndpointMap[B];for(var b in f)if(S.commandEndpointMap[b])return!0;return!1};
a_N=function(f,S){if(S.streamingEndpointMap)for(var B in f)if(S.streamingEndpointMap[B]&&(f=S.streamingEndpointMap[B]))return f()};
yUj=function(f,S){var B,G=(B=_.H(f,_.Fh))==null?void 0:B.signal;if(G&&S.signalEndpointMap&&(B=S.signalEndpointMap[G]))return B();var g;if((B=(g=_.H(f,_.p9))==null?void 0:g.request)&&S.continuationEndpointMap&&(g=S.continuationEndpointMap[B]))return g();for(var b in f)if(S.commandEndpointMap[b]&&(f=S.commandEndpointMap[b]))return f()};
WtW=function(f){var S={"Content-Type":"application/json"};_.nL("EOM_VISITOR_DATA")?S["X-Goog-EOM-Visitor-Id"]=_.nL("EOM_VISITOR_DATA"):_.nL("VISITOR_DATA")&&(S["X-Goog-Visitor-Id"]=_.nL("VISITOR_DATA"));S["X-Youtube-Bootstrap-Logged-In"]=_.nL("LOGGED_IN",!1);_.nL("DEBUG_SETTINGS_METADATA")&&(S["X-Debug-Settings-Metadata"]=_.nL("DEBUG_SETTINGS_METADATA"));f!=="cors"&&((f=_.nL("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(S["X-Youtube-Client-Name"]=f),(f=_.nL("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(S["X-Youtube-Client-Version"]=
f),(f=_.nL("CHROME_CONNECTED_HEADER"))&&(S["X-Youtube-Chrome-Connected"]=f),(f=_.nL("DOMAIN_ADMIN_STATE"))&&(S["X-Youtube-Domain-Admin-State"]=f),_.s6("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(f=_.nL("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(S["X-YouTube-Lava-Device-Context"]=f));return S};
cUj=function(f,S){S.watchNextResponse||S.reelItemWatchResponse?S.watchNextResponse?f.content=S.watchNextResponse:f.content=S.reelItemWatchResponse:S.playerResponse?f.player=S.playerResponse:S.reelWatchSequenceResponse&&(f.reelSequence=S.reelWatchSequenceResponse)};
_.A3=function(f){if(!f)return null;for(var S=[],B=0;B<f.textSegments.length;B++){var G=f.textSegments[B];G.text?S.push(G):G.emojiId&&S.push({emoji_id:G.emojiId})}return{text_segments:S}};
B_T=function(f,S,B,G,g,b,z){b=b===void 0?[]:b;var X=new _.N1;X.endpoint=B;if(!B)return _.EU(new _.dO("handle undefined endpoint",S.tagName)),X;var w=Ees(B);w.length&&(_.Xh(f,w,S,G),X.actions=w);B.loggingUrls&&B.loggingUrls.forEach(function(V){V.baseUrl&&Ay(V.baseUrl,V.attributionSrcMode)});
w=!_.K("web_skip_impression_click_killswitch")&&G&&G.impression;if(B.clickTrackingParams&&!l_9(B)&&!f5K(S)&&!w&&(w=_.ik(),!_.M1(w,S))){var F=S.getScreenLayer&&S.getScreenLayer();F?w.clickCommand(B,null,F):w.clickCommand(B,null)}w=!1;for(F=0;F<b.length;F++)if((0,b[F])(S,B,G)){w=!0;break}!w&&oOK(B)&&(X.ajaxPromise=S3N(f,S,B,G,g,z));return X};
f5K=function(f){var S;return(f=(S=f.data)==null?void 0:S.navigationEndpoint)&&!!f.clickTrackingParams};
l_9=function(f){var S=_.H(f,_.Fh);if(S&&(S=S.signal)&&GzG.indexOf(S)>=0)return!0;for(var B in f)if(gOT.indexOf(B)>=0)return!0;return!1};
oOK=function(f){var S;if(((S=_.H(f,_.Fh))==null?void 0:S.signal)==="CLIENT_SIGNAL")return!1;for(var B in f)if(eMW.indexOf(B)>=0)return!1;f=Object.keys(f);return f.length===1&&f[0]==="loggingUrls"?!1:!0};
T_T=function(f,S,B,G,g,b,z){var X=_.Zd.instance;if(X&&_.t3(X,G))var w=_.uF(X,G,g).then(function(V){return(V==null?0:V.data)?V:{data:V}});
else w=f.requestDataForServiceEndpoint(G,g),_.H(G,b0K)||_.H(G,mnG)||_.H(G,_.zMQ)||_.H(G,RMj)||_.Lg(new _.dO("No RequestBuilder for endpoint",G));var F=_.aa();F.promise.thenCatch(function(){var V=_.E6(G,"action")||_.E6(G,"command")||_.E6(G,"endpoint");V&&(V=G[V],V.hasOwnProperty("onFailureAction")?_.Xh(S,[V.onFailureAction],B):V.hasOwnProperty("onFailureCommand")&&_.Xh(S,V.onFailureCommand,B));w.cancel("Resolver promise rejected")});
w.then(function(V){if(V){var J=V.error;if(J){if(b&&b.onServerError)b.onServerError(G,V);F.reject(new _.dO("Response error",G,J))}else if(V=V.data)if(J=V.error){if(b&&b.onServerError)b.onServerError(G,V);F.reject(new _.dO("Returned error",G,J))}else{XNs(S,B,V,G);wNQ(V);if(J=xBG(V))for(var P=_.m(J),d=P.next();!d.done;d=P.next()){d=d.value;var Q=_.oy().resolve(_.fN(hMA))||yj;if(!_.Zd.instance||!Q.some(function(E){return!!_.H(G,E)})||_.K("kevlar_response_processor_allowlist_killswitch")){var x=Q=void 0;
((x=_.H((Q=d)==null?void 0:Q.commandMetadata,_.oD))==null?0:x.sendPost)?_.RD(S,[d]):_.Xh(S,[d],B)}}(P=_.H(V==null?void 0:V.frameworkUpdates,Ww))&&z&&z(P);if(b&&b.onSuccess)b.onSuccess(G,V);F.resolve(new _.cw(V,J))}}else F.reject(new _.dO("Invalid service endpoint provided",G))},function(V){F.reject(V)});
return F.promise};
wNQ=function(f){var S;(f=(S=_.H(f==null?void 0:f.onResponseReceivedCommand,_.FB1))==null?void 0:S.continuationItems)&&(f==null?void 0:f.length)===1&&_.H(f[0],VBN)&&_.kT("so_r",void 0,"search_overview_answer")};
S3N=function(f,S,B,G,g,b){var z;return(z=S.getNetworkManager&&S.getNetworkManager()?S.getNetworkManager():_.oy().resolve(_.fN(_.st)))?T_T(z,f,S,B,G,g,b):_.xe("No network manager.")};
XNs=function(f,S,B,G){if(B=B.trackingParams||B.loggingDirectives&&B.loggingDirectives.trackingParams){var g;(_.H(G,JF9)||_.H(G,PfQ)||_.H(G,vOQ))&&G.clickTrackingParams?g=_.Ye(G.clickTrackingParams):_.K("web_graft_to_parent_command")&&G.clickTrackingParams&&(g=_.Ye(G.clickTrackingParams));var b;G=(b=S.getScreenLayer)==null?void 0:b.call(S);S=_.ik().graftServerVe(B,g,G);_.mU(f,"yt-store-grafted-ve-action",[S])}};
_.KB1=function(f){var S=new Image;return new _.TM(function(B,G){S.addEventListener("load",function(){B()});
S.addEventListener("error",function(){G()});
S.src=f})};
dnx=function(f){return!!f};
i0j=function(f){return!!f};
H0s=function(f,S,B){var G=f.rowIndex;G!==void 0&&_.mU(f.hostElement,"yt-section-reactive-dismissal",[G,S,B])};
_.lF=function(f,S,B){f=_.m(f);for(var G=f.next();!G.done;G=f.next()){G=G.value;if(G===S)break;for(var g=_.m(B),b=g.next();!b.done;b=g.next())if(b=b.value,G.tagName===b||!_.K("web_event_button_role_check_killswitch")&&G.role==="button"&&b==="BUTTON")return!0}return!1};
_.fF=function(f,S,B){f=_.m(f);for(var G=f.next();!G.done;G=f.next()){G=G.value;if(G===S)break;for(var g=_.m(B),b=g.next();!b.done;b=g.next())if(G.id===b.value)return!0}return!1};
q39=function(f){switch(f){case 0:return 16/9;case 1:return 2/3;case 2:return.75;case 3:return 1;case 4:return.5625;default:return 0}};
$nj=function(f,S){if(!f&&!S)return"medium";f=Math.max(f||0,S||0);return f>=256?"large":f>=96?"medium":"small"};
Qx1=function(f){switch(f){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.B8=function(){var f=_.oy().resolve(_.fN(_.o8));return f?(f=f.getCurrentPage())?_.SW(f):null:null};
_.GG=function(){var f=_.B8();if(!f){var S=_.oy().resolve(_.fN(_.o8)),B=S?typeof S:"no page manager";S=S?S.getCurrentPage():null;B=new _.dO("Player is missing when requested.",B,S?S.tagName:"no page");_.xH(B)}return f};
_.SW=function(f){return f&&f.getPlayer?f.getPlayer():null};
Y3T=function(f,S){f={args:{raw_player_response:f}};S&&(f.args=Object.assign({},f.args,S));return f};
rFM=function(f){if(f.args){if(f.args.raw_player_response)return f.args.raw_player_response;if(f.args.player_response)return JSON.parse(f.args.player_response)}};
_.jxx=function(f,S){var B={url:"/watch?v="+f.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};f.playlistId&&(B.url+="&list="+f.playlistId);f.playerParams&&(B.url+="&pp="+f.playerParams);f={watchEndpoint:f,commandMetadata:{webCommandMetadata:B}};S&&(f.clickTrackingParams=S);return f};
xnN=function(){return O0s||!!_.U6("yt.player.Application")};
LB1=function(){return EOG||!!document.querySelector("link#player-css")};
nO1=function(){function f(){O0s=!0;kzs.resolve()}
var S,B;return _.R(function(G){kzs||(kzs=new _.w3,xnN()?f():(S=document.createElement("script"),S.addEventListener("load",f),B=_.YA(_.nL("PLAYER_JS_URL")),_.CC(S,B),document.head.appendChild(S)));return G.return(kzs.promise)})};
Dn1=function(){function f(){EOG=!0;sxW.resolve()}
if(!sxW)if(sxW=new _.w3,LB1())f();else{var S=document.createElement("link");S.id="player-css";S.addEventListener("load",f);var B=_.YA(_.nL("PLAYER_CSS_URL"));_.Nb(S,B,"stylesheet");document.head.appendChild(S)}return sxW.promise};
I5Q=function(){return xnN()&&LB1()?Promise.resolve([]):Promise.all([nO1(),Dn1()])};
UnG=function(f,S,B){var G={args:{}};f&&(G.args.raw_player_response=f);S&&(G.args.raw_watch_next_response=S);B&&(G.args=Object.assign({},G.args,B));return G};
N_G=function(f,S,B){var G=!1;G=G===void 0?!0:G;f=typeof f==="string"?_.gb(document,f):f;var g=CfN+"_"+_.Sm(f),b=pNM[g];if(b&&G)return AF9(S,B)?b.api.loadVideoByPlayerVars(S.args||null):b.loadNewVideoConfig(S),b.api;b=new eW(f,g,S,B,void 0);pNM[g]=b;b.addOnDisposeCallback(function(){delete pNM[b.getId()]});
return b.api};
AF9=function(f,S){return S&&S.serializedExperimentFlags?S.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):f&&f.args&&f.args.fflags?f.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
MBV=function(){var f=new _.w3;f.resolved=!1;var S=f.resolve;f.resolve=function(B){f.resolved=!0;S(B)};
return f};
tBW=function(f){var S={};Z0V().install((S.document_disposed={callback:f},S))};
bx=function(f,S){if(!f&&Math.random()<=_.Gt("kevlar_unified_player_logging_threshold")){f=Error("uh`"+(S?S:"Unspecified error"));if(_.K("kevlar_unified_player_throw_errors"))throw f;_.Lg(f)}};
_.uIG=function(){var f=_.U6("ytDebugData.callbacks");f||(f={},_.WL("ytDebugData.callbacks",f));return f};
yF9=function(f,S){var B=_.uIG();if(_.K("web_dd_iu")||a5W.includes(f))B[f]=S};
WBN=function(){return _.R(function(f){return f.return({isLeader:_.Jv9(_.W2().getState()),c:_.nL("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.nL("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
cF9=function(){var f;_.R(function(S){if(S.nextAddress==1)return yF9("APP_STATE",WBN),_.h(S,_.oy().resolve(_.ms),2);f=S.yieldResult;yF9("PI",function(){return _.R(function(B){return B.return(f.getVideoStats())})});
_.TT(S)})};
l51=function(f){var S=_.yw(_.Ck(_.S1.location.href));f=_.yw(_.Ck(f));return _.K("kevlar_clear_non_displayable_url_params")?S==zG(f):zG(S)==zG(f)};
zG=function(f){var S=_.fnN(f);f=f.slice(0);var B=["frags"];_.K("kevlar_hide_pp_url_param")&&B.push("pp");_.K("kevlar_hide_time_continue_url_param")&&B.push("time_continue");B=_.m(B);for(var G=B.next();!G.done;G=B.next())G=G.value,f=_.cZ(_.yw(f),G);return _.yw(f)+(S?"#"+S:"")};
R8=function(f,S){S=Number(S)*1E3;var B=Math.round((0,_.fO)()),G=B.toString();f={innertubeResponse:f,serverDateTimestampMs:G,lastModifiedTimestampMs:G,expireTimestampMs:(B+S).toString()};if(S=_.nL("INNERTUBE_CONTEXT_CLIENT_NAME"))f.clientName=S;return f};
SpN=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++olV};
_.BwT=function(){var f=_.Of(),S=_.xc();S&&f&&_.tf(S,[f],!0)};
glG=function(f){return f&&G2N.some(function(S){return f.includes(S)})};
Xc1=function(f){var S=_.H(f,_.pg);if(!S)return!1;var B=S.url,G=S.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!B)return _.xH(Error("zh")),!1;if(S.target==="TARGET_NEW_WINDOW"){var g={};_.K("resolve_url_parent_tracking_params")&&(!_.aj(B)||yR(window.location.href,B))&&(g={endpoint:f,itct:f.clickTrackingParams});fV1(g);f=null;try{if(G)return f=_.mrN(B,"_blank",g,void 0,G),emx(_.oy().resolve(br1),f,B),!0}catch(P){_.xH(P)}_.WZ(B,g);S={target:"_blank",noopener:_.K("set_window_noopener_ks")&&
!S.allowOpener};f=window;G=F6(B)?B:_.io(typeof B.href!="undefined"?B.href:String(B));g=self.crossOriginIsolated!==void 0;var b="strict-origin-when-cross-origin";window.Request&&(b=(new Request("/")).referrerPolicy);var z=S.noreferrer;if(g&&z&&b==="unsafe-url")throw Error("qe");b=z&&!g;z=S.target||B.target;var X=[],w=[],F=!1;for(J in S){var V=S[J];switch(J){case "width":case "height":case "top":case "left":X.push(J+"="+V);break;case "target":break;case "noopener":case "noreferrer":V?w.push(J):(F=!0,
w.push(J+"=false"));break;case "attributionsrc":X.push(J+(V?"="+V:""));break;default:X.push(J+"="+(V?1:0))}}var J=z!==void 0&&!["_blank","_self","_top","_parent",""].includes(z);J=YQ()&&J;mWN&&g&&X.length===0&&w.length>0&&!J&&!F?(w.length===2&&(w=["noreferrer"]),_.LC(f,G,z,w[0]),f=zmW()):(J=X.join(","),_.kQ()&&f.navigator&&f.navigator.standalone&&z&&z!="_self"?(J=_.Ja("A"),Y6(J,G),J.target=z,b&&(J.rel="noreferrer"),((S=S.attributionsrc)||S==="")&&J.setAttribute("attributionsrc",S),S=document.createEvent("MouseEvent"),
S.initMouseEvent("click",!0,!0,f,1),J.dispatchEvent(S),f=zmW()):b?(f=_.LC(f,"",z,J),S=_.Ve(G),f&&(f.opener=null,S===""&&(S="javascript:''"),S='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+X$(S)+'">',S=jZ(S),(G=f.document)&&G.write&&(G.write(OQ(S)),G.close()))):((f=_.LC(f,G,z,J))&&S.noopener&&(f.opener=null),f&&S.noreferrer&&(f.opener=null)));emx(_.oy().resolve(br1),f,B);return!0}S=_.Xl(B);S=glG(S)||B==="https://studio.youtube.com/";G=!(!_.aj(B)||yR(window.location.href,
B));J=B.indexOf("disable_polymer=1")>=0;if(G||J||S)ZU(B),xT(),_.tK(B,void 0,void 0,window.top,RmN);else return _.Lg(new _.dO("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",f)),!1;return!0};
_.TwA=function(f,S){S=S===void 0?0:S;if(!(_.H(f,wcT)||_.H(f,hmx)||_.H(f,_.pg)&&_.H(f,_.pg).url))return!1;var B,G=(B=_.H(f,_.pg))==null?void 0:B.url;B=G?{externalLinkData:{url:G}}:null;return _.ik().clickCommand(f,B,S)};
FL1=function(f,S){return _.w9(f.entities,"subscriptionStateEntity",S)};
VSG=function(f,S){return _.w9(f.entities,"subscriptionNotificationStateEntity",S)};
JuK=function(f,S){return _.w9(f.entities,"upcomingEventReminderStateEntity",S)};
PSQ=function(f,S){return _.w9(f.entities,"engagementToolbarSurfaceEntityPayload",S)};
vlW=function(f,S){return _.w9(f.entities,"triStateButtonStateEntityPayload",S)};
KL9=function(f,S){return _.w9(f.entities,"commerceCartCheckoutButtonEntity",S)};
_.dW1=function(f,S){return _.w9(f.entities,"playlistLoopStateEntity",S)};
ir1=function(f,S){return _.w9(f.entities,"commandEntity",S)};
qpT=function(f,S,B,G,g){g=g===void 0?{}:g;return function(b){var z,X;var w=((z=f.loggingDirectives)==null?0:(X=z.clientVeSpec)==null?0:X.uiType)?_.Eo(f.loggingDirectives.clientVeSpec.uiType):void 0;g.clickedVisualElement||(g.clickedVisualElement=w);w=HrN(f,S);B(w,b);w=_.m(w);for(z=w.next();!z.done;z=w.next()){z=z.value;X=G;var F=b,V=g;V.form?V.form.event=F:V.form={element:X,event:F};x8(z,V)}}};
HrN=function(f,S){var B=[];S?(f.toggledCommand&&B.push(f.toggledCommand),f.toggledServiceEndpoint&&B.push(f.toggledServiceEndpoint)):(f.defaultCommand&&B.push(f.defaultCommand),f.defaultServiceEndpoint&&B.push(f.defaultServiceEndpoint),f.defaultNavigationEndpoint&&B.push(f.defaultNavigationEndpoint));return B};
$WN=function(f,S){var B=f.toggledStyle||f.style,G;switch((G=S?B:f.style)==null?void 0:G.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"}}};
_.wb=function(){return _.R(function(f){return f.nextAddress==1?_.h(f,_.oy().resolve(_.ms),2):f.return(_.oy().resolve(QwA)())})};
_.hD=function(){return _.oy().resolve(QwA)()};
_.TG=function(){return O6(function(){return{lottieEl:void 0}})};
YpV=function(f,S){return f.startsWith(S.uniqueId)};
ruA=function(f){var S,B;_.R(function(G){if(G.nextAddress==1)return _.h(G,_.wb(),2);S=G.yieldResult;if((B=S)==null||!B.addEventListener)return F$(),G.return();S.addEventListener("onCueRangeEnter",f);_.TT(G)})};
jwN=function(f){var S,B;_.R(function(G){if(G.nextAddress==1)return _.h(G,_.wb(),2);S=G.yieldResult;if((B=S)==null||!B.removeEventListener)return F$(),G.return();S.removeEventListener("onCueRangeEnter",f);_.TT(G)})};
OrK=function(f){var S,B,G,g,b;_.R(function(z){if(z.nextAddress==1)return _.h(z,_.wb(),2);S=z.yieldResult;if((B=S)==null||!B.addCueRange)return F$(),z.return();G=_.m(f.timings);for(g=G.next();!g.done;g=G.next())b=g.value,S.addCueRange(f.uniqueId+"-"+b,b/1E3,(b+100)/1E3);_.TT(z)})};
xWA=function(f){var S,B,G,g,b;_.R(function(z){if(z.nextAddress==1)return _.h(z,_.wb(),2);S=z.yieldResult;if((B=S)==null||!B.removeCueRange)return F$(),z.return();G=_.m(f.timings);for(g=G.next();!g.done;g=G.next())b=g.value,S.removeCueRange(f.uniqueId+"-"+b);_.TT(z)})};
Els=function(){var f,S,B;return _.R(function(G){if(G.nextAddress==1)return _.h(G,_.wb(),2);f=G.yieldResult;if((S=f)==null||!S.getPlayerState)return F$(),G.return();B=f.getPlayerState();return G.return(B===2)})};
F$=function(){_.Lg(new _.dO("Smartimation player does not exist or is corrupted"))};
LLQ=function(){try{var f;return(f=window.CSS)!=null&&f.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(S){return _.Lg(new _.dO("Smartimation CSS.supports threw an error")),!1}};
CSN=function(f,S,B,G,g){var b=f.playlistId?k2V:nlN;S=S();B=B();g=!!f.videoId&&g()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.d9(S))return swA({data:f,actionType:b,disabled:g},B);if(f.videoId&&G())return DWj({data:f,actionType:b,disabled:g});switch(S){case "TRANSFER_STATE_UNKNOWN":return DWj({data:f,actionType:b,disabled:g});case "TRANSFER_STATE_FAILED":return f.videoId?InT({data:f,actionType:b,disabled:g}):UWG({data:f,actionType:b,disabled:g});case "TRANSFER_STATE_COMPLETE":return UWG({data:f,
actionType:b,disabled:g});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return swA({data:f,actionType:b,disabled:g},B);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return f.videoId?InT({data:f,actionType:b,disabled:g}):DWj({data:f,actionType:b,disabled:g});default:return DWj({data:f,actionType:b,disabled:g})}};
pcW=function(f,S){var B=f.onTapCommand,G=_.CH(B);if(f.videoId&&_.H(G,_.V5))return _.H(G,_.V5).action=S,B;f.playlistId&&_.H(G,_.JD)&&(_.H(G,_.JD).action=S);return B};
DWj=function(f){var S=f.data;var B=f.actionType;f=f.disabled;return{text:Aux,iconType:"OFFLINE_DOWNLOAD",onTap:pcW(S,B.ACTION_ADD),disabled:f}};
swA=function(f,S){var B=f.data;var G=f.actionType;f=f.disabled;var g="OFFLINE_DOWNLOAD";S>=0&&S<=.1?g="OFFLINE_DOWNLOADING_ZERO":S>.1&&S<=.3?g="OFFLINE_DOWNLOADING_TWENTY":S>.3&&S<=.5?g="OFFLINE_DOWNLOADING_FORTY":S>.5&&S<=.7?g="OFFLINE_DOWNLOADING_SIXTY":S>.7&&S<1?g="OFFLINE_DOWNLOADING_EIGHTY":S===1&&(g="OFFLINE_PIN");return{text:NwN,iconType:g,onTap:pcW(B,G.ACTION_REMOVE_WITH_PROMPT),disabled:f}};
UWG=function(f){var S=f.data;var B=f.actionType;f=f.disabled;return{text:MS1,iconType:"OFFLINE_PIN",onTap:pcW(S,B.ACTION_REMOVE_WITH_PROMPT),disabled:f}};
InT=function(f){var S=f.data;var B=f.actionType;f=f.disabled;return{text:Zrx,iconType:"OFFLINE_DOWNLOAD",onTap:pcW(S,B.ACTION_RETRY),disabled:f}};
yus=function(f){var S=tSQ;uRW.push(f);anA||(S(function(){for(var B=_.m(uRW),G=B.next();!G.done;G=B.next())G=G.value,G();uRW.length=0;anA=!1}),anA=!0)};
tSQ=function(f){Promise.resolve().then(f)};
P8=function(f){f=_.m(BmN(f));var S=f.next().value,B=f.next().value,G=!1;_.j9(function(){return function(){G=!0}});
return[S,function(g){yus(function(){G&&!_.K("cow_prevent_state_setter_after_cleanup_killswitch")||B(g)})}]};
WLW=function(){var f=_.m(P8(!1)),S=f.next().value,B=f.next().value;return function(){B(!S)}};
cuK=function(f){return O6(function(){return{value:f}})};
lnM=function(f,S){var B=cuK(f),G=cuK(S);rg(function(){B.value=f},[f]);
rg(function(){G.value=S},S&&S.length>=1?S:[void 0]);
var g=O6(function(){return{value:void 0}});
if(f!==B.value||G.value!==S||g.value===void 0)g.value=yg(f,S);var b=WLW();_.j9(function(){function z(){var w=yg(B.value,S);w!==g.value&&(g.value=w,b())}
var X=_.al().subscribe(z);z();return X});
return g.value};
_.v8=function(f,S){var B=McT();return _.vW(function(){B();return yg(f,[_.Ev(S)||""])},void 0,"HaeHEc")};
fB1=function(f){var S=_.v8(_.sA,function(){return f().videoId}),B=_.v8(_.DK,function(){return f().playlistId});
return function(){return f().videoId?S:f().playlistId?B:_.m(_.hj("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
o3j=function(f){var S=_.v8(Ic,function(){return f().videoId}),B=_.v8(_.VRN,function(){return f().playlistId});
return function(){return f().videoId?S:f().playlistId?B:_.m(_.hj(0,void 0,"K4tgOc")).next().value}};
Sh1=function(f){var S=_.v8(_.q2T,function(){return f().videoId});
return function(){return f().videoId?S:_.m(_.hj(!1,void 0,"Oaxwcf")).next().value}};
B6G=function(f){var S=_.v8(vfM,function(){return f().videoId});
return function(){return f().videoId?S:_.m(_.hj("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
Gpj=function(){return{}};
g31=function(){var f,S;return(S=(f=_.oy().resolve(_.fN(_.yU)))==null?void 0:f())!=null?S:!1};
bmG=function(f,S){f=f===void 0?egN:f;switch(S.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},f,{isOpen:S.payload});default:return f}};
zgQ=function(f,S){f=f===void 0?m8M:f;switch(S.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},f,{isAllowed:S.payload});default:return f}};
XgG=function(f,S){f=f===void 0?Rg1:f;switch(S.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},f,{errorMessage:S.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},f,{title:S.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},f,{privacy:S.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},f,{isDisabled:S.payload});default:return f}};
hgx=function(f,S){f=f===void 0?wg1:f;switch(S.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},f,{isOpen:S.payload});default:return f}};
FfT=function(f,S){f=f===void 0?T6N:f;switch(S.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},f,{isFullscreen:S.payload});case "SET_NAVIGATION_BUTTON":var B=S.payload.targetId,G=Object.assign({},f.navigationButtons);G[B]=S.payload.button;return Object.assign({},f,{navigationButtons:G});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},f,{topPanelId:S.payload});case "SET_SECONDARY_HEADER":return B=S.payload.panelId,G=Object.assign({},f.secondaryHeader),G[B]=S.payload.secondaryHeader,
Object.assign({},f,{secondaryHeader:G});default:return f}};
v3s=function(){return h2(Object.assign({},{entities:l7W,voiceSearch:RfT,engagementPanel:FfT,bottomSheet:bmG,cinematicSetting:zgQ,shorts:POM,drawerLayout:hgx,createPlaylist:XgG,locationCollection:Vl1,reportChannel:JMQ,reportForm:PVV},vZ1))};
Kf1=function(f,S){_.xJ.addLowPriorityJob(function(){var B,G,g;return _.R(function(b){switch(b.nextAddress){case 1:return _.zT(b,2),_.h(b,dtN(),4);case 4:return _.h(b,fetch(f),5);case 5:return B=b.yieldResult,_.h(b,B.json(),6);case 6:G=b.yieldResult;J3.set(f,G);requestAnimationFrame(function(){S(G)});
_.CN(b,0);break;case 2:g=_.hm(b),_.Lg(g),_.TT(b)}})})};
d8s=function(f){var S={animationConfig:{},listeners:{}},B=function(){f(!0)};
S.listeners.data_failed=B;S.listeners.error=B;S.listeners.data_ready=function(){f(!1)};
return S};
qhx=function(f){var S=f.model;var B=f.subscribed;var G=f.isOverlay;var g=f.element;var b=f.commandController;var z=f.notificationState;if(B){var X,w;var F=(S==null?void 0:(X=S.buttonStyle)==null?void 0:X.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:S==null?void 0:(w=S.unsubscribeButtonContent)==null?void 0:w.buttonText}else{var V;F=S==null?void 0:(V=S.subscribeButtonContent)==null?void 0:V.buttonText}a:{var J;switch(S==null?void 0:(J=S.buttonStyle)==
null?void 0:J.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":X="S";break a;default:X="M"}}a:if(G)G="overlay";else switch(S.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":G="overlay";break a;default:G="mono"}a:if(B)var P="tonal";else switch((P=S.buttonStyle)==
null?void 0:P.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":P="tonal";break a;default:P="filled"}return{style:G,type:P,state:S.disableSubscribeButton?"disabled":"active",size:X,focused:f.focused,toggled:B,accessibilityLabel:imW(S,B,z),buttonText:F,iconPosition:S.disableNotificationBell?"none":"leading-trailing",onTap:Hmx(S,B,g,b),disableTextEllipsis:!!f.disableTextEllipsis}};
Hmx=function(f,S,B,G){return function(g){if(S){var b;var z=f.disableNotificationBell?_.CH(f==null?void 0:(b=f.unsubscribeButtonContent)==null?void 0:b.onTapCommand):_.CH(f==null?void 0:f.onShowSubscriptionOptions)}else{var X;z=_.CH(f==null?void 0:(X=f.subscribeButtonContent)==null?void 0:X.onTapCommand)}z&&x8(z,{form:{element:B==null?void 0:B.value},commandController:G});g.stopPropagation()}};
imW=function(f,S,B){if(S){if(f==null?0:f.disableNotificationBell){var G;return f==null?void 0:(G=f.unsubscribeButtonContent)==null?void 0:G.accessibilityText}switch(B){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var g;return f==null?void 0:(g=f.bellAccessibilityData)==null?void 0:g.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var b;return f==null?void 0:(b=f.bellAccessibilityData)==null?void 0:b.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var z;return f==null?void 0:(z=
f.bellAccessibilityData)==null?void 0:z.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var X;return f==null?void 0:(X=f.bellAccessibilityData)==null?void 0:X.disabledLabel;default:var w;return f==null?void 0:(w=f.unsubscribeButtonContent)==null?void 0:w.accessibilityText}}else{var F;return f==null?void 0:(F=f.subscribeButtonContent)==null?void 0:F.accessibilityText}};
$8K=function(f){if(f){switch(f){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":f="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":f="NOTIFICATIONS_OFF";break;default:f="NOTIFICATIONS_NONE"}return f}};
QU9=function(f,S,B){B.subscribed!==S&&((B=B.key)&&_.WF(_.KF("subscriptionStateEntity",B,{key:B,subscribed:S})),f.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:S})),S||_.bW(f,"yt-unsubscribe-action"))};
rMN=function(f){f=_.H(_.CH(f),_.db);var S,B,G,g;return(g=_.H(f==null?void 0:(S=f.panelLoadingStrategy)==null?void 0:(B=S.inlineContent)==null?void 0:(G=B.sheetViewModel)==null?void 0:G.content,YhA))==null?void 0:g.listItems};
jU1=function(f,S){if(f.onShowSubscriptionOptions&&S&&(f=rMN(f.onShowSubscriptionOptions),f!=null&&f.length)){var B=$8K(S);f.forEach(function(G){G=_.H(G,_.ix);var g,b,z,X,w=G==null?void 0:(g=G.leadingImage)==null?void 0:(b=g.sources)==null?void 0:(z=b[0])==null?void 0:(X=z.clientResource)==null?void 0:X.imageName;G&&w&&(G.isSelected=w===B)})}};
OmQ=function(f,S,B,G){S&&B?f.style.width=B+"px":!S&&G&&(f.style.width=G+"px")};
x8N=function(f,S,B){var G;(G=f.lottieEl)==null||G.goToAndPlay(0);var g;(g=S.lottieEl)==null||g.goToAndPlay(0);_.H8(_.xJ,function(){var b;(b=B.lottieEl)==null||b.goToAndPlay(0)},300)};
ql=function(){return _.oy().resolve(_.fN(E3M))||{}};
LfK=function(f){return typeof f==="function"};
_.$K=function(f){Object.keys(f);var S=function(B,G){var g=S.mapping||f;if(!B)return _.T(_.gg,null);if(Array.isArray(B)&&(B=kpA(g,S,B),Array.isArray(B))){if(!B.length)return _.T(_.gg,null);if(B.length>1){for(var b=!1,z=!1,X=[],w={},F=0;F<B.length;w={data$jscomp$1857:void 0},F++)if(w.data$jscomp$1857=B[F],w.data$jscomp$1857){var V=n3Q(w.data$jscomp$1857,g),J=V.mappingEntry;V=V.rendererName;J&&V&&(J&&(!LfK(J)&&sUx(J)&&(z=!0),!LfK(J)&&J.asyncId||(b=!0)),X.push(D8Q(w.data$jscomp$1857,J,V,S,G)))}return z&&
!b?_.T(_.gg,null,IBA()):_.T(_.gg,null,X)}B=B[0]}if(!B)return _.T(_.gg,null);B=kpA(g,S,[B])[0];if(!B)return _.T(_.gg,null);b=n3Q(B,g);g=b.mappingEntry;b=b.rendererName;return g&&b?_.T(_.gg,null,D8Q(B,g,b,S,G)):_.T(_.gg,null)};
S.mapping=f;return S};
_.U89=function(f){var S=void 0,B;for(B in f)if(f.hasOwnProperty(B)){S=B;break}return S};
kpA=function(f,S,B){var G,g=(G=ql().preProcessOptions)==null?void 0:G.idomOptions;if(!g)return B;ql();return g.preProcessPropsIdom(f,B,S.triggerRerender)};
n3Q=function(f,S){return(f=_.U89(f))?{mappingEntry:S[f],rendererName:f}:{mappingEntry:void 0,rendererName:void 0}};
D8Q=function(f,S,B,G,g){if(!S)return _.T(_.gg,null);var b={};g&&g[B]&&(b=Object.assign({},g[B]));f[B]!==void 0&&(b.data=f[B]);if(LfK(S))return S.debugName||(S.debugName=B),_.T(S,b);S.asyncId&&(G.pendingIdsMap=G.pendingIdsMap||{},G.pendingIdsMap[B]=S.asyncId);return S.templateFn?S.templateFn(b):sUx(S)?IBA():_.T(_.gg,null)};
sUx=function(f){var S;return(S=f.showPlaceholder)!=null?S:ql().defaultShowPlaceholder};
IBA=function(){var f=ql().placeholder;return f()};
CV9=function(f){f=_.H(f,_.Q5);return(f==null?void 0:f.iconName)&&!(f==null?0:f.title)};
N6V=function(f,S,B){var G;return _.T(_.gg,null,f==null?void 0:(G=f.actions)==null?void 0:G.map(function(g){return _.T("div",{class:function(){var b={"yt-flexible-actions-view-model-wiz__action":!0};b["yt-flexible-actions-view-model-wiz__action--row-action"]=S;b["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(CV9(g))var z=!0;else if(z=_.H(g,_.YK),(z==null?0:z.isToggled)&&CV9(z==null?void 0:z.toggledButtonViewModel)||(z==null||!z.isToggled)&&CV9(z==null?void 0:z.defaultButtonViewModel))z=
!0;else{var X;z=((X=_.H(g,pgT))==null?0:X.playlistId)?!0:!1}b=(b["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=z,b["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=B,b);return _.K9(b)}},AMK([g],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!S}}))}))};
MlG=function(f){var S=f.layout===1,B,G=((B=f.data)==null?void 0:B.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";B={};G=(B["yt-flexible-actions-view-model-wiz"]=!0,B["yt-flexible-actions-view-model-wiz--inline"]=!S,B["yt-flexible-actions-view-model-wiz--scrollable"]=G,B);var g,b;return _.T("yt-flexible-actions-view-model",{class:_.K9(f.className,G)},(g=f.data)==null?void 0:(b=g.actionsRows)==null?void 0:b.map(function(z){if(S){var X;return _.T("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
N6V(z,S,!((X=f.data)==null||!X.respectActionIntrinsicWidth)))}return N6V(z,S,!1)}))};
ZmG=function(f,S){S=S===void 0?{shouldPersist:!0}:S;return{useUpdatableData:function(B,G){var g=[],b=_.m(_.$8(function(){var F=B();if(G!=null&&G.length&&g){var V=g.length>0;for(var J=!1,P=0;P<G.length;P++){var d=G[P]();V&&d!==g[P]&&(J=!0);g[P]=d}V=J}else V=!1;if(V)_.rb.remove(w());else if(V=_.rb.get(w()))return V;return F})),z=b.next().value,X=b.next().value,w=_.vW(function(){return f(B())},void 0,"VFraLb");
_.jp(function(){if(w()!=null){jW.set(w(),[z,X,!1]);var F=w();_.Ov(function(){jW.delete(F)})}},"Fdafud");
return[z,function(F){X(F);S.shouldPersist&&_.rb.set(w(),F)}]},
getData:function(B){var G;return(G=jW.get(f(B)))==null?void 0:G[0]()},
updateData:function(B,G){B=f(B);var g=jW.get(B);if(!g)return!1;var b=_.m(g);g=b.next().value;b=b.next().value;G=G(g());b(G);S.shouldPersist&&_.rb.set(B,G);return!0},
useUpdatableDataIdom:function(B,G){var g=f(B),b=_.rb.get(g),z=_.m(P8(b!=null?b:B)),X=z.next().value,w=z.next().value,F=x5(b!=null?b:B);rg(function(){if(g!=null)return jW.set(g,[function(){return F.value},
function(V){w(V);F.value=V},
jW.has(g)]),_.xJ.addJob(function(){_.OR(_.xJ,function(){var V=jW.get(g);V&&(V[2]=!1)},0)},8),function(){var V;
((V=jW.get(g))==null?0:V[2])||jW.delete(g)}},[g]);
rg(function(){X!==B&&(w(B),F.value=B)},G?[].concat(_.$d(G),[g]):[g]);
return[X,w]}}};
tlN=function(f){var S=_.m(_.hj(!0,void 0,"bKtO6d")),B=S.next().value;S.next();return function(){var G=Fq(f.children());return _.T(_.v,{cond:B,then:function(){return G},
else:f.fallback})}()};
_.xK=function(f){var S=uiN(f),B=S.data,G=S.mapping,g=S.wrapper;S=S.pendingFallback;var b=function(){return aBx(_.Ev(B))},z=function(){var X=b(),w=[];
X=_.m(X);for(var F=X.next();!F.done;F=X.next()){var V=void 0;F=F.value;var J=void 0;for(V in F)if(!(!F).hasOwnProperty(V)){J=V;break}(V=J)&&w.push(V)}return w};
return f.data?_.T(tlN,{fallback:S},function(){return _.T(_.dg,{each:z},function(X,w){var F=g?function(J){return g(function(){return G[X](J,w)},V,w)}:function(J){return G[X](J,w)};
F.debugName||(F.debugName=String(X));if(!G[String(X)])return document.createComment("");F.componentType!==$p&&yMx(String(X));var V=Wfx(b,X,w);return _.T(F,{data:V})})}):_.T(_.gg,null)};
uiN=function(f){var S=f.targetId||cMN(f.children);if(!f.data||!S||_.K("mweb_new_replaceables_killswitch"))return Object.assign({},f,{mapping:f.children,wrapper:void 0});var B="stamper-"+lBW++,G=function(){var X;return(X=typeof f.targetId==="function"?f.targetId(B):f.targetId)!=null?X:B};
S=_.m(fQG(function(){var X=aBx(f.data());X.targetId=G;return X})).next().value;
var g=Object.assign({},ql().replaceableMapping,f.children);if(f.replacementWrapper){var b=g.notificationTextRenderer,z=g.notificationMultiActionRenderer;b&&(g.notificationTextRenderer=function(X,w){return f.replacementWrapper(b({data:X.data},w))});
z&&(g.notificationMultiActionRenderer=function(X,w){return f.replacementWrapper(z({data:X.data},w))})}return Object.assign({},f,{data:S,
mapping:g,wrapper:function(X,w,F){return Tos({targetId:G,stamperIndex:F},X)}})};
Wfx=function(f,S,B){var G;return _.vW(function(){var g=f()[B()];if(g)G=g[S];else return _.Lg(new _.dO("Stamper failed to find "+String(S)+" at index "+B()+" of data array of length "+(f().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),G;return g[S]},void 0,"wgRPHd")};
cMN=function(f){f=_.m(Object.keys(f));for(var S=f.next();!S.done;S=f.next())if(S=S.value,oyG.includes(S)||S11.includes(S)||BV1.includes(S))return!0;return!1};
aBx=function(f){return f?Array.isArray(f)?f:[f]:[]};
yMx=function(f){if(_.K("web_enable_renderer_logger")){var S;(S=_.oy().resolve(_.fN(GIT)))!=null&&S.loggingEnabled&&!S.ids.has(f)&&S.ids.add(f)}};
gyN=function(f){return!(f==null||!f.iconName||(f==null?0:f.title))};
eA9=function(f){var S=_.H(f.data.toggleButtonViewModel,_.YK),B,G=(B=f.data.dislikeEntityKey)!=null?B:"",g=lnM(C9,[G]);S=Object.assign({},S,{isToggled:g?g.likeStatus==="DISLIKE":S.isToggled});return _.T("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.T(_.ER,{data:S,buttonShapeOverrides:f.buttonShapeOverrideables,onToggle:function(b){g&&b!==(g.likeStatus==="DISLIKE")&&g.key&&_.WF(_.LF("likeStatusEntity",g.key,{likeStatus:b?"DISLIKE":"INDIFFERENT",hadUserInteraction:b}))}}))};
m49=function(f){var S=_.K("web_supports_animations_api"),B=_.H(f.data.toggleButtonViewModel,_.YK),G,g,b,z,X=_.m(P8({numberText:(z=(G=f.likeCountEntity)==null?void 0:(g=G.likeCountIfIndifferent)==null?void 0:g.content)!=null?z:"",numberValue:Number((b=f.likeCountEntity)==null?void 0:b.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1})),w=X.next().value,F=X.next().value,V,J,P,d;G=_.m(P8({numberText:(d=(V=f.likeCountEntity)==null?void 0:(J=V.likeCountIfLiked)==null?void 0:J.content)!=null?
d:"",numberValue:Number((P=f.likeCountEntity)==null?void 0:P.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}));V=G.next().value;var Q=G.next().value;J=_.m(P8());var x=J.next().value,E=J.next().value,U;J=(U=f.data.likeStatusEntityKey)!=null?U:"";var A,t;U=(t=(A=f.likeCountEntity)==null?void 0:A.key)!=null?t:"";var M=lnM(C9,[J]),a=lnM(Zls,[U]);A=B0N(function(){return(M==null?void 0:M.likeStatus)==="LIKE"},[M]);
rg(function(){var l,mx=a&&((l=a.likeCountIfIndifferent)==null?void 0:l.content)!==w.numberText;if(!x&&mx){var zj,VN;F({numberText:(VN=a==null?void 0:(zj=a.likeCountIfIndifferent)==null?void 0:zj.content)!=null?VN:"",numberValue:Number(a==null?void 0:a.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!0});var $Q,OV;Q({numberText:(OV=a==null?void 0:($Q=a.likeCountIfLiked)==null?void 0:$Q.content)!=null?OV:"",numberValue:Number(a==null?void 0:a.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!0})}},
[a]);
B=Object.assign({},B,{isToggled:A});S=S&&f.likeCountEntity;return _.T("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.T(_.ER,{data:B,buttonShapeOverrides:f.buttonShapeOverrideables,animatedTextPropsDefault:S?w:void 0,animatedTextPropsToggled:S?V:void 0,onToggle:function(l){bGT(l,M,x,E)},
style:function(){return f.disableIconAnimation?void 0:{animateIcon:"true"}}}))};
bGT=function(f,S,B,G){B&&_.xJ.cancelJob(B);B=_.xJ.addLowPriorityJob(function(){G(void 0)},5E3);
G(B);S&&f!==(S.likeStatus==="LIKE")&&S.key&&_.WF(_.KF("likeStatusEntity",S.key,{key:S.key,likeStatus:f?"LIKE":"INDIFFERENT",hadUserInteraction:f}))};
zAQ=function(f,S,B,G){B&&_.xJ.cancelJob(B);B=_.xJ.addLowPriorityJob(function(){G(void 0)},5E3);
G(B);S&&f!==(S.likeStatus==="LIKE")&&S.key&&_.WF(_.KF("likeStatusEntity",S.key,{key:S.key,likeStatus:f?"LIKE":"INDIFFERENT",hadUserInteraction:f}))};
wpN=function(f){var S,B=_.H((S=f.data)==null?void 0:S.likeButtonViewModel,_.kK),G;S=_.H((G=f.data)==null?void 0:G.dislikeButtonViewModel,_.nF);var g,b=(g=lnM(C9,[(B==null?void 0:B.likeStatusEntityKey)||""]))!=null?g:B==null?void 0:B.likeStatusEntity;G=B0N(function(){var z=f.data,X;z=(z==null?void 0:(X=z.timedAnimationData)==null?void 0:X.animationTiming)||[];return{uniqueId:"like-dislike",timings:z,enabled:(b==null?void 0:b.likeStatus)==="INDIFFERENT"&&z.length>0,experimentEnabled:z.length>0}},[f.data,
b]);return _.T("segmented-like-dislike-button-view-model",{class:_.K9(f.className,"ytSegmentedLikeDislikeButtonViewModelHost"),"button-renderer":!0},_.T(sR,{settings:G},_.T("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},B?_.T(RAx,{data:B,likeCountEntity:f.data.likeCountEntity,buttonShapeOverrideables:{segmentedPosition:"start"}}):null,S?_.T(XpG,{data:S,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}}):null)))};
hAA=function(f,S){var B=WK.get(f)||{layerNode:S};B.layerNode=S;qc1(f,B);f.getScreenLayer=function(){return DP(B.layerNode)}};
TVG=function(f){var S;f=f.parentNode;for(var B;f&&((S=WK.get(f))==null||!S.isRenderer)&&!((B=f.polymerController)!=null?B:f).isRenderer_;)f=f.parentNode||f.host;if(S=f)return WK.get(S)};
F29=function(f){if(f){WK.delete(f);var S=_.oy().resolve(f_);ixW(f,S)}};
JGK=function(f,S,B){if(B===void 0?0:B){if(B=f.getAttribute("client-ve-type"),S.data&&!S.disableReactiveLogging||B)_.Lj(function(){V8x(f,_.Ev(S.data))}),_.Ov(function(){return void F29(f)})}else typeof S.data!=="function"&&V8x(f,S.data)};
V8x=function(f,S){P$T++;vy1(f,S)&&_.xJ.addJob(function(){_.OR(_.xJ,function(){if(vy1(f,S)&&f.ownerDocument.documentElement===document.documentElement&&f){var B;if(f.getAttribute("layer")){var G=B=Number(f.getAttribute("layer")),g=WK.get(f);g?g.layerNode.layer=G:hAA(f,new K21(G));(G=TVG(f))&&(g=WK.get(f))!=null&&(g.layerNode.parent=G.layerNode)}else if(B=WK.get(f))B=DP(B.layerNode);else{B=DP;G=new K21;if(g=TVG(f))G.parent=g.layerNode;hAA(f,G);B=B(G)}B!=null||(B=0);G=f.getAttribute("client-ve-type");
g=Number(G);var b=!1;G=!1;var z=WK.get(f),X;if((X=z)&&!(X=z[d4G]!==S)&&(X=g)){var w;X=((w=WK.get(f))==null?void 0:w.clientVeType)===void 0}X&&(z[d4G]=S,b=G=z.isRenderer=!0);WK.has(f)&&(WK.get(f).clientVeType=g);f.visualElement&&(G=!0);if(_.K("wiz_next_ld_fix_client_ve_spec")){var F;w=((F=_.H(S==null?void 0:S.rendererContext,_.Hs))==null?void 0:F.loggingDirectives)||(S==null?void 0:S.loggingDirectives)}else w=S==null?void 0:S.loggingDirectives;w&&w.clientVeSpec&&(F=iGN(_.KH(),f),F=_.HGM(_.ik(),w,F||
void 0,B))&&(f.visualElement=F);!f.visualElement&&g&&b&&(f.veType=g,F=void 0,_.K("wiz_next_client_ve_parent_fix")&&(F=iGN(_.KH(),f)),F=_.dR(_.ik(),f,F,B),f.visualElement=F);G&&(F=_.oy().resolve(f_),QzN(f,{data:S,observer:F,layer:B,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
vy1=function(f,S){return(S==null?0:S.trackingParams)||(S==null?0:S.loggingDirectives)||_.H(S==null?void 0:S.rendererContext,_.Hs)||f.getAttribute("client-ve-type")?!0:!1};
$4A=function(f){return _.K("cow_logging_in_component_wrapper")?function(S){JGK(S,f,!0)}:q11};
q11=function(){};
_.Qdx=function(f,S){return _.w9(f.entities,"accountLinkStatusEntity",S)};
Y11=function(f,S){return _.w9(f.entities,"hatsSurveyEntity",S)};
rGQ=function(f,S){return _.w9(f.entities,"hatsSurveyStateEntity",S)};
jdK=function(f,S){return _.w9(f.entities,"quantityIncrementerEntity",S)};
kIM=function(f){var S=f.data;var B=f.className===void 0?"":f.className;var G=f.setMinWidth;f=f.forceIconOnly;var g=_.tE("account-link-button-view-model",$4A({data:S}));G=G?"ytwAccountLinkButtonViewModelHostMinWidth":"";var b=_.v8(_.Qdx,function(){var J;return(J=_.Ev(S).accountLinkStatusEntityKey)!=null?J:""}),z=_.v8(_.Qdx,function(){var J;
return(J=_.Ev(S).accountLinkStatusSecondaryEntityKey)!=null?J:""}),X=function(){if(!_.K("web_account_link_secondary_killswitch")){var J,P;
return((J=b())==null?void 0:J.linked)||((P=z())==null?void 0:P.linked)}var d;return(d=b())==null?void 0:d.linked};
_.jp(function(){var J=b();if(J){var P=OGK(new x4N,EyQ(new L21,!!J.linked));_.wb().then(function(d){d&&(d.setAccountLinkState(_.oO(P.JSC$10127_serializeBinary(),4)),d.updateAccountLinkingConfig(!!J.linked))})}},"lLLHt");
var w=function(){return _.H(_.Ev(S).toggleButtonViewModel,_.YK)};
_.Z0("yt-signal-action-show-account-link-dialog",function(){if(w()){var J=X()?w().toggledButtonViewModel:w().defaultButtonViewModel;J=_.H(J,_.Q5);var P;if((P=b())==null?0:P.isWarning){P=_.H(_.Ev(S).warningButtonViewModel,_.Q5);if(!P){_.CL(Error("Ah"));return}J=P}var d;(P=_.CH((d=J)==null?void 0:d.onTap))&&_.TZ([P],g.value)}else _.CL(Error("Bh"))});
var F=function(){var J=w();return Object.assign({},J,{isToggled:X()})},V=f?{iconPosition:"icon-only"}:{};
return _.T("account-link-button-view-model",{class:_.Pw("ytwAccountLinkButtonViewModelHost",function(){return _.Ev(B)},G),
el:g,"button-renderer":!0},_.T("div",null,_.T(_.v,{cond:function(){var J;if((J=b())==null?0:J.isWarning)return(J=_.H(_.Ev(S).warningButtonViewModel,_.Q5))||_.CL(Error("Ah")),J},
then:function(J){return _.T(_.I8,{data:J,buttonOverrides:V})},
else:function(){return _.T(_.ER,{data:F,buttonShapeOverrides:V})}})))};
nyV=function(f){switch(f){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 7;case "BADGE_STYLE_TYPE_PREMIUM":return 5;case "BADGE_STYLE_TYPE_SIMPLE":return 0;case "BADGE_STYLE_TYPE_AD":return 2;case "BADGE_STYLE_TYPE_YPC":return 8;case "BADGE_STYLE_TYPE_FEATURED":return 4;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 18;default:return 0}};
sds=function(f){switch(f){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}};
D4s=function(f){switch(f){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"}};
_.U4K=function(f){var S=_.Gt("web_generic_client_event_wait_period ",0);S||(S=3E5);var B=IQN.get(f);!_.K("enable_web_client_experiment_event_timeout_killswitch")&&B&&(0,_.fO)()-B<S||(IQN.set(f,(0,_.fO)()),_.jD("genericClientExperimentEvent",{eventType:f}))};
C$V=function(f){switch(f){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""}};
ppx=function(f){if(!f)return"";var S,B=(S=_.oy().resolve(_.fN(_.yU)))==null?void 0:S(),G;if(!B&&((G=f.vibrantColorPalette)==null?0:G.iconInactiveColor))return No(f.vibrantColorPalette.iconInactiveColor,"1");var g;return B&&((g=f.darkColorPalette)==null?0:g.iconInactiveColor)?No(f.darkColorPalette.iconInactiveColor,"1"):f.color?No(f.color,"1"):f.sampledThumbnailColor?(f=f.sampledThumbnailColor,"rgba("+f.red+","+f.green+","+f.blue+");"):""};
_.UR=function(f,S){if(!f.includes("DATE_PLACEHOLDER"))return f;var B=new Date(0);B.setUTCSeconds(S);return f.replace("DATE_PLACEHOLDER",AGG(B))};
_.CF=function(f){return f!=null&&f.watch?f.watch.isTheaterMode:!1};
_.pF=function(f){return f!=null&&f.watch?f.watch.isWatchFullscreen:!1};
_.AD=function(f){f=_.NVN(f);return _.K("web_watch_enable_single_column_grid_view")?f:!1};
_.NVN=function(f){return f.watch.isWatchNarrowWidth};
M8V=function(f,S,B){return function(G){var g=f.command;g&&(x8(g,{form:{element:B}}),S([g],G))}};
t8G=function(f,S,B,G,g){return function(b){var z=ZG9(f,S);z&&x8(z,{form:{element:B},commandController:G});g&&b.stopPropagation()}};
ZG9=function(f,S){if(f.signInEndpoint&&!_.K("web_subscribe_sign_in_endpoint_killswitch"))return f.signInEndpoint;if(S){if(f.serviceEndpoints)return f.serviceEndpoints[1];if(f.onUnsubscribeEndpoints)return f.onUnsubscribeEndpoints[0]}else{if(f.serviceEndpoints)return f.serviceEndpoints[0];if(f.onSubscribeEndpoints)return f.onSubscribeEndpoints[0]}};
uZj=function(f,S){var B,G,g,b;S=S&&((B=f.unsubscribeAccessibility)==null?void 0:(G=B.accessibilityData)==null?void 0:G.label)||((g=f.subscribeAccessibility)==null?void 0:(b=g.accessibilityData)==null?void 0:b.label);return f.longSubscriberCountText?[S,_.ac(f.longSubscriberCountText)].filter(function(z){return z}).join(" "):S};
Nl=function(f,S){return S||(f==null?0:f.isChannelDelegate)?"disabled":"active"};
aQx=function(f,S){var B;switch((B=f.style)==null?void 0:B.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:Nl(f)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:Nl(f)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:Nl(f,!0)};case "OVERLAY":return S?{style:"overlay",type:"tonal",state:Nl(f)}:{style:"overlay",type:"filled",state:Nl(f)};default:return S?{style:"mono",type:"tonal",state:Nl(f)}:{style:"mono",type:"filled",state:Nl(f)}}};
yGT=function(f){switch(f){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
W2V=function(f){switch(f){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
cG1=function(f,S){var B=f.map(function(G){return G.toString()});
return _.iF(function(G){if(B.includes(G.key)){S&&G.preventDefault();var g;(g=G.currentTarget)==null||g.click()}})};
_.lQG=function(){return cG1(["Enter"])};
_.fjG=function(){return cG1(["Enter"," "],!0)};
_.Ml=function(f){if(f.composedPath)return f.composedPath();if(!f.__composedPath){for(var S=[],B=f.target;B;)S.push(B),B=B.parentNode;S.push(window);f.__composedPath=S}return f.__composedPath};
_.ZP=function(f,S,B){f=_.m(f);for(var G=f.next();!G.done;G=f.next()){G=G.value;if(G===S)break;for(var g=_.m(B),b=g.next();!b.done;b=g.next())if(b=b.value,G.tagName===b||G.role==="button"&&b==="BUTTON")return!0}return!1};
SMx=function(f,S){var B,G=(B=S.observer)!=null?B:_.oy().resolve(f_);if(f){B=oF9(f);var g=[];S.showOption&&g.push(G.observe(f,function(){S.visibilityCallback(!0)},S.showOption));
S.hideOption&&g.push(G.observe(f,function(){S.visibilityCallback(!1)},S.hideOption));
S.prescanOption&&S.prescanCallback&&g.push(G.observe(f,function(){S.prescanCallback()},S.prescanOption));
var b;B.visibilityMonitorKeys=((b=B.visibilityMonitorKeys)!=null?b:[]).concat(g)}};
oF9=function(f){var S;return(S=f.polymerController)!=null?S:f};
_.ux=function(f){return!!_.tD(f)};
_.gFN=function(f,S){var B=hys();rg(function(){var G=f.value;if(G)return BJM(G,S),Gv1(G,S,void 0,void 0,void 0,B)},[S])};
_.a8=function(f,S,B,G,g,b){var z=hys();_.jp(function(){var X=f.value;X&&(BJM(X,S(),b),X=Gv1(X,S(),B,G,g,z),_.Ov(X))},"GXtnHd")};
BJM=function(f,S,B){var G=esN(S),g=bEN(S);S=G&&m3V;var b=g&&zsN;(G||g)&&SMx(f,{visibilityCallback:function(z){var X=_.oy().resolve(_.S7);z&&G?X.resolveCommand(G,{form:{element:B?f:void 0},disableClickTracking:!0}):!z&&g&&X.resolveCommand(g,{form:{element:B?f:void 0},disableClickTracking:!0})},
showOption:S,hideOption:b})};
Gv1=function(f,S,B,G,g,b){var z=new Map;if(S=_.tD(S)){var X;f=(G==null?void 0:(X=G.onTap)==null?void 0:X.value)||f;B=RsK(S,f,B==null?void 0:B.onTap,g,b);f.addEventListener("click",B);z.set("click",B)}return function(){for(var w=_.m(z),F=w.next();!F.done;F=w.next()){var V=_.m(F.value);F=V.next().value;V=V.next().value;f.removeEventListener(F,V)}}};
_.tD=function(f){var S;return(f=(S=_.H(f,XTQ))==null?void 0:S.onTap)&&_.CH(f)};
esN=function(f){var S;return(f=(S=_.H(f,XTQ))==null?void 0:S.onVisible)&&_.CH(f)};
bEN=function(f){var S;return(f=(S=_.H(f,XTQ))==null?void 0:S.onHidden)&&_.CH(f)};
RsK=function(f,S,B,G,g){var b=function(X){_.oy().resolve(_.S7).resolveCommand(f,X)},z=function(X){G&&_.ZP(_.Ml(X),S,G)||b(X.target?{form:{element:X.target,
sourceData:f,mutationContext:g}}:void 0)};
B&&(z=function(X){B(X,b)});
return z};
wTK=function(f){switch(f){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}};
hsV=function(f){var S=f.numAvatarsInCluster;switch(f.clusterSize){case "small":return S===2?22:18;case "40":return S===2?24:22;default:return S===2?24:20}};
TJj=function(f,S){return function(B){var G=Object.keys(S);_.jp(function(){if(f()){for(var g=_.m(G),b=g.next();!b.done;b=g.next())b=b.value,B.addEventListener(b,S[b]);_.Ov(function(){for(var z=_.m(G),X=z.next();!X.done;X=z.next())X=X.value,B.removeEventListener(X,S[X])})}},"bXZGfe")}};
FFA=function(f){switch(hsV(f)){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""}};
V4A=function(f){switch(f){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""}};
JP1=function(f){switch(hsV(f)){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""}};
PMN=function(f){switch(f){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""}};
vF1=function(f){switch(f){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}};
KFW=function(f){return f==="medium"||f==="48"||f==="large"||f==="extra-large"||f==="extra-extra-large"||f==="giant"};
d3N=function(f){return!!((f==null?0:f.includes(3))||(f==null?0:f.includes(5)))};
HEN=function(f){return{size:iET(f.data.avatarImageSize),onTap:f.onTap,decorations:f.decorations||[],badgeText:f.badgeText,accessibilityText:f.accessibilityText,avatarButtonCustomClassName:f.avatarButtonCustomClassName,clusterLayoutConfig:f.clusterLayoutConfig}};
iET=function(f){switch(f){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"}};
qM1=function(f){switch(f){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}};
$3K=function(f){switch(f){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""}};
Q7Q=function(f){var S=f.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",B,G=f.avatars&&f.avatars.length>0?(B=_.H(f.avatars[0],_.y5))==null?void 0:B.avatarImageSize:"AVATAR_SIZE_UNKNOWN";B=qM1(G)||0;if(S){var g,b=(g=f.avatarClusterSize)!=null?g:"AVATAR_SIZE_M";S=qM1(b);var z,X,w=Math.min((X=(z=f.avatars)==null?void 0:z.length)!=null?X:0,4),F;return{avatars:((F=f.avatars)==null?void 0:F.slice(0,4))||[],avatarSizeInPx:B,avatarStackStyle:{width:S+"px",height:S+"px",position:"relative"},avatarStyle:function(J){var P=
hsV({clusterSize:iET(b),numAvatarsInCluster:w,avatarIndex:J});var d=qM1(b);w===3&&J===2?(d=(d-P)/2,d=(_.nL("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*d):d=void 0;return{position:"absolute",top:w===2&&J===1||w===3&&J===2||w===4&&J>=2?"0":void 0,bottom:w===2&&J===0||w>2&&J<2?"0":void 0,left:w===2&&J===1||w>2&&(J===1||J===3)?"0":void 0,right:w<=3&&J===0||w===4&&(J===0||J===2)?"0":void 0,transform:d?"translateX("+d+"px)":void 0,width:P+"px",height:P+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(J){return{clusterSize:iET(f.avatarClusterSize),numAvatarsInCluster:w,avatarIndex:J}},
avatarButtonCustomClassName:void 0}}var V;return{avatars:((V=f.avatars)==null?void 0:V.slice())||[],avatarSizeInPx:B,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:$3K(G),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
YMK=function(f,S,B){return function(){x8(f,{form:{element:S},commandController:B})}};
rPG=function(f){switch(f){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
j7N=function(f){switch(f){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"}};
OEW=function(f){var S=f.data;f=f.hidden===void 0?!1:f.hidden;var B={};f={class:_.K9("yt-page-indicator-view-model",(B["yt-page-indicator-view-model__indicator--hidden"]=!S.indicatorCount,B)),hidden:f};if(S.indicatorCount){B=[];for(var G=0;G<S.indicatorCount;G++){var g={};g=_.K9("yt-page-indicator-view-model__indicator",(g["yt-page-indicator-view-model__indicator--selected"]=S.selectedIndex===G,g));B.push(_.T("div",{class:g}))}S=_.T(_.gg,null,B)}else S=_.T(_.gg,null);return _.T("yt-page-indicator-view-model",
f,S)};
EFj=function(f){f&&(x3j(f)?delete f.inlinePlayerData:"inlinePlaybackEndpoint"in f&&delete f.inlinePlaybackEndpoint)};
LFA=function(f){if("accessibilityText"in f)return f.accessibilityText||"";if("title"in f){var S,B,G;return((S=f.title)==null?void 0:(B=S.accessibility)==null?void 0:(G=B.accessibilityData)==null?void 0:G.label)||""}if("accessibility"in f){var g,b;return((g=f.accessibility)==null?void 0:(b=g.accessibilityData)==null?void 0:b.label)||""}return""};
x3j=function(f){return"inlinePlayerData"in f};
W8=function(f){return new kv1(f)};
_.nFx=function(f,S,B,G,g,b){var z=function(F){F.preventDefault()},X=function(){var F=f.value;
if(F)return(F._data=S)?(F.addEventListener("touchstart",V6W,{passive:!0}),F.addEventListener("click",PgK),S.clickTrackingParams&&(F.params={itct:S.clickTrackingParams}),vYN(F,S),Y6(F,K7A(S)||"")):F.addEventListener("click",z),function(){S?(F.removeEventListener("touchstart",V6W,{passive:!0}),F.removeEventListener("click",PgK)):F.removeEventListener("click",z)}},w=function(){var F=f.value;
if(F){var V=_.AZ({innertubeCommand:S,elementsCommand:B,forceNewState:G,stopPropagation:b});if(V)return F._data=V._data,V["aria-haspopup$"]&&F.setAttribute("aria-haspopup",V["aria-haspopup$"].toString()),V["force-new-state$"]&&F.setAttribute("force-new-state",V["force-new-state$"].toString()),V.href$&&Y6(F,V.href$),V.rel$&&(F.rel=V.rel$),V.role$&&F.setAttribute("role",V.role$),V.target$&&(F.target=V.target$),F.params=V.params,V.onclick&&F.addEventListener("click",V.onclick),V.onpointerdown&&F.addEventListener("onpointerdown",
V.onpointerdown),function(){V.onclick&&F.removeEventListener("click",V.onclick);V.onpointerdown&&F.removeEventListener("onpointerdown",V.onpointerdown)}}};
rg(g?w:X,[S,B])};
s7W=function(f){var S=f.children;var B=f.className;var G=f.dir;var g=f.style;var b=f.role;var z=f.ariaSelected;var X=f.ariaLabel;var w=f.ariaHidden;var F=f.ariaLabelledby;var V=f.ariaDescribedby;var J=f.command;var P=f.elementsCommand;var d=f.forceNewState;var Q=f.isPlaceholder;var x=f.tabIdentifier;var E=f.target;var U=f.tabIndex;var A=f.useATagConfig;var t=f.stopPropagation;f=_.tE("a");_.nFx(f,J,P,d,A,t);return _.T("a",{el:f,"on:click":_.iF(function(){return t===!1}),
class:B,style:g,dir:G,role:b?b:J?void 0:"group","aria-hidden":w?!0:void 0,"aria-label":X,"aria-labelledby":F,"aria-describedby":V,"aria-selected":z,tabindex:U!==void 0?U:void 0,target:E,"tab-identifier":x,"force-new-state":d?!0:void 0,"is-placeholder":Q?!0:void 0},S)};
D3N=function(f){var S=f.data;f=_.iF(function(){var g=_.H(S.onTap,_.Un);g&&_.oy().resolve(_.S7).resolveCommand(g);return!1});
var B={sources:[{url:S.thumbnailUrl,width:120,height:90}]},G=S.rating&&S.ratingA11yLabel&&S.reviewsCount&&S.reviewsCountA11yLabel;return _.T("place-data-view-model",null,S.placeName&&S.placeCategory?_.T("div",{class:"yt-spec-place-data-view-model-shape","on:click":f},_.T(_.f9,{data:B,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail"}),_.T(s7W,{className:"yt-spec-place-data-view-model-shape__place-link",command:_.H(S.onTap,_.Un),forceNewState:!0,useATagConfig:!0},
_.T("h3",{class:"yt-spec-place-data-view-model-shape__name",title:S.placeName},S.placeName)),_.T("div",{class:"yt-spec-place-data-view-model-shape__metadata"},G?_.T("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.T("span",{class:"score",title:S.ratingA11yLabel},S.rating),_.T("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.T(_.Y8,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),
_.T("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",title:S.reviewsCountA11yLabel},S.reviewsCount)):_.T("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.T("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.T("span",{class:"category",title:S.placeCategory},S.placeCategory)))):null)};
Ijs=function(f){return function(S){f&&(f.thumbnailElRef=S.thumbnailElRef,f.thumbnail=S.thumbnail,f.thumbnailOverlays=S.thumbnailOverlays,f.thumbnailSize=S.thumbnailSize)}};
U3M=function(f){var S;return(S=f.sharedUi)==null?void 0:S.animatedThumbnailEnabled};
CMK=function(f){var S;return(S=f.sharedUi)==null?void 0:S.inlinePreviewEnabled};
_.pTG=function(f){var S;return(S=f.sharedUi)==null?void 0:S.currentPageSubType};
APQ=function(f){switch(f){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"}};
ZEN=function(f){var S=_.m(_.hj(!1,void 0,"RIOonf")),B=S.next().value,G=S.next().value;_.j9(function(){var g=f==null?void 0:f();if(g){var b=_.oy().resolve(_.fN(NJs));if(b){var z={triggeringElement:g,onDwellTriggeredFn:function(){G(!0)},
onDwellEndFn:function(){G(!1)}};
b.registerElement(z);_.Ov(function(){M4x(b,z)})}}});
return B};
t41=function(f,S,B){B?B(S):_.MB(S,f.target?{form:{element:f.target}}:void 0)};
_.c8=function(f,S,B,G){_.jp(function(){var g=f.value;if(g){var b=new Map,z,X=(z=S())==null?void 0:z.onTap;X&&(z=function(w){a:{var F=w.composedPath();F=_.m(F);for(var V=F.next();!V.done;V=F.next()){V=V.value;if(V===g)break;if(V.className.indexOf("HostIsClickableAdComponent")>=0||V.tagName==="A".toString()||V.tagName==="BUTTON".toString()){F=!0;break a}}F=!1}F||t41(w,X,B)},(G==null?0:G())||_.K("enable_web_home_top_landscape_image_layout_level_click")?(g.addEventListener("tap",z),b.set("tap",z)):(g.addEventListener("click",
z),b.set("click",z)));
_.Ov(function(){for(var w=_.m(b),F=w.next();!F.done;F=w.next()){var V=_.m(F.value);F=V.next().value;V=V.next().value;g.removeEventListener(F,V)}})}},"g9MHN")};
uPW=function(f,S){var B,G=(B=f.interaction)==null?void 0:B.onTap;if(f=_.AZ({elementsCommand:G,forceNewState:!0,skipOnClick:!0}))return f.onclick=function(g){wIN(g)&&(g.preventDefault(),G&&t41(g,G,S))},NB(f)?f:void 0};
aj1=function(f){switch(f){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
yPN=function(f){switch(f){case "AD_BUTTON_STYLE_OVERLAY":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TEXT":return"overlay";case "AD_BUTTON_STYLE_TRANSPARENT":case "AD_BUTTON_STYLE_MONO_FILLED":case "AD_BUTTON_STYLE_MONO_TONAL":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"mono";case "AD_BUTTON_STYLE_OVERLAY_FILLED":return"call-to-action-overlay";default:return"call-to-action"}};
WFx=function(f){switch(f){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"}};
_.cPj=function(f){return _.K("rich_grid_enable_dynamic_offset")&&f?Math.max(Math.round((f-_.Gt("rich_grid_dynamic_offset_anchor_width",1300))/100*_.Gt("rich_grid_dynamic_offset_offset_per_100",10)),_.Gt("rich_grid_dynamic_offset_lower_bound",-60)):0};
ljG=function(f,S){switch(S){case 4:return 16;case 1:return f<528?16:f<1024?32:48;case 2:return(f>=528?16:8)/2;case 3:return(f<528?16:f<1024?32:48)+(f>=528?16:8)/2;default:return 0}};
fos=function(f){var S=f.originalContainerWidth;var B=f.sizing;var G=f.standardUnit;if(f.isCompactList&&S<528)return 1;switch(B){case "STANDARD":return G;case "COMPACT":return G+1;case "EXTRA_COMPACT":return _.K("web_responsive_extra_compact_2x")?G*2:_.K("web_responsive_current")?G===1?2:G%2===0?G/2*3:G+2:G<4?G*2:Math.ceil(G*3/2);case "MINI":return G>1?G*2:3;default:return G}};
SGN=function(f){var S=f.containerWidth;var B=f.peek;var G=f.gutter;var g=f.numItems;f=f.ignoreMaxWidthLimit;S=B?Math.max((S-B-G*g)/g,0):Math.max((S-G*(g-1))/g,0);return f?S:Math.min(S,oxG)};
_.lx=function(f){var S=f.containerWidth;var B=f.hasPeek;var G=f.sizing;var g=f.marginSettings;var b=f.isCompactList;var z=f.enableFullBleedForSingleCol;var X=f.standardUnitMinWidth;G=G||"STANDARD";B=!!B;f=S>=528?16:8;var w=B?S>=528?48:24:0;g=ljG(S,g);var F=Math.max(S-g*2,0);X=_.K("kevlar_disable_min_width_override")?void 0:X;X=Math.min(Math.max(Math.floor((F-w+f)/((X!=null?X:Bys)+_.cPj(S)+f)),1),6);var V=(z=!!z&&X===1)||X===1&&G!=="STANDARD";B=B||V?F:Math.min(F,(oxG+f)*X-f);G=fos({originalContainerWidth:S,
sizing:G,standardUnit:X,isCompactList:b});return{itemWidth:SGN({containerWidth:B,peek:w,gutter:f,numItems:G,ignoreMaxWidthLimit:V}),gutter:f,maxContainerWidth:B,numItems:G,margin:z?0:g,contentMargin:ljG(S,1),typographyBump:SGN({containerWidth:B,peek:w,gutter:f,numItems:X,ignoreMaxWidthLimit:V})>400&&!(b&&S<528),standardUnit:X}};
GAx=function(f){switch(f){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.gxM=function(f){if(f){var S;if((S=f.responsiveContainerConfiguration)==null?0:S.responsiveSize)return GAx(f.responsiveContainerConfiguration.responsiveSize);if(f.layoutSizing)switch(f.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"}}};
eIM=function(f){if(f.fullbleed)return 1;switch(f.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
RI1=function(f,S,B,G,g,b,z,X){a:if(f===4&&G==="LOCKUP_CONTENT_TYPE_SOURCE")var w=1;else switch(f){case 3:w=1;break a;default:w=0}a:switch(f){case 4:b=!!(b&&b<100);break a;default:b=!1}a:switch(f){case 3:case 4:var F=G==="LOCKUP_CONTENT_TYPE_CHANNEL"||G==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:F=!1}a:switch(f){case 5:var V=!0;break a;case 4:V=!1;break a;default:V=!1}return{isOverlay:V,isCard:beW(G,z),sizing:S!=null?S:"STANDARD",typographyBump:B!=null?B:!1,isTiny:b,isCentered:F,isCollection:mqQ(G),
arrangement:w,addMarginForFullbleed:f===1&&G!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:f===1&&G==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:zIA(G,g,X),disableRounding:f===5||beW(G,z)||f===1&&G==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:mqQ(G)?2:0,useLegacyTypography:!(X==null||!X.useLegacyTypography),useRichGridLegacyTypography:!(X==null||!X.useRichGridLegacyTypography)&&!_.K("web_enable_typography_bump"),hideDescription:w===0&&G==="LOCKUP_CONTENT_TYPE_VIDEO"}};
mqQ=function(f){switch(f){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}};
beW=function(f,S){if(S&&f==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(f){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
zIA=function(f,S,B){if(S&&(B==null||!B.alwaysRespectPodcastShowAspectRatio||f!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(f){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}};
XbG=function(f){switch(f){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"}};
wbx=function(f){switch(f){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
hIK=function(f){switch(f){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}};
_.fy=function(f){if(f){var S;return((S=_.oy().resolve(_.fN(_.yU)))==null?0:S())?f.darkThemeImage:f.image}};
VYK=function(f,S,B,G,g,b){if(g&&b&&S==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:g,height:b};if(!B)return{};g=B.size;B=B.allowFullWidth;if(S==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&B)return{fullWidth:!0};if(g===void 0)return{};switch(f){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:g,height:g};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:g,height:1/TyV*g};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:g*
FeK,height:g};default:return(G==null?0:G.height)&&(G==null?0:G.width)?G.width/G.height>1?{maxWidth:g*FeK}:{maxWidth:g}:{maxWidth:g}}};
Jnx=function(f){var S;return f&&((S=_.fy(f.themedImage))!=null?S:f.image)};
PLW=function(f){var S;return f==null?void 0:(S=f.sources)==null?void 0:S[0]};
KeT=function(f,S){var B,G;return!!((f==null?0:(B=f.byline)==null?0:B.hideAvatar)&&((G=_.H(S,vxK))==null?void 0:G.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
dqM=function(f,S){var B,G;return!!((f==null?0:(B=f.description)==null?0:B.hideDescription)&&((G=_.H(S,vxK))==null?void 0:G.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION")};
ieA=function(f,S){var B,G;return!!((f==null?0:(B=f.byline)==null?0:B.addPadding)&&((G=_.H(S,vxK))==null?void 0:G.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
He1=function(f,S,B,G){var g={},b=(g["yt-content-metadata-view-model-wiz__delimiter"]=!0,g["yt-content-metadata-view-model-wiz__delimiter--standalone"]=G,g);return Wv(S-1>B,function(){return _.T("span",{class:_.K9(b),"aria-hidden":!0},f)})};
$q1=function(f,S){return _.T(_.oY,{text:f.text,linkInheritColor:!0,className:qG1(S),userInput:!0})};
YGQ=function(f){var S=f.metadataPart;var B=f.isOverlay;var G=f.useMediumText;var g=f.hideAvatar;var b=1;S.maxLines!==void 0&&(b=S.maxLines);return _.T(_.gg,null,Wv(S.avatarStack,function(){return QnG(S.avatarStack,{avatarStackViewModel:{isOverlay:B,useMediumText:G,hideAvatar:g}})}),Wv(S.text,function(){var z=b;
return _.T(_.gg,null,S.tooltip?_.T("span",{title:S.tooltip,role:"tooltip"},$q1(S,z)):$q1(S,z))}))};
qG1=function(f){switch(f){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"}};
rnV=function(f){var S=f.metadataRow;var B=f.isInline;var G=f.delimiter;var g=f.isOverlay;var b=f.useMediumText;var z=f.extensions;if(dqM(z==null?void 0:z.lockupMetadata,S))return _.T(_.gg,null);var X=KeT(z==null?void 0:z.lockupMetadata,S);f=ieA(z==null?void 0:z.lockupMetadata,S);z=!(!((z==null?0:z.lockupMetadata)&&S.badges)||S.metadataParts);var w={};f=(w["yt-content-metadata-view-model-wiz__metadata-row"]=!0,w["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=B,w["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=
f,w["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=z,w);var F,V;return _.T("div",{class:_.K9(f)},(F=S.badges)==null?void 0:F.map(function(J){return _.T("div",{class:"yt-content-metadata-view-model-wiz__badge"},QnG(J))}),(V=S.metadataParts)==null?void 0:V.map(function(J,P){return _.T(_.gg,null,YGQ({metadataPart:J,
isOverlay:g,useMediumText:b,hideAvatar:X}),He1(G,S.metadataParts.length,P,!1))}),Wv(S.isSpacerRow&&!B,function(){return _.T("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}))};
jnW=function(f){var S=f.className;var B=f.data;var G=f.layout===void 0?0:f.layout;var g=f.isOverlay===void 0?!1:f.isOverlay;var b=f.useMediumText;var z=f.extensions;f=_.tE("yt-content-metadata-view-model");var X=G===0;G={};G=(G["yt-content-metadata-view-model-wiz"]=!0,G["yt-content-metadata-view-model-wiz--inline"]=X,G["yt-content-metadata-view-model-wiz--tappable"]=_.ux(B.rendererContext),G["yt-content-metadata-view-model-wiz--medium-text"]=b,G);_.gFN(f,B.rendererContext);return _.T("yt-content-metadata-view-model",
{class:_.K9(S,G),el:f},Wv(B.metadataRows,function(){return B.metadataRows.map(function(w,F){return _.T(_.gg,null,rnV({metadataRow:w,isInline:X,delimiter:B.delimiter,isOverlay:g,useMediumText:b,extensions:z}),Wv(X&&!w.isSpacerRow,function(){return He1(B.delimiter,B.metadataRows.length,F,!0)}))})}))};
OeA=function(f){switch(f){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"}};
xqs=function(f){switch(f.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"}}};
Exs=function(f){var S=_.pTG(_.al().getState())||"";return f?f+S:""};
Le1=function(f){switch(f){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
nxA=function(f){var S=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],B=_.m(_.hj(void 0,void 0,"JrqNsb")),G=B.next().value,g=B.next().value,b=_.m(_.hj(void 0,void 0,"rWytse"));B=b.next().value;var z=b.next().value;b=_.m(_.hj(void 0,void 0,"DHRqxe"));var X=b.next().value,w=b.next().value;return{touchFeedbackEvents:{pointerUpEvent:G,pointerDownEvent:B,pointerLeaveEvent:X},touchFeedbackOnPointerUp:_.iF(function(F){if(kAW(_.Ml(F),S))return!1;g(F);z(void 0);w(void 0);return!0}),
touchFeedbackOnPointerDown:_.iF(function(F){f==null||f(F);if(kAW(_.Ml(F),S))return!1;z(F);g(void 0);w(void 0);return!0}),
touchFeedbackOnPointerLeave:_.iF(function(F){kAW(_.Ml(F),S)||(w(F),z(void 0),g(void 0))})}};
kAW=function(f,S){S=S===void 0?[]:S;S=[].concat(_.$d(S),["BUTTON".toString()]);f=_.m(f);for(var B=f.next();!B.done;B=f.next()){B=B.value;for(var G=_.m(S),g=G.next();!g.done;g=G.next())if(B.tagName===g.value)return!0}return!1};
snT=function(f){switch(f){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"}};
DqT=function(f){return f.scrollHeight-f.offsetHeight>1};
Ioj=function(f,S){var B;return aS(f,((B=f.content)==null?void 0:B.length)||0,!S)};
Uqs=function(f,S){S=Ioj(f,S);var B,G;return(((B=f.content)==null?void 0:B.length)||0)>(((G=S.content)==null?void 0:G.length)||0)};
AnN=function(f,S,B,G,g,b){if(!S||CLA){var z;return aS(f,((z=f.content)==null?void 0:z.length)||0,!0)}S=G.value;if(!B.value||!S||!f.content)return f;B=0;G=f.content.length;z=0;pb1||(pb1=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var X=pb1;for(g=g*b*X;B<=G;)b=Math.floor(B+(G-B)/2),X=aS(f,b)||f,S.firstChild&&(S.firstChild.textContent=X.content),S.scrollHeight>g?G=b-1:(z=b,B=b+1);return aS(f,z)};
NyN=function(f,S){var B,G;return(((B=f.content)==null?void 0:B.length)||0)>(((G=S.content)==null?void 0:G.length)||0)};
MY1=function(f){var S=f.isTruncated;var B=f.isAbsoluteButton;var G=f.lineHeight;var g=f.contentRef.value,b=f.placeholderTruncationTextRef.value,z=f.truncationTextRef.value;f=f.appDirection==="rtl";if(g&&b){var X=b.offsetLeft;f&&(X=g.offsetWidth-b.offsetWidth-b.offsetLeft);if(S){S=b.offsetWidth;b=g.offsetWidth;var w=B?b-S-70:X-70;G="linear-gradient(\n      to top, transparent 0%,\n      transparent "+G+"rem,\n      #000 "+G+"rem,\n      #000 100%), linear-gradient(\n      to "+((f?"left":"right")+
",\n      #000 0px,\n      #000 "+w+"px,\n      transparent "+(B?b-S:w+70)+"px)");g.style.setProperty("-webkit-mask-image",G);g.style.setProperty("mask-image",G)}else g.style.setProperty("-webkit-mask-image",""),g.style.setProperty("mask-image","");B?f?(z.style.setProperty("left","0"),z.style.setProperty("right","unset")):(z.style.setProperty("left",""),z.style.setProperty("right","0")):f?(z.style.setProperty("left","unset"),z.style.setProperty("right",X+"px")):(z.style.setProperty("left",X+"px"),
z.style.setProperty("right","unset"))}};
ZeV=function(f,S,B,G,g){var b=_.tE("truncated-text-content"),z=_.tE("truncated-text-content"),X=_.tE("button"),w=_.tE("button"),F=_.tE("button"),V=_.oy().resolve(_.cs),J=_.m(P8(Ioj(f,g))),P=J.next().value,d=J.next().value;J=_.m(P8(_.K("enable_truncated_text_max_lines")?NyN(f,P):Uqs(f,g)));var Q=J.next().value,x=J.next().value,E=x5(null);rg(function(){function U(){if(b.value&&X.value&&F.value)if(_.K("enable_truncated_text_max_lines")){var M=AnN(f,g,b,z,S,B);d(M);G||requestAnimationFrame(function(){if(b.value&&
X.value&&F.value){var a=DqT(b.value)||NyN(f,M);x(a);MY1({isTruncated:a,isAbsoluteButton:DqT(b.value),lineHeight:B,contentRef:b,placeholderTruncationTextRef:X,truncationTextRef:F,appDirection:V})}})}else d(Ioj(f,g)),requestAnimationFrame(function(){if(b.value&&X.value&&F.value)if(DqT(b.value))x(!0),G||MY1({isTruncated:!0,
isAbsoluteButton:!0,lineHeight:B,contentRef:b,placeholderTruncationTextRef:X,truncationTextRef:F,appDirection:V});else{var a=Uqs(f,g);x(a);G||MY1({isTruncated:a,isAbsoluteButton:!1,lineHeight:B,contentRef:b,placeholderTruncationTextRef:X,truncationTextRef:F,appDirection:V})}})}
var A,t;(A=E.value)==null||(t=A.stop)==null||t.call(A);A=new _.S3(U,17);U();E.value=A},[f.content,
S,B,V,G,g]);_.j9(function(){var U=function(){pb1=void 0;var t,M;(t=E.value)==null||(M=t.fire)==null||M.call(t)};
if(window.ResizeObserver){var A=new ResizeObserver(U);A.observe(b.value);return function(){var t,M;(t=E.value)==null||(M=t.stop)==null||M.call(t);A.disconnect()}}window.addEventListener("resize",U);
return function(){var t,M;(t=E.value)==null||(M=t.stop)==null||M.call(t);window.removeEventListener("resize",U)}});
return{isTruncated:Q,displayText:P,contentRef:b,hiddenRef:z,placeholderTruncationTextRef:X,hiddenTruncationTextRef:w,truncationTextRef:F}};
tYs=function(f){var S=f.text;var B=f.alwaysShowTruncationText;var G=f.truncationText;var g=f.onExpandClick;var b=f.maxLines===void 0?2:f.maxLines;var z=f.disableTextMask===void 0?!1:f.disableTextMask;var X=f.textStyle===void 0?"default":f.textStyle;var w=f.accessibilityLabel===void 0?"":f.accessibilityLabel;var F=f.textSize===void 0?"small":f.textSize;var V=_.iF(function(){return void(g==null?void 0:g())});
a:switch(F){case "medium":var J=2;break a;case "large":J=2.2;break a;default:J=1.8}var P=ZeV(S,b,J,z,f.alwaysTruncateAtMaxLines===void 0?!1:f.alwaysTruncateAtMaxLines),d=P.isTruncated;f=P.displayText;S=P.contentRef;var Q=P.hiddenRef,x=P.placeholderTruncationTextRef,E=P.hiddenTruncationTextRef;P=P.truncationTextRef;var U={};B=_.K9((U["truncated-text-wiz__absolute-button"]=!z,U["truncated-text-wiz__bottom-button"]=z,U["truncated-text-wiz--hidden"]=!(B||d),U));z={};X=_.K9((z["truncated-text-wiz"]=!0,
z["truncated-text-wiz--overlay"]=X==="overlay",z["truncated-text-wiz--medium-text"]=F==="medium",z["truncated-text-wiz--large-text"]=F==="large",z["truncated-text-wiz--primary-text"]=X==="primary-text",z));F={};F=_.K9((F["truncated-text-wiz__truncated-text-content"]=!0,F["truncated-text-wiz__truncated-text-content--hidden-text-content"]=!0,F));return _.T("truncated-text",{class:X,"on:click":V,style:"line-height: "+J+"rem;"},_.T("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",
el:S,style:"max-height: "+b*J+"rem;"},_.T(_.oY,{text:f}),_.T("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:x,style:"line-height: "+J+"rem;"},_.T(_.oY,{text:G}))),_.T("truncated-text-content",{class:F,el:Q,style:"max-height: "+b*J+"rem;","aria-hidden":"true"},_.T(_.oY,{text:f}),_.T("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:E,style:"line-height: "+J+"rem;"},_.T(_.oY,{text:G}))),_.T("button",{"aria-label":w,class:B,el:P,
style:"line-height: "+J+"rem;"},_.T(_.oY,{text:G})))};
uQG=function(f){return{content:f!=null?f:""}};
WeN=function(f){var S=f.data;var B;f={class:f.className};a:switch(S.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var G="yt-video-attribute-view-model--vertical";break a;default:G="yt-video-attribute-view-model--horizontal"}a:switch(S.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var g="yt-video-attribute-view-model--image-small";break a;default:g="yt-video-attribute-view-model--image-large"}a:switch(S.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var b="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":b="yt-video-attribute-view-model--image-avatar";break a;default:b=""}a:switch(S.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var z="yt-video-attribute-view-model--metadata-header";break a;default:z=""}a:switch(S.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var X="yt-video-attribute-view-model--container-card";break a;default:X=""}var w=_.CH(S.onTap)||_.tD(S.rendererContext)?"yt-video-attribute-view-model--clickable":"";
G=["yt-video-attribute-view-model",G,g,b,z,X,w].join(" ");if(S.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var F="";else g=S.lightColorPalette,b=S.darkColorPalette,z=((F=_.oy().resolve(_.fN(_.yU)))==null?0:F())&&b?b:g,F=(F=z==null?void 0:z.section2Color)?_.AK(F):"";return _.T("yt-video-attribute-view-model",f,_.T("div",{class:G,style:_.Qj({"background-color":F})},_.T(s7W,{className:"yt-video-attribute-view-model__link-container",useATagConfig:!0,stopPropagation:!1,command:(B=_.CH(S.onTap))!=
null?B:_.tD(S.rendererContext),role:"group",ariaLabel:S.title,forceNewState:!0},S.heroText||S.image?_.T(ao1,{data:S}):null,_.T(ynW,{data:S,sizeSmall:S.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
cnQ=function(f){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:f.overflowMenuA11yLabel,onTap:function(S){S.preventDefault();S.stopPropagation();if(f.overflowMenuOnTap){var B=_.AZ({elementsCommand:f.overflowMenuOnTap,forceNewState:!0});if(B==null?0:B.onclick)B.onclick(S)}}}};
ao1=function(f){f=f.data;var S,B=((S=_.oy().resolve(_.fN(_.yU)))==null?0:S())&&f.darkThemeImage?f.darkThemeImage:f.image;S=cnQ(f);return _.T("div",{class:"yt-video-attribute-view-model__hero-section"},B?_.T(_.f9,{data:B,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):f.heroText?_.T("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.T("span",{class:"yt-video-attribute-view-model__hero-text"},f.heroText)):null,f.overflowMenuOnTap?
_.T("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.T(Be,{data:S,iconName:"MORE_VERT"})):null)};
ynW=function(f){var S=f.data;f=f.sizeSmall;var B=S.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",G=_.CH(S.onTap)||_.tD(S.rendererContext);G=_.AZ({innertubeCommand:G});G=NB(G);var g={};f={class:_.K9("yt-video-attribute-view-model__metadata",(g["yt-video-attribute-view-model--small-font"]=f,g)),role:G?"link":"group"};G=_.T("h1",{class:"yt-video-attribute-view-model__title"},S.title);B=S.subtitle?_.T("h4",{class:"yt-video-attribute-view-model__subtitle"},B?_.T(tYs,{text:uQG(S.subtitle),truncationText:uQG(S.subtitleTruncationText),
maxLines:2}):_.T("span",null,S.subtitle)):null;if(S.secondarySubtitle){g=S.secondarySubtitle;if(g!=null&&g.attachmentRuns){for(var b=[],z=_.m(g.attachmentRuns),X=z.next();!X.done;X=z.next())X=X.value,X.element&&b.push(Object.assign({},X,{element:Object.assign({},X.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));g=Object.assign({},g,{attachmentRuns:b})}g=_.T("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},
_.T(_.oY,{text:g}))}else g=null;return _.T("div",f,G,B,g,S.buttonViewModel?loN(S.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
_.GN=function(f,S,B,G,g){G=G===void 0?{}:G;if(!g||Math.random()<5E-4){S=S||null;B=B||null;f=f instanceof Error?f:new _.dO(f);if(f.args)for(var b=_.m(f.args),z=b.next();!z.done;z=b.next())z=z.value,z instanceof Object&&(G=Object.assign({},z,G));G.category="H5 Ads Control Flow";S&&(G.slot=S?"slot:  "+S.slotType:"");B&&(G.layout=B?"layout:  "+B.layoutType:"",G.layoutId=B.layoutId);g&&(G.known_error_aggressively_sampled=!0);f.args=[G];_.Lg(f)}};
_.fFA=function(f,S){_.bW(f,"yt-open-popup-action",[_.fn(S),f])};
_.g5=function(f,S){_.fFA(f,_.uC(S))};
SSG=function(f){if(!f)return"";if(otM[f])return otM[f];e3||(e3=_.Ja("A"));e3.href!==f&&Y6(e3,f);var S=e3.pathname;otM[f]=S.startsWith("/")?S:"/"+S;return otM[f]};
B7j=function(){var f=SSG(window.location.href);if(f==="/")return"home";if(f.startsWith("/results"))return"search";if(f.startsWith("/watch"))return"watch";if(f.startsWith("/shorts"))return"shorts";if(f.startsWith("/hashtag"))return"hashtag";if(f.startsWith("/create_channel"))return"create_channel";if(f.startsWith("/@")||f.startsWith("/user/")||f.startsWith("/channel/"))return"channel";if(f.startsWith("/experiments"))return"experiments";if(f.startsWith("/sponsor_channel"))return"sponsorship";if(f.startsWith("/select_site"))return"settings";
if(f.startsWith("/locate"))return"locate";if(f.startsWith("/redeem"))return"redeem";if(f.startsWith("/musicpremium")||f.startsWith("/premium")||f.startsWith("/red"))return"premium";if(f.startsWith("/paid_memberships"))return"paid_memberships";if(f.startsWith("/oops"))return"oops";if(f.startsWith("/clip"))return"clip";var S;return(b1==null?void 0:(S=b1.response)==null?void 0:S.page)==="404"?"404":f.startsWith("/feed/history")?"history":f.startsWith("/feed/library")?"library":f.startsWith("/feed/subscriptions")?
"subscriptions":f.startsWith("/feed/trending")?"trending":f.startsWith("/feed/news_destination")?"news":f.startsWith("/playlist")?"playlist":f.startsWith("/minor_moment")?"minor_moment":f.startsWith("/playable/")||f.match("^/playables/(?!saved).")?"mini_app":f.startsWith("/playables")?"playables":f.startsWith("/create/live/join")?"open_in_app":f.startsWith("/feed/explore")?"explore":"browse"};
_.b69=function(){var f=b1==null?void 0:b1.response,S=f==null?void 0:f.endpoint;if(!S)return(f==null?void 0:f.page)==="watch"?"watch":B7j();var B;f=(B=_.H(S==null?void 0:S.commandMetadata,_.oD))==null?void 0:B.webPageType;B=!1;if(f&&!G3T.includes(f))switch(f){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 G;return((G=_.H(S==null?void 0:S.commandMetadata,_.oD))==null?0:G.url)&&SSG(_.H(S.commandMetadata,_.oD).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var g;return(S=(g=_.H(S,_.d3))==null?void 0:g.browseId)?gtN[S]||"browse":"browse";default:B=!0}if(_.H(S,_.mv)||_.H(S,eTG))return"sponsorship";g=SSG(window.location.href);if(g.startsWith("/experiments"))return"experiments";if(g.startsWith("/create_channel"))return"create_channel";
if(_.H(S,_.pg)&&g.startsWith("/shorts"))return"shorts";if(_.H(S,_.pg)&&g.startsWith("/watch"))return"watch";B&&(S=new _.dO("Unsupported mWeb page type",{pathname:g,webPageType:f}),_.xH(S));return"browse"};
zN=function(f,S,B,G){return f&&S?f!==B||S!==G?(_.GN(Error("Hh"),void 0,void 0,{"stored-slot":f,"stored-layout":S,"latest-slot":B,"latest-layout":G}),!1):!0:!1};
mUV=function(f,S,B){return f({targetId:S},function(G){return B.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},G,{header:B.continuationItems?B.continuationItems[0]:void 0}):Object.assign({},G,{contents:B.continuationItems?B.continuationItems:[]})})};
zTN=function(f,S,B,G){if(S=S.trackingParams){var g,b=(g=B.getScreenLayer)==null?void 0:g.call(B);B=_.xc(b);g=_.Of(b);if(B&&g){var z=_.Ye(S);_.K("combine_ve_grafts")?f.graftServerVe(S,g,b):_.Af(B,g,z);G==null||G(z)}}};
X3x=function(f){var S;return((S=RTG.get(f))==null?void 0:S.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
T7j=function(f,S){var B={type:S.slotType,controlFlowManagerLayer:w3A.get(S.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};S.slotEntryTrigger&&(B.entryTriggerType=S.slotEntryTrigger.triggerType);S.slotPhysicalPosition!==1&&(B.slotPhysicalPosition=S.slotPhysicalPosition);if(f){B.debugData={slotId:S.slotId};if(f=S.slotEntryTrigger)B.debugData.slotEntryTriggerData=hTx(f);f=S.slotFulfillmentTriggers;B.debugData.fulfillmentTriggerData=[];f=_.m(f);for(var G=f.next();!G.done;G=f.next())B.debugData.fulfillmentTriggerData.push(hTx(G.value));
S=S.slotExpirationTriggers;B.debugData.expirationTriggerData=[];S=_.m(S);for(f=S.next();!f.done;f=S.next())B.debugData.expirationTriggerData.push(hTx(f.value))}return B};
hTx=function(f,S){var B={type:f.triggerType};S!=null&&(B.category=S);f.triggeringSlotId!=null&&(B.triggerSourceData||(B.triggerSourceData={}),B.triggerSourceData.associatedSlotId=f.triggeringSlotId);f.triggeringLayoutId!=null&&(B.triggerSourceData||(B.triggerSourceData={}),B.triggerSourceData.associatedLayoutId=f.triggeringLayoutId);return B};
FV1=function(f,S,B,G){S={opportunityType:S};f&&(G||B)&&(G=_.Yv(G||[],function(g){return T7j(f,g)}),S.debugData=Object.assign({},B&&B.length>0?{associatedSlotId:B}:{},G.length>0?{slots:G}:{}));
return S};
V$N=function(f){return RY(f.opportunityAdapterMap).concat(RY(f.triggerAdapterMap)).concat(RY(f.fulfillmentAdapterFactoryMap)).concat(RY(f.slotAdapterFactoryMap)).concat(RY(f.layoutRenderingAdapterFactoryMap))};
RY=function(f){var S=[];f=_.m(f.values());for(var B=f.next();!B.done;B=f.next())B=B.value,B.isAdsControlFlowEventListener&&S.push(B);return S};
F8=function(f){var S=f.slotId,B=f.slotType,G=f.slotPhysicalPosition;return S===void 0?new X8("Cannot construct a slot due to the missing id.",{adSlotMetadata:f}):B===void 0?new X8("Cannot construct a slot due to the missing type.",{adSlotMetadata:f}):G===void 0?new X8("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:f}):{slotId:S,slotType:B,slotPhysicalPosition:G,managerLayer:"external",adSlotLoggingData:f.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new JIj}};
PwK=function(f){var S=f.layoutId,B=f.layoutType;return S===void 0?new V1("Cannot construct a layout due to the missing id.",{adLayoutMetadata:f}):B===void 0?new V1("Cannot construct a layout due to the missing type.",{adLayoutMetadata:f}):{layoutId:S,layoutType:B,managerLayer:"external",adLayoutLoggingData:f.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new JIj,interactionLoggingAdsClientData:{}}};
vtT=function(f){if((f=f.value)&&f.querySelector("img")){var S=f.querySelector("img");S.addEventListener("error",function(){SNK(S.src).then(function(B){(B=_.Ho(B).toString())?S.src=B:S.removeAttribute("src")}).catch(function(){S.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
Pe=function(f,S){if(S&&(KVN(S.viewableCommand)||KVN(S.endOfSessionCommand))){f=f.value;var B=dUW(S==null?void 0:S.viewableCommand);S=dUW(S==null?void 0:S.endOfSessionCommand);if(!Jp){var G=_.Gt("custom_active_view_tos_timeout_ms");Jp=G>0&&G!==36E5?new i6G(H6M(),G):new i6G(H6M())}qSV(Jp,f);$U1(Jp,f,B,S)}};
ve=function(f){Jp&&qSV(Jp,f.value)};
H6M=function(){var f=_.nL("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(f==null?void 0:f.length)===2?f[1]:null};
KVN=function(f){f=_.CH(f);return!(f==null||!f.loggingUrls)&&f.loggingUrls.length>0};
dUW=function(f){if(!f)return[];var S=[],B,G;((G=(B=_.CH(f))==null?void 0:B.loggingUrls)!=null?G:[]).forEach(function(g){g.baseUrl&&S.push(g.baseUrl)});
return S};
QEV=function(f){return f.shorts.isDesktopSmallWidth};
_.YSj=function(f){return f.shorts.isWatchWhileMode};
_.Ky=function(f){return f.shorts.isFullscreen};
_.d5=function(f){return f.shorts.isShortsPipActive};
jEM=function(f){var S,B;if(f=(S=_.H(f.reelsAdCardButtoned,rIN))==null?void 0:(B=S.animatedRenderingConfig)==null?void 0:B.easeOutSeconds)return f+"s"};
xUN=function(f,S,B){return _.R(function(G){return G.return(new Promise(function(g){var b=new Image;b.onload=function(){g(new O6K(f,S,B,b.naturalWidth,b.naturalHeight))};
b.src=B.toString()}))})};
EtN=function(f,S){return Math.round(f/1E-5)===Math.round(S/1E-5)};
LVG=function(f,S){return Math.round(f/1E-5)===Math.round(S/1E-5)};
k3W=function(f,S){return f.year===S.year&&f.month===S.month&&f.day===S.day};
ntQ=function(f,S){return f.year!==S.year?f.year<S.year:f.month!==S.month?f.month<S.month:f.day<S.day};
DUs=function(f){return f.day===sE9(f.year,f.month)?f.month===11?{year:f.year+1,month:0,day:1}:{year:f.year,month:f.month+1,day:1}:{year:f.year,month:f.month,day:f.day+1}};
IFV=function(){var f=new Date,S={year:f.getFullYear(),month:f.getMonth(),day:f.getDate()};return{start:S,end:{year:f.getFullYear()+2,month:f.getMonth(),day:f.getDate()},selectedDate:DUs(S)}};
UUj=function(f){return(new ZK(2)).format(new Date(f.year,f.month,f.day))};
Cw1=function(f){return{year:f.getFullYear(),month:f.getMonth(),day:f.getDate()}};
p31=function(f,S){f=(f+(Number(S.utcOffsetSec)+(new Date(f*1E3)).getTimezoneOffset()*60))*1E3;S=Cw1(new Date(f));return{date:S,secondsSinceMidnight:Math.floor((f-(new Date(S.year,S.month,S.day)).getTime())/1E3)}};
AI1=function(f,S){S=S.months.findIndex(function(B){return B.year===f.year&&B.month===f.month});
return S>=0?S:void 0};
N7x=function(f){if(!f)return!1;try{if(f.host&&f.host.tagName==="YT-FORMATTED-STRING"&&f.host.id==="contenteditable-textarea"||f.nodeType===Node.ELEMENT_NODE&&f.tagName==="YTD-COMMENTBOX")return!0}catch(S){return!1}return N7x(f.parentNode)};
i1=function(f){return f?!(f.tagName!=="A"||!f.href||!f.classList.contains("yt-simple-endpoint")):!1};
M$9=function(f){return f?f.tagName==="IMG"&&f.classList.contains("emoji"):!1};
Z6N=function(f,S,B){if(!f)return null;var G=i1(f);if(G&&B)return S=f.pathname.substring(f.pathname.indexOf("/channel/")+9),document.createTextNode("@"+S);if(G&&!B)return document.createTextNode("");if(M$9(f))return B=f.alt,f=f.dataset.emojiId,!f&&S&&(S=_.He(S,B))&&S.isCustomEmoji&&(f=S.emojiId),f?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+f+">"):document.createTextNode(B);G=f.cloneNode(!1);for(var g=0;g<f.childNodes.length;++g){var b=Z6N(f.childNodes[g],S,B);b&&G.appendChild(b)}return G};
qV=function(f){return f?i1(f)?f:qV(f.lastChild):null};
t$j=function(f){return f?i1(f)?f:t$j(f.firstChild):null};
u5M=function(f){if(!f)return null;for(var S=f.previousSibling;S;)if(S.nodeType===Node.ELEMENT_NODE&&S.nodeName==="BR")S=S.previousSibling;else if(S.nodeType===Node.TEXT_NODE&&/\s+/.test(S.textContent))S=S.previousSibling;else break;(S=qV(S))?f=S:f=(f=f.parentNode)?qV(f.previousElementSibling):null;return f};
aFj=function(f){if(!f)return null;for(var S=f.nextSibling;S;)if(S.nodeType===Node.ELEMENT_NODE&&S.nodeName==="BR")S=S.nextSibling;else if(S.nodeType===Node.TEXT_NODE&&/\s+/.test(S.textContent))S=S.nextSibling;else break;return(S=t$j(S))?S:aFj(f.parentNode)};
yIW=function(f){var S=_.$V(),B=S.JSC$9306_getStartNode();if(!N7x(B.parentNode))return null;S=S.JSC$9306_getStartOffset();if(B.nodeType===Node.TEXT_NODE){var G=_.kv(B,i1);if(G){if(f&&S===0||!f&&S===B.length)return G}else{if(f&&S===B.length)return!B||B.nodeName==="BR"||B.nextElementSibling&&_.Q1(B.nextElementSibling,"display")==="block"?null:t$j(B.nextElementSibling);if(!f&&S===0)return B?qV(B.previousElementSibling):null}}if(B.nodeType===Node.ELEMENT_NODE)if(f){if(0<=S&&S<B.childNodes.length)return t$j(B.childNodes[S])}else if(0<
S&&S<=B.childNodes.length)return qV(B.childNodes[S-1]);return null};
WVW=function(f,S,B){if(!f)return null;if(f.nodeType===Node.TEXT_NODE)if(B){var G=u5M(f);if(G&&!/^\s+\S/.test(f.wholeText.substr(0,S)))return G}else if((G=aFj(f))&&!/\S\s+/.test(f.wholeText.substr(S,f.wholeText.length)))return G;return f.nodeType===Node.ELEMENT_NODE?B?u5M(f.childNodes[S]):aFj(f.childNodes[S]):WVW(f.parentNode,S,B)};
cIN=function(f){if(f.hasChildNodes())switch(f.tagName){case "DIV":case "A":case "SPAN":var S="";for(f=f.firstChild;f;f=f.nextSibling)S+=cIN(f);return S;default:return""}else switch(f.nodeType){case 3:return f.textContent;default:return""}};
YV=function(f,S){return f.year===S.year&&f.month===S.month&&f.day===S.day};
r5=function(f,S){return f.year!==S.year?f.year<S.year:f.month!==S.month?f.month<S.month:f.day<S.day};
lFN=function(f){return{year:f.getFullYear(),month:f.getMonth(),day:f.getDate()}};
fOQ=function(f){var S=LkT;S=S===void 0?LkT:S;S(new Date(f.year,f.month,f.day))};
j3=function(f){return lFN(new Date(Number(f.seconds)*1E3))};
oSG=function(f){return f.year!==void 0&&f.month!==void 0&&f.day!==void 0};
SDx=function(f){return f.start!==void 0&&f.end!==void 0};
BfQ=function(f){return SDx(f)?f.start:f};
GOj=function(f){return SDx(f)?f.end:void 0};
elN=function(f,S){for(var B=[],G=new Date(f.start.year,f.start.month);G.getFullYear()<f.end.year||G.getFullYear()===f.end.year&&G.getMonth()<=f.end.month;){var g=B,b=g.push,z=G.getFullYear(),X=G.getMonth(),w=f,F=S,V=void 0,J=[],P=Object.freeze({extraCssClass:"invisible"}),d=new Date(z,X),Q=lFN(d);d=d.getDay();for(var x=lFN(new Date);Q.month===X;){d!==gSV&&V||(V=Array.from({length:7}).fill(P),J.push(V));var E={date:{year:z,month:X,day:Q.day},extraCssClass:"",debugClass:""};E.extraCssClass=F(E.date,
Q,x,w).trim();V[(d-gSV+7)%7]=E;Q=Q.day===sE9(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};d=(d+1)%7}b.call(g,{weeks:J,monthLabel:OC.SHORTMONTHS[X]+" "+z,year:z,month:X,monthLabelExtraCssClass:J[0][2]===P?"shift-down-label":""});G.setMonth(G.getMonth()+1)}return B};
bU1=function(f,S){S=S.months.findIndex(function(B){return B.year===f.year&&B.month===f.month});
return S>=0?S:void 0};
zlW=function(f,S){a:{var B=B===void 0?[2,3]:B;B=_.m(B);for(var G=B.next();!G.done;G=B.next()){var g=new Date;if((new mZj(G.value)).parse(S,g,{validate:!0})){g.setHours(0,0,0,0);S=g;break a}}S=null}if(!S)return{isValid:!1,value:void 0};S=lFN(S);B=f.end;return r5(S,f.start)||r5(B,S)?{isValid:!1,value:void 0}:{isValid:!0,value:S}};
TfT=function(f){var S=Rls;S=S===void 0?Xax:S;var B=f.columnsToShow||[],G=wax(f.columnDimensions,f.columnsToShow,f.leftFloatingColumns,S);return B.map(function(g,b){var z=f.columns[g];if(z===void 0)throw Error("Nh");var X=G?G[b]:"";var w=f.getCustomTooltip?f.getCustomTooltip(g,z.headerTooltipParagraphs):z.headerTooltipParagraphs;var F=hls(f,g);return{type:g,index:b,style:X,classes:F,headerName:z.headerName||"",headerIcon:z.headerIcon,headerTooltipParagraphs:w||[],headerTooltipHelpContext:z.headerTooltipHelpContext,
sortOrders:z.sortOrders||[],selectionState:z.isSelectionCheckbox?f.selectionState:void 0}})};
hls=function(f,S){var B=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],G=f.columns[S];if(G===void 0)return"";var g=B.includes("DEFAULTS")&&G.cssClass?[G.cssClass]:[];if(B.includes("SORTING")){G.sortOrders&&G.sortOrders.length&&g.push("sortable");if(f.sorting&&f.sorting.columnType===S)a:switch(f.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var b="column-sorted";break a;default:b=""}else b="";b&&g.push(b)}B.includes("FLOATING")&&(S=f.columnsToShow.indexOf(S),f.leftFloatingColumns&&S<f.leftFloatingColumns&&
g.push("floating-column"),f.leftFloatingColumns&&S===f.leftFloatingColumns-1&&g.push("last-floating-column"));B.includes("RIGHT_ALIGN")&&G.rightAlignHeader&&g.push("right-align");return g.filter(function(z){return z}).join(" ")};
wax=function(f,S,B,G){B=B===void 0?0:B;G=G===void 0?Xax:G;if(f){var g=[],b=0;FlK(f,S,G).forEach(function(z,X){var w="min-width:"+z.minWidth+"px;padding-left:"+z.paddingLeft+"px;padding-right:"+z.paddingRight+"px;flex:"+z.flexGrow+" 0 "+z.minWidth+"px;";z.maxWidth!==Infinity&&(w=[w,"max-width:"+z.maxWidth+"px;"].join(""));b>0&&X<B&&(w=[w,"left:"+b+"px;"].join(""));g.push(w);b+=z.minWidth+z.paddingLeft+z.paddingRight});
return g}};
FlK=function(f,S,B){B=B===void 0?Xax:B;return S.map(function(G,g){G=f&&f[G]||{};var b=g===0?B.paddingLeftFirstColumn:B.padding;G.paddingLeft!==void 0&&(b=G.paddingLeft);g=g===S.length-1?B.paddingRightLastColumn:B.padding;G.paddingRight!==void 0&&(g=G.paddingRight);return{paddingLeft:b,paddingRight:g,minWidth:G.minWidth!==void 0?G.minWidth:B.minWidth,maxWidth:G.maxWidth!==void 0?G.maxWidth:B.maxWidth,flexGrow:G.flexGrow!==void 0?G.flexGrow:B.flexGrow}})};
VHK=function(f){var S=f.reduce(function(G,g){var b=g.columnId,z={};g.headerText&&(z.headerName=_.ac(g.headerText));g.rightAlignHeader&&(z.rightAlignHeader=g.rightAlignHeader);var X;if((X=g.headerIcon)==null?0:X.iconType)z.headerIcon=_.F_(g.headerIcon.iconType);G[b]=z;return G},{}),B=f.filter(function(G){return!G.hideColumn}).map(function(G){return G.columnId});
f=f.filter(function(G){return!!G.dimensions}).reduce(function(G,g){G[g.columnId]=g.dimensions;
return G},{});
return{columns:S,columnsToShow:B,columnDimensions:f}};
_.JzT=function(f){return f?f.simpleText?f.simpleText:f.runs?f.runs.map(function(S){return S.text}).join(""):"":""};
iUM=function(f){var S=f.data;var B=f.onTap;var G=f.isSelected;var g=f.onFocusIn;if(!S)return{};f=PN1(S);G===void 0&&(G=S==null?void 0:S.isSelected);var b;return{text:vSM(S,f),startIcon:(b=S.icon)==null?void 0:b.iconType,state:G?0:2,type:0,onTap:Kls(S,B),accessibilityLabel:dZN(S,f),onFocusIn:function(){return g==null?void 0:g()}}};
vSM=function(f,S){if(!S)return f.text?_.JzT(f.text):void 0};
Kls=function(f,S){return function(B){S==null||S(B,f)}};
PN1=function(f){f=f.style&&f.style.styleType;return!CLA&&f==="STYLE_EXPLORE_LAUNCHER_CHIP"};
dZN=function(f,S){if(S){var B,G,g;return(g=(B=f.accessibilityData)==null?void 0:(G=B.accessibilityData)==null?void 0:G.label)!=null?g:vSM(f,!1)}};
xV=function(f){return{signalAction:{signal:f}}};
$Z1=function(){return _.nL("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?HUs:_.qDx};
QZG=function(f,S){f=f===void 0?"SOFT_RELOAD_PAGE":f;S=S===void 0?49504:S;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.B2(_.Jf("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:S}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:f}}]}}}};
YD9=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.B2(_.Jf("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:$Z1()}};
rzV=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.B2(_.Jf("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:$Z1()}};
jZN=function(f,S){var B=_.B2(_.Jf("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),G=_.B2(_.Jf("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),g={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.B2(_.Jf("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};g.serviceEndpoint=f?f:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[xV("SOFT_RELOAD_PAGE")]}};return{title:B,bodyText:G,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:g},
style:{value:S!=null?S:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
xZN=function(f){f=f===void 0?{}:f;return{title:_.B2(f.localizedZeroStateTitleText===void 0?"":f.localizedZeroStateTitleText),bodyText:_.B2(f.localizedZeroStateMessage===void 0?"":f.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.B2(f.localizedZeroStateButtonText===void 0?"":f.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[OUG]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
_.kOA=function(f,S,B,G,g,b,z,X){G=G===void 0?!1:G;g=g===void 0?!1:g;b=b===void 0?0:b;z=z===void 0?-Infinity:z;X=X===void 0?!1:X;var w=[],F=_.B2(_.Jf("SMART_DOWNLOADS",void 0,"Smart downloads"));z=_.B2(ESN(b,z,f.length));b=void 0;G?f.length>0?b=LlQ(f,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.K("kevlar_manual_downloads_above"),F,z):X?b={alertBannerViewModel:{heading:{content:B.localizedOptInBannerTitleText===void 0?"":B.localizedOptInBannerTitleText},body:{content:B.localizedPromptMessage===
void 0?"":B.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Jf("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.Jf("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:_.WpK}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:g&&(b={backgroundPromoRenderer:{bodyText:_.B2(_.Jf("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"}}}):g&&(b={alertBannerViewModel:{heading:{content:B.localizedOptInBannerTitleText===void 0?"":B.localizedOptInBannerTitleText},
body:{content:B.localizedOptInMessage===void 0?"":B.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Jf("TURN_ON",void 0,"Turn on"),accessibilityText:_.Jf("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}}}}}});B=_.B2(_.Jf("YOUR_DOWNLOADS",void 0,"Your downloads"));g=void 0;S.length>0?(g=void 0,_.K("kevlar_display_downloads_numbers")&&(g=_.B2(_.PK("VIDEO_COUNT",S.length))),g=LlQ(S,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,B,g)):G||f.length||(g={backgroundPromoRenderer:{bodyText:_.B2(_.Jf("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}}}});b&&!_.K("kevlar_manual_downloads_above")&&w.push({richSectionRenderer:{content:b,loggingDirectives:{clientVeSpec:{uiType:139572}}}});g&&w.push({richSectionRenderer:{content:g,loggingDirectives:{clientVeSpec:{uiType:51721}}}});b&&_.K("kevlar_manual_downloads_above")&&w.push({richSectionRenderer:{content:b,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(S.length>0||G&&f.length>0)&&w.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.B2(_.Jf("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:w}};
_.sZK=function(f){return nSW(f,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.DZT=function(f){return nSW(f,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
nSW=function(f,S){var B=[];f=LlQ(f,S,!0);B.push({richSectionRenderer:{content:f}});return{contents:B}};
LlQ=function(f,S,B,G,g){B=B===void 0?!1:B;var b="RESPONSIVE_SIZE_STANDARD";_.K("kevlar_modern_downloads_compact")?b="RESPONSIVE_SIZE_COMPACT":_.K("kevlar_modern_downloads_extra_compact")&&(b="RESPONSIVE_SIZE_EXTRA_COMPACT");f={isExpanded:B,contents:EC(f),entitySelectorType:S,responsiveContainerConfiguration:{responsiveSize:b}};G&&(f.title=G);g&&(f.subtitle=g);B||(_.K("kevlar_smart_downloads_show_more_button")?(f.showMoreButton={buttonRenderer:{accessibility:{label:_.Jf("SHOW_MORE",void 0,"Show more")},
icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.B2(_.Jf("SHOW_MORE",void 0,"Show more"))}},f.showLessButton={buttonRenderer:{accessibility:{label:_.Jf("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.B2(_.Jf("SHOW_LESS",void 0,"Show less"))}}):(f.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.Jf("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}}}},f.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.Jf("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}}}},f.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.Jf("VIEW_ALL",void 0,"View all"),accessibilityText:_.Jf("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:oc("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:f}};
EC=function(f){var S=[];f=_.m(f);for(var B=f.next();!B.done;B=f.next())if(B=B.value,LpN(B)){var G=S,g=G.push;var b=void 0;if(B==null?0:(b=B.videoEntity)==null?0:b.videoId){b=UA(_.W2().getState(),B.videoEntity.videoId);var z=_.W2().getState();var X=_.XV(B.videoEntity.videoId,"mainVideoEntity");z=!!_.QI(z.entities)[X];z={videoId:B.videoEntity.videoId,title:Gc(B.videoEntity.title),shortBylineText:Gc(B.channelEntity.title),thumbnail:B.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:z&&_.K("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:LnA(B.videoEntity.videoId,b,B.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.Jf("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};B.videoEntity.lengthSeconds&&(z.thumbnailOverlays=lSs(B.videoEntity.lengthSeconds,b));z.isWatched=b>0;_.K("kevlar_modern_downloads_page")&&(z.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:B.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.Jf("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},z.badges=void 0);B=z}else B={};g.call(G,{richItemRenderer:{content:{videoRenderer:B},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(EmK(B)){G=S;g=G.push;var w=X=b=void 0,F=void 0,V=void 0,J=void 0,P=void 0,d=void 0,Q=void 0,x=void 0,E=void 0,U=void 0;z=B.mainPlaylistEntity.playlistId;var A=B==null?void 0:(U=B.mainPlaylistEntity)==null?void 0:(E=U.thumbnailStyleData)==null?void 0:(x=E[0])==null?void 0:(Q=x.value)==null?void 0:(d=Q.collageThumbnail)==
null?void 0:d.coverThumbnail;if(z&&A){d=k6V(z);!_.K("enable_offline_playlist_page")&&(B==null?0:(P=B.mainPlaylistEntity)==null?0:P.videos)&&(P=B==null?void 0:(J=B.mainPlaylistEntity)==null?void 0:(V=J.videos)==null?void 0:V[0],V=_.mW(P).entityId,V=JSON.parse(V).videoId,V!==void 0&&(J=UA(_.W2().getState(),V),d=_.Sf(V,z,void 0,void 0,J)));V=[];if(B==null?0:(F=B.mainPlaylistEntity)==null?0:(w=F.videos)==null?0:w.length)V=[EfV(),Object.assign({},(X=xGN(B==null?void 0:B.mainPlaylistEntity.videos.length))!=
null?X:{})];B={playlistId:z,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:A}},navigationEndpoint:d,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:V,title:Gc(B.mainPlaylistEntity.title),shortBylineText:Gc(B==null?void 0:(b=B.channelEntity)==null?void 0:b.title),badges:[{metadataBadgeRenderer:{label:_.Jf("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.K("kevlar_modern_downloads_page")&&(B.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:IOV,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:z,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Jf("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},B.badges=void 0)}else B=void 0;g.call(G,{richItemRenderer:{content:{playlistRenderer:B},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return S};
ESN=function(f,S,B){f=f?UZT(f):"";S!==void 0&&isFinite(S)?S===0?S=_.Jf("UPDATING",void 0,"Updating..."):(S=cvG(new Date(S),new Date),S=_.Jf("UPDATED_TIME",{relative_time:S},"Updated "+S)):S="";var G="";f&&S&&(G=" \u2022 ");if(B&&_.K("kevlar_display_downloads_numbers")){B=_.PK("VIDEO_COUNT",B);if(f||S)G=" \u2022 ";return B+G+f+G+S}return f+G+S};
CNK=function(f){return qdT(f.entities).length};
_.pa1=function(f,S){var B=GAx(f.responsiveSize),G;f=!((G=f.responsiveMap)==null||!G.some(function(g){return g.containerSize==="CONTAINER_SIZE_NARROW"&&g.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:S,sizing:B,enableFullBleedForSingleCol:!1,isCompactList:B==="COMPACT"&&f}};
Azx=function(f,S){return _.w9(f.entities,"votingEntity",S)};
Nfs=function(f){if(f){var S;return((S=_.oy().resolve(_.fN(_.yU)))==null?0:S())?f.darkTheme:f.lightTheme}};
MH9=function(f,S){if(f.simpleText)return Object.assign({},f,{simpleText:tZ(f.simpleText,S)});if(!f.runs)return f;for(var B=Object.assign({},f,{runs:[]}),G=0,g=_.m(f.runs),b=g.next();!b.done;b=g.next())if(b=b.value,b.text)if(G+b.text.length<=S)B.runs.push(b),G+=b.text.length;else return B.runs.push(Object.assign({},b,{text:tZ(b.text,S-G)})),B;return f};
ZUW=function(f,S){return _.w9(f.entities,"chipBarStateEntity",S)};
tHG=function(f,S){return _.w9(f.entities,"chipEntity",S)};
aON=function(f,S,B,G){return function(){var g=uAM.has(f.displayType)&&f.selected,b=g&&f.deselectCommand?f.deselectCommand:f.tapCommand;!b||g&&G||_.MB(b,{form:{element:S==null?void 0:S.value}});B==null||B()}};
yzj=function(f){switch(f){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""}};
WlM=function(f,S){return{triggeringElement:f,onDwellTriggeredFn:function(){var B={triggeringElement:f,loadVideoPreviewEventData:S},G=document.querySelector(".video-preview");G&&G.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:B}))},
onDwellEndFn:function(){var B=document.querySelector(".video-preview");B&&B.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
czK=function(f,S){var B=_.oy().resolve(_.fN(NJs)),G=function(){var g=S();return B&&g?WlM(f.value,g):null};
_.jp(function(){var g=G();B&&g&&Promise.resolve().then(function(){B.registerElement(g)});
_.Ov(function(){B&&g&&Promise.resolve().then(function(){M4x(B,g)})})},"csPUge")};
f8T=function(f){var S=f.dataset.resizeObserverId;if(S)return S;S=""+lO1++;return f.dataset.resizeObserverId=S};
ohj=function(f,S){var B=f8T(f);Ly.has(B)||Ly.set(B,new Set);Ly.get(B).add(S);kV.has(B)&&S(Object.assign({},{target:f},kV.get(B)))};
SP1=function(f){f=_.m(f);for(var S=f.next();!S.done;S=f.next()){S=S.value;var B=f8T(S.target),G=Object.assign({},{target:S.target},kV.get(B));if(G!=null&&G.contentRect?G.contentRect.width!==S.contentRect.width||G.contentRect.height!==S.contentRect.height:1)for(kV.set(B,{borderBoxSize:S.borderBoxSize,contentBoxSize:S.contentBoxSize,contentRect:S.contentRect,devicePixelContentBoxSize:S.devicePixelContentBoxSize}),B=_.m(Ly.get(B)||[]),G=B.next();!G.done;G=B.next())G=G.value,G(S)}};
Gg1=function(){return ny?ny:ny=new BrG(SP1)};
gh9=function(f,S){var B=f8T(f);Ly.has(B)&&(Ly.get(B).delete(S),Ly.get(B).size===0&&(Ly.delete(B),kV.delete(B),ny.unobserve(f),delete f.dataset.resizeObserverId));Ly.size===0&&ny&&(ny.disconnect(),ny=void 0)};
b$T=function(f,S){var B=_.oy().resolve(f_);return e4V.map(function(G){return B.observe(f,S,G)})};
mdV=function(f){var S=_.oy().resolve(f_);f.forEach(function(B){S.unobserveByKey(B)})};
_.XjK=function(f,S){var B=Object.assign({},z4V,S);S=_.m(Qy1());var G=S.next().value,g=S.next().value,b=function(z){var X=z.contentRect.height;if((z=z.contentRect.width)||X||B.canHaveZeroSize)G.width()===z&&G.height()===X||g(G,{height:X,width:z})};
_.j9(function(){var z=f instanceof HTMLElement?f:f.value,X=R4A(b,B.throttleMs),w=[];B.useVisibilityObserver&&(w=b$T(z,function(F,V){requestAnimationFrame(function(){V==="visible"?(ohj(z,X),Gg1().observe(z)):gh9(z,X)})}));
w.length||(ohj(z,X),Gg1().observe(z));_.Ov(function(){w.length&&(mdV(w),w.length=0);gh9(z,X)})});
return G};
h4N=function(f){var S=f.data;var B=f.callback;var G=f.enableSingleChipSelection;var g=f.disableChipsScrollAnimation;var b=_.us("div"),z=x5(!1),X=x5(0);f={};f=_.m(P8(S.autoselectedChipIndex!=null?(f[S.autoselectedChipIndex]=!0,f):{}));var w=f.next().value,F=f.next().value,V=function(){var zj=b.value;return zj==null||zj.scrollLeft-1<=0},J=function(){var zj=b.value;
return zj==null?!1:zj.scrollLeft+1>=(zj==null?NaN:zj.scrollWidth)-(zj==null?NaN:zj.clientWidth)};
f=_.m(P8(V()));var P=f.next().value,d=f.next().value;f=_.m(P8(J()));var Q=f.next().value,x=f.next().value;f=S.isHorizontallyScrollable;var E=function(zj){b.value!=null&&(_.nL("HTML_DIR")==="rtl"&&(zj=-zj),b.value.scrollBy({left:zj,behavior:g?"instant":"smooth"}))},U=function(){E(-320)},A=function(){E(320)},t=_.iF(function(zj){z.value=!0;
X.value=zj.clientX}),M=_.iF(function(zj){if(z.value){zj=zj.clientX;
var VN=zj-X.value;X.value=zj;var $Q;($Q=b.value)==null||$Q.scrollBy({left:-VN})}}),a=_.iF(function(){var zj=V(),VN=J();
zj!==P&&d(zj);VN!==Q&&x(VN)});
ls("pointerup",function(){z.value&&(z.value=!1)});
var l={},mx={};return _.T("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},Wv(S.title,function(){return _.T("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.T("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},S.title),wj1(S.overflowButton))}),_.T("div",{class:"ytChipsShelfViewModelChipsShelfContent"},Wv(S.previousButton!=null,function(){var zj={};
return _.T("div",{class:_.K9("ytChipsShelfViewModelLeftArrowContainer",(zj.ytChipsShelfViewModelLeftArrowContainerIsHidden=P,zj))},wj1(S.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:U}}))}),_.T("div",{el:b,
"on:pointerdown":t,"on:pointermove":M,"on:scroll":a,class:_.K9("ytChipsShelfViewModelChipsScrollContainer",(l.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=!!f,l))},_.T("div",{class:_.K9("ytChipsShelfViewModelChipsContainer",(mx.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=!!f,mx.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!!f&&!1,mx))},(S.contents||[]).map(function(zj,VN){return _.T("div",{class:"ytChipsShelfViewModelChipWrapper"},wj1(zj,
{chipViewModel:{callback:function($Q,OV){if(G){var rW={};F((rW[VN]=OV,rW))}else rW={},F(Object.assign({},w,(rW[VN]=OV,rW)));B==null||B($Q,OV,VN)},
disableDeselection:G,selected:!!w[VN]}}))}))),Wv(S.nextButton!=null,function(){var zj={};
return _.T("div",{class:_.K9("ytChipsShelfViewModelRightArrowContainer",(zj.ytChipsShelfViewModelRightArrowContainerIsHidden=Q,zj))},wj1(S.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",onClick:A}}))})))};
FOM=function(f,S,B,G,g){f=S?f.switchOffCommand:f.switchOnCommand;if(G&&g)TrV(f,B,g);else{var b,z;(b=_.AZ({elementsCommand:f}))==null||(z=b.onclick)==null||z.call(b,B)}};
TrV=function(f,S,B){f=_.AZ({elementsCommand:f,additionalCommandArgs:{commandController:{onSuccess:function(){B(!1)},
onServerError:function(){B(!1)}}}});
if(f==null?0:f.onclick)f.onclick(S),B(!0)};
JCG=function(f){if(f)return _.H(f,VVG)};
i$x=function(f,S,B){if(S)return[PDA];switch(f){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[sC];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return B?[sC]:[vhj,sC];case "TRANSFER_STATE_PAUSED_BY_USER":return[KO9,sC];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[ddx,sC];default:return[PDA]}};
H$G=function(f,S,B,G){return i$x(f,S,G).map(function(g){var b=g.text,z=g.iconType,X=g.videoAction;g=g.playlistAction;b=b?{content:b}:void 0;z=z&&{sources:[{clientResource:{imageName:z}}]};var w=(0,_.$v.unsafeClone)(B);if(w){var F=_.H(w,_.V5),V=_.H(w,_.JD);F&&X?F.action=X:V&&g&&(V.action=g)}return{title:b,leadingImage:z,rendererContext:w&&{commandContext:{onTap:{innertubeCommand:w}}}}})};
qPA=function(f){f=_.tD(f.rendererContext);var S;return(S=_.H(f,_.JD))==null?void 0:S.playlistId};
$dQ=function(f){var S;return(S=f.listItems)==null?void 0:S.some(function(B){var G;return _.ux((G=_.H(B,_.ix))==null?void 0:G.rendererContext)})};
YP1=function(f){var S;return(S=f.listItems)==null?void 0:S.some(function(B){B=_.H(B,_.ix);return!!_.H(B==null?void 0:B.leadingAccessory,Qq1)})};
O$A=function(f){var S=f.element;var B=f.veType;var G=f.storedVisualElement===void 0?null:f.storedVisualElement;var g=f.elementIndex===void 0?0:f.elementIndex;f=f.clientYouTubeData;var b=_.xc();b!==rCx&&(jq9.clear(),rCx=b);if(S.visualElement&&jq9.has(S.visualElement))return null;if(G&&jq9.has(G))return S.visualElement=G,null;B=_.dR(_.ik(),{veType:B,elementIndex:g,clientYouTubeData:f});if(!B)return null;S.visualElement=B;jq9.add(B);return B};
_.Dp=function(f,S,B,G){B=B===void 0?null:B;G=G===void 0?EYN:G;var g=g===void 0?null:g;En(function(){if(S){B instanceof Function&&(B=B());var b=O$A({element:S,veType:f,storedVisualElement:B,clientYouTubeData:void 0});b&&(nYT(S,g),G(b))}})};
IY=function(f){var S=_.oy().resolve(_.fN(_.yU));return S!=null&&S()?f.darkThemeColorPalette:f.lightThemeColorPalette};
Cy=function(f){return{primaryTextColor:UC(f,0),secondaryTextColor:UC(f,1),optionColor:UC(f,2),backgroundColor:UC(f,3),videoBackgroundColor:UC(f,4)}};
UC=function(f,S){if(f){switch(S){case 0:f=f.primaryTitleColor;break;case 1:f=f.secondaryTitleColor;break;case 2:f=f.surgeColor;break;case 3:f=f.section2Color;break;case 4:f=f.section3Color;break;default:return}if(f)return _.pn(f)}};
xdG=function(f){return f?_.AK(f):""};
Eh1=function(f){return(f==null?void 0:f.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
LO1=function(f,S){var B;return"linear-gradient(to bottom, "+((B=S==null?void 0:S.map(function(G){var g=f?G.darkThemeColor:G.lightThemeColor;return g?_.AK(g)+" "+((G==null?void 0:G.startLocation)||0)*100+"%":"transparent"}))==null?void 0:B.join(", "))+")"};
kgj=function(f,S,B,G,g){if(!((G==null?0:G.height)&&(G==null?0:G.width)))return{size:0};var b=G.width;G=G.height;if(g)return S==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||S==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&b>G?{size:312/FeK}:S==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(B!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||f!==1&&f!==2||S!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&S!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&S!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(S==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||S==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||G===b)switch(f){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(S==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||G>b)switch(f){case 1:case 3:return{size:240*TyV};default:return{size:360*TyV}}switch(f){case 1:case 2:return{size:1/FeK*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.nh1=function(f){if(!("matchMedia"in window))return _.CL(Error("Oh")),function(){return!1};
var S=window.matchMedia(f);f=_.m(_.hj(S.matches,void 0,"jLJc8e"));var B=f.next().value,G=f.next().value,g=function(b){G(b.matches)};
S.addEventListener?(S.addEventListener("change",g),_.Ov(function(){S.removeEventListener("change",g)})):S.addListener&&(S.addListener(g),_.Ov(function(){S.removeListener(g)}));
return B};
sq1=function(f){return f==="IMAGE_BANNER_STYLE_INSET"||f==="IMAGE_BANNER_STYLE_UNKNOWN"};
Ddx=function(){if(!("matchMedia"in window))return _.CL(Error("Oh")),function(){return 0};
var f=O6(function(){return window.matchMedia("(max-width: 527.9px)")}),S=O6(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),B=O6(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),G=O6(function(){return window.matchMedia("(min-width: 1024px)")}),g=_.m(_.hj(f.matches,void 0,"og9kEc")),b=g.next().value,z=g.next().value;
g=_.m(_.hj(S.matches,void 0,"ybDWCb"));var X=g.next().value,w=g.next().value;g=_.m(_.hj(B.matches,void 0,"o0Gfh"));var F=g.next().value,V=g.next().value;g=_.m(_.hj(G.matches,void 0,"yqUUgd"));var J=g.next().value,P=g.next().value,d=O6(function(){return function(U){z(U.matches)}}),Q=O6(function(){return function(U){w(U.matches)}}),x=O6(function(){return function(U){V(U.matches)}}),E=O6(function(){return function(U){P(U.matches)}});
_.j9(function(){f.addEventListener?(f.addEventListener("change",d),S.addEventListener("change",Q),B.addEventListener("change",x),G.addEventListener("change",E)):f.addListener&&(f.addListener(d),S.addListener(Q),B.addListener(x),G.addListener(E));_.Ov(function(){f.removeEventListener?(f.removeEventListener("change",d),S.removeEventListener("change",Q),B.removeEventListener("change",x),G.removeEventListener("change",E)):f.removeListener&&(f.removeListener(d),S.removeListener(Q),B.removeListener(x),
G.removeListener(E))})});
return function(){return b()?1:X()?2:F()?3:J()?4:0}};
I8N=function(f){var S=0;f=_.m([f.title,f.metadata,f.actions,f.description,f.attribution]);for(var B=f.next();!B.done;B=f.next())B.value&&S++;return S};
UdT=function(f){return f===1||f===2?1:0};
pj9=function(f){var S,B=((S=_.oy().resolve(_.fN(_.yU)))==null?0:S())&&f.data.darkThemeImage?f.data.darkThemeImage:f.data.image;S=_.T("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.T("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},B?_.T(_.f9,{data:B,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),CDW(f.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));B=_.T(_.oY,{text:f.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var G=f.data;if(G.bodyText){var g=[];G=_.m(G.bodyText);for(var b=G.next();!b.done;b=G.next())g.push(_.T(_.oY,{text:b.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else g=_.T(_.gg,null);return _.T("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},S,B,g,CDW(f.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.T(_.oY,{text:f.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.T(_.oY,{text:f.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
NrG=function(f){f=(new AC1).parse(f);return(new Xv).render(f).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(S){var B=S.split(":").map(Number),G=0,g=0;if(B.length===3)B=_.m(B),G=B.next().value,g=B.next().value,B=B.next().value;else if(B.length===2)B=_.m(B),g=B.next().value,B=B.next().value;else if(B.length===1)B=_.m(B).next().value;else throw Error("Ph");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(G*3600+g*60+B)+'" role="button">'+S+"</span>"})};
MVG=function(f){f=_.m(f.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var S=f.next(),B={};!S.done;B={clickHandler$jscomp$4:void 0},S=f.next()){S=S.value;B.clickHandler$jscomp$4=function(g){g=Number(g.target.getAttribute("data-time"));if(isNaN(g))throw Error("Qh");var b;(b=_.hD())==null||b.seekTo(g,!0)};
var G=function(g){return function(b){b.key!=="Enter"&&b.key!=="Space"||(0,g.clickHandler$jscomp$4)(b)}}(B);
S.setAttribute("tabindex","0");S.removeEventListener("click",B.clickHandler$jscomp$4);S.removeEventListener("keydown",G);S.addEventListener("click",B.clickHandler$jscomp$4);S.addEventListener("keydown",G)}};
Z$s=function(){return _.T("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.T(py,{percentWidth:100}),_.T(py,{animationDelay:200}),_.T(py,{animationDelay:400}),_.T(py,{animationDelay:600}),_.T(py,{animationDelay:800,percentWidth:60}),_.T("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.T(py,{percentWidth:100}),_.T(py,{animationDelay:200}),_.T(py,{animationDelay:400}),_.T(py,{animationDelay:600,percentWidth:50}))};
py=function(f){return _.T("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(f.percentWidth===void 0?100:f.percentWidth)+"%"},_.T("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(f.animationDelay===void 0?0:f.animationDelay)+"ms"}))};
tV1=function(){var f=_.m(_.hj(function(){return""},void 0,"v2wS5e")),S=f.next().value;
return[function(){return S()()},
f.next().value]};
a8Q=function(f){f=f===void 0?{}:f;return{title:_.B2(f.localizedOptInBannerTitleText===void 0?"":f.localizedOptInBannerTitleText),titleLength:19,subtitle:_.B2(f.localizedOptInMessage===void 0?"":f.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.B2(_.Jf("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:_.B2(_.Jf("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:[umM]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
yCG=function(f,S){var B=S=S===void 0?{}:S;S=B.offlineTitleText===void 0?"":B.offlineTitleText;var G=B.offlineDescriptionText===void 0?"":B.offlineDescriptionText,g=B.formattedSupplementalText,b=B.actionButtonText===void 0?"":B.actionButtonText,z=B.titleText===void 0?"":B.titleText;B=B.descriptionText===void 0?"":B.descriptionText;var X={style:"STYLE_PRIMARY",size:"SIZE_DEFAULT",text:_.B2(b),isDisabled:!1,navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://www.youtube.com/premium",
webPageType:"WEB_PAGE_TYPE_PROMO"}},urlEndpoint:{url:"https://www.youtube.com/premium"}},loggingDirectives:{clientVeSpec:{uiType:266213}}};f||(z=S,B=G,X={style:"STYLE_MONO_TONAL",size:"SIZE_DEFAULT",text:_.B2(b),isDisabled:!0,loggingDirectives:{clientVeSpec:{uiType:266213}}});return{title:_.B2(z),subtitle:_.B2(B),supplementalText:g,primaryButton:{buttonRenderer:X},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[umM]},
loggingDirectives:{clientVeSpec:{uiType:266212}}}};
WO1=function(f,S){f=f?UZT(f):"";S!==void 0&&isFinite(S)?S===0?S=_.Jf("UPDATING",void 0,"Updating..."):(S=cvG(new Date(S),new Date),S=_.Jf("UPDATED_TIME",{relative_time:S},"Updated "+S)):S="";var B="";f&&S&&(B=" \u2022 ");return _.B2(f+B+S)};
f4Q=function(f,S,B,G,g,b){S=S===void 0?0:S;var z=cCx[S],X=z.title,w=z.iconType,F=z.topButtonRenderer,V=z.sectionClientVE;z=z.videoClientVE;var J;if(S!==1||f.length){B=[];f=_.m(f);for(G=f.next();!G.done;G=f.next()){var P=G.value;if(LpN(P))B.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:P.videoEntity.videoId,title:Gc(P.videoEntity.title),shortBylineText:Gc(P.channelEntity.title),thumbnail:P.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:P.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.Jf("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:z}}}}}});else if(EmK(P)){G=B;var d=G.push;var Q=void 0,x=void 0,E=void 0,U=void 0,A=void 0,t=void 0,M=void 0,a=void 0,l=P.mainPlaylistEntity.playlistId,mx=P==null?void 0:(a=P.mainPlaylistEntity)==null?void 0:(M=a.thumbnailStyleData)==null?void 0:(t=M[0])==null?void 0:(A=t.value)==null?void 0:(U=A.collageThumbnail)==null?void 0:U.coverThumbnail;U=k6V(l);if(!_.K("enable_offline_playlist_page")&&
(P==null?0:(E=P.mainPlaylistEntity)==null?0:E.videos)){b:{E=P==null?void 0:(x=P.mainPlaylistEntity)==null?void 0:x.videos;x=_.W2().getState().entities;if(E!=null&&E.length&&x)for(E=_.m(E),A=E.next();!A.done;A=E.next())if(A=_.mW(A.value).entityId,(A=JSON.parse(A).videoId)&&idM(x,A)==="TRANSFER_STATE_COMPLETE"){x=A;break b}x=""}x!==void 0&&(U=UA(_.W2().getState(),x),U=_.Sf(x,l,void 0,void 0,U))}x=sN9(_.Jf("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),k6V(l));P=l&&mx&&x?{playlistId:l,navigationEndpoint:U,
viewPlaylistText:x,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:mx}},title:Gc(P.mainPlaylistEntity.title),shortBylineText:Gc(P==null?void 0:(Q=P.channelEntity)==null?void 0:Q.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:l8M,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:l,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Jf("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:z}}}:
void 0;d.call(G,{gridPlaylistRenderer:P})}}z={gridRenderer:{items:B}};S===1&&(J=WO1(g,b))}else if(G){var zj=_.B2((d=B==null?void 0:B.localizedPromptMessage)!=null?d:"");z={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.B2(_.Jf("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.WpK}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.B2(_.Jf("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};J=WO1(g,b)}else zj=_.B2(_.Jf("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
z={};return{contents:[{shelfRenderer:{title:X,titleAnnotation:J,icon:{iconType:w},subtitle:zj,content:z,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:F}]}}}}],loggingDirectives:{clientVeSpec:{uiType:V}}}};
oz1=function(f,S,B,G,g,b,z,X,w,F,V){B=B===void 0?{}:B;G=G===void 0?{}:G;g=g===void 0?!1:g;b=b===void 0?!1:b;z=z===void 0?!1:z;X=X===void 0?!1:X;w=w===void 0?!1:w;F=F===void 0?0:F;V=V===void 0?-Infinity:V;if(!(S.length||f.length||g||X))return b?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:xZN(B)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.B2(_.Jf("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 J=[];f.length&&J.push(f4Q(f,0));X?J.push({contents:[{statementBannerRenderer:yCG(w,G)}]}):g?J.push(f4Q(S,1,B,z,F,V)):b&&J.push({contents:[{statementBannerRenderer:a8Q(B)}]});(g&&S.length||f.length)&&J.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.B2(_.Jf("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 J.map(function(P){return{itemSectionRenderer:P}})};
Ap=function(f,S){if(typeof f!=="object")return null;f=_.m(Object.entries(f));for(var B=f.next();!B.done;B=f.next()){var G=_.m(B.value);B=G.next().value;G=G.next().value;if(B===S)return B;if(G=Ap(G,S))return B+"."+G}return null};
NV=function(f){var S=f.content;return(f=f.styleRuns)&&S?{runs:f.map(function(B){var G={text:S.slice(B.startIndex,B.startIndex+B.length)};B.fontColor&&(G.textColor=B.fontColor);return G})}:{simpleText:S}};
GP1=function(f,S,B,G){var g=Sz1;G&&(f.quantity=G);if(!f.quantity||!f.maxQuantity)return{};G=f.minusButton;var b=f.plusButton,z,X,w,F;return{value:f.quantity,maxValue:f.maxQuantity,onChangeCallback:function(V){g(f,V)},
minusLabel:(z=_.H(G,BTM))==null?void 0:z.label,minimumReachedLabel:(X=_.H(G,BTM))==null?void 0:X.limitReachedLabel,plusLabel:(w=_.H(b,BTM))==null?void 0:w.label,maximumReachedLabel:(F=_.H(b,BTM))==null?void 0:F.limitReachedLabel,disabled:S,onRemoveCommand:B}};
Sz1=function(f,S){var B=f.quantityIncrementerEntityKey;if(B){var G={};G.quantity=S;_.WF(_.LF("quantityIncrementerEntity",B,G));f.onChangeCommand&&_.MB(f.onChangeCommand)}};
bax=function(f,S){(f=gz1(f))&&(S?eOW.push({command:f,sourceData:{},commandContext:void 0}):_.oy().resolve(_.S7).resolveCommand(f))};
gz1=function(f){return _.H(f,_.Un)};
mQx=function(){var f=window.performance.timeOrigin+window.performance.now(),S=(new _.MV).setSeconds(f/1E9);return _.$g(S,2,_.HO(f%1E9),0)};
Zp=function(f,S){var B=_.H(_.H(f,_.Un),zOV);B&&(S&&(B.serializedAdditionalMetadata=_.oO(S)),bax(f,!0))};
RON=function(f){switch(f){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"}};
XRx=function(){return!!_.nL("ID_TOKEN")};
TTW=function(f){return f instanceof Error&&f.cause instanceof wR1&&f.cause.rpcErrorCode!==void 0?!hOM.includes(f.cause.rpcErrorCode):!0};
Vij=function(){return _.tA(FhA,{authuser:""+(_.nL("SESSION_INDEX")||0)})};
tp=function(f,S,B,G){B=B===void 0?"MINI_APP_SDK_API_UNSPECIFIED":B;G=G===void 0?"":G;var g=new _.dO;B={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:G,sdkApi:B};f instanceof Error&&(g.message=f.message,g.name=f.name,f.cause instanceof wR1&&f.cause.rpcErrorCode!==void 0&&(B.rpcErrorCode=f.cause.rpcErrorCode));var b;(b=S.onError)==null||b.call(S,{loggingError:g,metadata:B})};
PUs=function(f,S,B,G){switch(f){case "MINI_APP_SOURCE_GAMESNACKS":return new u1(S,B,G);default:return new JTK(S,B,G)}};
vzK=function(f){switch(f){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"}};
KhQ=function(f){switch(f){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"}};
dQ9=function(f){switch(f){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"}};
iaW=function(){return Math.floor(Math.random()*4)+1};
HaK=function(f,S,B,G){f=_.m(Object.entries(f));for(var g=f.next(),b={};!g.done;b={message$jscomp$958:void 0},g=f.next()){var z=_.m(g.value);g=z.next().value;z=z.next().value;b.message$jscomp$958=z;S.push(setTimeout(function(X){return function(){G(!1);B(X.message$jscomp$958.text)}}(b),b.message$jscomp$958.delayMs));
Number(g)>0&&S.push(setTimeout(function(){G(!0)},b.message$jscomp$958.delayMs-400))}};
qzG=function(f,S){var B=B===void 0?EYN:B;_.K("mweb_fix_monitor_visibility_after_render")?f&&En(function(){nYT(f,S,B)}):En(function(){nYT(f,S,B)})};
QiQ=function(f){var S=f.data;var B=f.uniqueId;f=f.overrides;var G,g=((G=S.timedAnimationData)==null?void 0:G.animationTiming)||[];return _.T("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.T(sR,{settings:{uniqueId:B,timings:g,experimentEnabled:g.length>0,enabled:g.length>0}},$QK(S.buttonRenderer,{buttonRenderer:{buttonOverrides:f}})))};
OaM=function(f){YzA||(YzA=rTN(new _.pJ(1,void 0,void 0,ji1),0));var S=YzA.format(Math.floor(f));S=_.CJ==="be"||_.CJ==="bg"||_.CJ==="es"||_.CJ==="et"||_.CJ==="hu"||_.CJ==="ka"||_.CJ==="lv"||_.CJ==="pl"||_.CJ==="pt-PT"||_.CJ==="sq"?S.replace(new RegExp("^(\\d)"+ji1.GROUP_SEP.replace(".","\\.")+"(\\d+("+ji1.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):S;return f>=1E3&&f<=9999&&S[1]==="."&&(_.CJ==="sl"||_.CJ==="it")?S.replace(".",""):S};
xQV=function(f,S){ke("ytd-button-renderer",{data:f,className:S?S.className:"",overrides:S==null?void 0:S.buttonOverrides},uv)};
kPW=function(f,S,B,G){if(f)return G=G||f.likeStatus,S?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:G==="LIKE",isDisabled:!f.likesAllowed,defaultIcon:{iconType:B},defaultText:G==="LIKE"?f.likeCountWithUnlikeText:f.likeCountText,toggledText:G==="LIKE"?f.likeCountText:f.likeCountWithLikeText,defaultNavigationEndpoint:Ezs(f,"LIKE"),defaultServiceEndpoint:LhM(f,"LIKE"),toggledServiceEndpoint:LhM(f,"INDIFFERENT"),defaultTooltip:_.ac(f.likeCountTooltipText),toggledTooltip:_.ac(f.likeCountTooltipText),
targetId:f.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:G==="DISLIKE",isDisabled:!f.likesAllowed,defaultIcon:{iconType:B},defaultText:G==="DISLIKE"?f.dislikeCountWithUndislikeText:f.dislikeCountText,toggledText:G==="DISLIKE"?f.dislikeCountText:f.dislikeCountWithDislikeText,defaultNavigationEndpoint:Ezs(f,"DISLIKE"),defaultServiceEndpoint:LhM(f,"DISLIKE"),toggledServiceEndpoint:LhM(f,"INDIFFERENT"),defaultTooltip:_.ac(f.dislikeCountTooltipText),
toggledTooltip:_.ac(f.dislikeCountTooltipText)}};
Ezs=function(f,S){if(S==="LIKE")return f.likeCommand;if(S==="DISLIKE")return f.dislikeNavigationEndpoint};
LhM=function(f,S){var B;return(B=f.serviceEndpoints)==null?void 0:B.find(function(G){var g;return((g=_.H(G,_.aY))==null?void 0:g.status)===S})};
_.DQ1=function(f,S,B){return window.spf&&!_.K("web_disable_spfjs_client")?nzj(f,S,B):siW(f,S)};
nzj=function(f,S,B){var G=null,g=(new _.TM(function(b,z){var X={};if(S){X.method=S.method;var w=S.postParams||{};DCG(f,S)&&(w[_.nL("XSRF_FIELD_NAME")]=_.nL("XSRF_TOKEN"));X.postData=_.hY(w);S.type&&(X.type=S.type);w=S.headers}X.headers=xCK(f,w);_.K("debug_forward_web_query_parameters")&&(f=_.n2V(f,window.location.search));X.experimental_headers=X.headers;X.onError=function(F){F.err&&F.xhr&&(F.err.params={url:F.xhr.responseURL,response:F.xhr.responseText.substr(0,64)});z(F.err)};
X.onPartDone=function(F){B&&B.call(null,F.part)};
X.onDone=function(F){var V=I4x(F.response,"xsrf_token");yR(window.location.href,f)&&V&&_.k5("XSRF_TOKEN",V);if(V=I4x(F.response,"service_worker_killswitch"))_.k5("SERVICE_WORKER_KILLSWITCH",V),wX1();b(F.response)};
G=spf.request(f,X)})).then(UQA);
g.thenCatch(function(b){var z=b instanceof _.y1,X=b&&b.hasOwnProperty("params")&&b.params.response?b.params.response:"";b instanceof Error&&(X?z?iHs(b):X===')]}\'\n{"reload":"now"}'?iHs(b):(CUQ(b,f,X),pRM(b,X)?_.Lg(b):_.xH(b)):iHs(b));G&&G.abort()});
return g};
UQA=function(f){if(f.type==="multipart"){var S=f.timing;f=f.parts.reduce(function(B,G){Object.assign(B,G);return B},{});
f.timing=f.timing||{};Object.assign(f.timing,S);f.type="reduced"}return f};
siW=function(f,S){S=S===void 0?{}:S;var B=null,G=new _.TM(function(g,b){S.onFinish=function(z){if(z.readyState===XMLHttpRequest.DONE)if(z.status===200){if(z.responseType!=="json"){var X=z.response;X.substring(0,5)===")]}'\n"&&(X=X.substring(5));try{var w=JSON.parse(X)}catch(F){w=F}}else w=z.response;w instanceof Error?b(w):(X=I4x(w,"xsrf_token"),yR(window.location.href,f)&&X&&_.k5("XSRF_TOKEN",X),z=z.responseURL,window.performance&&window.performance.getEntriesByName?(X=window.performance.getEntriesByName(z).pop())?
z={responseStart:(0,_.fO)()-(X.responseEnd-X.responseStart)}:(Math.random()<.01&&(X=Error("bi"),X.params=z,_.Lg(X)),z={responseStart:-1}):z={responseStart:0},w.timing=w.timing||{},Object.assign(w.timing,z),g(w))}else b(Error("ai`"+z.status))};
(B=_.wO(f,S))||b(Error("ai`"+B.status))});
G.thenCatch(function(g){g instanceof Error&&(CUQ(g,f),pRM(g)&&(g.level="WARNING"))});
_.K("cancel_pending_navs")&&G.thenCatch(function(){B.abort()});
return G};
I4x=function(f,S){var B=f[S],G=f.parts;f.type==="multipart"&&G&&(B=(f=G.find(function(g){return S in g}))&&f[S]);
return B};
CUQ=function(f,S,B){var G=f.message||"";S={original:G,url:S};if(B)if(G=G.match(/position:?\s*(\d+)/)){G=G&&Number(G[1])?Number(G[1]):0;var g=Math.max(G-25,0);S.position=G;S.response=B.substring(g,G+25)}else S.response=B.substring(0,50);_.kH(f,S);try{f.message="JSON parse error"}catch(b){}};
pRM=function(f,S){f=f.message||"";f=!!(f.indexOf("<")>=0||f.indexOf("end of ")>=0||f.indexOf("Unterminated string")>=0||f.indexOf("Unexpected EOF"));if(!f&&S)for(var B=S.length,G=!1,g=0;g<B;g++)if(G&&S[g]==="\\")g++;else if(S[g]==='"')G=!G;else if(S[g]==="<"&&!G){f=!0;break}return f};
AT9=function(){return document.documentElement.hasAttribute("dark")};
_.NTM=function(f,S){if(f!=="GFEEDBACK"&&f!=="GUIDED_HELP")_.Dt(Error("ci`"+f));else{var B=_.oy().resolve(_.fN(_.o8));if(B&&(B=B.getCurrentPage())&&B.getServiceTrackingParams&&(B=B.getServiceTrackingParams()))for(var G=0,g;g=B[G++];)if(g.service===f){if(f=g.params)for(B=0;G=f[B++];)S[G.key]=G.value;break}}};
_.MiA=function(f){var S=_.B8();S&&(S=S.getPlayer())&&(S.pauseVideo(),f.playback_id=S.getVideoData().cpn,f.eid=S.getVideoData().eventId,Object.assign(f,S.getFeedbackProductData()))};
ZaW=function(){var f={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.nL("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(f.enableAnonymousFeedback=!0);_.nL("SESSION_INDEX")&&(f.authuser=String(_.nL("SESSION_INDEX")));_.K("enable_pageid_for_feedback")&&_.nL("DELEGATED_SESSION_ID")&&(f.pageId=String(_.nL("DELEGATED_SESSION_ID")));return f};
_.We=function(f){_.K("enable_ypc_spinners")&&_.bW(f,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},f])};
_.ce=function(f){_.K("enable_ypc_spinners")&&_.bW(f,"yt-close-popup-action",["yt-loading-renderer"])};
tix=function(f){return new Promise(function(S,B){_.pH({verifyCommand:{recaptchaToken:f.recaptchaResponse}},{commandController:{onSuccess:function(G,g){g||B("ChallengeService did not return a response.");var b;S({challengeCompleted:(b=g.verified)!=null?b:!1})},
onServerError:function(G,g){B(g)}}})})};
ueT=function(f,S,B,G){S({recaptchaResponse:G}).then(function(g){g.challengeCompleted?_.PL()?(B(3),_.oy().resolve(_.S7).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:f}})):B(2):B(4)},function(){B(4)})};
a4N=function(f,S,B){_.I4("https://www.google.com/recaptcha/api.js?trustedtypes=true&hl="+_.nL("HL"),function(){var G;(G=window.grecaptcha)==null||G.ready(function(){var g=window.grecaptcha;g?(B(g.render(f,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:ueT.bind(null,f,tix,S)})),S(1)):S(4)})})};
yTQ=function(f,S){return function(){switch(S()){case 0:return f().captchaLoadingMessage;case 1:return f().challengeReason;case 3:return f().captchaSuccessfulMessage;case 2:return f().captchaCookieSetFailureMessage;case 4:return f().captchaFailedMessage;default:return f().challengeReason}}()};
_.l1=function(){if(!Wh9){var f=document.querySelector("#player.skeleton");f&&(_.Pv(f),Wh9=!0)}};
_.l4N=function(){return cTQ=w4W()};
S_9=function(){return _.R(function(f){return fsV!==void 0?f.return():_.h(f,oIK(),0)})};
oIK=function(){return _.R(function(f){if(f.nextAddress==1)return _.h(f,TQ1(),2);cTQ=f.yieldResult;fsV=_.xJ.addLowPriorityJob(oIK,5E3);_.TT(f)})};
mgG=function(f){var S=S===void 0?BsM:S;var B,G,g=(B=f.responseContext)==null?void 0:(G=B.mainAppWebResponseContext)==null?void 0:G.trackingParam;if(!g){S.increment("MISSING");var b,z,X,w,F,V;_.Lg(new _.dO("282054944_a",{kQz:!!((b=f.responseContext)==null?0:(z=b.mainAppWebResponseContext)==null?0:z.loggedOut),b6e:((X=f.responseContext)==null?void 0:X.mainAppWebResponseContext)===void 0,hmf:f.responseContext===void 0,jxf:(w=f.playabilityStatus)==null?void 0:w.contextParams,dgz:(((F=f.streamingData)==
null?void 0:F.formats)||[]).length>0,sdT:(((V=f.streamingData)==null?void 0:V.adaptiveFormats)||[]).length>0,os:!!f.offlineState,cotn:f.cotn}));return 2}B="";try{B=GmN(g)}catch(d){return S.increment("C_ERROR"),_.xH(d),2}try{var J=_.gIQ(B);var P=eNM(J)}catch(d){return S.increment("P_ERROR"),_.xH(d),2}P=_.oK(P,b7A,1,_.SI());g=[];P=_.m(P);for(J=P.next();!J.done;J=P.next())G=J.value,J=G.getPath(),B=(0,_.$v.getValueByKeys)(f,J.split(".")),B=String(B===void 0||B===null?"":B),G=G.getValue()||"",b=/[+\-\/_]/g,
B.replace(b,"")!==G.replace(b,"")&&(S.increment("MISMATCH"),_.K("ab_mis_log_err")&&(B=new _.dO("282054944_p",{oJb:J,g:String(B),e:String(G)}),_.xH(B)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(J)||(J.match(/enforcementMessageViewModel/i)?g.push(3):g.push(2)));if(g.length>0)return Math.max.apply(Math,_.$d(g));S.increment("SUCCESS");return 1};
XPs=function(f){var S=new fz;if(f.interpreterJavascript){var B=_.T9V(f.interpreterJavascript);B=IP(B).toString();var G=new zNj;_.Jx(G,6,B);_.SZ(S,1,G,Dv)}else f.interpreterUrl&&(B=_.E4(f.interpreterUrl),B=_.RP(B).toString(),G=new _.RNj,_.Jx(G,4,B),_.SZ(S,2,G,Dv));f.interpreterHash&&_.oQ(S,3,f.interpreterHash,Dv);f.program&&_.oQ(S,4,f.program,Dv);f.globalName&&_.oQ(S,5,f.globalName,Dv);f.clientExperimentsStateBlob&&_.oQ(S,7,f.clientExperimentsStateBlob,Dv);return S};
SO=function(f){var S={};f=_.m(f.split("&"));for(var B=f.next();!B.done;B=f.next())B=B.value.split("="),B.length===2&&(S[B[0]]=B[1]);return S};
wPN=function(f){return Number(f.t)||7200};
YbQ=function(){if(_.K("bg_st_hr"))return"havuokmhhs-0";var f,S=((f=performance)==null?void 0:f.timeOrigin)||0;return"havuokmhhs-"+Math.floor(S)};
hNM=function(){return new Promise(function(f){var S=window.top;S.ntpevasrs!==void 0?f(new BY(S.ntpevasrs)):(S.ntpqfbel===void 0&&(S.ntpqfbel=[]),S.ntpqfbel.push(function(B){f(new BY(B))}))})};
TsM=function(f){var S=f.bVV.bind(f);_.WL("yt.aba.att",S);f=f.cUb.bind(f);_.WL("yt.aba.att2",f)};
VMK=function(f){switch(_.Xl(f.input)){case _.lC(FP9):var S={};return S.encryptedVideoId=f.innerTubeRequest.externalVideoId,S}return{}};
PIT=function(f){switch(_.Xl(f.input)){case _.lC(FP9):if(_.K("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.lC(Gq):if(_.K("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&f.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.lC(JbK):var S,B;if(_.K("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&((B=_.H((S=f.config)==null?void 0:S.command,
JF9))==null?0:B.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.KPV=function(f){var S;if(f.playlistVideoRenderer&&((S=f.playlistVideoRenderer)==null?0:S.engagementBar))return vIj(f.playlistVideoRenderer.engagementBar);if(_.H(f,gL)){var B;if(f=(B=_.H(f,gL))==null?void 0:B.engagementBar)return vIj(f)}return""};
vIj=function(f){if(!f)return"";f=_.H(f,_.dgV);if(f==null||!f.actions)return"";f=_.m(f.actions);for(f=f.next();!f.done;f=f.next()){f=_.H(f.value,_.i7T);var S=void 0;if((S=f)==null||!S.itemId)break;return f.itemId}return""};
_.H7N=function(f){var S;if(f.playlistVideoRenderer&&((S=f.playlistVideoRenderer)==null?0:S.videoId))return f.playlistVideoRenderer.videoId;if(_.H(f,gL)){var B,G;if(f=(B=_.H(f,gL))==null?void 0:(G=B.playlistItemData)==null?void 0:G.videoId)return f}return""};
_.q_Q=function(f){var S;if(f.playlistVideoRenderer&&((S=f.playlistVideoRenderer)==null?0:S.voteCount))return f.playlistVideoRenderer.voteCount;if(_.H(f,gL)){var B,G;if(f=(B=_.H(f,gL))==null?void 0:(G=B.playlistItemData)==null?void 0:G.voteCount)return f}return 0};
_.eO=function(f,S){return _.w9(f.entities,"flowStateEntity",S)};
Q9j=function(f,S,B,G){var g=void 0;f=_.m(f[S.iconName]||[]);for(var b=f.next();!b.done;b=f.next()){b=b.value;var z=S.iconSize;var X=S.iconStyle;z=!z||z===b[2];var w=$gT[b[0]];G&&G!==b[1]||!z||X&&X!==w?X=!1:g?(X=$gT[b[0]],X=!!S.iconStyle||X==="youtube_outline",z=g.version<=b[1],X=(!!S.iconSize||b[2]===24)&&X&&z):X=!0;X&&(g={name:S.iconName,style:$gT[b[0]],size:b[2],version:b[1],allowMirroring:!!b[3],url:B(S.iconName,b)})}return g};
Y_W=function(f,S,B,G){return f+(""+$gT[B[0]]+((G===void 0?0:G)?"_experimental":"")+"/"+S+"/v"+B[1]+"/")+(B[2]+"px.svg")};
bG=function(f){return _.K("web_bookmark_playlist_save_icon")?"bookmark":f};
rbA=function(f,S){return Y_W("https://fonts.gstatic.com/s/i/",f,S)};
j9T=function(f,S){return Y_W("https://fonts.gstatic.com/s/i/",f,S,!0)};
O7N=function(f,S){return Y_W("https://www.gstatic.com/youtube/img/icons/web/",f,S)};
EIV=function(f){var S=f.enabled;var B=f.itemPlaybackModel;var G=f.thumbnailElRef;var g=f.containerElRef;var b=f.options;var z;_.jp(function(){var X=g==null?void 0:g.value;var w,F=(w=G())==null?void 0:w.value;w=B();var V=b();if(S&&w&&X&&F&&(V==null?0:V.thumbnail)){var J={data:w,hostElement:X},P,d,Q=_.K("web_explore_hub_on_hover")||_.K("web_client_explore_hub_on_hover")?[].concat(_.$d((P=V.thumbnailOverlays)!=null?P:[]),_.$d((d=w.overlays)!=null?d:[])):V.thumbnailOverlays||[],x,E;X={mediaRenderer:J,
lockupElement:X,thumbnailElement:F,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.CH((x=w.inlinePlayerData)==null?void 0:x.onVisible),navigationEndpoint:_.CH((E=w.inlinePlayerData)==null?void 0:E.onSelect),thumbnail:V.thumbnail,thumbnailOverlays:Q,accessibilityText:V.accessibilityText||""},thumbnailSize:V.thumbnailSize,enableRounding:V.enableRounding}}}else X=void 0;if(x=X){var U;(U=z)==null||mZ(U);z=W8(x);var A,t;((A=B())==null?0:(t=A.inlinePlayerData)==null?0:t.forceImpAutoplay)&&
xg9(z)}},"B33dEc");
_.Ov(function(){var X;(X=z)==null||mZ(X)})};
LP9=function(f){f=atob(f);for(var S=[],B=0;B<f.length;B++)S.push(f.charCodeAt(B));return new Blob([new Uint8Array(S)],{type:"image/png"})};
nI1=function(f,S,B,G){G=G===void 0?"INSERTION_POSITION_UNSPECIFIED":G;return f({targetId:S},function(g){var b,z=(b=g.contents)!=null?b:[];b=B!=null?B:[];var X=kmN(z);switch(G){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},g,{contents:[].concat(_.$d(z.slice(0,X)),_.$d(b),_.$d(z.slice(X+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},g,{contents:[].concat(_.$d(b),_.$d(z))});case "INSERTION_POSITION_LAST":return Object.assign({},g,{contents:[].concat(_.$d(z),_.$d(b))});
default:return g}})};
DgT=function(f,S,B,G,g){g=g===void 0?"RELATIVE_INSERTION_POSITION_AFTER":g;return f({targetId:S},function(b){var z,X=(z=b.contents)!=null?z:[];z=s9T(X,B);if(z<0)return b;z=g==="RELATIVE_INSERTION_POSITION_BEFORE"?z:z+1;return Object.assign({},b,{contents:[].concat(_.$d(X.slice(0,z)),_.$d(G),_.$d(X.slice(z)))})})};
kmN=function(f){var S=f.findIndex(function(B){return _.H(B,_.zq)});
return S>=0?S:f.length};
s9T=function(f,S){return f.findIndex(function(B){a:{B=_.m(Object.values(B));for(var G=B.next();!G.done;G=B.next())if((G=G.value)&&G.targetId){B=G.targetId;break a}B=""}return B===S})};
UgQ=function(f,S,B){return f({targetId:S},function(G){var g,b=(g=G.contents)!=null?g:[];return Object.assign({},G,{contents:IsW(b,B)})})};
IsW=function(f,S){return f.filter(function(B){var G=S.includes;a:{B=_.m(Object.values(B));for(var g=B.next();!g.done;g=B.next())if((g=g.value)&&g.targetId){B=g.targetId;break a}B=""}return!G.call(S,B||"")})};
_.CI9=function(f,S){return{engagementPanelSectionListRenderer:{panelIdentifier:f,identifier:S,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
_.Abx=function(f){var S,B=(S=f.getOption("captions","tracklist",{includeAsr:!0}))!=null?S:[];return B=pPN(B,f)};
Nsj=function(f){return f.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
pPN=function(f,S){S=Nsj(S);if(S==null||!S.length)return f;var B=S.filter(function(z){return z});
S=f.filter(function(z){return z.languageCode.startsWith("en")});
B=_.m(B);for(var G=B.next();!G.done;G=B.next())if(G=G.value,S.length){var g=S[0],b=Object.assign({},g);g.languageCode!==G.languageCode&&(b.displayName=g.languageName+" >> "+G.languageName,b.translationLanguage=G,f.push(b))}return f};
MMW=function(f,S,B){f=_.Abx(f);if(f.length)return B?f.find(function(G){if(typeof(G==null?void 0:G.translationLanguage)==="object"){var g;return((g=G.translationLanguage)==null?void 0:g.languageCode)===S}return!1}):f==null?void 0:f.find(function(G){return G.languageCode===S})};
Z71=function(f){return f.getOption("captions","tracklist",{includeAsr:!0})};
tMG=function(f){return f.getOption("captions","tracklist",{includeAsr:!0})};
ukG=function(f){var S=tMG(f);if(S==null?0:S.length)return S;f.loadModule("captions");return tMG(f)};
as9=function(f){var S=f.getOption("captions","track");if(S)return S;f.loadModule("captions");return f.getOption("captions","track")};
WPT=function(f){var S=ukG(f);if(S!=null&&S.length){var B=as9(f),G;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.Jf("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(B==null?0:B.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.$d(S.map(function(g){return{listItemViewModel:{title:{content:g.displayName},
isSelected:g.displayName===(B==null?void 0:B.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:g.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.Jf("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!B.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!B.translationLanguage&&{selectionText:{content:(B==null?void 0:(G=B.translationLanguage)==null?void 0:G.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[ybV(f)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
ybV=function(f){var S=Nsj(f);if(S==null||!S.length)throw Error("Ai");var B=as9(f);f=S.filter(function(G){return!G.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.$d(f.map(function(G){var g;return{listItemViewModel:{title:{content:G.languageName},isSelected:G.languageName===(B==null?void 0:(g=B.translationLanguage)==null?void 0:g.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:G.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
oBW=function(f){return new Promise(function(S,B){if(f===void 0)_.xH(Error("Ei"),"ERROR"),B(Error("Ei"));else{B=new _.cb9;var G=_.lsM();B=B.init();var g=_.fqV(_.nL("YPC_MB_URL"),!0);Promise.all([B,g]).then(function(){var b=payments.business.integration.ClientTokenFactory.createClientToken(f,G);S(b)})}})};
G_W=function(f,S,B,G,g,b,z){var X=_.aa();B=B.replace(/-/g,"+").replace(/_/g,"/");var w=_.K2().get("hl"),F=_.RQ(_.Wt),V=S==null?void 0:S.element;V&&_.We(V);S9j(S,!0);_.BkV(F,B,X.resolve,function(){V&&_.ce(V)},function(J){V&&_.ce(V);
X.reject(J)},w,G?function(J){G&&_.uF(f,G,{backend_analytics:J})}:void 0,X.resolve,g,b,z);
return X.promise};
S9j=function(f,S){!(f=f==null?void 0:f.element)||f.tagName!=="YT-BUTTON-RENDERER"&&f.tagName!=="YTD-BUTTON-RENDERER"||(f.disabled=S)};
gBW=function(){var f=_.Jf("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.B2(f),actionButton:{buttonRenderer:rzV()}}},popupType:"TOAST"}};
eqN=function(){var f=_.Jf("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.B2(f),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
b1j=function(f){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:f}]}}};
Xg=function(f,S,B,G){var g;return _.R(function(b){if(b.nextAddress==1)return _.zT(b,2),_.h(b,f,4);if(b.nextAddress!=2)return(g=_.H2(S.getState().entities).length>0)?b.return({title:_.B2(_.Jf("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.B2(_.Jf("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:YD9()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
b.return(jZN(B,G));_.hm(b);return b.return(jZN(B,G))})};
mK1=function(f,S){return S?S==="PPSV"||$xG(f,S):!1};
zqV=function(f){f.responseContext||(f.responseContext={});f.responseContext.maxAgeSeconds=0;return f};
h9=function(f){var S;return _.R(function(B){return B.nextAddress==1?_.h(B,RqQ(f,"service:topbar:fallback"),2):(S=B.yieldResult)&&_.wL(S)?B.return(zqV(_.wL(S))):B.return()})};
Xis=function(f){var S;return _.R(function(B){return B.nextAddress==1?_.h(B,RqQ(f,"service:downloads_settings:fallback"),2):(S=B.yieldResult)&&_.wL(S)?B.return(S):B.return()})};
RqQ=function(f,S){var B;return _.R(function(G){if(G.nextAddress==1)return f?_.h(G,f.get(S),2):G.return();B=G.yieldResult;return!B||!_.wL(B)||!isNaN(Number(B.data.expireTimestampMs))&&B.isExpired()?G.return():G.return(B)})};
wiQ=function(f){var S=_.oy().resolve(Tq).getState().entities;return f.playlistId?mK1(S,f.playlistId):!1};
hqG=function(f,S){var B;if(S==null?0:(B=S.requestTemplate)==null?0:B.panelId)f.panelId=S.requestTemplate.panelId;var G;if(S==null?0:(G=S.requestTemplate)==null?0:G.params)f.params=S.requestTemplate.params};
F1V=function(){if(TkV)return TkV();var f=!_.K("idb_response_store_auth_killswitch"),S={};TkV=la("yt-it-response-store",{objectStores:(S.ResponseStore={addedAtVersion:1},S),shared:!f,upgrade:function(B,G){G(1)&&(B=IJ(B,"ResponseStore",{keyPath:["key","clientName"]}),U4(B,"byExpiration","expireTimestampMs"),U4(B,"byInterface","clientName"))},
version:1});return TkV()};
VUx=function(f){return _.AY(F1V(),f)};
PqG=function(f,S){var B;return _.R(function(G){return G.nextAddress==1?_.h(G,_.cL(),2):(B=G.yieldResult)?G.return(new Jcj(f,S,B)):G.return()})};
vBQ=function(f){var S=Object.keys(f)[0];if(S)return f.screenExit&&(S=S+";"+f.screenExit.screen),S};
K11=function(f){var S=new Map;f=_.m(f);for(var B=f.next();!B.done;B=f.next())B=B.value,B!=null&&(S.has(B.taskType)||S.set(B.taskType,[]),S.get(B.taskType).push(B));return S};
dKj=function(f){return!isNaN(f)&&f>0};
i1s=function(f){f=[].concat(_.$d(f)).sort(function(B,G){return B-G});
var S=Math.floor(f.length/2);return f.length%2?f[S]:(f[S-1]+f[S])/2};
$KQ=function(f,S){f=f===void 0?bHs:f;S=S===void 0?{}:S;_.WL("yt.logging.errors.log",_.xH);geG();H1T(wss(),S);window.onerror=f;q9N=e5T;window.addEventListener("unhandledrejection",function(B){if(B.reason instanceof Error){var G=B.reason;_.kH(G,{source:"unhandledrejection"});G.name==="AbortError"&&(G.level="WARNING")}e5T(B.reason);B.preventDefault()})};
_.QG9=function(f){return f.a11y.ephemeralAction||null};
_.Y9x=function(f){var S,B,G,g,b,z,X,w,F,V,J,P,d,Q,x,E,U,A,t,M,a,l,mx,zj,VN,$Q,OV,rW,MA,UV,W7,c7,Q$,To,Ci,VM,Go,Io,uz,RT;return _.R(function(P7){if(P7.nextAddress==1)return _.h(P7,_.P2(f,{mode:"readonly",enableRetries:!0},function(O8){return v2(O8,"playbackData").then(function(ao){var H7=ao.map(function(em){return em.transfer}).filter(function(em){return!!em}),um=ao.map(function(em){return em.offlineVideoPolicy}).filter(function(em){return!!em}),CQ=ao.filter(function(em){return!!em.key}).map(function(em){return _.XV(_.mW(em.key).entityId,
"downloadStatusEntity")});
H7=v2(O8,"transfer",H7);um=v2(O8,"offlineVideoPolicy",um);CQ=v2(O8,"downloadStatusEntity",CQ);var t1=H7.then(function(em){em=em.reduce(function(Ig,vO){(vO==null?0:vO.offlineVideoStreams)&&Ig.push.apply(Ig,_.$d(vO.offlineVideoStreams));return Ig},[]).filter(function(Ig){return!!Ig});
return v2(O8,"offlineVideoStreams",em)});
return sZ.all([H7,um,t1,CQ]).then(function(em){var Ig=_.m(em);em=Ig.next().value;var vO=Ig.next().value;var v7=Ig.next().value;Ig=Ig.next().value;return[ao,em,vO,v7,Ig]})})}),2);
if(P7.nextAddress!=3)return S=P7.yieldResult,_.h(P7,_.P2(f,{mode:"readonly",enableRetries:!0},function(O8){return v2(O8,"mainDownloadsListEntity").then(function(ao){var H7,um;return(um=(H7=ao[0])==null?void 0:H7.downloads)!=null?um:[]})}),3);
B=P7.yieldResult;G=_.m(S);g=G.next().value;b=G.next().value;z=G.next().value;X=G.next().value;w=G.next().value;F=g;V=b;J=z;P=X;d=w;Q={};x={};E={};U={};A={};t=[];M=_.m(V);for(a=M.next();!a.done;a=M.next())(l=a.value)&&(Q[l.key]=l);mx=_.m(J);for(zj=mx.next();!zj.done;zj=mx.next())(VN=zj.value)&&(x[VN.key]=VN);$Q=_.m(d);for(OV=$Q.next();!OV.done;OV=$Q.next())(rW=OV.value)&&(E[rW.key]=rW);MA=_.m(P);for(UV=MA.next();!UV.done;UV=MA.next())(W7=UV.value)&&(U[W7.key]=W7);c7=_.m(B);for(Q$=c7.next();!Q$.done;Q$=
c7.next())To=Q$.value,Ci=void 0,A[(Ci=To.videoItem)!=null?Ci:""]=!0,To.videoItem&&(Go=VM=void 0,Io=(Go=(VM=_.mW(To.videoItem))==null?void 0:VM.entityId)!=null?Go:"",t.push({externalVideoId:Io}));uz=F.filter(function(O8){if(!O8||!O8.key||!O8.offlineVideoPolicy)return!1;O8=_.mW(O8.key).entityId;O8=_.XV(O8,"downloadStatusEntity");var ao;return!(O8&&((ao=E[O8])==null?void 0:ao.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
RT=uz.map(function(O8){var ao=Q[O8.transfer],H7=[];if(ao==null?0:ao.offlineVideoStreams)for(var um=_.m(ao.offlineVideoStreams),CQ=um.next();!CQ.done;CQ=um.next())(CQ=U[CQ.value])&&H7.push(CQ);um=x[O8.offlineVideoPolicy];CQ=A;var t1=O8==null?void 0:O8.playerResponseTimestamp,em=_.mW(um.key).entityId;O8=_.XV(em,"mainVideoEntity");if(um.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var Ig="OFFLINE_VIDEO_STATE_DISABLED";um.expirationTimestamp&&Number(um.expirationTimestamp)<Date.now()/1E3&&(Ig="OFFLINE_VIDEO_STATE_EXPIRED")}else if(um.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")Ig="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(ao==null?void 0:ao.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":Ig="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":Ig="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":Ig="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":Ig="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":Ig="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":Ig="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:Ig="OFFLINE_VIDEO_STATE_UNKNOWN"}if(Ig==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(ao==null?void 0:ao.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":Ig="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":Ig="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":Ig=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}em={id:em,videoState:Ig};if(ao==null?0:ao.cotn)em.cotn=ao.cotn;if(ao==null?0:ao.maximumDownloadQuality)em.selectedVideoQuality=ao==null?void 0:ao.maximumDownloadQuality;if(ao==null?0:ao.lastProgressTimeMs)em.lastProgressTimeMs=ao.lastProgressTimeMs;t1&&(em.playerResponseSavedTimeMs=String(Number(t1)*1E3));ao=String;t1=0;H7=_.m(H7);for(Ig=H7.next();!Ig.done;Ig=H7.next())if(Ig=Ig.value,Ig.streamsProgress){Ig=_.m(Ig.streamsProgress);for(var vO=Ig.next();!vO.done;vO=
Ig.next()){var v7=void 0;t1+=Number((v7=vO.value.numBytesDownloaded)!=null?v7:0)}}em.downloadedBytes=ao(t1);em.selectedOfflineMode=CQ[O8]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";um.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(em.offlinePlaybackDisabledReason=um.offlinePlaybackDisabledReason);return em});
return P7.return({offlineVideos:RT,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:t}}})})};
rcQ=function(){var f;return _.R(function(S){return S.nextAddress==1?_.h(S,_.FV(),2):(f=S.yieldResult)?S.return(_.Y9x(f)):S.return({state:"PES Unavailable"})})};
xKN=function(){var f,S,B,G;return _.R(function(g){if(g.nextAddress==1)return _.h(g,_.FV(),2);if(g.nextAddress!=3)return(f=g.yieldResult)?_.h(g,jG9(f),3):g.return({state:"PES Unavailable"});S=g.yieldResult;B={};G=S.reduce(function(b,z){b[z.key]=z;return b},B);
return g.return(O1s(G))})};
O1s=function(f){for(var S={},B=[],G=_.m(Object.keys(f)),g=G.next();!g.done;g=G.next()){var b=g.value;g=f[b];var z=void 0;if(((z=g)==null?void 0:z.entityType)==="mainVideoEntity"){delete f[b];var X=g.data;g={};if(X){var w=void 0;z=(w=X.videoId)!=null?w:"vid-"+b;b=f;g.video=X;delete g.video.formattedDescription;delete g.video.thumbnail;X.owner&&(w=b[X.owner],w==null?0:w.data)&&(delete b[w.key],g.video.owner=w.data,delete g.video.owner.avatar);if(X=X.downloadState)if(w=b[X],w==null?0:w.data)if(delete b[X],
X=w.data.playbackData)if(w=b[X],w!=null&&w.data){delete b[X];X=w.data;delete X.playerResponseJson;g.playbackData=X;if(X.transfer&&(w=b[X.transfer],w==null?0:w.data)){delete b[w.key];var F=w.data;g.transfer=F;w=[];F=_.m(F.offlineVideoStreams||[]);for(var V=F.next();!V.done;V=F.next())if(V=b[V.value])delete b[V.key],w.push(V.data);w&&(g.streams=w)}(X=X.offlineVideoPolicy)&&(X=b[X])&&X.data&&(delete b[X.key],g.offlineVideoPolicy=X.data)}S[z]=g}}else g&&g.entityType==="offlineOrchestrationActionWrapperEntity"&&
g.data&&(delete f[g.key],z=g.data,b=void 0,B.push({id:z.rootActionId,type:((b=z.actionProto)==null?void 0:b.actionType)||"",entity:g}))}S.wrapperEntities=B;Object.keys(f).length>0&&(S.unknownKeys=f);return S};
EBT=function(){var f,S,B,G,g,b,z,X,w;return _.R(function(F){if(F.nextAddress==1)return f=!!(new _.s4("")).expiringStorage_,G=!!((S=_.S1.crypto)==null?0:(B=S.subtle)==null?0:B.importKey),g=!!_.S1.BroadcastChannel,b=!!_.S1.navigator.locks,_.h(F,D51(),2);z=F.yieldResult;X=f&&G&&g&&b&&z;w={isSupported:X};if(X)return F.return(w);w.missingBrowserFeatures=[];z||w.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");f||w.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
G||w.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");g||w.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");b||w.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return F.return(w)})};
L1j=function(){var f;return!((f=Fg?Fg:null)==null||!f.window)};
_.nBT=function(f){if(_.xQ()&&_.X91("Chromium")>=120){var S=_.k_s().mediaSession;try{S.setActionHandler("enterpictureinpicture",function(){f()})}catch(B){}}};
sGs=function(f){for(var S=[],B=_.m(document.styleSheets),G=B.next(),g={};!G.done;g={node$jscomp$732:void 0},G=B.next())g.node$jscomp$732=G.value.ownerNode,g.node$jscomp$732&&(g.node$jscomp$732 instanceof HTMLStyleElement||g.node$jscomp$732 instanceof HTMLLinkElement)&&S.push(new Promise(function(b){return function(z){var X=b.node$jscomp$732.cloneNode(!0);X.onload=function(){z()};
X.onerror=function(){_.Lg(Error("gj"));z()};
f.document.head.appendChild(X)}}(g)));
return Promise.all(S)};
tUG=function(f){var S=[_.fo(DKN),_.fo(IqN),_.fo(UKK)];CqG(window.document.documentElement,f.document.documentElement,[_.fo(pi9),_.fo(Ac9),_.fo(Nkx),_.fo(MUA),_.fo(Z1N)]);CqG(window.document.body,f.document.body,S)};
CqG=function(f,S,B){f=_.m(f.attributes);for(var G=f.next();!G.done;G=f.next())if(G=G.value)try{_.AJ(B,S,G.name,G.value)}catch(g){}};
aqQ=function(f,S){f=new _.VG(f.document.documentElement);f.start(uUA,S);return f};
ycQ=function(f){var S=f.document.documentElement;S.addEventListener("click",function(B){rUK(S,B)});
S.addEventListener("touchstart",function(B){LtV(B)});
S.addEventListener("mousedown",function(B){LtV(B)})};
cc9=function(f,S,B,G){G=G===void 0?!1:G;S=new W1s(S||f,B||f);return{x:f.x+((G===void 0?0:G)?S.lengthX*-1:S.lengthX)*.2,y:f.y+((G===void 0?0:G)?S.lengthY*-1:S.lengthY)*.2}};
lqM=function(f){if(!f)return!1;var S=f.status==="OK"||f.status==="LIVE_STREAM_OFFLINE",B,G,g,b=(g=(B=f.errorScreen)==null?void 0:B.playerLegacyDesktopYpcTrailerRenderer)!=null?g:(G=f.errorScreen)==null?void 0:G.ypcTrailerRenderer;return!!S||!!b};
_.fYG=function(f,S){if(!f)return!1;var B,G=(B=f.errorScreen)==null?void 0:B.playerLegacyDesktopYpcOfferRenderer,g;S=!!(S==null?0:(g=S.playerOverlayRenderer)==null?0:g.gatedActionsOverlayRenderer);return!!lqM(f)||!!G||!!S};
B$K=function(f){return oDj(f,0,"gclid",f.search(SFN))>=0||oDj(f,0,"gad_source",f.search(SFN))>=0};
e3W=function(f){var S=[],B=0;return{clear:function(){B=S.length=0},
push:function(G){S[B]=G;B=(B+1)%f},
iterate:function(){return function g(){var b,z,X,w;return _.GkA(g,function(F){switch(F.nextAddress){case 1:_.Xz(F,2),b=S.length,z=0;case 4:if(!(z<b)){F.jumpTo(2);break}X=B+z;w=_.gDK;return _.h(F,S[X%b],7);case 7:w(F.yieldResult);z++;F.jumpTo(4);break;case 2:_.Rs(F),_.wz(F,0)}})}()}}};
me1=function(){var f=bvN,S=fH.bufferSize;f||(f=[]);f=f.map(Z3s);var B=new Set(f),G=e3W(S);return{flush:function(){var g=Array.from(G.iterate());G.clear();g=g.map(function(b){return{name:b.name,timestamp:b.startTime,attributes:b.attributes}});
return JSON.stringify(g)},
onSpanStart:function(g){g.name==="event"&&B.has(g.attributes.type)||G.push(g)}}};
z3M=function(){var f=me1(),S=f.flush;QNT({onSpanStart:f.onSpanStart});JZW.subscribe("handleError",function(B){try{B.params.breadcrumbs=S()}catch(G){_.xH(G,"WARNING")}})};
R3j=function(f,S,B){var G=f.endTime;if(G==null)throw Error("ij");B=_.Ij(pzG)(f.name,G-f.startTime,f.startTime,{webTracing:f.attributes},B,S);if(f.children)for(f=_.m(f.children),G=f.next();!G.done;G=f.next())R3j(G.value,S,B)};
wBK=function(){for(var f={},S=_.m(fH.enabledSpansArray),B=S.next();!B.done;B=S.next())f[B.value]=!0;if(fH.exportToCsi||fH.exportBreadcrumbs)f={enabledSpans:f},cK={sessionId:f.sessionId||"",nextSpanId:0,activeSpan:void 0,processors:[],enabledSpans:f.enabledSpans};fH.exportBreadcrumbs&&z3M();fH.exportToCsi&&QNT(XBV)};
h3N=function(f){return new Promise(function(S){window.setTimeout(S,f)})};
T$j=function(f){var S={bicf:function(b){f.yTt=b},
blc:function(){return f.getLatestChallengeResponse()},
bcr:function(b){f.rWW.push(b)}},B=window.top;
B.ntpevasrs=S;if(B.ntpqfbel!==void 0)for(var G=_.m(B.ntpqfbel),g=G.next();!g.done;g=G.next())g=g.value,g(S);B.ntpqfbel=void 0};
FAV=function(f){return _.R(function(S){if(S.nextAddress==1)return _.zT(S,2),_.h(S,f.xiY(),4);if(S.nextAddress!=2)return _.CN(S,0);_.hm(S);_.TT(S)})};
VvM=function(f){var S,B;(S=f.ytcsi)==null||(B=S.tick)==null||B.call(S,"pot_ist")};
J8N=function(f){if(f instanceof Error){var S=_.U6("yt.logging.errors.log");S&&S(f,"WARNING")}};
PnN=function(f){try{var S=JSON.parse(f);if(S.bgChallenge)return S}catch(B){}};
KAA=function(){var f=window,S={networkStatusManagerPromise:_.oy().resolve(new KIN(_.N7)),initialChallengeSli:_.K("wpo_att_sli")?new _.YT1("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};f=f===void 0?window:f;var B=f.ytAtR,G;S==null||(G=S.initialChallengeSli)==null||_.J9(G);if(B){if(B=PnN(B)){var g;S==null||(g=S.initialChallengeSli)==null||_.PY(g,"SUCCESS");vDN(B,S)}f.ytAtR=void 0}else f.ytAtRC=function(b){if(b=PnN(b)){var z;S==null||(z=S.initialChallengeSli)==null||
_.PY(z,"SUCCESS");vDN(b,S);f.ytAtRC=void 0}}};
HvN=function(){if(deK)return deK;try{var f=_.Ja("IFRAME");_.x6(f,_.Sr(ivN));f.sandbox.add("allow-same-origin");f.style.display="none";document.body.appendChild(f);return deK=f}catch(S){f=new _.dO("Failed to create sandbox iframe"),_.xH(f)}};
qFA=function(f){var S,B;return(B=f==null?void 0:(S=f.contentWindow)==null?void 0:S.fetch)!=null?B:window.fetch};
$e1=function(f){var S,B;return(B=f==null?void 0:(S=f.contentWindow)==null?void 0:S.JSON.parse)!=null?B:JSON.parse};
Q1V=function(f){var S,B;return(B=f==null?void 0:(S=f.contentWindow)==null?void 0:S.Request)!=null?B:window.Request};
j1s=function(){if(jeK()==="hidden")var f="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else jeK()==="visible"&&(f="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",YF1=null);f&&r8M(f)};
r8M=function(f){if(f==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||f==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(OvN===f)return;OvN=f}var S=9E4+Math.random()*2E3;if(f!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.or()>S)&&jeK()==="visible"){S=-1;YF1&&(S=Math.round((0,_.fO)()-YF1));var B=String;var G=_.U6("_fact",window);G=G==null||G==-1?-1:Math.max(Date.now()-G,0);_.jD("foregroundHeartbeat",{firstActivityMs:B(G),clientDocumentNonce:zrG,index:String(xeW),lastEventDeltaMs:String(S),trigger:f});
_.WL("_fact",-1,window);xeW++;YF1=(0,_.fO)()}};
_.EDN=function(){try{return!!self.sessionStorage}catch(f){return!1}};
LA9=function(){var f=navigator;return new Promise(function(S,B){var G;(G=f.webkitTemporaryStorage)!=null&&G.queryUsageAndQuota?f.webkitTemporaryStorage.queryUsageAndQuota(function(g,b){S({usage:g,quota:b})},function(g){B(g)}):B(Error("qj"))})};
kkV=function(f,S){var B={errorSeverity:S.errorSeverity.toString(),wizFeatureFlags:Object.entries(S.featureFlags).join("\n")};Gi1(S,B);S=S.errorSeverity;S===3?_.xH(f,"ERROR",void 0,void 0,void 0,B):S===2&&_.xH(f,"WARNING",void 0,void 0,void 0,B);_.K("cow_if_errors_in_popup")&&S===3&&f.message.indexOf("<If>")!==-1&&window.alert(f.message)};
nDN=function(f,S,B){f.componentType!==$p&&B instanceof HTMLElement&&S&&!_.K("cow_logging_in_component_wrapper")&&JGK(B,S,!0)};
pBK=function(){if(!s1W){s1W=!0;var f=Object.assign({},{enableLazyTsx:_.K("mweb_enable_wiz_lazy_tsx")||_.K("kevlar_enable_wiz_lazy_tsx")||_.K("creator_enable_wiz_lazy_tsx")||Dej,flushRenderEffectsDuringRender:!0},{handleError:kkV,enableComponentStacksInErrorMessages:!1});Object.assign(_.Sp,f);igM=IYs;UeN();YUN=MQV;qUK=ZI9;_.K("ytwiz_enable_debug_component_props")&&(f=document.body.firstElementChild,window.ng||f.__ngContext__||(f.__ngContext__={},f.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=
CnA))}};
UeN=function(){_.K("cow_logging_in_component_wrapper")?(fHj=function(f,S){S instanceof HTMLElement&&JGK(S,f,!0)},XDA=function(){}):(fHj=function(){},XDA=nDN)};
A81=function(f,S,B){S=S===void 0?{}:S;var G,g=(G=_.H(f.commandMetadata,_.oD))==null?void 0:G.url;G=S.form||{};!B||G.element||G.skipDefaultElement||(S.form=S.form||{},S.form.element=B);if(g&&g!=="/service_ajax")return{type:0,command:f,form:S.form};if(_.K("kevlar_service_command_check")){if(_.t3(_.oy().resolve(_.DU),f))return Object.assign({},{type:1,command:f},S)}else{var b;if((b=_.H(f.commandMetadata,_.oD))==null?0:b.apiUrl)return Object.assign({},{type:1,command:f},S)}return{type:2,command:f,form:S.form}};
N$V=function(f){if(f.form){var S=f.form,B=Object.assign({},S);S=S.element;B=(delete B.element,B);if(S)return[_.RD(S,[f.command,B,f.commandController])]}return[]};
Mvx=function(f){if(f.form){var S=f.form,B=Object.assign({},S);S=S.element;B=(delete B.element,B);S&&_.Xh(S,[f.command],S,B)}};
tvs=function(f,S,B){var G=new ZvG(f,S),g=new vY(f,S,B);f={"/youtubei/v1/browse":new Kz(f,S,B),"/youtubei/v1/player":G,"/youtubei/v1/navigation/resolve_url":new dL,"/youtubei/v1/next":g,"/youtubei/v1/guide":new iG(B),"/youtubei/v1/search":new HY(f,S,B),"/youtubei/v1/reel/reel_item_watch":new q_(f,S,B),"/youtubei/v1/get_watch":new QG(G,g)};f["/youtubei/v1/account/account_menu"]=new Yj;f["/youtubei/v1/notification/get_notification_menu"]=new rL;return f};
Oy=function(){var f=_.oy().resolve(jO);return Promise.resolve(uWW(f,_.S1.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
aYK=function(f){return f&&(f=_.Lz(_.fnN(f)))?(new URLSearchParams(f)).get("service"):null};
sy=function(f,S){_.Xd(_.kj(),function(){_.kT("adl")});
_.oy().resolve(y8V)(S);f=f.root;f.loadData&&f.loadData(S);(S==null?0:S.response)?_.PY(O81(),"SUCCESS"):_.Lg(new _.dO("Lifecycle: No response in data",_.s6("IS_SHELL_LOAD"),S?S.page:"NO_PAGE",S?S.endpoint:"NO_ENDPOINT"));f.polymerController.$["page-manager"].lazyPrepareCriticalPages((S==null?void 0:S.page)||"",S.endpoint);var B,G;((G=_.H(S==null?void 0:(B=S.endpoint)==null?void 0:B.commandMetadata,_.oD))==null?0:G.webPageType)&&_.W2().dispatch(_.nz(_.H(S.endpoint.commandMetadata,_.oD).webPageType))};
WAj=function(){var f,S;return _.R(function(B){switch(B.nextAddress){case 1:f=window;if(!f.getDataPromise){B.jumpTo(2);break}_.zT(B,3);return _.h(B,f.getDataPromise(),5);case 5:return B.return(B.yieldResult);case 3:return _.hm(B),_.h(B,Oy(),6);case 6:return B.return(B.yieldResult);case 2:if(f.getInitialData)return S=f.getInitialData(),f.getInitialData=void 0,B.return(S);throw Error("sj`"+_.S1.location.href);}})};
lYG=function(){_.k5("CSI_SERVICE_NAME","youtube");_.EL({loadType:"cold"});_.K("kevlar_log_lcp")&&c8x(function(f){_.kT("lcp",f.value)})};
f1x=function(){var f=_.pS(document.location.href,"enable");f&&f.indexOf("scraper")>-1&&_.k5("ADD_SCRAPER_ATTRIBUTES",!0)};
giM=function(f){var S=f.root;f=[oiK,SxA,_.DW];_.K("web_feedback_endpoint_autolog_allowlist_killswitch")&&f.push(_.IQ,BBM);GQj(function(B,G){return A81(B,G,S)},function(B){if(!B.command)return[];
var G;((G=B.form)==null?0:G.element)?B.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},B.form,{endpoint:B.command})})):S.handleNavigate(B);return[]},f);
_.oy().addProvider({provide:_.S7,useValue:_.JZ.instance})};
bK9=function(){var f={},S={},B;for(B in ea1){var G=_.m(_.hj(ea1[B],void 0,"NBH2te"));f[B]=G.next().value;S[B]=G.next().value}return[f,function(g){for(var b in g){var z=void 0;(z=S[b])==null||z(g[b])}}]};
_.Rax=function(f,S){var B=_.$v.getValueByKeys(f,"contents","twoColumnWatchNextResults","results","results","contents"),G=_.$v.getValueByKeys(f,"contents","twoColumnWatchNextResults","playlist","playlist")||null,g=null,b=null;if(G)g=_.$v.getValueByKeys(G,"titleText"),b=_.$v.unsafeClone(_.$v.getValueByKeys(G,"longBylineText")),B="",b&&(B=_.ac(b)),b=_.uC(B);else if(B){B=_.m(B);for(var z=B.next();!z.done;z=B.next())z=z.value,z.videoPrimaryInfoRenderer&&(g=_.$v.getValueByKeys.apply(_.$v,[z].concat(_.$d(m01)))),
z.videoSecondaryInfoRenderer&&(b=_.$v.getValueByKeys.apply(_.$v,[z].concat(_.$d(zas))))}else _.CL(Error("xj"));var X;f.currentVideoEndpoint?X=f.currentVideoEndpoint:_.CL(Error("yj"));var w;S&&(w=_.$v.getValueByKeys(S,"playabilityStatus","miniplayer","miniplayerRenderer"));f={miniplayerTitle:g,miniplayerSubtitle:b,watchEndpoint:X,playlistData:G};w&&(f.miniplayerRenderer=w);return f};
X61=function(f){if(f)return _.sn(f)};
_.w6M=function(){return{isFullscreen:function(){throw Error("zj");},
toggleFullscreen:function(){throw Error("Aj");},
exitFullscreen:function(){throw Error("Bj");},
isAutonavEnabled:function(){throw Error("Cj");},
setAutonavEnabled:function(){throw Error("Dj");},
isAutoplaySetExplicitly:function(){throw Error("Ej");}}};
haV=function(f){return f.videoDuration?f.numTaps>1&&f.tapDirection!==0?_.Uy(f.draggedTime/f.videoDuration,0,1):_.Uy((f.playedTime||0)/f.videoDuration,0,1):0};
TBK=function(f){return f.videoDuration?f.isDragging||f.numTaps>1&&f.tapDirection!==0?_.Uy(f.draggedTime/f.videoDuration,0,1):_.Uy((f.playedTime||0)/f.videoDuration,0,1):0};
V_Q=function(f){var S,B,G;return _.H(f==null?void 0:(S=f.markersMap)==null?void 0:(B=S.find(function(g){return g.key==="HEATSEEKER"}))==null?void 0:(G=B.value)==null?void 0:G.heatmap,F3j)};
JNK=function(f){var S,B;return(B=(S=V_Q(f))==null?void 0:S.heatMarkersDecorations)!=null?B:[]};
PA1=function(f){if(_.K("mweb_supported_chapters_killswitch"))return!0;var S;return!!(f==null?0:(S=f.markersMap)==null?0:S.find(function(B){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(B.key)}))};
_.viW=function(f){var S=Object,B=S.assign,G;f={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(G=f==null?void 0:f.getPlayerState())!=null?G:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return B.call(S,{},{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},f,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
K31=function(f){return function(S){var B=f(),G,g=(G=B.playerApi)==null?void 0:G.getPlayerState();S&&S!==B.playerState&&(S===1||S===2)&&B.setState({playerState:g})}};
iK1=function(f){return function(S){var B=f(),G=B.playerApi;G&&(S==null?void 0:S.type)==="newdata"&&(d0j&&(clearTimeout(d0j),d0j=void 0),_.K("web_shorts_use_progress_state_for_gapless")?(S=G==null?void 0:G.getProgressState(S==null?void 0:S.playertype),S=S.seekableEnd-S.seekableStart):S=G==null?void 0:G.getDuration(S==null?void 0:S.playertype),B.setState({playedTime:0,videoDuration:S}))}};
HKs=function(f){return function(S){var B=f(),G=B.playerApi;if(G){var g=G.getPresentingPlayerType();_.K("web_shorts_use_progress_state_for_gapless")?(G=G.getProgressState(g),G=G.seekableEnd-G.seekableStart):G=G.getDuration(g);B.setState({playedTime:S,videoDuration:G})}}};
$0j=function(f){_.Dp(112394,f,function(){return qxG},function(S){qxG=S})};
rNK=function(f,S){if(!f)return[];var B,G,g;f=((B=f.markersMap)==null?void 0:(G=B.find(function(b){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(b.key)}))==null?void 0:(g=G.value)==null?void 0:g.chapters)||[];
!QLs(f)||(S==null?0:S.ignoreStub)||(f=[YxW()].concat(_.$d(f)));return f};
YxW=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
QLs=function(f){if(f.length===0)return!1;var S;return((S=_.H(f[0],Cz))==null?void 0:S.timeRangeStartMillis)!==0};
pz=function(f){return f?f.timeRangeStartMillis||0:0};
OKM=function(f,S){if(f.isDragging&&S)return f=jLN(f,S),f===-1?YxW():rNK(S)[f]};
jLN=function(f,S){return f.isDragging&&S?rNK(S,{ignoreStub:!0}).findIndex(function(B,G,g){B=x0T(f);return Ei9(B,g,G).scrubberHovering}):-1};
x0T=function(f){return Object.assign({},f,{videoDuration:f.videoDuration*1E3,playedTime:f.playedTime*1E3,draggedTime:f.draggedTime*1E3})};
Ei9=function(f,S,B){var G=pz(_.H(S[B],Cz));S=pz(_.H(S[B+1],Cz))||f.videoDuration;B=f.isDragging;var g;if(g=f.isDragging)g=f.draggedTime,g=g!==null&&g>=G&&g<S;var b=f.playedTime;return b!==null&&b>=G&&b<S?{videoPosition:"active",isScrubbing:B,scrubberHovering:g}:f.playedTime<G?{videoPosition:"pending",isScrubbing:B,scrubberHovering:g}:{videoPosition:"seen",isScrubbing:B,scrubberHovering:g}};
L3K=function(f,S){return f.videoPosition==="seen"||(S===void 0?0:S)>0};
kQV=function(f,S,B){S=f/S.storyboardInterval;var G=rNK(B);if(!G.length)return-S*72;B=0;G=_.m(G);for(var g=G.next();!g.done;g=G.next())if(pz(_.H(g.value,Cz))/1E3<f)B++;else break;return-(S*72)-B*56};
niM=function(f){return f?f.width/f.columns:0};
sLj=function(f){return f.isHovering?f.hoveredTime:f.draggedTime};
D0W=function(f,S){f=f.draggedTime*1E3;return f>=S.visibleTimeRangeStartMillis&&f<=S.visibleTimeRangeEndMillis};
_.I1s=function(f){if(f===void 0||Number.isNaN(f))return"--:--";var S=Math.abs(Math.floor(f)),B=Math.floor(S/86400),G=Math.floor(S%86400/3600),g=Math.floor(S%3600/60);S=Math.floor(S%60);var b="";B>0&&(b+=B+":",G<10&&(b+="0"));if(B>0||G>0)b+=G+":",g<10&&(b+="0");b+=g+":";S<10&&(b+="0");b+=S;return f>=0?b:"-"+b};
U09=function(f,S){return function(){var B=sLj(f());var G=S();var g=f().playerApi;if(g&&g.getNumberOfStoryboardLevels()!==0){var b=g.getStoryboardFrameIndex(B,1);b!==-1?G=g.getStoryboardFrame(b,1):(B=g.getStoryboardFrameIndex(B,0),g=g.getStoryboardFrame(B,0),G&&g&&(g.height*=3,g.width*=3),G=g)}else G=null;if(!G)return null;S()&&(G.width=90*G.columns,G.height=160*G.rows);return G}};
_.A9=function(f){if(!f||f.getVideoData)return f};
CAj=function(){var f;return{playerApi:(f=_.hD())!=null?f:void 0}};
p61=function(f){var S;_.R(function(B){if(B.nextAddress==1)return _.h(B,_.wb(),2);if(S=B.yieldResult)S.unMute(!0),S.setVolume(f,!0);_.TT(B)})};
ANT=function(f,S){f&&(f.value=""+S,f.style.setProperty("--gradient-percent",S+"%"))};
NBG=function(f){var S;return(S=f==null?void 0:f.value)!=null?S:0};
M_V=function(){var f;_.R(function(S){if(S.nextAddress==1)return _.h(S,_.wb(),2);f=S.yieldResult;if(!f)return S.return();f.isMuted()?f.unMute(!0):f.mute(!0);_.TT(S)})};
ZK9=function(f){var S=_.oy().resolve(_.N_).getPlayerElement();S&&f&&(f===1?S.pause():S.play())};
t_G=function(f){_.mU(f,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
uyA=function(f){_.mU(f,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
yN1=function(f){return _.QR(f.document.body,function(){return _.T(a11,null)})};
W39=function(){var f=window.performance.getEntriesByType("navigation");return f?f.map(function(S){return S.type}).includes("reload"):!1};
guT=function(){M_(M_(M_(M_(M_(M_(M_(_.oy().resolve(_.ZW),_.cNj),_.l1Q),_.fkV),_.ouQ),_.SYV),_.BqW),_.GxM)};
e8V=function(f,S){S=S===void 0?!1:S;var B,G,g,b;return _.R(function(z){if(z.nextAddress==1)return S||!_.K("kevlar_shorts_seedless_retry_initial_load")||(B=window,G=!(!B.getDataPromise&&!B.getInitialData),G)?_.h(z,WAj(),2):(setTimeout(e8V.bind(window,f,!0),1E3),z.return());if(z.nextAddress!=3)return g=z.yieldResult,_.h(z,bhN(g),3);b=z.yieldResult;sy(f,b);_.TT(z)})};
bhN=function(f){var S;if((S=f.response)==null||!S.replacementEndpoint)return _.wh(f);S=_.oy().resolve(jO);f=f.response;_.H(f.replacementEndpoint,_.QW)&&f.sequenceContinuation&&(_.H(f.replacementEndpoint,_.QW).sequenceParams=f.sequenceContinuation);return t9(S,f.replacementEndpoint,{},_.S1.location.href,"shorts",function(){},function(){return!1})};
mPQ=function(f){var S=_.W2(),B,G=_.H((B=f.response)==null?void 0:B.frameworkUpdates,Ww),g;B=_.H((g=f.playerResponse)==null?void 0:g.frameworkUpdates,Ww);var b;f=_.H((b=f.reelWatchSequenceResponse)==null?void 0:b.frameworkUpdates,Ww);G&&_.JR(G,S);B&&_.JR(B,S);f&&_.JR(f,S)};
z8Q=function(f){var S;_.K("enable_redirect_linking_for_desktop_web_client")&&((S=window.location.hash)==null?0:S.includes("redirect_state"))&&f.url&&(f.url=f.url.toString()+window.location.hash)};
w$j=function(f){var S=_.oy(),B=S.resolve(jO);S=S.resolve(_.R8T);f.endpoint&&(B=X$Q(B,f.endpoint),B.content&&f.response&&_.uG(S,f.response,B.content),B.player&&f.playerResponse&&_.uG(S,f.playerResponse,B.player),B.reelSequence&&f.reelWatchSequenceResponse&&_.uG(S,f.reelWatchSequenceResponse,B.reelSequence))};
aQ=function(f,S){mPQ(S);var B;(S==null?0:S.url)&&((B=window.location.hash)==null?0:B.includes("redirect_state"))&&(z8Q(S),(B=aYK(S.url))&&_.bW(f.root,"yt-initialize-third-party",[B,S]));w$j(S);B=_.oy();var G=B.resolve(h81);S.playerResponse&&B.resolve(Tq9).handleResponse(S.playerResponse);if(S.playerResponse){B=void 0;if(_.K("ab_v_vid_sig")&&S.endpoint){var g,b=(g=_.H(S.endpoint,_.t2))!=null?g:_.H(S.endpoint,_.QW);b&&(B=b.videoId)}FMV(G,S.playerResponse,B)}S.playerResponse&&C_N(S.playerResponse)&&
_.K("web_enable_ab_rsp_cl")?S_9().then(function(){VkV(G,S.playerResponse);sy(f,S)}):sy(f,S)};
PZG=function(f){if(f=f.root.data){var S=_.oy().resolve(JBM);f.endpoint&&(f.response&&S.handleResponse(f.response,void 0,document.querySelector("ytd-app")),f.playerResponse&&S.handleResponse(f.playerResponse),f.reelWatchSequenceResponse&&S.handleResponse(f.reelWatchSequenceResponse))}};
vu1=function(f){var S,B,G,g,b,z;return _.R(function(X){switch(X.nextAddress){case 1:S=window;if(!S.getDataPromise){X.jumpTo(2);break}_.zT(X,3);return _.h(X,S.getDataPromise(),5);case 5:B=X.yieldResult;aQ(f,B);_.CN(X,4);break;case 3:return _.hm(X),_.h(X,Oy(),6);case 6:G=X.yieldResult,sy(f,G);case 4:return X.return();case 2:if(!_.K("sw_nav_preload_pbj")){X.jumpTo(7);break}S.fetchInitialData=function(){var w;return _.R(function(F){if(F.nextAddress==1)return _.h(F,Oy(),2);w=F.yieldResult;sy(f,w);_.TT(F)})};
if(S.getInitialData){S.loadInitialData=function(w){aQ(f,w)};
g=S.getInitialData();S.getInitialData=void 0;aQ(f,g);X.jumpTo(8);break}S.fetchInitialData=void 0;return _.h(X,Oy(),9);case 9:b=X.yieldResult,sy(f,b);case 8:return X.return();case 7:S.getInitialData?(z=S.getInitialData(),S.getInitialData=void 0,aQ(f,z)):S.loadInitialData=function(w){aQ(f,w)},_.TT(X)}})};
KMV=function(f){var S=0;return function(){return S<f.length?{done:!1,value:f[S++]}:{done:!0}}};
dPK=typeof Object.defineProperties=="function"?Object.defineProperty:function(f,S,B){if(f==Array.prototype||f==Object.prototype)return f;f[S]=B.value;return f};
ihT=function(f){f=["object"==typeof globalThis&&globalThis,f,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var S=0;S<f.length;++S){var B=f[S];if(B&&B.Math==Math)return B}throw Error("a");};
_.y3=ihT(this);yG=function(f,S){if(S)a:{var B=_.y3;f=f.split(".");for(var G=0;G<f.length-1;G++){var g=f[G];if(!(g in B))break a;B=B[g]}f=f[f.length-1];G=B[f];S=S(G);S!=G&&S!=null&&dPK(B,f,{configurable:!0,writable:!0,value:S})}};
yG("Symbol",function(f){if(f)return f;var S=function(b,z){this.$jscomp$symbol$id_=b;dPK(this,"description",{configurable:!0,writable:!0,value:z})};
S.prototype.toString=function(){return this.$jscomp$symbol$id_};
var B="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",G=0,g=function(b){if(this instanceof g)throw new TypeError("b");return new S(B+(b||"")+"_"+G++,b)};
return g});
yG("Symbol.iterator",function(f){if(f)return f;f=Symbol("c");for(var S="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),B=0;B<S.length;B++){var G=_.y3[S[B]];typeof G==="function"&&typeof G.prototype[f]!="function"&&dPK(G.prototype,f,{configurable:!0,writable:!0,value:function(){return HhV(KMV(this))}})}return f});
yG("Symbol.asyncIterator",function(f){return f?f:Symbol("d")});
var HhV=function(f){f={next:f};f[Symbol.iterator]=function(){return this};
return f},qYx=typeof Object.create=="function"?Object.create:function(f){var S=function(){};
S.prototype=f;return new S},$PW=function(){function f(){function B(){}
new B;Reflect.construct(B,[],function(){});
return new B instanceof B}
if(typeof Reflect!="undefined"&&Reflect.construct){if(f())return Reflect.construct;var S=Reflect.construct;return function(B,G,g){B=S(B,G);g&&Reflect.setPrototypeOf(B,g.prototype);return B}}return function(B,G,g){g===void 0&&(g=B);
g=qYx(g.prototype||Object.prototype);return Function.prototype.apply.call(B,g,G)||g}}(),Q3N;
if(typeof Object.setPrototypeOf=="function")Q3N=Object.setPrototypeOf;else{var YYW;a:{var rBW={a:!0},j3W={};try{j3W.__proto__=rBW;YYW=j3W.a;break a}catch(f){}YYW=!1}Q3N=YYW?function(f,S){f.__proto__=S;if(f.__proto__!==S)throw new TypeError("e`"+f);return f}:null}WY=Q3N;
_.q=function(f,S){f.prototype=qYx(S.prototype);f.prototype.constructor=f;if(WY)WY(f,S);else for(var B in S)if(B!="prototype")if(Object.defineProperties){var G=Object.getOwnPropertyDescriptor(S,B);G&&Object.defineProperty(f,B,G)}else f[B]=S[B];f.superClass_=S.prototype};
_.m=function(f){var S=typeof Symbol!="undefined"&&Symbol.iterator&&f[Symbol.iterator];if(S)return S.call(f);if(typeof f.length=="number")return{next:KMV(f)};throw Error("f`"+String(f));};
aK=function(f){for(var S,B=[];!(S=f.next()).done;)B.push(S.value);return B};
_.$d=function(f){return f instanceof Array?f:aK(_.m(f))};
_.f4=function(f){return cY(f,f)};
cY=function(f,S){f.raw=S;Object.freeze&&(Object.freeze(f),Object.freeze(S));return f};
om=function(f,S){return Object.prototype.hasOwnProperty.call(f,S)};
OhW=typeof Object.assign=="function"?Object.assign:function(f,S){for(var B=1;B<arguments.length;B++){var G=arguments[B];if(G)for(var g in G)om(G,g)&&(f[g]=G[g])}return f};
yG("Object.assign",function(f){return f||OhW});
var xPQ=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},EuM=function(f){if(f.isRunning_)throw new TypeError("h");
f.isRunning_=!0};
xPQ.prototype.JSC$6784_next_=function(f){this.yieldResult=f};
var LMV=function(f,S){f.abruptCompletion_={exception:S,isException:!0};f.nextAddress=f.catchAddress_||f.finallyAddress_};
xPQ.prototype.return=function(f){this.abruptCompletion_={return:f};this.nextAddress=this.finallyAddress_};
_.h=function(f,S,B){f.nextAddress=B;return{value:S}};
xPQ.prototype.jumpTo=function(f){this.nextAddress=f};
_.TT=function(f){f.nextAddress=0};
_.zT=function(f,S,B){f.catchAddress_=S;B!=void 0&&(f.finallyAddress_=B)};
_.Xz=function(f,S){f.catchAddress_=0;f.finallyAddress_=S||0};
_.CN=function(f,S,B){f.nextAddress=S;f.catchAddress_=B||0};
_.hm=function(f,S){f.catchAddress_=S||0;S=f.abruptCompletion_.exception;f.abruptCompletion_=null;return S};
_.Rs=function(f,S,B,G){G?f.finallyContexts_[G]=f.abruptCompletion_:f.finallyContexts_=[f.abruptCompletion_];f.catchAddress_=S||0;f.finallyAddress_=B||0};
_.wz=function(f,S,B){B=f.finallyContexts_.splice(B||0)[0];(B=f.abruptCompletion_=f.abruptCompletion_||B)?B.isException?f.nextAddress=f.catchAddress_||f.finallyAddress_:B.jumpTo!=void 0&&f.finallyAddress_<B.jumpTo?(f.nextAddress=B.jumpTo,f.abruptCompletion_=null):f.nextAddress=f.finallyAddress_:f.nextAddress=S};
kxG=function(f){this.JSC$6789_context_=new xPQ;this.program_=f};
s3M=function(f,S){EuM(f.JSC$6789_context_);var B=f.JSC$6789_context_.yieldAllIterator_;if(B)return nuN(f,"return"in B?B["return"]:function(G){return{value:G,done:!0}},S,f.JSC$6789_context_.return);
f.JSC$6789_context_.return(S);return ST(f)};
nuN=function(f,S,B,G){try{var g=S.call(f.JSC$6789_context_.yieldAllIterator_,B);if(!(g instanceof Object))throw new TypeError("g`"+g);if(!g.done)return f.JSC$6789_context_.isRunning_=!1,g;var b=g.value}catch(z){return f.JSC$6789_context_.yieldAllIterator_=null,LMV(f.JSC$6789_context_,z),ST(f)}f.JSC$6789_context_.yieldAllIterator_=null;G.call(f.JSC$6789_context_,b);return ST(f)};
ST=function(f){for(;f.JSC$6789_context_.nextAddress;)try{var S=f.program_(f.JSC$6789_context_);if(S)return f.JSC$6789_context_.isRunning_=!1,{value:S.value,done:!1}}catch(B){f.JSC$6789_context_.yieldResult=void 0,LMV(f.JSC$6789_context_,B)}f.JSC$6789_context_.isRunning_=!1;if(f.JSC$6789_context_.abruptCompletion_){S=f.JSC$6789_context_.abruptCompletion_;f.JSC$6789_context_.abruptCompletion_=null;if(S.isException)throw S.exception;return{value:S.return,done:!0}}return{value:void 0,done:!0}};
DPN=function(f){this.next=function(S){EuM(f.JSC$6789_context_);f.JSC$6789_context_.yieldAllIterator_?S=nuN(f,f.JSC$6789_context_.yieldAllIterator_.next,S,f.JSC$6789_context_.JSC$6784_next_):(f.JSC$6789_context_.JSC$6784_next_(S),S=ST(f));return S};
this.throw=function(S){EuM(f.JSC$6789_context_);f.JSC$6789_context_.yieldAllIterator_?S=nuN(f,f.JSC$6789_context_.yieldAllIterator_["throw"],S,f.JSC$6789_context_.JSC$6784_next_):(LMV(f.JSC$6789_context_,S),S=ST(f));return S};
this.return=function(S){return s3M(f,S)};
this[Symbol.iterator]=function(){return this}};
_.GkA=function(f,S){S=new DPN(new kxG(S));WY&&f.prototype&&WY(S,f.prototype);return S};
IkQ=function(f){function S(G){return f.next(G)}
function B(G){return f.throw(G)}
return new Promise(function(G,g){function b(z){z.done?G(z.value):Promise.resolve(z.value).then(S,B).then(b,g)}
b(f.next())})};
_.R=function(f){return IkQ(new DPN(new kxG(f)))};
NIN=function(f){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return f};
this.next=function(S){return Promise.resolve(f.next(S))};
this["throw"]=function(S){return new Promise(function(B,G){var g=f["throw"];g!==void 0?B(g.call(f,S)):(B=f["return"],B!==void 0&&B.call(f),G(new TypeError("i")))})};
f["return"]!==void 0&&(this["return"]=function(S){return Promise.resolve(f["return"](S))})};
_.qb=function(){for(var f=Number(this),S=[],B=f;B<arguments.length;B++)S[B-f]=arguments[B];return S};
_.gDK=function(f){return f};
yG("globalThis",function(f){return f||_.y3});
yG("Reflect",function(f){return f?f:{}});
yG("Reflect.construct",function(){return $PW});
yG("Reflect.setPrototypeOf",function(f){return f?f:WY?function(S,B){try{return WY(S,B),!0}catch(G){return!1}}:null});
yG("Promise",function(f){function S(){this.batch_=null}
function B(z){return z instanceof g?z:new g(function(X){X(z)})}
if(f&&(typeof _.y3.PromiseRejectionEvent!=="undefined"||!_.y3.Promise||_.y3.Promise.toString().indexOf("[native code]")===-1))return f;S.prototype.asyncExecute=function(z){if(this.batch_==null){this.batch_=[];var X=this;this.asyncExecuteFunction(function(){X.executeBatch_()})}this.batch_.push(z)};
var G=_.y3.setTimeout;S.prototype.asyncExecuteFunction=function(z){G(z,0)};
S.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var z=this.batch_;this.batch_=[];for(var X=0;X<z.length;++X){var w=z[X];z[X]=null;try{w()}catch(F){this.asyncThrow_(F)}}}this.batch_=null};
S.prototype.asyncThrow_=function(z){this.asyncExecuteFunction(function(){throw z;})};
var g=function(z){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var X=this.createResolveAndReject_();try{z(X.resolve,X.reject)}catch(w){X.reject(w)}};
g.prototype.createResolveAndReject_=function(){function z(F){return function(V){w||(w=!0,F.call(X,V))}}
var X=this,w=!1;return{resolve:z(this.resolveTo_),reject:z(this.JSC$6805_reject_)}};
g.prototype.resolveTo_=function(z){if(z===this)this.JSC$6805_reject_(new TypeError("j"));else if(z instanceof g)this.settleSameAsPromise_(z);else{a:switch(typeof z){case "object":var X=z!=null;break a;case "function":X=!0;break a;default:X=!1}X?this.resolveToNonPromiseObj_(z):this.fulfill_(z)}};
g.prototype.resolveToNonPromiseObj_=function(z){var X=void 0;try{X=z.then}catch(w){this.JSC$6805_reject_(w);return}typeof X=="function"?this.settleSameAsThenable_(X,z):this.fulfill_(z)};
g.prototype.JSC$6805_reject_=function(z){this.settle_(2,z)};
g.prototype.fulfill_=function(z){this.settle_(1,z)};
g.prototype.settle_=function(z,X){if(this.state_!=0)throw Error("k`"+z+"`"+X+"`"+this.state_);this.state_=z;this.result_=X;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
g.prototype.scheduleUnhandledRejectionCheck_=function(){var z=this;G(function(){if(z.notifyUnhandledRejection_()){var X=_.y3.console;typeof X!=="undefined"&&X.error(z.result_)}},1)};
g.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var z=_.y3.CustomEvent,X=_.y3.Event,w=_.y3.dispatchEvent;if(typeof w==="undefined")return!0;typeof z==="function"?z=new z("unhandledrejection",{cancelable:!0}):typeof X==="function"?z=new X("unhandledrejection",{cancelable:!0}):(z=_.y3.document.createEvent("CustomEvent"),z.initCustomEvent("unhandledrejection",!1,!0,z));z.promise=this;z.reason=this.result_;return w(z)};
g.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var z=0;z<this.onSettledCallbacks_.length;++z)b.asyncExecute(this.onSettledCallbacks_[z]);this.onSettledCallbacks_=null}};
var b=new S;g.prototype.settleSameAsPromise_=function(z){var X=this.createResolveAndReject_();z.callWhenSettled_(X.resolve,X.reject)};
g.prototype.settleSameAsThenable_=function(z,X){var w=this.createResolveAndReject_();try{z.call(X,w.resolve,w.reject)}catch(F){w.reject(F)}};
g.prototype.then=function(z,X){function w(P,d){return typeof P=="function"?function(Q){try{F(P(Q))}catch(x){V(x)}}:d}
var F,V,J=new g(function(P,d){F=P;V=d});
this.callWhenSettled_(w(z,F),w(X,V));return J};
g.prototype.catch=function(z){return this.then(void 0,z)};
g.prototype.callWhenSettled_=function(z,X){function w(){switch(F.state_){case 1:z(F.result_);break;case 2:X(F.result_);break;default:throw Error("l`"+F.state_);}}
var F=this;this.onSettledCallbacks_==null?b.asyncExecute(w):this.onSettledCallbacks_.push(w);this.isRejectionHandled_=!0};
g.resolve=B;g.reject=function(z){return new g(function(X,w){w(z)})};
g.race=function(z){return new g(function(X,w){for(var F=_.m(z),V=F.next();!V.done;V=F.next())B(V.value).callWhenSettled_(X,w)})};
g.all=function(z){var X=_.m(z),w=X.next();return w.done?B([]):new g(function(F,V){function J(Q){return function(x){P[Q]=x;d--;d==0&&F(P)}}
var P=[],d=0;do P.push(void 0),d++,B(w.value).callWhenSettled_(J(P.length-1),V),w=X.next();while(!w.done)})};
return g});
var B_=function(f,S,B){if(f==null)throw new TypeError("m`"+B);if(S instanceof RegExp)throw new TypeError("n`"+B);return f+""};
yG("String.prototype.startsWith",function(f){return f?f:function(S,B){var G=B_(this,S,"startsWith"),g=G.length,b=S.length;B=Math.max(0,Math.min(B|0,G.length));for(var z=0;z<b&&B<g;)if(G[B++]!=S[z++])return!1;return z>=b}});
yG("Object.setPrototypeOf",function(f){return f||WY});
yG("Symbol.dispose",function(f){return f?f:Symbol("o")});
yG("SuppressedError",function(f){function S(B,G,g){if(!(this instanceof S))return new S(B,G,g);g=Error(g);"stack"in g&&(this.stack=g.stack);this.message=g.message;this.error=B;this.suppressed=G}
if(f)return f;_.q(S,Error);S.prototype.name="SuppressedError";return S});
var UP9=function(f,S,B){f instanceof String&&(f=String(f));for(var G=f.length,g=0;g<G;g++){var b=f[g];if(S.call(B,b,g,f))return{i:g,v:b}}return{i:-1,v:void 0}};
yG("Array.prototype.find",function(f){return f?f:function(S,B){return UP9(this,S,B).v}});
yG("WeakMap",function(f){function S(){}
function B(w){var F=typeof w;return F==="object"&&w!==null||F==="function"}
function G(w){if(!om(w,b)){var F=new S;dPK(w,b,{value:F})}}
function g(w){var F=Object[w];F&&(Object[w]=function(V){if(V instanceof S)return V;Object.isExtensible(V)&&G(V);return F(V)})}
if(function(){if(!f||!Object.seal)return!1;try{var w=Object.seal({}),F=Object.seal({}),V=new f([[w,2],[F,3]]);if(V.get(w)!=2||V.get(F)!=3)return!1;V.delete(w);V.set(F,4);return!V.has(w)&&V.get(F)==4}catch(J){return!1}}())return f;
var b="$jscomp_hidden_"+Math.random();g("freeze");g("preventExtensions");g("seal");var z=0,X=function(w){this.JSC$6812_id_=(z+=Math.random()+1).toString();if(w){w=_.m(w);for(var F;!(F=w.next()).done;)F=F.value,this.set(F[0],F[1])}};
X.prototype.set=function(w,F){if(!B(w))throw Error("p");G(w);if(!om(w,b))throw Error("q`"+w);w[b][this.JSC$6812_id_]=F;return this};
X.prototype.get=function(w){return B(w)&&om(w,b)?w[b][this.JSC$6812_id_]:void 0};
X.prototype.has=function(w){return B(w)&&om(w,b)&&om(w[b],this.JSC$6812_id_)};
X.prototype.delete=function(w){return B(w)&&om(w,b)&&om(w[b],this.JSC$6812_id_)?delete w[b][this.JSC$6812_id_]:!1};
return X});
yG("Map",function(f){if(function(){if(!f||typeof f!="function"||!f.prototype.entries||typeof Object.seal!="function")return!1;try{var X=Object.seal({x:4}),w=new f(_.m([[X,"s"]]));if(w.get(X)!="s"||w.size!=1||w.get({x:4})||w.set({x:4},"t")!=w||w.size!=2)return!1;var F=w.entries(),V=F.next();if(V.done||V.value[0]!=X||V.value[1]!="s")return!1;V=F.next();return V.done||V.value[0].x!=4||V.value[1]!="t"||!F.next().done?!1:!0}catch(J){return!1}}())return f;
var S=new WeakMap,B=function(X){this[0]={};this[1]=b();this.size=0;if(X){X=_.m(X);for(var w;!(w=X.next()).done;)w=w.value,this.set(w[0],w[1])}};
B.prototype.set=function(X,w){X=X===0?0:X;var F=G(this,X);F.list||(F.list=this[0][F.id]=[]);F.entry?F.entry.value=w:(F.entry={next:this[1],previous:this[1].previous,head:this[1],key:X,value:w},F.list.push(F.entry),this[1].previous.next=F.entry,this[1].previous=F.entry,this.size++);return this};
B.prototype.delete=function(X){X=G(this,X);return X.entry&&X.list?(X.list.splice(X.index,1),X.list.length||delete this[0][X.id],X.entry.previous.next=X.entry.next,X.entry.next.previous=X.entry.previous,X.entry.head=null,this.size--,!0):!1};
B.prototype.clear=function(){this[0]={};this[1]=this[1].previous=b();this.size=0};
B.prototype.has=function(X){return!!G(this,X).entry};
B.prototype.get=function(X){return(X=G(this,X).entry)&&X.value};
B.prototype.entries=function(){return g(this,function(X){return[X.key,X.value]})};
B.prototype.keys=function(){return g(this,function(X){return X.key})};
B.prototype.values=function(){return g(this,function(X){return X.value})};
B.prototype.forEach=function(X,w){for(var F=this.entries(),V;!(V=F.next()).done;)V=V.value,X.call(w,V[1],V[0],this)};
B.prototype[Symbol.iterator]=B.prototype.entries;var G=function(X,w){var F=w&&typeof w;F=="object"||F=="function"?S.has(w)?F=S.get(w):(F=""+ ++z,S.set(w,F)):F="p_"+w;var V=X[0][F];if(V&&om(X[0],F))for(X=0;X<V.length;X++){var J=V[X];if(w!==w&&J.key!==J.key||w===J.key)return{id:F,list:V,index:X,entry:J}}return{id:F,list:V,index:-1,entry:void 0}},g=function(X,w){var F=X[1];
return HhV(function(){if(F){for(;F.head!=X[1];)F=F.previous;for(;F.next!=F.head;)return F=F.next,{done:!1,value:w(F)};F=null}return{done:!0,value:void 0}})},b=function(){var X={};
return X.previous=X.next=X.head=X},z=0;
return B});
yG("Set",function(f){if(function(){if(!f||typeof f!="function"||!f.prototype.entries||typeof Object.seal!="function")return!1;try{var B=Object.seal({x:4}),G=new f(_.m([B]));if(!G.has(B)||G.size!=1||G.add(B)!=G||G.size!=1||G.add({x:4})!=G||G.size!=2)return!1;var g=G.entries(),b=g.next();if(b.done||b.value[0]!=B||b.value[1]!=B)return!1;b=g.next();return b.done||b.value[0]==B||b.value[0].x!=4||b.value[1]!=b.value[0]?!1:g.next().done}catch(z){return!1}}())return f;
var S=function(B){this.JSC$6826_map_=new Map;if(B){B=_.m(B);for(var G;!(G=B.next()).done;)this.add(G.value)}this.size=this.JSC$6826_map_.size};
S.prototype.add=function(B){B=B===0?0:B;this.JSC$6826_map_.set(B,B);this.size=this.JSC$6826_map_.size;return this};
S.prototype.delete=function(B){B=this.JSC$6826_map_.delete(B);this.size=this.JSC$6826_map_.size;return B};
S.prototype.clear=function(){this.JSC$6826_map_.clear();this.size=0};
S.prototype.has=function(B){return this.JSC$6826_map_.has(B)};
S.prototype.entries=function(){return this.JSC$6826_map_.entries()};
S.prototype.values=function(){return this.JSC$6826_map_.values()};
S.prototype.keys=S.prototype.values;S.prototype[Symbol.iterator]=S.prototype.values;S.prototype.forEach=function(B,G){var g=this;this.JSC$6826_map_.forEach(function(b){return B.call(G,b,b,g)})};
return S});
yG("Math.log2",function(f){return f?f:function(S){return Math.log(S)/Math.LN2}});
yG("Object.values",function(f){return f?f:function(S){var B=[],G;for(G in S)om(S,G)&&B.push(S[G]);return B}});
yG("Object.is",function(f){return f?f:function(S,B){return S===B?S!==0||1/S===1/B:S!==S&&B!==B}});
yG("Array.prototype.includes",function(f){return f?f:function(S,B){var G=this;G instanceof String&&(G=String(G));var g=G.length;B=B||0;for(B<0&&(B=Math.max(B+g,0));B<g;B++){var b=G[B];if(b===S||Object.is(b,S))return!0}return!1}});
yG("String.prototype.includes",function(f){return f?f:function(S,B){return B_(this,S,"includes").indexOf(S,B||0)!==-1}});
yG("Array.from",function(f){return f?f:function(S,B,G){B=B!=null?B:function(X){return X};
var g=[],b=typeof Symbol!="undefined"&&Symbol.iterator&&S[Symbol.iterator];if(typeof b=="function"){S=b.call(S);for(var z=0;!(b=S.next()).done;)g.push(B.call(G,b.value,z++))}else for(b=S.length,z=0;z<b;z++)g.push(B.call(G,S[z],z));return g}});
yG("Object.entries",function(f){return f?f:function(S){var B=[],G;for(G in S)om(S,G)&&B.push([G,S[G]]);return B}});
yG("Number.isFinite",function(f){return f?f:function(S){return typeof S!=="number"?!1:!isNaN(S)&&S!==Infinity&&S!==-Infinity}});
yG("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
yG("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
yG("Number.isInteger",function(f){return f?f:function(S){return Number.isFinite(S)?S===Math.floor(S):!1}});
yG("Number.isSafeInteger",function(f){return f?f:function(S){return Number.isInteger(S)&&Math.abs(S)<=Number.MAX_SAFE_INTEGER}});
yG("String.prototype.endsWith",function(f){return f?f:function(S,B){var G=B_(this,S,"endsWith");B===void 0&&(B=G.length);B=Math.max(0,Math.min(B|0,G.length));for(var g=S.length;g>0&&B>0;)if(G[--B]!=S[--g])return!1;return g<=0}});
var CZG=function(f,S){f instanceof String&&(f+="");var B=0,G=!1,g={next:function(){if(!G&&B<f.length){var b=B++;return{value:S(b,f[b]),done:!1}}G=!0;return{done:!0,value:void 0}}};
g[Symbol.iterator]=function(){return g};
return g};
yG("Array.prototype.entries",function(f){return f?f:function(){return CZG(this,function(S,B){return[S,B]})}});
yG("Math.trunc",function(f){return f?f:function(S){S=Number(S);if(isNaN(S)||S===Infinity||S===-Infinity||S===0)return S;var B=Math.floor(Math.abs(S));return S<0?-B:B}});
yG("Number.isNaN",function(f){return f?f:function(S){return typeof S==="number"&&isNaN(S)}});
yG("Array.prototype.keys",function(f){return f?f:function(){return CZG(this,function(S){return S})}});
yG("Array.prototype.values",function(f){return f?f:function(){return CZG(this,function(S,B){return B})}});
yG("Array.prototype.fill",function(f){return f?f:function(S,B,G){var g=this.length||0;B<0&&(B=Math.max(0,g+B));if(G==null||G>g)G=g;G=Number(G);G<0&&(G=Math.max(0,g+G));for(B=Number(B||0);B<G;B++)this[B]=S;return this}});
var Gd=function(f){return f?f:Array.prototype.fill};
yG("Int8Array.prototype.fill",Gd);yG("Uint8Array.prototype.fill",Gd);yG("Uint8ClampedArray.prototype.fill",Gd);yG("Int16Array.prototype.fill",Gd);yG("Uint16Array.prototype.fill",Gd);yG("Int32Array.prototype.fill",Gd);yG("Uint32Array.prototype.fill",Gd);yG("Float32Array.prototype.fill",Gd);yG("Float64Array.prototype.fill",Gd);
yG("Object.fromEntries",function(f){return f?f:function(S){var B={};if(!(Symbol.iterator in S))throw new TypeError("r`"+S);S=S[Symbol.iterator].call(S);for(var G=S.next();!G.done;G=S.next()){G=G.value;if(Object(G)!==G)throw new TypeError("s");B[G[0]]=G[1]}return B}});
yG("String.prototype.replaceAll",function(f){return f?f:function(S,B){if(S instanceof RegExp&&!S.global)throw new TypeError("t");return S instanceof RegExp?this.replace(S,B):this.replace(new RegExp(String(S).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),B)}});
yG("Object.getOwnPropertySymbols",function(f){return f?f:function(){return[]}});
yG("String.prototype.repeat",function(f){return f?f:function(S){var B=B_(this,null,"repeat");if(S<0||S>1342177279)throw new RangeError("u");S|=0;for(var G="";S;)if(S&1&&(G+=B),S>>>=1)B+=B;return G}});
yG("Array.prototype.findIndex",function(f){return f?f:function(S,B){return UP9(this,S,B).i}});
yG("Array.prototype.flatMap",function(f){return f?f:function(S,B){var G=[];Array.prototype.forEach.call(this,function(g,b){g=S.call(B,g,b,this);Array.isArray(g)?G.push.apply(G,g):G.push(g)});
return G}});
yG("String.prototype.codePointAt",function(f){return f?f:function(S){var B=B_(this,null,"codePointAt"),G=B.length;S=Number(S)||0;if(S>=0&&S<G){S|=0;var g=B.charCodeAt(S);if(g<55296||g>56319||S+1===G)return g;S=B.charCodeAt(S+1);return S<56320||S>57343?g:(g-55296)*1024+S+9216}}});
yG("String.fromCodePoint",function(f){return f?f:function(S){for(var B="",G=0;G<arguments.length;G++){var g=Number(arguments[G]);if(g<0||g>1114111||g!==Math.floor(g))throw new RangeError("v`"+g);g<=65535?B+=String.fromCharCode(g):(g-=65536,B+=String.fromCharCode(g>>>10&1023|55296),B+=String.fromCharCode(g&1023|56320))}return B}});
yG("String.prototype.padStart",function(f){return f?f:function(S,B){var G=B_(this,null,"padStart");S-=G.length;B=B!==void 0?String(B):" ";return(S>0&&B?B.repeat(Math.ceil(S/B.length)).substring(0,S):"")+G}});
yG("Promise.prototype.finally",function(f){return f?f:function(S){return this.then(function(B){return Promise.resolve(S()).then(function(){return B})},function(B){return Promise.resolve(S()).then(function(){throw B;
})})}});
yG("Math.imul",function(f){return f?f:function(S,B){S=Number(S);B=Number(B);var G=S&65535,g=B&65535;return G*g+((S>>>16&65535)*g+G*(B>>>16&65535)<<16>>>0)|0}});
yG("Object.hasOwn",function(f){return f?f:function(S,B){return Object.prototype.hasOwnProperty.call(S,B)}});
yG("Math.sign",function(f){return f?f:function(S){S=Number(S);return S===0||isNaN(S)?S:S>0?1:-1}});
yG("Array.prototype.flat",function(f){return f?f:function(S){S=S===void 0?1:S;var B=[];Array.prototype.forEach.call(this,function(G){Array.isArray(G)&&S>0?(G=Array.prototype.flat.call(G,S-1),B.push.apply(B,G)):B.push(G)});
return B}});
yG("String.raw",function(f){return f?f:function(S,B){if(S==null)throw new TypeError("w");for(var G=S.raw,g=G.length,b="",z=0;z<g;++z)b+=G[z],z+1<g&&z+1<arguments.length&&(b+=String(arguments[z+1]));return b}});
yG("Reflect.ownKeys",function(f){return f?f:function(S){var B=[],G=Object.getOwnPropertyNames(S);S=Object.getOwnPropertySymbols(S);for(var g=0;g<G.length;g++)(G[g].substring(0,14)=="jscomp_symbol_"?S:B).push(G[g]);return B.concat(S)}});
yG("Object.getOwnPropertyDescriptors",function(f){return f?f:function(S){for(var B={},G=Reflect.ownKeys(S),g=0;g<G.length;g++)B[G[g]]=Object.getOwnPropertyDescriptor(S,G[g]);return B}});
yG("WeakSet",function(f){if(function(){if(!f||!Object.seal)return!1;try{var B=Object.seal({}),G=Object.seal({}),g=new f([B]);if(!g.has(B)||g.has(G))return!1;g.delete(B);g.add(G);return!g.has(B)&&g.has(G)}catch(b){return!1}}())return f;
var S=function(B){this.JSC$6833_map_=new WeakMap;if(B){B=_.m(B);for(var G;!(G=B.next()).done;)this.add(G.value)}};
S.prototype.add=function(B){this.JSC$6833_map_.set(B,!0);return this};
S.prototype.has=function(B){return this.JSC$6833_map_.has(B)};
S.prototype.delete=function(B){return this.JSC$6833_map_.delete(B)};
return S});
yG("Promise.allSettled",function(f){function S(G){return{status:"fulfilled",value:G}}
function B(G){return{status:"rejected",reason:G}}
return f?f:function(G){var g=this;G=Array.from(G,function(b){return g.resolve(b).then(S,B)});
return g.all(G)}});
yG("Number.parseInt",function(f){return f||parseInt});
_._DumpException=window._DumpException||function(f){throw f;};
window._DumpException=_._DumpException;var p$1,gp,eT,bh,ABj,NqT,Mk1,ZhM,ZZ,tkN;p$1=p$1||{};_.S1=this||self;_.WL=function(f,S,B){f=f.split(".");B=B||_.S1;for(var G;f.length&&(G=f.shift());)f.length||S===void 0?B[G]&&B[G]!==Object.prototype[G]?B=B[G]:B=B[G]={}:B[G]=S};
gp=function(f){var S=_.U6("WIZ_global_data.oxN3nb");f=S&&S[f];return f!=null?f:!1};
eT=_.S1._F_toggles_default_kevlar_base||[];bh=function(){};
bh.get=function(){return null};
_.U6=function(f,S){f=f.split(".");S=S||_.S1;for(var B=0;B<f.length;B++)if(S=S[f[B]],S==null)return null;return S};
_.mG=function(f){f.instance_=void 0;f.getInstance=function(){return f.instance_?f.instance_:f.instance_=new f}};
_.Xu=function(f){var S=typeof f;return S!="object"?S:f?Array.isArray(f)?"array":S:"null"};
_.W9=function(f){var S=_.Xu(f);return S=="array"||S=="object"&&typeof f.length=="number"};
_.og=function(f){var S=typeof f;return S=="object"&&f!=null||S=="function"};
_.Sm=function(f){return Object.prototype.hasOwnProperty.call(f,ABj)&&f[ABj]||(f[ABj]=++NqT)};
ABj="closure_uid_"+(Math.random()*1E9>>>0);NqT=0;Mk1=function(f,S,B){return f.call.apply(f.bind,arguments)};
ZhM=function(f,S,B){if(!f)throw Error();if(arguments.length>2){var G=Array.prototype.slice.call(arguments,2);return function(){var g=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(g,G);return f.apply(S,g)}}return function(){return f.apply(S,arguments)}};
_.$A=function(f,S,B){_.$A=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?Mk1:ZhM;return _.$A.apply(null,arguments)};
_.vK=function(f,S){var B=Array.prototype.slice.call(arguments,1);return function(){var G=B.slice();G.push.apply(G,arguments);return f.apply(this,G)}};
_.zd=function(){return Date.now()};
ZZ=function(f){return f};
_.Rm=function(f,S){function B(){}
B.prototype=S.prototype;f.superClass_=S.prototype;f.prototype=new B;f.prototype.constructor=f;f.base=function(G,g,b){for(var z=Array(arguments.length-2),X=2;X<arguments.length;X++)z[X-2]=arguments[X];return S.prototype[g].apply(G,z)}};
tkN=function(f){return f};var uM9,akW;_.N=function(f,S,B,G){var g=arguments.length,b=g<3?S:G===null?G=Object.getOwnPropertyDescriptor(S,B):G,z;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")b=Reflect.decorate(f,S,B,G);else for(var X=f.length-1;X>=0;X--)if(z=f[X])b=(g<3?z(b):g>3?z(S,B,b):z(S,B))||b;g>3&&b&&Object.defineProperty(S,B,b)};
_.Z=function(f,S){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(f,S)};
uM9=function(f,S){if(S!==null&&S!==void 0){if(typeof S!=="object"&&typeof S!=="function")throw new TypeError("x");if(B===void 0){if(!Symbol.dispose)throw new TypeError("z");var B=S[Symbol.dispose]}if(typeof B!=="function")throw new TypeError("A");f.stack.push({value:S,dispose:B,async:!1})}return S};
akW=function(f){function S(b){f.error=f.hasError?new SuppressedError(b,f.error,"An error was suppressed during disposal."):b;f.hasError=!0}
function B(){for(;G=f.stack.pop();)try{if(!G.async&&g===1)return g=0,f.stack.push(G),Promise.resolve().then(B);if(G.dispose){var b=G.dispose.call(G.value);if(G.async)return g|=2,Promise.resolve(b).then(B,function(z){S(z);return B()})}else g|=1}catch(z){S(z)}if(g===1)return f.hasError?Promise.reject(f.error):Promise.resolve();
if(f.hasError)throw f.error;}
var G,g=0;B()};_.Rm(_.fM,Error);_.fM.prototype.name="CustomError";var yBN;var WM9=void 0,cBA,lkQ=typeof TextDecoder!=="undefined",BWN,SVN=typeof String.prototype.isWellFormed==="function",oQQ=typeof TextEncoder!=="undefined";var fh9;_.Hv=function(f){for(var S=[],B=0,G=0;G<f.length;G++){var g=f.charCodeAt(G);g<128?S[B++]=g:(g<2048?S[B++]=g>>6|192:((g&64512)==55296&&G+1<f.length&&(f.charCodeAt(G+1)&64512)==56320?(g=65536+((g&1023)<<10)+(f.charCodeAt(++G)&1023),S[B++]=g>>18|240,S[B++]=g>>12&63|128):S[B++]=g>>12|224,S[B++]=g>>6&63|128),S[B++]=g&63|128)}return S};
fh9=function(f){for(var S=[],B=0,G=0;B<f.length;){var g=f[B++];if(g<128)S[G++]=String.fromCharCode(g);else if(g>191&&g<224){var b=f[B++];S[G++]=String.fromCharCode((g&31)<<6|b&63)}else if(g>239&&g<365){b=f[B++];var z=f[B++],X=f[B++];g=((g&7)<<18|(b&63)<<12|(z&63)<<6|X&63)-65536;S[G++]=String.fromCharCode(55296+(g>>10));S[G++]=String.fromCharCode(56320+(g&1023))}else b=f[B++],z=f[B++],S[G++]=String.fromCharCode((g&15)<<12|(b&63)<<6|z&63)}return S.join("")};var hs=String.prototype.trim?function(f){return f.trim()}:function(f){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(f)[1]},oEs=/&/g,SgQ=/</g,BlN=/>/g,GLM=/"/g,gEV=/'/g,ep9=/\x00/g,bq1=/[\x00&<>"']/;var Xx=!!(eT[0]>>15&1),m$x=!!(eT[0]>>16&1),zps=!!(eT[0]&8),Rp1=!!(eT[0]&2),Xkj=!!(eT[0]&4),wkM=!!(eT[0]&16);var P9=Xx?m$x:gp(610401301),hpx=Xx?zps:gp(772657768),Tls=Xx?Rp1:gp(513659523),Fcj=Xx?Xkj:gp(568333945),mWN=Xx?wkM:gp(1331761403);var v9,VFx=_.S1.navigator;v9=VFx?VFx.userAgentData||null:null;var ZX;_.CM=function(f,S){return Array.prototype.indexOf.call(f,S,void 0)};
_.AA=function(f,S,B){Array.prototype.forEach.call(f,S,B)};
_.wp=function(f,S,B){return Array.prototype.filter.call(f,S,B)};
_.Yv=function(f,S,B){return Array.prototype.map.call(f,S,B)};
ZX=function(f,S,B){return Array.prototype.some.call(f,S,B)};
_.NPQ=function(f,S,B){return Array.prototype.every.call(f,S,B)};var h$=function(f){h$[" "](f);return f};
h$[" "]=function(){};
var xv=function(f,S){try{return h$(f[S]),!0}catch(B){}return!1},hn1=function(f,S,B,G){G=G?G(S):S;
return Object.prototype.hasOwnProperty.call(f,G)?f[G]:f[G]=B(S)};var JtN,ay,PpN,vEG,d$x,iqM,u7M,HqG,qgV,$$Q,CLA,YgN,rt1,EE9,LcM,kLT;_.k_s=function(){return _.S1.navigator||null};
JtN=QN();_.Td=e1T();ay=H9("Edge");PpN=ay||_.Td;_.Fx=H9("Gecko")&&!(_.wW(_.Js(),"WebKit")&&!H9("Edge"))&&!(H9("Trident")||H9("MSIE"))&&!H9("Edge");_.V9=_.wW(_.Js(),"WebKit")&&!H9("Edge");vEG=_.V9&&H9("Mobile");_.KcG=_.TWQ();d$x=_.FxN();iqM=(LM()?v9.platform==="Linux":H9("Linux"))||_.V11();u7M=_.w9N();HqG=h1K();qgV=H9("iPad");$$Q=H9("iPod");_.QXx=_.kQ();CLA=_.wW(_.Js(),"KaiOS");YgN=function(){var f=_.S1.document;return f?f.documentMode:void 0};
a:{var jXT="",OqK=function(){var f=_.Js();if(_.Fx)return/rv:([^\);]+)(\)|;)/.exec(f);if(ay)return/Edge\/([\d\.]+)/.exec(f);if(_.Td)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(f);if(_.V9)return/WebKit\/(\S+)/.exec(f);if(JtN)return/(?:Version)[ \/]?(\S+)/.exec(f)}();
OqK&&(jXT=OqK?OqK[1]:"");if(_.Td){var x$9=YgN();if(x$9!=null&&x$9>parseFloat(jXT)){rt1=String(x$9);break a}}rt1=jXT}EE9=rt1;LcM={};_.J$=function(f){return hn1(LcM,f,function(){return _.FG(EE9,f)>=0})};
if(_.S1.document&&_.Td){var nEV=YgN();kLT=nEV?nEV:parseInt(EE9,10)||void 0}else kLT=void 0;_.sXV=kLT;var FjN,VeV,D$W;_.P_=YQ();FjN=h1K()||H9("iPod");VeV=H9("iPad");D$W=_.mAx();_.v_=_.xQ();_.k0=_.EV()&&!_.kQ();var Ihx,K4,tZ1,tEK,Cp1,U$1;Ihx={};K4=null;tZ1=_.Fx||_.V9||typeof _.S1.btoa=="function";_.oO=function(f,S){S===void 0&&(S=0);U$1();S=Ihx[S];for(var B=Array(Math.floor(f.length/3)),G=S[64]||"",g=0,b=0;g<f.length-2;g+=3){var z=f[g],X=f[g+1],w=f[g+2],F=S[z>>2];z=S[(z&3)<<4|X>>4];X=S[(X&15)<<2|w>>6];w=S[w&63];B[b++]=F+z+X+w}F=0;w=G;switch(f.length-g){case 2:F=f[g+1],w=S[(F&15)<<2]||G;case 1:f=f[g],B[b]=S[f>>2]+S[(f&3)<<4|F>>4]+w+G}return B.join("")};
tEK=function(f){var S="";Cp1(f,function(B){S+=String.fromCharCode(B)});
return S};
_.gIQ=function(f){var S=[];Cp1(f,function(B){S.push(B)});
return S};
_.Rg=function(f){var S=f.length,B=S*3/4;B%3?B=Math.floor(B):_.XG("=.",f[S-1])&&(B=_.XG("=.",f[S-2])?B-2:B-1);var G=new Uint8Array(B),g=0;Cp1(f,function(b){G[g++]=b});
return g!==B?G.subarray(0,g):G};
Cp1=function(f,S){function B(w){for(;G<f.length;){var F=f.charAt(G++),V=K4[F];if(V!=null)return V;if(!_.bK(F))throw Error("E`"+F);}return w}
U$1();for(var G=0;;){var g=B(-1),b=B(0),z=B(64),X=B(64);if(X===64&&g===-1)break;S(g<<2|b>>4);z!=64&&(S(b<<4&240|z>>2),X!=64&&S(z<<6&192|X))}};
U$1=function(){if(!K4){K4={};for(var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),S=["+/=","+/","-_=","-_.","-_"],B=0;B<5;B++){var G=f.concat(S[B].split(""));Ihx[B]=G;for(var g=0;g<G.length;g++){var b=G[g];K4[b]===void 0&&(K4[b]=g)}}}};var nQV=typeof Uint8Array!=="undefined",QTG=!_.Td&&typeof btoa==="function",YVx=/[-_.]/g,qV9={"-":"+",_:"/",".":"="},Li={};var E8,At1;E8=function(f,S){if(S!==Li)throw Error("G");this.JSC$6864_value_=f;if(f!=null&&f.length===0)throw Error("F");};
_.kX=function(){return pkG||(pkG=new E8(null,Li))};
At1=function(f){return new Uint8Array(xg(f)||0)};
E8.prototype.isEmpty=function(){return this.JSC$6864_value_==null};
E8.prototype.sizeBytes=function(){var f=xg(this);return f?f.length:0};
var xg=function(f){if(Li!==Li)throw Error("G");var S=f.JSC$6864_value_;S=S==null||nQV&&S!=null&&S instanceof Uint8Array?S:typeof S==="string"?rsV(S):null;return S==null?S:f.JSC$6864_value_=S},pkG;var OMN=void 0;var Ki=typeof Symbol==="function"&&typeof Symbol()==="symbol",NlG=V$("jas",void 0,!0),N2=V$(void 0,"0di"),Yg=V$(void 0,"1oa"),tX=V$(void 0,Symbol()),OiK=V$(void 0,"0ub"),EXG=V$(void 0,"0ubs"),n$1=V$(void 0,"0ubsb"),tm1=V$(void 0,"0actk"),pY=V$("m_m","messagePrototypeMarker",!0),CmA=V$(void 0,"vps"),Y8Q=V$();var EQ1,xAs,vQ,MFK;EQ1={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};xAs=Object.defineProperties;_.dN=Ki?NlG:"internalArrayState";MFK=[];qN(MFK,7);vQ=Object.freeze(MFK);var AX={},jm={},Zqx=function(f,S,B){this.iterable=f;this.mapper=S;this.thisArg=B};
Zqx.prototype.next=function(){var f=this.iterable.next();f.done||(f.value=this.mapper.call(this.thisArg,f.value));return f};
Zqx.prototype[Symbol.iterator]=function(){return this};
var tFK=Object.freeze({}),Dv={};_.uJW=A1(function(f){return f!==null&&f!==void 0});var CK1=A1(function(f){return typeof f==="number"}),UAG=A1(function(f){return typeof f==="string"}),p9K=A1(function(f){return typeof f==="boolean"}),ahQ=A1(function(f){return f!=null&&typeof f==="object"&&typeof f.then==="function"}),CvK=A1(function(f){return typeof f==="function"}),BW=A1(function(f){return!!f&&(typeof f==="object"||typeof f==="function")});var MN=typeof _.S1.BigInt==="function"&&typeof _.S1.BigInt(0)==="bigint";var nY=A1(function(f){return MN?f>=ytG&&f<=WcW:f[0]==="-"?As1(f,ct9):As1(f,lhW)}),ct9=Number.MIN_SAFE_INTEGER.toString(),ytG=MN?BigInt(Number.MIN_SAFE_INTEGER):void 0,lhW=Number.MAX_SAFE_INTEGER.toString(),WcW=MN?BigInt(Number.MAX_SAFE_INTEGER):void 0;var fAM=typeof Uint8Array.prototype.slice==="function",ag=0,y$=0,ud;var j2,Eu,Fu,LY,ysK;j2=typeof BigInt==="function"?BigInt.asIntN:void 0;_.k$=typeof BigInt==="function"?BigInt.asUintN:void 0;Eu=Number.isSafeInteger;Fu=Number.isFinite;LY=Math.trunc;ysK=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var p7Q={};var $NN={},o7G=function(){try{var f=function(){return $PW(Map,[],this.constructor)};
_.q(f,Map);h$(new f);return!1}catch(S){return!0}}(),dp=function(){this.JSC$6884_map_=new Map};
_.e=dp.prototype;_.e.get=function(f){return this.JSC$6884_map_.get(f)};
_.e.set=function(f,S){this.JSC$6884_map_.set(f,S);this.size=this.JSC$6884_map_.size;return this};
_.e.delete=function(f){f=this.JSC$6884_map_.delete(f);this.size=this.JSC$6884_map_.size;return f};
_.e.clear=function(){this.JSC$6884_map_.clear();this.size=this.JSC$6884_map_.size};
_.e.has=function(f){return this.JSC$6884_map_.has(f)};
_.e.entries=function(){return this.JSC$6884_map_.entries()};
_.e.keys=function(){return this.JSC$6884_map_.keys()};
_.e.values=function(){return this.JSC$6884_map_.values()};
_.e.forEach=function(f,S){return this.JSC$6884_map_.forEach(f,S)};
dp.prototype[Symbol.iterator]=function(){return this.entries()};
var S0=function(){if(o7G)return Object.setPrototypeOf(dp.prototype,Map.prototype),Object.defineProperties(dp.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),dp;var f=function(){return $PW(Map,[],this.constructor)};
_.q(f,Map);return f}(),M2=function(f,S,B,G){B=B===void 0?K6G:B;
G=G===void 0?K6G:G;var g=S0.call(this)||this;g.arrayState=f[_.dN]|0;g.valueCtor=S;g.keyToApi=B;g.valueToApi=g.valueCtor?iiK:G;for(var b=0;b<f.length;b++){var z=f[b],X=B(z[0],!1,!0),w=z[1];S?w===void 0&&(w=null):w=G(z[1],!1,!0,void 0,void 0,g.arrayState);S0.prototype.set.call(g,X,w)}return g};
_.q(M2,S0);var Ss9=function(f){if(f.arrayState&2)throw Error("K");};
_.e=M2.prototype;_.e.clear=function(){Ss9(this);S0.prototype.clear.call(this)};
_.e.delete=function(f){Ss9(this);return S0.prototype.delete.call(this,this.keyToApi(f,!0,!1))};
_.e.entries=function(){if(this.valueCtor){var f=S0.prototype.keys.call(this);f=new Zqx(f,HiV,this)}else f=S0.prototype.entries.call(this);return f};
_.e.values=function(){if(this.valueCtor){var f=S0.prototype.keys.call(this);f=new Zqx(f,M2.prototype.get,this)}else f=S0.prototype.values.call(this);return f};
_.e.forEach=function(f,S){this.valueCtor?S0.prototype.forEach.call(this,function(B,G,g){f.call(S,g.get(G),G,g)}):S0.prototype.forEach.call(this,f,S)};
_.e.set=function(f,S){Ss9(this);f=this.keyToApi(f,!0,!1);return f==null?this:S==null?(S0.prototype.delete.call(this,f),this):S0.prototype.set.call(this,f,this.valueToApi(S,!0,!0,this.valueCtor,!1,this.arrayState))};
_.e.has=function(f){return S0.prototype.has.call(this,this.keyToApi(f,!1,!1))};
_.e.get=function(f){f=this.keyToApi(f,!1,!1);var S=S0.prototype.get.call(this,f);if(S!==void 0){var B=this.valueCtor;return B?(B=this.valueToApi(S,!1,!0,B,this.callToMutableOnAccess,this.arrayState),B!==S&&S0.prototype.set.call(this,f,B),B):S}};
M2.prototype[Symbol.iterator]=function(){return this.entries()};
M2.prototype.toJSON=void 0;var q8T;var nXT=function(){},WO=function(f,S){for(var B in f)!isNaN(B)&&S(f,+B,f[B])},sgV=function(f){var S=new nXT;
WO(f,function(B,G,g){S[G]=ge(g)});
S.reviveUnknownFields=f.reviveUnknownFields;return S},r1W={reviveIntoImmutable:!0};var koW;var A1N,NNV;var B41,HQ,FX,Kg,GrN,jT,PD,g7K,eV1,L4,bZV,kW,DI,Im;B41=_.Zv(0);_.ih={};_.H_=function(f,S,B,G,g){S=HQ(f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,S,B,g);if(S!==null||G&&f.noLegacyNull!==jm)return S};
HQ=function(f,S,B,G){if(S===-1)return null;var g=S+(B?0:-1),b=f.length-1;if(!(b<1+(B?0:-1))){if(g>=b){var z=f[b];if(z!=null&&typeof z==="object"&&z.constructor===Object){B=z[S];var X=!0}else if(g===b)B=z;else return}else B=f[g];if(G&&B!=null){G=G(B);if(G==null)return G;if(!Object.is(G,B))return X?z[S]=G:f[g]=G,G}return B}};
_.gZ=function(f,S,B,G){hr(f);var g=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Jr(g,g[_.dN]|0,S,B,G);return f};
_.qa=function(f,S,B){f=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return rI(f,f[_.dN]|0,S,B)!==void 0};
_.$W=function(f,S,B,G){var g=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return rI(g,g[_.dN]|0,S,Kg(f,G,B))!==void 0};
_.SI=function(f){return f===tFK?2:4};
_.Q9=function(f,S){f=_.H_(f,S,void 0,void 0,fZj);return f==null?_.kX():f};
FX=function(f,S,B,G){hr(f);var g=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b=g[_.dN]|0;if(G==null){var z=SuK(g);if(Bex(z,g,b,B)===S)z.set(B,0);else return f}else b=GnV(g,b,B,S);Jr(g,b,S,G);return f};
_.YW=function(f,S,B,G){var g=f[_.dN]|0,b=U8(g);g=GnV(f,g,B,S,b);Jr(f,g,S,G,b)};
Kg=function(f,S,B){return _.rp(f,S)===B?B:-1};
_.rp=function(f,S){f=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Bex(SuK(f),f,void 0,S,void 0)};
GrN=function(f,S,B){var G=f[_.dN]|0,g=U8(G),b=HQ(f,B,g);if(b!=null&&b[pY]===AX){if(!xX(b))return XT(b),b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var z=b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(b)&&(z=b);if(z){var X=z[_.dN]|0;X&2&&(z=bd(z,X))}z=e0(z,S,!0);z!==b&&Jr(f,G,B,z,g);return z};
_.BU=function(f,S,B,G){var g=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b=g[_.dN]|0;S=rI(g,b,S,B,G);if(S==null)return S;b=g[_.dN]|0;if(!xX(f,b)){var z=dNG(S);z!==S&&(XT(f)&&(g=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b=g[_.dN]|0),S=z,b=Jr(g,b,B,S,G),VH(g,b))}return S};
_.oK=function(f,S,B,G){var g=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return g$x(f,g,g[_.dN]|0,S,B,G,!1,!0)};
_.SZ=function(f,S,B,G){B=eBM(B);_.gZ(f,S,B,G);B&&!xX(B)&&VH(f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return f};
_.Bo=function(f,S,B,G){G=eBM(G);FX(f,S,B,G);G&&!xX(G)&&VH(f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return f};
jT=function(f,S,B){hr(f);var G=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=G[_.dN]|0;if(B==null)return Jr(G,g,S),f;for(var b=B===vQ?7:B[_.dN]|0,z=b,X=id(b),w=X||Object.isFrozen(B),F=!0,V=!0,J=0;J<B.length;J++){var P=B[J];X||(P=xX(P),F&&(F=!P),V&&(V=P))}X||(b=F?13:5,b=V?b&-4097:b|4096);w&&b===z||(B=ge(B),z=0,b=KX(b,g));b!==z&&qN(B,b);g=Jr(G,g,S,B);2&b||!(4096&b||16&b)||VH(G,g);return f};
PD=function(f,S,B,G){m2A(f,S,B,G);return f};
g7K=function(f,S,B){m2A(f,S,OH,void 0,B,1,!0);return f};
_.xW=function(f,S,B){f=_.H_(f,S,void 0,B);S=typeof f;f=f==null?f:S==="bigint"?_.Zv((0,_.k$)(64,f)):_.PO(f)?S==="string"?_.X7x(f):_.zjN(f):void 0;return f};
_.EH=function(f,S){var B=B===void 0?!1:B;var G;return(G=_.aN9(_.H_(f,S)))!=null?G:B};
_.Bv=function(f,S,B){B=B===void 0?0:B;var G;return(G=_.q2(_.H_(f,S)))!=null?G:B};
eV1=function(f,S){var B=B===void 0?0:B;f=_.$$(_.H_(f,S));return f!=null?f:B};
L4=function(f,S,B){B=B===void 0?B41:B;var G;return(G=_.TNT(_.H_(f,S)))!=null?G:B};
bZV=function(f){var S=S===void 0?B41:S;var B;return(B=_.xW(f,23))!=null?B:S};
kW=function(f,S){var B=B===void 0?0:B;var G;return(G=_.H_(f,S,void 0,void 0,_.Ro))!=null?G:B};
_.n4=function(f,S,B,G){B=B===void 0?"":B;var g;return(g=_.CY(_.H_(f,S,G)))!=null?g:B};
_.sH=function(f,S){var B=B===void 0?0:B;var G;return(G=_.iz(_.H_(f,S)))!=null?G:B};
DI=function(f,S){var B=B===void 0?"0":B;f=hjM(_.H_(f,S),!0);return f!=null?f:B};
Im=function(f,S,B){return _.n4(f,Kg(f,B,S))};
_.UH=function(f,S,B,G){return _.BU(f,S,Kg(f,G,B),void 0)};
_.Vf=function(f,S){return _.CY(_.H_(f,S,void 0,_.ih))};
_.b5=function(f,S,B){return _.gZ(f,S,uGj(B))};
_.Yc=function(f,S,B){return _.$g(f,S,uGj(B),!1)};
_.C4=function(f,S,B){return _.gZ(f,S,_.HO(B))};
_.is=function(f,S,B){return _.gZ(f,S,x$(B))};
_.Jx=function(f,S,B){return _.gZ(f,S,DZ(B))};
_.oQ=function(f,S,B,G){return _.$g(f,S,DZ(B),"",G)};
_.GV=function(f,S,B){return _.gZ(f,S,B==null?B:_.de(B))};
_.p4=function(f,S,B){return _.$g(f,S,B==null?B:_.de(B),0)};var O7=function(f,S,B){this.buffer=f;if(B&&!S)throw Error();this.JSC$6896_isImmutable=S};var mYV=function(f,S,B,G){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6899_start_=0;this.init(f,S,B,G)},A$,RVx,Xhx,hVT,YuG,zVA;
_.e=mYV.prototype;_.e.init=function(f,S,B,G){var g=G===void 0?{}:G;G=g.aliasBytesFields===void 0?!1:g.aliasBytesFields;g=g.treatNewDataAsImmutable===void 0?!1:g.treatNewDataAsImmutable;this.aliasBytesFields=G;this.treatNewDataAsImmutable=g;f&&(f=zBM(f,this.treatNewDataAsImmutable),this.bytes_=f.buffer,this.bytesAreImmutable_=f.JSC$6896_isImmutable,this.JSC$6899_start_=S||0,this.end_=B!==void 0?this.JSC$6899_start_+B:this.bytes_.length,this.cursor_=this.JSC$6899_start_)};
_.e.free=function(){this.clear();zVA.length<100&&zVA.push(this)};
_.e.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6899_start_=0;this.aliasBytesFields=!1};
_.e.reset=function(){this.cursor_=this.JSC$6899_start_};
_.e.atEnd=function(){return this.cursor_==this.end_};
_.Na=function(f,S){var B=0,G=0,g=0,b=f.bytes_,z=f.cursor_;do{var X=b[z++];B|=(X&127)<<g;g+=7}while(g<32&&X&128);g>32&&(G|=(X&127)>>4);for(g=3;g<32&&X&128;g+=7)X=b[z++],G|=(X&127)<<g;A$(f,z);if(X<128)return S(B>>>0,G>>>0);throw Error("X");};
A$=function(f,S){f.cursor_=S;if(S>f.end_)throw Error("Y`"+S+"`"+f.end_);};
_.Ma=function(f){var S=f.bytes_,B=f.cursor_,G=S[B++],g=G&127;if(G&128&&(G=S[B++],g|=(G&127)<<7,G&128&&(G=S[B++],g|=(G&127)<<14,G&128&&(G=S[B++],g|=(G&127)<<21,G&128&&(G=S[B++],g|=G<<28,G&128&&S[B++]&128&&S[B++]&128&&S[B++]&128&&S[B++]&128&&S[B++]&128)))))throw Error("X");A$(f,B);return g};
_.ZI=function(f){var S=f.bytes_,B=f.cursor_,G=S[B],g=S[B+1],b=S[B+2];S=S[B+3];A$(f,f.cursor_+4);return(G<<0|g<<8|b<<16|S<<24)>>>0};
RVx=function(f){var S=_.ZI(f);f=_.ZI(f);return ZMN(S,f)};
Xhx=function(f){var S=_.ZI(f),B=_.ZI(f);f=(B>>31)*2+1;var G=B>>>20&2047;S=4294967296*(B&1048575)+S;return G==2047?S?NaN:f*Infinity:G==0?f*4.9E-324*S:f*Math.pow(2,G-1075)*(S+4503599627370496)};
_.wh1=function(f){for(var S=0,B=f.cursor_,G=B+10,g=f.bytes_;B<G;){var b=g[B++];S|=b;if((b&128)===0)return A$(f,B),!!(S&127)}throw Error("X");};
hVT=function(f,S){if(S<0)throw Error("Z`"+S);var B=f.cursor_,G=B+S;if(G>f.end_)throw Error("Y`"+(f.end_-B)+"`"+S);f.cursor_=G;return B};
YuG=function(f,S){if(S==0)return _.kX();var B=hVT(f,S);f.aliasBytesFields&&f.bytesAreImmutable_?B=f.bytes_.subarray(B,B+S):(f=f.bytes_,S=B+S,B=B===S?new Uint8Array(0):fAM?f.slice(B,S):new Uint8Array(f.subarray(B,S)));return B.length==0?_.kX():new E8(B,Li)};
zVA=[];var FJV=function(f,S,B,G){if(zVA.length){var g=zVA.pop();g.init(f,S,B,G);f=g}else f=new mYV(f,S,B,G);this.decoder_=f;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;T4Q(this,G)},T4Q=function(f,S){S=S===void 0?{}:S;
f.discardUnknownFields=S.discardUnknownFields===void 0?!1:S.discardUnknownFields},OYN=function(f,S,B,G){if(VXQ.length){var g=VXQ.pop();
T4Q(g,G);g.decoder_.init(f,S,B,G);return g}return new FJV(f,S,B,G)},$2s,IO,Jdj,VXQ;
FJV.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;VXQ.length<100&&VXQ.push(this)};
FJV.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
$2s=function(f){if(f.decoder_.atEnd())return!1;f.fieldCursor_=f.decoder_.cursor_;var S=_.Ma(f.decoder_)>>>0,B=S>>>3;S&=7;if(!(S>=0&&S<=5))throw Error("T`"+S+"`"+f.fieldCursor_);if(B<1)throw Error("U`"+B+"`"+f.fieldCursor_);f.nextField_=B;f.nextWireType_=S;return!0};
IO=function(f){switch(f.nextWireType_){case 0:f.nextWireType_!=0?IO(f):_.wh1(f.decoder_);break;case 1:f=f.decoder_;A$(f,f.cursor_+8);break;case 2:if(f.nextWireType_!=2)IO(f);else{var S=_.Ma(f.decoder_)>>>0;f=f.decoder_;A$(f,f.cursor_+S)}break;case 5:f=f.decoder_;A$(f,f.cursor_+4);break;case 3:S=f.nextField_;do{if(!$2s(f))throw Error("V");if(f.nextWireType_==4){if(f.nextField_!=S)throw Error("W");break}IO(f)}while(1);break;default:throw Error("T`"+f.nextWireType_+"`"+f.fieldCursor_);}};
Jdj=function(f,S,B){var G=f.decoder_.end_,g=_.Ma(f.decoder_)>>>0,b=f.decoder_.cursor_+g,z=b-G;z<=0&&(f.decoder_.end_=b,B(S,f,void 0,void 0,void 0),z=b-f.decoder_.cursor_);if(z)throw Error("S`"+g+"`"+(g-z));f.decoder_.cursor_=b;f.decoder_.end_=G};
_.P2M=function(f){var S=_.Ma(f.decoder_)>>>0;f=f.decoder_;var B=hVT(f,S);f=f.bytes_;if(lkQ){var G=f,g;(g=cBA)||(g=cBA=new TextDecoder("utf-8",{fatal:!0}));S=B+S;G=B===0&&S===G.length?G:G.subarray(B,S);try{var b=g.decode(G)}catch(F){if(WM9===void 0){try{g.decode(new Uint8Array([128]))}catch(V){}try{g.decode(new Uint8Array([97])),WM9=!0}catch(V){WM9=!1}}!WM9&&(cBA=void 0);throw F;}}else{b=B;S=b+S;B=[];for(var z=null,X,w;b<S;)X=f[b++],X<128?B.push(X):X<224?b>=S?oT():(w=f[b++],X<194||(w&192)!==128?(b--,
oT()):B.push((X&31)<<6|w&63)):X<240?b>=S-1?oT():(w=f[b++],(w&192)!==128||X===224&&w<160||X===237&&w>=160||((g=f[b++])&192)!==128?(b--,oT()):B.push((X&15)<<12|(w&63)<<6|g&63)):X<=244?b>=S-2?oT():(w=f[b++],(w&192)!==128||(X<<28)+(w-144)>>30!==0||((g=f[b++])&192)!==128||((G=f[b++])&192)!==128?(b--,oT()):(X=(X&7)<<18|(w&63)<<12|(g&63)<<6|G&63,X-=65536,B.push((X>>10&1023)+55296,(X&1023)+56320))):oT(),B.length>=8192&&(z=fNQ(z,B),B.length=0);b=fNQ(z,B)}return b};
_.v71=function(f){var S=_.Ma(f.decoder_)>>>0;return YuG(f.decoder_,S)};
_.KJK=function(f,S,B){var G=_.Ma(f.decoder_)>>>0;for(G=f.decoder_.cursor_+G;f.decoder_.cursor_<G;)B.push(S(f.decoder_))};
VXQ=[];var dY1=function(f,S){this.JSC$6906_lo=f>>>0;this.JSC$6906_hi=S>>>0},HZG=function(f){if(!f)return iZK||(iZK=new dY1(0,0));
if(!/^\d+$/.test(f))return null;Gn(f);return new dY1(ag,y$)},iZK,pOA=function(f,S){this.JSC$6908_lo=f>>>0;
this.JSC$6908_hi=S>>>0},U2A=function(f){if(!f)return qs1||(qs1=new pOA(0,0));
if(!/^-?\d+$/.test(f))return null;Gn(f);return new pOA(ag,y$)},qs1;var $YN=function(){this.JSC$6910_buffer_=[]},Cz9,QW1;
$YN.prototype.length=function(){return this.JSC$6910_buffer_.length};
$YN.prototype.end=function(){var f=this.JSC$6910_buffer_;this.JSC$6910_buffer_=[];return f};
Cz9=function(f,S,B){for(;B>0||S>127;)f.JSC$6910_buffer_.push(S&127|128),S=(S>>>7|B<<25)>>>0,B>>>=7;f.JSC$6910_buffer_.push(S)};
QW1=function(f,S){for(;S>127;)f.JSC$6910_buffer_.push(S&127|128),S>>>=7;f.JSC$6910_buffer_.push(S)};
_.AXK=function(f,S){if(S>=0)QW1(f,S);else{for(var B=0;B<9;B++)f.JSC$6910_buffer_.push(S&127|128),S>>=7;f.JSC$6910_buffer_.push(1)}};
_.aO=function(f,S){f.JSC$6910_buffer_.push(S>>>0&255);f.JSC$6910_buffer_.push(S>>>8&255);f.JSC$6910_buffer_.push(S>>>16&255);f.JSC$6910_buffer_.push(S>>>24&255)};var Ys1,Ar,M2x,aZK;Ys1=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new $YN};
Ar=function(f,S){S.length!==0&&(f.blocks_.push(S),f.totalLength_+=S.length)};
_.hBx=function(f,S){_.tr(f,S,2);S=f.encoder_.end();Ar(f,S);S.push(f.totalLength_);return S};
_.Tej=function(f,S){var B=S.pop();for(B=f.totalLength_+f.encoder_.length()-B;B>127;)S.push(B&127|128),B>>>=7,f.totalLength_++;S.push(B);f.totalLength_++};
_.tr=function(f,S,B){QW1(f.encoder_,S*8+B)};
M2x=function(f,S,B){if(B!=null){switch(typeof B){case "string":HZG(B)}_.tr(f,S,1);switch(typeof B){case "number":f=f.encoder_;NWG(B);_.aO(f,ag);_.aO(f,y$);break;case "bigint":B=BigInt.asUintN(64,B);B=new dY1(Number(B&BigInt(4294967295)),Number(B>>BigInt(32)));f=f.encoder_;S=B.JSC$6906_hi;_.aO(f,B.JSC$6906_lo);_.aO(f,S);break;default:B=HZG(B),f=f.encoder_,S=B.JSC$6906_hi,_.aO(f,B.JSC$6906_lo),_.aO(f,S)}}};
aZK=function(f,S,B){_.tr(f,S,2);QW1(f.encoder_,B.length);Ar(f,f.encoder_.end());Ar(f,B)};var RBj,OZN,xYj,kr9,n7x;RBj=E7();_.rdW=E7();_.jWx=E7();OZN=E7();xYj=E7();_.E7T=E7();_.t$=E7();_.LJ1=E7();kr9=E7();n7x=E7();_.sWj=E7();_.DYW=E7();_.s7=function(f,S,B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f,S,B)};
_.s7.prototype.toJSON=function(){return BQ(this)};
_.s7.prototype.serialize=function(f){return JSON.stringify(BQ(this,f))};
var S7N=function(f,S){if(S==null||S=="")return new f;S=JSON.parse(S);if(!Array.isArray(S))throw Error("$");return new f(kj1(S))};
_.s7.prototype.getExtension=function(f){xNM(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f.fieldIndex);jgG(this,f.fieldIndex);return f.ctor?f.isRepeated?f.getExtensionFn(this,f.ctor,f.fieldIndex,_.SI(),f.JSC$6921_hasMessageId):f.getExtensionFn(this,f.ctor,f.fieldIndex,f.JSC$6921_hasMessageId):f.isRepeated?f.getExtensionFn(this,f.fieldIndex,_.SI(),f.JSC$6921_hasMessageId):f.getExtensionFn(this,f.fieldIndex,f.defaultValue,f.JSC$6921_hasMessageId)};
_.s7.prototype.clone=function(){var f=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,S=f[_.dN]|0;return zX(this,f,S)?mz(this,f,!0):new this.constructor(bd(f,S,!1))};
_.s7.prototype[pY]=AX;_.s7.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var LX=function(f,S,B){this.$$binaryReaderFn=f;this.$$binaryWriterFn=S;f=ZZ(RBj);this.$$isMsg=!!f&&B===f||!1},Pzx=XOj(function(f,S,B,G,g){if(f.nextWireType_!==2)return!1;
Jdj(f,GrN(S,G,B),g);return!0},Fu1),v$G=XOj(function(f,S,B,G,g){if(f.nextWireType_!==2)return!1;
Jdj(f,GrN(S,G,B),g);return!0},Fu1),CX=Symbol(),Dg=Symbol(),quN=Symbol(),E$1=Symbol(),rXT=Symbol(),V2K,JXx;var fg9,IAG,UYG,C2N,phM,Ad1,N4G,MXx,ZZW,tX1,uOQ,ydj,WJx,lAM,fbV;fg9=function(f,S){var B=new Ys1;LuN(f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,B,nX(CX,U7,pX,S));Ar(B,B.encoder_.end());f=new Uint8Array(B.totalLength_);S=B.blocks_;for(var G=S.length,g=0,b=0;b<G;b++){var z=S[b];f.set(z,g);g+=z.length}B.blocks_=[f];return f};
IAG=_.Nk(function(f,S,B){if(f.nextWireType_!==1)return!1;_.Mk(S,B,Xhx(f.decoder_));return!0},IZj,n7x);
UYG=_.Nk(function(f,S,B,G){if(f.nextWireType_!==1)return!1;_.YW(S,B,G,Xhx(f.decoder_));return!0},IZj,n7x);
C2N=_.Nk(function(f,S,B,G){if(f.nextWireType_!==5)return!1;var g=_.ZI(f.decoder_);f=(g>>31)*2+1;var b=g>>>23&255;g&=8388607;_.YW(S,B,G,b==255?g?NaN:f*Infinity:b==0?f*1.401298464324817E-45*g:f*Math.pow(2,b-150)*(g+8388608));return!0},function(f,S,B){S=_.Ro(S);
S!=null&&(_.tr(f,B,5),f=f.encoder_,B=ud||(ud=new DataView(new ArrayBuffer(8))),B.setFloat32(0,+S,!0),y$=0,ag=B.getUint32(0,!0),_.aO(f,ag))},kr9);
_.uh=_.Nk(function(f,S,B){if(f.nextWireType_!==0)return!1;_.Mk(S,B,_.Na(f.decoder_,oo));return!0},_.yH,_.t$);
phM=_.Nk(function(f,S,B){if(f.nextWireType_!==0)return!1;f=_.Na(f.decoder_,oo);_.Mk(S,B,f===0?void 0:f);return!0},_.yH,_.t$);
Ad1=_.Nk(function(f,S,B,G){if(f.nextWireType_!==0)return!1;_.YW(S,B,G,_.Na(f.decoder_,oo));return!0},_.yH,_.t$);
_.am=_.Nk(function(f,S,B){if(f.nextWireType_!==0)return!1;_.Mk(S,B,_.Ma(f.decoder_));return!0},NeQ,OZN);
N4G=_.Nk(function(f,S,B){if(f.nextWireType_!==0)return!1;f=_.Ma(f.decoder_);_.Mk(S,B,f===0?void 0:f);return!0},NeQ,OZN);
MXx=_.Nk(function(f,S,B,G){if(f.nextWireType_!==0)return!1;_.YW(S,B,G,_.Ma(f.decoder_));return!0},NeQ,OZN);
ZZW=_.Nk(function(f,S,B){if(f.nextWireType_!==1)return!1;_.Mk(S,B,RVx(f.decoder_));return!0},_.ZYT,_.LJ1);
tX1=_.D29(function(f,S,B){if(f.nextWireType_!==1&&f.nextWireType_!==2)return!1;S=_.QH(S,S[_.dN]|0,B);f.nextWireType_==2?_.KJK(f,RVx,S):S.push(RVx(f.decoder_));return!0},function(f,S,B){S=_.soj(VmM,S,!1);
if(S!=null)for(var G=0;G<S.length;G++)M2x(f,B,S[G])},_.LJ1);
_.y9=_.Nk(function(f,S,B){if(f.nextWireType_!==0)return!1;_.Mk(S,B,_.wh1(f.decoder_));return!0},_.t2G,_.rdW);
uOQ=_.Nk(function(f,S,B,G){if(f.nextWireType_!==0)return!1;_.YW(S,B,G,_.wh1(f.decoder_));return!0},_.t2G,_.rdW);
_.W_=_.Nk(function(f,S,B){if(f.nextWireType_!==2)return!1;_.Mk(S,B,_.P2M(f));return!0},_.yX1,_.jWx);
_.aAV=_.Nk(function(f,S,B,G){if(f.nextWireType_!==2)return!1;_.YW(S,B,G,_.P2M(f));return!0},_.yX1,_.jWx);
ydj=_.D29(function(f,S,B){if(f.nextWireType_!==2)return!1;f=_.P2M(f);_.QH(S,S[_.dN]|0,B).push(f);return!0},function(f,S,B){S=_.soj(_.CY,S,!0);
if(S!=null)for(var G=0;G<S.length;G++){var g=f,b=B,z=S[G];z!=null&&aZK(g,b,GjN(z))}},_.jWx);
WJx=void 0;WJx=WJx===void 0?RBj:WJx;_.c_=new LX(function(f,S,B,G,g){if(f.nextWireType_!==2)return!1;G=e0(void 0,G,!0);_.QH(S,S[_.dN]|0,B).push(G);Jdj(f,G,g);return!0},function(f,S,B,G,g){if(Array.isArray(S))for(var b=0;b<S.length;b++)Wu9(f,S[b],B,G,g)},WJx);
_.lh=XOj(function(f,S,B,G,g,b){if(f.nextWireType_!==2)return!1;var z=S[_.dN]|0;GnV(S,z,b,B,U8(z));S=GrN(S,G,B);Jdj(f,S,g);return!0},Wu9);
_.cdK=_.Nk(function(f,S,B){if(f.nextWireType_!==2)return!1;_.Mk(S,B,_.v71(f));return!0},_.cXT,_.sWj);
lAM=_.Nk(function(f,S,B,G){if(f.nextWireType_!==2)return!1;_.YW(S,B,G,_.v71(f));return!0},_.cXT,_.sWj);
fbV=_.Nk(function(f,S,B,G){if(f.nextWireType_!==0)return!1;_.YW(S,B,G,_.Ma(f.decoder_)>>>0);return!0},function(f,S,B){S=_.$$(S);
S!=null&&S!=null&&(_.tr(f,B,0),QW1(f.encoder_,S))},xYj);
_.fb=_.Nk(function(f,S,B){if(f.nextWireType_!==0)return!1;_.Mk(S,B,_.Ma(f.decoder_));return!0},_.lZs,_.DYW);var B2N=function(){var f=o1N,S=SOQ;this.fieldIndex=175237375;this.ctor=S;this.isRepeated=0;this.getExtensionFn=_.BU;this.defaultValue=void 0;this.JSC$6921_hasMessageId=f.messageId!=null?Dv:void 0};
B2N.prototype.register=function(){h$(this)};var GKM=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(GKM,_.s7);var g1N=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(g1N,_.s7);var ggN=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(ggN,_.s7);var ewM=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(ewM,_.s7);var bBK=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(bBK,_.s7);var mOM=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(mOM,_.s7);var zw1=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(zw1,_.s7);zw1.prototype.getData=function(){return _.Q9(this,2)};var RwA=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(RwA,_.s7);var XA1=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(XA1,_.s7);XA1.prototype.getStyle=function(){return _.BU(this,GKM,1)};var oP=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(oP,_.s7);oP.prototype.getPayloadCase=function(){return _.rp(this,GC)};
oP.prototype.getStyle=function(){return _.UH(this,XA1,6,GC)};
var wAA=function(){var f=new oP,S=new bBK;return _.Bo(f,7,GC,S)},hwV=function(){var f=new oP,S=new mOM;
return _.Bo(f,8,GC,S)},GC=[1,
2,3,4,5,6,7,8];var T2W=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(T2W,_.s7);var FHV=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(FHV,_.s7);var VgA=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(VgA,_.s7);var JQN=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(JQN,_.s7);var P91=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(P91,_.s7);var v1x=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(v1x,_.s7);var KHx=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(KHx,_.s7);var dON=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(dON,_.s7);dON.prototype.getData=function(){return _.Q9(this,2)};var iBx=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(iBx,_.s7);var GX1=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(GX1,_.s7);GX1.prototype.getPayloadCase=function(){return _.rp(this,oF)};
var oF=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var Ss=function(f,S){f=Error.call(this,f);this.message=f.message;"stack"in f&&(this.stack=f.stack);this.code=S===void 0?2:S};
_.q(Ss,Error);var HBV=Promise;var qOA=function(f){this.channelPromise=f};
qOA.prototype.send=function(f,S,B){this.channelPromise.then(function(G){G.send(f,S,B)})};var $O9=function(f,S){this.data=f;this.channel=S};
$O9.prototype.reply=function(f,S,B){this.channel.send(f,S,B)};var Qp1=function(f){this.JSC$6987_port_=f};
Qp1.prototype.send=function(f,S,B){B=B===void 0?[]:B;var G=new MessageChannel;YOK(G.port1,S);this.JSC$6987_port_.postMessage(f,[G.port2].concat(B))};
var rQ1=function(f,S){YOK(f,S);return new Qp1(f)},YOK=function(f,S){S&&(f.onmessage=function(B){S(new $O9(B.data,rQ1(B.ports[0])))})};var jps=function(f){this.verifier_=f},OB1=function(f){var S=Object.create(null);
(typeof f==="string"?[f]:f).forEach(function(B){if(B==="null")throw Error("ba");S[B]=!0});
return function(B){return S[B]===!0}};_.xOs=function(){if(!_.S1.addEventListener||!Object.defineProperty)return!1;var f=!1,S=Object.defineProperty({},"passive",{get:function(){f=!0}});
try{var B=function(){};
_.S1.addEventListener("test",B,S);_.S1.removeEventListener("test",B,S)}catch(G){}return f}();var E1N;_.Bq=function(f){var S=f.destination;var B=f.iframe;var G=f.origin;var g=f.channelName===void 0?"ZNWN1d":f.channelName;var b=f.onMessage===void 0?void 0:f.onMessage;f=f.onEstablished===void 0?void 0:f.onEstablished;return E1N({destination:S,getSource:function(){return B.contentWindow},
originVerifier:G instanceof jps?G:typeof G==="function"?new jps(G):new jps(OB1(G)),channelName:g,onMessage:b,onEstablished:f})};
E1N=function(f){var S=f.destination;var B=f.getSource;var G=f.originVerifier;var g=f.token===void 0?void 0:f.token;var b=f.channelName;var z=f.onMessage===void 0?void 0:f.onMessage;var X=f.onEstablished===void 0?void 0:f.onEstablished;return new qOA(new HBV(function(w,F){var V=function(J){J.source&&J.source===B()&&G.verifier_(J.origin)&&(J.data.n||J.data)===b&&(S.removeEventListener("message",V,!1),g&&J.data.t!==g?F(Error("ca`"+b+"`"+g+"`"+J.data.t)):(w(rQ1(J.ports[0],z)),X&&X(J)))};
S.addEventListener("message",V,!1)}))};var LHW=function(f){try{f()}catch(S){B9(S)}};var n19=function(f){var S=this;var B=f.getMessageType;var G=f.onUnregisteredMessage===void 0?function(){}:f.onUnregisteredMessage;
var g=f.onBeforeRegisteredMessage===void 0?function(){}:f.onBeforeRegisteredMessage;
f=f.onAfterRegisteredMessage===void 0?function(){}:f.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=B;this.onUnregisteredMessage_=G;this.onBeforeRegisteredMessage_=g;this.onAfterRegisteredMessage_=f;this.onMessage=function(b){return kKK(S,b)}};
n19.prototype.register=function(f,S){this.registry_.set(f,S);return this};
var kKK=function(f,S){var B=f.getMessageType_(S.data),G=f.registry_.get(B);G?(LHW(function(){return f.onBeforeRegisteredMessage_(S,B)}),LHW(function(){return G(S)}),LHW(function(){return f.onAfterRegisteredMessage_(S,B)})):LHW(function(){return f.onUnregisteredMessage_(S,B)})};var sp1=function(f){this.JSC$7004_channel_=f},IbM,UOs;
sp1.prototype.send=function(f,S,B){this.JSC$7004_channel_.send(BQ(f),S,B)};
_.DOA=function(f,S){return function(B){var G=new f(B.data);return S(new $O9(G,B.channel))}};
IbM=function(f){return function(S){return f(new $O9(S.data,new sp1(S.channel)))}};
UOs=function(f,S){return IbM(_.DOA(f,S))};var C9K=function(f,S,B,G){this.registry=f;this.delegate=S;this.receiveMessageConstructor=B;this.createInitMessage=G;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},BIN=function(f){var S=new n19({getMessageType:f.getPayloadCase});
return new C9K(S,new sp1(_.Bq({iframe:f.child,destination:window,origin:f.origin,channelName:f.channelName,onMessage:UOs(f.receiveMessageConstructor,S.onMessage)})),f.receiveMessageConstructor,f.createInitMessage)},pAM=function(f,S){f.createInitMessage=S};
C9K.prototype.send=function(f){if(!this.initialised)throw new Ss("Attempted to send a message before initialisation.");this.delegate.send(f)};
var AQs=function(f,S){return _.R(function(B){if(!f.initialised)throw new Ss("Attempted to send a message before initialisation.");return B.return(new Promise(function(G){f.delegate.send(S,UOs(f.receiveMessageConstructor,G))}))})};
C9K.prototype.init=function(){var f=this;return _.R(function(S){if(f.initialised)throw new Ss("Attempted to initialise twice. The SDK can only be initialised once.");if(f.createInitMessage!==void 0){var B=f.delegate,G=B.send,g=f.createInitMessage;var b=new g1N;var z=[].concat(_.$d(f.features));b=_.qk(b,1,z,_.de);G.call(B,g.call(f,b))}f.initialised=!0;_.TT(S)})};
var G4=function(f,S){if(f.initialised)throw new Ss('Attempted to set up API "'+S+'" after initialisation. All APIs must be set up before initialising the SDK.');f.features.add(S);return f.registry};
_.y3.Object.defineProperties(C9K.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var N2x=function(f){this.channel=f;this.registered=!1};
N2x.prototype.update=function(f){if(this.channel.isInitialised){if(!this.registered)throw new Ss("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var S=new oP;var B=new ewM;B=_.b5(B,1,f);S=_.Bo(S,2,GC,B);this.channel.send(S)}else this.register();this.JSC$7018_audioEnabled=f};
N2x.prototype.register=function(){G4(this.channel,1);this.registered=!0};
N2x.prototype.isAudioEnabled=function(){return this.JSC$7018_audioEnabled};var Mg1=function(f){this.channel=f};
_.e=Mg1.prototype;_.e.onFirstFrameReady=function(f){G4(this.channel,2).register(11,function(S){S=_.UH(S.data,T2W,11,oF);if(!S)throw new Ss("Unexpectedly nonexistent GameFirstFrameReadyEvent");f(_.n4(S,1))})};
_.e.onReady=function(f){G4(this.channel,2).register(4,function(S){S=_.UH(S.data,VgA,4,oF);if(!S)throw new Ss("Unexpectedly nonexistent GameReadyEvent");f(_.n4(S,1))})};
_.e.onLevelComplete=function(f){G4(this.channel,2).register(5,function(S){S=_.UH(S.data,JQN,5,oF);if(!S)throw new Ss("Unexpectedly nonexistent LevelCompleteEvent");f(_.n4(S,1),_.Bv(S,2))})};
_.e.onGameOver=function(f){G4(this.channel,2).register(6,function(S){S=_.UH(S.data,FHV,6,oF);if(!S)throw new Ss("Unexpectedly nonexistent GameOverEvent");f(_.n4(S,1))})};
_.e.pause=function(){var f=this;if(!this.channel.isInitialised)return G4(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new Ss("Using unregistered Game Feature: pause.");var S=wAA();return new Promise(function(B){return _.R(function(G){if(G.nextAddress==1)return _.h(G,AQs(f.channel,S),2);B();_.TT(G)})})};
_.e.resume=function(){var f=this;if(!this.channel.isInitialised)return G4(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new Ss("Using unregistered Game Feature: resume.");var S=hwV();return new Promise(function(B){return _.R(function(G){if(G.nextAddress==1)return _.h(G,AQs(f.channel,S),2);B();_.TT(G)})})};var ZBN=function(f){this.channel=f};
ZBN.prototype.onReady=function(f){G4(this.channel,5).register(8,function(S){if(!_.UH(S.data,P91,8,oF))throw new Ss("Unexpectedly nonexistent PageReadyEvent");f()})};var tgG=function(f){this.channel=f};
tgG.prototype.onChange=function(f){G4(this.channel,3).register(7,function(S){S=_.UH(S.data,v1x,7,oF);if(!S)throw new Ss("Unexpectedly nonexistent ScoreEvent");f(_.n4(S,1),_.Bv(S,2))})};var uFQ={load:function(){throw new Ss("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new Ss("Storage used, but storage.onSave() listener not set!");}},abx=function(f){this.channel=f;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},yQN=function(f){G4(f.channel,4).register(2,uFQ.load).register(3,uFQ.save);
f.initialSetupDone=!0};
abx.prototype.onLoad=function(f){this.initialSetupDone||yQN(this);this.loadRegistered||(this.loadRegistered=!0,G4(this.channel,4).register(2,function(S){var B,G,g;return _.R(function(b){if(b.nextAddress==1){B=_.UH(S.data,KHx,2,oF);if(!B)throw new Ss("Unexpectedly nonexistent StorageLoad");G=_.n4(B,1);return _.h(b,f(G),2)}g=b.yieldResult;var z=S.reply,X=new oP;var w=new zw1;w=_.Jx(w,1,G);w=_.gZ(w,2,_.ni(g,!1));X=_.Bo(X,3,GC,w);z.call(S,X);_.TT(b)})}))};
abx.prototype.onSave=function(f){this.initialSetupDone||yQN(this);this.saveRegistered||(this.saveRegistered=!0,G4(this.channel,4).register(3,function(S){var B,G,g;return _.R(function(b){if(b.nextAddress==1){B=_.UH(S.data,dON,3,oF);if(!B)throw new Ss("Unexpectedly nonexistent StorageSave");G=_.n4(B,1);g=At1(B.getData());return _.h(b,f(G,g),2)}var z=S.reply,X=new oP;var w=new RwA;w=_.Jx(w,1,G);X=_.Bo(X,4,GC,w);z.call(S,X);_.TT(b)})}))};var WHx=function(f){this.channel=f};
WHx.prototype.update=function(f){if(!this.channel.features.has(6))throw new Ss("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var S=new oP,B=new XA1;f=_.SZ(B,1,f);S=_.Bo(S,6,GC,f);this.channel.send(S)};
WHx.prototype.register=function(){G4(this.channel,6)};var cQG=function(f){this.channel=f;this.userActivityLoggingIntervalMs=0};
cQG.prototype.onUserActivity=function(f,S){this.userActivityLoggingIntervalMs=S;G4(this.channel,7).register(9,function(B){if(!_.UH(B.data,iBx,9,oF))throw new Ss("Unexpectedly nonexistent ClickEvent");f()})};var lbx=function(f){var S=this;this.channel=f;this.init=this.channel.init.bind(this.channel);this.page=new ZBN(this.channel);this.game=new Mg1(this.channel);this.audio=new N2x(this.channel);this.score=new tgG(this.channel);this.storage=new abx(this.channel);this.style=new WHx(this.channel);this.userActivity=new cQG(this.channel);pAM(this.channel,function(B){var G=new ggN;B=_.SZ(G,1,B);B=_.C4(B,3,S.userActivity.userActivityLoggingIntervalMs);G=S.audio.isAudioEnabled();G!==void 0&&_.b5(B,2,G);G=new oP;
return _.Bo(G,5,GC,B)})};var fmK=function(){this.timedFunctionContext=0};
fmK.prototype.timeExecution=function(f,S){var B=this;return function(){var G=_.qb.apply(0,arguments);B.timedFunctionContext=f;return S.apply(null,_.$d(G))}};var oLT=function(){var f={};this.priorityTasks=(f[3]=[],f[2]=[],f[1]=[],f);this.isFlushing=!1},ma=function(f,S,B){var G=S5Q(f,B);
f.priorityTasks[B].push(S);G&&f.priorityTasks[B].length===1&&f.flush()},S5Q=function(f,S){return Object.keys(f.priorityTasks).map(function(B){return Number(B)}).filter(function(B){return!isNaN(B)&&B>S}).every(function(B){return f.priorityTasks[B].length===0})};
oLT.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(f){return f.length>0});)BG1(this,3),BG1(this,2),BG1(this,1)}catch(f){throw Object.values(this.priorityTasks).forEach(function(S){return void S.splice(0,S.length)}),f;
}finally{this.isFlushing=!1}}};
var BG1=function(f,S){for(;S5Q(f,S)&&f.priorityTasks[S].length>0;)f.priorityTasks[S][0](),f.priorityTasks[S].shift()};
_.y3.Object.defineProperties(oLT.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(f){return f.length>0})}}});var XQK={};var GBj=globalThis.trustedTypes,bXM=GBj,zD9;var mg=function(f){this.privateDoNotAccessOrElseWrappedResourceUrl=f};
mg.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var gL9,eU1,bAT,mXj,zUG,RUs,XrT,wrx;gL9=_.f4([""]);eU1=cY(["\x00"],["\\0"]);bAT=cY(["\n"],["\\n"]);mXj=cY(["\x00"],["\\u0000"]);zUG=_.f4([""]);RUs=cY(["\x00"],["\\0"]);XrT=cY(["\n"],["\\n"]);wrx=cY(["\x00"],["\\u0000"]);_.hUA=wc(function(f){return f(gL9)})||wc(function(f){return f(eU1)})||wc(function(f){return f(bAT)})||wc(function(f){return f(mXj)});
_.TGG=_.X6(zUG)&&_.X6(RUs)&&_.X6(XrT)&&_.X6(wrx);var dc;_.hJ=function(f,S){this.privateDoNotAccessOrElseWrappedUrl=S};
_.hJ.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.FKT=TC("about:blank");dc=TC("about:invalid#zClosurez");var wQW=function(f){this.isValid=f},VJA=new wQW(function(f){return/^[^:]*([/?#]|$)/.test(f)}),JhW=Po("data"),PyT=Po("http"),vLx=Po("https"),KKM=Po("ftp"),dX1=Po("mailto"),iAV=Po("intent"),HAM=Po("vnd.youtube"),hDN=[JhW,
PyT,vLx,dX1,KKM,VJA],TIG=eZ(function(){return typeof URL==="function"}),q5N=["data:",
"http:","https:","mailto:","ftp:"],V01=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var rc=function(f){this.privateDoNotAccessOrElseWrappedHtml=f};
rc.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var Rns=eZ(function(){return new rc(GBj?GBj.emptyHTML:"")});var $XN={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"},EQ=function(f,S){var B=Error.call(this,f+" cannot be used with intent "+$XN[S]);this.message=B.message;"stack"in B&&(this.stack=B.stack);this.type=f;this.intent=S;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.q(EQ,Error);_.sQ=function(f){this.privateDoNotAccessOrElseWrappedScript=f};
_.sQ.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var KzT=function(f){this.privateDoNotAccessOrElseWrappedAttributePrefix=f};
KzT.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var dkM="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var XsA=function(f){var S=_.U6("window.location.href");f==null&&(f='Unknown Error of type "null/undefined"');if(typeof f==="string")return{message:f,name:"Unknown error",lineNumber:"Not available",fileName:S,stack:"Not available"};var B=!1;try{var G=f.lineNumber||f.line||"Not available"}catch(z){G="Not available",B=!0}try{var g=f.fileName||f.filename||f.sourceURL||_.S1.$googDebugFname||S}catch(z){g="Not available",B=!0}S=Qkj(f);if(!(!B&&f.lineNumber&&f.fileName&&f.stack&&f.message&&f.name)){B=f.message;
if(B==null){if(f.constructor&&f.constructor instanceof Function){if(f.constructor.name)B=f.constructor.name;else if(B=f.constructor,g8[B])B=g8[B];else{B=String(B);if(!g8[B]){var b=/function\s+([^\(]+)/m.exec(B);g8[B]=b?b[1]:"[Anonymous]"}B=g8[B]}B='Unknown Error of type "'+B+'"'}else B="Unknown Error of unknown type";typeof f.toString==="function"&&Object.prototype.toString!==f.toString&&(B+=": "+f.toString())}return{message:B,name:f.name||"UnknownError",lineNumber:G,fileName:g,stack:S||"Not available"}}return{message:f.message,
name:f.name,lineNumber:f.lineNumber,fileName:f.fileName,stack:S}},Qkj=function(f,S){S||(S={});
S[Y59(f)]=!0;var B=f.stack||"",G=f.cause;G&&!S[Y59(G)]&&(B+="\nCaused by: ",G.stack&&G.stack.indexOf(G.toString())==0||(B+=typeof G==="string"?G:G.message+"\n"),B+=Qkj(G,S));f=f.errors;if(Array.isArray(f)){G=1;var g;for(g=0;g<f.length&&!(G>4);g++)S[Y59(f[g])]||(B+="\nInner error "+G++ +": ",f[g].stack&&f[g].stack.indexOf(f[g].toString())==0||(B+=typeof f[g]==="string"?f[g]:f[g].message+"\n"),B+=Qkj(f[g],S));g<f.length&&(B+="\n... "+(f.length-g)+" more inner errors")}return B},Y59=function(f){var S=
"";
typeof f.toString==="function"&&(S=""+f);return S+f.stack},g8={};var rh1,l0,X$,OAN,xXT,jkG,Aa,Uf,LK1;rh1=function(f,S){for(var B=f.split("%s"),G="",g=Array.prototype.slice.call(arguments,1);g.length&&B.length>1;)G+=B.shift()+g.shift();return G+B.join("%s")};
_.pL=function(f){return encodeURIComponent(String(f))};
l0=function(f){return decodeURIComponent(f.replace(/\+/g," "))};
X$=function(f){bq1.test(f)&&(f.indexOf("&")!=-1&&(f=f.replace(oEs,"&amp;")),f.indexOf("<")!=-1&&(f=f.replace(SgQ,"&lt;")),f.indexOf(">")!=-1&&(f=f.replace(BlN,"&gt;")),f.indexOf('"')!=-1&&(f=f.replace(GLM,"&quot;")),f.indexOf("'")!=-1&&(f=f.replace(gEV,"&#39;")),f.indexOf("\x00")!=-1&&(f=f.replace(ep9,"&#0;")));return f};
OAN=function(f){var S={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var B=_.S1.document.createElement("div");return f.replace(jkG,function(G,g){var b=S[G];if(b)return b;g.charAt(0)=="#"&&(g=Number("0"+g.slice(1)),isNaN(g)||(b=String.fromCharCode(g)));b||(_.pC(B,jZ(G+" ")),b=B.firstChild.nodeValue.slice(0,-1));return S[G]=b})};
xXT=function(f){return f.replace(/&([^;]+);/g,function(S,B){switch(B){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return B.charAt(0)!="#"||(B=Number("0"+B.slice(1)),isNaN(B))?S:String.fromCharCode(B)}})};
jkG=/&([^;\s<&]+);?/g;_.LGN=function(f){return String(f).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.ELG=String.prototype.repeat?function(f,S){return f.repeat(S)}:function(f,S){return Array(S+1).join(f)};
_.es=function(f,S){if(!Number.isFinite(f))return String(f);f=String(f);var B=f.indexOf(".");B===-1&&(B=f.length);var G=f[0]==="-"?"-":"";G&&(f=f.substring(1));return G+(0,_.ELG)("0",Math.max(0,S-B))+f};
Aa=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.zd()).toString(36)};
Uf=function(f){for(var S=0,B=0;B<f.length;++B)S=31*S+f.charCodeAt(B)>>>0;return S};
_.Vw=function(f){return String(f).replace(/\-([a-z])/g,function(S,B){return B.toUpperCase()})};
_.Fv=function(f){return String(f).replace(/([A-Z])/g,"-$1").toLowerCase()};
LK1=function(f){return f.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(S,B,G){return B+G.toUpperCase()})};var kBG=function(){this.names=new Map};
kBG.prototype.getName=function(f){var S=this.names.get(f);if(S)return S;var B;S=(B=f.description)!=null?B:Aa();this.names.set(f,S);return S};var nLs=function(f){var S=Error.call(this,f?f.length+" errors occurred during unsubscription:\n"+f.map(function(B,G){return G+1+") "+B.toString()}).join("\n  "):"");
this.message=S.message;"stack"in S&&(this.stack=S.stack);this.errors=f;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.q(nLs,Error);var Wo=function(f){this.initialTeardown=f;this.closed=!1;this._teardowns=this._parentage=null};
_.e=Wo.prototype;
_.e.unsubscribe=function(){if(!this.closed){this.closed=!0;var f=this._parentage;if(Array.isArray(f))for(var S=_.m(f),B=S.next();!B.done;B=S.next())B.value.remove(this);else f==null||f.remove(this);S=this.initialTeardown;if(aP(S))try{S()}catch(b){var G=b instanceof nLs?b.errors:[b]}var g=this._teardowns;if(g)for(this._teardowns=null,S=_.m(g),B=S.next();!B.done;B=S.next()){B=B.value;try{aP(B)?B():B.unsubscribe()}catch(b){B=void 0,G=(B=G)!=null?B:[],b instanceof nLs?G=[].concat(_.$d(G),_.$d(b.errors)):
G.push(b)}}if(G)throw new nLs(G);}};
_.e.add=function(f){if(f&&f!==this)if(this.closed)aP(f)?f():f.unsubscribe();else{if(f instanceof Wo){if(f.closed||f._hasParent(this))return;f._addParent(this)}var S;(this._teardowns=(S=this._teardowns)!=null?S:[]).push(f)}};
_.e._hasParent=function(f){var S=this._parentage;return S===f||Array.isArray(S)&&S.includes(f)};
_.e._addParent=function(f){var S=this._parentage;this._parentage=Array.isArray(S)?(S.push(f),S):S?[S,f]:f};
_.e._removeParent=function(f){var S=this._parentage;S===f?this._parentage=null:Array.isArray(S)&&uo(S,f)};
_.e.remove=function(f){var S=this._teardowns;S&&uo(S,f);f instanceof Wo&&f._removeParent(this)};
var skV=new Wo;skV.closed=!0;Wo.JSC$7114_EMPTY=skV;var $kj=function(){setTimeout.apply(null,_.$d(_.qb.apply(0,arguments)))};var b4=function(f){Wo.call(this);this.JSC$7119_isStopped=!1;this.destination=f instanceof b4?f:new mR(!f||aP(f)?{next:f!=null?f:void 0}:f);q7j(f)&&f.add(this)};
_.q(b4,Wo);b4.JSC$7114_EMPTY=Wo.JSC$7114_EMPTY;b4.create=function(f,S,B){return new z4(f,S,B)};
_.e=b4.prototype;_.e.next=function(f){this.JSC$7119_isStopped||this._next(f)};
_.e.error=function(f){this.JSC$7119_isStopped||(this.JSC$7119_isStopped=!0,this._error(f))};
_.e.complete=function(){this.JSC$7119_isStopped||(this.JSC$7119_isStopped=!0,this._complete())};
_.e.unsubscribe=function(){this.closed||(this.JSC$7119_isStopped=!0,Wo.prototype.unsubscribe.call(this))};
_.e._next=function(f){this.destination.next(f)};
_.e._error=function(f){this.destination.error(f);this.unsubscribe()};
_.e._complete=function(){this.destination.complete();this.unsubscribe()};
var mR=function(f){this.partialObserver=f};
mR.prototype.next=function(f){var S=this.partialObserver;if(S.next)try{S.next(f)}catch(B){lo(B)}};
mR.prototype.error=function(f){var S=this.partialObserver;if(S.error)try{S.error(f)}catch(B){lo(B)}else lo(f)};
mR.prototype.complete=function(){var f=this.partialObserver;if(f.complete)try{f.complete()}catch(S){lo(S)}};
var z4=function(f,S,B){b4.call(this);var G;aP(f)||!f?G={next:f!=null?f:void 0,error:S!=null?S:void 0,complete:B!=null?B:void 0}:G=f;this.destination=new mR(G)};
_.q(z4,b4);z4.JSC$7114_EMPTY=b4.JSC$7114_EMPTY;z4.create=b4.create;var GT=typeof Symbol==="function"&&Symbol.observable||"@@observable";var SN=function(f){f&&(this._subscribe=f)};
_.e=SN.prototype;_.e.lift=function(f){var S=new SN;S.source=this;S.operator=f;return S};
_.e.subscribe=function(f,S,B){f=f&&f instanceof b4||f&&aP(f.next)&&aP(f.error)&&aP(f.complete)&&q7j(f)?f:new z4(f,S,B);S=this.operator;B=this.source;f.add(S?S.call(f,B):B?this._subscribe(f):this._trySubscribe(f));return f};
_.e._trySubscribe=function(f){try{return this._subscribe(f)}catch(S){f.error(S)}};
_.e.forEach=function(f,S){var B=this;S=Y7A(S);return new S(function(G,g){var b=B.subscribe(function(z){try{f(z)}catch(X){g(X),b==null||b.unsubscribe()}},g,G)})};
_.e._subscribe=function(f){var S;return(S=this.source)==null?void 0:S.subscribe(f)};
SN.prototype[GT]=function(){return this};
SN.prototype.pipe=function(){var f=_.qb.apply(0,arguments);return f.length?QOK(f)(this):this};
SN.create=function(f){return new SN(f)};var DXQ=function(){var f=Error.call(this,"object unsubscribed");this.message=f.message;"stack"in f&&(this.stack=f.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.q(DXQ,Error);var gu=function(){this.observers=[];this.hasError=this.JSC$7135_isStopped=this.closed=!1;this.thrownError=null};
_.q(gu,SN);_.e=gu.prototype;_.e.lift=function(f){var S=new RF(this,this);S.operator=f;return S};
_.e._throwIfClosed=function(){if(this.closed)throw new DXQ;};
_.e.next=function(f){this._throwIfClosed();if(!this.JSC$7135_isStopped){var S=this.observers.slice();S=_.m(S);for(var B=S.next();!B.done;B=S.next())B.value.next(f)}};
_.e.error=function(f){this._throwIfClosed();if(!this.JSC$7135_isStopped){this.hasError=this.JSC$7135_isStopped=!0;this.thrownError=f;for(var S=this.observers;S.length;)S.shift().error(f)}};
_.e.complete=function(){this._throwIfClosed();if(!this.JSC$7135_isStopped){this.JSC$7135_isStopped=!0;for(var f=this.observers;f.length;)f.shift().complete()}};
_.e.unsubscribe=function(){this.JSC$7135_isStopped=this.closed=!0;this.observers=null};
_.e._trySubscribe=function(f){this._throwIfClosed();return SN.prototype._trySubscribe.call(this,f)};
_.e._subscribe=function(f){this._throwIfClosed();this._checkFinalizedStatuses(f);return this._innerSubscribe(f)};
_.e._innerSubscribe=function(f){var S=this,B=this.JSC$7135_isStopped,G=this.observers;return this.hasError||B?Wo.JSC$7114_EMPTY:(G.push(f),new Wo(function(){return uo(S.observers,f)}))};
_.e._checkFinalizedStatuses=function(f){var S=this.thrownError,B=this.JSC$7135_isStopped;this.hasError?f.error(S):B&&f.complete()};
gu.create=function(f,S){return new RF(f,S)};
var RF=function(f,S){gu.call(this);this.destination=f;this.source=S};
_.q(RF,gu);RF.create=gu.create;RF.prototype.next=function(f){var S,B;(S=this.destination)==null||(B=S.next)==null||B.call(S,f)};
RF.prototype.error=function(f){var S,B;(S=this.destination)==null||(B=S.error)==null||B.call(S,f)};
RF.prototype.complete=function(){var f,S;(f=this.destination)==null||(S=f.complete)==null||S.call(f)};
RF.prototype._subscribe=function(f){var S,B;return(B=(S=this.source)==null?void 0:S.subscribe(f))!=null?B:Wo.JSC$7114_EMPTY};var I$=function(f){gu.call(this);this._value=f};
_.q(I$,gu);I$.create=gu.create;I$.prototype._subscribe=function(f){var S=gu.prototype._subscribe.call(this,f);!S.closed&&f.next(this._value);return S};
I$.prototype.getValue=function(){var f=this.thrownError,S=this._value;if(this.hasError)throw f;this._throwIfClosed();return S};
I$.prototype.next=function(f){gu.prototype.next.call(this,this._value=f)};
_.y3.Object.defineProperties(I$.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var xd=new SN(function(f){return f.complete()});var BV=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var ngG=function(f){return f&&typeof f.length==="number"&&typeof f!=="function"};var ImA={now:function(){return(ImA.delegate||Date).now()},
delegate:void 0};var tm=function(f,S,B){f=f===void 0?Infinity:f;S=S===void 0?Infinity:S;B=B===void 0?ImA:B;gu.call(this);this.bufferSize=f;this.windowTime=S;this.timestampProvider=B;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=S===Infinity;this.bufferSize=Math.max(1,f);this.windowTime=Math.max(1,S)};
_.q(tm,gu);tm.create=gu.create;tm.prototype.next=function(f){var S=this.buffer,B=this.infiniteTimeWindow,G=this.timestampProvider,g=this.windowTime;this.JSC$7135_isStopped||(S.push(f),!B&&S.push(G.now()+g));UX9(this);gu.prototype.next.call(this,f)};
tm.prototype._subscribe=function(f){this._throwIfClosed();UX9(this);for(var S=this._innerSubscribe(f),B=this.infiniteTimeWindow,G=this.buffer.slice(),g=0;g<G.length&&!f.closed;g+=B?1:2)f.next(G[g]);this._checkFinalizedStatuses(f);return S};
var UX9=function(f){var S=f.bufferSize,B=f.timestampProvider,G=f.buffer;f=f.infiniteTimeWindow;var g=(f?1:2)*S;S<Infinity&&g<G.length&&G.splice(0,G.length-g);if(!f){S=B.now();B=0;for(f=1;f<G.length&&G[f]<=S;f+=2)B=f;B&&G.splice(0,B+1)}};var pr1=function(f,S){S=S===void 0?Cy9:S;this.schedulerActionCtor=f;this.now=S};
pr1.prototype.schedule=function(f,S,B){S=S===void 0?0:S;return(new this.schedulerActionCtor(this,f)).schedule(B,S)};
var Cy9=ImA.now;var QPx=function(){var f=Error.call(this,"no elements in sequence");this.message=f.message;"stack"in f&&(this.stack=f.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.q(QPx,Error);var iJ=function(f,S,B,G,g){b4.call(this,f);this.onUnsubscribe=g;S&&(this._next=function(b){try{S(b)}catch(z){this.destination.error(z)}});
B&&(this._error=function(b){try{B(b)}catch(z){this.destination.error(z)}this.unsubscribe()});
G&&(this._complete=function(){try{G()}catch(b){this.destination.error(b)}this.unsubscribe()})};
_.q(iJ,b4);iJ.JSC$7114_EMPTY=b4.JSC$7114_EMPTY;iJ.create=b4.create;iJ.prototype.unsubscribe=function(){var f;this.closed||(f=this.onUnsubscribe)!=null&&f.call(this);b4.prototype.unsubscribe.call(this)};var Mc=function(f,S){this.source=f;this.subjectFactory=S;this._subject=null;this._refCount=0;this._connection=null};
_.q(Mc,SN);Mc.create=SN.create;Mc.prototype._subscribe=function(f){return AhN(this).subscribe(f)};
var AhN=function(f){var S=f._subject;if(!S||S.JSC$7135_isStopped)f._subject=f.subjectFactory();return f._subject};
Mc.prototype._teardown=function(){this._refCount=0;var f=this._connection;this._subject=this._connection=null;f==null||f.unsubscribe()};
Mc.prototype.connect=function(){var f=this,S=this._connection;if(!S){S=this._connection=new Wo;var B=AhN(this);S.add(this.source.subscribe(new iJ(B,void 0,function(G){f._teardown();B.error(G)},function(){f._teardown();
B.complete()},function(){return f._teardown()})));
S.closed&&(this._connection=null,S=Wo.JSC$7114_EMPTY)}return S};var uTs=Array.isArray;var yrG=Array.isArray,NGV=Object,Wzj=NGV.getPrototypeOf,crG=NGV.prototype,lgj=NGV.keys;var Yd=function(f,S,B){b4.call(this,f);this._next=S;this.shouldComplete=B};
_.q(Yd,b4);Yd.JSC$7114_EMPTY=b4.JSC$7114_EMPTY;Yd.create=b4.create;Yd.prototype._complete=function(){this.shouldComplete()?b4.prototype._complete.call(this):this.unsubscribe()};var bCA=["addListener","removeListener"],eX9=["addEventListener","removeEventListener"],zXG=["on","off"];var Xa=function(){Wo.call(this)};
_.q(Xa,Wo);Xa.JSC$7114_EMPTY=Wo.JSC$7114_EMPTY;Xa.prototype.schedule=function(){return this};var MJA=function(f,S){return setInterval.apply(null,[f,S].concat(_.$d(_.qb.apply(2,arguments))))};var w8=function(f,S){Wo.call(this);this.scheduler=f;this.work=S;this.pending=!1};
_.q(w8,Xa);w8.JSC$7114_EMPTY=Xa.JSC$7114_EMPTY;w8.prototype.schedule=function(f,S){S=S===void 0?0:S;if(this.closed)return this;this.state=f;f=this.id;var B=this.scheduler;f!=null&&(this.id=ZAG(this,f,S));this.pending=!0;this.delay=S;this.id=this.id||this.requestAsyncId(B,this.id,S);return this};
w8.prototype.requestAsyncId=function(f,S,B){B=B===void 0?0:B;return MJA(f.flush.bind(f,this),B)};
var ZAG=function(f,S,B){B=B===void 0?0:B;if(B!=null&&f.delay===B&&f.pending===!1)return S;clearInterval(S)};
w8.prototype.execute=function(f,S){if(this.closed)return Error("ma");this.pending=!1;if(f=this._execute(f,S))return f;this.pending===!1&&this.id!=null&&(this.id=ZAG(this,this.id,null))};
w8.prototype._execute=function(f){var S=!1;try{this.work(f)}catch(G){S=!0;var B=!!G&&G||Error(G)}if(S)return this.unsubscribe(),B};
w8.prototype.unsubscribe=function(){if(!this.closed){var f=this.id,S=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;uo(S,this);f!=null&&(this.id=ZAG(this,f,null));this.delay=null;Xa.prototype.unsubscribe.call(this)}};var tJx=function(f,S){S=S===void 0?Cy9:S;pr1.call(this,f,S);this.actions=[];this.active=!1;this.scheduled=void 0};
_.q(tJx,pr1);tJx.prototype.flush=function(f){var S=this.actions;if(this.active)S.push(f);else{var B;this.active=!0;do if(B=f.execute(f.state,f.delay))break;while(f=S.shift());this.active=!1;if(B){for(;f=S.shift();)f.unsubscribe();throw B;}}};var iB=new SN(co);var RXW=Array.isArray;var he=function(f,S){w8.call(this,f,S);this.scheduler=f;this.work=S};
_.q(he,w8);he.JSC$7114_EMPTY=w8.JSC$7114_EMPTY;he.prototype.schedule=function(f,S){S=S===void 0?0:S;if(S>0)return w8.prototype.schedule.call(this,f,S);this.delay=S;this.state=f;this.scheduler.flush(this);return this};
he.prototype.execute=function(f,S){return S>0||this.closed?w8.prototype.execute.call(this,f,S):this._execute(f,S)};
he.prototype.requestAsyncId=function(f,S,B){B=B===void 0?0:B;return B!=null&&B>0||B==null&&this.delay>0?w8.prototype.requestAsyncId.call(this,f,S,B):f.flush(this)};var uKs=function(){tJx.apply(this,arguments)};
_.q(uKs,tJx);var ZXG=new uKs(he);var amW=function(){this.performanceMonitor=new fmK;this.queue=new oLT;this.internalSymbol=Symbol();this.debugNames=new kBG};
amW.prototype.getOnBackgrounded=function(){return iB};
_.y3.Object.defineProperties(amW.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var T4=function(f,S){S=Error.call(this,S?f+": "+S:String(f));this.message=S.message;"stack"in S&&(this.stack=S.stack);this.code=f;this.__proto__=T4.prototype;this.name=String(f)};
_.q(T4,Error);var Hd=function(f){T4.call(this,1E3,'sfr:"'+f+'"');this.measurementStrategyFailureReason=f;this.__proto__=Hd.prototype};
_.q(Hd,T4);var qv=function(){T4.call(this,1003);this.__proto__=qv.prototype};
_.q(qv,T4);var Fa=function(){T4.call(this,1009);this.__proto__=Fa.prototype};
_.q(Fa,T4);var yhs=function(){T4.call(this,1011);this.__proto__=yhs.prototype};
_.q(yhs,T4);var WKV=function(){T4.call(this,1007);this.__proto__=qv.prototype};
_.q(WKV,T4);var Pd=function(f){T4.call(this,1004,String(f));this.inputObservableIndex=f;this.__proto__=Pd.prototype};
_.q(Pd,T4);var DcN=function(f){T4.call(this,1010,f);this.__proto__=vd.prototype};
_.q(DcN,T4);var vd=function(f){T4.call(this,1005,f);this.__proto__=vd.prototype};
_.q(vd,T4);var chs=function(f){var S=_.qb.apply(1,arguments),B=this;this.orderedFactories=[];this.orderedFactories.push(f);S.forEach(function(G){B.orderedFactories.push(G)})};
chs.prototype.isSupported=function(f){return this.orderedFactories.some(function(S){return S.isSupported(f)})};
chs.prototype.makeBeacon=function(f,S){for(var B=0;B<this.orderedFactories.length;B++)if(this.orderedFactories[B].isSupported(S))return this.orderedFactories[B].makeBeacon(f,S);throw new Fa;};var io1=Symbol("na"),lm1=Symbol("oa"),nQ=function(f,S){this.value=f;this.timeline=S},kd=function(f,S){if(S.timeline!==f.timeline)throw new WKV;
return f.value-S.value};
_.e=nQ.prototype;_.e.equals=function(f){return kd(this,f)===0};
_.e.maximum=function(f){if(f.timeline!==this.timeline)throw new WKV;return this.value>=f.value?this:f};
_.e.round=function(){return new nQ(Math.round(this.value),this.timeline)};
_.e.add=function(f){return new nQ(this.value+f,this.timeline)};
_.e.toString=function(){return String(this.value)};var Vm=function(f,S){this.context=f;this.JSC$7241_pinger=S};
Vm.prototype.isSupported=function(f){return this.JSC$7241_pinger.isSupported(f)};
Vm.prototype.makeBeacon=function(f,S){if(!this.isSupported(S))throw new Fa;return new Je(this.context,this.JSC$7241_pinger,S!=null?S:void 0,f)};
var Je=function(f,S,B,G){var g=this;this.JSC$7247_pinger=S;this.properties=B;this.url=G;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var b;this.method=(b=B==null?void 0:B.beaconMethod)!=null?b:"GET";this.backgroundedSubscription=f.getOnBackgrounded().subscribe(function(){g.sendNow()})};
Je.prototype.deactivate=function(){this.internalIsPending=!1};
Je.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$7247_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var f,S;this.JSC$7247_pinger.pingWithHeadersAndBody((f=this.properties)!=null?f:{},this.customHeaders,(S=this.body)!=null?S:"",this.url)}else this.JSC$7247_pinger.ping(this.url);this.internalIsPending=!1}catch(B){}else this.internalIsPending=!1};
Je.prototype.setHeader=function(f){this.customHeaders.set(f,void 0)};
_.y3.Object.defineProperties(Je.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var oQX=function(){for(var f=_.m(_.qb.apply(0,arguments)),S=f.next();!S.done;S=f.next())if(S=S.value,S.available()){this.timeProvider=S;return}this.timeProvider=new fNX};
_.e=oQX.prototype;_.e.available=function(){return this.timeProvider.available()};
_.e.now=function(){return this.timeProvider.now()};
_.e.setTimeout=function(f,S){return this.timeProvider.setTimeout(f,S)};
_.e.clearTimeout=function(f){this.timeProvider.clearTimeout(f)};
_.e.interval=function(f,S){var B=this.intervalObservable(f).subscribe(S);return function(){return void B.unsubscribe()}};
_.e.intervalObservable=function(f){return this.timeProvider.intervalObservable(f)};
_.y3.Object.defineProperties(oQX.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var fNX=function(){this.timeline=Symbol()};
_.e=fNX.prototype;_.e.available=function(){return!1};
_.e.now=function(){return new nQ(0,this.timeline)};
_.e.setTimeout=function(){return 0};
_.e.clearTimeout=function(){};
_.e.interval=function(){return function(){}};
_.e.intervalObservable=function(){return iB};var Pq=function(f,S){this.intrinsicFunctionNamespace=f;this.performanceMonitor=S};
_.e=Pq.prototype;_.e.setTimeout=function(f,S){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,f),S)};
_.e.clearTimeout=function(f){this.intrinsicFunctionNamespace.clearTimeout(f)};
_.e.interval=function(f,S){var B=this.intervalObservable(f).subscribe(S);return function(){return void B.unsubscribe()}};
_.e.intervalObservable=function(f){var S=this;return new SN(function(B){var G=0,g=S.intrinsicFunctionNamespace.setInterval(function(){B.next(G++)},f);
return function(){S.intrinsicFunctionNamespace.clearInterval(g)}})};
_.e.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var SVv=function(f,S){Pq.call(this,f,S);this.timeline=lm1};
_.q(SVv,Pq);SVv.prototype.now=function(){return new nQ(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
SVv.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&Pq.prototype.available.call(this)};var BW$=function(f,S){Pq.call(this,f,S);this.timeline=io1};
_.q(BW$,Pq);BW$.prototype.now=function(){return new nQ(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
BW$.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&Pq.prototype.available.call(this)};var gQ8=function(f){this.context=f;if(Gjv===void 0)a:{var S,B,G=(S=f.global)==null?void 0:(B=S.document)==null?void 0:B.createElement("meta");if(G)try{G.httpEquiv="origin-trial";G.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";f.global.document.head.append(G);Gjv=G;break a}catch(g){}Gjv=void 0}},
Gjv;
gQ8.prototype.isSupported=function(f){return KgK(this.context)!==void 0&&!(f==null||!f.endOfSession)&&!vq(this.context)&&!(f==null?0:f.attributionEnabled)&&!(f==null?0:f.customHeaders)&&!(f==null?0:f.customBody)};
gQ8.prototype.makeBeacon=function(f,S){if(!this.isSupported(S))throw new Fa;return new Kb(this.context,f,S)};
var Kb=function(f,S,B){this.context=f;this.properties=B;this.JSC$7274_urlWithoutToken=S;var G;this.beaconMethod=(G=B==null?void 0:B.beaconMethod)!=null?G:"GET";f=KgK(this.context);if(f===void 0)throw Error();this.fetchLater=f;e1g(this,bMN(this))},e1g=function(f,S){f.beaconResult&&f.beaconResult.activated||(f.beaconAbort=new AbortController,f.beaconResult=f.fetchLater(S,{method:f.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:f.beaconAbort.signal,activateAfter:96E4}))},bMN=function(f){f=f.JSC$7274_urlWithoutToken;
return(f.slice(-1)[0]==="&"?f:f+"&")+"flapi=1"};
Kb.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
Kb.prototype.sendNow=function(){};
Kb.prototype.setHeader=function(){};
_.y3.Object.defineProperties(Kb.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7274_urlWithoutToken},
set:function(f){this.JSC$7274_urlWithoutToken=f;f=bMN(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);e1g(this,f)}},
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 mA6=function(f){this.context=f};
mA6.prototype.isSupported=function(){return!vq(this.context)&&!!this.context.global.fetch};
mA6.prototype.ping=function(){var f=this;return EK.apply(null,_.$d(_.qb.apply(0,arguments).map(function(S){return mr(f.context.global.fetch(S,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(qc(function(B){return B.status===200}))}))).pipe(YQN(function(S){return S}),jPT())};
mA6.prototype.pingWithHeadersAndBody=function(f,S,B){for(var G=_.qb.apply(3,arguments),g=this,b=new Headers,z=_.m(S.entries()),X=z.next();!X.done;X=z.next()){var w=_.m(X.value);X=w.next().value;w=w.next().value;b.set(X,w)}var F,V=(F=f.keepAlive)!=null?F:!1;EK.apply(null,_.$d(G.map(function(J){return mr(g.context.global.fetch(J,Object.assign({},{method:String(f.beaconMethod),cache:"no-cache"},V?{keepalive:!0}:{},{mode:"no-cors",headers:b,body:B}))).pipe(qc(function(P){return P.status===200}))}))).pipe(YQN(function(J){return J}),
jPT())};var z1i,R4A;_.d8=function(){};
_.IT=function(f){return f};
z1i=function(f){var S=S||0;return function(){return f.apply(this,Array.prototype.slice.call(arguments,0,S))}};
_.i4=function(f){var S=!1,B;return function(){S||(B=f(),S=!0);return B}};
_.Hq=function(f,S){var B=0;return function(G){_.S1.clearTimeout(B);var g=arguments;B=_.S1.setTimeout(function(){f.apply(void 0,g)},S)}};
R4A=function(f,S){var B=0,G=!1,g=[],b=function(){B=0;G&&(G=!1,z())},z=function(){B=_.S1.setTimeout(b,S);
var X=g;g=[];f.apply(void 0,X)};
return function(X){g=arguments;B?G=!0:z()}};var X9m=function(){return P9&&v9?v9.mobile:!R17()&&(H9("iPod")||H9("iPhone")||H9("Android")||H9("IEMobile"))},R17=function(){return P9&&v9?!v9.mobile&&(H9("iPad")||H9("Android")||H9("Silk")):H9("iPad")||H9("Android")&&!H9("Mobile")||H9("Silk")};var w9$;_.$v={};w9$="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.$v.add=function(f,S,B){if(f!==null&&S in f)throw Error("qa`"+S);f[S]=B};
_.$v.clear=function(f){for(var S in f)delete f[S]};
_.$v.clone=function(f){var S={},B;for(B in f)S[B]=f[B];return S};
_.$v.contains=function(f,S){return E6s(f,S)};
_.$v.containsKey=function(f,S){return f!==null&&S in f};
_.$v.containsValue=E6s;_.$v.create=n6G;_.$v.createImmutableView=function(f){var S=f;Object.isFrozen&&!Object.isFrozen(f)&&(S=Object.create(f),Object.freeze(S));return S};
_.$v.createSet=sPQ;_.$v.equals=function(f,S){for(var B in f)if(!(B in S)||f[B]!==S[B])return!1;for(var G in S)if(!(G in f))return!1;return!0};
_.$v.every=function(f,S,B){for(var G in f)if(!S.call(B,f[G],G,f))return!1;return!0};
_.$v.extend=function(f,S){for(var B,G,g=1;g<arguments.length;g++){G=arguments[g];for(B in G)f[B]=G[B];for(var b=0;b<w9$.length;b++)B=w9$[b],Object.prototype.hasOwnProperty.call(G,B)&&(f[B]=G[B])}};
_.$v.filter=function(f,S,B){var G={},g;for(g in f)S.call(B,f[g],g,f)&&(G[g]=f[g]);return G};
_.$v.findKey=LgV;_.$v.findValue=function(f,S,B){return(S=LgV(f,S,B))&&f[S]};
_.$v.forEach=function(f,S,B){for(var G in f)S.call(B,f[G],G,f)};
_.$v.get=function(f,S,B){return f!==null&&S in f?f[S]:B};
_.$v.getAllPropertyNames=function(f,S,B){if(!f)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return xbN(f);for(var G={};f&&(f!==Object.prototype||S)&&(f!==Function.prototype||B);){for(var g=Object.getOwnPropertyNames(f),b=0;b<g.length;b++)G[g[b]]=!0;f=Object.getPrototypeOf(f)}return xbN(G)};
_.$v.getAnyKey=function(f){for(var S in f)return S};
_.$v.getAnyValue=function(f){for(var S in f)return f[S]};
_.$v.getCount=function(f){var S=0,B;for(B in f)S++;return S};
_.$v.getKeys=xbN;_.$v.getSuperClass=function(f){return(f=Object.getPrototypeOf(f.prototype))&&f.constructor};
_.$v.getValueByKeys=function(f,S){var B=_.W9(S),G=B?S:arguments;for(B=B?0:1;B<G.length;B++){if(f==null)return;f=f[G[B]]}return f};
_.$v.getValues=function(f){var S=[],B=0,G;for(G in f)S[B++]=f[G];return S};
_.$v.isEmpty=function(f){for(var S in f)return!1;return!0};
_.$v.isImmutableView=function(f){return!!Object.isFrozen&&Object.isFrozen(f)};
_.$v.map=function(f,S,B){var G={},g;for(g in f)G[g]=S.call(B,f[g],g,f);return G};
_.$v.remove=function(f,S){var B;(B=S in f)&&delete f[S];return B};
_.$v.set=function(f,S,B){f[S]=B};
_.$v.setIfUndefined=function(f,S,B){return S in f?f[S]:f[S]=B};
_.$v.setWithReturnValueIfNotSet=function(f,S,B){if(S in f)return f[S];B=B();return f[S]=B};
_.$v.some=function(f,S,B){for(var G in f)if(S.call(B,f[G],G,f))return!0;return!1};
_.$v.transpose=function(f){var S={},B;for(B in f)S[f[B]]=B;return S};
_.$v.unsafeClone=kCK;var qF=function(f,S,B,G,g){this.allowedElements=f;this.elementPolicies=S;this.allowedGlobalAttributes=B;this.globalAttributePolicies=G;this.globallyAllowedAttributePrefixes=g},h1m=function(f,S,B){B=f.elementPolicies.get(B);
return(B==null?0:B.has(S))?B.get(S):f.allowedGlobalAttributes.has(S)?{policyAction:1}:(B=f.globalAttributePolicies.get(S))?B:f.globallyAllowedAttributePrefixes&&[].concat(_.$d(f.globallyAllowedAttributePrefixes)).some(function(G){return S.indexOf(G)===0})?{policyAction:1}:{policyAction:0}};var TWX="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(" "),
Fxv=[["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}]])]],V1m="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist coords crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden inert ismap label lang loop max maxlength media minlength min multiple muted nonce open playsinline placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type usemap valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
Js$=[["dir",{policyAction:3,conditions:eZ(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:eZ(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:eZ(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:eZ(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],PKX=new qF(new Set(TWX),new Map(Fxv),new Set(V1m),new Map(Js$)),vQg=new qF(new Set(TWX.concat(["BUTTON",
"INPUT"])),new Map(Fxv),new Set(eZ(function(){return V1m.concat(["class","id","name"])})),new Map(eZ(function(){return Js$.concat([["style",
{policyAction:1}]])})));var Kxm,dAL,HMi;Kxm=function(f,S,B,G){this.JSC$7334_sanitizerTable=f;this.styleElementSanitizer=S;this.styleAttributeSanitizer=B;this.JSC$7334_resourceUrlPolicy=G;this.changes=[]};
_.iMm=function(f,S){var B=document.implementation.createHTMLDocument("");f=dAL(f,S,B);B=B.body;B.appendChild(f);B=(new XMLSerializer).serializeToString(B);B=B.slice(B.indexOf(">")+1,B.lastIndexOf("</"));return jZ(B)};
dAL=function(f,S,B){S=IaQ(S,B);S=document.createTreeWalker(S,5,function(X){if(X.nodeType===3)X=1;else if(Cos(X))if(X=Ubx(X),X===null)X=2;else{var w=f.JSC$7334_sanitizerTable;X=X!=="FORM"&&(w.allowedElements.has(X)||w.elementPolicies.has(X))?1:2}else X=2;return X});
for(var G=S.nextNode(),g=B.createDocumentFragment(),b=g;G!==null;){var z=void 0;if(G.nodeType===3)f.styleElementSanitizer&&b.nodeName==="STYLE"?(G=f.styleElementSanitizer(G.data),z=f.createTextNode(G)):z=f.createTextNode(G.data);else if(Cos(G))z=HMi(f,G,B);else throw Error("da");b.appendChild(z);if(G=S.firstChild())b=z;else for(;!(G=S.nextSibling())&&(G=S.parentNode());)b=b.parentNode}return g};
Kxm.prototype.createTextNode=function(f){return document.createTextNode(f)};
HMi=function(f,S,B){var G,g=Ubx(S);B=B.createElement(g);S=S.attributes;for(var b=_.m(S),z=b.next();!z.done;z=b.next()){var X=z.value;z=X.name;X=X.value;var w=h1m(f.JSC$7334_sanitizerTable,z,g);a:{if(G=w.conditions){G=_.m(G);for(var F=G.next();!F.done;F=G.next()){var V=_.m(F.value);F=V.next().value;V=V.next().value;var J=void 0;if((F=(J=S.getNamedItem(F))==null?void 0:J.value)&&!V.has(F)){G=!1;break a}}}G=!0}if(G)switch(w.policyAction){case 1:o$(B,z,X);break;case 2:w=_.FzW(X);X=w!==void 0&&q5N.indexOf(w.toLowerCase())!==
-1?X:"about:invalid#zClosurez";o$(B,z,X);break;case 3:o$(B,z,X.toLowerCase());break;case 4:f.styleAttributeSanitizer?(X=f.styleAttributeSanitizer(X),o$(B,z,X)):o$(B,z,X);break;case 5:f.JSC$7334_resourceUrlPolicy?(w={type:2,attributeName:z,elementName:g},X=DbN(X),(X=f.JSC$7334_resourceUrlPolicy(X,w))&&o$(B,z,X.toString())):o$(B,z,X);break;case 6:if(f.JSC$7334_resourceUrlPolicy){w={type:2,attributeName:z,elementName:g};G=[];X=_.m(X.split(","));for(F=X.next();!F.done;F=X.next())V=_.m(F.value.trim().split(/\s+/,
2)),F=V.next().value,V=V.next().value,G.push({url:F,descriptor:V});X={parts:[]};G=_.m(G);for(F=G.next();!F.done;F=G.next())F=F.value,V=DbN(F.url),(V=f.JSC$7334_resourceUrlPolicy(V,w))&&X.parts.push({url:V.toString(),descriptor:F.descriptor});o$(B,z,poA(X))}else o$(B,z,X)}}return B};
_.qV7=eZ(function(){return new Kxm(PKX)});
_.$Ai=eZ(function(){return new Kxm(vQg)});var QTL=function(){this.calledBuild=!1;this.JSC$7346_sanitizerTable=PKX},YV6=function(){QTL.apply(this,arguments)};
_.q(YV6,QTL);YV6.prototype.build=function(){if(this.calledBuild)throw Error("sa");this.calledBuild=!0;return new Kxm(this.JSC$7346_sanitizerTable,void 0,void 0,this.JSC$7346_resourceUrlPolicy)};var rs8=/[^#]*/;var uB=function(f){try{return!!f&&f.location.href!=null&&xv(f,"foo")}catch(S){return!1}},OM$=function(f){var S=jT6;
if(S)for(var B in S)Object.prototype.hasOwnProperty.call(S,B)&&f(S[B],B,S)},xA1=function(){var f=[];
OM$(function(S){f.push(S)});
return f},jT6={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"},EQj=_.i4(function(){return xA1()}),kjj=function(){var f=LxN("IFRAME"),
S={};
_.AA(EQj(),function(B){f.sandbox&&f.sandbox.supports&&f.sandbox.supports(B)&&(S[B]=!0)});
return S},LxN=function(f,S){S=S===void 0?document:S;
return S.createElement(String(f).toLowerCase())};var $U;_.Uy=function(f,S,B){return Math.min(Math.max(f,S),B)};
$U=function(f,S,B){return f+B*(S-f)};_.ru=function(f,S){this.x=f!==void 0?f:0;this.y=S!==void 0?S:0};
_.e=_.ru.prototype;_.e.clone=function(){return new _.ru(this.x,this.y)};
_.e.equals=function(f){return f instanceof _.ru&&(this==f?!0:this&&f?this.x==f.x&&this.y==f.y:!1)};
_.e.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.e.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.e.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.e.translate=function(f,S){f instanceof _.ru?(this.x+=f.x,this.y+=f.y):(this.x+=Number(f),typeof S==="number"&&(this.y+=S));return this};
_.e.scale=function(f,S){this.x*=f;this.y*=typeof S==="number"?S:f;return this};_.Xr=function(f,S){this.width=f;this.height=S};
_.e=_.Xr.prototype;_.e.clone=function(){return new _.Xr(this.width,this.height)};
_.e.area=function(){return this.width*this.height};
_.e.aspectRatio=function(){return this.width/this.height};
_.e.isEmpty=function(){return!this.area()};
_.e.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.e.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.e.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.e.scale=function(f,S){this.width*=f;this.height*=typeof S==="number"?S:f;return this};var sU=function(f,S){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=f===TRM&&S||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=nQ8};
sU.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var sTo=function(f){return f instanceof sU&&f.constructor===sU&&f.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===nQ8?f.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},nQ8={},TRM={};
new sU(TRM,"");var Vq,KS,YU,DAv,CKm,UAL,jr,Asm,M1o,NWL,xU,ZM$,lNm,csN,WxL,fv1,oXL,S8N,BNo,EGT,Goj,ej8,bim,gXm,Qm;Vq=function(f){return f?new Qm(_.OI(f)):yBN||(yBN=new Qm)};
_.gb=function(f,S){return typeof S==="string"?f.getElementById(S):S};
KS=function(f,S){return(S||document).getElementsByTagName(String(f))};
_.IN6=function(f){return DAv("yt-formatted-string","paper-input-input",f)};
YU=function(f,S,B,G){f=G||f;return(S=S&&S!="*"?String(S).toUpperCase():"")||B?f.querySelectorAll(S+(B?"."+B:"")):f.getElementsByTagName("*")};
DAv=function(f,S,B){var G=document,g=f&&f!="*"?String(f).toUpperCase():"";return g||S?(B||G).querySelector(g+(S?"."+S:"")):YU(G,f,S,B)[0]||null};
CKm=function(f,S){_.$v.forEach(S,function(B,G){G=="style"?f.style.cssText=B:G=="class"?f.className=B:G=="for"?f.htmlFor=B:UAL.hasOwnProperty(G)?f.setAttribute(UAL[G],B):_.Gj(G,"aria-")||_.Gj(G,"data-")?f.setAttribute(G,B):f[G]=B})};
UAL={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"};_.TW=function(f){f=(f||window).document;f=f.compatMode=="CSS1Compat"?f.documentElement:f.body;return new _.Xr(f.clientWidth,f.clientHeight)};
_.p9m=function(f){var S=_.r8(f);f=f.defaultView;return new _.ru(f.pageXOffset||S.scrollLeft,f.pageYOffset||S.scrollTop)};
_.r8=function(f){return f.scrollingElement?f.scrollingElement:_.V9||f.compatMode!="CSS1Compat"?f.body||f.documentElement:f.documentElement};
jr=function(f){return f?f.defaultView:window};
_.js=function(f,S,B){return Asm(document,arguments)};
Asm=function(f,S){var B=S[1],G=NWL(f,String(S[0]));B&&(typeof B==="string"?G.className=B:Array.isArray(B)?G.className=B.join(" "):CKm(G,B));S.length>2&&M1o(f,G,S,2);return G};
M1o=function(f,S,B,G){function g(X){X&&S.appendChild(typeof X==="string"?f.createTextNode(X):X)}
for(;G<B.length;G++){var b=B[G];if(!_.W9(b)||_.og(b)&&b.nodeType>0)g(b);else{a:{if(b&&typeof b.length=="number"){if(_.og(b)){var z=typeof b.item=="function"||typeof b.item=="string";break a}if(typeof b==="function"){z=typeof b.item=="function";break a}}z=!1}_.AA(z?_.aT(b):b,g)}}};
_.Ja=function(f){return NWL(document,f)};
NWL=function(f,S){S=String(S);f.contentType==="application/xhtml+xml"&&(S=S.toLowerCase());return f.createElement(S)};
_.OJ=function(){return document.createTextNode("\n")};
xU=function(f){if(f.nodeType!=1)return!1;switch(f.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};
ZM$=function(f,S){M1o(_.OI(f),f,arguments,1)};
_.EJ=function(f){for(var S;S=f.firstChild;)f.removeChild(S)};
_.Lb=function(f,S){S.parentNode&&S.parentNode.insertBefore(f,S)};
_.kU=function(f,S){S.parentNode&&S.parentNode.insertBefore(f,S.nextSibling)};
_.Pv=function(f){return f&&f.parentNode?f.parentNode.removeChild(f):null};
_.t1m=function(f,S){var B=S.parentNode;B&&B.replaceChild(f,S)};
_.uGo=function(f){var S,B=f.parentNode;if(B&&B.nodeType!=11)if(f.removeNode)f.removeNode(!1);else{for(;S=f.firstChild;)B.insertBefore(S,f);_.Pv(f)}};
_.nb=function(f){return f.children!=void 0?f.children:Array.prototype.filter.call(f.childNodes,function(S){return S.nodeType==1})};
_.ysm=function(f){return f.nextElementSibling!==void 0?f.nextElementSibling:_.aN7(f.nextSibling,!0)};
_.aN7=function(f,S){for(;f&&f.nodeType!=1;)f=S?f.nextSibling:f.previousSibling;return f};
_.aJ=function(f){return _.og(f)&&f.nodeType==1};
_.CS=function(f,S){if(!f||!S)return!1;if(f.contains&&S.nodeType==1)return f==S||f.contains(S);if(typeof f.compareDocumentPosition!="undefined")return f==S||!!(f.compareDocumentPosition(S)&16);for(;S&&f!=S;)S=S.parentNode;return S==f};
lNm=function(f,S){if(f==S)return 0;if(f.compareDocumentPosition)return f.compareDocumentPosition(S)&2?1:-1;if("sourceIndex"in f||f.parentNode&&"sourceIndex"in f.parentNode){var B=f.nodeType==1,G=S.nodeType==1;if(B&&G)return f.sourceIndex-S.sourceIndex;var g=f.parentNode,b=S.parentNode;return g==b?WxL(f,S):!B&&_.CS(g,S)?-1*csN(f,S):!G&&_.CS(b,f)?csN(S,f):(B?f.sourceIndex:g.sourceIndex)-(G?S.sourceIndex:b.sourceIndex)}G=_.OI(f);B=G.createRange();B.selectNode(f);B.collapse(!0);f=G.createRange();f.selectNode(S);
f.collapse(!0);return B.compareBoundaryPoints(_.S1.Range.START_TO_END,f)};
csN=function(f,S){var B=f.parentNode;if(B==S)return-1;for(;S.parentNode!=B;)S=S.parentNode;return WxL(S,f)};
WxL=function(f,S){for(;S=S.previousSibling;)if(S==f)return-1;return 1};
fv1=function(f){var S,B=arguments.length;if(!B)return null;if(B==1)return arguments[0];var G=[],g=Infinity;for(S=0;S<B;S++){for(var b=[],z=arguments[S];z;)b.unshift(z),z=z.parentNode;G.push(b);g=Math.min(g,b.length)}b=null;for(S=0;S<g;S++){z=G[0][S];for(var X=1;X<B;X++)if(z!=G[X][S])return b;b=z}return b};
_.OI=function(f){return f.nodeType==9?f:f.ownerDocument||f.document};
oXL=function(f){return f.contentDocument||f.contentWindow.document};
_.sJ=function(f,S){if("textContent"in f)f.textContent=S;else if(f.nodeType==3)f.data=String(S);else if(f.firstChild&&f.firstChild.nodeType==3){for(;f.lastChild!=f.firstChild;)f.removeChild(f.lastChild);f.firstChild.data=String(S)}else _.EJ(f),f.appendChild(_.OI(f).createTextNode(String(S)))};
S8N={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};BNo={IMG:" ",BR:"\n"};EGT=function(f){var S;f.tagName=="A"&&f.hasAttribute("href")||f.tagName=="INPUT"||f.tagName=="TEXTAREA"||f.tagName=="SELECT"||f.tagName=="BUTTON"?S=!f.disabled&&(!f.hasAttribute("tabindex")||Goj(f)):S=f.hasAttribute("tabindex")&&Goj(f);return S};
Goj=function(f){f=f.tabIndex;return typeof f==="number"&&f>=0&&f<32768};
ej8=function(f){var S=[];gXm(f,S,!0);f=S.join("");f=f.replace(/ \xAD /g," ").replace(/\xAD/g,"");f=f.replace(/\u200B/g,"");f=f.replace(/ +/g," ");f!=" "&&(f=f.replace(/^\s*/,""));return f};
bim=function(f){var S=[];gXm(f,S,!1);return S.join("")};
gXm=function(f,S,B){if(!(f.nodeName in S8N))if(f.nodeType==3)B?S.push(String(f.nodeValue).replace(/(\r\n|\r|\n)/g,"")):S.push(f.nodeValue);else if(f.nodeName in BNo)S.push(BNo[f.nodeName]);else for(f=f.firstChild;f;)gXm(f,S,B),f=f.nextSibling};
_.mNN=function(f,S,B){if(!S&&!B)return null;var G=S?String(S).toUpperCase():null;return _.kv(f,function(g){return(!G||g.nodeName==G)&&(!B||typeof g.className==="string"&&_.As(g.className.split(/\s+/),B))},!0)};
_.kv=function(f,S,B){f&&!B&&(f=f.parentNode);for(B=0;f;){if(S(f))return f;f=f.parentNode;B++}return null};
Qm=function(f){this.JSC$7371_document_=f||_.S1.document||document};
_.e=Qm.prototype;_.e.getElement=function(f){return _.gb(this.JSC$7371_document_,f)};
_.e.$=Qm.prototype.getElement;_.e.getElementsByTagName=function(f,S){return(S||this.JSC$7371_document_).getElementsByTagName(String(f))};
_.e.getElementsByTagNameAndClass=function(f,S,B){return YU(this.JSC$7371_document_,f,S,B)};
_.e.$$=Qm.prototype.getElementsByTagNameAndClass;_.e.setProperties=CKm;_.e.JSC$7373_createDom=function(f,S,B){return Asm(this.JSC$7371_document_,arguments)};
_.e.createElement=function(f){return NWL(this.JSC$7371_document_,f)};
_.e.createTextNode=function(f){return this.JSC$7371_document_.createTextNode(String(f))};
_.e.getWindow=function(){return this.JSC$7371_document_.defaultView};
var Fr=function(f){return _.p9m(f.JSC$7371_document_)};
_.e=Qm.prototype;_.e.appendChild=function(f,S){f.appendChild(S)};
_.e.append=ZM$;_.e.canHaveChildren=xU;_.e.removeNode=_.Pv;_.e.getChildren=_.nb;_.e.contains=_.CS;_.e=GW.prototype;_.e.getWidth=function(){return this.right-this.left};
_.e.getHeight=function(){return this.bottom-this.top};
_.e.clone=function(){return new GW(this.top,this.right,this.bottom,this.left)};
_.e.contains=function(f){return this&&f?f instanceof GW?f.left>=this.left&&f.right<=this.right&&f.top>=this.top&&f.bottom<=this.bottom:f.x>=this.left&&f.x<=this.right&&f.y>=this.top&&f.y<=this.bottom:!1};
_.e.expand=function(f,S,B,G){_.og(f)?(this.top-=f.top,this.right+=f.right,this.bottom+=f.bottom,this.left-=f.left):(this.top-=f,this.right+=Number(S),this.bottom+=Number(B),this.left-=Number(G));return this};
_.e.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};
_.e.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};
_.e.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};
_.e.translate=function(f,S){f instanceof _.ru?(this.left+=f.x,this.right+=f.x,this.top+=f.y,this.bottom+=f.y):(this.left+=f,this.right+=f,typeof S==="number"&&(this.top+=S,this.bottom+=S));return this};
_.e.scale=function(f,S){S=typeof S==="number"?S:f;this.left*=f;this.right*=f;this.top*=S;this.bottom*=S;return this};var D$=function(f,S,B,G){this.left=f;this.top=S;this.width=B;this.height=G};
_.e=D$.prototype;_.e.clone=function(){return new D$(this.left,this.top,this.width,this.height)};
_.e.boundingRect=function(f){var S=Math.max(this.left+this.width,f.left+f.width),B=Math.max(this.top+this.height,f.top+f.height);this.left=Math.min(this.left,f.left);this.top=Math.min(this.top,f.top);this.width=S-this.left;this.height=B-this.top};
_.e.contains=function(f){return f instanceof _.ru?f.x>=this.left&&f.x<=this.left+this.width&&f.y>=this.top&&f.y<=this.top+this.height:this.left<=f.left&&this.left+this.width>=f.left+f.width&&this.top<=f.top&&this.top+this.height>=f.top+f.height};
_.e.distance=function(f){var S=f.x<this.left?this.left-f.x:Math.max(f.x-(this.left+this.width),0);f=f.y<this.top?this.top-f.y:Math.max(f.y-(this.top+this.height),0);return Math.sqrt(S*S+f*f)};
_.e.getSize=function(){return new _.Xr(this.width,this.height)};
_.e.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};
_.e.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};
_.e.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};
_.e.translate=function(f,S){f instanceof _.ru?(this.left+=f.x,this.top+=f.y):(this.left+=f,typeof S==="number"&&(this.top+=S));return this};
_.e.scale=function(f,S){S=typeof S==="number"?S:f;this.left*=f;this.width*=f;this.top*=S;this.height*=S;return this};var Rjm,Cb,XdQ,UJ,TNg,hji,F6L,$_1,Vmi,Pmm;_.IF=function(f,S,B){if(typeof S==="string")(S=_.zjv(f,S))&&(f.style[S]=B);else for(var G in S){B=f;var g=S[G],b=_.zjv(B,G);b&&(B.style[b]=g)}};
Rjm={};_.zjv=function(f,S){var B=Rjm[S];if(!B){var G=_.Vw(S);B=G;f.style[G]===void 0&&(G=(_.V9?"Webkit":_.Fx?"Moz":null)+LK1(G),f.style[G]!==void 0&&(B=G));Rjm[S]=B}return B};
_.Q1=function(f,S){var B=_.OI(f);return B.defaultView&&B.defaultView.getComputedStyle&&(f=B.defaultView.getComputedStyle(f,null))?f[S]||f.getPropertyValue(S)||"":""};
_.DL=function(f,S){return _.Q1(f,S)||(f.currentStyle?f.currentStyle[S]:null)||f.style&&f.style[S]};
_.X76=function(f){return _.DL(f,"position")};
Cb=function(f,S,B){if(S instanceof _.ru){var G=S.x;S=S.y}else G=S,S=B;f.style.left=UJ(G,!1);f.style.top=UJ(S,!1)};
XdQ=function(f){try{return f.getBoundingClientRect()}catch(S){return{left:0,top:0,right:0,bottom:0}}};
_.EI=function(f){var S=_.OI(f),B=new _.ru(0,0);if(f==(S?_.OI(S):document).documentElement)return B;f=XdQ(f);S=Fr(Vq(S));B.x=f.left+S.x;B.y=f.top+S.y;return B};
_.w7N=function(f,S,B){if(S instanceof _.Xr)B=S.height,S=S.width;else if(B==void 0)throw Error("ta");f.style.width=UJ(S,!0);f.style.height=UJ(B,!0)};
UJ=function(f,S){typeof f=="number"&&(f=(S?Math.round(f):f)+"px");return f};
TNg=function(f){return hji(f)};
hji=function(f){var S=F6L;if(_.DL(f,"display")!="none")return S(f);var B=f.style,G=B.display,g=B.visibility,b=B.position;B.visibility="hidden";B.position="absolute";B.display="inline";f=S(f);B.display=G;B.position=b;B.visibility=g;return f};
F6L=function(f){var S=f.offsetWidth,B=f.offsetHeight,G=_.V9&&!S&&!B;return(S===void 0||G)&&f.getBoundingClientRect?(f=XdQ(f),new _.Xr(f.right-f.left,f.bottom-f.top)):new _.Xr(S,B)};
$_1=function(f){var S=_.EI(f);f=hji(f);return new D$(S.x,S.y,f.width,f.height)};
Vmi=function(f,S){f=f.style;"opacity"in f?f.opacity=S:"MozOpacity"in f?f.MozOpacity=S:"filter"in f&&(f.filter=S===""?"":"alpha(opacity="+Number(S)*100+")")};
_.ta=function(f,S){f.style.display=S?"":"none"};
_.J17=function(f){return"rtl"==_.DL(f,"direction")};
Pmm=function(f){var S=_.Q1(f,"marginLeft"),B=_.Q1(f,"marginRight"),G=_.Q1(f,"marginTop");f=_.Q1(f,"marginBottom");return new GW(parseFloat(G),parseFloat(B),parseFloat(f),parseFloat(S))};
_.vX$=function(f){var S=_.Q1(f,"borderLeftWidth"),B=_.Q1(f,"borderRightWidth"),G=_.Q1(f,"borderTopWidth");f=_.Q1(f,"borderBottomWidth");return new GW(parseFloat(G),parseFloat(B),parseFloat(f),parseFloat(S))};var pb=function(f){this.context=f};
pb.prototype.isSupported=function(f){return(f==null?0:f.attributionEnabled)||(f==null?void 0:f.beaconMethod)==="POST"||(f==null?0:f.customHeaders)||(f==null?0:f.customBody)||(f==null?0:f.keepAlive)?!1:!vq(this.context)};
pb.prototype.ping=function(){var f=this;return Jm(_.qb.apply(0,arguments).map(function(S){try{var B=f.context.global,G=!1;G=G===void 0?!1:G;B.google_image_requests||(B.google_image_requests=[]);var g=LxN("IMG",B.document);G&&(g.attributionSrc="");g.src=S;B.google_image_requests.push(g);return!0}catch(b){return!1}}).every(function(S){return S}))};
pb.prototype.pingWithHeadersAndBody=function(f,S,B){this.ping.apply(this,_.$d(_.qb.apply(3,arguments)))};var K6L=function(f){this.context=f};
K6L.prototype.isSupported=function(f){return dNL&&!vq(this.context)&&Nc1(this.context)!==void 0&&!(f==null?0:f.attributionEnabled)&&(f==null?void 0:f.beaconMethod)!=="POST"&&!(f==null?0:f.customHeaders)&&!(f==null?0:f.customBody)};
K6L.prototype.makeBeacon=function(f,S){if(!this.isSupported(S))throw new Fa;return new Ae(this.context,f)};
var dNL=!1,Ae=function(f,S){this.context=f;this.JSC$7392_urlWithoutToken=S;f=Nc1(this.context);if(f===void 0)throw Error();this.wrappedBeacon=new f(iim(this),{})},iim=function(f){f=f.JSC$7392_urlWithoutToken;
return(f.slice(-1)[0]==="&"?f:f+"&")+"pbapi=1"};
Ae.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
Ae.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
Ae.prototype.setHeader=function(){};
_.y3.Object.defineProperties(Ae.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7392_urlWithoutToken},
set:function(f){this.JSC$7392_urlWithoutToken=f;this.wrappedBeacon.setURL(iim(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(f){if(f!=="GET")throw new Fa;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var Hi8=function(f){this.context=f};
Hi8.prototype.isSupported=function(f){if((f==null?0:f.attributionEnabled)||(f==null?void 0:f.beaconMethod)==="GET"||(f==null?0:f.customHeaders)||(f==null?0:f.customBody)||(f==null?0:f.keepAlive))return!1;var S;return!vq(this.context)&&((S=this.context.global.navigator)==null?void 0:S.sendBeacon)!==void 0};
Hi8.prototype.ping=function(){var f=this;return Jm(_.qb.apply(0,arguments).map(function(S){var B;return(B=f.context.global.navigator)==null?void 0:B.sendBeacon(S)}).every(function(S){return S}))};
Hi8.prototype.pingWithHeadersAndBody=function(f,S,B){this.ping.apply(this,_.$d(_.qb.apply(3,arguments)))};var zW=function(f){this.value=f},Mv=function(f,S){return Jm(f.value).pipe(bB(S))},yq=new zW(!1),Ko1=new zW(!0);var no=function(f){this.value=f;this.releasedSubject=new gu};
no.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.y3.Object.defineProperties(no.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$7405_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var Bzs=["FRAME","IMG","IFRAME"],WgQ=/^[01](px)?$/,SKT=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},od9=function(){var f=new SKT;
f.crossDomainLoadedDefault=!0;f.pendingImagesBlockLoad=!0;return f};var q8g=function(f,S){var B=RKV(f);if(B)if(B.onCreativeLoad)B.onCreativeLoad(S);else{var G=S?[S]:[],g=function(b){for(var z=0;z<G.length;++z)try{G[z](1,b)}catch(X){}G={push:function(X){X(1,b)}}};
B.onCreativeLoad=function(b){G.push(b)};
B.setAttribute("data-creative-load-listener","");B.addEventListener("creativeLoad",function(b){g(b.detail)});
_.S1.addEventListener("message",function(b){zKj(B,g,b)})}};var NF=function(f,S){var B=this;this.global=f;this.parentContext=S;this.JSC$7416_onVisibilityChange=this.document?EK(Jm(!0),OK(this.document,"visibilitychange")).pipe(sK(this.parentContext.performanceMonitor,748),qc(function(){return B.getVisibilityState()}),Am()):Jm("visible");
this.document?OK(this.document,"DOMContentLoaded").pipe(sK(this.parentContext.performanceMonitor,739),pQ(1)):Jm(aaK("DOMContentLoaded"))},vAN=function(f){return f.document!==null&&f.document.visibilityState!==void 0};
NF.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
NF.prototype.querySelector=function(f){return this.document?this.document.querySelector(f):null};
NF.prototype.querySelectorAll=function(f){return this.document?_.aT(this.document.querySelectorAll(f)):[]};
NF.prototype.elementFromPoint=function(f,S){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;f=this.document.elementFromPoint(f,S);return f===null?null:new no(f)};
var mRW=function(f,S,B){B=B===void 0?!1:B;if(S.ref===void 0||!f.document)return Jm(S).pipe(sK(f.parentContext.performanceMonitor,749));var G=new tm(1),g=function(){G.next(S)};
B||q8g(S.ref,g);GTx(S.ref,g);return G.pipe(sK(f.parentContext.performanceMonitor,749),pQ(1))};
_.y3.Object.defineProperties(NF.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return xv(this.global,"document")?this.global.document||null:null}}});var XVN=_.f4(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),wV9=_.f4(["./reach_worklet.js"]),hKW=_.f4(["./reach_worklet.js"]),$N$=_.f4(["./reach_worklet.html"]),QgN=_.f4(["./reach_worklet.js"]),Y8X=_.f4(["./reach_worklet.js"]);_.Sr($N$);_.Sr(QgN);_.Sr(Y8X);var UI={left:0,top:0,width:0,height:0};var r1N,jgL,Oim,xNi,yR,L6j,koN,nXg,oDj,SFN,IvL,UNL;r1N=function(f,S,B,G,g,b,z){var X="";f&&(X+=f+":");B&&(X+="//",S&&(X+=S+"@"),X+=B,G&&(X+=":"+G));g&&(X+=g);b&&(X+="?"+b);z&&(X+="#"+z);return X};
jgL=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.u0=function(f){return f.match(jgL)};
_.Lz=function(f,S){return f?S?decodeURI(f):decodeURIComponent(f):f};
Oim=function(f){f=_.u0(f)[1]||null;!f&&_.S1.self&&_.S1.self.location&&(f=_.S1.self.location.protocol.slice(0,-1));return f?f.toLowerCase():""};
_.aj=function(f){return _.Lz(_.u0(f)[3]||null,!0)};
_.Xl=function(f){return _.Lz(_.u0(f)[5]||null,!0)};
_.fnN=function(f){var S=f.indexOf("#");return S<0?null:f.slice(S+1)};
xNi=function(f){f=_.u0(f);return r1N(f[1],f[2],f[3],f[4])};
_.EXL=function(f){f=_.u0(f);return r1N(f[1],null,f[3],f[4])};
_.Ck=function(f){f=_.u0(f);return r1N(null,null,null,null,f[5],f[6],f[7])};
_.yw=function(f){var S=f.indexOf("#");return S<0?f:f.slice(0,S)};
yR=function(f,S){f=_.u0(f);S=_.u0(S);return f[3]==S[3]&&f[1]==S[1]&&f[4]==S[4]};
L6j=function(f,S){if(f){f=f.split("&");for(var B=0;B<f.length;B++){var G=f[B].indexOf("="),g=null;if(G>=0){var b=f[B].substring(0,G);g=f[B].substring(G+1)}else b=f[B];S(b,g?l0(g):"")}}};
koN=function(f){var S=f.indexOf("#");S<0&&(S=f.length);var B=f.indexOf("?");if(B<0||B>S){B=S;var G=""}else G=f.substring(B+1,S);return[f.slice(0,B),G,f.slice(S)]};
nXg=function(f,S){return S?f?f+"&"+S:S:f};
_.sg8=function(f,S){if(!S)return f;f=koN(f);f[1]=nXg(f[1],S);return f[0]+(f[1]?"?"+f[1]:"")+f[2]};
_.DNv=function(f,S,B){if(Array.isArray(S))for(var G=0;G<S.length;G++)_.DNv(f,String(S[G]),B);else S!=null&&B.push(f+(S===""?"":"="+_.pL(S)))};
_.hY=function(f){var S=[],B;for(B in f)_.DNv(B,f[B],S);return S.join("&")};
_.tA=function(f,S){S=_.hY(S);return _.sg8(f,S)};
_.MF=function(f,S,B){B=B!=null?"="+_.pL(B):"";return _.sg8(f,S+B)};
oDj=function(f,S,B,G){for(var g=B.length;(S=f.indexOf(B,S))>=0&&S<G;){var b=f.charCodeAt(S-1);if(b==38||b==63)if(b=f.charCodeAt(S+g),!b||b==61||b==38||b==35)return S;S+=g+1}return-1};
SFN=/#|$/;_.pS=function(f,S){var B=f.search(SFN),G=oDj(f,0,S,B);if(G<0)return null;var g=f.indexOf("&",G);if(g<0||g>B)g=B;G+=S.length+1;return l0(f.slice(G,g!==-1?g:0))};
IvL=/[?&]($|#)/;_.cZ=function(f,S){for(var B=f.search(SFN),G=0,g,b=[];(g=oDj(f,G,S,B))>=0;)b.push(f.substring(G,g)),G=Math.min(f.indexOf("&",g)+1||B,B);b.push(f.slice(G));return b.join("").replace(IvL,"$1")};
_.D0=function(f,S,B){return _.MF(_.cZ(f,S),S,B)};
UNL=function(f){var S=koN(window.location.href),B=S[1],G=[];B&&B.split("&").forEach(function(g){var b=g.indexOf("=");b=b>=0?g.slice(0,b):g;f.hasOwnProperty(b)||G.push(g)});
S[1]=nXg(G.join("&"),_.hY(f));return S[0]+(S[1]?"?"+S[1]:"")+S[2]};var LrN=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(LrN,_.s7);LrN.prototype.getVersion=function(){return _.n4(this,2)};var Eds=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(Eds,_.s7);var Qsx=function(f,S){return _.Jx(f,2,S)},xcj=function(f,S){return _.Jx(f,3,S)};
Eds.prototype.getModel=function(){return _.n4(this,4)};
var rm1=function(f,S){return _.Jx(f,4,S)},$cK=function(f,S){return _.Jx(f,5,S)},OQT=function(f,S){return _.Jx(f,9,S)},qKV=function(f,S){return jT(f,10,S)},HQV=function(f,S){return _.b5(f,11,S)},YKN=function(f,S){return _.Jx(f,1,S)},js9=function(f,S){return _.b5(f,7,S)};var dcM="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var a$=function(f,S,B,G){f=f===void 0?window:f;S=S===void 0?null:S;B=B===void 0?new fmK:B;G=G===void 0?TzW():G;amW.call(this);var g=this;this.global=f;this.debugChannel=S;this.performanceMonitor=B;this.onPageHide=jN(function(){return OK(g.global,"pagehide")}).pipe(sK(this.performanceMonitor,941));
this.onLoad=jN(function(){return OK(g.global,"load")}).pipe(sK(this.performanceMonitor,738),pQ(1));
this.onResize=jN(function(){return OK(g.global,"resize")}).pipe(sK(this.performanceMonitor,741));
this.onMessage=jN(function(){return OK(g.global,"message")}).pipe(sK(this.performanceMonitor,740));
this.document=new NF(this.global,this);this.timeProvider=new oQX(new BW$(this.intrinsicFunctionNamespace,this.performanceMonitor),new SVv(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new chs(new gQ8(this),new K6L(this),new Vm(this,new mA6(this)),new Vm(this,new Hi8(this)),new Vm(this,new pb(this)))};
_.q(a$,amW);var vq=function(f){var S=f.global;return!!f.global.HTMLFencedFrameElement&&!!S.fence&&typeof S.fence.reportEvent==="function"};
_.e=a$.prototype;_.e.reportFencedFrameEvent=function(f){vq(this)&&this.global.fence.reportEvent(f)};
_.e.getOnBackgrounded=function(){return this.onPageHide.pipe(sK(this.performanceMonitor,942),bB(this.queue),qc(function(){}))};
_.e.postMessage=function(f,S,B){B=B===void 0?[]:B;this.global.postMessage(f,S,B)};
_.e.getWidth=function(){return uB(this.global)?this.global.width:0};
_.e.getHeight=function(){return uB(this.global)?this.global.height:0};
_.e.isMobile=function(){return R17()||X9m()};
var sI=function(f,S){try{var B=PJ1(S,f.global,f.isMobile());return{left:B.left,top:B.top,width:B.getWidth(),height:B.getHeight()}}catch(G){return UI}};
a$.prototype.validate=function(){var f=this.beaconFactory.isSupported()||vq(this);return this.global&&this.timeProvider.available()&&f};
var ZCV=function(f){return(f=nd1(f.global))?mr(f):null};
_.y3.Object.defineProperties(a$.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(f){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!uB(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}}});_.CmN=!_.Td&&!_.EV();var dRN=function(f){return f};var HST=function(f){return f.pipe(LQ(function(S){var B=S.endOfSessionReason;var G;return((G=S.viewable)==null?void 0:G.extrapolateToNow().value)||B!=void 0}),pQ(1),Is())};var pV1=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},AmM=function(f){var S=f.sequenceNumber.toString(10).padStart(2,"0");
S=""+f.startTime+S;f.sequenceNumber<99&&f.sequenceNumber++;return S};var P5K=os(cV(function(f){return f.endOfSessionReason===void 0}),qc(function(f){return Object.assign({},f,{timestamps:Ko(f)})}),LQ(function(f){var S=f.viewable;
f=f.timestamps;var B;return(B=S==null?void 0:S.extrapolateUsingTimestampMap(f).value)!=null?B:!1}),qc(function(f){var S=f.beaconFactory;
var B=f.timestampedExposureHistory;var G=f.timeOnScreen;var g=f.binaryContext;f=f.timestamps;if(S===void 0||B===void 0||G===void 0||g===void 0)return!1;if(G.extrapolateUsingTimestampMap(f).value.every(function(b){return b>=0}))return!0;
B=B.map(function(b){return b.timestamp+":"+b.value}).join(",");
G=du({bin:g,tos:G},f);S.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+G+("&eh="+B)).sendNow();return!0}),cV(function(f){return!f}),Is());var MNA=function(f){return{id:f.pingId,mcvt:f.maxConsecutiveViewTime,p:f.creativePosition,asp:f.adSpeedPosition,tm:f.totalMeasurementTime,tu:f.totalUnviewedTime,mtos:f.maxTimeOnScreen,tos:f.timeOnScreen,v:f.binaryVersion,bin:f.binaryContext,avms:f.measurementStrategy,bs:f.browserSize,mc:f.maximumExposure,"if":f.crossDomainIframeState,vu:f.delayedImpressionJsState,app:f.inApp,mse:f.mraidError,mtop:f.mraidSituation,itpl:f.injectedTemplateId,adk:f.adKey,exk:f.awbidKey,rs:f.requestSource,la:f.isLargeAd,
cr:f.isContentRecommendationAd,uach:f.userAgentClientHints,vs:f.viewState,r:f.reasonCode,pay:f.hasCpmavUrl,co:f.clientPingOrderCounter,rst:f.adRenderStartTime,rpt:f.adRenderPeriodTime,isd:f.initialScrollDepth,lsd:f.loadedScrollDepth,context:f.errorContext,msg:f.errorMessage,stack:f.errorStack,name:f.errorName,ec:f.hasElementChanged,sfr:f.strategyFailureReasons,met:f.creativeSearchResult,wmsd:f.webMeasurementStartDiagnostic,pv:f.pageVisible,epv:f.eosPageVisible,pbe:f.inStatefulBeaconExperiment,fle:f.inFetchLaterBeaconExperiment,
vae:f.inViewableAttributionExperiment,spb:f.supportsPendingBeacon,sfl:f.supportsFetchLater,ffslot:f.isFencedFrameSlotTurtlex,reach:f.sharedStorageReachMode,io2:f.v2VisibilityBitVector,rxdbg:f.rxDebugger,omida:f.omidAppId,omidp:f.omidPartner,omidpv:f.omidPartnerVersion,omidor:f.omidOcclusionReasons,omidv:f.omidVersion,omids:f.omidSessionType,omidam:f.omidAccessMode,omidct:f.omidCreativeType,omidia:f.omidInApp,omiddc:f.omidDeviceCategory,omidlat:f.omidLastActivity,omiddit:f.omidDeviceIdleTime,qid:f.errorEscapedQueryId}};var iSs=function(f){var S=[];return f.pipe(qc(function(B){var G=B.beaconFactory,g=B.fetchBeaconFactory,b=B.timeOnScreen,z=B.timeOnScreenUrlPrefixes,X=B.payloadMapper,w=B.timeOnScreenPingId,F=B.timeOnScreenReason,V=B.urlSerializer,J=B.viewable,P=B.hasImpressionFired,d=B.inStatefulBeaconExperiment,Q=B.supportsPendingBeacon,x=B.supportsFetchLater,E=B.turtlexReportEventData;if(!B.geometryMeasurable||!P||B.maxTimeOnScreen===void 0||b===void 0||z===void 0||X===void 0||w===void 0||V===void 0||G===void 0)return!1;
if(B.isTurtlex){if(F===void 0)return!1;z=B.reportFencedFrameEvent;if(!z)return!1;z({eventType:"active-view-time-on-screen",eventData:E!=null?E:"",destination:["buyer"]});return!0}if(!(d||x||F))return!1;E=Ko(B);var U;J=(U=J==null?void 0:J.extrapolateUsingTimestampMap(E).value)!=null?U:!1;U=V(Object.assign({},B,{pingId:w,viewState:J?4:3,reasonCode:F!=null?F:"u",payloadMapper:X,urlPrefixes:z}),E);if(d){for(;S.length>z.length;)B=void 0,(B=S.shift())==null||B.deactivate();U.forEach(function(t,M){M>=S.length?
S.push(G.makeBeacon(t)):S[M].url=t});
return Q&&g&&F!==void 0?(U.forEach(function(t){g.makeBeacon(t).sendNow()}),!0):F!==void 0}if(Q&&g&&F!==void 0)return U.forEach(function(t){g.makeBeacon(t).sendNow()}),!0;
if(x&&g){for(;S.length>z.length;)Q=void 0,(Q=S.shift())==null||Q.deactivate();var A=V(Object.assign({},B,{pingId:w,viewState:J?4:3,reasonCode:F!=null?F:"u",payloadMapper:X,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),E)[0];U.forEach(function(t,M){M>=S.length?S.push(G.makeBeacon(A,{endOfSession:!0})):S[M].url=A});
return F!==void 0?(U.forEach(function(t){g.makeBeacon(t).sendNow()}),!0):F!==void 0}return F!==void 0?(U.forEach(function(t){G.makeBeacon(t).sendNow()}),!0):!1}),cV(function(B){return!B}),Is())};var qbT=os(LQ(function(f){return f.immediateUrlPrefixes!==void 0&&f.payloadMapper!==void 0&&f.urlSerializer!==void 0&&f.inferredPingId!==void 0&&f.beaconFactory!==void 0}),LQ(function(f){return lEj(f)!==null}),WrG(function(f){return f.activeViewUnmeasurableEvent},function(f){return f.emit}),qc(function(f){if(f.isTurtlex){var S=f.reportFencedFrameEvent;
if(S){var B;S({eventType:"active-view-unmeasurable",eventData:(B=f.turtlexReportEventData)!=null?B:"",destination:["buyer"]})}}else{B=void 0;var G=lEj(f);if(G==="x"){var g,b=(g=f.geometricMeasurementErrors)!=null?g:f.contextValidationErrors;b&&(S=b.stack,B=b.message)}f.urlSerializer(Object.assign({},f,{urlPrefixes:f.immediateUrlPrefixes,payloadMapper:f.payloadMapper,pingId:f.inferredPingId,viewState:2,reasonCode:G,errorMessage:B,errorStack:S}),Ko(f)).forEach(function(z){f.beaconFactory.makeBeacon(z).sendNow()})}}),
pQ(1),Is());var fMN=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var Jas=os(LQ(function(f){return f.payloadMapper!==void 0&&f.immediateUrlPrefixes!==void 0&&f.urlSerializer!==void 0&&f.inferredPingId!==void 0&&f.beaconFactory!==void 0}),qc(function(f){return Object.assign({},f,{timestamps:Ko(f)})}),LQ(function(f){var S=f.viewable;
var B=f.hasImpressionFired;f=f.timestamps;var G;return!!B&&((G=S==null?void 0:S.extrapolateUsingTimestampMap(f).value)!=null?G:!1)}),WrG(function(f){return f.activeViewViewableEvent},function(f){return f.emit}),qc(function(f){var S=f.beaconFactory,B=f.turtlexReportEventData;
if(f.isTurtlex){var G=f.reportFencedFrameEvent;if(!G)return!1;G({eventType:"active-view-viewable",eventData:B!=null?B:"",destination:["buyer"]});return!0}B=f.urlSerializer(Object.assign({},f,{urlPrefixes:f.immediateUrlPrefixes,payloadMapper:f.payloadMapper,pingId:f.inferredPingId,viewState:4,reasonCode:"v"}),f.timestamps);(G=f.cpmavUrls)&&G.length>0&&f.viewUrlSerializer&&f.viewUrlSerializer(G,f).forEach(function(g){S.makeBeacon(g).sendNow()});
(G=f.viewableRelayUrls)&&G.length>0&&f.viewUrlSerializer&&f.viewUrlSerializer(G,f).forEach(function(g){S.makeBeacon(g).sendNow()});
B.forEach(function(g){S.makeBeacon(g,{attributionEnabled:f.isViewableAttributionEnabled}).sendNow()});
return!0}),cV(function(f){return!f}),Is());var Ax1=qc(function(f){return[f.value.topWindowViewportExternalGeometry.width,f.value.topWindowViewportExternalGeometry.height]});var DM=function(f,S){this.callback=f;this.options=S;this.intersectionObserverV2=this.intersectionObserverV1=null},qIV=function(f,S){S?f.intersectionObserverV2||(S=Object.assign({},f.options,{delay:100,
trackVisibility:!0}),f.intersectionObserverV2=new IntersectionObserver(f.callback,S)):f.intersectionObserverV1||(f.intersectionObserverV1=new IntersectionObserver(f.callback,f.options))},p7X=function(f,S){f=S?f.intersectionObserverV2:f.intersectionObserverV1;
if(!f)throw new yhs;return f};
DM.prototype.observe=function(f,S){p7X(this,f).observe(S)};
DM.prototype.unobserve=function(f,S){p7X(this,f).unobserve(S)};
DM.prototype.disconnect=function(f){p7X(this,f).disconnect()};
DM.prototype.takeRecords=function(f){return p7X(this,f).takeRecords()};var Lo={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:UI,topWindowViewportExternalGeometry:UI,measurementRequests:new gu,elementGeometrySourceName:"ns",elementGeometry:UI,intersectionGeometry:UI,viewportLocalAppOffset:{x:0,y:0}};var xv1=Co(os(qc(function(f){var S;return(S=f.exposureOverride)!=null?S:Q$Q(f)}),qc(function(f){return isFinite(f)?f:0}))),IMQ=Co(os(qc(function(f){var S;
return(S=f.exposureOverride)!=null?S:Q$Q(f)}),qc(function(f){return isFinite(f)?f:-1})));var Z$=function(f,S){this.a=f;this.b=S;if(f.clock.timeline!==S.clock.timeline)throw Error();};
Z$.prototype.equivalentTo=function(f){return f instanceof Z$?this.a.equivalentTo(f.a)&&this.b.equivalentTo(f.b):!1};
Z$.prototype.extrapolateToTime=function(f){var S=this.a.extrapolateToTime(f).value,B=this.b.extrapolateToTime(f).value;return{timestamp:f,value:[S,B]}};
_.y3.Object.defineProperties(Z$.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 f=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),S=this.a.lastMeasurement.timestamp.equals(f)?this.a.lastMeasurement.value:this.a.extrapolateToTime(f).value,B=this.b.lastMeasurement.timestamp.equals(f)?this.b.lastMeasurement.value:this.b.extrapolateToTime(f).value;return{timestamp:f,value:[S,B]}}}});var te=function(f,S){this.input=f;this.mapFunction=S;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
te.prototype.equivalentTo=function(f){return f instanceof te?this.input.equivalentTo(f.input)&&this.mapFunction===f.mapFunction:!1};
te.prototype.extrapolateToTime=function(f){f=this.input.extrapolateToTime(f);return{timestamp:f.timestamp,value:this.mapFunction(f.value)}};
_.y3.Object.defineProperties(te.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var u4=function(){};
u4.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
u4.prototype.extrapolateUsingTimestampMap=function(f){var S=this.clock.timeline,B,G=(B=f.get(S))!=null?B:this.clock.now();f.set(S,G);return this.extrapolateToTime(G)};
u4.prototype.map=function(f){return new A1v(this,f)};
u4.prototype.joinWith=function(f){return new NN8(this,f)};
var NN8=function(){Z$.apply(this,arguments);this.map=u4.prototype.map;this.joinWith=u4.prototype.joinWith;this.extrapolateToNow=u4.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=u4.prototype.extrapolateUsingTimestampMap};
_.q(NN8,Z$);var A1v=function(){te.apply(this,arguments);this.map=u4.prototype.map;this.joinWith=u4.prototype.joinWith;this.extrapolateToNow=u4.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=u4.prototype.extrapolateUsingTimestampMap};
_.q(A1v,te);var Ax=function(f,S){this.lastMeasurement=S;this.extrapolateToNow=u4.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=u4.prototype.extrapolateUsingTimestampMap;this.map=u4.prototype.map;this.joinWith=u4.prototype.joinWith;this.clock=f};
Ax.prototype.equivalentTo=function(f){return f.active};
Ax.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.y3.Object.defineProperties(Ax.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var pdV=qc(function(f){if(f.value.viewportGeometrySourceName==="omid"){if(f.value.elementGeometrySourceName==="nio")return"omio";if(f.value.elementGeometrySourceName==="geo")return"omgeo"}return f.value.elementGeometrySourceName==="geo"||f.value.elementGeometrySourceName==="nio"?f.value.viewportGeometrySourceName:f.value.elementGeometrySourceName});var rxQ=os(LQ(function(f){return!isNaN(f)}),as(function(f,S){return isNaN(f)?S:Math.min(f,S)},NaN),Am());var EvT=Co(os(qc(function(f){return f.intersectionGeometry.width*f.intersectionGeometry.height/(f.exposedViewportLocalGeometry.width*f.exposedViewportLocalGeometry.height)}),qc(function(f){return isFinite(f)?Math.min(1,f):0})));var CBx=os(Co(qc(function(f){f=f.exposureOverride?f.elementGeometry.width*f.elementGeometry.height*f.exposureOverride/(f.topWindowViewportExternalGeometry.width*f.topWindowViewportExternalGeometry.height):f.intersectionGeometry.width*f.intersectionGeometry.height/(f.topWindowViewportExternalGeometry.width*f.topWindowViewportExternalGeometry.height);return isFinite(f)?f:0})));var MrA=function(f,S){var B=this;this.timeProvider=f;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=S.pipe(Am()).subscribe(function(G){tx(B);B.measurementRequestObserver=G})},trT=function(f,S){tx(f);
f.lastMeasurementRequest=f.timeProvider.setTimeout(function(){var B;return void((B=f.measurementRequestObserver)==null?void 0:B.next())},S)},tx=function(f){f.lastMeasurementRequest!==null&&f.timeProvider.clearTimeout(f.lastMeasurementRequest);
f.lastMeasurementRequest=null};
MrA.prototype.dispose=function(){tx(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var Mmg=function(){};var TjT=function(f,S){this.context=f;this.strategies=S};
_.q(TjT,Mmg);TjT.prototype.buildGeometrySource=function(f,S){var B=this.strategies.map(function(b){return b.buildGeometrySource(f,S)}),G=cx1(B.map(function(b){return b.geometrySource})),g=G.capturedErrors.pipe(Zim());
return{geometrySource:G.chain.pipe(bB(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:g,strategyErrors:G.capturedErrors}].concat(_.$d(B.map(function(b){return b.additionalOutputs}))))}};
var Zim=function(){return as(function(f,S){S instanceof Hd?f.push(S.measurementStrategyFailureReason):f.push(-1);return f},[])};var VIN=function(f,S){this.context=f;this.poller=S};
_.q(VIN,Mmg);VIN.prototype.buildGeometrySource=function(f,S){var B=lM1(oAM(this.context,this.poller),hQK(this.context,S.requestSource));return{geometrySource:WaV(f.measurableCreative.pipe(B),S.inApp),additionalOutputs:{}}};var FoK=function(f,S,B){B=B===void 0?vvs(f,S):B;this.context=f;this.intersectionObserverStrategy=B};
_.q(FoK,Mmg);FoK.prototype.buildGeometrySource=function(f,S){var B=this.intersectionObserverStrategy(S.useV2);return{geometrySource:WaV(f.measurableCreative.pipe(B,KaQ(this.context)),S.inApp),additionalOutputs:{}}};var tmj=function(f,S,B){var G=G===void 0?Symbol():G;this.element=f;this.immediateUrls=S;this.timeOnScreenUrls=B;this.symbol=G};var ZM=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),eeT=Object.freeze([1,.75,ZM.exposureThreshold,ZM.largeAdExposureThreshold,0]);var i6G=function(f,S){S=S===void 0?36E5:S;var B=B===void 0?!0:B;this.creatives=new gu;this.elementsToUnregister=new gu;this.elementMap=new Map;var G=new a$(window,null);G.beaconFactory=new Vm(G,new pb(G));heT(G,this.creatives,this.elementsToUnregister,f,S,B).subscribe()},$U1=function(f,S,B,G){if(!f.elementMap.has(S)){var g=new no(S);
f.elementMap.set(S,g);f.creatives.next(new tmj(g,B,G))}},qSV=function(f,S){f.elementsToUnregister.next(S);
var B=f.elementMap.get(S);B!==void 0&&(B.release(),f.elementMap.delete(S))};var moT=function(f){var S=f.url;f=f.uaDataValues;this.JSC$7521_url_=S;this.uaDataValues_=f;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var B=/[?&]([^&=]+)=([^&]*)/g;f=B.exec(S);)this.urlParamValues_[f[1]]=f[2]},z71=function(f){f=f.uaDataValues_;
if(!f)return"";var S=Wd("uap",f.platform)+Wd("uapv",f.platformVersion)+Wd("uafv",f.uaFullVersion)+Wd("uaa",f.architecture)+Wd("uam",f.model)+Wd("uab",f.bitness);f.fullVersionList&&(S+="&uafvl="+encodeURIComponent(f.fullVersionList.map(function(B){return encodeURIComponent(B.brand)+";"+encodeURIComponent(B.version)}).join("|")));
f.wow64!=null&&(S+="&uaw="+Number(f.wow64));return S.slice(1)};var aF=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(aF,_.s7);aF.prototype.getId=function(){return _.n4(this,1)};
aF.prototype.setId=function(f){return _.oQ(this,1,f)};var ym=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(ym,_.s7);ym.prototype.getSeconds=function(){return L4(this,1)};
ym.prototype.setSeconds=function(f){return _.$g(this,1,x$(f),"0")};_.MV=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(_.MV,_.s7);_.MV.prototype.getSeconds=function(){return L4(this,1)};
_.MV.prototype.setSeconds=function(f){return _.$g(this,1,x$(f),"0")};
_.uLX=function(f){var S=Number(DI(f,1));f=_.Bv(f,2);return new Date(S*1E3+f/1E6)};var Wq=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(Wq,_.s7);Wq.prototype.getUrl=function(){return _.n4(this,1)};
Wq.prototype.setUrl=function(f){return _.oQ(this,1,f)};
Wq.prototype.getHeight=function(){return _.Bv(this,2)};
Wq.prototype.getWidth=function(){return _.Bv(this,3)};var cq=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(cq,_.s7);cq.prototype.getAspectRatio=function(){return kW(this,1)};
cq.prototype.setAspectRatio=function(f){return _.$g(this,1,_.zn(f),0)};
cq.prototype.getDuration=function(){return _.BU(this,ym,2)};var av7=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(av7,_.s7);var y1L=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(y1L,_.s7);var W6i=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(W6i,_.s7);var c1g=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(c1g,_.s7);var lv8=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(lv8,_.s7);var fZo=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(fZo,_.s7);var o$m=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(o$m,_.s7);var Sum=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(Sum,_.s7);var Be6=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(Be6,_.s7);var l4=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(l4,_.s7);var f8=[2,4,5,6,7];var Gn8=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(Gn8,_.s7);var OH=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(OH,_.s7);_.e=OH.prototype;_.e.getId=function(){return _.BU(this,aF,1)};
_.e.setId=function(f){return _.SZ(this,1,f)};
_.e.getName=function(){return _.n4(this,2)};
_.e.setDescription=function(f){return _.oQ(this,3,f)};
_.e.getUrl=function(){return _.n4(this,8)};
_.e.setUrl=function(f){return _.oQ(this,8,f)};
var ot=function(f){return _.oK(f,Wq,10,_.SI())};
OH.prototype.getOwner=function(f){var S=_.dI(this,40,_.CY,3,!0);s8(S,f);return S[f]};
OH.prototype.getVersion=function(){return L4(this,45)};
var SA=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(SA,_.s7);_.g$6=[0,phM,N4G];_.eBi=[0,phM,N4G];var bYN=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(bYN,_.s7);var Gh=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(Gh,_.s7);Gh.prototype.getStatus=function(){return _.sH(this,1)};
Gh.prototype.removeItem=function(f){return g7K(this,2,f)};var m2N=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(m2N,_.s7);m2N.prototype.getName=function(){return _.n4(this,8)};var gX=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(gX,_.s7);gX.prototype.getCommand=function(){return _.sH(this,1)};
gX.prototype.getSource=function(){return _.BU(this,m2N,2)};
gX.prototype.setVisible=function(f){return _.Yc(this,5,f)};
gX.prototype.removeItem=function(f){return g7K(this,7,f)};var zBi=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(zBi,_.s7);zBi.prototype.getCommand=function(){return _.sH(this,1)};
zBi.prototype.removeItem=function(f){return g7K(this,4,f)};
var RBo=_.fC(zBi);var eA=function(f,S,B){B=B===void 0?Error():B;var G=Error.call(this);this.message=G.message;"stack"in G&&(this.stack=G.stack);this.code=f;S+=":";B instanceof Error?(this.message=S+B.message,this.stack=B.stack||""):(this.message=S+String(B),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.q(eA,Error);_.qR=function(){this.JSC$7579_disposed_=this.JSC$7579_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.qR.prototype.JSC$7579_disposed_=!1;_.qR.prototype.isDisposed=function(){return this.JSC$7579_disposed_};
_.qR.prototype.dispose=function(){this.JSC$7579_disposed_||(this.JSC$7579_disposed_=!0,this.disposeInternal())};
_.qR.prototype[Symbol.dispose]=function(){this.dispose()};
_.ha=function(f,S){f.addOnDisposeCallback(_.vK(_.cd,S))};
_.qR.prototype.addOnDisposeCallback=function(f,S){this.JSC$7579_disposed_?S!==void 0?f.call(S):f():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),S&&(f=f.bind(S)),this.onDisposeCallbacks_.push(f))};
_.qR.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var bX=function(f){_.qR.call(this);this.wpc=f};
_.q(bX,_.qR);bX.prototype.xiY=function(){return this.wpc.f()};
bX.prototype.ziy=function(f){return this.wpc.c(f)};
bX.prototype.cV=function(f){return this.wpc.m(jKN(f))};
bX.prototype.tQ=function(f){return this.wpc.mws(jKN(f))};
var fS=function(f){_.qR.call(this);var S=this;this.oy=f;this.irT="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.hu7=void 0;this.rO9=this.oy.p;this.rAb=this.z6F.bind(this);this.addOnDisposeCallback(function(){return void XOo(S)})};
_.q(fS,_.qR);var wO7=function(f){var S;return _.R(function(B){if(B.nextAddress==1){if(!f.oy.wpc)throw new eA(30,"NWA");return f.eoD?B.return(f.eoD):_.h(B,f.oy.wpc(),2)}S=B.yieldResult;f.eoD=new bX(S);return B.return(f.eoD)})};
fS.prototype.snapshot=function(f){return this.oy.s(Object.assign({},f.rU&&{c:f.rU},f.qU4&&{s:f.qU4},f.m7y!==void 0&&{p:f.m7y}))};
fS.prototype.z6F=function(f){this.oy.e(f)};
fS.prototype.qXJ=function(f,S){return this.oy.c(f,S,!1)};
var XOo=function(f){f.hu7!==void 0&&(f.irT.forEach(function(S){var B;(B=f.hu7)==null||B.removeEventListener(S,f.rAb)}),f.hu7=void 0)};
fS.prototype.jKD=function(){return this.oy.l()};var hB6,m5=function(){_.qR.apply(this,arguments);this.cKw=1;this[hB6]=this.dispose};
_.q(m5,_.qR);m5.prototype.share=function(){if(this.isDisposed())throw Error("ua");this.cKw++;return this};
m5.prototype.dispose=function(){--this.cKw||_.qR.prototype.dispose.call(this)};
hB6=Symbol.dispose;var Teo=function(f){this.uBO=f;f.addNewEventMetric("/client_streamz/bg/frs",_.eI("mk"))};
Teo.prototype.record=function(f,S){this.uBO.record("/client_streamz/bg/frs",f,S)};
var Fuj=function(f){this.m7z=f;f.addNewEventMetric("/client_streamz/bg/wrl",_.eI("mn"),gj("ac"),gj("sc"),_.eI("rk"),_.eI("mk"))};
Fuj.prototype.record=function(f,S,B,G,g,b){this.m7z.record("/client_streamz/bg/wrl",f,S,B,G,g,b)};
var V2m=function(f){this.noq=f;f.addNewCounter("/client_streamz/bg/ec",_.eI("en"),_.eI("mk"))};
V2m.prototype.increment=function(f,S){this.noq.JSC$7832_incrementCounter("/client_streamz/bg/ec",f,S)};
var JX6=function(f){this.c0b=f;f.addNewEventMetric("/client_streamz/bg/el",_.eI("en"),_.eI("mk"))};
JX6.prototype.record=function(f,S,B){this.c0b.record("/client_streamz/bg/el",f,S,B)};
var Pz6=function(f){this.r0K=f;f.addNewCounter("/client_streamz/bg/cec",gj("ec"),_.eI("mk"))};
Pz6.prototype.increment=function(f,S){this.r0K.JSC$7832_incrementCounter("/client_streamz/bg/cec",f,S)};
var v$L=function(f){this.j26=f;f.addNewCounter("/client_streamz/bg/po/csc",gj("cs"),_.eI("mk"))};
v$L.prototype.increment=function(f,S){this.j26.JSC$7832_incrementCounter("/client_streamz/bg/po/csc",f,S)};
var Ku$=function(f){this.qoK=f;f.addNewCounter("/client_streamz/bg/po/ctav",_.eI("av"),_.eI("mk"))};
Ku$.prototype.increment=function(f,S){this.qoK.JSC$7832_incrementCounter("/client_streamz/bg/po/ctav",f,S)};
var d2L=function(f){this.voI=f;f.addNewCounter("/client_streamz/bg/po/cwsc",_.eI("su"),_.eI("mk"))};
d2L.prototype.increment=function(f,S){this.voI.JSC$7832_incrementCounter("/client_streamz/bg/po/cwsc",f,S)};var Sv9=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(Sv9,_.s7);var op1=function(f,S){return _.qk(f,3,S,WxG)};var iY7=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(iY7,_.s7);var HYm=[1,2,3];var qu$=[0,HYm,_.aAV,MXx,uOQ];var $21=[0,_.c_,[0,IAG,_.uh]];var Qoj=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(Qoj,_.s7);var YuL=[1,2,3];var rXg=[0,YuL,Ad1,UYG,_.lh,$21];var jo1=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(jo1,_.s7);var OY$=[0,_.c_,qu$,rXg];var x28=[0,_.W_];var E$j=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(E$j,_.s7);var Luv=[0,_.W_,-1,_.y9];var knN=[0,_.W_,-1,_.am,_.y9];var n$j=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(n$j,_.s7);var soo=[1,2,3];var D27=[0,soo,_.lh,Luv,_.lh,knN,_.lh,x28];var IZo=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(IZo,_.s7);IZo.prototype.JSC$7652_serializeBinary=ogQ([0,_.W_,D27,ydj,_.c_,OY$,ZZW,tX1]);var U2N=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(U2N,_.s7);var AXm=function(f){var S=new IZo;S=_.Jx(S,1,f.JSC$7768_metricName);var B=Cz7(f);S=_.qk(S,3,B,_.su);B=[];for(var G=[],g=_.m(f.cellMap.keys()),b=g.next();!b.done;b=g.next())G.push(b.value.split(","));for(g=0;g<G.length;g++){b=G[g];for(var z=f.cellType,X=f.getCells(b)||[],w=[],F=0;F<X.length;F++){var V=X[F],J=V&&V.cellValue;V=new Qoj;switch(z){case 3:J=Number(J);Number.isFinite(J)&&FX(V,1,YuL,x$(J));break;case 2:FX(V,2,YuL,_.zn(Number(J)))}w.push(V)}z=w;for(X=0;X<z.length;X++){w=z[X];F=new jo1;w=_.SZ(F,
2,w);F=[];V=pON(f);for(J=0;J<V.length;J++){var P=V[J],d=b[J],Q=new iY7;switch(P){case 3:FX(Q,1,HYm,DZ(String(d)));break;case 2:P=Number(d);Number.isFinite(P)&&FX(Q,2,HYm,_.HO(P));break;case 1:FX(Q,3,HYm,uGj(d==="true"))}F.push(Q)}jT(w,1,F);B.push(w)}}jT(S,4,B);return S};var NeX=function(f){if(!f)return"";if(/^about:(?:blank|srcdoc)$/.test(f))return window.origin||"";f.indexOf("blob:")===0&&(f=f.substring(5));f=f.split("#")[0].split("?")[0];f=f.toLowerCase();f.indexOf("//")==0&&(f=window.location.protocol+f);/^[\w\-]*:\/\//.test(f)||(f=window.location.href);var S=f.substring(f.indexOf("://")+3),B=S.indexOf("/");B!=-1&&(S=S.substring(0,B));B=f.substring(0,f.indexOf("://"));if(!B)throw Error("va`"+f);if(B!=="http"&&B!=="https"&&B!=="chrome-extension"&&B!=="moz-extension"&&
B!=="file"&&B!=="android-app"&&B!=="chrome-search"&&B!=="chrome-untrusted"&&B!=="chrome"&&B!=="app"&&B!=="devtools")throw Error("wa`"+B);f="";var G=S.indexOf(":");if(G!=-1){var g=S.substring(G+1);S=S.substring(0,G);if(B==="http"&&g!=="80"||B==="https"&&g!=="443")f=":"+g}return B+"://"+S+f};var ZYg=function(f,S,B){var G=String(_.S1.location.href);return G&&f&&S?[S,M26(NeX(G),f,B||null)].join(" "):null},M26=function(f,S,B){var G=[],g=[];
if((Array.isArray(B)?2:1)==1)return g=[S,f],_.AA(G,function(X){g.push(X)}),t2L(g.join(" "));
var b=[],z=[];_.AA(B,function(X){z.push(X.key);b.push(X.value)});
B=Math.floor((new Date).getTime()/1E3);g=b.length==0?[B,S,f]:[b.join(":"),B,S,f];_.AA(G,function(X){g.push(X)});
f=t2L(g.join(" "));f=[B,f];z.length==0||f.push(z.join(""));return f.join("_")},t2L=function(f){var S=DR9();
S.update(f);return S.digestString().toLowerCase()};var zh=function(f){this.JSC$7663_document_=f||{cookie:""}},uuo;
_.e=zh.prototype;_.e.isEnabled=function(){if(!_.S1.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};
_.e.set=function(f,S,B){var G=!1;if(typeof B==="object"){var g=B.sameSite;G=B.secure||!1;var b=B.domain||void 0;var z=B.path||void 0;var X=B.maxAge}if(/[;=\s]/.test(f))throw Error("xa`"+f);if(/[;\r\n]/.test(S))throw Error("ya`"+S);X===void 0&&(X=-1);B=b?";domain="+b:"";z=z?";path="+z:"";G=G?";secure":"";X=X<0?"":X==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+X*1E3)).toUTCString();this.JSC$7663_document_.cookie=f+"="+S+B+z+X+G+(g!=null?";samesite="+g:"")};
_.e.get=function(f,S){for(var B=f+"=",G=(this.JSC$7663_document_.cookie||"").split(";"),g=0,b;g<G.length;g++){b=hs(G[g]);if(b.lastIndexOf(B,0)==0)return b.slice(B.length);if(b==f)return""}return S};
_.e.remove=function(f,S,B){var G=this.containsKey(f);this.set(f,"",{maxAge:0,path:S,domain:B});return G};
_.e.getKeys=function(){return uuo(this).keys};
_.e.getValues=function(){return uuo(this).values};
_.e.isEmpty=function(){return!this.JSC$7663_document_.cookie};
_.e.getCount=function(){return this.JSC$7663_document_.cookie?(this.JSC$7663_document_.cookie||"").split(";").length:0};
_.e.containsKey=function(f){return this.get(f)!==void 0};
_.e.containsValue=function(f){for(var S=uuo(this).values,B=0;B<S.length;B++)if(S[B]==f)return!0;return!1};
_.e.clear=function(){for(var f=uuo(this).keys,S=f.length-1;S>=0;S--)this.remove(f[S])};
uuo=function(f){f=(f.JSC$7663_document_.cookie||"").split(";");for(var S=[],B=[],G,g,b=0;b<f.length;b++)g=hs(f[b]),G=g.indexOf("="),G==-1?(S.push(""),B.push(g)):(S.push(g.substring(0,G)),B.push(g.substring(G+1)));return{keys:S,values:B}};
_.VP=new zh(typeof document=="undefined"?null:document);var tAT,aZm;tAT=function(){var f=_.S1.__SAPISID||_.S1.__APISID||_.S1.__3PSAPISID||_.S1.__1PSAPISID||_.S1.__OVERRIDE_SID;if(f)return!0;typeof document!=="undefined"&&(f=new zh(document),f=f.get("SAPISID")||f.get("APISID")||f.get("__Secure-3PAPISID")||f.get("__Secure-1PAPISID"));return!!f};
aZm=function(f,S,B,G){(f=_.S1[f])||typeof document==="undefined"||(f=(new zh(document)).get(S));return f?ZYg(f,B,G):null};
_.DzN=function(f){var S=NeX(_.S1==null?void 0:_.S1.location.href),B=[];if(tAT()){S=S.indexOf("https:")==0||S.indexOf("chrome-extension:")==0||S.indexOf("chrome-untrusted://new-tab-page")==0||S.indexOf("moz-extension:")==0;var G=S?_.S1.__SAPISID:_.S1.__APISID;G||typeof document==="undefined"||(G=new zh(document),G=G.get(S?"SAPISID":"APISID")||G.get("__Secure-3PAPISID"));(G=G?ZYg(G,S?"SAPISIDHASH":"APISIDHASH",f):null)&&B.push(G);S&&((S=aZm("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",f))&&B.push(S),
(f=aZm("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",f))&&B.push(f))}return B.length==0?null:B.join(" ")};var yXj=function(){this.minSize=1024};
yXj.prototype.compress=function(f){var S,B,G,g;return _.R(function(b){switch(b.nextAddress){case 1:return S=new CompressionStream("gzip"),B=(new Response(S.readable)).arrayBuffer(),G=S.writable.getWriter(),_.h(b,G.write((new TextEncoder).encode(f)),2);case 2:return _.h(b,G.close(),3);case 3:return g=Uint8Array,_.h(b,B,4);case 4:return b.return(new g(b.yieldResult))}})};
yXj.prototype.isSupported=function(f){return f<this.minSize?!1:typeof CompressionStream!=="undefined"};var Wu7=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(Wu7,_.s7);var Rt=function(f,S){this.intervalMs=f;this.callback=S;this.enabled=!1;this.nowFn=function(){return _.zd()};
this.lastTimeMs=this.nowFn()};
Rt.prototype.setInterval=function(f){this.intervalMs=f;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
Rt.prototype.start=function(){var f=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){f.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
Rt.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
Rt.prototype.tick=function(){var f=this;if(this.enabled){var S=Math.max(this.nowFn()-this.lastTimeMs,0);S<this.intervalMs*.8?this.timer=setTimeout(function(){f.tick()},this.intervalMs-S):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var cXg=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(cXg,_.s7);var lZ1=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(lZ1,_.s7);var fg7=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(fg7,_.s7);fg7.prototype.getTransmissionType=function(){return _.sH(this,1)};var pvA=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(pvA,_.s7);pvA.prototype.getVersion=function(){return _.n4(this,2)};var X7=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(X7,_.s7);var C5W=function(f){jT(mo,1,f)};
X7.prototype.getModel=function(){return _.n4(this,6)};
var ogX=_.fC(X7);var S7$=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(S7$,_.s7);var ILA=["platform","platformVersion","architecture","model","uaFullVersion"],mo=new X7,UR9=null;var wX=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(wX,_.s7);var BI$=function(f){return _.GV(f,1,1)};var GXm=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f,4)};
_.q(GXm,_.s7);_.hq=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f,36)};
_.q(_.hq,_.s7);_.hq.prototype.getExperimentIds=function(){return _.BU(this,Wu7,16)};var ggv=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f,19)};
_.q(ggv,_.s7);ggv.prototype.setLogSource=function(f){return _.GV(this,2,f)};
ggv.prototype.setScheduler=function(f){return _.GV(this,10,f)};var bXi=function(f,S){this.isServiceWorkerScope=S=S===void 0?!1:S;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new ggv;Number.isInteger(f)&&this.logRequest.setLogSource(f);S||(this.locale=document.documentElement.getAttribute("lang"));eDo(this,new wX)};
bXi.prototype.setLogSource=function(f){this.logRequest.setLogSource(f);return this};
var eDo=function(f,S){_.SZ(f.logRequest,1,S);_.sH(S,1)||BI$(S);f.isServiceWorkerScope||(S=Th(f),_.n4(S,5)||_.Jx(S,5,f.locale));f.uach&&(S=Th(f),_.BU(S,X7,9)||_.SZ(S,9,f.uach))},mkL=function(f,S){f.transmissionType=S},zD7=function(f){var S=S===void 0?ILA:S;
var B=f.isServiceWorkerScope?void 0:jr();B?AaQ(B,S).then(function(G){f.uach=ogX(G!=null?G:"[]");G=Th(f);_.SZ(G,9,f.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},Th=function(f){var S=_.BU(f.logRequest,wX,1);
S||(S=new wX,eDo(f,S));f=S;S=_.BU(f,S7$,11);S||(S=new S7$,_.SZ(f,11,S));return S};
bXi.prototype.build=function(f,S,B,G,g,b){S=S===void 0?0:S;B=B===void 0?0:B;G=G===void 0?null:G;g=g===void 0?0:g;b=b===void 0?0:b;if(!this.isServiceWorkerScope){var z=Th(this);var X=new fg7;X=_.GV(X,1,this.transmissionType);X=_.b5(X,2,this.isFinal);B=_.C4(X,3,B>0?B:void 0);B=_.C4(B,4,g>0?g:void 0);B=_.C4(B,5,b>0?b:void 0);g=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;b=g[_.dN]|0;B=xX(B,b)?B:zX(B,g,b)?mz(B,g):new B.constructor(bd(g,b,!0));_.SZ(z,10,B)}z=this.logRequest.clone();B=Date.now().toString();
z=_.gZ(z,4,x$(B));f=f.slice();f=jT(z,3,f);G&&(z=new cXg,G=_.C4(z,13,G),z=new lZ1,G=_.SZ(z,2,G),z=new GXm,G=_.SZ(z,1,G),G=_.GV(G,2,9),_.SZ(f,18,G));S&&_.is(f,14,S);return f};zS.prototype.currBackoffCount_=0;zS.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
zS.prototype.getValue=function(){return this.currValue_};
var RD$=function(f){f.currBaseValue_=Math.min(f.maxValue_,f.currBaseValue_*f.backoffFactor_);f.currValue_=Math.min(f.maxValue_,f.currBaseValue_+(f.randomFactor_?Math.round(f.randomFactor_*(Math.random()-.5)*2*f.currBaseValue_):0));f.currBackoffCount_++};var o1N=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f,8)};
_.q(o1N,_.s7);var XQm=_.fC(o1N);var SOQ=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(SOQ,_.s7);var F7;F7=new B2N;var VD=function(f){_.qR.call(this);var S=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$7741_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$7741_sendBeaconApiEnabled=!1;this.logSource=f.logSource;this.getAuthHeaderValue=
f.getAuthHeaderValue||function(){};
this.logRequestBuilder=new bXi(f.logSource,f.isServiceWorkerScope);this.network=f.network||null;this.productID=f.productID||null;this.bufferSize=1E3;this.clearcutUrl=f.urlOverride||null;this.sessionIndex=f.sessionIndex||null;this.disableAutomaticFlush=f.disableAutomaticFlush||!1;this.withCredentials=!f.disableWithCredentials;this.isServiceWorkerScope=f.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!jr()&&!!jr().navigator&&jr().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(wQN())).searchParams&&!!(new URL(wQN())).searchParams.set;var B=BI$(new wX);eDo(this.logRequestBuilder,B);this.flushBackoff=new zS(1E4,3E5,.1);f=hDv(this,f.backgroundJobDeferrer);this.JSC$7741_flushTimer=new Rt(this.flushBackoff.getValue(),f);this.backupTimer=new Rt(6E5,f);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){TIL(S);
var G;(G=S.metalogService)==null||G.flush()}}),document.addEventListener("pagehide",function(){TIL(S);
var G;(G=S.metalogService)==null||G.flush()}))};
_.q(VD,_.qR);var hDv=function(f,S){return f.isBrowserSupported?S?function(){S().then(function(){f.flush()})}:function(){f.flush()}:function(){}};
VD.prototype.disposeInternal=function(){TIL(this);this.JSC$7741_flushTimer.stop();this.backupTimer.stop();_.qR.prototype.disposeInternal.call(this)};
var FzN=function(f){f.clearcutUrl||(f.clearcutUrl=wQN());try{return(new URL(f.clearcutUrl)).toString()}catch(S){return(new URL(f.clearcutUrl,jr().location.origin)).toString()}};
VD.prototype.dispatch=function(f){if(f instanceof _.hq)this.log(f);else try{var S=new _.hq,B=f.serialize();var G=_.Jx(S,8,B);this.log(G)}catch(g){Jq(this,4,1)}};
var Jq=function(f,S,B){f.metalogService&&f.metalogService.increment(S,B)};
VD.prototype.log=function(f){Jq(this,2,1);if(this.isBrowserSupported){f=f.clone();var S=this.sequencePosition++;f=_.is(f,21,S);this.componentId&&_.Jx(f,26,this.componentId);S=f;if(hjM(_.H_(S,1))==null){var B=Date.now();B=Number.isFinite(B)?B.toString():"0";_.gZ(S,1,x$(B))}_.w7W(_.H_(S,15))!=null||_.is(S,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(B=this.experimentIds.clone(),_.SZ(S,16,B));Jq(this,1,1);S=this.pendingEvents.length-this.bufferSize+1;S>0&&(this.pendingEvents.splice(0,S),
this.numLogsDroppedSinceLastFlush+=S,Jq(this,3,S));this.pendingEvents.push(f);this.disableAutomaticFlush||this.JSC$7741_flushTimer.enabled||this.JSC$7741_flushTimer.start()}};
VD.prototype.flush=function(f,S){var B=this;if(this.pendingEvents.length===0)f&&f();else if(this.JSC$7741_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,V0m(this);else{var G=Date.now();if(this.noFlushUntilMs>G&&this.startWaitingMs<G)S&&S("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?mkL(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var g=this.pendingEvents.length,
b=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),z=this.getAuthHeaderValue();if(z&&this.lastFailedAuth===z)S&&S("stale-auth-token");else{this.pendingEvents=[];this.JSC$7741_flushTimer.enabled&&this.JSC$7741_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;G=b.serialize();var X;this.JSC$7741_compressor&&this.JSC$7741_compressor.isSupported(G.length)&&
(X=this.JSC$7741_compressor.compress(G));var w=Jr8(this,G,z),F=function(P){B.flushBackoff.reset();B.JSC$7741_flushTimer.setInterval(B.flushBackoff.getValue());if(P){var d=null;try{var Q=JSON.stringify(JSON.parse(P.replace(")]}'\n","")));d=XQm(Q)}catch(x){}d&&(P=Number(L4(d,1,_.Zv("-1"))),P>0&&(B.startWaitingMs=Date.now(),B.noFlushUntilMs=B.startWaitingMs+P),xNM(d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,F7.fieldIndex),jgG(d,F7.fieldIndex),d=F7.ctor?F7.getExtensionFn(d,F7.ctor,F7.fieldIndex,
F7.JSC$6921_hasMessageId):F7.getExtensionFn(d,F7.fieldIndex,null,F7.JSC$6921_hasMessageId),d=d===null?void 0:d)&&(d=_.Bv(d,1,-1),d!==-1&&(B.flushBackoff=new zS(d<1?1:d,3E5,.1),B.JSC$7741_flushTimer.setInterval(B.flushBackoff.getValue())))}f&&f();B.numRetriesSinceLastSuccessfulFlush=0},V=function(P,d){var Q=_.oK(b,_.hq,3,_.SI());
var x=Number(L4(b,14));RD$(B.flushBackoff);B.JSC$7741_flushTimer.setInterval(B.flushBackoff.getValue());P===401&&z&&(B.lastFailedAuth=z);x&&(B.numLogsDroppedSinceLastFlush+=x);d===void 0&&(d=B.isRetryable(P));d&&(B.pendingEvents=Q.concat(B.pendingEvents),B.disableAutomaticFlush||B.JSC$7741_flushTimer.enabled||B.JSC$7741_flushTimer.start());Jq(B,7,1);S&&S("net-send-failed",P);++B.numRetriesSinceLastSuccessfulFlush},J=function(){B.network&&B.network.send(w,F,V)};
X?X.then(function(P){Jq(B,5,g);w.requestHeaders["Content-Encoding"]="gzip";w.requestHeaders["Content-Type"]="application/binary";w.body=P;w.bodyType=2;J()},function(){Jq(B,6,g);
J()}):J()}}}};
var Jr8=function(f,S,B){B=B===void 0?null:B;var G=G===void 0?f.withCredentials:G;var g={},b=new URL(FzN(f));B&&(g.Authorization=B);f.sessionIndex&&(g["X-Goog-AuthUser"]=f.sessionIndex,b.searchParams.set("authuser",f.sessionIndex));f.pageId&&(Object.defineProperty(g,"X-Goog-PageId",{value:f.pageId}),b.searchParams.set("pageId",f.pageId));return{url:b.toString(),body:S,bodyType:1,requestHeaders:g,requestType:"POST",withCredentials:G,timeoutMillis:f.timeoutMillis}},TIL=function(f){f.logRequestBuilder.isFinal=
!0;
f.flush();f.logRequestBuilder.isFinal=!1},V0m=function(f){Pd7(f,function(S,B){S=new URL(S);
S.searchParams.set("format","json");var G=!1;try{G=jr().navigator.sendBeacon(S.toString(),B.serialize())}catch(g){}G||(f.isSendBeaconSupported=!1);return G})},Pd7=function(f,S){if(f.pendingEvents.length!==0){var B=new URL(FzN(f));
B.searchParams.delete("format");var G=f.getAuthHeaderValue();G&&B.searchParams.set("auth",G);B.searchParams.set("authuser",f.sessionIndex||"0");for(G=0;G<10&&f.pendingEvents.length;++G){var g=f.pendingEvents.slice(0,32),b=f.logRequestBuilder.build(g,f.numLogsDroppedSinceLastFlush,f.numRetriesSinceLastSuccessfulFlush,f.productID,f.persistedLogRecoveredCount,f.persistedLogExpiredCount);if(!S(B.toString(),b)){++f.numRetriesSinceLastSuccessfulFlush;break}f.numLogsDroppedSinceLastFlush=0;f.numRetriesSinceLastSuccessfulFlush=
0;f.persistedLogRecoveredCount=0;f.persistedLogExpiredCount=0;f.pendingEvents=f.pendingEvents.slice(g.length)}f.JSC$7741_flushTimer.enabled&&f.JSC$7741_flushTimer.stop()}};
VD.prototype.isRetryable=function(f){return 500<=f&&f<600||f===401||f===0};
var wQN=function(){return"https://play.google.com/log?format=json&hasfast=true"};var vg8=function(){this.abortSupported=typeof AbortController!=="undefined"};
vg8.prototype.send=function(f,S,B){var G=this,g,b,z,X,w,F,V,J,P,d;return _.R(function(Q){switch(Q.nextAddress){case 1:return b=(g=G.abortSupported?new AbortController:void 0)?setTimeout(function(){g.abort()},f.timeoutMillis):void 0,_.zT(Q,2,3),z=Object.assign({},{method:f.requestType,
headers:Object.assign({},f.requestHeaders)},f.body&&{body:f.body},f.withCredentials&&{credentials:"include"},{signal:f.timeoutMillis&&g?g.signal:null}),_.h(Q,fetch(f.url,z),5);case 5:X=Q.yieldResult;if(X.status!==200){(w=B)==null||w(X.status);Q.jumpTo(3);break}if((F=S)==null){Q.jumpTo(7);break}return _.h(Q,X.text(),8);case 8:F(Q.yieldResult);case 7:case 3:_.Rs(Q);clearTimeout(b);_.wz(Q,0);break;case 2:V=_.hm(Q);switch((J=V)==null?void 0:J.name){case "AbortError":(P=B)==null||P(408);break;default:(d=
B)==null||d(400)}Q.jumpTo(3)}})};
vg8.prototype.getTransmissionType=function(){return 4};_.wj=function(f,S){S=S===void 0?"0":S;_.qR.call(this);this.logSource=f;this.sessionIndex=S;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$7759_clearExperimentIds=this.productID=null;this.JSC$7759_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.q(_.wj,_.qR);var caM=function(f,S){f.buildLabel=S;return f},WoG=function(f,S){f.network=S;
return f},fxG=function(f,S){f.JSC$7759_clearExperimentIds=S},yaN=function(f){f.JSC$7759_sendBeaconApiEnabled=!0;
return f};
_.wj.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.wj.prototype.build=function(){this.network||(this.network=new vg8);var f=new VD({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.DzN,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.ha(this,f);if(this.buildLabel){var S=this.buildLabel,B=
Th(f.logRequestBuilder);_.Jx(B,7,S)}f.JSC$7741_compressor=new yXj;this.componentId&&(f.componentId=this.componentId);this.productID&&(f.productID=this.productID);this.pageId&&(f.pageId=this.pageId);this.JSC$7759_clearExperimentIds&&((B=this.JSC$7759_clearExperimentIds)?(f.experimentIds||(f.experimentIds=new Wu7),S=f.experimentIds,B=B.serialize(),_.Jx(S,4,B)):f.experimentIds&&_.gZ(f.experimentIds,4));this.JSC$7759_sendBeaconApiEnabled&&(f.JSC$7741_sendBeaconApiEnabled=f.isSendBeaconSupported);zD7(f.logRequestBuilder);
this.bufferSize&&(f.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(f);return f};var BA1=function(f,S,B,G,g,b,z){f=f===void 0?-1:f;S=S===void 0?"":S;B=B===void 0?"":B;G=G===void 0?!1:G;g=g===void 0?"":g;_.qR.call(this);this.logSource=f;this.componentId=S;b?S=b:(f=new _.wj(f,"0"),f.componentId=S,_.ha(this,f),B!==""&&(f.destinationUrl=B),G&&(f.serviceWorkerScopeEnabled=!0),g&&caM(f,g),z&&WoG(f,z),S=f.build());this.JSC$7763_transport=S};
_.q(BA1,_.qR);BA1.prototype.flush=function(f){f=f||[];if(f.length){for(var S=new U2N,B=[],G=0;G<f.length;G++){var g=f[G],b=AXm(g);B.push(b);g.clear()}jT(S,1,B);this.JSC$7763_transport.dispatch(S);this.JSC$7763_transport.flush()}};var Kzg=function(f){this.cellValue=f};var PE=function(f,S,B){this.JSC$7768_metricName=f;this.cellType=S;this.fields=B||[];this.cellMap=new Map},pON=function(f){return f.fields.map(function(S){return S.fieldType})},Cz7=function(f){return f.fields.map(function(S){return S.fieldName})};
_.e=PE.prototype;_.e.addCell=function(f){var S=_.qb.apply(1,arguments),B=this.getCells(S);B?B.push(new Kzg(f)):this.JSC$7768_setCell(f,S)};
_.e.JSC$7768_setCell=function(f){var S=this.JSC$7768_getKey(_.qb.apply(1,arguments));this.cellMap.set(S,[new Kzg(f)])};
_.e.getCells=function(){var f=this.JSC$7768_getKey(_.qb.apply(0,arguments));return this.cellMap.has(f)?this.cellMap.get(f):void 0};
_.e.getCell=function(){var f=this.getCells(_.qb.apply(0,arguments));return f&&f.length?f[0]:void 0};
_.e.clear=function(){this.cellMap.clear()};
_.e.JSC$7768_getKey=function(){var f=_.qb.apply(0,arguments);return f?f.join(","):"key"};var dki=function(f,S){PE.call(this,f,3,S)};
_.q(dki,PE);dki.prototype.JSC$7771_incrementCounterBy=function(f){var S=_.qb.apply(1,arguments),B=0,G=this.getCell(S);G&&(B=G.cellValue);this.JSC$7768_setCell(B+f,S)};var iX6=function(f,S){PE.call(this,f,2,S)};
_.q(iX6,PE);iX6.prototype.record=function(f){this.addCell(f,_.qb.apply(1,arguments))};_.vE=function(f){this.id=f};
_.vE.prototype.toString=function(){return this.id};_.K8=function(f,S){this.type=f instanceof _.vE?String(f):f;this.currentTarget=this.target=S;this.defaultPrevented=this.propagationStopped_=!1};
_.K8.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.K8.prototype.preventDefault=function(){this.defaultPrevented=!0};_.dX=function(f,S){_.K8.call(this,f?f.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;f&&this.init(f,S)};
_.Rm(_.dX,_.K8);
_.dX.prototype.init=function(f,S){var B=this.type=f.type,G=f.changedTouches&&f.changedTouches.length?f.changedTouches[0]:null;this.target=f.target||f.srcElement;this.currentTarget=S;S=f.relatedTarget;S||(B=="mouseover"?S=f.fromElement:B=="mouseout"&&(S=f.toElement));this.relatedTarget=S;G?(this.clientX=G.clientX!==void 0?G.clientX:G.pageX,this.clientY=G.clientY!==void 0?G.clientY:G.pageY,this.screenX=G.screenX||0,this.screenY=G.screenY||0):(this.offsetX=_.V9||f.offsetX!==void 0?f.offsetX:f.layerX,
this.offsetY=_.V9||f.offsetY!==void 0?f.offsetY:f.layerY,this.clientX=f.clientX!==void 0?f.clientX:f.pageX,this.clientY=f.clientY!==void 0?f.clientY:f.pageY,this.screenX=f.screenX||0,this.screenY=f.screenY||0);this.button=f.button;this.keyCode=f.keyCode||0;this.key=f.key||"";this.charCode=f.charCode||(B=="keypress"?f.keyCode:0);this.ctrlKey=f.ctrlKey;this.altKey=f.altKey;this.shiftKey=f.shiftKey;this.metaKey=f.metaKey;this.pointerId=f.pointerId||0;this.pointerType=f.pointerType;this.state=f.state;
this.timeStamp=f.timeStamp;this.event_=f;f.defaultPrevented&&_.dX.superClass_.preventDefault.call(this)};
_.dX.prototype.stopPropagation=function(){_.dX.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.dX.prototype.preventDefault=function(){_.dX.superClass_.preventDefault.call(this);var f=this.event_;f.preventDefault?f.preventDefault():f.returnValue=!1};var HXX="closure_listenable_"+(Math.random()*1E6|0),iX=function(f){return!(!f||!f[HXX])};var q7o=0;var $ko=function(f,S,B,G,g){this.listener=f;this.proxy=null;this.src=S;this.type=B;this.capture=!!G;this.handler=g;this.key=++q7o;this.removed=this.callOnce=!1},QOm=function(f){f.removed=!0;
f.listener=null;f.proxy=null;f.src=null;f.handler=null};RK.prototype.add=function(f,S,B,G,g){var b=f.toString();f=this.listeners[b];f||(f=this.listeners[b]=[],this.typeCount_++);var z=Y7N(f,S,G,g);z>-1?(S=f[z],B||(S.callOnce=!1)):(S=new $ko(S,this.src,b,!!G,g),S.callOnce=B,f.push(S));return S};
RK.prototype.remove=function(f,S,B,G){f=f.toString();if(!(f in this.listeners))return!1;var g=this.listeners[f];S=Y7N(g,S,B,G);return S>-1?(QOm(g[S]),_.ts(g,S),g.length==0&&(delete this.listeners[f],this.typeCount_--),!0):!1};
var rr7=function(f,S){var B=S.type;if(!(B in f.listeners))return!1;var G=_.uK(f.listeners[B],S);G&&(QOm(S),f.listeners[B].length==0&&(delete f.listeners[B],f.typeCount_--));return G};
RK.prototype.removeAll=function(f){f=f&&f.toString();var S=0,B;for(B in this.listeners)if(!f||B==f){for(var G=this.listeners[B],g=0;g<G.length;g++)++S,QOm(G[g]);delete this.listeners[B];this.typeCount_--}return S};
RK.prototype.getListener=function(f,S,B,G){f=this.listeners[f.toString()];var g=-1;f&&(g=Y7N(f,S,B,G));return g>-1?f[g]:null};
RK.prototype.hasListener=function(f,S){var B=f!==void 0,G=B?f.toString():"",g=S!==void 0;return _.$v.some(this.listeners,function(b){for(var z=0;z<b.length;++z)if(!(B&&b[z].type!=G||g&&b[z].capture!=S))return!0;return!1})};
var Y7N=function(f,S,B,G){for(var g=0;g<f.length;++g){var b=f[g];if(!b.removed&&b.listener==S&&b.capture==!!B&&b.handler==G)return g}return-1};var jO1,OXX,xki,LzN,kX7,$e,QU,Dk7,ngL,sOj,HE,Igv,Ego;jO1="closure_lm_"+(Math.random()*1E6|0);OXX={};xki=0;_.jP=function(f,S,B,G,g){if(G&&G.once)return $e(f,S,B,G,g);if(Array.isArray(S)){for(var b=0;b<S.length;b++)_.jP(f,S[b],B,G,g);return null}B=Ego(B);return iX(f)?f.listen(S,B,_.og(G)?!!G.capture:!!G,g):LzN(f,S,B,!1,G,g)};
LzN=function(f,S,B,G,g,b){if(!S)throw Error("Aa");var z=_.og(g)?!!g.capture:!!g,X=HE(f);X||(f[jO1]=X=new RK(f));B=X.add(S,B,G,z,b);if(B.proxy)return B;G=kX7();B.proxy=G;G.src=f;G.listener=B;if(f.addEventListener)_.xOs||(g=z),g===void 0&&(g=!1),f.addEventListener(S.toString(),G,g);else if(f.attachEvent)f.attachEvent(ngL(S.toString()),G);else if(f.addListener&&f.removeListener)f.addListener(G);else throw Error("Ba");xki++;return B};
kX7=function(){var f=sOj,S=function(B){return f.call(S.src,S.listener,B)};
return S};
$e=function(f,S,B,G,g){if(Array.isArray(S)){for(var b=0;b<S.length;b++)$e(f,S[b],B,G,g);return null}B=Ego(B);return iX(f)?f.listenOnce(S,B,_.og(G)?!!G.capture:!!G,g):LzN(f,S,B,!0,G,g)};
_.qM=function(f,S,B,G,g){if(Array.isArray(S))for(var b=0;b<S.length;b++)_.qM(f,S[b],B,G,g);else G=_.og(G)?!!G.capture:!!G,B=Ego(B),iX(f)?f.unlisten(S,B,G,g):f&&(f=HE(f))&&(S=f.getListener(S,B,G,g))&&QU(S)};
QU=function(f){if(typeof f==="number"||!f||f.removed)return!1;var S=f.src;if(iX(S))return rr7(S.eventTargetListeners_,f);var B=f.type,G=f.proxy;S.removeEventListener?S.removeEventListener(B,G,f.capture):S.detachEvent?S.detachEvent(ngL(B),G):S.addListener&&S.removeListener&&S.removeListener(G);xki--;(B=HE(S))?(rr7(B,f),B.typeCount_==0&&(B.src=null,S[jO1]=null)):QOm(f);return!0};
Dk7=function(f,S,B,G,g){B=Ego(B);G=!!G;return iX(f)?f.getListener(S,B,G,g):f?(f=HE(f))?f.getListener(S,B,G,g):null:null};
ngL=function(f){return f in OXX?OXX[f]:OXX[f]="on"+f};
sOj=function(f,S){if(f.removed)f=!0;else{S=new _.dX(S,this);var B=f.listener,G=f.handler||f.src;f.callOnce&&QU(f);f=B.call(G,S)}return f};
HE=function(f){f=f[jO1];return f instanceof RK?f:null};
Igv="__closure_events_fn_"+(Math.random()*1E9>>>0);Ego=function(f){if(typeof f==="function")return f;f[Igv]||(f[Igv]=function(S){return f.handleEvent(S)});
return f[Igv]};_.$o=function(){_.qR.call(this);this.eventTargetListeners_=new RK(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.Rm(_.$o,_.qR);_.$o.prototype[HXX]=!0;_.e=_.$o.prototype;_.e.setParentEventTarget=function(f){this.parentEventTarget_=f};
_.e.addEventListener=function(f,S,B,G){_.jP(this,f,S,B,G)};
_.e.removeEventListener=function(f,S,B,G){_.qM(this,f,S,B,G)};
_.e.dispatchEvent=function(f){var S,B=this.parentEventTarget_;if(B)for(S=[];B;B=B.parentEventTarget_)S.push(B);B=this.actualEventTarget_;var G=f.type||f;if(typeof f==="string")f=new _.K8(f,B);else if(f instanceof _.K8)f.target=f.target||B;else{var g=f;f=new _.K8(G,B);_.$v.extend(f,g)}g=!0;var b;if(S)for(b=S.length-1;!f.propagationStopped_&&b>=0;b--){var z=f.currentTarget=S[b];g=UkN(z,G,!0,f)&&g}f.propagationStopped_||(z=f.currentTarget=B,g=UkN(z,G,!0,f)&&g,f.propagationStopped_||(g=UkN(z,G,!1,f)&&
g));if(S)for(b=0;!f.propagationStopped_&&b<S.length;b++)z=f.currentTarget=S[b],g=UkN(z,G,!1,f)&&g;return g};
_.e.disposeInternal=function(){_.$o.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.e.listen=function(f,S,B,G){return this.eventTargetListeners_.add(String(f),S,!1,B,G)};
_.e.listenOnce=function(f,S,B,G){return this.eventTargetListeners_.add(String(f),S,!0,B,G)};
_.e.unlisten=function(f,S,B,G){return this.eventTargetListeners_.remove(String(f),S,B,G)};
_.e.removeAllListeners=function(f){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(f):0};
var UkN=function(f,S,B,G){S=f.eventTargetListeners_.listeners[String(S)];if(!S)return!0;S=S.concat();for(var g=!0,b=0;b<S.length;++b){var z=S[b];if(z&&!z.removed&&z.capture==B){var X=z.listener,w=z.handler||z.src;z.callOnce&&rr7(f.eventTargetListeners_,z);g=X.call(w,G)!==!1&&g}}return g&&!G.defaultPrevented};
_.$o.prototype.getListener=function(f,S,B,G){return this.eventTargetListeners_.getListener(String(f),S,B,G)};
_.$o.prototype.hasListener=function(f,S){return this.eventTargetListeners_.hasListener(f!==void 0?String(f):void 0,S)};var QD=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(f){return f&&AsyncContext.Snapshot.wrap(f)}:function(f){return f};var Cd$=function(f,S){this.create_=f;this.reset_=S;this.occupants_=0;this.JSC$7803_head_=null};
Cd$.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var f=this.JSC$7803_head_;this.JSC$7803_head_=f.next;f.next=null}else f=this.create_();return f};
Cd$.prototype.put=function(f){this.reset_(f);this.occupants_<100&&(this.occupants_++,f.next=this.JSC$7803_head_,this.JSC$7803_head_=f)};var pQ$=function(){this.workTail_=this.workHead_=null};
pQ$.prototype.add=function(f,S){var B=MIK.get();B.set(f,S);this.workTail_?this.workTail_.next=B:this.workHead_=B;this.workTail_=B};
pQ$.prototype.remove=function(){var f=null;this.workHead_&&(f=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),f.next=null);return f};
var MIK=new Cd$(function(){return new Aro},function(f){return f.reset()}),Aro=function(){this.next=this.scope=this.fn=null};
Aro.prototype.set=function(f,S){this.fn=f;this.scope=S;this.next=null};
Aro.prototype.reset=function(){this.next=this.scope=this.fn=null};var NI$,ZSj,NjM,M0v;ZSj=!1;NjM=new pQ$;_.Yo=function(f,S){NI$||M0v();ZSj||(NI$(),ZSj=!0);NjM.add(f,S)};
M0v=function(){var f=Promise.resolve(void 0);NI$=function(){f.then(tIM)}};var ZXL=function(f){f.prototype.$goog_Thenable=!0},t06=function(f){if(!f)return!1;
try{return!!f.$goog_Thenable}catch(S){return!1}};var uT1,agX,yrL,crL,lgo,fa1,GCX,bCN,Xoo,zXL,q9N;_.TM=function(f,S){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(f!=_.d8)try{var B=this;f.call(S,function(G){B.resolve_(2,G)},function(G){B.resolve_(3,G)})}catch(G){this.resolve_(3,G)}};
uT1=function(){this.next=this.context=this.JSC$7814_onRejected=this.JSC$7814_onFulfilled=this.child=null;this.always=!1};
uT1.prototype.reset=function(){this.context=this.JSC$7814_onRejected=this.JSC$7814_onFulfilled=this.child=null;this.always=!1};
agX=new Cd$(function(){return new uT1},function(f){f.reset()});
yrL=function(f,S,B){var G=agX.get();G.JSC$7814_onFulfilled=f;G.JSC$7814_onRejected=S;G.context=B;return G};
_.wh=function(f){if(f instanceof _.TM)return f;var S=new _.TM(_.d8);S.resolve_(2,f);return S};
_.xe=function(f){return new _.TM(function(S,B){B(f)})};
crL=function(f,S,B){Wzo(f,S,B,null)||_.Yo(_.vK(S,f))};
_.rX=function(f){return new _.TM(function(S,B){var G=f.length,g=[];if(G)for(var b=function(F,V){G--;g[F]=V;G==0&&S(g)},z=function(F){B(F)},X,w=0;w<f.length;w++)X=f[w],crL(X,_.vK(b,w),z);
else S(g)})};
lgo=function(f){return new _.TM(function(S){var B=f.length,G=[];if(B)for(var g=function(X,w,F){B--;G[X]=w?{fulfilled:!0,value:F}:{fulfilled:!1,reason:F};B==0&&S(G)},b,z=0;z<f.length;z++)b=f[z],crL(b,_.vK(g,z,!0),_.vK(g,z,!1));
else S(G)})};
fa1=function(f){return new _.TM(function(S,B){var G=f.length,g=[];if(G)for(var b=function(F){S(F)},z=function(F,V){G--;
g[F]=V;G==0&&B(g)},X,w=0;w<f.length;w++)X=f[w],crL(X,b,_.vK(z,w));
else S(void 0)})};
_.aa=function(){var f,S,B=new _.TM(function(G,g){f=G;S=g});
return new o68(B,f,S)};
_.TM.prototype.then=function(f,S,B){return SQj(this,QD(typeof f==="function"?f:null),QD(typeof S==="function"?S:null),B)};
ZXL(_.TM);GCX=function(f,S,B,G){Bcv(f,yrL(S||_.d8,B||null,G))};
_.jA=function(f,S){S=QD(S);S=yrL(S,S);S.always=!0;Bcv(f,S);return f};
_.TM.prototype.finally=function(f){var S=this;f=QD(f);return new Promise(function(B,G){GCX(S,function(g){f();B(g)},function(g){f();
G(g)})})};
_.TM.prototype.thenCatch=function(f,S){return SQj(this,null,QD(f),S)};
_.TM.prototype.catch=_.TM.prototype.thenCatch;_.TM.prototype.cancel=function(f){if(this.state_==0){var S=new _.y1(f);_.Yo(function(){g6m(this,S)},this)}};
var g6m=function(f,S){if(f.state_==0)if(f.parent_){var B=f.parent_;if(B.callbackEntries_){for(var G=0,g=null,b=null,z=B.callbackEntries_;z&&(z.always||(G++,z.child==f&&(g=z),!(g&&G>1)));z=z.next)g||(b=z);g&&(B.state_==0&&G==1?g6m(B,S):(b?(G=b,G.next==B.callbackEntriesTail_&&(B.callbackEntriesTail_=G),G.next=G.next.next):eX7(B),bCN(B,g,3,S)))}f.parent_=null}else f.resolve_(3,S)},Bcv=function(f,S){f.callbackEntries_||f.state_!=2&&f.state_!=3||mbj(f);
f.callbackEntriesTail_?f.callbackEntriesTail_.next=S:f.callbackEntries_=S;f.callbackEntriesTail_=S},SQj=function(f,S,B,G){var g=yrL(null,null,null);
g.child=new _.TM(function(b,z){g.JSC$7814_onFulfilled=S?function(X){try{var w=S.call(G,X);b(w)}catch(F){z(F)}}:b;
g.JSC$7814_onRejected=B?function(X){try{var w=B.call(G,X);w===void 0&&X instanceof _.y1?z(X):b(w)}catch(F){z(F)}}:z});
g.child.parent_=f;Bcv(f,g);return g.child};
_.TM.prototype.unblockAndFulfill_=function(f){this.state_=0;this.resolve_(2,f)};
_.TM.prototype.unblockAndReject_=function(f){this.state_=0;this.resolve_(3,f)};
_.TM.prototype.resolve_=function(f,S){this.state_==0&&(this===S&&(f=3,S=new TypeError("Ca")),this.state_=1,Wzo(S,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=S,this.state_=f,this.parent_=null,mbj(this),f!=3||S instanceof _.y1||zXL(this,S)))};
var Wzo=function(f,S,B,G){if(f instanceof _.TM)return GCX(f,S,B,G),!0;if(t06(f))return f.then(S,B,G),!0;if(_.og(f))try{var g=f.then;if(typeof g==="function")return RXN(f,g,S,B,G),!0}catch(b){return B.call(G,b),!0}return!1},RXN=function(f,S,B,G,g){var b=!1,z=function(w){b||(b=!0,B.call(g,w))},X=function(w){b||(b=!0,G.call(g,w))};
try{S.call(f,z,X)}catch(w){X(w)}},mbj=function(f){f.executing_||(f.executing_=!0,_.Yo(f.executeCallbacks_,f))},eX7=function(f){var S=null;
f.callbackEntries_&&(S=f.callbackEntries_,f.callbackEntries_=S.next,S.next=null);f.callbackEntries_||(f.callbackEntriesTail_=null);return S};
_.TM.prototype.executeCallbacks_=function(){for(var f;f=eX7(this);)bCN(this,f,this.state_,this.result_);this.executing_=!1};
bCN=function(f,S,B,G){if(B==3&&S.JSC$7814_onRejected&&!S.always)for(;f&&f.hadUnhandledRejection_;f=f.parent_)f.hadUnhandledRejection_=!1;if(S.child)S.child.parent_=null,Xoo(S,B,G);else try{S.always?S.JSC$7814_onFulfilled.call(S.context):Xoo(S,B,G)}catch(g){q9N.call(null,g)}agX.put(S)};
Xoo=function(f,S,B){S==2?f.JSC$7814_onFulfilled.call(f.context,B):f.JSC$7814_onRejected&&f.JSC$7814_onRejected.call(f.context,B)};
zXL=function(f,S){f.hadUnhandledRejection_=!0;_.Yo(function(){f.hadUnhandledRejection_&&q9N.call(null,S)})};
q9N=B9;_.y1=function(f){_.fM.call(this,f)};
_.Rm(_.y1,_.fM);_.y1.prototype.name="cancel";var o68=function(f,S,B){this.promise=f;this.resolve=S;this.reject=B};var OT;_.Se=function(f,S){_.$o.call(this);this.JSC$7826_interval_=f||1;this.timerObject_=S||_.S1;this.boundTick_=(0,_.$A)(this.tick_,this);this.last_=_.zd()};
_.Rm(_.Se,_.$o);_.e=_.Se.prototype;_.e.enabled=!1;_.e.JSC$7828_timer_=null;_.e.setInterval=function(f){this.JSC$7826_interval_=f;this.JSC$7828_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$7828_timer_&&this.stop()};
_.e.tick_=function(){if(this.enabled){var f=_.zd()-this.last_;f>0&&f<this.JSC$7826_interval_*.8?this.JSC$7828_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7826_interval_-f):(this.JSC$7828_timer_&&(this.timerObject_.clearTimeout(this.JSC$7828_timer_),this.JSC$7828_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.e.start=function(){this.enabled=!0;this.JSC$7828_timer_||(this.JSC$7828_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7826_interval_),this.last_=_.zd())};
_.e.stop=function(){this.enabled=!1;this.JSC$7828_timer_&&(this.timerObject_.clearTimeout(this.JSC$7828_timer_),this.JSC$7828_timer_=null)};
_.e.disposeInternal=function(){_.Se.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
OT=function(f,S,B){if(typeof f==="function")B&&(f=(0,_.$A)(f,B));else if(f&&typeof f.handleEvent=="function")f=(0,_.$A)(f.handleEvent,f);else throw Error("Da");return Number(S)>2147483647?-1:_.S1.setTimeout(f,S||0)};
_.woN=function(f){var S=null;return(new _.TM(function(B,G){S=OT(function(){B(void 0)},f);
S==-1&&G(Error("Ea"))})).thenCatch(function(B){_.S1.clearTimeout(S);
throw B;})};var TS=function(f){_.qR.call(this);this.streamzLogger=f;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$7832_flushTimer=new _.Se(this.flushInterval);this.JSC$7832_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.ha(this,this.JSC$7832_flushTimer)};
_.q(TS,_.qR);TS.prototype.sendIsolatedPayload=function(f){this.shouldSendIsolatedPayload=f;this.invocationLimit=1};
var hX8=function(f){f.JSC$7832_flushTimer.enabled||f.JSC$7832_flushTimer.start();f.invocationCount++;f.invocationCount>=f.invocationLimit&&f.snapshotAndFlush()};
TS.prototype.snapshotAndFlush=function(){var f=this.metricMap.values();f=[].concat(_.$d(f)).filter(function(S){return S.cellMap.size});
f.length&&this.streamzLogger.flush(f,this.shouldSendIsolatedPayload);Tc1(f);this.invocationCount=0;this.JSC$7832_flushTimer.enabled&&this.JSC$7832_flushTimer.stop()};
TS.prototype.addNewCounter=function(f){var S=_.qb.apply(1,arguments);this.metricMap.has(f)||this.metricMap.set(f,new dki(f,S))};
TS.prototype.addNewEventMetric=function(f){var S=_.qb.apply(1,arguments);this.metricMap.has(f)||this.metricMap.set(f,new iX6(f,S))};
var Fgo=function(f,S){return f.disabledMetrics.has(S)?void 0:f.metricMap.get(S)};
TS.prototype.JSC$7832_incrementCounter=function(f){this.JSC$7832_incrementCounterBy(f,1,_.qb.apply(1,arguments))};
TS.prototype.JSC$7832_incrementCounterBy=function(f,S){var B=_.qb.apply(2,arguments),G=Fgo(this,f);G&&G instanceof dki&&(G.JSC$7771_incrementCounterBy(S,B),hX8(this))};
TS.prototype.record=function(f,S){var B=_.qb.apply(2,arguments),G=Fgo(this,f);G&&G instanceof iX6&&(G.record(S,B),hX8(this))};
var Tc1=function(f){for(var S=0;S<f.length;S++)f[S].clear()};_.xo=function(f,S,B){B=B===void 0?{}:B;S=Error.call(this,S);this.message=S.message;"stack"in S&&(this.stack=S.stack);this.code=f;this.metadata=B;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.q(_.xo,Error);_.xo.prototype.toString=function(){var f="RpcError("+(u91(this.code)||String(this.code))+")";this.message&&(f+=": "+this.message);return f};_.VZ1=_.S1.JSON.parse;_.ET=_.S1.JSON.stringify;_.Qw=_.S1.JSON.parse;_.JJv=function(f){switch(f){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 PoL=function(f){switch(f){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var v66,Kgm=function(){};
_.Rm(Kgm,_.aLx);Kgm.prototype.createInstance=function(){return new XMLHttpRequest};
v66=new Kgm;_.L8=function(f){_.$o.call(this);this.headers=new Map;this.JSC$7841_xmlHttpFactory_=f||null;this.JSC$7841_active_=!1;this.JSC$7841_xhr_=null;this.JSC$7841_lastUri_="";this.JSC$7841_lastErrorCode_=0;this.JSC$7841_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$7841_timeoutId_=null;this.responseType_="";this.JSC$7841_withCredentials_=!1};
_.Rm(_.L8,_.$o);var db6=/^https?$/i,iCN=["POST","PUT"],HCX=[],cej=function(f,S,B,G,g,b,z){var X=new _.L8;HCX.push(X);S&&X.listen("complete",S);X.listenOnce("ready",X.cleanupSend_);b&&(X.timeoutInterval_=Math.max(0,b));z&&(X.JSC$7841_withCredentials_=z);X.send(f,B,G,g)};
_.L8.prototype.cleanupSend_=function(){this.dispose();_.uK(HCX,this)};
_.L8.prototype.send=function(f,S,B,G){if(this.JSC$7841_xhr_)throw Error("Fa`"+this.JSC$7841_lastUri_+"`"+f);S=S?S.toUpperCase():"GET";this.JSC$7841_lastUri_=f;this.JSC$7841_lastError_="";this.JSC$7841_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$7841_active_=!0;this.JSC$7841_xhr_=this.createXhr();this.JSC$7841_xhr_.onreadystatechange=QD((0,_.$A)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$7841_xhr_.open(S,String(f),!0),this.inOpen_=!1}catch(z){qQ$(this,z);return}f=B||"";B=new Map(this.headers);
if(G)if(Object.getPrototypeOf(G)===Object.prototype)for(var g in G)B.set(g,G[g]);else if(typeof G.keys==="function"&&typeof G.get==="function"){g=_.m(G.keys());for(var b=g.next();!b.done;b=g.next())b=b.value,B.set(b,G.get(b))}else throw Error("Ga`"+String(G));G=Array.from(B.keys()).find(function(z){return"content-type"==z.toLowerCase()});
g=_.S1.FormData&&f instanceof _.S1.FormData;!_.As(iCN,S)||G||g||B.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");S=_.m(B);for(G=S.next();!G.done;G=S.next())B=_.m(G.value),G=B.next().value,B=B.next().value,this.JSC$7841_xhr_.setRequestHeader(G,B);this.responseType_&&(this.JSC$7841_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$7841_xhr_&&this.JSC$7841_xhr_.withCredentials!==this.JSC$7841_withCredentials_&&(this.JSC$7841_xhr_.withCredentials=this.JSC$7841_withCredentials_);
try{this.JSC$7841_timeoutId_&&(clearTimeout(this.JSC$7841_timeoutId_),this.JSC$7841_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$7841_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$7841_xhr_.send(f),this.inSend_=!1}catch(z){qQ$(this,z)}};
_.L8.prototype.createXhr=function(){return this.JSC$7841_xmlHttpFactory_?this.JSC$7841_xmlHttpFactory_.createInstance():v66.createInstance()};
_.L8.prototype.timeout_=function(){typeof p$1!="undefined"&&this.JSC$7841_xhr_&&(this.JSC$7841_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$7841_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var qQ$=function(f,S){f.JSC$7841_active_=!1;f.JSC$7841_xhr_&&(f.inAbort_=!0,f.JSC$7841_xhr_.abort(),f.inAbort_=!1);f.JSC$7841_lastError_=S;f.JSC$7841_lastErrorCode_=5;$b7(f);QP6(f)},$b7=function(f){f.errorDispatched_||(f.errorDispatched_=!0,f.dispatchEvent("complete"),f.dispatchEvent("error"))};
_.L8.prototype.abort=function(f){this.JSC$7841_xhr_&&this.JSC$7841_active_&&(this.JSC$7841_active_=!1,this.inAbort_=!0,this.JSC$7841_xhr_.abort(),this.inAbort_=!1,this.JSC$7841_lastErrorCode_=f||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),QP6(this))};
_.L8.prototype.disposeInternal=function(){this.JSC$7841_xhr_&&(this.JSC$7841_active_&&(this.JSC$7841_active_=!1,this.inAbort_=!0,this.JSC$7841_xhr_.abort(),this.inAbort_=!1),QP6(this,!0));_.L8.superClass_.disposeInternal.call(this)};
_.L8.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)YQ$(this);else this.onReadyStateChangeEntryPoint_()};
_.L8.prototype.onReadyStateChangeEntryPoint_=function(){YQ$(this)};
var YQ$=function(f){if(f.JSC$7841_active_&&typeof p$1!="undefined")if(f.inSend_&&_.ko(f)==4)setTimeout(f.onReadyStateChange_.bind(f),0);else if(f.dispatchEvent("readystatechange"),f.isComplete()){f.JSC$7841_active_=!1;try{if(f.isSuccess())f.dispatchEvent("complete"),f.dispatchEvent("success");else{f.JSC$7841_lastErrorCode_=6;try{var S=_.ko(f)>2?f.JSC$7841_xhr_.statusText:""}catch(B){S=""}f.JSC$7841_lastError_=S+" ["+f.getStatus()+"]";$b7(f)}}finally{QP6(f)}}},QP6=function(f,S){if(f.JSC$7841_xhr_){f.JSC$7841_timeoutId_&&
(clearTimeout(f.JSC$7841_timeoutId_),f.JSC$7841_timeoutId_=null);
var B=f.JSC$7841_xhr_;f.JSC$7841_xhr_=null;S||f.dispatchEvent("ready");try{B.onreadystatechange=null}catch(G){}}};
_.L8.prototype.isActive=function(){return!!this.JSC$7841_xhr_};
_.L8.prototype.isComplete=function(){return _.ko(this)==4};
_.L8.prototype.isSuccess=function(){var f=this.getStatus(),S;if(!(S=PoL(f))){if(f=f===0)f=Oim(String(this.JSC$7841_lastUri_)),f=!db6.test(f);S=f}return S};
_.ko=function(f){return f.JSC$7841_xhr_?f.JSC$7841_xhr_.readyState:0};
_.e=_.L8.prototype;_.e.getStatus=function(){try{return _.ko(this)>2?this.JSC$7841_xhr_.status:-1}catch(f){return-1}};
_.e.getResponseText=function(){try{return this.JSC$7841_xhr_?this.JSC$7841_xhr_.responseText:""}catch(f){return""}};
_.e.getResponse=function(){try{if(!this.JSC$7841_xhr_)return null;if("response"in this.JSC$7841_xhr_)return this.JSC$7841_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$7841_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$7841_xhr_)return this.JSC$7841_xhr_.mozResponseArrayBuffer}return null}catch(f){return null}};
_.e.getAllResponseHeaders=function(){return this.JSC$7841_xhr_&&_.ko(this)>=2?this.JSC$7841_xhr_.getAllResponseHeaders()||"":""};
_.e.getLastError=function(){return typeof this.JSC$7841_lastError_==="string"?this.JSC$7841_lastError_:String(this.JSC$7841_lastError_)};var lLG=function(){};
lLG.prototype.send=function(f,S,B){S=S===void 0?function(){}:S;
B=B===void 0?function(){}:B;
cej(f.url,function(G){G=G.target;G.isSuccess()?S(G.getResponseText()):B(G.getStatus())},f.requestType,f.body,f.requestHeaders,f.timeoutMillis,f.withCredentials)};
lLG.prototype.getTransmissionType=function(){return 1};var rJo=function(f,S){this.iow=f;this.event=S;this.startTime=F9()},gpV;
rJo.prototype.done=function(){this.iow.uO(this.event,F9()-this.startTime)};
var n8=function(){m5.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.q(n8,m5);_.sT=function(f,S,B){var G=F9();S=S();f.uO(B,F9()-G);return S};
gpV=function(){n8.apply(this,arguments)};
_.q(gpV,n8);_.e=gpV.prototype;_.e.ocV=function(){};
_.e.sX=function(){};
_.e.uO=function(){};
_.e.logError=function(){};
_.e.sE=function(){};
_.e.cFz=function(){};
_.e.mvA=function(){};
_.e.n69=function(){};
var jPg=function(f){n8.call(this);var S=this;this.za=f;this.TEST_ONLY={qHY:function(){return S.za},
getExperimentIds:function(){return S.za.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void S.za.dispose()})};
_.q(jPg,n8);_.e=jPg.prototype;_.e.update=function(f){this.za.dispose();this.za=f};
_.e.sX=function(f){this.za.sX(f)};
_.e.uO=function(f,S){this.za.uO(f,S)};
_.e.logError=function(f){this.za.logError(f)};
_.e.sE=function(){this.za.sE()};
_.e.cFz=function(f){this.za.cFz(f)};
_.e.mvA=function(f){this.za.mvA(f)};
_.e.n69=function(f){this.za.n69(f)};
_.e.ocV=function(f){this.za.ocV(f)};
var OCj=function(f,S){_.qR.call(this);var B=this;this.callback=f;this.yMl=S;this.vWM=-S;this.addOnDisposeCallback(function(){return void clearTimeout(B.timer)})};
_.q(OCj,_.qR);var xb$=function(f){if(f.timer===void 0){var S=Math.max(0,f.vWM+f.yMl-F9());f.timer=setTimeout(function(){try{f.callback()}finally{f.vWM=F9(),f.timer=void 0}},S)}},E61=function(f,S){n8.call(this);
this.metrics=f;this.oB=S};
_.q(E61,n8);_.e=E61.prototype;_.e.ocV=function(f){this.metrics.yoh.record(f,this.oB)};
_.e.sX=function(f){this.metrics.eventCount.increment(f,this.oB)};
_.e.uO=function(f,S){this.metrics.qKa.record(S,f,this.oB)};
_.e.logError=function(f){this.metrics.errorCount.increment(f,this.oB)};
_.e.cFz=function(f){this.metrics.kpE.increment(f,this.oB)};
_.e.mvA=function(f){this.metrics.tGa.increment(f,this.oB)};
_.e.n69=function(f){this.metrics.eDm.increment(f,this.oB)};
var evM=function(f,S){S=S===void 0?[]:S;var B={oB:f.oB||"_",lUv:f.lUv||[],fVg:f.fVg|0,destinationUrl:f.destinationUrl,jEn:f.jEn||function(){},
lCV:f.lCV||function(b,z){return G1x(b,z,B.jEn,B.destinationUrl)}},G=B.lCV("49",B.lUv.concat(S));
E61.call(this,{yoh:new Teo(G),errorCount:new Pz6(G),eventCount:new V2m(G),qKa:new JX6(G),vVQ:new Fuj(G),kpE:new v$L(G),tGa:new Ku$(G),eDm:new d2L(G)},B.oB);var g=this;this.TEST_ONLY={getExperimentIds:function(){return g.options.lUv.concat(g.wJh).sort(function(b,z){return b-z})}};
this.options=B;this.service=G;this.nxP=!f.lCV;this.flushDebouncer=new OCj(function(){return void g.service.snapshotAndFlush()},B.fVg);
this.addOnDisposeCallback(function(){g.flushDebouncer.dispose();g.nxP&&g.service.dispose()});
(this.wJh=S.slice()).sort(_.gN)};
_.q(evM,E61);evM.prototype.sE=function(){xb$(this.flushDebouncer)};var zNj=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(zNj,_.s7);_.RNj=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(_.RNj,_.s7);var fz=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f,0,fz.messageId)};
_.q(fz,_.s7);var Lg8=_.ld(fz);fz.messageId="bfkj";var Lox=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(Lox,_.s7);var kCm=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(kCm,_.s7);var n6L=_.fC(kCm);_.w3=function(){var f=this;this.promise=new Promise(function(S,B){f.resolve=S;f.reject=B})};_.D2=function(f){_.qR.call(this);var S=this;this.kRJ=Math.floor(Math.random()*200);this.xuV=new kCm;if("challenge"in f&&Lg8(f.challenge)){var B=_.n4(f.challenge,4,void 0,Dv);var G=_.n4(f.challenge,5,void 0,Dv);_.n4(f.challenge,7,void 0,Dv)&&(this.xuV=n6L(_.n4(f.challenge,7,void 0,Dv)))}else B=f.program,G=f.globalName;this.addOnDisposeCallback(function(){var Q,x,E;return _.R(function(U){if(U.nextAddress==1)return _.h(U,S.dB9,2);Q=U.yieldResult;x=Q.u8m;(E=x)==null||E();_.TT(U)})});
this.kA=bjW(f.lF||{},this.xuV);_.ha(this,this.kA);var g=new _.w3;this.dB9=g.promise;this.kA.sX("t");var b=this.kA.share(),z=new rJo(b,"t"),X=function(Q,x,E,U){if(!S.kA.isDisposed()){var A="k";x?A="h":E&&(A="u");A!=="k"?U!==0&&(S.kA.sX(A),S.kA.uO(A,Q)):S.kRJ<=0?(S.kA.sX(A),S.kA.uO(A,Q),S.kRJ=Math.floor(Math.random()*200)):S.kRJ--}},w=function(Q,x,E,U){Promise.resolve().then(function(){z.done();
b.sE();b.dispose();g.resolve({pCb:Q,u8m:x,dNp:E,vRa:U})})};
if(!_.S1[G])throw this.kA.logError(25),Error("Ha");if(!_.S1[G].a)throw this.kA.logError(26),Error("Ia");try{var F=_.S1[G].a;G=[];for(var V=[],J=kSN(this.xuV),P=0;P<J.length;P++)G.push(J[P]),V.push(1);var d=nAK(this.xuV);for(J=0;J<d.length;J++)G.push(d[J]),V.push(2);this.wTD=_.m(F(B,w,!0,f.vFw,X,[G,V],_.n4(this.xuV,5))).next().value;this.rO9=g.promise.then(function(){})}catch(Q){throw this.kA.logError(28),Q;
}};
_.q(_.D2,_.qR);_.D2.prototype.snapshot=function(f){if(this.isDisposed())throw Error("Ja");this.kA.sX("n");var S=this.kA.share();return this.dB9.then(function(B){var G=B.pCb;return new Promise(function(g){var b=new rJo(S,"n");G(function(z){b.done();S.ocV(z.length);S.sE();S.dispose();g(z)},[f.rU,
f.qU4,f.kr6,f.m7y])})})};
_.D2.prototype.z6F=function(f){this.dB9.then(function(S){var B;(B=S.dNp)==null||B(f)})};
_.D2.prototype.qXJ=function(f,S){return this.dB9.then(function(B){var G;return(G=B.vRa)==null?void 0:G(f,S,!1)})};
_.D2.prototype.jKD=function(){return this.kA.share()};var sPX=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(sPX,_.s7);var u3K=_.ld(sPX);var Db$=function(){this.xGH={};this.wrW=null},IaX=function(){Db$.instance||(Db$.instance=new Db$);
return Db$.instance},Co1=function(f,S){return Ub6(f,_.BU(S,zNj,1,Dv),_.BU(S,_.RNj,2,Dv),_.n4(S,3,void 0,Dv))},Ub6=function(f,S,B,G){if(!S&&!B)return Promise.resolve();
if(!G)return wWN(S,B);var g;(g=f.xGH)[G]||(g[G]=new Promise(function(b,z){wWN(S,B).then(function(){f.wrW=G;b()},function(X){delete f.xGH[G];
z(X)})}));
return f.xGH[G]};var poN=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(poN,_.s7);var AJ1=function(f,S){return _.oQ(f,1,S)},Ncj=function(f,S){return _.oQ(f,2,S)};var It=function(f){_.qR.call(this);var S=this;this.options=f;this.sXF=new _.w3;this.rO9=this.sXF.promise;this.kgj=new _.w3;this.ak4=1;this.liz=new _.w3;this.b4n=[];this.x0Q=f.x0Q||function(){};
this.uQ9=new jPg(bjW(f.lF||{}));MZv(this,f.hb,f.eFT,f.ouQ,f.xcm,Object.assign({},ZC8,f.bRF||{}));this.addOnDisposeCallback(function(){return void tZj(S)})};
_.q(It,_.qR);It.prototype.snapshot=function(f){var S=this;return _.R(function(B){switch(B.nextAddress){case 1:if(S.isDisposed())throw Error("Ja");if(S.ds||S.a4H){B.jumpTo(2);break}return _.h(B,S.kgj.promise,2);case 2:if(!S.ds){B.jumpTo(4);break}return _.h(B,S.ds.snapshot(f),5);case 5:return B.return(B.yieldResult);case 4:throw S.a4H;}})};
var u66=function(f){var S;return _.R(function(B){if(f.isDisposed())throw Error("Ja");(S=f.zw)!=null&&(S.endTimeMs=0,S.resolver(1));return _.h(B,f.liz.promise,0)})},tZj=function(f){f.a4H=Error("La");
f.kgj.resolve();sKs(f.sXF.promise);f.sXF.reject(Error("La"));f.uQ9.dispose();Promise.all(f.b4n).then(function(){var B;return _.R(function(G){(B=f.ds)==null||B.dispose();f.ds=void 0;_.TT(G)})});
f.b4n=[];var S;(S=f.zw)!=null&&(S.endTimeMs=0,S.resolver(1));sKs(f.liz.promise);f.liz.reject(Error("La"))};
It.prototype.z6F=function(f){var S,B;(S=this.ds)==null||(B=S.z6F)==null||B.call(S,f)};
It.prototype.qXJ=function(f,S){var B,G,g;return(g=(B=this.ds)==null?void 0:(G=B.qXJ)==null?void 0:G.call(B,f,S))!=null?g:Promise.resolve()};
var aam=function(f,S){var B=f.x0Q;f.x0Q=function(){B();S()}},yJ6=function(f,S){f.isDisposed()||(f.ds=S,f.uQ9.update(S.jKD()),f.kgj.resolve(),f.sXF.resolve(void 0),f.x0Q())};
It.prototype.handleError=function(f){if(!this.isDisposed()){this.a4H=f;this.kgj.resolve();var S,B;(B=(S=this.options).oH6)==null||B.call(S,f)}};
var WgX=function(f,S){S&&(Promise.all(f.b4n).then(function(){return void S.dispose()}),f.b4n=[])},UT=function(f,S){f.ak4=S;
var B,G;(G=(B=f.options).zbi)==null||G.call(B,S)},cJ7=function(f){f.isDisposed()||(f.liz.resolve(),f.liz=new _.w3)},MZv=function(f,S,B,G,g,b){G=G===void 0?IaX():G;
g=g===void 0?Promise.resolve(void 0):g;var z,X,w,F,V,J,P,d,Q,x,E,U;_.R(function(A){switch(A.nextAddress){case 1:return _.h(A,0,3);case 3:X=null;if(!z){A.jumpTo(6);break}UT(f,7);_.zT(A,7);return _.h(A,dj(z.snapshot({}),b.gBq,function(){return Promise.resolve("E:CTO")}),9);
case 9:X=A.yieldResult;_.CN(A,6);break;case 7:_.hm(A),X="E:UCE";case 6:w=void 0,F=z?b.gmK:b.u3h,V=new zS(F,b.mXb,b.nmp,b.kGp),J=1;case 10:if(!(J<=b.maxAttempts)){A.jumpTo(12);break}if(J===1){A.jumpTo(13);break}UT(f,0);f.zw=new la6(V.getValue(),b.nYz,b.iyP);return _.h(A,f.zw.promise,14);case 14:P=A.yieldResult,f.zw=void 0,P===1?(J=1,V.reset()):RD$(V);case 13:_.zT(A,15);d=void 0;if(B){d=B;A.jumpTo(17);break}UT(f,5);Q=G.wrW;return _.h(A,dj(fE6(S,Q,X),b.m0w,function(){return Promise.reject(Error("Ma"))}),
18);
case 18:d=A.yieldResult;case 17:return UT(f,3),_.h(A,dj(Co1(G,d),b.jul,function(){return Promise.reject(Error("Na"))}),19);
case 19:return UT(f,8),_.h(A,g,20);case 20:return x=new _.D2({challenge:d,lF:f.options.lF,vFw:f.options.vFw}),_.h(A,dj(x.rO9,b.kyb,function(){return Promise.reject(Error("Oa"))}),21);
case 21:w=x;A.jumpTo(12);break;case 15:E=_.hm(A),f.handleError(E),cJ7(f);case 11:J++;A.jumpTo(10);break;case 12:if(f.isDisposed()){A.jumpTo(5);break}w&&(B=void 0,WgX(f,z),z=w,yJ6(f,w),cJ7(f));UT(f,2);f.zw=new la6(b.rKq,b.nYz,b.iyP);return _.h(A,f.zw.promise,22);case 22:f.zw=void 0;if(f.isDisposed()){A.jumpTo(5);break}A.jumpTo(3);break;case 5:(U=z)==null||U.dispose(),_.TT(A)}})};
It.prototype.jKD=function(){return this.uQ9.share()};
var ZC8={rKq:432E5,nYz:3E5,iyP:10,gBq:1E4,m0w:3E4,jul:3E4,kyb:6E4,u3h:1E3,gmK:6E4,mXb:6E5,nmp:.25,kGp:2,maxAttempts:10},la6=function(f,S,B){var G=this;this.endTimeMs=Date.now()+f;this.promise=new Promise(function(b){G.resolver=b});
var g=function(){var b=G.endTimeMs-Date.now();b<=B?G.resolver(0):setTimeout(g,Math.min(b,S))};
g()};var od7,Ep1=(od7=Math.imul)!=null?od7:function(f,S){return f*S|0},i5=[196,
200,224,18],C8=function(f,S,B){B=B===void 0?[]:B;this.maxItems=f;this.kB=S===void 0?0:S;this.od=B},SKg=function(f){var S=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!S)return new C8(f);var B=S.split(",");if(B.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new C8(f);S=B.slice(1);S.length===1&&S[0]===""&&(S=[]);B=Number(B[0]);return isNaN(B)||B<0||B>S.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new C8(f)):new C8(f,B,S)};
C8.prototype.serialize=function(){return String(this.kB)+","+this.od.join()};
C8.prototype.insert=function(f,S){var B=void 0;if(this.od[this.kB]!==f){var G=this.od.indexOf(f);G!==-1?(this.od.splice(G,1),G<this.kB&&this.kB--,this.od.splice(this.kB,0,f)):(B=this.od[this.kB],this.od[this.kB]=f)}this.kB=(this.kB+1)%this.maxItems;f=hvW("iU5q-!O9@$",this.serialize());B&&f&&S(B);return f};
var Bz1=function(f,S){this.oLQ=S;try{var B=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(G){B=!1}B&&(this.index=SKg(f))},GT6=function(f,S,B,G,g){var b=f.index?_.sT(f.oLQ,function(){return s0W(f.index,k1s(S),B,G,g)},"W"):"u";
f.oLQ.n69(b)},gdi=function(f,S,B){var G=_.m(f.index?_.sT(f.oLQ,function(){return D9V(k1s(S),B)},"R"):["u"]),g=G.next().value;
G=G.next().value;f.oLQ.mvA(g);return G};var eKj={toString:function(f){var S=[],B=0;f-=-2147483648;S[B++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(f%52);for(f=Math.floor(f/52);f>0;)S[B++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(f%62),f=Math.floor(f/62);return S.join("")}};var zKo=function(f){f=bQN(f);for(var S=2654435769,B=2654435769,G=314159265,g=f.length,b=g,z=0,X=function(){S-=B;S-=G;S^=G>>>13;B-=G;B-=S;B^=S<<8;G-=S;G-=B;G^=B>>>13;S-=B;S-=G;S^=G>>>12;B-=G;B-=S;B^=S<<16;G-=S;G-=B;G^=B>>>5;S-=B;S-=G;S^=G>>>3;B-=G;B-=S;B^=S<<10;G-=S;G-=B;G^=B>>>15};b>=12;b-=12,z+=12)S+=mcN(f,z),B+=mcN(f,z+4),G+=mcN(f,z+8),X();
G+=g;switch(b){case 11:G+=f[z+10]<<24;case 10:G+=f[z+9]<<16;case 9:G+=f[z+8]<<8;case 8:B+=f[z+7]<<24;case 7:B+=f[z+6]<<16;case 6:B+=f[z+5]<<8;case 5:B+=f[z+4];case 4:S+=f[z+3]<<24;case 3:S+=f[z+2]<<16;case 2:S+=f[z+1]<<8;case 1:S+=f[z]}X();return eKj.toString(G)},bQN=function(f){for(var S=[],B=0;B<f.length;B++)S.push(f.charCodeAt(B));
return S},mcN=function(f,S){return f[S]+(f[S+1]<<8)+(f[S+2]<<16)+(f[S+3]<<24)};var RK8,p8=function(f){_.qR.call(this);this.dm=f;this.lS9=new _.w3;this[RK8]=this.dispose};
_.q(p8,_.qR);var XVv=function(f,S){var B=setTimeout(function(){f.lS9.resolve()},S);
f.addOnDisposeCallback(function(){return void clearTimeout(B)})};
p8.prototype.tQ=function(f,S){var B=this.cV(f);S==null||S(B);return _.sT(this.dm,function(){return _.oO(B,2)},this.rEJ)};
var wV7=function(f,S,B,G){return _.sT(f.dm,function(){return B?f.tQ(S,G):f.cV(S,G)},f.aj)};
RK8=Symbol.dispose;var hKN=function(f,S,B,G){p8.call(this,f);this.x4I=S;this.fEl=B;this.aj="m";this.rEJ="x";this.zIP=0;XVv(this,G)};
_.q(hKN,p8);hKN.prototype.cV=function(f,S){var B=this;this.dm.sX(this.aj);++this.zIP>=this.fEl&&this.lS9.resolve();var G=f();f=_.sT(this.dm,function(){return B.x4I(G)},"C");
if(f===void 0)throw new eA(17,"YNJ:Undefined");if(!(f instanceof Uint8Array))throw new eA(18,"ODM:Invalid");S==null||S(f);return f};
var TzN=function(f,S,B){p8.call(this,f);this.k9O=S;this.aj="f";this.rEJ="z";XVv(this,B)};
_.q(TzN,p8);TzN.prototype.cV=function(){return this.k9O};
var Frj=function(f,S,B){p8.call(this,f);this.gyC=S;this.aj="w";this.rEJ="z";XVv(this,B)};
_.q(Frj,p8);Frj.prototype.cV=function(){var f=this;return _.sT(this.dm,function(){return _.Rg(f.gyC)},"d")};
Frj.prototype.tQ=function(){return this.gyC};
var VN7=function(f,S){p8.call(this,f);this.error=S;this.aj="e";this.rEJ="y"};
_.q(VN7,p8);var Jmm=function(f,S){var B=(S(f.error.message)+":"+S(f.error.stack)).substring(0,2048);S=B.length+1;B=IxQ(B);var G=new Uint8Array(4+B.length);G.set([42,S&127|128,S>>7,f.error.code]);G.set(B,4);return G};
VN7.prototype.cV=function(){if(this.vv9)return this.vv9;this.vv9=Jmm(this,function(f){return"_"+zKo(f)});
return Jmm(this,function(f){return f})};
var PJj=function(f,S,B){p8.call(this,f);this.nqw=S;this.clientState=B;this.aj="S";this.rEJ="q"};
_.q(PJj,p8);PJj.prototype.cV=function(){var f=Math.floor(Date.now()/1E3),S=[Math.random()*255,Math.random()*255],B=S.concat([this.nqw&255,this.clientState],[f>>24&255,f>>16&255,f>>8&255,f&255]);f=new Uint8Array(2+B.length);f[0]=34;f[1]=B.length;f.set(B,2);B=f.subarray(2);for(var G=S=S.length;G<B.length;++G)B[G]^=B[G%S];this.dm.cFz(this.clientState);return f};var vdo={cjh:3E4,hUE:2E4},Aq=function(f){_.qR.call(this);var S=this;this.xtY=new _.w3;this.oDj=0;this.i8=void 0;this.state=2;this.oy=f.oy;this.hb=f.hb;this.bRF=Object.assign({},vdo,f.bRF||{});this.dJ=f.oy.jKD();var B;this.onError=(B=f.onError)!=null?B:function(){};
this.zPn=f.zPn||!1;if(Kro(f)){var G=this.oy;this.rpH=function(){return u66(G).catch(function(z){z=S.reportError(new eA(S.f4?20:32,"TRG:Disposed",z));S.i8=z;var X;(X=S.f4)==null||X.dispose();S.f4=void 0;S.xtY.reject(z)})};
aam(G,function(){return void dci(S)});
G.ak4===2&&dci(this)}else this.rpH=f.ydm,dci(this);var g=this.dJ.share();g.sX("o");var b=new rJo(g,"o");this.xtY.promise.then(function(){b.done();g.sE();g.dispose()},function(){return void g.dispose()});
this.addOnDisposeCallback(function(){S.f4?(S.f4.dispose(),S.f4=void 0):S.i8?S.dJ.sE():(S.i8=S.reportError(new eA(32,"TNP:Disposed")),S.dJ.sE(),S.xtY.reject(S.i8))});
_.ha(this,this.dJ)};
_.q(Aq,_.qR);Aq.prototype.xiY=function(){return this.xtY.promise};
var iQX=function(f,S){if(!(S instanceof eA))if(S instanceof _.xo){var B=Error(S.toString());B.stack=S.stack;S=new eA(11,"EBH:Error",B)}else S=new eA(12,"BSO:Unknown",S);return f.reportError(S)},dci=function(f){var S,B,G,g,b,z,X,w,F,V,J,P,d,Q,x;
return _.R(function(E){switch(E.nextAddress){case 1:S=void 0;f.oDj++;B=new _.w3;f.oy instanceof It&&f.oy.b4n.push(B.promise);if(!f.zPn){E.jumpTo(2);break}G=new _.w3;setTimeout(function(){return void G.resolve()});
return _.h(E,G.promise,2);case 2:return g=f.dJ.share(),_.zT(E,4,5),f.state=5,b={},z=[],_.h(E,dj(f.oy.snapshot({rU:b,kr6:z}),f.bRF.hUE,function(){return Promise.reject(new eA(15,"MDA:Timeout"))}),7);
case 7:X=E.yieldResult;if(f.isDisposed())throw new eA(f.f4?20:32,"MDA:Disposed");w=z[0];f.state=6;return _.h(E,dj(HQ8(f.hb,X),f.bRF.cjh,function(){return Promise.reject(new eA(10,"BWB:Timeout"))}),8);
case 8:F=E.yieldResult;if(f.isDisposed())throw new eA(f.f4?20:32,"BWB:Disposed");f.state=7;S=_.sT(g,function(){var A=qK8(f,F,B,w);A.lS9.promise.then(function(){return void f.rpH()});
return A},"i");
case 5:_.Rs(E);g.dispose();_.wz(E,6);break;case 4:V=_.hm(E);(J=S)==null||J.dispose();if(!f.i8){P=iQX(f,V);B.resolve();var U;if(U=f.oy instanceof It&&f.oDj<2)a:if(V instanceof eA)U=V.code!==32&&V.code!==20&&V.code!==10;else{if(V instanceof _.xo)switch(V.code){case 2:case 13:case 14:case 4:break;default:U=!1;break a}U=!0}if(U)return d=(1+Math.random()*.25)*(f.f4?6E4:1E3),Q=setTimeout(function(){return void f.rpH()},d),f.addOnDisposeCallback(function(){return void clearTimeout(Q)}),E.return();
f.i8=P}g.logError(f.f4?13:14);f.xtY.reject(f.i8);return E.return();case 6:f.state=8,f.oDj=0,(x=f.f4)==null||x.dispose(),f.f4=S,f.xtY.resolve(),_.TT(E)}})},qK8=function(f,S,B,G){var g=eV1(S,2)*1E3;
if(g<=0)throw new eA(31,"TTM:Invalid");if(_.n4(S,4))return new Frj(f.dJ,_.n4(S,4),g);if(!eV1(S,3))return new TzN(f.dJ,At1(_.Q9(S,1)),g);if(!G)throw new eA(4,"PMD:Undefined");G=G(At1(_.Q9(S,1)));if(!(G instanceof Function))throw new eA(16,"APF:Failed");f.fba=Math.floor((Date.now()+g)/1E3);f=new hKN(f.dJ,G,eV1(S,3),g);f.addOnDisposeCallback(function(){return void B.resolve()});
return f};
Aq.prototype.cV=function(f){return $cm(this,Object.assign({},f),!1)};
Aq.prototype.tQ=function(f){return $cm(this,Object.assign({},f),!0)};
Aq.prototype.ziy=function(f){if(f>150)return!1;try{return this.cache=new Bz1(f,this.dJ),!0}catch(S){return this.reportError(new eA(22,"GBJ:init",S)),!1}};
Aq.prototype.reportError=function(f){this.dJ.logError(f.code);this.onError(f);return f};
var Qs6=function(f,S){S=S instanceof eA?S:new eA(5,"TVD:error",S);return f.reportError(S)},$cm=function(f,S,B){try{if(f.isDisposed())throw new eA(21,"BNT:disposed");
if(!f.f4&&f.i8)throw f.i8;var G,g;return(g=(G=YK$(f,S,B))!=null?G:rmj(f,S,B))!=null?g:js7(f,S,B)}catch(b){if(!S.dCy)throw Qs6(f,b);return OQg(f,B,b)}},YK$=function(f,S,B){var G;
return(G=f.f4)==null?void 0:wV7(G,function(){return xco(f,S)},B,function(g){var b;
if(f.f4 instanceof hKN&&((b=S.wC)==null?0:b.pWw))try{var z;(z=f.cache)==null||GT6(z,xco(f,S),g,S.wC.qGV,f.fba-120)}catch(X){f.reportError(new eA(24,"ELX:write",X))}})},rmj=function(f,S,B){var G;
if((G=S.wC)!=null&&G.u35)try{var g,b=(g=f.cache)==null?void 0:gdi(g,xco(f,S),S.wC.qGV);return b?B?_.sT(f.dJ,function(){return _.oO(b,2)},"a"):b:void 0}catch(z){f.reportError(new eA(23,"RXO:read",z))}},js7=function(f,S,B){var G={stack:[],
error:void 0,hasError:!1};try{if(!S.sPt)throw new eA(29,"SDF:notready");return wV7(uM9(G,new PJj(f.dJ,0,f.state)),function(){return xco(f,S)},B)}catch(g){G.error=g,G.hasError=!0}finally{akW(G)}},OQg=function(f,S,B){var G={stack:[],
error:void 0,hasError:!1};try{var g=Qs6(f,B);return wV7(uM9(G,new VN7(f.dJ,g)),function(){return[]},S)}catch(b){G.error=b,G.hasError=!0}finally{akW(G)}},xco=function(f,S){return S.qsV?S.qsV:S.rU?_.sT(f.dJ,function(){return S.qsV=IxQ(S.rU)},"c"):[]},Kro=function(f){return A1(function(S){if(!BW(S))return!1;
for(var B=_.m(Object.entries(f)),G=B.next();!G.done;G=B.next()){var g=_.m(G.value);G=g.next().value;g=g.next().value;if(!(G in S)){if(g.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!g(S[G]))return!1}return!0})}({oy:function(f){return A1(function(S){return S instanceof f})}(It)},"");var Ed1=function(){var f=_.md();this.JSC$7959_streamzService=f;f.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",GS("cookie_enabled"),GS("cookie_3p_enabled"),_.eI("browser"))};
Ed1.prototype.increment=function(f,S,B){this.JSC$7959_streamzService.JSC$7832_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",f,S,B)};
var gPK=function(){var f=_.md();this.JSC$7983_streamzService=f;f.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",gj("tick"),GS("from_st_cookie"))};
gPK.prototype.increment=function(f,S){this.JSC$7983_streamzService.JSC$7832_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",f,S)};
var Lrv=function(){var f=_.md();this.JSC$7989_streamzService=f;f.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.eI("status"))};
Lrv.prototype.increment=function(f){this.JSC$7989_streamzService.JSC$7832_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",f)};
var kTo=function(){var f=_.md();this.JSC$7992_streamzService=f;f.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.eI("stage"),GS("is_using_ytd_player"),GS("has_expandable_tiles"))};
kTo.prototype.increment=function(f,S,B){this.JSC$7992_streamzService.JSC$7832_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",f,S,B)};
var ndj=function(){var f=_.md();this.JSC$7995_streamzService=f;f.addNewCounter("/client_streamz/youtube/web/response_signature",_.eI("check_status"))};
ndj.prototype.increment=function(f){this.JSC$7995_streamzService.JSC$7832_incrementCounter("/client_streamz/youtube/web/response_signature",f)};
var ssg=function(){var f=_.md();this.JSC$7998_streamzService=f;f.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.eI("sig"),gj("de"))};
ssg.prototype.increment=function(f,S){this.JSC$7998_streamzService.JSC$7832_incrementCounter("/client_streamz/youtube/web/e_sig_log",f,S)};
var Dcv=function(){var f=_.md();this.JSC$8001_streamzService=f;f.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.eI("sig"),gj("de"))};
Dcv.prototype.increment=function(f,S){this.JSC$8001_streamzService.JSC$7832_incrementCounter("/client_streamz/youtube/web/e_sig_en",f,S)};
_.IEj=function(){var f=_.md();this.JSC$8004_streamzService=f;f.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.eI("action"))};
_.IEj.prototype.increment=function(f){this.JSC$8004_streamzService.JSC$7832_incrementCounter("/client_streamz/youtube/web/enforcement_intent",f)};var NM=window;var Uc1=(new Date).getTime();var CJ1=function(f){this.servicePromise_=f;f.then((0,_.$A)(function(){},this),function(){},this)},pVj=function(f,S,B){f.servicePromise_.then(function(G){var g=G[S];
if(!g)throw Error("Pa`"+S);return g.apply(G,B)})},MNN=function(f,S,B){for(var G=Array(arguments.length-2),g=2;g<arguments.length;g++)G[g-2]=arguments[g];
g=Ami(f,S).then(function(b){return b.apply(null,G)},function(b){b=Error("Qa`"+S+"`"+f,{cause:b});
delete NzN[S];return _.xe(b)});
return new CJ1(g)},NzN={},Ami=function(f,S){var B=NzN[S];
if(B)return B;B=(B=_.U6(S))?_.wh(B):(new _.TM(function(G,g){var b=(new Qm(document)).createElement("SCRIPT");b.async=!0;_.CC(b,_.zC(sTo(f)));b.onload=b.onreadystatechange=function(){b.readyState&&b.readyState!="loaded"&&b.readyState!="complete"||G()};
b.onerror=function(z){g(Error("Ra`"+S+"`"+f,{cause:z}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(b)})).then(function(){var G=_.U6(S);
if(!G)throw Error("Sa`"+S+"`"+f);return G});
return NzN[S]=B};var ZQi={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},uzm=function(){var f=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=U9x(function(){return _.R(function(S){if(S.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?S.return(Promise.resolve()):_.h(S,tN$(f),2);f.rsaForList.length>
0&&document.addEventListener("click",f.requestAccessForHelpPanel);_.TT(S)})});
this.requestAccessForHelpPanel=function(){if(!(f.rsaForPromises.length>0)){for(var S=_.m(f.rsaForList),B=S.next();!B.done;B=S.next()){B=B.value;try{f.rsaForPromises.push(document.requestStorageAccessFor(B))}catch(G){}}Promise.all(f.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){f.reset()})}}};
uzm.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var tN$=function(f){var S,B,G,g;return _.R(function(b){switch(b.nextAddress){case 1:S=_.m(Object.values(ZQi)),B=S.next();case 2:if(B.done){b.jumpTo(0);break}G=B.value;_.zT(b,5);return _.h(b,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:G}),7);case 7:g=b.yieldResult;g.state!=="granted"&&f.rsaForList.push(G);_.CN(b,3);break;case 5:_.hm(b);b.jumpTo(0);break;case 3:B=S.next(),b.jumpTo(2)}})};(new uzm).initialize();var aE8=function(f){this.JSC$8018_loader_=f};
aE8.prototype.startHelp=function(f){pVj(this.JSC$8018_loader_,"startHelp",arguments)};
aE8.prototype.JSC$8020_loadChatSupport=function(f){pVj(this.JSC$8018_loader_,"loadChatSupport",arguments)};
var WrL=function(f,S){S=S||{};f=MNN(ymN,"help.service.Lazy.create",f,{apiKey:S.apiKey||S.apiKey,asxUiUri:S.asxUiUri||S.asxUiUri,environment:S.environment||S.environment,flow:S.flow||S.flow,frdProductData:S.frdProductData||S.frdProductData,frdProductDataSerializedJspb:S.frdProductDataSerializedJspb||S.frdProductDataSerializedJspb,helpCenterPath:S.helpCenterPath||S.helpCenterPath,locale:S.locale||S.locale||"en-US".replace(/-/g,"_"),nonce:S.nonce||S.nonce,productData:S.productData||S.productData,receiverUri:S.receiverUri||
S.receiverUri,renderApiUri:S.renderApiUri||S.renderApiUri,theme:S.theme||S.theme,window:S.window||S.window});return new aE8(f)},ymN=new sU(TRM,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var cmo=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(cmo,_.s7);var lEo=_.fC(cmo);_.fMv=new function(f,S,B,G){this.configType=f;this.flagName=B;this.defaultValue=G;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 SI7=function(){this.retriever=_.oy().resolve(ovi)};pW1(Node);pW1(Element);var Bu$=pW1(HTMLElement);pW1(SVGElement);var GWo,gv8,tq,eQ$;GWo=function(f){return typeof f.className=="string"?f.className:f.getAttribute&&f.getAttribute("class")||""};
gv8=function(f){return f.classList?f.classList:GWo(f).match(/\S+/g)||[]};
_.MM=function(f,S){typeof f.className=="string"?f.className=S:f.setAttribute&&f.setAttribute("class",S)};
_.Z2=function(f,S){return f.classList?f.classList.contains(S):_.As(gv8(f),S)};
_.oa=function(f,S){if(f.classList)f.classList.add(S);else if(!_.Z2(f,S)){var B=GWo(f);_.MM(f,B+(B.length>0?" "+S:S))}};
tq=function(f,S){if(f.classList)Array.prototype.forEach.call(S,function(g){_.oa(f,g)});
else{var B={};Array.prototype.forEach.call(gv8(f),function(g){B[g]=!0});
Array.prototype.forEach.call(S,function(g){B[g]=!0});
S="";for(var G in B)S+=S.length>0?" "+G:G;_.MM(f,S)}};
_.lk=function(f,S){f.classList?f.classList.remove(S):_.Z2(f,S)&&_.MM(f,Array.prototype.filter.call(gv8(f),function(B){return B!=S}).join(" "))};
eQ$=function(f,S){f.classList?Array.prototype.forEach.call(S,function(B){_.lk(f,B)}):_.MM(f,Array.prototype.filter.call(gv8(f),function(B){return!_.As(S,B)}).join(" "))};var boL=function(f){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=f.document},RQm=function(f,S){mv$(f);
var B=document.createElement("div"),G;(G=S.parentNode)==null||G.insertBefore(B,S);B.tabIndex=0;B.id="fc-focus-trap-pre-div";B=document.createElement("div");var g;(g=S.parentNode)==null||g.insertBefore(B,S.nextSibling);B.tabIndex=0;B.id="fc-focus-trap-post-div";var b=zQ6(f,S),z=zQ6(f,S,!0);b&&z&&(f.focusChangeHandler=function(){var X=f.document.activeElement;if(X)if(_.CS(S,X))f.previouslyFocusedElement=X;else if(X===f.document.activeElement)switch(f.previouslyFocusedElement){case b:z.focus();f.previouslyFocusedElement=
z;break;default:b.focus(),f.previouslyFocusedElement=b}},f.document.addEventListener("focus",f.focusChangeHandler,!0),f.document.addEventListener("focusin",f.focusChangeHandler))},mv$=function(f){f.focusChangeHandler&&(document.removeEventListener("focus",f.focusChangeHandler,!0),document.removeEventListener("focusin",f.focusChangeHandler),f.focusChangeHandler=null);
var S;(S=document.getElementById("fc-focus-trap-pre-div"))==null||S.remove();var B;(B=document.getElementById("fc-focus-trap-post-div"))==null||B.remove()},XdX=function(f,S,B,G,g){B=B===void 0?!0:B;
var b;g=(b=g===void 0?null:g)!=null?b:zQ6(f,S,G===void 0?!1:G);g!==null&&(g.focus(),B&&RQm(f,S))};
boL.prototype.disableButton=function(f,S){S=S===void 0?null:S;f.disabled=!0;S&&_.oa(f,S)};
var zQ6=function(f,S,B){B=B===void 0?!1:B;if(EGT(S)&&!B)return S;var G=B?[].slice.call(S.children,0).reverse():S.children;G=_.m(G);for(var g=G.next();!g.done;g=G.next())if(g=g.value,Bu$(g)&&(g=zQ6(f,g,B)))return g;return EGT(S)&&B?S:null};var wdv=function(f){this.originalBodyOverflow="";this.JSC$8044_domHelper=Vq(f)};_.Rm(_.Qf,_.qR);_.e=_.Qf.prototype;_.e.JSC$8047_id_=0;_.e.disposeInternal=function(){_.Qf.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$8045_listener_;delete this.handler_};
_.e.start=function(f){this.stop();this.JSC$8047_id_=OT(this.callback_,f!==void 0?f:this.JSC$8045_interval_)};
_.e.stop=function(){this.isActive()&&_.S1.clearTimeout(this.JSC$8047_id_);this.JSC$8047_id_=0};
_.e.fire=function(){this.stop();this.JSC$8047_doAction_()};
_.e.isActive=function(){return this.JSC$8047_id_!=0};
_.e.JSC$8047_doAction_=function(){this.JSC$8047_id_=0;this.JSC$8045_listener_&&this.JSC$8045_listener_.call(this.handler_)};_.BZ=function(f){_.qR.call(this);this.handler_=f;this.JSC$8048_keys_={}};
_.Rm(_.BZ,_.qR);var hQm=[];_.BZ.prototype.listen=function(f,S,B,G){Array.isArray(S)||(S&&(hQm[0]=S.toString()),S=hQm);for(var g=0;g<S.length;g++){var b=_.jP(f,S[g],B||this.handleEvent,G||!1,this.handler_||this);if(!b)break;this.JSC$8048_keys_[b.key]=b}return this};
_.BZ.prototype.listenOnce=function(f,S,B,G){return Tuv(this,f,S,B,G)};
var Tuv=function(f,S,B,G,g,b){if(Array.isArray(B))for(var z=0;z<B.length;z++)Tuv(f,S,B[z],G,g,b);else{S=$e(S,B,G||f.handleEvent,g,b||f.handler_||f);if(!S)return f;f.JSC$8048_keys_[S.key]=S}return f};
_.BZ.prototype.unlisten=function(f,S,B,G,g){if(Array.isArray(S))for(var b=0;b<S.length;b++)this.unlisten(f,S[b],B,G,g);else if(f=Dk7(f,S,B||this.handleEvent,_.og(G)?!!G.capture:!!G,g||this.handler_||this))QU(f),delete this.JSC$8048_keys_[f.key];return this};
_.BZ.prototype.removeAll=function(){_.$v.forEach(this.JSC$8048_keys_,function(f,S){this.JSC$8048_keys_.hasOwnProperty(S)&&QU(f)},this);
this.JSC$8048_keys_={}};
_.BZ.prototype.disposeInternal=function(){_.BZ.superClass_.disposeInternal.call(this);this.removeAll()};
_.BZ.prototype.handleEvent=function(){throw Error("Ta");};var uX=function(){_.qR.call(this);this.services_={}};
_.Rm(uX,_.qR);uX.prototype.connect=function(f){f&&f()};
uX.prototype.isConnected=function(){return!0};
uX.prototype.registerService=function(f,S,B){this.services_[f]={callback:S,objectPayload:!!B}};
uX.prototype.getService=function(f,S){var B=this.services_[f];return B?B:this.defaultService_?{callback:_.vK(this.defaultService_,f),objectPayload:_.og(S)}:null};
var Faj=function(f,S){if(S&&typeof f==="string")try{return JSON.parse(f)}catch(B){return null}else if(!S&&typeof f!=="string")return(0,_.ET)(f);return f};
uX.prototype.disposeInternal=function(){uX.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 at=function(f,S){this.sequence_=[];this.onCancelFunction_=f;this.defaultScope_=S||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};
at.prototype.cancel=function(f){if(this.fired_)this.result_ instanceof at&&this.result_.cancel();else{if(this.parent_){var S=this.parent_;delete this.parent_;f?S.cancel(f):(S.branches_--,S.branches_<=0&&S.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new yD(this))}};
at.prototype.continue_=function(f,S){this.blocked_=!1;Vr6(this,f,S)};
var Vr6=function(f,S,B){f.fired_=!0;f.result_=B;f.hadError_=!S;Jxo(f)},vv1=function(f){if(f.fired_){if(!f.silentlyCanceled_)throw new PB6(f);
f.silentlyCanceled_=!1}};
at.prototype.callback=function(f){vv1(this);Vr6(this,!0,f)};
at.prototype.errback=function(f){vv1(this);Vr6(this,!1,f)};
var KaX=function(f,S,B){WE(f,S,null,B)};
at.prototype.finally=function(f){var S=this;return new Promise(function(B,G){WE(S,function(g){f();B(g)},function(g){f();
G(g)})})};
var WE=function(f,S,B,G){var g=f.fired_;g||(S===B?S=B=QD(S):(S=QD(S),B=QD(B)));f.sequence_.push([S,B,G]);g&&Jxo(f)};
at.prototype.then=function(f,S,B){var G,g,b=new _.TM(function(z,X){g=z;G=X});
WE(this,g,function(z){z instanceof yD?b.cancel():G(z);return dvN},this);
return b.then(f,S,B)};
ZXL(at);var ioj=function(f,S){S instanceof at?KaX(f,(0,_.$A)(S.branch,S)):KaX(f,function(){return S})};
at.prototype.branch=function(f){var S=new at;WE(this,S.callback,S.errback,S);f&&(S.parent_=this,this.branches_++);return S};
at.prototype.isError=function(f){return f instanceof Error};
var Ho6=function(f){return ZX(f.sequence_,function(S){return typeof S[1]==="function"})},dvN={},Jxo=function(f){if(f.unhandledErrorId_&&f.fired_&&Ho6(f)){var S=f.unhandledErrorId_,B=qI8[S];
B&&(_.S1.clearTimeout(B.JSC$8065_id_),delete qI8[S]);f.unhandledErrorId_=0}f.parent_&&(f.parent_.branches_--,delete f.parent_);S=f.result_;for(var G=B=!1;f.sequence_.length&&!f.blocked_;){var g=f.sequence_.shift(),b=g[0],z=g[1];g=g[2];if(b=f.hadError_?z:b)try{var X=b.call(g||f.defaultScope_,S);X===dvN&&(X=void 0);X!==void 0&&(f.hadError_=f.hadError_&&(X==S||f.isError(X)),f.result_=S=X);if(t06(S)||typeof _.S1.Promise==="function"&&S instanceof _.S1.Promise)G=!0,f.blocked_=!0}catch(w){S=w,f.hadError_=
!0,Ho6(f)||(B=!0)}}f.result_=S;G&&(X=(0,_.$A)(f.continue_,f,!0),G=(0,_.$A)(f.continue_,f,!1),S instanceof at?(WE(S,X,G),S.blocking_=!0):S.then(X,G));B&&(S=new $vv(S),qI8[S.JSC$8065_id_]=S,f.unhandledErrorId_=S.JSC$8065_id_)},PB6=function(){_.fM.call(this)};
_.Rm(PB6,_.fM);PB6.prototype.message="Deferred has already fired";PB6.prototype.name="AlreadyCalledError";var yD=function(){_.fM.call(this)};
_.Rm(yD,_.fM);yD.prototype.message="Deferred was canceled";yD.prototype.name="CanceledError";var $vv=function(f){this.JSC$8065_id_=_.S1.setTimeout((0,_.$A)(this.throwError,this),0);this.JSC$8065_error_=f};
$vv.prototype.throwError=function(){delete qI8[this.JSC$8065_id_];throw this.JSC$8065_error_;};
var qI8={};var Q$X={1:"NativeMessagingTransport"},YIv=["pu","lru","pru","lpu","ppu"],j$m=function(){for(var f=10,S=rxX,B=S.length,G="";f-- >0;)G+=S.charAt(Math.floor(Math.random()*B));return G},rxX="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var cE=function(f){_.qR.call(this);this.JSC$8068_domHelper_=f||Vq()};
_.Rm(cE,_.qR);cE.prototype.transportType=0;cE.prototype.getWindow=function(){return this.JSC$8068_domHelper_.getWindow()};
cE.prototype.getName=function(){return Q$X[String(this.transportType)]||""};var lX=function(f,S,B,G,g){cE.call(this,B);this.JSC$8071_channel_=f;this.protocolVersion_=g||2;this.peerHostname_=S||"*";this.JSC$8071_eventHandler_=new _.BZ(this);this.maybeAttemptToConnectTimer_=new _.Se(100,this.getWindow());this.oneSidedHandshake_=!!G;this.setupAckReceived_=new at;this.setupAckSent_=new at;this.JSC$8071_connected_=new at;this.endpointId_=j$m();this.peerEndpointId_=null;this.oneSidedHandshake_?Oog(this.JSC$8071_channel_)==1?ioj(this.JSC$8071_connected_,this.setupAckReceived_):
ioj(this.JSC$8071_connected_,this.setupAckSent_):(ioj(this.JSC$8071_connected_,this.setupAckReceived_),this.protocolVersion_==2&&ioj(this.JSC$8071_connected_,this.setupAckSent_));KaX(this.JSC$8071_connected_,this.notifyConnected_,this);this.JSC$8071_connected_.callback(!0);this.JSC$8071_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.Rm(lX,cE);lX.prototype.peerProtocolVersion_=null;lX.prototype.initialized_=!1;lX.prototype.transportType=1;var xvm={};lX.prototype.sendTimerId_=0;
var kWv=function(f){var S=f.event_.data;if(typeof S!=="string")return!1;var B=S.indexOf("|"),G=S.indexOf(":");if(B==-1||G==-1)return!1;var g=S.substring(0,B);B=S.substring(B+1,G);S=S.substring(G+1);if(G=fu[g])return G.xpcDeliver(B,S,f.event_.origin),!0;G=Evg(S)[0];for(var b in fu){var z=fu[b];if(Oog(z)==1&&!z.isConnected()&&B=="tp"&&(G=="SETUP"||G=="SETUP_NTPV2")&&Lam(z,f.event_.origin))return delete fu[z.name],z.name=g,fu[g]=z,z.xpcDeliver(B,S),!0}return!1},nvX=function(f){f.protocolVersion_!=2||
f.peerProtocolVersion_!=null&&f.peerProtocolVersion_!=2||f.send("tp","SETUP_NTPV2,"+f.endpointId_);
f.peerProtocolVersion_!=null&&f.peerProtocolVersion_!=1||f.send("tp","SETUP")},s$X=function(f,S){if(f.protocolVersion_!=2||f.peerProtocolVersion_!=null&&f.peerProtocolVersion_!=2||S!=2){if(f.peerProtocolVersion_!=null&&f.peerProtocolVersion_!=1||S!=1)return;
f.send("tp","SETUP_ACK")}else f.send("tp","SETUP_ACK_NTPV2");f.setupAckSent_.fired_||f.setupAckSent_.callback(!0)},Dv1=function(f,S){S>f.peerProtocolVersion_&&(f.peerProtocolVersion_=S);
f.peerProtocolVersion_==1&&(f.setupAckSent_.fired_||f.oneSidedHandshake_||f.setupAckSent_.callback(!0),f.peerEndpointId_=null)};
_.e=lX.prototype;_.e.connect=function(){var f=this.getWindow(),S=_.Sm(f),B=xvm[S];typeof B!=="number"&&(B=0);B==0&&_.jP(f.postMessage?f:f.document,"message",kWv,!1,lX);xvm[S]=B+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.e.maybeAttemptToConnect_=function(){var f=Oog(this.JSC$8071_channel_)==0;this.oneSidedHandshake_&&f||this.JSC$8071_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),nvX(this))};
_.e.send=function(f,S){var B=this.JSC$8071_channel_.peerWindowObject_;B&&(this.send=function(G,g){var b=this,z=this.JSC$8071_channel_.name;this.sendTimerId_=OT(function(){b.sendTimerId_=0;try{var X=B.postMessage?B:B.document;X.postMessage&&X.postMessage(z+"|"+G+":"+g,b.peerHostname_)}catch(w){}},0)},this.send(f,S))};
_.e.notifyConnected_=function(){var f=this.JSC$8071_channel_,S=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;f.isConnected()||f.connectionDelay_&&f.connectionDelay_.isActive()||(f.state_=2,_.cd(f.connectionDelay_),S!==void 0?(f.connectionDelay_=new _.Qf(f.connectCb_,S),f.connectionDelay_.start()):(f.connectionDelay_=null,f.connectCb_()))};
_.e.disposeInternal=function(){if(this.initialized_){var f=this.getWindow(),S=_.Sm(f),B=xvm[S];xvm[S]=B-1;B==1&&_.qM(f.postMessage?f:f.document,"message",kWv,!1,lX)}this.sendTimerId_&&(_.S1.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.cd(this.JSC$8071_eventHandler_);delete this.JSC$8071_eventHandler_;_.cd(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$8071_connected_.cancel();delete this.JSC$8071_connected_;delete this.send;lX.superClass_.disposeInternal.call(this)};
var Evg=function(f){f=f.split(",");f[1]=f[1]||null;return f};var UvX;_.oI=function(f){if(f.getValues&&typeof f.getValues=="function")return f.getValues();if(typeof Map!=="undefined"&&f instanceof Map||typeof Set!=="undefined"&&f instanceof Set)return Array.from(f.values());if(typeof f==="string")return f.split("");if(_.W9(f)){for(var S=[],B=f.length,G=0;G<B;G++)S.push(f[G]);return S}return _.$v.getValues(f)};
_.IMX=function(f){if(f.getKeys&&typeof f.getKeys=="function")return f.getKeys();if(!f.getValues||typeof f.getValues!="function"){if(typeof Map!=="undefined"&&f instanceof Map)return Array.from(f.keys());if(!(typeof Set!=="undefined"&&f instanceof Set)){if(_.W9(f)||typeof f==="string"){var S=[];f=f.length;for(var B=0;B<f;B++)S.push(B);return S}return _.$v.getKeys(f)}}};
UvX=function(f,S,B){if(f.forEach&&typeof f.forEach=="function")f.forEach(S,B);else if(_.W9(f)||typeof f==="string")Array.prototype.forEach.call(f,S,B);else for(var G=_.IMX(f),g=_.oI(f),b=g.length,z=0;z<b;z++)S.call(B,g[z],G&&G[z],f)};var zk1,mb,RI,trg,CB6,Axm,pd8,ZoL,Nug;
_.uT=function(f,S){this.JSC$8076_domain_=this.userInfo_=this.scheme_="";this.JSC$8076_port_=null;this.fragment_=this.JSC$8076_path_="";this.JSC$8076_ignoreCase_=!1;var B;f instanceof _.uT?(this.JSC$8076_ignoreCase_=S!==void 0?S:f.JSC$8076_ignoreCase_,_.Sz(this,f.scheme_),this.userInfo_=f.userInfo_,_.Bz(this,f.JSC$8076_domain_),_.Ga(this,f.JSC$8076_port_),_.gH(this,f.getPath()),_.ez(this,f.JSC$8076_queryData_.clone()),_.bl(this,f.fragment_)):f&&(B=_.u0(String(f)))?(this.JSC$8076_ignoreCase_=!!S,_.Sz(this,
B[1]||"",!0),this.userInfo_=mb(B[2]||""),_.Bz(this,B[3]||"",!0),_.Ga(this,B[4]),_.gH(this,B[5]||"",!0),_.ez(this,B[6]||"",!0),_.bl(this,B[7]||"",!0)):(this.JSC$8076_ignoreCase_=!!S,this.JSC$8076_queryData_=new _.za(null,this.JSC$8076_ignoreCase_))};
_.uT.prototype.toString=function(){var f=[],S=this.scheme_;S&&f.push(RI(S,CB6,!0),":");var B=this.JSC$8076_domain_;if(B||S=="file")f.push("//"),(S=this.userInfo_)&&f.push(RI(S,CB6,!0),"@"),f.push(_.pL(B).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),B=this.JSC$8076_port_,B!=null&&f.push(":",String(B));if(B=this.getPath())this.JSC$8076_domain_&&B.charAt(0)!="/"&&f.push("/"),f.push(RI(B,B.charAt(0)=="/"?pd8:Axm,!0));(B=this.JSC$8076_queryData_.toString())&&f.push("?",B);(B=this.fragment_)&&f.push("#",RI(B,
Nug));return f.join("")};
_.uT.prototype.resolve=function(f){var S=this.clone(),B=!!f.scheme_;B?_.Sz(S,f.scheme_):B=!!f.userInfo_;B?S.userInfo_=f.userInfo_:B=!!f.JSC$8076_domain_;B?_.Bz(S,f.JSC$8076_domain_):B=f.JSC$8076_port_!=null;var G=f.getPath();if(B)_.Ga(S,f.JSC$8076_port_);else if(B=!!f.JSC$8076_path_){if(G.charAt(0)!="/")if(this.JSC$8076_domain_&&!this.JSC$8076_path_)G="/"+G;else{var g=S.getPath().lastIndexOf("/");g!=-1&&(G=S.getPath().slice(0,g+1)+G)}g=G;if(g==".."||g==".")G="";else if(_.XG(g,"./")||_.XG(g,"/.")){G=
_.Gj(g,"/");g=g.split("/");for(var b=[],z=0;z<g.length;){var X=g[z++];X=="."?G&&z==g.length&&b.push(""):X==".."?((b.length>1||b.length==1&&b[0]!="")&&b.pop(),G&&z==g.length&&b.push("")):(b.push(X),G=!0)}G=b.join("/")}else G=g}B?_.gH(S,G):B=f.JSC$8076_queryData_.toString()!=="";B?_.ez(S,f.JSC$8076_queryData_.clone()):B=!!f.fragment_;B&&_.bl(S,f.fragment_);return S};
_.uT.prototype.clone=function(){return new _.uT(this)};
_.Sz=function(f,S,B){f.scheme_=B?mb(S,!0):S;f.scheme_&&(f.scheme_=f.scheme_.replace(/:$/,""));return f};
_.Bz=function(f,S,B){f.JSC$8076_domain_=B?mb(S,!0):S;return f};
_.Ga=function(f,S){if(S){S=Number(S);if(isNaN(S)||S<0)throw Error("Ua`"+S);f.JSC$8076_port_=S}else f.JSC$8076_port_=null;return f};
_.uT.prototype.getPath=function(){return this.JSC$8076_path_};
_.gH=function(f,S,B){f.JSC$8076_path_=B?mb(S,!0):S;return f};
_.ez=function(f,S,B){S instanceof _.za?(f.JSC$8076_queryData_=S,MrN(f.JSC$8076_queryData_,f.JSC$8076_ignoreCase_)):(B||(S=RI(S,ZoL)),f.JSC$8076_queryData_=new _.za(S,f.JSC$8076_ignoreCase_));return f};
_.ZL=function(f,S,B){f.JSC$8076_queryData_.set(S,B);return f};
_.MR=function(f,S){return f.JSC$8076_queryData_.get(S)};
_.bl=function(f,S,B){f.fragment_=B?mb(S):S;return f};
_.XH=function(f){_.ZL(f,"zx",Aa());return f};
_.NR=function(f,S){return f instanceof _.uT?f.clone():new _.uT(f,S)};
zk1=function(f,S){f instanceof _.uT||(f=_.NR(f));S instanceof _.uT||(S=_.NR(S));return f.resolve(S)};
mb=function(f,S){return f?S?decodeURI(f.replace(/%25/g,"%2525")):decodeURIComponent(f):""};
RI=function(f,S,B){return typeof f==="string"?(f=encodeURI(f).replace(S,trg),B&&(f=f.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),f):null};
trg=function(f){f=f.charCodeAt(0);return"%"+(f>>4&15).toString(16)+(f&15).toString(16)};
CB6=/[#\/\?@]/g;Axm=/[#\?:]/g;pd8=/[#\?]/g;ZoL=/[#\?@]/g;Nug=/#/g;_.za=function(f,S){this.count_=this.keyMap_=null;this.encodedQuery_=f||null;this.JSC$8077_ignoreCase_=!!S};
_.wH=function(f){f.keyMap_||(f.keyMap_=new Map,f.count_=0,f.encodedQuery_&&L6j(f.encodedQuery_,function(S,B){f.add(l0(S),B)}))};
_.e=_.za.prototype;_.e.getCount=function(){_.wH(this);return this.count_};
_.e.add=function(f,S){_.wH(this);this.encodedQuery_=null;f=hV(this,f);var B=this.keyMap_.get(f);B||this.keyMap_.set(f,B=[]);B.push(S);this.count_+=1;return this};
_.e.remove=function(f){_.wH(this);f=hV(this,f);return this.keyMap_.has(f)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(f).length,this.keyMap_.delete(f)):!1};
_.e.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.e.isEmpty=function(){_.wH(this);return this.count_==0};
_.e.containsKey=function(f){_.wH(this);f=hV(this,f);return this.keyMap_.has(f)};
_.e.containsValue=function(f){var S=this.getValues();return _.As(S,f)};
_.e.forEach=function(f,S){_.wH(this);this.keyMap_.forEach(function(B,G){B.forEach(function(g){f.call(S,g,G,this)},this)},this)};
_.e.getKeys=function(){_.wH(this);for(var f=Array.from(this.keyMap_.values()),S=Array.from(this.keyMap_.keys()),B=[],G=0;G<S.length;G++)for(var g=f[G],b=0;b<g.length;b++)B.push(S[G]);return B};
_.e.getValues=function(f){_.wH(this);var S=[];if(typeof f==="string")this.containsKey(f)&&(S=S.concat(this.keyMap_.get(hV(this,f))));else{f=Array.from(this.keyMap_.values());for(var B=0;B<f.length;B++)S=S.concat(f[B])}return S};
_.e.set=function(f,S){_.wH(this);this.encodedQuery_=null;f=hV(this,f);this.containsKey(f)&&(this.count_-=this.keyMap_.get(f).length);this.keyMap_.set(f,[S]);this.count_+=1;return this};
_.e.get=function(f,S){if(!f)return S;f=this.getValues(f);return f.length>0?String(f[0]):S};
_.ur$=function(f,S,B){f.remove(S);B.length>0&&(f.encodedQuery_=null,f.keyMap_.set(hV(f,S),_.aT(B)),f.count_+=B.length)};
_.za.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var f=[],S=Array.from(this.keyMap_.keys()),B=0;B<S.length;B++){var G=S[B],g=_.pL(G);G=this.getValues(G);for(var b=0;b<G.length;b++){var z=g;G[b]!==""&&(z+="="+_.pL(G[b]));f.push(z)}}return this.encodedQuery_=f.join("&")};
_.za.prototype.clone=function(){var f=new _.za;f.encodedQuery_=this.encodedQuery_;this.keyMap_&&(f.keyMap_=new Map(this.keyMap_),f.count_=this.count_);return f};
var hV=function(f,S){S=String(S);f.JSC$8077_ignoreCase_&&(S=S.toLowerCase());return S},MrN=function(f,S){S&&!f.JSC$8077_ignoreCase_&&(_.wH(f),f.encodedQuery_=null,f.keyMap_.forEach(function(B,G){var g=G.toLowerCase();
G!=g&&(this.remove(G),_.ur$(this,g,B))},f));
f.JSC$8077_ignoreCase_=S};
_.za.prototype.extend=function(f){for(var S=0;S<arguments.length;S++)UvX(arguments[S],function(B,G){this.add(G,B)},this)};var Ta=function(f,S){uX.call(this);for(var B=0,G;G=YIv[B];B++)if(G in f&&!/^https?:\/\//.test(f[G]))throw Error("Wa`"+f[G]+"`"+G);this.cfg_=f;this.name=this.cfg_.cn||j$m();this.JSC$8072_domHelper_=S||Vq();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.BZ(this);f.lpu=f.lpu||xNi(this.JSC$8072_domHelper_.getWindow().location.href)+"/robots.txt";f.ppu=f.ppu||xNi(f.pu||"")+"/robots.txt";fu[this.name]=this;Dk7(window,"unload",aMm)||$e(window,"unload",aMm)};
_.Rm(Ta,uX);var yxL=RegExp("^%*tp$"),Wa8=RegExp("^%+tp$");_.e=Ta.prototype;_.e.connectionDelay_=null;_.e.peerWindowDeferred_=null;_.e.transport_=null;_.e.state_=1;_.e.isConnected=function(){return this.state_==2};
_.e.peerWindowObject_=null;_.e.iframeElement_=null;_.e.connect=function(f){this.connectCb_=f||_.d8;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?KaX(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.e.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$8072_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var f=this.iframeElement_.contentWindow;f||(f=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=f}if(!this.peerWindowObject_){if(window==window.top)throw Error("Ya");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$8072_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new lX(this,this.cfg_.ph,this.JSC$8072_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Xa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.e.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.cd(this.transport_);this.connectCb_=this.transport_=null;_.cd(this.connectionDelay_);this.connectionDelay_=null};
_.e.send=function(f,S){if(this.isConnected()){try{var B=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(g){B=!1}if(B){_.og(S)&&(S=(0,_.ET)(S));B=this.transport_;var G=B.send;yxL.test(f)&&(f="%"+f);f=f.replace(/[%:|]/g,encodeURIComponent);G.call(B,f,S)}else this.close()}};
_.e.xpcDeliver=function(f,S,B){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.$A)(this.xpcDeliver,this,f,S,B));else if(Lam(this,B)&&!this.isDisposed()&&this.state_!=3)if(f&&f!="tp")this.isConnected()&&(f=f.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),f=Wa8.test(f)?f.substring(1):f,f=this.getService(f,S))&&(S=Faj(S,f.objectPayload),S!=null&&f.callback(S));else switch(f=this.transport_,B=Evg(S),S=B[1],B[0]){case "SETUP_ACK":Dv1(f,1);f.setupAckReceived_.fired_||f.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":f.protocolVersion_==2&&(Dv1(f,2),f.setupAckReceived_.fired_||f.setupAckReceived_.callback(!0));break;case "SETUP":Dv1(f,1);s$X(f,1);break;case "SETUP_NTPV2":f.protocolVersion_==2&&(B=f.peerProtocolVersion_,Dv1(f,2),s$X(f,2),B!=1&&f.peerEndpointId_==null||f.peerEndpointId_==S||nvX(f),f.peerEndpointId_=S)}};
var Oog=function(f){var S=f.cfg_.role;return typeof S==="number"?S:window.parent==f.peerWindowObject_?1:0},Lam=function(f,S){var B=f.cfg_.ph;
return _.bK(S==null?"":String(S))||_.bK(B==null?"":String(B))||S==f.cfg_.ph};
Ta.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete fu[this.name];_.cd(this.peerLoadHandler_);delete this.peerLoadHandler_;Ta.superClass_.disposeInternal.call(this)};
var aMm=function(){for(var f in fu)_.cd(fu[f])},fu={};var lMm=function(f,S){this.JSC$8086_win=f;this.allowAdsHttpEndpoint=S;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$8086_domHelper=Vq(f);this.scrollManager=new wdv(f);this.accessibilityManager=new boL(f);cxj(this)},cxj=function(f){var S=function(){f.allowAdsPopup&&f.allowAdsPopup.style.setProperty("display","none","important");
f.wallElement.style.setProperty("display","","important");mv$(f.accessibilityManager);XdX(f.accessibilityManager,f.wallElement.querySelector(".fc-dialog-container"),!1,!1,f.wallElement.querySelector(".fc-button-whitelist"));var g=f.scrollManager;g.JSC$8044_domHelper.JSC$7371_document_.body.style.overflow=g.originalBodyOverflow};
f.allowAdsPopup=f.JSC$8086_domHelper.JSC$7373_createDom("DIV",{"class":"fc-whitelist-root"});f.allowAdsPopup.style.setProperty("display","none","important");f.JSC$8086_domHelper.appendChild(f.JSC$8086_domHelper.JSC$7371_document_.body,f.allowAdsPopup);var B=f.JSC$8086_domHelper.JSC$7373_createDom("DIV",{"class":"fc-dialog-overlay"});f.JSC$8086_domHelper.appendChild(f.allowAdsPopup,B);var G=f.JSC$8086_domHelper.JSC$7373_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:S});f.JSC$8086_domHelper.appendChild(f.allowAdsPopup,
G);B=f.JSC$8086_domHelper.JSC$7373_createDom("IFRAME");B.className="fc-whitelist-dialog";B.frameBorder="0";B.id="fc-whitelist-iframe";B.tabIndex="0";_.x6(B,f.allowAdsHttpEndpoint);f.JSC$8086_domHelper.appendChild(G,B);G={};G.pu=_.RP(f.allowAdsHttpEndpoint).toString();G.tp=1;G.cn="fc-whitelist-channel";G.ifrid=B.id;G.osh=!0;f.allowAdsCrossPageChannel=new Ta(G);f.allowAdsCrossPageChannel.registerService("close",S);f.allowAdsCrossPageChannel.registerService("refresh",function(){f.JSC$8086_win.location.reload()});
f.allowAdsCrossPageChannel.registerService("resize",function(g){if(g){var b=f.allowAdsPopup.querySelector(".fc-whitelist-dialog");g.width&&b.style.setProperty("width",g.width,"important");g.height&&b.style.setProperty("height",g.height,"important")}},!0);
f.allowAdsCrossPageChannel.connect()};
lMm.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$8086_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var FH=window,V6=document,fLj=FH.location,oAi=function(){},Sbv=/\[native code\]/,JV=function(f,S,B){return f[S]=f[S]||B},Bjm=function(f){f=f.sort();
for(var S=[],B=void 0,G=0;G<f.length;G++){var g=f[G];g!=B&&S.push(g);B=g}return S},Pz=function(){var f;
if((f=Object.create)&&Sbv.test(f))f=f(null);else{f={};for(var S in f)f[S]=void 0}return f},vz=JV(FH,"gapi",{});var Ku={};Ku=JV(FH,"___jsl",Pz());JV(Ku,"I",0);JV(Ku,"hel",10);var GS8=function(){var f=fLj.href;if(Ku.dpo)var S=Ku.h;else{S=Ku.h;var B=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),G=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(f=f&&(B.exec(f)||G.exec(f)))try{S=decodeURIComponent(f[2])}catch(g){}}return S},gAN=function(f){var S=JV(Ku,"PQ",[]);
Ku.PQ=[];var B=S.length;if(B===0)f();else for(var G=0,g=function(){++G===B&&f()},b=0;b<B;b++)S[b](g)},eeg=function(f){return JV(JV(Ku,"H",Pz()),f,Pz())};var dH=function(f){this.JSC$8088_obj_=f};
dH.prototype.value=function(){return this.JSC$8088_obj_};
dH.prototype.getWidth=function(){return this.JSC$8088_obj_.width};
dH.prototype.getHeight=function(){return this.JSC$8088_obj_.height};
dH.prototype.getStyle=function(){return this.JSC$8088_obj_.style};var bS6=function(f){this.JSC$8091_obj_=f||{}};
_.e=bS6.prototype;_.e.value=function(){return this.JSC$8091_obj_};
_.e.setUrl=function(f){this.JSC$8091_obj_.url=f;return this};
_.e.getUrl=function(){return this.JSC$8091_obj_.url};
_.e.getStyle=function(){return this.JSC$8091_obj_.style};
_.e.setId=function(f){this.JSC$8091_obj_.id=f;return this};
_.e.getId=function(){return this.JSC$8091_obj_.id};
_.e.getContext=function(){return this.JSC$8091_obj_.context};
var mRN=function(f){f.JSC$8091_obj_.attributes=f.JSC$8091_obj_.attributes||{};return new dH(f.JSC$8091_obj_.attributes)};var zem=function(){bS6.apply(this,arguments)};
_.q(zem,bS6);var ReL=JV(Ku,"perf",Pz());JV(ReL,"g",Pz());var Xvj=JV(ReL,"i",Pz());JV(ReL,"r",[]);Pz();Pz();var heg=function(f,S,B){S&&S.length>0&&(S=wvL(S),B&&B.length>0&&(S+="___"+wvL(B)),S.length>28&&(S=S.substr(0,28)+(S.length-28)),B=S,S=JV(Xvj,"_p",Pz()),JV(S,B,Pz())[f]=(new Date).getTime(),S=ReL.r,typeof S==="function"?S(f,"_p",B):S.push([f,"_p",B]))},wvL=function(f){return f.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var Tjg=Pz(),Fom=[],il=function(f){throw Error("Za`"+f);};
Fom.push(["jsl",function(f){for(var S in f)if(Object.prototype.hasOwnProperty.call(f,S)){var B=f[S];typeof B=="object"?Ku[S]=JV(Ku,S,[]).concat(B):JV(Ku,S,B)}if(S=f.u)f=JV(Ku,"us",[]),f.push(S),(S=/^https:(.*)$/.exec(S))&&f.push("http:"+S[1])}]);
var VI$=/^(\/[a-zA-Z0-9_\-]+)+$/,Ja1=[/\/amp\//,/\/amp$/,/^\/amp$/],P5m=/^[a-zA-Z0-9\-_\.,!]+$/,vA$=/^gapi\.loaded_[0-9]+$/,Kom=/^[a-zA-Z0-9,._-]+$/,qbg=function(f,S,B,G,g){var b=f.split(";"),z=b.shift(),X=Tjg[z],w=null;X?w=X(b,S,B,G):il("no hint processor for: "+z);w||il("failed to generate load url");S=w;B=S.match(dR$);(G=S.match(iS1))&&G.length===1&&HSg.test(S)&&B&&B.length===1||il("failed sanity: "+f);try{f="?";if(g&&g.length>0){B7(g);var F=g.join(",");w=w+"?le="+F;f="&"}if(Ku.rol){var V=Ku.ol;
V&&V.length&&(w=""+w+f+"ol="+V.length)}}catch(J){}return w},YbX=function(f,S,B,G){f=$R1(f);
vA$.test(B)||il("invalid_callback");S=QKm(S);G=G&&G.length?QKm(G):null;var g=function(b){return encodeURIComponent(b).replace(/%2C/g,",")};
return[encodeURIComponent(f.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",g(f.version),"/m=",g(S),G?"/exm="+g(G):"","/rt=j/sv=1/d=1/ed=1",f.activeMods?"/am="+g(f.activeMods):"",f.resourceSig?"/rs="+g(f.resourceSig):"",f.zcms?"/t="+g(f.zcms):"","/cb=",g(B)].join("")},$R1=function(f){f.charAt(0)!=="/"&&il("relative path");
for(var S=f.substring(1).split("/"),B=[];S.length;){f=S.shift();if(!f.length||f.indexOf(".")==0)il("empty/relative directory");else if(f.indexOf("=")>0){S.unshift(f);break}B.push(f)}f={};for(var G=0,g=S.length;G<g;++G){var b=S[G].split("="),z=decodeURIComponent(b[0]),X=decodeURIComponent(b[1]);b.length==2&&z&&X&&(f[z]=f[z]||X)}S="/"+B.join("/");VI$.test(S)||il("invalid_prefix");B=0;for(G=Ja1.length;B<G;++B)Ja1[B].test(S)&&il("invalid_prefix");B=ram(f,"k",!0);G=ram(f,"am");g=ram(f,"rs");f=ram(f,"t");
return{pathPrefix:S,version:B,activeMods:G,resourceSig:g,zcms:f}},QKm=function(f){for(var S=[],B=0,G=f.length;B<G;++B){var g=f[B].replace(/\./g,"_").replace(/-/g,"_");
Kom.test(g)&&S.push(g)}return S.join(",")},ram=function(f,S,B){f=f[S];
!f&&B&&il("missing: "+S);if(f){if(P5m.test(f))return f;il("invalid: "+S)}return null},HSg=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,iS1=/\/cb=/g,dR$=/\/\//g;
Tjg.m=function(f,S,B,G){(f=f[0])||il("missing_hint");return"https://apis.google.com"+YbX(f,S,B,G)};
var jKv=decodeURI("%73cript"),OS8=/^[-+_0-9\/A-Za-z]+={0,2}$/,xR6=function(f,S){for(var B=[],G=0;G<f.length;++G){var g=f[G],b;if(b=g){a:{for(b=0;b<S.length;b++)if(S[b]===g)break a;b=-1}b=b<0}b&&B.push(g)}return B},EAg=function(){var f=Ku.nonce;
return f!==void 0?f&&f===String(f)&&f.match(OS8)?f:Ku.nonce=null:V6.querySelector?(f=V6.querySelector("script[nonce]"))?(f=f.nonce||f.getAttribute("nonce")||"",f&&f===String(f)&&f.match(OS8)?Ku.nonce=f:Ku.nonce=null):null:null},nAm=function(f){if(V6.readyState!="loading")Lo6(f);
else{var S=EAg(),B="";S!==null&&(B=' nonce="'+S+'"');f="<"+jKv+' src="'+encodeURI(f)+'"'+B+"></"+jKv+">";V6.write(kS$?kS$.createHTML(f):f)}},Lo6=function(f){var S=V6.createElement(jKv);
S.setAttribute("src",kS$?kS$.createScriptURL(f):f);f=EAg();f!==null&&S.setAttribute("nonce",f);S.async="true";(f=V6.getElementsByTagName(jKv)[0])?f.parentNode.insertBefore(S,f):(V6.head||V6.body||V6.documentElement).appendChild(S)},DR7=function(f,S,B){sK1(function(){var G=S===GS8()?JV(vz,"_",Pz()):Pz();
G=JV(eeg(S),"_",G);f(G)},B)},buN=function(f,S){var B=S||{};
typeof S=="function"&&(B={},B.callback=S);var G=(S=B)&&S._c;if(G)for(var g=0;g<Fom.length;g++){var b=Fom[g][0],z=Fom[g][1];z&&Object.prototype.hasOwnProperty.call(G,b)&&z(G[b],f,S)}S=[];f?S=f.split(":"):B.features&&(S=B.features);if(!(f=B.h)&&(f=GS8(),!f))throw Error("$a");ILN(S||[],B,f)},ILN=function(f,S,B){f=Bjm(f)||[];
var G=S.callback,g=S.config,b=S.timeout,z=S.ontimeout,X=S.onerror,w=void 0;typeof X=="function"&&(w=X);var F=null,V=!1;if(b&&!z||!b&&z)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";X=JV(eeg(B),"r",[]).sort();var J=JV(eeg(B),"L",[]).sort(),P=Ku.le||[],d=[].concat(X),Q=function(t,M){if(V)return 0;FH.clearTimeout(F);J.push.apply(J,x);var a=((vz||{}).config||{}).update;a?a(g):g&&JV(Ku,"cu",[]).push(g);if(M){heg("me0",t,d);try{DR7(M,B,w)}finally{heg("me1",t,d)}}return 1};
b>0&&(F=FH.setTimeout(function(){V=!0;z()},b));
var x=xR6(f,J);if(x.length){x=xR6(f,X);var E=JV(Ku,"CP",[]),U=E.length;E[U]=function(t){if(!t)return 0;heg("ml1",x,d);var M=function(l){E[U]=null;Q(x,t)&&gAN(function(){G&&G();l()})},a=function(){var l=E[U+1];
l&&l()};
U>0&&E[U-1]?E[U]=function(){M(a)}:M(a)};
if(x.length){var A="loaded_"+Ku.I++;vz[A]=function(t){E[U](t);vz[A]=null};
f=qbg(B,x,"gapi."+A,X,P);X.push.apply(X,x);heg("ml0",x,d);S.sync||FH.___gapisync?nAm(f):Lo6(f)}else E[U](oAi)}else Q(x)&&G&&G()},UR7;
var C5N=null,pvN=_.S1.trustedTypes;if(pvN&&pvN.createPolicy){try{C5N=pvN.createPolicy("goog#gapi",{createHTML:tkN,createScript:tkN,createScriptURL:tkN})}catch(f){_.S1.console&&_.S1.console.error(f.message)}UR7=C5N}else UR7=C5N;var kS$=UR7,sK1=function(f,S){if(Ku.hee&&Ku.hel>0)try{return f()}catch(B){S&&S(B),Ku.hel--,buN("debug_error",function(){try{window.___jsl.hefn(B)}catch(G){throw B;}})}else try{return f()}catch(B){throw S&&S(B),B;
}},AaX=vz.load;
AaX&&JV(Ku,"ol",[]).push(AaX);vz.load=function(f,S){return sK1(function(){return buN(f,S)})};var tpj;var Nji=function(f,S){this.serviceId_=f;this.moduleId_=S||null};
Nji.prototype.toString=function(){return this.serviceId_};
Nji.prototype.getModuleId=function(){return this.moduleId_};var yEQ=new Nji("MpJwZc","MpJwZc");var cEW=new _.vE("a"),Wmx=function(f,S,B){_.K8.call(this,f,S);this.node=S;this.kind=B};
_.q(Wmx,_.K8);var MIm=function(){this.JSC$8104_keys_={};this.urlPrefix_="";this.JSC$8104_queryData_={}};
MIm.prototype.toString=function(){var f=this.urlPrefix_+ZSo(this),S=_.hY(this.JSC$8104_queryData_),B="";S!=""&&(B="?"+S);return f+B};
var tIi=function(f){f=Hz(f,"md");return!!f&&f!=="0"},ZSo=function(f){var S=[],B=(0,_.$A)(function(G){this.JSC$8104_keys_[G]!==void 0&&S.push(G+"="+this.JSC$8104_keys_[G])},f);
tIi(f)?(B("md"),B("k"),B("ck"),B("am"),B("rs"),B("gssmodulesetproto"),B("slk"),B("dti")):(B("sdch"),B("k"),B("ck"),B("am"),B("rt"),"d"in f.JSC$8104_keys_||qi(f,"d","0"),B("d"),B("exm"),B("excm"),(f.JSC$8104_keys_.excm||f.JSC$8104_keys_.exm)&&S.push("ed=1"),B("im"),B("dg"),B("sm"),Hz(f,"br")!="1"&&Hz(f,"br")!="0"||B("br"),B("br-d"),Hz(f,"rb")=="1"&&B("rb"),Hz(f,"zs")!=="0"&&B("zs"),u9m(f)!==""&&B("wt"),B("gssmodulesetproto"),B("ujg"),B("sp"),B("rs"),B("cb"),B("ee"),B("slk"),B("dti"),B("m"));return S.join("/")},
Hz=function(f,S){return f.JSC$8104_keys_[S]?f.JSC$8104_keys_[S]:null},qi=function(f,S,B){B?f.JSC$8104_keys_[S]=B:delete f.JSC$8104_keys_[S]},aL6=function(f,S){f.urlPrefix_=S},ya$=function(f,S){S&&S.length>0?(S.sort(),qi(f,"exm",S.join(","))):qi(f,"exm",null)},WoL=function(f,S){S&&S.length>0?(S.sort(),qi(f,"excm",S.join(","))):qi(f,"excm",null)},cai=function(f){return(f=Hz(f,"m"))?f.split(","):[]},u9m=function(f){switch(Hz(f,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},lLL=function(f,S){var B=Object.keys(S).filter(function(G){return!!Object.keys(S[G]).length}).map(function(G){var g=Object.keys(S[G]);
g.length>1&&g.sort();return G+":"+g.join(",")});
B.sort();qi(f,"ee",B.join(";"))},Up9=function(f){var S=Hz(f,"ee");
if(!S)return{};f={};S=_.m(S.split(";"));for(var B=S.next();!B.done;B=S.next()){var G=_.m(B.value.split(":"));B=G.next().value;G=G.next().value;f[B]={};G=_.m(G.split(","));for(var g=G.next();!g.done;g=G.next())f[B][g.value]=!0}return f},fxL=function(f){delete f.JSC$8104_keys_.m;
delete f.JSC$8104_keys_.exm;delete f.JSC$8104_keys_.ed};
MIm.prototype.clone=function(){var f=new MIm;f.JSC$8104_keys_=Object.assign({},this.JSC$8104_keys_);f.urlPrefix_=this.urlPrefix_;f.JSC$8104_queryData_=Object.assign({},this.JSC$8104_queryData_);return f};
var C0K=function(f,S){S=S===void 0?!0:S;var B=opm(f),G=new MIm,g=_.u0(B)[5];_.$v.forEach(Sv7,function(z){var X=g.match("/"+z+"=([^/]+)");X&&qi(G,z,X[1])});
var b="";b=f.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";aL6(G,f.substr(0,f.indexOf(b)+b.length));if(!S)return G;(f=_.u0(B)[6]||null)&&L6j(f,function(z,X){G.JSC$8104_queryData_[z]=X});
return G},sjx=function(f){f=_.Xl(opm(f));
return f===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(f)?/\/k=/.test(f):!1},opm=function(f){return f.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?f.substr(65):f},Sv7={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"},BAm=RegExp("^loaded_(g|h)?[_\\d]+$");_.$_=function(f){this.JSC$8116_id_=f;this.opts={}};
_.$_.prototype.JSC$8118_setLabel=function(f){this.label_=f||void 0;return this};
_.$_.prototype.addUploadMetadata=function(f,S){var B=this.opts.data||{};B[f]=S;this.opts.data=B;return this};
var G16=function(f){var S=_.$v.filter(f.opts,function(B){return B!==null});
S=_.$v.isEmpty(S)?null:S;f=[f.JSC$8116_id_,f.label_,S];S=PKQ(f);return f=f.slice(0,S+1)};
_.$_.prototype.toString=function(){var f=G16(this);return"("+_.Yv(f,function(S){return JSON.stringify(S)}).join(",")+")"};
_.$_.prototype.getId=function(){return this.JSC$8116_id_};
_.$_.prototype.getOptions=function(){return _.$v.clone(this.opts)};var Q6=function(){_.$_.call(this,"image-search")};
_.q(Q6,_.$_);Q6.prototype.setSize=function(f){this.opts.imgsz=f;return this};
Q6.prototype.JSC$8118_setLabel=function(f){_.$_.prototype.JSC$8118_setLabel.call(this,f);return this};
Q6.prototype.addUploadMetadata=function(f,S){_.$_.prototype.addUploadMetadata.call(this,f,S);return this};var Y_=function(){_.$_.call(this,"maps")};
_.q(Y_,_.$_);Y_.prototype.setZoom=function(f){this.opts.zoom=f;return this};
Y_.prototype.JSC$8118_setLabel=function(f){_.$_.prototype.JSC$8118_setLabel.call(this,f);return this};
Y_.prototype.addUploadMetadata=function(f,S){_.$_.prototype.addUploadMetadata.call(this,f,S);return this};_.rH=function(){_.$_.call(this,"photos")};
_.q(_.rH,_.$_);_.rH.prototype.JSC$8118_setLabel=function(f){_.$_.prototype.JSC$8118_setLabel.call(this,f);return this};
_.rH.prototype.addUploadMetadata=function(f,S){_.$_.prototype.addUploadMetadata.call(this,f,S);return this};var jz=function(){_.$_.call(this,"url")};
_.q(jz,_.$_);var gp8=function(){var f=new jz;f.opts.type="video";f.opts.site="youtube.com";return f};
jz.prototype.JSC$8118_setLabel=function(f){_.$_.prototype.JSC$8118_setLabel.call(this,f);return this};
jz.prototype.addUploadMetadata=function(f,S){_.$_.prototype.addUploadMetadata.call(this,f,S);return this};var OE=function(){_.$_.call(this,"video-search")};
_.q(OE,_.$_);var evi=function(){var f=new OE;f.opts.site="youtube.com";return f};
OE.prototype.JSC$8118_setLabel=function(f){_.$_.prototype.JSC$8118_setLabel.call(this,f);return this};
OE.prototype.addUploadMetadata=function(f,S){_.$_.prototype.addUploadMetadata.call(this,f,S);return this};var bjN=function(){_.$_.call(this,"web")};
_.q(bjN,_.$_);bjN.prototype.JSC$8118_setLabel=function(f){_.$_.prototype.JSC$8118_setLabel.call(this,f);return this};
bjN.prototype.addUploadMetadata=function(f,S){_.$_.prototype.addUploadMetadata.call(this,f,S);return this};var x_=function(){this.items_=[];this.opts={}},m9m=function(f){switch(f){case "image-search":return new Q6;
case "maps":return new Y_;case "photos":return new _.rH;case "url":return new jz;case "video-search":return new OE;case "web":return new bjN}return new _.$_(f)};
x_.prototype.addView=function(f){this.items_.push(typeof f==="string"?m9m(f):f);return this};
var zvX=function(f){return"("+_.Yv(f.items_,function(S){return S.toString()}).join(",")+")"};
x_.prototype.toString=function(){return zvX(this)};
x_.prototype.getViews=function(f,S){S=S===void 0?[]:S;for(var B=this.items_,G=0;G<B.length;G++){var g=B[G];g instanceof x_?g.getViews(f,S):g.getId()==f&&S.push(g)}return S};
x_.prototype.getOptions=function(){return _.$v.clone(this.opts)};var nS=function(f){this.basePickerUrl_=f||"https://docs.google.com/picker";this.nav_=new x_};
nS.prototype.nav_=null;nS.prototype.addView=function(f){this.nav_.addView(f);return this};
nS.prototype.getBaseUrl=function(){return this.basePickerUrl_};
nS.prototype.getViews=function(f){return this.nav_.getViews(f)};
_.Rv7=function(f,S){f.callback_=S;return f};var XW$=new Map;XW$.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");XW$.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");XW$.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var wW$=new Set;wW$.add("application/vnd.google-apps.kix");wW$.add("application/vnd.google-apps.ritz");wW$.add("application/vnd.google-apps.punch");var qvg=function(f,S,B){var G=B&&_.n4(B,1);B=hvN(B);var g=f[0].getId();switch(_.sH(g,2)){case 13:return TAv(f,S,G,B);case 3:return F8m(f,S,G,B);case 10:return Vpg(f,S,G,B);case 27:return Vpg(f,S,G,B);case 12:return JjX(f,S);case 2:return Pvj(f,S,G,B);case 5:return vp$(f,S,G,B);case 9:return K88(f,S,G,B);case 6:return d9i(f,S,G,B);case 25:return ijg(f,S,G,B);case 1:return _.qa(f[0],av7,26)?Hj1(f,S,G,B):Vpg(f,S,G,B);default:return{}}},d9i=function(f,S,B,G){f=f.map(function(g){return{id:g.getId().getId(),
serviceId:"youtube",name:g.getName(),description:_.n4(g,3),type:EE(g),lastEditedUtc:_.uLX(_.BU(g,_.MV,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:g.getUrl(),embedUrl:_.n4(g,13),thumbnails:Lu(ot(g))}});
return{action:S,docs:f,viewToken:G,view:B||"youtube",v2Translated:!0}},Pvj=function(f,S,B,G){var g=f.map(function(b){var z=b.getId().getId(),X=_.n4(b,7),w=b.getName(),F=EE(b),V=_.uLX(_.BU(b,_.MV,12)).getTime(),J=b.getUrl(),P=Number(bZV(b)),d=_.n4(b,3),Q=_.n4(b,11),x=Lu(ot(b));
var E=_.BU(b,SA,21);E=_.EH(E,1);var U=_.BU(b,SA,21);U=_.n4(U,10);var A=_.n4(b,13);var t=_.BU(b,SA,21);t=_.EH(t,9);var M=_.BU(b,SA,21);M=_.n4(M,11);z={id:z,serviceId:"docs",mimeType:X,name:w,type:F,lastEditedUtc:V,url:J,sizeBytes:P,description:d,iconUrl:Q,thumbnails:x,isShared:E,downloadUrl:U,embedUrl:A,copyable:t,resourceKey:M};X=_.BU(b,SA,21);_.EH(X,12)&&(z.uploadState="success",z.isNew=!0);X=_.BU(b,SA,21);_.qa(X,cq,3)&&(b=_.BU(b,SA,21),b=_.BU(b,cq,3),_.qa(b,ym,2)&&(X=LS(b.getDuration().getSeconds()),
w=b.getDuration(),w=_.Bv(w,2),z.duration=X+w/1E9),z.aspectRatio=b.getAspectRatio());return z});
return{action:S,docs:g,viewToken:G,view:B||"all",extraUserInputs:$9$(f),v2Translated:!0}},vp$=function(f,S,B,G){f=f.map(function(g){var b=_.BU(g,Gn8,15);
b=_.BU(b,Wq,1);PD(g,10,Wq,b);return{id:g.getId().getId(),serviceId:"web",mimeType:_.n4(g,7),name:g.getName(),type:EE(g),url:g.getUrl(),description:_.n4(g,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Lu(ot(g))}});
return{action:S,docs:f,viewToken:G,view:B||"image-search",v2Translated:!0}},K88=function(f,S,B,G){f=f.map(function(g){return{serviceId:"url",
name:ot(g)[0].getUrl().split("/").pop(),type:EE(g),mimeType:_.n4(g,7),url:g.getUrl(),description:_.n4(g,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Lu(ot(g))}});
return{action:S,docs:f,viewToken:G,view:B||"url",v2Translated:!0}},Hj1=function(f,S,B,G){f=f.map(function(g){return{id:g.getId().getId(),
serviceId:"picasa",name:g.getName(),type:EE(g),description:_.n4(g,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Lu(ot(g))}});
return{action:S,docs:f,viewToken:G,view:B||"webcam",v2Translated:!0}},Vpg=function(f,S,B,G){return{action:S,
docs:f.map(Q06),viewToken:G,view:Yvi(B||"upload",f),extraUserInputs:$9$(f),v2Translated:!0}},Yvi=function(f,S){return S.some(function(B){var G;
return((G=_.BU(B,l4,30))==null?void 0:_.sH(G,3))===9})?f+"/gmailphotos":f},F8m=function(f,S,B,G){var g=f.map(function(b){var z={id:b.getId().getId(),
serviceId:"picasa",mimeType:_.n4(b,7),name:b.getName(),type:EE(b),lastEditedUtc:_.uLX(_.BU(b,_.MV,12)).getTime(),url:b.getUrl(),sizeBytes:Number(bZV(b)),description:_.n4(b,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Lu(ot(b)),mediaKey:b.getId().getId(),parentId:_.n4(b,4)},X,w=(X=_.BU(b,c1g,18))==null?void 0:_.BU(X,W6i,3);w&&(z.latitude=kW(w,1),z.longitude=kW(w,2));var F;b=(F=_.BU(b,c1g,18))==null?void 0:L4(F,6);F=b!=null?LS(b):void 0;F&&(z.version=
F);return z});
return{action:S,docs:g,viewToken:G,view:B||"photos",extraUserInputs:$9$(f),v2Translated:!0}},TAv=function(f,S,B,G){f=f.map(function(g){return{id:g.getId().getId(),
serviceId:"et",name:ot(g)[0].getUrl().split("/").pop(),description:_.n4(g,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Lu(ot(g),"etjpg")}});
return{action:S,docs:f,viewToken:G,view:B||"et",v2Translated:!0}},ijg=function(f,S,B,G){f=f.map(function(g){var b=g.getId().getId(),z=G["2"];
return{id:b,serviceId:z.type!=="gmail_themes"&&z.parent==="6226252643674576769"?"picasa":"static_themes",name:g.getName(),mimeType:_.n4(g,7),type:EE(g),description:_.n4(g,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:g.getUrl(),embedUrl:g.getUrl(),thumbnails:Lu(ot(g))}});
return{action:S,docs:f,viewToken:G,view:B||"photos",v2Translated:!0}},JjX=function(f,S){f=f.map(function(B){var G=_.BU(B,y1L,27);
G=_.dI(G,1,_.CY,_.SI())[0];return{id:B.getId().getId(),serviceId:"contacts",mimeType:_.n4(B,7),name:B.getName(),description:_.n4(B,3),url:"mailto:"+G,thumbnail:[{url:_.n4(B,11)}],email:G}});
return{action:S,docs:f,view:"contacts",v2Translated:!0}},hvN=function(f){if(!f)return{};
var S=_.n4(f,3);S=S&&JSON.parse(S)||{};return{0:_.n4(f,1),1:_.n4(f,2),2:S}},Lu=function(f,S){S=S===void 0?"":S;
if(!f.length)return null;S=="etjpg"&&(f=f.filter(function(B){return B.getUrl().includes("w1200-h300")}));
return f.map(function(B){return{url:B.getUrl(),height:B.getHeight(),width:B.getWidth(),type:S}})},$9$=function(f){return{isAttachment:f.some(function(S){return _.EH(S,31)})}},Q06=function(f){var S,B={id:(S=f.getId())==null?void 0:S.getId(),
serviceId:rj$(f),mimeType:_.n4(f,7),name:f.getName(),type:EE(f),sizeBytes:Number(bZV(f)),description:_.n4(f,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Lu(ot(f)),isNew:!0};if(S=_.BU(f,l4,30)){B.dataUrl=_.n4(S,1)||null;a:{var G=_.BU(f,l4,30);switch(_.sH(G,3)){case 9:G=_.UH(G,Sum,2,f8);G={remoteRefs:G&&_.n4(G,1)};break a;case 10:case 15:G=_.UH(G,o$m,4,f8);var g=ot(f);G={photo_id:G&&_.n4(G,1),media_key:f.getId().getId(),media_type:_.sH(f,6)===1?1:2,image_url:g&&
g[0].getUrl(),width:g&&String(g[0].getWidth()),height:g&&String(g[0].getHeight())};break a}G=null}B.uploadMetadata=G;B.uploadId=_.n4(S,9)||null;B.uploadState=j0m(S)||null}(G=S&&_.UH(S,o$m,4,f8))&&(B.id=_.n4(G,1));(G=S&&_.UH(S,Be6,5,f8))&&(B.contentId=_.n4(G,1));(G=S&&_.UH(S,lv8,7,f8))&&(B.contentId=_.n4(G,1));(G=S&&_.UH(S,fZo,6,f8))&&(B.contentId=_.n4(G,1));(S==null?void 0:_.sH(S,3))===1&&(B.mediaKey=f.getId().getId());return B},rj$=function(f){var S;
switch(((S=_.BU(f,l4,30))==null?void 0:_.sH(S,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},EE=function(f){switch(_.sH(f,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 _.n4(f,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},j0m=function(f){switch(f==null?void 0:_.sH(f,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 L8X,Oj1,x9$,Epj;_.k11=function(f,S){var B=S||{};S=B.document||document;var G=_.RP(f).toString(),g=(new Qm(S)).createElement("SCRIPT"),b={script_:g,timeout_:void 0},z=new at(Oj1,b),X=null,w=B.timeout!=null?B.timeout:5E3;w>0&&(X=window.setTimeout(function(){x9$(g,!0);z.errback(new Epj(1,"Timeout reached for loading script "+G))},w),b.timeout_=X);
g.onload=g.onreadystatechange=function(){g.readyState&&g.readyState!="loaded"&&g.readyState!="complete"||(x9$(g,B.cleanupWhenDone||!1,X),z.callback(null))};
g.onerror=function(){x9$(g,!0,X);z.errback(new Epj(0,"Error while loading script "+G))};
b=B.attributes||{};_.$v.extend(b,{type:"text/javascript",charset:"UTF-8"});CKm(g,b);_.CC(g,f);L8X(S).appendChild(g);return z};
L8X=function(f){var S=KS("HEAD",f);return S&&S.length!==0?S[0]:f.documentElement};
Oj1=function(){if(this&&this.script_){var f=this.script_;f&&f.tagName=="SCRIPT"&&x9$(f,!0,this.timeout_)}};
x9$=function(f,S,B){B!=null&&_.S1.clearTimeout(B);f.onload=function(){};
f.onerror=function(){};
f.onreadystatechange=function(){};
S&&window.setTimeout(function(){_.Pv(f)},0)};
Epj=function(f,S){var B="Jsloader error (code #"+f+")";S&&(B+=": "+S);_.fM.call(this,B);this.code=f};
_.Rm(Epj,_.fM);var npX=_.f4(["https://apis.google.com/js/api.js"]),s0N=_.Sr(npX),Cvm=function(f,S){var B=!1,G=D98(f,S).then(function(b){B=!0;return b}),g=_.woN(5E3).then(function(){return B?D98(f,S):IxX(S).then(function(b){return U96(b,f)})});
return fa1([G,g])},D98=function(f,S){return pWj(S).then(function(B){return U96(B,f)})},U96=function(f,S){var B=_.Gj(S,"gapi.")?S.slice(5):S;
return f[B]?_.wh(f[B]):new _.TM(function(G,g){var b=OT(function(){g(Error("cb"))},3E4);
f.load(S,{callback:function(){_.S1.clearTimeout(b);G(f[B])},
onerror:function(z){_.S1.clearTimeout(b);g(z)}})})},pWj=function(f){return f.gapi&&f.gapi.load?_.wh(f.gapi):IxX(f)},IxX=function(f){return _.k11(s0N,{document:f.document}).then(function(){return f.gapi})},Ajj=function(){};
Ajj.prototype.load=function(f,S){S=S===void 0?window:S;var B=Date.now();return Cvm(f,S).then(function(G){var g=Date.now();return{library:G,loadStartMs:B,loadEndMs:g}},function(G){throw G instanceof Error?G:Error(String(G));
})};var ens=function(){_.qR.call(this);this.gapiLoader_=new Ajj;this.origin_=null;this.gapiPickerIframeResolver_=_.aa();this.gapiIframesResolver_=_.aa();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.q(ens,_.qR);var NAX=function(f,S){var B=_.U6("gapi.iframes",S);return B?(f=Date.now(),_.wh({library:B,loadStartMs:f,loadEndMs:f})):f.gapiLoader_.load("gapi.iframes",S)},Mpg=function(f,S,B,G,g,b){var z=!1;
z=z===void 0?!1:z;NAX(f,jr(S.ownerDocument)).then(function(X){var w=X.library;f.gapiIframesResolver_.resolve(w);X=f.gapiPickerIframeResolver_;var F=X.resolve,V=z;V=V===void 0?!1:V;var J={};J["host-message-handler"]=B;f.hostMessageHandlerInternal_=J;var P=_.NR(G);P=_.NR(P);P=_.Ga(_.Bz(_.Sz(new _.uT,P.scheme_),P.JSC$8076_domain_),P.JSC$8076_port_).toString();f.origin_=P;P=(new zem).setUrl(G);P.JSC$8091_obj_.where=S;P.JSC$8091_obj_.allowPost=V;P.JSC$8091_obj_.messageHandlers=J;V=_.U6("makeWhiteListIframesFilter",
w)([f.origin_]);P.JSC$8091_obj_.messageHandlersFilter=V;g!=null&&P.setId(g);b!=null&&(P.JSC$8091_obj_.rpctoken=b);V=mRN(P);V.JSC$8088_obj_.style={display:"block","min-width":"100%",width:"1px"};V.JSC$8088_obj_.height="100%";mRN(P).value().allow="camera 'src' "+f.origin_;w=w.getContext().openChild(P.value());F.call(X,w)},function(X){f.gapiIframesResolver_.reject(X);
f.gapiPickerIframeResolver_.reject(X)});
return f.gapiPickerIframeResolver_.promise},ZjL=function(f,S){return _.rX([f.gapiIframesResolver_.promise,
f.gapiPickerIframeResolver_.promise]).then(function(B){var G=_.m(B);B=G.next().value;return(G=G.next().value)?G.send("picker-message-handler",S,void 0,_.U6("makeWhiteListIframesFilter",B)([f.origin_])):_.xe(Error("db"))})};
ens.prototype.disposeInternal=function(){tpo(this);_.qR.prototype.disposeInternal.call(this)};
var tpo=function(f){f.gapiPickerIframeResolver_.promise.then(function(S){S&&(S.unregister("host-message-handler"),delete f.hostMessageHandlerInternal_["host-message-handler"])})};var uE8=function(){this.nextId=0};var yj$=function(f,S){switch(f.action){case "select-contacts":f=ax$(f.contacts);break;case "visibility":f=f.visible;var B=new gX;f=_.p4(B,1,7).setVisible(f);B={};B["iframe-command"]=f.serialize();f=B;break;default:f=null}return f?ZjL(S,f):_.wh()},ax$=function(f){if(!f||f.length==0)return null;
var S=new gX;_.p4(S,1,11);var B=new uE8;f.forEach(function(G){if(G.email){var g=new OH;g=_.oQ(g,2,G.name?G.name:G.email);var b=new y1L;G=_.bYW(b,1,_.su,G.email,_.CY);G=_.SZ(g,27,G);g=G.setId;b=(new aF).setId(":"+(B.nextId++).toString(36));b=_.p4(b,2,12);G=g.call(G,b)}else G=null;G&&PD(S,7,OH,G)});
f={};f["iframe-command"]=S.serialize();return f};_.W8N=function(){if(d$x){var f=/Windows NT ([0-9.]+)/;return(f=f.exec(_.Js()))?f[1]:"0"}return _.KcG?(f=/1[0|1][_.][0-9_.]+/,(f=f.exec(_.Js()))?f[0].replace(/_/g,"."):"10"):u7M?(f=/Android\s+([^\);]+)(\)|;)/,(f=f.exec(_.Js()))?f[1]:""):HqG||qgV||$$Q?(f=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(f=f.exec(_.Js()))?f[1].replace(/_/g,"."):""):""}();var k_;k_=function(f){return(f=f.exec(_.Js()))?f[1]:""};
_.cjm=function(){if(_.P_)return k_(/Firefox\/([0-9.]+)/);if(_.Td||ay||JtN)return EE9;if(_.v_){if(_.kQ()||_.TWQ()){var f=k_(/CriOS\/([0-9.]+)/);if(f)return f}return k_(/Chrome\/([0-9.]+)/)}if(_.k0&&!_.kQ())return k_(/Version\/([0-9.]+)/);if(FjN||VeV){if(f=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.Js()))return f[1]+"."+f[2]}else if(D$W)return(f=k_(/Android\s+([0-9.]+)/))?f:k_(/Version\/([0-9.]+)/);return""}();var lx$=function(){};
_.mG(lx$);lx$.prototype.nextId_=0;_.nu=function(f){return":"+(f.nextId_++).toString(36)};var sE=function(f){_.$o.call(this);this.JSC$8186_dom_=f||Vq();this.JSC$8186_id_=null;this.inDocument_=!1;this.JSC$8186_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.Rm(sE,_.$o);sE.prototype.idGenerator_=lx$.getInstance();sE.prototype.getId=function(){return this.JSC$8186_id_||(this.JSC$8186_id_=_.nu(this.idGenerator_))};
sE.prototype.setId=function(f){this.parent_&&this.parent_.childIndex_&&(_.$v.remove(this.parent_.childIndex_,this.JSC$8186_id_),_.$v.add(this.parent_.childIndex_,f,this));this.JSC$8186_id_=f};
sE.prototype.getElement=function(){return this.JSC$8186_element_};
var DR=function(f){f.googUiComponentHandler_||(f.googUiComponentHandler_=new _.BZ(f));return f.googUiComponentHandler_},ft7=function(f,S){if(f==S)throw Error("eb");
var B;if(B=S&&f.parent_&&f.JSC$8186_id_){B=f.parent_;var G=f.JSC$8186_id_;B=B.childIndex_&&G?_.$v.get(B.childIndex_,G)||null:null}if(B&&f.parent_!=S)throw Error("eb");f.parent_=S;sE.superClass_.setParentEventTarget.call(f,S)};
sE.prototype.setParentEventTarget=function(f){if(this.parent_&&this.parent_!=f)throw Error("fb");sE.superClass_.setParentEventTarget.call(this,f)};
sE.prototype.JSC$8188_createDom=function(){this.JSC$8186_element_=this.JSC$8186_dom_.createElement("DIV")};
sE.prototype.render=function(f){o58(this,f)};
var o58=function(f,S,B){if(f.inDocument_)throw Error("gb");f.JSC$8186_element_||f.JSC$8188_createDom();S?S.insertBefore(f.JSC$8186_element_,B||null):f.JSC$8186_dom_.JSC$7371_document_.body.appendChild(f.JSC$8186_element_);f.parent_&&!f.parent_.inDocument_||f.enterDocument()};
_.e=sE.prototype;_.e.decorate=function(f){if(this.inDocument_)throw Error("gb");if(f&&this.canDecorate(f)){this.wasDecorated_=!0;var S=_.OI(f);this.JSC$8186_dom_&&this.JSC$8186_dom_.JSC$7371_document_==S||(this.JSC$8186_dom_=Vq(f));this.decorateInternal(f);this.enterDocument()}else throw Error("hb");};
_.e.canDecorate=function(){return!0};
_.e.decorateInternal=function(f){this.JSC$8186_element_=f};
_.e.enterDocument=function(){this.inDocument_=!0;S6m(this,function(f){!f.inDocument_&&f.getElement()&&f.enterDocument()})};
_.e.exitDocument=function(){S6m(this,function(f){f.inDocument_&&f.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.e.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);S6m(this,function(f){f.dispose()});
!this.wasDecorated_&&this.JSC$8186_element_&&_.Pv(this.JSC$8186_element_);this.parent_=this.model_=this.JSC$8186_element_=this.childIndex_=this.children_=null;sE.superClass_.disposeInternal.call(this)};
_.e.getModel=function(){return this.model_};
_.e.addChild=function(f,S){var B=this.children_?this.children_.length:0;if(f.inDocument_&&(S||!this.inDocument_))throw Error("gb");if(B<0||B>(this.children_?this.children_.length:0))throw Error("ib");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);f.parent_==this?(_.$v.set(this.childIndex_,f.getId(),f),_.uK(this.children_,f)):_.$v.add(this.childIndex_,f.getId(),f);ft7(f,this);_.Kx1(this.children_,B,0,f);f.inDocument_&&this.inDocument_&&f.parent_==this?(S=this.getContentElement(),
(S.childNodes[B]||null)!=f.getElement()&&(f.getElement().parentElement==S&&S.removeChild(f.getElement()),B=S.childNodes[B]||null,S.insertBefore(f.getElement(),B))):S?(this.JSC$8186_element_||this.JSC$8188_createDom(),B=this.children_?this.children_[B+1]||null:null,o58(f,this.getContentElement(),B?B.JSC$8186_element_:null)):this.inDocument_&&!f.inDocument_&&f.JSC$8186_element_&&f.JSC$8186_element_.parentNode&&f.JSC$8186_element_.parentNode.nodeType==1&&f.enterDocument()};
_.e.getContentElement=function(){return this.JSC$8186_element_};
var S6m=function(f,S){f.children_&&f.children_.forEach(S,void 0)};
sE.prototype.removeChild=function(f,S){if(f){var B=typeof f==="string"?f:f.getId();f=this.childIndex_&&B?_.$v.get(this.childIndex_,B)||null:null;B&&f&&(_.$v.remove(this.childIndex_,B),_.uK(this.children_,f),S&&(f.exitDocument(),f.JSC$8186_element_&&_.Pv(f.JSC$8186_element_)),ft7(f,null))}if(!f)throw Error("jb");return f};_.Rm(W8W,yjN);_.Rm(cjK,yjN);var BgN;var G8L=function(f,S){S?f.setAttribute("role",S):f.removeAttribute("role")},II=function(f,S,B){Array.isArray(B)&&(B=B.join(" "));
var G="aria-"+S;B===""||B==void 0?(BgN||(B={},BgN=(B.atomic=!1,B.autocomplete="none",B.dropeffect="none",B.haspopup=!1,B.live="off",B.multiline=!1,B.multiselectable=!1,B.orientation="vertical",B.readonly=!1,B.relevant="additions text",B.required=!1,B.sort="none",B.busy=!1,B.disabled=!1,B.hidden=!1,B.invalid="false",B)),B=BgN,S in B?f.setAttribute(G,B[S]):f.removeAttribute(G)):f.setAttribute(G,B)};var g5L;_.UE=function(f,S,B){_.$o.call(this);this.target=f;this.handle=S||f;this.limits=B||new D$(NaN,NaN,NaN,NaN);this.JSC$8191_document_=_.OI(f);this.JSC$8191_eventHandler_=new _.BZ(this);_.ha(this,this.JSC$8191_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;_.jP(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=g5L};
_.Rm(_.UE,_.$o);g5L=_.S1.document&&_.S1.document.documentElement&&!!_.S1.document.documentElement.setCapture&&!!_.S1.document.releaseCapture;_.en1=function(f,S){f.hysteresisDistanceSquared_=Math.pow(S,2)};
_.e=_.UE.prototype;_.e.setEnabled=function(f){this.enabled_=f};
_.e.disposeInternal=function(){_.UE.superClass_.disposeInternal.call(this);_.qM(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$8191_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8191_document_.releaseCapture();this.handle=this.target=null};
_.e.startDrag=function(f){var S=f.type=="mousedown";if(!this.enabled_||this.dragging_||S&&(f.event_.button!=0||_.KcG&&f.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new Cu("start",this,f.clientX,f.clientY,f)))this.dragging_=!0,S&&f.preventDefault();else return;else S&&f.preventDefault();S=this.JSC$8191_document_;var B=S.documentElement,G=!this.useSetCapture_;this.JSC$8191_eventHandler_.listen(S,["touchmove","mousemove"],this.handleMove_,
{capture:G,passive:!1});this.JSC$8191_eventHandler_.listen(S,["touchend","mouseup"],this.endDrag,G);this.useSetCapture_?(B.setCapture(!1),this.JSC$8191_eventHandler_.listen(B,"losecapture",this.endDrag)):this.JSC$8191_eventHandler_.listen(jr(S),"blur",this.endDrag);this.scrollTarget_&&this.JSC$8191_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,G);this.clientX=this.startX=f.clientX;this.clientY=this.startY=f.clientY;this.screenX=f.screenX;this.screenY=f.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=Fr(Vq(this.JSC$8191_document_))}};
_.e.endDrag=function(f,S){this.JSC$8191_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8191_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new Cu("end",this,f.clientX,f.clientY,f,bL6(this,this.deltaX),mp$(this,this.deltaY),S||f.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.e.handleMove_=function(f){if(this.enabled_){var S=f.clientX-this.clientX,B=f.clientY-this.clientY;this.clientX=f.clientX;this.clientY=f.clientY;this.screenX=f.screenX;this.screenY=f.screenY;if(!this.dragging_){var G=this.startX-this.clientX,g=this.startY-this.clientY;if(G*G+g*g>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new Cu("start",this,f.clientX,f.clientY,f)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(f);return}}B=zni(this,S,B);S=B.x;B=B.y;this.dragging_&&this.dispatchEvent(new Cu("beforedrag",
this,f.clientX,f.clientY,f,S,B))&&(Rn1(this,f,S,B),f.preventDefault())}};
var zni=function(f,S,B){var G=Fr(Vq(f.JSC$8191_document_));S+=G.x-f.pageScroll.x;B+=G.y-f.pageScroll.y;f.pageScroll=G;f.deltaX+=S;f.deltaY+=B;return new _.ru(bL6(f,f.deltaX),mp$(f,f.deltaY))};
_.UE.prototype.onScroll_=function(f){var S=zni(this,0,0);f.clientX=this.clientX;f.clientY=this.clientY;Rn1(this,f,S.x,S.y)};
var Rn1=function(f,S,B,G){f.target.style.left=B+"px";f.target.style.top=G+"px";f.dispatchEvent(new Cu("drag",f,S.clientX,S.clientY,S,B,G))},bL6=function(f,S){var B=f.limits;
f=isNaN(B.left)?null:B.left;B=isNaN(B.width)?0:B.width;return Math.min(f!=null?f+B:Infinity,Math.max(f!=null?f:-Infinity,S))},mp$=function(f,S){var B=f.limits;
f=isNaN(B.top)?null:B.top;B=isNaN(B.height)?0:B.height;return Math.min(f!=null?f+B:Infinity,Math.max(f!=null?f:-Infinity,S))};
_.UE.prototype.isDragging=function(){return this.dragging_};
var Cu=function(f,S,B,G,g,b,z){_.K8.call(this,f);this.clientX=B;this.clientY=G;this.browserEvent=g;this.left=b!==void 0?b:S.deltaX;this.top=z!==void 0?z:S.deltaY};
_.Rm(Cu,_.K8);var pu=function(f){this.JSC$8198_map_=new Map;var S=arguments.length;if(S>1){if(S%2)throw Error("pa");for(var B=0;B<S;B+=2)this.set(arguments[B],arguments[B+1])}else f&&this.addAll(f)};
_.e=pu.prototype;_.e.getCount=function(){return this.JSC$8198_map_.size};
_.e.getValues=function(){return Array.from(this.JSC$8198_map_.values())};
_.e.getKeys=function(){return Array.from(this.JSC$8198_map_.keys())};
_.e.containsKey=function(f){return this.JSC$8198_map_.has(f)};
_.e.containsValue=function(f){return this.getValues().some(function(S){return S==f})};
_.e.equals=function(f,S){var B=this;S=S===void 0?function(G,g){return G===g}:S;
return this===f?!0:this.JSC$8198_map_.size!=f.getCount()?!1:this.getKeys().every(function(G){return S(B.JSC$8198_map_.get(G),f.get(G))})};
_.e.isEmpty=function(){return this.JSC$8198_map_.size==0};
_.e.clear=function(){this.JSC$8198_map_.clear()};
_.e.remove=function(f){return this.JSC$8198_map_.delete(f)};
_.e.get=function(f,S){return this.JSC$8198_map_.has(f)?this.JSC$8198_map_.get(f):S};
_.e.set=function(f,S){this.JSC$8198_map_.set(f,S);return this};
_.e.addAll=function(f){if(f instanceof pu){f=_.m(f.JSC$8198_map_);for(var S=f.next();!S.done;S=f.next()){var B=_.m(S.value);S=B.next().value;B=B.next().value;this.JSC$8198_map_.set(S,B)}}else if(f)for(f=_.m(Object.entries(f)),S=f.next();!S.done;S=f.next())B=_.m(S.value),S=B.next().value,B=B.next().value,this.JSC$8198_map_.set(S,B)};
_.e.forEach=function(f,S){var B=this;S=S===void 0?this:S;this.JSC$8198_map_.forEach(function(G,g){return f.call(S,G,g,B)})};
_.e.clone=function(){return new pu(this)};(function(){for(var f=["ms","moz","webkit","o"],S,B=0;S=f[B]&&!_.S1.requestAnimationFrame;++B)_.S1.requestAnimationFrame=_.S1[S+"RequestAnimationFrame"],_.S1.cancelAnimationFrame=_.S1[S+"CancelAnimationFrame"]||_.S1[S+"CancelRequestAnimationFrame"];if(!_.S1.requestAnimationFrame){var G=0;_.S1.requestAnimationFrame=function(g){var b=(new Date).getTime(),z=Math.max(0,16-(b-G));G=b+z;return _.S1.setTimeout(function(){g(b+z)},z)};
_.S1.cancelAnimationFrame||(_.S1.cancelAnimationFrame=function(g){clearTimeout(g)})}})();
var Xf6=[[],[]],wfX=0,hnm=!1,Tg1=0,V91=function(f,S){var B=Tg1++,G={measureTask:{id:B,fn:f.measure,context:S},mutateTask:{id:B,fn:f.mutate,context:S},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(G.args||(G.args=[]),G.args.length=0,G.args.push.apply(G.args,arguments),G.args.push(G.state)):G.args&&G.args.length!=0?(G.args[0]=G.state,G.args.length=1):G.args=[G.state];G.isScheduled||(G.isScheduled=!0,Xf6[wfX].push(G));hnm||(hnm=!0,window.requestAnimationFrame(FCN))}},FCN=
function(){hnm=!1;
var f=Xf6[wfX],S=f.length;wfX=(wfX+1)%2;for(var B,G=0;G<S;++G){B=f[G];var g=B.measureTask;B.isScheduled=!1;g.fn&&g.fn.apply(g.context,B.args)}for(G=0;G<S;++G)B=f[G],g=B.mutateTask,B.isScheduled=!1,g.fn&&g.fn.apply(g.context,B.args),B.state={};f.length=0};var JA8=_.f4(["about:blank"]),P0i=_.f4(["javascript:undefined"]),v5N=_.Sr(JA8);_.RP(v5N);var KCv=_.Sr(P0i);_.RP(KCv);var AV=function(f){_.$o.call(this);this.JSC$8204_element_=f;this.listenKeyIn_=_.jP(this.JSC$8204_element_,"focus",this,!0);this.listenKeyOut_=_.jP(this.JSC$8204_element_,"blur",this,!0)};
_.Rm(AV,_.$o);AV.prototype.handleEvent=function(f){var S=new _.dX(f.event_);S.type=f.type=="focusin"||f.type=="focus"?"focusin":"focusout";this.dispatchEvent(S)};
AV.prototype.disposeInternal=function(){AV.superClass_.disposeInternal.call(this);QU(this.listenKeyIn_);QU(this.listenKeyOut_);delete this.JSC$8204_element_};var dp$=function(f,S){this.JSC$8207_element_=f;this.JSC$8207_dom_=S};var Ni=function(f,S){sE.call(this,S);this.useIframeMask_=!!f;this.lastFocus_=null;this.resizeBackgroundTask_=V91({mutate:this.resizeBackground_},this);V91({mutate:this.updateModalAndBackground_},this)};
_.Rm(Ni,sE);_.e=Ni.prototype;_.e.focusHandler_=null;_.e.visible_=!1;_.e.bgEl_=null;_.e.bgIframeEl_=null;_.e.tabCatcherElement_=null;_.e.backwardTabWrapInProgress_=!1;_.e.getCssClass=function(){return"goog-modalpopup"};
_.e.getBackgroundElement=function(){return this.bgEl_};
_.e.JSC$8188_createDom=function(){Ni.superClass_.JSC$8188_createDom.call(this);var f=this.getElement(),S=hs(this.getCssClass()).split(" ");tq(f,S);f.tabIndex=0;_.ta(f,!1);iLm(this);HL8(this)};
var iLm=function(f){if(f.useIframeMask_&&!f.bgIframeEl_){var S=f.JSC$8186_dom_.JSC$7373_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.x6(S,v5N);f.bgIframeEl_=S;f.bgIframeEl_.className=f.getCssClass()+"-bg";_.ta(f.bgIframeEl_,!1);Vmi(f.bgIframeEl_,0)}f.bgEl_||(f.bgEl_=f.JSC$8186_dom_.JSC$7373_createDom("DIV",f.getCssClass()+"-bg"),_.ta(f.bgEl_,!1))},HL8=function(f){f.tabCatcherElement_||(f.tabCatcherElement_=f.JSC$8186_dom_.createElement("SPAN"),_.ta(f.tabCatcherElement_,
!1),f.tabCatcherElement_.tabIndex=0,f.tabCatcherElement_.style.position="absolute")};
_.e=Ni.prototype;_.e.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.e.canDecorate=function(f){return!!f&&f.tagName=="DIV"};
_.e.decorateInternal=function(f){Ni.superClass_.decorateInternal.call(this,f);f=hs(this.getCssClass()).split(" ");tq(this.getElement(),f);iLm(this);HL8(this);this.getElement().tabIndex=0;_.ta(this.getElement(),!1)};
_.e.enterDocument=function(){this.bgIframeEl_&&_.Lb(this.bgIframeEl_,this.getElement());_.Lb(this.bgEl_,this.getElement());Ni.superClass_.enterDocument.call(this);_.kU(this.tabCatcherElement_,this.getElement());this.focusHandler_=new AV(this.JSC$8186_dom_.JSC$7371_document_);DR(this).listen(this.focusHandler_,"focusin",this.onFocus);q6m(this,!1)};
_.e.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.cd(this.focusHandler_);Ni.superClass_.exitDocument.call(this);_.Pv(this.bgIframeEl_);_.Pv(this.bgEl_);_.Pv(this.tabCatcherElement_)};
_.e.setVisible=function(f){if(f!=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_&&q6m(this,f),f){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$8186_dom_.JSC$7371_document_.activeElement}catch(g){}this.updateModalAndBackground_();DR(this).listen(this.JSC$8186_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$8186_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);$pm(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)$e(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){DR(this).unlisten(this.JSC$8186_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$8186_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)$e(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var S=this.JSC$8186_dom_,B=S.JSC$7371_document_.body,G=S.JSC$7371_document_.activeElement||B;if(!this.lastFocus_||this.lastFocus_==B){this.lastFocus_=null;break a}(G==B||S.contains(this.getElement(),G))&&this.lastFocus_.focus()}catch(g){}this.lastFocus_=
null}}};
var q6m=function(f,S){f.modalAriaVisibilityHelper_||(f.modalAriaVisibilityHelper_=new dp$(f.JSC$8186_element_,f.JSC$8186_dom_));f=f.modalAriaVisibilityHelper_;if(S){f.hiddenElements_||(f.hiddenElements_=[]);S=f.JSC$8207_dom_.getChildren(f.JSC$8207_dom_.JSC$7371_document_.body);for(var B=0;B<S.length;B++){var G=S[B],g;if(g=G!=f.JSC$8207_element_)g=G.getAttribute("aria-hidden"),g=!(g==null||g==void 0?0:String(g));g&&(II(G,"hidden",!0),f.hiddenElements_.push(G))}}else if(f.hiddenElements_){for(S=0;S<
f.hiddenElements_.length;S++)f.hiddenElements_[S].removeAttribute("aria-hidden");f.hiddenElements_=null}};
Ni.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var $pm=function(f,S){f.bgIframeEl_&&_.ta(f.bgIframeEl_,S);f.bgEl_&&_.ta(f.bgEl_,S);_.ta(f.getElement(),S);_.ta(f.tabCatcherElement_,S)};
_.e=Ni.prototype;_.e.onShow=function(){this.dispatchEvent("show")};
_.e.onHide=function(){$pm(this,!1);this.dispatchEvent("hide")};
_.e.isVisible=function(){return this.visible_};
_.e.focus=function(){this.focusElement_()};
_.e.resizeBackground_=function(){this.bgIframeEl_&&_.ta(this.bgIframeEl_,!1);this.bgEl_&&_.ta(this.bgEl_,!1);var f=this.JSC$8186_dom_.JSC$7371_document_;var S=_.TW(jr(this.JSC$8186_dom_.JSC$7371_document_)||window);var B=Math.max(S.width,Math.max(f.body.scrollWidth,f.documentElement.scrollWidth));f=Math.max(S.height,Math.max(f.body.scrollHeight,f.documentElement.scrollHeight));this.bgIframeEl_&&(_.ta(this.bgIframeEl_,!0),_.w7N(this.bgIframeEl_,B,f));this.bgEl_&&(_.ta(this.bgEl_,!0),_.w7N(this.bgEl_,
B,f))};
_.e.reposition=function(){var f;if(_.X76(this.getElement())=="fixed")var S=f=0;else S=Fr(this.JSC$8186_dom_),f=S.x,S=S.y;var B=TNg(this.getElement());var G=_.TW(jr(this.JSC$8186_dom_.JSC$7371_document_)||window);f=Math.max(f+G.width/2-B.width/2,0);S=Math.max(S+G.height/2-B.height/2,0);Cb(this.getElement(),f,S);Cb(this.tabCatcherElement_,f,S)};
_.e.onFocus=function(f){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():f.target==this.tabCatcherElement_&&OT(this.focusElement_,0,this)};
_.e.focusElement_=function(){try{this.getElement().focus()}catch(f){}};
_.e.disposeInternal=function(){_.cd(this.popupShowTransition_);this.popupShowTransition_=null;_.cd(this.popupHideTransition_);this.popupHideTransition_=null;_.cd(this.bgShowTransition_);this.bgShowTransition_=null;_.cd(this.bgHideTransition_);this.bgHideTransition_=null;Ni.superClass_.disposeInternal.call(this)};var kA=function(f,S,B){Ni.call(this,S,B);this.JSC$8217_class_=f||"modal-dialog";this.buttons_=(new Mi).addButton(Qj7,!0).addButton(Y6X,!1,!0)};
_.Rm(kA,Ni);_.e=kA.prototype;_.e.escapeToCancel_=!0;_.e.hasTitleCloseButton_=!0;_.e.modal_=!0;_.e.draggable_=!0;_.e.backgroundElementOpacity_=.5;_.e.title_="";_.e.JSC$8219_dragger_=null;_.e.JSC$8219_disposeOnHide_=!1;_.e.titleEl_=null;_.e.titleTextEl_=null;_.e.titleTextId_=null;_.e.titleCloseEl_=null;_.e.contentEl_=null;_.e.buttonEl_=null;_.e.getCssClass=function(){return this.JSC$8217_class_};
_.e.setTitle=function(f){this.title_=f;this.titleTextEl_&&_.sJ(this.titleTextEl_,f)};
_.e.getTitle=function(){return this.title_};
_.e.getContent=function(){return""};
_.e.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var rAo=function(f){f.getElement()||f.render();return f.getElement()};
kA.prototype.getBackgroundElement=function(){this.getElement()||this.render();return kA.superClass_.getBackgroundElement.call(this)};
var jjm=function(f,S){f.backgroundElementOpacity_=S;f.getElement()&&(S=f.getBackgroundElement())&&Vmi(S,f.backgroundElementOpacity_)};
kA.prototype.setDraggable=function(f){this.draggable_=f;OLi(this,f&&this.inDocument_)};
kA.prototype.JSC$8219_handleDrag=function(){};
var OLi=function(f,S){var B=hs(f.JSC$8217_class_+"-title-draggable").split(" ");f.getElement()&&(S?tq(f.titleEl_,B):eQ$(f.titleEl_,B));S&&!f.JSC$8219_dragger_?(S=new _.UE(f.getElement(),f.titleEl_),f.JSC$8219_dragger_=S,tq(f.titleEl_,B),_.jP(f.JSC$8219_dragger_,"start",f.setDraggerLimits_,!1,f),_.jP(f.JSC$8219_dragger_,"drag",f.JSC$8219_handleDrag,!1,f)):!S&&f.JSC$8219_dragger_&&(f.JSC$8219_dragger_.dispose(),f.JSC$8219_dragger_=null)};
_.e=kA.prototype;
_.e.JSC$8188_createDom=function(){kA.superClass_.JSC$8188_createDom.call(this);var f=this.getElement(),S=this.JSC$8186_dom_;this.titleTextId_=this.getId();var B=this.getId()+".contentEl";this.titleEl_=S.JSC$7373_createDom("DIV",this.JSC$8217_class_+"-title",this.titleTextEl_=S.JSC$7373_createDom("SPAN",{className:this.JSC$8217_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=S.JSC$7373_createDom("SPAN",this.JSC$8217_class_+"-title-close"));ZM$(f,this.titleEl_,this.contentEl_=
S.JSC$7373_createDom("DIV",{className:this.JSC$8217_class_+"-content",id:B}),this.buttonEl_=S.JSC$7373_createDom("DIV",this.JSC$8217_class_+"-buttons"));G8L(this.titleTextEl_,"heading");G8L(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;II(this.titleCloseEl_,"label","Close");G8L(f,"dialog");II(f,"labelledby",this.titleTextId_||"");_.ta(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(f=this.buttons_,f.JSC$8220_element_=this.buttonEl_,f.render());_.ta(this.buttonEl_,!!this.buttons_);
jjm(this,this.backgroundElementOpacity_)};
_.e.decorateInternal=function(f){kA.superClass_.decorateInternal.call(this,f);f=this.getElement();var S=this.JSC$8217_class_+"-content";this.contentEl_=YU(document,null,S,f)[0];this.contentEl_||(this.contentEl_=this.JSC$8186_dom_.JSC$7373_createDom("DIV",S),f.appendChild(this.contentEl_));S=this.JSC$8217_class_+"-title";var B=this.JSC$8217_class_+"-title-text",G=this.JSC$8217_class_+"-title-close";(this.titleEl_=YU(document,null,S,f)[0])?(this.titleTextEl_=YU(document,null,B,this.titleEl_)[0],this.titleCloseEl_=
YU(document,null,G,this.titleEl_)[0]):(this.titleEl_=this.JSC$8186_dom_.JSC$7373_createDom("DIV",S),f.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=ej8(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.js("SPAN",{className:B,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;II(f,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.JSC$8186_dom_.JSC$7373_createDom("SPAN",
G),this.titleEl_.appendChild(this.titleCloseEl_));_.ta(this.titleCloseEl_,this.hasTitleCloseButton_);S=this.JSC$8217_class_+"-buttons";(this.buttonEl_=YU(document,null,S,f)[0])?(this.buttons_=new Mi(this.JSC$8186_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$8186_dom_.JSC$7373_createDom("DIV",S),f.appendChild(this.buttonEl_),this.buttons_&&(f=this.buttons_,f.JSC$8220_element_=this.buttonEl_,f.render()),_.ta(this.buttonEl_,!!this.buttons_));jjm(this,this.backgroundElementOpacity_)};
_.e.enterDocument=function(){kA.superClass_.enterDocument.call(this);DR(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);DR(this).listen(this.buttonEl_,"click",this.onButtonClick_);OLi(this,this.draggable_);DR(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var f=this.getElement();G8L(f,"dialog");this.titleTextEl_.id!==""&&II(f,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){f=this.JSC$8186_dom_;
var S=this.getBackgroundElement();f.removeNode(this.bgIframeEl_);f.removeNode(S)}this.isVisible()&&q6m(this,!1)}};
_.e.exitDocument=function(){this.isVisible()&&this.setVisible(!1);OLi(this,!1);kA.superClass_.exitDocument.call(this)};
_.e.setVisible=function(f){f!=this.isVisible()&&(this.inDocument_||this.render(),kA.superClass_.setVisible.call(this,f))};
_.e.onShow=function(){kA.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.e.onHide=function(){kA.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$8219_disposeOnHide_&&this.dispose()};
_.e.setDraggerLimits_=function(){var f=this.JSC$8186_dom_.JSC$7371_document_,S=_.TW(jr(f)||window),B=Math.max(f.body.scrollWidth,S.width);f=Math.max(f.body.scrollHeight,S.height);var G=TNg(this.getElement());_.X76(this.getElement())=="fixed"?this.JSC$8219_dragger_.limits=new D$(0,0,Math.max(0,S.width-G.width),Math.max(0,S.height-G.height)):this.JSC$8219_dragger_.limits=new D$(0,0,B-G.width,f-G.height)};
_.e.onTitleCloseClick_=function(){xp8(this)};
var xp8=function(f){if(f.hasTitleCloseButton_){var S=f.buttons_,B=S&&S.cancelButton_;B?(S=S.get(B),f.dispatchEvent(new ZR(B,S))&&f.setVisible(!1)):f.setVisible(!1)}},E5m=function(f){f.hasTitleCloseButton_=!1;
f.titleCloseEl_&&_.ta(f.titleCloseEl_,f.hasTitleCloseButton_)};
kA.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;kA.superClass_.disposeInternal.call(this)};
kA.prototype.onButtonClick_=function(f){a:{for(f=f.target;f!=null&&f!=this.buttonEl_;){if(f.tagName=="BUTTON")break a;f=f.parentNode}f=null}if(f&&!f.disabled){f=f.name;var S=this.buttons_.get(f);this.dispatchEvent(new ZR(f,S))&&this.setVisible(!1)}};
kA.prototype.onKey_=function(f){var S=!1,B=!1,G=this.buttons_,g=f.target;if(f.type=="keydown")if(this.escapeToCancel_&&f.keyCode==27){var b=G&&G.cancelButton_;g=g.tagName=="SELECT"&&!g.disabled;b&&!g?(B=!0,S=G.get(b),S=this.dispatchEvent(new ZR(b,S))):g||(S=!0)}else{if(f.keyCode==9&&f.shiftKey&&g==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(V){}OT(this.resetBackwardTabWrap_,0,this)}}else if(f.keyCode==13){if(g.tagName=="BUTTON"&&!g.disabled)b=g.name;
else if(g==this.titleCloseEl_)xp8(this);else if(G){var z=G.defaultButton_,X;if(X=z)a:{X=KS("BUTTON",G.JSC$8220_element_);for(var w,F=0;w=X[F];F++)if(w.name==z||w.id==z){X=w;break a}X=null}g=(g.tagName=="TEXTAREA"||g.tagName=="SELECT"||g.tagName=="A")&&!g.disabled;!X||X.disabled||g||(b=z)}b&&G&&(B=!0,S=this.dispatchEvent(new ZR(b,String(G.get(b)))))}else g!=this.titleCloseEl_||f.keyCode!=32&&f.key!=" "||xp8(this);if(S||B)f.stopPropagation(),f.preventDefault();S&&this.setVisible(!1)};
var ZR=function(f,S){this.type="dialogselect";this.key=f;this.caption=S};
_.Rm(ZR,_.K8);var Mi=function(f){pu.call(this);f||Vq();this.cancelButton_=this.JSC$8220_element_=this.defaultButton_=null};
_.Rm(Mi,pu);_.e=Mi.prototype;_.e.clear=function(){pu.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.e.set=function(f,S,B,G){pu.prototype.set.call(this,f,S);B&&(this.defaultButton_=f);G&&(this.cancelButton_=f);return this};
_.e.addButton=function(f,S,B){return this.set(f.key,f.caption,S,B)};
_.e.render=function(){if(this.JSC$8220_element_){_.pC(this.JSC$8220_element_,Rns);var f=Vq(this.JSC$8220_element_);this.forEach(function(S,B){S=f.JSC$7373_createDom("BUTTON",{name:B},S);B==this.defaultButton_&&(S.className="goog-buttonset-default");this.JSC$8220_element_.appendChild(S)},this)}};
_.e.decorate=function(f){if(f&&f.nodeType==1){this.JSC$8220_element_=f;f=KS("BUTTON",this.JSC$8220_element_);for(var S,B,G,g=0;S=f[g];g++)if(B=S.name||S.id,G=ej8(S)||S.value,B){var b=g==0;this.set(B,G,b,S.name=="cancel");b&&_.oa(S,"goog-buttonset-default")}}};
_.e.getElement=function(){return this.JSC$8220_element_};
var Qj7={key:"ok",caption:"OK"},Y6X={key:"cancel",caption:"Cancel"},LC8={key:"yes",caption:"Yes"},k8N={key:"no",caption:"No"},n5$={key:"save",caption:"Save"},sj6={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new Mi).addButton(Qj7,!0,!0),(new Mi).addButton(Qj7,!0).addButton(Y6X,!1,!0),(new Mi).addButton(LC8,!0).addButton(k8N,!1,!0),(new Mi).addButton(LC8).addButton(k8N,!0).addButton(Y6X,!1,!0),(new Mi).addButton(sj6).addButton(n5$).addButton(Y6X,!0,!0));_.Rm(lxN,kA);_.Rm(ft9,nS);var Dpo=_.f4(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),ItN=_.f4(["//apis.google.com/js/rpc.js"]),znM=_.Sr(Dpo),mpN=_.Sr(ItN),S61=null;var sb=function(f,S){_.$o.call(this);this.JSC$8229_element_=f;f=_.aJ(this.JSC$8229_element_)?this.JSC$8229_element_:this.JSC$8229_element_?this.JSC$8229_element_.body:null;this.isRtl_=!!f&&_.J17(f);this.listenKey_=_.jP(this.JSC$8229_element_,_.Fx?"DOMMouseScroll":"mousewheel",this,S)};
_.Rm(sb,_.$o);sb.prototype.handleEvent=function(f){var S=0,B=0,G=f.event_;G.type=="mousewheel"?(f=Up7(-G.wheelDelta),G.wheelDeltaX!==void 0?(S=Up7(-G.wheelDeltaX),B=Up7(-G.wheelDeltaY)):B=f):(f=G.detail,f>100?f=3:f<-100&&(f=-3),G.axis!==void 0&&G.axis===G.HORIZONTAL_AXIS?S=f:B=f);typeof this.maxDeltaX_==="number"&&(S=_.Uy(S,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(B=_.Uy(B,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(S=-S);S=new C0m(f,G,S,B);this.dispatchEvent(S)};
var Up7=function(f){return _.V9&&(_.KcG||iqM)&&f%40!=0?f:f/40};
sb.prototype.disposeInternal=function(){sb.superClass_.disposeInternal.call(this);QU(this.listenKey_);this.listenKey_=null};
var C0m=function(f,S,B,G){_.dX.call(this,S);this.type="mousewheel";this.detail=f;this.deltaX=B;this.deltaY=G};
_.Rm(C0m,_.dX);_.RQ=function(f){var S="instance_";if(f.instance_&&f.hasOwnProperty(S))return f.instance_;S=new f;return f.instance_=S};var bLx;var pfg=_.f4(["https://about:blank"]),AA6=_.f4(['javascript:""']),Ng8=_.f4(["about:blank"]);_.Rm(u5,lxN);_.e=u5.prototype;_.e.JSC$8237_url_="";_.e.JSC$8237_iframe_=null;_.e.iframeLoaded_=!1;_.e.loadedFired_=!1;_.e.callback_=function(){};
_.e.enterDocument=function(){u5.superClass_.enterDocument.call(this);g5G(this.getBackgroundElement(),DR(this))};
_.e.render=function(f){var S=this;u5.superClass_.render.call(this,f);this.useGapi_?NAX(this.iframeManager_,window).then(function(){return M9o(S)}).then(null,function(){S.callback_({action:"error"})}):ZLN(this)};
var M9o=function(f){var S=f.JSC$8186_dom_.JSC$7373_createDom("div",["picker-dialog-content","picker-frame"]);_.ta(S,!1);f.getContentElement().appendChild(S);return Mpg(f.iframeManager_,S,function(B){var G=RBo(B["iframe-command"]);switch(G.getCommand()){case 1:B=f.callback_;G=_.BU(G,Gh,2);var g="";switch(G.getStatus()){case 2:g="cancel";break;case 1:g="picked";break;case 3:g="error"}var b=_.oK(G,OH,2,_.SI(tFK));G=b.length===0?{action:g}:qvg(b,g,_.BU(G,bYN,7));B.call(f,G);f.setVisible(!1);break;case 4:E5m(f);
f.callback_({action:"loaded"});break;case 7:case 8:B=f.callback_;a:{g=G.getCommand();b=_.BU(G,Gh,2);switch(g){case 7:g="uploadScheduled";break;case 8:g="uploadStateChange";break;default:G={};break a}G=_.oK(b,OH,2,_.SI(tFK));if(G.length===0)G={action:g};else{var z=_.BU(b,bYN,7);b=z&&_.n4(z,1);z=hvN(z);G=Vpg(G,g,b,z)}}B.call(f,G)}},f.JSC$8237_url_,f.targetId_,f.rpcToken_).then(function(B){f.JSC$8237_iframe_=B.getIframeEl();
t9L(f);_.ta(f.JSC$8237_iframe_.parentElement,!0);_.oa(f.getElement(),"picker-dialog");uqi(f);return B})},ZLN=function(f){f.JSC$8237_iframe_=f.JSC$8186_dom_.JSC$7373_createDom("IFRAME",{id:f.targetId_,
name:f.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.x6(f.JSC$8237_iframe_,ati(f));_.oa(f.getElement(),"picker-dialog");f.getContentElement().appendChild(f.JSC$8237_iframe_);DR(f).listen(f.JSC$8237_iframe_,"load",function(){return void t9L(f)});
f.JSC$8237_iframe_.src=f.JSC$8237_url_;uqi(f)},WCv=function(f){yAv(f,(0,_.$A)(function(S){S.setAuthToken(this.targetId_,this.rpcToken_)},f))},uqi=function(f){var S=_.MR(_.NR(f.JSC$8237_url_),"title");
S&&f.setTitle(S)},ati=function(f){return _.X91("Internet Explorer")>=7&&_.Gj(f.JSC$8237_url_,"https")?_.Sr(pfg):_.Td?_.Sr(AA6):_.Sr(Ng8)},t9L=function(f){WCv(f);
f.iframeLoaded_=!0;f.JSC$8237_iframe_.tabIndex=0;f.isVisible()&&f.focus()};
u5.prototype.handleKeydown_=function(f){f.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),f.stopPropagation(),f.preventDefault())};
var yAv=function(f,S){var B=f.JSC$8235_gadgetsDomHelper_;BgW(function(){S(B.getWindow().gadgets.rpc)},B)};
u5.prototype.setUrl=function(f){f=_.ZL(new _.uT(f),"rpcService",this.targetId_);_.ZL(f,"rpctoken",this.rpcToken_);_.bl(f,"rpctoken="+this.rpcToken_);_.Sz(f,"https");this.JSC$8237_url_=f.toString();this.JSC$8237_iframe_&&(this.JSC$8237_iframe_.src=this.JSC$8237_url_)};
var cAm=function(f,S){f.callback_=S;yAv(f,(0,_.$A)(function(B){B.register(this.targetId_,(0,_.$A)(this.handlePickerAction_,this))},f))};
u5.prototype.handlePickerAction_=function(f){var S=f.action;S=="loaded"&&(this.loadedFired_=!0,lto(this,new cjK(this.isVisible())),fzg(this),E5m(this),DR(this).unlisten(this.JSC$8186_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$8237_iframe_.tabIndex=0);S!="picked"&&S!="cancel"||this.setVisible(!1);this.callback_(f)};
var fzg=function(f){f.JSC$8237_appId_&&lto(f,new W8W(f.JSC$8237_appId_,window.location.protocol+"//"+window.location.host))};
u5.prototype.setRelayUrl=function(f){yAv(this,(0,_.$A)(function(S){S.setRelayUrl(this.targetId_,f)},this))};
var lto=function(f,S){f.useGapi_&&yj$(S,f.iframeManager_).then(null,function(){f.callback_({action:"error"})});
yAv(f,(0,_.$A)(function(B){B.call(this.targetId_,"picker",null,S)},f))};
u5.prototype.resizePicker_=function(){var f=jr(this.JSC$8186_dom_.JSC$7371_document_)||window;if(_.MR(_.NR(this.JSC$8237_url_),"ignoreLimits")=="true")f=new _.Xr(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.MR(_.NR(this.JSC$8237_url_),"shadeDialog")=="true"){var S=rAo(this);S=Pmm(S);var B=_.TW(f);f=B.width-80;B=B.height-40;S&&(f-=S.left?S.left:0,f-=S.right?S.right:0,B-=S.top?S.top:0,B-=S.bottom?S.bottom:0);f=new _.Xr(f>0?f:0,B>0?B:0)}else(S=this.preferredDialogWidth_)?(S=Math.max(320,
Math.min(1051,S)),(B=this.preferredDialogHeight_)||(B=_.TW(f).height*.85),B=Math.max(480,Math.min(650,B))):(S=_.TW(f),B=S.width*.618,B=B<S.height?Math.round(Math.max(480,Math.min(650,B*.85))):Math.round(Math.max(480,Math.min(650,S.height*.85))),S=Math.round(B/.618)),f=_.TW(f),S=Math.min(S,Math.max(f.width,320)),B=Math.min(B,Math.max(f.height,480)),f=new _.Xr(S,B);_.w7N(this.getContentElement(),f);this.reposition()};
u5.prototype.reposition=function(){if(_.MR(_.NR(this.JSC$8237_url_),"shadeDialog")=="true"){var f=TNg(this.getElement()),S=_.TW(this.JSC$8186_dom_.getWindow());f=Math.floor(S.width/2-f.width/2);S=rAo(this);if(S=Pmm(S)){var B=S.left?S.left:0;B+=S.right?S.right:0;f=Math.floor(f-B/2)}f=f>0?f:0;S=Fr(this.JSC$8186_dom_).y;Cb(this.getElement(),f,S)}else u5.superClass_.reposition.call(this)};
u5.prototype.setVisible=function(f){if(f!=this.isVisible()&&this.autoSizeDialog_){var S=this.JSC$8186_dom_.getWindow();f?(this.resizePicker_(),DR(this).listen(S,"resize",this.resizePicker_),this.iframeLoaded_||DR(this).listen(S,"keydown",this.handleKeydown_)):(DR(this).unlisten(S,"resize",this.resizePicker_),this.iframeLoaded_||DR(this).unlisten(S,"keydown",this.handleKeydown_))}u5.superClass_.setVisible.call(this,f);lto(this,new cjK(f))};
u5.prototype.focus=function(){u5.superClass_.focus.call(this);if(this.JSC$8237_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$8237_iframe_.focus()}catch(f){}};var nn=function(f,S){S=S===void 0?u5:S;nS.call(this,f);this.pickerConstructor=S;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(f=window.location.origin)||(f=window.location.protocol+"//"+window.location.host);f&&this.urlParamMap_.set("origin",f);this.postProcessors_=[]};
_.q(nn,ft9);nn.prototype.JSC$8242_disposeOnHide_=!1;
nn.prototype.build=function(){this.JSC$8143_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$8143_appId_);this.getRelayUrl()||this.setRelayUrl(_.gH(_.bl(_.ez(_.NR(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("kb");var f=new this.pickerConstructor(o01(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);f.JSC$8219_disposeOnHide_=this.JSC$8242_disposeOnHide_;
f.JSC$8237_appId_=this.JSC$8143_appId_;f.loadedFired_&&fzg(f);cAm(f,this.callback_);return f};
var SZ8=function(f){f.urlParamMap_.set("multiselectEnabled","true");return f};
nn.prototype.getHeight=function(){return this.dialogHeight_};
nn.prototype.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
nn.prototype.getTitle=function(){return this.urlParamMap_.get("title")};
nn.prototype.getWidth=function(){return this.dialogWidth_};
var BON=function(f){f.JSC$8242_disposeOnHide_=void 0;return f};
nn.prototype.setRelayUrl=function(f){this.urlParamMap_.set("parent",f);return this};
var GtN=function(f,S){f.urlParamMap_.set("selectButtonLabel",S);return f};
nn.prototype.setSize=function(f,S){this.dialogWidth_=f;this.dialogHeight_=S;return this};
nn.prototype.setTitle=function(f){this.urlParamMap_.set("title",f);return this};
var o01=function(f){f.postProcessors_.length&&f.urlParamMap_.set("pp",JSON.stringify(f.postProcessors_));f.urlParamMap_.set("nav",zvX(f.nav_));var S=new _.uT(f.getBaseUrl());f.urlParamMap_.forEach(function(B,G){_.ZL(S,G,B)});
return S};var bNm=function(f,S){f.name!==void 0?(this.name=f.name,this.code=g0L[f.name]):(this.code=f=f.code,this.name=ePN(f));_.fM.call(this,rh1("%s %s",this.name,S))};
_.Rm(bNm,_.fM);var ePN=function(f){var S=_.$v.findKey(g0L,function(B){return f==B});
if(S===void 0)throw Error("mb`"+f);return S},tV={},g0L=(tV.AbortError=3,tV.EncodingError=5,tV.InvalidModificationError=9,tV.InvalidStateError=7,tV.NotFoundError=1,tV.NotReadableError=4,tV.NoModificationAllowedError=6,tV.PathExistsError=12,tV.QuotaExceededError=10,tV.SecurityError=2,tV.SyntaxError=8,tV.TypeMismatchError=11,tV);var mHv=function(f,S){_.K8.call(this,f.type,S);this.event_=f};
_.Rm(mHv,_.K8);var zPm=function(f,S,B){B===void 0&&(B=f.size);return f.slice?f.slice(S,B):null};var wfQ=new WeakMap,Xfx=function(f,S){f=[f];for(var B=S.length-1;B>=0;--B)f.push(typeof S[B],S[B]);return f.join("\v")};_.Tgs(function(){if(!_.S1.Blob)return!1;var f=new Uint8Array(100);try{var S=new Blob([f])}catch(B){return!1}return S.size!=100?!1:!0});
var RP1=_.Tgs(function(){if(!_.S1.Blob)return!1;var f=new Uint8Array(100);try{var S=new Blob([f])}catch(B){return!1}return zPm(S,0,1)===null?!1:!0});_.S1.U3bHHf!=null||(_.S1.U3bHHf=0);_.S1.U3bHHf++;var FCA={};var cv=void 0;var JAV=Symbol("ub");var xpV=fj("WizInjectionContext_Dispatcher");var G8=Symbol("vb");var T8=function(){},NCM=Symbol("wb"),KL=function(f){this.props=f;
this.__unmounted=!1};
KL.prototype.didPatch=function(){};
KL.prototype.didMount=function(){};
KL.prototype.didUnmount=function(){};
KL.prototype.didUpdate=function(){};var Qj9=fj("WizInjectionContext_RootElement");var rAj=fj("WizInjectionContext_AppContext"),Y6Q=fj("WizInjectionContext_ModelRootElement"),jjK=fj("WizInjectionContext_RendererData"),OLM=fj("WizInjectionContext_InjectingConstructor"),$pK=fj("WizInjectionContext_AsyncDeps"),E51={};var ItA=!1;var AAx={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:Tls,enableLazyTsx:Fcj,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:hpx,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};_.Sp=Object.assign({},{attributes:{},handleError:function(f){throw f;}},AAx);var XL6=Symbol("Ab"),xH1=Symbol("Bb"),n0K=Symbol("Cb"),LEW=Symbol("Db"),AYK=A1(function(f){return BW(f)&&XL6 in f});var yAN=Symbol("Eb"),ul={},uqM=(ul[yAN]=!0,ul.debugName="[component]",ul.getComponentStack=function(){for(var f=[],S=this;S;)WCN(S)&&f.push(S.debugName),S=S.parent;return f},ul.registerSignal=function(){},ul.registerEffect=function(){},ul);var G1=null,ep=!1,BOW=1,XE=Symbol("Fb"),PW={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 aI=Symbol("Gb"),y6=Symbol("Hb"),R0=Symbol("Ib"),XLx=Object.assign({},PW,{value:aI,dirty:!0,error:null,equal:cA1,kind:"computed",producerMustRecompute:function(f){return f.value===aI||f.value===y6},
producerRecomputeValue:function(f){if(f.value===y6)throw Error("da");var S=f.value;f.value=y6;var B=mHN(f),G=!1;try{var g=f.computation();gA(null);G=S!==aI&&S!==R0&&g!==R0&&f.equal(S,g)}catch(b){g=R0,f.error=b}finally{zP1(f,B)}G?f.value=S:(f.value=g,f.version++)}});var FE9=function(){throw Error();};var JYj=null,hPN=Object.assign({},PW,{equal:cA1,value:void 0,kind:"signal"});Object.assign({},PW,{value:aI,dirty:!0,error:null,equal:cA1,kind:"linkedSignal",producerMustRecompute:function(f){return f.value===aI||f.value===y6},
producerRecomputeValue:function(f){if(f.value===y6)throw Error("da");var S=f.value;f.value=y6;var B=mHN(f);try{var G=f.source();var g=f.computation(G,S===aI||S===R0?void 0:{source:f.sourceValue,value:S});f.sourceValue=G}catch(b){g=R0,f.error=b}finally{zP1(f,B)}S!==aI&&g!==R0&&f.equal(S,g)?f.value=S:(f.value=g,f.version++)}});Object.assign({},PW,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(f){f.schedule!==null&&f.schedule(f.ref)},
hasRun:!1,cleanupFn:function(){}});var v0N=Symbol("Jb"),FE=Symbol("Kb");var VJ=Array.isArray;var rYW;var wLm={},ON1=YZN(Object.assign({},{consumerAllowSignalWrites:!0},wLm)),VR=YZN(Object.assign({},{consumerAllowSignalWrites:!0},wLm));var dA=0,iv=!1,Wz=function(){this.queue=new Set};
Wz.prototype.remove=function(f){this.queue.delete(f)};
Wz.prototype.clear=function(){this.queue.clear()};
var hP$=function(){Wz.apply(this,arguments)};
_.q(hP$,Wz);hP$.prototype.schedule=function(f){this.queue.add(f)};
hP$.prototype.flush=function(){if(this.queue.size){iv=!0;try{for(var f=_.m(this.queue),S=f.next();!S.done;S=f.next()){var B=S.value;this.queue.delete(B);try{B.run()}catch(G){TO8(G)}}}finally{iv=!1}}};
var FE7=new hP$,cz=function(){Wz.apply(this,arguments)};
_.q(cz,Wz);var V76=function(){cz.apply(this,arguments)};
_.q(V76,cz);V76.prototype.schedule=function(f){f.hasRun?this.queue.add(f):f.run()};
V76.prototype.flush=function(){if(this.queue.size)if(_.Sp.flushRenderEffectsDuringRender){var f=this.queue;this.queue=new Set;NOQ(f)}else NOQ(this.queue)};
var E0G=new V76,JYo=function(){cz.apply(this,arguments)};
_.q(JYo,cz);JYo.prototype.schedule=function(f){var S=this;return _.R(function(B){if(B.nextAddress==1)return f.hasRun?B.jumpTo(2):_.h(B,Promise.resolve(),3);if(B.nextAddress!=2)return f.run(),B.return();S.queue.add(f);_.TT(B)})};
JYo.prototype.flush=function(){var f=this;return _.R(function(S){if(S.nextAddress==1)return f.queue.size?_.h(S,Promise.resolve(),2):S.return();NOQ(f.queue);_.TT(S)})};
var syW=new JYo,Pam=function(){cz.apply(this,arguments)};
_.q(Pam,cz);Pam.prototype.schedule=function(f){this.queue.add(f)};
Pam.prototype.flush=function(){this.queue.size&&NOQ(this.queue)};
var kt1=new Pam,Ca1=[E0G,FE7,kt1,syW],v0v=[E0G,kt1,syW],Izj=[];JYj=function(){pLN();for(var f=_.m(Izj),S=f.next();!S.done;S=f.next())S=S.value,S()};
var TO8=B9;var $p=Symbol("Pb");var q9=null,t7x,ulT=null,azT;var ll={},KEL=Object.assign({},PW,(ll[XL6]=!0,ll.effectType=xH1,ll.isResettableContext=!0,ll.hasRun=!1,ll.effectFn=null,ll.consumerIsAlwaysLive=!0,ll.consumerAllowSignalWrites=!0,ll.consumerMarkedDirty=DHM,ll.kind="effect",ll.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(ep)throw Error("Qb");this.dirty=!1;if(!this.hasRun||GtA(this)){this.hasRun=!0;q6K(this);var f=_.l5(this),S=mHN(this);M9j("effectRun",this.debugName);try{rA(this.effectFn,this.componentStack)}catch(B){throw _.Sp.enableContextBasedComponentStacks&&
Yp(B),B;}finally{ZLW("effectRun",this.debugName),zP1(this,S),_.l5(f)}}}},ll.componentStack=void 0,ll.debugName="[effect]",ll[Symbol.dispose]=function(){ltj(this);
if(bv(this))for(var f=0;f<this.producerNode.length;f++)fzT(this.producerNode[f],this.producerIndexOfThis[f]);this.producerNode.length=this.producerLastReadVersion.length=this.producerIndexOfThis.length=0;this.liveConsumerNode&&(this.liveConsumerNode.length=this.liveConsumerIndexOfThis.length=0);f=_.m(v0v);for(var S=f.next();!S.done;S=f.next())S.value.remove(this);HLV(this)},ll));var cYA=Object.assign({},KEL,{effectType:n0K});var lzj=Symbol("Rb");var fXQ=Object.assign({},KEL,{effectType:xH1});var nJs=new Set("allowfullscreen allowtransparency async autofocus autoplay checked controls default defer disabled disableremoteplayback formnovalidate hidden inert ismap itemscope jsshadow jsslot loop multiple muted nomodule novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var BZG={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,coords:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,
id:10,inert:1,ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,playsinline:1,poster:1,preload:1,rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,slot:1,span:1,spellcheck:1,src:4,srcset:12,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,usemap:1,valign:1,value:1,width:1,wrap:1},S4T=
{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}]}},$aW={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},e0T=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],gJN={"*":{async:1,dir:0,loading:2,target:3}};var dH$=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,fT={},m7T=(fT[1]=null,fT[2]=function(f,S){return S instanceof rc?OQ(S):dc.toString()},fT[3]=function(f,S){return F6(S)?_.Ve(S):dH$.test(String(S))?String(S):dc.toString()},fT[4]=function(f,S){return S instanceof mg?_.RP(S):dc.toString()},fT[5]=function(f,S){return String(S)},fT[7]=null,fT[8]=null,fT[10]=null,fT);var u_M=Symbol("Tb");var UZT=function(f){var S=iNm,B=f,G="",g="",b=1;f<0&&(f=-f);if(f===Infinity)f=(Infinity*Math.sign(B)).toString();else{for(var z=0;z<HN7.length;z++){var X=HN7[z];b=S[X];if(f>=b||b<=1&&f>.1*b){G=X;break}}G?(G+="B",g=" "):b=1;f=Math.round(B/b*10)/10+g+G}return f},HN7="Y Z E P T G M K  m u n".split(" "),iNm={"":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};_.qZi=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 yyK={};RegExp.prototype.hasOwnProperty("sticky");var IXN=function(f){f=String(f);for(var S=function(G,g,b){for(var z=Math.min(g.length-b,G.length),X=0;X<z;X++){var w=g[b+X];if(G[X]!==("A"<=w&&w<="Z"?w.toLowerCase():w))return!1}return!0},B=0;(B=f.indexOf("<",B))!=-1;){if(S("\x3c/script",f,B)||S("\x3c!--",f,B))return"zSoyz";
B+=1}return f},aXT=function(f){return f!=null&&f.contentKind===yyK};var Uv={default:"__default"};var FNK=Object.prototype.hasOwnProperty;XUx.prototype=Object.create(null);var cD=PPN();var WW=null;var jJ9=function(f){this.created=[];this.deleted=[];this.node=f};var OOM=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var f=this,S=f;f;)S=f,f=f.parentNode;return S};var KNM=function(f,S){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=f;this.key=S;this.text=void 0};var N9=null,M9=null,pj=null,tj=null,$7A=[],q4W=iON,a0=[],yJ=[],tP1=function(f){return x7M(function(S,B,G){pj=M9=S;M9=null;B(G);HOW(null);M9=pj;pj=pj.parentNode;return S},f)}(),ZHj=function(f){return x7M(function(S,B,G){var g={nextSibling:S};
M9=g;B(G);pj&&HOW(S.nextSibling);return g===M9?null:M9},f)}();var cW=[],LNT=0;var lv=new XUx;var LH=new XUx;var $Hi=PPN(),D7A=$Hi[Uv.default],U7x=$Hi.style,sJG=["focusin","focusout"];var igM=function(){},XDA=function(){},YUN=function(){},qUK=function(){};var Bf=Symbol("$b");var tCG,ZON=MCj;var Xq=Symbol("ac");var QrG=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(" ")),
$6G=new Set(["a","font","script","style","title"]);var JA={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var Pf=null,vf=function(f,S){KL.call(this,f);var B=this;this.functionComponent=S;this.hooks=[];this.hookCounter=0;this.disposeEffects=xp(function(G){B.effectContext=G;_.Ov(function(){Fmx(B,B.el)})},_.Sp.alwaysTrackContexts||!!cv)};
_.q(vf,KL);vf.prototype.render=function(f){var S=Pf;Pf=this;this.hookCounter=0;var B=gA(VR),G=_.l5(this.effectContext);try{return M9j("render",this.componentName),this.functionComponent(f)}finally{ZLW("render",this.componentName),_.l5(G),gA(B),Pf=S}};
_.y3.Object.defineProperties(vf.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return M7M(this.functionComponent)}}});var rEx=Symbol("oc"),KmN=function(f,S,B){this.kind=f;this.props=S;this.children=B};
_.q(KmN,T8);KmN.prototype.render=function(){return vHj(this.kind,this.props,this.children)};
KmN.prototype.getChildren=function(){return this.children};var OgQ=[];FE9=function(f){throw Error("tb`"+f.debugName);};
(function(){var f=WW;WW=function(S){f==null||f(S);x6V(S)}})();var Qym=new WeakMap,YZv=0;var rYN=void 0,jyo={},ONm=new WeakMap,CnA={getComponent:function(f){if(f.hasAttribute("ng-version"))return jyo;if(!f.__wizComponent)return null;f=f.__wizComponent;ONm.set(f.propsAndState,f);return f.propsAndState},
getDirectiveMetadata:function(f){if(f===jyo)return{framework:"wiz",name:"<Root>",props:{}};f=ONm.get(f);if(!f)throw Error("pc");return{framework:"wiz",name:f.name,props:Object.fromEntries(Object.keys(f.props).map(function(S){return[S,S]}))}},
"\u0275setProfiler":function(f){var S;(S=rYN)==null||S();rYN=UH1(function(){f(2)})},
getInjector:function(f){return f.__wizComponent},
"\u0275getSignalGraph":function(f){var S;f=(S=f.effects)!=null?S:[];var B=EHG(f),G=Array.from(B.keys());S=[];f=[];for(var g=new Map,b=0;b<G.length;b++)g.set(G[b],b);B=_.m(B.entries());for(G=B.next();!G.done;G=B.next()){b=_.m(G.value);G=b.next().value;var z=b.next().value;b=G;G=g.get(b);var X=Qym.get(b);X||(X=YZv.toString(),Qym.set(b,X),YZv++);var w=void 0,F=(w=b.debugName)!=null?w:"";w=F.startsWith("[signal]")?F:F.replace(/@.+/,"");b.kind==="computed"?S.push({label:w,value:b.value,kind:b.kind,epoch:b.version,
debuggableFn:b.computation,id:X}):b.kind==="signal"?S.push({label:w,value:b.value,kind:b.kind,epoch:b.version,id:X}):b.kind==="effect"?(F=void 0,S.push({label:w,kind:b.kind,epoch:b.version,debuggableFn:(F=b.effectFn)!=null?F:void 0,id:X})):S.push({label:w,kind:b.kind,epoch:b.version,id:X});b=_.m(z);for(z=b.next();!z.done;z=b.next())f.push({consumer:G,producer:g.get(z.value)})}return{nodes:S,edges:f}},
isSignal:function(f){return typeof f==="function"&&f[XE]!==void 0}};_.v.debugName="RlDudd";var Lm1={nonNullableCondIsNull:function(){return Error("sc")}};var U6T=function(){this.map=new Map};
U6T.prototype.push=function(f,S){var B=this.map;B.has(f)&&(this.multi||(this.multi=new Map),this.multi.set(S,B.get(f)));B.set(f,S)};
U6T.prototype.pop=function(f){var S=this.map,B=S.get(f),G;B!==void 0&&((G=this.multi)==null?0:G.has(B))?(S.set(f,this.multi.get(B)),this.multi.delete(B)):S.delete(f);return B};_.dg.debugName="nsTGHd";_.i0.debugName="tbhMcf";_.Hf.debugName="zyMFzb";_.qp.debugName="vI1rtf";_.$5={OUT_OF_ORDER_HOOK_CALL:function(f){return Error("tc`"+f)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("uc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("vc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("wc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(f,S){return Error("xc`"+((S===void 0?0:S)?"IDOM":"Reactive")+"`"+f)},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(f,S){return Error("yc`"+f+"`"+S)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(f){return Error("zc`"+f)},
USE_ELEMENT_NOT_ASSIGNED:function(f){return Error("Ac`"+String(f))}};tCG=d6W;var l0G=Symbol("Bc");h_K({beforeRender:function(f){var S=_.l5(f.effectContext);try{var B;((B=f.__syncEffects)==null?0:B.length)&&o2N(f.__syncEffects)}finally{_.l5(S)}},
didPatch:function(f){var S=_.l5(f.effectContext);try{var B;((B=f.__syncEffects)==null?0:B.length)&&o2N(f.__syncEffects)}finally{_.l5(S)}},
didUnmount:function(f){var S;((S=f.hooks)==null?0:S.length)&&f.hooks.forEach(fcM)}});var xHj,E0L,LEN;xHj=_.S1.window;_.LL=(xHj==null?void 0:(E0L=xHj.yt)==null?void 0:E0L.config_)||(xHj==null?void 0:(LEN=xHj.ytcfg)==null?void 0:LEN.data_)||{};_.WL("yt.config_",_.LL);var ktm={},g2N=[];_.dO=function(f){var S=_.qb.apply(1,arguments);var B=Error.call(this,f);this.message=B.message;"stack"in B&&(this.stack=B.stack);this.args=[].concat(_.$d(S));Object.setPrototypeOf(this,this.constructor.prototype)};
_.q(_.dO,Error);var ecN=function(f,S,B){this.actionName=f;this.optionalAction=S===void 0?!1:S;this.args=B===void 0?null:B;this.returnValue=[]};_.u=function(f){this.name=f};_.UU=new _.u("signalAction");var Vuj=/^[\w.]*$/,RYV={q:!0,search_query:!0},zYs=String(mCA);var oN;oN=Symbol("Cc");_.Sn=function(f){this.name=f};
_.Sn.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var JLV=function(f){this.key=f},KIN=function(f){this.deferredKey=f},v2T=function(){var f=this;
this.providers=new Map;this.JSC$8462_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(f.providers)}}};
v2T.prototype.addProvider=function(f){this.providers.set(f.provide,f);var S=this.JSC$8462_deferred.get(f.provide);if(S)try{S.resolver(this.resolve(f.provide))}catch(B){S.rejector(B)}};
v2T.prototype.resolve=function(f){return f instanceof KIN?n0m(this,f):f instanceof JLV?syN(this,f.key,[],!0):syN(this,f,[])};
var n0m=function(f,S){S=S.deferredKey;if(f.JSC$8462_deferred.has(S))return f.JSC$8462_deferred.get(S).promise;var B={};B.promise=new Promise(function(G,g){B.resolver=G;B.rejector=g});
f.JSC$8462_deferred.set(S,B);return B.promise},syN=function(f,S,B,G){G=G===void 0?!1:G;
if(B.indexOf(S)>-1)throw Error("Dc`"+S);if(f.cachedValues.has(S))return f.cachedValues.get(S);if(!f.providers.has(S)){if(G)return;throw Error("Ec`"+S);}G=f.providers.get(S);B.push(S);if(G.useValue!==void 0)var g=G.useValue;else if(G.useFactory)g=G[oN]?DHi(f,G[oN],B):[],g=G.useFactory.apply(G,_.$d(g));else if(G.useClass){g=G.useClass;var b=g[oN]?DHi(f,g[oN],B):[];g=new (Function.prototype.bind.apply(g,[null].concat(_.$d(b))))}else throw Error("Fc`"+S);B.pop();G.skipCache||f.cachedValues.set(S,g);return g},
DHi=function(f,S,B){return S?S.map(function(G){return G instanceof JLV?syN(f,G.key,B,!0):syN(f,G,B)}):[]};var PiN;var Cg=new _.Sn("ENDPOINT_HANDLER_TOKEN");_.pg=new _.u("urlEndpoint");var Izo=function(){this.data=[];this.cachedPackedInt52=-1};
Izo.prototype.set=function(f,S){S=S===void 0?!0:S;0<=f&&f<52&&Number.isInteger(f)&&this.data[f]!==S&&(this.data[f]=S,this.cachedPackedInt52=-1)};
Izo.prototype.get=function(f){return!!this.data[f]};
var UHj=function(f){f.cachedPackedInt52===-1&&(f.cachedPackedInt52=f.data.reduce(function(S,B,G){return S+(B?Math.pow(2,G):0)},0));
return f.cachedPackedInt52};var k$j=function(f){var S=Cam;f=f===void 0?_.U6("yt.ads.biscotti.lastId_")||"":f;var B=Object,G=B.assign,g={};g.dt=Uc1;g.flash="0";a:{try{var b=S.JSC$8468_win_.top.location.href}catch(zj){b=2;break a}b=b?b===S.doc_.location.href?0:1:2}g=(g.frm=b,g);try{g.u_tz=-(new Date).getTimezoneOffset();var z=z===void 0?NM:z;try{var X=z.history.length}catch(zj){X=0}g.u_his=X;var w;g.u_h=(w=NM.screen)==null?void 0:w.height;var F;g.u_w=(F=NM.screen)==null?void 0:F.width;var V;g.u_ah=(V=NM.screen)==null?void 0:V.availHeight;
var J;g.u_aw=(J=NM.screen)==null?void 0:J.availWidth;var P;g.u_cd=(P=NM.screen)==null?void 0:P.colorDepth}catch(zj){}X=S.JSC$8468_win_;try{var d=X.screenX;var Q=X.screenY}catch(zj){}try{var x=X.outerWidth;var E=X.outerHeight}catch(zj){}try{var U=X.innerWidth;var A=X.innerHeight}catch(zj){}try{var t=X.screenLeft;var M=X.screenTop}catch(zj){}try{U=X.innerWidth,A=X.innerHeight}catch(zj){}try{var a=X.screen.availWidth;var l=X.screen.availTop}catch(zj){}d=[t,M,d,Q,a,l,x,E,U,A];Q=JmK(!1,S.JSC$8468_win_.top);
x={};var mx=mx===void 0?_.S1:mx;E=new Izo;"SVGElement"in mx&&"createElementNS"in mx.document&&E.set(0);U=kjj();U["allow-top-navigation-by-user-activation"]&&E.set(1);U["allow-popups-to-escape-sandbox"]&&E.set(2);mx.crypto&&mx.crypto.subtle&&E.set(3);"TextDecoder"in mx&&"TextEncoder"in mx&&E.set(4);mx=UHj(E);S=(x.bc=mx,x.bih=Q.height,x.biw=Q.width,x.brdim=d.join(),x.vis=SbN(S.doc_),x.wgl=!!NM.WebGLRenderingContext,x);B=G.call(B,g,S);B.ca_type="image";f&&(B.bid=f);return B},Cam=new function(){var f=
window.document;
this.JSC$8468_win_=window;this.doc_=f};
_.WL("yt.ads_.signals_.getAdSignalsString",function(f){return XSG(k$j(f))});_.zd();navigator.userAgent.indexOf(" (CrKey ");var $Cs="XMLHttpRequest"in _.S1?function(){return new XMLHttpRequest}:null;var pL$="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),AYm=[].concat(_.$d(pL$),["client_dev_set_cookie"]);var LIT={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"},rLV="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(_.$d(pL$)),N0x=!1,O_W=_.n2V,Cij=E21;var h5N=[{messageFn:function(f){return"Cannot read property '"+f.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(f){return"Cannot call '"+f.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(f){return f.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var NOX={messageWeights:[],callbackWeights:[{callback:ujK,weight:500},{callback:acT,weight:500}]};var M7i=function(){this.callbackWeights=[];this.messageWeights=[]},ZNm,wss=function(){if(!ZNm){var f=ZNm=new M7i;
f.messageWeights.length=0;f.callbackWeights.length=0;H1T(f,NOX)}return ZNm},H1T=function(f,S){S.messageWeights&&f.messageWeights.push.apply(f.messageWeights,S.messageWeights);
S.callbackWeights&&f.callbackWeights.push.apply(f.callbackWeights,S.callbackWeights)};_.Rm(_.Tt,_.qR);_.Tt.prototype.subscribe=function(f,S,B){var G=this.topics_[f];G||(G=this.topics_[f]=[]);var g=this.JSC$8492_key_;this.subscriptions_[g]=f;this.subscriptions_[g+1]=S;this.subscriptions_[g+2]=B;this.JSC$8492_key_=g+3;G.push(g);return g};
var t76=function(f){var S=JZW,B=!1,G=S.subscribe("handleError",function(g){B||(B=!0,this.unsubscribeByKey(G),f.apply(void 0,arguments))},S)};
_.Tt.prototype.unsubscribe=function(f,S,B){if(f=this.topics_[f]){var G=this.subscriptions_;if(f=f.find(function(g){return G[g+1]==S&&G[g+2]==B}))return this.unsubscribeByKey(f)}return!1};
_.Tt.prototype.unsubscribeByKey=function(f){var S=this.subscriptions_[f];if(S){var B=this.topics_[S];this.publishDepth_!=0?(this.pendingKeys_.push(f),this.subscriptions_[f+1]=function(){}):(B&&_.uK(B,f),delete this.subscriptions_[f],delete this.subscriptions_[f+1],delete this.subscriptions_[f+2])}return!!S};
_.Tt.prototype.publish=function(f,S){var B=this.topics_[f];if(B){var G=Array(arguments.length-1),g=arguments.length,b;for(b=1;b<g;b++)G[b-1]=arguments[b];if(this.async_)for(b=0;b<B.length;b++)g=B[b],ulg(this.subscriptions_[g+1],this.subscriptions_[g+2],G);else{this.publishDepth_++;try{for(b=0,g=B.length;b<g&&!this.isDisposed();b++){var z=B[b];this.subscriptions_[z+1].apply(this.subscriptions_[z+2],G)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;B=this.pendingKeys_.pop();)this.unsubscribeByKey(B)}}return b!=
0}return!1};
var ulg=function(f,S,B){_.Yo(function(){f.apply(S,B)})};
_.Tt.prototype.clear=function(f){if(f){var S=this.topics_[f];S&&(S.forEach(this.unsubscribeByKey,this),delete this.topics_[f])}else this.subscriptions_.length=0,this.topics_={}};
_.Tt.prototype.getCount=function(f){if(f){var S=this.topics_[f];return S?S.length:0}f=0;for(S in this.topics_)f+=this.getCount(S);return f};
_.Tt.prototype.disposeInternal=function(){_.Tt.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var JZW=new _.Tt;var eC=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(eC,_.s7);eC.prototype.getColdHashData=function(){return _.n4(this,3)};
eC.prototype.getHotHashData=function(){return _.n4(this,5)};
eC.prototype.setHotHashData=function(f){return _.Jx(this,5,f)};var zL9=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(zL9,_.s7);var slQ=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(slQ,_.s7);_.e=slQ.prototype;_.e.getDeviceId=function(){return _.n4(this,6)};
_.e.getExperimentIds=function(f){var S=_.dI(this,9,_.q2,3,!0);s8(S,f);return S[f]};
_.e.getPlayerType=function(){return _.sH(this,36)};
_.e.setHomeGroupInfo=function(f){return _.SZ(this,81,f)};
_.e.clearLocationPlayabilityToken=function(){return _.gZ(this,89)};var JE=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(JE,_.s7);JE.prototype.setKey=function(f){return _.Jx(this,1,f)};
JE.prototype.getValue=function(){return Im(this,2,IeV)};
var IeV=[2,3,4,5,6];var azg=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(azg,_.s7);azg.prototype.setTrackingParams=function(f){return _.gZ(this,1,_.ni(f,!1))};var DJV=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(DJV,_.s7);var wKN=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(wKN,_.s7);wKN.prototype.getExperimentIds=function(f){var S=_.dI(this,5,_.$$,3,!0);s8(S,f);return S[f]};var dC=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(dC,_.s7);dC.prototype.getToken=function(){return _.Vf(this,2)};
dC.prototype.setToken=function(f){return _.Jx(this,2,f)};var vD=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(vD,_.s7);vD.prototype.setSafetyMode=function(f){return _.GV(this,5,f)};var V0=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(V0,_.s7);V0.prototype.setClient=function(f){return _.SZ(this,1,f)};var XKQ={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 RLM;_.Ln=function(){var f=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.S1.addEventListener("beforeinstallprompt",function(S){S.preventDefault();f.deferredInstallPrompt=S});
_.S1.addEventListener("appinstalled",function(){f.appInstalledEventFired=!0},{once:!0})};
RLM=function(){if(!_.S1.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.S1.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.S1.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.S1.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.S1.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(f){return"WEB_DISPLAY_MODE_UNKNOWN"}};var FUN=function(){this.syncHeaders=!0},Vw1=function(f){var S={},B=[];
"USER_SESSION_ID"in _.LL&&B.push({key:"u",value:_.nL("USER_SESSION_ID")});if(B=_.DzN(B))S.Authorization=B,B=f=f==null?void 0:f.sessionIndex,B===void 0&&(B=Number(_.nL("SESSION_INDEX",0)),B=isNaN(B)?0:B),_.K("voice_search_auth_header_removal")||(S["X-Goog-AuthUser"]=B.toString()),"INNERTUBE_HOST_OVERRIDE"in _.LL||(S["X-Origin"]=window.location.origin),f===void 0&&"DELEGATED_SESSION_ID"in _.LL&&(S["X-Goog-PageId"]=_.nL("DELEGATED_SESSION_ID"));return S};var yYv={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var By=_.U6("ytglobal.prefsUserPrefsPrefs_")||{},WEN;_.WL("ytglobal.prefsUserPrefsPrefs_",By);_.G6=function(){this.cookieName=_.nL("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.nL("ALT_PREF_COOKIE_DOMAIN","youtube.com");var f=_.VP.get(this.cookieName,void 0);f&&this.parse(f)};
_.K2=function(){WEN||(WEN=new _.G6);return WEN};
_.G6.prototype.get=function(f,S){cYN(f);lzo(f);f=By[f]!==void 0?By[f].toString():null;return f!=null?f:S?S:""};
_.G6.prototype.set=function(f,S){cYN(f);lzo(f);if(S==null)throw Error("Ic");By[f]=S.toString()};
_.G6.prototype.getFlag=function(f){return!!((fXX("f"+(Math.floor(f/31)+1))||0)&1<<f%31)};
_.dh=function(f,S,B){f="f"+(Math.floor(S/31)+1);S=1<<S%31;var G=fXX(f)||0;G=B?G|S:G&~S;G===0?delete By[f]:(B=G.toString(16),By[f]=B.toString())};
_.G6.prototype.remove=function(f){cYN(f);lzo(f);delete By[f]};
_.G6.prototype.save=function(){var f=!0;_.K("web_secure_pref_cookie_killswitch")&&(f=!1);_.JY(this.cookieName,this.dump(),63072E3,this.cookieDomain,f)};
_.G6.prototype.clear=function(){_.$v.clear(By)};
_.G6.prototype.dump=function(){var f=[],S;for(S in By)By.hasOwnProperty(S)&&f.push(S+"="+encodeURIComponent(String(By[S])));return f.join("&")};
var lzo=function(f){if(/^f([1-9][0-9]*)$/.test(f))throw Error("Jc`"+f);},cYN=function(f){if(!/^\w+$/.test(f))throw Error("Kc`"+f);
},fXX=function(f){f=By[f]!==void 0?By[f].toString():null;
return f!=null&&/^[A-Fa-f0-9]+$/.test(f)?parseInt(f,16):null};
_.G6.prototype.parse=function(f){f=decodeURIComponent(f).split("&");for(var S=0;S<f.length;S++){var B=f[S].split("="),G=B[0];(B=B[1])&&(By[G]=B.toString())}};var GlM={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"},hL9={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},Ths={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},eSN={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var Ra;_.gF=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.q6=function(f,S,B){return f.addJob(S,0,B)};
_.gF.prototype.addLowPriorityJob=function(f,S){return this.addJob(f,1,S)};
_.H8=function(f,S,B){return f.addJob(S,2,B)};
_.OR=function(f,S,B){return f.addJob(S,3,B)};
_.Xd=function(f,S,B){return f.addJob(S,4,B)};
Ra=function(f){var S=_.U6("yt.scheduler.instance.addImmediateJob");S?S(f):f()};
_.gF.prototype.debounce=function(f,S,B){var G=this,g=0,b=function(){g&&G.cancelJob(g);g=G.addJob(f,S,B);G.cancelDebouncedJobMap.set(b,g)};
return b};
_.gF.prototype.cancelThrottle=function(f){(f=this.cancelThrottledJobMap.get(f))&&f()};var en=function(){_.gF.apply(this,arguments)};
_.q(en,_.gF);_.kj=function(){en.instance||(en.instance=new en);return en.instance};
en.prototype.addJob=function(f,S,B){B!==void 0&&Number.isNaN(Number(B))&&(B=void 0);var G=_.U6("yt.scheduler.instance.addJob");return G?G(f,S,B):B===void 0?(f(),NaN):_.mE(f,B||0)};
en.prototype.cancelJob=function(f){if(f===void 0||!Number.isNaN(Number(f))){var S=_.U6("yt.scheduler.instance.cancelJob");S?S(f):_.Ry(f)}};
en.prototype.start=function(){var f=_.U6("yt.scheduler.instance.start");f&&f()};
en.prototype.pause=function(){var f=_.U6("yt.scheduler.instance.pause");f&&f()};
_.xJ=_.kj();_.ia.prototype.set=function(f,S){S===void 0?this.mechanism.remove(f):this.mechanism.set(f,(0,_.ET)(S))};
_.ia.prototype.get=function(f){try{var S=this.mechanism.get(f)}catch(B){return}if(S!==null)try{return JSON.parse(S)}catch(B){throw"Storage: Invalid value was encountered";}};
_.ia.prototype.remove=function(f){this.mechanism.remove(f)};var b6=function(f){this.mechanism=f};
_.Rm(b6,_.ia);var oJm=function(f){this.data=f},S4g=function(f){return f===void 0||f instanceof oJm?f:new oJm(f)};
b6.prototype.set=function(f,S){b6.superClass_.set.call(this,f,S4g(S))};
b6.prototype.getWrapper=function(f){f=b6.superClass_.get.call(this,f);if(f===void 0||f instanceof Object)return f;throw"Storage: Invalid value was encountered";};
b6.prototype.get=function(f){if(f=this.getWrapper(f)){if(f=f.data,f===void 0)throw"Storage: Invalid value was encountered";}else f=void 0;return f};_.Rm(HL,b6);_.BZL=function(f){var S=f.creation;f=f.expiration;return!!f&&f<_.zd()||!!S&&S>_.zd()};
HL.prototype.set=function(f,S,B){if(S=S4g(S)){if(B){if(B<_.zd()){HL.prototype.remove.call(this,f);return}S.expiration=B}S.creation=_.zd()}HL.superClass_.set.call(this,f,S)};
HL.prototype.getWrapper=function(f,S){var B=HL.superClass_.getWrapper.call(this,f);if(B)if(!S&&_.BZL(B))HL.prototype.remove.call(this,f);else return B};var mn=function(){};
mn.prototype.next=function(){return z6};
var z6={done:!0,value:void 0},RN=function(f){return{value:f,done:!1}};
mn.prototype.__iterator__=function(){return this};
_.GVN=function(f){if(f instanceof mn)return f;if(typeof f.__iterator__=="function")return f.__iterator__(!1);if(_.W9(f)){var S=0,B=new mn;B.next=function(){for(;;){if(S>=f.length)return z6;if(S in f)return RN(f[S++]);S++}};
return B}throw Error("Lc");};var gJv=function(f){if(f instanceof Xn||f instanceof wF||f instanceof h_)return f;if(typeof f.next=="function")return new Xn(function(){return f});
if(typeof f[Symbol.iterator]=="function")return new Xn(function(){return f[Symbol.iterator]()});
if(typeof f.__iterator__=="function")return new Xn(function(){return f.__iterator__()});
throw Error("Mc");},Xn=function(f){this.func_=f};
Xn.prototype.__iterator__=function(){return new wF(this.func_())};
Xn.prototype[Symbol.iterator]=function(){return new h_(this.func_())};
Xn.prototype.toEs6=function(){return new h_(this.func_())};
var wF=function(f){this.JSC$8576_iter_=f};
_.q(wF,mn);wF.prototype.next=function(){return this.JSC$8576_iter_.next()};
wF.prototype[Symbol.iterator]=function(){return new h_(this.JSC$8576_iter_)};
wF.prototype.toEs6=function(){return new h_(this.JSC$8576_iter_)};
var h_=function(f){Xn.call(this,function(){return f});
this.JSC$8579_iter_=f};
_.q(h_,Xn);h_.prototype.next=function(){return this.JSC$8579_iter_.next()};var e0g=function(){};var T6=function(){};
_.Rm(T6,e0g);T6.prototype.getCount=function(){for(var f=0,S=_.m(this),B=S.next();!B.done;B=S.next())f++;return f};
T6.prototype[Symbol.iterator]=function(){return gJv(this.__iterator__(!0)).toEs6()};
T6.prototype.clear=function(){var f=Array.from(this);f=_.m(f);for(var S=f.next();!S.done;S=f.next())this.remove(S.value)};_.Rm(qH,T6);_.e=qH.prototype;_.e.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var f=this.storage_;if(f)try{f.setItem("__sak","1");f.removeItem("__sak");var S=!0}catch(B){S=B instanceof DOMException&&(B.name==="QuotaExceededError"||B.code===22||B.code===1014||B.name==="NS_ERROR_DOM_QUOTA_REACHED")&&f&&f.length!==0}else S=!1;this.cachedIsStorageAvailable_=S}return this.cachedIsStorageAvailable_};
_.e.set=function(f,S){Fn(this);try{this.storage_.setItem(f,S)}catch(B){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.e.get=function(f){Fn(this);f=this.storage_.getItem(f);if(typeof f!=="string"&&f!==null)throw"Storage mechanism: Invalid value was encountered";return f};
_.e.remove=function(f){Fn(this);this.storage_.removeItem(f)};
_.e.getCount=function(){Fn(this);return this.storage_.length};
_.e.__iterator__=function(f){Fn(this);var S=0,B=this.storage_,G=new mn;G.next=function(){if(S>=B.length)return z6;var g=B.key(S++);if(f)return RN(g);g=B.getItem(g);if(typeof g!=="string")throw"Storage mechanism: Invalid value was encountered";return RN(g)};
return G};
_.e.clear=function(){Fn(this);this.storage_.clear()};
_.e.key=function(f){Fn(this);return this.storage_.key(f)};
var Fn=function(f){if(f.storage_==null)throw Error("Nc");f.isAvailable()||B9(Error("Nc"))};_.Rm(m5N,qH);_.Rm(zSQ,qH);_.Rm($0,T6);$0.prototype.set=function(f,S){this.mechanism_.set(this.JSC$8594_prefix_+f,S)};
$0.prototype.get=function(f){return this.mechanism_.get(this.JSC$8594_prefix_+f)};
$0.prototype.remove=function(f){this.mechanism_.remove(this.JSC$8594_prefix_+f)};
$0.prototype.__iterator__=function(f){var S=this.mechanism_[Symbol.iterator](),B=this,G=new mn;G.next=function(){var g=S.next();if(g.done)return g;for(g=g.value;g.slice(0,B.JSC$8594_prefix_.length)!=B.JSC$8594_prefix_;){g=S.next();if(g.done)return g;g=g.value}return RN(f?g.slice(B.JSC$8594_prefix_.length):B.mechanism_.get(g))};
return G};_.s4=function(f){this.expiringStorage_=(f=_.RST(f))?new HL(f):null;this.JSC$8598_domain_=document.domain||window.location.hostname};
_.s4.prototype.set=function(f,S,B,G){B=B||31104E3;this.remove(f);if(this.expiringStorage_)try{this.expiringStorage_.set(f,S,Date.now()+B*1E3);return}catch(b){}var g="";if(G)try{g=escape((0,_.ET)(S))}catch(b){return}else g=escape(S);_.JY(f,g,B,this.JSC$8598_domain_)};
_.s4.prototype.get=function(f,S){var B=void 0,G=!this.expiringStorage_;if(!G)try{B=this.expiringStorage_.get(f)}catch(g){G=!0}if(G&&(B=_.VP.get(f,void 0))&&(B=unescape(B),S))try{B=JSON.parse(B)}catch(g){this.remove(f),B=void 0}return B};
_.s4.prototype.remove=function(f){this.expiringStorage_&&this.expiringStorage_.remove(f);_.oc1(f,"/",this.JSC$8598_domain_)};
_.s4.prototype.getCreationTime=function(f){return this.expiringStorage_&&(f=(this.expiringStorage_.getWrapper(f)||{}).creation,typeof f==="number")?f:null};var wZT=function(){var f;return function(){f||(f=new _.s4("ytidb"));return f}}();var TiQ;_.Y0=[];TiQ=!1;var Lj1=FjN||VeV;var Vo={},bOg=(Vo.AUTH_INVALID="No user identifier specified.",Vo.EXPLICIT_ABORT="Transaction was explicitly aborted.",Vo.IDB_NOT_SUPPORTED="IndexedDB is not supported.",Vo.MISSING_INDEX="Index not created.",Vo.MISSING_OBJECT_STORES="Object stores not created.",Vo.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",Vo.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",Vo.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",Vo.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",Vo.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",Vo.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",Vo.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",Vo),J_={},m7g=(J_.AUTH_INVALID="ERROR",J_.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",J_.EXPLICIT_ABORT="IGNORED",
J_.IDB_NOT_SUPPORTED="ERROR",J_.MISSING_INDEX="WARNING",J_.MISSING_OBJECT_STORES="ERROR",J_.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",J_.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",J_.QUOTA_EXCEEDED="WARNING",J_.QUOTA_MAYBE_EXCEEDED="WARNING",J_.UNKNOWN_ABORT="WARNING",J_.INCOMPATIBLE_DB_VERSION="WARNING",J_),Py={},z0N=(Py.AUTH_INVALID=!1,Py.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,Py.EXPLICIT_ABORT=!1,Py.IDB_NOT_SUPPORTED=!1,Py.MISSING_INDEX=!1,Py.MISSING_OBJECT_STORES=!1,Py.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,Py.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,Py.QUOTA_EXCEEDED=!1,Py.QUOTA_MAYBE_EXCEEDED=!0,Py.UNKNOWN_ABORT=!0,Py.INCOMPATIBLE_DB_VERSION=!1,Py),LN=function(f,S,B,G,g){S=S===void 0?{}:S;B=B===void 0?bOg[f]:B;G=G===void 0?m7g[f]:G;g=g===void 0?z0N[f]:g;_.dO.call(this,B,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:f},S));this.type=f;this.message=B;this.level=G;this.retryable=g;Object.setPrototypeOf(this,LN.prototype)};
_.q(LN,_.dO);var R0N=function(f,S){LN.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:S,foundObjectStores:f},bOg.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,R0N.prototype)};
_.q(R0N,LN);var PTK=function(f,S){var B=Error.call(this);this.message=B.message;"stack"in B&&(this.stack=B.stack);this.index=f;this.objectStore=S;Object.setPrototypeOf(this,PTK.prototype)};
_.q(PTK,Error);var vcx=["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 Dz=function(f){this.executor=f},sZ=function(f){var S=this;
this.state={status:"PENDING"};this.JSC$8626_onFulfilled=[];this.JSC$8626_onRejected=[];f=f.executor;var B=function(g){if(S.state.status==="PENDING"){S.state={status:"FULFILLED",value:g};g=_.m(S.JSC$8626_onFulfilled);for(var b=g.next();!b.done;b=g.next())b=b.value,b()}},G=function(g){if(S.state.status==="PENDING"){S.state={status:"REJECTED",
reason:g};g=_.m(S.JSC$8626_onRejected);for(var b=g.next();!b.done;b=g.next())b=b.value,b()}};
try{f(B,G)}catch(g){G(g)}};
sZ.all=function(f){return new sZ(new Dz(function(S,B){var G=[],g=f.length;g===0&&S(G);for(var b={i$jscomp$462:0};b.i$jscomp$462<f.length;b={i$jscomp$462:b.i$jscomp$462},++b.i$jscomp$462)sZ.resolve(f[b.i$jscomp$462]).then(function(z){return function(X){G[z.i$jscomp$462]=X;g--;g===0&&S(G)}}(b)).catch(function(z){B(z)})}))};
sZ.resolve=function(f){return new sZ(new Dz(function(S,B){f instanceof sZ?f.then(S,B):S(f)}))};
sZ.reject=function(f){return new sZ(new Dz(function(S,B){B(f)}))};
sZ.prototype.then=function(f,S){var B=this,G=f!=null?f:ik9,g=S!=null?S:d5V;return new sZ(new Dz(function(b,z){B.state.status==="PENDING"?(B.JSC$8626_onFulfilled.push(function(){XU6(B,B,G,b,z)}),B.JSC$8626_onRejected.push(function(){wUj(B,B,g,b,z)})):B.state.status==="FULFILLED"?XU6(B,B,G,b,z):B.state.status==="REJECTED"&&wUj(B,B,g,b,z)}))};
sZ.prototype.catch=function(f){return this.then(void 0,f)};
var XU6=function(f,S,B,G,g){try{if(f.state.status!=="FULFILLED")throw Error("Qc");var b=B(f.state.value);b instanceof sZ?h07(f,S,b,G,g):G(b)}catch(z){g(z)}},wUj=function(f,S,B,G,g){try{if(f.state.status!=="REJECTED")throw Error("Rc");
var b=B(f.state.reason);b instanceof sZ?h07(f,S,b,G,g):G(b)}catch(z){g(z)}},h07=function(f,S,B,G,g){S===B?g(new TypeError("Sc")):B.then(function(b){b instanceof sZ?h07(f,S,b,G,g):G(b)},function(b){g(b)})};var vy;vy=window;_.fO=vy.ytcsi&&vy.ytcsi.now?vy.ytcsi.now:vy.performance&&vy.performance.timing&&vy.performance.now&&vy.performance.timing.navigationStart?function(){return vy.performance.timing.navigationStart+vy.performance.now()}:function(){return(new Date).getTime()};var UZ=function(f,S){this.JSC$8638_wrapped=f;this.options=S;this.transactionCount=0;this.startedMs=Math.round((0,_.fO)());this.hasUnknownAbortedTransaction=!1},VCX,JyN,i6,KNi;
UZ.prototype.add=function(f,S,B){return _.MH(this,[f],{mode:"readwrite",enableRetries:!0},function(G){return G.objectStore(f).add(S,B)})};
UZ.prototype.clear=function(f){return _.MH(this,[f],{mode:"readwrite",enableRetries:!0},function(S){return S.objectStore(f).clear()})};
UZ.prototype.close=function(){this.JSC$8638_wrapped.close();var f;((f=this.options)==null?0:f.closed)&&this.options.closed()};
UZ.prototype.count=function(f,S){return _.MH(this,[f],{mode:"readonly",enableRetries:!0},function(B){return B.objectStore(f).count(S)})};
var IJ=function(f,S,B){f=f.JSC$8638_wrapped.createObjectStore(S,B);return new KT(f)};
UZ.prototype.delete=function(f,S){return _.MH(this,[f],{mode:"readwrite",enableRetries:!0},function(B){return B.objectStore(f).delete(S)})};
var TZ$=function(f,S){return _.MH(f,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(B){return B.objectStore("ResponseStore").index("byInterface").delete(S)})};
UZ.prototype.get=function(f,S){return _.MH(this,[f],{mode:"readonly",enableRetries:!0},function(B){return B.objectStore(f).get(S)})};
UZ.prototype.getAll=function(f,S,B){return _.MH(this,[f],{mode:"readonly",enableRetries:!0},function(G){return G.objectStore(f).getAll(S,B)})};
UZ.prototype.put=function(f,S,B){return _.MH(this,[f],{mode:"readwrite",enableRetries:!0},function(G){return G.objectStore(f).put(S,B)})};
UZ.prototype.objectStoreNames=function(){return Array.from(this.JSC$8638_wrapped.objectStoreNames)};
_.MH=function(f,S,B,G){var g,b,z,X,w,F,V,J,P,d,Q,x;return _.R(function(E){switch(E.nextAddress){case 1:var U={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof B==="string"?U.mode=B:Object.assign(U,B);g=U;f.transactionCount++;b=g.enableRetries?3:1;z=0;case 2:if(X){E.jumpTo(4);break}z++;w=Math.round((0,_.fO)());_.zT(E,5);F=f.JSC$8638_wrapped.transaction(S,g.mode);U=new Q4W(F);U=FNm(U,G);return _.h(E,U,7);case 7:return V=E.yieldResult,J=Math.round((0,_.fO)()),VCX(f,w,J,z,void 0,
S.join(),g),E.return(V);case 5:P=_.hm(E);d=Math.round((0,_.fO)());Q=KjA(P,f.JSC$8638_wrapped.name,S.join(),f.JSC$8638_wrapped.version);if((x=Q instanceof LN&&!Q.retryable)||z>=b)VCX(f,w,d,z,Q,S.join(),g),X=Q;E.jumpTo(2);break;case 4:return E.return(Promise.reject(X))}})};
VCX=function(f,S,B,G,g,b,z){S=B-S;g?(g instanceof LN&&(g.type==="QUOTA_EXCEEDED"||g.type==="QUOTA_MAYBE_EXCEEDED")&&j7("QUOTA_EXCEEDED",{dbName:x0(f.JSC$8638_wrapped.name),objectStoreNames:b,transactionCount:f.transactionCount,transactionMode:z.mode}),g instanceof LN&&g.type==="UNKNOWN_ABORT"&&(B-=f.startedMs,B<0&&B>=2147483648&&(B=0),j7("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:b,transactionDuration:S,transactionCount:f.transactionCount,dbDuration:B}),f.hasUnknownAbortedTransaction=!0),
JyN(f,!1,G,b,S,z.tag),_.rO(g)):JyN(f,!0,G,b,S,z.tag)};
JyN=function(f,S,B,G,g,b){j7("TRANSACTION_ENDED",{objectStoreNames:G,connectionHasUnknownAbortedTransaction:f.hasUnknownAbortedTransaction,duration:g,isSuccessful:S,tryCount:B,tag:b===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":b})};
UZ.prototype.getVersion=function(){return this.JSC$8638_wrapped.version};
UZ.prototype.getName=function(){return this.JSC$8638_wrapped.name};
var KT=function(f){this.JSC$8653_wrapped=f};
KT.prototype.add=function(f,S){return Iy(this.JSC$8653_wrapped.add(f,S))};
KT.prototype.autoIncrement=function(){return this.JSC$8653_wrapped.autoIncrement};
KT.prototype.clear=function(){return Iy(this.JSC$8653_wrapped.clear()).then(function(){})};
var U4=function(f,S,B){f.JSC$8653_wrapped.createIndex(S,B,{unique:!1})};
KT.prototype.count=function(f){return Iy(this.JSC$8653_wrapped.count(f))};
var PPv=function(f,S){return ua(f,{query:S},function(B){return B.delete().then(function(){return B.continue()})}).then(function(){})};
KT.prototype.delete=function(f){return f instanceof IDBKeyRange?PPv(this,f):Iy(this.JSC$8653_wrapped.delete(f))};
KT.prototype.get=function(f){return Iy(this.JSC$8653_wrapped.get(f))};
KT.prototype.getAll=function(f,S){return"getAll"in IDBObjectStore.prototype?Iy(this.JSC$8653_wrapped.getAll(f,S)):vJg(this,f,S)};
var vJg=function(f,S,B){var G=[];return ua(f,{query:S},function(g){if(!(B!==void 0&&G.length>=B))return G.push(g.getValue()),g.continue()}).then(function(){return G})};
KT.prototype.index=function(f){try{return new dF(this.JSC$8653_wrapped.index(f))}catch(S){if(S instanceof Error&&S.name==="NotFoundError")throw new PTK(f,this.JSC$8653_wrapped.name);throw S;}};
KT.prototype.getName=function(){return this.JSC$8653_wrapped.name};
KT.prototype.keyPath=function(){return this.JSC$8653_wrapped.keyPath};
KT.prototype.put=function(f,S){return Iy(this.JSC$8653_wrapped.put(f,S))};
var ua=function(f,S,B){f=f.JSC$8653_wrapped.openCursor(S.query,S.direction);return KNi(f).then(function(G){return $5W(G,B)})},Q4W=function(f){var S=this;
this.JSC$8661_wrapped=f;this.objectStoreCache=new Map;this.JSC$8661_aborted=!1;this.done=new Promise(function(B,G){S.JSC$8661_wrapped.addEventListener("complete",function(){B()});
S.JSC$8661_wrapped.addEventListener("error",function(g){g.currentTarget===g.target&&G(S.JSC$8661_wrapped.error)});
S.JSC$8661_wrapped.addEventListener("abort",function(){var g=S.JSC$8661_wrapped.error;if(g)G(g);else if(!S.JSC$8661_aborted){g=LN;for(var b=S.JSC$8661_wrapped.objectStoreNames,z=[],X=0;X<b.length;X++){var w=b.item(X);if(w===null)throw Error("Tc");z.push(w)}g=new g("UNKNOWN_ABORT",{objectStoreNames:z.join(),dbName:S.JSC$8661_wrapped.db.name,mode:S.JSC$8661_wrapped.mode});G(g)}})})},FNm=function(f,S){var B=new Promise(function(G,g){try{S(f).then(function(b){G(b)}).catch(g)}catch(b){g(b),f.abort()}});
return Promise.all([B,f.done]).then(function(G){return _.m(G).next().value})};
Q4W.prototype.abort=function(){this.JSC$8661_wrapped.abort();this.JSC$8661_aborted=!0;throw new LN("EXPLICIT_ABORT");};
Q4W.prototype.objectStore=function(f){f=this.JSC$8661_wrapped.objectStore(f);var S=this.objectStoreCache.get(f);S||(S=new KT(f),this.objectStoreCache.set(f,S));return S};
var dF=function(f){this.JSC$8663_wrapped=f};
dF.prototype.count=function(f){return Iy(this.JSC$8663_wrapped.count(f))};
dF.prototype.delete=function(f){return _.oJ(this,{query:f},function(S){return S.delete().then(function(){return S.continue()})})};
dF.prototype.get=function(f){return Iy(this.JSC$8663_wrapped.get(f))};
dF.prototype.getAll=function(f,S){return"getAll"in IDBIndex.prototype?Iy(this.JSC$8663_wrapped.getAll(f,S)):d7m(this,f,S)};
var d7m=function(f,S,B){var G=[];return _.oJ(f,{query:S},function(g){if(!(B!==void 0&&G.length>=B))return G.push(g.getValue()),g.continue()}).then(function(){return G})};
dF.prototype.keyPath=function(){return this.JSC$8663_wrapped.keyPath};
dF.prototype.unique=function(){return this.JSC$8663_wrapped.unique};
_.oJ=function(f,S,B){f=f.JSC$8663_wrapped.openCursor(S.query===void 0?null:S.query,S.direction===void 0?"next":S.direction);return KNi(f).then(function(G){return $5W(G,B)})};
i6=function(f,S){this.request=f;this.cursor=S};
KNi=function(f){return Iy(f).then(function(S){return S?new i6(f,S):null})};
i6.prototype.continue=function(f){this.cursor.continue(f);return KNi(this.request)};
i6.prototype.delete=function(){return Iy(this.cursor.delete()).then(function(){})};
i6.prototype.getValue=function(){return this.cursor.value};
i6.prototype.update=function(f){return Iy(this.cursor.update(f))};var Hy=function(f,S){this.name=f;this.options=S;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},iOv;
Hy.prototype.openDb=function(f,S,B){B=B===void 0?{}:B;return r2K(f,S,B)};
Hy.prototype.delete=function(f){f=f===void 0?{}:f;return _.pN(this.name,f)};
iOv=function(f,S){return new LN("INCOMPATIBLE_DB_VERSION",{dbName:f.name,oldVersion:f.options.version,newVersion:S})};
_.AY=function(f,S){if(!S)throw nN("openWithToken",x0(f.name));return f.open()};
Hy.prototype.open=function(){var f=this;if(!this.isCompatible)throw iOv(this);if(this.connectionPromise)return this.connectionPromise;var S,B=function(){f.connectionPromise===S&&(f.connectionPromise=void 0)},G={blocking:function(b){b.close()},
closed:B,terminated:B,upgrade:this.options.upgrade},g=function(){var b,z,X,w,F,V,J,P,d,Q;return _.R(function(x){switch(x.nextAddress){case 1:return z=(b=Error().stack)!=null?b:"",_.zT(x,2),_.h(x,f.openDb(f.name,f.options.version,G),4);case 4:for(var E=X=x.yieldResult,U=f.options,A=[],t=_.m(Object.keys(U.objectStores)),M=t.next();!M.done;M=t.next()){M=M.value;var a=U.objectStores[M],l=a.removedAtVersion===void 0?Number.MAX_VALUE:a.removedAtVersion;!(E.JSC$8638_wrapped.version>=a.addedAtVersion)||E.JSC$8638_wrapped.version>=
l||E.JSC$8638_wrapped.objectStoreNames.contains(M)||A.push(M)}w=A;if(w.length===0){x.jumpTo(5);break}F=Object.keys(f.options.objectStores);V=X.objectStoreNames();if(f.timesReopenedToFixMissingObjectStore<_.Gt("ytidb_reopen_db_retries",0))return f.timesReopenedToFixMissingObjectStore++,X.close(),_.rO(new LN("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:f.name,expectedObjectStores:F,foundObjectStores:V})),x.return(g());if(!(f.timesDeletedToFixMissingObjectStore<_.Gt("ytidb_remake_db_retries",1))){x.jumpTo(6);
break}f.timesDeletedToFixMissingObjectStore++;return _.h(x,f.delete(),7);case 7:return _.rO(new LN("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:f.name,expectedObjectStores:F,foundObjectStores:V})),x.return(g());case 6:throw new R0N(V,F);case 5:return x.return(X);case 2:J=_.hm(x);if(J instanceof DOMException?J.name!=="VersionError":"DOMError"in self&&J instanceof DOMError?J.name!=="VersionError":!(J instanceof Object&&"message"in J)||J.message!=="An attempt was made to open a database using a lower version than the existing version."){x.jumpTo(8);
break}return _.h(x,f.openDb(f.name,void 0,Object.assign({},G,{upgrade:void 0})),9);case 9:P=x.yieldResult;d=P.getVersion();if(f.options.version!==void 0&&d>f.options.version+1)throw P.close(),f.isCompatible=!1,iOv(f,d);return x.return(P);case 8:throw B(),J instanceof Error&&!_.K("ytidb_async_stack_killswitch")&&(J.stack=J.stack+"\n"+z.substring(z.indexOf("\n")+1)),KjA(J,f.name,"",(Q=f.options.version)!=null?Q:-1);}})};
return this.connectionPromise=S=g()};var j49=new Hy("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(f,S){S(1)&&IJ(f,"databases",{keyPath:"actualName"})}});var s4M,klj=new function(){}(new function(){});new _.w3;var HON=function(f,S){Hy.call(this,f,S);this.options=S;OZ(f)};
_.q(HON,Hy);var te9=function(f,S){var B;return function(){B||(B=new HON(f,S));return B}};
HON.prototype.openDb=function(f,S,B){B=B===void 0?{}:B;return(this.options.shared?pZV:CTV)(f,S,Object.assign({},B))};
HON.prototype.delete=function(f){f=f===void 0?{}:f;return(this.options.shared?Zkj:A2W)(this.name,f)};var q4N={},uv1=la("ytGcfConfig",{objectStores:(q4N.coldConfigStore={addedAtVersion:1},q4N.hotConfigStore={addedAtVersion:1},q4N),shared:!1,upgrade:function(f,S){S(1)&&(U4(IJ(f,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),U4(IJ(f,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var $7N=function(){_.qR.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var f=_.U6("yt.gcf.config.hotUpdateCallbacks");f?(this.localHotConfigJobQueue=[].concat(_.$d(f)),this.sharedHotConfigJobQueue=f):(this.sharedHotConfigJobQueue=[],_.WL("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.q($7N,_.qR);$7N.prototype.disposeInternal=function(){for(var f=_.m(this.localHotConfigJobQueue),S=f.next();!S.done;S=f.next()){var B=this.sharedHotConfigJobQueue;S=B.indexOf(S.value);S>=0&&B.splice(S,1)}this.localHotConfigJobQueue.length=0;_.qR.prototype.disposeInternal.call(this)};var $H=function(){var f=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new $7N;this.TEST_ONLY={initializeConfigDb:function(){f.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return f.coldGlobalConfigGroup},
setHotConfigGroup:function(S){QJ8(f,S)},
setHotHashData:function(S){f.setHotHashData(S)},
setColdConfigGroup:function(S){Y4g(f,S)},
getColdHashData:function(){return f.coldHashData},
getHotHashData:function(){return f.hotHashData},
getHotConfigGroup:function(){return f.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return ryg()},
getExportedHotConfigGroup:function(){return qs()},
getExportedColdHashData:function(){return _.U6("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.U6("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){jJ7(f)},
resetInstance:function(){f.setHotHashData(void 0);OOi(f);delete $H.instance},
setDebounceTimer:function(S){f.debounceTimer=S},
getDebounceTimer:function(){return f.debounceTimer}}},x7i=function(){if(!$H.instance){var f=new $H;
$H.instance=f}return $H.instance},kVL=function(f){var S;
_.R(function(B){if(B.nextAddress==1)return _.K("start_client_gcf")||_.K("delete_gcf_config_db")?_.K("start_client_gcf")?_.h(B,_.cL(),3):B.jumpTo(2):B.return();B.nextAddress!=2&&((S=B.yieldResult)&&_.KN()&&!_.K("delete_gcf_config_db")?(f.isConfigDbInitialized=!0,jJ7(f)):(EJj(f),LNg(f)));return _.K("delete_gcf_config_db")?_.h(B,fuQ(),0):B.jumpTo(0)})},oeM=function(){var f;
return(f=qs())!=null?f:_.nL("RAW_HOT_CONFIG_GROUP")},nJ1=function(f){var S,B,G,g,b,z;
return _.R(function(X){switch(X.nextAddress){case 1:if(f.hotGlobalConfigGroup)return X.return(qs());if(!f.isConfigDbInitialized)return S=nN("getHotConfig IDB not initialized"),_.CL(S),X.return(Promise.reject(S));B=yP();G=_.nL("TIME_CREATED_MS");if(!B){g=nN("getHotConfig token error");_.CL(g);X.jumpTo(2);break}return _.h(X,lTN(B),3);case 3:if((b=X.yieldResult)&&b.timestamp>G)return QJ8(f,b.config),f.setHotHashData(b.hashData),X.return(qs());case 2:LNg(f);if(!(B&&f.hotGlobalConfigGroup&&f.hotHashData)){X.jumpTo(4);
break}return _.h(X,y2j(f.hotGlobalConfigGroup,f.hotHashData,B,G),4);case 4:return f.hotGlobalConfigGroup?X.return(qs()):(z=new _.dO("Config not available in ytConfig"),_.CL(z),X.return(Promise.reject(z)))}})},D7N=function(f){var S,B,G,g,b,z;
return _.R(function(X){switch(X.nextAddress){case 1:if(f.coldGlobalConfigGroup)return X.return(ryg());if(!f.isConfigDbInitialized)return S=nN("getColdConfig IDB not initialized"),_.CL(S),X.return(Promise.reject(S));B=yP();G=_.nL("TIME_CREATED_MS");if(!B){g=nN("getColdConfig");_.CL(g);X.jumpTo(2);break}return _.h(X,c21(B),3);case 3:if((b=X.yieldResult)&&b.timestamp>G)return Y4g(f,b.config),sJL(f,b.configData),OOi(f,b.hashData),X.return(ryg());case 2:EJj(f);if(!(B&&f.coldGlobalConfigGroup&&f.coldHashData&&
f.configData)){X.jumpTo(4);break}return _.h(X,Wj9(f.coldGlobalConfigGroup,f.coldHashData,f.configData,B,G),4);case 4:return f.coldGlobalConfigGroup?X.return(ryg()):(z=new _.dO("Config not available in ytConfig"),_.CL(z),X.return(Promise.reject(z)))}})},jJ7=function(f){if(!f.hotGlobalConfigGroup||!f.coldGlobalConfigGroup){if(!yP()){var S=nN("scheduleGetConfigs");
_.CL(S)}f.initJob||(f.initJob=_.xJ.addLowPriorityJob(function(){return _.R(function(B){switch(B.nextAddress){case 1:return _.zT(B,2),_.h(B,nJ1(f),4);case 4:_.CN(B,3);break;case 2:_.hm(B);case 3:return _.zT(B,5),_.h(B,D7N(f),7);case 7:_.CN(B,6);break;case 5:_.hm(B);case 6:f.initJob&&(f.initJob=0),_.TT(B)}})},100))}},yO9=function(f,S,B){var G,g,b;
return _.R(function(z){switch(z.nextAddress){case 1:if(!_.K("start_client_gcf")){z.jumpTo(0);break}B&&QJ8(f,B);f.setHotHashData(S);G=yP();if(!G){z.jumpTo(3);break}if(B){z.jumpTo(4);break}return _.h(z,lTN(G),5);case 5:g=z.yieldResult,B=(b=g)==null?void 0:b.config;case 4:return _.h(z,y2j(B,S,G),3);case 3:if(B)for(var X=B,w=_.m(f.configUpdateService.sharedHotConfigJobQueue),F=w.next();!F.done;F=w.next())F=F.value,F(X);_.TT(z)}})},W99=function(f,S,B){var G,g,b,z;
return _.R(function(X){if(X.nextAddress==1){if(!_.K("start_client_gcf"))return X.jumpTo(0);OOi(f,S);return(G=yP())?B?X.jumpTo(4):_.h(X,c21(G),5):X.jumpTo(0)}X.nextAddress!=4&&(g=X.yieldResult,B=(b=g)==null?void 0:b.config);if(!B)return X.jumpTo(0);z=B.configData;return _.h(X,Wj9(B,S,z,G),0)})},PWN=function(){var f=x7i(),S=(0,_.fO)()-f.debounceTimer;
if(!(f.debounceTimer!==0&&S<_.Gt("send_config_hash_timer"))){S=_.U6("yt.gcf.config.coldConfigData");var B=_.U6("yt.gcf.config.hotHashData"),G=_.U6("yt.gcf.config.coldHashData");S&&B&&G&&(f.debounceTimer=(0,_.fO)());return{coldConfigData:S,hotHashData:B,coldHashData:G}}},EJj=function(f){Y4g(f,_.nL("RAW_COLD_CONFIG_GROUP"));
OOi(f,_.nL("SERIALIZED_COLD_HASH_DATA"));var S;sJL(f,(S=f.coldGlobalConfigGroup)==null?void 0:S.configData)},LNg=function(f){QJ8(f,_.nL("RAW_HOT_CONFIG_GROUP"));
f.setHotHashData(_.nL("SERIALIZED_HOT_HASH_DATA"))},QJ8=function(f,S){f.hotGlobalConfigGroup=S;
_.WL("yt.gcf.config.hotConfigGroup",f.hotGlobalConfigGroup||null)},Y4g=function(f,S){f.coldGlobalConfigGroup=S;
_.WL("yt.gcf.config.coldConfigGroup",f.coldGlobalConfigGroup||null)};
$H.prototype.setHotHashData=function(f){this.hotHashData=f;_.WL("yt.gcf.config.hotHashData",this.hotHashData||null)};
var OOi=function(f,S){f.coldHashData=S;_.WL("yt.gcf.config.coldHashData",f.coldHashData||null)},sJL=function(f,S){f.configData=S;
_.WL("yt.gcf.config.coldConfigData",f.configData||null)},qs=function(){return _.U6("yt.gcf.config.hotConfigGroup")},ryg=function(){return _.U6("yt.gcf.config.coldConfigGroup")};var X3={},IXv=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";X3.assign=function(f){for(var S=Array.prototype.slice.call(arguments,1);S.length;){var B=S.shift();if(B){if(typeof B!=="object")throw new TypeError("Wc`"+B);for(var G in B)Object.prototype.hasOwnProperty.call(B,G)&&(f[G]=B[G])}}return f};
X3.shrinkBuf=function(f,S){if(f.length===S)return f;if(f.subarray)return f.subarray(0,S);f.length=S;return f};
var U76={arraySet:function(f,S,B,G,g){if(S.subarray&&f.subarray)f.set(S.subarray(B,B+G),g);else for(var b=0;b<G;b++)f[g+b]=S[B+b]},
flattenChunks:function(f){var S,B;var G=B=0;for(S=f.length;G<S;G++)B+=f[G].length;var g=new Uint8Array(B);G=B=0;for(S=f.length;G<S;G++){var b=f[G];g.set(b,B);B+=b.length}return g}},CP8={arraySet:function(f,S,B,G,g){for(var b=0;b<G;b++)f[g+b]=S[B+b]},
flattenChunks:function(f){return[].concat.apply([],f)}};
X3.setTyped=function(){IXv?(X3.Buf8=Uint8Array,X3.Buf16=Uint16Array,X3.Buf32=Int32Array,X3.assign(X3,U76)):(X3.Buf8=Array,X3.Buf16=Array,X3.Buf32=Array,X3.assign(X3,CP8))};
X3.setTyped();var pU$=!0;try{new Uint8Array(1)}catch(f){pU$=!1}
var luN=function(f){var S,B,G=f.length,g=0;for(S=0;S<G;S++){var b=f.charCodeAt(S);if((b&64512)===55296&&S+1<G){var z=f.charCodeAt(S+1);(z&64512)===56320&&(b=65536+(b-55296<<10)+(z-56320),S++)}g+=b<128?1:b<2048?2:b<65536?3:4}var X=new X3.Buf8(g);for(S=B=0;B<g;S++)b=f.charCodeAt(S),(b&64512)===55296&&S+1<G&&(z=f.charCodeAt(S+1),(z&64512)===56320&&(b=65536+(b-55296<<10)+(z-56320),S++)),b<128?X[B++]=b:(b<2048?X[B++]=192|b>>>6:(b<65536?X[B++]=224|b>>>12:(X[B++]=240|b>>>18,X[B++]=128|b>>>12&63),X[B++]=
128|b>>>6&63),X[B++]=128|b&63);return X};var UEV={};UEV=function(f,S,B,G){var g=f&65535|0;f=f>>>16&65535|0;for(var b;B!==0;){b=B>2E3?2E3:B;B-=b;do g=g+S[G++]|0,f=f+g|0;while(--b);g%=65521;f%=65521}return g|f<<16|0};for(var q7={},$9,Ay7=[],NZ1=0;NZ1<256;NZ1++){$9=NZ1;for(var MCo=0;MCo<8;MCo++)$9=$9&1?3988292384^$9>>>1:$9>>>1;Ay7[NZ1]=$9}q7=function(f,S,B,G){B=G+B;for(f^=-1;G<B;G++)f=f>>>8^Ay7[(f^S[G])&255];return f^-1};var F3={};F3={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 rfK=[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],O2M=[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],cfT=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],DEK=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],vU=Array(576);bP(vU);var KO=Array(60);bP(KO);var hy=Array(512);bP(hy);var wZ=Array(256);bP(wZ);var jDQ=Array(29);bP(jDQ);var xEV=Array(30);bP(xEV);var au1,yfM,WU9,uhG=!1;var O4;
O4=[new jC(0,0,0,0,function(f,S){var B=65535;for(B>f.pending_buf_size-5&&(B=f.pending_buf_size-5);;){if(f.lookahead<=1){$J(f);if(f.lookahead===0&&S===0)return 1;if(f.lookahead===0)break}f.strstart+=f.lookahead;f.lookahead=0;var G=f.block_start+B;if(f.strstart===0||f.strstart>=G)if(f.lookahead=f.strstart-G,f.strstart=G,dZ(f,!1),f.strm.avail_out===0)return 1;if(f.strstart-f.block_start>=f.w_size-262&&(dZ(f,!1),f.strm.avail_out===0))return 1}f.insert=0;if(S===4)return dZ(f,!0),f.strm.avail_out===0?3:
4;f.strstart>f.block_start&&dZ(f,!1);return 1}),
new jC(4,4,8,4,CWs),new jC(4,5,16,8,CWs),new jC(4,6,32,32,CWs),new jC(4,4,16,16,rZ),new jC(8,16,32,32,rZ),new jC(8,16,128,128,rZ),new jC(8,32,128,256,rZ),new jC(32,128,258,1024,rZ),new jC(32,258,258,4096,rZ)];var tw1={};tw1=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 fKA=Object.prototype.toString;
Z2V.prototype.push=function(f,S){var B=this.strm,G=this.options.chunkSize;if(this.ended)return!1;var g=S===~~S?S:S===!0?4:0;typeof f==="string"?B.input=luN(f):fKA.call(f)==="[object ArrayBuffer]"?B.input=new Uint8Array(f):B.input=f;B.next_in=0;B.avail_in=B.input.length;do{B.avail_out===0&&(B.output=new X3.Buf8(G),B.next_out=0,B.avail_out=G);f=MwG(B,g);if(f!==1&&f!==0)return ZOv(this,f),this.ended=!0,!1;if(B.avail_out===0||B.avail_in===0&&(g===4||g===2))if(this.options.to==="string"){var b=X3.shrinkBuf(B.output,
B.next_out);S=b;b=b.length;if(b<65537&&(S.subarray&&pU$||!S.subarray))S=String.fromCharCode.apply(null,X3.shrinkBuf(S,b));else{for(var z="",X=0;X<b;X++)z+=String.fromCharCode(S[X]);S=z}this.chunks.push(S)}else S=X3.shrinkBuf(B.output,B.next_out),this.chunks.push(S)}while((B.avail_in>0||B.avail_out===0)&&f!==1);if(g===4)return(B=this.strm)&&B.state?(G=B.state.status,G!==42&&G!==69&&G!==73&&G!==91&&G!==103&&G!==113&&G!==666?f=Vd(B,-2):(B.state=null,f=G===113?Vd(B,-3):0)):f=-2,ZOv(this,f),this.ended=
!0,f===0;g===2&&(ZOv(this,0),B.avail_out=0);return!0};
var ZOv=function(f,S){S===0&&(f.result=f.options.to==="string"?f.chunks.join(""):X3.flattenChunks(f.chunks));f.chunks=[];f.err=S;f.msg=f.strm.msg};var tCL=typeof TextEncoder!=="undefined"?new TextEncoder:null,jcs=tCL?function(f){return tCL.encode(f)}:function(f){f=_.Hv(f);
for(var S=new Uint8Array(f.length),B=0;B<S.length;B++)S[B]=f[B];return S};var o9N={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},BFM={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var Qo=function(f,S){this.version=f;this.args=S};
Qo.prototype.serialize=function(){return{version:this.version,args:this.args}};var grT=function(f,S){this.topic=f;this.dataClass=S};
grT.prototype.toString=function(){return this.topic};var u3m=_.U6("ytPubsub2Pubsub2Instance")||new _.Tt;_.Tt.prototype.subscribe=_.Tt.prototype.subscribe;_.Tt.prototype.unsubscribeByKey=_.Tt.prototype.unsubscribeByKey;_.Tt.prototype.publish=_.Tt.prototype.publish;_.Tt.prototype.clear=_.Tt.prototype.clear;_.WL("ytPubsub2Pubsub2Instance",u3m);var GcT=_.U6("ytPubsub2Pubsub2SubscribedKeys")||{};_.WL("ytPubsub2Pubsub2SubscribedKeys",GcT);var bJN=_.U6("ytPubsub2Pubsub2TopicToKeys")||{};_.WL("ytPubsub2Pubsub2TopicToKeys",bJN);
var exK=_.U6("ytPubsub2Pubsub2IsAsync")||{};_.WL("ytPubsub2Pubsub2IsAsync",exK);_.WL("ytPubsub2Pubsub2SkipSubKey",null);var JRN=void 0,FW9=void 0;var $zQ=_.Gt("max_body_size_to_compress",5E5),Qcj=_.Gt("min_body_size_to_compress",500),LO=!0,Ers=0,kJ=0,xzW=_.Gt("compression_performance_threshold_lr",250),LWQ=_.Gt("slow_compressions_before_abandon_count",4),KW1=!1,dzs=new Map,rRs=1,YAN=!0;_.Rm(nO,scN);nO.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 aXg=function(f,S,B){B||(B=0);var G=f.W_;if(typeof S==="string")for(var g=0;g<16;g++)G[g]=S.charCodeAt(B)<<24|S.charCodeAt(B+1)<<16|S.charCodeAt(B+2)<<8|S.charCodeAt(B+3),B+=4;else for(g=0;g<16;g++)G[g]=S[B]<<24|S[B+1]<<16|S[B+2]<<8|S[B+3],B+=4;for(S=16;S<80;S++)B=G[S-3]^G[S-8]^G[S-14]^G[S-16],G[S]=(B<<1|B>>>31)&4294967295;S=f.chain_[0];B=f.chain_[1];g=f.chain_[2];for(var b=f.chain_[3],z=f.chain_[4],X,w,F=0;F<80;F++)F<40?F<20?(X=b^B&(g^b),w=1518500249):(X=B^g^b,w=1859775393):F<60?(X=B&g|b&(B|g),
w=2400959708):(X=B^g^b,w=3395469782),X=(S<<5|S>>>27)+X+z+w+G[F]&4294967295,z=b,b=g,g=(B<<30|B>>>2)&4294967295,B=S,S=X;f.chain_[0]=f.chain_[0]+S&4294967295;f.chain_[1]=f.chain_[1]+B&4294967295;f.chain_[2]=f.chain_[2]+g&4294967295;f.chain_[3]=f.chain_[3]+b&4294967295;f.chain_[4]=f.chain_[4]+z&4294967295};
nO.prototype.update=function(f,S){if(f!=null){S===void 0&&(S=f.length);for(var B=S-this.blockSize,G=0,g=this.buf_,b=this.inbuf_;G<S;){if(b==0)for(;G<=B;)aXg(this,f,G),G+=this.blockSize;if(typeof f==="string")for(;G<S;){if(g[b]=f.charCodeAt(G),++b,++G,b==this.blockSize){aXg(this,g);b=0;break}}else for(;G<S;)if(g[b]=f[G],++b,++G,b==this.blockSize){aXg(this,g);b=0;break}}this.inbuf_=b;this.total_+=S}};
nO.prototype.digest=function(){var f=[],S=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var B=this.blockSize-1;B>=56;B--)this.buf_[B]=S&255,S/=256;aXg(this,this.buf_);for(B=S=0;B<5;B++)for(var G=24;G>=0;G-=8)f[S]=this.chain_[B]>>G&255,++S;return f};var UzK;var rF=function(f){var S=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(V){S.databaseToken=V},
triggerThrottle:function(){S.throttledSend()},
cancelThrottle:function(){S.cancelThrottledSend()},
immediateSend:function(V){return _.R(function(J){return _.h(J,S.immediateSend(V),0)})},
requestWithinAgeLimit:function(V,J){return S.requestWithinAgeLimit(V,J)},
retryQueuedRequests:function(){S.retryQueuedRequests()}};
var B;this.throttleTimeout=(B=f.throttleTimeout)!=null?B:100;var G;this.retryMaxAttempts=(G=f.retryMaxAttempts)!=null?G:1;var g;this.requestAgeLimitMs=(g=f.requestAgeLimitMs)!=null?g:2592E6;var b;this.queuedRequestAgeLimitMs=(b=f.queuedRequestAgeLimitMs)!=null?b:12E4;var z;this.retryDelayMs=(z=f.retryDelayMs)!=null?z:5E3;var X;this.databaseToken=(X=f.databaseToken)!=null?X:void 0;this.enableCleaning=!!f.enableCleaning;var w;this.cleaningRate=(w=f.cleaningRate)!=null?w:.1;var F;this.potentialEsfErrorLimit=
(F=f.potentialEsfErrorLimit)!=null?F:10;f.handleError&&(this.handleError=f.handleError);f.handleWarning&&(this.handleWarning=f.handleWarning);f.disableYtIdbTransactions&&(this.disableYtIdbTransactions=f.disableYtIdbTransactions);f.bypassDbTokenDependency&&(this.bypassDbTokenDependency=f.bypassDbTokenDependency);this.getBooleanFlag=f.getBooleanFlag;this.jobManager=f.jobManager;this.logsStore=f.logsStore;this.networkManager=f.networkManager;this.sendFn=f.sendFn;this.onlineEvent=f.onlineEvent;this.offlineEvent=
f.offlineEvent;Y9(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&yym(this)},yym=function(f){Y9(f)&&!f.disableYtIdbTransactions&&(f.initialized=!0,f.enableCleaning&&Math.random()<=f.cleaningRate&&f.logsStore.cleanLogsStore(f.databaseToken),f.retryQueuedRequests(),f.networkManager.isNetworkAvailable()&&f.throttledSend(),f.networkManager.listen(f.onlineEvent,f.throttledSend.bind(f)),f.networkManager.listen(f.offlineEvent,f.cancelThrottledSend.bind(f)))};
_.e=rF.prototype;_.e.writeThenSend=function(f,S){var B=this;S=S===void 0?{}:S;if(Y9(this)&&this.initialized){var G={url:f,options:S,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(G,this.databaseToken).then(function(g){G.id=g;B.networkManager.isNetworkAvailable()&&B.immediateSend(G)}).catch(function(g){B.immediateSend(G);
WNm(B,g)})}else this.sendFn(f,S)};
_.e.sendThenWrite=function(f,S,B){var G=this;S=S===void 0?{}:S;if(Y9(this)&&this.initialized){var g={url:f,options:S,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(g.skipRetry=B);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!g.skipRetry){if(!g.skipRetry){var b=S.onError?S.onError:function(){};
S.onError=function(z,X){return _.R(function(w){if(w.nextAddress==1)return _.h(w,G.logsStore.set(g,G.databaseToken).catch(function(F){WNm(G,F)}),2);
b(z,X);_.TT(w)})}}this.sendFn(f,S,g.skipRetry)}else this.logsStore.set(g,this.databaseToken).catch(function(z){G.sendFn(f,S,g.skipRetry);
WNm(G,z)})}else this.sendFn(f,S,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&B)};
_.e.sendAndWrite=function(f,S){var B=this;S=S===void 0?{}:S;if(Y9(this)&&this.initialized){var G={url:f,options:S,timestamp:this.now(),status:"NEW",sendCount:0},g=!1,b=S.onSuccess?S.onSuccess:function(){};
G.options.onSuccess=function(z,X){G.id!==void 0?B.logsStore.deleteRequest(G.id,B.databaseToken):g=!0;B.networkManager.networkStatusHint&&B.getBooleanFlag&&B.getBooleanFlag("vss_network_hint")&&B.networkManager.networkStatusHint(!0);b(z,X)};
this.sendFn(G.url,G.options,void 0,!0);this.logsStore.set(G,this.databaseToken).then(function(z){G.id=z;g&&B.logsStore.deleteRequest(G.id,B.databaseToken)}).catch(function(z){WNm(B,z)})}else this.sendFn(f,S,void 0,!0)};
_.e.throttledSend=function(){var f=this;if(!Y9(this))throw Error("Zc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var S;return _.R(function(B){if(B.nextAddress==1)return _.h(B,f.logsStore.getMostRecentByStatus("NEW",f.databaseToken),2);if(B.nextAddress!=3)return S=B.yieldResult,S?_.h(B,f.immediateSend(S),3):(f.cancelThrottledSend(),B.return());f.intervalJob&&(f.intervalJob=0,f.throttledSend());_.TT(B)})},this.throttleTimeout))};
_.e.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.e.immediateSend=function(f){var S=this,B;return _.R(function(G){switch(G.nextAddress){case 1:if(!Y9(S))throw Error("$c");if(f.id===void 0){G.jumpTo(2);break}return _.h(G,S.logsStore.markAsQueued(f.id,S.databaseToken),3);case 3:(B=G.yieldResult)||S.handleWarning(Error("ad"));case 2:if(S.requestWithinAgeLimit(f,S.requestAgeLimitMs)){G.jumpTo(4);break}S.handleWarning(Error("bd"));if(f.id===void 0){G.jumpTo(5);break}return _.h(G,S.logsStore.deleteRequest(f.id,S.databaseToken),5);case 5:return G.return();
case 4:f.skipRetry||(f=cy7(S,f));if(!f){G.jumpTo(0);break}if(!f.skipRetry||f.id===void 0){G.jumpTo(8);break}return _.h(G,S.logsStore.deleteRequest(f.id,S.databaseToken),8);case 8:S.sendFn(f.url,f.options,!!f.skipRetry),_.TT(G)}})};
var cy7=function(f,S){if(!Y9(f))throw Error("cd");var B=S.options.onError?S.options.onError:function(){};
S.options.onError=function(g,b){var z,X,w,F;return _.R(function(V){switch(V.nextAddress){case 1:z=MfA(b);(X=ZJA(b))&&f.getBooleanFlag&&f.getBooleanFlag("web_enable_error_204")&&f.handleError(Error("dd"),S.url,b);if(!(f.getBooleanFlag&&f.getBooleanFlag("nwl_consider_error_code")&&z||f.getBooleanFlag&&!f.getBooleanFlag("nwl_consider_error_code")&&f.potentialEsfErrorCounter<=f.potentialEsfErrorLimit)){V.jumpTo(2);break}if(!f.networkManager.sendNetworkCheckRequest){V.jumpTo(3);break}return _.h(V,f.networkManager.sendNetworkCheckRequest(),
3);case 3:if(f.networkManager.isNetworkAvailable()){V.jumpTo(2);break}B(g,b);if(!f.getBooleanFlag||!f.getBooleanFlag("nwl_consider_error_code")||((w=S)==null?void 0:w.id)===void 0){V.jumpTo(6);break}return _.h(V,f.logsStore.resetRequest(S.id,f.databaseToken,!1),6);case 6:return V.return();case 2:if(f.getBooleanFlag&&f.getBooleanFlag("nwl_consider_error_code")&&!z&&f.potentialEsfErrorCounter>f.potentialEsfErrorLimit)return V.return();f.potentialEsfErrorCounter++;if(((F=S)==null?void 0:F.id)===void 0){V.jumpTo(8);
break}return S.sendCount<f.retryMaxAttempts?_.h(V,f.logsStore.resetRequest(S.id,f.databaseToken,!0,X?!1:void 0),12):_.h(V,f.logsStore.deleteRequest(S.id,f.databaseToken),8);case 12:f.jobManager.addLowPriorityJob(function(){f.networkManager.isNetworkAvailable()&&f.throttledSend()},f.retryDelayMs);
case 8:B(g,b),_.TT(V)}})};
var G=S.options.onSuccess?S.options.onSuccess:function(){};
S.options.onSuccess=function(g,b){var z;return _.R(function(X){if(X.nextAddress==1)return((z=S)==null?void 0:z.id)===void 0?X.jumpTo(2):_.h(X,f.logsStore.deleteRequest(S.id,f.databaseToken),2);f.networkManager.networkStatusHint&&f.getBooleanFlag&&f.getBooleanFlag("vss_network_hint")&&f.networkManager.networkStatusHint(!0);G(g,b);_.TT(X)})};
return S};
rF.prototype.requestWithinAgeLimit=function(f,S){f=f.timestamp;return this.now()-f>=S?!1:!0};
rF.prototype.retryQueuedRequests=function(){var f=this;if(!Y9(this))throw Error("ed");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(S){S&&!f.requestWithinAgeLimit(S,f.queuedRequestAgeLimitMs)?f.jobManager.addLowPriorityJob(function(){return _.R(function(B){if(B.nextAddress==1)return S.id===void 0?B.jumpTo(2):_.h(B,f.logsStore.resetRequest(S.id,f.databaseToken),2);f.retryQueuedRequests();_.TT(B)})}):f.networkManager.isNetworkAvailable()&&f.throttledSend()})};
var WNm=function(f,S){f.writeError&&!f.networkManager.isNetworkAvailable()?f.writeError(S):f.handleError(S)},Y9=function(f){return!!f.databaseToken||f.bypassDbTokenDependency};var tfA;var fwN={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,
startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,
keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,
adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525};var lXN={},B3K=la("ServiceWorkerLogsDatabase",{objectStores:(lXN.SWHealthLog={addedAtVersion:1},lXN),shared:!0,upgrade:function(f,S){S(1)&&U4(IJ(f,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var Xt1={},R71=0;var Fd9;var jn=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},M7=function(){if(!jn.instance){var f=_.U6("yt.networkRequestMonitor.instance")||new jn;
_.WL("yt.networkRequestMonitor.instance",f);jn.instance=f}return jn.instance};
jn.prototype.requestComplete=function(f,S){S&&(this.anyRequestHasSucceeded=!0);f=this.removeParams(f);this.requestMap.get(f)||this.requestMap.set(f,S)};
jn.prototype.isEndpointCFR=function(f){f=this.removeParams(f);return(f=this.requestMap.get(f))?!1:f===!1&&this.anyRequestHasSucceeded?!0:null};
jn.prototype.removeParams=function(f){return f.split("?")[0]};
jn.prototype.removeParams=jn.prototype.removeParams;jn.prototype.isEndpointCFR=jn.prototype.isEndpointCFR;jn.prototype.requestComplete=jn.prototype.requestComplete;jn.getInstance=M7;var Oc=function(f){_.$o.call(this);var S=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=f!=null?f:{addLowPriorityJob:function(g,b){return setTimeout(g,b)},
cancelJob:function(g){clearTimeout(g)}};
var B,G;this.isOnline=(G=(B=window.navigator)==null?void 0:B.onLine)!=null?G:!0;this.onNavigatorChange=function(){return _.R(function(g){return _.h(g,f0j(S),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||oH7(this)};
_.q(Oc,_.$o);Oc.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete Oc.instance};
Oc.prototype.isNetworkAvailable=function(){return this.isOnline};
var oH7=function(f){f.pollingJob=f.jobManager.addLowPriorityJob(function(){var S;return _.R(function(B){if(B.nextAddress==1)return f.isOnline?((S=window.navigator)==null?0:S.onLine)?B.jumpTo(3):_.h(B,f0j(f),3):_.h(B,f0j(f),3);oH7(f);_.TT(B)})},3E4)},f0j=function(f,S){return f.networkRequestPromise?f.networkRequestPromise:f.networkRequestPromise=new Promise(function(B){var G,g,b,z;
return _.R(function(X){switch(X.nextAddress){case 1:return G=window.AbortController?new window.AbortController:void 0,b=(g=G)==null?void 0:g.signal,z=!1,_.zT(X,2,3),G&&(f.abortTimeoutKey=f.jobManager.addLowPriorityJob(function(){G.abort()},S||2E4)),_.h(X,fetch("/generate_204",{method:"HEAD",
signal:b}),5);case 5:z=!0;case 3:_.Rs(X);f.networkRequestPromise=void 0;f.abortTimeoutKey&&(f.jobManager.cancelJob(f.abortTimeoutKey),f.abortTimeoutKey=0);z!==f.isOnline&&(f.isOnline=z,f.isOnline?f.dispatchEvent("networkstatus-online"):f.dispatchEvent("networkstatus-offline"));B(z);_.wz(X,0);break;case 2:_.hm(X),z=!1,X.jumpTo(3)}})})};var x9=function(){_.$o.call(this);var f=this;this.shouldFlushErrors=!1;Oc.instance||(Oc.instance=new Oc(_.xJ));this.sharedNetworkStatusManager=Oc.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(f.shouldFlushErrors&&_.K("offline_error_handling")){var S=VaK().get("errors",!0);if(S){for(var B in S)if(S[B]){var G=new _.dO(B,"sent via offline_errors");G.name=S[B].name;G.stack=S[B].stack;G.level=S[B].level;_.Dt(G)}VaK().set("errors",{},2592E3,!0)}}})};
_.q(x9,_.$o);var SUg=function(){if(!x9.instance){var f=_.U6("yt.networkStatusManager.instance")||new x9;_.WL("yt.networkStatusManager.instance",f);x9.instance=f}return x9.instance};
_.e=x9.prototype;_.e.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.e.networkStatusHint=function(f){this.sharedNetworkStatusManager.isOnline=f};
_.e.getWindowStatus=function(){var f=window.navigator.onLine;return f===void 0?!0:f};
_.e.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.e.listen=function(f,S){return this.sharedNetworkStatusManager.listen(f,S)};
_.e.sendNetworkCheckRequest=function(f){f=f0j(this.sharedNetworkStatusManager,f);f.then(function(S){_.K("use_cfr_monitor")&&M7().requestComplete("generate_204",S)});
return f};
x9.prototype.sendNetworkCheckRequest=x9.prototype.sendNetworkCheckRequest;x9.prototype.listen=x9.prototype.listen;x9.prototype.enableErrorFlushing=x9.prototype.enableErrorFlushing;x9.prototype.getWindowStatus=x9.prototype.getWindowStatus;x9.prototype.networkStatusHint=x9.prototype.networkStatusHint;x9.prototype.isNetworkAvailable=x9.prototype.isNetworkAvailable;x9.getInstance=SUg;_.N7=function(f){f=f===void 0?{}:f;_.$o.call(this);var S=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=SUg();var B=_.U6("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);B&&(f.rateLimit?(this.rateLimit=f.rateLimit,B("networkstatus-online",function(){BCv(S,"publicytnetworkstatus-online")}),B("networkstatus-offline",function(){BCv(S,"publicytnetworkstatus-offline")})):(B("networkstatus-online",function(){S.dispatchEvent("publicytnetworkstatus-online")}),B("networkstatus-offline",
function(){S.dispatchEvent("publicytnetworkstatus-offline")})))};
_.q(_.N7,_.$o);_.N7.prototype.isNetworkAvailable=function(){var f=_.U6("yt.networkStatusManager.instance.isNetworkAvailable");return f?f.bind(this.nsmInstance)():!0};
_.N7.prototype.networkStatusHint=function(f){var S=_.U6("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);S&&S(f)};
_.N7.prototype.sendNetworkCheckRequest=function(f){var S=this,B;return _.R(function(G){B=_.U6("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(S.nsmInstance);return _.K("skip_network_check_if_cfr")&&M7().isEndpointCFR("generate_204")?G.return(new Promise(function(g){var b;S.networkStatusHint(((b=window.navigator)==null?void 0:b.onLine)||!0);g(S.isNetworkAvailable())})):B?G.return(B(f)):G.return(!0)})};
var BCv=function(f,S){f.rateLimit?f.lastJobTime?(_.xJ.cancelJob(f.schedulerJob),f.schedulerJob=_.xJ.addLowPriorityJob(function(){f.lastPublicSignalSent!==S&&(f.dispatchEvent(S),f.lastPublicSignalSent=S,f.lastJobTime=(0,_.fO)())},f.rateLimit-((0,_.fO)()-f.lastJobTime))):(f.dispatchEvent(S),f.lastPublicSignalSent=S,f.lastJobTime=(0,_.fO)()):f.dispatchEvent(S)};var doj,Ec=function(){rF.call(this,{logsStore:{cleanLogsStore:oGV,deleteRequest:fUj,getMostRecentByStatus:WWW,markAsQueued:cRj,resetRequest:lKW,set:yRN},networkManager:_.inV(),handleError:function(f,S,B){var G,g=B==null?void 0:(G=B.error)==null?void 0:G.code;if(g===400||g===415){var b;f=new _.dO(f.message,S,B==null?void 0:(b=B.error)==null?void 0:b.code);_.CL(f,void 0,void 0,void 0,!0)}else _.Dt(f)},
handleWarning:_.CL,sendFn:vG1,now:_.fO,writeError:JKN,jobManager:_.kj(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.Gt("potential_esf_error_limit",10),getBooleanFlag:_.K,disableYtIdbTransactions:!(_.KN()&&_.HnW())});this.initializationPromise=new _.w3;_.K("networkless_immediately_drop_all_requests")&&St1();Zkj("LogsDatabaseV2")};
_.q(Ec,rF);_.gHi=function(){var f=_.U6("yt.networklessRequestController.instance");f||(f=new Ec,_.WL("yt.networklessRequestController.instance",f),_.K("networkless_logging")&&_.cL().then(function(S){f.databaseToken=S;yym(f);f.initializationPromise.resolve();f.enableCleaning&&Math.random()<=f.cleaningRate&&f.databaseToken&&gGW(f.databaseToken);_.K("networkless_immediately_drop_sw_health_store")&&GMi(f)}));
return f};
Ec.prototype.writeThenSend=function(f,S){S||(S={});S=KdQ(f,S);_.KN()||(this.initialized=!1);rF.prototype.writeThenSend.call(this,f,S)};
Ec.prototype.sendThenWrite=function(f,S,B){S||(S={});S=KdQ(f,S);_.KN()||(this.initialized=!1);rF.prototype.sendThenWrite.call(this,f,S,B)};
Ec.prototype.sendAndWrite=function(f,S){S||(S={});S=KdQ(f,S);_.KN()||(this.initialized=!1);rF.prototype.sendAndWrite.call(this,f,S)};
Ec.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var GMi=function(f){var S;_.R(function(B){if(!f.databaseToken)throw S=nN("clearSWHealthLogsDb"),S;return B.return(e7j(f.databaseToken).catch(function(G){f.handleError(G)}))})};_.$oM=!1;_.qtj=_.S1.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.$oM};_.WL("ytNetworklessLoggingInitializationOptions",_.qtj);var rC=function(f){var S=this;this.config_=null;f?this.config_=f:oTN()&&(this.config_=_.SC());_.q6(_.xJ,function(){N9T(S)},5E3)};
rC.prototype.isReady=function(){!this.config_&&oTN()&&(this.config_=_.SC());return!!this.config_};
var AR1=function(f,S,B,G){!_.nL("VISITOR_DATA")&&S!=="visitor_id"&&Math.random()<.01&&_.CL(new _.dO("Missing VISITOR_DATA when sending innertube request.",S,B,G));if(!f.isReady()){var g=new _.dO("innertube xhrclient not ready",S,B,G);_.Dt(g);throw g;}var b={headers:G.headers||{},method:"POST",postParams:B,postBody:G.postBody,postBodyFormat:G.postBodyFormat||"JSON",onTimeout:function(){G.onTimeout()},
onFetchTimeout:G.onTimeout,onSuccess:function(J,P){if(G.onSuccess)G.onSuccess(P)},
onFetchSuccess:function(J){if(G.onSuccess)G.onSuccess(J)},
onError:function(J,P){if(G.onError)G.onError(P)},
onFetchError:function(J){if(G.onError)G.onError(J)},
timeout:G.timeout,withCredentials:!0,compress:G.compress};b.headers["Content-Type"]||(b.headers["Content-Type"]="application/json");var z="";(g=f.config_.innertubeHostOverride)&&(z=g);var X=f.config_.innertubeUseThirdPartyAuth||!1,w=_.Jfj(X,z,G);Object.assign(b.headers,w);b.headers.Authorization&&!z&&X&&(b.headers["x-origin"]=window.location.origin);var F=_.Zt(z+("/youtubei/"+f.config_.innertubeApiVersion+"/"+S),{alt:"json"}),V=function(J){J=J===void 0?!1:J;var P;if(G.retry&&z!="www.youtube-nocookie.com"&&
(J||_.K("skip_ls_gel_retry")||b.headers["Content-Type"]!=="application/json"||(P=CC1(S,B,w,X)),P)){var d=b.onSuccess,Q=b.onFetchSuccess;b.onSuccess=function(U,A){p2N(P);d(U,A)};
B.onFetchSuccess=function(U,A){p2N(P);Q(U,A)}}try{if(J&&G.retry&&!G.networklessOptions.bypassNetworkless)b.method="POST",G.networklessOptions.writeThenSend?_.gHi().writeThenSend(F,b):_.gHi().sendAndWrite(F,b);
else if(G.compress){var x=!G.networklessOptions.writeThenSend;if(b.postBody){var E=b.postBody;typeof E!=="string"&&(E=JSON.stringify(b.postBody));OJQ(F,E,b,_.wO,x)}else OJQ(F,JSON.stringify(b.postParams),b,sfQ,x)}else _.K("web_all_payloads_via_jspb")?_.wO(F,b):sfQ(F,b)}catch(U){if(U.name==="InvalidAccessError")P&&(p2N(P),P=0),_.CL(Error("fd"));else throw U;}P&&_.q6(_.xJ,function(){N9T(f)},5E3)};
_.QeA()?D51().then(function(J){V(J)}):V(!1)};var rVV=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(rVV,_.s7);var e_8=0,rKW=_.V9?"webkit":_.Fx?"moz":_.Td?"ms":JtN?"o":"";_.WL("ytDomDomGetNextId",_.U6("ytDomDomGetNextId")||function(){return++e_8});var bgN={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},WU=function(f){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(f=
f||window.event){this.event=f;for(var S in f)S in bgN||(this[S]=f[S]);this.scale=f.scale;this.rotation=f.rotation;var B=f.target||f.srcElement;B&&B.nodeType==3&&(B=B.parentNode);this.target=B;var G=f.relatedTarget;if(G)try{G=G.nodeName?G:null}catch(g){G=null}else this.type=="mouseover"?G=f.fromElement:this.type=="mouseout"&&(G=f.toElement);this.relatedTarget=G;this.clientX=f.clientX!=void 0?f.clientX:f.pageX;this.clientY=f.clientY!=void 0?f.clientY:f.pageY;this.keyCode=f.keyCode?f.keyCode:f.which;
this.charCode=f.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=f.altKey;this.ctrlKey=f.ctrlKey;this.shiftKey=f.shiftKey;this.metaKey=f.metaKey;this.pageX_=f.pageX;this.pageY_=f.pageY}}catch(g){}},m68=function(f){if(document.body&&document.documentElement){var S=document.body.scrollTop+document.documentElement.scrollTop;
f.pageX_=f.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);f.pageY_=f.clientY+S}};
WU.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
WU.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
WU.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var yd=_.S1.ytEventsEventsListeners||{};_.WL("ytEventsEventsListeners",yd);var kFV=_.S1.ytEventsEventsCounter||{count:0};_.WL("ytEventsEventsCounter",kFV);var nGx=_.i4(function(){var f=!1;try{var S=Object.defineProperty({},"capture",{get:function(){f=!0}});
window.addEventListener("test",null,S)}catch(B){}return f});_.Rm(lP,_.qR);lP.prototype.onMouseMove_=function(f){f.pageX_===void 0&&m68(f);var S=f.pageX_;f.pageY_===void 0&&m68(f);this.position_=new _.ru(S,f.pageY_)};
lP.prototype.checkPosition_=function(){if(this.position_){var f=(0,_.fO)();if(this.previousTime_!=0){var S=this.previousPosition_,B=this.position_,G=S.x-B.x;S=S.y-B.y;G=Math.sqrt(G*G+S*S)/(f-this.previousTime_);this.cycles_[this.index_]=Math.abs((G-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(B=S=0;B<4;B++)S+=this.cycles_[B]||0;S>=3&&this.callback_();this.previousVelocity_=G}this.previousTime_=f;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
lP.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.seN(this.mouseListenerKey_)};var CtN={};var aeG=new _.u("rawColdConfigGroup");var ucT=new _.u("rawHotConfigGroup");var z_i=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(z_i,_.s7);var YEN=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(YEN,_.s7);var HD=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f,500)};
_.q(HD,_.s7);HD.prototype.getPayloadCase=function(){return _.rp(this,R_j)};
HD.prototype.getContext=function(){return _.BU(this,YEN,33)};
var R_j=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525];var pFs=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(pFs,_.s7);var JOV=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(JOV,_.s7);JOV.prototype.setVideoId=function(f){return FX(this,1,PuT,DZ(f))};
JOV.prototype.getPlaylistId=function(){return _.Vf(this,Kg(this,PuT,2))};
var PuT=[1,2];var nbK=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(nbK,_.s7);nbK.prototype.getContext=function(){return _.BU(this,V0,1)};
nbK.prototype.getTier=function(){return _.sH(this,7)};var XDN,BD,gC;XDN=_.S1.ytPubsubPubsubInstance||new _.Tt;BD=_.S1.ytPubsubPubsubSubscribedKeys||{};gC=_.S1.ytPubsubPubsubTopicToKeys||{};_.ptQ=_.S1.ytPubsubPubsubIsSynchronous||{};_.Tt.prototype.subscribe=_.Tt.prototype.subscribe;_.Tt.prototype.unsubscribeByKey=_.Tt.prototype.unsubscribeByKey;_.Tt.prototype.publish=_.Tt.prototype.publish;_.Tt.prototype.clear=_.Tt.prototype.clear;_.WL("ytPubsubPubsubInstance",XDN);_.WL("ytPubsubPubsubTopicToKeys",gC);_.WL("ytPubsubPubsubIsSynchronous",_.ptQ);
_.WL("ytPubsubPubsubSubscribedKeys",BD);var bs=window;var LT=_.K("web_enable_lifecycle_monitoring")&&taT()!==0,wDN=_.K("web_enable_lifecycle_monitoring");var TCN=function(f){var S=this;var B=B===void 0?0:B;var G=G===void 0?_.kj():G;this.JSC$8860_defaultPriority=B;this.scheduler=G;this.completedResolver=new _.w3;this.scheduledPayloads=f;for(f={i$jscomp$486:0};f.i$jscomp$486<this.scheduledPayloads.length;f={payload$jscomp$18:void 0,i$jscomp$486:f.i$jscomp$486},f.i$jscomp$486++)f.payload$jscomp$18=this.scheduledPayloads[f.i$jscomp$486],B=function(g){return function(){g.payload$jscomp$18.job();S.scheduledPayloads[g.i$jscomp$486].processed=!0;S.scheduledPayloads.every(function(b){return b.processed===
!0})&&S.completedResolver.resolve()}}(f),G=this.scheduler.addJob(B,h_m(this,f.payload$jscomp$18)),this.scheduledPayloads[f.i$jscomp$486]=Object.assign({},f.payload$jscomp$18,{job:B,
jobId:G})};
TCN.prototype.flushJobs=function(){var f=this,S=Array.from(this.scheduledPayloads.keys()).sort(function(G,g){return h_m(f,f.scheduledPayloads[g])-h_m(f,f.scheduledPayloads[G])});
S=_.m(S);for(var B=S.next();!B.done;B=S.next())B=this.scheduledPayloads[B.value],B.jobId===void 0||B.processed||(this.scheduler.cancelJob(B.jobId),this.scheduler.addJob(B.job,10))};
TCN.prototype.cancel=function(){for(var f=_.m(this.scheduledPayloads),S=f.next();!S.done;S=f.next())S=S.value,S.jobId===void 0||S.processed||this.scheduler.cancelJob(S.jobId),S.processed=!0;this.completedResolver.resolve()};
var h_m=function(f,S){var B;return(B=S.priority)!=null?B:f.JSC$8860_defaultPriority};var k9=function(f){this.state=f;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};LT&&u29(this.state)};
k9.prototype.install=function(f){this.plugins.push(f);return this};
k9.prototype.uninstall=function(){var f=this;_.qb.apply(0,arguments).forEach(function(S){S=f.plugins.indexOf(S);S>-1&&f.plugins.splice(S,1)})};
k9.prototype.transition=function(f,S){var B=this;LT&&aU1(this.state);var G=this.transitions.find(function(b){return Array.isArray(b.from)?b.from.find(function(z){return z===B.state&&b.to===f}):b.from===B.state&&b.to===f});
if(G){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);Fm6(this,f,S);this.state=f;LT&&u29(this.state);G=G.action.bind(this);var g=this.plugins.filter(function(b){return b[f]}).map(function(b){return b[f]});
G(VDj(this,g),S)}else throw Error("gd`"+this.state+"`"+f);};
var VDj=function(f,S){var B=S.filter(function(g){return JEo(f,g)===10}),G=S.filter(function(g){return JEo(f,g)!==10});
return f.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var g=_.qb.apply(0,arguments);return _.R(function(b){if(b.nextAddress==1)return _.h(b,f.runImmediateJobsAsync.apply(f,[B].concat(_.$d(g))),2);f.setJobSetWithScheduledJobs.apply(f,[G].concat(_.$d(g)));_.TT(b)})}:function(){var g=_.qb.apply(0,arguments);
f.runImmediateJobsSync.apply(f,[B].concat(_.$d(g)));f.setJobSetWithScheduledJobs.apply(f,[G].concat(_.$d(g)))}};
k9.prototype.runImmediateJobsSync=function(f){var S=_.qb.apply(1,arguments);_.kj();for(var B=_.m(f),G=B.next(),g={};!G.done;g={lifecycle$jscomp$2:void 0},G=B.next())g.lifecycle$jscomp$2=G.value,Ra(function(b){return function(){Psj(b.lifecycle$jscomp$2.name);Wds(function(){return b.lifecycle$jscomp$2.callback.apply(b.lifecycle$jscomp$2,_.$d(S))});
nT(b.lifecycle$jscomp$2.name)}}(g))};
k9.prototype.runImmediateJobsAsync=function(f){var S=_.qb.apply(1,arguments),B,G,g,b;return _.R(function(z){z.nextAddress==1&&(_.kj(),B=_.m(f),G=B.next(),g={});if(z.nextAddress!=3){if(G.done)return z.jumpTo(0);g.lifecycle$jscomp$3=G.value;g.asyncJobCompletion=void 0;b=function(X){return function(){Psj(X.lifecycle$jscomp$3.name);var w=Wds(function(){return X.lifecycle$jscomp$3.callback.apply(X.lifecycle$jscomp$3,_.$d(S))});
ahQ(w)?X.asyncJobCompletion=_.K("web_lifecycle_error_handling_killswitch")?w.then(function(){nT(X.lifecycle$jscomp$3.name)}):w.then(function(){nT(X.lifecycle$jscomp$3.name)},function(F){yKT(F);
nT(X.lifecycle$jscomp$3.name)}):nT(X.lifecycle$jscomp$3.name)}}(g);
Ra(b);return g.asyncJobCompletion?_.h(z,g.asyncJobCompletion,3):z.jumpTo(3)}g={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};G=B.next();return z.jumpTo(2)})};
k9.prototype.setJobSetWithScheduledJobs=function(f){var S=_.qb.apply(1,arguments),B=this,G=f.map(function(g){return{job:function(){Psj(g.name);Wds(function(){return g.callback.apply(g,_.$d(S))});
nT(g.name)},
priority:JEo(B,g)}});
G.length&&(this.jobSet=new TCN(G))};
var JEo=function(f,S){var B,G;return(G=(B=f.overridePriority)!=null?B:S.priority)!=null?G:0},Psj=function(f){LT&&f&&u29(f)},nT=function(f){LT&&f&&aU1(f)},Fm6=function(f,S,B){wDN&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+f.constructor.name+"] '"+f.state+"' to '"+S+"'"),console.log("with message: ",B),console.groupEnd())};
_.y3.Object.defineProperties(k9.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var vHo=function(f){k9.call(this,f===void 0?"none":f);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(){}}]},Kmv;
_.q(vHo,k9);vHo.prototype.runApplicationNavigationBegin=function(f,S){var B=this;this.navigationTimer=_.q6(_.xJ,function(){B.currentState==="application_navigating"&&B.transition("none")},5E3);
f(S==null?void 0:S.event)};
vHo.prototype.runApplicationNavigationEnd=function(f,S){this.navigationTimer&&(_.xJ.cancelJob(this.navigationTimer),this.navigationTimer=null);f(S==null?void 0:S.event)};
_.tdN=function(){Kmv||(Kmv=new vHo);return Kmv};var ZPN=[];_.WL("yt.logging.transport.getScrapedGelPayloads",function(){return ZPN});var mm=function(){var f=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return f.totalEntries}}};
mm.prototype.storePayload=function(f,S){f=cK1(f);this.store[f]?this.store[f].push(S):(this.memoizedKeySequences={},this.store[f]=[S]);this.totalEntries++;_.K("more_accurate_gel_parser")&&(S=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(S));return f};
mm.prototype.smartExtractMatchingEntries=function(f){if(!f.keys.length)return[];for(var S=d6N(this,f.keys.splice(0,1)[0]),B=[],G=0;G<S.length;G++)this.store[S[G]]&&f.sizeLimit&&(this.store[S[G]].length<=f.sizeLimit?(B.push.apply(B,_.$d(this.store[S[G]])),delete this.store[S[G]]):B.push.apply(B,_.$d(this.store[S[G]].splice(0,f.sizeLimit))));this.totalEntries-=B.length;(f==null?0:f.sizeLimit)&&B.length<(f==null?void 0:f.sizeLimit)&&(f.sizeLimit-=B.length,B.push.apply(B,_.$d(this.smartExtractMatchingEntries(f))));
return B};
mm.prototype.extractMatchingEntries=function(f){f=d6N(this,f);for(var S=[],B=0;B<f.length;B++)this.store[f[B]]&&(S.push.apply(S,_.$d(this.store[f[B]])),delete this.store[f[B]]);this.totalEntries-=S.length;return S};
mm.prototype.getSequenceCount=function(f){f=d6N(this,f);for(var S=0,B=0;B<f.length;B++){var G=void 0;S+=((G=this.store[f[B]])==null?void 0:G.length)||0}return S};
var d6N=function(f,S){var B=cK1(S);if(f.memoizedKeySequences[B])return f.memoizedKeySequences[B];var G=Object.keys(f.store)||[];if(G.length<=1&&cK1(S)===G[0])return G;for(var g=[],b=0;b<G.length;b++){var z=G[b].split("/");if(igi(S.auth,z[0])){var X=S.isJspb;igi(X===void 0?"undefined":X?"true":"false",z[1])&&igi(S.cttAuthInfo,z[2])&&(X=S.tier,X=X===void 0?"undefined":JSON.stringify(X),igi(X,z[3])&&g.push(G[b]))}}return f.memoizedKeySequences[B]=g},igi=function(f,S){return f===void 0||f==="undefined"?
!0:f===S};
mm.prototype.getSequenceCount=mm.prototype.getSequenceCount;mm.prototype.extractMatchingEntries=mm.prototype.extractMatchingEntries;mm.prototype.smartExtractMatchingEntries=mm.prototype.smartExtractMatchingEntries;mm.prototype.storePayload=mm.prototype.storePayload;var YWT,$Js,rOG,XX,Hg7,lex,cOV,qW1,HPj,wF9,QlV,NvN,K9W;YWT=_.Gt("initial_gel_batch_timeout",2E3);$Js=_.Gt("gel_queue_timeout_max_ms",6E4);rOG=_.Gt("gel_min_batch_size",5);XX=void 0;Hg7=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
lex=new Hg7;cOV=new Hg7;qW1=new Hg7;HPj=new Hg7;QlV=!0;NvN=1;_.AO1=new Map;K9W=_.S1.ytLoggingTransportTokensToCttTargetIds_||{};_.WL("ytLoggingTransportTokensToCttTargetIds_",K9W);var vbs=_.S1.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.WL("ytLoggingTransportTokensToJspbCttTargetIds_",vbs);var Rr={};var Q0=_.S1.ytLoggingGelSequenceIdObj_||{};_.WL("ytLoggingGelSequenceIdObj_",Q0);var BRA=[];var FTM=new Set,mBj=0,veA=0,PkT=0,R5N=[],z5Q=[],KTA=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var LTj=function(){};
LTj.prototype.getUrl=function(f,S){S=S===void 0?!1:S;return f.hasOwnProperty("shareEndpoint")?null:_.qns(f,null,S)};
var Ol1=function(f,S,B){f={endpoint:S,actions:[]};B=(B.path?B.path[0]:B.target).icon||"";S=B.indexOf(":");S>0&&(B=B.substr(S+1));B&&f.actions.push(B);return f};var OHV=/Command$/,jS9=/Endpoint$/,QSK=new Map;var qUm,$6L;qUm=1;_.AE=function(){this.actionRoutingMap=new Map};
_.AE.prototype.triggerAction=function(f){var S=new ecN(f,!1,_.qb.apply(1,arguments));this.handleAction(S);return S.returnValue};
_.AE.prototype.triggerOptionalAction=function(f){var S=new ecN(f,!0,_.qb.apply(1,arguments));this.handleAction(S);return S.returnValue};
_.sc=function(f,S,B){S.forEach(function(G){var g=rZG(G);g&&f.triggerOptionalAction(g,G,B,void 0)})};
_.AE.prototype.handleAction=function(f){var S=this.actionRoutingMap.get(f.actionName);S&&$6L(f,S);f.optionalAction||f.returnValue.length!==0||(f=new _.dO("Unhandled action",f.actionName),_.CL(f))};
$6L=function(f,S){S.forEach(function(B){var G=null;B?G=B.apply(null,f.args):(B=Error("hd"),B.params=f.actionName,_.Dt(B));f.returnValue.push(G)})};
_.N6=function(f,S,B){B||(B=qUm++);for(var G=_.m(Object.keys(S)),g=G.next();!g.done;g=G.next()){g=g.value;var b=f.actionRoutingMap.get(g);b||(b=new Map,f.actionRoutingMap.set(g,b));f.registerActionHandler(B,g,S[g],b)}return B};
_.AE.prototype.registerActionHandler=function(f,S,B,G){G.set(f,_.Ij(B))};
_.M6=function(f,S,B){S=_.m(Object.keys(S));for(var G=S.next();!G.done;G=S.next())(G=f.actionRoutingMap.get(G.value))&&G.delete(B)};
_.mG(_.AE);var sSV=function(f,S){var B=_.AE.getInstance();_.j9(function(){var G={},g=_.N6(B,(G[f]=S,G));_.Ov(function(){var b={};_.M6(B,(b[f]="",b),g)})})};_.ar=Symbol("jd");tCG=d6W;var lw9=new Set(["For","If","Match","Watch"]),QrL={},YU$=(QrL[Uv.default]=function(){return CPV},QrL.style=function(){return CPV},QrL),rE6;
for(rE6 in YU$)_.Sp.attributes[rE6]=YU$[rE6](_.Sp.attributes[rE6]);var f_=new _.Sn("VISIBILITY_OBSERVER");var zd1={retrieve:function(f){return this.id.\u0275prov.token===f.\u0275prov.token?this.contextValue:this?v5A(this,this.id):JAV}};var IYs=function(f,S,B){if(f!==y0)return!1;f=tP1(document.createElement("div"),function(){var G=e9(!1);try{B[0]()}finally{e9(G)}});
f=Array.from(f.childNodes);f.length===1&&(f=f[0]);return f};var jrX=function(f){f=f.clone();fxL(f);qi(f,"dg",null);qi(f,"d","0");ya$(f,null);WoL(f,null);return f},OgX=!0,x68=function(f,S,B){var G=B===void 0?{}:B;
B=G.cssRowKey===void 0?void 0:G.cssRowKey;var g=G.combinedSignature===void 0?void 0:G.combinedSignature;var b=G.extraEdges===void 0?void 0:G.extraEdges;G=G.callback===void 0?void 0:G.callback;qi(f,"m",S.join(","));b&&lLL(f,b);B&&(qi(f,"ck",B),g?qi(f,"rs",g):OgX&&(OgX=!1));if(G){if(G!=null&&!BAm.test(G))throw Error("bb`"+G);qi(f,"cb",G)}f=f.toString();_.Gj(f,"/")&&(f=xNi(document.location.href)+f);return _.zC(f)};var Lmj=function(f){return EHL(f).then(function(S){return JSON.parse(S.responseText)})},EHL=function(f){var S={},B=S.xmlHttpFactory?S.xmlHttpFactory.createInstance():v66.createInstance();
return(new _.TM(function(G,g){var b;try{B.open("GET",f,!0)}catch(w){g(new D7("Error opening XHR: "+w.message,f,B))}B.onreadystatechange=function(){if(B.readyState==4){_.S1.clearTimeout(b);var w;!(w=PoL(B.status))&&(w=B.status===0)&&(w=Oim(f),w=!(w=="http"||w=="https"||w==""));w?G(B):g(new kMj(B.status,f,B))}};
B.onerror=function(){g(new D7("Network error",f,B))};
if(S.headers)for(var z in S.headers){var X=S.headers[z];X!=null&&B.setRequestHeader(z,X)}S.withCredentials&&(B.withCredentials=S.withCredentials);S.responseType&&(B.responseType=S.responseType);S.mimeType&&B.overrideMimeType(S.mimeType);S.timeoutMs>0&&(b=_.S1.setTimeout(function(){B.onreadystatechange=function(){};
B.abort();g(new nHm(f,B))},S.timeoutMs));
try{B.send(null)}catch(w){B.onreadystatechange=function(){},_.S1.clearTimeout(b),g(new D7("Error sending XHR: "+w.message,f,B))}})).thenCatch(function(G){G instanceof _.y1&&B.abort();
throw G;})},D7=function(f,S,B){_.fM.call(this,f+", url="+S);
this.url=S;this.xhr=B};
_.Rm(D7,_.fM);D7.prototype.name="XhrError";var kMj=function(f,S,B){D7.call(this,"Request Failed, status="+f,S,B);this.status=f};
_.Rm(kMj,D7);kMj.prototype.name="XhrHttpError";var nHm=function(f,S){D7.call(this,"Request timed out",f,S)};
_.Rm(nHm,D7);nHm.prototype.name="XhrTimeoutError";bh=bh||{};var IN=function(){_.qR.call(this)};
_.Rm(IN,_.qR);IN.prototype.initialize=function(){};var srX=function(f,S){this.fn_=f;this.handler_=S};
srX.prototype.execute=function(f){this.fn_&&(this.fn_.call(this.handler_||null,f),this.fn_=this.handler_=null)};
srX.prototype.abort=function(){this.handler_=this.fn_=null};var Uc=function(f,S){_.qR.call(this);this.deps_=f;this.JSC$8988_id_=S;this.onloadCallbacks_=[];this.JSC$8988_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.Rm(Uc,_.qR);Uc.prototype.moduleConstructor_=IN;Uc.prototype.module_=null;Uc.prototype.getId=function(){return this.JSC$8988_id_};
Uc.prototype.registerCallback=function(f,S){return D6m(this.onloadCallbacks_,f,S)};
var I0m=function(f,S){D6m(f.JSC$8988_onErrorCallbacks_,S)},D6m=function(f,S,B){S=new srX(S,B);
f.push(S);return S};
Uc.prototype.isLoaded=function(){return!!this.module_};
Uc.prototype.onLoad=function(f){var S=new this.moduleConstructor_;S.initialize(f());this.module_=S;S=(S=U6g(this.earlyOnloadCallbacks_,f()))||U6g(this.onloadCallbacks_,f());S||(this.JSC$8988_onErrorCallbacks_.length=0);return S};
Uc.prototype.onError=function(f){(f=U6g(this.JSC$8988_onErrorCallbacks_,f))&&B9(Error("nd`"+f));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var U6g=function(f,S){for(var B=[],G=0;G<f.length;G++)try{f[G].execute(S)}catch(g){B9(g),B.push(g)}f.length=0;return B.length?B:null};
Uc.prototype.disposeInternal=function(){Uc.superClass_.disposeInternal.call(this);_.cd(this.module_)};var Csg,tDj,MD$,Zgj,AEN,NCi,cEN,yEX,Wm6;
_.pT=function(f,S,B,G,g){G=G===void 0?!1:G;g=g===void 0?!1:g;var b=b===void 0?!0:b;this.scsReferenceUrl_=C0K(_.RP(f).toString(),b);this.cssRowKey_=S;this.combinedSignature_=B;this.useNegativeLoading_=G;this.requestedModuleMap_={};this.JSC$8991_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(f=Hz(this.scsReferenceUrl_,"excm"))?f.split(","):[];this.shouldScanForCss_=g;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;pfT();_.CT(this,cai(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
Csg=function(f,S){if(S.href||S.getAttribute("data-href"))if(S=S.href||S.getAttribute("data-href"),sjx(S)&&!C0K(S).urlPrefix_.endsWith("_/js/")){S=cai(C0K(S));S=_.m(S);for(var B=S.next();!B.done;B=S.next())B=B.value,f.loadedCssModuleList_.includes(B)||f.loadedCssModuleList_.push(B)}};
_.pT.prototype.JSC$8993_loadModules=function(f,S,B){var G=B===void 0?{}:B;B=G.extraEdges;var g=G.onError;var b=G.onSuccess;G=G.forceReload;this.JSC$8991_moduleInfoMap_=S;if(!f)throw Error("od");if(this.shouldScanForCss_){S=_.m(document.getElementsByTagName("style"));for(var z=S.next();!z.done;z=S.next())Csg(this,z.value);S=_.m(document.getElementsByTagName("link"));for(z=S.next();!z.done;z=S.next())Csg(this,z.value)}pD$(this,AEN(this,f),B,g,b,G)};
var pD$=function(f,S,B,G,g,b){G=G===void 0?function(){}:G;
g=g===void 0?function(){}:g;
b=b===void 0?!1:b;NCi(f,S,function(z,X,w){w=w===void 0?X:w;f.enableFallbackFetch&&b?f.loadWithFetch(z,X,G,g,w):f.load(z,X,G,g,w,B)},B)||G(-1)};
_.pT.prototype.loadWithFetch=function(){_.R(function(){throw Error("pd");})};
_.pT.prototype.maybeSetAdditionalFields=function(){};
tDj=function(f,S,B){if(f.useNegativeLoading_){var G=f.scsReferenceUrl_;f={cssRowKey:f.cssRowKey_,combinedSignature:f.combinedSignature_,extraEdges:B,requestedModuleIds:MD$(f),requestedCssModuleIds:Zgj(f)};var g=f===void 0?{}:f;f=g.requestedModuleIds===void 0?[]:g.requestedModuleIds;B=g.requestedCssModuleIds===void 0?[]:g.requestedCssModuleIds;var b=g.cssRowKey===void 0?void 0:g.cssRowKey;var z=g.combinedSignature===void 0?void 0:g.combinedSignature;var X=g.extraEdges===void 0?void 0:g.extraEdges;
g=g.callback===void 0?void 0:g.callback;G=jrX(G);qi(G,"d","1");ya$(G,f);WoL(G,B);S=x68(G,S,{cssRowKey:b,combinedSignature:z,extraEdges:X,callback:g})}else G=f.scsReferenceUrl_,f={cssRowKey:f.cssRowKey_,combinedSignature:f.combinedSignature_,requestedModuleIds:MD$(f),requestedCssModuleIds:Zgj(f)},X=f===void 0?{}:f,f=X.requestedCssModuleIds===void 0?[]:X.requestedCssModuleIds,B=X.cssRowKey===void 0?void 0:X.cssRowKey,b=X.combinedSignature===void 0?void 0:X.combinedSignature,z=X.extraEdges===void 0?
void 0:X.extraEdges,X=X.callback===void 0?void 0:X.callback,G=jrX(G),WoL(G,f),S=x68(G,S,{cssRowKey:B,combinedSignature:b,extraEdges:z,callback:X});return S};
_.CT=function(f,S){for(var B=!1,G=[],g=0;g<S.length;++g){var b=S[g];f.requestedModuleMap_[b]||(f.requestedModuleMap_[b]=!0,f.requestedModuleList_.push(b),B=!0,G.push(b))}B&&(f.requestedModuleListSorted_=!1)};
_.A_=function(f,S){for(var B=[],G=0;G<S.length;++G){var g=S[G];f.requestedModuleMap_[g]&&(delete f.requestedModuleMap_[g],_.uK(f.requestedModuleList_,g),B.push(g))}};
_.pT.prototype.load=function(f,S,B,G,g){g=g===void 0?S:g;_.RP(f);var b=this.useCors_,z=this.corsMode_,X=this.fetchPriority,w=_.Ja("SCRIPT");_.CC(w,f);b&&(w.crossOrigin=z);w.async=!1;X&&w.setAttribute("fetchpriority",X);_.CT(this,S);_.uXo(this,f,w,S,B,G,g)};
_.uXo=function(f,S,B,G,g,b,z){z=z===void 0?G:z;f.lastScript_=B;f.insertPos.insertBefore(B,f.insertPos.firstChild);_.a08(B,G,function(){B.parentElement.removeChild(B);f.lastScript_==B&&(f.lastScript_=null);var X=new Set;G.map(function(F){return X.add(F)});
for(var w in f.JSC$8991_moduleInfoMap_)f.JSC$8991_moduleInfoMap_[w].isLoaded()&&X.add(w);Array.from(X);b()},function(X){B.parentElement.removeChild(B);
f.lastScript_==B&&(f.lastScript_=null);_.A_(f,X);f.pendingModuleGraphUpdate_?f.pendingModuleGraphUpdate_.then(function(){g(-1,S)}):g(-1,S)},z)};
_.a08=function(f,S,B,G,g){g=g===void 0?S:g;var b=S.length,z=function(){b=0;f.onload=null;f.onerror=null;X=function(){}},X=function(){z();
var F=g.filter(function(V){return!Ob().getModuleInfo(V).isLoaded()});
F.length!==0?G(F,"Response was successful but was missing module(s) "+F+"."):B()},w=function(){b--;
b==0&&X()};
S.forEach(function(F){F=Ob().getModuleInfo(F);F.isLoaded()?w():(D6m(F.earlyOnloadCallbacks_,w),I0m(F,w))});
f.onload=function(){return X()};
f.onerror=function(){z();G(S)}};
MD$=function(f){f.requestedModuleListSorted_||(f.requestedModuleListSorted_=!0,f.requestedModuleList_.sort());return f.requestedModuleList_};
Zgj=function(f){f=f.loadedCssModuleList_;f.sort();return f};
AEN=function(f,S){return S.filter(function(B){return!f.requestedModuleMap_[B]})};
NCi=function(f,S,B,G){if(f.pendingModuleGraphUpdate_)return f.pendingModuleGraphUpdate_.then(function(){NCi(f,S,B,G)}),!0;
if(!f.useNegativeLoading_){var g=[],b=Object.assign({},f.requestedModuleMap_);yEX(f,S,function(V){g.push(V.getId())},G,function(V){return!V.isLoaded()},b);
S=g}for(b=0;b<S.length;){for(var z=S.length-b,X=b==0?S:S.slice(b,S.length),w=tDj(f,X,G),F=_.RP(w).toString();F.length>f.urlMaxLength;)if(z>1)z-=Math.ceil((F.length-f.urlMaxLength)/6),z=Math.max(z,1),X=S.slice(b,b+z),w=tDj(f,X,G),F=_.RP(w).toString();else return f.useNegativeLoading_?(f.useNegativeLoading_=!1,f.pendingModuleGraphUpdate_=Wm6(f).then(function(V){cEN(f,V,G)}),NCi(f,S.slice(b),B,G)):!1;
b+=z;f.useNegativeLoading_?B(w,X):B(w,X,b===S.length?S:[])}return!0};
cEN=function(f,S,B){Ob().setAllModuleInfoString((S||{}).moduleGraph);yEX(f,MD$(f),function(G){_.CT(f,[G.getId()])},B);
f.pendingModuleGraphUpdate_=null};
yEX=function(f,S,B,G,g,b){b=b===void 0?{}:b;var z=Ob();S=_.m(S);for(var X=S.next();!X.done;X=S.next()){X=X.value;var w=z.getModuleInfo(X);if(!(b[X]||g&&!g(w))){b[X]=!0;var F=w.deps_||[];if(G){var V=[];G[X]&&(V=Object.keys(G[X]));F=F.concat(V)}yEX(f,F,B,G,g,b);B(w)}}};
Wm6=function(f){f=f.scsReferenceUrl_.clone();fxL(f);qi(f,"dg",null);qi(f,"md","1");return Lmj(f.toString())};var wwx=new Uint8Array(123);var l0L=[];var fci=function(){this.JSC$8098_loader_=null};
_.e=fci.prototype;_.e.setBatchModeEnabled=function(){};
_.e.setAllModuleInfoString=function(){};
_.e.addExtraEdge=function(){throw Error("qd");};
_.e.removeExtraEdge=function(){throw Error("rd");};
_.e.getModuleContext=function(){return null};
_.e.isActive=function(){return!1};
_.e.isUserActive=function(){return!1};
_.e.registerCallback=function(){};var Ns=function(f,S,B,G,g){var b=Error.call(this);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.name="ModuleLoadFailure";this.type=f;this.status=S;this.requestedModuleIds=B;this.url=G;this.cause=g;this.message=this.toString()};
_.q(Ns,Error);Ns.prototype.toString=function(){return o2$(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var o2$=function(f){switch(f.type){case Ns.JSC$9003_Type.UNAUTHORIZED:return"Unauthorized";case Ns.JSC$9003_Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case Ns.JSC$9003_Type.TIMEOUT:return"Timed out";case Ns.JSC$9003_Type.OLD_CODE_GONE:return"Out of date module id";case Ns.JSC$9003_Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+f.type}};
bh.ModuleLoadFailure=Ns;bh.ModuleLoadFailure.JSC$9003_Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var Ms=function(){this.moduleIds_=this.JSC$8098_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$9006_extraEdges_={};this.JSC$9006_callbackMap_={};this.JSC$9006_currentlyLoadingModule_=this.baseModuleInfo_=new Uc([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new at;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.Rm(Ms,fci);var Slj=function(f,S){_.fM.call(this,"Error loading "+f+": "+S)};
_.Rm(Slj,_.fM);Ms.prototype.setBatchModeEnabled=function(f){this.batchModeEnabled_=f};
Ms.prototype.setAllModuleInfoString=function(f,S){if(!(this instanceof Ms))this.setAllModuleInfoString(f,S);else if(typeof f==="string"){if(f.startsWith("d$")){f=f.substring(2);for(var B=[],G=0,g=f.indexOf("/"),b=0,z=!1,X=0;;){var w=z?f.substring(b):f.substring(b,g);if(w.length===0)G++,b="sy"+G.toString(36),w=[];else{var F=w.indexOf(":");if(F<0)b=w,w=[];else if(F===w.length-1)b=w.substring(0,F),w=Array(B[X-1]);else{b=w.substring(0,F);w=w.substring(F+1).split(",");F=X;for(var V=0;V<w.length;V++)F-=
w[V].length===0?1:Number(w[V]),w[V]=B[F]}F=0;if(b.length===0)F=1;else if(b.charAt(0)==="+"||b.charAt(0)==="-")F=Number(b);F!==0&&(G+=F,b="sy"+G.toString(36))}B.push(b);B0$(this,b,w);if(z)break;b=g+1;g=f.indexOf("/",b);g===-1&&(z=!0);X++}this.moduleIds_=B}else if(f.startsWith("p$"))G$$(this,f);else{f=f.split("/");B=[];for(G=0;G<f.length;G++){X=f[G].split(":");g=X[0];z=[];if(X[1])for(z=X[1].split(","),X=0;X<z.length;X++)z[X]=B[parseInt(z[X],36)];B.push(g);B0$(this,g,z)}this.moduleIds_=B}S&&S.length?
(_.c9(this.loadingModuleIds_,S),this.lastInitialModuleId_=_.sV(S)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$9006_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$9006_currentlyLoadingModule_=null,(S=this.baseModuleInfo_.onLoad((0,_.$A)(this.getModuleContext,this)))&&S.length&&g2$(this,new bh.ModuleLoadFailure(bh.ModuleLoadFailure.JSC$9003_Type.INIT_ERROR,void 0,void 0,void 0,S[0])),Z7(this))}};
var G$$=function(f,S){var B=S.substring(2);for(S=0;S<64;S++)wwx["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(S)]=S;var G={buf:B,pos:0};BS(G);var g=BS(G),b=BS(G)+1;S=Array(g);var z=Array(g),X=Array(g);b=Array(b);var w=0,F=0,V=G.pos,J=G.buf.indexOf("|",G.pos);G.pos=J+1;for(J=0;J<g;J++){var P=BS(G),d=P&2,Q=P&1;P>>>=2;Q?(w+=P>>>1^-(P&1),P="sy"+w.toString(36)):(Q=V,V+=P,P=B.substring(Q,V));S[J]=P;d&&(b[F++]=P)}b[F]="";G.pos++;F=g&-2;B=g&1;for(w=0;w<F;w+=2)V=hdN(G),X[w]=
V&7,X[w+1]=V>>>3&7;B&&(B=hdN(G),X[F]=B&7);G.pos++;for(F=0;F<g;F++)X[F]===7&&(X[F]=BS(G));G.pos++;for(B=F=0;B<g;B++){w=X[B];V=w===0?l0L:Array(w);z[B]=V;J=F;for(d=0;d<w;d++)J-=BS(G),V[d]=b[J];b[F]===S[B]&&F++}for(G=0;G<S.length;G++)B0$(f,S[G],z[G]);f.moduleIds_=S};
_.e=Ms.prototype;_.e.getModuleInfo=function(f){return this.moduleInfoMap[f]};
_.e.addExtraEdge=function(f,S){var B=this.getModuleInfo(f);B&&B.isLoaded()?this.load(S):(this.JSC$9006_extraEdges_[f]||(this.JSC$9006_extraEdges_[f]={}),this.JSC$9006_extraEdges_[f][S]=!0)};
_.e.removeExtraEdge=function(f,S){if(this.JSC$9006_extraEdges_[f]){delete this.JSC$9006_extraEdges_[f][S];for(var B in this.JSC$9006_extraEdges_[f])return;delete this.JSC$9006_extraEdges_[f]}};
_.e.isActive=function(){return this.loadingModuleIds_.length>0};
_.e.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var Z7=function(f){var S=f.lastActive_,B=f.isActive();B!=S&&(f.executeCallbacks_(B?"active":"idle"),f.lastActive_=B);S=f.isUserActive();S!=f.userLastActive_&&(f.executeCallbacks_(S?"userActive":"userIdle"),f.userLastActive_=S)},B0$=function(f,S,B){f.moduleInfoMap[S]?(f=f.moduleInfoMap[S].deps_,f!=B&&f.splice.apply(f,[0,
f.length].concat(_.$d(B)))):f.moduleInfoMap[S]=new Uc(B,S)},b_g=function(f,S,B){var G=[];
B7(S,G);S=[];for(var g={},b=0;b<G.length;b++){var z=G[b],X=f.getModuleInfo(z);if(!X)throw Error("sd`"+z);var w=new at;g[z]=w;X.isLoaded()?w.callback(null):(eYN(f,z,X,!!B,w),f.isModuleLoading(z)||S.push(z))}S.length>0&&(f.loadingModuleIds_.length===0?f.loadModules_(S):(f.requestedModuleIdsQueue_.push(S),Z7(f)));return g},eYN=function(f,S,B,G,g){B.registerCallback(g.callback,g);
I0m(B,function(b){g.errback(new Slj(S,b))});
f.isModuleLoading(S)?G&&(mCN(f,S),Z7(f)):G&&mCN(f,S)};
Ms.prototype.loadModules_=function(f,S,B){var G=this;S||(this.consecutiveFailures_=0);var g=zY1(this,f);this.loadingModuleIds_=g;this.requestedLoadingModuleIds_=this.batchModeEnabled_?f:_.aT(g);Z7(this);if(g.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,g);if(Object.keys(this.JSC$9006_extraEdges_).length>0&&!this.JSC$8098_loader_.supportsExtraEdges)throw Error("td");f=(0,_.$A)(this.JSC$8098_loader_.JSC$8993_loadModules,this.JSC$8098_loader_,_.aT(g),this.moduleInfoMap,{extraEdges:this.JSC$9006_extraEdges_,
forceReload:!!B,onError:function(b,z){var X=G.requestedLoadingModuleIds_;b=b!=null?b:void 0;G.consecutiveFailures_++;var w=_.aT(g);G.requestedLoadingModuleIds_=X;g.forEach(_.vK(_.uK,G.requestedModuleIds_),G);b==401?(g2$(G,new bh.ModuleLoadFailure(bh.ModuleLoadFailure.JSC$9003_Type.UNAUTHORIZED,b)),G.requestedModuleIdsQueue_.length=0):b==410?(RY8(G,new bh.ModuleLoadFailure(bh.ModuleLoadFailure.JSC$9003_Type.OLD_CODE_GONE,b)),XSL(G)):G.consecutiveFailures_>=3?(RY8(G,new bh.ModuleLoadFailure(bh.ModuleLoadFailure.JSC$9003_Type.CONSECUTIVE_FAILURES,
b,w,z)),XSL(G)):G.loadModules_(G.requestedLoadingModuleIds_,!0,b==8001||!1)},
onTimeout:(0,_.$A)(this.handleLoadTimeout_,this)});(S=Math.pow(this.consecutiveFailures_,2)*5E3)?_.S1.setTimeout(f,S):f()}};
var zY1=function(f,S){S=S.filter(function(g){return f.moduleInfoMap[g].isLoaded()?(_.S1.setTimeout(function(){return Error("ud`"+g)},0),!1):!0});
for(var B=[],G=0;G<S.length;G++)B=B.concat(wSm(f,S[G]));B7(B);return!f.batchModeEnabled_&&B.length>1?(S=B.shift(),f.requestedModuleIdsQueue_=B.map(function(g){return[g]}).concat(f.requestedModuleIdsQueue_),[S]):B},wSm=function(f,S){var B=_.$v.createSet(f.requestedModuleIds_),G=[];
B[S]||G.push(S);S=[S];for(var g=0;g<S.length;g++)for(var b=f.getModuleInfo(S[g]).deps_,z=b.length-1;z>=0;z--){var X=b[z];f.getModuleInfo(X).isLoaded()||B[X]||(G.push(X),S.push(X))}G.reverse();B7(G);return G};
Ms.prototype.JSC$9001_setLoaded=function(){if(this.JSC$9006_currentlyLoadingModule_){var f=this.JSC$9006_currentlyLoadingModule_.getId(),S=[];if(this.JSC$9006_extraEdges_[f]){for(var B=_.m(Object.keys(this.JSC$9006_extraEdges_[f])),G=B.next();!G.done;G=B.next()){G=G.value;var g=this.getModuleInfo(G);g&&!g.isLoaded()&&(this.removeExtraEdge(f,G),S.push(G))}this.loadMultiple(S)}this.isDisposed()||((S=this.moduleInfoMap[f].onLoad((0,_.$A)(this.getModuleContext,this)))&&S.length&&g2$(this,new bh.ModuleLoadFailure(bh.ModuleLoadFailure.JSC$9003_Type.INIT_ERROR,
void 0,void 0,void 0,S[0])),_.uK(this.userInitiatedLoadingModuleIds_,f),_.uK(this.loadingModuleIds_,f),this.loadingModuleIds_.length===0&&XSL(this),this.lastInitialModuleId_&&f==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),Z7(this),this.JSC$9006_currentlyLoadingModule_=null)}};
Ms.prototype.isModuleLoading=function(f){if(_.As(this.loadingModuleIds_,f))return!0;for(var S=0;S<this.requestedModuleIdsQueue_.length;S++)if(_.As(this.requestedModuleIdsQueue_[S],f))return!0;return!1};
Ms.prototype.load=function(f,S){return b_g(this,[f],S)[f]};
Ms.prototype.loadMultiple=function(f){return b_g(this,f)};
var mCN=function(f,S){_.As(f.userInitiatedLoadingModuleIds_,S)||f.userInitiatedLoadingModuleIds_.push(S)};
Ms.prototype.beforeLoadModuleCode=function(f){var S=this;this.JSC$9006_currentlyLoadingModule_&&this.JSC$9006_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$9001_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[f]&&hY7(this,this.moduleInfoMap[f].deps_||[],function(B){B.module_=new IN;_.uK(S.loadingModuleIds_,B.getId())},function(B){return!B.isLoaded()});
this.JSC$9006_currentlyLoadingModule_=this.getModuleInfo(f)};
Ms.prototype.handleLoadTimeout_=function(){RY8(this,new bh.ModuleLoadFailure(bh.ModuleLoadFailure.JSC$9003_Type.TIMEOUT));XSL(this)};
var RY8=function(f,S){f.requestedLoadingModuleIds_.length>1?f.requestedModuleIdsQueue_=f.requestedLoadingModuleIds_.map(function(B){return[B]}).concat(f.requestedModuleIdsQueue_):g2$(f,S)},g2$=function(f,S){var B=f.requestedLoadingModuleIds_;
f.loadingModuleIds_.length=0;for(var G=[],g=0;g<f.requestedModuleIdsQueue_.length;g++){var b=f.requestedModuleIdsQueue_[g].filter(function(w){var F=wSm(this,w);return ZX(B,function(V){return _.As(F,V)})},f);
_.c9(G,b)}for(g=0;g<B.length;g++)_.ZN(G,B[g]);for(g=0;g<G.length;g++){for(b=0;b<f.requestedModuleIdsQueue_.length;b++)_.uK(f.requestedModuleIdsQueue_[b],G[g]);_.uK(f.userInitiatedLoadingModuleIds_,G[g])}if(g=f.JSC$9006_callbackMap_.error)for(b=0;b<g.length;b++)for(var z=g[b],X=0;X<G.length;X++)z("error",G[X],S);for(G=0;G<B.length;G++)if(f.moduleInfoMap[B[G]])f.moduleInfoMap[B[G]].onError(S);f.requestedLoadingModuleIds_.length=0;Z7(f)},XSL=function(f){for(;f.requestedModuleIdsQueue_.length;){var S=
f.requestedModuleIdsQueue_.shift().filter(function(B){return!this.getModuleInfo(B).isLoaded()},f);
if(S.length>0){f.loadModules_(S);return}}Z7(f)};
Ms.prototype.registerCallback=function(f,S){Array.isArray(f)||(f=[f]);for(var B=0;B<f.length;B++){var G=f[B],g=S,b=this.JSC$9006_callbackMap_;b[G]||(b[G]=[]);b[G].push(g)}};
Ms.prototype.executeCallbacks_=function(f){for(var S=this.JSC$9006_callbackMap_[f],B=0;S&&B<S.length;B++)S[B](f)};
var hY7=function(f,S,B,G,g){G=G===void 0?function(){return!0}:G;
g=g===void 0?{}:g;S=_.m(S);for(var b=S.next();!b.done;b=S.next()){b=b.value;var z=f.getModuleInfo(b);!g[b]&&G(z)&&(g[b]=!0,hY7(f,z.deps_||[],B,G,g),B(z))}};
Ms.prototype.dispose=function(){_.lB(_.$v.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$9006_callbackMap_={};this.isDisposed_=!0};
Ms.prototype.isDisposed=function(){return this.isDisposed_};
_.jI=function(){return new Ms};var T0m=[5E3,2E4],FIv=function(){this.JSC$8098_loader_=null;this.JSC$9014_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$9014_queue_=[];this.JSC$9014_extraEdges_=Object.create(null);this.JSC$9014_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.q(FIv,fci);_.e=FIv.prototype;_.e.setAllModuleInfoString=function(){this.JSC$9014_currentlyLoadingModule_&&this.JSC$9014_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$9001_setLoaded()};
_.e.getModuleInfo=function(f){var S=this.JSC$9014_moduleInfoMap_[f];S||(S=new Uc([],f),this.JSC$9014_moduleInfoMap_[f]=S);return S};
_.e.addExtraEdge=function(f,S){this.getModuleInfo(f).isLoaded()?this.load(S):(this.JSC$9014_extraEdges_[f]||(this.JSC$9014_extraEdges_[f]={}),this.JSC$9014_extraEdges_[f][S]=!0)};
_.e.removeExtraEdge=function(f,S){if(this.JSC$9014_extraEdges_[f]){delete this.JSC$9014_extraEdges_[f][S];for(var B in this.JSC$9014_extraEdges_[f])return;delete this.JSC$9014_extraEdges_[f]}};
_.e.isModuleLoading=function(f){return!!this.loadingModules_[f]};
_.e.load=function(f){Vuo(this,[f]);return JL8(this,f)};
_.e.loadMultiple=function(f){var S=this,B=Object.create(null),G=[];f.forEach(function(g){B[g]||(B[g]=JL8(S,g),G.push(g))});
Vuo(this,G);return B};
_.e.beforeLoadModuleCode=function(f){var S;((S=this.JSC$9014_currentlyLoadingModule_)==null?void 0:S.getId())==="synthetic_module_overhead"&&this.JSC$9001_setLoaded();var B,G;Piv(this,(G=(B=this.JSC$9014_moduleInfoMap_[f])==null?void 0:B.deps_)!=null?G:[],function(g){g.module_=new IN},function(g){return!g.isLoaded()});
this.JSC$9014_currentlyLoadingModule_=this.getModuleInfo(f)};
_.e.JSC$9001_setLoaded=function(){if(this.JSC$9014_currentlyLoadingModule_){var f=this.JSC$9014_currentlyLoadingModule_.getId(),S=[];if(this.JSC$9014_extraEdges_[f]){for(var B=_.m(Object.keys(this.JSC$9014_extraEdges_[f])),G=B.next();!G.done;G=B.next())G=G.value,this.getModuleInfo(G).isLoaded()||(this.removeExtraEdge(f,G),S.push(G));this.loadMultiple(S)}this.JSC$9014_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$9014_currentlyLoadingModule_=null;(!this.isModuleLoading(f)&&/^sy[0-9a-z]{0,4}$/.test(f)||f==="synthetic_module_overhead")&&delete this.JSC$9014_moduleInfoMap_[f];this.unsetModulesAsLoading(f)}};
_.e.setModulesAsLoading=function(){var f=this;_.qb.apply(0,arguments).forEach(function(S){f.loadingModules_[S]=!0})};
_.e.unsetModulesAsLoading=function(){var f=this;_.qb.apply(0,arguments).forEach(function(S){delete f.loadingModules_[S]})};
var JL8=function(f,S){return new _.TM(function(B,G){var g=f.getModuleInfo(S);g.isLoaded()?B(null):(g.registerCallback(function(){B(null)}),I0m(g,function(b){var z="Error loading "+S+": "+b;
b instanceof bh.ModuleLoadFailure&&b.url&&(z=z+", requested url: "+b.url.toString());G(Error(z))}))})},Vuo=function(f,S){S=S.filter(function(B){return!f.isModuleLoading(B)&&!f.getModuleInfo(B).isLoaded()});
S.length>0&&(f.setModulesAsLoading.apply(f,_.$d(S)),f.JSC$9014_queue_.push(S),v2g(f))},v2g=function(f){for(var S={};f.activeLoads_<Infinity&&f.JSC$9014_queue_.length>0;S={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})S.ids$jscomp$36=f.JSC$9014_queue_.shift().filter(function(B){return!f.getModuleInfo(B).isLoaded()}),S.ids$jscomp$36.length>0&&(f.activeLoads_++,S.finishLoad=function(B){return function(){f.activeLoads_--;
v2g(f);B.finishLoad=function(){}}}(S),_.rX(S.ids$jscomp$36.map(function(B){return JL8(f,B)})).then(function(B){return function(){(0,B.finishLoad)()}}(S)),S.attempt$jscomp$6=0,S.load$jscomp$1=function(B){return function(){if(Object.keys(f.JSC$9014_extraEdges_).length>0&&!f.JSC$8098_loader_.supportsExtraEdges)throw Error("td");
f.JSC$8098_loader_.JSC$8993_loadModules(B.ids$jscomp$36,f.JSC$9014_moduleInfoMap_,{extraEdges:f.JSC$9014_extraEdges_,onError:function(G,g){var b=T0m[B.attempt$jscomp$6++];b!==void 0?setTimeout(function(){(0,B.load$jscomp$1)()},b):(f.unsetModulesAsLoading.apply(f,_.$d(B.ids$jscomp$36)),(0,B.finishLoad)(),B.ids$jscomp$36.forEach(function(z){z=f.getModuleInfo(z);
if(!z.isLoaded())z.onError(new bh.ModuleLoadFailure(bh.ModuleLoadFailure.JSC$9003_Type.CONSECUTIVE_FAILURES,G,B.ids$jscomp$36,g))}))}})}}(S),(0,S.load$jscomp$1)())},Piv=function(f,S,B,G,g){G=G===void 0?function(){return!0}:G;
g=g===void 0?{}:g;S=_.m(S);for(var b=S.next();!b.done;b=S.next()){b=b.value;var z=f.getModuleInfo(b);!g[b]&&G(z)&&(g[b]=!0,Piv(f,z.deps_||[],B,G,g),B(z))}};var KIv=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var FyG=Symbol("wd");window.JSCompiler_renameProperty=function(f){return f};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var dCg=!KIv||HTMLElement.es5Shimmed||_.S1.Reflect===void 0||_.S1.customElements===void 0||_.S1.customElements.polyfillWrapFlushCallback||!1,i_o,kRx=function(){var f=HTMLElement;if(dCg)return f;if(i_o!==void 0)return i_o;var S=_.S1.Reflect,B=function(){return S.construct(f,[],this.constructor)};
B.prototype=f.prototype;B.prototype.constructor=B;B.es5Shimmed=!0;Object.setPrototypeOf(B,f);return i_o=B},H_m=!1;dCg||H_m||(H_m=!0,_.S1.HTMLElement=kRx());/*

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 KyW=/(url\()([^)]*)(\))/g,PFG=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,v89,G$;var n_=!window.ShadyDOM||!window.ShadyDOM.inUse,qlL=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),$C1=!window.customElements.polyfillWrapFlushCallback,Qfv;if(Qfv=n_&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var Yl8=new CSSStyleSheet;Yl8.replaceSync("");var rL8=document.createElement("div");rL8.attachShadow({mode:"open"});rL8.shadowRoot.adoptedStyleSheets=[Yl8];Qfv=rL8.shadowRoot.adoptedStyleSheets[0]===Yl8}catch(f){Qfv=!1}
var jf8=Qfv,O_N=window.Polymer&&window.Polymer.rootPath||i9K(document.baseURI||window.location.href),PS=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,xl1=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,Ul=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,xCm=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,k2=window.Polymer&&window.Polymer.legacyOptimizations||!1,If=window.Polymer&&window.Polymer.legacyWarnings||!1,E2m=window.Polymer&&window.Polymer.syncInitialRender||
!1,K_=window.Polymer&&window.Polymer.legacyUndefined||!1,LIg=window.Polymer&&window.Polymer.orderedComputed||!1,t_=window.Polymer&&window.Polymer.removeNestedTemplates||!1,u6=window.Polymer&&window.Polymer.fastDomIf||!1,aN=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,k$o=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,n28=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var yo={},sfX={},ii=function(){return HTMLElement.apply(this,arguments)||this};
_.q(ii,HTMLElement);ii.import=function(f,S){return f?(f=yo[f]||sfX[f.toLowerCase()])&&S?f.querySelector(S):f:null};
ii.prototype.attributeChangedCallback=function(f,S,B){S!==B&&this.register()};
ii.prototype.register=function(f){if(f=f||this.id){if(Ul&&(yo[f]||sfX[f.toLowerCase()])!==void 0)throw yo[f]=sfX[f.toLowerCase()]=null,Error("xd`"+f);this.id=f;yo[f]=sfX[f.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.y3.Object.defineProperties(ii.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var f=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;f=_.g0(this.getAttribute("assetpath")||"",f.baseURI);this.__assetpath=i9K(f)}return this.__assetpath}}});
_.y3.Object.defineProperties(ii,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
ii["import"]=ii.import;ii.prototype.modules=yo;customElements.define("dom-module",ii);var DCL=0,qoQ=0,eu=[],Ic1=0,H9T=!1,UCi=document.createTextNode(""),Cio,El;(new window.MutationObserver($1T)).observe(UCi,{characterData:!0});_.Wy={after:function(f){return{run:function(S){return window.setTimeout(S,f)},
cancel:function(S){window.clearTimeout(S)}}},
run:function(f,S){return window.setTimeout(f,S)},
cancel:function(f){window.clearTimeout(f)}};
_.On={run:function(f){return window.requestAnimationFrame(f)},
cancel:function(f){window.cancelAnimationFrame(f)}};
Cio={run:function(f){return window.requestIdleCallback?window.requestIdleCallback(f):window.setTimeout(f,16)},
cancel:function(f){window.cancelIdleCallback?window.cancelIdleCallback(f):window.clearTimeout(f)}};
El={run:function(f){H9T||(H9T=!0,UCi.textContent=Ic1++);eu.push(f);return DCL++},
cancel:function(f){var S=f-qoQ;if(S>=0){if(!eu[S])throw Error("yd`"+f);eu[S]=null}}};var pS6=0,cy=function(f){var S=f.__mixinApplications;S||(S=new WeakMap,f.__mixinApplications=S);var B=pS6++;return function(G){var g=G.__mixinSet;if(g&&g[B])return G;var b=S,z=b.get(G);z||(z=f(G),b.set(G,z),G=Object.create(z.__mixinSet||g||null),G[B]=!0,z.__mixinSet=G);return z}};_.JL=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(f){return ShadyDOM.patch(f)}:function(f){return f};var ALg=cy(function(f){var S=function(){var B=f.call(this)||this;B.__dataEnabled=!1;B.__dataReady=!1;B.__dataInvalid=!1;B.__data={};B.__dataPending=null;B.__dataOld=null;B.__dataInstanceProps=null;B.__dataCounter=0;B.__serializing=!1;B._initializeProperties();return B};
_.q(S,f);S.createProperties=function(B){var G=this.prototype,g;for(g in B)g in G||G._createPropertyAccessor(g)};
S.attributeNameForProperty=function(B){return B.toLowerCase()};
S.typeForProperty=function(){};
S.prototype._createPropertyAccessor=function(B,G){this._addPropertyToAttributeMap(B);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[B]||(this.__dataHasAccessor[B]=!0,this._definePropertyAccessor(B,G))};
S.prototype._addPropertyToAttributeMap=function(B){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var G=this.__dataAttributes[B];G||(G=this.constructor.attributeNameForProperty(B),this.__dataAttributes[G]=B);return G};
S.prototype._definePropertyAccessor=function(B,G){Object.defineProperty(this,B,{get:function(){return this.__data[B]},
set:G?function(){}:function(g){this._setPendingProperty(B,g,!0)&&this._invalidateProperties()}})};
S.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
S.prototype._initializeProperties=function(){for(var B in this.__dataHasAccessor)this.hasOwnProperty(B)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[B]=this[B],delete this[B])};
S.prototype._initializeInstanceProperties=function(B){Object.assign(this,B)};
S.prototype._setProperty=function(B,G){this._setPendingProperty(B,G)&&this._invalidateProperties()};
S.prototype._getProperty=function(B){return this.__data[B]};
S.prototype._setPendingProperty=function(B,G){var g=this.__data[B],b=this._shouldPropertyChange(B,G,g);b&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||B in this.__dataOld||(this.__dataOld[B]=g),this.__data[B]=G,this.__dataPending[B]=G);return b};
S.prototype._isPropertyPending=function(B){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(B))};
S.prototype._invalidateProperties=function(){var B=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,El.run(function(){B.__dataInvalid&&(B.__dataInvalid=!1,B._flushProperties())}))};
S.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
S.prototype._flushProperties=function(){this.__dataCounter++;var B=this.__data,G=this.__dataPending,g=this.__dataOld;this._shouldPropertiesChange(B,G,g)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(B,G,g));this.__dataCounter--};
S.prototype._shouldPropertiesChange=function(B,G){return!!G};
S.prototype._propertiesChanged=function(){};
S.prototype._shouldPropertyChange=function(B,G,g){return g!==G&&(g===g||G===G)};
S.prototype.attributeChangedCallback=function(B,G,g,b){G!==g&&this._attributeToProperty(B,g);f.prototype.attributeChangedCallback&&f.prototype.attributeChangedCallback.call(this,B,G,g,b)};
S.prototype._attributeToProperty=function(B,G,g){if(!this.__serializing){var b=this.__dataAttributes;B=b&&b[B]||B;this[B]=this._deserializeValue(G,g||this.constructor.typeForProperty(B))}};
S.prototype._propertyToAttribute=function(B,G,g){this.__serializing=!0;g=arguments.length<3?this[B]:g;this._valueToNodeAttribute(this,g,G||this.constructor.attributeNameForProperty(B));this.__serializing=!1};
S.prototype._valueToNodeAttribute=function(B,G,g){G=this._serializeValue(G);if(g==="class"||g==="name"||g==="slot")B=(0,_.JL)(B);G===void 0?B.removeAttribute(g):B.setAttribute(g,G===""&&window.trustedTypes?window.trustedTypes.emptyScript:G)};
S.prototype._serializeValue=function(B){switch(typeof B){case "boolean":return B?"":void 0;default:return B!=null?B.toString():void 0}};
S.prototype._deserializeValue=function(B,G){switch(G){case Boolean:return B!==null;case Number:return Number(B);default:return B}};
return S});var N06=0,QaK=[];var Mug=cy(function(f){function S(b){b=Object.getPrototypeOf(b);return b.prototype instanceof g?b:null}
function B(b){if(!b.hasOwnProperty("__ownProperties")){var z=null;if(b.hasOwnProperty("properties")){var X=b.properties;if(X){z={};for(var w in X){var F=X[w];z[w]=typeof F==="function"?{type:F}:F}}}b.__ownProperties=z}return b.__ownProperties}
var G=ALg(f),g=function(){return G.apply(this,arguments)||this};
_.q(g,G);g.finalize=function(){if(!this.hasOwnProperty("__finalized")){var b=S(this);b&&b.finalize();this.__finalized=!0;this._finalizeClass()}};
g._finalizeClass=function(){var b=B(this);b&&this.createProperties(b)};
g.typeForProperty=function(b){return(b=this._properties[b])&&b.type};
g.prototype._initializeProperties=function(){N06++;this.constructor.finalize();G.prototype._initializeProperties.call(this)};
g.prototype.connectedCallback=function(){G.prototype.connectedCallback&&G.prototype.connectedCallback.call(this);this._enableProperties()};
g.prototype.disconnectedCallback=function(){G.prototype.disconnectedCallback&&G.prototype.disconnectedCallback.call(this)};
_.y3.Object.defineProperties(g,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var b=this;if(!this.hasOwnProperty("__observedAttributes")){YoT(this.prototype);var z=this._properties;this.__observedAttributes=z?Object.keys(z).map(function(X){return b.prototype._addPropertyToAttributeMap(X)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var b=S(this);this.__properties=Object.assign({},b&&b._properties,B(this))}return this.__properties}}});
return g});var r39={},jaN=/-[a-z]/g,O9N=/([A-Z])/g;for(var Z_g={},tuv=HTMLElement.prototype;tuv;){for(var ujm=Object.getOwnPropertyNames(tuv),acg=0;acg<ujm.length;acg++)Z_g[ujm[acg]]=!0;tuv=Object.getPrototypeOf(tuv)}var yLv=window.trustedTypes?function(f){return trustedTypes.isHTML(f)||trustedTypes.isScript(f)||trustedTypes.isScriptURL(f)}:function(){return!1},WIj=cy(function(f){var S=ALg(f);
f=function(){return S.apply(this,arguments)||this};
_.q(f,S);f.createPropertiesForAttributes=function(){for(var B=this.observedAttributes,G=0;G<B.length;G++)this.prototype._createPropertyAccessor(bi(B[G]))};
f.attributeNameForProperty=function(B){return mI(B)};
f.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);S.prototype._initializeProperties.call(this)};
f.prototype._initializeProtoProperties=function(B){for(var G in B)this._setProperty(G,B[G])};
f.prototype._ensureAttribute=function(B,G){this.hasAttribute(B)||this._valueToNodeAttribute(this,G,B)};
f.prototype._serializeValue=function(B){switch(typeof B){case "object":if(B instanceof Date)return B.toString();if(B){if(yLv(B))return B;try{return JSON.stringify(B)}catch(G){return""}}default:return S.prototype._serializeValue.call(this,B)}};
f.prototype._deserializeValue=function(B,G){switch(G){case Object:try{var g=JSON.parse(B)}catch(b){g=B}break;case Array:try{g=JSON.parse(B)}catch(b){g=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+B)}break;case Date:g=isNaN(B)?String(B):Number(B);g=new Date(g);break;default:g=S.prototype._deserializeValue.call(this,B,G)}return g};
f.prototype._definePropertyAccessor=function(B,G){if(!Z_g[B]){var g=this[B];g!==void 0&&(this.__data?this._setPendingProperty(B,g):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[B]=g))}S.prototype._definePropertyAccessor.call(this,B,G)};
f.prototype._hasAccessor=function(B){return this.__dataHasAccessor&&this.__dataHasAccessor[B]};
f.prototype._isPropertyPending=function(B){return!!(this.__dataPending&&B in this.__dataPending)};
return f});var cLN={"dom-if":!0,"dom-repeat":!0},lcN=!1,fTi=!1,ocm=function(){var f=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(S){return S}});
return function(S,B,G){B=B.getAttribute(G);f&&G.startsWith("on-")?S.setAttribute(G,f.createScript(B,G)):S.setAttribute(G,B)}}(),Sf$=cy(function(f){var S=function(){return f.apply(this,arguments)||this};
_.q(S,f);S._parseTemplate=function(B,G){if(!B._templateInfo){var g=B._templateInfo={};g.nodeInfoList=[];g.nestedTemplate=!!G;g.stripWhiteSpace=G&&G.stripWhiteSpace||B.hasAttribute&&B.hasAttribute("strip-whitespace");this._parseTemplateContent(B,g,{parent:null})}return B._templateInfo};
S._parseTemplateContent=function(B,G,g){return this._parseTemplateNode(B.content,G,g)};
S._parseTemplateNode=function(B,G,g){var b=!1;B.localName!="template"||B.hasAttribute("preserve-content")?B.localName==="slot"&&(G.hasInsertionPoint=!0):b=this._parseTemplateNestedTemplate(B,G,g)||b;if(!lcN){lcN=!0;var z=document.createElement("textarea");z.placeholder="a";fTi=z.placeholder===z.textContent}fTi&&B.localName==="textarea"&&B.placeholder&&B.placeholder===B.textContent&&(B.textContent=null);B.firstChild&&this._parseTemplateChildNodes(B,G,g);B.hasAttributes&&B.hasAttributes()&&(b=this._parseTemplateNodeAttributes(B,
G,g)||b);return b||g.noted};
S._parseTemplateChildNodes=function(B,G,g){if(B.localName!=="script"&&B.localName!=="style")for(var b=B.firstChild,z=0,X;b;b=X){if(b.localName=="template"){var w=b.getAttribute("is");if(w&&cLN[w])for(X=b,X.removeAttribute("is"),b=X.ownerDocument.createElement(w),X.parentNode.replaceChild(b,X),b.appendChild(X);X.attributes.length;)w=X.attributes[0].name,ocm(b,X,w),X.removeAttribute(w)}X=b.nextSibling;if(b.nodeType===Node.TEXT_NODE){for(w=X;w&&w.nodeType===Node.TEXT_NODE;)b.textContent+=w.textContent,
X=w.nextSibling,B.removeChild(w),w=X;if(G.stripWhiteSpace&&!b.textContent.trim()){B.removeChild(b);continue}}w={parentIndex:z,parentInfo:g};this._parseTemplateNode(b,G,w)&&(w.infoIndex=G.nodeInfoList.push(w)-1);b.parentNode&&z++}};
S._parseTemplateNestedTemplate=function(B,G,g){G=this._parseTemplate(B,G);(G.content=B.content.ownerDocument.createDocumentFragment()).appendChild(B.content);g.templateInfo=G;return!0};
S._parseTemplateNodeAttributes=function(B,G,g){for(var b=!1,z=Array.from(B.attributes),X=z.length-1,w;w=z[X];X--)b=this._parseTemplateNodeAttribute(B,G,g,w.name,w.value)||b;return b};
S._parseTemplateNodeAttribute=function(B,G,g,b,z){return b.slice(0,3)==="on-"?(B.removeAttribute(b),g.events=g.events||[],g.events.push({name:b.slice(3),value:z}),!0):b==="id"?(g.id=z,!0):!1};
S._contentForTemplate=function(B){var G=B._templateInfo;return G&&G.content||B.content};
S.prototype._stampTemplate=function(B,G){B&&!B.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(B);G=G||this.constructor._parseTemplate(B);var g=G.nodeInfoList;B=document.importNode(G.content||B.content,!0);B.__noInsertionPoint=!G.hasInsertionPoint;var b=B.nodeList=Array(g.length);B.$={};for(var z=0,X=g.length,w=void 0;z<X&&(w=g[z]);z++){var F=b[z]=x11(B,w);w.id&&(B.$[w.id]=F);var V=F,J=w,P=G;J.templateInfo&&(V._templateInfo=J.templateInfo,V._parentTemplateInfo=
P);if(w.events&&w.events.length)for(V=0,J=w.events,P=void 0;V<J.length&&(P=J[V]);V++)this._addMethodEventListenerToNode(F,P.name,P.value,this)}return B};
S.prototype._addMethodEventListenerToNode=function(B,G,g,b){g=E8j(b||B,g);this._addEventListenerToNode(B,G,g);return g};
S.prototype._addEventListenerToNode=function(B,G,g){B.addEventListener(G,g)};
S.prototype._removeEventListenerFromNode=function(B,G,g){B.removeEventListener(G,g)};
return S});var Fj=0,vS=[],BiN={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Gli=/[A-Z]/,gci=function(f,S,B,G,g){var b=g?Rf(f):f;if(S=S[b])for(b=0;b<S.length;b++){var z=S[b];if(z.info.lastRun!==Fj&&(!g||IdQ(f,z.trigger))){z.info.lastRun=Fj;z=z.info;for(var X=B,w=G,F=0,V=X.length-1,J=-1;F<=V;){var P=F+V>>1,d=w.get(X[P].methodInfo)-w.get(z.methodInfo);if(d<0)F=P+1;else if(d>0)V=P-1;else{J=P;break}}J<
0&&(J=V+1);X.splice(J,0,z)}}},fP1=[],eS$=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"),fs=cy(function(f){var S=Sf$(WIj(f));
f=function(){var B=S.call(this)||this;B.__isPropertyEffectsClient=!0;return B};
_.q(f,S);f.prototype._initializeProperties=function(){S.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};
f.prototype._registerHost=function(){if(l6.length){var B=l6[l6.length-1];B._enqueueClient(this);this.__dataHost=B}};
f.prototype._initializeProtoProperties=function(B){this.__data=Object.create(B);this.__dataPending=Object.create(B);this.__dataOld={}};
f.prototype._initializeInstanceProperties=function(B){var G=this.__readOnly,g;for(g in B)G&&G[g]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[g]=this.__dataPending[g]=B[g])};
f.prototype._addPropertyEffect=function(B,G,g){this._createPropertyAccessor(B,G=="__readOnly");var b=D1M(this,G,!0)[B];b||(b=this[G][B]=[]);b.push(g)};
f.prototype._removePropertyEffect=function(B,G,g){B=D1M(this,G,!0)[B];g=B.indexOf(g);g>=0&&B.splice(g,1)};
f.prototype._hasPropertyEffect=function(B,G){G=this[G];return!(!G||!G[B])};
f.prototype._hasReadOnlyEffect=function(B){return this._hasPropertyEffect(B,"__readOnly")};
f.prototype._hasNotifyEffect=function(B){return this._hasPropertyEffect(B,"__notifyEffects")};
f.prototype._hasReflectEffect=function(B){return this._hasPropertyEffect(B,"__reflectEffects")};
f.prototype._hasComputedEffect=function(B){return this._hasPropertyEffect(B,"__computeEffects")};
f.prototype._setPendingPropertyOrPath=function(B,G,g,b){if(b||Rf(Array.isArray(B)?B[0]:B)!==B){if(!b&&(b=T$(this,B),B=sas(this,B,G),!B||!S.prototype._shouldPropertyChange.call(this,B,G,b)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(B,G,g)){if(g=this.__dataLinkedPaths)for(var z in g)b=g[z],Xj(z,B)?(b=w0(z,b,B),this._setPendingPropertyOrPath(b,G,!0,!0)):Xj(b,B)&&(b=w0(b,z,B),this._setPendingPropertyOrPath(b,G,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[B])return this._setPendingProperty(B,
G,g);this[B]=G}return!1};
f.prototype._setUnmanagedPropertyToNode=function(B,G,g){if(g!==B[G]||typeof g=="object")G==="className"&&(B=(0,_.JL)(B)),B[G]=g};
f.prototype._setPendingProperty=function(B,G,g){var b=this.__dataHasPaths&&z$(B);if(this._shouldPropertyChange(B,G,(b?this.__dataTemp:this.__data)[B])){this.__dataPending||(this.__dataPending={},this.__dataOld={});B in this.__dataOld||(this.__dataOld[B]=this.__data[B]);b?this.__dataTemp[B]=G:this.__data[B]=G;this.__dataPending[B]=G;if(b||this.__notifyEffects&&this.__notifyEffects[B])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[B]=g;return!0}return!1};
f.prototype._setProperty=function(B,G){this._setPendingProperty(B,G,!0)&&this._invalidateProperties()};
f.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
f.prototype._enqueueClient=function(B){this.__dataPendingClients=this.__dataPendingClients||[];B!==this&&this.__dataPendingClients.push(B)};
f.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
f.prototype.__enableOrFlushClients=function(){var B=this.__dataPendingClients;if(B){this.__dataPendingClients=null;for(var G=0;G<B.length;G++){var g=B[G];g.__dataEnabled?g.__dataPending&&g._flushProperties():g._enableProperties()}}};
f.prototype._readyClients=function(){this.__enableOrFlushClients()};
f.prototype.setProperties=function(B,G){for(var g in B)!G&&this.__readOnly&&this.__readOnly[g]||this._setPendingPropertyOrPath(g,B[g],!0);this._invalidateProperties()};
f.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
f.prototype._propertiesChanged=function(B,G,g){B=this.__dataHasPaths;this.__dataHasPaths=!1;var b;if(b=this.__computeEffects)if(LIg){Fj++;var z=Mq1(this),X=[],w;for(w in G)gci(w,b,X,z,B);for(;w=X.shift();)tqM(this,"",G,g,w)&&gci(w.methodInfo,b,X,z,B);Object.assign(g,this.__dataOld);Object.assign(G,this.__dataPending);this.__dataPending=null}else for(z=G;V3(this,b,z,g,B);)Object.assign(g,this.__dataOld),Object.assign(G,this.__dataPending),z=this.__dataPending,this.__dataPending=null;b=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(G,g,B);this._flushClients();V3(this,this.__reflectEffects,G,g,B);V3(this,this.__observeEffects,G,g,B);if(b){z=this.__notifyEffects;X=Fj++;for(var F in b)if(b[F]){if(w=z){var V=z;w=X;var J=F,P=G,d=g,Q=B,x=!1,E=Q?Rf(J):J;if(V=V[E]){E=0;for(var U=V.length,A=void 0;E<U&&(A=V[E]);E++)A.info&&A.info.lastRun===w||Q&&!IdQ(J,A.trigger)||(A.info&&(A.info.lastRun=w),A.fn(this,J,P,d,A.info,Q,void 0),x=!0)}w=x}if(w)var t=!0;else{if(w=B)w=F,J=G,P=Rf(w),P!==
w?(P=mI(P)+"-changed",CF9(this,P,J[w],w),w=!0):w=!1;w&&(t=!0)}}var M;t&&(M=this.__dataHost)&&M._invalidateProperties&&M._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
f.prototype._propagatePropertyChanges=function(B,G,g){this.__propagateEffects&&V3(this,this.__propagateEffects,B,G,g);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,B,G,g)};
f.prototype._runEffectsForTemplate=function(B,G,g,b){var z=this,X=function(w,F){V3(z,B.propertyEffects,w,g,F,B.nodeList);for(var V=B.firstChild;V;V=V.nextSibling)z._runEffectsForTemplate(V,w,g,F)};
B.runEffects?B.runEffects(X,G,b):X(G,b)};
f.prototype.linkPaths=function(B,G){B=hL(B);G=hL(G);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[B]=G};
f.prototype.unlinkPaths=function(B){B=hL(B);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[B]};
f.prototype.notifySplices=function(B,G){var g={path:""};B=T$(this,B,g);GGK(this,B,g.path,G)};
f.prototype.get=function(B,G){return T$(G||this,B)};
f.prototype.set=function(B,G,g){g?sas(g,B,G):this.__readOnly&&this.__readOnly[B]||this._setPendingPropertyOrPath(B,G,!0)&&this._invalidateProperties()};
f.prototype.push=function(B){var G=_.qb.apply(1,arguments),g={path:""},b=T$(this,B,g),z=b.length,X=b.push.apply(b,_.$d(G));G.length&&d0(this,b,g.path,z,G.length,[]);return X};
f.prototype.pop=function(B){var G={path:""};B=T$(this,B,G);var g=!!B.length,b=B.pop();g&&d0(this,B,G.path,B.length,0,[b]);return b};
f.prototype.splice=function(B,G,g){var b=_.qb.apply(3,arguments),z={path:""},X=T$(this,B,z);G<0?G=X.length-Math.floor(-G):G&&(G=Math.floor(G));var w=arguments.length===2?X.splice(G):X.splice.apply(X,[G,g].concat(_.$d(b)));(b.length||w.length)&&d0(this,X,z.path,G,b.length,w);return w};
f.prototype.shift=function(B){var G={path:""};B=T$(this,B,G);var g=!!B.length,b=B.shift();g&&d0(this,B,G.path,0,0,[b]);return b};
f.prototype.unshift=function(B){var G=_.qb.apply(1,arguments),g={path:""},b=T$(this,B,g),z=b.unshift.apply(b,_.$d(G));G.length&&d0(this,b,g.path,0,G.length,[]);return z};
f.prototype.notifyPath=function(B,G){if(arguments.length==1){var g={path:""};G=T$(this,B,g);g=g.path}else g=Array.isArray(B)?hL(B):B;this._setPendingPropertyOrPath(g,G,!0,!0)&&this._invalidateProperties()};
f.prototype._createReadOnlyProperty=function(B,G){this._addPropertyEffect(B,"__readOnly");G&&(this["_set"+(B[0].toUpperCase()+B.substring(1))]=function(g){this._setProperty(B,g)})};
f.prototype._createPropertyObserver=function(B,G,g){var b={property:B,method:G,dynamicFn:!!g};this._addPropertyEffect(B,"__observeEffects",{fn:U1A,info:b,trigger:{name:B}});g&&this._addPropertyEffect(G,"__observeEffects",{fn:U1A,info:b,trigger:{name:G}})};
f.prototype._createMethodObserver=function(B,G){var g=SRM(B);if(!g)throw Error("zd`"+B);c3G(this,g,"__observeEffects",Z9x,null,G)};
f.prototype._createNotifyingProperty=function(B){this._addPropertyEffect(B,"__notifyEffects",{fn:pwT,info:{eventName:mI(B)+"-changed",property:B}})};
f.prototype._createReflectedProperty=function(B){var G=this.constructor.attributeNameForProperty(B);G[0]==="-"?console.warn("Property "+B+" cannot be reflected to attribute "+G+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(B,"__reflectEffects",{fn:A3N,info:{attrName:G}})};
f.prototype._createComputedProperty=function(B,G,g){var b=SRM(G);if(!b)throw Error("Ad`"+G);G=c3G(this,b,"__computeEffects",tqM,B,g);D1M(this,"__computeInfo")[B]=G};
f.prototype._marshalArgs=function(B,G,g){for(var b=this.__data,z=[],X=0,w=B.length;X<w;X++){var F=B[X],V=F.name,J=F.structured,P=F.wildcard,d=F.value;F.literal||(P?(F=Xj(V,G),J=BbG(b,g,F?G:V),d={path:F?G:V,value:J,base:F?T$(b,V):J}):d=J?BbG(b,g,V):b[V]);if(K_&&!this._overrideLegacyUndefined&&d===void 0&&B.length>1)return vS;z[X]=d}return z};
f.addPropertyEffect=function(B,G,g){this.prototype._addPropertyEffect(B,G,g)};
f.createPropertyObserver=function(B,G,g){this.prototype._createPropertyObserver(B,G,g)};
f.createMethodObserver=function(B,G){this.prototype._createMethodObserver(B,G)};
f.createNotifyingProperty=function(B){this.prototype._createNotifyingProperty(B)};
f.createReadOnlyProperty=function(B,G){this.prototype._createReadOnlyProperty(B,G)};
f.createReflectedProperty=function(B){this.prototype._createReflectedProperty(B)};
f.createComputedProperty=function(B,G,g){this.prototype._createComputedProperty(B,G,g)};
f.bindTemplate=function(B){return this.prototype._bindTemplate(B)};
f.prototype._bindTemplate=function(B,G){var g=this.constructor._parseTemplate(B),b=this.__preBoundTemplateInfo==g;if(!b)for(var z in g.propertyEffects)this._createPropertyAccessor(z);G?(g=Object.create(g),g.wasPreBound=b,this.__templateInfo?(B=B._parentTemplateInfo||this.__templateInfo,G=B.lastChild,g.parent=B,B.lastChild=g,(g.previousSibling=G)?G.nextSibling=g:B.firstChild=g):this.__templateInfo=g):this.__preBoundTemplateInfo=g;return g};
f._addTemplatePropertyEffect=function(B,G,g){(B.hostProps=B.hostProps||{})[G]=!0;B=B.propertyEffects=B.propertyEffects||{};(B[G]=B[G]||[]).push(g)};
f.prototype._stampTemplate=function(B,G){G=G||this._bindTemplate(B,!0);l6.push(this);B=S.prototype._stampTemplate.call(this,B,G);l6.pop();G.nodeList=B.nodeList;if(!G.wasPreBound)for(var g=G.childNodes=[],b=B.firstChild;b;b=b.nextSibling)g.push(b);B.templateInfo=G;g=G.nodeList;b=G.nodeInfoList;if(b.length)for(var z=0;z<b.length;z++){var X=g[z],w=b[z].bindings;if(w)for(var F=0;F<w.length;F++){var V=w[F],J=X,P=V;if(P.isCompound){for(var d=J.__dataCompoundStorage||(J.__dataCompoundStorage={}),Q=P.parts,
x=Array(Q.length),E=0;E<Q.length;E++)x[E]=Q[E].literal;Q=P.target;d[Q]=x;P.literal&&P.kind=="property"&&(Q==="className"&&(J=(0,_.JL)(J)),J[Q]=P.literal)}WyN(X,this,V)}X.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(G,this.__data,null,!1),this._flushClients());return B};
f.prototype._removeBoundDom=function(B){B=B.templateInfo;var G=B.previousSibling,g=B.nextSibling,b=B.parent;G?G.nextSibling=g:b&&(b.firstChild=g);g?g.previousSibling=G:b&&(b.lastChild=G);B.nextSibling=B.previousSibling=null;B=B.childNodes;for(G=0;G<B.length;G++)g=B[G],(0,_.JL)((0,_.JL)(g).parentNode).removeChild(g)};
f._parseTemplateNode=function(B,G,g){var b=S._parseTemplateNode.call(this,B,G,g);if(B.nodeType===Node.TEXT_NODE){var z=this._parseBindings(B.textContent,G);z&&(B.textContent=ldj(z)||" ",y3W(this,G,g,"text","textContent",z),b=!0)}return b};
f._parseTemplateNodeAttribute=function(B,G,g,b,z){var X=this._parseBindings(z,G);if(X){z=b;var w="property";Gli.test(b)?w="attribute":b[b.length-1]=="$"&&(b=b.slice(0,-1),w="attribute");var F=ldj(X);F&&w=="attribute"&&(b=="class"&&B.hasAttribute("class")&&(F+=" "+B.getAttribute(b)),B.setAttribute(b,F));w=="attribute"&&z=="disable-upgrade$"&&B.setAttribute(b,"");B.localName==="input"&&z==="value"&&B.setAttribute(z,"");B.removeAttribute(z);w==="property"&&(b=bi(b));y3W(this,G,g,w,b,X,F);return!0}return S._parseTemplateNodeAttribute.call(this,
B,G,g,b,z)};
f._parseTemplateNestedTemplate=function(B,G,g){var b=S._parseTemplateNestedTemplate.call(this,B,G,g),z=B.parentNode,X=g.templateInfo,w=z.localName==="dom-if",F=z.localName==="dom-repeat";t_&&(w||F)&&(z.removeChild(B),g=g.parentInfo,g.templateInfo=X,g.noted=!0,b=!1);B=X.hostProps;if(u6&&w)B&&(G.hostProps=Object.assign(G.hostProps||{},B),t_||(g.parentInfo.noted=!0));else for(var V in B)y3W(this,G,g,"property","_host_"+V,[{mode:"{",source:V,dependencies:[V],hostProp:!0}]);return b};
f._parseBindings=function(B,G){for(var g=[],b=0,z;(z=eS$.exec(B))!==null;){z.index>b&&g.push({literal:B.slice(b,z.index)});b=z[1][0];var X=!!z[2];z=z[3].trim();var w=!1,F="",V=-1;b=="{"&&(V=z.indexOf("::"))>0&&(F=z.substring(V+2),z=z.substring(0,V),w=!0);V=SRM(z);var J=[];if(V){var P=V,d=P.args;P=P.methodName;for(var Q=0;Q<d.length;Q++){var x=d[Q];x.literal||J.push(x)}if((d=G.dynamicFns)&&d[P]||V.static)J.push(P),V.dynamicFn=!0}else J.push(z);g.push({source:z,mode:b,negate:X,customEvent:w,signature:V,
dependencies:J,event:F});b=eS$.lastIndex}b&&b<B.length&&(B=B.substring(b))&&g.push({literal:B});return g.length?g:null};
f._evaluateBinding=function(B,G,g,b,z,X){B=G.signature?Z9x(B,g,b,z,G.signature):g!=G.source?T$(B,G.source):X&&z$(g)?T$(B,g):B.__data[g];G.negate&&(B=!B);return B};
_.y3.Object.defineProperties(f.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return BiN}}});
return f}),l6=[];var bk1=window.ShadyCSS&&window.ShadyCSS.cssBuild,oH=cy(function(f){function S(G,g,b,z){if(!bk1){for(var X=g.content.querySelectorAll("style"),w=mlA(g),F=z$x(b),V=g.content.firstElementChild,J=0;J<F.length;J++){var P=F[J];P.textContent=G._processStyleText(P.textContent,z);g.content.insertBefore(P,V)}for(V=F=0;V<w.length;V++)J=w[V],P=X[F],P!==J?(J=J.cloneNode(!0),P.parentNode.insertBefore(J,P)):F++,J.textContent=G._processStyleText(J.textContent,z)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(g,
b);if(n28&&bk1&&jf8&&(g=g.content.querySelectorAll("style"))){var d="";Array.from(g).forEach(function(Q){d+=Q.textContent;Q.parentNode.removeChild(Q)});
G._styleSheet=new CSSStyleSheet;G._styleSheet.replaceSync(d)}}
var B=Mug(fs(f));f=function(){return B.call(this)||this};
_.q(f,B);f._finalizeClass=function(){B._finalizeClass.call(this);var G;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(G=this.__ownObservers)&&this.createObservers(G,this._properties);this._prepareTemplate()};
f._prepareTemplate=function(){var G=this.template;G&&(typeof G==="string"?(console.error("template getter must return HTMLTemplateElement"),G=null):k2||(G=G.cloneNode(!0)));this.prototype._template=G};
f.createProperties=function(G){for(var g in G){var b=this.prototype,z=g,X=G[g],w=G;X.computed&&(X.readOnly=!0);X.computed&&(b._hasReadOnlyEffect(z)?console.warn("Cannot redefine computed property '"+z+"'."):b._createComputedProperty(z,X.computed,w));X.readOnly&&!b._hasReadOnlyEffect(z)?b._createReadOnlyProperty(z,!X.computed):X.readOnly===!1&&b._hasReadOnlyEffect(z)&&console.warn("Cannot make readOnly property '"+z+"' non-readOnly.");X.reflectToAttribute&&!b._hasReflectEffect(z)?b._createReflectedProperty(z):
X.reflectToAttribute===!1&&b._hasReflectEffect(z)&&console.warn("Cannot make reflected property '"+z+"' non-reflected.");X.notify&&!b._hasNotifyEffect(z)?b._createNotifyingProperty(z):X.notify===!1&&b._hasNotifyEffect(z)&&console.warn("Cannot make notify property '"+z+"' non-notify.");X.observer&&b._createPropertyObserver(z,X.observer,w[X.observer]);b._addPropertyToAttributeMap(z)}};
f.createObservers=function(G,g){for(var b=this.prototype,z=0;z<G.length;z++)b._createMethodObserver(G[z],g)};
f.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);B.prototype._initializeProperties.call(this);this.rootPath=O_N;this.importPath=this.constructor.importPath;var G=this.constructor;if(!G.hasOwnProperty("__propertyDefaults")){G.__propertyDefaults=null;var g=G._properties,b;for(b in g){var z=g[b];"value"in z&&(G.__propertyDefaults=G.__propertyDefaults||{},G.__propertyDefaults[b]=z)}}if(G=G.__propertyDefaults)for(var X in G)g=G[X],
this._canApplyPropertyDefault(X)&&(g=typeof g.value=="function"?g.value.call(this):g.value,this._hasAccessor(X)?this._setPendingProperty(X,g,!0):this[X]=g)};
f.prototype._canApplyPropertyDefault=function(G){return!this.hasOwnProperty(G)};
f._processStyleText=function(G,g){return d1Q(G,g)};
f._finalizeTemplate=function(G){var g=this.prototype._template;if(g&&!g.__polymerFinalized){g.__polymerFinalized=!0;var b=this.importPath;b=b?_.g0(b):"";S(this,g,G,b);this.prototype._bindTemplate(g)}};
f.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);B.prototype.connectedCallback.call(this)};
f.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);B.prototype.ready.call(this)};
f.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));B.prototype._readyClients.call(this)};
f.prototype._attachDom=function(G){var g=(0,_.JL)(this);if(g.attachShadow)return G?(g.shadowRoot||(g.attachShadow({mode:"open",shadyUpgradeFragment:G}),g.shadowRoot.appendChild(G),this.constructor._styleSheet&&(g.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),E2m&&window.ShadyDOM&&window.ShadyDOM.flushInitial(g.shadowRoot),g.shadowRoot):null;throw Error("Cd");};
f.prototype.updateStyles=function(G){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,G)};
f.prototype.resolveUrl=function(G,g){!g&&this.importPath&&(g=_.g0(this.importPath));return _.g0(G,g)};
f._parseTemplateContent=function(G,g,b){g.dynamicFns=g.dynamicFns||this._properties;return B._parseTemplateContent.call(this,G,g,b)};
f._addTemplatePropertyEffect=function(G,g,b){!If||g in this._properties||b.info.part.signature&&b.info.part.signature.static||b.info.part.hostProp||G.nestedTemplate||console.warn("Property '"+g+"' used in template but not declared in 'properties'; attribute will not be observed.");return B._addTemplatePropertyEffect.call(this,G,g,b)};
_.y3.Object.defineProperties(f,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var G=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof G==="function"&&(G=G());if(G===void 0){if(G=this.hasOwnProperty("is")){G=this.is;var g=null;if(G&&(!Ul||xCm)&&(g=ii.import(G,"template"),Ul&&!g))throw Error("Bd`"+G);G=g}G=G||Object.getPrototypeOf(this.prototype).constructor.template}this._template=G}return this._template},
set:function(G){this._template=G}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var G=this.importMeta;G?this._importPath=i9K(G.url):this._importPath=(G=ii.import(this.is))&&G.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return f});var m5$=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(f){return f}}),VWK=function(f,S){zSX(f,S);
this.value=S.reduce(function(B,G,g){return B+JD1(G)+f[g+1]},f[0]).toString()},zSX;
VWK.prototype.toString=function(){return this.value};
_.RSg=function(f){var S=_.qb.apply(1,arguments);zSX(f,S);var B=document.createElement("template");S=S.reduce(function(G,g,b){if(g instanceof HTMLTemplateElement)g=g.innerHTML;else if(g instanceof VWK)g=JD1(g);else throw Error("Ed`"+g);return G+g+f[b+1]},f[0]);
m5$&&(S=m5$.createHTML(S));B.innerHTML=S;return B};
zSX=function(f,S){if(!Array.isArray(f)||!Array.isArray(f.raw)||S.length!==f.length-1)throw new TypeError("Fd");};var Sb=oH(HTMLElement);var XZm=cy(function(f){var S=oH(f);f=function(){var B=S.call(this)||this;B.__lastItems=null;B.__lastMulti=null;B.__selectedMap=null;return B};
_.q(f,S);f.prototype.__updateSelection=function(B,G){var g=G.path;g=="items"?(G=G.base||[],g=this.__lastItems,B!==this.__lastMulti&&this.clearSelection(),g&&(g=FsG(G,g),this.__applySplices(g)),this.__lastItems=G,this.__lastMulti=B):G.path=="items.splices"?this.__applySplices(G.value.indexSplices):(B=g.slice(6),G=parseInt(B,10),B.indexOf(".")<0&&B==G&&this.__deselectChangedIdx(G))};
f.prototype.__applySplices=function(B){for(var G=this,g=this.__selectedMap,b={},z=0;z<B.length;b={s$jscomp$108:void 0},z++){b.s$jscomp$108=B[z];g.forEach(function(V){return function(J,P){J<V.s$jscomp$108.index||(J>=V.s$jscomp$108.index+V.s$jscomp$108.removed.length?g.set(P,J+V.s$jscomp$108.addedCount-V.s$jscomp$108.removed.length):g.set(P,-1))}}(b));
for(var X=0;X<b.s$jscomp$108.addedCount;X++){var w=b.s$jscomp$108.index+X;g.has(this.items[w])&&g.set(this.items[w],w)}}this.__updateLinks();var F=0;g.forEach(function(V,J){V<0?(G.multi?G.splice("selected",F,1):G.selected=G.selectedItem=null,g.delete(J)):F++})};
f.prototype.__updateLinks=function(){var B=this;this.__dataLinkedPaths={};if(this.multi){var G=0;this.__selectedMap.forEach(function(g){g>=0&&B.linkPaths("items."+g,"selected."+G++)})}else this.__selectedMap.forEach(function(g){B.linkPaths("selected","items."+g);
B.linkPaths("selectedItem","items."+g)})};
f.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
f.prototype.isSelected=function(B){return this.__selectedMap.has(B)};
f.prototype.isIndexSelected=function(B){return this.isSelected(this.items[B])};
f.prototype.__deselectChangedIdx=function(B){var G=this,g=this.__selectedIndexForItemIndex(B);if(g>=0){var b=0;this.__selectedMap.forEach(function(z,X){g==b++&&G.deselect(X)})}};
f.prototype.__selectedIndexForItemIndex=function(B){if(B=this.__dataLinkedPaths["items."+B])return parseInt(B.slice(9),10)};
f.prototype.deselect=function(B){var G=this.__selectedMap.get(B);if(G>=0){this.__selectedMap.delete(B);var g;this.multi&&(g=this.__selectedIndexForItemIndex(G));this.__updateLinks();this.multi?this.splice("selected",g,1):this.selected=this.selectedItem=null}};
f.prototype.deselectIndex=function(B){this.deselect(this.items[B])};
f.prototype.select=function(B){this.selectIndex(this.items.indexOf(B))};
f.prototype.selectIndex=function(B){var G=this.items[B];this.isSelected(G)?this.toggle&&this.deselectIndex(B):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(G,B),this.__updateLinks(),this.multi?this.push("selected",G):this.selected=this.selectedItem=G)};
_.y3.Object.defineProperties(f,{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 f}),wZg=XZm(Sb),BG=function(){return wZg.apply(this,arguments)||this};
_.q(BG,wZg);_.y3.Object.defineProperties(BG,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(BG.is,BG);var hSv=window.Polymer;window.Polymer=function(f){return window.Polymer._polymerFn(f)};
hSv&&Object.assign(Polymer,hSv);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:d1Q,resolveUrl:_.g0,pathFromUrl:i9K};Polymer.DomModule=ii;Polymer.Async={timeOut:_.Wy,animationFrame:_.On,idlePeriod:Cio,microTask:El};Polymer.dedupingMixin=cy;Polymer.wrap=_.JL;Polymer.PropertiesChanged=ALg;Polymer.telemetry={instanceCount:N06,incrementInstanceCount:function(){N06++},
registrations:QaK,register:YoT,dumpRegistrations:function(){QaK.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=Mug;Polymer.CaseMap={dashToCamelCase:bi,camelToDashCase:mI};Polymer.PropertyAccessors=WIj;Polymer.TemplateStamp=Sf$;Polymer.Path={isPath:z$,root:Rf,isAncestor:Lys,isDescendant:Xj,translate:w0,matches:kDA,normalize:hL,split:n8Q,get:T$,set:sas,isDeep:z$};Polymer.Settings={useShadow:n_,useNativeCSSProperties:qlL,useNativeCustomElements:$C1,get rootPath(){return O_N},setRootPath:function(f){O_N=f},
get sanitizeDOMValue(){return PS},setSanitizeDOMValue:function(f){PS=f},
get passiveTouchGestures(){return xl1},setPassiveTouchGestures:function(f){xl1=f},
get strictTemplatePolicy(){return Ul},setStrictTemplatePolicy:function(f){Ul=f},
get allowTemplateFromDomModule(){return xCm},setAllowTemplateFromDomModule:function(f){xCm=f},
get legacyOptimizations(){return k2},setLegacyOptimizations:function(f){k2=f},
get syncInitialRender(){return E2m},setSyncInitialRender:function(f){E2m=f},
get legacyUndefined(){return K_},setLegacyUndefined:function(f){K_=f},
get legacyWarnings(){return If},setLegacyWarnings:function(f){If=f},
get orderedComputed(){return LIg},setOrderedComputed:function(f){LIg=f},
get fastDomIf(){return u6},setFastDomIf:function(f){u6=f},
get removeNestedTemplates(){return t_},setRemoveNestedTemplates:function(f){t_=f},
get suppressTemplateNotifications(){return aN},setSuppressTemplateNotifications:aN};Polymer.rootPath!==void 0&&(O_N=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(PS=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(xl1=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(Ul=Polymer.strictTemplatePolicy);xCm=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(k2=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(E2m=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(K_=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(If=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(LIg=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(u6=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(t_=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(aN=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return PS},
set:function(f){PS=f}});Polymer.PropertyEffects=fs;Polymer.StyleGather={stylesFromModules:bFN,stylesFromModule:e$K,stylesFromTemplate:mlA,stylesFromModuleImports:z$x,cssFromModules:X8Q,cssFromModule:R$T,cssFromTemplate:w8T,cssFromModuleImports:function(f){return(f=ii.import(f))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(f):""}};Polymer.ElementMixin=oH;Polymer.updateStyles=function(f){window.ShadyCSS&&window.ShadyCSS.styleDocument(f)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:FsG};Polymer.html=_.RSg;Polymer.htmlLiteral=function(f){return new VWK(f,_.qb.apply(1,arguments))};Polymer.Element=Sb;Polymer.ArraySelectorMixin=XZm;Polymer.ArraySelector=BG;var TiX=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Fj$=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,cpM=/@media\s(.*)/;var dl9=null,Ksj=window.HTMLImports&&window.HTMLImports.whenReady||null,iF1;var Ve8=null,Gw=null,g1=function(){this.customStyles=[];this.enqueued=!1;HF9(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},J28=function(f){!f.enqueued&&Gw&&(f.enqueued=!0,HF9(Gw))};
g1.prototype.addCustomStyle=function(f){f.__seenByShadyCSS||(f.__seenByShadyCSS=!0,this.customStyles.push(f),J28(this))};
g1.prototype.getStyleForCustomStyle=function(f){if(f.__shadyCSSCachedStyle)return f.__shadyCSSCachedStyle;var S;f.getStyle?S=f.getStyle():S=f;return S};
g1.prototype.processStyles=function(){for(var f=this.customStyles,S=0;S<f.length;S++){var B=f[S];if(!B.__shadyCSSCachedStyle){var G=this.getStyleForCustomStyle(B);G&&(G=G.__appliedElement||G,Ve8&&Ve8(G),B.__shadyCSSCachedStyle=G)}}return f};
g1.prototype.addCustomStyle=g1.prototype.addCustomStyle;g1.prototype.getStyleForCustomStyle=g1.prototype.getStyleForCustomStyle;g1.prototype.processStyles=g1.prototype.processStyles;Object.defineProperties(g1.prototype,{transformCallback:{get:function(){return Ve8},
set:function(f){Ve8=f}},
validateCallback:{get:function(){return Gw},
set:function(f){var S=!1;Gw||(S=!0);Gw=f;S&&J28(this)}}});var $lN=!(window.ShadyDOM&&window.ShadyDOM.inUse),qRW,af;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(af=window.ShadyCSS.cssBuild);var PTm=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?qRW=window.ShadyCSS.nativeCss:window.ShadyCSS?(YRV(window.ShadyCSS),window.ShadyCSS=void 0):YRV(window.WebComponents&&window.WebComponents.flags);var apK=qRW;var vc6=new g1;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(f,S){vc6.processStyles();Pxx(f,S)},
styleElement:function(){vc6.processStyles()},
styleDocument:function(f){vc6.processStyles();Pxx(document.body,f)},
getComputedStyleValue:function(f,S){return vKj(f,S)},
flushCustomStyles:function(){},
nativeCss:apK,nativeShadow:$lN,cssBuild:af,disableRuntime:PTm});window.ShadyCSS.CustomStyleInterface=vc6;var KjN=window.ShadyCSS.CustomStyleInterface,eb=function(){var f=HTMLElement.call(this)||this;f._style=null;KjN.addCustomStyle(f);return f};
_.q(eb,HTMLElement);eb.prototype.getStyle=function(){if(this._style)return this._style;var f=this.querySelector("style");if(!f)return null;this._style=f;var S=f.getAttribute("include");S&&(f.removeAttribute("include"),f.textContent=X8Q(S)+f.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
eb.prototype.getStyle=eb.prototype.getStyle;window.customElements.define("custom-style",eb);Polymer.CustomStyle=eb;var b8=function(){this._timer=this._callback=this._asyncModule=null},mw,ik7;
b8.prototype.setConfig=function(f,S){var B=this;this._asyncModule=f;this._callback=S;this._timer=this._asyncModule.run(function(){B._timer=null;mw.delete(B);B._callback()})};
b8.prototype.cancel=function(){this.isActive()&&(d58(this),mw.delete(this))};
var d58=function(f){f.isActive()&&(f._asyncModule.cancel(f._timer),f._timer=null)};
b8.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
b8.prototype.isActive=function(){return this._timer!=null};
_.zw=function(f,S,B){f instanceof b8?d58(f):f=new b8;f.setConfig(S,B);return f};
mw=new Set;_.RH=function(f){mw.add(f)};
ik7=function(){var f=!!mw.size;mw.forEach(function(S){try{S.flush()}catch(B){setTimeout(function(){throw B;})}});
return f};var j8Q=typeof document.head.style.touchAction==="string",rD9=["mousedown","mousemove","mouseup","click"],IPQ=[0,1,4,2],Hkg;try{Hkg=(new MouseEvent("test",{buttons:1})).buttons===1}catch(f){Hkg=!1}var Dl1=Hkg,OFT=!1;(function(){try{var f=Object.defineProperty({},"passive",{get:function(){OFT=!0}});
window.addEventListener("test",null,f);window.removeEventListener("test",null,f)}catch(S){}})();
var LsG=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),kGG=[],qf6={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},Wsx={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},nKA=function(f){var S=f.sourceCapabilities;if(!S||S.firesTouchEvents)if(f.__polymerGesturesHandled={skip:!0},f.type==="click"){S=!1;for(var B=ADT(f),G=0;G<B.length;G++){if(B[G].nodeType===Node.ELEMENT_NODE)if(B[G].localName==="label")kGG.push(B[G]);
else if(qf6[B[G].localName]){var g=B[G];var b=Array.prototype.slice.call(g.labels||[]);if(!b.length){b=[];try{var z=g.getRootNode();if(g.id){var X=z.querySelectorAll("label[for = '"+g.id+"']");for(g=0;g<X.length;g++)b.push(X[g])}}catch(w){}}for(g=0;g<b.length;g++)S=S||kGG.indexOf(b[g])>-1}if(B[G]===$5N)return}S||(f.preventDefault(),f.stopPropagation())}},$5N=null,Xb=null,MWV=0,ZFM=0,Nbj=-1,tWV=!1;
document.addEventListener("touchend",function(f){Xb||s8W(!0);$5N=ADT(f)[0];Xb=_.zw(Xb,_.Wy.after(2500),function(){s8W();Xb=$5N=null})},OFT?{passive:!0}:!1);
var ADT=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(f){return f.composedPath&&f.composedPath()||[]},r0={},Q3=[];
u$W({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){$2(this.info)},
mousedown:function(f){if(qC(f)){var S=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f),B=this;Cx1(this.info,function(G){qC(G)||(L_("up",S,G),$2(B.info))},function(G){qC(G)&&L_("up",S,G);
$2(B.info)});
L_("down",S,f)}},
touchstart:function(f){L_("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f),f.changedTouches[0],f)},
touchend:function(f){L_("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f),f.changedTouches[0],f)}});
u$W({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(f){this.moves.length>2&&this.moves.shift();this.moves.push(f)},
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;$2(this.info)},
mousedown:function(f){if(qC(f)){var S=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f),B=this,G=function(g){var b=g.clientX,z=g.clientY;aPs(B.info,b,z)&&(B.info.state=B.info.started?g.type==="mouseup"?"end":"track":"start",B.info.state==="start"&&Y2("tap"),B.info.addMove({x:b,y:z}),qC(g)||(B.info.state="end",$2(B.info)),S&&yDM(B.info,S,g),B.info.started=!0)};
Cx1(this.info,G,function(g){B.info.started&&G(g);$2(B.info)});
this.info.x=f.clientX;this.info.y=f.clientY}},
touchstart:function(f){f=f.changedTouches[0];this.info.x=f.clientX;this.info.y=f.clientY},
touchmove:function(f){var S=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f);f=f.changedTouches[0];var B=f.clientX,G=f.clientY;aPs(this.info,B,G)&&(this.info.state==="start"&&Y2("tap"),this.info.addMove({x:B,y:G}),yDM(this.info,S,f),this.info.state="track",this.info.started=!0)},
touchend:function(f){var S=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f);f=f.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:f.clientX,y:f.clientY}),yDM(this.info,S,f))}});
u$W({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(f){qC(f)&&(this.info.x=f.clientX,this.info.y=f.clientY)},
click:function(f){qC(f)&&cDV(this.info,f)},
touchstart:function(f){f=f.changedTouches[0];this.info.x=f.clientX;this.info.y=f.clientY},
touchend:function(f){cDV(this.info,f.changedTouches[0],f)}});var Q4N=cy(function(f){var S=function(){return f.apply(this,arguments)||this};
_.q(S,f);S.prototype._addEventListenerToNode=function(B,G,g){ju(B,G,g)||f.prototype._addEventListenerToNode.call(this,B,G,g)};
S.prototype._removeEventListenerFromNode=function(B,G,g){Ol(B,G,g)||f.prototype._removeEventListenerFromNode.call(this,B,G,g)};
return S});var w1=cy(function(f){var S=function(){return f.apply(this,arguments)||this};
_.q(S,f);S.prototype._shouldPropertyChange=function(B,G,g){return lPT(this,B,G,g,!0)};
return S}),Yf1=cy(function(f){var S=function(){return f.apply(this,arguments)||this};
_.q(S,f);S.prototype._shouldPropertyChange=function(B,G,g){return lPT(this,B,G,g,this.mutableData)};
_.y3.Object.defineProperties(S,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return S});
w1._mutablePropertyChange=lPT;var fps=!1;var r2m=Q4N(Yf1(fs(HTMLElement))),ho=function(){var f=r2m.call(this)||this;if(Ul)throw Error("Hd");f.root=null;f.$=null;f.__children=null;return f};
_.q(ho,r2m);_.e=ho.prototype;_.e.attributeChangedCallback=function(){this.mutableData=!0};
_.e.connectedCallback=function(){oVQ()||(this.style.display="none");this.render()};
_.e.disconnectedCallback=function(){this.__removeChildren()};
_.e.__insertChildren=function(){(0,_.JL)((0,_.JL)(this).parentNode).insertBefore(this.root,this)};
_.e.__removeChildren=function(){if(this.__children)for(var f=0;f<this.__children.length;f++)this.root.appendChild(this.__children[f])};
_.e.render=function(){var f=this;if(!this.__children){var S=S||this.querySelector("template");if(!S){var B=new MutationObserver(function(){if(S=f.querySelector("template"))B.disconnect(),f.render();else throw Error("Id");});
B.observe(this,{childList:!0});return}this.root=this._stampTemplate(S);this.$=this.root.$;this.__children=[];for(var G=this.root.firstChild;G;G=G.nextSibling)this.__children[this.__children.length]=G;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.y3.Object.defineProperties(ho,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",ho);Polymer.Debouncer=b8;Polymer.Gestures={gestures:r0,recognizers:Q3,deepTargetFind:p8V,addListener:ju,removeListener:Ol,register:u$W,setTouchAction:_.x2,prevent:Y2,resetMouseCanceller:function(){Xb&&Xb.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:ju,remove:Ol};Polymer.GestureEventListeners=Q4N;Polymer.MutableData=w1;Polymer.OptionalMutableData=Yf1;Polymer.DomBind=ho;_.Tw=function(){do{var f=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var S=ik7()}while(f||S)};var SC1=null;B5x.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:B5x,writable:!0}});var XeN=fs(B5x),Rox=w1(XeN),j47=fs(function(){}),sl=function(f){var S=j47.call(this)||this;
S._configureProperties(f);S.root=S._stampTemplate(S.__dataHost);var B=[];S.children=B;for(var G=S.root.firstChild;G;G=G.nextSibling)B.push(G),G.__templatizeInstance=S;S.__templatizeOwner&&S.__templatizeOwner.__hideTemplateChildren__&&S._showHideChildren(!0);B=S.__templatizeOptions;(f&&B.instanceProps||!B.instanceProps)&&S._enableProperties();return S};
_.q(sl,j47);_.e=sl.prototype;_.e._configureProperties=function(f){if(this.__templatizeOptions.forwardHostProp)for(var S in this.__hostProps)this._setPendingProperty(S,this.__dataHost["_host_"+S]);for(var B in f)this._setPendingProperty(B,f[B])};
_.e.forwardHostProp=function(f,S){this._setPendingPropertyOrPath(f,S,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.e._addEventListenerToNode=function(f,S,B){var G=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(f,S,function(b){b.model=G;B(b)});
else{var g=this.__dataHost.__dataHost;g&&g._addEventListenerToNode(f,S,B)}};
_.e._showHideChildren=function(f){gVG(f,this.children)};
_.e._setUnmanagedPropertyToNode=function(f,S,B){f.__hideTemplateChildren__&&f.nodeType==Node.TEXT_NODE&&S=="textContent"?f.__polymerTextContent__=B:j47.prototype._setUnmanagedPropertyToNode.call(this,f,S,B)};
_.e.dispatchEvent=function(){return!0};
_.y3.Object.defineProperties(sl.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var f=this.__parentModel;if(!f){var S;f=this;do f=f.__dataHost.__dataHost;while((S=f.__templatizeOptions)&&!S.parentModel);this.__parentModel=f}return f}}});
var by9=w1(sl);var Fb=function(){var f=Sb.call(this)||this;f.__renderDebouncer=null;f._lastIf=!1;f.__hideTemplateChildren__=!1;return f};
_.q(Fb,Sb);_.e=Fb.prototype;_.e.__debounceRender=function(){var f=this;this.__renderDebouncer=_.zw(this.__renderDebouncer,El,function(){return f.__render()});
_.RH(this.__renderDebouncer)};
_.e.disconnectedCallback=function(){Sb.prototype.disconnectedCallback.call(this);var f=(0,_.JL)(this).parentNode;f&&(f.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.JL)(f).host)||this.__teardownInstance()};
_.e.connectedCallback=function(){Sb.prototype.connectedCallback.call(this);oVQ()||(this.style.display="none");this.if&&this.__debounceRender()};
_.e.__ensureTemplate=function(){var f=this;if(!this.__template){var S=this._templateInfo?this:(0,_.JL)(this).querySelector("template");if(!S){var B=new MutationObserver(function(){if((0,_.JL)(f).querySelector("template"))B.disconnect(),f.__render();else throw Error("Ld");});
B.observe(this,{childList:!0});return!1}this.__template=S}return!0};
_.e.__ensureInstance=function(){var f=(0,_.JL)(this).parentNode;if(this.__hasInstance()){var S=this.__getInstanceNodes();if(S&&S.length&&(0,_.JL)(this).previousSibling!==S[S.length-1])for(var B=0,G=void 0;B<S.length&&(G=S[B]);B++)(0,_.JL)(f).insertBefore(G,this)}else{if(!f||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(f)}return!0};
_.e.render=function(){_.Tw()};
_.e.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();aN&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.e.__hasInstance=function(){};
_.e.__getInstanceNodes=function(){};
_.e.__createAndInsertInstance=function(){};
_.e.__teardownInstance=function(){};
_.e._showHideChildren=function(){};
_.y3.Object.defineProperties(Fb,{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:Fb.prototype.__debounceRender},restamp:{type:Boolean,observer:Fb.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var Okm=function(){var f=Fb.call(this)||this;f.__instance=null;f.__syncInfo=null;return f};
_.q(Okm,Fb);_.e=Okm.prototype;_.e.__hasInstance=function(){return!!this.__instance};
_.e.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.e.__createAndInsertInstance=function(f){var S=this,B=this.__dataHost||this;if(Ul&&!this.__dataHost)throw Error("Jd");var G=B._bindTemplate(this.__template,!0);G.runEffects=function(g,b,z){var X=S.__syncInfo;if(S.if)X&&(S.__syncInfo=null,S._showHideChildren(),b=Object.assign(X.changedProps,b)),g(b,z);else if(S.__instance)if(X||(X=S.__syncInfo={runEffects:g,changedProps:{}}),z)for(var w in b)g=Rf(w),X.changedProps[g]=S.__dataHost[g];else Object.assign(X.changedProps,b)};
this.__instance=B._stampTemplate(this.__template,G);(0,_.JL)(f).insertBefore(this.__instance,this)};
_.e.__syncHostProperties=function(){var f=this.__syncInfo;f&&(this.__syncInfo=null,f.runEffects(f.changedProps,!1))};
_.e.__teardownInstance=function(){var f=this.__dataHost||this;this.__instance&&(f._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.e._showHideChildren=function(){var f=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==f&&(this.__instance.__hidden=f,gVG(f,this.__instance.templateInfo.childNodes));f||this.__syncHostProperties()};
var x5N=function(){var f=Fb.call(this)||this;f.__ctor=null;f.__instance=null;f.__invalidProps=null;return f};
_.q(x5N,Fb);_.e=x5N.prototype;_.e.__hasInstance=function(){return!!this.__instance};
_.e.__getInstanceNodes=function(){return this.__instance.children};
_.e.__createAndInsertInstance=function(f){this.__ctor||(this.__ctor=Dc(this.__template,this,{mutableData:!0,forwardHostProp:function(S,B){this.__instance&&(this.if?this.__instance.forwardHostProp(S,B):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[Rf(S)]=!0))}}));
this.__instance=new this.__ctor;(0,_.JL)(f).insertBefore(this.__instance.root,this)};
_.e.__teardownInstance=function(){if(this.__instance){var f=this.__instance.children;if(f&&f.length){var S=(0,_.JL)(f[0]).parentNode;if(S){S=(0,_.JL)(S);for(var B=0,G=void 0;B<f.length&&(G=f[B]);B++)S.removeChild(G)}}this.__instance=this.__invalidProps=null}};
_.e.__syncHostProperties=function(){var f=this.__invalidProps;if(f){this.__invalidProps=null;for(var S in f)this.__instance._setPendingProperty(S,this.__dataHost[S]);this.__instance._flushProperties()}};
_.e._showHideChildren=function(){var f=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==f&&(this.__instance.__hidden=f,this.__instance._showHideChildren(f));f||this.__syncHostProperties()};
_.EW=u6?Okm:x5N;customElements.define(_.EW.is,_.EW);Polymer.enqueueDebouncer=_.RH;Polymer.flush=_.Tw;Polymer.Templatize={templatize:Dc,modelForElement:Jp1};Polymer.TemplateInstanceBase=sl;Polymer.DomIf=_.EW;var Ecj=Yf1(Sb),xb=function(){var f=Ecj.call(this)||this;f.__instances=[];f.__renderDebouncer=null;f.__itemsIdxToInstIdx={};f.__chunkCount=null;f.__renderStartTime=null;f.__itemsArrayChanged=!1;f.__shouldMeasureChunk=!1;f.__shouldContinueChunking=!1;f.__chunkingId=0;f.__sortFn=null;f.__filterFn=null;f.__observePaths=null;f.__ctor=null;f.__isDetached=!0;f.template=null;return f};
_.q(xb,Ecj);_.e=xb.prototype;_.e.disconnectedCallback=function(){Ecj.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var f=0;f<this.__instances.length;f++)this.__detachInstance(f);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.e.connectedCallback=function(){Ecj.prototype.connectedCallback.call(this);oVQ()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var f=(0,_.JL)((0,_.JL)(this).parentNode),S=0;S<this.__instances.length;S++)this.__attachInstance(S,f);this.__chunkingId&&this.__render()}};
_.e.__ensureTemplatized=function(){var f=this;if(!this.__ctor){var S=this.template=this._templateInfo?this:this.querySelector("template");if(!S){var B=new MutationObserver(function(){if(f.querySelector("template"))B.disconnect(),f.__render();else throw Error("Md");});
B.observe(this,{childList:!0});return!1}var G={};G[this.as]=!0;G[this.indexAs]=!0;G[this.itemsIndexAs]=!0;this.__ctor=Dc(S,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:G,forwardHostProp:function(g,b){for(var z=this.__instances,X=0,w=void 0;X<z.length&&(w=z[X]);X++)w.forwardHostProp(g,b)},
notifyInstanceProp:function(g,b,z){kDA(this.as,b)&&(g=g[this.itemsIndexAs],b==this.as&&(this.items[g]=z),b=w0(this.as,"items."+g,b),this.notifyPath(b,z))}})}return!0};
_.e.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.e.__functionFromPropertyValue=function(f){if(typeof f==="string"){var S=this.__getMethodHost();return function(){return S[f].apply(S,arguments)}}return f};
_.e.__sortChanged=function(f){this.__sortFn=this.__functionFromPropertyValue(f);this.items&&this.__debounceRender(this.__render)};
_.e.__filterChanged=function(f){this.__filterFn=this.__functionFromPropertyValue(f);this.items&&this.__debounceRender(this.__render)};
_.e.__computeFrameTime=function(f){return Math.ceil(1E3/f)};
_.e.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.e.__handleObservedPaths=function(f){if(this.__sortFn||this.__filterFn)if(!f)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var S=this.__observePaths,B=0;B<S.length;B++)f.indexOf(S[B])===0&&this.__debounceRender(this.__render,this.delay)};
_.e.__itemsChanged=function(f){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(f.path,f.value)||(f.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.e.__debounceRender=function(f,S){S=S===void 0?0:S;this.__renderDebouncer=_.zw(this.__renderDebouncer,S>0?_.Wy.after(S):El,f.bind(this));_.RH(this.__renderDebouncer)};
_.e.render=function(){this.__debounceRender(this.__render);_.Tw()};
_.e.__render=function(){var f=this;if(this.__ensureTemplatized()){var S=this.items||[],B=this.__sortAndFilterItems(S),G=this.__calculateLimit(B.length);this.__updateInstances(S,G,B);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){f.__chunkingId=null;f.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);aN&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.e.__sortAndFilterItems=function(f){for(var S=this,B=Array(f.length),G=0;G<f.length;G++)B[G]=G;this.__filterFn&&(B=B.filter(function(g,b,z){return S.__filterFn(f[g],b,z)}));
this.__sortFn&&B.sort(function(g,b){return S.__sortFn(f[g],f[b])});
return B};
_.e.__calculateLimit=function(f){var S=f,B=this.__instances.length;if(this.initialCount){var G;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(S=Math.min(f,this.initialCount),this.__chunkCount=(G=Math.max(S-B,0))||1):(G=Math.min(Math.max(f-B,0),this.__chunkCount),S=Math.min(B+G,f));this.__shouldMeasureChunk=G===this.__chunkCount;this.__shouldContinueChunking=S<f;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return S};
_.e.__continueChunking=function(){if(this.__shouldMeasureChunk){var f=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/f*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.e.__updateInstances=function(f,S,B){var G=this.__itemsIdxToInstIdx={},g;for(g=0;g<S;g++){var b=this.__instances[g],z=B[g],X=f[z];G[z]=g;b?(b._setPendingProperty(this.as,X),b._setPendingProperty(this.indexAs,g),b._setPendingProperty(this.itemsIndexAs,z),b._flushProperties()):this.__insertInstance(X,g,z)}for(f=this.__instances.length-1;f>=g;f--)this.__detachAndRemoveInstance(f)};
_.e.__detachInstance=function(f){f=this.__instances[f];for(var S=(0,_.JL)(f.root),B=0;B<f.children.length;B++)S.appendChild(f.children[B]);return f};
_.e.__attachInstance=function(f,S){S.insertBefore(this.__instances[f].root,this)};
_.e.__detachAndRemoveInstance=function(f){this.__detachInstance(f);this.__instances.splice(f,1)};
_.e.__stampInstance=function(f,S,B){var G={};G[this.as]=f;G[this.indexAs]=S;G[this.itemsIndexAs]=B;return new this.__ctor(G)};
_.e.__insertInstance=function(f,S,B){f=this.__stampInstance(f,S,B);B=(B=this.__instances[S+1])?B.children[0]:this;(0,_.JL)((0,_.JL)(this).parentNode).insertBefore(f.root,B);return this.__instances[S]=f};
_.e._showHideChildren=function(f){for(var S=0;S<this.__instances.length;S++)this.__instances[S]._showHideChildren(f)};
_.e.__handleItemPath=function(f,S){var B=f.slice(6),G=B.indexOf(".");f=G<0?B:B.substring(0,G);if(f==parseInt(f,10)){B=G<0?"":B.substring(G+1);this.__handleObservedPaths(B);if(f=this.__instances[this.__itemsIdxToInstIdx[f]])f._setPendingPropertyOrPath(this.as+(B?"."+B:""),S,!1,!0),f._flushProperties();return!0}};
_.e.itemForElement=function(f){return(f=this.modelForElement(f))&&f[this.as]};
_.e.indexForElement=function(f){return(f=this.modelForElement(f))&&f[this.indexAs]};
_.e.modelForElement=function(f){return Jp1(this.template,f)};
_.y3.Object.defineProperties(xb,{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:xb.prototype.__sortChanged},filter:{type:Function,observer:xb.prototype.__filterChanged},observe:{type:String,observer:xb.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!aN,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.*)"]}}});
xb.prototype._setRenderedItemCount=function(){};
customElements.define(xb.is,xb);Polymer.DomRepeat=xb;var Ljm=function(f,S){var B=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=f;this.callback=S;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){B._schedule()};
this.connect();this._schedule()},klo=function(f){var S=(0,_.JL)(f);
if(C_(f))return S.assignedNodes({flatten:!0});f=[];for(var B=0;B<S.childNodes.length;B++){var G=S.childNodes[B];C_(G)?f.push.apply(f,_.$d((0,_.JL)(G).assignedNodes({flatten:!0}))):f.push(G)}return f};
_.e=Ljm.prototype;_.e.connect=function(){var f=this;C_(this._target)?this._listenSlots([this._target]):(0,_.JL)(this._target).children&&(this._listenSlots((0,_.JL)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(S){f._processMutations(S)}):(this._nativeChildrenObserver=new MutationObserver(function(S){f._processMutations(S)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.e.disconnect=function(){C_(this._target)?this._unlistenSlots([this._target]):(0,_.JL)(this._target).children&&(this._unlistenSlots((0,_.JL)(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null));this._connected=!1};
_.e._schedule=function(){var f=this;this._scheduled||(this._scheduled=!0,El.run(function(){return f.flush()}))};
_.e._processMutations=function(f){this._processSlotMutations(f);this.flush()};
_.e._processSlotMutations=function(f){if(f)for(var S=0;S<f.length;S++){var B=f[S];B.addedNodes&&this._listenSlots(B.addedNodes);B.removedNodes&&this._unlistenSlots(B.removedNodes)}};
_.e.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 f={target:this._target,addedNodes:[],removedNodes:[]},S=klo(this._target),B=FsG(S,this._effectiveNodes),G=0,g=void 0;G<B.length&&(g=B[G]);G++)for(var b=0,z=void 0;b<g.removed.length&&(z=g.removed[b]);b++)f.removedNodes.push(z);
G=0;for(g=void 0;G<B.length&&(g=B[G]);G++)for(b=g.index;b<g.index+g.addedCount;b++)f.addedNodes.push(S[b]);this._effectiveNodes=S;S=!1;if(f.addedNodes.length||f.removedNodes.length)S=!0,this.callback.call(this._target,f);return S};
_.e._listenSlots=function(f){for(var S=0;S<f.length;S++){var B=f[S];C_(B)&&B.addEventListener("slotchange",this._boundSchedule)}};
_.e._unlistenSlots=function(f){for(var S=0;S<f.length;S++){var B=f[S];C_(B)&&B.removeEventListener("slotchange",this._boundSchedule)}};var Vr=Element.prototype,nc$=Vr.matches||Vr.matchesSelector||Vr.mozMatchesSelector||Vr.msMatchesSelector||Vr.oMatchesSelector||Vr.webkitMatchesSelector,s4i=function(f,S){return nc$.call(f,S)},p_=function(f){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(f);
this.node=f},CT8;
_.e=p_.prototype;_.e.observeNodes=function(f){return new Ljm(this.node,f)};
_.e.unobserveNodes=function(f){f.disconnect()};
_.e.notifyObserver=function(){};
_.e.deepContains=function(f){if((0,_.JL)(this.node).contains(f))return!0;var S=f;for(f=f.ownerDocument;S&&S!==f&&S!==this.node;)S=(0,_.JL)(S).parentNode||(0,_.JL)(S).host;return S===this.node};
_.e.getOwnerRoot=function(){return(0,_.JL)(this.node).getRootNode()};
_.e.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.JL)(this.node).assignedNodes({flatten:!0}):[]};
_.e.getDestinationInsertionPoints=function(){for(var f=[],S=(0,_.JL)(this.node).assignedSlot;S;)f.push(S),S=(0,_.JL)(S).assignedSlot;return f};
_.e.importNode=function(f,S){return(0,_.JL)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(f,S)};
_.e.getEffectiveChildNodes=function(){return klo(this.node)};
_.e.queryDistributedElements=function(f){for(var S=this.getEffectiveChildNodes(),B=[],G=0,g=S.length,b=void 0;G<g&&(b=S[G]);G++)b.nodeType===Node.ELEMENT_NODE&&s4i(b,f)&&B.push(b);return B};
_.y3.Object.defineProperties(p_.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var f=this.node;return f._activeElement!==void 0?f._activeElement:f.activeElement}}});
var Jo=function(f){this.event=f};
_.y3.Object.defineProperties(Jo.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 D5m=p_;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var ITi=window.ShadyDOM.Wrapper,U57=function(){return ITi.apply(this,arguments)||this};
_.q(U57,ITi);Object.getOwnPropertyNames(p_.prototype).forEach(function(f){f!="activeElement"&&f!="constructor"&&(U57.prototype[f]=p_.prototype[f])});
vVQ(U57.prototype,["classList"]);D5m=U57;Object.defineProperties(Jo.prototype,{localTarget:{get:function(){var f=this.event.currentTarget;f=f&&_.HZ(f).getOwnerRoot();for(var S=this.path,B=0;B<S.length;B++){var G=S[B];if(_.HZ(G).getOwnerRoot()===f)return G}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else P1K(),vVQ(p_.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),KvK();CT8=D5m;_.HZ=function(f){f=f||document;if(f instanceof D5m)return f;if(f instanceof Jo)return f;var S=f.__domApi;S||(f instanceof Event?S=new Jo(f):S=new D5m(f),f.__domApi=S);return S};var pZ8=/:host\(:dir\((ltr|rtl)\)\)/g,A2N=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,Ni6=/:dir\((?:ltr|rtl)\)/,Mem=!(!window.ShadyDOM||!window.ShadyDOM.inUse),NC=[],PG=null,AL="",Zko=cy(function(f){Mem||PG||(AL=document.documentElement.getAttribute("dir"),PG=new MutationObserver(dVx),PG.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var S=WIj(f);f=function(){var B=S.call(this)||this;B.__autoDirOptOut=!1;return B};
_.q(f,S);f._processStyleText=function(B,G){B=S._processStyleText.call(this,B,G);!Mem&&Ni6.test(B)&&(B=this._replaceDirInCssText(B),this.__activateDir=!0);return B};
f._replaceDirInCssText=function(B){B=B.replace(pZ8,':host([dir="$1"])');return B=B.replace(A2N,':host([dir="$2"]) $1')};
f.prototype.ready=function(){S.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
f.prototype.connectedCallback=function(){S.prototype.connectedCallback&&S.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(PG&&PG.takeRecords().length&&dVx(),NC.push(this),this.__autoDirOptOut||this.setAttribute("dir",AL))};
f.prototype.disconnectedCallback=function(){S.prototype.disconnectedCallback&&S.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var B=NC.indexOf(this);B>-1&&NC.splice(B,1)}};
f.__activateDir=!1;return f});var te7=function(f){for(;f;){var S=Object.getOwnPropertyDescriptor(f,"observedAttributes");if(S)return S.get;f=Object.getPrototypeOf(f.prototype).constructor}return function(){return[]}};
cy(function(f){var S=oH(f),B=te7(S);f=function(){return S.call(this)||this};
_.q(f,S);f.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:S.prototype._initializeProperties.call(this)};
f.prototype._enableProperties=function(){this.__isUpgradeDisabled||S.prototype._enableProperties.call(this)};
f.prototype._canApplyPropertyDefault=function(G){return S.prototype._canApplyPropertyDefault.call(this,G)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(G))};
f.prototype.attributeChangedCallback=function(G,g,b,z){G=="disable-upgrade"?this.__isUpgradeDisabled&&b==null&&(S.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.JL)(this).isConnected&&S.prototype.connectedCallback.call(this)):S.prototype.attributeChangedCallback.call(this,G,g,b,z)};
f.prototype.connectedCallback=function(){this.__isUpgradeDisabled||S.prototype.connectedCallback.call(this)};
f.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||S.prototype.disconnectedCallback.call(this)};
_.y3.Object.defineProperties(f,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return B.call(this).concat("disable-upgrade")}}});
return f});var MC=!1,Hy1=[],Zc=[];var YCV=window.ShadyDOM,rpM=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",Oy9):document.readyState==="interactive"||document.readyState==="complete"?Oy9():window.addEventListener("DOMContentLoaded",Oy9);var Lv1=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=""},xVs=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,EVj=/@import[^;]*;/gim,UVT=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,C19=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,pe1=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,ApN=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,DVA=/^@[^\s]*keyframes/,
sY1=/\s+/g;var N5T={};var t3T=Promise.resolve();var uvj=new Set;var aTX=/;\s*/m,y2o=/^\s*(initial)|(inherit)\s*$/,Wj7=/\s*!important/,c2m=function(){this._map={}};
c2m.prototype.set=function(f,S){f=f.trim();this._map[f]={properties:S,dependants:{}}};
c2m.prototype.get=function(f){f=f.trim();return this._map[f]||null};
var lT$=null,vG=function(){this._measureElement=this._currentElement=null;this._map=new c2m};
_.e=vG.prototype;_.e.detectMixin=function(f){f=Fj$.test(f)||TiX.test(f);Fj$.lastIndex=0;TiX.lastIndex=0;return f};
_.e.transformTemplate=function(f,S){if(f._gatheredStyle===void 0){var B=[];for(var G=f.content.querySelectorAll("style"),g=0;g<G.length;g++){var b=G[g];if(b.hasAttribute("shady-unscoped")){if(!$lN){var z=b.textContent;if(!uvj.has(z)){uvj.add(z);var X=document.createElement("style");X.setAttribute("shady-unscoped","");X.textContent=z;document.head.appendChild(X)}b.parentNode.removeChild(b)}}else B.push(b.textContent),b.parentNode.removeChild(b)}(B=B.join("").trim())?(G=document.createElement("style"),
G.textContent=B,f.content.insertBefore(G,f.content.firstChild),B=G):B=null;f._gatheredStyle=B}return(f=f._gatheredStyle)?this.JSC$9224_transformStyle(f,S):null};
_.e.JSC$9224_transformStyle=function(f,S){S=S===void 0?"":S;var B=WvW(f);this.transformRules(B,S);f.textContent=ypj(B);return B};
_.e.transformCustomStyle=function(f){var S=this,B=WvW(f);lpQ(B,function(G){G.selector===":root"&&(G.selector="html");S.transformRule(G)});
f.textContent=ypj(B);return B};
_.e.transformRules=function(f,S){var B=this;this._currentElement=S;lpQ(f,function(G){B.transformRule(G)});
this._currentElement=null};
_.e.transformRule=function(f){f.cssText=fuX(this,f.parsedCssText,f);f.selector===":root"&&(f.selector=":host > *")};
var fuX=function(f,S,B){S=S.replace(TiX,function(G,g,b,z){return f._produceCssProperties(G,g,b,z,B)});
return f._consumeCssProperties(S,B)};
_.e=vG.prototype;_.e._getInitialValueForProperty=function(f){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(f)};
_.e._fallbacksFromPreviousRules=function(f){for(var S=this,B=f;B.parent;)B=B.parent;var G={},g=!1;lpQ(B,function(b){(g=g||b===f)||b.selector===f.selector&&Object.assign(G,S._cssTextToMap(b.parsedCssText))});
return G};
_.e._consumeCssProperties=function(f,S){for(var B;B=Fj$.exec(f);){var G=B[0],g=B[1];B=B.index;var b=B+G.indexOf("@apply"),z=B+G.length;G=f.slice(0,b);f=f.slice(z);b=S?this._fallbacksFromPreviousRules(S):{};Object.assign(b,this._cssTextToMap(G));g=this._atApplyToCssProperties(g,b);f=G+g+f;Fj$.lastIndex=B+g.length}return f};
_.e._atApplyToCssProperties=function(f,S){f=f.replace(aTX,"");var B=[],G=this._map.get(f);G||(this._map.set(f,{}),G=this._map.get(f));if(G){this._currentElement&&(G.dependants[this._currentElement]=!0);var g,b=G.properties;for(g in b){var z=S&&S[g];G=[g,": var(",f,"_-_",g];z&&G.push(",",z.replace(Wj7,""));G.push(")");Wj7.test(b[g])&&G.push(" !important");B.push(G.join(""))}}return B.join("; ")};
_.e._replaceInitialOrInherit=function(f,S){var B=y2o.exec(S);B&&(S=B[1]?this._getInitialValueForProperty(f):"apply-shim-inherit");return S};
_.e._cssTextToMap=function(f,S){S=S===void 0?!1:S;f=f.split(";");for(var B,G,g={},b=0;b<f.length;b++)if(B=f[b])G=B.split(":"),G.length>1&&(B=G[0].trim(),G=G.slice(1).join(":"),S&&(G=this._replaceInitialOrInherit(B,G)),g[B]=G);return g};
_.e._invalidateMixinEntry=function(f){if(lT$)for(var S in f.dependants)S!==this._currentElement&&lT$(S)};
_.e._produceCssProperties=function(f,S,B,G,g){var b=this;B&&fW1(B,function(Q,x){x&&b._map.get(x)&&(G="@apply "+x+";")});
if(!G)return f;var z=this._consumeCssProperties(""+G,g);g=f.slice(0,f.indexOf("--"));var X=z=this._cssTextToMap(z,!0),w=this._map.get(S),F=w&&w.properties;F?X=Object.assign(Object.create(F),z):this._map.set(S,X);var V=[],J,P=!1;for(J in X){var d=z[J];d===void 0&&(d="initial");!F||J in F||(P=!0);V.push(S+"_-_"+J+": "+d)}P&&this._invalidateMixinEntry(w);w&&(w.properties=X);B&&(g=f+";"+g);return g+V.join("; ")+";"};
vG.prototype.detectMixin=vG.prototype.detectMixin;vG.prototype.transformStyle=vG.prototype.JSC$9224_transformStyle;vG.prototype.transformCustomStyle=vG.prototype.transformCustomStyle;vG.prototype.transformRules=vG.prototype.transformRules;vG.prototype.transformRule=vG.prototype.transformRule;vG.prototype.transformTemplate=vG.prototype.transformTemplate;vG.prototype._separator="_-_";Object.defineProperty(vG.prototype,"invalidCallback",{get:function(){return lT$},
set:function(f){lT$=f}});var Ks=new vG,oT$=function(){this.customStyleInterface=null;Ks.invalidCallback=M3K},d1=function(f){!f.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(f.customStyleInterface=window.ShadyCSS.CustomStyleInterface,f.customStyleInterface.transformCallback=function(S){Ks.transformCustomStyle(S)},f.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){f.customStyleInterface.enqueued&&f.flushCustomStyles()})})};
_.e=oT$.prototype;_.e.prepareTemplate=function(f,S){d1(this);ojV(f)===""&&(N5T[S]=f,S=Ks.transformTemplate(f,S),f._styleAst=S)};
_.e.flushCustomStyles=function(){d1(this);if(this.customStyleInterface){var f=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var S=0;S<f.length;S++){var B=this.customStyleInterface.getStyleForCustomStyle(f[S]);B&&Ks.transformCustomStyle(B)}this.customStyleInterface.enqueued=!1}}};
_.e.styleSubtree=function(f,S){d1(this);S&&Pxx(f,S);if(f.shadowRoot)for(this.styleElement(f),f=f.shadowRoot.children||f.shadowRoot.childNodes,S=0;S<f.length;S++)this.styleSubtree(f[S]);else for(f=f.children||f.childNodes,S=0;S<f.length;S++)this.styleSubtree(f[S])};
_.e.styleElement=function(f){d1(this);var S=f.localName,B;S?S.indexOf("-")>-1?B=S:B=f.getAttribute&&f.getAttribute("is")||"":B=f.is;S=N5T[B];if(!(S&&ojV(S)!==""||!S||Zyx(S))){if(Zyx(S)||S._applyShimValidatingVersion!==S._applyShimNextVersion)this.prepareTemplate(S,B),u8j(S);if(f=f.shadowRoot)if(f=f.querySelector("style"))f.__cssRules=S._styleAst,f.textContent=ypj(S._styleAst)}};
_.e.styleDocument=function(f){d1(this);this.styleSubtree(document.body,f)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var i8=new oT$,SL$=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(f,S){i8.flushCustomStyles();i8.prepareTemplate(f,S)},
prepareTemplateStyles:function(f,S,B){window.ShadyCSS.prepareTemplate(f,S,B)},
prepareTemplateDom:function(){},
styleSubtree:function(f,S){i8.flushCustomStyles();i8.styleSubtree(f,S)},
styleElement:function(f){i8.flushCustomStyles();i8.styleElement(f)},
styleDocument:function(f){i8.flushCustomStyles();i8.styleDocument(f)},
getComputedStyleValue:function(f,S){return vKj(f,S)},
flushCustomStyles:function(){i8.flushCustomStyles()},
nativeCss:apK,nativeShadow:$lN,cssBuild:af,disableRuntime:PTm};SL$&&(window.ShadyCSS.CustomStyleInterface=SL$)}window.ShadyCSS.ApplyShim=Ks;var BhL;BhL=window.ShadyCSS;_.HG=cy(function(f){f=Q4N(oH(f));var S=bk1?f:Zko(f),B=te7(S),G={x:"pan-x",y:"pan-y",none:"none",all:"auto"};f=function(){return S.call(this)||this};
_.q(f,S);f.prototype.created=function(){};
f.prototype.__attributeReaction=function(g,b,z){(this.__dataAttributes&&this.__dataAttributes[g]||g==="disable-upgrade")&&this.attributeChangedCallback(g,b,z,null)};
f.prototype.setAttribute=function(g,b){if(k$o&&!this._legacyForceObservedAttributes){var z=this.getAttribute(g);S.prototype.setAttribute.call(this,g,b);this.__attributeReaction(g,z,String(b))}else S.prototype.setAttribute.call(this,g,b)};
f.prototype.removeAttribute=function(g){if(k$o&&!this._legacyForceObservedAttributes){var b=this.getAttribute(g);S.prototype.removeAttribute.call(this,g);this.__attributeReaction(g,b,null)}else S.prototype.removeAttribute.call(this,g)};
f.prototype._enableProperties=function(){this.__isUpgradeDisabled||S.prototype._enableProperties.call(this)};
f.prototype._canApplyPropertyDefault=function(g){return S.prototype._canApplyPropertyDefault.call(this,g)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(g))};
f.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(S.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
f.prototype.attached=function(){};
f.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(S.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
f.prototype.detached=function(){};
f.prototype.attributeChangedCallback=function(g,b,z,X){b!==z&&(g=="disable-upgrade"?this.__isUpgradeDisabled&&z==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.JL)(this).isConnected&&this.connectedCallback()):(S.prototype.attributeChangedCallback.call(this,g,b,z,X),this.attributeChanged(g,b,z)))};
f.prototype.attributeChanged=function(){};
f.prototype._initializeProperties=function(){if(k2&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var g=Object.getPrototypeOf(this);g.hasOwnProperty("__hasRegisterFinished")||(this._registered(),g.__hasRegisterFinished=!0);S.prototype._initializeProperties.call(this);this.root=this;this.created();k$o&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
f.prototype._takeAttributes=function(){for(var g=this.attributes,b=0,z=g.length;b<z;b++){var X=g[b];this.__attributeReaction(X.name,null,X.value)}};
f.prototype._registered=function(){};
f.prototype.ready=function(){this._ensureAttributes();S.prototype.ready.call(this)};
f.prototype._ensureAttributes=function(){};
f.prototype._applyListeners=function(){};
f.prototype.serialize=function(g){return this._serializeValue(g)};
f.prototype.deserialize=function(g,b){return this._deserializeValue(g,b)};
f.prototype.reflectPropertyToAttribute=function(g,b,z){this._propertyToAttribute(g,b,z)};
f.prototype.serializeValueToAttribute=function(g,b,z){this._valueToNodeAttribute(z||this,g,b)};
f.prototype.extend=function(g,b){if(!g||!b)return g||b;for(var z=Object.getOwnPropertyNames(b),X=0,w=void 0;X<z.length&&(w=z[X]);X++){var F=Object.getOwnPropertyDescriptor(b,w);F&&Object.defineProperty(g,w,F)}return g};
f.prototype.mixin=function(g,b){for(var z in b)g[z]=b[z];return g};
f.prototype.chainObject=function(g,b){g&&b&&g!==b&&(g.__proto__=b);return g};
f.prototype.instanceTemplate=function(g){g=this.constructor._contentForTemplate(g);return document.importNode(g,!0)};
f.prototype.fire=function(g,b,z){z=z||{};b=b===null||b===void 0?{}:b;g=new Event(g,{bubbles:z.bubbles===void 0?!0:z.bubbles,cancelable:!!z.cancelable,composed:z.composed===void 0?!0:z.composed});g.detail=b;(0,_.JL)(z.node||this).dispatchEvent(g);return g};
f.prototype.listen=function(g,b,z){g=g||this;var X=this.__boundListeners||(this.__boundListeners=new WeakMap),w=X.get(g);w||(w={},X.set(g,w));X=b+z;w[X]||(w[X]=this._addMethodEventListenerToNode(g,b,z,this))};
f.prototype.unlisten=function(g,b,z){g=g||this;var X=this.__boundListeners&&this.__boundListeners.get(g);z=b+z;var w=X&&X[z];w&&(this._removeEventListenerFromNode(g,b,w),X[z]=null)};
f.prototype.setScrollDirection=function(g,b){_.x2(b||this,G[g]||"auto")};
f.prototype.$$=function(g){return this.root.querySelector(g)};
f.prototype.distributeContent=function(){var g=_.HZ(this);window.ShadyDOM&&g.shadowRoot&&ShadyDOM.flush()};
f.prototype.getEffectiveChildNodes=function(){return _.HZ(this).getEffectiveChildNodes()};
f.prototype.queryDistributedElements=function(g){return _.HZ(this).queryDistributedElements(g)};
f.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(g){return g.nodeType===Node.ELEMENT_NODE})};
f.prototype.getEffectiveTextContent=function(){for(var g=this.getEffectiveChildNodes(),b=[],z=0,X;X=g[z];z++)X.nodeType!==Node.COMMENT_NODE&&b.push(X.textContent);return b.join("")};
f.prototype.queryEffectiveChildren=function(g){return(g=this.queryDistributedElements(g))&&g[0]};
f.prototype.queryAllEffectiveChildren=function(g){return this.queryDistributedElements(g)};
f.prototype.getContentChildNodes=function(g){return(g=this.root.querySelector(g||"slot"))?_.HZ(g).getDistributedNodes():[]};
f.prototype.getContentChildren=function(g){return this.getContentChildNodes(g).filter(function(b){return b.nodeType===Node.ELEMENT_NODE})};
f.prototype.isLightDescendant=function(g){return this!==g&&(0,_.JL)(this).contains(g)&&(0,_.JL)(this).getRootNode()===(0,_.JL)(g).getRootNode()};
f.prototype.isLocalDescendant=function(g){return this.root===(0,_.JL)(g).getRootNode()};
f.prototype.scopeSubtree=function(g,b){return jYN(g,b===void 0?!1:b)};
f.prototype.getComputedStyleValue=function(g){return BhL.getComputedStyleValue(this,g)};
f.prototype.debounce=function(g,b,z){this._debouncers=this._debouncers||{};return this._debouncers[g]=_.zw(this._debouncers[g],z>0?_.Wy.after(z):El,b.bind(this))};
f.prototype.isDebouncerActive=function(g){this._debouncers=this._debouncers||{};g=this._debouncers[g];return!(!g||!g.isActive())};
f.prototype.flushDebouncer=function(g){this._debouncers=this._debouncers||{};(g=this._debouncers[g])&&g.flush()};
f.prototype.cancelDebouncer=function(g){this._debouncers=this._debouncers||{};(g=this._debouncers[g])&&g.cancel()};
f.prototype.async=function(g,b){return b>0?_.Wy.run(g.bind(this),b):~El.run(g.bind(this))};
f.prototype.cancelAsync=function(g){g<0?El.cancel(~g):_.Wy.cancel(g)};
f.prototype.create=function(g,b){g=document.createElement(g);if(b)if(g.setProperties)g.setProperties(b);else for(var z in b)g[z]=b[z];return g};
f.prototype.elementMatches=function(g,b){return s4i(b||this,g)};
f.prototype.toggleAttribute=function(g,b){var z=this;arguments.length===3&&(z=arguments[2]);arguments.length==1&&(b=!z.hasAttribute(g));if(b)return(0,_.JL)(z).setAttribute(g,""),!0;(0,_.JL)(z).removeAttribute(g);return!1};
f.prototype.toggleClass=function(g,b,z){z=z||this;arguments.length==1&&(b=!z.classList.contains(g));b?z.classList.add(g):z.classList.remove(g)};
f.prototype.transform=function(g,b){b=b||this;b.style.webkitTransform=g;b.style.transform=g};
f.prototype.translate3d=function(g,b,z,X){this.transform("translate3d("+g+","+b+","+z+")",X||this)};
f.prototype.arrayDelete=function(g,b){if(Array.isArray(g)){if(b=g.indexOf(b),b>=0)return g.splice(b,1)}else if(b=T$(this,g).indexOf(b),b>=0)return this.splice(g,b,1);return null};
f.prototype._logger=function(g,b){Array.isArray(b)&&b.length===1&&Array.isArray(b[0])&&(b=b[0]);switch(g){case "log":case "warn":case "error":console[g].apply(console,_.$d(b))}};
f.prototype._log=function(){this._logger("log",_.qb.apply(0,arguments))};
f.prototype._warn=function(){this._logger("warn",_.qb.apply(0,arguments))};
f.prototype._error=function(){this._logger("error",_.qb.apply(0,arguments))};
f.prototype._logf=function(g){return["[%s::%s]",this.is,g].concat(_.$d(_.qb.apply(1,arguments)))};
_.y3.Object.defineProperties(f.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var g=(0,_.JL)(this).getRootNode();return g instanceof DocumentFragment?g.host:g}}});
_.y3.Object.defineProperties(f,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return k$o&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],YoT(this.prototype)),this.__observedAttributes):B.call(this).concat("disable-upgrade")}}});
f.prototype.is="";return f});Polymer.FlattenedNodesObserver=Ljm;Polymer.DomApi=CT8;Polymer.EventApi=Jo;Polymer.dom=_.HZ;Polymer.dom.matchesSelector=s4i;Polymer.dom.flush=_.Tw;Polymer.dom.addDebouncer=_.RH;Polymer.DirMixin=Zko;Polymer.RenderStatus={beforeNextRender:_.QY1,afterNextRender:_.ui,flush:function(){for(;Hy1.length||Zc.length;)iyA(Hy1),iyA(Zc);MC=!1}};Polymer.LegacyElementMixin=_.HG;var GZm;GZm=w1._mutablePropertyChange;var gTg={properties:{mutableData:Boolean},_shouldPropertyChange:function(f,S,B){return GZm(this,f,S,B,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(f,S,B){return GZm(this,f,S,B,!0)}};
Polymer.OptionalMutableDataBehavior=gTg;var SyW={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},bzM={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},eF1=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},bzM),eLL=(0,_.HG)(HTMLElement),Crj=function(f,S){f||console.warn("Polymer.Class requires `info` argument");S=S?S(eLL):eLL;S=m_s(f,S,f.behaviors);S.is=S.prototype.is=
f.is;return S};Polymer.Class=Crj;Polymer.mixinBehaviors=function(f,S){return m_s({},(0,_.HG)(S),f)};
Polymer.GenerateClassFromInfo=m_s;_.OW=function(f){var S=typeof f==="function"?f:_.OW.Class(f);f._legacyForceObservedAttributes&&(S.prototype._legacyForceObservedAttributes=f._legacyForceObservedAttributes);customElements.define(S.is,S);return S};
_.OW.Class=Crj;Polymer._polymerFn=_.OW;var b21=window.onLegacyPolymerFunctionDefinedCallback;b21&&b21();var AgT={templatize:function(f,S){this._templatizerTemplate=f;this.ctor=Dc(f,this,{mutableData:!!S,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(f){return new this.ctor(f)},
modelForElement:function(f){return Jp1(this._templatizerTemplate,f)}};Polymer.Templatizer=AgT;_.qI=(0,_.HG)(HTMLElement).prototype;Polymer.Base=_.qI;var RF1=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.WS=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.q(_.WS,PolymerFakeBaseClass);var cS=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.q(cS,PolymerFakeBaseClass);var XYG=Symbol("Nd"),vjV=[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 mE8=mE8||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},zL7;(function(f){function S(M,a,l){var mx=t.get(M);if(!mx){if(!l)return;mx=new U;t.set(M,mx)}M=mx.get(a);if(!M){if(!l)return;M=new U;mx.set(a,M)}return M}
function B(M,a,l){if(G(M,a,l))return!0;a=P(a);return a!==null?B(M,a,l):!1}
function G(M,a,l){a=S(a,l,!1);return a===void 0?!1:!!a.has(M)}
function g(M,a,l){if(G(M,a,l))return b(M,a,l);a=P(a);if(a!==null)return g(M,a,l)}
function b(M,a,l){a=S(a,l,!1);if(a!==void 0)return a.get(M)}
function z(M,a){var l=X(M,a);M=P(M);if(M===null)return l;var mx=z(M,a);if(mx.length<=0)return l;if(l.length<=0)return mx;a=new A;M=[];l=_.m(l);for(var zj=l.next();!zj.done;zj=l.next())zj=zj.value,a.has(zj)||(a.add(zj),M.push(zj));l=_.m(mx);for(mx=l.next();!mx.done;mx=l.next())mx=mx.value,a.has(mx)||(a.add(mx),M.push(mx));return M}
function X(M,a){M=S(M,a,!1);var l=[];M&&M.forEach(function(mx,zj){return l.push(zj)});
return l}
function w(M){return M===void 0}
function F(M){return typeof M==="object"?M!==null:typeof M==="function"}
function V(M){return typeof M==="function"}
function J(M){return typeof M==="symbol"?M:String(M)}
function P(M){var a=Object.getPrototypeOf(M);if(typeof M!=="function"||M===E||a!==E)return a;var l=Object.getPrototypeOf(M.prototype);if(l==null||l===Object.prototype)return a;l=l.constructor;return typeof l!=="function"||l===M?a:l}
function d(){function M(){this._keys=[];this._values=[];this._cache=a}
var a={};M.prototype={get size(){return this._keys.length},has:function(l){return l===this._cache?!0:this._find(l)>=0?(this._cache=l,!0):!1},
get:function(l){var mx=this._find(l);if(mx>=0)return this._cache=l,this._values[mx]},
set:function(l,mx){this.delete(l);this._keys.push(l);this._values.push(mx);this._cache=l;return this},
delete:function(l){l=this._find(l);return l>=0?(this._keys.splice(l,1),this._values.splice(l,1),this._cache=a,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=a},
forEach:function(l){for(var mx=this.size,zj=0;zj<mx;++zj){var VN=this._keys[zj],$Q=this._values[zj];this._cache=VN;l.call(this,$Q,VN,this)}},
_find:function(l){for(var mx=this._keys,zj=mx.length,VN=0;VN<zj;++VN)if(mx[VN]===l)return VN;return-1}};
return M}
function Q(){function M(){this._map=new U}
M.prototype={get size(){return this._map.length},has:function(a){return this._map.has(a)},
add:function(a){this._map.set(a,a);return this},
delete:function(a){return this._map.delete(a)},
clear:function(){this._map.clear()},
forEach:function(a,l){this._map.forEach(a,l)}};
return M}
function x(){function M(){this._key=l()}
function a(rW,MA){for(var UV=0;UV<MA;++UV)rW[UV]=Math.random()*255|0}
function l(){do{if(zj)var rW=zj.randomBytes(16);else typeof Uint8Array==="function"?(rW=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(rW):a(rW,16)):(rW=Array(16),a(rW,16));rW[6]=rW[6]&79|64;rW[8]=rW[8]&191|128;for(var MA="",UV=0;UV<16;++UV){var W7=rW[UV];if(UV===4||UV===6||UV===8)MA+="-";W7<16&&(MA+="0");MA+=W7.toString(16).toLowerCase()}rW="@@WeakMap@@"+MA}while(VN.call($Q,rW));$Q[rW]=!0;return rW}
function mx(rW,MA){if(!VN.call(rW,OV)){if(!MA)return;Object.defineProperty(rW,OV,{value:Object.create(null)})}return rW[OV]}
var zj=typeof global!=="undefined"&&typeof mE8==="object"&&typeof require==="function"&&require("crypto"),VN=Object.prototype.hasOwnProperty,$Q={},OV=l();M.prototype={has:function(rW){return(rW=mx(rW,!1))?this._key in rW:!1},
get:function(rW){if(rW=mx(rW,!1))return rW[this._key]},
set:function(rW,MA){mx(rW,!0)[this._key]=MA;return this},
delete:function(rW){return(rW=mx(rW,!1))&&this._key in rW?delete rW[this._key]:!1},
clear:function(){this._key=l()}};
return M}
var E=Object.getPrototypeOf(Function),U=typeof Map==="function"?Map:d(),A=typeof Set==="function"?Set:Q(),t=new (typeof WeakMap==="function"?WeakMap:x());f.decorate=function(M,a,l,mx){if(w(mx)){if(w(l)){if(!Array.isArray(M))throw new TypeError;if(!V(a))throw new TypeError;for(l=M.length-1;l>=0;--l)if(mx=(0,M[l])(a),!w(mx)){if(!V(mx))throw new TypeError;a=mx}return a}if(!Array.isArray(M))throw new TypeError;if(!F(a))throw new TypeError;l=J(l);for(mx=M.length-1;mx>=0;--mx)(0,M[mx])(a,l)}else{if(Array.isArray(M))if(F(a)){if(w(l))throw new TypeError;
if(!F(mx))throw new TypeError;}else throw new TypeError;else throw new TypeError;l=J(l);for(var zj=M.length-1;zj>=0;--zj){var VN=(0,M[zj])(a,l,mx);if(!w(VN)){if(!F(VN))throw new TypeError;mx=VN}}return mx}};
f.metadata=function(M,a){return function(l,mx){if(w(mx)){if(!V(l))throw new TypeError;S(l,void 0,!0).set(M,a)}else{if(!F(l))throw new TypeError;mx=J(mx);S(l,mx,!0).set(M,a)}}};
f.defineMetadata=function(M,a){var l;if(F(a))w(l)||(l=J(l));else throw new TypeError;S(a,l,!0).set("parameters",M)};
f.hasMetadata=function(M,a,l){if(F(a))w(l)||(l=J(l));else throw new TypeError;return B(M,a,l)};
f.hasOwnMetadata=function(M,a,l){if(F(a))w(l)||(l=J(l));else throw new TypeError;return G(M,a,l)};
f.getMetadata=function(M,a,l){if(F(a))w(l)||(l=J(l));else throw new TypeError;return g(M,a,l)};
f.getOwnMetadata=function(M,a,l){if(F(a))w(l)||(l=J(l));else throw new TypeError;return b(M,a,l)};
f.getMetadataKeys=function(M,a){if(F(M))w(a)||(a=J(a));else throw new TypeError;return z(M,a)};
f.getOwnMetadataKeys=function(M,a){if(F(M))w(a)||(a=J(a));else throw new TypeError;return X(M,a)};
f.deleteMetadata=function(M,a,l){if(F(a))w(l)||(l=J(l));else throw new TypeError;var mx=S(a,l,!1);if(!w(mx)){if(!mx.delete(M))return!1;if(mx.size>0)return!0;M=t.get(a);M.delete(l);if(M.size>0)return!0;t.delete(a);return!0}};
(function(M){if(typeof M.Reflect!=="undefined"){if(M.Reflect!==f)for(var a in f)M.Reflect[a]=f[a]}else M.Reflect=f})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(zL7||(zL7={}));var RLi=function(){this.aborted=!1;this.onabort=null;this.target=document.createDocumentFragment?document.createDocumentFragment():document.createElement("div")};
RLi.prototype.addEventListener=function(f,S,B){this.target.addEventListener(f,S,B)};
RLi.prototype.removeEventListener=function(f,S,B){this.target.removeEventListener(f,S,B)};
RLi.prototype.dispatchEvent=function(f){if(this.onabort&&f.type==="abort")this.onabort(f);return this.target.dispatchEvent(f)};var XKX=function(){this.signal=new RLi};
XKX.prototype.abort=function(){if(!this.signal.aborted){this.signal.aborted=!0;var f=document.createEvent("Event");f.initEvent("abort",!1,!1);this.signal.dispatchEvent(f)}};var $fs=self;var wK$=[0,_.am,_.W_,_.am];var hL7=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(hL7,_.s7);var Th1=_.WQ(hL7,[0,_.cdK,_.c_,wK$,_.W_,_.fb]);_.Rm(_.li,_.qR);_.e=_.li.prototype;_.e.start=function(){this.stop();this.usingListeners_=!1;var f=FU$(this),S=Vwj(this);f&&!S&&this.JSC$9273_win_.mozRequestAnimationFrame?(this.JSC$9273_id_=_.jP(this.JSC$9273_win_,"MozBeforePaint",this.callback_),this.JSC$9273_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$9273_id_=f&&S?f.call(this.JSC$9273_win_,this.callback_):this.JSC$9273_win_.setTimeout(z1i(this.callback_),20)};
_.e.stop=function(){if(this.isActive()){var f=FU$(this),S=Vwj(this);f&&!S&&this.JSC$9273_win_.mozRequestAnimationFrame?QU(this.JSC$9273_id_):f&&S?S.call(this.JSC$9273_win_,this.JSC$9273_id_):this.JSC$9273_win_.clearTimeout(this.JSC$9273_id_)}this.JSC$9273_id_=null};
_.e.fire=function(){this.stop();this.JSC$9275_doAction_()};
_.e.isActive=function(){return this.JSC$9273_id_!=null};
_.e.JSC$9275_doAction_=function(){this.usingListeners_&&this.JSC$9273_id_&&QU(this.JSC$9273_id_);this.JSC$9273_id_=null;this.JSC$9273_listener_.call(this.handler_,_.zd())};
_.e.disposeInternal=function(){this.stop();_.li.superClass_.disposeInternal.call(this)};
var FU$=function(f){f=f.JSC$9273_win_;return f.requestAnimationFrame||f.webkitRequestAnimationFrame||f.mozRequestAnimationFrame||f.oRequestAnimationFrame||f.msRequestAnimationFrame||null},Vwj=function(f){f=f.JSC$9273_win_;
return f.cancelAnimationFrame||f.cancelRequestAnimationFrame||f.webkitCancelRequestAnimationFrame||f.mozCancelRequestAnimationFrame||f.oCancelRequestAnimationFrame||f.msCancelRequestAnimationFrame||null};_.S3=function(f,S,B){_.qR.call(this);this.JSC$9276_listener_=B!=null?f.bind(B):f;this.JSC$9276_interval_=S;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$9276_timer_=null};
_.q(_.S3,_.qR);_.e=_.S3.prototype;_.e.fire=function(f){this.args_=arguments;this.JSC$9276_timer_||this.pauseCount_?this.shouldFire_=!0:Jfo(this)};
_.e.stop=function(){this.JSC$9276_timer_&&(_.S1.clearTimeout(this.JSC$9276_timer_),this.JSC$9276_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.e.pause=function(){this.pauseCount_++};
_.e.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$9276_timer_||(this.shouldFire_=!1,Jfo(this))};
_.e.disposeInternal=function(){_.qR.prototype.disposeInternal.call(this);this.stop()};
var Jfo=function(f){f.JSC$9276_timer_=OT(function(){f.JSC$9276_timer_=null;f.shouldFire_&&!f.pauseCount_&&(f.shouldFire_=!1,Jfo(f))},f.JSC$9276_interval_);
var S=f.args_;f.args_=null;f.JSC$9276_listener_.apply(null,S)};var PWv=function(f,S){this.childIterator_=f[_.S1.Symbol.iterator]();this.mapFn_=S};
PWv.prototype[Symbol.iterator]=function(){return this};
PWv.prototype.next=function(){var f=this.childIterator_.next();return{value:f.done?void 0:this.mapFn_.call(void 0,f.value),done:f.done}};
var vT7=function(f,S){return new PWv(f,S)};var KUg={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 BaA=function(f){var S=dEX(f);if(!S)throw Error("Rd`"+f);return S},dEX=function(f){var S={};
f=String(f);var B=f.charAt(0)=="#"?f:"#"+f;if(i2L.test(B))return S.hex=WDT(B),S.type="hex",S;B=bxx(f);return B.length?(S.hex=AWG(B[0],B[1],B[2]),S.type="rgb",S):KUg&&(f=KUg[f.toLowerCase()])?(S.hex=f,S.type="named",S):null},H2N=/#(.)(.)(.)/,WDT=function(f){if(!i2L.test(f))throw Error("Td`"+f);
f.length==4&&(f=f.replace(H2N,"#$1$1$2$2$3$3"));return f.toLowerCase()},GHM=function(f){f=WDT(f);
f=parseInt(f.slice(1),16);return[f>>16,f>>8&255,f&255]},AWG=function(f,S,B){f=Number(f);
S=Number(S);B=Number(B);if(f!=(f&255)||S!=(S&255)||B!=(B&255))throw Error("Ud`"+f+"`"+S+"`"+B);S=f<<16|S<<8|B;return f<16?"#"+(16777216|S).toString(16).slice(1):"#"+S.toString(16)},i2L=/^#(?:[0-9a-f]{3}){1,2}$/i,qL8=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,bxx=function(f){var S=f.match(qL8);
if(S){f=Number(S[1]);var B=Number(S[2]);S=Number(S[3]);if(f>=0&&f<=255&&B>=0&&B<=255&&S>=0&&S<=255)return[f,B,S]}return[]};var $Ei={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},OC=$Ei;OC=$Ei;var sE9,QD6,YL$;sE9=function(f,S){switch(S){case 1:return f%4!=0||f%100==0&&f%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
QD6=function(f,S,B,G,g){f=new Date(f,S,B);g=g||0;return f.valueOf()+(((G!==void 0?G:3)-g+7)%7-((f.getDay()+6)%7-g+7)%7)*864E5};
_.$R=function(f,S,B){typeof f==="number"?(this.date=YL$(f,S||0,B||1),rfm(this,B||1)):_.og(f)?(this.date=YL$(f.getFullYear(),f.getMonth(),f.getDate()),rfm(this,f.getDate())):(this.date=new Date(_.zd()),f=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),rfm(this,f))};
YL$=function(f,S,B){S=new Date(f,S,B);f>=0&&f<100&&S.setFullYear(S.getFullYear()-1900);return S};
_.e=_.$R.prototype;_.e.firstDayOfWeek_=OC.FIRSTDAYOFWEEK;_.e.firstWeekCutOffDay_=OC.FIRSTWEEKCUTOFFDAY;_.e.clone=function(){var f=new _.$R(this.date);f.firstDayOfWeek_=this.firstDayOfWeek_;f.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return f};
_.e.getFullYear=function(){return this.date.getFullYear()};
_.e.getYear=function(){return this.getFullYear()};
_.e.getMonth=function(){return this.date.getMonth()};
_.e.getDate=function(){return this.date.getDate()};
_.e.getTime=function(){return this.date.getTime()};
_.e.getDay=function(){return this.date.getDay()};
_.e.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.e.getUTCMonth=function(){return this.date.getUTCMonth()};
_.e.getUTCDate=function(){return this.date.getUTCDate()};
_.e.getUTCDay=function(){return this.date.getDay()};
_.e.getUTCHours=function(){return this.date.getUTCHours()};
_.e.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.e.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.e.set=function(f){this.date=new Date(f.getFullYear(),f.getMonth(),f.getDate())};
_.e.setFullYear=function(f){this.date.setFullYear(f)};
_.e.setYear=function(f){this.setFullYear(f)};
_.e.setMonth=function(f){this.date.setMonth(f)};
_.e.setDate=function(f){this.date.setDate(f)};
_.e.setTime=function(f){this.date.setTime(f)};
_.e.setUTCFullYear=function(f){this.date.setUTCFullYear(f)};
_.e.setUTCMonth=function(f){this.date.setUTCMonth(f)};
_.e.setUTCDate=function(f){this.date.setUTCDate(f)};
_.e.add=function(f){if(f.years||f.months){var S=this.getMonth()+f.months+f.years*12,B=this.getYear()+Math.floor(S/12);S%=12;S<0&&(S+=12);var G=Math.min(sE9(B,S),this.getDate());this.setDate(1);this.setFullYear(B);this.setMonth(S);this.setDate(G)}f.days&&(B=this.getYear(),S=B>=0&&B<=99?-1900:0,f=new Date((new Date(B,this.getMonth(),this.getDate(),12)).getTime()+f.days*864E5),this.setDate(1),this.setFullYear(f.getFullYear()+S),this.setMonth(f.getMonth()),this.setDate(f.getDate()),rfm(this,f.getDate()))};
_.e.JSC$9289_toIsoString=function(f){var S=this.getFullYear(),B=S<0?"-":S>=1E4?"+":"";return[B+_.es(Math.abs(S),B?6:4),_.es(this.getMonth()+1,2),_.es(this.getDate(),2)].join(f?"-":"")};
_.e.equals=function(f){return!(!f||this.getYear()!=f.getYear()||this.getMonth()!=f.getMonth()||this.getDate()!=f.getDate())};
_.e.toString=function(){return this.JSC$9289_toIsoString()};
var rfm=function(f,S){f.getDate()!=S&&f.date.setUTCHours(f.date.getUTCHours()+(f.getDate()<S?1:-1))};
_.$R.prototype.valueOf=function(){return this.date.valueOf()};var YR=function(f,S,B,G,g){this.reversed=!!S;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!B;f&&Qr(this,f,G);this.depth=g!=void 0?g:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.Rm(YR,mn);var Qr=function(f,S,B,G){if(f.node=S)f.tagType=typeof B==="number"?B:f.node.nodeType!=1?0:f.reversed?-1:1;typeof G==="number"&&(f.depth=G)};
_.e=YR.prototype;_.e.JSC$9304_copyFrom=function(f){this.node=f.node;this.tagType=f.tagType;this.depth=f.depth;this.reversed=f.reversed;this.constrained=f.constrained};
_.e.clone=function(){return new YR(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.e.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return z6;var f=this.node;var S=this.reversed?-1:1;if(this.tagType==S){var B=this.reversed?f.lastChild:f.firstChild;B?Qr(this,B):Qr(this,f,S*-1)}else(B=this.reversed?f.previousSibling:f.nextSibling)?Qr(this,B):Qr(this,f.parentNode,S*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(f=this.node)?RN(f):z6};
_.e.equals=function(f){return f.node==this.node&&(!this.node||f.tagType==this.tagType)};
_.e.splice=function(f){var S=this.node,B=this.reversed?1:-1;this.tagType==B&&(this.tagType=B*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;YR.prototype.next.call(this);this.reversed=!this.reversed;B=_.W9(arguments[0])?arguments[0]:arguments;for(var G=B.length-1;G>=0;G--)_.kU(B[G],S);_.Pv(S)};var jDX=function(){},r1=function(f){for(var S=[],B=f.getTextRangeCount(),G=0;G<B;G++)S.push(f.getTextRange(G));
return S};
jDX.prototype.isReversed=function(){return!1};
jDX.prototype.getWindow=function(){return jr(_.OI(this.JSC$9306_getStartNode()))};
var O2i=function(f,S){YR.call(this,f,S,!0)};
_.Rm(O2i,YR);var jb=function(f,S,B,G,g){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!g;if(f){this.startNode_=f;this.startOffset_=S;this.endNode_=B;this.endOffset_=G;if(f.nodeType==1&&f.tagName!="BR")if(f=f.childNodes,S=f[S])this.startNode_=S,this.startOffset_=0;else{f.length&&(this.startNode_=_.sV(f));var b=!0}B.nodeType==1&&((this.endNode_=B.childNodes[G])?this.endOffset_=0:this.endNode_=B)}YR.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);b&&this.next()};
_.Rm(jb,O2i);_.e=jb.prototype;_.e.JSC$9312_getStartNode=function(){return this.startNode_};
_.e.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)};
_.e.next=function(){return this.isLast()?z6:jb.superClass_.next.call(this)};
_.e.JSC$9304_copyFrom=function(f){this.startNode_=f.startNode_;this.endNode_=f.endNode_;this.startOffset_=f.startOffset_;this.endOffset_=f.endOffset_;this.isReversed_=f.isReversed_;jb.superClass_.JSC$9304_copyFrom.call(this,f)};
_.e.clone=function(){var f=new jb(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);f.JSC$9304_copyFrom(this);return f};var xE8=function(){};
xE8.prototype.__iterator__=function(){return new jb(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Oe=function(f){this.range_=f};
_.Rm(Oe,xE8);var ET$=function(f){var S=_.OI(f).createRange();if(f.nodeType==3)S.setStart(f,0),S.setEnd(f,f.length);else if(xU(f)||f.nodeType==3){for(var B,G=f;(B=G.firstChild)&&(xU(B)||B.nodeType==3);)G=B;S.setStart(G,0);for(G=f;(B=G.lastChild)&&(xU(B)||B.nodeType==3);)G=B;S.setEnd(G,G.nodeType==1?G.childNodes.length:G.length)}else B=f.parentNode,f=Array.prototype.indexOf.call(B.childNodes,f),S.setStart(B,f),S.setEnd(B,f+1);return S},LUN=function(f,S,B,G){var g=_.OI(f).createRange();
g.setStart(f,S);g.setEnd(B,G);return g};
_.e=Oe.prototype;_.e.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.e.getContainer=function(){return this.range_.commonAncestorContainer};
_.e.compareBrowserRangeEndpoints=function(f,S,B){return this.range_.compareBoundaryPoints(B==1?S==1?_.S1.Range.START_TO_START:_.S1.Range.START_TO_END:S==1?_.S1.Range.END_TO_START:_.S1.Range.END_TO_END,f)};
_.e.isCollapsed=function(){return this.range_.collapsed};
_.e.select=function(f){this.selectInternal(jr(_.OI(this.range_.startContainer)).getSelection(),f)};
_.e.selectInternal=function(f){f.removeAllRanges();f.addRange(this.range_)};
_.e.insertNode=function(f,S){var B=this.range_.cloneRange();B.collapse(S);B.insertNode(f);B.detach();return f};
_.e.collapse=function(f){this.range_.collapse(f)};_.Rm(fk,Oe);fk.prototype.selectInternal=function(f,S){!S||this.isCollapsed()?fk.superClass_.selectInternal.call(this,f,S):(f.collapse(this.range_.endContainer,this.range_.endOffset),f.extend(this.range_.startContainer,this.range_.startOffset))};_.Rm(o4,Oe);o4.prototype.compareBrowserRangeEndpoints=function(f,S,B){return o4.superClass_.compareBrowserRangeEndpoints.call(this,f,S,B)};
o4.prototype.selectInternal=function(f,S){S?f.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):f.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var kZ$=function(f){return _.V9?new o4(f):_.Fx?new fk(f):new Oe(f)};var xR=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},nT8;
_.Rm(xR,jDX);nT8=function(f,S){var B=new xR;B.browserRangeWrapper_=f;B.isReversed_=!!S;return B};
_.sD1=function(f){f=_.V9?new o4(ET$(f)):_.Fx?new fk(ET$(f)):new Oe(ET$(f));return nT8(f)};
_.Ee=function(f,S,B,G){var g=new xR;g.isReversed_=DEm(f,S,B,G);if(_.aJ(f)&&!xU(f)){var b=f.parentNode;S=Array.prototype.indexOf.call(b.childNodes,f);f=b}_.aJ(B)&&!xU(B)&&(b=B.parentNode,G=Array.prototype.indexOf.call(b.childNodes,B),B=b);g.isReversed_?(g.startNode_=B,g.startOffset_=G,g.endNode_=f,g.endOffset_=S):(g.startNode_=f,g.startOffset_=S,g.endNode_=B,g.endOffset_=G);return g};
_.e=xR.prototype;_.e.clone=function(){var f=new xR;f.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();f.startNode_=this.startNode_;f.startOffset_=this.startOffset_;f.endNode_=this.endNode_;f.endOffset_=this.endOffset_;f.isReversed_=this.isReversed_;return f};
_.e.JSC$9306_getType=function(){return"text"};
_.e.getBrowserRangeObject=function(){return Ls(this).range_};
_.e.getTextRangeCount=function(){return 1};
_.e.getTextRange=function(){return this};
var Ls=function(f){var S;if(!(S=f.browserRangeWrapper_)){S=f.JSC$9306_getStartNode();var B=f.JSC$9306_getStartOffset(),G=f.JSC$9306_getEndNode(),g=f.JSC$9306_getEndOffset();S=_.V9?new o4(LUN(S,B,G,g)):_.Fx?new fk(LUN(S,B,G,g)):new Oe(LUN(S,B,G,g));S=f.browserRangeWrapper_=S}return S};
_.e=xR.prototype;_.e.getContainer=function(){return Ls(this).getContainer()};
_.e.JSC$9306_getStartNode=function(){return this.startNode_||(this.startNode_=Ls(this).range_.startContainer)};
_.e.JSC$9306_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=Ls(this).range_.startOffset};
_.e.JSC$9306_getEndNode=function(){return this.endNode_||(this.endNode_=Ls(this).range_.endContainer)};
_.e.JSC$9306_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=Ls(this).range_.endOffset};
_.e.isReversed=function(){return this.isReversed_};
_.e.JSC$9306_containsRange=function(f,S){if(f.JSC$9306_getType()=="text"){var B=Ls(this);f=Ls(f);S=S&&!f.isCollapsed();f=f.range_;B=S?B.compareBrowserRangeEndpoints(f,0,1)>=0&&B.compareBrowserRangeEndpoints(f,1,0)<=0:B.compareBrowserRangeEndpoints(f,0,0)>=0&&B.compareBrowserRangeEndpoints(f,1,1)<=0}else B=!1;return B};
_.e.isCollapsed=function(){return Ls(this).isCollapsed()};
_.e.JSC$9306_getText=function(){return Ls(this).range_.toString()};
_.e.__iterator__=function(){return new jb(this.JSC$9306_getStartNode(),this.JSC$9306_getStartOffset(),this.JSC$9306_getEndNode(),this.JSC$9306_getEndOffset())};
_.e.select=function(){Ls(this).select(this.isReversed_)};
_.e.JSC$9306_removeContents=function(){var f=Ls(this).range_;f.extractContents();if(f.startContainer.hasChildNodes()&&(f=f.startContainer.childNodes[f.startOffset])){var S=f.previousSibling;bim(f)==""&&_.Pv(f);S&&bim(S)==""&&_.Pv(S)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.e.insertNode=function(f,S){f=Ls(this).insertNode(f,S);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return f};
_.e.collapse=function(f){f=this.isReversed()?!f:f;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(f);f?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var Iug=function(){};
_.Rm(Iug,jDX);Iug.prototype.JSC$9306_containsRange=function(f,S){var B=r1(this);f=r1(f);return(S?ZX:_.NPQ)(f,function(G){return ZX(B,function(g){return g.JSC$9306_containsRange(G,S)})})};
Iug.prototype.insertNode=function(f,S){S?_.Lb(f,this.JSC$9306_getStartNode()):_.kU(f,this.JSC$9306_getEndNode());return f};var UE8,CW1=Vq().JSC$7371_document_.documentElement;UE8=CW1.requestFullscreen?"fullscreenchange":CW1.webkitRequestFullscreen?"webkitfullscreenchange":CW1.mozRequestFullScreen?"mozfullscreenchange":CW1.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var pKN=function(){var f=Vq().JSC$7371_document_;return!!(f.webkitIsFullScreen||f.mozFullScreen||f.msFullscreenElement||f.fullscreenElement)};var kR=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.Rm(kR,Iug);_.e=kR.prototype;_.e.clone=function(){var f=new kR;f.browserRanges_=_.aT(this.browserRanges_);return f};
_.e.JSC$9306_getType=function(){return"mutli"};
_.e.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.e.getTextRangeCount=function(){return this.browserRanges_.length};
_.e.getTextRange=function(f){this.ranges_[f]||(this.ranges_[f]=nT8(kZ$(this.browserRanges_[f])));return this.ranges_[f]};
_.e.getContainer=function(){if(!this.container_){for(var f=[],S=this.getTextRangeCount(),B=0;B<S;B++)f.push(this.getTextRange(B).getContainer());this.container_=fv1.apply(null,f)}return this.container_};
var ns=function(f){f.sortedRanges_||(f.sortedRanges_=r1(f),f.sortedRanges_.sort(function(S,B){var G=S.JSC$9306_getStartNode();S=S.JSC$9306_getStartOffset();var g=B.JSC$9306_getStartNode();B=B.JSC$9306_getStartOffset();return G==g&&S==B?0:DEm(G,S,g,B)?1:-1}));
return f.sortedRanges_};
_.e=kR.prototype;_.e.JSC$9306_getStartNode=function(){return ns(this)[0].JSC$9306_getStartNode()};
_.e.JSC$9306_getStartOffset=function(){return ns(this)[0].JSC$9306_getStartOffset()};
_.e.JSC$9306_getEndNode=function(){return _.sV(ns(this)).JSC$9306_getEndNode()};
_.e.JSC$9306_getEndOffset=function(){return _.sV(ns(this)).JSC$9306_getEndOffset()};
_.e.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.e.JSC$9306_getText=function(){return r1(this).map(function(f){return f.JSC$9306_getText()}).join("")};
_.e.__iterator__=function(){return new se(this)};
_.e.select=function(){var f=this.getWindow().getSelection();f.removeAllRanges();for(var S=this.getTextRangeCount(),B=0;B<S;B++)f.addRange(this.getTextRange(B).getBrowserRangeObject())};
_.e.JSC$9306_removeContents=function(){r1(this).forEach(function(f){f.JSC$9306_removeContents()})};
_.e.collapse=function(f){if(!this.isCollapsed()){var S=f?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;S.collapse(f);this.ranges_=[S];this.sortedRanges_=[S];this.browserRanges_=[S.getBrowserRangeObject()]}};
var se=function(f){this.iterators_=null;this.currentIdx_=0;f&&(this.iterators_=ns(f).map(function(S){return _.GVN(S)}));
YR.call(this,f?this.JSC$9312_getStartNode():null,!1,!0)};
_.Rm(se,O2i);_.e=se.prototype;_.e.JSC$9312_getStartNode=function(){return this.iterators_[0].JSC$9312_getStartNode()};
_.e.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.e.next=function(){for(;this.currentIdx_<this.iterators_.length;){var f=this.iterators_[this.currentIdx_],S=f.next();if(S.done)this.currentIdx_++;else return Qr(this,f.node,f.tagType,f.depth),S}return z6};
_.e.JSC$9304_copyFrom=function(f){this.iterators_=_.aT(f.iterators_);se.superClass_.JSC$9304_copyFrom.call(this,f)};
_.e.clone=function(){var f=new se(null);f.JSC$9304_copyFrom(this);return f};var Af6,DEm;_.$V=function(){var f=window.getSelection();return f&&Af6(f)};
Af6=function(f){var S=!1;if(f.createRange)try{var B=f.createRange()}catch(g){return null}else if(f.rangeCount){if(f.rangeCount>1){B=new kR;S=f.rangeCount;for(var G=0;G<S;G++)B.browserRanges_.push(f.getRangeAt(G));return B}B=f.getRangeAt(0);S=DEm(f.anchorNode,f.anchorOffset,f.focusNode,f.focusOffset)}else return null;return nT8(kZ$(B),S)};
_.IH=function(f,S){return _.Ee(f,S,f,S)};
_.Ue=function(f,S,B,G){return _.Ee(f,S,B,G)};
DEm=function(f,S,B,G){if(f==B)return G<S;var g;if(f.nodeType==1&&S)if(g=f.childNodes[S])f=g,S=0;else if(_.CS(f,B))return!0;if(B.nodeType==1&&G)if(g=B.childNodes[G])B=g,G=0;else if(_.CS(B,f))return!1;return(lNm(f,B)||S-G)>0};var Cs=function(){_.$o.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.$A)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.$A)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.$A)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.$A)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.$A)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.$A)(this.dispatchProgressEvent_,this)};
_.Rm(Cs,_.$o);Cs.prototype.abort=function(){try{this.reader_.abort()}catch(f){throw new bNm(f,"aborting read");}};
Cs.prototype.getError=function(){return this.reader_.error&&new bNm(this.reader_.error,"reading file")};
Cs.prototype.dispatchProgressEvent_=function(f){this.dispatchEvent(new mHv(f,this))};
Cs.prototype.disposeInternal=function(){Cs.superClass_.disposeInternal.call(this);delete this.reader_};
var MwL=function(f){var S=new Cs,B=Nhv(S);S.reader_.readAsArrayBuffer(f);return B},Z28=function(f){var S=new Cs,B=Nhv(S);
S.reader_.readAsDataURL(f);return B},Nhv=function(f){var S=new at;
f.listen("loadend",_.vK(function(B,G){var g=G.reader_.result,b=G.getError();g==null||b?B.errback(b):B.callback(g);G.dispose()},S,f));
return S};var ps=function(){_.$o.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$9346_eventHandler_=new _.BZ(this);this.JSC$9346_isInitialized_=!1};
_.Rm(ps,_.$o);var twj=new _.vE("d"),uhL=new _.vE("beforedragstart"),aum=new _.vE("dragstart"),yfi=new _.vE("beforedragmove"),WU7=new _.vE("dragmove"),cfg=new _.vE("beforedragend"),luv=new _.vE("dragend"),fKN=new _.vE("e");ps.prototype.isDragging=function(){return!!this.JSC$9346_dragger_};
var orN=function(f,S){S.dlgGrowthDirection_=0;S.dlgDragHoverClass_=void 0;S.dlgDragPermission=0;f.dragLists_.push(S)},SAv=function(f,S){f.getHandleForDragItem_=S};
ps.prototype.init=function(){if(!this.JSC$9346_isInitialized_){for(var f=this.dragLists_.length,S=0;S<f;S++)for(var B=_.nb(this.dragLists_[S]),G=B.length,g=0;g<G;++g){var b=B[g],z=this.getHandleForDragItem_(b),X=_.Sm(z);this.dragItemForHandle_[X]=b;this.dragItemHoverClasses_&&(this.JSC$9346_eventHandler_.listen(b,"mouseover",this.handleDragItemMouseover_),this.JSC$9346_eventHandler_.listen(b,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$9346_eventHandler_.listen(z,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$9346_eventHandler_.listen(z,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(b);this.JSC$9346_eventHandler_.listen(z,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$9346_isInitialized_=!0}};
ps.prototype.disposeInternal=function(){this.JSC$9346_eventHandler_.dispose();for(var f=this.dragLists_.length,S=0;S<f;S++){var B=this.dragLists_[S];B.dlgGrowthDirection_=void 0;B.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;B9o(this);ps.superClass_.disposeInternal.call(this)};
var Gcg=function(f,S){for(var B=f.dragLists_.length,G=0;G<B;G++){var g=f.dragLists_[G];g.dlgBounds_=$_1(g)}B=f.dragItems_.length;for(G=0;G<B;G++)g=f.dragItems_[G],g!=S&&(g.dlgBounds_=$_1(g))};
_.e=ps.prototype;
_.e.handlePotentialDragStart_=function(f){var S=_.Sm(f.currentTarget);S=this.dragItemForHandle_[S];if(S.parentElement.dlgDragPermission!=2){this.currDragItem_=S;a:{S=this.currDragItem_;for(var B=S.cloneNode(!0),G=KS("TEXTAREA",S),g=KS("TEXTAREA",B),b=0;b<G.length;b++)g[b].value=G[b].value;switch(S.tagName){case "TR":S=_.js("TABLE",null,_.js("TBODY",null,B));break a;case "TD":case "TH":S=_.js("TABLE",null,_.js("TBODY",null,_.js("TR",null,B)));break a;case "TEXTAREA":B.value=S.value;default:S=B;break a}S=
void 0}this.draggerEl_=S;this.draggerElClasses_&&tq(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.OI(this.currDragItem_).body.appendChild(this.draggerEl_);B=_.EI(this.currDragItem_);S=this.draggerEl_;G=_.EI(S);if(B instanceof _.ru){var z=B.y;B=B.x}Cb(S,S.offsetLeft+(B-G.x),S.offsetTop+(Number(z)-G.y));this.JSC$9346_dragger_=new _.UE(this.draggerEl_);_.en1(this.JSC$9346_dragger_,this.hysteresisDistance_);
_.jP(this.JSC$9346_dragger_,"start",this.handleDragStart_,!1,this);_.jP(this.JSC$9346_dragger_,"end",this.handleDragEnd_,!1,this);_.jP(this.JSC$9346_dragger_,"earlycancel",this.JSC$9348_cleanup_,!1,this);this.dispatchEvent(new Ao(twj,this,f,this.currDragItem_,this.draggerEl_,this.JSC$9346_dragger_));this.JSC$9346_dragger_.startDrag(f)}};
_.e.handleDragStart_=function(f){if(this.dispatchEvent(new Ao(uhL,this,f.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.ysm(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?tq(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var S=hji(this.draggerEl_);this.draggerEl_.halfWidth=S.width/2;this.draggerEl_.halfHeight=S.height/2;S=this.draggerEl_.getBoundingClientRect();
var B=f.clientY,G=bL6(this.JSC$9346_dragger_,f.clientX);if(G>S.right){var g=this.currDragItem_.getBoundingClientRect();this.JSC$9346_dragger_.deltaX=G-(G-g.left)/g.width*S.width}B=mp$(this.JSC$9346_dragger_,B);B>S.bottom&&(this.JSC$9346_dragger_.deltaY+=B-S.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";Gcg(this,this.currDragItem_);this.currDragItem_.style.display="";_.jP(this.JSC$9346_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new Ao(aum,
this,f.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$9346_dragger_))}else f.preventDefault(),this.JSC$9348_cleanup_()};
_.e.handleDragMove_=function(f){var S=_.EI(this.draggerEl_);S=new _.ru(S.x+this.draggerEl_.halfWidth,S.y+this.draggerEl_.halfHeight);a:{var B=null;if(this.currDragItem_.style.display!="none"){B=this.currDragItem_.parentNode;var G=$_1(B);if(grg(S,G))break a}G=this.dragLists_.length;for(var g=0;g<G;g++){var b=this.dragLists_[g];if(b!=B&&grg(S,b.dlgBounds_)){B=b;break a}}B=null}if(B){if(B==null)throw Error("Vd");G=0;g=!1;b=void 0;switch(B.dlgGrowthDirection_){case 0:G=S.y;var z=exm;var X=bJ$;break;case 4:g=
!0;case 2:G=S.x;z=mzo;X=bJ$;break;case 5:g=!0;case 3:G=S.x,z=zx6,X=Rx$}for(var w=null,F,V=_.nb(B),J=V.length,P=0;P<J;P++){var d=V[P];if(d!=this.currDragItem_){var Q=z(d.dlgBounds_);if(g){var x=X2N(d,S);b===void 0&&(b=x);X(G,Q)&&(F==void 0||x<b||x==b&&(X(Q,F)||Q==F))&&(w=d,F=Q);x<b&&(b=x)}else X(G,Q)&&(F==void 0||X(Q,F))&&(w=d,F=Q)}}z=w!==null&&X2N(w,S)>b?null:w}else z=null;if(!this.dispatchEvent(new Ao(yfi,this,f,this.currDragItem_,this.draggerEl_,this.JSC$9346_dragger_,S,B,z)))return!1;if(B&&B.dlgDragPermission!=
1)this.currDragItem_.parentNode==B&&_.ysm(this.currDragItem_)==z||B.insertBefore(this.currDragItem_,z),this.currDragItem_.style.display="",B.dlgDragHoverClass_&&_.oa(B,B.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",X=this.dragLists_.length,F=0;F<X;F++)G=this.dragLists_[F],G.dlgDragHoverClass_&&_.lk(G,G.dlgDragHoverClass_);B!=this.currHoverList_&&(this.currHoverList_=B,Gcg(this,this.currDragItem_));this.dispatchEvent(new Ao(WU7,this,f,this.currDragItem_,this.draggerEl_,this.JSC$9346_dragger_,
S,B,z));return!1};
_.e.JSC$9348_cleanup_=function(){B9o(this);this.JSC$9346_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var f=this.dragLists_.length,S=0;S<f;S++)this.dragLists_[S].dlgBounds_=null;f=this.dragItems_.length;for(S=0;S<f;S++)this.dragItems_[S].dlgBounds_=null};
_.e.handleDragEnd_=function(f){if(!this.dispatchEvent(new Ao(cfg,this,f,this.currDragItem_,this.draggerEl_,this.JSC$9346_dragger_)))return!1;B9o(this);this.dispatchEvent(new Ao(luv,this,f,this.currDragItem_,this.draggerEl_,this.JSC$9346_dragger_));this.JSC$9348_cleanup_();return!0};
var B9o=function(f){_.cd(f.JSC$9346_dragger_);var S=f.draggerEl_&&f.draggerEl_.parentElement;f.draggerEl_&&_.Pv(f.draggerEl_);f.currDragItem_&&f.currDragItem_.style.display=="none"&&(f.origList_.insertBefore(f.currDragItem_,f.origNextItem_),f.currDragItem_.style.display="");f.currDragItemClasses_&&f.currDragItem_?eQ$(f.currDragItem_,f.currDragItemClasses_||[]):f.currDragItem_&&(f.currDragItem_.style.visibility="");for(var B=f.dragLists_.length,G=0;G<B;G++){var g=f.dragLists_[G];g.dlgDragHoverClass_&&
_.lk(g,g.dlgDragHoverClass_)}S&&f.dispatchEvent(new Ao(fKN,f,null,f.currDragItem_,f.draggerEl_,f.JSC$9346_dragger_))};
_.e=ps.prototype;_.e.getHandleForDragItem_=function(f){return f};
_.e.handleDragItemMouseover_=function(f){tq(f.currentTarget,this.dragItemHoverClasses_||[])};
_.e.handleDragItemMouseout_=function(f){eQ$(f.currentTarget,this.dragItemHoverClasses_||[])};
_.e.handleDragItemHandleMouseover_=function(f){tq(f.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.e.handleDragItemHandleMouseout_=function(f){eQ$(f.currentTarget,this.dragItemHandleHoverClasses_||[])};
var grg=function(f,S){return f.x>S.left&&f.x<S.left+S.width&&f.y>S.top&&f.y<S.top+S.height},X2N=function(f,S){f=f.dlgBounds_;
return Math.abs(S.y-(f.top+(f.height-1)/2))},exm=function(f){return f.top+f.height-1},mzo=function(f){return f.left+f.width-1},zx6=function(f){return f.left||0},bJ$=function(f,S){return f<S},Rx$=function(f,S){return f>S},Ao=function(f,S,B,G,g,b){_.K8.call(this,f);
this.event=B;this.currDragItem=G;this.draggerEl=g;this.JSC$9350_dragger=b};
_.Rm(Ao,_.K8);_.Rm(Gl,_.qR);var w2X=new _.ru(0,0);Gl.prototype.JSC$9354_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
Gl.prototype.JSC$9354_onMouseMove=function(f){var S=this.containerIsActuallyContent_?w2X:Fr(Vq(this.containerNode_)),B=this.horizontalScrolling_?this.calculateScrollDelta(f.clientX+S.x,this.scrollBounds_.left,this.scrollBounds_.width):0,G=this.calculateScrollDelta(f.clientY+S.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=B;this.scrollDelta_.y=G;!(B=!B&&!G)&&(B=this.constrainScroll_)&&(B=f.clientX+S.x,f=f.clientY+S.y,S=this.containerBounds_,B=!(S.left<=B&&S.left+S.width>=
B&&S.top<=f&&S.top+S.height>=f));B?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
Gl.prototype.calculateScrollDelta=function(f,S,B){var G=0;f<S?G=-8:f>S+B&&(G=8);return G};
Gl.prototype.disposeInternal=function(){Gl.superClass_.disposeInternal.call(this);this.JSC$9352_eventHandler_.dispose();this.scrollTimer_.dispose()};var hx8={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"}}},NI=hx8;NI=hx8;var MI={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 T98=function(){},Mz=function(f){if(typeof f=="number"){var S=new T98;
S.standardOffset_=f;var B=f;if(B==0)B="Etc/GMT";else{var G=["Etc/GMT",B<0?"-":"+"];B=Math.abs(B);G.push(Math.floor(B/60)%100);B%=60;B!=0&&G.push(":",_.es(B,2));B=G.join("")}S.timeZoneId_=B;B=f;B==0?B="UTC":(G=["UTC",B<0?"+":"-"],B=Math.abs(B),G.push(Math.floor(B/60)%100),B%=60,B!=0&&G.push(":",B),B=G.join(""));f=FW7(f);S.tzNames_=[B,B];S.tzNamesExt_={STD_LONG_NAME_GMT:f,STD_GENERIC_LOCATION:f};S.transitions_=[];return S}S=new T98;S.timeZoneId_=f.id;S.standardOffset_=-f.std_offset;S.tzNames_=f.names;
S.tzNamesExt_=f.names_ext;S.transitions_=f.transitions;return S},FW7=function(f){var S=["GMT"];
S.push(f<=0?"+":"-");f=Math.abs(f);S.push(_.es(Math.floor(f/60)%100,2),":",_.es(f%60,2));return S.join("")},Vf1=function(f,S){S=Date.UTC(S.getUTCFullYear(),S.getUTCMonth(),S.getUTCDate(),S.getUTCHours(),S.getUTCMinutes())/36E5;
for(var B=0;B<f.transitions_.length&&S>=f.transitions_[B];)B+=2;return B==0?0:f.transitions_[B-1]},JRv=function(f,S){f=f.standardOffset_-Vf1(f,S);
return f===-1440?0:f};var ZK=function(f,S){this.patternParts_=[];this.JSC$9365_dateTimeSymbols_=S||OC;typeof f=="number"?PCX(this,f):vr6(this,f)},KWm=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],Z9=function(f){return f.getHours?f.getHours():0},vr6=function(f,S){for(NU1&&(S=S.replace(/\u200f/g,""));S;){for(var B=S,G=0;G<KWm.length;++G){var g=S.match(KWm[G]);
if(g){var b=g[0];S=S.substring(b.length);G==0&&(b=="''"?b="'":(b=b.substring(1,g[1]=="'"?b.length-1:b.length),b=b.replace(/''/g,"'")));f.patternParts_.push({text:b,type:G});break}}if(B===S)throw Error("Wd`"+S);}};
ZK.prototype.format=function(f,S){if(!f)throw Error("Xd");var B=S?(f.getTimezoneOffset()-JRv(S,f))*6E4:0,G=B?new Date(f.getTime()+B):f,g=G;S&&G.getTimezoneOffset()!=f.getTimezoneOffset()&&(G=new Date(G.getTime()+(G.getTimezoneOffset()-f.getTimezoneOffset())*6E4),g=new Date(f.getTime()+(B+(B>0?-864E5:864E5))));B=[];for(var b=0;b<this.patternParts_.length;++b){var z=this.patternParts_[b].text;1==this.patternParts_[b].type?B.push(dz1(this,z,f,G,g,S)):B.push(z)}return B.join("")};
var PCX=function(f,S){if(S<4)var B=f.JSC$9365_dateTimeSymbols_.DATEFORMATS[S];else if(S<8)B=f.JSC$9365_dateTimeSymbols_.TIMEFORMATS[S-4];else if(S<12)B=f.JSC$9365_dateTimeSymbols_.DATETIMEFORMATS[S-8],B=B.replace("{1}",f.JSC$9365_dateTimeSymbols_.DATEFORMATS[S-8]),B=B.replace("{0}",f.JSC$9365_dateTimeSymbols_.TIMEFORMATS[S-8]);else if(S===12)B=f.JSC$9365_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(S===13)B=f.JSC$9365_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{PCX(f,10);return}vr6(f,B)},to=function(f,S){S=String(S);
f=f.JSC$9365_dateTimeSymbols_||OC;if(f.ZERODIGIT!==void 0&&!AvN){for(var B=[],G=0;G<S.length;G++){var g=S.charCodeAt(G);B.push(48<=g&&g<=57?String.fromCharCode(f.ZERODIGIT+g-48):S.charAt(G))}S=B.join("")}return S},AvN=!1,NU1=!1,HJ7=function(f,S,B,G){B=B.getFullYear();
B<=0&&G&&(B=1-B);return to(f,iJg(B,S))},iJg=function(f,S){S==2&&(f%=100);
f<0&&S++;return _.es(f,S)},u8=function(f){if(!(f.getHours&&f.getSeconds&&f.getMinutes))throw Error("Yd");
},qAi=function(f,S){u8(S);
S=Z9(S);return f.JSC$9365_dateTimeSymbols_.AMPMS[S>=12&&S<24?1:0]},dz1=function(f,S,B,G,g,b){var z=S.length;
switch(S.charAt(0)){case "G":return B=G.getFullYear()>0?1:0,z>=4?f.JSC$9365_dateTimeSymbols_.ERANAMES[B]:f.JSC$9365_dateTimeSymbols_.ERAS[B];case "y":return HJ7(f,z,G,!0);case "Y":return B=(new Date(QD6(G.getFullYear(),G.getMonth(),G.getDate(),f.JSC$9365_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,f.JSC$9365_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),z==2&&(B%=100),to(f,iJg(B,z));case "u":return HJ7(f,z,G,!1);case "M":a:switch(B=G.getMonth(),z){case 5:z=f.JSC$9365_dateTimeSymbols_.NARROWMONTHS[B];break a;
case 4:z=f.JSC$9365_dateTimeSymbols_.MONTHS[B];break a;case 3:z=f.JSC$9365_dateTimeSymbols_.SHORTMONTHS[B];break a;default:z=to(f,_.es(B+1,z))}return z;case "k":return u8(g),to(f,_.es(Z9(g)||24,z));case "S":return to(f,(g.getMilliseconds()/1E3).toFixed(Math.min(3,z)).slice(2)+(z>3?_.es(0,z-3):""));case "E":return B=G.getDay(),z>=4?f.JSC$9365_dateTimeSymbols_.WEEKDAYS[B]:f.JSC$9365_dateTimeSymbols_.SHORTWEEKDAYS[B];case "a":return qAi(f,g);case "b":return qAi(f,g);case "B":return qAi(f,g);case "h":return u8(g),
to(f,_.es(Z9(g)%12||12,z));case "K":return u8(g),to(f,_.es(Z9(g)%12,z));case "H":return u8(g),to(f,_.es(Z9(g),z));case "c":a:switch(B=G.getDay(),z){case 5:z=f.JSC$9365_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[B];break a;case 4:z=f.JSC$9365_dateTimeSymbols_.STANDALONEWEEKDAYS[B];break a;case 3:z=f.JSC$9365_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[B];break a;default:z=to(f,_.es(B,1))}return z;case "L":a:switch(B=G.getMonth(),z){case 5:z=f.JSC$9365_dateTimeSymbols_.STANDALONENARROWMONTHS[B];break a;
case 4:z=f.JSC$9365_dateTimeSymbols_.STANDALONEMONTHS[B];break a;case 3:z=f.JSC$9365_dateTimeSymbols_.STANDALONESHORTMONTHS[B];break a;default:z=to(f,_.es(B+1,z))}return z;case "Q":return B=Math.floor(G.getMonth()/3),z<4?f.JSC$9365_dateTimeSymbols_.SHORTQUARTERS[B]:f.JSC$9365_dateTimeSymbols_.QUARTERS[B];case "d":return to(f,_.es(G.getDate(),z));case "m":return u8(g),to(f,_.es(g.getMinutes?g.getMinutes():0,z));case "s":return u8(g),to(f,_.es(g.getSeconds(),z));case "v":return(b||Mz(B.getTimezoneOffset())).timeZoneId_;
case "V":return f=b||Mz(B.getTimezoneOffset()),z<=2?f.timeZoneId_:Vf1(f,B)>0?f.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?f.tzNamesExt_.DST_GENERIC_LOCATION:f.tzNamesExt_.DST_GENERIC_LOCATION:f.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?f.tzNamesExt_.STD_GENERIC_LOCATION:f.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return B=QD6(g.getFullYear(),g.getMonth(),g.getDate(),f.JSC$9365_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,f.JSC$9365_dateTimeSymbols_.FIRSTDAYOFWEEK),to(f,_.es(Math.floor(Math.round((B-(new Date((new Date(B)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,z));case "z":return f=b||Mz(B.getTimezoneOffset()),z<4?f.tzNames_[Vf1(f,B)>0?2:0]:f.tzNames_[Vf1(f,B)>0?3:1];case "Z":return S=b||Mz(B.getTimezoneOffset()),z<4?(z=-JRv(S,B),f=[z<0?"-":"+"],z=Math.abs(z),f.push(_.es(Math.floor(z/60)%100,2),_.es(z%60,2)),z=f.join("")):z=to(f,FW7(JRv(S,B))),z;default:return""}};var $zX=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,Qco=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,mZj=function(f){this.patternParts_=[];this.JSC$9374_dateTimeSymbols_=OC;if(typeof f=="number"){f>11&&(f=10);if(f<4)var S=this.JSC$9374_dateTimeSymbols_.DATEFORMATS[f];else f<8?S=this.JSC$9374_dateTimeSymbols_.TIMEFORMATS[f-4]:(S=this.JSC$9374_dateTimeSymbols_.DATETIMEFORMATS[f-8],S=S.replace("{1}",this.JSC$9374_dateTimeSymbols_.DATEFORMATS[f-8]),S=S.replace("{0}",this.JSC$9374_dateTimeSymbols_.TIMEFORMATS[f-
8]));YAv(this,S)}else YAv(this,f)},YAv=function(f,S){for(var B=!1,G="",g=0;g<S.length;g++){var b=S.charAt(g);
if($zX.test(b))for(G.length>0&&(f.patternParts_.push({text:G,count:0,abutStart:!1,numeric:!1}),G=""),f.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});g<S.length-1&&S.charAt(g+1)==" ";)g++;else if(B)b=="'"?g+1<S.length&&S.charAt(g+1)=="'"?(G+="'",g++):B=!1:G+=b;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(b)>=0){G.length>0&&(f.patternParts_.push({text:G,count:0,abutStart:!1,numeric:!1}),G="");for(var z=S.charAt(g),X=g+1;X<S.length&&S.charAt(X)==z;)X++;z=X-g;z<=0?X=!1:(X="MydhHmsSDkK".indexOf(b),
X=X>0||X==0&&z<3);f.patternParts_.push({text:b,count:z,abutStart:!1,numeric:X});g+=z-1}else b=="'"?g+1<S.length&&S.charAt(g+1)=="'"?(G+="'",g++):B=!0:G+=b}G.length>0&&f.patternParts_.push({text:G,count:0,abutStart:!1,numeric:!1});S=!1;for(B=0;B<f.patternParts_.length;B++)f.patternParts_[B].numeric?!S&&B+1<f.patternParts_.length&&f.patternParts_[B+1].numeric&&(S=!0,f.patternParts_[B].abutStart=!0):S=!1};
mZj.prototype.parse=function(f,S,B){var G=!1,g=!1;B&&(G=B.predictive||!1,g=B.validate||!1);if(G)for(B=0;B<this.patternParts_.length;B++){var b=this.patternParts_[B];if(b.count>0&&("abBhHkKm".indexOf(b.text.charAt(0))<0||b.count>2||b.abutStart))throw Error("Zd`"+b.text.charAt(0));}b=new rR1;B=[0];b.dayPeriodIndex=-1;for(var z=0;z<this.patternParts_.length&&!(G&&B[0]>=f.length);z++){if(this.patternParts_[z].count==0){a:{var X=f;var w=B,F=this.patternParts_[z],V=G;if(F.text.match($zX)!=null){if(F=w[0],
jc1(X,w),w[0]>F){X=!0;break a}}else{if(X.indexOf(F.text,w[0])==w[0]){w[0]+=F.text.length;X=!0;break a}if(V&&F.text.indexOf(X.substring(w[0]))==0){w[0]+=X.length-w[0];X=!0;break a}}X=!1}if(X)continue;return 0}if(this.patternParts_[z].abutStart){a:{w=f;F=B;V=z;var J=F[0],P=0;for(X=V;X<this.patternParts_.length;X++){var d=this.patternParts_[X],Q=d.count;if(Q===0)break;if(X==V&&(Q-=P,P++,Q==0)){X=0;break a}var x=X>V&&d.numeric,E=F[0];if(!OJX(this,w,F,d,Q,b,!1)||x&&F[0]-E<Q)X=V-1,F[0]=J}X-=V}if(X<=0)return 0;
z+=X-1}else if(!OJX(this,f,B,this.patternParts_[z],0,b,G))return 0}a:{f=g;if(S==null)throw Error("$d");b.era!=void 0&&b.year!=void 0&&b.era==0&&b.year>0&&(b.year=-(b.year-1));b.year!=void 0&&S.setFullYear(b.year);G=S.getDate();S.setDate(1);b.month!=void 0&&S.setMonth(b.month);b.day!=void 0?S.setDate(b.day):(g=sE9(S.getFullYear(),S.getMonth()),S.setDate(G>g?g:G));typeof S.setHours==="function"&&(b.hours==void 0&&(b.hours=S.getHours()),b.hours<12&&(b.ampm!=void 0&&b.ampm>0?b.hours+=12:b.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(b.dayPeriodName)||["night1","night2"].includes(b.dayPeriodName)&&b.hours>=6)&&(b.hours+=12)),S.setHours(b.hours));typeof S.setMinutes==="function"&&b.minutes!=void 0&&S.setMinutes(b.minutes);typeof S.setSeconds==="function"&&b.seconds!=void 0&&S.setSeconds(b.seconds);typeof S.setMilliseconds==="function"&&b.milliseconds!=void 0&&S.setMilliseconds(b.milliseconds);if(f&&(b.year&&b.year!=S.getFullYear()||b.month&&b.month!=
S.getMonth()||b.day&&b.day!=S.getDate()||b.hours&&b.hours>=24||b.minutes&&b.minutes>=60||b.seconds&&b.seconds>=60||b.milliseconds&&b.milliseconds>=1E3))S=!1;else{b.tzOffset!=void 0&&S.setTime(S.getTime()+(b.tzOffset-S.getTimezoneOffset())*60*1E3);b.ambiguousYear&&(f=new Date,f.setFullYear(f.getFullYear()-80),S.getTime()<f.getTime()&&S.setFullYear(f.getFullYear()+100));if(b.dayOfWeek!=void 0)if(b.day==void 0)b=(7+b.dayOfWeek-S.getDay())%7,b>3&&(b-=7),f=S.getMonth(),S.setDate(S.getDate()+b),S.getMonth()!=
f&&S.setDate(S.getDate()+(b>0?-7:7));else if(b.dayOfWeek!=S.getDay()){S=!1;break a}S=!0}}return S?B[0]:0};
var OJX=function(f,S,B,G,g,b,z){jc1(S,B);if(G.numeric&&g>0&&B[0]+g>S.length)return!1;switch(G.text.charAt(0)){case "G":return aH(S,B,[f.JSC$9374_dateTimeSymbols_.ERAS],function(X){return b.era=X}),!0;
case "M":case "L":return xzN(f,S,B,g,G,b);case "E":return aH(S,B,[f.JSC$9374_dateTimeSymbols_.WEEKDAYS,f.JSC$9374_dateTimeSymbols_.SHORTWEEKDAYS],function(X){return b.dayOfWeek=X});
case "B":case "b":return g=[],f=[[].concat(f.JSC$9374_dateTimeSymbols_.AMPMS)],g.push("isAm"),g.push("isPm"),S=aH(S,B,f,function(X){return b.dayPeriodIndex=X},z),b.dayPeriodName=g[b.dayPeriodIndex],z?S:!0;
case "a":return S=aH(S,B,[f.JSC$9374_dateTimeSymbols_.AMPMS],function(X){return b.ampm=X},z),z?S:!0;
case "y":return Er1(f,S,B,G,g,b);case "Q":return aH(S,B,[f.JSC$9374_dateTimeSymbols_.QUARTERS,f.JSC$9374_dateTimeSymbols_.SHORTQUARTERS],function(X){b.month=X*3;b.day=1});
case "d":return yr(f,S,B,G,g,function(X){b.day=X}),!0;
case "S":return LWX(f,S,B,g,b);case "h":case "K":case "H":case "k":return S=yr(f,S,B,G,g,function(X){b.hours=G.text.charAt(0)==="h"&&X===12?0:X},z),z?S:!0;
case "m":return S=yr(f,S,B,G,g,function(X){b.minutes=X},z),z?S:!0;
case "s":return yr(f,S,B,G,g,function(X){b.seconds=X}),!0;
case "z":case "Z":case "v":return kcL(f,S,B,b);default:return!1}},Er1=function(f,S,B,G,g,b){var z=B[0];
g=WG(f,S,B,g);g===null&&(g=WG(f,S,B,0,!0));if(g===null)return!1;g>=0&&B[0]-z==2&&G.count==2?(f=g,S=(new Date).getFullYear()-80,B=S%100,b.ambiguousYear=f==B,f+=Math.floor(S/100)*100+(f<B?100:0),b.year=f):b.year=g;return!0},xzN=function(f,S,B,G,g,b){return g.numeric&&yr(f,S,B,g,G,function(z){b.month=z-1})?!0:aH(S,B,[f.JSC$9374_dateTimeSymbols_.MONTHS,
f.JSC$9374_dateTimeSymbols_.STANDALONEMONTHS,f.JSC$9374_dateTimeSymbols_.SHORTMONTHS,f.JSC$9374_dateTimeSymbols_.STANDALONESHORTMONTHS],function(z){b.month=z})},LWX=function(f,S,B,G,g){var b=B[0];
f=WG(f,S,B,G);if(f===null)return!1;B=B[0]-b;g.milliseconds=B<3?f*Math.pow(10,3-B):Math.round(f/Math.pow(10,B-3));return!0},kcL=function(f,S,B,G){S.indexOf("GMT",B[0])==B[0]&&(B[0]+=3);
if(B[0]>=S.length)return G.tzOffset=0,!0;var g=B[0],b=WG(f,S,B,0,!0);if(b===null)return!1;if(B[0]<S.length&&S.charAt(B[0])==":"){var z=b*60;B[0]++;b=WG(f,S,B,0);if(b===null)return!1;z+=b}else z=b,z=z<24&&B[0]-g<=3?z*60:z%100+z/100*60;G.tzOffset=-z;return!0},yr=function(f,S,B,G,g,b,z){z=z||!1;
var X=B[0];f=WG(f,S,B,g);if(f===null)return!1;if(z&&B[0]-X<G.count){if(B[0]<S.length)return!1;f*=Math.pow(10,G.count-(B[0]-X))}b(f);return!0},aH=function(f,S,B,G,g){g=g||!1;
for(var b,z=0;z<B.length;z++){b=S;for(var X=B[z],w=g,F=0,V=null,J=f.substring(b[0]).toLowerCase(),P=0;P<X.length;P++){var d=X[P].toLowerCase();if(w&&d.indexOf(J)==0){F=J.length;V=P;break}X[P].length>F&&J.indexOf(d)==0&&(F=X[P].length,V=P)}V!==null&&(b[0]+=F);b=V;if(b!==null)return G(b),!0}return!1},jc1=function(f,S){(f=f.substring(S[0]).match(Qco))&&(S[0]+=f[0].length)},WG=function(f,S,B,G,g){S=G>0?S.substring(0,B[0]+G):S;
g=g||!1;if(f.JSC$9374_dateTimeSymbols_.ZERODIGIT){G=[];for(var b=B[0];b<S.length;b++){var z=S.charCodeAt(b)-f.JSC$9374_dateTimeSymbols_.ZERODIGIT;G.push(0<=z&&z<=9?String.fromCharCode(z+48):S.charAt(b))}S=G.join("")}else S=S.substring(B[0]);f=S.match(new RegExp("^"+(g?"[+-]?":"")+"\\d+"));if(!f)return null;B[0]+=f[0].length;return parseInt(f[0],10)},rR1=function(){};
rR1.prototype.ambiguousYear=!1;_.nrg={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 sc$={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"},Dzv=sc$,IKX=sc$;IKX=Dzv=sc$;var CCj,cG,fd,rTN,l8,Uzm;
_.pJ=function(f,S,B,G){var g;if(g=S){a:if(S&&S.length===3){for(g=0;g<3;g++){var b=S[g];if(b<"A"||b>"Z"&&b<"a"||b>"z"){g=!1;break a}}g=!0}else g=!1;g=!g}if(g)throw new TypeError("ae");this.intlCurrencyCode_=S?S.toUpperCase():null;this.currencyStyle_=B||0;this.overrideNumberFormatSymbols_=G||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_=cG(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof f==="number")switch(f){case 1:l8(this,cG(this).DECIMAL_PATTERN);break;case 2:l8(this,cG(this).SCIENTIFIC_PATTERN);break;case 3:l8(this,cG(this).PERCENT_PATTERN);break;case 4:f=cG(this).CURRENCY_PATTERN;S=["0"];if(B=
MI[fd(this)]){B=B[0]&7;if(B>0)for(S.push("."),G=0;G<B;G++)S.push("0");f=f.replace(/0.00/g,S.join(""))}l8(this,f);break;case 5:Uzm(this,1);break;case 6:Uzm(this,2);break;default:throw Error("de");}else l8(this,f)};
CCj=!1;cG=function(f){return f.overrideNumberFormatSymbols_||(CCj?IKX:Dzv)};
fd=function(f){return f.intlCurrencyCode_||cG(f).DEF_CURRENCY_CODE};
rTN=function(f,S){if(S>308)throw Error("ce`"+S);f.maximumFractionDigits_=S;return f};
l8=function(f,S){var B=[0];f.positivePrefix_=p2$(f,S,B);for(var G=B[0],g=-1,b=0,z=0,X=0,w=-1,F=S.length,V=!0;B[0]<F&&V;B[0]++)switch(S.charAt(B[0])){case "#":z>0?X++:b++;w>=0&&g<0&&w++;break;case "0":if(X>0)throw Error("je`"+S);z++;w>=0&&g<0&&w++;break;case ",":w>0&&f.groupingArray_.push(w);w=0;break;case ".":if(g>=0)throw Error("ke`"+S);g=b+z+X;break;case "E":if(f.useExponentialNotation_)throw Error("le`"+S);f.useExponentialNotation_=!0;f.minExponentDigits_=0;B[0]+1<F&&S.charAt(B[0]+1)=="+"&&(B[0]++,
f.useSignForPositiveExponent_=!0);for(;B[0]+1<F&&S.charAt(B[0]+1)=="0";)B[0]++,f.minExponentDigits_++;if(b+z<1||f.minExponentDigits_<1)throw Error("me`"+S);V=!1;break;default:B[0]--,V=!1}z==0&&b>0&&g>=0&&(z=g,z==0&&z++,X=b-z,b=z-1,z=1);if(g<0&&X>0||g>=0&&(g<b||g>b+z)||w==0)throw Error("ne`"+S);X=b+z+X;f.maximumFractionDigits_=g>=0?X-g:0;g>=0&&(f.minimumFractionDigits_=b+z-g,f.minimumFractionDigits_<0&&(f.minimumFractionDigits_=0));f.minimumIntegerDigits_=(g>=0?g:X)-b;f.useExponentialNotation_&&(f.maximumIntegerDigits_=
b+f.minimumIntegerDigits_,f.maximumFractionDigits_==0&&f.minimumIntegerDigits_==0&&(f.minimumIntegerDigits_=1));f.groupingArray_.push(Math.max(0,w));f.decimalSeparatorAlwaysShown_=g==0||g==X;G=B[0]-G;f.positiveSuffix_=p2$(f,S,B);B[0]<S.length&&S.charAt(B[0])==";"?(B[0]++,f.multiplier_!=1&&(f.negativePercentSignExpected_=!0),f.negativePrefix_=p2$(f,S,B),B[0]+=G,f.negativeSuffix_=p2$(f,S,B)):(f.negativePrefix_+=f.positivePrefix_,f.negativeSuffix_+=f.positiveSuffix_)};
Uzm=function(f,S){f.compactStyle_=S;l8(f,cG(f).DECIMAL_PATTERN);f.minimumFractionDigits_=0;rTN(f,2);if(f.minimumFractionDigits_>0)throw Error("be");f.significantDigits_=2};
_.pJ.prototype.parse=function(f,S){S=S||[0];if(this.compactStyle_!==0)throw Error("ee");f=f.replace(/ |\u202f/g,"\u00a0");var B=f.indexOf(this.positivePrefix_,S[0])==S[0],G=f.indexOf(this.negativePrefix_,S[0])==S[0];B&&G&&(this.positivePrefix_.length>this.negativePrefix_.length?G=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(B=!1));B?S[0]+=this.positivePrefix_.length:G&&(S[0]+=this.negativePrefix_.length);if(f.indexOf(cG(this).INFINITY,S[0])==S[0]){S[0]+=cG(this).INFINITY.length;var g=
Infinity}else{g=f;var b=!1,z=!1,X=!1,w=-1,F=1,V=cG(this).DECIMAL_SEP,J=cG(this).GROUP_SEP,P=cG(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("fe");J=J.replace(/\u202f/g,"\u00a0");for(var d="";S[0]<g.length;S[0]++){var Q=g.charAt(S[0]),x=ARj(this,Q);if(x>=0&&x<=9)d+=x,X=!0;else if(Q==V.charAt(0)){if(b||z)break;d+=".";b=!0}else if(Q==J.charAt(0)&&("\u00a0"!=J.charAt(0)||S[0]+1<g.length&&ARj(this,g.charAt(S[0]+1))>=0)){if(b||z)break}else if(Q==P.charAt(0)){if(z)break;d+="E";z=!0;w=S[0]}else if(Q==
"+"||Q=="-"){if(X&&w!=S[0]-1)break;d+=Q}else if(this.multiplier_==1&&Q==cG(this).PERCENT.charAt(0)){if(F!=1)break;F=100;if(X){S[0]++;break}}else if(this.multiplier_==1&&Q==cG(this).PERMILL.charAt(0)){if(F!=1)break;F=1E3;if(X){S[0]++;break}}else break}this.multiplier_!=1&&(F=this.multiplier_);g=parseFloat(d)/F}if(B){if(f.indexOf(this.positiveSuffix_,S[0])!=S[0])return NaN;S[0]+=this.positiveSuffix_.length}else if(G){if(f.indexOf(this.negativeSuffix_,S[0])!=S[0])return NaN;S[0]+=this.negativeSuffix_.length}return G?
-g:g};
_.pJ.prototype.format=function(f){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ge");if(isNaN(f))return cG(this).NAN;var S=[];var B=f;if(this.compactStyle_==0)B=oV;else{B=Math.abs(B);var G=N9g(this,B<=1?0:MfN(B)).divisorBase;B=N9g(this,G+MfN(ZJN(this,Sx(B,-G)).intValue))}f=Sx(f,-B.divisorBase);(G=f<0||f==0&&1/f<0)?B.negative_prefix?S.push(B.negative_prefix):(S.push(B.prefix),S.push(this.negativePrefix_)):(S.push(B.prefix),S.push(this.positivePrefix_));if(isFinite(f))if(f*=
G?-1:1,f*=this.multiplier_,this.useExponentialNotation_){var g=f;if(g==0)tfN(this,g,this.minimumIntegerDigits_,S),uVN(this,0,S);else{var b=Math.floor(Math.log(g)/Math.log(10)+2E-15);g=Sx(g,-b);var z=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(z=b%this.maximumIntegerDigits_,z<0&&(z=this.maximumIntegerDigits_+z),g=Sx(g,z),b-=z,z=1):this.minimumIntegerDigits_<1?(b++,g=Sx(g,-1)):(b-=this.minimumIntegerDigits_-1,g=Sx(g,this.minimumIntegerDigits_-
1));tfN(this,g,z,S);uVN(this,b,S)}}else tfN(this,f,this.minimumIntegerDigits_,S);else S.push(cG(this).INFINITY);G?B.negative_suffix?S.push(B.negative_suffix):(isFinite(f)&&S.push(B.suffix),S.push(this.negativeSuffix_)):(isFinite(f)&&S.push(B.suffix),S.push(this.positiveSuffix_));return S.join("")};
var ZJN=function(f,S){var B=Sx(S,f.maximumFractionDigits_);f.significantDigits_>0&&(B=aKm(B,f.significantDigits_,f.maximumFractionDigits_));B=Math.round(B);if(isFinite(B)){var G=Math.floor(Sx(B,-f.maximumFractionDigits_));B=Math.floor(B-Sx(G,f.maximumFractionDigits_));if(B<0||B>=Sx(1,f.maximumFractionDigits_))G=Math.round(S),B=0}else G=S,B=0;return{intValue:G,fracValue:B}},tfN=function(f,S,B,G){if(f.minimumFractionDigits_>f.maximumFractionDigits_)throw Error("ge");
G||(G=[]);S=ZJN(f,S);var g=S.intValue,b=S.fracValue,z=f.minimumFractionDigits_>0||b>0||!1;S=f.minimumFractionDigits_;z&&(S=f.minimumFractionDigits_);for(var X="",w=g;w>1E20;)X="0"+X,w=Math.round(Sx(w,-1));X=w+X;var F=cG(f).DECIMAL_SEP;w=cG(f).ZERO_DIGIT.codePointAt(0);var V=X.length,J=0;if(g>0||B>0){for(g=V;g<B;g++)G.push(String.fromCodePoint(w));if(f.groupingArray_.length>=2)for(B=1;B<f.groupingArray_.length;B++)J+=f.groupingArray_[B];B=V-J;if(B>0){g=f.groupingArray_;J=V=0;for(var P,d=cG(f).GROUP_SEP,
Q=X.length,x=0;x<Q;x++)if(G.push(String.fromCodePoint(w+Number(X.charAt(x)))),Q-x>1)if(P=g[J],x<B){var E=B-x;(P===1||P>0&&E%P===1)&&G.push(d)}else J<g.length&&(x===B?J+=1:P===x-B-V+1&&(G.push(d),V+=P,J+=1))}else{B=X;X=f.groupingArray_;g=cG(f).GROUP_SEP;P=B.length;d=[];for(V=X.length-1;V>=0&&P>0;V--){J=X[V];for(Q=0;Q<J&&P-Q-1>=0;Q++)d.push(String.fromCodePoint(w+Number(B.charAt(P-Q-1))));P-=J;P>0&&d.push(g)}G.push.apply(G,d.reverse())}}else z||G.push(String.fromCodePoint(w));(f.decimalSeparatorAlwaysShown_||
z)&&G.push(F);b=String(b);z=b.split("e+");z.length==2&&(b=String(aKm(parseFloat(z[0]),f.significantDigits_,1)),b=b.replace(".",""),b+=(0,_.ELG)("0",parseInt(z[1],10)-b.length+1));f.maximumFractionDigits_+1>b.length&&(b="1"+(0,_.ELG)("0",f.maximumFractionDigits_-b.length)+b);for(f=b.length;b.charAt(f-1)=="0"&&f>S+1;)f--;for(S=1;S<f;S++)G.push(String.fromCodePoint(w+Number(b.charAt(S))))},uVN=function(f,S,B){B.push(cG(f).EXP_SYMBOL);
S<0?(S=-S,B.push(cG(f).MINUS_SIGN)):f.useSignForPositiveExponent_&&B.push(cG(f).PLUS_SIGN);S=""+S;for(var G=cG(f).ZERO_DIGIT,g=S.length;g<f.minExponentDigits_;g++)B.push(G);f=G.codePointAt(0)-yRv;for(G=0;G<S.length;G++)B.push(String.fromCodePoint(f+S.codePointAt(G)))},ARj=function(f,S){S=S.codePointAt(0);
if(48<=S&&S<58)return S-48;f=cG(f).ZERO_DIGIT.codePointAt(0);return f<=S&&S<f+10?S-f:-1},yRv="0".codePointAt(0),p2$=function(f,S,B){for(var G="",g=!1,b=S.length;B[0]<b;B[0]++){var z=S.charAt(B[0]);
if(z=="'")B[0]+1<b&&S.charAt(B[0]+1)=="'"?(B[0]++,G+="'"):g=!g;else if(g)G+=z;else switch(z){case "#":case "0":case ",":case ".":case ";":return G;case "\u00a4":if(B[0]+1<b&&S.charAt(B[0]+1)=="\u00a4")B[0]++,G+=fd(f);else switch(f.currencyStyle_){case 0:z=fd(f);G+=z in MI?MI[z][1]:z;break;case 2:z=fd(f);var X=MI[z];G+=X?z==X[1]?z:z+" "+X[1]:z;break;case 1:z=fd(f),G+=z in MI?MI[z][2]:z}break;case "%":if(!f.negativePercentSignExpected_&&f.multiplier_!=1)throw Error("he");if(f.negativePercentSignExpected_&&
f.multiplier_!=100)throw Error("ie");f.multiplier_=100;f.negativePercentSignExpected_=!1;G+=cG(f).PERCENT;break;case "\u2030":if(!f.negativePercentSignExpected_&&f.multiplier_!=1)throw Error("he");if(f.negativePercentSignExpected_&&f.multiplier_!=1E3)throw Error("ie");f.multiplier_=1E3;f.negativePercentSignExpected_=!1;G+=cG(f).PERMILL;break;default:G+=z}}return G},oV={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},N9g=function(f,S){f=f.compactStyle_==1?NI.COMPACT_DECIMAL_SHORT_PATTERN:NI.COMPACT_DECIMAL_LONG_PATTERN;f==null&&(f=NI.COMPACT_DECIMAL_SHORT_PATTERN);if(S<3)return oV;S=Math.min(14,S);var B=f[Sx(1,S)];for(--S;!B&&S>=3;)B=f[Sx(1,S)],S--;if(!B)return oV;B=B.other;var G=f="",g=B.indexOf(";");g>=0&&(B=B.substring(0,g),g=B.substring(g+1))&&(G=/([^0]*)(0+)(.*)/.exec(g),f=G[1],G=G[3]);return B&&B!="0"?(B=/([^0]*)(0+)(.*)/.exec(B))?{divisorBase:S+
1-(B[2].length-1),negative_prefix:f,negative_suffix:G,prefix:B[1],suffix:B[3]}:oV:oV},MfN=function(f){if(!isFinite(f))return f>0?f:0;
for(var S=0;(f/=10)>=1;)S++;return S},Sx=function(f,S){if(!f||!isFinite(f)||S==0)return f;
f=String(f).split("e");return parseFloat(f[0]+"e"+(parseInt(f[1]||0,10)+S))},WWN=function(f,S){return f&&isFinite(f)?Sx(Math.round(Sx(f,S)),-S):f},aKm=function(f,S,B){if(!f)return f;
S=S-MfN(f)-1;return S<-B?WWN(f,-B):WWN(f,S)};var cRo=function(f){return f%10==1&&f%100!=11?"one":f%10==2&&f%100!=12?"two":f%10==3&&f%100!=13?"few":"other"},lKN=cRo;
lKN=cRo;var fUo;fUo=function(f,S){var B=f|0;if(void 0===S){S=Math;var G=S.min,g=f+"",b=g.indexOf(".");S=G.call(S,b===-1?0:g.length-b-1,3)}G=Math.pow(10,S);f={v:S,f:(f*G|0)%G};return B==1&&f.v==0?"one":"other"};
_.tR=fUo;_.tR=fUo;var oG8,Stj,B3m,gGN,e7o;_.GFg=function(f){this.JSC$9417_pattern_=f;this.parsedPattern_=this.literals_=this.initialLiterals_=null;f=Dzv;var S=NI;if(oG8!==f||Stj!==S)oG8=f,Stj=S,B3m=new _.pJ(1);this.numberFormatter_=B3m};
oG8=null;Stj=null;B3m=null;gGN=RegExp("'([{}#].*?)'","g");e7o=RegExp("''","g");
_.GFg.prototype.format=function(f){if(this.JSC$9417_pattern_){this.initialLiterals_=[];var S=bnX(this,this.JSC$9417_pattern_);this.parsedPattern_=mog(this,S);this.JSC$9417_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.aT(this.initialLiterals_),S=[],z7m(this,this.parsedPattern_,f,!1,S),f=S.join("");this.literals_.length>0;)f=f.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else f="";return f};
var z7m=function(f,S,B,G,g){for(var b=0;b<S.length;b++)switch(S[b].type){case 4:g.push(S[b].value);break;case 3:var z=S[b].value;var X=f,w=g,F=B[z];F===void 0?w.push("Undefined parameter - "+z):(X.literals_.push(F),w.push(X.buildPlaceholder_(X.literals_)));break;case 2:z=S[b].value;X=f;w=B;F=G;var V=g,J=z.argumentIndex;w[J]===void 0?V.push("Undefined parameter - "+J):(J=z[w[J]],J===void 0&&(J=z.other),z7m(X,J,w,F,V));break;case 0:z=S[b].value;R7m(f,z,B,_.tR,G,g);break;case 1:z=S[b].value,R7m(f,z,
B,lKN,G,g)}},R7m=function(f,S,B,G,g,b){var z=S.argumentIndex,X=S.argumentOffset,w=+B[z];
isNaN(w)?b.push("Undefined or invalid parameter - "+z):(X=w-X,z=S[B[z]],z===void 0&&(G=G(Math.abs(X)),z=S[G],z===void 0&&(z=S.other)),S=[],z7m(f,z,B,g,S),B=S.join(""),g?b.push(B):(f=f.numberFormatter_.format(X),b.push(B.replace(/#/g,f))))},bnX=function(f,S){var B=f.initialLiterals_,G=f.buildPlaceholder_.bind(f);
S=S.replace(e7o,function(){B.push("'");return G(B)});
return S=S.replace(gGN,function(g,b){B.push(b);return G(B)})},Xtm=function(f){var S=0,B=[],G=[],g=/[{}]/g;
g.lastIndex=0;for(var b;b=g.exec(f);){var z=b.index;b[0]=="}"?(B.pop(),B.length==0&&(b={type:1},b.value=f.substring(S,z),G.push(b),S=z+1)):(B.length==0&&(S=f.substring(S,z),S!=""&&G.push({type:0,value:S}),S=z+1),B.push("{"))}f=f.substring(S);f!=""&&G.push({type:0,value:f});return G},wto=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,h7X=/^\s*(\w+)\s*,\s*selectordinal\s*,/,T3L=/^\s*(\w+)\s*,\s*select\s*,/,mog=function(f,S){var B=[];
S=Xtm(S);for(var G=0;G<S.length;G++){var g={};if(0==S[G].type)g.type=4,g.value=S[G].value;else if(1==S[G].type){var b=S[G].value;switch(wto.test(b)?0:h7X.test(b)?1:T3L.test(b)?2:/^\s*\w+\s*/.test(b)?3:5){case 2:g.type=2;g.value=Fd7(f,S[G].value);break;case 0:g.type=0;g.value=Vam(f,S[G].value);break;case 1:g.type=1;g.value=JK$(f,S[G].value);break;case 3:g.type=3,g.value=S[G].value}}B.push(g)}return B},Fd7=function(f,S){var B="";
S=S.replace(T3L,function(X,w){B=w;return""});
var G={};G.argumentIndex=B;S=Xtm(S);for(var g=0;g<S.length;){var b=S[g].value;g++;var z=void 0;1==S[g].type&&(z=mog(f,S[g].value));G[b.replace(/\s/g,"")]=z;g++}return G},Vam=function(f,S){var B="",G=0;
S=S.replace(wto,function(w,F,V){B=F;V&&(G=parseInt(V,10));return""});
var g={};g.argumentIndex=B;g.argumentOffset=G;S=Xtm(S);for(var b=0;b<S.length;){var z=S[b].value;b++;var X=void 0;1==S[b].type&&(X=mog(f,S[b].value));g[z.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=X;b++}return g},JK$=function(f,S){var B="";
S=S.replace(h7X,function(X,w){B=w;return""});
var G={};G.argumentIndex=B;G.argumentOffset=0;S=Xtm(S);for(var g=0;g<S.length;){var b=S[g].value;g++;var z=void 0;1==S[g].type&&(z=mog(f,S[g].value));G[b.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=z;g++}return G};
_.GFg.prototype.buildPlaceholder_=function(f){return"\ufddf_"+(f.length-1).toString(10)+"_"};var Pt6;
Pt6={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 tRj=function(){this.rdtfSymbols_=vGm||Pt6;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
tRj.prototype.format=function(f,S){a:{S=KdX(this,S);switch(this.style_){case 2:if(S.NARROW!=void 0){S=S.NARROW;break a}case 1:if(S.SHORT!=void 0){S=S.SHORT;break a}default:S=S.LONG;break a}S=void 0}if(!this.alwaysNumeric_&&S&&S.R&&S.R[""+f])f=S.R[""+f];else if(S){var B=Math.abs(f);f=(new _.GFg("{N,plural,"+(f>0||f==0&&1/f==Infinity?S.F:S.P)+"}")).format({N:B})}else f="";return f};
var KdX=function(f,S){switch(S){default:case 0:return f.rdtfSymbols_.YEAR;case 1:return f.rdtfSymbols_.QUARTER;case 2:return f.rdtfSymbols_.MONTH;case 3:return f.rdtfSymbols_.WEEK;case 4:return f.rdtfSymbols_.DAY;case 5:return f.rdtfSymbols_.HOUR;case 6:return f.rdtfSymbols_.MINUTE;case 7:return f.rdtfSymbols_.SECOND}};var doo=function(f,S,B,G,g,b,z,X){this.x0=f;this.y0=S;this.x1=B;this.y1=G;this.x2=g;this.y2=b;this.x3=z;this.y3=X};
doo.prototype.clone=function(){return new doo(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
doo.prototype.equals=function(f){return this.x0==f.x0&&this.y0==f.y0&&this.x1==f.x1&&this.y1==f.y1&&this.x2==f.x2&&this.y2==f.y2&&this.x3==f.x3&&this.y3==f.y3};
var in8=function(f,S){if(S==0)return f.x0;if(S==1)return f.x3;var B=$U(f.x0,f.x1,S),G=$U(f.x1,f.x2,S);f=$U(f.x2,f.x3,S);B=$U(B,G,S);G=$U(G,f,S);return $U(B,G,S)},HnN=function(f,S){var B=(S-f.x0)/(f.x3-f.x0);
if(B<=0)return 0;if(B>=1)return 1;for(var G=0,g=1,b=0,z=0;z<8;z++){b=in8(f,B);var X=(in8(f,B+1E-6)-b)/1E-6;if(Math.abs(b-S)<1E-6)return B;if(Math.abs(X)<1E-6)break;else b<S?G=B:g=B,B-=(b-S)/X}for(z=0;Math.abs(b-S)>1E-6&&z<8;z++)b<S?(G=B,B=(B+g)/2):(g=B,B=(B+G)/2),b=in8(f,B);return B};var Bu=function(){_.$o.call(this);this.JSC$9438_name_="closure_frame"+qto++;this.iframesForDisposal_=[];$oi[this.JSC$9438_name_]=this},Ge;
_.Rm(Bu,_.$o);var $oi={},qto=0,QeN=function(f,S){var B=Vq(f);UvX(S,function(G,g){Array.isArray(G)||(G=[G]);_.AA(G,function(b){b=B.JSC$7373_createDom("INPUT",{type:"hidden",name:g,value:b});f.appendChild(b)})})};
_.e=Bu.prototype;_.e.JSC$9440_form_=null;_.e.JSC$9440_iframe_=null;_.e.iframeName_=null;_.e.nextIframeId_=0;_.e.JSC$9440_active_=!1;_.e.complete_=!1;_.e.success_=!1;_.e.lastContent_=null;_.e.JSC$9440_lastErrorCode_=0;_.e.iframeDisposalTimer_=null;
_.e.send=function(f,S,B,G){if(this.JSC$9440_active_)throw Error("oe");f=new _.uT(f);S=S?S.toUpperCase():"GET";B&&_.XH(f);Ge||(Ge=_.js("FORM"),Ge.acceptCharset="utf-8",B=Ge.style,B.position="absolute",B.visibility="hidden",B.top=B.left="-10px",B.width=B.height="10px",B.overflow="hidden",document.body.appendChild(Ge));this.JSC$9440_form_=Ge;S=="GET"&&QeN(this.JSC$9440_form_,f.JSC$8076_queryData_);G&&QeN(this.JSC$9440_form_,G);B=f.toString();B=Aj1(B);G=this.JSC$9440_form_;B=_.Qe(TC(B));B!==void 0&&(G.action=
B);this.JSC$9440_form_.method=S;YtN(this);rKN(this)};
_.e.abort=function(f){if(this.JSC$9440_active_){var S=gx(this);if(S)if(iX(S))S.removeAllListeners(void 0);else if(S=HE(S)){var B=0,G;for(G in S.listeners)for(var g=S.listeners[G].concat(),b=0;b<g.length;++b)QU(g[b])&&++B}this.success_=this.JSC$9440_active_=this.complete_=!1;this.JSC$9440_lastErrorCode_=f||7;this.dispatchEvent("abort");jem(this)}};
_.e.disposeInternal=function(){this.JSC$9440_active_&&this.abort();Bu.superClass_.disposeInternal.call(this);this.JSC$9440_iframe_&&Oni(this);rKN(this);this.JSC$9440_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$9440_form_=null;this.JSC$9440_lastErrorCode_=0;delete $oi[this.JSC$9438_name_]};
_.e.isComplete=function(){return this.complete_};
_.e.isSuccess=function(){return this.success_};
_.e.isActive=function(){return this.JSC$9440_active_};
_.e.getResponseText=function(){return this.lastContent_};
_.e.getLastError=function(){return _.JJv(this.JSC$9440_lastErrorCode_)};
var YtN=function(f){f.JSC$9440_active_=!0;f.complete_=!1;f.JSC$9440_lastErrorCode_=0;f.iframeName_=f.JSC$9438_name_+"_"+(f.nextIframeId_++).toString(36);f.JSC$9440_iframe_=Vq(f.JSC$9440_form_).JSC$7373_createDom("IFRAME",{name:f.iframeName_,id:f.iframeName_});var S=f.JSC$9440_iframe_.style;S.visibility="hidden";S.width=S.height="10px";S.display="none";_.V9?S.marginTop=S.marginLeft="-10px":(S.position="absolute",S.top=S.left="-10px");Vq(f.JSC$9440_form_).JSC$7371_document_.body.appendChild(f.JSC$9440_iframe_);
S=f.iframeName_+"_inner";var B=oXL(f.JSC$9440_iframe_);if(document.baseURI){var G=X$(S);G='<head><base href="'+X$(document.baseURI)+'"></head><body><iframe id="'+G+'" name="'+G+'"></iframe>';G=jZ(G)}else G=X$(S),G=jZ('<body><iframe id="'+G+'" name="'+G+'"></iframe>');B.write(OQ(G));_.jP(B.getElementById(S),"load",f.onIframeLoaded_,!1,f);G=KS("TEXTAREA",f.JSC$9440_form_);for(var g=0,b=G.length;g<b;g++){var z=G[g].value;bim(G[g])!=z&&(_.sJ(G[g],z),G[g].value=z)}G=B.importNode(f.JSC$9440_form_,!0);G.target=
S;G.action=f.JSC$9440_form_.action;B.body.appendChild(G);g=KS("SELECT",f.JSC$9440_form_);b=KS("SELECT",G);z=0;for(var X=g.length;z<X;z++)for(var w=KS("OPTION",g[z]),F=KS("OPTION",b[z]),V=0,J=w.length;V<J;V++)F[V].selected=w[V].selected;g=KS("INPUT",f.JSC$9440_form_);b=KS("INPUT",G);z=0;for(X=g.length;z<X;z++)if(g[z].type=="file"&&g[z].value!=b[z].value){f.JSC$9440_form_.target=S;G=f.JSC$9440_form_;break}try{f.errorHandled_=!1,G.submit(),B.close(),_.Fx&&setTimeout(f.testForFirefoxSilentError_.bind(f),
250)}catch(P){_.qM(B.getElementById(S),"load",f.onIframeLoaded_,!1,f),B.close(),ex(f,2)}};
Bu.prototype.onIframeLoaded_=function(){_.qM(gx(this),"load",this.onIframeLoaded_,!1,this);try{var f=this.JSC$9440_iframe_?oXL(gx(this)):null;this.complete_=!0;this.JSC$9440_active_=!1;try{var S=f.body;this.lastContent_=S.textContent||S.innerText}catch(g){var B=1}var G;B||typeof this.errorChecker_!="function"||(G=this.errorChecker_(f))&&(B=4);B?ex(this,B):(this.success_=!0,this.JSC$9440_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),jem(this))}catch(g){ex(this,1)}};
var ex=function(f,S){f.errorHandled_||(f.success_=!1,f.JSC$9440_active_=!1,f.complete_=!0,f.JSC$9440_lastErrorCode_=S,f.dispatchEvent("complete"),f.dispatchEvent("error"),jem(f),f.errorHandled_=!0)},jem=function(f){Oni(f);
rKN(f);f.JSC$9440_form_=null;f.dispatchEvent("ready")},Oni=function(f){var S=f.JSC$9440_iframe_;
S&&(S.onreadystatechange=null,S.onload=null,S.onerror=null,f.iframesForDisposal_.push(S));f.iframeDisposalTimer_&&(clearTimeout(f.iframeDisposalTimer_),f.iframeDisposalTimer_=null);_.Fx?f.iframeDisposalTimer_=setTimeout(f.disposeIframes_.bind(f),2E3):f.disposeIframes_();f.JSC$9440_iframe_=null;f.iframeName_=null};
Bu.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var f=this.iframesForDisposal_.pop();_.Pv(f)}};
var rKN=function(f){f.JSC$9440_form_&&f.JSC$9440_form_==Ge&&_.EJ(f.JSC$9440_form_)},gx=function(f){return f.JSC$9440_iframe_?oXL(f.JSC$9440_iframe_).getElementById(f.iframeName_+"_inner"):null};
Bu.prototype.testForFirefoxSilentError_=function(){if(this.JSC$9440_active_){var f=this.JSC$9440_iframe_?oXL(gx(this)):null;f&&!xv(f,"documentUri")?(_.qM(gx(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?ex(this,3):ex(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.bH=function(f){return f=="\r"||f=="\n"||f==" "||f=="\t"};var xo6;_.mp=function(f){this.errorMessage_=null;this.result_=[];this.JSC$9442_buffer_="";this.stack_=[];this.JSC$9442_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!f||!f.deliverMessageAsRawString)};
xo6={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};_.mp.prototype.isInputValid=function(){return this.streamState_!=3};
_.mp.prototype.done=function(){return this.streamState_===2};
var ze=function(f,S,B){f.streamState_=3;f.errorMessage_="The stream is broken @"+f.JSC$9442_pos_+"/"+B+". With input:\n"+S;throw Error(f.errorMessage_);};
_.mp.prototype.acceptsBinaryInput=function(){return!1};
_.mp.prototype.parse=function(f){function S(){for(;P<f.length;)if(_.bH(f[P]))P++,b.JSC$9442_pos_++;else break;return P<F}
function B(){for(var Q;;){Q=f[P++];if(!Q)break;b.JSC$9442_pos_++;switch(b.state_){case w.INIT:Q==="{"?b.state_=w.OBJECT_OPEN:Q==="["?b.state_=w.ARRAY_OPEN:_.bH(Q)||ze(b,f,P);continue;case w.KEY_START:case w.OBJECT_OPEN:if(_.bH(Q))continue;if(b.state_===w.KEY_START)z.push(w.KEY_END);else if(Q==="}"){g("{}");b.state_=G();continue}else z.push(w.OBJECT_END);Q==='"'?b.state_=w.STRING:ze(b,f,P);continue;case w.KEY_END:case w.OBJECT_END:if(_.bH(Q))continue;Q===":"?(b.state_===w.OBJECT_END&&(z.push(w.OBJECT_END),
b.depth_++),b.state_=w.VALUE):Q==="}"?(b.depth_--,g(),b.state_=G()):Q===","?(b.state_===w.OBJECT_END&&z.push(w.OBJECT_END),b.state_=w.KEY_START):ze(b,f,P);continue;case w.ARRAY_OPEN:case w.VALUE:if(_.bH(Q))continue;if(b.state_===w.ARRAY_OPEN)if(b.depth_++,b.state_=w.VALUE,Q==="]"){b.depth_--;if(b.depth_===0){b.state_=w.ARRAY_END;return}g("[]");b.state_=G();continue}else z.push(w.ARRAY_END);Q==='"'?b.state_=w.STRING:Q==="{"?b.state_=w.OBJECT_OPEN:Q==="["?b.state_=w.ARRAY_OPEN:Q==="t"?b.state_=w.TRUE1:
Q==="f"?b.state_=w.FALSE1:Q==="n"?b.state_=w.NULL1:Q!=="-"&&("0123456789".indexOf(Q)!==-1?b.state_=w.NUM_DIGIT:ze(b,f,P));continue;case w.ARRAY_END:if(Q===",")z.push(w.ARRAY_END),b.state_=w.VALUE,b.depth_===1&&(J=P);else if(Q==="]"){b.depth_--;if(b.depth_===0)return;g();b.state_=G()}else if(_.bH(Q))continue;else ze(b,f,P);continue;case w.STRING:var x=P;a:for(;;){for(;b.unicodeCount_>0;)if(Q=f[P++],b.unicodeCount_===4?b.unicodeCount_=0:b.unicodeCount_++,!Q)break a;if(Q==='"'&&!b.slashed_){b.state_=
G();break}if(Q==="\\"&&!b.slashed_&&(b.slashed_=!0,Q=f[P++],!Q))break;if(b.slashed_)if(b.slashed_=!1,Q==="u"&&(b.unicodeCount_=1),Q=f[P++])continue;else break;X.lastIndex=P;Q=X.exec(f);if(!Q){P=f.length+1;break}P=Q.index+1;Q=f[Q.index];if(!Q)break}b.JSC$9442_pos_+=P-x;continue;case w.TRUE1:if(!Q)continue;Q==="r"?b.state_=w.TRUE2:ze(b,f,P);continue;case w.TRUE2:if(!Q)continue;Q==="u"?b.state_=w.TRUE3:ze(b,f,P);continue;case w.TRUE3:if(!Q)continue;Q==="e"?b.state_=G():ze(b,f,P);continue;case w.FALSE1:if(!Q)continue;
Q==="a"?b.state_=w.FALSE2:ze(b,f,P);continue;case w.FALSE2:if(!Q)continue;Q==="l"?b.state_=w.FALSE3:ze(b,f,P);continue;case w.FALSE3:if(!Q)continue;Q==="s"?b.state_=w.FALSE4:ze(b,f,P);continue;case w.FALSE4:if(!Q)continue;Q==="e"?b.state_=G():ze(b,f,P);continue;case w.NULL1:if(!Q)continue;Q==="u"?b.state_=w.NULL2:ze(b,f,P);continue;case w.NULL2:if(!Q)continue;Q==="l"?b.state_=w.NULL3:ze(b,f,P);continue;case w.NULL3:if(!Q)continue;Q==="l"?b.state_=G():ze(b,f,P);continue;case w.NUM_DECIMAL_POINT:Q===
"."?b.state_=w.NUM_DIGIT:ze(b,f,P);continue;case w.NUM_DIGIT:if("0123456789.eE+-".indexOf(Q)!==-1)continue;else P--,b.JSC$9442_pos_--,b.state_=G();continue;default:ze(b,f,P)}}}
function G(){var Q=z.pop();return Q!=null?Q:w.VALUE}
function g(Q){b.depth_>1||(Q||(Q=J===-1?b.JSC$9442_buffer_+f.substring(V,P):f.substring(J,P)),b.deliverMessageAsRawString_?b.result_.push(Q):b.result_.push(JSON.parse(Q)),J=P)}
for(var b=this,z=b.stack_,X=b.stringInputPattern_,w=xo6,F=f.length,V=0,J=-1,P=0;P<F;)switch(b.streamState_){case 3:return ze(b,f,P),null;case 2:return S()&&ze(b,f,P),null;case 0:if(S()){var d=f[P++];b.JSC$9442_pos_++;if(d==="["){b.streamState_=1;V=P;b.state_=w.ARRAY_OPEN;continue}else ze(b,f,P)}return null;case 1:return B(),b.depth_===0&&b.state_==w.ARRAY_END?(b.streamState_=2,b.JSC$9442_buffer_=f.substring(P)):b.JSC$9442_buffer_=J===-1?b.JSC$9442_buffer_+f.substring(V):f.substring(J),b.result_.length>
0?(d=b.result_,b.result_=[],d):null}return null};_.Rm(_.gi,HL);ee.prototype.getValue=function(){return this.JSC$9450_value_};
ee.prototype.clone=function(){return new ee(this.JSC$9450_key_,this.JSC$9450_value_)};var RV=function(f){this.nodes_=[];if(f)a:{if(f instanceof RV){var S=f.getKeys();f=f.getValues();if(this.getCount()<=0){for(var B=this.nodes_,G=0;G<S.length;G++)B.push(new ee(S[G],f[G]));break a}}else S=_.$v.getKeys(f),f=_.$v.getValues(f);for(B=0;B<S.length;B++)this.insert(S[B],f[B])}};
_.e=RV.prototype;_.e.insert=function(f,S){var B=this.nodes_;B.push(new ee(f,S));f=B.length-1;S=this.nodes_;for(B=S[f];f>0;){var G=f-1>>1;if(S[G].JSC$9450_key_>B.JSC$9450_key_)S[f]=S[G],f=G;else break}S[f]=B};
_.e.remove=function(){var f=this.nodes_,S=f.length,B=f[0];if(!(S<=0)){if(S==1)f.length=0;else{f[0]=f.pop();f=0;S=this.nodes_;for(var G=S.length,g=S[f];f<G>>1;){var b=f*2+1,z=f*2+2;b=z<G&&S[z].JSC$9450_key_<S[b].JSC$9450_key_?z:b;if(S[b].JSC$9450_key_>g.JSC$9450_key_)break;S[f]=S[b];f=b}S[f]=g}return B.getValue()}};
_.e.peek=function(){var f=this.nodes_;if(f.length!=0)return f[0].getValue()};
_.e.getValues=function(){for(var f=this.nodes_,S=[],B=f.length,G=0;G<B;G++)S.push(f[G].getValue());return S};
_.e.getKeys=function(){for(var f=this.nodes_,S=[],B=f.length,G=0;G<B;G++)S.push(f[G].JSC$9450_key_);return S};
_.e.containsValue=function(f){return this.nodes_.some(function(S){return S.getValue()==f})};
_.e.containsKey=function(f){return this.nodes_.some(function(S){return S.JSC$9450_key_==f})};
_.e.clone=function(){return new RV(this)};
_.e.getCount=function(){return this.nodes_.length};
_.e.isEmpty=function(){return this.nodes_.length===0};
_.e.clear=function(){this.nodes_.length=0};_.XY=function(f,S){this.JSC$9456_map_={};this.JSC$9456_keys_=[];this.version_=this.size=0;var B=arguments.length;if(B>1){if(B%2)throw Error("pa");for(var G=0;G<B;G+=2)this.set(arguments[G],arguments[G+1])}else f&&this.addAll(f)};
_.e=_.XY.prototype;_.e.getCount=function(){return this.size};
_.e.getValues=function(){wx(this);for(var f=[],S=0;S<this.JSC$9456_keys_.length;S++)f.push(this.JSC$9456_map_[this.JSC$9456_keys_[S]]);return f};
_.e.getKeys=function(){wx(this);return this.JSC$9456_keys_.concat()};
_.e.containsKey=function(f){return this.has(f)};
_.e.has=function(f){return h5(this.JSC$9456_map_,f)};
_.e.containsValue=function(f){for(var S=0;S<this.JSC$9456_keys_.length;S++){var B=this.JSC$9456_keys_[S];if(h5(this.JSC$9456_map_,B)&&this.JSC$9456_map_[B]==f)return!0}return!1};
_.e.equals=function(f,S){if(this===f)return!0;if(this.size!=f.getCount())return!1;S=S||EGg;wx(this);for(var B,G=0;B=this.JSC$9456_keys_[G];G++)if(!S(this.get(B),f.get(B)))return!1;return!0};
var EGg=function(f,S){return f===S};
_.XY.prototype.isEmpty=function(){return this.size==0};
_.XY.prototype.clear=function(){this.JSC$9456_map_={};this.version_=this.size=this.JSC$9456_keys_.length=0};
_.XY.prototype.remove=function(f){return this.delete(f)};
_.XY.prototype.delete=function(f){return h5(this.JSC$9456_map_,f)?(delete this.JSC$9456_map_[f],--this.size,this.version_++,this.JSC$9456_keys_.length>2*this.size&&wx(this),!0):!1};
var wx=function(f){if(f.size!=f.JSC$9456_keys_.length){for(var S=0,B=0;S<f.JSC$9456_keys_.length;){var G=f.JSC$9456_keys_[S];h5(f.JSC$9456_map_,G)&&(f.JSC$9456_keys_[B++]=G);S++}f.JSC$9456_keys_.length=B}if(f.size!=f.JSC$9456_keys_.length){S={};for(G=B=0;B<f.JSC$9456_keys_.length;){var g=f.JSC$9456_keys_[B];h5(S,g)||(f.JSC$9456_keys_[G++]=g,S[g]=1);B++}f.JSC$9456_keys_.length=G}};
_.e=_.XY.prototype;_.e.get=function(f,S){return h5(this.JSC$9456_map_,f)?this.JSC$9456_map_[f]:S};
_.e.set=function(f,S){h5(this.JSC$9456_map_,f)||(this.size+=1,this.JSC$9456_keys_.push(f),this.version_++);this.JSC$9456_map_[f]=S};
_.e.addAll=function(f){if(f instanceof _.XY)for(var S=f.getKeys(),B=0;B<S.length;B++)this.set(S[B],f.get(S[B]));else for(S in f)this.set(S,f[S])};
_.e.forEach=function(f,S){for(var B=this.getKeys(),G=0;G<B.length;G++){var g=B[G],b=this.get(g);f.call(S,b,g,this)}};
_.e.clone=function(){return new _.XY(this)};
_.e.transpose=function(){for(var f=new _.XY,S=0;S<this.JSC$9456_keys_.length;S++){var B=this.JSC$9456_keys_[S];f.set(this.JSC$9456_map_[B],B)}return f};
_.e.keys=function(){return gJv(this.__iterator__(!0)).toEs6()};
_.e.values=function(){return gJv(this.__iterator__(!1)).toEs6()};
_.e.entries=function(){var f=this;return vT7(this.keys(),function(S){return[S,f.get(S)]})};
_.e.__iterator__=function(f){wx(this);var S=0,B=this.version_,G=this,g=new mn;g.next=function(){if(B!=G.version_)throw Error("pe");if(S>=G.JSC$9456_keys_.length)return z6;var b=G.JSC$9456_keys_[S++];return RN(f?b:G.JSC$9456_map_[b])};
return g};
var h5=function(f,S){return Object.prototype.hasOwnProperty.call(f,S)};var kF8=function(){this.JSC$9459_map_=new _.XY;this.JSC$9459_head_=new Ldm("");this.JSC$9459_head_.next=this.JSC$9459_head_.prev=this.JSC$9459_head_},nG6=function(f,S){if(S=f.JSC$9459_map_.get(S))S.remove(),f.insert_(S);
return S};
_.e=kF8.prototype;_.e.get=function(f,S){return(f=nG6(this,f))?f.value:S};
_.e.set=function(f,S){var B=nG6(this,f);B?B.value=S:(B=new Ldm(f,S),this.JSC$9459_map_.set(f,B),this.insert_(B))};
_.e.peek=function(){return this.JSC$9459_head_.next.value};
_.e.shift=function(){return sev(this,this.JSC$9459_head_.next)};
_.e.pop=function(){return sev(this,this.JSC$9459_head_.prev)};
_.e.remove=function(f){return(f=this.JSC$9459_map_.get(f))?(this.removeNode(f),!0):!1};
_.e.removeNode=function(f){f.remove();this.JSC$9459_map_.remove(f.key)};
_.e.getCount=function(){return this.JSC$9459_map_.getCount()};
_.e.isEmpty=function(){return this.JSC$9459_map_.isEmpty()};
_.e.getKeys=function(){return this.map(function(f,S){return S})};
_.e.getValues=function(){return this.map(function(f){return f})};
_.e.contains=function(f){return this.some(function(S){return S==f})};
_.e.containsKey=function(f){return this.JSC$9459_map_.containsKey(f)};
_.e.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$9459_head_.prev)};
_.e.forEach=function(f,S){for(var B=this.JSC$9459_head_.next;B!=this.JSC$9459_head_;B=B.next)f.call(S,B.value,B.key,this)};
_.e.map=function(f,S){for(var B=[],G=this.JSC$9459_head_.next;G!=this.JSC$9459_head_;G=G.next)B.push(f.call(S,G.value,G.key,this));return B};
_.e.some=function(f,S){for(var B=this.JSC$9459_head_.next;B!=this.JSC$9459_head_;B=B.next)if(f.call(S,B.value,B.key,this))return!0;return!1};
_.e.every=function(f,S){for(var B=this.JSC$9459_head_.next;B!=this.JSC$9459_head_;B=B.next)if(!f.call(S,B.value,B.key,this))return!1;return!0};
_.e.insert_=function(f){f.next=this.JSC$9459_head_.next;f.prev=this.JSC$9459_head_;this.JSC$9459_head_.next=f;for(f.next.prev=f;this.getCount()>100;)this.removeNode(this.JSC$9459_head_.prev)};
var sev=function(f,S){f.JSC$9459_head_!=S&&f.removeNode(S);return S.value},Ldm=function(f,S){this.key=f;
this.value=S};
Ldm.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var DoX=function(){RV.apply(this,arguments)};
_.q(DoX,RV);DoX.prototype.enqueue=function(f,S){this.insert(f,S)};var IU8=function(){var f=Error();f.name="SecurityError";throw f;},zmW=function(){return{get opener(){return null},
get closed(){return!0},get location(){IU8()},get document(){IU8()},postMessage:function(){},
close:function(){},
focus:function(){}}};var QQs={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 jQj={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 UoN={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(jQj).join("|");var Ct$=function(){function f(X){X.substr(-1)!==";"&&(X+=";");return z(X)}
for(var S=Object.keys(UoN).sort(r9x),B=Object.keys(jQj).sort(r9x),G=0,g=0;G<B.length;G++)S[g]===B[G]?(B[G]+=";?",g++):B[G]+=";";var b=new RegExp("&(?:"+B.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),z=Ozs();return function(X){return String(X).replace(b,f)}}();/*

 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 ptX={};var AKN=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"),N3g=/[\\&]/,Ma8=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),ZnN=RegExp('[&<>"]',"g"),tag=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),u27=function(f){return f.charCodeAt(0)===92?f.charAt(1):Ct$(f)},aUj=function(f){return N3g.test(f)?f.replace(Ma8,u27):f},yKg=function(f){try{var S,B="";
if(typeof g!=="string"){var G=g;var g=";/?:@&=+$,-_.!~*'()#"}typeof G==="undefined"&&(G=!0);var b,z=ptX[g];if(z)var X=z;else{z=ptX[g]=[];for(b=0;b<128;b++){var w=String.fromCharCode(b);/^[0-9a-z]$/i.test(w)?z.push(w):z.push("%"+("0"+b.toString(16).toUpperCase()).slice(-2))}for(b=0;b<g.length;b++)z[g.charCodeAt(b)]=g[b];X=z}var F=0;for(S=f.length;F<S;F++){var V=f.charCodeAt(F);if(G&&V===37&&F+2<S&&/^[0-9a-f]{2}$/i.test(f.slice(F+1,F+3)))B+=f.slice(F,F+3),F+=2;else if(V<128)B+=X[V];else if(V>=55296&&
V<=57343){if(V>=55296&&V<=56319&&F+1<S){var J=f.charCodeAt(F+1);if(J>=56320&&J<=57343){B+=encodeURIComponent(f[F]+f[F+1]);F++;continue}}B+="%EF%BF%BD"}else B+=encodeURIComponent(f[F])}return B}catch(P){return f}},Wd1=function(f){switch(f){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return f}},Te=function(f,S){return ZnN.test(f)?S?f.replace(tag,Wd1):f.replace(ZnN,Wd1):f};/*

 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 FY;if(String.fromCodePoint)FY=function(f){try{return String.fromCodePoint(f)}catch(S){if(S instanceof RangeError)return String.fromCharCode(65533);throw S;}};
else{var cKj=String.fromCharCode,lUN=Math.floor;FY=function(){var f=[],S=-1,B=arguments.length;if(!B)return"";for(var G="";++S<B;){var g=Number(arguments[S]);if(!isFinite(g)||g<0||g>1114111||lUN(g)!==g)return String.fromCharCode(65533);if(g<=65535)f.push(g);else{g-=65536;var b=(g>>10)+55296;g=g%1024+56320;f.push(b,g)}if(S+1===B||f.length>16384)G+=cKj.apply(null,f),f.length=0}return G}};var feo=function(f){this.root=this.current=f;this.entering=!0};
feo.prototype.next=function(){var f=this.current,S=this.entering;if(f===null)return null;a:switch(f._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 B=!0;break a;default:B=!1}S&&B?f._firstChild?(this.current=f._firstChild,this.entering=!0):this.entering=!1:f===this.root?this.current=null:f._next===null?(this.current=
f._parent,this.entering=!1):(this.current=f._next,this.entering=!0);return{entering:S,node:f}};
var R4=function(f,S){this._type=f;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=S;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};
R4.prototype.appendChild=function(f){V4(f);f._parent=this;this._lastChild?(this._lastChild._next=f,f._prev=this._lastChild):this._firstChild=f;this._lastChild=f};
var V4=function(f){f._prev?f._prev._next=f._next:f._parent&&(f._parent._firstChild=f._next);f._next?f._next._prev=f._prev:f._parent&&(f._parent._lastChild=f._prev);f._parent=null;f._next=null;f._prev=null},obm=function(f,S){V4(S);
S._next=f._next;S._next&&(S._next._prev=S);S._prev=f;f._next=S;S._parent=f._parent;S._next||(S._parent._lastChild=S)};
R4.prototype.insertBefore=function(f){V4(f);f._prev=this._prev;f._prev&&(f._prev._next=f);f._next=this;this._prev=f;f._parent=this._parent;f._prev||(f._parent._firstChild=f)};
_.y3.Object.defineProperties(R4.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(f){this._literal=f}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(f){this._destination=f}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(f){this._title=f}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(f){this._info=f}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(f){this._level=f}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(f){this._listData.type=f}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(f){this._listData.tight=f}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(f){this._listData.start=f}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(f){this._onEnter=f}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(f){this._onExit=f}}});var x_T=/[ \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,
Ej9={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 SWL=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]/),
Bvi=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),GYv=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),gbm=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),euX=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),bP6=/`+/,mJo=/^`+/,zum=/\.\.\./g,Rui=/--+/g,XFi=/^<([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])?)*)>/,
wF7=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,hu8=/^ *(?:\n *)?/,Tvm=/^[ \t\n\x0b\x0c\x0d]/,F9m=/[ \t\n\x0b\x0c\x0d]+/g,Vdi=/^\s/,JO8=/ *$/,Pug=/^ */,vb1=/^ *(?:\n|$)/,K9N=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),dJm=/^[^\n`\[\]\\!<&*_'"]+/m,J5=function(f){var S=new R4("text");S._literal=f;return S},Pu=function(f){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=f||{}};
Pu.prototype.match=function(f){f=f.exec(this.subject.slice(this.pos));if(f===null)return null;this.pos+=f.index+f[0].length;return f[0]};
Pu.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var vu=function(f){f.match(hu8);return!0},iP6=function(f,S,B){var G=0;
var g=f.pos;if(S===39||S===34)G++,f.pos++;else for(;f.peek()===S;)G++,f.pos++;if(G===0)G=null;else{var b=g===0?"\n":f.subject.charAt(g-1);var z=f.peek();z=z===-1?"\n":FY(z);var X=Vdi.test(z);z=SWL.test(z);var w=Vdi.test(b);var F=SWL.test(b);b=!X&&!(z&&!w&&!F);X=!w&&!(F&&!X&&!z);S===95?(w=b&&(!X||F),z=X&&(!b||z)):(w=S===39||S===34?b&&!X:b,z=X);f.pos=g;G={numdelims:G,can_open:w,can_close:z}}if(!G)return!1;g=G.numdelims;z=f.pos;f.pos+=g;z=S===39?"\u2019":S===34?"\u201c":f.subject.slice(z,f.pos);z=J5(z);
B.appendChild(z);f.delimiters={cc:S,numdelims:g,origdelims:g,node:z,previous:f.delimiters,next:null,can_open:G.can_open,can_close:G.can_close};f.delimiters.previous!==null&&(f.delimiters.previous.next=f.delimiters);return!0},HPo=function(f,S){S.previous!==null&&(S.previous.next=S.next);
S.next===null?f.delimiters=S.previous:S.next.previous=S.previous},qWm=function(f,S){var B,G,g=[],b=!1;
g[95]=S;g[42]=S;g[39]=S;g[34]=S;for(B=f.delimiters;B!==null&&B.previous!==S;)B=B.previous;for(;B!==null;){var z=B.cc;if(B.can_close){var X=B.previous;for(G=!1;X!==null&&X!==S&&X!==g[z];){b=(B.can_open||X.can_close)&&(X.origdelims+B.origdelims)%3===0;if(X.cc===B.cc&&X.can_open&&!b){G=!0;break}X=X.previous}var w=B;if(z===42||z===95)if(G){var F=B.numdelims>=2&&X.numdelims>=2?2:1;var V=X.node;var J=B.node;X.numdelims-=F;B.numdelims-=F;V._literal=V._literal.slice(0,V._literal.length-F);J._literal=J._literal.slice(0,
J._literal.length-F);var P=new R4(F===1?"emph":"strong");for(F=V._next;F&&F!==J;){var d=F._next;V4(F);P.appendChild(F);F=d}obm(V,P);F=X;d=B;F.next!==d&&(F.next=d,d.previous=F);X.numdelims===0&&(V4(V),HPo(f,X));B.numdelims===0&&(V4(J),X=B.next,HPo(f,B),B=X)}else B=B.next;else z===39?(B.node._literal="\u2019",G&&(X.node._literal="\u2018"),B=B.next):z===34&&(B.node._literal="\u201d",G&&(X.node.literal="\u201c"),B=B.next);G||b||(g[z]=w.previous,w.can_open||HPo(f,w))}else B=B.next}for(;f.delimiters!==
null&&f.delimiters!==S;)HPo(f,f.delimiters)},$J1=function(f){f=f.match(Bvi);
return f===null?null:aUj(f.substr(1,f.length-2))},Ql8=function(f){var S=f.match(GYv);
if(S===null){S=f.pos;for(var B=0,G;(G=f.peek())!==-1;)if(G===92)f.pos+=1,f.peek()!==-1&&(f.pos+=1);else if(G===40)f.pos+=1,B+=1;else if(G===41)if(B<1)break;else f.pos+=1,--B;else if(Tvm.exec(FY(G))!==null)break;else f.pos+=1;S=f.subject.substr(S,f.pos-S);return yKg(aUj(S))}return yKg(aUj(S.substr(1,S.length-2)))},YWg=function(f){f=f.match(K9N);
return f===null||f.length>1001?0:f.length},rOL=function(f,S,B,G){f.brackets!==null&&(f.brackets.bracketAfter=!0);
f.brackets={node:S,previous:f.brackets,previousDelimiter:f.delimiters,index:B,image:G,active:!0}},jli=function(f,S){var B;
return(B=f.match(dJm))?(f.options.smart?S.appendChild(J5(B.replace(zum,"\u2026").replace(Rui,function(G){var g=0,b=0;G.length%3===0?b=G.length/3:G.length%2===0?g=G.length/2:G.length%3===2?(g=1,b=(G.length-2)/3):(g=2,b=(G.length-4)/3);G="";var z;for(z=0;z<b;z++)G+="\u2014";for(z=0;z<g;z++)G+="\u2013";return G}))):S.appendChild(J5(B)),!0):!1},OPX=function(f,S,B){f.subject=S;
f.pos=0;S=f.pos;var G=YWg(f);if(G===0)return 0;var g=f.subject.substr(0,G);if(f.peek()===58)f.pos++;else return f.pos=S,0;vu(f);G=Ql8(f);if(G===null||G.length===0)return f.pos=S,0;var b=f.pos;vu(f);var z=$J1(f);z===null&&(z="",f.pos=b);var X=!0;f.match(vb1)===null&&(z===""?X=!1:(z="",f.pos=b,X=f.match(vb1)!==null));if(!X)return f.pos=S,0;g=LZj(g);if(g==="")return f.pos=S,0;B[g]||(B[g]={destination:G,title:z});return f.pos-S},xJo=function(f,S){var B,G=f.peek();
if(G===-1)return!1;switch(G){case 10:f.pos+=1;if((B=S._lastChild)&&B.type==="text"&&B._literal[B._literal.length-1]===" "){var g=B._literal[B._literal.length-2]===" ";B._literal=B._literal.replace(JO8,"");S.appendChild(new R4(g?"linebreak":"softbreak"))}else S.appendChild(new R4("softbreak"));f.match(Pug);B=!0;break;case 92:B=f.subject;f.pos+=1;f.peek()===10?(f.pos+=1,B=new R4("linebreak"),S.appendChild(B)):gbm.test(B.charAt(f.pos))?(S.appendChild(J5(B.charAt(f.pos))),f.pos+=1):S.appendChild(J5("\\"));
B=!0;break;case 96:a:if(B=f.match(mJo),B===null)B=!1;else{g=f.pos;for(var b;(b=f.match(bP6))!==null;)if(b===B){b=new R4("code");b._literal=f.subject.slice(g,f.pos-B.length).trim().replace(F9m," ");S.appendChild(b);B=!0;break a}f.pos=g;S.appendChild(J5(B));B=!0}break;case 42:case 95:B=iP6(f,G,S);break;case 39:case 34:B=f.options.smart&&iP6(f,G,S);break;case 91:B=f.pos;f.pos+=1;g=J5("[");S.appendChild(g);rOL(f,g,B,!1);B=!0;break;case 33:B=f.pos;f.pos+=1;f.peek()===91?(f.pos+=1,g=J5("!["),S.appendChild(g),
rOL(f,g,B+1,!0)):S.appendChild(J5("!"));B=!0;break;case 93:var z,X=!1,w;f.pos+=1;var F=f.pos;g=f.brackets;if(g===null)S.appendChild(J5("]"));else if(g.active){B=g.image;var V=f.pos;f.peek()===40&&(f.pos++,vu(f)&&(b=Ql8(f))!==null&&vu(f)&&(Tvm.test(f.subject.charAt(f.pos-1))&&(z=$J1(f)),1)&&vu(f)&&f.peek()===41?(f.pos+=1,X=!0):f.pos=V);if(!X){var J=f.pos,P=YWg(f);P>2?w=f.subject.slice(J,J+P):g.bracketAfter||(w=f.subject.slice(g.index,F));P===0&&(f.pos=V);w&&(w=f.refmap[LZj(w)])&&(b=w.destination,z=
w.title,X=!0)}if(X){F=new R4(B?"image":"link");F._destination=b;F._title=z||"";for(b=g.node._next;b;)z=b._next,V4(b),F.appendChild(b),b=z;S.appendChild(F);qWm(f,g.previousDelimiter);f.brackets=f.brackets.previous;V4(g.node);if(!B)for(g=f.brackets;g!==null;)g.image||(g.active=!1),g=g.previous}else f.brackets=f.brackets.previous,f.pos=F,S.appendChild(J5("]"))}else S.appendChild(J5("]")),f.brackets=f.brackets.previous;B=!0;break;case 60:(B=f.match(XFi))?(B=B.slice(1,B.length-1),g=new R4("link"),g._destination=
yKg("mailto:"+B),g._title="",g.appendChild(J5(B)),S.appendChild(g),B=!0):(B=f.match(wF7))?(B=B.slice(1,B.length-1),g=new R4("link"),g._destination=yKg(B),g._title="",g.appendChild(J5(B)),S.appendChild(g),B=!0):B=!1;B||(B=f.match(AKN),B===null?B=!1:(g=new R4("html_inline"),g._literal=B,S.appendChild(g),B=!0));break;case 38:(B=f.match(euX))?(S.appendChild(J5(Ct$(B))),B=!0):B=!1;break;default:B=jli(f,S)}B||(f.pos+=1,S.appendChild(J5(FY(G))));return!0};
Pu.prototype.parseInlines=function(f){this.subject=f._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;xJo(this,f););f._string_content=null;qWm(this,null)};
Pu.prototype.parse=Pu.prototype.parseInlines;var EbX=[/./,/^<(?: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")],L9m=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],kY$=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,nbm=/^[#`~*+_=<>0-9-\|]|\|/,slX=/[^ \t\f\v\r\n]/,DJ8=/^[*+-]/,Ie8=/^(\d{1,9})([.)])/,UJN=/^#{1,6}(?:[ \t]+|$)/,Cu8=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,pF1=/^(?:`{3,}|~{3,})(?= *$)/,AOj=/^(?:=+|-+)[ \t]*$/,Nvv=/\r\n|\n|\r/,njN=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,sQ1=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,Md$={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(f){return f!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(f,S){for(f=S._firstChild;f;){if(kq1(f)&&f._next){S._listData.tight=!1;break}for(var B=f._firstChild;B;){if(kq1(B)&&(f._next||B._next)){S._listData.tight=!1;break}B=B._next}f=f._next}},
canContain:function(f){return f==="item"},
acceptsLines:!1},block_quote:{continue:function(f){var S=f.currentLine;if(f.indented||mj(S,f.nextNonspace)!==62)return 1;Kd(f);dx(f,1,!1);bT(mj(S,f.offset))&&dx(f,1,!0);return 0},
finalize:function(){},
canContain:function(f){return f!=="item"},
acceptsLines:!1},item:{continue:function(f,S){if(f.blank){if(S._firstChild==null)return 1;Kd(f)}else if(f.indent>=S._listData.markerOffset+S._listData.padding)dx(f,S._listData.markerOffset+S._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(f){return f!=="item"&&!D_V(f)},
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(f,S){var B=f.currentLine,G=f.indent;if(S._isFenced){if((G=G<=3&&B.charAt(f.nextNonspace)===S._fenceChar&&B.slice(f.nextNonspace).match(pF1))&&G[0].length>=S._fenceLength)return f.finalize(S,f.lineNumber),2;for(S=S._fenceOffset;S>0&&bT(mj(B,f.offset));)dx(f,1,!0),S--}else if(G>=4)dx(f,4,!0);else if(f.blank)Kd(f);else return 1;return 0},
finalize:function(f,S){if(S._isFenced){var B=S._string_content,G=B.indexOf("\n");f=B.slice(0,G);B=B.slice(G+1);S.info=aUj(f.trim());S._literal=B}else S._literal=S._string_content.replace(/(\n *)+$/,"\n");S._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(f,S){return!f.blank||S._htmlBlockType!==6&&S._htmlBlockType!==7?0:1},
finalize:function(f,S){S._literal=S._string_content.replace(/(\n *)+$/,"");S._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(f){return f.blank?1:0},
finalize:function(f,S){for(var B,G=!1;mj(S._string_content,0)===91&&(B=OPX(f.inlineParser,S._string_content,f.refmap));)S._string_content=S._string_content.slice(B),G=!0;G&&!slX.test(S._string_content)&&V4(S)},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(f){return zl(f.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(f){return f=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(f,S){if(!S._rowIsDelimiter){f=S._isHeader?"th":"td";for(var B=S._parent._tableColumns,G=S._string_content,g=0,b="",z,X=S._sourcepos[0][0];g<G.length;){switch(G[g]){case "|":z&&(z._string_content=b.trim(),b="",z=null,B--,B<=0&&(g=G.length));break;default:if(!z){z=new R4(f,[[X,g],[X,g]]);var w=S._parent._columnAlignment,F=S._parent._tableColumns-B;w&&F<=w.length&&F>=0&&(z._alignment=w[F]);S.appendChild(z)}b+=G[g];z._sourcepos[1][1]=g}g++}z&&(z._string_content=b.trim());S._string_content=
""}},
canContain:function(f){return f!=="row"},
acceptsLines:!1}},ZP$=[function(f){if(f.indented||mj(f.currentLine,f.nextNonspace)!==62)return 0;Kd(f);dx(f,1,!1);bT(mj(f.currentLine,f.offset))&&dx(f,1,!0);iH(f);f.addChild("block_quote",f.nextNonspace);return 1},
function(f){var S;if(!f.indented&&(S=f.currentLine.slice(f.nextNonspace).match(UJN))){Kd(f);dx(f,S[0].length,!1);iH(f);var B=f.addChild("heading",f.nextNonspace);B.level=S[0].trim().length;B._string_content=f.currentLine.slice(f.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");dx(f,f.currentLine.length-f.offset);return 2}return 0},
function(f){var S;if(!f.indented&&(S=f.currentLine.slice(f.nextNonspace).match(Cu8))){var B=S[0].length;iH(f);var G=f.addChild("code_block",f.nextNonspace);G._isFenced=!0;G._fenceLength=B;G._fenceChar=S[0][0];G._fenceOffset=f.indent;Kd(f);dx(f,B,!1);return 2}return 0},
function(f,S){if(!f.indented&&mj(f.currentLine,f.nextNonspace)===60){var B=f.currentLine.slice(f.nextNonspace),G;for(G=1;G<=7;G++)if(EbX[G].test(B)&&(G<7||S.type!=="paragraph"))return iH(f),f.addChild("html_block",f.offset)._htmlBlockType=G,2}return 0},
function(f,S){var B;if(!f.indented&&S.type==="paragraph"&&(B=f.currentLine.slice(f.nextNonspace).match(AOj))){iH(f);var G=new R4("heading",S.sourcepos);G.level=B[0][0]==="="?1:2;G._string_content=S._string_content;obm(S,G);V4(S);f.tip=G;dx(f,f.currentLine.length-f.offset,!1);return 2}return 0},
function(f){return!f.indented&&kY$.test(f.currentLine.slice(f.nextNonspace))?(iH(f),f.addChild("thematic_break",f.nextNonspace),dx(f,f.currentLine.length-f.offset,!1),2):0},
function(f,S){var B,G;if(!(G=f.indented&&S.type!=="list")){a:{var g=S,b=f.currentLine.slice(f.nextNonspace);G={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:f.indent};if(B=b.match(DJ8))G.type="bullet",G.bulletChar=B[0][0];else{if(!(B=b.match(Ie8))||g.type==="paragraph"&&B[1]!=="1"){B=null;break a}G.type="ordered";G.start=parseInt(B[1],10);G.delimiter=B[2]}var z=mj(f.currentLine,f.nextNonspace+B[0].length);if(z!==-1&&z!==9&&z!==32||g.type==="paragraph"&&!f.currentLine.slice(f.nextNonspace+
B[0].length).match(slX))B=null;else{Kd(f);dx(f,B[0].length,!0);g=f.column;b=f.offset;do dx(f,1,!0),z=mj(f.currentLine,f.offset);while(f.column-g<5&&bT(z));z=mj(f.currentLine,f.offset)===-1;var X=f.column-g;X>=5||X<1||z?(G.padding=B[0].length+1,f.column=g,f.offset=b,bT(mj(f.currentLine,f.offset))&&dx(f,1,!0)):G.padding=B[0].length+X;B=G}}G=!B}if(G)return 0;iH(f);(G=f.tip.type!=="list")||(S=S._listData,G=!(S.type===B.type&&S.delimiter===B.delimiter&&S.bulletChar===B.bulletChar));G&&(S=f.addChild("list",
f.nextNonspace),S._listData=B);S=f.addChild("item",f.nextNonspace);S._listData=B;return 1},
function(f){var S;return((S=f.options.shouldParseIndentAsCodeBlock)!=null?S:1)&&f.indented&&f.tip.type!=="paragraph"&&!f.blank?(dx(f,4,!0),iH(f),f.addChild("code_block",f.offset),2):0},
function(f,S){var B=zl(f.currentLine),G=zl(f.lookahead);if(B!==0&&G<0&&Math.abs(B)==Math.abs(G)&&!D_V(S.type)){iH(f);S=f.addChild("table",f.nextNonspace);S._tableRows=1;S._tableColumns=Math.abs(B);B=f.lookahead;if(sQ1.test(B)){G=[];for(var g=0,b=!1,z=0,X=void 0;g<B.length;){var w=z>=3;switch(B[g]){case "-":z++;break;case "|":b&&(G.push(X),X=void 0,z=0);b=!0;break;case ":":X||w||(X="left"),!X&&w&&(X="right"),X==="left"&&w&&(X="center")}g++}B=G}else B=void 0;S._columnAlignment=B;S=f.addChild("row",
f.nextNonspace);S._isHeader=!0;dx(f,f.currentLine.length-f.offset,!1);S._string_content=f.currentLine;return 1}return 0},
function(f,S){if(S.type=="table"&&zl(f.currentLine)!==0){iH(f);var B=S;S=f.addChild("row",f.nextNonspace);zl(f.currentLine)<0?S._rowIsDelimiter=!0:B._tableRows+=1;dx(f,f.currentLine.length-f.offset,!1);S._string_content=f.currentLine;return 2}return 0}],AC1=function(){var f={shouldParseIndentAsCodeBlock:!1};
f=f===void 0?{}:f;this.lastMatchedContainer=this.doc=IWN();this.refmap={};this.lastLineLength=0;this.inlineParser=new Pu(f);this.options=f;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=Md$;this.blockStarts=ZP$},td$=function(f){f.partiallyConsumedTab&&(f.offset+=1,f.tip._string_content+=" ".repeat(4-f.column%
4));
f.tip._string_content+=f.currentLine.slice(f.offset)+"\n"};
AC1.prototype.addChild=function(f,S){for(;!this.blocks[this.tip.type].canContain(f);)this.finalize(this.tip,this.lineNumber-1);f=new R4(f,[[this.lineNumber,S+1],[0,0]]);f._string_content="";this.tip.appendChild(f);return this.tip=f};
var iH=function(f){if(!f.allClosed){for(;f.oldtip!==f.lastMatchedContainer;){var S=f.oldtip._parent;f.finalize(f.oldtip,f.lineNumber-1);f.oldtip=S}f.allClosed=!0}},dx=function(f,S,B){for(var G=f.currentLine,g,b;S>0&&(b=G[f.offset]);)b==="\t"?(g=4-f.column%4,B?(f.partiallyConsumedTab=g>S,g=g>S?S:g,f.column+=g,f.offset+=f.partiallyConsumedTab?0:1,S-=g):(f.partiallyConsumedTab=!1,f.column+=g,f.offset+=1,--S)):(f.partiallyConsumedTab=!1,f.offset+=1,f.column+=1,--S)},Kd=function(f){f.offset=f.nextNonspace;
f.column=f.nextNonspaceColumn;f.partiallyConsumedTab=!1},ucg=function(f){for(var S=f.currentLine,B=f.offset,G=f.column,g;(g=S.charAt(B))!=="";)if(g===" ")B++,G++;
else if(g==="\t")B++,G+=4-G%4;else break;f.blank=g==="\n"||g==="\r"||g==="";f.nextNonspace=B;f.nextNonspaceColumn=G;f.indent=f.nextNonspaceColumn-f.column;f.indented=f.indent>=4};
AC1.prototype.finalize=function(f,S){var B=f._parent;f._open=!1;f.sourcepos[1]=[S,this.lastLineLength];this.blocks[f.type].finalize(this,f);this.tip=B};
AC1.prototype.parse=function(f){this.tip=this.doc=IWN();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!f)return this.doc;this.options.time&&console.time("preparing input");var S=f.split(Nvv),B=S.length;f.charCodeAt(f.length-1)===10&&--B;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(f=0;f<B;f++)a:{var G=void 0,g=S[f],b=S[f+1],z=!0,X=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;g.indexOf("\x00")!==-1&&(g=g.replace(/\0/g,"\ufffd"));this.currentLine=g;for(this.lookahead=b;(G=X._lastChild)&&G._open;){X=G;ucg(this);switch(this.blocks[X.type].continue(this,X)){case 0:break;case 1:z=!1;break;case 2:this.lastLineLength=g.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!z){X=X._parent;break}}this.allClosed=X===this.oldtip;this.lastMatchedContainer=
X;G=X.type!=="paragraph"&&Md$[X.type].acceptsLines;b=this.blockStarts;for(z=b.length;!G;){ucg(this);if(!this.indented&&!nbm.test(g.slice(this.nextNonspace))){Kd(this);break}for(var w=0;w<z;){var F=b[w](this,X);if(F===1){X=this.tip;break}else if(F===2){X=this.tip;G=!0;break}else w++}if(w===z){Kd(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){iH(this);this.blank&&X.lastChild&&(X.lastChild._lastLineBlank=!0);G=X.type;b=this.blank&&!(G==="block_quote"||G==="code_block"&&X._isFenced||
G==="item"&&!X._firstChild&&X.sourcepos[0][0]===this.lineNumber);for(z=X;z;)z._lastLineBlank=b,z=z._parent;this.blocks[G].acceptsLines?(td$(this),G==="html_block"&&X._htmlBlockType>=1&&X._htmlBlockType<=5&&L9m[X._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(X,this.lineNumber)):this.offset<g.length&&!this.blank&&(this.addChild("paragraph",this.offset),Kd(this),td$(this))}else td$(this);this.lastLineLength=g.length}for(;this.tip;)this.finalize(this.tip,B);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");g=new feo(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;B=g.next();)S=B.node,f=S.type,B.entering||f!=="paragraph"&&f!=="heading"&&f!=="th"&&f!="td"||this.inlineParser.parse(S);this.options.time&&console.timeEnd("inline parsing");return this.doc};U_K.prototype.render=function(f){f=new feo(f);var S;this.buffer="";for(this.lastOut="\n";S=f.next();){var B=S.node.type;if(this[B])this[B](S.node,S.entering)}return this.buffer};
U_K.prototype.out=function(f){Hu(this,f)};
var Hu=function(f,S){f.buffer+=S;f.lastOut=S};
U_K.prototype.cr=function(){this.lastOut!=="\n"&&Hu(this,"\n")};var aeL=/^javascript:|vbscript:|file:|data:/i,yO7=/^data:image\/(?:png|gif|jpeg|webp)/i,W97=function(f){return aeL.test(f)&&!yO7.test(f)};
Xv.prototype=Object.create(U_K.prototype);_.e=Xv.prototype;_.e.text=function(f){this.out(f.literal)};
_.e.html_inline=function(f){this.options.safe?Hu(this,"\x3c!-- raw HTML omitted --\x3e"):Hu(this,f.literal)};
_.e.html_block=function(f){this.cr();this.options.safe?Hu(this,"\x3c!-- raw HTML omitted --\x3e"):Hu(this,f.literal);this.cr()};
_.e.softbreak=function(){Hu(this,this.options.softbreak)};
_.e.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.e.link=function(f,S){var B=this.attrs(f);S?(this.options.safe&&W97(f.destination)||B.push(["href",Te(f.destination,!0)]),f.title&&B.push(["title",Te(f.title,!0)]),this.tag("a",B)):this.tag("/a")};
_.e.image=function(f,S){S?(this.disableTags===0&&(this.options.safe&&W97(f.destination)?Hu(this,'<img src="" alt="'):Hu(this,'<img src="'+Te(f.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(f.title&&Hu(this,'" title="'+Te(f.title,!0)),Hu(this,'" />')))};
_.e.emph=function(f,S){this.tag(S?"em":"/em")};
_.e.strong=function(f,S){this.tag(S?"strong":"/strong")};
_.e.paragraph=function(f,S){var B=f.parent.parent;f=this.attrs(f);B!==null&&B.type==="list"&&B.listTight||(S?(this.cr(),this.tag("p",f)):(this.tag("/p"),this.cr()))};
_.e.heading=function(f,S){var B="h"+f.level;f=this.attrs(f);S?(this.cr(),this.tag(B,f)):(this.tag("/"+B),this.cr())};
_.e.code=function(f){this.tag("code");this.out(f.literal);this.tag("/code")};
_.e.code_block=function(f){var S=f.info?f.info.split(/\s+/):[],B=this.attrs(f);S.length>0&&S[0].length>0&&B.push(["class","language-"+Te(S[0],!0)]);this.cr();this.tag("pre");this.tag("code",B);this.out(f.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.e.thematic_break=function(f){f=this.attrs(f);this.cr();this.tag("hr",f,!0);this.cr()};
_.e.block_quote=function(f,S){f=this.attrs(f);S?(this.cr(),this.tag("blockquote",f)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.e.list=function(f,S){var B=f.listType==="bullet"?"ul":"ol",G=this.attrs(f);S?(f=f.listStart,f!==null&&f!==1&&G.push(["start",f.toString()]),this.cr(),this.tag(B,G)):(this.cr(),this.tag("/"+B));this.cr()};
_.e.item=function(f,S){f=this.attrs(f);S?this.tag("li",f):(this.tag("/li"),this.cr())};
_.e.custom_inline=function(f,S){S&&f.onEnter?Hu(this,f.onEnter):!S&&f.onExit&&Hu(this,f.onExit)};
_.e.custom_block=function(f,S){this.cr();S&&f.onEnter?Hu(this,f.onEnter):!S&&f.onExit&&Hu(this,f.onExit);this.cr()};
_.e.table=function(f,S){f=this.attrs(f);S?(this.cr(),this.tag("table",f)):(this.tag("/table"),this.cr())};
_.e.row=function(f,S){f._rowIsDelimiter||(f=this.attrs(f),S?this.tag("tr",f):this.tag("/tr"))};
_.e.td=function(f,S){var B=this.attrs(f);f._alignment&&B.push(["align",f._alignment]);S?this.tag("td",B):this.tag("/td")};
_.e.th=function(f,S){var B=this.attrs(f);f._alignment&&B.push(["align",f._alignment]);S?this.tag("th",B):this.tag("/th")};
_.e.out=function(f){Hu(this,Te(f,!1))};
_.e.tag=function(f,S,B){if(!(this.disableTags>0)){this.buffer+="<"+f;if(S&&S.length>0){f=0;for(var G;(G=S[f])!==void 0;)this.buffer+=" "+G[0]+'="'+G[1]+'"',f++}B&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.e.attrs=function(f){var S=[];this.options.sourcepos&&(f=f.sourcepos)&&S.push(["data-sourcepos",String(f[0][0])+":"+String(f[0][1])+"-"+String(f[1][0])+":"+String(f[1][1])]);return S};
Xv.prototype.text=Xv.prototype.text;Xv.prototype.html_inline=Xv.prototype.html_inline;Xv.prototype.html_block=Xv.prototype.html_block;Xv.prototype.softbreak=Xv.prototype.softbreak;Xv.prototype.linebreak=Xv.prototype.linebreak;Xv.prototype.link=Xv.prototype.link;Xv.prototype.image=Xv.prototype.image;Xv.prototype.emph=Xv.prototype.emph;Xv.prototype.strong=Xv.prototype.strong;Xv.prototype.paragraph=Xv.prototype.paragraph;Xv.prototype.heading=Xv.prototype.heading;Xv.prototype.code=Xv.prototype.code;
Xv.prototype.code_block=Xv.prototype.code_block;Xv.prototype.thematic_break=Xv.prototype.thematic_break;Xv.prototype.block_quote=Xv.prototype.block_quote;Xv.prototype.list=Xv.prototype.list;Xv.prototype.item=Xv.prototype.item;Xv.prototype.custom_inline=Xv.prototype.custom_inline;Xv.prototype.custom_block=Xv.prototype.custom_block;Xv.prototype.table=Xv.prototype.table;Xv.prototype.row=Xv.prototype.row;Xv.prototype.td=Xv.prototype.td;Xv.prototype.th=Xv.prototype.th;Xv.prototype.out=Xv.prototype.out;
Xv.prototype.tag=Xv.prototype.tag;Xv.prototype.attrs=Xv.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 cO8,le6,etQ;(function(){function f(L,O){return L<O?-1:L>O?1:L>=O?0:NaN}
function S(L){return function(O,D){return f(L(O),D)}}
function B(){for(var L=0,O=arguments.length,D={},y;L<O;++L){if(!(y=arguments[L]+"")||y in D)throw Error("re`"+y);D[y]=[]}return new G(D)}
function G(L){this._=L}
function g(L,O){return L.trim().split(/^|\s+/).map(function(D){var y="",gW=D.indexOf(".");gW>=0&&(y=D.slice(gW+1),D=D.slice(0,gW));if(D&&!O.hasOwnProperty(D))throw Error("se`"+D);return{type:D,name:y}})}
function b(L,O,D){for(var y=0,gW=L.length;y<gW;++y)if(L[y].name===O){L[y]=$ae;L=L.slice(0,y).concat(L.slice(y+1));break}D!=null&&L.push({name:O,value:D});return L}
function z(L){var O=L,D=O.indexOf(":");D>=0&&(O=L.slice(0,D))!=="xmlns"&&(L=L.slice(D+1));return w5.hasOwnProperty(O)?{space:w5[O],local:L}:L}
function X(L){return function(){var O=this.ownerDocument,D=this.namespaceURI;return D==="http://www.w3.org/1999/xhtml"&&O.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?O.createElement(L):O.createElementNS(D,L)}}
function w(L){return function(){return this.ownerDocument.createElementNS(L.space,L.local)}}
function F(L){L=z(L);return(L.local?w:X)(L)}
function V(){}
function J(L){return L==null?V:function(){return this.querySelector(L)}}
function P(L){return Array(L.length)}
function d(L,O){this.ownerDocument=L.ownerDocument;this.namespaceURI=L.namespaceURI;this._next=null;this._parent=L;this.__data__=O}
function Q(L){return function(){return L}}
function x(L,O,D,y,gW,Tj){for(var KM=0,j1,lK=O.length,yN=Tj.length;KM<yN;++KM)(j1=O[KM])?(j1.__data__=Tj[KM],y[KM]=j1):D[KM]=new d(L,Tj[KM]);for(;KM<lK;++KM)if(j1=O[KM])gW[KM]=j1}
function E(L,O,D,y,gW,Tj,KM){var j1,lK,yN={},fi=O.length,zo=Tj.length,NN=Array(fi),Tn;for(j1=0;j1<fi;++j1)if(lK=O[j1])NN[j1]=Tn="$"+KM.call(lK,lK.__data__,j1,O),Tn in yN?gW[j1]=lK:yN[Tn]=lK;for(j1=0;j1<zo;++j1)Tn="$"+KM.call(L,Tj[j1],j1,Tj),(lK=yN[Tn])?(y[j1]=lK,lK.__data__=Tj[j1],yN[Tn]=null):D[j1]=new d(L,Tj[j1]);for(j1=0;j1<fi;++j1)(lK=O[j1])&&yN[NN[j1]]===lK&&(gW[j1]=lK)}
function U(L,O){return L<O?-1:L>O?1:L>=O?0:NaN}
function A(L){return function(){this.removeAttribute(L)}}
function t(L){return function(){this.removeAttributeNS(L.space,L.local)}}
function M(L,O){return function(){this.setAttribute(L,O)}}
function a(L,O){return function(){this.setAttributeNS(L.space,L.local,O)}}
function l(L,O){return function(){var D=O.apply(this,arguments);D==null?this.removeAttribute(L):this.setAttribute(L,D)}}
function mx(L,O){return function(){var D=O.apply(this,arguments);D==null?this.removeAttributeNS(L.space,L.local):this.setAttributeNS(L.space,L.local,D)}}
function zj(L){return function(){this.style.removeProperty(L)}}
function VN(L,O,D){return function(){this.style.setProperty(L,O,D)}}
function $Q(L,O,D){return function(){var y=O.apply(this,arguments);y==null?this.style.removeProperty(L):this.style.setProperty(L,y,D)}}
function OV(L,O){return L.style.getPropertyValue(O)||(L.ownerDocument&&L.ownerDocument.defaultView||L.document&&L||L.defaultView).getComputedStyle(L,null).getPropertyValue(O)}
function rW(L){return function(){delete this[L]}}
function MA(L,O){return function(){this[L]=O}}
function UV(L,O){return function(){var D=O.apply(this,arguments);D==null?delete this[L]:this[L]=D}}
function W7(){this.textContent=""}
function c7(L){return function(){this.textContent=L}}
function Q$(L){return function(){var O=L.apply(this,arguments);this.textContent=O==null?"":O}}
function To(){this.innerHTML=""}
function Ci(L){return function(){this.innerHTML=L}}
function VM(L){return function(){var O=L.apply(this,arguments);this.innerHTML=O==null?"":O}}
function Go(){return null}
function Io(){var L=this.parentNode;L&&L.removeChild(this)}
function uz(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function RT(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function P7(L,O,D){L=O8(L,O,D);return function(y){var gW=y.relatedTarget;gW&&(gW===this||gW.compareDocumentPosition(this)&8)||L.call(this,y)}}
function O8(L,O,D){return function(){L.call(this,this.__data__,O,D)}}
function ao(L){return L.trim().split(/^|\s+/).map(function(O){var D="",y=O.indexOf(".");y>=0&&(D=O.slice(y+1),O=O.slice(0,y));return{type:O,name:D}})}
function H7(L){return function(){var O=this.__on;if(O){for(var D=0,y=-1,gW=O.length,Tj;D<gW;++D)(Tj=O[D],L.type&&Tj.type!==L.type||Tj.name!==L.name)?O[++y]=Tj:this.removeEventListener(Tj.type,Tj.listener,Tj.capture);++y?O.length=y:delete this.__on}}}
function um(L,O,D){var y=ER6.hasOwnProperty(L.type)?P7:O8;return function(gW,Tj,KM){gW=this.__on;var j1;Tj=y(O,Tj,KM);if(gW){KM=0;for(var lK=gW.length;KM<lK;++KM)if((j1=gW[KM]).type===L.type&&j1.name===L.name){this.removeEventListener(j1.type,j1.listener,j1.capture);this.addEventListener(j1.type,j1.listener=Tj,j1.capture=D);j1.value=O;return}}this.addEventListener(L.type,Tj,D);j1={type:L.type,name:L.name,value:O,listener:Tj,capture:D};gW?gW.push(j1):this.__on=[j1]}}
function CQ(L,O,D){var y=L.ownerDocument&&L.ownerDocument.defaultView||L.document&&L||L.defaultView,gW=y.CustomEvent;typeof gW==="function"?gW=new gW(O,D):(gW=y.document.createEvent("Event"),D?(gW.initEvent(O,D.bubbles,D.cancelable),gW.detail=D.detail):gW.initEvent(O,!1,!1));L.dispatchEvent(gW)}
function t1(L,O){return function(){return CQ(this,L,O)}}
function em(L,O){return function(){return CQ(this,L,O.apply(this,arguments))}}
function Ig(L,O){this._groups=L;this._parents=O}
function vO(){return new Ig([[document.documentElement]],QmB)}
function v7(){this._="@"+(++YH2).toString(36)}
function YX(L,O,D){L.prototype=O.prototype=D;D.constructor=L}
function we(L,O){L=Object.create(L.prototype);for(var D in O)L[D]=O[D];return L}
function bo(){}
function bz(L){var O;L=(L+"").trim().toLowerCase();return(O=r$z.exec(L))?(O=parseInt(O[1],16),new fX(O>>8&15|O>>4&240,O>>4&15|O&240,(O&15)<<4|O&15,1)):(O=jmu.exec(L))?KQ(parseInt(O[1],16)):(O=O4o.exec(L))?new fX(O[1],O[2],O[3],1):(O=xaX.exec(L))?new fX(O[1]*255/100,O[2]*255/100,O[3]*255/100,1):(O=EWO.exec(L))?pk(O[1],O[2],O[3],O[4]):(O=LGZ.exec(L))?pk(O[1]*255/100,O[2]*255/100,O[3]*255/100,O[4]):(O=kd2.exec(L))?m8(O[1],O[2]/100,O[3]/100,1):(O=nW$.exec(L))?m8(O[1],O[2]/100,O[3]/100,O[4]):Lw7.hasOwnProperty(L)?
KQ(Lw7[L]):L==="transparent"?new fX(NaN,NaN,NaN,0):null}
function KQ(L){return new fX(L>>16&255,L>>8&255,L&255,1)}
function pk(L,O,D,y){y<=0&&(L=O=D=NaN);return new fX(L,O,D,y)}
function pi(L){L instanceof bo||(L=bz(L));if(!L)return new fX;L=L.rgb();return new fX(L.r,L.g,L.b,L.opacity)}
function Y$(L,O,D,y){return arguments.length===1?pi(L):new fX(L,O,D,y==null?1:y)}
function fX(L,O,D,y){this.r=+L;this.g=+O;this.b=+D;this.opacity=+y}
function RO(L){L=Math.max(0,Math.min(255,Math.round(L)||0));return(L<16?"0":"")+L.toString(16)}
function m8(L,O,D,y){y<=0?L=O=D=NaN:D<=0||D>=1?L=O=NaN:O<=0&&(L=NaN);return new cf(L,O,D,y)}
function wu(L){if(L instanceof cf)return new cf(L.h,L.s,L.l,L.opacity);L instanceof bo||(L=bz(L));if(!L)return new cf;if(L instanceof cf)return L;L=L.rgb();var O=L.r/255,D=L.g/255,y=L.b/255,gW=Math.min(O,D,y),Tj=Math.max(O,D,y),KM=NaN,j1=Tj-gW,lK=(Tj+gW)/2;j1?(KM=O===Tj?(D-y)/j1+(D<y)*6:D===Tj?(y-O)/j1+2:(O-D)/j1+4,j1/=lK<.5?Tj+gW:2-Tj-gW,KM*=60):j1=lK>0&&lK<1?0:KM;return new cf(KM,j1,lK,L.opacity)}
function z1(L,O,D,y){return arguments.length===1?wu(L):new cf(L,O,D,y==null?1:y)}
function cf(L,O,D,y){this.h=+L;this.s=+O;this.l=+D;this.opacity=+y}
function ye(L,O,D){return(L<60?O+(D-O)*L/60:L<180?D:L<240?O+(D-O)*(240-L)/60:O)*255}
function GM(L){if(L instanceof iK)return new iK(L.l,L.a,L.b,L.opacity);if(L instanceof J1){if(isNaN(L.h))return new iK(L.l,0,0,L.opacity);var O=L.h*kw8;return new iK(L.l,Math.cos(O)*L.c,Math.sin(O)*L.c,L.opacity)}L instanceof fX||(L=pi(L));var D=e2(L.r),y=e2(L.g),gW=e2(L.b);O=nM(.2225045*D+.7168786*y+.0606169*gW);if(D===y&&y===gW)var Tj=D=O;else Tj=nM((.4360747*D+.3850649*y+.1430804*gW)/.96422),D=nM((.0139322*D+.0971045*y+.7141733*gW)/.82521);return new iK(116*O-16,500*(Tj-O),200*(O-D),L.opacity)}
function iK(L,O,D,y){this.l=+L;this.a=+O;this.b=+D;this.opacity=+y}
function nM(L){return L>smz?Math.pow(L,1/3):L/nRi+sHL}
function pM(L){return L>$O?L*L*L:nRi*(L-sHL)}
function FL(L){return 255*(L<=.0031308?12.92*L:1.055*Math.pow(L,1/2.4)-.055)}
function e2(L){return(L/=255)<=.04045?L/12.92:Math.pow((L+.055)/1.055,2.4)}
function j0(L){if(L instanceof J1)return new J1(L.h,L.c,L.l,L.opacity);L instanceof iK||(L=GM(L));if(L.a===0&&L.b===0)return new J1(NaN,0,L.l,L.opacity);var O=Math.atan2(L.b,L.a)*DIv;return new J1(O<0?O+360:O,Math.sqrt(L.a*L.a+L.b*L.b),L.l,L.opacity)}
function hX(L,O,D,y){return arguments.length===1?j0(L):new J1(L,O,D,y==null?1:y)}
function J1(L,O,D,y){this.h=+L;this.c=+O;this.l=+D;this.opacity=+y}
function wN(L,O,D,y){if(arguments.length===1){var gW=L;if(gW instanceof KY)gW=new KY(gW.h,gW.s,gW.l,gW.opacity);else{gW instanceof fX||(gW=pi(gW));var Tj=gW.g/255,KM=gW.b/255,j1=(I9X*KM+gW.r/255*-1.7884503806-3.5172982438*Tj)/(I9X+-1.7884503806-3.5172982438);KM-=j1;var lK=(1.97294*(Tj-j1)- -.29227*KM)/-.90649;KM=(Tj=Math.sqrt(lK*lK+KM*KM)/(1.97294*j1*(1-j1)))?Math.atan2(lK,KM)*DIv-120:NaN;gW=new KY(KM<0?KM+360:KM,Tj,j1,gW.opacity)}}else gW=new KY(L,O,D,y==null?1:y);return gW}
function KY(L,O,D,y){this.h=+L;this.s=+O;this.l=+D;this.opacity=+y}
function TX(L,O,D,y,gW){var Tj=L*L,KM=Tj*L;return((1-3*L+3*Tj-KM)*O+(4-6*Tj+3*KM)*D+(1+3*L+3*Tj-3*KM)*y+KM*gW)/6}
function bm(L){return function(){return L}}
function JJ(L,O){return function(D){return L+D*O}}
function vv(L,O,D){return L=Math.pow(L,D),O=Math.pow(O,D)-L,D=1/D,function(y){return Math.pow(L+y*O,D)}}
function kg(L,O){var D=O-L;return D?JJ(L,D>180||D<-180?D-360*Math.round(D/360):D):bm(isNaN(L)?O:L)}
function dz(L){return(L=+L)===1?NH:function(O,D){return D-O?vv(O,D,L):bm(isNaN(O)?D:O)}}
function NH(L,O){var D=O-L;return D?JJ(L,D):bm(isNaN(L)?O:L)}
function xj(L){return function(O){var D=O.length,y=Array(D),gW=Array(D),Tj=Array(D),KM;for(KM=0;KM<D;++KM){var j1=Y$(O[KM]);y[KM]=j1.r||0;gW[KM]=j1.g||0;Tj[KM]=j1.b||0}y=L(y);gW=L(gW);Tj=L(Tj);j1.opacity=1;return function(lK){j1.r=y(lK);j1.g=gW(lK);j1.b=Tj(lK);return j1+""}}}
function NA(L,O){return L=+L,O-=L,function(D){return L+O*D}}
function BO(L){return function(){return L}}
function Uu(L){return function(O){return L(O)+""}}
function lz(L,O){var D=pGN.lastIndex=AoM.lastIndex=0,y,gW,Tj,KM=-1,j1=[],lK=[];L+="";for(O+="";(y=pGN.exec(L))&&(gW=AoM.exec(O));)(Tj=gW.index)>D&&(Tj=O.slice(D,Tj),j1[KM]?j1[KM]+=Tj:j1[++KM]=Tj),(y=y[0])===(gW=gW[0])?j1[KM]?j1[KM]+=gW:j1[++KM]=gW:(j1[++KM]=null,lK.push({i:KM,x:NA(y,gW)})),D=AoM.lastIndex;D<O.length&&(Tj=O.slice(D),j1[KM]?j1[KM]+=Tj:j1[++KM]=Tj);return j1.length<2?lK[0]?Uu(lK[0].x):BO(O):(O=lK.length,function(yN){for(var fi=0,zo;fi<O;++fi)j1[(zo=lK[fi]).i]=zo.x(yN);return j1.join("")})}
function gz(L,O,D,y,gW,Tj){var KM,j1,lK;if(KM=Math.sqrt(L*L+O*O))L/=KM,O/=KM;if(lK=L*D+O*y)D-=L*lK,y-=O*lK;if(j1=Math.sqrt(D*D+y*y))D/=j1,y/=j1,lK/=j1;L*y<O*D&&(L=-L,O=-O,lK=-lK,KM=-KM);return{translateX:gW,translateY:Tj,rotate:Math.atan2(O,L)*UI7,skewX:Math.atan(lK)*UI7,scaleX:KM,scaleY:j1}}
function Mb(L,O,D,y){function gW(yN){return yN.length?yN.pop()+" ":""}
function Tj(yN,fi,zo,NN,Tn,PQ){yN!==zo||fi!==NN?(Tn=Tn.push("translate(",null,O,null,D),PQ.push({i:Tn-4,x:NA(yN,zo)},{i:Tn-2,x:NA(fi,NN)})):(zo||NN)&&Tn.push("translate("+zo+O+NN+D)}
function KM(yN,fi,zo,NN){yN!==fi?(yN-fi>180?fi+=360:fi-yN>180&&(yN+=360),NN.push({i:zo.push(gW(zo)+"rotate(",null,y)-2,x:NA(yN,fi)})):fi&&zo.push(gW(zo)+"rotate("+fi+y)}
function j1(yN,fi,zo,NN){yN!==fi?NN.push({i:zo.push(gW(zo)+"skewX(",null,y)-2,x:NA(yN,fi)}):fi&&zo.push(gW(zo)+"skewX("+fi+y)}
function lK(yN,fi,zo,NN,Tn,PQ){yN!==zo||fi!==NN?(Tn=Tn.push(gW(Tn)+"scale(",null,",",null,")"),PQ.push({i:Tn-4,x:NA(yN,zo)},{i:Tn-2,x:NA(fi,NN)})):zo===1&&NN===1||Tn.push(gW(Tn)+"scale("+zo+","+NN+")")}
return function(yN,fi){var zo=[],NN=[];yN=L(yN);fi=L(fi);Tj(yN.translateX,yN.translateY,fi.translateX,fi.translateY,zo,NN);KM(yN.rotate,fi.rotate,zo,NN);j1(yN.skewX,fi.skewX,zo,NN);lK(yN.scaleX,yN.scaleY,fi.scaleX,fi.scaleY,zo,NN);yN=fi=null;return function(Tn){for(var PQ=-1,nC=NN.length,KC;++PQ<nC;)zo[(KC=NN[PQ]).i]=KC.x(Tn);return zo.join("")}}}
function FT(L){return function(O,D){var y=L((O=z1(O)).h,(D=z1(D)).h),gW=NH(O.s,D.s),Tj=NH(O.l,D.l),KM=NH(O.opacity,D.opacity);return function(j1){O.h=y(j1);O.s=gW(j1);O.l=Tj(j1);O.opacity=KM(j1);return O+""}}}
function c2(L){return function(O,D){var y=L((O=hX(O)).h,(D=hX(D)).h),gW=NH(O.c,D.c),Tj=NH(O.l,D.l),KM=NH(O.opacity,D.opacity);return function(j1){O.h=y(j1);O.c=gW(j1);O.l=Tj(j1);O.opacity=KM(j1);return O+""}}}
function Ey(L){return function y(D){function gW(Tj,KM){var j1=L((Tj=wN(Tj)).h,(KM=wN(KM)).h),lK=NH(Tj.s,KM.s),yN=NH(Tj.l,KM.l),fi=NH(Tj.opacity,KM.opacity);return function(zo){Tj.h=j1(zo);Tj.s=lK(zo);Tj.l=yN(Math.pow(zo,D));Tj.opacity=fi(zo);return Tj+""}}
D=+D;gW.gamma=y;return gW}(1)}
function si(){return m_||(C8o(uuj),m_=gk.now()+TAN)}
function uuj(){m_=0}
function D3(){this._call=this._time=this._next=null}
function gr(L,O,D){var y=new D3;y.restart(L,O,D);return y}
function eV(){m_=(F81=gk.now())+TAN;Q7=eU=0;try{si();++Q7;for(var L=VpT,O;L;)(O=m_-L._time)>=0&&L._call.call(null,O),L=L._next;--Q7}finally{Q7=0;L=VpT;for(var D=Infinity;L;)if(L._call){D>L._time&&(D=L._time);var y=L;L=L._next}else O=L._next,L._next=null,L=y?y._next=O:VpT=O;bq=y;bD(D);m_=0}}
function Q8K(){var L=gk.now(),O=L-F81;O>1E3&&(TAN-=O,F81=L)}
function bD(L){Q7||(eU&&(eU=clearTimeout(eU)),L-m_>24?(L<Infinity&&(eU=setTimeout(eV,L-gk.now()-TAN)),m1&&(m1=clearInterval(m1))):(m1||(F81=gk.now(),m1=setInterval(Q8K,1E3)),Q7=1,C8o(eV)))}
function pGv(L,O,D){var y=new D3;O=O==null?0:+O;y.restart(function(gW){y.stop();L(gW+O)},O,D);
return y}
function N1j(L,O,D,y,gW,Tj){var KM=L.__transition;if(!KM)L.__transition={};else if(D in KM)return;Dae(L,D,{name:O,index:y,group:gW,on:IIn,tween:Uau,time:Tj.time,delay:Tj.delay,duration:Tj.duration,ease:Tj.ease,timer:null,state:0})}
function Mb1(L,O){L=BE(L,O);if(L.state>0)throw Error("te");return L}
function zf(L,O){L=BE(L,O);if(L.state>2)throw Error("ue");return L}
function BE(L,O){L=L.__transition;if(!L||!(L=L[O]))throw Error("ve");return L}
function Dae(L,O,D){function y(lK){var yN,fi;if(D.state!==1)return Tj();for(NN in KM){var zo=KM[NN];if(zo.name===D.name){if(zo.state===3)return pGv(y);zo.state===4?(zo.state=6,zo.timer.stop(),zo.on.call("interrupt",L,L.__data__,zo.index,zo.group),delete KM[NN]):+NN<O&&(zo.state=6,zo.timer.stop(),delete KM[NN])}}pGv(function(){D.state===3&&(D.state=4,D.timer.restart(gW,D.delay,D.time),gW(lK))});
D.state=2;D.on.call("start",L,L.__data__,D.index,D.group);if(D.state===2){D.state=3;j1=Array(fi=D.tween.length);var NN=0;for(yN=-1;NN<fi;++NN)if(zo=D.tween[NN].value.call(L,L.__data__,D.index,D.group))j1[++yN]=zo;j1.length=yN+1}}
function gW(lK){lK=lK<D.duration?D.ease.call(null,lK/D.duration):(D.timer.restart(Tj),D.state=5,1);for(var yN=-1,fi=j1.length;++yN<fi;)j1[yN].call(null,lK);D.state===5&&(D.on.call("end",L,L.__data__,D.index,D.group),Tj())}
function Tj(){D.state=6;D.timer.stop();delete KM[O];for(var lK in KM)return;delete L.__transition}
var KM=L.__transition,j1;KM[O]=D;D.timer=gr(function(lK){D.state=1;D.timer.restart(y,D.delay,D.time);D.delay<=lK&&y(lK-D.delay)},0,D.time)}
function ChZ(L,O){var D,y;return function(){var gW=zf(this,L),Tj=gW.tween;if(Tj!==D){y=D=Tj;Tj=0;for(var KM=y.length;Tj<KM;++Tj)if(y[Tj].name===O){y=y.slice();y.splice(Tj,1);break}}gW.tween=y}}
function p_e(L,O,D){var y,gW;if(typeof D!=="function")throw Error();return function(){var Tj=zf(this,L),KM=Tj.tween;if(KM!==y){gW=(y=KM).slice();KM={name:O,value:D};for(var j1=0,lK=gW.length;j1<lK;++j1)if(gW[j1].name===O){gW[j1]=KM;break}j1===lK&&gW.push(KM)}Tj.tween=gW}}
function ZsW(L,O,D){var y=L._id;L.each(function(){var gW=zf(this,y);(gW.value||(gW.value={}))[O]=D.apply(this,arguments)});
return function(gW){return BE(gW,y).value[O]}}
function Aoi(L,O){var D;return(typeof O==="number"?NA:O instanceof bz?N1o:(D=bz(O))?(O=D,N1o):lz)(L,O)}
function A$2(L){return function(){this.removeAttribute(L)}}
function NpM(L){return function(){this.removeAttributeNS(L.space,L.local)}}
function MTz(L,O,D){var y,gW;return function(){var Tj=this.getAttribute(L);return Tj===D?null:Tj===y?gW:gW=O(y=Tj,D)}}
function Z4z(L,O,D){var y,gW;return function(){var Tj=this.getAttributeNS(L.space,L.local);return Tj===D?null:Tj===y?gW:gW=O(y=Tj,D)}}
function tTu(L,O,D){var y,gW,Tj;return function(){var KM=D(this);if(KM==null)return void this.removeAttribute(L);var j1=this.getAttribute(L);return j1===KM?null:j1===y&&KM===gW?Tj:Tj=O(y=j1,gW=KM)}}
function uxo(L,O,D){var y,gW,Tj;return function(){var KM=D(this);if(KM==null)return void this.removeAttributeNS(L.space,L.local);var j1=this.getAttributeNS(L.space,L.local);return j1===KM?null:j1===y&&KM===gW?Tj:Tj=O(y=j1,gW=KM)}}
function aIO(L,O){function D(){var y=this,gW=O.apply(y,arguments);return gW&&function(Tj){y.setAttributeNS(L.space,L.local,gW(Tj))}}
D._value=O;return D}
function y$M(L,O){function D(){var y=this,gW=O.apply(y,arguments);return gW&&function(Tj){y.setAttribute(L,gW(Tj))}}
D._value=O;return D}
function WGX(L,O){return function(){Mb1(this,L).delay=+O.apply(this,arguments)}}
function c$Y(L,O){return O=+O,function(){Mb1(this,L).delay=O}}
function lIn(L,O){return function(){zf(this,L).duration=+O.apply(this,arguments)}}
function f$e(L,O){return O=+O,function(){zf(this,L).duration=O}}
function oUM(L,O){if(typeof O!=="function")throw Error();return function(){zf(this,L).ease=O}}
function SJO(L){return(L+"").trim().split(/^|\s+/).every(function(O){var D=O.indexOf(".");D>=0&&(O=O.slice(0,D));return!O||O==="start"})}
function B82(L,O,D){var y,gW,Tj=SJO(O)?Mb1:zf;return function(){var KM=Tj(this,L),j1=KM.on;if(j1!==y)(gW=(y=j1).copy()).on(O,D);KM.on=gW}}
function G4u(L){return function(){var O=this.parentNode,D;for(D in this.__transition)if(+D!==L)return;O&&O.removeChild(this)}}
function gUe(L,O){var D,y,gW;return function(){var Tj=OV(this,L),KM=(this.style.removeProperty(L),OV(this,L));return Tj===KM?null:Tj===D&&KM===y?gW:gW=O(D=Tj,y=KM)}}
function e2z(L){return function(){this.style.removeProperty(L)}}
function bbO(L,O,D){var y,gW;return function(){var Tj=OV(this,L);return Tj===D?null:Tj===y?gW:gW=O(y=Tj,D)}}
function mFe(L,O,D){var y,gW,Tj;return function(){var KM=OV(this,L),j1=D(this);j1==null&&(j1=(this.style.removeProperty(L),OV(this,L)));return KM===j1?null:KM===y&&j1===gW?Tj:Tj=O(y=KM,gW=j1)}}
function z2B(L,O,D){function y(){var gW=this,Tj=O.apply(gW,arguments);return Tj&&function(KM){gW.style.setProperty(L,Tj(KM),D)}}
y._value=O;return y}
function R2u(L){return function(){this.textContent=L}}
function Xq$(L){return function(){var O=L(this);this.textContent=O==null?"":O}}
function Fw(L,O,D,y){this._groups=L;this._parents=O;this._name=D;this._id=y}
function tb9(L){return{type:L}}
function ubs(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function JjQ(){}
function Mbm(L,O){var D=new JjQ;if(L instanceof JjQ)L.each(function(KM,j1){D.set(j1,KM)});
else if(Array.isArray(L)){var y=-1,gW=L.length,Tj;if(O==null)for(;++y<gW;)D.set(y,L[y]);else for(;++y<gW;)D.set(O(Tj=L[y],y,L),Tj)}else if(L)for(y in L)D.set(y,L[y]);return D}
function Pv1(){}
function ZsN(L){return function(O){for(var D={},y=0;y<L.length;y++)D[L[y]]=O[y]||"";return D}}
function wqz(L,O){var D=ZsN(L);return function(y,gW){return O(D(y),gW,L)}}
function h2u(L){var O=Object.create(null),D=[];L.forEach(function(y){for(var gW in y)gW in O||D.push(O[gW]=gW)});
return D}
function tb7(L){function O(KM,j1){function lK(){if(PQ)return a9W;if(nC)return nC=!1,ub1;var Qd,IK=zo,lT;if(KM.charCodeAt(IK)===34){for(;zo++<fi&&KM.charCodeAt(zo)!==34||KM.charCodeAt(++zo)===34;);(Qd=zo)>=fi?PQ=!0:(lT=KM.charCodeAt(zo++))===10?nC=!0:lT===13&&(nC=!0,KM.charCodeAt(zo)===10&&++zo);return KM.slice(IK+1,Qd-1).replace(/""/g,'"')}for(;zo<fi;){if((lT=KM.charCodeAt(Qd=zo++))===10)nC=!0;else if(lT===13)nC=!0,KM.charCodeAt(zo)===10&&++zo;else if(lT!==Tj)continue;return KM.slice(IK,Qd)}return PQ=
!0,KM.slice(IK,fi)}
var yN=[],fi=KM.length,zo=0,NN=0,Tn,PQ=fi<=0,nC=!1;KM.charCodeAt(fi-1)===10&&--fi;for(KM.charCodeAt(fi-1)===13&&--fi;(Tn=lK())!==a9W;){for(var KC=[];Tn!==ub1&&Tn!==a9W;)KC.push(Tn),Tn=lK();j1&&(KC=j1(KC,NN++))==null||yN.push(KC)}return yN}
function D(KM){return KM.map(y).join(L)}
function y(KM){return KM==null?"":gW.test(KM)?'"'+KM.replace(/"/g,'""')+'"':KM}
var gW=new RegExp('["'+L+"\n\r]"),Tj=L.charCodeAt(0);return{parse:function(KM,j1){var lK,yN;KM=O(KM,function(fi,zo){if(lK)return lK(fi,zo-1);yN=fi;lK=j1?wqz(fi,j1):ZsN(fi)});
KM.columns=yN||[];return KM},
parseRows:O,format:function(KM,j1){j1==null&&(j1=h2u(KM));return[j1.map(y).join(L)].concat(KM.map(function(lK){return j1.map(function(yN){return y(lK[yN])}).join(L)})).join("\n")},
formatRows:function(KM){return KM.map(D).join("\n")}}}
function T8u(L){if(!L.ok)throw Error("we`"+L.status+"`"+L.statusText);return L.text()}
function a9N(L){return function(O,D,y){arguments.length===2&&typeof D==="function"&&(y=D,D=void 0);return fetch(O,D).then(T8u).then(function(gW){return L(gW,y)})}}
function yoi(L,O,D,y){if(isNaN(O)||isNaN(D))return L;var gW,Tj=L._root;y={data:y};var KM=L._x0,j1=L._y0,lK=L._x1,yN=L._y1,fi,zo,NN,Tn,PQ;if(!Tj)return L._root=y,L;for(;Tj.length;)if((NN=O>=(fi=(KM+lK)/2))?KM=fi:lK=fi,(Tn=D>=(zo=(j1+yN)/2))?j1=zo:yN=zo,gW=Tj,!(Tj=Tj[PQ=Tn<<1|NN]))return gW[PQ]=y,L;var nC=+L._x.call(null,Tj.data);var KC=+L._y.call(null,Tj.data);if(O===nC&&D===KC)return y.next=Tj,gW?gW[PQ]=y:L._root=y,L;do gW=gW?gW[PQ]=Array(4):L._root=Array(4),(NN=O>=(fi=(KM+lK)/2))?KM=fi:lK=fi,(Tn=
D>=(zo=(j1+yN)/2))?j1=zo:yN=zo;while((PQ=Tn<<1|NN)===(NN=(KC>=zo)<<1|nC>=fi));return gW[NN]=Tj,gW[PQ]=y,L}
function vt(L,O,D,y,gW){this.node=L;this.x0=O;this.y0=D;this.x1=y;this.y1=gW}
function FR2(L){return L[0]}
function Vso(L){return L[1]}
function yoM(L,O,D,y,gW,Tj){this._x=L;this._y=O;this._x0=D;this._y0=y;this._x1=gW;this._y1=Tj;this._root=void 0}
function Wwv(L){for(var O={data:L.data},D=O;L=L.next;)D=D.next={data:L.data};return O}
function vpN(L,O){if((O=(L=O?L.toExponential(O-1):L.toExponential()).indexOf("e"))<0)return null;var D=L.slice(0,O);return[D.length>1?D[0]+D.slice(2):D,+L.slice(O+1)]}
function JeZ(L){return L=vpN(Math.abs(L)),L?L[1]:NaN}
function P4B(L,O){return function(D,y){for(var gW=D.length,Tj=[],KM=0,j1=L[0],lK=0;gW>0&&j1>0;){lK+j1+1>y&&(j1=Math.max(1,y-lK));Tj.push(D.substring(gW-=j1,gW+j1));if((lK+=j1+1)>y)break;j1=L[KM=(KM+1)%L.length]}return Tj.reverse().join(O)}}
function vUZ(L){return function(O){return O.replace(/[0-9]/g,function(D){return L[+D]})}}
function WwN(L){return new co9(L)}
function co9(L){if(!(O=KRo.exec(L)))throw Error("xe`"+L);var O;this.fill=O[1]||" ";this.align=O[2]||">";this.sign=O[3]||"-";this.symbol=O[4]||"";this.zero=!!O[5];this.width=O[6]&&+O[6];this.comma=!!O[7];this.precision=O[8]&&+O[8].slice(1);this.trim=!!O[9];this.type=O[10]||""}
function co7(L,O){O=vpN(L,O);if(!O)return L+"";L=O[0];O=O[1];return O<0?"0."+Array(-O).join("0")+L:L.length>O+1?L.slice(0,O+1)+"."+L.slice(O+1):L+Array(O-L.length+2).join("0")}
function l9N(L){return L}
function dFM(L){function O(j1){function lK(Zg){var tY=lT,re=q1,wI,GX;if(IK==="c")re=Ub(Zg)+re,Zg="";else{Zg=+Zg;var JX=Zg<0;Zg=Ub(Math.abs(Zg),KC);if(Qd){var sv=Zg.length,wC=1,YJ=-1;a:for(;wC<sv;++wC)switch(Zg[wC]){case ".":YJ=wI=wC;break;case "0":YJ===0&&(YJ=wC);wI=wC;break;default:if(!+Zg[wC])break a;YJ>0&&(YJ=0)}Zg=YJ>0?Zg.slice(0,YJ)+Zg.slice(wI+1):Zg}JX&&+Zg===0&&(JX=!1);tY=(JX?zo==="("?zo:"-":zo==="-"||zo==="("?"":zo)+tY;re=(IK==="s"?f6L[8+omj/3]:"")+re+(JX&&zo==="("?")":"");if(hx)for(JX=-1,
wI=Zg.length;++JX<wI;)if(GX=Zg.charCodeAt(JX),48>GX||GX>57){re=(GX===46?gW+Zg.slice(JX+1):Zg.slice(JX))+re;Zg=Zg.slice(0,JX);break}}nC&&!Tn&&(Zg=D(Zg,Infinity));GX=tY.length+Zg.length+re.length;JX=GX<PQ?Array(PQ-GX+1).join(yN):"";nC&&Tn&&(Zg=D(JX+Zg,JX.length?PQ-re.length:Infinity),JX="");switch(fi){case "<":Zg=tY+Zg+re+JX;break;case "=":Zg=tY+JX+Zg+re;break;case "^":Zg=JX.slice(0,GX=JX.length>>1)+tY+Zg+re+JX.slice(GX);break;default:Zg=JX+tY+Zg+re}return Tj(Zg)}
j1=WwN(j1);var yN=j1.fill,fi=j1.align,zo=j1.sign,NN=j1.symbol,Tn=j1.zero,PQ=j1.width,nC=j1.comma,KC=j1.precision,Qd=j1.trim,IK=j1.type;IK==="n"?(nC=!0,IK="g"):SdN[IK]||(KC==null&&(KC=12),Qd=!0,IK="g");if(Tn||yN==="0"&&fi==="=")Tn=!0,yN="0",fi="=";var lT=NN==="$"?y[0]:NN==="#"&&/[boxX]/.test(IK)?"0"+IK.toLowerCase():"",q1=NN==="$"?y[1]:/[%p]/.test(IK)?KM:"",Ub=SdN[IK],hx=/[defgprs%]/.test(IK);KC=KC==null?6:/[gprs]/.test(IK)?Math.max(1,Math.min(21,KC)):Math.max(0,Math.min(20,KC));lK.toString=function(){return j1+
""};
return lK}
var D=L.grouping&&L.thousands?P4B(L.grouping,L.thousands):l9N,y=L.currency,gW=L.decimal,Tj=L.numerals?vUZ(L.numerals):l9N,KM=L.percent||"%";return{format:O,formatPrefix:function(j1,lK){var yN=O((j1=WwN(j1),j1.type="f",j1));j1=Math.max(-8,Math.min(8,Math.floor(JeZ(lK)/3)))*3;var fi=Math.pow(10,-j1),zo=f6L[8+j1/3];return function(NN){return yN(fi*NN)+zo}}}}
function lG(){this.reset()}
function Bxm(L,O,D){var y=L.s=O+D,gW=y-O;L.t=O-(y-gW)+(D-gW)}
function K8V(L){return L>1?hp:L<-1?-hp:Math.asin(L)}
function ib2(){}
function GeX(L){var O=L[0];L=L[1];var D=TN(L);return[D*TN(O),D*fJ(O),fJ(L)]}
function gmX(L,O){return[L[1]*O[2]-L[2]*O[1],L[2]*O[0]-L[0]*O[2],L[0]*O[1]-L[1]*O[0]]}
function e6N(L){var O=d9M(L[0]*L[0]+L[1]*L[1]+L[2]*L[2]);L[0]/=O;L[1]/=O;L[2]/=O}
function Hbu(){var L=[],O;return{point:function(D,y){O.push([D,y])},
lineStart:function(){L.push(O=[])},
lineEnd:ib2,rejoin:function(){L.length>1&&L.push(L.pop().concat(L.shift()))},
result:function(){var D=L;L=[];O=null;return D}}}
function ijT(L,O,D,y){this.x=L;this.z=O;this.o=D;this.e=y;this.v=!1;this.n=this.p=null}
function qJ$(L,O,D,y,gW){var Tj=[],KM=[];L.forEach(function(zo){if(!((NN=zo.length-1)<=0)){var NN,Tn=zo[0],PQ=zo[NN],nC=Tn;if(Vh(nC[0]-PQ[0])<1E-6&&Vh(nC[1]-PQ[1])<1E-6){gW.lineStart();for(j1=0;j1<NN;++j1)gW.point((Tn=zo[j1])[0],Tn[1]);gW.lineEnd()}else Tj.push(NN=new ijT(Tn,zo,null,!0)),KM.push(NN.o=new ijT(Tn,null,NN,!1)),Tj.push(NN=new ijT(PQ,zo,null,!1)),KM.push(NN.o=new ijT(PQ,null,NN,!0))}});
if(Tj.length){KM.sort(O);bd$(Tj);bd$(KM);var j1=0;for(L=KM.length;j1<L;++j1)KM[j1].e=D=!D;D=Tj[0];for(var lK;;){for(var yN=D,fi=!0;yN.v;)if((yN=yN.n)===D)return;O=yN.z;gW.lineStart();do{yN.v=yN.o.v=!0;if(yN.e){if(fi)for(j1=0,L=O.length;j1<L;++j1)gW.point((lK=O[j1])[0],lK[1]);else y(yN.x,yN.n.x,1,gW);yN=yN.n}else{if(fi)for(O=yN.p.z,j1=O.length-1;j1>=0;--j1)gW.point((lK=O[j1])[0],lK[1]);else y(yN.x,yN.p.x,-1,gW);yN=yN.p}yN=yN.o;O=yN.z;fi=!fi}while(!yN.v);gW.lineEnd()}}}
function bd$(L){if(O=L.length){for(var O,D=0,y=L[0],gW;++D<O;)y.n=gW=L[D],gW.p=y,y=gW;y.n=gW=L[0];gW.p=y}}
function $F$(L){return L.length>1}
function QFu(L,O){return((L=L.x)[0]<0?L[1]-hp-1E-6:hp-L[1])-((O=O.x)[0]<0?O[1]-hp-1E-6:hp-O[1])}
function l9A(){}
function mx$(L){return function(O,D){var y=TN(O),gW=TN(D);y=L(y*gW);return[y*gW*fJ(O),y*fJ(D)]}}
function z_(L){return function(O,D){var y=d9M(O*O+D*D),gW=L(y),Tj=fJ(gW);gW=TN(gW);return[z68(O*Tj,y*gW),K8V(y&&D*Tj/y)]}}
function YJn(L){var O=0,D=L.children,y=D&&D.length;if(y)for(;--y>=0;)O+=D[y].value;else O=1;L.value=O}
function R6m(L,O){var D=new RG(L);L=+L.value&&(D.value=L.value);var y,gW=[D],Tj,KM,j1,lK;for(O==null&&(O=reu);y=gW.pop();)if(L&&(y.value=+y.data.value),(KM=O(y.data))&&(lK=KM.length))for(y.children=Array(lK),j1=lK-1;j1>=0;--j1)gW.push(Tj=y.children[j1]=new RG(KM[j1])),Tj.parent=y,Tj.depth=y.depth+1;return D.eachBefore(jFB)}
function reu(L){return L.children}
function ObZ(L){L.data=L.data.data}
function jFB(L){var O=0;do L.height=O;while((L=L.parent)&&L.height<++O)}
function RG(L){this.data=L;this.depth=this.height=0;this.parent=null}
function tL(L,O,D,y){function gW(Tj){return L(Tj=new Date(+Tj)),Tj}
gW.floor=gW;gW.ceil=function(Tj){return L(Tj=new Date(Tj-1)),O(Tj,1),L(Tj),Tj};
gW.round=function(Tj){var KM=gW(Tj),j1=gW.ceil(Tj);return Tj-KM<j1-Tj?KM:j1};
gW.offset=function(Tj,KM){return O(Tj=new Date(+Tj),KM==null?1:Math.floor(KM)),Tj};
gW.range=function(Tj,KM,j1){var lK=[],yN;Tj=gW.ceil(Tj);j1=j1==null?1:Math.floor(j1);if(!(Tj<KM&&j1>0))return lK;do lK.push(yN=new Date(+Tj)),O(Tj,j1),L(Tj);while(yN<Tj&&Tj<KM);return lK};
gW.filter=function(Tj){return tL(function(KM){if(KM>=KM)for(;L(KM),!Tj(KM);)KM.setTime(KM-1)},function(KM,j1){if(KM>=KM)if(j1<0)for(;++j1<=0;)for(;O(KM,-1),!Tj(KM););
else for(;--j1>=0;)for(;O(KM,1),!Tj(KM););})};
D&&(gW.count=function(Tj,KM){f6G.setTime(+Tj);om1.setTime(+KM);L(f6G);L(om1);return Math.floor(D(f6G,om1))},gW.every=function(Tj){Tj=Math.floor(Tj);
return isFinite(Tj)&&Tj>0?Tj>1?gW.filter(y?function(KM){return y(KM)%Tj===0}:function(KM){return gW.count(0,KM)%Tj===0}):gW:null});
return gW}
function RC(L){return tL(function(O){O.setDate(O.getDate()-(O.getDay()+7-L)%7);O.setHours(0,0,0,0)},function(O,D){O.setDate(O.getDate()+D*7)},function(O,D){return(D-O-(D.getTimezoneOffset()-O.getTimezoneOffset())*6E4)/6048E5})}
function X0(L){return tL(function(O){O.setUTCDate(O.getUTCDate()-(O.getUTCDay()+7-L)%7);O.setUTCHours(0,0,0,0)},function(O,D){O.setUTCDate(O.getUTCDate()+D*7)},function(O,D){return(D-O)/6048E5})}
function xFz(L){if(0<=L.y&&L.y<100){var O=new Date(-1,L.m,L.d,L.H,L.M,L.S,L.L);O.setFullYear(L.y);return O}return new Date(L.y,L.m,L.d,L.H,L.M,L.S,L.L)}
function Hjs(L){if(0<=L.y&&L.y<100){var O=new Date(Date.UTC(-1,L.m,L.d,L.H,L.M,L.S,L.L));O.setUTCFullYear(L.y);return O}return new Date(Date.UTC(L.y,L.m,L.d,L.H,L.M,L.S,L.L))}
function XU(L){return{y:L,m:0,d:1,H:0,M:0,S:0,L:0}}
function EUu(L){function O(re,wI){return function(GX){var JX=[],sv=-1,wC=0,YJ=re.length,oj,D9;for(GX instanceof Date||(GX=new Date(+GX));++sv<YJ;)if(re.charCodeAt(sv)===37){JX.push(re.slice(wC,sv));(wC=Xu$[oj=re.charAt(++sv)])!=null?oj=re.charAt(++sv):wC=oj==="e"?" ":"0";if(D9=wI[oj])oj=D9(GX,wC);JX.push(oj);wC=sv+1}JX.push(re.slice(wC,sv));return JX.join("")}}
function D(re,wI){return function(GX){var JX=XU(1900);if(y(JX,re,GX,0)!=GX.length)return null;if("Q"in JX)return new Date(JX.Q);"p"in JX&&(JX.H=JX.H%12+JX.p*12);if("V"in JX){if(JX.V<1||JX.V>53)return null;"w"in JX||(JX.w=1);if("Z"in JX){GX=Hjs(XU(JX.y));var sv=GX.getUTCDay();GX=sv>4||sv===0?SdW.ceil(GX):SdW(GX);GX=wum.offset(GX,(JX.V-1)*7);JX.y=GX.getUTCFullYear();JX.m=GX.getUTCMonth();JX.d=GX.getUTCDate()+(JX.w+6)%7}else GX=wI(XU(JX.y)),sv=GX.getDay(),GX=sv>4||sv===0?Bx1.ceil(GX):Bx1(GX),GX=h6m.offset(GX,
(JX.V-1)*7),JX.y=GX.getFullYear(),JX.m=GX.getMonth(),JX.d=GX.getDate()+(JX.w+6)%7}else if("W"in JX||"U"in JX)"w"in JX||(JX.w="u"in JX?JX.u%7:"W"in JX?1:0),sv="Z"in JX?Hjs(XU(JX.y)).getUTCDay():wI(XU(JX.y)).getDay(),JX.m=0,JX.d="W"in JX?(JX.w+6)%7+JX.W*7-(sv+5)%7:JX.w+JX.U*7-(sv+6)%7;return"Z"in JX?(JX.H+=JX.Z/100|0,JX.M+=JX.Z%100,Hjs(JX)):wI(JX)}}
function y(re,wI,GX,JX){for(var sv=0,wC=wI.length,YJ=GX.length,oj;sv<wC;){if(JX>=YJ)return-1;oj=wI.charCodeAt(sv++);if(oj===37){if(oj=wI.charAt(sv++),oj=tY[oj in Xu$?wI.charAt(sv++):oj],!oj||(JX=oj(re,GX,JX))<0)return-1}else if(oj!=GX.charCodeAt(JX++))return-1}return JX}
var gW=L.dateTime,Tj=L.date,KM=L.time,j1=L.periods,lK=L.days,yN=L.shortDays,fi=L.months,zo=L.shortMonths,NN=wk(j1),Tn=hc(j1),PQ=wk(lK),nC=hc(lK),KC=wk(yN),Qd=hc(yN),IK=wk(fi),lT=hc(fi),q1=wk(zo),Ub=hc(zo),hx={a:function(re){return yN[re.getDay()]},
A:function(re){return lK[re.getDay()]},
b:function(re){return zo[re.getMonth()]},
B:function(re){return fi[re.getMonth()]},
c:null,d:Txi,e:Txi,f:LR$,H:k4$,I:nUu,j:sFB,L:FpL,m:DFz,M:I$u,p:function(re){return j1[+(re.getHours()>=12)]},
Q:Vxo,s:J5o,S:UFu,u:C4u,U:pqY,V:AeY,w:N8O,W:Mso,x:null,X:null,y:Zbu,Y:tsB,Z:ua2,"%":PH$},Zg={a:function(re){return yN[re.getUTCDay()]},
A:function(re){return lK[re.getUTCDay()]},
b:function(re){return zo[re.getUTCMonth()]},
B:function(re){return fi[re.getUTCMonth()]},
c:null,d:vm1,e:vm1,f:a$2,H:yeX,I:WRz,j:cen,L:Kp1,m:l$2,M:f2M,p:function(re){return j1[+(re.getUTCHours()>=12)]},
Q:Vxo,s:J5o,S:ooz,u:STe,U:BXY,V:Gh2,w:gou,W:erZ,x:null,X:null,y:b8n,Y:mMX,Z:zru,"%":PH$},tY={a:function(re,wI,GX){return(wI=KC.exec(wI.slice(GX)))?(re.w=Qd[wI[0].toLowerCase()],GX+wI[0].length):-1},
A:function(re,wI,GX){return(wI=PQ.exec(wI.slice(GX)))?(re.w=nC[wI[0].toLowerCase()],GX+wI[0].length):-1},
b:function(re,wI,GX){return(wI=q1.exec(wI.slice(GX)))?(re.m=Ub[wI[0].toLowerCase()],GX+wI[0].length):-1},
B:function(re,wI,GX){return(wI=IK.exec(wI.slice(GX)))?(re.m=lT[wI[0].toLowerCase()],GX+wI[0].length):-1},
c:function(re,wI,GX){return y(re,gW,wI,GX)},
d:dxN,e:dxN,f:RrX,H:idi,I:idi,j:XEn,L:wEB,m:hr$,M:TXB,p:function(re,wI,GX){return(wI=NN.exec(wI.slice(GX)))?(re.p=Tn[wI[0].toLowerCase()],GX+wI[0].length):-1},
Q:F5X,s:VAu,S:JqO,u:PXu,U:voM,V:K52,w:dMY,W:i82,x:function(re,wI,GX){return y(re,Tj,wI,GX)},
X:function(re,wI,GX){return y(re,KM,wI,GX)},
y:H8e,Y:qTu,Z:$Mn,"%":Qtn};hx.x=O(Tj,hx);hx.X=O(KM,hx);hx.c=O(gW,hx);Zg.x=O(Tj,Zg);Zg.X=O(KM,Zg);Zg.c=O(gW,Zg);return{format:function(re){var wI=O(re,hx);wI.toString=function(){return re};
return wI},
parse:function(re){var wI=D(re,xFz);wI.toString=function(){return re};
return wI},
utcFormat:function(re){var wI=O(re,Zg);wI.toString=function(){return re};
return wI},
utcParse:function(re){var wI=D(re,Hjs);wI.toString=function(){return re};
return wI}}}
function T1(L,O,D){var y=L<0?"-":"";L=(y?-L:L)+"";var gW=L.length;return y+(gW<D?Array(D-gW+1).join(O)+L:L)}
function YT2(L){return L.replace(rqO,"\\$&")}
function wk(L){return new RegExp("^(?:"+L.map(YT2).join("|")+")","i")}
function hc(L){for(var O={},D=-1,y=L.length;++D<y;)O[L[D].toLowerCase()]=D;return O}
function dMY(L,O,D){return(O=f2.exec(O.slice(D,D+1)))?(L.w=+O[0],D+O[0].length):-1}
function PXu(L,O,D){return(O=f2.exec(O.slice(D,D+1)))?(L.u=+O[0],D+O[0].length):-1}
function voM(L,O,D){return(O=f2.exec(O.slice(D,D+2)))?(L.U=+O[0],D+O[0].length):-1}
function K52(L,O,D){return(O=f2.exec(O.slice(D,D+2)))?(L.V=+O[0],D+O[0].length):-1}
function i82(L,O,D){return(O=f2.exec(O.slice(D,D+2)))?(L.W=+O[0],D+O[0].length):-1}
function qTu(L,O,D){return(O=f2.exec(O.slice(D,D+4)))?(L.y=+O[0],D+O[0].length):-1}
function H8e(L,O,D){return(O=f2.exec(O.slice(D,D+2)))?(L.y=+O[0]+(+O[0]>68?1900:2E3),D+O[0].length):-1}
function $Mn(L,O,D){return(O=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(O.slice(D,D+6)))?(L.Z=O[1]?0:-(O[2]+(O[3]||"00")),D+O[0].length):-1}
function hr$(L,O,D){return(O=f2.exec(O.slice(D,D+2)))?(L.m=O[0]-1,D+O[0].length):-1}
function dxN(L,O,D){return(O=f2.exec(O.slice(D,D+2)))?(L.d=+O[0],D+O[0].length):-1}
function XEn(L,O,D){return(O=f2.exec(O.slice(D,D+3)))?(L.m=0,L.d=+O[0],D+O[0].length):-1}
function idi(L,O,D){return(O=f2.exec(O.slice(D,D+2)))?(L.H=+O[0],D+O[0].length):-1}
function TXB(L,O,D){return(O=f2.exec(O.slice(D,D+2)))?(L.M=+O[0],D+O[0].length):-1}
function JqO(L,O,D){return(O=f2.exec(O.slice(D,D+2)))?(L.S=+O[0],D+O[0].length):-1}
function wEB(L,O,D){return(O=f2.exec(O.slice(D,D+3)))?(L.L=+O[0],D+O[0].length):-1}
function RrX(L,O,D){return(O=f2.exec(O.slice(D,D+6)))?(L.L=Math.floor(O[0]/1E3),D+O[0].length):-1}
function Qtn(L,O,D){return(L=jt2.exec(O.slice(D,D+1)))?D+L[0].length:-1}
function F5X(L,O,D){return(O=f2.exec(O.slice(D)))?(L.Q=+O[0],D+O[0].length):-1}
function VAu(L,O,D){return(O=f2.exec(O.slice(D)))?(L.Q=+O[0]*1E3,D+O[0].length):-1}
function Txi(L,O){return T1(L.getDate(),O,2)}
function k4$(L,O){return T1(L.getHours(),O,2)}
function nUu(L,O){return T1(L.getHours()%12||12,O,2)}
function sFB(L,O){return T1(1+h6m.count(YO(L),L),O,3)}
function FpL(L,O){return T1(L.getMilliseconds(),O,3)}
function LR$(L,O){return FpL(L,O)+"000"}
function DFz(L,O){return T1(L.getMonth()+1,O,2)}
function I$u(L,O){return T1(L.getMinutes(),O,2)}
function UFu(L,O){return T1(L.getSeconds(),O,2)}
function C4u(L){L=L.getDay();return L===0?7:L}
function pqY(L,O){return T1(O8B.count(YO(L),L),O,2)}
function AeY(L,O){var D=L.getDay();L=D>=4||D===0?GeQ(L):GeQ.ceil(L);return T1(GeQ.count(YO(L),L)+(YO(L).getDay()===4),O,2)}
function N8O(L){return L.getDay()}
function Mso(L,O){return T1(Bx1.count(YO(L),L),O,2)}
function Zbu(L,O){return T1(L.getFullYear()%100,O,2)}
function tsB(L,O){return T1(L.getFullYear()%1E4,O,4)}
function ua2(L){L=L.getTimezoneOffset();return(L>0?"-":(L*=-1,"+"))+T1(L/60|0,"0",2)+T1(L%60,"0",2)}
function vm1(L,O){return T1(L.getUTCDate(),O,2)}
function yeX(L,O){return T1(L.getUTCHours(),O,2)}
function WRz(L,O){return T1(L.getUTCHours()%12||12,O,2)}
function cen(L,O){return T1(1+wum.count(r_(L),L),O,3)}
function Kp1(L,O){return T1(L.getUTCMilliseconds(),O,3)}
function a$2(L,O){return Kp1(L,O)+"000"}
function l$2(L,O){return T1(L.getUTCMonth()+1,O,2)}
function f2M(L,O){return T1(L.getUTCMinutes(),O,2)}
function ooz(L,O){return T1(L.getUTCSeconds(),O,2)}
function STe(L){L=L.getUTCDay();return L===0?7:L}
function BXY(L,O){return T1(xM2.count(r_(L),L),O,2)}
function Gh2(L,O){var D=L.getUTCDay();L=D>=4||D===0?gmQ(L):gmQ.ceil(L);return T1(gmQ.count(r_(L),L)+(r_(L).getUTCDay()===4),O,2)}
function gou(L){return L.getUTCDay()}
function erZ(L,O){return T1(SdW.count(r_(L),L),O,2)}
function b8n(L,O){return T1(L.getUTCFullYear()%100,O,2)}
function mMX(L,O){return T1(L.getUTCFullYear()%1E4,O,4)}
function zru(){return"+0000"}
function PH$(){return"%"}
function Vxo(L){return+L}
function J5o(L){return Math.floor(+L/1E3)}
function bJ(L){for(var O=L.length/6|0,D=Array(O),y=0;y<O;)D[y]="#"+L.slice(y*6,++y*6);return D}
function Dx(L){return Eo2(L[L.length-1])}
function qvT(L){var O=L.length;return function(D){return L[Math.max(0,Math.min(O-1,Math.floor(D*O)))]}}
function Hdm(L){this._context=L}
function qdg(L){this._curve=L}
function $xL(L,O,D){var y=L._x1-L._x0;O-=L._x1;var gW=(L._y1-L._y0)/(y||O<0&&-0);L=(D-L._y1)/(O||y<0&&-0);return((gW<0?-1:1)+(L<0?-1:1))*Math.min(Math.abs(gW),Math.abs(L),.5*Math.abs((gW*O+L*y)/(y+O)))||0}
function QVL(L,O){var D=L._x1-L._x0;return D?(3*(L._y1-L._y0)/D-O)/2:O}
function e6A(L,O,D){var y=L._x0,gW=L._x1,Tj=L._y1,KM=(gW-y)/3;L._context.bezierCurveTo(y+KM,L._y0+KM*O,gW-KM,Tj-KM*D,gW,Tj)}
function bdN(L){this._context=L}
function Yd8(L){this._context=L}
function T_(L,O,D){this.k=L;this.x=O;this.y=D}
(function(L){L.length===1&&(L=S(L));return{left:function(O,D,y,gW){y==null&&(y=0);gW==null&&(gW=O.length);for(;y<gW;){var Tj=y+gW>>>1;L(O[Tj],D)<0?y=Tj+1:gW=Tj}return y},
right:function(O,D,y,gW){y==null&&(y=0);gW==null&&(gW=O.length);for(;y<gW;){var Tj=y+gW>>>1;L(O[Tj],D)>0?gW=Tj:y=Tj+1}return y}}})(f);
var $ae={value:function(){}};
G.prototype=B.prototype={constructor:G,on:function(L,O){var D=this._,y=g(L+"",D),gW,Tj=-1,KM=y.length;if(arguments.length<2)for(;++Tj<KM;){var j1;if(j1=gW=(L=y[Tj]).type){a:{j1=D[gW];for(var lK=0,yN=j1.length;lK<yN;++lK)if((gW=j1[lK]).name===L.name){gW=gW.value;break a}gW=void 0}j1=gW}if(j1)return gW}else{if(O!=null&&typeof O!=="function")throw Error("ye`"+O);for(;++Tj<KM;)if(gW=(L=y[Tj]).type)D[gW]=b(D[gW],L.name,O);else if(O==null)for(gW in D)D[gW]=b(D[gW],L.name,null);return this}},
copy:function(){var L={},O=this._,D;for(D in O)L[D]=O[D].slice();return new G(L)},
call:function(L,O){if((gW=arguments.length-2)>0)for(var D=Array(gW),y=0,gW,Tj;y<gW;++y)D[y]=arguments[y+2];if(!this._.hasOwnProperty(L))throw Error("se`"+L);Tj=this._[L];y=0;for(gW=Tj.length;y<gW;++y)Tj[y].value.apply(O,D)},
apply:function(L,O,D){if(!this._.hasOwnProperty(L))throw Error("se`"+L);L=this._[L];for(var y=0,gW=L.length;y<gW;++y)L[y].value.apply(O,D)}};
var w5={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/"},r5m=function(L){return function(){return this.matches(L)}};
if(typeof document!=="undefined"){var FU=document.documentElement;if(!FU.matches){var L5u=FU.webkitMatchesSelector||FU.msMatchesSelector||FU.mozMatchesSelector||FU.oMatchesSelector;r5m=function(L){return function(){return L5u.call(this,L)}}}}var jVv=r5m;
d.prototype={constructor:d,appendChild:function(L){return this._parent.insertBefore(L,this._next)},
insertBefore:function(L,O){return this._parent.insertBefore(L,O)},
querySelector:function(L){return this._parent.querySelector(L)},
querySelectorAll:function(L){return this._parent.querySelectorAll(L)}};
var ER6={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(ER6={mouseenter:"mouseover",mouseleave:"mouseout"}));var QmB=[null];Ig.prototype=vO.prototype={constructor:Ig,select:function(L){typeof L!=="function"&&(L=J(L));for(var O=this._groups,D=O.length,y=Array(D),gW=0;gW<D;++gW)for(var Tj=O[gW],KM=Tj.length,j1=y[gW]=Array(KM),lK,yN,fi=0;fi<KM;++fi)(lK=Tj[fi])&&(yN=L.call(lK,lK.__data__,fi,Tj))&&("__data__"in lK&&(yN.__data__=lK.__data__),j1[fi]=yN);return new Ig(y,this._parents)},
filter:function(L){typeof L!=="function"&&(L=jVv(L));for(var O=this._groups,D=O.length,y=Array(D),gW=0;gW<D;++gW)for(var Tj=O[gW],KM=Tj.length,j1=y[gW]=[],lK,yN=0;yN<KM;++yN)(lK=Tj[yN])&&L.call(lK,lK.__data__,yN,Tj)&&j1.push(lK);return new Ig(y,this._parents)},
data:function(L,O){if(!L)return Tn=Array(this.size()),yN=-1,this.each(function(IK){Tn[++yN]=IK}),Tn;
var D=O?E:x,y=this._parents,gW=this._groups;typeof L!=="function"&&(L=Q(L));for(var Tj=gW.length,KM=Array(Tj),j1=Array(Tj),lK=Array(Tj),yN=0;yN<Tj;++yN){var fi=y[yN],zo=gW[yN],NN=zo.length,Tn=L.call(fi,fi&&fi.__data__,yN,y),PQ=Tn.length,nC=j1[yN]=Array(PQ),KC=KM[yN]=Array(PQ);NN=lK[yN]=Array(NN);D(fi,zo,nC,KC,NN,Tn,O);zo=fi=0;for(var Qd;fi<PQ;++fi)if(NN=nC[fi]){for(fi>=zo&&(zo=fi+1);!(Qd=KC[zo])&&++zo<PQ;);NN._next=Qd||null}}KM=new Ig(KM,y);KM._enter=j1;KM._exit=lK;return KM},
exit:function(){return new Ig(this._exit||this._groups.map(P),this._parents)},
merge:function(L){var O=this._groups;L=L._groups;for(var D=O.length,y=Math.min(D,L.length),gW=Array(D),Tj=0;Tj<y;++Tj)for(var KM=O[Tj],j1=L[Tj],lK=KM.length,yN=gW[Tj]=Array(lK),fi,zo=0;zo<lK;++zo)if(fi=KM[zo]||j1[zo])yN[zo]=fi;for(;Tj<D;++Tj)gW[Tj]=O[Tj];return new Ig(gW,this._parents)},
order:function(){for(var L=this._groups,O=-1,D=L.length;++O<D;)for(var y=L[O],gW=y.length-1,Tj=y[gW],KM;--gW>=0;)if(KM=y[gW])Tj&&Tj!==KM.nextSibling&&Tj.parentNode.insertBefore(KM,Tj),Tj=KM;return this},
sort:function(L){function O(zo,NN){return zo&&NN?L(zo.__data__,NN.__data__):!zo-!NN}
L||(L=U);for(var D=this._groups,y=D.length,gW=Array(y),Tj=0;Tj<y;++Tj){for(var KM=D[Tj],j1=KM.length,lK=gW[Tj]=Array(j1),yN,fi=0;fi<j1;++fi)if(yN=KM[fi])lK[fi]=yN;lK.sort(O)}return(new Ig(gW,this._parents)).order()},
call:function(){var L=arguments[0];arguments[0]=this;L.apply(null,arguments);return this},
nodes:function(){var L=Array(this.size()),O=-1;this.each(function(){L[++O]=this});
return L},
node:function(){for(var L=this._groups,O=0,D=L.length;O<D;++O)for(var y=L[O],gW=0,Tj=y.length;gW<Tj;++gW){var KM=y[gW];if(KM)return KM}return null},
size:function(){var L=0;this.each(function(){++L});
return L},
empty:function(){return!this.node()},
each:function(L){for(var O=this._groups,D=0,y=O.length;D<y;++D)for(var gW=O[D],Tj=0,KM=gW.length,j1;Tj<KM;++Tj)(j1=gW[Tj])&&L.call(j1,j1.__data__,Tj,gW);return this},
attr:function(L,O){var D=z(L);if(arguments.length<2){var y=this.node();return D.local?y.getAttributeNS(D.space,D.local):y.getAttribute(D)}return this.each((O==null?D.local?t:A:typeof O==="function"?D.local?mx:l:D.local?a:M)(D,O))},
style:function(L,O,D){return arguments.length>1?this.each((O==null?zj:typeof O==="function"?$Q:VN)(L,O,D==null?"":D)):OV(this.node(),L)},
property:function(L,O){return arguments.length>1?this.each((O==null?rW:typeof O==="function"?UV:MA)(L,O)):this.node()[L]},
text:function(L){return arguments.length?this.each(L==null?W7:(typeof L==="function"?Q$:c7)(L)):this.node().textContent},
html:function(L){return arguments.length?this.each(L==null?To:(typeof L==="function"?VM:Ci)(L)):this.node().innerHTML},
append:function(L){var O=typeof L==="function"?L:F(L);return this.select(function(){return this.appendChild(O.apply(this,arguments))})},
insert:function(L,O){var D=typeof L==="function"?L:F(L),y=O==null?Go:typeof O==="function"?O:J(O);return this.select(function(){return this.insertBefore(D.apply(this,arguments),y.apply(this,arguments)||null)})},
remove:function(){return this.each(Io)},
clone:function(L){return this.select(L?RT:uz)},
datum:function(L){return arguments.length?this.property("__data__",L):this.node().__data__},
on:function(L,O,D){var y=ao(L+""),gW=y.length,Tj;if(arguments.length<2){var KM=this.node().__on;if(KM)for(var j1=0,lK=KM.length,yN;j1<lK;++j1){var fi=0;for(yN=KM[j1];fi<gW;++fi)if((Tj=y[fi]).type===yN.type&&Tj.name===yN.name)return yN.value}}else{KM=O?um:H7;D==null&&(D=!1);for(fi=0;fi<gW;++fi)this.each(KM(y[fi],O,D));return this}},
dispatch:function(L,O){return this.each((typeof O==="function"?em:t1)(L,O))}};
var YH2=0;v7.prototype=function(){return new v7}.prototype={constructor:v7,
get:function(L){for(var O=this._;!(O in L);)if(!(L=L.parentNode))return;return L[O]},
set:function(L,O){return L[this._]=O},
remove:function(L){return this._ in L&&delete L[this._]},
toString:function(){return this._}};
var jB=1/.7,r$z=/^#([0-9a-f]{3})$/,jmu=/^#([0-9a-f]{6})$/,O4o=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),xaX=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),EWO=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),LGZ=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*\\)$"),
kd2=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),nW$=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*\\)$"),Lw7={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};
YX(bo,bz,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
YX(fX,Y$,we(bo,{brighter:function(L){L=L==null?jB:Math.pow(jB,L);return new fX(this.r*L,this.g*L,this.b*L,this.opacity)},
darker:function(L){L=L==null?.7:Math.pow(.7,L);return new fX(this.r*L,this.g*L,this.b*L,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"#"+RO(this.r)+RO(this.g)+RO(this.b)},
toString:function(){var L=this.opacity;L=isNaN(L)?1:Math.max(0,Math.min(1,L));return(L===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))+(L===1?")":", "+L+")")}}));
YX(cf,z1,we(bo,{brighter:function(L){L=L==null?jB:Math.pow(jB,L);return new cf(this.h,this.s,this.l*L,this.opacity)},
darker:function(L){L=L==null?.7:Math.pow(.7,L);return new cf(this.h,this.s,this.l*L,this.opacity)},
rgb:function(){var L=this.h%360+(this.h<0)*360,O=this.l,D=O+(O<.5?O:1-O)*(isNaN(L)||isNaN(this.s)?0:this.s);O=2*O-D;return new fX(ye(L>=240?L-240:L+120,O,D),ye(L,O,D),ye(L<120?L+240:L-120,O,D),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 kw8=Math.PI/180,DIv=180/Math.PI,sHL=4/29,$O=6/29,nRi=3*$O*$O,smz=$O*$O*$O;YX(iK,function(L,O,D,y){return arguments.length===1?GM(L):new iK(L,O,D,y==null?1:y)},we(bo,{brighter:function(L){return new iK(this.l+18*(L==null?1:L),this.a,this.b,this.opacity)},
darker:function(L){return new iK(this.l-18*(L==null?1:L),this.a,this.b,this.opacity)},
rgb:function(){var L=(this.l+16)/116,O=isNaN(this.a)?L:L+this.a/500,D=isNaN(this.b)?L:L-this.b/200;O=.96422*pM(O);L=1*pM(L);D=.82521*pM(D);return new fX(FL(3.1338561*O-1.6168667*L-.4906146*D),FL(-.9787684*O+1.9161415*L+.033454*D),FL(.0719453*O-.2289914*L+1.4052427*D),this.opacity)}}));
YX(J1,hX,we(bo,{brighter:function(L){return new J1(this.h,this.c,this.l+18*(L==null?1:L),this.opacity)},
darker:function(L){return new J1(this.h,this.c,this.l-18*(L==null?1:L),this.opacity)},
rgb:function(){return GM(this).rgb()}}));
var I9X=1.78277*-.29227-.1347134789;YX(KY,wN,we(bo,{brighter:function(L){L=L==null?jB:Math.pow(jB,L);return new KY(this.h,this.s,this.l*L,this.opacity)},
darker:function(L){L=L==null?.7:Math.pow(.7,L);return new KY(this.h,this.s,this.l*L,this.opacity)},
rgb:function(){var L=isNaN(this.h)?0:(this.h+120)*kw8,O=+this.l,D=isNaN(this.s)?0:this.s*O*(1-O),y=Math.cos(L);L=Math.sin(L);return new fX(255*(O+D*(-.14861*y+1.78277*L)),255*(O+D*(-.29227*y+-.90649*L)),255*(O+1.97294*y*D),this.opacity)}}));
var N1o=function D(O){function y(Tj,KM){var j1=gW((Tj=Y$(Tj)).r,(KM=Y$(KM)).r),lK=gW(Tj.g,KM.g),yN=gW(Tj.b,KM.b),fi=NH(Tj.opacity,KM.opacity);return function(zo){Tj.r=j1(zo);Tj.g=lK(zo);Tj.b=yN(zo);Tj.opacity=fi(zo);return Tj+""}}
var gW=dz(O);y.gamma=D;return y}(1),Eo2=xj(function(O){var D=O.length-1;
return function(y){var gW=y<=0?y=0:y>=1?(y=1,D-1):Math.floor(y*D),Tj=O[gW],KM=O[gW+1];return TX((y-gW/D)*D,gW>0?O[gW-1]:2*Tj-KM,Tj,KM,gW<D-1?O[gW+2]:2*KM-Tj)}});
xj(function(O){var D=O.length;return function(y){var gW=Math.floor(((y%=1)<0?++y:y)*D);return TX((y-gW/D)*D,O[(gW+D-1)%D],O[gW%D],O[(gW+1)%D],O[(gW+2)%D])}});
var pGN=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,AoM=new RegExp(pGN.source,"g"),UI7=180/Math.PI,mxN={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},VC,z6V,Odv,$9N,khu=Mb(function(O){if(O==="none")return mxN;VC||(VC=document.createElement("DIV"),z6V=document.documentElement,Odv=document.defaultView);VC.style.transform=O;O=Odv.getComputedStyle(z6V.appendChild(VC),null).getPropertyValue("transform");z6V.removeChild(VC);O=O.slice(7,-1).split(",");return gz(+O[0],+O[1],+O[2],+O[3],
+O[4],+O[5])},"px, ","px)","deg)"),noe=Mb(function(O){if(O==null)return mxN;
$9N||($9N=document.createElementNS("http://www.w3.org/2000/svg","g"));$9N.setAttribute("transform",O);if(!(O=$9N.transform.baseVal.consolidate()))return mxN;O=O.matrix;return gz(O.a,O.b,O.c,O.d,O.e,O.f)},", ",")",")");
FT(kg);FT(NH);c2(kg);c2(NH);Ey(kg);var R6K=Ey(NH),Q7=0,eU=0,m1=0,VpT,bq,F81=0,m_=0,TAN=0,gk=typeof performance==="object"&&performance.now?performance:Date,C8o=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(O){setTimeout(O,17)};
D3.prototype=gr.prototype={constructor:D3,restart:function(O,D,y){if(typeof O!=="function")throw new TypeError("ze");y=(y==null?si():+y)+(D==null?0:+D);this._next||bq===this||(bq?bq._next=this:VpT=this,bq=this);this._call=O;this._time=y;bD()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,bD())}};
var IIn=B("start","end","interrupt"),Uau=[],stz=vO.prototype.constructor,xx$=0,O3=vO.prototype;Fw.prototype=function(O){return vO().transition(O)}.prototype={constructor:Fw,
select:function(O){var D=this._name,y=this._id;typeof O!=="function"&&(O=J(O));for(var gW=this._groups,Tj=gW.length,KM=Array(Tj),j1=0;j1<Tj;++j1)for(var lK=gW[j1],yN=lK.length,fi=KM[j1]=Array(yN),zo,NN,Tn=0;Tn<yN;++Tn)(zo=lK[Tn])&&(NN=O.call(zo,zo.__data__,Tn,lK))&&("__data__"in zo&&(NN.__data__=zo.__data__),fi[Tn]=NN,N1j(fi[Tn],D,y,Tn,fi,BE(zo,y)));return new Fw(KM,this._parents,D,y)},
filter:function(O){typeof O!=="function"&&(O=jVv(O));for(var D=this._groups,y=D.length,gW=Array(y),Tj=0;Tj<y;++Tj)for(var KM=D[Tj],j1=KM.length,lK=gW[Tj]=[],yN,fi=0;fi<j1;++fi)(yN=KM[fi])&&O.call(yN,yN.__data__,fi,KM)&&lK.push(yN);return new Fw(gW,this._parents,this._name,this._id)},
merge:function(O){if(O._id!==this._id)throw Error();var D=this._groups;O=O._groups;for(var y=D.length,gW=Math.min(y,O.length),Tj=Array(y),KM=0;KM<gW;++KM)for(var j1=D[KM],lK=O[KM],yN=j1.length,fi=Tj[KM]=Array(yN),zo,NN=0;NN<yN;++NN)if(zo=j1[NN]||lK[NN])fi[NN]=zo;for(;KM<y;++KM)Tj[KM]=D[KM];return new Fw(Tj,this._parents,this._name,this._id)},
selection:function(){return new stz(this._groups,this._parents)},
transition:function(){for(var O=this._name,D=this._id,y=++xx$,gW=this._groups,Tj=gW.length,KM=0;KM<Tj;++KM)for(var j1=gW[KM],lK=j1.length,yN,fi=0;fi<lK;++fi)if(yN=j1[fi]){var zo=BE(yN,D);N1j(yN,O,y,fi,j1,{time:zo.time+zo.delay+zo.duration,delay:0,duration:zo.duration,ease:zo.ease})}return new Fw(gW,this._parents,O,y)},
call:O3.call,nodes:O3.nodes,node:O3.node,size:O3.size,empty:O3.empty,each:O3.each,on:function(O,D){var y=this._id;return arguments.length<2?BE(this.node(),y).on.on(O):this.each(B82(y,O,D))},
attr:function(O,D){var y=z(O),gW=y==="transform"?noe:Aoi;return this.attrTween(O,typeof D==="function"?(y.local?uxo:tTu)(y,gW,ZsW(this,"attr."+O,D)):D==null?(y.local?NpM:A$2)(y):(y.local?Z4z:MTz)(y,gW,D+""))},
attrTween:function(O,D){var y="attr."+O;if(arguments.length<2)return(y=this.tween(y))&&y._value;if(D==null)return this.tween(y,null);if(typeof D!=="function")throw Error();var gW=z(O);return this.tween(y,(gW.local?aIO:y$M)(gW,D))},
style:function(O,D,y){var gW=O==="transform"?khu:Aoi;return D==null?this.styleTween(O,gUe(O,gW)).on("end.style."+O,e2z(O)):this.styleTween(O,typeof D==="function"?mFe(O,gW,ZsW(this,"style."+O,D)):bbO(O,gW,D+""),y)},
styleTween:function(O,D,y){var gW="style."+O;if(arguments.length<2)return(gW=this.tween(gW))&&gW._value;if(D==null)return this.tween(gW,null);if(typeof D!=="function")throw Error();return this.tween(gW,z2B(O,D,y==null?"":y))},
text:function(O){return this.tween("text",typeof O==="function"?Xq$(ZsW(this,"text",O)):R2u(O==null?"":O+""))},
remove:function(){return this.on("end.remove",G4u(this._id))},
tween:function(O,D){var y=this._id;if(arguments.length<2){y=BE(this.node(),y).tween;for(var gW=0,Tj=y.length,KM;gW<Tj;++gW)if((KM=y[gW]).name===O)return KM.value;return null}return this.each((D==null?ChZ:p_e)(y,O,D))},
delay:function(O){var D=this._id;return arguments.length?this.each((typeof O==="function"?WGX:c$Y)(D,O)):BE(this.node(),D).delay},
duration:function(O){var D=this._id;return arguments.length?this.each((typeof O==="function"?lIn:f$e)(D,O)):BE(this.node(),D).duration},
ease:function(O){var D=this._id;return arguments.length?this.each(oUM(D,O)):BE(this.node(),D).ease}};
var XuN={time:null,delay:0,duration:250,ease:function(O){return((O*=2)<=1?O*O*O:(O-=2)*O*O+2)/2}};
vO.prototype.transition=function(O){var D;if(O instanceof Fw){var y=O._id;O=O._name}else y=++xx$,(D=XuN).time=si(),O=O==null?null:O+"";for(var gW=this._groups,Tj=gW.length,KM=0;KM<Tj;++KM)for(var j1=gW[KM],lK=j1.length,yN,fi=0;fi<lK;++fi)if(yN=j1[fi]){var zo=yN,NN=O,Tn=y,PQ=fi,nC=j1,KC;if(!(KC=D))a:{KC=void 0;for(var Qd=y;!(KC=yN.__transition)||!(KC=KC[Qd]);)if(!(yN=yN.parentNode)){KC=(XuN.time=si(),XuN);break a}}N1j(zo,NN,Tn,PQ,nC,KC)}return new Fw(gW,this._parents,O,y)};
["e","w"].map(tb9);["n","s"].map(tb9);"n e s w nw ne se sw".split(" ").map(tb9);ubs.prototype=function(){return new ubs}.prototype={constructor:ubs,
moveTo:function(O,D){this._+="M"+(this._x0=this._x1=+O)+","+(this._y0=this._y1=+D)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(O,D){this._+="L"+(this._x1=+O)+","+(this._y1=+D)},
bezierCurveTo:function(O,D,y,gW,Tj,KM){this._+="C"+ +O+","+ +D+","+ +y+","+ +gW+","+(this._x1=+Tj)+","+(this._y1=+KM)},
rect:function(O,D,y,gW){this._+="M"+(this._x0=this._x1=+O)+","+(this._y0=this._y1=+D)+"h"+ +y+"v"+ +gW+"h"+-y+"Z"},
toString:function(){return this._}};
JjQ.prototype=Mbm.prototype={constructor:JjQ,has:function(O){return" "+O in this},
get:function(O){return this[" "+O]},
set:function(O,D){this[" "+O]=D;return this},
remove:function(O){O=" "+O;return O in this&&delete this[O]},
clear:function(){for(var O in this)O[0]===" "&&delete this[O]},
keys:function(){var O=[],D;for(D in this)D[0]===" "&&O.push(D.slice(1));return O},
values:function(){var O=[],D;for(D in this)D[0]===" "&&O.push(this[D]);return O},
entries:function(){var O=[],D;for(D in this)D[0]===" "&&O.push({key:D.slice(1),value:this[D]});return O},
size:function(){var O=0,D;for(D in this)D[0]===" "&&++O;return O},
empty:function(){for(var O in this)if(O[0]===" ")return!1;return!0},
each:function(O){for(var D in this)D[0]===" "&&O(this[D],D.slice(1),this)}};
var wK=Mbm.prototype;Pv1.prototype=function(O,D){var y=new Pv1;if(O instanceof Pv1)O.each(function(KM){y.add(KM)});
else if(O){var gW=-1,Tj=O.length;if(D==null)for(;++gW<Tj;)y.add(O[gW]);else for(;++gW<Tj;)y.add(D(O[gW],gW,O))}return y}.prototype={constructor:Pv1,
has:wK.has,add:function(O){this[" "+O]=O;return this},
remove:wK.remove,clear:wK.clear,values:wK.keys,size:wK.size,empty:wK.empty,each:wK.each};var ub1={},a9W={},DMe=tb7(",").parse,I2O=tb7("\t").parse;a9N(DMe);a9N(I2O);var Kn=function(O,D,y){D=new yoM(D==null?FR2:D,y==null?Vso:y,NaN,NaN,NaN,NaN);return O==null?D:D.addAll(O)}.prototype=yoM.prototype;
Kn.copy=function(){var O=new yoM(this._x,this._y,this._x0,this._y0,this._x1,this._y1),D=this._root,y,gW;if(!D)return O;if(!D.length)return O._root=Wwv(D),O;for(y=[{source:D,target:O._root=Array(4)}];D=y.pop();)for(var Tj=0;Tj<4;++Tj)if(gW=D.source[Tj])gW.length?y.push({source:gW,target:D.target[Tj]=Array(4)}):D.target[Tj]=Wwv(gW);return O};
Kn.add=function(O){var D=+this._x.call(null,O),y=+this._y.call(null,O);return yoi(this.cover(D,y),D,y,O)};
Kn.addAll=function(O){var D,y,gW=O.length,Tj,KM,j1=Array(gW),lK=Array(gW),yN=Infinity,fi=Infinity,zo=-Infinity,NN=-Infinity;for(y=0;y<gW;++y)isNaN(Tj=+this._x.call(null,D=O[y]))||isNaN(KM=+this._y.call(null,D))||(j1[y]=Tj,lK[y]=KM,Tj<yN&&(yN=Tj),Tj>zo&&(zo=Tj),KM<fi&&(fi=KM),KM>NN&&(NN=KM));zo<yN&&(yN=this._x0,zo=this._x1);NN<fi&&(fi=this._y0,NN=this._y1);this.cover(yN,fi).cover(zo,NN);for(y=0;y<gW;++y)yoi(this,j1[y],lK[y],O[y]);return this};
Kn.cover=function(O,D){if(isNaN(O=+O)||isNaN(D=+D))return this;var y=this._x0,gW=this._y0,Tj=this._x1,KM=this._y1;if(isNaN(y))Tj=(y=Math.floor(O))+1,KM=(gW=Math.floor(D))+1;else if(y>O||O>Tj||gW>D||D>KM){var j1=Tj-y,lK=this._root,yN;switch(yN=(D<(gW+KM)/2)<<1|O<(y+Tj)/2){case 0:do{var fi=Array(4);fi[yN]=lK;lK=fi}while(j1*=2,Tj=y+j1,KM=gW+j1,O>Tj||D>KM);break;case 1:do fi=Array(4),fi[yN]=lK,lK=fi;while(j1*=2,y=Tj-j1,KM=gW+j1,y>O||D>KM);break;case 2:do fi=Array(4),fi[yN]=lK,lK=fi;while(j1*=2,Tj=y+j1,
gW=KM-j1,O>Tj||gW>D);break;case 3:do fi=Array(4),fi[yN]=lK,lK=fi;while(j1*=2,y=Tj-j1,gW=KM-j1,y>O||gW>D)}this._root&&this._root.length&&(this._root=lK)}else return this;this._x0=y;this._y0=gW;this._x1=Tj;this._y1=KM;return this};
Kn.data=function(){var O=[];this.visit(function(D){if(!D.length){do O.push(D.data);while(D=D.next)}});
return O};
Kn.extent=function(O){return arguments.length?this.cover(+O[0][0],+O[0][1]).cover(+O[1][0],+O[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
Kn.find=function(O,D,y){var gW=this._x0,Tj=this._y0,KM,j1,lK,yN,fi=this._x1,zo=this._y1,NN=[],Tn=this._root,PQ;Tn&&NN.push(new vt(Tn,gW,Tj,fi,zo));y==null?y=Infinity:(gW=O-y,Tj=D-y,fi=O+y,zo=D+y,y*=y);for(;PQ=NN.pop();)if(!(!(Tn=PQ.node)||(KM=PQ.x0)>fi||(j1=PQ.y0)>zo||(lK=PQ.x1)<gW||(yN=PQ.y1)<Tj))if(Tn.length){PQ=(KM+lK)/2;var nC=(j1+yN)/2;NN.push(new vt(Tn[3],PQ,nC,lK,yN),new vt(Tn[2],KM,nC,PQ,yN),new vt(Tn[1],PQ,j1,lK,nC),new vt(Tn[0],KM,j1,PQ,nC));if(Tn=(D>=nC)<<1|O>=PQ)PQ=NN[NN.length-1],NN[NN.length-
1]=NN[NN.length-1-Tn],NN[NN.length-1-Tn]=PQ}else if(PQ=O-+this._x.call(null,Tn.data),nC=D-+this._y.call(null,Tn.data),PQ=PQ*PQ+nC*nC,PQ<y){var KC=Math.sqrt(y=PQ);gW=O-KC;Tj=D-KC;fi=O+KC;zo=D+KC;KC=Tn.data}return KC};
Kn.remove=function(O){if(isNaN(yN=+this._x.call(null,O))||isNaN(fi=+this._y.call(null,O)))return this;var D,y=this._root,gW,Tj=this._x0,KM=this._y0,j1=this._x1,lK=this._y1,yN,fi,zo,NN,Tn,PQ,nC;if(!y)return this;if(y.length)for(;;){(Tn=yN>=(zo=(Tj+j1)/2))?Tj=zo:j1=zo;(PQ=fi>=(NN=(KM+lK)/2))?KM=NN:lK=NN;if(!(D=y,y=y[nC=PQ<<1|Tn]))return this;if(!y.length)break;if(D[nC+1&3]||D[nC+2&3]||D[nC+3&3]){var KC=D;var Qd=nC}}for(;y.data!==O;)if(!(gW=y,y=y.next))return this;(O=y.next)&&delete y.next;if(gW)return O?
gW.next=O:delete gW.next,this;if(!D)return this._root=O,this;O?D[nC]=O:delete D[nC];(y=D[0]||D[1]||D[2]||D[3])&&y===(D[3]||D[2]||D[1]||D[0])&&!y.length&&(KC?KC[Qd]=y:this._root=y);return this};
Kn.removeAll=function(O){for(var D=0,y=O.length;D<y;++D)this.remove(O[D]);return this};
Kn.root=function(){return this._root};
Kn.size=function(){var O=0;this.visit(function(D){if(!D.length){do++O;while(D=D.next)}});
return O};
Kn.visit=function(O){var D=[],y,gW=this._root,Tj,KM,j1,lK,yN;for(gW&&D.push(new vt(gW,this._x0,this._y0,this._x1,this._y1));y=D.pop();)if(!O(gW=y.node,KM=y.x0,j1=y.y0,lK=y.x1,yN=y.y1)&&gW.length){y=(KM+lK)/2;var fi=(j1+yN)/2;(Tj=gW[3])&&D.push(new vt(Tj,y,fi,lK,yN));(Tj=gW[2])&&D.push(new vt(Tj,KM,fi,y,yN));(Tj=gW[1])&&D.push(new vt(Tj,y,j1,lK,fi));(Tj=gW[0])&&D.push(new vt(Tj,KM,j1,y,fi))}};
Kn.visitAfter=function(O){var D=[],y=[],gW;for(this._root&&D.push(new vt(this._root,this._x0,this._y0,this._x1,this._y1));gW=D.pop();){var Tj=gW.node;if(Tj.length){var KM,j1=gW.x0,lK=gW.y0,yN=gW.x1,fi=gW.y1,zo=(j1+yN)/2,NN=(lK+fi)/2;(KM=Tj[0])&&D.push(new vt(KM,j1,lK,zo,NN));(KM=Tj[1])&&D.push(new vt(KM,zo,lK,yN,NN));(KM=Tj[2])&&D.push(new vt(KM,j1,NN,zo,fi));(KM=Tj[3])&&D.push(new vt(KM,zo,NN,yN,fi))}y.push(gW)}for(;gW=y.pop();)O(gW.node,gW.x0,gW.y0,gW.x1,gW.y1);return this};
Kn.x=function(O){return arguments.length?(this._x=O,this):this._x};
Kn.y=function(O){return arguments.length?(this._y=O,this):this._y};
var KRo=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;WwN.prototype=co9.prototype;co9.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 omj,SdN={"%":function(O,D){return(O*100).toFixed(D)},
b:function(O){return Math.round(O).toString(2)},
c:function(O){return O+""},
d:function(O){return Math.round(O).toString(10)},
e:function(O,D){return O.toExponential(D)},
f:function(O,D){return O.toFixed(D)},
g:function(O,D){return O.toPrecision(D)},
o:function(O){return Math.round(O).toString(8)},
p:function(O,D){return co7(O*100,D)},
r:co7,s:function(O,D){var y=vpN(O,D);if(!y)return O+"";var gW=y[0];y=y[1];y=y-(omj=Math.max(-8,Math.min(8,Math.floor(y/3)))*3)+1;var Tj=gW.length;return y===Tj?gW:y>Tj?gW+Array(y-Tj+1).join("0"):y>0?gW.slice(0,y)+"."+gW.slice(y):"0."+Array(1-y).join("0")+vpN(O,Math.max(0,D+y-1))[0]},
X:function(O){return Math.round(O).toString(16).toUpperCase()},
x:function(O){return Math.round(O).toString(16)}},f6L="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),UMu;
(function(O){return UMu=dFM(O)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});lG.prototype={constructor:lG,reset:function(){this.s=this.t=0},
add:function(O){Bxm(Q0x,O,this.t);Bxm(this,Q0x.s,this.s);this.s?this.t+=Q0x.t:this.s=Q0x.t},
valueOf:function(){return this.s}};
var Q0x=new lG,hE=Math.PI,hp=hE/2,Emm=hE/4,CXu=hE*2,wuK=hE/180,Vh=Math.abs,h6K=Math.atan,z68=Math.atan2,TN=Math.cos,fJ=Math.sin,d9M=Math.sqrt;new lG;new lG;new lG;var TxM=new lG;(function(O,D,y,gW){return function(Tj){function KM(Ub,hx){O(Ub,hx)&&Tj.point(Ub,hx)}
function j1(Ub,hx){Tn.point(Ub,hx)}
function lK(){q1.point=j1;Tn.lineStart()}
function yN(){q1.point=KM;Tn.lineEnd()}
function fi(Ub,hx){lT.push([Ub,hx]);nC.point(Ub,hx)}
function zo(){nC.lineStart();lT=[]}
function NN(){fi(lT[0][0],lT[0][1]);nC.lineEnd();var Ub=nC.clean(),hx=PQ.result(),Zg=hx.length,tY;lT.pop();Qd.push(lT);lT=null;if(Zg)if(Ub&1){if(Zg=hx[0],(hx=Zg.length-1)>0){KC||(Tj.polygonStart(),KC=!0);Tj.lineStart();for(Ub=0;Ub<hx;++Ub)Tj.point((tY=Zg[Ub])[0],tY[1]);Tj.lineEnd()}}else Zg>1&&Ub&2&&hx.push(hx.pop().concat(hx.shift())),IK.push(hx.filter($F$))}
var Tn=D(Tj),PQ=Hbu(),nC=D(PQ),KC=!1,Qd,IK,lT,q1={point:KM,lineStart:lK,lineEnd:yN,polygonStart:function(){q1.point=fi;q1.lineStart=zo;q1.lineEnd=NN;IK=[];Qd=[]},
polygonEnd:function(){q1.point=KM;q1.lineStart=lK;q1.lineEnd=yN;var Ub=IK,hx=Ub.length;var Zg=-1;for(var tY=0,re,wI;++Zg<hx;)tY+=Ub[Zg].length;for(re=Array(tY);--hx>=0;)for(wI=Ub[hx],Zg=wI.length;--Zg>=0;)re[--tY]=wI[Zg];IK=re;Ub=Qd;hx=gW[0];tY=gW[1];var GX=fJ(tY);Zg=[fJ(hx),-TN(hx),0];wI=re=0;TxM.reset();GX===1?tY=hp+1E-6:GX===-1&&(tY=-hp-1E-6);GX=0;for(var JX=Ub.length;GX<JX;++GX)if(wC=(sv=Ub[GX]).length){var sv,wC,YJ=sv[wC-1],oj=YJ[0],D9=YJ[1]/2+Emm,YvM=fJ(D9),Lp$=TN(D9);for(D9=0;D9<wC;++D9,oj=
FpG,YvM=kem,Lp$=Jc,YJ=rjN){var rjN=sv[D9],FpG=rjN[0];Jc=rjN[1]/2+Emm;var kem=fJ(Jc),Jc=TN(Jc),xO=FpG-oj,Vxj=xO>=0?1:-1,J5j=Vxj*xO,j0K=J5j>hE;YvM*=kem;TxM.add(z68(YvM*Vxj*fJ(J5j),Lp$*Jc+YvM*TN(J5j)));re+=j0K?xO+Vxj*CXu:xO;j0K^oj>=hx^FpG>=hx&&(YJ=gmX(GeX(YJ),GeX(rjN)),e6N(YJ),oj=gmX(Zg,YJ),e6N(oj),oj=(j0K^xO>=0?-1:1)*K8V(oj[2]),tY>oj||tY===oj&&(YJ[0]||YJ[1]))&&(wI+=j0K^xO>=0?1:-1)}}Ub=(re<-1E-6||re<1E-6&&TxM<-1E-6)^wI&1;IK.length?(KC||(Tj.polygonStart(),KC=!0),qJ$(IK,QFu,Ub,y,Tj)):Ub&&(KC||(Tj.polygonStart(),
KC=!0),Tj.lineStart(),y(null,null,1,Tj),Tj.lineEnd());KC&&(Tj.polygonEnd(),KC=!1);IK=Qd=null},
sphere:function(){Tj.polygonStart();Tj.lineStart();y(null,null,1,Tj);Tj.lineEnd();Tj.polygonEnd()}};
return q1}})(function(){return!0},function(O){var D=NaN,y=NaN,gW=NaN,Tj;
return{lineStart:function(){O.lineStart();Tj=1},
point:function(KM,j1){var lK=KM>0?hE:-hE,yN=Vh(KM-D);if(Vh(yN-hE)<1E-6)O.point(D,y=(y+j1)/2>0?hp:-hp),O.point(gW,y),O.lineEnd(),O.lineStart(),O.point(lK,y),O.point(KM,y),Tj=0;else if(gW!==lK&&yN>=hE){Vh(D-gW)<1E-6&&(D-=gW*1E-6);Vh(KM-lK)<1E-6&&(KM-=lK*1E-6);yN=D;var fi=y,zo=KM,NN,Tn,PQ=fJ(yN-zo);y=Vh(PQ)>1E-6?h6K((fJ(fi)*(Tn=TN(j1))*fJ(zo)-fJ(j1)*(NN=TN(fi))*fJ(yN))/(NN*Tn*PQ)):(fi+j1)/2;O.point(gW,y);O.lineEnd();O.lineStart();O.point(lK,y);Tj=0}O.point(D=KM,y=j1);gW=lK},
lineEnd:function(){O.lineEnd();D=y=NaN},
clean:function(){return 2-Tj}}},function(O,D,y,gW){O==null?(y*=hp,gW.point(-hE,y),gW.point(0,y),gW.point(hE,y),gW.point(hE,0),gW.point(hE,-y),gW.point(0,-y),gW.point(-hE,-y),gW.point(-hE,0),gW.point(-hE,y)):Vh(O[0]-D[0])>1E-6?(O=O[0]<D[0]?hE:-hE,y=y*O/2,gW.point(-O,y),gW.point(0,y),gW.point(O,y)):gW.point(D[0],D[1])},[-hE,
-hp]);new lG;new lG;new lG;new lG;l9A.prototype={constructor:l9A,point:function(O,D){this.stream.point(O,D)},
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()}};
TN(30*wuK);(function(O){return function(D){var y=new l9A,gW;for(gW in O)y[gW]=O[gW];y.stream=D;return y}})({point:function(O,D){this.stream.point(O*wuK,D*wuK)}});
mx$(function(O){return d9M(2/(1+O))}).invert=z_(function(O){return 2*K8V(O/2)});
mx$(function(O){return(O=O>1?0:O<-1?hE:Math.acos(O))&&O/fJ(O)}).invert=z_(function(O){return O});
d9M(3);z_(h6K);z_(K8V);z_(function(O){return 2*h6K(O)});
RG.prototype=R6m.prototype={constructor:RG,count:function(){return this.eachAfter(YJn)},
each:function(O){var D,y=[this],gW;do{var Tj=y.reverse();for(y=[];D=Tj.pop();)if(O(D),D=D.children){var KM=0;for(gW=D.length;KM<gW;++KM)y.push(D[KM])}}while(y.length);return this},
eachAfter:function(O){for(var D,y=[this],gW=[],Tj,KM;D=y.pop();)if(gW.push(D),D=D.children)for(Tj=0,KM=D.length;Tj<KM;++Tj)y.push(D[Tj]);for(;D=gW.pop();)O(D);return this},
eachBefore:function(O){for(var D,y=[this],gW;D=y.pop();)if(O(D),D=D.children)for(gW=D.length-1;gW>=0;--gW)y.push(D[gW]);return this},
sum:function(O){return this.eachAfter(function(D){for(var y=+O(D.data)||0,gW=D.children,Tj=gW&&gW.length;--Tj>=0;)y+=gW[Tj].value;D.value=y})},
sort:function(O){return this.eachBefore(function(D){D.children&&D.children.sort(O)})},
path:function(O){var D=this;var y=D;var gW=O;if(y!==gW){var Tj=y.ancestors(),KM=gW.ancestors(),j1=null;y=Tj.pop();for(gW=KM.pop();y===gW;)j1=y,y=Tj.pop(),gW=KM.pop();y=j1}for(gW=[D];D!==y;)D=D.parent,gW.push(D);for(D=gW.length;O!==y;)gW.splice(D,0,O),O=O.parent;return gW},
ancestors:function(){for(var O=this,D=[O];O=O.parent;)D.push(O);return D},
links:function(){var O=this,D=[];O.each(function(y){y!==O&&D.push({source:y.parent,target:y})});
return D},
copy:function(){return R6m(this).eachBefore(ObZ)}};
(function(O,D){this._=O;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=D}).prototype=Object.create(RG.prototype);
var f6G=new Date,om1=new Date,nmL=tL(function(){},function(O,D){O.setTime(+O+D)},function(O,D){return D-O});
nmL.every=function(O){O=Math.floor(O);return isFinite(O)&&O>0?O>1?tL(function(D){D.setTime(Math.floor(D/O)*O)},function(D,y){D.setTime(+D+y*O)},function(D,y){return(y-D)/O}):nmL:null};
tL(function(O){O.setTime(Math.floor(O/1E3)*1E3)},function(O,D){O.setTime(+O+D*1E3)},function(O,D){return(D-O)/1E3},function(O){return O.getUTCSeconds()});
tL(function(O){O.setTime(Math.floor(O/6E4)*6E4)},function(O,D){O.setTime(+O+D*6E4)},function(O,D){return(D-O)/6E4},function(O){return O.getMinutes()});
tL(function(O){var D=O.getTimezoneOffset()*6E4%36E5;D<0&&(D+=36E5);O.setTime(Math.floor((+O-D)/36E5)*36E5+D)},function(O,D){O.setTime(+O+D*36E5)},function(O,D){return(D-O)/36E5},function(O){return O.getHours()});
var h6m=tL(function(O){O.setHours(0,0,0,0)},function(O,D){O.setDate(O.getDate()+D)},function(O,D){return(D-O-(D.getTimezoneOffset()-O.getTimezoneOffset())*6E4)/864E5},function(O){return O.getDate()-1}),O8B=RC(0),Bx1=RC(1);
RC(2);RC(3);var GeQ=RC(4);RC(5);RC(6);tL(function(O){O.setDate(1);O.setHours(0,0,0,0)},function(O,D){O.setMonth(O.getMonth()+D)},function(O,D){return D.getMonth()-O.getMonth()+(D.getFullYear()-O.getFullYear())*12},function(O){return O.getMonth()});
var YO=tL(function(O){O.setMonth(0,1);O.setHours(0,0,0,0)},function(O,D){O.setFullYear(O.getFullYear()+D)},function(O,D){return D.getFullYear()-O.getFullYear()},function(O){return O.getFullYear()});
YO.every=function(O){return isFinite(O=Math.floor(O))&&O>0?tL(function(D){D.setFullYear(Math.floor(D.getFullYear()/O)*O);D.setMonth(0,1);D.setHours(0,0,0,0)},function(D,y){D.setFullYear(D.getFullYear()+y*O)}):null};
tL(function(O){O.setUTCSeconds(0,0)},function(O,D){O.setTime(+O+D*6E4)},function(O,D){return(D-O)/6E4},function(O){return O.getUTCMinutes()});
tL(function(O){O.setUTCMinutes(0,0,0)},function(O,D){O.setTime(+O+D*36E5)},function(O,D){return(D-O)/36E5},function(O){return O.getUTCHours()});
var wum=tL(function(O){O.setUTCHours(0,0,0,0)},function(O,D){O.setUTCDate(O.getUTCDate()+D)},function(O,D){return(D-O)/864E5},function(O){return O.getUTCDate()-1}),xM2=X0(0),SdW=X0(1);
X0(2);X0(3);var gmQ=X0(4);X0(5);X0(6);tL(function(O){O.setUTCDate(1);O.setUTCHours(0,0,0,0)},function(O,D){O.setUTCMonth(O.getUTCMonth()+D)},function(O,D){return D.getUTCMonth()-O.getUTCMonth()+(D.getUTCFullYear()-O.getUTCFullYear())*12},function(O){return O.getUTCMonth()});
var r_=tL(function(O){O.setUTCMonth(0,1);O.setUTCHours(0,0,0,0)},function(O,D){O.setUTCFullYear(O.getUTCFullYear()+D)},function(O,D){return D.getUTCFullYear()-O.getUTCFullYear()},function(O){return O.getUTCFullYear()});
r_.every=function(O){return isFinite(O=Math.floor(O))&&O>0?tL(function(D){D.setUTCFullYear(Math.floor(D.getUTCFullYear()/O)*O);D.setUTCMonth(0,1);D.setUTCHours(0,0,0,0)},function(D,y){D.setUTCFullYear(D.getUTCFullYear()+y*O)}):null};
var Xu$={"-":"",_:" ",0:"0"},f2=/^\s*\d+/,jt2=/^%/,rqO=/[\\^$*+?|[\]().{}]/g,Ojs;(function(O){Ojs=EUu(O);cO8=Ojs.utcFormat;le6=Ojs.utcParse;return Ojs})({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||cO8("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||le6("%Y-%m-%dT%H:%M:%S.%LZ");bJ("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
bJ("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");bJ("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");bJ("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");bJ("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");bJ("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");bJ("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
bJ("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");bJ("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");bJ("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");bJ("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");bJ("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var pEo=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(bJ);Dx(pEo);var AqZ=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(bJ);Dx(AqZ);var NXu=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(bJ);Dx(NXu);var MAB=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(bJ);
Dx(MAB);var Z8Z=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(bJ);Dx(Z8Z);var tAo=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(bJ);Dx(tAo);var u7Y=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(bJ);Dx(u7Y);var a2$=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(bJ);Dx(a2$);var yqZ=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(bJ);Dx(yqZ);var W5Z=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(bJ);Dx(W5Z);var cqz=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(bJ);Dx(cqz);var l2M=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(bJ);Dx(l2M);var fR$=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(bJ);Dx(fR$);var o_u=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(bJ);Dx(o_u);var SEu=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(bJ);Dx(SEu);var BHu=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(bJ);Dx(BHu);var Ga2=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(bJ);Dx(Ga2);var g_u=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(bJ);Dx(g_u);var ecM=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(bJ);Dx(ecM);var buM=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(bJ);Dx(buM);var miZ=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(bJ);Dx(miZ);var zcB=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(bJ);Dx(zcB);var RcX=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(bJ);Dx(RcX);var Xzu=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(bJ);Dx(Xzu);var wze=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(bJ);Dx(wze);var hcn=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(bJ);Dx(hcn);var THZ=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(bJ);Dx(THZ);R6K(wN(300,.5,0),wN(-240,.5,1));R6K(wN(-100,.75,.35),wN(80,1.5,.8));R6K(wN(260,.75,.35),wN(80,1.5,.8));wN();Y$();qvT(bJ("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
qvT(bJ("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
qvT(bJ("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
qvT(bJ("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
Hdm.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(O,D){O=+O;D=+D;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(O,D):this._context.moveTo(O,D);break;case 1:this._point=2;default:this._context.lineTo(O,D)}}};
(function(O){function D(y){return new qdg(O(y))}
D._curve=O;return D})(function(O){return new Hdm(O)});
qdg.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(O,D){this._curve.point(D*Math.sin(O),D*-Math.cos(O))}};
bdN.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:e6A(this,this._t0,QVL(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(O,D){var y=NaN;O=+O;D=+D;if(O!==this._x1||D!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(O,D):this._context.moveTo(O,D);break;case 1:this._point=2;break;case 2:this._point=3;e6A(this,QVL(this,y=$xL(this,O,D)),y);break;default:e6A(this,this._t0,y=$xL(this,O,D))}this._x0=this._x1;this._x1=O;this._y0=this._y1;this._y1=D;this._t0=y}}};
(function(O){this._context=new Yd8(O)}.prototype=Object.create(bdN.prototype)).point=function(O,D){bdN.prototype.point.call(this,D,O)};
Yd8.prototype={moveTo:function(O,D){this._context.moveTo(D,O)},
closePath:function(){this._context.closePath()},
lineTo:function(O,D){this._context.lineTo(D,O)},
bezierCurveTo:function(O,D,y,gW,Tj,KM){this._context.bezierCurveTo(D,O,gW,y,KM,Tj)}};
T_.prototype={constructor:T_,scale:function(O){return O===1?this:new T_(this.k*O,this.x,this.y)},
translate:function(O,D){return O===0&D===0?this:new T_(this.k,this.x+this.k*O,this.y+this.k*D)},
apply:function(O){return[O[0]*this.k+this.x,O[1]*this.k+this.y]},
invert:function(O){return[(O[0]-this.x)/this.k,(O[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new T_(1,0,0);etQ=bz;w5.svg=w5.svg;w5.xhtml=w5.xhtml;w5.xlink=w5.xlink;w5.xml=w5.xml;w5.xmlns=w5.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 fw$="hammer_"+(Math.random()*1E6|0),oei=function(){var f=document||document;if(!f[fw$]){var S=function(){(function(B,G,g,b){function z(iK,nM,pM){return setTimeout(P(iK,pM),nM)}
function X(iK,nM,pM){return Array.isArray(iK)?(w(iK,pM[nM],pM),!0):!1}
function w(iK,nM,pM){var FL;if(iK)if(iK.forEach)iK.forEach(nM,pM);else if(iK.length!==b){var e2=0;for(FL=iK.length;e2<FL;e2++)nM.call(pM,iK[e2],e2,iK)}else for(e2 in iK)iK.hasOwnProperty(e2)&&nM.call(pM,iK[e2],e2,iK)}
function F(iK,nM,pM){for(var FL=Object.keys(nM),e2=0,j0=FL.length;e2<j0;e2++)if(!pM||pM&&iK[FL[e2]]===b)iK[FL[e2]]=nM[FL[e2]];return iK}
function V(iK,nM){return F(iK,nM,!0)}
function J(iK,nM,pM){nM=nM.prototype;var FL=iK.prototype=Object.create(nM);FL.constructor=iK;FL._super=nM;pM&&F(FL,pM)}
function P(iK,nM){return function(){return iK.apply(nM,arguments)}}
function d(iK,nM){return typeof iK=="function"?iK.apply(nM?nM[0]||b:b,nM):iK}
function Q(iK,nM,pM){w(E(nM),function(FL){iK.addEventListener(FL,pM,!1)})}
function x(iK,nM,pM){w(E(nM),function(FL){iK.removeEventListener(FL,pM,!1)})}
function E(iK){return iK.trim().split(/\s+/g)}
function U(iK,nM,pM){if(iK.indexOf&&!pM)return iK.indexOf(nM);for(var FL=0,e2=iK.length;FL<e2;FL++)if(pM&&iK[FL][pM]==nM||!pM&&iK[FL]===nM)return FL;return-1}
function A(iK,nM,pM){for(var FL=[],e2=[],j0=0,hX=iK.length;j0<hX;j0++){var J1=nM?iK[j0][nM]:iK[j0];U(e2,J1)<0&&FL.push(iK[j0]);e2[j0]=J1}pM&&(FL=nM?FL.sort(function(wN,KY){return wN[nM]>KY[nM]}):FL.sort());
return FL}
function t(iK,nM){for(var pM,FL=nM[0].toUpperCase()+nM.slice(1),e2=0,j0=em.length;e2<j0;e2++)if(pM=(pM=em[e2])?pM+FL:nM,pM in iK)return pM;return b}
function M(iK,nM){var pM=this;this.manager=iK;this.callback=nM;this.element=iK.element;this.target=iK.options.inputTarget;this.domHandler=function(FL){d(iK.options.enable,[iK])&&pM.handler(FL)};
this.evEl&&Q(this.element,this.evEl,this.domHandler);this.evTarget&&Q(this.target,this.evTarget,this.domHandler);this.evWin&&Q(B,this.evWin,this.domHandler)}
function a(iK){var nM;KQ?nM=MA:pk?nM=UV:bz?nM=W7:nM=rW;return new nM(iK,l)}
function l(iK,nM,pM){var FL=pM.pointers.length,e2=pM.changedPointers.length,j0=nM&1&&FL-e2===0;pM.isFirst=!!j0;pM.isFinal=!!(nM&12&&FL-e2===0);j0&&(iK.session={});pM.eventType=nM;nM=iK.session;FL=pM.pointers;e2=FL.length;nM.firstInput||(nM.firstInput=mx(pM));e2>1&&!nM.firstMultiple?nM.firstMultiple=mx(pM):e2===1&&(nM.firstMultiple=!1);j0=nM.firstInput;var hX=(e2=nM.firstMultiple)?e2.center:j0.center,J1=pM.center=zj(FL);pM.timeStamp=YX();pM.deltaTime=pM.timeStamp-j0.timeStamp;pM.angle=OV(hX,J1);pM.distance=
$Q(hX,J1);j0=pM.center;hX=nM.offsetDelta||{};J1=nM.prevDelta||{};var wN=nM.prevInput||{};if(pM.eventType===1||wN.eventType===4)J1=nM.prevDelta={x:wN.deltaX||0,y:wN.deltaY||0},hX=nM.offsetDelta={x:j0.x,y:j0.y};pM.deltaX=J1.x+(j0.x-hX.x);pM.deltaY=J1.y+(j0.y-hX.y);pM.offsetDirection=VN(pM.deltaX,pM.deltaY);e2?(j0=e2.pointers,j0=$Q(FL[0],FL[1],Y$)/$Q(j0[0],j0[1],Y$)):j0=1;pM.scale=j0;e2?(e2=e2.pointers,FL=OV(FL[1],FL[0],Y$)-OV(e2[1],e2[0],Y$)):FL=0;pM.rotation=FL;hX=nM.lastInterval||pM;FL=pM.timeStamp-
hX.timeStamp;pM.eventType!=8&&(FL>25||hX.velocity===b)?(j0=hX.deltaX-pM.deltaX,hX=hX.deltaY-pM.deltaY,J1=j0/FL||0,wN=hX/FL||0,FL=J1,e2=wN,J1=v7(J1)>v7(wN)?J1:wN,j0=VN(j0,hX),nM.lastInterval=pM):(J1=hX.velocity,FL=hX.velocityX,e2=hX.velocityY,j0=hX.direction);pM.velocity=J1;pM.velocityX=FL;pM.velocityY=e2;pM.direction=j0;nM=iK.element;a:{for(FL=pM.srcEvent.target;FL;){if(FL==nM){FL=!0;break a}FL=FL.parentNode}FL=!1}FL&&(nM=pM.srcEvent.target);pM.target=nM;iK.emit("hammer.input",pM);iK.recognize(pM);
iK.session.prevInput=pM}
function mx(iK){for(var nM=[],pM=0;pM<iK.pointers.length;pM++)nM[pM]={clientX:vO(iK.pointers[pM].clientX),clientY:vO(iK.pointers[pM].clientY)};return{timeStamp:YX(),pointers:nM,center:zj(nM),deltaX:iK.deltaX,deltaY:iK.deltaY}}
function zj(iK){var nM=iK.length;if(nM===1)return{x:vO(iK[0].clientX),y:vO(iK[0].clientY)};for(var pM=0,FL=0,e2=0;e2<nM;e2++)pM+=iK[e2].clientX,FL+=iK[e2].clientY;return{x:vO(pM/nM),y:vO(FL/nM)}}
function VN(iK,nM){return iK===nM?1:v7(iK)>=v7(nM)?iK>0?2:4:nM>0?8:16}
function $Q(iK,nM,pM){pM||(pM=pi);var FL=nM[pM[0]]-iK[pM[0]];iK=nM[pM[1]]-iK[pM[1]];return Math.sqrt(FL*FL+iK*iK)}
function OV(iK,nM,pM){pM||(pM=pi);return Math.atan2(nM[pM[1]]-iK[pM[1]],nM[pM[0]]-iK[pM[0]])*180/Math.PI}
function rW(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;M.apply(this,arguments)}
function MA(){this.evEl=wu;this.evWin=z1;M.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function UV(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};M.apply(this,arguments)}
function W7(){M.apply(this,arguments);var iK=P(this.handler,this);this.touch=new UV(this.manager,iK);this.mouse=new rW(this.manager,iK)}
function c7(iK,nM){this.manager=iK;this.set(nM)}
function Q$(iK){if(iK.indexOf("none")>-1)return"none";var nM=iK.indexOf("pan-x")>-1,pM=iK.indexOf("pan-y")>-1;return nM&&pM?"pan-x pan-y":nM||pM?nM?"pan-x":"pan-y":iK.indexOf("manipulation")>-1?"manipulation":"auto"}
function To(iK){this.id=we++;this.manager=null;this.options=V(iK||{},this.defaults);iK=this.options.enable;this.options.enable=iK===b?!0:iK;this.state=1;this.simultaneous={};this.requireFail=[]}
function Ci(iK){return iK==16?"down":iK==8?"up":iK==2?"left":iK==4?"right":""}
function VM(iK,nM){return(nM=nM.manager)?nM.get(iK):iK}
function Go(){To.apply(this,arguments)}
function Io(){Go.apply(this,arguments);this.pY=this.pX=null}
function uz(){Go.apply(this,arguments)}
function RT(){To.apply(this,arguments);this._input=this._timer=null}
function P7(){Go.apply(this,arguments)}
function O8(){Go.apply(this,arguments)}
function ao(){To.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function H7(iK,nM){nM=nM||{};var pM=nM.recognizers;nM.recognizers=pM===b?H7.defaults.preset:pM;return new um(iK,nM)}
function um(iK,nM){nM=nM||{};this.options=V(nM,H7.defaults);this.options.inputTarget=this.options.inputTarget||iK;this.handlers={};this.session={};this.recognizers=[];this.element=iK;this.input=a(this);this.touchAction=new c7(this,this.options.touchAction);CQ(this,!0);w(nM.recognizers,function(pM){var FL=this.add(new pM[0](pM[1]));pM[2]&&FL.recognizeWith(pM[2]);pM[3]&&FL.requireFailure(pM[2])},this)}
function CQ(iK,nM){var pM=iK.element;w(iK.options.cssProps,function(FL,e2){pM.style[t(pM.style,e2)]=nM?FL:""})}
function t1(iK,nM){var pM=G.createEvent("Event");pM.initEvent(iK,!0,!0);pM.gesture=nM;nM.target.dispatchEvent(pM)}
var em=" webkit moz MS ms o".split(" "),Ig=G.createElement("div"),vO=Math.round,v7=Math.abs,YX=Date.now,we=1,bo=/mobile|tablet|ip(ad|hone|od)|android/i,bz="ontouchstart"in B,KQ=t(B,"PointerEvent")!==b,pk=bz&&bo.test(navigator.userAgent),pi=["x","y"],Y$=["clientX","clientY"];M.prototype={handler:function(){},
destroy:function(){this.evEl&&x(this.element,this.evEl,this.domHandler);this.evTarget&&x(this.target,this.evTarget,this.domHandler);this.evWin&&x(B,this.evWin,this.domHandler)}};
var fX={mousedown:1,mousemove:2,mouseup:4};J(rW,M,{handler:function(iK){var nM=fX[iK.type];nM&1&&iK.button===0&&(this.pressed=!0);nM&2&&iK.which!==1&&(nM=4);this.pressed&&this.allow&&(nM&4&&(this.pressed=!1),this.callback(this.manager,nM,{pointers:[iK],changedPointers:[iK],pointerType:"mouse",srcEvent:iK}))}});
var RO={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},m8={2:"touch",3:"pen",4:"mouse",5:"kinect"},wu="pointerdown",z1="pointermove pointerup pointercancel";B.MSPointerEvent&&(wu="MSPointerDown",z1="MSPointerMove MSPointerUp MSPointerCancel");J(MA,M,{handler:function(iK){var nM=this.store,pM=!1,FL=iK.type.toLowerCase().replace("ms","");FL=RO[FL];var e2=m8[iK.pointerType]||iK.pointerType;FL&1&&(iK.button===0||e2=="touch")?nM.push(iK):FL&12&&(pM=!0);var j0=U(nM,iK.pointerId,"pointerId");
j0<0||(nM[j0]=iK,this.callback(this.manager,FL,{pointers:nM,changedPointers:[iK],pointerType:e2,srcEvent:iK}),pM&&nM.splice(j0,1))}});
var cf={touchstart:1,touchmove:2,touchend:4,touchcancel:8};J(UV,M,{handler:function(iK){var nM=cf[iK.type];var pM=Array.prototype.slice.call(iK.touches,0);var FL=this.targetIds;if(nM&3&&pM.length===1)FL[pM[0].identifier]=!0,FL=[pM,pM];else{var e2,j0=Array.prototype.slice.call(iK.targetTouches,0),hX=Array.prototype.slice.call(iK.changedTouches,0),J1=[];if(nM===1)for(pM=0,e2=j0.length;pM<e2;pM++)FL[j0[pM].identifier]=!0;pM=0;for(e2=hX.length;pM<e2;pM++)FL[hX[pM].identifier]&&J1.push(hX[pM]),nM&12&&
delete FL[hX[pM].identifier];FL=J1.length?[A(j0.concat(J1),"identifier",!0),J1]:void 0}FL&&this.callback(this.manager,nM,{pointers:FL[0],changedPointers:FL[1],pointerType:"touch",srcEvent:iK})}});
J(W7,M,{handler:function(iK,nM,pM){var FL=pM.pointerType=="mouse";if(pM.pointerType=="touch")this.mouse.allow=!1;else if(FL&&!this.mouse.allow)return;nM&12&&(this.mouse.allow=!0);this.callback(iK,nM,pM)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var ye=t(Ig.style,"touchAction"),GM=ye!==b;c7.prototype={set:function(iK){iK=="compute"&&(iK=this.compute());GM&&(this.manager.element.style[ye]=iK);this.actions=iK.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var iK=[];w(this.manager.recognizers,function(nM){d(nM.options.enable,[nM])&&(iK=iK.concat(nM.getTouchAction()))});
return Q$(iK.join(" "))},
preventDefaults:function(iK){if(!GM){var nM=iK.srcEvent;iK=iK.offsetDirection;if(this.manager.session.prevented)nM.preventDefault();else{var pM=this.actions,FL=pM.indexOf("none")>-1,e2=pM.indexOf("pan-y")>-1;pM=pM.indexOf("pan-x")>-1;if(FL||e2&&pM||e2&&iK&6||pM&&iK&24)return this.preventSrc(nM)}}},
preventSrc:function(iK){this.manager.session.prevented=!0;iK.preventDefault()}};
To.prototype={defaults:{},set:function(iK){F(this.options,iK);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(iK){if(X(iK,"recognizeWith",this))return this;var nM=this.simultaneous;iK=VM(iK,this);nM[iK.id]||(nM[iK.id]=iK,iK.recognizeWith(this));return this},
dropRecognizeWith:function(iK){if(X(iK,"dropRecognizeWith",this))return this;iK=VM(iK,this);delete this.simultaneous[iK.id];return this},
requireFailure:function(iK){if(X(iK,"requireFailure",this))return this;var nM=this.requireFail;iK=VM(iK,this);U(nM,iK)===-1&&(nM.push(iK),iK.requireFailure(this));return this},
dropRequireFailure:function(iK){if(X(iK,"dropRequireFailure",this))return this;iK=VM(iK,this);iK=U(this.requireFail,iK);iK>-1&&this.requireFail.splice(iK,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(iK){return!!this.simultaneous[iK.id]},
emit:function(iK){function nM(e2){pM.manager.emit(pM.options.event+(e2?FL&16?"cancel":FL&8?"end":FL&4?"move":FL&2?"start":"":""),iK)}
var pM=this,FL=this.state;FL<8&&nM(!0);nM();FL>=8&&nM(!0)},
tryEmit:function(iK){if(this.canEmit())return this.emit(iK);this.state=32},
canEmit:function(){for(var iK=0;iK<this.requireFail.length;iK++)if(!(this.requireFail[iK].state&33))return!1;return!0},
recognize:function(iK){iK=F({},iK);d(this.options.enable,[this,iK])?(this.state&56&&(this.state=1),this.state=this.process(iK),this.state&30&&this.tryEmit(iK)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
J(Go,To,{defaults:{pointers:1},attrTest:function(iK){var nM=this.options.pointers;return nM===0||iK.pointers.length===nM},
process:function(iK){var nM=this.state,pM=iK.eventType,FL=nM&6;iK=this.attrTest(iK);return FL&&(pM&8||!iK)?nM|16:FL||iK?pM&4?nM|8:nM&2?nM|4:2:32}});
J(Io,Go,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var iK=this.options.direction;if(iK===30)return["none"];var nM=[];iK&6&&nM.push("pan-y");iK&24&&nM.push("pan-x");return nM},
directionTest:function(iK){var nM=this.options,pM=!0,FL=iK.distance,e2=iK.direction,j0=iK.deltaX,hX=iK.deltaY;e2&nM.direction||(nM.direction&6?(e2=j0===0?1:j0<0?2:4,pM=j0!=this.pX,FL=Math.abs(iK.deltaX)):(e2=hX===0?1:hX<0?8:16,pM=hX!=this.pY,FL=Math.abs(iK.deltaY)));iK.direction=e2;return pM&&FL>nM.threshold&&e2&nM.direction},
attrTest:function(iK){return Go.prototype.attrTest.call(this,iK)&&(this.state&2||!(this.state&2)&&this.directionTest(iK))},
emit:function(iK){this.pX=iK.deltaX;this.pY=iK.deltaY;var nM=Ci(iK.direction);nM&&this.manager.emit(this.options.event+nM,iK);this._super.emit.call(this,iK)}});
J(uz,Go,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(iK){return this._super.attrTest.call(this,iK)&&(Math.abs(iK.scale-1)>this.options.threshold||this.state&2)},
emit:function(iK){this._super.emit.call(this,iK);iK.scale!==1&&this.manager.emit(this.options.event+(iK.scale<1?"in":"out"),iK)}});
J(RT,To,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(iK){var nM=this.options,pM=iK.pointers.length===nM.pointers,FL=iK.distance<nM.threshold,e2=iK.deltaTime>nM.time;this._input=iK;if(!FL||!pM||iK.eventType&12&&!e2)this.reset();else if(iK.eventType&1)this.reset(),this._timer=z(function(){this.state=8;this.tryEmit()},nM.time,this);
else if(iK.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(iK){this.state===8&&(iK&&iK.eventType&4?this.manager.emit(this.options.event+"up",iK):(this._input.timeStamp=YX(),this.manager.emit(this.options.event,this._input)))}});
J(P7,Go,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(iK){return this._super.attrTest.call(this,iK)&&(Math.abs(iK.rotation)>this.options.threshold||this.state&2)}});
J(O8,Go,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return Io.prototype.getTouchAction.call(this)},
attrTest:function(iK){var nM=this.options.direction;if(nM&30)var pM=iK.velocity;else nM&6?pM=iK.velocityX:nM&24&&(pM=iK.velocityY);return this._super.attrTest.call(this,iK)&&nM&iK.direction&&v7(pM)>this.options.velocity&&iK.eventType&4},
emit:function(iK){var nM=Ci(iK.direction);nM&&this.manager.emit(this.options.event+nM,iK);this.manager.emit(this.options.event,iK)}});
J(ao,To,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(iK){var nM=this.options,pM=iK.pointers.length===nM.pointers,FL=iK.distance<nM.threshold,e2=iK.deltaTime<nM.time;this.reset();if(iK.eventType&1&&this.count===0)return this.failTimeout();if(FL&&e2&&pM){if(iK.eventType!=4)return this.failTimeout();pM=this.pTime?iK.timeStamp-this.pTime<nM.interval:!0;FL=!this.pCenter||$Q(this.pCenter,iK.center)<nM.posThreshold;this.pTime=iK.timeStamp;this.pCenter=iK.center;FL&&pM?this.count+=1:this.count=1;this._input=iK;if(this.count%nM.taps===0)return this.hasRequireFailures()?
(this._timer=z(function(){this.state=8;this.tryEmit()},nM.interval,this),2):8}return 32},
failTimeout:function(){this._timer=z(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))}});
H7.VERSION="2.0.2";H7.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[P7,{enable:!1}],[uz,{enable:!1},["rotate"]],[O8,{direction:6}],[Io,{direction:6},["swipe"]],[ao],[ao,{event:"doubletap",taps:2},["tap"]],[RT]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};um.prototype={set:function(iK){F(this.options,iK);return this},
stop:function(iK){this.session.stopped=iK?2:1},
recognize:function(iK){var nM=this.session;if(!nM.stopped){this.touchAction.preventDefaults(iK);var pM=this.recognizers,FL=nM.curRecognizer;if(!FL||FL&&FL.state&8)FL=nM.curRecognizer=null;for(var e2=0,j0=pM.length;e2<j0;e2++){var hX=pM[e2];nM.stopped===2||FL&&hX!=FL&&!hX.canRecognizeWith(FL)?hX.reset():hX.recognize(iK);!FL&&hX.state&14&&(FL=nM.curRecognizer=hX)}}},
get:function(iK){if(iK instanceof To)return iK;for(var nM=this.recognizers,pM=0;pM<nM.length;pM++)if(nM[pM].options.event==iK)return nM[pM];return null},
add:function(iK){if(X(iK,"add",this))return this;var nM=this.get(iK.options.event);nM&&this.remove(nM);this.recognizers.push(iK);iK.manager=this;this.touchAction.update();return iK},
remove:function(iK){if(X(iK,"remove",this))return this;var nM=this.recognizers;iK=this.get(iK);nM.splice(U(nM,iK),1);this.touchAction.update();return this},
on:function(iK,nM){var pM=this.handlers;w(E(iK),function(FL){pM[FL]=pM[FL]||[];pM[FL].push(nM)});
return this},
off:function(iK,nM){var pM=this.handlers;w(E(iK),function(FL){nM?pM[FL].splice(U(pM[FL],nM),1):delete pM[FL]});
return this},
emit:function(iK,nM){this.options.domEvents&&t1(iK,nM);var pM=this.handlers[iK]&&this.handlers[iK].slice();if(pM&&pM.length){nM.type=iK;nM.preventDefault=function(){nM.srcEvent.preventDefault()};
iK=0;for(var FL=pM.length;iK<FL;iK++)pM[iK](nM)}},
destroy:function(){this.element&&CQ(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
F(H7,{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:um,Input:M,TouchAction:c7,Recognizer:To,AttrRecognizer:Go,Tap:ao,Pan:Io,Swipe:O8,Pinch:uz,Rotate:P7,Press:RT,on:Q,off:x,each:w,merge:V,extend:F,inherit:J,bindFn:P,prefixed:t});
B[g]=H7})(window,document,"Hammer");
return window.Hammer}.call({});
S.DOCUMENT=f;f[fw$]=S}return f[fw$]};/*

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

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 $B1;_.qn1="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");$B1=function(){var f=[],S;var B=B||_.qn1.length;for(S=0;S<8;S++)f[S]=_.qn1[0|Math.random()*B];return f.join("")};var BpM=function(){return Math.random().toString(36).substring(7).split("").join(".")},SHA="@@redux/INIT"+BpM(),ehA="@@redux/REPLACE"+BpM();var b4M=typeof Symbol==="function"&&Symbol.observable||"@@observable";var QSm=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var Ynj="top right bottom left width height size weight".split(" "),rZL=typeof MutationObserver!=="undefined",jS7=QSm&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,OH8=function(){this.mutationEventsAdded_=this.JSC$9715_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=ma1(this.refresh.bind(this))},xBL=function(f,
S){var B=f.observers_;
S=B.indexOf(S);~S&&B.splice(S,1);!B.length&&f.JSC$9715_connected_&&QSm&&f.JSC$9715_connected_&&(document.removeEventListener("transitionend",f.onTransitionEnd_),window.removeEventListener("resize",f.refresh),f.mutationsObserver_&&(f.mutationsObserver_.disconnect(),jS7&&(HTMLElement.prototype.attachShadow=jS7)),f.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",f.refresh),f.mutationsObserver_=null,f.mutationEventsAdded_=!1,f.JSC$9715_connected_=!1)};
OH8.prototype.refresh=function(){Ee1(this)&&this.refresh()};
var Ee1=function(f){f=f.observers_.filter(function(S){return LTo(S),S.activeObservations_.length>0});
f.forEach(function(S){return ki8(S)});
return f.length>0},ne6=function(f){if(QSm&&!f.JSC$9715_connected_){document.addEventListener("transitionend",f.onTransitionEnd_);
window.addEventListener("resize",f.refresh);if(rZL){f.mutationsObserver_=new MutationObserver(f.refresh);var S={attributes:!0,childList:!0,characterData:!0,subtree:!0};f.mutationsObserver_.observe(document,S);jS7&&(function g(G){var b=G.shadowRoot;b&&(f.mutationsObserver_.observe(b,S),g(b));for(G=G.firstElementChild;G;)g(G),G=G.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var G=jS7.apply(this,_.qb.apply(0,arguments));
f.mutationsObserver_.observe(G,S);return G})}else document.addEventListener("DOMSubtreeModified",f.refresh),f.mutationEventsAdded_=!0;
f.JSC$9715_connected_=!0}};
OH8.prototype.onTransitionEnd_=function(f){var S=f.propertyName===void 0?"":f.propertyName;Ynj.some(function(B){return!!~S.indexOf(B)})&&this.refresh()};
var sS8=null;var DBN=function(f,S){for(var B=_.m(Object.keys(S)),G=B.next();!G.done;G=B.next())G=G.value,Object.defineProperty(f,G,{value:S[G],enumerable:!1,writable:!1,configurable:!0})};var sd=function(f){var S;return(f==null?void 0:(S=f.ownerDocument)==null?void 0:S.defaultView)||globalThis};var Iwm={x:0,y:0,width:0,height:0},UBo=typeof SVGGraphicsElement!=="undefined"?function(f){return f instanceof sd(f).SVGGraphicsElement}:function(f){return f instanceof sd(f).SVGElement&&typeof f.getBBox==="function"};var Ckm=function(f){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=f};
Ckm.prototype.isActive=function(){var f=this.target;if(QSm)if(UBo(f)){var S=f.getBBox();S={x:0,y:0,width:S.width,height:S.height}}else{var B=f.clientWidth,G=f.clientHeight;if(B||G){var g=sd(f).getComputedStyle(f);S=Tl(g["padding-top"]);var b=Tl(g["padding-left"]),z=b+Tl(g["padding-right"]),X=S+Tl(g["padding-bottom"]),w=Tl(g.width),F=Tl(g.height);g.boxSizing==="border-box"&&(Math.round(w+z)!==B&&(w-=zhs(g,"left","right")+z),Math.round(F+X)!==G&&(F-=zhs(g,"top","bottom")+X));f!==sd(f).document.documentElement&&
(f=Math.round(w+z)-B,G=Math.round(F+X)-G,Math.abs(f)!==1&&(w-=f),Math.abs(G)!==1&&(F-=G));S={x:b,y:S,width:w,height:F}}else S=Iwm}else S=Iwm;this.contentRect_=S;return S.width!==this.broadcastWidth||S.height!==this.broadcastHeight};var psN=function(f,S){var B=S.x;var G=S.y;var g=S.width;S=S.height;var b=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);DBN(b,{x:B,y:G,width:g,height:S,top:G,right:B+g,bottom:S+G,left:B});DBN(this,{target:f,contentRect:b})};var AZ7=function(f,S){var B=sS8;this.activeObservations_=[];this.observations_=new Map;if(typeof f!=="function")throw new TypeError("Qe");this.callback_=f;this.controller_=B;this.callbackCtx_=S};
AZ7.prototype.observe=function(f){if(f===void 0)throw new TypeError("Re");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(f instanceof sd(f).Element))throw new TypeError("Se");var S=this.observations_;S.has(f)||(S.set(f,new Ckm(f)),f=this.controller_,~f.observers_.indexOf(this)||f.observers_.push(this),f.JSC$9715_connected_||ne6(f),this.controller_.refresh())}};
AZ7.prototype.unobserve=function(f){if(f===void 0)throw new TypeError("Re");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(f instanceof sd(f).Element))throw new TypeError("Se");var S=this.observations_;S.has(f)&&(S.delete(f),S.size||xBL(this.controller_,this))}};
AZ7.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();xBL(this.controller_,this)};
var LTo=function(f){f.activeObservations_.splice(0);f.observations_.forEach(function(S){S.isActive()&&f.activeObservations_.push(S)})},ki8=function(f){if(f.activeObservations_.length>0){var S=f.callbackCtx_,B=f.activeObservations_.map(function(G){var g=G.target,b=G.contentRect_;
G.broadcastWidth=b.width;G.broadcastHeight=b.height;return new psN(g,b)});
f.callback_.call(S,B,S);f.activeObservations_.splice(0)}};var D6=function(f){if(!(this instanceof D6))throw new TypeError("Te");if(!arguments.length)throw new TypeError("Re");sS8||(sS8=new OH8);this.observer_=new AZ7(f,this)};
D6.prototype.observe=function(f){this.observer_.observe(f)};
D6.prototype.unobserve=function(f){this.observer_.unobserve(f)};
D6.prototype.disconnect=function(){this.observer_.disconnect()};var BrG=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:D6;var J$1="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(" "),VTT={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},FGK=null,Rh1=null;var PhN={},vWN=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 Qm1={text:1},i41={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var NRv=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,MP8={CONSTANT:{isUnwrappable:function(f){return f instanceof sU},
unwrap:sTo},JAVASCRIPT:{isUnwrappable:function(f){return f instanceof _.sQ},
unwrap:IP},HTML:{isUnwrappable:function(f){return f instanceof rc},
unwrap:function(f){return OQ(f)}},
RESOURCE_URL:{isUnwrappable:function(f){return f instanceof mg},
unwrap:_.RP},STRING:{isUnwrappable:function(f){return f instanceof Object},
unwrap:function(f){return String(f)}},
STYLE:{isUnwrappable:function(f){return typeof f==="string"},
unwrap:function(f){return f}},
URL:{isUnwrappable:function(f){return F6(f)},
unwrap:_.Ve}},ZHo={CONSTANT:YHA,JAVASCRIPT:YHA,HTML:function(f){f=f instanceof rc?f:jZ(String(f).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return OQ(f)},
RESOURCE_URL:YHA,STRING:String,STYLE:YHA,URL:function(f,S){f=NRv.test(f)?f:void 0;return f===void 0?S:f}};var IIj=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,r$K=/[\t\n\f\r ]+/,O4T=/[\t\n\f\r ,]+/g,EW9=function(f,S,B){return B},PZ={},tPm=function(){var f=function(){var G={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",G):G}(),S=f.createHTML(""),B=f.createScript("");
f=f.createScriptURL("");return{INNOCUOUS_STRING:S,INNOCUOUS_SCRIPT:B,INNOCUOUS_URL:f}}(),J2=tPm.INNOCUOUS_STRING,DaW=tPm.INNOCUOUS_SCRIPT,smK=tPm.INNOCUOUS_URL;var u_i=function(f){var S=UaG(f);return function(B,G,g,b){return b?S(b,G,g,B):J2}}({reportHandler:function(f,S){if(f)try{throw Error(S);
}catch(B){_.xH(B)}},
safeTypesBridge:function(f,S,B){var G=MP8[S];return G.isUnwrappable(f)&&(G=G.unwrap(f,B),G!==B)?G:(0,ZHo[S])(String(f),B)},
allowedIdentifierPrefixes:[""]});if(PS!==void 0)throw Error("Ue");PS=u_i;if(PS!==u_i)throw Error("Ve");vZ("Injectable",[]);var wqK=vZ("Inject",[["token",void 0]]),T8G=vZ("Optional",[]);vZ("Injectable",[]);var FRA=vZ("Self",[]),VsT=vZ("SkipSelf",[]);vZ("Host",[]);var aw6={},yZL=function(){};
yZL.prototype.resolve=function(){throw Error("Xe");};
yZL.prototype.addProvider=function(){throw Error("Xe");};var R2V=Function;var WTL=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,cZ6=function(){this._reflect=window.Reflect};
_.e=cZ6.prototype;_.e.factory=function(f){return function(){return new (Function.prototype.bind.apply(f,[null].concat(_.$d(_.qb.apply(0,arguments)))))}};
_.e._zipTypesAndAnnotations=function(f,S){var B=typeof f==="undefined"?Array(S.length):Array(f.length);for(var G=0;G<B.length;G++)B[G]=typeof f==="undefined"?[]:f[G]!=Object?[f[G]]:[],S&&p_W(S[G])&&(B[G]=B[G].concat(S[G]));return B};
_.e._ownParameters=function(f,S){if(WTL.exec(f.toString()))return null;if(f.parameters&&f.parameters!==S.parameters)return f.parameters;var B=f.ctorParameters;return B&&B!==S.ctorParameters?(S=typeof B==="function"?B():B,f=S.map(function(G){return G&&G.type}),S=S.map(function(G){return G&&NpN(G.decorators)}),this._zipTypesAndAnnotations(f,S)):p_W(this._reflect)&&p_W(this._reflect.getOwnMetadata)&&(S=this._reflect.getOwnMetadata("parameters",f),(B=this._reflect.getOwnMetadata("design:paramtypes",f))||
S)?this._zipTypesAndAnnotations(B,S):Array(f.length).fill(void 0)};
_.e.parameters=function(f){if(!f.prototype)return[];var S=Object.getPrototypeOf(f.prototype).constructor;(f=this._ownParameters(f,S))||S===Object||(f=this.parameters(S));return f||[]};
_.e._ownAnnotations=function(f,S){if(f.annotations&&f.annotations!==S.annotations)return f=f.annotations,typeof f==="function"&&f.annotations&&(f=f.annotations),f;if(f.decorators&&f.decorators!==S.decorators)return NpN(f.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",f)};
_.e.annotations=function(f){var S=Object.getPrototypeOf(f.prototype).constructor;f=this._ownAnnotations(f,S)||[];return(S!==Object?this.annotations(S):[]).concat(f)};
_.e._ownPropMetadata=function(f,S){if(f.propMetadata&&f.propMetadata!==S.propMetadata)return f=f.propMetadata,typeof f==="function"&&f.propMetadata&&(f=f.propMetadata),f;if(f.propDecorators&&f.propDecorators!==S.propDecorators){var B=f.propDecorators,G={};Object.keys(B).forEach(function(g){G[g]=NpN(B[g])});
return G}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",f)};
_.e.propMetadata=function(f){var S=Object.getPrototypeOf(f.prototype).constructor,B={};if(S!==Object){var G=this.propMetadata(S);Object.keys(G).forEach(function(b){B[b]=G[b]})}var g=this._ownPropMetadata(f,S);
g&&Object.keys(g).forEach(function(b){var z=[];B.hasOwnProperty(b)&&z.push.apply(z,_.$d(B[b]));z.push.apply(z,_.$d(g[b]));B[b]=z});
return B};
_.e.getter=function(f){return function(S){return S[f]}};
_.e.method=function(f){return function(S,B){if(!S[f])throw Error("Ye`"+f);return S[f].apply(S,B)}};var lw7=function(){};var fdo=function(f){this.reflectionCapabilities=f};
_.q(fdo,lw7);_.e=fdo.prototype;_.e.factory=function(f){return this.reflectionCapabilities.factory(f)};
_.e.parameters=function(f){return this.reflectionCapabilities.parameters(f)};
_.e.annotations=function(f){return this.reflectionCapabilities.annotations(f)};
_.e.propMetadata=function(f){return this.reflectionCapabilities.propMetadata(f)};
_.e.getter=function(f){return this.reflectionCapabilities.getter(f)};
_.e.method=function(f){return this.reflectionCapabilities.method(f)};var lIj=new fdo(new cZ6);var IV=function(f,S){this.token=f;this.id=S;if(f===void 0||f===null)throw Error("cf");};
_.y3.Object.defineProperties(IV.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return Kk(this.token)}}});
_.y3.Object.defineProperties(IV,{JSC$9757_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return iT.JSC$9761_numberOfKeys}}});
var o8m=function(){this._allKeys=new Map};
o8m.prototype.get=function(f){if(f instanceof IV)return f;if(this._allKeys.has(f))return this._allKeys.get(f);var S=new IV(f,IV.JSC$9757_numberOfKeys);this._allKeys.set(f,S);return S};
_.y3.Object.defineProperties(o8m.prototype,{JSC$9761_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var iT=new o8m;var JeN=function(f,S,B){this.key=f;this.optional=S;this.visibility=B},oUN=function(f){return new JeN(f,!1,null)},B8A=[],e2K=function(f,S,B){this.key=f;
this.resolvedFactories=S;this.multiProvider=B},G4x=function(f,S,B,G){this.factory=f;
this.dependencies=S;this.providerClass=B;this.providerValue=G};var Ud={},Cd=function(f,S){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=S===void 0?null:S;f=_.m(f);for(S=f.next();!S.done;S=f.next())this.addProvider(S.value)};
_.e=Cd.prototype;_.e.addProvider=function(f){this.keyIdToIndex.set(f.key.id,this.keyIds.length);this.providers.push(f);this.keyIds.push(f.key.id);this.objs.push(Ud)};
_.e.resolve=function(f,S){S=S===void 0?aw6:S;return this._getByKey(iT.get(di(f)),null,S)};
_.e._new=function(f){if(this.constructedKeyIds[f.key.id])throw y$N(this,f.key);this.constructedKeyIds[f.key.id]=!0;return this._instantiateProvider(f)};
_.e._instantiateProvider=function(f){if(f.multiProvider){for(var S=Array(f.resolvedFactories.length),B=0;B<f.resolvedFactories.length;++B)S[B]=this._instantiate(f,f.resolvedFactories[B]);return S}return this._instantiate(f,f.resolvedFactories[0])};
_.e._instantiate=function(f,S){var B=this,G=S.factory;try{var g=S.dependencies.map(function(z){return B._getByReflectiveDependency(z)})}catch(z){throw z.addKey&&z.addKey(this,f.key),z;
}try{var b=G.apply(null,_.$d(g))}catch(z){throw WGs(this,z,f.key);}return b};
_.e._getByReflectiveDependency=function(f){return this._getByKey(f.key,f.visibility,f.optional?null:aw6)};
_.e._getByKey=function(f,S,B){return f===So6?this:S instanceof FRA?this._getByKeySelf(f,B):this._getByKeyDefault(f,B,S)};
_.e._getObjByKeyId=function(f){for(var S=0;S<this.keyIds.length;S++)if(this.keyIds[S]===f)return this.objs[S]===Ud&&(this.objs[S]=this._new(this.providers[S])),this.objs[S];return Ud};
_.e._throwOrNull=function(f,S){if(S!==aw6)return S;throw aI9(this,f);};
_.e._getByKeySelf=function(f,S){var B=this._getObjByKeyId(f.id);return B!==Ud?B:this._throwOrNull(f,S)};
_.e._getByKeyDefault=function(f,S,B){for(var G=B=B instanceof VsT?this.parent:this;B instanceof Cd;){var g=B._getObjByKeyId(f.id);if(g!==Ud)return g;B=B.parent}g=void 0;if(B!==null)try{var b=B.resolve(f.token,S);if(b!==Ud)return b}catch(z){g=z}if(!(G instanceof Cd&&vUN(f.token))){if(g)throw g;return this._throwOrNull(f,S)}for(b=G;b.parent instanceof Cd;)b=b.parent;b.addProvider(bb9({provide:f.token,useClass:f.token}));return b.resolve(f.token,S)};
_.e.toString=function(){return this.displayName};
_.y3.Object.defineProperties(Cd.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+P41(this,function(f){return' "'+f.key.displayName+'" '}).join(", ")+"])"}}});
var So6=iT.get(di(yZL));(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 Bm$=window.XRegExp;var GDo=-1,g8m=function(f){addEventListener("pageshow",function(S){S.persisted&&(GDo=S.timeStamp,f(S))},!0)};var b9X=function(f,S,B){var G=ed6,g,b;return function(z){if(S.value>=0&&(z||B)){var X;if((b=S.value-((X=g)!=null?X:0))||g===void 0)g=S.value,S.delta=b,z=S.value,S.rating=z>G[1]?"poor":z>G[0]?"needs-improvement":"good",f(S)}}};var m1m=function(f){requestAnimationFrame(function(){return requestAnimationFrame(function(){return f()})})};var zdm=function(){var f=performance.getEntriesByType("navigation")[0];if(f&&f.responseStart>0&&f.responseStart<performance.now())return f};var Rdo=function(){var f,S;return(S=(f=zdm())==null?void 0:f.activationStart)!=null?S:0};var Xwm=function(){var f=f===void 0?-1:f;var S=zdm(),B="navigate";GDo>=0?B="back-forward-cache":S&&(document.prerendering||Rdo()>0?B="prerender":document.wasDiscarded?B="restore":S.type&&(B=S.type.replace(/_/g,"-")));return{name:"LCP",value:f,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:B}};var dFN=new WeakMap;var ww6=function(f){var S=S===void 0?{}:S;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var B=new PerformanceObserver(function(G){Promise.resolve().then(function(){f(G.getEntries())})});
B.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},S));return B}}catch(G){}};var hdv=function(f){var S=!1;return function(){S||(f(),S=!0)}};var pd=-1,TmN=function(f){document.visibilityState==="hidden"&&pd>-1&&(pd=f.type==="visibilitychange"?f.timeStamp:0,removeEventListener("visibilitychange",TmN,!0),removeEventListener("prerenderingchange",TmN,!0))},FyL=function(){addEventListener("visibilitychange",TmN,!0);
addEventListener("prerenderingchange",TmN,!0)},Vqj=function(){if(pd<0){var f=Rdo(),S,B;
pd=(B=document.prerendering?void 0:(S=globalThis.performance.getEntriesByType("visibility-state").filter(function(G){return G.name==="hidden"&&G.startTime>f})[0])==null?void 0:S.startTime)!=null?B:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
FyL();g8m(function(){setTimeout(function(){pd=document.visibilityState!=="hidden"||document.prerendering?Infinity:0;FyL()})})}return{get firstHiddenTime(){return pd}}};var J31=function(f){document.prerendering?addEventListener("prerenderingchange",function(){return f()},!0):f()};var PFL=function(f){var S=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?f():(f=hdv(f),document.addEventListener("visibilitychange",f,{once:!0}),S(function(){f();document.removeEventListener("visibilitychange",f)}))};var KRT=function(){};
KRT.prototype._processEntry=function(f){var S;(S=this._onBeforeProcessingEntry)==null||S.call(this,f)};var ed6=[2500,4E3],c8x=function(f){var S=S===void 0?{}:S;J31(function(){var B=Vqj(),G=Xwm(),g=ib1(S),b=function(J){S.reportAllChanges||(J=J.slice(-1));J=_.m(J);for(var P=J.next();!P.done;P=J.next())P=P.value,g._processEntry(P),P.startTime<B.firstHiddenTime&&(G.value=Math.max(P.startTime-Rdo(),0),G.entries=[P],X())},z=ww6(b);
if(z){var X=b9X(f,G,S.reportAllChanges);for(var w=hdv(function(){b(z.takeRecords());z.disconnect();X(!0)}),F=_.m(["keydown",
"click","visibilitychange"]),V=F.next();!V.done;V=F.next())addEventListener(V.value,function(){return PFL(w)},{capture:!0,
once:!0});g8m(function(J){G=Xwm();X=b9X(f,G,S.reportAllChanges);m1m(function(){G.value=performance.now()-J.timeStamp;X(!0)})})}})};var v87;var KyN;_.W=function(){return KyN!==void 0?KyN:KyN=document.createElement("template")};
document.head.appendChild(_.W().content);var d1X;_.OW({_template:function(){if(d1X!==void 0)return d1X;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);
var S=f.content,B=S.insertBefore;v87===void 0&&(v87=document.createElement("template"));var G=v87;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return d1X=f},
is:"tp-yt-app-toolbar"});var i9m;var H9g;_.A5=function(){};
_.A5=_.OW({_template:function(){if(H9g!==void 0)return H9g;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;i9m===void 0&&(i9m=document.createElement("template"));var G=i9m;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return H9g=f},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.A5.instance||(_.A5.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(f){this._text===f&&(f+="\u00a0");this._text="";this.async(function(){this._text=f},this.timeout)},
_onIronAnnounce:function(f){f.detail&&f.detail.text&&this.announce(f.detail.text)}});
_.A5.instance=null;_.A5.requestAvailability=function(){_.A5.instance||(_.A5.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.A5.instance):document.addEventListener("load",function(){document.body.appendChild(_.A5.instance)})};var qoX;var $1g;/*

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

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 Nx,E8o,Ly1;Nx=Element.prototype;E8o=Nx.matches||Nx.matchesSelector||Nx.mozMatchesSelector||Nx.msMatchesSelector||Nx.oMatchesSelector||Nx.webkitMatchesSelector;Ly1=function(){};
_.n8X=function(f){var S=kDN,B=[];return S._collectTabbableNodes(f,B)?S._sortByTabIndex(B):B};
_.e=Ly1.prototype;_.e._normalizedTabIndex=function(f){return(E8o.call(f,"input, select, textarea, button, object")?E8o.call(f,":not([disabled])"):E8o.call(f,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(f=f.getAttribute("tabindex")||0,Number(f)):-1};
_.e._collectTabbableNodes=function(f,S){if(f.nodeType!==Node.ELEMENT_NODE||!this._isVisible(f))return!1;var B=this._normalizedTabIndex(f),G=B>0;B>=0&&S.push(f);if(f.localName==="content"||f.localName==="slot")B=_.HZ(f).getDistributedNodes();else{var g;B=((g=_.HZ(f).shadowRoot)!=null?g:_.HZ(f.root||f)).children}for(f=0;f<B.length;f++)G=this._collectTabbableNodes(B[f],S)||G;return G};
_.e._isVisible=function(f){var S=f.style;return S.visibility!=="hidden"&&S.display!=="none"?(S=window.getComputedStyle(f),S.visibility!=="hidden"&&S.display!=="none"):!1};
_.e._sortByTabIndex=function(f){var S=f.length;if(S<2)return f;var B=Math.ceil(S/2);S=this._sortByTabIndex(f.slice(0,B));f=this._sortByTabIndex(f.slice(B));return this._mergeSortByTabIndex(S,f)};
_.e._mergeSortByTabIndex=function(f,S){for(var B=[];f.length>0&&S.length>0;)this._hasLowerTabOrder(f[0],S[0])?B.push(S.shift()):B.push(f.shift());return B.concat(f,S)};
_.e._hasLowerTabOrder=function(f,S){f=Math.max(f.tabIndex,0);S=Math.max(S.tabIndex,0);return f===0||S===0?S>f:f>S};
var kDN=new Ly1;var sa1;var D1i;_.OW({_template:function(){if(D1i!==void 0)return D1i;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;sa1===void 0&&(sa1=document.createElement("template"));var G=sa1;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return D1i=f},
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&&_.HZ(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.HZ(this.parentNode).removeChild(this)},
_onTransitionend:function(f){f&&f.target===this&&this.complete()},
_openedChanged:function(f){f?this.prepare():(f=window.getComputedStyle(this),f.transitionDuration!=="0s"&&f.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 Mx=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;ju(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)};
Mx.prototype._bringOverlayAtIndexToFront=function(f){var S=this._overlays[f];if(S){var B=this._overlays.length-1,G=this._overlays[B];G&&this._shouldBeBehindOverlay(S,G)&&B--;if(!(f>=B)){G=Math.max(this._getZ(_.IdX(this)),this._minimumZ);for(this._getZ(S)<=G&&this._applyOverlayZ(S,G);f<B;)this._overlays[f]=this._overlays[f+1],f++;this._overlays[B]=S}}};
Mx.prototype.addOverlay=function(f){var S=this._overlays.indexOf(f);if(S>=0)this._bringOverlayAtIndexToFront(S);else{S=this._overlays.length;var B=this._overlays[S-1],G=Math.max(this._getZ(B),this._minimumZ),g=this._getZ(f);B&&this._shouldBeBehindOverlay(f,B)&&(this._applyOverlayZ(B,G),S--,G=Math.max(this._getZ(this._overlays[S-1]),this._minimumZ));g<=G&&this._applyOverlayZ(f,G);this._overlays.splice(S,0,f)}this.trackBackdrop()};
Mx.prototype.removeOverlay=function(f){f=this._overlays.indexOf(f);f!==-1&&(this._overlays.splice(f,1),this.trackBackdrop())};
_.IdX=function(f){return f._overlays[f._overlays.length-1]};
_.e=Mx.prototype;_.e.trackBackdrop=function(){var f=this._overlayWithBackdrop();if(f||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(f)-1,this.backdropElement.opened=!!f,this.backdropElement.prepare()};
_.e._overlayWithBackdrop=function(){for(var f=this._overlays.length-1;f>=0;f--)if(this._overlays[f].withBackdrop)return this._overlays[f]};
_.e._getZ=function(f){var S=this._minimumZ;if(f){var B,G,g=Number(((B=f.hostElement)!=null?B:f).style.zIndex||window.getComputedStyle((G=f.hostElement)!=null?G:f).zIndex);g===g&&(S=g)}return S};
_.e._setZ=function(f,S){var B;((B=f.hostElement)!=null?B:f).style.zIndex=S};
_.e._applyOverlayZ=function(f,S){this._setZ(f,S+2)};
_.e._overlayInPath=function(f){f=f||[];for(var S=0;S<f.length;S++){var B=void 0;if(((B=f[S].polymerController)!=null?B:f[S])._manager===this)return f[S]}};
_.e._onCaptureClick=function(f){var S=this._overlays.length-1;if(S!==-1)for(var B=_.HZ(f).path,G,g;(G=this._overlays[S])&&this._overlayInPath(B)!==((g=G.hostElement)!=null?g:G);)if(G._onCaptureClick(f),G.allowClickThrough)S--;else break};
_.e._onCaptureFocus=function(f){var S=_.IdX(this);S&&S._onCaptureFocus(f)};
_.e._onCaptureKeyDown=function(f){var S=_.IdX(this);S&&(_.qx.keyboardEventMatchesKeys(f,"esc")?S._onCaptureEsc(f):_.qx.keyboardEventMatchesKeys(f,"tab")&&S._onCaptureTab(f))};
_.e._shouldBeBehindOverlay=function(f,S){return!f.alwaysOnTop&&S.alwaysOnTop&&!S.contains(f)};
_.y3.Object.defineProperties(Mx.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 f=document.activeElement;f&&f instanceof Element!==!1||(f=document.body);for(;f.root&&_.HZ(f.root).activeElement;)f=_.HZ(f.root).activeElement;return f}}});
_.Z6=new Mx;var Hbx=0,qJQ=0,$FQ=null,QFV=[],q5=["wheel","mousewheel","DOMMouseScroll"],YJj;_.K("web_no_lock_on_touchstart_killswitch")&&(q5.push("touchstart"),q5.push("touchmove"));_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=[];_._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=null;
_._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=null;_.t5={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:_.Z6},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var f;return this._focusedChild||_.HZ((f=this.hostElement)!=null?f:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var f;return _.n8X((f=this.hostElement)!=null?f: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 f;this._observer=_.HZ((f=this.hostElement)!=null?f:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var f;_.HZ((f=this.hostElement)!=null?f:this).unobserveNodes(this._observer)}this._observer=null;for(var S in this.__rafs)this.__rafs[S]!==null&&cancelAnimationFrame(this.__rafs[S]);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(f){this.fire("iron-overlay-canceled",f,{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 f;((f=this.hostElement)!=null?f:this).style.outline="none";var S;((S=this.hostElement)!=null?S:this).style.display="none"}},
_openedChanged:function(f){if(f){var S;((S=this.hostElement)!=null?S:this).removeAttribute("aria-hidden")}else{var B;((B=this.hostElement)!=null?B: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 f;if(this.withBackdrop&&!((f=this.hostElement)!=null?f:this).hasAttribute("tabindex")){var S;((S=this.hostElement)!=null?S:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var B;((B=this.hostElement)!=null?B: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 f;((f=this.hostElement)!=null?f:this).style.display="none";var S;((S=this.hostElement)!=null?S:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var f,S;((f=this.hostElement)!=null?f:this).style.transition=((S=this.hostElement)!=null?S:this).style.webkitTransition="none";var B,G;((B=this.hostElement)!=null?B:this).style.transform=((G=this.hostElement)!=null?G:this).style.webkitTransform="none";var g;((g=this.hostElement)!=null?g:this).style.display=""},
_finishPositioning:function(){var f;((f=this.hostElement)!=null?f:this).style.display="none";this.scrollTop=this.scrollTop;var S,B;((S=this.hostElement)!=null?S:this).style.transition=((B=this.hostElement)!=null?B:this).style.webkitTransition="";var G,g;((G=this.hostElement)!=null?G:this).style.transform=((g=this.hostElement)!=null?g:this).style.webkitTransform="";var b;((b=this.hostElement)!=null?b:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var f=this._manager.deepActiveElement,S;if(!(S=f===document.body))a:{for(;f;f=f.assignedSlot||f.parentNode||f.host)if(f===this){S=!0;break a}S=!1}S&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(f){this.noCancelOnOutsideClick||this.cancel(f)},
_onCaptureFocus:function(f){if(this.withBackdrop){var S=_.HZ(f).path;S.indexOf(this)===-1?(f.stopPropagation(),this._applyFocus()):this._focusedChild=S[0]}},
_onCaptureEsc:function(f){this.noCancelOnEscKey||this.cancel(f)},
_onCaptureTab:function(f){if(this.withBackdrop){this.__ensureFirstLastFocusables();var S=f.shiftKey,B=S?this.__firstFocusableNode:this.__lastFocusableNode;S=S?this.__lastFocusableNode:this.__firstFocusableNode;if(B===S)B=!0;else{var G=this._manager.deepActiveElement;B=G===B||G===this}B&&(f.preventDefault(),this._focusedChild=S,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 f=this._focusableNodes;this.__firstFocusableNode=f[0];this.__lastFocusableNode=f[f.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(f,S){var B=this.__rafs;B[f]!==null&&cancelAnimationFrame(B[f]);B[f]=requestAnimationFrame(function(){B[f]=null;S.call(this)}.bind(this))},
__updateScrollObservers:function(f,S,B){f&&S&&this.__isValidScrollAction(B)?(B==="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),YJj=_._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()):(f=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),f!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(f,1),YJj=_._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(n_)for(var f=this;f;)f.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&f.host&&this.__rootNodes.push(f),f=f.host||f.assignedSlot||f.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(S){S.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(f){f.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(f){return f==="lock"||f==="refit"||f==="cancel"},
__onCaptureScroll:function(f){if(!(this.__isAnimating||_.HZ(f).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(f)}},
__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)}};
_.uH=[x1m,_.Ld,_.t5];_.OW({_template:function(){if(jav!==void 0)return jav;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;r37===void 0&&(r37=document.createElement("template"));var G=r37;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return jav=f},
is:"tp-yt-iron-dropdown",behaviors:[_.$m,_.qx,_.uH,veN],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 f=_.HZ(this.$.content).getDistributedNodes(),S=0,B=f.length;S<B;S++)if(f[S].nodeType===Node.ELEMENT_NODE)return f[S]},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(),_.t5._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.t5._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.t5._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var f=this.containedElement,S=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),B=0;B<S.length;B++)S[B].node=f;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(f){this._readied&&(f?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var f=this.focusTarget||this.containedElement;f&&this.opened&&!this.noAutoFocus?f.focus():_.t5._applyFocus.apply(this,arguments)}});var U1N;var CF7;/*

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 pwg=new _.jx({type:"iconset"});
_.OW({_template:function(){if(CF7!==void 0)return CF7;var f=document.createElement("template");_.Y(f,"\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");f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;U1N===void 0&&(U1N=document.createElement("template"));
var G=U1N;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return CF7=f},
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(f){f=(f||"").split(":");this._iconName=f.pop();this._iconsetName=f.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&&_.HZ(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=pwg.byKey(this._iconsetName)){var f=this._iconset.applyIcon(this,this._iconName,this.theme);f&&f.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,_.HZ(this.root).appendChild(this._img)}});var A3$;var Nmi;_.OW({_template:function(){if(Nmi!==void 0)return Nmi;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);
var S=f.content,B=S.insertBefore;A3$===void 0&&(A3$=document.createElement("template"));var G=A3$;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return Nmi=f},
is:"tp-yt-iron-input",behaviors:[_.xm],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(){_.A5.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.HZ(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.HZ(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 f=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":f=/[0-9.,e-]/}return f},_bindValueChanged:function(f,S){S&&(f===void 0?S.value=null:f!==S.value&&(this.inputElement.value=f),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:f}))},
_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(f){var S=f.keyCode==19||f.keyCode==20||f.keyCode==45||f.keyCode==46||f.keyCode==144||f.keyCode==145||f.keyCode>32&&f.keyCode<41||f.keyCode>111&&f.keyCode<124;return!(f.keyCode==8||f.keyCode==9||f.keyCode==13||f.keyCode==27)&&!(f.charCode==0&&S)},
_onKeypress:function(f){if(this.allowedPattern||this.inputElement.type==="number"){var S=this._patternRegExp;if(S&&!(f.metaKey||f.ctrlKey||f.altKey)){this._patternAlreadyChecked=!0;var B=String.fromCharCode(f.charCode);this._isPrintable(f)&&!S.test(B)&&(f.preventDefault(),this._announceInvalidCharacter("Invalid character "+B+" not entered."))}}},
_checkPatternValidity:function(){var f=this._patternRegExp;if(!f)return!0;for(var S=0;S<this.inputElement.value.length;S++)if(!f.test(this.inputElement.value[S]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var f=this.inputElement.checkValidity();f&&(this.required&&this.bindValue===""?f=!1:this.hasValidator()&&(f=_.xm.validate.call(this,this.bindValue)));this.invalid=!f;this.fire("iron-input-validate");return f},
_announceInvalidCharacter:function(f){this.fire("iron-announce",{text:f})},
_computeValue:function(f){return f}});var Mqj;var Z96;var tqi=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),ud7=tqi&&tqi[1]>=8;
_.OW({_template:function(){if(Z96!==void 0)return Z96;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;Mqj===void 0&&(Mqj=document.createElement("template"));var G=Mqj;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return Z96=f},
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:[AgT,_.Ld,_.Pkg,gTg],_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 _.HZ(_.HZ(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var f=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,f-this._physicalCount)},set _virtualStart(f){f=this._clamp(f,0,this._maxVirtualStart);this.grid&&(f-=f%this._itemsPerRow);this._virtualStartVal=f},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(f){f%=this._physicalCount;f<0&&(f=this._physicalCount+f);this.grid&&(f-=f%this._itemsPerRow);this._physicalStartVal=f},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(f){this._physicalCountVal=f},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 f=this._firstVisibleIndexVal;if(f==null){var S=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
f=this._iterateItems(function(B,G){S+=this._getPhysicalSizeIncrement(B);if(S>this._scrollPosition)return this.grid?G-G%this._itemsPerRow:G;if(this.grid&&this._virtualCount-1===G)return G-G%this._itemsPerRow})||0}return f},
get lastVisibleIndex(){var f=this._lastVisibleIndexVal;if(f==null){if(this.grid)f=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var S=this._physicalTop+this._scrollOffset;this._iterateItems(function(B,G){S<this._scrollBottom&&(f=G);S+=this._getPhysicalSizeIncrement(B)})}this._lastVisibleIndexVal=f}return f},
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,_.On);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(f){this.style.webkitOverflowScrolling=f===this?"touch":"";this.style.overflowY=f===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.On)},
updateViewportBoundaries:function(){var f=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(f["padding-top"],10);this._isRTL=f.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var f=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),S=f-this._scrollPosition,B=S>=0;this._scrollPosition=f;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(S)>this._physicalSize&&this._physicalSize>0?(S-=this._scrollOffset,B=Math.round(S/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=B,this._physicalStart+=B,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(f=this._getReusables(B),B?(this._physicalTop=f.physicalTop,this._virtualStart+=f.indexes.length,this._physicalStart+=f.indexes.length):(this._virtualStart=this._virtualStart-f.indexes.length,this._physicalStart=this._physicalStart-f.indexes.length),this._update(f.indexes,B?null:f.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),El))},
_getReusables:function(f){var S=[],B=this._hiddenContentSize*this._ratio,G=this._virtualStart,g=this._virtualEnd,b=this._physicalCount,z=this._physicalTop+this._scrollOffset;var X=this._physicalBottom+this._scrollOffset;var w=this._scrollPosition,F=this._scrollBottom;if(f){var V=this._physicalStart;X=w-z}else V=this._physicalEnd,X-=F;for(;;){var J=this._getPhysicalSizeIncrement(V);X-=J;if(S.length>=b||X<=B)break;if(f){if(g+S.length+1>=this._virtualCount)break;if(z+J>=w-this._scrollOffset)break;S.push(V);
z+=J;V=(V+1)%b}else{if(G-S.length<=0)break;if(z+this._physicalSize-J<=F)break;S.push(V);z-=J;V=V===0?b-1:V-1}}return{indexes:S,physicalTop:z-this._scrollOffset}},
_update:function(f,S){if(!(f&&f.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(f);this._updateMetrics(f);if(S)for(;S.length;)f=S.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(f);this._positionItems();this._updateScrollerSize()}},
_createPool:function(f){this._ensureTemplatized();var S,B=Array(f);for(S=0;S<f;S++){var G=this.stamp(null);B[S]=G.root.querySelector("*");this._itemsParent.appendChild(G.root)}return B},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(f){f=this._clamp(this._physicalCount+f,3,this._virtualCount-this._virtualStart);f=this._convertIndexToCompleteRow(f);if(this.grid){var S=f%this._itemsPerRow;S&&f-S<=this._physicalCount&&(f+=this._itemsPerRow);f-=S}f-=this._physicalCount;S=Math.round(this._physicalCount*.5);if(!(f<0)){if(f>0){S=window.performance.now();[].push.apply(this._physicalItems,this._createPool(f));for(var B=0;B<f;B++)this._physicalSizes.push(0);this._physicalCount+=f;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=f);this._update();this._templateCost=(window.performance.now()-S)/f;S=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||S===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,S)),Cio):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,S),El))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var f=this._getReusables(!0);this._physicalTop=f.physicalTop;this._virtualStart+=f.indexes.length;this._physicalStart+=f.indexes.length;this._update(f.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 f={__key__:!0};f[this.as]=!0;f[this.indexAs]=!0;f[this.selectedAs]=!0;f.tabIndex=!0;this._instanceProps=f;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(f,S){typeof S!=="undefined"&&(this.notifyResize(),_.Tw(),f&&this._updateGridMetrics())},
_itemsChanged:function(f){if(f.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,
_.On);else if(f.path==="items.splices"){this._adjustVirtualIndex(f.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(f.value.indexSplices.some(function(B){return B.addedCount>0||B.removed.length>0})){var S=this._getActiveElement();
this.contains(S)&&S.blur()}f=f.value.indexSplices.some(function(B){return B.index+B.addedCount>=this._virtualStart&&B.index<=this._virtualEnd},this);
this._isClientFull()&&!f||this._debounce("_render",this._render,_.On)}else f.path!=="items.length"&&this._forwardItemPath(f.path,f.value)},
_forwardItemPath:function(f,S){f=f.slice(6);var B=f.indexOf(".");B===-1&&(B=f.length);var G,g=this.modelForElement(this._offscreenFocusedItem),b=parseInt(f.substring(0,B),10);if(G=this._isIndexRendered(b)){var z=this._getPhysicalIndex(b);var X=this.modelForElement(this._physicalItems[z])}else g&&(X=g);X&&X[this.indexAs]===b&&(f=f.substring(B+1),f=this.as+(f?"."+f:""),X._setPendingPropertyOrPath(f,S,!1,!0),X._flushProperties&&X._flushProperties(),G&&(this._updateMetrics([z]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(f){f.forEach(function(S){S.removed.forEach(this._removeItem,this);S.index<this._virtualStart&&(S=Math.max(S.addedCount-S.removed.length,S.index-this._virtualStart),this._virtualStart+=S,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=S))},this)},
_removeItem:function(f){this.$.selector.deselect(f);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===f&&this._removeFocusedItem()},
_iterateItems:function(f,S){var B,G;if(arguments.length===2&&S)for(G=0;G<S.length;G++){var g=S[G];var b=this._computeVidx(g);if((B=f.call(this,g,b))!=null)return B}else{g=this._physicalStart;for(b=this._virtualStart;g<this._physicalCount;g++,b++)if((B=f.call(this,g,b))!=null)return B;for(g=0;g<this._physicalStart;g++,b++)if((B=f.call(this,g,b))!=null)return B}},
_computeVidx:function(f){return f>=this._physicalStart?this._virtualStart+(f-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+f},
_assignModels:function(f){this._iterateItems(function(S,B){var G=this._physicalItems[S],g=this.items&&this.items[B];if(g!=null){var b=this.modelForElement(G);b.__key__=null;this._forwardProperty(b,this.as,g);this._forwardProperty(b,this.selectedAs,this.$.selector.isSelected(g));this._forwardProperty(b,this.indexAs,B);this._forwardProperty(b,"tabIndex",this._focusedVirtualIndex===B?0:-1);this._physicalIndexForKey[b.__key__]=S;b._flushProperties&&b._flushProperties(!0);G.removeAttribute("hidden")}else G.setAttribute("hidden",
"")},f)},
_updateMetrics:function(f){_.Tw();var S=0,B=0,G=this._physicalAverageCount,g=this._physicalAverage;this._iterateItems(function(b){B+=this._physicalSizes[b];this._physicalSizes[b]=this._physicalItems[b].offsetHeight;S+=this._physicalSizes[b];this._physicalAverageCount+=this._physicalSizes[b]?1:0},f);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(B=this._itemsPerRow===1?B:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+S-B,this._itemsPerRow=1);this._physicalAverageCount!==G&&(this._physicalAverage=Math.round((g*G+S)/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 f=this._physicalTop;if(this.grid){var S=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(B,G){var g=Math.floor(G%this._itemsPerRow*this._itemWidth+S);this._isRTL&&(g*=-1);this.translate3d(g+"px",f+"px",0,this._physicalItems[B]);this._shouldRenderNextRow(G)&&(f+=this._rowHeight)})}else this._iterateItems(function(B){this.translate3d(0,f+"px",0,this._physicalItems[B]);
f+=this._physicalSizes[B]})},
_getPhysicalSizeIncrement:function(f){return this.grid?this._computeVidx(f)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[f]},
_shouldRenderNextRow:function(f){return f%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var f=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(f!==0){this._physicalTop=this._physicalTop-f;var S=this._scrollPosition;!ud7&&S>0&&this._resetScrollPosition(S-f)}},
_resetScrollPosition:function(f){this.scrollTarget&&f>=0&&(this._scrollPosition=this._scrollTop=f)},
_updateScrollerSize:function(f){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((f=(f=(f=f||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(f){return this.scrollToIndex(this.items.indexOf(f))},
scrollToIndex:function(f){if(!(typeof f!=="number"||f<0||f>this.items.length-1)&&(_.Tw(),this._physicalCount!==0)){f=this._clamp(f,0,this._virtualCount-1);if(!this._isIndexRendered(f)||f>=this._maxVirtualStart)this._virtualStart=this.grid?f-this._itemsPerRow*2:f-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var S=this._physicalStart,B=this._virtualStart,G=0,g=this._hiddenContentSize;B<f&&
G<=g;)G+=this._getPhysicalSizeIncrement(S),S=(S+1)%this._physicalCount,B++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+G);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)},_.On)},
selectItem:function(f){return this.selectIndex(this.items.indexOf(f))},
selectIndex:function(f){if(!(f<0||f>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(f)){var S=this.modelForElement(this._physicalItems[this._getPhysicalIndex(f)]);S&&(S[this.selectedAs]=!0);this.updateSizeForIndex(f)}this.$.selector.selectIndex(f)}},
deselectItem:function(f){return this.deselectIndex(this.items.indexOf(f))},
deselectIndex:function(f){f<0||f>=this._virtualCount||(this._isIndexRendered(f)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(f)])[this.selectedAs]=!1,this.updateSizeForIndex(f)),this.$.selector.deselectIndex(f))},
toggleSelectionForItem:function(f){return this.toggleSelectionForIndex(this.items.indexOf(f))},
toggleSelectionForIndex:function(f){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(f):this.$.selector.isSelected(this.items[f]))?this.deselectIndex(f):this.selectIndex(f)},
clearSelection:function(){this._iterateItems(function(f){this.modelForElement(this._physicalItems[f])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(f){(f?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(f){var S=this.modelForElement(f.target);if(S){var B=_.HZ(f).path[0];f=this._getActiveElement();var G=this._physicalItems[this._getPhysicalIndex(S[this.indexAs])];if(B.localName!=="input"&&B.localName!=="button"&&B.localName!=="select"){B=S.tabIndex;S.tabIndex=-100;var g=f?f.tabIndex:-1;S.tabIndex=B;f&&G!==f&&G.contains(f)&&g!==-100||this.toggleSelectionForItem(S[this.as])}}},
_multiSelectionChanged:function(f){this.clearSelection();this.$.selector.multi=f},
updateSizeForItem:function(f){return this.updateSizeForIndex(this.items.indexOf(f))},
updateSizeForIndex:function(f){if(!this._isIndexRendered(f))return null;this._updateMetrics([this._getPhysicalIndex(f)]);this._positionItems();return null},
_manageFocus:function(){var f=this._focusedVirtualIndex;f>=0&&f<this._virtualCount?this._isIndexRendered(f)?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(f){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(f/this._itemsPerRow)*this._itemsPerRow:f},
_isIndexRendered:function(f){return f>=this._virtualStart&&f<=this._virtualEnd},
_isIndexVisible:function(f){return f>=this.firstVisibleIndex&&f<=this.lastVisibleIndex},
_getPhysicalIndex:function(f){return(this._physicalStart+(f-this._virtualStart))%this._physicalCount},
focusItem:function(f){this._focusPhysicalItem(f)},
_focusPhysicalItem:function(f){if(!(f<0||f>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(f)||this.scrollToIndex(f);var S=this._physicalItems[this._getPhysicalIndex(f)],B=this.modelForElement(S),G;B.tabIndex=-100;S.tabIndex===-100&&(G=S);G||(G=_.HZ(S).querySelector('[tabindex="-100"]'));B.tabIndex=0;this._focusedVirtualIndex=f;G&&G.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 f=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var S=this.stamp(null);this._focusBackfillItem=S.root.querySelector("*");this._itemsParent.appendChild(S.root)}this._offscreenFocusedItem=this._physicalItems[f];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[f]=this._focusBackfillItem;this._focusedPhysicalIndex=f;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var f=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),S=this._physicalItems[f];if(S){var B=this.modelForElement(S),G=this.modelForElement(this._offscreenFocusedItem);B[this.as]===G[this.as]?(this._focusBackfillItem=S,B.tabIndex=-1,this._physicalItems[f]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(f){f=this.modelForElement(f.target);var S=this.modelForElement(this._focusedItem),B=this._offscreenFocusedItem!==null,G=this._focusedVirtualIndex;f&&(S===f?this._isIndexVisible(G)||this.scrollToIndex(G):(this._restoreFocusedItem(),S&&(S.tabIndex=-1),f.tabIndex=0,this._focusedVirtualIndex=G=f[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(G),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],B&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(f){switch(f.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&f.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&&f.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(f)}},
_clamp:function(f,S,B){return Math.min(B,Math.max(S,f))},
_debounce:function(f,S,B){this._debouncers=this._debouncers||{};this._debouncers[f]=_.zw(this._debouncers[f],B,S.bind(this));_.RH(this._debouncers[f])},
_forwardProperty:function(f,S,B){f._setPendingProperty(S,B)},
_forwardHostPropV2:function(f,S){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(B){B&&this.modelForElement(B).forwardHostProp(f,S)},this)},
_notifyInstancePropV2:function(f,S,B){kDA(this.as,S)&&(f=f[this.indexAs],S==this.as&&(this.items[f]=B),this.notifyPath(w0(this.as,"items."+f,S),B))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(f,S,B){S.indexOf(this.as+".")===0&&this.notifyPath("items."+f.__key__+"."+S.slice(this.as.length+1),B)},
_forwardParentPath:function(f,S){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(B){B&&this.modelForElement(B).notifyPath(f,S)},this)},
_forwardParentProp:function(f,S){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(B){B&&(this.modelForElement(B)[f]=S)},this)},
_getActiveElement:function(){var f=this._itemsParent.node.domHost;return _.HZ(f?f.root:document).activeElement},
_scrollTargetChanged:function(f,S){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(S)if(f==="document")this.scrollTarget=this._doc;else if(typeof f==="string"){var B,G;this.scrollTarget=(S=(G=(B=this.domHost)==null?void 0:B.polymerController)!=null?G:this.domHost)&&S.$?S.$[f]:_.HZ(this.ownerDocument).querySelector("#"+f)}else this._isValidScrollTarget()&&(this._oldScrollTarget=f,this._toggleScrollListener(this._shouldHaveListener,f))}});var adv;var y3N;var Wy$=function(f,S,B,G){f-=B;S-=G;return Math.sqrt(f*f+S*S)},c3L=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
rex.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var jF1=function(f){f.maxRadius=0;f.mouseDownStart=0;f.mouseUpStart=0;f.xStart=0;f.yStart=0;f.xEnd=0;f.yEnd=0;f.containerMetrics=new rex(f.element)};
ObN.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var f=c3L()-this.mouseDownStart;this.mouseUpStart&&(f-=this.mouseUpElapsed);return f},get mouseUpElapsed(){return this.mouseUpStart?c3L()-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 f=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(f*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-f/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 f=this.radius/(this.containerMetrics.size/2);var S=this.xNow-this.containerMetrics.width/2;var B=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+S+"px, "+B+"px)";this.waveContainer.style.transform="translate3d("+S+"px, "+B+"px, 0)";this.wave.style.webkitTransform="scale("+f+","+f+")";this.wave.style.transform="scale3d("+f+","+f+",1)"},
downAction:function(f){var S=this.containerMetrics.width/2,B=this.containerMetrics.height/2;jF1(this);this.mouseDownStart=c3L();this.center?(this.xStart=S,this.yStart=B):(this.xStart=f?f.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=f?f.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=S,this.yEnd=B);f=this.containerMetrics;S=this.xStart;B=this.yStart;this.maxRadius=Math.max(Wy$(S,B,0,0),Wy$(S,B,
f.width,0),Wy$(S,B,0,f.height),Wy$(S,B,f.width,f.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=c3L())},
remove:function(){_.HZ(_.HZ(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.OW({_template:function(){if(y3N!==void 0)return y3N;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;adv===void 0&&(adv=document.createElement("template"));var G=adv;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return y3N=f},
is:"tp-yt-paper-ripple",behaviors:[_.qx],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(){_.HZ(this).parentNode.nodeType==11?this.keyEventTarget=_.HZ(this).getOwnerRoot().host:this.keyEventTarget=_.HZ(this).parentNode;var f=this.keyEventTarget;this.listen(f,"up","uiUpAction");this.listen(f,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(f){f.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var f=0;f<this.ripples.length;++f)if(!this.ripples[f].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(f){this.noink||this.downAction(f)},
downAction:function(f){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(f),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(f){this.noink||this.upAction(f)},
upAction:function(f){this.holdDown||(this.ripples.forEach(function(S){S.upAction(f)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var f=0;f<this.ripples.length;++f){var S=this.ripples[f];S.isOpacityFullyDecayed&&!S.isRestingAtMaxRadius&&this.removeRipple(S)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var f=new ObN(this);_.HZ(this.$.waves).appendChild(f.waveContainer);this.$.background.style.backgroundColor=f.color;this.ripples.push(f);this._setAnimating(!0);return f},
removeRipple:function(f){var S=this.ripples.indexOf(f);S<0||(this.ripples.splice(S,1),f.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var f;for(f=0;f<this.ripples.length;++f){var S=this.ripples[f];S.draw();this.$.background.style.opacity=S.outerOpacity;S.isOpacityFullyDecayed&&!S.isRestingAtMaxRadius&&this.removeRipple(S)}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(f,S){S!==void 0&&(f?this.downAction():this.upAction())}});var aV={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(f){Q4._downHandler.call(this,f);this.pressed&&this.ensureRipple(f)},
ensureRipple:function(f){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var S=this._rippleContainer||this.root;S&&_.HZ(S).appendChild(this._ripple);if(f){S=_.HZ(this._rippleContainer||this);var B=_.HZ(f).rootTarget;S.deepContains(B)&&this._ripple.uiDownAction(f)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(f){this.hasRipple()&&(this._ripple.noink=f)}};var ldo={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 f=1;this.disabled?f=0:this.active||this.pressed?f=4:this.receivedFocusFromKeyboard&&(f=3);this._setElevation(f)},
_computeKeyboardClass:function(f){this.toggleClass("keyboard-focus",f)},
_spaceKeyDownHandler:function(f){Q4._spaceKeyDownHandler.call(this,f);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(f){Q4._spaceKeyUpHandler.call(this,f);this.hasRipple()&&this._ripple.uiUpAction()}},fPj=[bH1,
_.$m,aV,ldo];_.oKN={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(f){f&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=f)},
_createRipple:function(){var f=aV._createRipple();f.id="ink";f.setAttribute("center","");f.classList.add("circle");return f}};
_.SRi=[bH1,_.$m,aV,_.oKN];_.BbL=[_.SRi,R5$,{_checkedChanged:function(){z5X._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){aV._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var GGm;var gKi;var e$m=function(){};
_.e=e$m.prototype;_.e.registered=function(){};
_.e.addOwnKeyBinding=function(){};
_.e.removeOwnKeyBindings=function(){};
_.e.keyboardEventMatchesKeys=function(){};
_.e._collectKeyBindings=function(){};
_.e._prepKeyBindings=function(){};
_.e._addKeyBinding=function(){};
_.e._resetKeyEventListeners=function(){};
_.e._listenKeyEventListeners=function(){};
_.e._unlistenKeyEventListeners=function(){};
_.e._onKeyBindingEvent=function(){};
_.e._triggerKeyHandler=function(){};
_.e._tapHandler=function(){};
_.e._focusChanged=function(){};
_.e._detectKeyboardFocus=function(){};
_.e._userActivate=function(){};
_.e._upHandler=function(){};
_.e._asyncClick=function(){};
_.e._pressedChanged=function(){};
_.e._ariaActiveAttributeChanged=function(){};
_.e._activeChanged=function(){};
_.e._controlStateChanged=function(){};
_.e._changedButtonState=function(){};
_.e._focusBlurHandler=function(){};
_.e._disabledChanged=function(){};
_.e._changedControlState=function(){};
_.e._buttonStateChanged=function(){};
_.e._downHandler=function(){};
_.e.ensureRipple=function(){};
_.e.getRipple=function(){};
_.e.hasRipple=function(){};
_.e._createRipple=function(){};
_.e._noinkChanged=function(){};
_.e._computeKeyboardClass=function(){};
_.e._spaceKeyDownHandler=function(){};
_.e._spaceKeyUpHandler=function(){};
_.e._setPressed=function(){};
_.e._setPointerDown=function(){};
_.e._setReceivedFocusFromKeyboard=function(){};
_.e._setFocused=function(){};
_.e._setElevation=function(){};
e$m=_.OW({_template:function(){if(gKi!==void 0)return gKi;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);
var S=f.content,B=S.insertBefore;GGm===void 0&&(GGm=document.createElement("template"));var G=GGm;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return gKi=f},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[fPj],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?ldo._calculateElevation.apply(this):this._setElevation(0)}});var bF$;var mlN;var z$6={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},isAriaModal:{type:Boolean,value:!1},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)","isAriaModalChanged(isAriaModal)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(f){_.K("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(f)},
_onDialogClickWrapped:function(f){_.K("dialog_behavior_no_tap_killswitch")||this._onDialogClick(f)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(f,S){S&&(f?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
isAriaModalChanged:function(f){f?this.setAttribute("aria-modal","true"):this.removeAttribute("aria-modal")},
_updateClosingReasonConfirmed:function(f){this.closingReason=this.closingReason||{};this.closingReason.confirmed=f},
_onDialogClick:function(f){for(var S=_.HZ(f).path,B=0,G,g=S.indexOf((G=this.hostElement)!=null?G:this);B<g;B++)if(G=S[B],G.hasAttribute&&(G.hasAttribute("dialog-dismiss")||G.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(G.hasAttribute("dialog-confirm"));this.close();f.stopPropagation();break}}},R$g=[_.uH,
z$6];var X8X=document.createElement("template");_.Y(X8X,'<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(X8X.content);var w8g=document.createElement("template");_.Y(w8g,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(w8g.content);_.OW({_template:function(){if(mlN!==void 0)return mlN;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);
var S=f.content,B=S.insertBefore;bF$===void 0&&(bF$=document.createElement("template"));var G=bF$;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return mlN=f},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[R$g,veN],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 h$6;var TbN;_.OW({_template:function(){if(TbN!==void 0)return TbN;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;h$6===void 0&&(h$6=document.createElement("template"));var G=h$6;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return TbN=f},
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 f,S,B;if(((f=window.ShadyDOM)==null?void 0:f.noPatch)!==!0&&((S=window.ShadyDOM)==null?void 0:S.noPatch)!=="on-demand"||((B=this.__shady_parentNode)==null?void 0:B.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(z$6)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var FsL=_.f4(['<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>']),VWm=_.RSg(FsL);VWm.setAttribute("style","display: none;");document.head.appendChild(VWm.content);var JDm;var Px6;var vKo;var Kso;_.OW({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[km],configure:function(f){var S=f.node,B=S.getBoundingClientRect().height;return this._effect=new KeyframeEffect(S,[{height:B/2+"px"},{height:B+"px"}],this.timingFromConfig(f))}});
_.OW({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[km],configure:function(f){var S=f.node,B=S.getBoundingClientRect().width;return this._effect=new KeyframeEffect(S,[{width:B/2+"px"},{width:B+"px"}],this.timingFromConfig(f))}});
_.OW({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[km],configure:function(f){var S=f.node,B=S.getBoundingClientRect().width;return this._effect=new KeyframeEffect(S,[{width:B+"px"},{width:B-B/20+"px"}],this.timingFromConfig(f))}});
_.OW({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[km],configure:function(f){var S=f.node,B=S.getBoundingClientRect().height;this.setPrefixedProperty(S,"transformOrigin","0 0");return this._effect=new KeyframeEffect(S,[{height:B+"px",transform:"translateY(0)"},{height:B/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(f))}});var y4={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},dl7=function(){};
_.e=dl7.prototype;_.e.registered=function(){};
_.e.addOwnKeyBinding=function(){};
_.e.removeOwnKeyBindings=function(){};
_.e.keyboardEventMatchesKeys=function(){};
_.e._collectKeyBindings=function(){};
_.e._prepKeyBindings=function(){};
_.e._addKeyBinding=function(){};
_.e._resetKeyEventListeners=function(){};
_.e._listenKeyEventListeners=function(){};
_.e._unlistenKeyEventListeners=function(){};
_.e._onKeyBindingEvent=function(){};
_.e._triggerKeyHandler=function(){};
_.e._focusBlurHandler=function(){};
_.e._changedControlState=function(){};
_.e._setFocused=function(){};
dl7=_.OW({_template:function(){if(Kso!==void 0)return Kso;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;vKo===void 0&&(vKo=document.createElement("template"));var G=vKo;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return Kso=f},
is:"tp-yt-paper-menu-button",behaviors:[_.qx,_.$m],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:y4.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:y4.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:y4.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 f=_.HZ(this.$.content).getDistributedNodes(),S=0,B=f.length;S<B;S++)if(f[S].nodeType===Node.ELEMENT_NODE)return f[S]},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(f,S){f?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):S!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(f){_.$m._disabledChanged.apply(this,arguments);f&&this.opened&&this.close()},
__onIronOverlayCanceled:function(f){var S=this.$.trigger;_.HZ(f.detail).path.indexOf(S)>-1&&f.preventDefault()}});
Object.keys(y4).forEach(function(f){dl7[f]=y4[f]});var iFm=_.Ym.IronButtonState,HF7=(0,_.HG)(HTMLElement);
_.OW({_template:function(){if(Px6!==void 0)return Px6;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;JDm===void 0&&(JDm=document.createElement("template"));var G=JDm;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return Px6=f},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[iFm,_.$m,aV,_.rx,_.xm],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(f){var S=(0,_.JL)(this);S.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:f});S.shadowRoot.appendChild(f);return HF7.prototype._attachDom.call(this,f)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var f=this.contentElement;f&&f.selectedItem&&this._setSelectedItem(f.selectedItem)},
get contentElement(){for(var f=_.HZ(this.$.content).getDistributedNodes(),S=0,B=f.length;S<B;S++)if(f[S].nodeType===Node.ELEMENT_NODE)return f[S]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(f){this._setSelectedItem(f.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(f){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f)===this&&this.open()},
_selectedItemChanged:function(f){var S="";f?S=f.label||f.getAttribute("label")||f.textContent.trim():S="";this.value=S;this._setSelectedItemLabel(S)},
_computeMenuVerticalOffset:function(f,S){return S?S:f?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var f=this.opened?"true":"false",S=this.contentElement;S&&S.setAttribute("aria-expanded",f)},
_computeLabelClass:function(f,S,B){var G="label";if(f)B&&(G+=" label-is-hidden");else if(B||S)G+=" label-is-floating";return G},
_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 qRN;var $l$;_.OW({is:"tp-yt-paper-icon-button",_template:function(){if($l$!==void 0)return $l$;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;qRN===void 0&&(qRN=document.createElement("template"));var G=qRN;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return $l$=f},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.SRi],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(f,S){var B=this.getAttribute("aria-label");B&&S!=B||this.setAttribute("aria-label",f)}});var Q8m;var YR8;_.Wu=[bH1,_.$m,{hostAttributes:{role:"option",tabindex:"0"}}];_.OW({_template:function(){if(YR8!==void 0)return YR8;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;Q8m===void 0&&(Q8m=document.createElement("template"));var G=Q8m;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return YR8=f},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.Wu]});var rD7;var j8X;var OFg={attached:function(){this.fire("addon-attached")},
update:function(){}};var xlj=1,EKg=1,LsL=1,kGL=[_.$m,_.qx,{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();!Sb&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(f,S){f?f=f+" "+S:f=S;return f},
_onAddonAttached:function(f){f=_.HZ(f).rootTarget;if(f.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,f.id);else{var S="paper-input-add-on-"+EKg++;f.id=S;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,S)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(f){_.$m._focusBlurHandler.call(this,f);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var f=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",f);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(f){try{var S=this.inputElement.selectionStart;this.value=f;this.inputElement.selectionStart=S;this.inputElement.selectionEnd=S}catch(B){this.value=f}},
_computeAlwaysFloatLabel:function(f,S){return S||f},
_updateAriaLabelledBy:function(){var f=_.HZ(this.root).querySelector("label");if(f){if(f.id)var S=f.id;else S="paper-input-label-"+xlj++,f.id=S;this._ariaLabelledBy=S}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+LsL++)},
_onChange:function(f){this.shadowRoot&&this.fire(f.type,{sourceEvent:f},{node:this,bubbles:f.bubbles,cancelable:f.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var f=document.activeElement;f instanceof HTMLElement&&f!==document.body&&f!==document.documentElement||this._focusableElement.focus()}}}];var nKN;var s8N;_.OW({_template:function(){if(s8N!==void 0)return s8N;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;nKN===void 0&&(nKN=document.createElement("template"));var G=nKN;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return s8N=f},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[OFg],properties:{_charCounterStr:{type:String,value:"0"}},update:function(f){if(f.inputElement){f.value=f.value||"";var S=f.value.toString().length.toString();f.inputElement.hasAttribute("maxlength")&&(S+="/"+f.inputElement.getAttribute("maxlength"));this._charCounterStr=S}}});var Dlm;var IPX;_.OW({_template:function(){if(IPX!==void 0)return IPX;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;Dlm===void 0&&(Dlm=document.createElement("template"));var G=Dlm;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return IPX=f},
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 bi(this.attrForValue)},get _inputElement(){return _.HZ(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(f){this._addons||(this._addons=[]);f=f.target;this._addons.indexOf(f)===-1&&(this._addons.push(f),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(f){this._handleValueAndAutoValidate(f.target)},
_onValueChanged:function(f){var S=f.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,S.value===void 0||S.value===""))return;this._handleValueAndAutoValidate(f.target)},
_handleValue:function(f){var S=this._inputElementValue;S||S===0||f.type==="number"&&!f.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:f,value:S,invalid:this.invalid})},
_handleValueAndAutoValidate:function(f){this.autoValidate&&f&&(this.invalid=!(f.validate?f.validate(this._inputElementValue):f.checkValidity()));this._handleValue(f)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(f){if(this._addons)for(var S,B=0;S=this._addons[B];B++)S.update(f)},
_computeInputContentClass:function(f,S,B,G,g){var b="input-content";f?(g&&(b+=" label-is-hidden"),G&&!this.noUnfloatedLabelError&&(b+=" is-invalid")):(f=this.querySelector("label"),S||g?(b+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",G?b+=" is-invalid":B&&(b+=" label-is-highlighted")):(f&&(this.$.labelAndInputContainer.style.position="relative"),G&&!this.noUnfloatedLabelError&&(b+=" is-invalid")));B&&(b+=" focused");return b},
_computeUnderlineClass:function(f,S){var B="underline";S?B+=" is-invalid":f&&(B+=" is-highlighted");return B},
_computeAddOnContentClass:function(f,S){var B="add-on-content";S?B+=" is-invalid":f&&(B+=" is-highlighted");return B}});var Ulg;var Cxj;_.OW({_template:function(){if(Cxj!==void 0)return Cxj;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;Ulg===void 0&&(Ulg=document.createElement("template"));var G=Ulg;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return Cxj=f},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[OFg],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(f){this._setInvalid(f.invalid)}});_.OW({is:"tp-yt-paper-input",_template:function(){if(j8X!==void 0)return j8X;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;rD7===void 0&&(rD7=document.createElement("template"));var G=rD7;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return j8X=f},
behaviors:[kGL,_.rx],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 p88;var ADg;_.OW({_template:function(){if(ADg!==void 0)return ADg;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=
f.content,B=S.insertBefore;p88===void 0&&(p88=document.createElement("template"));var G=p88;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return ADg=f},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.Wu]});var Nbo;var MW8;_.OW({_template:function(){if(MW8!==void 0)return MW8;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);
var S=f.content,B=S.insertBefore;Nbo===void 0&&(Nbo=document.createElement("template"));var G=Nbo;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return MW8=f},
is:"tp-yt-paper-item-body"});var ZFi;var tW8;var u$N=function(){};
_.e=u$N.prototype;_.e.indexOf=function(){};
_.e.selectPrevious=function(){};
_.e.selectNext=function(){};
_.e.selectIndex=function(){};
_.e.forceSynchronousItemUpdate=function(){};
_.e._checkFallback=function(){};
_.e._addListener=function(){};
_.e._removeListener=function(){};
_.e._activateEventChanged=function(){};
_.e._updateItems=function(){};
_.e._selectSelected=function(){};
_.e._filterItem=function(){};
_.e._valueToItem=function(){};
_.e._valueToIndex=function(){};
_.e._indexToValue=function(){};
_.e._valueForItem=function(){};
_.e._observeItems=function(){};
_.e._itemActivate=function(){};
_.e.multiChanged=function(){};
_.e._updateAttrForSelected=function(){};
_.e._updateSelected=function(){};
_.e._selectMulti=function(){};
_.e._selectionChange=function(){};
_.e._toggleSelected=function(){};
_.e._valuesToItems=function(){};
_.e.registered=function(){};
_.e.addOwnKeyBinding=function(){};
_.e.removeOwnKeyBindings=function(){};
_.e.keyboardEventMatchesKeys=function(){};
_.e._collectKeyBindings=function(){};
_.e._prepKeyBindings=function(){};
_.e._addKeyBinding=function(){};
_.e._resetKeyEventListeners=function(){};
_.e._listenKeyEventListeners=function(){};
_.e._unlistenKeyEventListeners=function(){};
_.e._onKeyBindingEvent=function(){};
_.e._triggerKeyHandler=function(){};
_.e.select=function(){};
_.e._resetTabindices=function(){};
_.e._updateMultiselectable=function(){};
_.e._focusWithKeyboardEvent=function(){};
_.e._clearSearchText=function(){};
_.e._focusPrevious=function(){};
_.e._focusNext=function(){};
_.e._applySelection=function(){};
_.e._focusedItemChanged=function(){};
_.e._onIronItemsChanged=function(){};
_.e._onShiftTabDown=function(){};
_.e._onFocus=function(){};
_.e._onUpKey=function(){};
_.e._onDownKey=function(){};
_.e._onEscKey=function(){};
_.e._onKeydown=function(){};
_.e._activateHandler=function(){};
_.e._disabledChanged=function(){};
_.e._setSelectedItem=function(){};
_.e._setItems=function(){};
_.e._setSelectedItems=function(){};
_.e._setFocusedItem=function(){};
u$N=_.OW({_template:function(){if(tW8!==void 0)return tW8;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);
var S=f.content,B=S.insertBefore;ZFi===void 0&&(ZFi=document.createElement("template"));var G=ZFi;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return tW8=f},
is:"tp-yt-paper-listbox",behaviors:[TRi],hostAttributes:{role:"listbox"}});var aP1;var yDi;var Ws6={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(f,S){return[f||S?"active":"",S?"cooldown":""].join(" ")},
__activeChanged:function(f,S){this.__setAriaHidden(!f);this.__coolingDown=!f&&S},
__altChanged:function(f){this.setAttribute("aria-label",f||"loading")},
__setAriaHidden:function(f){f?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.OW({_template:function(){if(yDi!==void 0)return yDi;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;aP1===void 0&&(aP1=document.createElement("template"));var G=aP1;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return yDi=f},
is:"tp-yt-paper-spinner",behaviors:[Ws6]});var cD8;var lPg;_.OW({_template:function(){if(lPg!==void 0)return lPg;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;cD8===void 0&&(cD8=document.createElement("template"));var G=cD8;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return lPg=f},
is:"tp-yt-paper-spinner-lite",behaviors:[Ws6]});var fp1;var oVX;_.OW({_template:function(){if(oVX!==void 0)return oVX;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;fp1===void 0&&(fp1=document.createElement("template"));var G=fp1;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return oVX=f},
is:"tp-yt-paper-tab",behaviors:[_.$m,_.Ym.IronButtonState,aV],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 f=_.HZ(this).parentNode;return!!f&&!!f.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(f){if(this.link){var S=this.queryEffectiveChildren("a");S&&f.target!==S&&S.click()}}});var SCm;var B56;var GNL=_.f4(['<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>']),gVL=_.RSg(GNL);document.head.appendChild(gVL.content);_.OW({_template:function(){if(B56!==void 0)return B56;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;SCm===void 0&&(SCm=document.createElement("template"));var G=SCm;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return B56=f},
is:"tp-yt-paper-tabs",behaviors:[_.Ld,_.VPm],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(f){_.HZ(this).querySelectorAll("tp-yt-paper-tab").forEach(f?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(f){f.setAttribute("noink","")},
_removeNoinkAttribute:function(f){f.removeAttribute("noink")},
_computeScrollButtonClass:function(f,S,B,G){return!S||B?"hidden":f?G?"hidden":"not-visible":""},
_computeTabsContentClass:function(f,S){var B="tabs-content";f&&(B+=" scrollable");if(!f||S)B+=" fit-container";return B},
_computeSelectionBarClass:function(f,S){var B="selection-bar";f?B+=" hidden":S&&(B+=" align-bottom");return B},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(f){return""+f},
_onIronSelect:function(f){this._tabChanged(f.detail.item,this._previousTab);this._previousTab=f.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();_.Ed._activateHandler.apply(this,arguments)},
_scheduleActivation:function(f,S){this._pendingActivationItem=f;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,S)},
_delayedActivationHandler:function(){var f=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;f.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(f){f.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(f,S){this.scrollable&&this._affectScroll(S&&-S.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(f){this.$.tabsContainer.scrollLeft+=f;f=this.$.tabsContainer.scrollLeft;this._leftHidden=f===0||this.hideScrollButtons;this._rightHidden=f===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(f,S){if(f){var B=this.$.tabsContent.getBoundingClientRect(),G=B.width,g=f.getBoundingClientRect();B=g.left-B.left;this._pos={width:this._calcPercent(g.width,G),left:this._calcPercent(B,G)};if(this.noSlide||S==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var b=S.getBoundingClientRect();S=this.items.indexOf(S);f=this.items.indexOf(f);this.$.selectionBar.classList.add("expand");
f=S<f;this._isRTL&&(f=!f);f?this._positionBar(this._calcPercent(g.left+g.width-b.left,G)-5,this._left):this._positionBar(this._calcPercent(b.left+b.width-g.left,G)-5,this._calcPercent(B,G)+5);this.scrollable&&this._scrollToSelectedIfNeeded(g.width,B)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(f,S){S-=this.$.tabsContainer.scrollLeft;S<0?this.$.tabsContainer.scrollLeft+=S:(S+=f-this.$.tabsContainer.offsetWidth,S>0&&(this.$.tabsContainer.scrollLeft+=S))},
_calcPercent:function(f,S){return 100*f/S},
_positionBar:function(f,S){f=f||0;S=S||0;this._width=f;this._left=S;this.transform("translateX("+S+"%) scaleX("+f/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var f=this.$.selectionBar.classList;f.contains("expand")?(f.remove("expand"),f.add("contract"),this._positionBar(this._pos.width,this._pos.left)):f.contains("contract")&&f.remove("contract")}});var eov;var by7;_.OW({_template:function(){if(by7!==void 0)return by7;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;eov===void 0&&(eov=document.createElement("template"));var G=eov;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return by7=f},
is:"tp-yt-paper-textarea",behaviors:[kGL,_.rx],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(f){this.$.input.textarea.selectionStart=f},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(f){this.$.input.textarea.selectionEnd=f},_ariaLabelledByChanged:function(f){this._focusableElement.setAttribute("aria-labelledby",f)},
_ariaDescribedByChanged:function(f){this._focusableElement.setAttribute("aria-describedby",f)},
get _focusableElement(){return this.inputElement.textarea}});var mV6;var zom;/*

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 Ro6=function(){};
_.e=Ro6.prototype;_.e.addOwnKeyBinding=function(){};
_.e.removeOwnKeyBindings=function(){};
_.e.keyboardEventMatchesKeys=function(){};
_.e._collectKeyBindings=function(){};
_.e._prepKeyBindings=function(){};
_.e._addKeyBinding=function(){};
_.e._resetKeyEventListeners=function(){};
_.e._listenKeyEventListeners=function(){};
_.e._unlistenKeyEventListeners=function(){};
_.e._onKeyBindingEvent=function(){};
_.e._triggerKeyHandler=function(){};
_.e._tapHandler=function(){};
_.e._focusChanged=function(){};
_.e._detectKeyboardFocus=function(){};
_.e._userActivate=function(){};
_.e._upHandler=function(){};
_.e._spaceKeyDownHandler=function(){};
_.e._spaceKeyUpHandler=function(){};
_.e._asyncClick=function(){};
_.e._pressedChanged=function(){};
_.e._ariaActiveAttributeChanged=function(){};
_.e._activeChanged=function(){};
_.e._controlStateChanged=function(){};
_.e._changedButtonState=function(){};
_.e._focusBlurHandler=function(){};
_.e._disabledChanged=function(){};
_.e._changedControlState=function(){};
_.e._downHandler=function(){};
_.e.ensureRipple=function(){};
_.e.getRipple=function(){};
_.e.hasRipple=function(){};
_.e._noinkChanged=function(){};
_.e._focusedChanged=function(){};
_.e.registered=function(){};
_.e._invalidChanged=function(){};
_.e.hasValidator=function(){};
_.e.validate=function(){};
_.e._getValidity=function(){};
_.e._requiredChanged=function(){};
_.e._valueChanged=function(){};
_.e._checkedChanged=function(){};
_.e._buttonStateChanged=function(){};
_.e._setPressed=function(){};
_.e._setPointerDown=function(){};
_.e._setReceivedFocusFromKeyboard=function(){};
_.e._setFocused=function(){};
Ro6=_.OW({is:"tp-yt-paper-toggle-button",_template:function(){if(zom!==void 0)return zom;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;mV6===void 0&&(mV6=document.createElement("template"));var G=mV6;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return zom=f},
behaviors:[_.BbL],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");_.ui(this,function(){_.x2(this,"pan-y")})},
_ontrack:function(f){f=f.detail;f.state==="start"?this._trackStart(f):f.state==="track"?this._trackMove(f):f.state==="end"&&this._trackEnd(f)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(f){f=f.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+f:f)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+f:f));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 f=aV._createRipple();f.id="ink";f.setAttribute("recenters","");f.classList.add("circle","toggle-ink");return f}});var Xe$;var wem;_.OW({_template:function(){if(wem!==void 0)return wem;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;Xe$===void 0&&(Xe$=document.createElement("template"));var G=Xe$;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return wem=f},
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 f=_.HZ(this).parentNode,S=_.HZ(this).getOwnerRoot(),B;this.for?B=_.HZ(S).querySelector("#"+this.for):B=f.nodeType==Node.DOCUMENT_FRAGMENT_NODE?S.host:f;return B},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(f){f==="entry"?this.show():f==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.HZ(this).textContent.trim()===""){for(var f=!0,S=_.HZ(this).getEffectiveChildNodes(),B=0;B<S.length;B++)if(S[B].textContent.trim()!==""){f=!1;break}if(f)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 f=this.offset;this.marginTop!=14&&this.offset==14&&(f=this.marginTop);var S=this.offsetParent.getBoundingClientRect(),B=this._target.getBoundingClientRect(),G=this.getBoundingClientRect(),g=(B.width-G.width)/2,b=(B.height-G.height)/2,z=B.left-S.left,X=B.top-S.top;switch(this.position){case "top":var w=z+g;var F=X-G.height-f;break;case "bottom":w=z+g;F=X+B.height+f;break;case "left":w=z-G.width-f;F=X+b;break;case "right":w=z+B.width+
f,F=X+b}this.fitToVisibleBounds?(S.left+w+G.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,w)+"px",this.style.right="auto"),S.top+F+G.height>window.innerHeight?(this.style.bottom=S.height+"px",this.style.top="auto"):(this.style.top=Math.max(-S.top,F)+"px",this.style.bottom="auto")):(this.style.left=w+"px",this.style.top=F+"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(f){f!==500&&this.updateStyles({"--paper-tooltip-delay-in":f+"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(f){if(f==="entry"&&this.animationEntry!=="")return this.animationEntry;if(f==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[f]&&typeof this.animationConfig[f][0].name==="string"){if(this.animationConfig[f][0].timing&&this.animationConfig[f][0].timing.delay&&this.animationConfig[f][0].timing.delay!==0){var S=this.animationConfig[f][0].timing.delay;f==="entry"?this.updateStyles({"--paper-tooltip-delay-in":S+"ms"}):f==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":S+
"ms"})}return this.animationConfig[f][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 hoo=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(hoo,_.s7);var T5$=_.WQ(hoo,[0,_.fb]);var cu=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(cu,_.s7);var Fvm=[3,4],V3$=[5,6];var Jpm=[0,Fvm,V3$,_.g$6,-1,_.lh,_.eBi,-1,lAM,fbV];var P1m=_.WQ(cu,Jpm),vVX=_.cQ(Jpm);var Kvm=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(Kvm,_.s7);var dV6=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(dV6,_.s7);var iyN=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(iyN,_.s7);var Hym=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(Hym,_.s7);var qCN=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(qCN,_.s7);var lH=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(lH,_.s7);lH.prototype.getSource=function(){return _.sH(this,1)};
lH.prototype.getMessage=function(){return _.n4(this,4)};
lH.prototype.getData=function(){return _.BU(this,qCN,8)};var $Vj=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q($Vj,_.s7);var fW=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(fW,_.s7);var oR=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(oR,_.s7);var SR=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(SR,_.s7);SR.prototype.getUrl=function(){return _.n4(this,1)};
SR.prototype.setUrl=function(f){return _.Jx(this,1,f)};
SR.prototype.hasUrl=function(){return _.CY(_.H_(this,1))!=null};var QYj=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(QYj,_.s7);var YC8=[3];var rpi=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(rpi,_.s7);var B1=function(f){var S=new rpi;return _.GV(S,2,f)};
rpi.prototype.getLanguage=function(){return Im(this,4,G9)};
var jYv=function(f){var S=B1(1);return _.Bo(S,6,G9,f)},G9=[3,
4,5,6];var Oy7=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(Oy7,_.s7);var gU=function(f){var S=new Oy7;return _.GV(S,1,f)},eR=function(f,S){return _.Bo(f,2,xV1,S)},xV1=[2,
3,4,5];var EVo=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(EVo,_.s7);var be=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(be,_.s7);var Lvj=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(Lvj,_.s7);var kN$=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(kN$,_.s7);var nVN=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(nVN,_.s7);var sYm=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(sYm,_.s7);var DVN=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(DVN,_.s7);var mk=function(f){return _.BU(f,oR,5)};var Ipg=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(Ipg,_.s7);Ipg.prototype.getValue=function(){return L4(this,1)};var UVg=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(UVg,_.s7);var z9=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(z9,_.s7);z9.prototype.getMetadata=function(){return _.UH(this,nVN,7,RR)};
z9.prototype.hasMetadata=function(){return _.$W(this,nVN,7,RR)};
var C17=_.ld(z9),RR=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var X1=function(f){this.JSC$9982_name_=f;this.files_=[];this.directories_=[];this.directoryMap_={}};
X1.prototype.getName=function(){return this.JSC$9982_name_};var hv=function(f,S){this.callback_=S;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new X1("");pem(this,f,this.rootDirectory_);wU(this)},pem=function(f,S,B){for(var G=0;G<S.length;G++){var g=S[G];
g.isFile?(f.fileOps_++,g.file((0,_.$A)(f.handleFileSuccess_,f,B),(0,_.$A)(f.handleFileError_,f))):f.unscannedDirectories_.push(new Ap$(g,B))}},wU=function(f){if(f.unscannedDirectories_.length>0&&f.directoryOps_<5&&!f.hasError_){f.directoryOps_++;
var S=f.unscannedDirectories_.shift(),B=S.entry,G=new X1(B.name);S=S.parent;S.directoryMap_[G.getName()]=G;S.directories_.push(G);B=B.createReader();B.readEntries((0,_.$A)(f.handleDirectorySuccess_,f,B,G),(0,_.$A)(f.handleDirectoryError_,f))}f.directoryOps_!=0||f.fileOps_!=0||f.unscannedDirectories_.length!=0&&!f.hasError_||f.callback_(f.rootDirectory_.files_,f.rootDirectory_.directories_,f.hasError_)};
hv.prototype.handleDirectorySuccess_=function(f,S,B){pem(this,B,S);B.length==0?(this.directoryOps_--,wU(this)):f.readEntries((0,_.$A)(this.handleDirectorySuccess_,this,f,S),(0,_.$A)(this.handleDirectoryError_,this))};
hv.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;wU(this)};
hv.prototype.handleFileSuccess_=function(f,S){f.files_.push(S);this.fileOps_--;wU(this)};
hv.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;wU(this)};
var Ap$=function(f,S){this.entry=f;this.parent=S};var T9=function(f){_.$o.call(this);_.jP(f,"drop",this.onObjectsDropped_,!1,this);_.jP(f,"dragenter",this.onFilesDragged_,!1,this);_.jP(f,"dragover",this.onFilesDragged_,!1,this);_.jP(f,"dragleave",this.onDragLeave_,!1,this);_.jP(f,"dragend",this.onDragLeave_,!1,this)};
_.Rm(T9,_.$o);var N5g=function(f,S){_.K8.call(this,"f");this.files=f;this.directories=S};
_.Rm(N5g,_.K8);var M3m=function(){_.K8.call(this,"h")};
_.Rm(M3m,_.K8);var Zy6=function(){_.K8.call(this,"i")};
_.Rm(Zy6,_.K8);var t3g=function(){_.K8.call(this,"g")};
_.Rm(t3g,_.K8);T9.prototype.onObjectsDropped_=function(f){var S=this;f.preventDefault();var B=f.event_.dataTransfer;if((f=B&&B.items)&&f.length>0&&f[0].webkitGetAsEntry){B=[];for(var G=[],g=0;g<f.length;g++){var b=f[g].webkitGetAsEntry();b?B.push(b):G.push(f[g])}new hv(B,function(z,X,w){w?S.dispatchEvent(new t3g("Error occurred while reading from the file system.")):S.dispatchEvent(new N5g(z,X,G))})}else(f=B&&B.files)&&this.dispatchEvent(new N5g(Array.from(f),[]))};
T9.prototype.onFilesDragged_=function(f){f.type==="dragenter"&&this.dispatchEvent(new M3m);f.preventDefault()};
T9.prototype.onDragLeave_=function(){this.dispatchEvent(new Zy6)};var u8o=function(f,S){this.JSC$10005_name_=f;this.inputElement_=S};
u8o.prototype.getName=function(){return this.JSC$10005_name_};
u8o.prototype.getInputElement=function(){return this.inputElement_};var F1=function(f,S,B){S=S===void 0?"single_file":S;B=B===void 0?[]:B;_.$o.call(this);this.overlayTarget_=f;this.parentOverlay_=f!=null?f.parentNode:_.Ja("scotty-overlay-parent");this.selectorType_=S;this.acceptTypes_=B;this.overlay_=apm(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.q(F1,_.$o);
var apm=function(f,S,B,G){var g=document.createElement("input");g.setAttribute("type","file");g.setAttribute("name","Filedata");_.jP(g,"change",f.onFilesSelected_,!1,f);B==="multiple_file"&&(g.multiple="true");B==="single_directory"&&(g.webkitdirectory="true");G.length>0&&g.setAttribute("accept",G.join(","));g.style.position="absolute";g.style.overflow="hidden";g.style.height="0px";g.style.width="0px";g.style.opacity="0";g.setAttribute("aria-hidden","true");g.setAttribute("tabIndex",-1);if(f.overlayTarget_!=
null)return g.style.height=S.offsetHeight+"px",g.style.width=S.offsetWidth+"px",f.parentOverlay_&&(f.parentOverlay_.style.position="relative"),_.kU(g,S),Cb(g,new _.ru(S.offsetLeft,S.offsetTop)),g;f.parentOverlay_.appendChild(g);return g};
F1.prototype.click=function(){this.overlay_.click()};
F1.prototype.onFilesSelected_=function(f){a:{try{var S=(new XMLHttpRequest).upload!==void 0;break a}catch(F){}S=!1}if(S){var B;f=Array.from((B=f.target.files)!=null?B:[]);B=[];if(this.selectorType_==="single_directory"&&(_.V9||ay||_.Fx)){B=new X1("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(S=0;S<f.length;S++)for(var G=f[S],g=G.webkitRelativePath.split("/"),b=B,z=0;z<g.length;z++){var X=g[z];if(z==g.length-1){X!="."&&b.files_.push(G);break}var w=b.directoryMap_[X];w==void 0&&(X=
w=new X1(X),b.directoryMap_[X.getName()]=X,b.directories_.push(X));b=w}B=B.directories_}this.dispatchEvent(new ypo(f,B,null))}else f=f.target.value,f.match(/^c:\\fakepath\\/i)&&(f=f.substring(12)),this.dispatchEvent(new ypo([],[],new u8o(f,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=apm(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var ypo=function(f,S){_.K8.call(this,"j");this.files=f;this.directories=S};
_.q(ypo,_.K8);var WvN=function(f){this.uploadUrl_=f};var cpi=function(){_.$o.call(this)};
_.Rm(cpi,_.$o);var Vi=function(f){_.K8.call(this,f)};
_.Rm(Vi,_.K8);var Jv=function(f){_.K8.call(this,f)};
_.Rm(Jv,_.K8);var lpX=function(f,S,B,G,g){_.$o.call(this);B=document.createElement("form");B.setAttribute("method",S);B.setAttribute("enctype","multipart/form-data");B.setAttribute("encoding","multipart/form-data");S=document.createElement("input");S.setAttribute("type","hidden");S.setAttribute("name","metadata");S.setAttribute("value",g);B.appendChild(S);B.appendChild(G);this.JSC$10022_form_=B;f=new _.uT(f);_.ZL(f,"upload_protocol","multipart");this.JSC$10022_url_=f.toString();this.JSC$10022_request_=new Bu;this.state_=
"Ready";this.JSC$10022_errorDescription_=null;this.JSC$10022_eventHandler_=new _.BZ(this);_.ha(this,this.JSC$10022_eventHandler_);this.JSC$10022_eventHandler_.listen(this.JSC$10022_request_,"success",this.onTransferSuccess_);this.JSC$10022_eventHandler_.listen(this.JSC$10022_request_,"error",this.onTransferError_)};
_.q(lpX,cpi);_.e=lpX.prototype;_.e.run=function(){this.state_="Transferring";var f=this.JSC$10022_request_,S=this.JSC$10022_form_;if(f.JSC$9440_active_)throw Error("oe");var B=new _.uT(this.JSC$10022_url_||S.action);f.JSC$9440_form_=S;S=f.JSC$9440_form_;B=_.Qe(B.toString());B!==void 0&&(S.action=B);YtN(f)};
_.e.getResponseCode=function(){return null};
_.e.getResponseText=function(){return this.JSC$10022_request_&&this.JSC$10022_request_.getResponseText()||null};
_.e.JSC$25985_getErrorDescription=function(){return this.JSC$10022_errorDescription_};
_.e.cancel=function(){this.JSC$10022_request_&&this.JSC$10022_request_.abort();this.state_="Cancelled";this.dispatchEvent(new Vi("o"))};
_.e.pause=function(){};
_.e.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new Vi("l"))};
_.e.onTransferError_=function(){this.JSC$10022_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new Vi("n"))};var P1=function(){_.L8.call(this)};
_.q(P1,_.L8);P1.prototype.createXhr=function(){var f=_.L8.prototype.createXhr.call(this);f.upload&&(f.upload.onprogress=(0,_.$A)(this.onProgress_,this));return f};
P1.prototype.onProgress_=function(f){this.dispatchEvent(f)};var fWj=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},SyN=function(f,S){var B=f.attempt_+1;
if(f.maxAttempts_>0&&B>f.maxAttempts_)return!1;B==0?S():f.delayCallId_=OT(function(){f.delayCallId_=null;S()},oj8(f),f);
f.attempt_=B;return!0};
fWj.prototype.reset=function(){this.delayCallId_&&_.S1.clearTimeout(this.delayCallId_);this.attempt_=-1};
var oj8=function(f){var S=250*Math.pow(2,f.attempt_);f.maxDelayMs_>=0&&(S=Math.min(S,f.maxDelayMs_));return S};var EUx=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var v1=function(){_.$o.call(this);this.JSC$10032_request_=this.state_=null;this.JSC$10032_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$10032_bytesTransferred_=0;this.retryIterator_=new fWj;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$10032_errorDescription_=null;this.JSC$10032_eventHandler_=new _.BZ(this);_.ha(this,this.JSC$10032_eventHandler_);this.JSC$10032_url_=this.blob_=null;this.JSC$10032_method_=void 0;this.chunkSize_=this.JSC$10032_metadata_=
this.JSC$10032_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$10032_responseText_=this.JSC$10032_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.Rm(v1,cpi);_.e=v1.prototype;_.e.run=function(){KW(this)};
_.e.getResponseCode=function(){return this.JSC$10032_responseCode_};
_.e.getResponseText=function(){return this.JSC$10032_responseText_};
_.e.JSC$25985_getErrorDescription=function(){return this.JSC$10032_errorDescription_};
_.e.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$10032_eventHandler_.removeAll();this.JSC$10032_request_&&this.JSC$10032_request_.abort();this.retryIterator_.reset();var f=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(f==="Upload"||f==="Query")f=new P1,f.JSC$7841_withCredentials_=this.JSC$10032_withCredentials_,f.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$10032_bytesTransferred_=
0;this.dispatchEvent(new Vi("o"))}};
_.e.pause=function(){this.pauseRequested_=!0};
var KW=function(f){var S=f.state_;f.pauseRequested_?(f.pauseRequested_=!1,f.stateAfterUnpausing_=S,f.state_="Paused"):SyN(f.retryIterator_,function(){switch(f.state_){case "Start":f.JSC$10032_request_=new P1;var B=_.$v.clone(f.JSC$10032_headers_);f.blob_.size!=null&&(B["Content-Length"]=f.blob_.size);B=LRQ(B);B["X-Goog-Upload-Protocol"]="resumable";B["X-Goog-Upload-Command"]="start";f.JSC$10032_eventHandler_.removeAll();f.JSC$10032_eventHandler_.listen(f.JSC$10032_request_,"complete",f.onStartComplete_);
f.JSC$10032_request_.JSC$7841_withCredentials_=f.JSC$10032_withCredentials_;f.JSC$10032_request_.send(f.JSC$10032_url_,f.JSC$10032_method_,f.JSC$10032_metadata_,B);f.lastCommandResponseCode_=null;f.dispatchEvent(new Jv("q"));break;case "Upload":B=f.transferHandle_.uploadUrl_;var G=f.blob_.size;if(RP1()){var g=f.chunkSize_;var b=f.offset_+g>=G;G=zPm(f.blob_,f.offset_,b?G:f.offset_+g)}else f.offset_=0,G=f.blob_,b=!0;f.JSC$10032_request_=new P1;f.JSC$10032_request_.JSC$7841_withCredentials_=f.JSC$10032_withCredentials_;
f.JSC$10032_eventHandler_.removeAll();f.JSC$10032_eventHandler_.listen(f.JSC$10032_request_,"progress",f.onUploadProgress_);g=(0,_.$A)(f.JSC$10034_onUploadComplete_,f,f.offset_+G.size,b);f.JSC$10032_eventHandler_.listen(f.JSC$10032_request_,"complete",g);f.lastCommandResponseCode_=null;f.dispatchEvent(new Jv("q"));b=Object.assign({},f.JSC$10032_headers_||{},{"X-Goog-Upload-Command":"upload"+(b?", finalize":""),"X-Goog-Upload-Offset":f.offset_});f.JSC$10032_request_.send(B,"POST",G,b);break;case "Query":f.JSC$10032_request_=
new P1;f.JSC$10032_eventHandler_.removeAll();f.JSC$10032_eventHandler_.listen(f.JSC$10032_request_,"complete",f.onQueryComplete_);B=Object.assign({},f.JSC$10032_headers_||{},{"X-Goog-Upload-Command":"query"});f.JSC$10032_request_.send(f.transferHandle_.uploadUrl_,"POST","",B);f.lastCommandResponseCode_=null;f.dispatchEvent(new Jv("q"));break;default:throw Error("df");}})||dU(f,"Transfer encountered too many consecutive failures.")},dU=function(f,S){f.state_="Error";
f.JSC$10032_errorDescription_=S;f.dispatchEvent(new Vi("n"))};
v1.prototype.onStartComplete_=function(f){var S=f.target;this.lastCommandResponseCode_=S.getStatus();this.dispatchEvent(new Jv("r"));if(BL7(S))Gqj(this,S);else if(gjv(S)){f=yf(f.target.getAllResponseHeaders());for(var B in f)_.Gj(B.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new Vi("m"));B=$c(f,"X-Goog-Upload-URL");f=(f=$c(f,"X-Goog-Upload-Chunk-Granularity"))?parseInt(f,10):1;B===void 0||isNaN(f)||f<=0?dU(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
f)*f,this.transferHandle_=new WvN(B),this.dispatchEvent(new Vi("p")),this.state_="Upload",this.retryIterator_.reset(),KW(this))}else KW(this)};
v1.prototype.onUploadProgress_=function(f){this.JSC$10032_bytesTransferred_=this.offset_+f.loaded;this.dispatchEvent(new Vi("k"))};
v1.prototype.JSC$10034_onUploadComplete_=function(f,S,B){var G=this,g,b;return _.R(function(z){switch(z.nextAddress){case 1:g=B.target;G.lastCommandResponseCode_=g.getStatus();G.dispatchEvent(new Jv("r"));if(eFm(g)||g.getStatus()==404)return G.JSC$10032_bytesTransferred_=f,Gqj(G,g),z.return();if(gjv(g)){z.jumpTo(2);break}if(!(b=G.detectCorruptedBlobEnabled_)){z.jumpTo(3);break}return _.h(z,bzi(G),4);case 4:b=z.yieldResult;case 3:if(b)return dU(G,"Blob has been modified or corrupted."),z.return();
G.requireUploadRequestModification_=g.getStatus()==400;G.state_="Query";KW(G);return z.return();case 2:if(S)return dU(G,"Got a non-final success response after issuing a finalize command."),z.return();G.JSC$10032_bytesTransferred_=f;G.offset_=f;G.retryIterator_.reset();KW(G);return z.return()}})};
v1.prototype.onQueryComplete_=function(f){var S=f.target;this.lastCommandResponseCode_=S.getStatus();this.dispatchEvent(new Jv("r"));BL7(S)?(S.getStatus()===200&&(this.JSC$10032_bytesTransferred_=this.blob_.size),Gqj(this,S)):gjv(S)?(f=yf(f.target.getAllResponseHeaders()),f=parseInt($c(f,"X-Goog-Upload-Size-Received"),10),isNaN(f)?dU(this,"Server did not respond with current offset."):f<this.offset_?dU(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
f+"."):this.requireUploadRequestModification_&&this.offset_===f?dU(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<f&&this.retryIterator_.reset(),this.offset_=this.JSC$10032_bytesTransferred_=f,this.state_="Upload",KW(this))):KW(this)};
var Gqj=function(f,S){f.JSC$10032_responseCode_=S.getStatus();var B=yf(S.getAllResponseHeaders());k4Q(B);f.JSC$10032_responseText_=S.getResponseText();f.state_="Response received";f.dispatchEvent(new Vi("l"))},gjv=function(f){var S=f.getStatus();
f=yf(f.getAllResponseHeaders());f=$c(f,"X-Goog-Upload-Status");return S===200&&f==="active"},eFm=function(f){f=yf(f.getAllResponseHeaders());
return $c(f,"X-Goog-Upload-Status")==="final"},BL7=function(f){if(eFm(f))return!0;
f=f.getStatus();return f>=400&&f<500},bzi=function(f){var S;
return _.R(function(B){if(B.nextAddress==1){if(!f.blob_||f.originalBlobSize_<=0)return B.return(!1);if(f.blob_.size!==f.originalBlobSize_)return B.return(!0);_.zT(B,2);if(S=zPm(f.blob_,0,1)){var G=new Cs,g=Nhv(G);G.reader_.readAsBinaryString(S);B=_.h(B,g,4)}else B=B.return(!0);return B}if(B.nextAddress!=2)return B.return(f.blob_.size!==f.originalBlobSize_);_.hm(B);return B.return(!0)})};var m_1=function(f,S,B,G,g,b){_.$o.call(this);this.payload_=G;this.JSC$10035_url_=f;this.JSC$10035_method_=S;this.JSC$10035_headers_=B;this.JSC$10035_metadata_=g;this.encoding_=b||"binary";f=new _.$R;this.boundary_="uploader-"+Aa()+"-"+f.JSC$9289_toIsoString();this.JSC$10035_responseText_=this.JSC$10035_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$10035_errorDescription_=null;this.JSC$10035_eventHandler_=new _.BZ(this);_.ha(this,this.JSC$10035_eventHandler_)};
_.q(m_1,cpi);_.e=m_1.prototype;
_.e.run=function(){var f=_.$v.clone(this.JSC$10035_headers_);this.payload_.length!=null&&(f["Content-Length"]=this.payload_.length);f=LRQ(f);f["X-Goog-Upload-Protocol"]="multipart";f["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new P1;this.JSC$10035_eventHandler_.removeAll();this.JSC$10035_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$10035_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$10035_url_,this.JSC$10035_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$10035_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",f)};
_.e.getResponseCode=function(){return this.JSC$10035_responseCode_};
_.e.getResponseText=function(){return this.JSC$10035_responseText_};
_.e.JSC$25985_getErrorDescription=function(){return this.JSC$10035_errorDescription_};
_.e.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$10035_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new Vi("o")))};
_.e.pause=function(){};
_.e.onTransferProgress_=function(){this.dispatchEvent(new Vi("k"))};
_.e.onTransferComplete_=function(f){var S=f.target.getStatus();S===void 0||S===-1?(this.JSC$10035_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new Vi("n"))):(this.JSC$10035_responseCode_=S,f=f.target,S=yf(f.getAllResponseHeaders()),k4Q(S),this.JSC$10035_responseText_=f.getResponseText(),this.state_="Complete",this.dispatchEvent(new Vi("l")))};_.zF1=function(f,S,B,G){G=G===void 0?!1:G;if(B instanceof u8o)return new lpX(f,"POST",S,B.getInputElement(),"");if(typeof B==="string"||B instanceof String)return new m_1(f,"POST",S,B,"");var g=new v1(void 0);g.JSC$10032_url_=f;g.JSC$10032_method_="POST";g.JSC$10032_headers_=S;g.blob_=B;g.originalBlobSize_=B.size;g.JSC$10032_metadata_="";G&&(g.JSC$10032_withCredentials_=G);g.state_="Start";return g};var ie=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(ie,_.s7);_.e=ie.prototype;_.e.getEnableSsEngine=function(){return _.EH(this,2)};
_.e.getEnableAwr=function(){return _.EH(this,3)};
_.e.getAlohaAutoGaRollout=function(){return _.EH(this,5)};
_.e.getEnableConfigurator=function(){return _.EH(this,6)};
_.e.getEnableMweb=function(){return _.EH(this,7)};
var XYL=function(){var f=RFj();return _.Yc(f,7,!0)};
ie.prototype.getEnableCtlConsentCheckbox=function(){return _.EH(this,8)};
ie.prototype.getEnableIframe=function(){return _.EH(this,9)};
var RFj=function(){var f=new ie;f=_.Yc(f,5,!0);f=_.Yc(f,2,!0);f=_.Yc(f,4,!1);f=_.Yc(f,8,!0);return _.Yc(f,9,!0)};
ie.prototype.getEnableScreenshotNudge=function(){return _.EH(this,10)};
var wY7=function(){var f=XYL();return _.Yc(f,10,!0)};
ie.prototype.getEnableWebStartupConfigEndpoint=function(){return _.EH(this,11)};
ie.prototype.getEnableJunkNudge=function(){return _.EH(this,12)};
var f2N=function(){var f=wY7();return _.Yc(f,12,!0)};
_.e=ie.prototype;_.e.getEnableConfiguratorLocale=function(){return _.EH(this,13)};
_.e.getEnableTinyNoPointer=function(){return _.EH(this,14)};
_.e.getEnableSupportSessionLogging=function(){return _.EH(this,15)};
_.e.getEnableFileUploadForScreenshot=function(){return _.EH(this,16)};
_.e.getEnableDirectDeflectionForSingleCategory=function(){return _.EH(this,17)};
_.e.getEnableImageSanitization=function(){return _.EH(this,18)};
_.e.getEnableAlohaBinarySplit=function(){return _.EH(this,19)};
_.e.getEnableDbFeedbackIntents=function(){return _.EH(this,20)};
_.e.getEnableMarkMandatoryFieldsWithRequired=function(){return _.EH(this,21)};
_.e.getEnableFeedbackCategoryCustomUi=function(){return _.EH(this,22)};
_.e.getEnableRealtimeCtl=function(){return _.EH(this,23)};var l$1=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(l$1,_.s7);var nUV=[/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 DFK="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 I$V=_.f4(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),UFG=_.f4(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var pqM,MsT,AeM,ZbG;var hF$,TL8;
hF$=function(f,S,B){f.timeOfStartCall=(new Date).getTime();var G=B||_.S1,g=G.document,b=f.nonce||_.k6(G.document);b&&!f.nonce&&(f.nonce=b);if(f.flow=="help"){var z=_.U6("document.location.href",G);!f.helpCenterContext&&z&&(f.helpCenterContext=z.substring(0,1200));z=!0;if(S&&JSON&&JSON.stringify){var X=JSON.stringify(S);(z=X.length<=1200)&&(f.psdJson=X)}z||(S={invalidPsd:!0})}S=[f,S,B];G.GOOGLE_FEEDBACK_START_ARGUMENTS=S;B=f.feedbackServerUri||"//www.google.com/tools/feedback";if(z=G.GOOGLE_FEEDBACK_START)z.apply(G,S);
else{G=B+"/load.js?";for(var w in f)S=f[w],S==null||_.og(S)||(G+=encodeURIComponent(w)+"="+encodeURIComponent(S)+"&");f=Vq(g).createElement("SCRIPT");b&&f.setAttribute("nonce",b);_.CC(f,_.zC(G));g.body.appendChild(f)}};
TL8=function(f,S,B,G){var g,b;_.R(function(z){g=B||_.S1;var X=f.serverEnvironment==="DEV",w=B||_.S1;w=f.nonce||_.k6(w.document);X={integrationKeys:{productId:f.productId,feedbackBucket:f.bucket,triggerId:f.triggerId},callbacks:{onClose:f.callback,onLoad:f.onLoadCallback},formContent:{locale:f.locale,disableScreenshot:f.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:f.abuseLink,additionalDataConsent:f.additionalDataConsent},initializationData:{isLocalServer:X,nonce:w,useNightlyRelease:X,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:f.feedbackServerUri,colorScheme:f.colorScheme},extraData:{productVersion:f.productVersion,authUser:f.authuser,configuratorId:f.configuratorId,customZIndex:f.customZIndex,tinyNoPointer:f.tinyNoPointer,
allowNonLoggedInFeedback:f.allowNonLoggedInFeedback,enableAnonymousFeedback:f.enableAnonymousFeedback}};S&&(w=new Map(Object.entries(S)),X.extraData.productSpecificData=w);b=X;return _.h(z,yes(b,G,g),0)})};
_.FZv=function(f,S,B){try{if(f.flow==="help"){var G=f.helpCenterPath.replace(/^\//,"");_.LC(B||window,"https://support.google.com/"+G)}else f.flow==="submit"?hF$(f,S,B):ooK(f.productId,f.feedbackServerUri).then(function(g){g=_.BU(g,ie,1);var b=!vEG||(g==null?void 0:g.getEnableMweb()),z=!f.tinyNoPointer||(g==null?void 0:g.getEnableTinyNoPointer());!g||g.getAlohaAutoGaRollout()&&b&&z?TL8(f,S,B,g):hF$(f,S,B)},function(g){g&&g.name!=="DuplicateFormError"&&hF$(f,S,B)})}catch(g){TL8(f,S,B,null)}};
_.WL("userfeedback.api.startFeedback",_.FZv);var STW=/https?:\/\/\S+\.\S+/,BXM=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],GhA=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var GmN=function(f){var S=f.split(""),B=[-263237435,15,S,function(G,g,b){var z=g.length;b.forEach(function(X,w,F){this.push(F[w]=g[(g.indexOf(X)-g.indexOf(this[w])+w+z--)%g.length])},G.split(""))},
function(G,g){G=(G%g.length+g.length)%g.length;g.splice(-G).reverse().forEach(function(b){g.unshift(b)})},
"response",function(){for(var G=64,g=[];++G-g.length-32;){switch(G){case 58:G-=14;case 91:case 92:case 93:continue;case 123:G=47;case 94:case 95:case 96:continue;case 46:G=95}g.push(String.fromCharCode(G))}return g},
null,12,1540023973,65941107,null,S,function(G,g){for(G=(G%g.length+g.length)%g.length;G--;)g.unshift(g.pop())},
695603893,function(G){for(var g=G.length;g;)G.push(G.splice(--g,1)[0])},
"'[;'[(",function(G,g){G.push(g)},
null,function(G,g,b,z,X){return g(b,z,X)},
"continuation",S,function(G,g){if(G.length!=0){g=(g%G.length+G.length)%G.length;var b=G[0];G[0]=G[g];G[g]=b}},
function(){for(var G=64,g=[];++G-g.length-32;){switch(G){case 91:G=44;continue;case 123:G=65;break;case 65:G-=18;continue;case 58:G=96;continue;case 46:G=95}g.push(String.fromCharCode(G))}return g},
'"),/]];'];B[7]=B;B[11]=B;B[18]=B;try{(((0,B[15])(B[21]),B[22])(B[11],B[9]),B[22])(B[new Date("1970-01-01T04:30:12.000+04:30")/1E3],B[1]),((0,B[22])(B[11],B[23]),B[4])(B[10],B[18]),(0,B[20])(B[21],B[14])<<(0,B[17])(B[18],B[1]),(0,B[4])(B[8],B[21]),(0,B[19])((0,B[19])((0,B[17])(B[7],B[9]),B[3],B[20],(0,B[6])(),B[2]),B[3],B[5],(0,B[15])(),B[2])}catch(G){return"aTlOUOubTO4AP____8P_"+f}return S.join("")};_.VON=new _.u("runAttestationCommand");var J9o=new _.u("verifyCommand");_.H1=new _.u("accessibilityContext");var PGm=new _.u("accessibilityData");var vj8=new _.u("profileCardCommand");var hmx=new _.u("signInEndpoint");var wcT=new _.u("signOutEndpoint");var d_j;_.KZ8=new _.u("accountItemSectionRenderer");d_j=new _.u("accountItemRenderer");_.iz6=new _.u("saveCommandToSessionStorageAction");var Hz1=new _.u("crossAccountChannelTransferEndpoint");var mnG=new _.u("getAccountMenuEndpoint");_.zMQ=new _.u("getAccountSwitcherEndpoint");var b0K=new _.u("getAccountsListEndpoint");var qy$=new _.u("getAccountsListInnertubeEndpoint");_.qG=new _.u("addToToastAction");var $_j=new _.u("hideEnclosingAction");_.$f=new _.u("replaceEnclosingAction");var QQ1=new _.u("buttonRefreshAction");var YyN=new _.u("adsControlFlowOpportunityReceivedCommand");var r96=new _.u("openAdAllowlistInstructionCommand");var jQo=new _.u("videoMastheadAdPrimaryVideoRenderer");var Oz1=new _.u("displayAdRenderer");var DmT=new _.u("instreamVideoAdRenderer");_.x_g=new _.u("inFeedAdLayoutRenderer");var Ej7=new _.u("sequenceItemInPlayerAdLayoutRenderer");_.LZo=new _.u("adSlotRenderer");var kqj=new _.u("adAvatarViewModel");var njv=new _.u("adBadgeViewModel");var sQj=new _.u("adImageViewModel");var rIN=new _.u("reelsAdCardButtonedViewModel");var D_8=new _.u("reelsPlayerOverlayLayoutViewModel");var IWv=new _.u("showSchedulingPanelCommand");var U_m=new _.u("backstageCommentsRenderer");var CGo=new _.u("backstageImageRenderer");var pY7=new _.u("backstagePostRenderer");var A96=new _.u("postRenderer");var NLi=new _.u("sharedPostRenderer");var MON=new _.u("createBackstagePostEndpoint");var ZzN=new _.u("getPostVideoPreviewEndpoint");var tO7=new _.u("updateBackstagePostEndpoint");var ugj=new _.u("filterChipTransformCommand");var aWN=new _.u("insertRichSectionCommand");var SxA=new _.u("talkToRecsDeselectCommand");var y9i=new _.u("talkToRecsNextCommand");var oiK=new _.u("talkToRecsSelectCommand");var WZj=new _.u("talkToRecsUpdateTextCommand");_.d3=new _.u("browseEndpoint");_.c9j=new _.u("confirmDialogEndpoint");var lWi=new _.u("expandOnHoverCardRenderer");var fIi=new _.u("lumiereShelfDetailsRenderer");var oWX=new _.u("revealBusinessEmailCommand");var SHN=new _.u("validateChannelHandleCommand");var Bpi=new _.u("channelCreationFormEndpoint");var Gd7=new _.u("aboutChannelViewModel");var gWi=new _.u("channelThumbnailWithLinkRenderer");var ehN=new _.u("channelCreationServiceEndpoint");var b4i=new _.u("updateChannelPageSettingsEndpoint");var Qi=function(f){this.delegate=f},Yf=function(){Qi.apply(this,arguments)};
_.q(Yf,Qi);_.y3.Object.defineProperties(Yf.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(f){this.delegate.entityMetadata=f}}});var mam=function(){Yf.apply(this,arguments)};
_.q(mam,Yf);mam.prototype.getAssociations=function(){return[]};var dTK=new _.u("webThumbnailDetailsExtensionData");var XTQ=new _.u("commandContext");var zh1=new _.u("addVideoLinkAction");var Rhj=new _.u("createPollAction");var X_6=new _.u("hideIdentityChipAction");var w_j=new _.u("openUpdateCommentDialogAction");var rU=new _.u("updateBackstagePollAction");var hho=new _.u("updateCommentVoteAction");var Tpo=new _.u("commentThreadRenderer");var FGm=function(){Yf.apply(this,arguments)};
_.q(FGm,Yf);FGm.prototype.getAssociations=function(){return[]};_.VTg=new _.u("commentDialogRenderer");var J$m=new _.u("reloadCommentsCommand");var Ph$=new _.u("updateCommentsSettingsEndpoint");var vWv=new _.u("commentViewModel");var KGi=new _.u("triStateButtonViewModel");var dai=new _.u("voiceReplyContainerViewModel");_.hf=new _.u("commandExecutorCommand");var Dw=new _.u("emoji");var i4m=new _.u("updateCreatorChannelInnertubeCommand");_.H4i=new _.u("appendContinuationItemsAction");_.qHv=new _.u("changeEngagementPanelVisibilityAction");_.p9=new _.u("continuationCommand");var $aN=new _.u("listMutationCommand");_.jR=new _.u("openPopupAction");var Qmj=new _.u("persistSubscriptionsDisplayPreferencesCommand");var kdm;_.YHN=new _.u("playlistRemoveVideosAction");_.r$m=new _.u("updatePlaylistAction");_.jmL=new _.u("addToPlaylistCommand");_.O4g=new _.u("endPlaylistCommand");_.xa1=new _.u("recoverPlaylistCommand");_.EW7=new _.u("refreshPlaylistCommand");_.LGv=new _.u("refreshFormCommand");kdm=new _.u("openOnePickAddVideoModalCommand");_.FB1=new _.u("reloadContinuationItemsCommand");_.nWX=new _.u("scrollToEngagementPanelCommand");var smm=new _.u("selectCountryCommand");var DaN=new _.u("showReloadUiCommand");var IIo=new _.u("undoFeedbackAction");var UaL=new _.u("updateButtonAction");var Chv=new _.u("updateSubscribeButtonAction");var p_N=new _.u("updateToggleAction");var A$N=new _.u("webNativeShareCommand");_.oD=new _.u("webCommandMetadata");_.O2=new _.u("webHandleServiceEndpointExtension");var TSV=new _.u("webNavigationEndpointData");var Np$=new _.u("copyLinkCommand");var MTm=new _.u("playlistVotingRefreshPopupCommand");var Z4m=new _.u("selectChipCommand");var tT8=new _.u("setCookieCommand");var uxg=new _.u("setLocalStorageCommand");var aI7=new _.u("setPrefStorageEntryCommand");var lIo;_.y$$=new _.u("settingsUpdateCheckboxCommand");_.WG1=new _.u("settingsUpdateTextCommand");_.c$i=new _.u("settingsUpdateOptionsCommand");lIo=new _.u("settingsUpdateSwitchCommand");_.f$N=new _.u("settingsUpdateConnectedAppRendererCommand");var oU$=new _.u("updateTextInputFormFieldRendererCommand");var SJ7=new _.u("updateToggleButtonStateCommand");var B8N=new _.u("updateUrlParamCommand");var G46=new _.u("webSubmitFormCommand");var gUN=new _.u("channelSwitcherPageRenderer"),e2m=new _.u("updateChannelSwitcherPageAction");_.zq=new _.u("continuationItemRenderer");_.xf=new _.u("richItemRenderer");var bb7=new _.u("richSectionRenderer");_.mFN=new _.u("richShelfRenderer");_.z2j=new _.u("metadataBadgeRenderer");_.R28=new _.u("multiPageMenuNotificationSectionRenderer");_.XqX=new _.u("playlistLoopButtonStateRenderer");var wqm=new _.u("claimLegacyYoutubeChannelEndpoint");var h26=new _.u("getNotificationMenuEndpoint");var T8L=new _.u("getSearchInVideoCommand");_.FRN=new _.u("getTranscriptEndpoint");_.Fh=new _.u("signalServiceEndpoint");var Vsg=new _.u("verifyAgeEndpoint");var b7A=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(b7A,_.s7);b7A.prototype.getPath=function(){return _.n4(this,1)};
b7A.prototype.getValue=function(){return _.n4(this,2)};var Jev=[0,_.W_,-1];var P4j=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(P4j,_.s7);var eNM=_.WQ(P4j,[0,_.c_,Jev]);var vUv=new _.u("dismissalEndpoint");var KRg=new _.u("elementsCommand");_.Un=new _.u("innertubeCommand");var dF$=new _.u("multipleInlinePlaybackCommand");var c7W=new _.u("loggingDirectives");var ibm=new _.u("acknowledgeChannelTouStrikeCommand");var Hb6=function(){Yf.apply(this,arguments)};
_.q(Hb6,Yf);Hb6.prototype.getAssociations=function(){return[]};var qJX=function(){Yf.apply(this,arguments)};
_.q(qJX,Yf);qJX.prototype.getAssociations=function(){return[]};var Ww=new _.u("entityBatchUpdate");_.$FX=new _.u("entityUpdateCommand");var QF8=function(){Yf.apply(this,arguments)};
_.q(QF8,Yf);QF8.prototype.getAssociations=function(){var f=[];this.delegate.alternateChannel&&f.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&f.push.apply(f,_.$d(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&f.push(this.delegate.oneofChannelEntity);return[].concat(_.$d(new Set(f)))};var YJo=function(){Yf.apply(this,arguments)};
_.q(YJo,Yf);YJo.prototype.getAssociations=function(){var f=[];this.delegate.entryCollection&&f.push(this.delegate.entryCollection);return[].concat(_.$d(new Set(f)))};
var re6=function(){Yf.apply(this,arguments)};
_.q(re6,Yf);re6.prototype.getAssociations=function(){var f=[];this.delegate.parentPlaylist&&f.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var S=_.m(this.delegate.entries),B=S.next();!B.done;B=S.next())f.push.apply(f,_.$d((new jFj(B.value)).getAssociations()));return[].concat(_.$d(new Set(f)))};
var jFj=function(){Qi.apply(this,arguments)};
_.q(jFj,Qi);jFj.prototype.getAssociations=function(){var f=[];this.delegate.video&&f.push(this.delegate.video);return[].concat(_.$d(new Set(f)))};var Obv=function(){Yf.apply(this,arguments)};
_.q(Obv,Yf);Obv.prototype.getAssociations=function(){var f=[];this.delegate.descriptionEntity&&f.push(this.delegate.descriptionEntity);this.delegate.creators&&f.push.apply(f,_.$d(this.delegate.creators));this.delegate.theBiggestFan&&f.push(this.delegate.theBiggestFan);return[].concat(_.$d(new Set(f)))};
var xFm=function(){Yf.apply(this,arguments)};
_.q(xFm,Yf);xFm.prototype.getAssociations=function(){return[]};var EU6=new _.u("fantasyRosterViewModel");var LRX=new _.u("addFollowUpSurveyCommand");var k4X=new _.u("getSurveyCommand");var nU8=new _.u("ratingSurveyOptionRenderer");_.IQ=new _.u("feedbackEndpoint");var sFj=new _.u("reportHistoryTableCellRenderer"),DFm=new _.u("reportHistoryTableTextCellRenderer"),I$8=new _.u("reportHistoryTableReasonCellRenderer");_.UFL=new _.u("flagEndpoint");var C48=new _.u("getFlowCommand");var pqi=new _.u("submitFormWithValidationFlowCommand");var Aei=function(){Yf.apply(this,arguments)};
_.q(Aei,Yf);Aei.prototype.getAssociations=function(){return[]};var N87=new _.u("flowFormState");var Msg=new _.u("gameCardRenderer");var ZbL=new _.u("accountLinkingStateChangedCommand");var tsj=function(){Yf.apply(this,arguments)};
_.q(tsj,Yf);tsj.prototype.getAssociations=function(){return[]};var uam=new _.u("changeMiniAppPlayStateCommand");var a$N=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(a$N,_.s7);var E2=[1,2,3];var ye1=[0,E2,uOQ,_.aAV,C2N];var WRm=_.WQ(a$N,ye1),ceo=_.cQ(ye1);var l$m=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(l$m,_.s7);var f2$=[0,_.uh,_.W_];var oom=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(oom,_.s7);var STN=[0,_.W_,_.uh,-1];var LW=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(LW,_.s7);var BXi=function(f,S){return _.GV(f,3,S)};var GhN=_.cQ([0,1,f2$,_.fb,STN]);var goL=new _.u("miniAppScoreChallengeViewModel");var erv=new _.u("miniGameCardViewModel");var b8o=new _.u("teaserCardViewModel");var mM1=function(){Yf.apply(this,arguments)};
_.q(mM1,Yf);mM1.prototype.getAssociations=function(){return[]};_.zrL=new _.u("feedbackItemRenderer");var Rr1=function(){Yf.apply(this,arguments)};
_.q(Rr1,Yf);Rr1.prototype.getAssociations=function(){return[]};_.XEo=new _.u("playerInterstitialRenderer");var wEj=new _.u("getKidsBlocklistPickerCommand");_.hrX=new _.u("updateKidsBlacklistEndpoint");_.aY=new _.u("likeEndpoint");var TXj,F51,VA6;TXj=new _.u("addChatItemAction");F51=new _.u("removeChatItemAction");VA6=new _.u("markChatItemAsDeletedAction");_.Jq7=new _.u("setLiveChatCollapsedStateAction");var PX8=function(){Yf.apply(this,arguments)};
_.q(PX8,Yf);PX8.prototype.getAssociations=function(){return[]};var vo$=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(vo$,_.s7);var K5m=_.WQ(vo$,[0,1,_.uh]);var dMi=new _.u("liveChatEndpoint");var i8m=new _.u("liveChatItemContextMenuEndpoint");var H8N=new _.u("liveChatReplayEndpoint");_.qT6=new _.u("emojiPickerRenderer");var $Mo=new _.u("liveChatAuthorBadgeViewModel");var Qto=new _.u("deleteLiveChatMessageCommand");var YTm=new _.u("liveChatActionEndpoint");var rq7=new _.u("createLiveChatPollEndpoint");var jtN=new _.u("manageLiveChatUserEndpoint");var O8j=new _.u("moderateLiveChatEndpoint");_.xMm=new _.u("sendLiveChatMessageEndpoint");var EoN=new _.u("sendLiveChatVoteEndpoint");var L56=new _.u("clearLocationCommand");var kh6=new _.u("resolveLocationCommand");var noN=new _.u("interactionLoggingCommandMetadata");var L21=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(L21,_.s7);var EyQ=function(f,S){return _.b5(f,1,S)};var stm=[0,_.y9];var x4N=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(x4N,_.s7);var OGK=function(f,S){return PD(f,1,L21,S)};x4N.prototype.JSC$10127_serializeBinary=ogQ([0,_.c_,stm]);var qTx={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 DMN={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"},
I27={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 DAN={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"};_.IJ1=new _.u("logFlowLoggingEventCommand");_.Hs=new _.u("loggingContext");var UM8=new _.u("captionLanguageSelectActionCommand");var CXL=new _.u("showCaptionLanguageSelectActionCommand");var pEg=new _.u("dismissDialogEndpoint");var Aqv=new _.u("hideItemSectionVideosByIdCommand");var NXL=new _.u("showMiniplayerCommand");var MAj=function(){Yf.apply(this,arguments)};
_.q(MAj,Yf);MAj.prototype.getAssociations=function(){return[]};var Z8v=function(){Yf.apply(this,arguments)};
_.q(Z8v,Yf);Z8v.prototype.getAssociations=function(){return[]};var tAg=function(){Yf.apply(this,arguments)};
_.q(tAg,Yf);tAg.prototype.getAssociations=function(){return[]};var u7i=function(){Yf.apply(this,arguments)};
_.q(u7i,Yf);u7i.prototype.getAssociations=function(){var f=[];this.delegate.downloadsList&&f.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&f.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&f.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&f.push(this.delegate.refresh);return[].concat(_.$d(new Set(f)))};var a2X=function(){Yf.apply(this,arguments)};
_.q(a2X,Yf);a2X.prototype.getAssociations=function(){var f=[];this.delegate.refresh&&f.push(this.delegate.refresh);if(this.delegate.downloads)for(var S=_.m(this.delegate.downloads),B=S.next();!B.done;B=S.next())f.push.apply(f,_.$d((new yqv(B.value)).getAssociations()));return[].concat(_.$d(new Set(f)))};
var yqv=function(){Qi.apply(this,arguments)};
_.q(yqv,Qi);yqv.prototype.getAssociations=function(){var f=[];this.delegate.video&&f.push(this.delegate.video);this.delegate.playlist&&f.push(this.delegate.playlist);this.delegate.videoItem&&f.push(this.delegate.videoItem);this.delegate.playlistItem&&f.push(this.delegate.playlistItem);return[].concat(_.$d(new Set(f)))};var W5v=function(){Yf.apply(this,arguments)};
_.q(W5v,Yf);W5v.prototype.getAssociations=function(){var f=[];this.delegate.localImageEntities&&f.push.apply(f,_.$d(this.delegate.localImageEntities));return[].concat(_.$d(new Set(f)))};var cqm=function(){Yf.apply(this,arguments)};
_.q(cqm,Yf);cqm.prototype.getAssociations=function(){var f=[];this.delegate.playbackData&&f.push(this.delegate.playbackData);this.delegate.localImageEntities&&f.push.apply(f,_.$d(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&f.push(this.delegate.videoDownloadContextEntity);return[].concat(_.$d(new Set(f)))};var l2$=function(){Yf.apply(this,arguments)};
_.q(l2$,Yf);l2$.prototype.getAssociations=function(){return[]};var fRX=function(){Yf.apply(this,arguments)};
_.q(fRX,Yf);fRX.prototype.getAssociations=function(){var f=[];this.delegate.fakeChildren&&f.push.apply(f,_.$d(this.delegate.fakeChildren));return[].concat(_.$d(new Set(f)))};var o_L=function(){Yf.apply(this,arguments)};
_.q(o_L,Yf);o_L.prototype.getAssociations=function(){var f=[];this.delegate.video&&f.push(this.delegate.video);this.delegate.playbackData&&f.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&f.push(this.delegate.offlineVideoPolicy);return[].concat(_.$d(new Set(f)))};var SE8=function(){Yf.apply(this,arguments)};
_.q(SE8,Yf);SE8.prototype.getAssociations=function(){return[]};var BHL=function(){Yf.apply(this,arguments)};
_.q(BHL,Yf);BHL.prototype.getAssociations=function(){var f=[];this.delegate.channelOwner&&f.push(this.delegate.channelOwner);this.delegate.videos&&f.push.apply(f,_.$d(this.delegate.videos));this.delegate.collaboratorChannels&&f.push.apply(f,_.$d(this.delegate.collaboratorChannels));this.delegate.downloadState&&f.push(this.delegate.downloadState);this.delegate.refresh&&f.push(this.delegate.refresh);return[].concat(_.$d(new Set(f)))};var Gam=function(){Yf.apply(this,arguments)};
_.q(Gam,Yf);Gam.prototype.getAssociations=function(){var f=[];this.delegate.video&&f.push(this.delegate.video);this.delegate.channelContributor&&f.push(this.delegate.channelContributor);return[].concat(_.$d(new Set(f)))};var g_L=function(){Qi.apply(this,arguments)};
_.q(g_L,Qi);g_L.prototype.getAssociations=function(){var f=[];this.delegate.recommendedVideoMetadata&&f.push.apply(f,_.$d((new ec$(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.$d(new Set(f)))};
var ec$=function(){Qi.apply(this,arguments)};
_.q(ec$,Qi);ec$.prototype.getAssociations=function(){var f=[];this.delegate.localImageEntities&&f.push.apply(f,_.$d(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&f.push(this.delegate.videoDownloadContextEntity);return[].concat(_.$d(new Set(f)))};var bu$=function(){Qi.apply(this,arguments)};
_.q(bu$,Qi);bu$.prototype.getAssociations=function(){var f=[];this.delegate.playbackPosition&&f.push(this.delegate.playbackPosition);return[].concat(_.$d(new Set(f)))};var miv=function(){Yf.apply(this,arguments)};
_.q(miv,Yf);miv.prototype.getAssociations=function(){var f=[];this.delegate.owner&&f.push(this.delegate.owner);this.delegate.downloadState&&f.push(this.delegate.downloadState);this.delegate.userState&&f.push.apply(f,_.$d((new bu$(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&f.push.apply(f,_.$d((new g_L(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.$d(new Set(f)))};var zcj=function(){Yf.apply(this,arguments)};
_.q(zcj,Yf);zcj.prototype.getAssociations=function(){var f=[];this.delegate.userChannelDetails&&f.push(this.delegate.userChannelDetails);return[].concat(_.$d(new Set(f)))};var Rc1=function(){Yf.apply(this,arguments)};
_.q(Rc1,Yf);Rc1.prototype.getAssociations=function(){var f=[];this.delegate.channelOwner&&f.push(this.delegate.channelOwner);this.delegate.playbackPosition&&f.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&f.push.apply(f,_.$d(this.delegate.localImageEntities));this.delegate.downloadStatus&&f.push(this.delegate.downloadStatus);return[].concat(_.$d(new Set(f)))};var a6V=new _.u("downloadsPageSmartDownloadsOptInBannerParams");var XzL=new _.u("downloadsPageUpsellBannerParams");var wzN=function(){Yf.apply(this,arguments)};
_.q(wzN,Yf);wzN.prototype.getAssociations=function(){return[]};var hco=function(){Yf.apply(this,arguments)};
_.q(hco,Yf);hco.prototype.getAssociations=function(){return[]};var THv=function(){Yf.apply(this,arguments)};
_.q(THv,Yf);THv.prototype.getAssociations=function(){return[]};var Fbo=function(){Yf.apply(this,arguments)};
_.q(Fbo,Yf);Fbo.prototype.getAssociations=function(){return[]};var Vz6=function(){Yf.apply(this,arguments)};
_.q(Vz6,Yf);Vz6.prototype.getAssociations=function(){return[]};var JV8=function(){Yf.apply(this,arguments)};
_.q(JV8,Yf);JV8.prototype.getAssociations=function(){return[]};var Plo=function(){Yf.apply(this,arguments)};
_.q(Plo,Yf);Plo.prototype.getAssociations=function(){return[]};var v_v=function(){Yf.apply(this,arguments)};
_.q(v_v,Yf);v_v.prototype.getAssociations=function(){return[]};var Kb8=function(){Yf.apply(this,arguments)};
_.q(Kb8,Yf);Kb8.prototype.getAssociations=function(){return[]};_.nF=new _.u("dislikeButtonViewModel");_.kK=new _.u("likeButtonViewModel");var dim=new _.u("videoSummaryContentViewModel");var iuo=new _.u("videoSummaryParagraphViewModel");var Huo=new _.u("changeTimelyActionVisibilityCommand");var qEm=new _.u("hideEngagementPanelEndpoint");var $im=new _.u("refreshPanelEndpoint");var QI6=new _.u("scrollToSectionEndpoint");var YE$=new _.u("seekToVideoTimestampCommand");_.DW=new _.u("showEngagementPanelEndpoint");var rV8=new _.u("showTransientPlayerScrimOverlayCommand");var jI$=new _.u("toggleEngagementPanelCommand");_.OuN=new _.u("createBroadcastCommand");var xij=new _.u("metadataUpdateCommand");var E_m=function(){Yf.apply(this,arguments)};
_.q(E_m,Yf);E_m.prototype.getAssociations=function(){return[]};var Lb8=function(){Yf.apply(this,arguments)};
_.q(Lb8,Yf);Lb8.prototype.getAssociations=function(){return[]};var ka1=function(){Yf.apply(this,arguments)};
_.q(ka1,Yf);ka1.prototype.getAssociations=function(){return[]};_.n_$=new _.u("merchandiseShelfRenderer");var sIj=new _.u("gridMovieRenderer");_.Dim=new _.u("movieRenderer");var IRv=function(){Yf.apply(this,arguments)};
_.q(IRv,Yf);IRv.prototype.getAssociations=function(){var f=[];this.delegate.trackDownloadMetadatas&&f.push.apply(f,_.$d(this.delegate.trackDownloadMetadatas));return[].concat(_.$d(new Set(f)))};var Ui8=function(){Yf.apply(this,arguments)};
_.q(Ui8,Yf);
Ui8.prototype.getAssociations=function(){var f=[];this.delegate.downloadedTracks&&f.push.apply(f,_.$d(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&f.push.apply(f,_.$d(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&f.push.apply(f,_.$d(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&f.push.apply(f,_.$d(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&f.push.apply(f,_.$d(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
f.push.apply(f,_.$d(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&f.push.apply(f,_.$d(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&f.push.apply(f,_.$d(this.delegate.metadataOnlyTracks));return[].concat(_.$d(new Set(f)))};var Clv=function(){Yf.apply(this,arguments)};
_.q(Clv,Yf);Clv.prototype.getAssociations=function(){var f=[];this.delegate.trackDownloadMetadatas&&f.push.apply(f,_.$d(this.delegate.trackDownloadMetadatas));return[].concat(_.$d(new Set(f)))};var pzL=function(){Yf.apply(this,arguments)};
_.q(pzL,Yf);pzL.prototype.getAssociations=function(){var f=[];this.delegate.playbackData&&f.push(this.delegate.playbackData);this.delegate.localImageEntities&&f.push.apply(f,_.$d(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&f.push(this.delegate.videoDownloadContextEntity);return[].concat(_.$d(new Set(f)))};var AVo=function(){Yf.apply(this,arguments)};
_.q(AVo,Yf);
AVo.prototype.getAssociations=function(){var f=[];this.delegate.musicLibraryStatusEntity&&f.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&f.push.apply(f,_.$d(this.delegate.primaryArtists));this.delegate.details&&f.push(this.delegate.details);this.delegate.userDetails&&f.push(this.delegate.userDetails);this.delegate.tracks&&f.push.apply(f,_.$d(this.delegate.tracks));this.delegate.share&&f.push(this.delegate.share);this.delegate.downloadMetadata&&f.push(this.delegate.downloadMetadata);this.delegate.refresh&&
f.push(this.delegate.refresh);return[].concat(_.$d(new Set(f)))};
var NHg=function(){Yf.apply(this,arguments)};
_.q(NHg,Yf);NHg.prototype.getAssociations=function(){var f=[];this.delegate.albumRelease&&f.push(this.delegate.albumRelease);this.delegate.tracks&&f.push.apply(f,_.$d(this.delegate.tracks));return[].concat(_.$d(new Set(f)))};
var Mz1=function(){Yf.apply(this,arguments)};
_.q(Mz1,Yf);Mz1.prototype.getAssociations=function(){var f=[];this.delegate.albumRelease&&f.push(this.delegate.albumRelease);return[].concat(_.$d(new Set(f)))};var Zui=function(){Yf.apply(this,arguments)};
_.q(Zui,Yf);Zui.prototype.getAssociations=function(){var f=[];this.delegate.details&&f.push(this.delegate.details);this.delegate.userDetails&&f.push(this.delegate.userDetails);return[].concat(_.$d(new Set(f)))};
var tzi=function(){Yf.apply(this,arguments)};
_.q(tzi,Yf);tzi.prototype.getAssociations=function(){var f=[];this.delegate.parentArtist&&f.push(this.delegate.parentArtist);return[].concat(_.$d(new Set(f)))};
var uHj=function(){Yf.apply(this,arguments)};
_.q(uHj,Yf);uHj.prototype.getAssociations=function(){var f=[];this.delegate.parentArtist&&f.push(this.delegate.parentArtist);return[].concat(_.$d(new Set(f)))};var aR6=function(){Yf.apply(this,arguments)};
_.q(aR6,Yf);aR6.prototype.getAssociations=function(){return[]};var yVi=function(){Yf.apply(this,arguments)};
_.q(yVi,Yf);yVi.prototype.getAssociations=function(){return[]};var Wbj=function(){Yf.apply(this,arguments)};
_.q(Wbj,Yf);
Wbj.prototype.getAssociations=function(){var f=[];this.delegate.tracks&&f.push.apply(f,_.$d(this.delegate.tracks));this.delegate.refresh&&f.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&f.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&f.push(this.delegate.details);this.delegate.downloadMetadata&&f.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&f.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&f.push(this.delegate.userDetails);this.delegate.entryCollection&&
f.push(this.delegate.entryCollection);this.delegate.share&&f.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&f.push.apply(f,_.$d((new cVN(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.$d(new Set(f)))};
var cVN=function(){Qi.apply(this,arguments)};
_.q(cVN,Qi);cVN.prototype.getAssociations=function(){var f=[];this.delegate.creatorEntity&&f.push(this.delegate.creatorEntity);return[].concat(_.$d(new Set(f)))};var lRg=function(){Yf.apply(this,arguments)};
_.q(lRg,Yf);lRg.prototype.getAssociations=function(){return[]};var f7m=function(){Yf.apply(this,arguments)};
_.q(f7m,Yf);
f7m.prototype.getAssociations=function(){var f=[];this.delegate.musicLibraryStatusEntity&&f.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&f.push.apply(f,_.$d(this.delegate.artists));this.delegate.audioModeVersion&&f.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&f.push(this.delegate.videoModeVersion);this.delegate.userDetails&&f.push(this.delegate.userDetails);this.delegate.details&&f.push(this.delegate.details);this.delegate.albumRelease&&f.push(this.delegate.albumRelease);this.delegate.share&&
f.push(this.delegate.share);this.delegate.libraryEdit&&f.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&f.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&f.push(this.delegate.playbackPosition);this.delegate.lyrics&&f.push(this.delegate.lyrics);return[].concat(_.$d(new Set(f)))};
var o9$=function(){Yf.apply(this,arguments)};
_.q(o9$,Yf);o9$.prototype.getAssociations=function(){var f=[];this.delegate.parentTrack&&f.push(this.delegate.parentTrack);return[].concat(_.$d(new Set(f)))};
var Sci=function(){Yf.apply(this,arguments)};
_.q(Sci,Yf);Sci.prototype.getAssociations=function(){var f=[];this.delegate.parentTrack&&f.push(this.delegate.parentTrack);return[].concat(_.$d(new Set(f)))};var gL=new _.u("musicResponsiveListItemRenderer");var vOQ=new _.u("addToPlaylistEndpoint");var BFi=new _.u("captionPickerEndpoint");var G6X=new _.u("suggestStats");var g91=new _.u("backstageImageUploadEndpoint");var eCm=new _.u("createBackstagePostDialogEndpoint");_.bT8=new _.u("createCommentReplyDialogEndpoint");_.ms7=new _.u("updateCommentDialogEndpoint");_.zC8=new _.u("updateCommentReplyDialogEndpoint");var RCm=new _.u("menuEndpoint");var XI9=new _.u("modalEndpoint");var Xym=new _.u("playlistEditorEndpoint");var wyL=new _.u("copyTextEndpoint");var hCm,TFN;hCm=new _.u("shareEndpoint");TFN=new _.u("shareEntityEndpoint");_.Fn7=new _.u("shareEntityServiceEndpoint");_.xhj=new _.u("userFeedbackEndpoint");_.t2=new _.u("watchEndpoint");var aCN=new _.u("watchPlaylistEndpoint");var VnN=new _.u("addUpcomingEventReminderEndpoint");_.kf=new _.u("getCommentsFromInboxCommand");var J_X=new _.u("notificationOptOutEndpoint");var P66=new _.u("recordNotificationInteractionsEndpoint");var v9X=new _.u("removeUpcomingEventReminderEndpoint");var JF9=new _.u("getDownloadActionCommand");_.Kni=new _.u("offlineOrchestrationActionCommand");var ds$=function(){Yf.apply(this,arguments)};
_.q(ds$,Yf);ds$.prototype.getAssociations=function(){return[]};var iTm=function(){Yf.apply(this,arguments)};
_.q(iTm,Yf);iTm.prototype.getAssociations=function(){return[]};var HT7=function(){Yf.apply(this,arguments)};
_.q(HT7,Yf);HT7.prototype.getAssociations=function(){return[]};var qcm=function(){Yf.apply(this,arguments)};
_.q(qcm,Yf);qcm.prototype.getAssociations=function(){return[]};var $sg=function(){Yf.apply(this,arguments)};
_.q($sg,Yf);$sg.prototype.getAssociations=function(){var f=[];this.delegate.transfer&&f.push(this.delegate.transfer);this.delegate.adsPlaybackData&&f.push.apply(f,_.$d(this.delegate.adsPlaybackData));this.delegate.drmLicense&&f.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&f.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&f.push(this.delegate.videoDownloadContextEntity);return[].concat(_.$d(new Set(f)))};var QNg=function(){Yf.apply(this,arguments)};
_.q(QNg,Yf);QNg.prototype.getAssociations=function(){return[]};var Ycv=function(){Yf.apply(this,arguments)};
_.q(Ycv,Yf);Ycv.prototype.getAssociations=function(){var f=[];this.delegate.offlineVideoStreams&&f.push.apply(f,_.$d(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&f.push.apply(f,_.$d(this.delegate.captionTrack));return[].concat(_.$d(new Set(f)))};var r_$=function(){Yf.apply(this,arguments)};
_.q(r_$,Yf);r_$.prototype.getAssociations=function(){return[]};var jN$=new _.u("showMoreDrawerCommand");var OTo=new _.u("updateEngagementPanelContentCommand");var xsL=new _.u("getPdgBuyFlowCommand");var E9o=new _.u("liveChatPurchaseMessageEndpoint");var LnN=new _.u("openSuperStickerBuyFlowCommand");var k68=new _.u("updatePdgFeatureEnablementCommand");var n98=function(){Yf.apply(this,arguments)};
_.q(n98,Yf);n98.prototype.getAssociations=function(){return[]};var sN7=function(){Yf.apply(this,arguments)};
_.q(sN7,Yf);sN7.prototype.getAssociations=function(){return[]};_.Ds$=new _.u("pdgCommentChipRenderer");_.I7X=new _.u("permissionRoleBottomBarRenderer");_.Us6=new _.u("updatePermissionRoleCommand");var C6m=new _.u("prefetchWatchCommand");var pyi=new _.u("updatePlayerErrorMessageCommand");var RMj=new _.u("toggleCaptionsVisibilityCommand");_.A_N=new _.u("quickActionsViewModel");var NFm=new _.u("playerResponse");var MnL=new _.u("playlistRenderer");_.ZTm=new _.u("playlistVideoListRenderer");_.nW=new _.u("playlistEditEndpoint");var tnN=new _.u("createImagePollCommand");var unm=new _.u("createQuizCommand");var a7i=new _.u("quizRenderer");var y_N=new _.u("uploadedVideoRenderer");var Wn8=new _.u("decorateMessageEndpoint");var c_7=new _.u("lpOfferCardOptionViewModel");var l7N=new _.u("sfvAudioItemPlaybackCommand");var f91=function(){Yf.apply(this,arguments)};
_.q(f91,Yf);f91.prototype.getAssociations=function(){return[]};_.s2=new _.u("reelNonVideoContentEndpoint");_.QW=new _.u("reelWatchEndpoint");_.DS=new _.u("reelItemRenderer");_.oRi=new _.u("reelMetapanelViewModel");_.Sev=new _.u("reelNonVideoContentRenderer");_.B1X=new _.u("reelPlayerOverlayRenderer");var Gwm=new _.u("shortsLockupViewModel");var gRo=new _.u("sponsorButtonViewModel");var ez8=new _.u("reelItemWatchResponse");var bsi=new _.u("textBadgeRenderer");_.IR=new _.u("buttonRenderer");_.U2=new _.u("toggleButtonRenderer");var VVG=new _.u("switchButtonViewModel");_.mIo=new _.u("confirmDialogRenderer");var zz1;zz1=new _.u("menuRenderer");_.Rz8=new _.u("menuFlexibleItemRenderer");var XGm=new _.u("pollRenderer");_.wGv=new _.u("backgroundPromoRenderer");var T17;_.hz$=new _.u("chipCloudRenderer");T17=new _.u("chipCloudChipRenderer");var Fwm=new _.u("dropdownRenderer");var VbL=new _.u("gridVideoRenderer");_.Jov=new _.u("itemSectionRenderer");_.P88=new _.u("messageRenderer");var vR8=new _.u("sortFilterHeaderRenderer");_.CW=new _.u("videoRenderer");var Kw8=new _.u("resolveUrlCommandMetadata");var dIm=function(){Yf.apply(this,arguments)};
_.q(dIm,Yf);dIm.prototype.getAssociations=function(){return[]};_.is7=new _.u("getAnswerCommand");_.Ht=new _.u("searchEndpoint");var HsL=new _.u("genAiRichTextViewModel");var VBN=new _.u("overviewAnswerViewModel");var qeN=new _.u("addToPlaylistServiceEndpoint");var $Ij=new _.u("clearSearchHistoryEndpoint");var QHL=new _.u("clearWatchHistoryEndpoint");var Ye1=new _.u("webSerializedServiceEndpointExtension");_.roN=new _.u("createCommentEndpoint");var jH1=new _.u("createCommentReplyEndpoint");var Os1=new _.u("performCommentActionEndpoint");var xI7=new _.u("updateCommentEndpoint");var sV7=new _.u("updateCommentReplyEndpoint");_.pW=new _.u("createPlaylistServiceEndpoint");var Dx6=new _.u("deletePlaylistEndpoint");var I67=new _.u("deleteVideoEndpoint");var PfQ=new _.u("getReportFormEndpoint");var Ux$=new _.u("modifyChannelNotificationPreferenceEndpoint");var k2V;_.JD=new _.u("offlinePlaylistEndpoint");k2V={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 nlN;_.V5=new _.u("offlineVideoEndpoint");nlN={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 CHL=new _.u("pingingEndpoint");_.pu$=new _.u("selectActiveIdentityEndpoint");var A5m=new _.u("setSettingEndpoint");var BBM=new _.u("undoFeedbackEndpoint");var Nxm=new _.u("unsubscribeEndpoint");_.Mx6=new _.u("updatedMetadataEndpoint");var ZdN=function(){Yf.apply(this,arguments)};
_.q(ZdN,Yf);ZdN.prototype.getAssociations=function(){return[]};_.tx$=new _.u("updateLocalAppSettingCommand");var uYm=new _.u("saveImageToDeviceEndpoint");var a68=new _.u("shareImageCommand");var y5i=new _.u("sharingProviderDataCommand");var Wpm=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(Wpm,_.s7);var c57=[0,_.W_,-1];Wpm.prototype.JSC$10328_serializeBinary=ogQ(c57);var l6g=_.cQ(c57);var fSv=new _.u("userMentionSuggestionRenderer");var of6=new _.u("liveChatTunnelCommand");var S2o=new _.u("showSponsorshipsGiftOfferDialogCommand");var BUN=new _.u("sponsorshipsScrollableShelfViewModel");var G98=new _.u("updateUpcomingEventReminderButtonStateCommand");var gf7=new _.u("upcomingEventReminderButtonStateRenderer");var eGm=new _.u("subscribeEndpoint");var bW7=new _.u("registerTasksCommand");var mG7=new _.u("hideSnackbarCommand");var zG7=new _.u("showDialogCommand");_.db=new _.u("showSheetCommand");var RGm=new _.u("showSnackbarCommand");var X1N=function(){Yf.apply(this,arguments)};
_.q(X1N,Yf);X1N.prototype.getAssociations=function(){return[]};var w16=function(){Yf.apply(this,arguments)};
_.q(w16,Yf);w16.prototype.getAssociations=function(){return[]};_.y5=new _.u("avatarViewModel");var hG8=new _.u("badgeViewModel");_.Q5=new _.u("buttonViewModel");_.Av=new _.u("chipViewModel");var Qq1=new _.u("collectionThumbnailViewModel");var TUm=new _.u("contentPreviewImageViewModel");var Fk$=new _.u("decoratedAvatarViewModel");var pgT=new _.u("downloadButtonViewModel");_.dgV=new _.u("engagementBarViewModel");_.VR$=new _.u("imageBannerViewModel");var vxK=new _.u("lockupContentMetadataRowExtension");var Jv7=new _.u("lockupMetadataViewModel");_.Pej=new _.u("lockupViewModel");var vfi=new _.u("avatarStackViewModel");var Kk1=function(){Yf.apply(this,arguments)};
_.q(Kk1,Yf);Kk1.prototype.getAssociations=function(){return[]};_.dGi=new _.u("pageHeaderViewModel");var iW6=new _.u("snackbarViewModel");var HWi=new _.u("thumbnailHoverOverlayToggleActionsViewModel");_.YK=new _.u("toggleButtonViewModel");var q2g=function(){Yf.apply(this,arguments)};
_.q(q2g,Yf);q2g.prototype.getAssociations=function(){return[]};_.i7T=new _.u("votingViewModel");var $Gv=new _.u("sectionHeaderViewModel");var QRj=new _.u("notifyDropdownOptionSelectedCommand");var YhA=new _.u("listViewModel");_.ix=new _.u("listItemViewModel");var Y26=new _.u("dialogHeaderViewModel");var rvL=function(){Yf.apply(this,arguments)};
_.q(rvL,Yf);rvL.prototype.getAssociations=function(){return[]};var jR7=function(){Yf.apply(this,arguments)};
_.q(jR7,Yf);jR7.prototype.getAssociations=function(){return[]};var OWi=function(){Yf.apply(this,arguments)};
_.q(OWi,Yf);OWi.prototype.getAssociations=function(){return[]};_.xG$=new _.u("transcriptSubmitCaptionCorrectionCommand");var Ef8=function(){Yf.apply(this,arguments)};
_.q(Ef8,Yf);Ef8.prototype.getAssociations=function(){return[]};var lJQ=new _.u("unpluggedStringRunImage");var Lkg=new _.u("tabViewModel");var k91=new _.u("tabbedViewModel");var nfm=function(){Yf.apply(this,arguments)};
_.q(nfm,Yf);nfm.prototype.getAssociations=function(){return[]};_.sRm=new _.u("updateDescriptionAction");var DG6=new _.u("updateToggleButtonTextAction");_.ISX=new _.u("autoplaySwitchButtonRenderer");var Cz;_.UGg=new _.u("multiMarkersPlayerBarRenderer");Cz=new _.u("chapterRenderer");var Cem=new _.u("heatMarkerRenderer");var F3j=new _.u("heatmapRenderer");var p1N=new _.u("smartSkipPlayerScrimOverlayRenderer");var Av$=new _.u("timedMarkerDecorationRenderer");var zOV=new _.u("postWebToNativeMessageCommand");var NUm=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(NUm,_.s7);var MRi=_.WQ(NUm,[0,_.W_,-2]);var ZW6=new _.u("whitelistEditEndpoint");var tRo=new _.u("clearUrlParamCommand");var u1N=new _.u("commerceActionCommand");_.aSj=new _.u("getPaymentInstrumentsParamsCommand");var yv6=new _.u("getPaymentsClientTokenCommand");var Wki=new _.u("googlePaymentBillingCommand");var cvL=new _.u("googlePaymentPurchaseManagerCommand");_.lS1=new _.u("logGtmCommand");var frg=new _.u("updateCardItemOnClickCommand");_.oZL=new _.u("ypcPauseSubscriptionCommand");_.SX8=new _.u("ypcResumeSubscriptionCommand");var BYN=function(){Yf.apply(this,arguments)};
_.q(BYN,Yf);BYN.prototype.getAssociations=function(){return[]};var GEX=function(){Yf.apply(this,arguments)};
_.q(GEX,Yf);GEX.prototype.getAssociations=function(){return[]};var gZN=function(){Yf.apply(this,arguments)};
_.q(gZN,Yf);gZN.prototype.getAssociations=function(){return[]};var ef1=function(){Yf.apply(this,arguments)};
_.q(ef1,Yf);ef1.prototype.getAssociations=function(){return[]};var bDg=function(){Yf.apply(this,arguments)};
_.q(bDg,Yf);bDg.prototype.getAssociations=function(){return[]};var eTG=new _.u("ypcOffersEndpoint");var mwN=new _.u("cardItemRenderer"),zf1=new _.u("cardItemTextRenderer");var Rfg=new _.u("commerceCartItemQuantityPickerRenderer");var Xng=new _.u("linkCardRenderer");var BTM=new _.u("quantityIncrementerButtonViewModel");var wnX=new _.u("quantityIncrementerViewModel");var hfg=new _.u("themedImageViewModel");_.TY1=new _.u("ypcCancelRecurrenceEndpoint");var Fi$=new _.u("ypcCompleteTransactionEndpoint");_.VEX=new _.u("ypcGetCartEndpoint");_.mv=new _.u("ypcGetOffersEndpoint");_.NG=new _.u("ypcHandleTransactionEndpoint");var J0g=new _.u("ypcLogWalletAnalyticDataEndpoint");_.POi=new _.u("ypcRedeemCodeEndpoint");var vZj=new _.u("ypcUpdateFopEndpoint");eR(gU(1),B1(4));rQ1((new MessageChannel).port2);var Ki$=function(){this.register=new Map},Qtj=function(f,S,B){f=f+"_"+S;
MG.register.has(f)?B=MG.register.get(f):(B=B(),MG.register.set(f,B));return B},dwi=function(f){f=_.m(f.register.values());
for(var S=f.next();!S.done;S=f.next())_.PY(S.value,"ABORTED")};
Ki$.prototype.clear=function(){dwi(this);this.register.clear()};
var MG=new Ki$;var b8j=Date.now().toString();var zrG,iD6=_.S1.ytLoggingDocDocumentNonce_;iD6||(iD6=ri(16),_.WL("ytLoggingDocDocumentNonce_",iD6));zrG=iD6;var Jq9={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 HDL;HDL=1;_.je=function(f){this.veData=f};
_.Ye=function(f){return new _.je({trackingParams:f})};
_.Eo=function(f,S,B,G,g,b){var z=HDL++;return new _.je({veType:f,veCounter:z,elementIndex:B,dataElement:S,youtubeData:G,jspbYoutubeData:g,loggingDirectives:b})};
_.e=_.je.prototype;
_.e.getAsJson=function(){var f={};this.veData.trackingParams!==void 0?f.trackingParams=this.veData.trackingParams:(f.veType=this.veData.veType,this.veData.veCounter!==void 0&&(f.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(f.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(f.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(f.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(f.isCounterfactual=!0);
return f};
_.e.getAsJspb=function(){var f=new azg;this.veData.trackingParams!==void 0?f.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.C4(f,2,this.veData.veType),this.veData.veCounter!==void 0&&_.C4(f,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.C4(f,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.b5(f,5,!0));if(this.veData.dataElement!==void 0){var S=this.veData.dataElement.getAsJspb();_.SZ(f,7,S)}this.veData.youtubeData!==void 0&&_.SZ(f,8,this.veData.jspbYoutubeData);
return f};
_.e.toString=function(){return JSON.stringify(this.getAsJson())};
_.e.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.e.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.WL("yt_logging_screen.getRootVeType",TX1);_.WL("yt_logging_screen.getCurrentCsn",_.xc);_.WL("yt_logging_screen.getCttAuthInfo",Ef);_.WL("yt_logging_screen.setCurrentScreen",_.Lk);var qX6=function(){this.events=new Map},$w$=function(f){var S=[];
f=_.m(f.events.values());for(var B=f.next();!B.done;B=f.next())S.push(B.value);return S};
qX6.prototype.clear=function(){this.events.clear()};var YXj=function(){this.logTransport=new Qh8;this.loggedEventRegister=new qX6;this.unloggedEventRegister=new qX6;this.eventsCount=0;this.flushInterval=3E4;this.JSC$10385_flushTimer=new _.Se(this.flushInterval);this.JSC$10385_flushTimer.listen("tick",this.flush,!1,this)};
YXj.prototype.flush=function(){if(this.eventsCount){var f={loggedEvents:$w$(this.loggedEventRegister),unloggedEvents:$w$(this.unloggedEventRegister)};if(_.K("export_player_version_to_ytconfig")){var S;(S=_.nL("PLAYER_CLIENT_VERSION"))?(S=S.split("-")[0].replace(/\./g,""),S=isNaN(Number(S))?"0":S):S="";var B=_.nL("PLAYER_CLIENT_VERSION");if(B){B=B.split("-");var G="";B.length>1&&(G=B[B.length-1]);B=erN(G.startsWith("canary_experiment")?"canary":G.startsWith("canary_control")?"control":"none")}else B=
"CLIENT_CANARY_STATE_UNKNOWN";f.dimensions={playerClientVersion:S,playerCanaryState:B}}this.logTransport.flush(f);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$10385_flushTimer.enabled&&this.JSC$10385_flushTimer.stop()}};
var r0X=function(f){ZS==null&&(ZS=new YXj);var S=ZS;var B=S.loggedEventRegister;f.dimensions=f.dimensions||{};f.dimensions.csn=_.xc()||"";var G=K51(f.dimensions).join(";");if(f.records!=null)if(B.events.has(G)){var g;(g=B.events.get(G).records)==null||g.push.apply(g,_.$d(f.records))}else B.events.set(G,f);S.JSC$10385_flushTimer.enabled||S.JSC$10385_flushTimer.start();S.eventsCount++;S.eventsCount>=100&&S.flush()};var Qh8=function(){};
Qh8.prototype.flush=function(f,S){_.K("enable_client_sli_logging")&&_.jD("sliEventBatch",f,{sendIsolatedPayload:!!S})};var ZS;var ODm;ODm=function(f){var S=jhj;f=f===void 0?{}:f;S=S.name;var B=$Mj("SUCCESS");r0X({dimensions:f,records:[{name:S,state:"SLI_STATE_END",status:B}]})};
_.YT1=function(f,S,B,G){this.name=f;this.sliId=S;this.timeoutMs=B;this.statusOnTimeout=G;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.YT1.prototype.getId=function(){return this.sliId};
_.J9=function(f,S){S=S===void 0?{}:S;f.ongoing||(f.ongoing=!0,f.dimensions=S,f.logSliId=$B1(),r0X({dimensions:f.dimensions,records:[{name:f.name,state:"SLI_STATE_START",sliId:f.logSliId}]}),f.timeoutMs>0&&(f.timeoutHandle=setTimeout(function(){_.PY(f,f.statusOnTimeout)},f.timeoutMs)))};
_.PY=function(f,S){f.ongoing&&(f.timeoutMs>0&&clearTimeout(f.timeoutHandle),f.ongoing=!1,S={dimensions:f.dimensions,records:[{name:f.name,status:$Mj(S),state:"SLI_STATE_END",sliId:f.logSliId}]},MG.register.delete(f.name+"_"+f.sliId),r0X(S))};var jhj=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var xwX=function(){Yf.apply(this,arguments)};
_.q(xwX,Yf);xwX.prototype.getAssociations=function(){return[]};var IGV=new _.u("highlightTextDecoratorColorMapExtension");var sMQ=new _.u("styleRunColorMapExtension");var khx=_.f4(["data-"]),DMW={};var UMV={};var tv=function(f){this.wrappedPromise_=f===void 0?null:f;this.state_=0;this.JSC$10417_value_=null};
tv.prototype.then=function(f,S,B){return this.wrappedPromise_?this.wrappedPromise_.then(f,S,B):this.state_===1&&f?(f=f.call(B,this.JSC$10417_value_))&&typeof f.then==="function"?f:_.ue(f):this.state_===2&&S?(f=S.call(B,this.JSC$10417_value_))&&typeof f.then==="function"?f:_.EZ$(f):this};
tv.prototype.getValue=function(){return this.JSC$10417_value_};
tv.prototype.isRejected=function(){return this.state_==2};
ZXL(tv);_.EZ$=function(f){var S=new tv;f=f===void 0?null:f;S.state_=2;S.JSC$10417_value_=f===void 0?null:f;return S};
_.ue=function(f){var S=new tv;f=f===void 0?null:f;S.state_=1;S.JSC$10417_value_=f===void 0?null:f;return S};var o_G="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var Lim=["load","abort","error"],aR=function(f,S,B){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$10437_maxAspectRatio_=f;this.disableAnimation_=S===void 0?!1:S;this.disableExifRotation_=B===void 0?!1:B;this.JSC$10437_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$10437_reject_=this.resolve_=null};
aR.prototype.transform=function(f){var S=this;this.mime_=f.type;WE(Z28(f),this.dataUrlRead_,this.readError_,this);WE(MwL(f.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(B,G){S.resolve_=B;S.JSC$10437_reject_=G})};
aR.prototype.dataUrlRead_=function(f){this.dataUrl_=f;this.angle_!=null&&kE1(this)};
aR.prototype.exifRead_=function(f){if(this.disableExifRotation_)this.angle_=0;else{a:if(f=new DataView(f),f.byteLength<2||f.getUint16(0)!==65496)f=-2;else{for(var S=2,B=f.byteLength;S<B;){var G=f.getUint16(S),g=f.getUint16(S+2);if(G===65505){S+=4;G=f.getUint32(S);g=f.getUint16(S+4);if(G!==1165519206||g!==0)break;S+=6;G=f.getUint16(S)===18761;S+=f.getUint32(S+4,G);g=f.getUint16(S,G);S+=2;for(var b=0;b<g;b++){if(f.getUint16(S,G)===274){S+=8;f=f.getUint16(S,G);break a}S+=12}}else if(G>>8!==255)break;
else S+=g+2}f=-1}switch(f){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&&kE1(this)};
aR.prototype.readError_=function(){this.JSC$10437_reject_()};
var kE1=function(f){$e(f.JSC$10437_image_,Lim,f.completeTransform_,!1,f);f.JSC$10437_image_.src=_.io(f.dataUrl_).toString();f.JSC$10437_image_.src!=dc.toString()&&f.JSC$10437_image_.src.substr(0,11)==="data:image/"||f.JSC$10437_reject_()};
aR.prototype.completeTransform_=function(){if(this.JSC$10437_image_.src!=dc.toString()){var f=_.io(this.dataUrl_),S=this.JSC$10437_image_.naturalHeight?this.JSC$10437_image_.naturalWidth/this.JSC$10437_image_.naturalHeight:null;this.invalidAspectRatio=S>this.JSC$10437_maxAspectRatio_||S<1/this.JSC$10437_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var B=this.JSC$10437_image_.naturalWidth,G=this.JSC$10437_image_.naturalHeight,g=S=0,b=this.JSC$10437_image_.naturalHeight?this.JSC$10437_image_.naturalWidth/
this.JSC$10437_image_.naturalHeight:null;b>this.JSC$10437_maxAspectRatio_?(B=this.JSC$10437_maxAspectRatio_*G,S=(B-this.JSC$10437_image_.naturalWidth)/2,this.cropped=!0):b<1/this.JSC$10437_maxAspectRatio_?(G=this.JSC$10437_maxAspectRatio_*B,g=(G-this.JSC$10437_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)b=B,B=G,G=b,b=S,S=g,g=b;switch(this.angle_){case 90:g-=B;break;case 180:S-=B;g-=G;break;case 270:S-=
G}this.cropped||this.angle_%360!==0?(f=document.createElement("canvas"),f.width=B||1,f.height=G||1,this.JSC$10437_image_.naturalWidth&&this.JSC$10437_image_.naturalHeight&&(B=f.getContext("2d"),B.rotate(Math.PI/180*this.angle_),B.drawImage(this.JSC$10437_image_,S,g,this.JSC$10437_image_.naturalWidth,this.JSC$10437_image_.naturalHeight)),this.transformedData=_.io(f.toDataURL(this.mime_))):this.transformedData=f}else this.transformedData=f;this.resolve_(this)}};var yi=function(f,S){_.K8.call(this,f);this.value=S};
_.q(yi,_.K8);
var W1=function(f,S,B,G,g,b,z){z=z===void 0?!1:z;_.$o.call(this);var X=this;this.JSC$10442_url_=f;this.channelId_=S;this.maxFileSizeMb_=B;this.JSC$10442_maxAspectRatio_=G;this.dropZoneEl_=g;this.rejectInvalidAspectRatio_=z;this.selectButtonEl_=b;this.JSC$10442_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new T9(this.dropZoneEl_);this.selectOverlay_=new F1(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$10442_image_=this.transfer_=null;this.handler_=new _.BZ(this);_.ha(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(b,"click",function(){X.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.q(W1,_.$o);W1.prototype.disposeInternal=function(){for(var f=this.selectButtonEl_.nextSibling;f&&f.parentNode&&f.tagName=="INPUT";)f.parentNode.removeChild(f),f=this.selectButtonEl_.nextSibling;this.cancel();_.$o.prototype.disposeInternal.call(this)};
W1.prototype.uploadPromise=function(){if(this.JSC$10442_image_==null)return null;this.uploadPromise_||nZL(this);return this.uploadPromise_};
W1.prototype.cancel=function(){sh7(this);this.JSC$10442_image_=null};
var sh7=function(f){f.transfer_&&f.transfer_.cancel();f.transfer_=null;f.uploadPromise_=null;f.resolve_=null;f.JSC$10442_reject_=null},nZL=function(f){sh7(f);
f.transfer_=_.zF1(f.JSC$10442_url_,{"X-YouTube-ChannelId":f.channelId_},f.JSC$10442_image_);f.handler_.listenOnce(f.transfer_,"l",f.JSC$10444_onUploadComplete_);f.handler_.listenOnce(f.transfer_,"n",f.onUploadError_);f.transfer_.run();f.uploadPromise_=new Promise(function(S,B){f.resolve_=S;f.JSC$10442_reject_=B})};
_.e=W1.prototype;_.e.onChange_=function(f){f.files.length&&(this.JSC$10442_image_=f.files[0],this.JSC$10442_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$10442_image_=null,this.dispatchEvent(new yi("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(nZL(this),(new aR(this.JSC$10442_maxAspectRatio_)).transform(this.JSC$10442_image_).then((0,_.$A)(this.onPreview_,this),(0,_.$A)(this.onPreviewError_,this))))};
_.e.onPreview_=function(f){if(f.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$10442_image_=null),this.dispatchEvent(new yi("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;f.cropped&&this.dispatchEvent(new yi("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new yi("yt.comments.ImageUploadOverlay.CHANGE_EVENT",f.transformedData))};
_.e.onPreviewError_=function(){this.JSC$10442_image_=null;this.dispatchEvent(new yi("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.e.onHover_=function(f){f.stopPropagation();f.preventDefault();if(f.type==="dragover")f=!0;else if(f.type==="dragleave")f=!1;else return;this.dispatchEvent(new yi("yt.comments.ImageUploadOverlay.HOVER_EVENT",f))};
_.e.JSC$10444_onUploadComplete_=function(){var f=(0,_.VZ1)(this.transfer_.getResponseText());this.resolve_(f.encryptedBlobId)};
_.e.onUploadError_=function(){this.JSC$10442_reject_();sh7(this)};var Dwm=function(f){f=f||{};var S={},B={};this.url=f.url||"";this.args=f.args||_.$v.clone(S);this.assets=f.assets||{};this.attrs=f.attrs||_.$v.clone(B);this.fallback=f.fallback||null;this.fallbackMessage=f.fallbackMessage||null;this.html5=!!f.html5;this.disable=f.disable||{};this.loaded=!!f.loaded;this.messages=f.messages||{}};
Dwm.prototype.clone=function(){var f=new Dwm,S;for(S in this)if(this.hasOwnProperty(S)){var B=this[S];f[S]=_.Xu(B)=="object"?_.$v.clone(B):B}return f};var Iro,Uwo,CO$,Gq,A0$,NYX,ME8,ZDj,tEm,uo7,arm,y0L,Wi7,c0o,lrX,fC8,okX,Sjm,BQ8,Gb1,gkj,eHL,b5i,mmm,zH1,RH1,X47,w4N,hH6,JbK,TQj,FQo,Vji,Ji7,P_1,vk8,KQX,dmL,i5L,H5m,qjL,$mv,Qv1,Yj7,rio,jvj,O5i,xmX,Eki,LQX,kbi,nkN,svX,Dmg,ICL,Umm,c1,C_v,p41,AiN,NQ1,Mj7,Z5g,tjm,uwj,aC$,yii,WQv,cim,lCm,ffm,oNN,S08,BP6,G7m,FP9,gNN,eki,bVN,mf6,zkm,Rk7,Xl8,wlj,hkX,TPm,F$m,Vym,JWN,P3v,vNi,K$$,dfX,iVX,HVm,q0o,$f1,Q5N,Y0m,rW6,j5N;Iro=["account/accounts_list"];Uwo=["acknowledge_channel_tou_strike"];CO$=["notification/add_upcoming_event_reminder"];
_.pnm=["att/get"];Gq=["browse","music/browse","unplugged/browse"];A0$=["channel/claim_legacy_youtube_channel"];NYX=["history/clear_search_history"];ME8=["history/clear_watch_history"];ZDj=["comment/perform_comment_action"];tEm=["comment/get_comment_replies"];uo7=["ypc/commerce_action"];arm=["backstage/create_post"];y0L=["live/create_broadcast"];Wi7=["channel/create_channel"];c0o=["comment/create_comment_reply"];lrX=["comment/create_comment"];fC8=["live_chat/create_poll"];okX=["playlist/create"];
Sjm=["decorate_message"];BQ8=["live_chat/delete_message"];Gb1=["playlist/delete"];gkj=["video/delete"];eHL=["like/dislike"];b5i=["dismissal/dismiss"];mmm=["flag/flag"];zH1=["flow"];RH1=["account/account_menu"];X47=["playlist/get_add_to_playlist"];w4N=["get_answer"];hH6=["channel/get_channel_creation_form"];JbK=["offline/get_download_action"];TQj=["kids/get_kids_blocklist_picker"];FQo=["live_chat/get_item_context_menu"];Vji=["live_chat/get_live_chat_message_buy_flow"];Ji7=["live_chat/get_live_chat_replay"];
P_1=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];vk8=["live_chat/get_live_chat_super_sticker_buy_flow"];KQX=["notification/get_notification_menu"];dmL=["playlist/get_settings_editor"];i5L=["backstage/get_post_video_preview"];H5m=["account/get_profile_card"];qjL=["share/get_share_panel"];$mv=["share/get_sharing_provider_data"];Qv1=["get_survey"];Yj7=["notification/get_unseen_count"];rio=["get_user_mention_suggestions"];jvj=["get_watch"];O5i=["guide"];
xmX=["feedback"];Eki=["kids/update_blacklist"];LQX=["like/like"];kbi=["live_chat/live_chat_action"];nkN=["live_chat/manage_user"];svX=["video_manager/metadata_update"];Dmg=["live_chat/moderate"];ICL=["notification/modify_channel_preference"];Umm=["notification/opt_out"];c1=["get_panel","get_posts_by_host_panel"];C_v=["player"];p41=["browse/edit_playlist"];AiN=["notification/record_interactions"];NQ1=["reel/reel_item_watch"];Mj7=["reel/reel_watch_sequence"];Z5g=["like/removelike"];tjm=["notification/remove_upcoming_event_reminder"];
uwj=["flag/get_form"];aC$=["miniapp/report_value"];yii=["navigation/resolve_url"];WQv=["channel/reveal_business_email"];cim=["in_video/search"];lCm=["search","sfv/search","unplugged/search"];ffm=["live_chat/send_message"];oNN=["live_chat/send_live_chat_vote"];S08=["account/set_setting"];BP6=["submit_caption_correction"];G7m=["subscription/subscribe"];FP9=["get_transcript"];gNN=["resolve_location","unplugged/resolve_location"];eki=["subscription/unsubscribe"];bVN=["backstage/update_post"];mf6=["channel_edit/update_channel_page_settings"];
zkm=["comment/update_comment_reply"];Rk7=["comment/update_comment"];Xl8=["comment/update_comments_settings"];wlj=["creator/update_creator_channel"];hkX=["pdg/update_enablement"];TPm=["updated_metadata"];F$m=["channel_edit/validate_channel_handle"];Vym=["verify_age"];JWN=["next","unplugged/watch_next"];P3v=["whitelist/edit"];vNi=["ypc/cancel_recurrence"];K$$=["ypc/complete_transaction"];dfX=["ypc/get_cart"];iVX=["ypc/get_fix_instrument_params"];HVm=["ypc/get_offers"];q0o=["ypc/get_payment_instruments_params"];
$f1=["ypc/handle_transaction"];Q5N=["ypc/log_payment_server_analytics"];Y0m=["ypc/pause_subscription"];rW6=["ypc/redeem_code"];j5N=["ypc/resume_subscription"];var OVm=[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,265810,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,264490,211189,111059,211188,5754,264491,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,267645,190190,225739,31961,26388,23811,
5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,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,267692,267851,267577,267693,267694,267578,262801,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,82039];var Vp=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.WL("yt.msgs_",Vp);var le=new _.Sn("ACTION_ROUTER_TOKEN");_.fD=function(){this.autonavState_=_.K("kevlar_is_pupi_enabled")?2:hcj()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.fD.prototype.getState=function(){return this.autonavState_};
_.fD.prototype.pause=function(f){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=f):this.autonavState_==1&&(this.disabledAutonavPauseReason_=f)};
_.fD.prototype.setState=function(f,S,B){S&&(this.autoplayChangedByUser=!0);S=this.autonavState_===3||f===3;this.autonavState_!=f&&(this.autonavState_=f,f!=3&&_.THN(f==2),f=_.K("kevlar_is_pupi_enabled")?B||S:!0,_.AE.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,f,B))};
_.fD.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.mG(_.fD);var oh=function(){this.hasRun=!1};var SE={},$iK=(SE.auto_search="LATENCY_ACTION_AUTO_SEARCH",SE.ad_to_ad="LATENCY_ACTION_AD_TO_AD",SE.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",SE.app_startup="LATENCY_ACTION_APP_STARTUP",SE.browse="LATENCY_ACTION_BROWSE",SE.cast_splash="LATENCY_ACTION_CAST_SPLASH",SE.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",SE.channels="LATENCY_ACTION_CHANNELS",SE.chips="LATENCY_ACTION_CHIPS",SE.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",SE.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
SE.editor="LATENCY_ACTION_EDITOR",SE.embed="LATENCY_ACTION_EMBED",SE.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",SE.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",SE.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",SE.explore="LATENCY_ACTION_EXPLORE",SE.favorites="LATENCY_ACTION_FAVORITES",SE.home="LATENCY_ACTION_HOME",SE.inboarding="LATENCY_ACTION_INBOARDING",SE.landing="LATENCY_ACTION_LANDING",SE.library="LATENCY_ACTION_LIBRARY",SE.live=
"LATENCY_ACTION_LIVE",SE.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",SE.management="LATENCY_ACTION_MANAGEMENT",SE.mini_app="LATENCY_ACTION_MINI_APP_PLAY",SE.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",SE.onboarding="LATENCY_ACTION_ONBOARDING",SE.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",SE.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",SE.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",SE.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",
SE.prebuffer="LATENCY_ACTION_PREBUFFER",SE.prefetch="LATENCY_ACTION_PREFETCH",SE.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",SE.profile_switcher="LATENCY_ACTION_LOGIN",SE.projects="LATENCY_ACTION_PROJECTS",SE.reel_watch="LATENCY_ACTION_REEL_WATCH",SE.results="LATENCY_ACTION_RESULTS",SE.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",SE.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",SE.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",SE.review="LATENCY_ACTION_REVIEW",SE.search_overview_answer=
"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",SE.search_ui="LATENCY_ACTION_SEARCH_UI",SE.search_suggest="LATENCY_ACTION_SUGGEST",SE.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",SE.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",SE.seek="LATENCY_ACTION_PLAYER_SEEK",SE.settings="LATENCY_ACTION_SETTINGS",SE.store="LATENCY_ACTION_STORE",SE.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",SE.tenx="LATENCY_ACTION_TENX",SE.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",SE.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",
SE.watch="LATENCY_ACTION_WATCH",SE.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",SE["watch,watch7"]="LATENCY_ACTION_WATCH",SE["watch,watch7_html5"]="LATENCY_ACTION_WATCH",SE["watch,watch7ad"]="LATENCY_ACTION_WATCH",SE["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",SE.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",SE.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",SE.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",SE.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",SE.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",SE.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",SE.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",SE.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",SE),ClN=0;var tzM=function(f,S){Qo.call(this,1,arguments);this.timer=S};
_.q(tzM,Qo);var ZuM=new grT("aft-recorded",tzM);var jIN=_.S1.ytLoggingGelSequenceIdObj_||{};_.WL("ytLoggingGelSequenceIdObj_",jIN);var Bn=_.S1.ytLoggingLatencyUsageStats_||{};_.WL("ytLoggingLatencyUsageStats_",Bn);var GE=function(){this.cleanupJob=0},E_1=function(){GE.instance||(GE.instance=new GE);
return GE.instance};
_.e=GE.prototype;_.e.baseline=function(f,S,B){gY(this,"baseline_"+f)||_.jD("latencyActionBaselined",{clientActionNonce:f},{timestamp:S,cttAuthInfo:B})};
_.e.tick=function(f,S,B,G){gY(this,"tick_"+f+"_"+S)||_.jD("latencyActionTicked",{tickName:f,clientActionNonce:S},{timestamp:B,cttAuthInfo:G})};
_.e.info=function(f,S,B){var G=Object.keys(f).join("");gY(this,"info_"+G+"_"+S)||(f=Object.assign({},f),f.clientActionNonce=S,_.jD("latencyActionInfo",f,{cttAuthInfo:B}))};
_.e.jspbInfo=function(f,S,B){for(var G="",g=0;g<BQ(f).length;g++)BQ(f)[g]!==void 0&&(G=g===0?G.concat(""+g):G.concat("_"+g));gY(this,"info_"+G+"_"+S)||(_.Jx(f,2,S),S={cttAuthInfo:B},B=_.K("jspb_sparse_encoded_pivot")?new HD([{}]):new HD,_.Bo(B,7,R_j,f),OuW("latencyActionInfo",B,S))};
_.e.span=function(f,S,B){var G=Object.keys(f).join("");gY(this,"span_"+G+"_"+S)||(f.clientActionNonce=S,_.jD("latencyActionSpan",f,{cttAuthInfo:B}))};
var gY=function(f,S){Bn[S]=Bn[S]||{count:0};var B=Bn[S];B.count++;B.time=(0,_.fO)();f.cleanupJob||(f.cleanupJob=_.q6(_.xJ,function(){var G=(0,_.fO)(),g;for(g in Bn)Bn[g]&&G-Bn[g].time>6E4&&delete Bn[g];f&&(f.cleanupJob=0)},5E3));
return B.count>5?(B.count===6&&Math.random()*1E5<1&&(B=new _.dO("CSI data exceeded logging limit with key",S.split("_")),S.indexOf("plev")>=0||_.Lg(B)),!0):!1};var xf6,ENm;xf6=window;ENm=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.$T=xf6.performance||xf6.mozPerformance||xf6.msPerformance||xf6.webkitPerformance||new ENm;var Mzs=!1,kas=!1,uH1=(0,_.$A)(_.$T.clearResourceTimings||_.$T.webkitClearResourceTimings||_.$T.mozClearResourceTimings||_.$T.msClearResourceTimings||_.$T.oClearResourceTimings||_.d8,_.$T);var L$X=window;L$X.ytcsi&&(L$X.ytcsi.infoGel=_.EL,L$X.ytcsi.tick=_.kT);var eC1=function(f){Qo.call(this,1,arguments);this.csn=f};
_.q(eC1,Qo);var RxN=new grT("screen-created",eC1),iTK=[],g9s=dsN,HT9=0,UL=new Map,bTV=new Map,ms9=new Map;var d4G=Symbol("vf"),WK=new WeakMap;var eE=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},qB=function(){eE.instance||(eE.instance=new eE);
return eE.instance};
_.e=eE.prototype;_.e.setClient=function(f){this.client=f};
_.e.JSC$10523_newScreen=function(){this.clear();this.csn=_.xc()};
_.e.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.e.reportShown=function(f,S,B){var G=this.JSC$10523_getTrackingParams(f),g=f.visualElement?f.visualElement:G;S=this.shownElements.has(g);var b=this.visibleState.get(g);this.shownElements.add(g);this.visibleState.set(g,!0);f.impressionLog&&!S&&f.impressionLog();if(G||f.visualElement)if(B=k7N(this,f,B))if(g=nNX(this,f),bO(this,f)||g){G=f.visualElement?f.visualElement:_.Ye(G);var z=f.interactionLoggingClientData;g||S?bO(this,f)&4?b||VnA(this.client,B,G,z):bO(this,f)&1&&!S&&hCK(this.client,B,G,z):hCK(this.client,
B,G,z)}};
_.e.reportHidden=function(f,S,B){var G=this.JSC$10523_getTrackingParams(f),g=f.visualElement?f.visualElement:G;S=this.hiddenElements.has(g);var b=this.visibleState.get(g);this.hiddenElements.add(g);this.visibleState.set(g,!1);if(b===!1)return!0;if(!G&&!f.visualElement)return!1;B=k7N(this,f,B);if(!B||!bO(this,f)&&nNX(this,f))return!1;G=f.visualElement?f.visualElement:_.Ye(G);bO(this,f)&8?J_Q(this.client,B,G):bO(this,f)&2&&!S&&(f=this.client,S=ID({cttAuthInfo:Ef(B)||void 0},B),G={csn:B,ve:G.getAsJson(),
eventType:2},B==="UNDEFINED_CSN"?p2("visualElementHidden",S,G):f?YH("visualElementHidden",G,f,S):_.jD("visualElementHidden",G,S));return!0};
_.e.JSC$10523_getTrackingParams=function(f){var S=this.getData(f),B,G;if(_.K("il_use_view_model_logging_context")&&(S==null?0:(B=S.context)==null?0:(G=B.loggingContext)==null?0:G.loggingDirectives))return S.context.loggingContext.loggingDirectives.trackingParams||"";var g,b;if(S==null?0:(g=S.rendererContext)==null?0:(b=g.loggingContext)==null?0:b.loggingDirectives)return S.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(S==null?0:S.loggingDirectives)return S.loggingDirectives.trackingParams||
"";var z;return((z=f.veContainer)==null?0:z.trackingParams)?f.veContainer.trackingParams:(S==null?void 0:S.trackingParams)||""};
_.e.JSC$10523_elementShouldLogGesture=function(f,S){f=this.getData(f);return!!((Math.floor(Number(f&&f.loggingDirectives&&f.loggingDirectives.gestures&&f.loggingDirectives.gestures.types||""))||0)&S)};
_.e.JSC$10523_getNearestParentVe=function(f){var S=this.JSC$10523_getTrackingParams(f);return f.visualElement?f.visualElement:S?_.Ye(S):f.parentElement?this.JSC$10523_getNearestParentVe(f.parentElement):null};
var k7N=function(f,S,B){var G=_.xc(B);return f.csn===null||G===f.csn||B?G:(f=new _.dO("VisibilityLogger called before newScreen",{caller:S.tagName,previous_csn:f.csn,current_csn:G}),_.Lg(f),null)};
eE.prototype.getData=function(f){var S,B=f.data||((S=f.props)==null?void 0:S.data);if(!B||f.isWebComponentWrapper){var G;B=(G=WK.get(f))==null?void 0:G[d4G]}return B};
var nNX=function(f,S){var B;return!((B=f.getData(S))==null||!B.loggingDirectives)},bO=function(f,S){f=f.getData(S);
return Math.floor(Number(f&&f.loggingDirectives&&f.loggingDirectives.visibility&&f.loggingDirectives.visibility.types||""))||1};var mi;mi=function(){};
_.KH=function(){mi.instance||(mi.instance=new mi);return mi.instance};
mi.prototype.setClient=function(f){_.Ij(qB().setClient).bind(qB())(f)};
_.s5m=function(){_.KH();_.Ij(qB().JSC$10523_newScreen).bind(qB())()};
mi.prototype.clear=function(){_.Ij(qB().clear).bind(qB())()};
mi.prototype.reportShown=function(f,S,B){_.Ij(qB().reportShown).bind(qB())(f,S,B)};
mi.prototype.reportHidden=function(f,S,B){return _.Ij(qB().reportHidden).bind(qB())(f,S,B)};
var kHW=function(f,S){return _.Ij(qB().JSC$10523_getTrackingParams).bind(qB())(S)},iGN=function(f,S){return _.Ij(qB().JSC$10523_getNearestParentVe).bind(qB())(S)};var zE,Df6;zE=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};
_.ik=function(){zE.instance||(zE.instance=new zE);return zE.instance};
zE.prototype.setClient=function(f){this.client=f};
Df6=function(f,S,B){B=B===void 0?{}:B;_.Ij(function(){var G,g,b,z=((G=_.H(S==null?void 0:S.commandMetadata,_.oD))==null?void 0:G.rootVe)||((g=_.H(S==null?void 0:S.commandMetadata,noN))==null?void 0:(b=g.screenVisualElement)==null?void 0:b.uiType);if(z){G=_.H(S==null?void 0:S.commandMetadata,Kw8);if(G==null?0:G.parentTrackingParams){var X=_.Ye(G.parentTrackingParams);if(G.parentCsn)var w=G.parentCsn}else B.clickedVisualElement?X=B.clickedVisualElement:S.clickTrackingParams&&(X=_.Ye(S.clickTrackingParams));
a:{G=_.H(S,_.t2);g=_.H(S,aCN);if(G){if(g=Fbj(G,"VIDEO")){G={token:g,videoId:G.videoId};break a}}else if(g&&(G=Fbj(g,"PLAYLIST"))){G={token:G,playlistId:g.playlistId};break a}G=void 0}B=Object.assign({},{cttAuthInfo:G,parentCsn:w},B);if(_.K("expectation_logging")){var F;B.loggingExpectations=((F=_.H(S==null?void 0:S.commandMetadata,noN))==null?void 0:F.loggingExpectations)||void 0}_.Rh(f,z,X,B)}else _.Lg(new _.dO("Error: Trying to create a new screen without a rootVeType",S))})()};
_.Rh=function(f,S,B,G){G=G===void 0?{}:G;_.Ij(function(){OVm.includes(S)||(_.Lg(new _.dO("createClientScreen() called with a non-page VE",S)),S=83769);G.isHistoryNavigation||(f.forwardHistoryStack=[],f.backHistoryStack.push({rootVe:S,key:G.key||""}));f.graftQueue=[];f.stateChangedQueue=[];G.dataPromises?Ifm(f,S,B,G):Uf7(f,S,B,G)})()};
_.C3N=function(f,S,B){B=B===void 0?0:B;_.Ij(function(){S.then(function(G){f.pendingScreenCreation.has(B)&&f.pendingScreenFn&&f.pendingScreenFn();var g=_.xc(B),b=_.Of(B);if(g&&b){var z;(G==null?0:(z=G.response)==null?0:z.trackingParams)&&C2(f.client,g,b,_.Ye(G.response.trackingParams));var X;(G==null?0:(X=G.playerResponse)==null?0:X.trackingParams)&&C2(f.client,g,b,_.Ye(G.playerResponse.trackingParams))}})})()};
zE.prototype.graftServerVe=function(f,S,B){var G=this;return _.Ij(function(){var g=_.Ye(f);_.Xo(G,g,S,B);return g})()};
_.HGM=function(f,S,B,G){return _.K("enable_client_ve_spec")&&S.clientVeSpec?(S=_.Eo(S.clientVeSpec.uiType,void 0,S.clientVeSpec.elementIndex,S.clientVeSpec.clientYoutubeData,void 0,S),_.Xo(f,S,B,G)?S:null):S.trackingParams?f.graftServerVe(S.trackingParams,B,G):null};
_.dR=function(f,S,B,G){return _.Ij(function(){if(!S.veType)return _.EU(new _.dO("Error: Trying to graft a client VE without a veType.")),null;if(S.visibilityTypes){var g=S.visibilityTypes.reduce(function(b,z){return b|z});
g={visibility:{types:String(g)}}}g=_.Eo(S.veType,S.visualElement,S.elementIndex,S.clientYouTubeData,void 0,g);return _.Xo(f,g,B,G)?g:null})()};
_.Xo=function(f,S,B,G){G=G===void 0?0:G;return _.Ij(function(){if(f.pendingScreenCreation.has(G))return f.graftQueue.push([S,B]),!0;var g=_.xc(G),b=B||_.Of(G);if(g&&b){if(_.K("combine_ve_grafts")){var z=f.cachedVisualElements.get(b.toString());z?z.push(S):(f.cachedRootVisualElements.set(b.toString(),b),f.cachedVisualElements.set(b.toString(),[S]));f.attachTimeout||(f.attachTimeout=_.q6(_.xJ,function(){plN(f,g)},1200))}else C2(f.client,g,b,S);
return!0}return!1})()};
_.wY=function(f,S,B){B=B===void 0?0:B;var G=f.recurringGrafts.get(B)||new Map;if(_.K("smarter_ve_dedupping"))for(var g=Array.from(G.keys()),b=0;b<g.length;b++){var z=void 0,X=void 0;var w=S;var F=g[b];F.isClientVe()&&w.isClientVe()?(z=w.getAsJson(),X=F.getAsJson(),w=z.veType!==X.veType||z.elementIndex!==X.elementIndex||z.dataElement!==X.dataElement||w.getLoggingDirectives()!==F.getLoggingDirectives()?!1:!0):w=F.veData.trackingParams!==void 0&&w.veData.trackingParams!==void 0?((X=w.veData)==null?void 0:
X.trackingParams)===((z=F.veData)==null?void 0:z.trackingParams):!1;if(w)return}else if(G.has(S))return;G.set(S,void 0);f.recurringGrafts.set(B,G);_.xc(B)==="UNDEFINED_CSN"||f.pendingScreenCreation.has(B)||_.Xo(f,S,void 0,B)};
_.h0=function(f,S,B,G){G=_.xc(G===void 0?0:G);if(!G)return!1;v9Q(f.client,G,S,B);return!0};
_.TE=function(f,S,B,G){if(!S)return!1;G=_.xc(G===void 0?0:G);if(!G)return!1;v9Q(f.client,G,_.Ye(S),B);return!0};
_.M1=function(f,S){var B=S.getScreenLayer&&S.getScreenLayer();if(S.visualElement)return _.h0(f,S.visualElement,void 0,B);S=kHW(_.KH(),S);return _.TE(f,S,void 0,B)};
zE.prototype.clickCommand=function(f,S,B){return _.TE(this,f.clickTrackingParams,S,B===void 0?0:B)};
zE.prototype.stateChanged=function(f,S,B){this.visualElementStateChanged(_.Ye(f),S,B===void 0?0:B)};
zE.prototype.visualElementStateChanged=function(f,S,B){B=B===void 0?0:B;B===0&&this.pendingScreenCreation.has(B)?this.stateChangedQueue.push([f,S]):this.logStateChanged(f,S,B)};
zE.prototype.logStateChanged=function(f,S,B){B=B===void 0?0:B;var G=_.xc(B);f=f||_.Of(B);return G&&f?(KnM(this.client,G,f,S),!0):!1};
var Ifm=function(f,S,B,G){G=G===void 0?{}:G;f.pendingScreenCreation.add(G.layer||0);f.pendingScreenFn=function(){Uf7(f,S,B,G);var z=_.Of(G.layer);if(z){for(var X=_.m(f.graftQueue),w=X.next();!w.done;w=X.next())w=w.value,_.Xo(f,w[0],w[1]||z,G.layer);z=_.m(f.stateChangedQueue);for(X=z.next();!X.done;X=z.next())X=X.value,f.logStateChanged(X[0],X[1])}};
B||_.xc(G.layer)||f.pendingScreenFn();if(G.dataPromises)for(var g=_.m(G.dataPromises),b=g.next();!b.done;b=g.next())_.C3N(f,b.value,G.layer);else _.xH(Error("wf"))},Uf7=function(f,S,B,G){G=G===void 0?{}:G;
var g=void 0;G.layer||(G.layer=0);g=G.parentLayer!==void 0?G.parentLayer:G.layer;var b=_.xc(g);g=_.Of(g);var z=B||g,X;z&&(G.parentCsn!==void 0?X={clientScreenNonce:G.parentCsn,visualElement:z}:b&&b!=="UNDEFINED_CSN"&&(X={clientScreenNonce:b,visualElement:z}));var w,F=_.nL("EVENT_ID");b==="UNDEFINED_CSN"&&F&&(w={servletData:{serializedServletEventId:F}});_.K("combine_ve_grafts")&&b&&plN(f,b);_.K("no_client_ve_attach_unless_shown")&&z&&b&&wyG(z,b);try{var V=_.zCV(f.client,S,X,G.csnToClone,G.cttAuthInfo,
w,G.implicitGestureType,void 0,G.loggingExpectations)}catch(d){_.kH(d,{rootVeType:S,rootVe:g,parentVisualElement:B,currentCsn:b,parentEl:X,csnToClone:G.csnToClone});_.xH(d);return}_.Lk(V,S,G.layer,G.cttAuthInfo);b&&b!=="UNDEFINED_CSN"&&g&&!PXV(b)&&J_Q(f.client,b,g,!0);f.backHistoryStack[f.backHistoryStack.length-1]&&!f.backHistoryStack[f.backHistoryStack.length-1].csn&&(f.backHistoryStack[f.backHistoryStack.length-1].csn=V||"");_.EL({clientScreenNonce:V});_.s5m();var J=_.Of(G.layer);b&&b!=="UNDEFINED_CSN"&&
J&&(_.K("web_mark_root_visible")||_.K("music_web_mark_root_visible"))&&_.ME(V,J);f.pendingScreenCreation.delete(G.layer||0);f.pendingScreenFn=void 0;var P;(P=f.recurringGrafts.get(G.layer))==null||P.forEach(function(d,Q){d?_.Xo(f,Q,d,G.layer):J&&_.Xo(f,Q,J,G.layer)});
AWL(f)},AWL=function(f){for(var S=0;S<f.afterNewScreenOneOffJobs.length;S++){var B=f.afterNewScreenOneOffJobs[S];
try{B()}catch(G){_.xH(G)}}for(S=f.afterNewScreenOneOffJobs.length=0;S<f.afterNewScreenRecurringJobs.length;S++){B=f.afterNewScreenRecurringJobs[S];try{B()}catch(G){_.xH(G)}}},plN=function(f,S){if(S===void 0)for(var B=VAx(),G=0;G<B.length;G++)B[G]!==void 0&&plN(f,B[G]);
else f.cachedVisualElements.forEach(function(g,b){(b=f.cachedRootVisualElements.get(b))&&RC1(f.client,S,b,g)}),f.cachedVisualElements.clear(),f.cachedRootVisualElements.clear(),f.attachTimeout=void 0};var Fo=function(f){f=f===void 0?{layer:0}:f;this.hasRun=!1;this.createScreenConfig=f;f={};this.pUA=(f.response=!1,f.playerResponse=!1,f)};
_.q(Fo,oh);Fo.prototype.validate=function(f){return!(!f.data||!f.data.response&&!f.data.playerResponse)};
Fo.prototype.handle=function(f){var S=_.ik(),B=this.createScreenConfig.layer;f.data.response&&f.data.response.trackingParams&&!this.pUA.response&&(S.graftServerVe(f.data.response.trackingParams,void 0,B),this.pUA.response=!0);f.data.playerResponse&&f.data.playerResponse.trackingParams&&!this.pUA.playerResponse&&(S.graftServerVe(f.data.playerResponse.trackingParams,void 0,B),this.pUA.playerResponse=!0)};var V2=function(){this.bT=_.aa();this.he=[];this.gUv=0};
V2.prototype.processChunk=function(f){if(f){for(var S=_.m(this.he),B=S.next();!B.done;B=S.next())B=B.value,B.validate(f)&&(B.handle(f),B.hasRun=!0);_.kT("np"+this.gUv);this.gUv++}};var cK;var GQj,NPX,tyX;_.JZ=function(f,S,B,G,g,b,z){z=z===void 0?[]:z;this.buildCommandPayload=f;this.navigate=S;this.handleServiceRequest=B;this.sendAction=G;this.JSC$10564_screenManager=g;this.commandResolverMap=b;this.autoLogResolverAllowlist=z;this.pendingCommands=new Set;this.isTracingEnabled=!1;NPX(this)};
GQj=function(f,S,B){var G=N$V,g=Mvx,b=_.ik(),z=Mym;B=B===void 0?[]:B;_.JZ.instance=new _.JZ(f,S,G,g,b,z,B)};
NPX=function(f){if(!f.isTracingEnabled&&$sT("command")){var S=f.resolveCommand;f.resolveCommand=function(B,G){a:{for(g in B)if(Object.prototype.hasOwnProperty.call(B,g)){var g={commandType:g};break a}g={}}return r_N("command",g,S.bind(this,B,G))};
f.isTracingEnabled=!0}};
tyX=function(f,S,B){if(!f.commandResolverMap)return!1;var G=E9j(S,f.commandResolverMap);return G?((f.autoLogResolverAllowlist.some(function(g){return!!_.H(S,g)})||(B==null?0:B.forceClickLogging))&&ZV1(f,S,B),G instanceof Promise?G.then(function(g){g.resolve(S,B)}):G.resolve(S,B),!0):!1};
_.JZ.prototype.resolveCommand=function(f,S){var B=this,G=uDm(f);if(tyX(this,f,S))return!0;if(G)return afi(this,f,S);if(!this.buildCommandPayload)return jNN(f,"Unhandled command by buildCommandPayload"),!1;var g=this.buildCommandPayload(f,S);if(S==null?0:S.commandController)g.commandController=S.commandController;if(g.type===0){if(!this.navigate)return OTj(f,"navigate"),!1;if(!yWj(g.command))return jNN(f,"Page requests need to specify a url"),!1;_.K("logging_avoid_blocking_during_navigation")&&_.tdN().transition("application_navigating");
f=this.navigate(g)||[];lgo(f).then(function(){B.pendingCommands.delete(g.command)});
return!0}if(g.type===1){if(!this.handleServiceRequest)return OTj(f,"handleServiceRequest"),!1;(S==null?0:S.forceClickLogging)&&ZV1(this,g.command,S);f=this.handleServiceRequest(g);lgo(f).then(function(){B.pendingCommands.delete(g.command)});
return!0}if(g.type===2){if(!this.sendAction)return OTj(f,"sendAction"),!1;ZV1(this,g.command,S);this.sendAction(g);return!0}return!1};
var ZV1=function(f,S,B){if((B==null||!B.disableClickTracking)&&f.JSC$10564_screenManager)if(S.clickTrackingParams&&_.K("log_click_with_layer_from_element_in_command_handler")){var G;B=B==null?void 0:(G=B.form)==null?void 0:G.element;f.JSC$10564_screenManager.clickCommand(S,null,B&&B.getScreenLayer&&B.getScreenLayer())}else S.clickTrackingParams?f.JSC$10564_screenManager.clickCommand(S):!_.K("disable_clicked_visual_element_in_command_handler")&&(B==null?0:B.clickedVisualElement)&&_.h0(f.JSC$10564_screenManager,
B.clickedVisualElement)},uDm=function(f){var S=!!_.H(f,_.hf),B;
f=((B=_.H(f,_.Fh))==null?void 0:B.signal)==="CLIENT_SIGNAL";return S||f},afi=function(f,S,B){var G=_.H(S,_.hf);
if(G)var g=(G==null?void 0:G.commands)||[];else{var b;if(((b=_.H(S,_.Fh))==null?void 0:b.signal)==="CLIENT_SIGNAL"){var z;g=((z=_.H(S,_.Fh))==null?void 0:z.actions)||[]}}if(g){S=_.m(g);for(g=S.next();!g.done;g=S.next()){g=g.value;try{f.resolveCommand(g,B)}catch(X){X instanceof Error&&_.xH(X)}}return!0}jNN(S,"Could not handle the meta command");return!1},yWj=function(f){var S;
return!((S=_.H(f==null?void 0:f.commandMetadata,_.oD))==null||!S.url)};var J0=function(){oh.apply(this,arguments)};
_.q(J0,oh);J0.prototype.validate=function(f){var S,B;return!this.hasRun&&!!((S=f.data.response)==null?0:(B=S.onResponseReceivedEndpoints)==null?0:B.length)};
J0.prototype.handle=function(f){var S=_.JZ.instance;f=_.m(f.data.response.onResponseReceivedEndpoints);for(var B=f.next();!B.done;B=f.next())S.resolveCommand(B.value)};var W$$,cW$,lfX;
W$$=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=_.wh();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.Pn=function(){cW$||(cW$=new W$$);return cW$};
lfX=function(){var f=_.Pn();f.miniplayerButtonActivation=!1;f.userActivation=!1;f.playlistWatchPageActivation=!1;f.productDetailsPageActivation=!1;f.miniAppPageActivation=!1;f.playablesDestPageActivation=!1;f.lockupActivation=!1;f.showMiniplayerCommandActivation=!1;f.playlistSuggestionsShelfActivation=!1;f.mediaSessionPipActivation=!1;f.watchPipActivation=!1;f.watchWhileActivation=!1;f.shortsPipActivation=!1};
_.fVj=function(){var f=_.Pn(),S=f.mediaSessionPipActivation,B=f.watchPipActivation,G=f.watchWhileActivation,g=f.playlistWatchPageActivation,b=f.lockupActivation,z=f.showMiniplayerCommandActivation,X=f.navigatingAwayFromWatchDeletedVideo,w=f.shortsPipActivation,F=f.playlistSuggestionsShelfActivation,V=f.productDetailsPageActivation,J=f.miniAppPageActivation,P=f.playablesDestPageActivation;return!f.miniplayerButtonActivation&&!g&&!F&&!V&&!J&&!P&&!b&&!z&&!S&&!B&&!G&&!w||X};var HUs;_.vn=oc("FEwhat_to_watch","/",3854);_.qDx=oc("FEdownloads","/feed/downloads",42352);HUs=oc("FEmusic_offline","browse/FEmusic_offline",42352);var yI=function(f,S){S=S===void 0?[]:S;var B=B===void 0?[]:B;S=fIM.apply(null,[oWQ.apply(null,_.$d(S))].concat(_.$d(B)));this.store=gWM(f,void 0,S)};
yI.prototype.getState=function(){return this.store.getState()};
yI.prototype.dispatch=function(f){return this.store.dispatch(f)};
yI.prototype.subscribe=function(f){return this.store.subscribe(f)};
yI.prototype.replaceReducer=function(f){return this.store.replaceReducer(f)};
yI.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.KD=function(f,S,B){var G=S(f.getState());return f.subscribe(function(){var g=S(f.getState());if(g!==G){var b=G;G=g;B(g,b)}})};var HsG;_.KF=function(f,S,B){return _.ef({type:"REPLACE_ENTITY",payload:{entityPayload:B,entityType:f,key:S}})};
HsG=function(f){return _.ef({type:"REPLACE_ENTITIES",payload:f})};
_.LF=function(f,S,B,G){return _.ef({type:"UPDATE_ENTITY",payload:{entityPayload:B,entityType:f,key:S,mergeOption:G}})};var ZT1=function(f){var S=this;f=f===void 0?[]:f;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;f.forEach(function(B){S.append(B)})};
_.e=ZT1.prototype;_.e.getLength=function(){return this.totalLength};
_.e.append=function(f){var S=this.arrays.length===0?!1:(S=this.arrays[this.arrays.length-1])&&S.buffer===f.buffer&&S.byteOffset+S.length===f.byteOffset;S?(S=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(S.buffer,S.byteOffset,S.length+f.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(f);this.totalLength+=f.length};
_.e.split=function(f){for(var S=new ZT1,B=new ZT1,G=_.m(this.arrays),g=G.next();!g.done;g=G.next())g=g.value,f>=g.length?(S.append(g),f-=g.length):f?(S.append(new Uint8Array(g.buffer,g.byteOffset,f)),B.append(new Uint8Array(g.buffer,g.byteOffset+f,g.length-f)),f=0):B.append(g);return{headView:S,tailView:B}};
_.e.extract=function(f,S){return this.split(f).tailView.split(S).headView};
_.e.isFocused=function(f){return f>=this.arrayPos&&f<this.arrayPos+this.arrays[this.arrayIdx].length};
_.e.focus=function(f){if(!this.isFocused(f))for(f<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=f&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var oP$=function(f,S){f.focus(S);return f.arrays[f.arrayIdx][S-f.arrayPos]};(function(){var f=function(G){return new Uint8Array(G)},S=function(G){for(var g=new Uint8Array(G.length),b=0;b<G.length;b++)g[b]=G[b];
return g},B=new Uint8Array([1]);
return B.length===1&&B[0]===1?f:S})();
var Usx=Array(1024),I7Q=window.TextDecoder?new TextDecoder:void 0,pyM=window.TextEncoder?new TextEncoder:void 0;var MnG=function(f){this.arrayView=f;this.pos=0;this.pendingTagAndType=-1},bC=function(f){var S=oP$(f.arrayView,f.pos);
++f.pos;if(S<128)return S;for(var B=S&127,G=1;S>=128;)S=oP$(f.arrayView,f.pos),++f.pos,G*=128,B+=(S&127)*G;return B},tnW=function(f,S){var B=f.pendingTagAndType;
for(f.pendingTagAndType=-1;f.pos+1<=f.arrayView.totalLength;){B<0&&(B=bC(f));var G=B>>3,g=B&7;if(G===S)return!0;if(G>S){f.pendingTagAndType=B;break}B=-1;switch(g){case 0:bC(f);break;case 1:f.pos+=8;break;case 2:G=bC(f);f.pos+=G;break;case 5:f.pos+=4}}return!1};var a7M=function(){this.pos=0;this.submessagePosStack=[];this.buf=NF1(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},Rc=function(f,S){S=f.pos+S;
if(!(f.buf.length>=S)){for(var B=f.buf.length*2;B<S;)B*=2;f.buf=NF1(B,f.buf.subarray(0,f.pos));f.view=new DataView(f.buf.buffer,f.buf.byteOffset,f.buf.byteLength)}},zc=function(f,S){if(S>268435455){Rc(f,4);
for(var B=S&1073741823,G=0;G<4;G++)f.view.setUint8(f.pos,B&127|128),B>>=7,f.pos+=1;S=Math.floor(S/268435456)}for(Rc(f,4);S>127;)f.view.setUint8(f.pos,S&127|128),S>>=7,f.pos+=1;f.view.setUint8(f.pos,S);f.pos+=1};for(var y_W={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},un1={},Ski=_.m(Object.entries(y_W)),BD$=Ski.next();!BD$.done;BD$=Ski.next()){var GJN=_.m(BD$.value),gPm=GJN.next().value,e9i=GJN.next().value,bR8=gPm,mr$=e9i;mr$&&(un1[mr$]=bR8)};var c_9=function(f,S){f=f===void 0?{}:f;switch(S.type){case "ENTITY_LOADED":return S.payload.reduce(function(G,g){var b,z=(b=g.options)==null?void 0:b.persistenceOption;if(z&&z!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&z!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return G;if(!g.entityKey)return _.xH(Error("Af")),G;if(g.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!g.payload)return g=new _.dO("REPLACE entity mutation is missing a payload",{entityKey:g.entityKey}),_.xH(g),G;var X=(0,_.$v.getAnyKey)(g.payload);
return f9s(G,X,g.entityKey,g.payload[X])}if(g.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{g=g.entityKey;try{var w=_.mW(g).entityType;X=f9s(G,w,g);break a}catch(J){if(J instanceof Error){g=new _.dO("Failed to deserialize entity key",{entityKey:g,originalMessage:J.message});_.xH(g);X=G;break a}throw J;}X=void 0}return X}if(g.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!g.payload)return g=new _.dO("UPDATE entity mutation is missing a payload",{entityKey:g.entityKey}),_.xH(g),G;X=(0,_.$v.getAnyKey)(g.payload);
var F,V;return oRM(G,X,g.entityKey,g.payload[X],(F=g.fieldMask)==null?void 0:(V=F.mergeOptions)==null?void 0:V.repeatedFieldsMergeOption)}return G},f);
case "REPLACE_ENTITY":var B=S.payload;return f9s(f,B.entityType,B.key,B.entityPayload);case "REPLACE_ENTITIES":return Object.keys(S.payload).reduce(function(G,g){var b=S.payload[g];return Object.keys(b).reduce(function(z,X){return f9s(z,g,X,b[X])},G)},f);
case "UPDATE_ENTITY":return B=S.payload,oRM(f,B.entityType,B.key,B.entityPayload,B.mergeOption);default:return f}};var SeN;var z9L=!1,dY,iO,Hn,qw,$Z,R9i=function(f){_.qR.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!z9L){var S,B=new Uint8Array(256),G=new Uint8Array(256);var g=1;for(S=0;S<256;S++)B[g]=S,G[S]=g,g^=g<<1^(g>>7&&283);dY=new Uint8Array(256);iO=hR(256);Hn=hR(256);qw=hR(256);$Z=hR(256);for(var b=0;b<256;b++){g=b?G[255^B[b]]:0;g^=g<<1^g<<2^g<<3^g<<4;g=g&255^g>>>8^99;dY[b]=g;S=g<<1^(g>>7&&283);var z=S^g;iO[b]=S<<24|g<<16|g<<8|z;Hn[b]=z<<24|iO[b]>>>8;qw[b]=g<<24|Hn[b]>>>
8;$Z[b]=g<<24|qw[b]>>>8}z9L=!0}g=hR(44);for(B=0;B<4;B++)g[B]=f[4*B]<<24|f[4*B+1]<<16|f[4*B+2]<<8|f[4*B+3];for(G=1;B<44;B++)f=g[B-1],B%4||(f=(dY[f>>16&255]^G)<<24|dY[f>>8&255]<<16|dY[f&255]<<8|dY[f>>>24],G=G<<1^(G>>7&&283)),g[B]=g[B-4]^f;this.key=g};
_.q(R9i,_.qR);
R9i.prototype.encrypt=function(f){var S=f.length;f=new Uint8Array(f.buffer.slice(f.byteOffset,f.byteOffset+S));for(var B=this.cipherBlock,G=0;G<S&&this.blockOffset<16;)f[G++]^=B[this.blockOffset++];for(var g=S-(S-G)%16;G<g;)XXL(this),f[G++]^=B[0],f[G++]^=B[1],f[G++]^=B[2],f[G++]^=B[3],f[G++]^=B[4],f[G++]^=B[5],f[G++]^=B[6],f[G++]^=B[7],f[G++]^=B[8],f[G++]^=B[9],f[G++]^=B[10],f[G++]^=B[11],f[G++]^=B[12],f[G++]^=B[13],f[G++]^=B[14],f[G++]^=B[15];if(G<S)for(XXL(this),this.blockOffset=0;G<S;)f[G++]^=
B[this.blockOffset++];return f};
var XXL=function(f){for(var S=f.key,B=f.counter[0]^S[0],G=f.counter[1]^S[1],g=f.counter[2]^S[2],b=f.counter[3]^S[3],z=3;z>=0&&!(f.counter[z]=-~f.counter[z]);z--);for(var X,w,F=4;F<40;)z=iO[B>>>24]^Hn[G>>16&255]^qw[g>>8&255]^$Z[b&255]^S[F++],X=iO[G>>>24]^Hn[g>>16&255]^qw[b>>8&255]^$Z[B&255]^S[F++],w=iO[g>>>24]^Hn[b>>16&255]^qw[B>>8&255]^$Z[G&255]^S[F++],b=iO[b>>>24]^Hn[B>>16&255]^qw[G>>8&255]^$Z[g&255]^S[F++],B=z,G=X,g=w;f=f.cipherBlock;z=S[40];f[0]=dY[B>>>24]^z>>>24;f[1]=dY[G>>16&255]^z>>16&255;f[2]=
dY[g>>8&255]^z>>8&255;f[3]=dY[b&255]^z&255;z=S[41];f[4]=dY[G>>>24]^z>>>24;f[5]=dY[g>>16&255]^z>>16&255;f[6]=dY[b>>8&255]^z>>8&255;f[7]=dY[B&255]^z&255;z=S[42];f[8]=dY[g>>>24]^z>>>24;f[9]=dY[b>>16&255]^z>>16&255;f[10]=dY[B>>8&255]^z>>8&255;f[11]=dY[G&255]^z&255;z=S[43];f[12]=dY[b>>>24]^z>>>24;f[13]=dY[B>>16&255]^z>>16&255;f[14]=dY[G>>8&255]^z>>8&255;f[15]=dY[g&255]^z&255};var wXj=!1;(function(){var f=function(G){return new Uint8Array(G)},S=function(G){for(var g=new Uint8Array(G.length),b=0;b<G.length;b++)g[b]=G[b];
return g},B=new Uint8Array([1]);
return B.length===1&&B[0]===1?f:S})();
var Q2;var F4o=function(f){a:{if(!wXj&&!ay){if(Q2){var S=Q2;break a}Q2=(S=window.crypto)==null?void 0:S.subtle;var B,G,g;if(((B=Q2)==null?0:B.importKey)&&((G=Q2)==null?0:G.sign)&&((g=Q2)==null?0:g.encrypt)){S=Q2;break a}Q2=void 0}S=void 0}S&&(this.nativeEncryptor=new h9X(f,S));this.encryptorPolyfill=new TDv(f)};
F4o.prototype.encrypt=function(f,S){var B=this,G;return _.R(function(g){switch(g.nextAddress){case 1:if(!B.nativeEncryptor){g.jumpTo(2);break}_.zT(g,3);return _.h(g,B.nativeEncryptor.encrypt(f,S),5);case 5:return g.return(g.yieldResult);case 3:G=_.hm(g),_.Lg(G),wXj=!0,B.nativeEncryptor=void 0;case 2:return g.return(B.encryptorPolyfill.encrypt(f,S))}})};
var h9X=function(f,S){this.JSC$10636_aesKey=f;this.subtleCrypto=S};
h9X.prototype.encrypt=function(f,S){var B=this,G;return _.R(function(g){if(g.nextAddress==1)return _.zT(g,2),_.h(g,VtN(B,f,S),4);if(g.nextAddress!=2)return g.return(g.yieldResult);G=_.hm(g);_.Lg(G);wXj=!0;throw G;})};
var VtN=function(f,S,B){var G,g;return _.R(function(b){switch(b.nextAddress){case 1:if(f.cryptoKey){b.jumpTo(2);break}return _.h(b,f.subtleCrypto.importKey("raw",f.JSC$10636_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:f.cryptoKey=b.yieldResult;case 2:return G={name:"AES-CTR",counter:B,length:128},_.h(b,f.subtleCrypto.encrypt(G,f.cryptoKey,S),4);case 4:return g=b.yieldResult,b.return(new Uint8Array(g))}})},TDv=function(f){this.JSC$10639_aesKey=f};
TDv.prototype.encrypt=function(f,S){this.encryptor||(this.encryptor=new R9i(this.JSC$10639_aesKey));for(var B=this.encryptor,G=0;G<4;G++)B.counter[G]=S[G*4]<<24|S[G*4+1]<<16|S[G*4+2]<<8|S[G*4+3];B.blockOffset=16;return this.encryptor.encrypt(f)};var Jlg={},gRj=la("yt-idb-pref-storage",{objectStores:(Jlg.prefs={addedAtVersion:1},Jlg),shared:!1,upgrade:function(f,S){S(1)&&U4(IJ(f,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.YZ=function(f){this.token=f};
_.YZ.getInstance=function(){return _.R(function(f){return f.return(new Promise(function(S){_.cL().then(function(B){B?(_.YZ.instance||(_.YZ.instance=new _.YZ(B)),S(_.YZ.instance)):S(void 0)})}))})};
_.YZ.prototype.get=function(f){var S=this,B,G,g;return _.R(function(b){if(b.nextAddress==1)return _.h(b,ezV(S.token),2);if(b.nextAddress!=3)return B=b.yieldResult,_.h(b,B.get("prefs",f),3);G=b.yieldResult;if(!G)return b.return();g=(0,_.fO)();return G.expirationTimestampMs<=g?b.return():b.return(G.value)})};
_.YZ.prototype.set=function(f,S,B){B=B===void 0?31536E3:B;var G=this,g,b,z;return _.R(function(X){if(X.nextAddress==1)return g=(0,_.fO)(),b={key:f,value:S,expirationTimestampMs:g+B*1E3},_.h(X,ezV(G.token),2);z=X.yieldResult;return _.h(X,z.put("prefs",b),0)})};
_.YZ.prototype.remove=function(f){var S=this,B;return _.R(function(G){if(G.nextAddress==1)return _.h(G,ezV(S.token),2);B=G.yieldResult;return _.h(G,B.delete("prefs",f),0)})};var rY={},PEi=(rY.INVALID_ENCODER_VERSION="Invalid encoder version",rY.KEY_CREATION_FAILED="Failed to create encoder key",rY.UNKNOWN_DECODE_ERROR="Failed to decode PES data",rY.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",rY.WRONG_DATA_TYPE="Encoder cannot process the data type",rY),Tc=function(f,S){S=S===void 0?{}:S;_.dO.call(this,PEi[f],Object.assign({},{name:"PESEncoderError",type:f},S));this.type=f;this.level="WARNING";Object.setPrototypeOf(this,Tc.prototype)};
_.q(Tc,_.dO);var vP$=function(){},K41=function(f,S,B){try{return f.encodeImpl(S,B)}catch(G){RzV(G,mIj)}},drj=function(f,S,B){var G;
return _.R(function(g){if(g.nextAddress==1)return _.zT(g,2),_.h(g,f.decodeAsyncImpl(S,B),4);if(g.nextAddress!=2)return g.return(g.yieldResult);G=_.hm(g);RzV(G,zzs);_.TT(g)})};
vP$.prototype.decodeAsyncImpl=function(f,S){return Promise.resolve(this.decodeImpl(f,S))};var jE=function(f,S){this.aesEncryptor=f;this.aesEncryptorAsync=S};
_.q(jE,vP$);jE.prototype.encodeImpl=function(f,S){S=XG1(S);f=(new TextEncoder).encode(JSON.stringify(f));return this.aesEncryptor.encrypt(f,S)};
jE.prototype.decodeImpl=function(f,S){if(!(f instanceof Uint8Array))throw bsM(1);var B=new TextDecoder;S=XG1(S);f=this.aesEncryptor.encrypt(f,S);return JSON.parse(B.decode(f))};
jE.prototype.decodeAsyncImpl=function(f,S){var B=this,G,g,b;return _.R(function(z){if(z.nextAddress==1){if(!(f instanceof Uint8Array))throw bsM(1);G=new TextDecoder;g=XG1(S);return _.h(z,B.aesEncryptorAsync.encrypt(f,g),2)}b=z.yieldResult;return z.return(JSON.parse(G.decode(b)))})};var wGN={accountLinkStatusEntity:tsj,booleanEntity:Hb6,buttonEntity:Ef8,captionTrack:ds$,channelHandle:mam,chipEntity:X1N,commerceAcquisitionClientPayloadEntity:BYN,commerceCartListEntity:GEX,contextNoteFeedEntityPayload:FGm,continuationTokenEntity:SE8,downloadQualityPickerEntity:MAj,downloadsPageRefreshTokenEntity:tAg,downloadsPageViewConfigurationEntity:wzN,downloadStatusEntity:Z8v,dismissState:w16,sfvAudioItemCurrentlyPlayingEntity:f91,emojiFountainDataEntity:jR7,emojiCustomizationSetEntity:rvL,
fakeChannel:QF8,fakePlaylist:YJo,fakePlaylistEntryCollection:re6,fakeVideo:Obv,fakeVideoDescription:xFm,featuredProductsEntity:E_m,flowStateEntity:Aei,iconBadgeEntity:gZN,interstitialInteractionStateEntity:Rr1,likeButtonAnimationEntity:hco,liveChatPollStateEntity:PX8,liveViewerLeaderboardChatEntryPointStateEntity:n98,liveViewerLeaderboardPointsEntity:sN7,liveReactionsDataEntity:OWi,logoEntity:mM1,macroMarkerEntity:THv,mainDownloadsLibraryEntity:u7i,mainDownloadsListEntity:a2X,mainPlaylistDownloadStateEntity:W5v,
mainPlaylistEntity:BHL,mainPlaylistVideoEntity:Gam,mainVideoDownloadStateEntity:cqm,mainVideoEntity:miv,markersEngagementPanelSyncEntity:Fbo,markersVisibilityOverrideEntity:Vz6,musicAlbumReleaseDetail:NHg,musicAlbumReleaseDownloadMetadataEntity:IRv,musicAlbumRelease:AVo,musicAlbumReleaseUserDetail:Mz1,musicArtistDetail:tzi,musicArtist:Zui,musicArtistUserDetail:uHj,musicDownloadsLibraryEntity:Ui8,musicLibraryEdit:aR6,musicLibraryStatusEntity:yVi,musicPlaylist:Wbj,musicPlaylistDownloadMetadataEntity:Clv,
musicShare:lRg,musicTrackDetail:o9$,musicTrackDownloadMetadataEntity:pzL,musicTrack:f7m,musicTrackUserDetail:Sci,offlineOrchestrationActionWrapperEntity:iTm,offlineVideoPolicy:HT7,offlineVideoStreams:qcm,offlineabilityEntity:l2$,orchestrationWebSamplingEntity:fRX,pageHeaderEntity:Kk1,pdpStateEntity:ef1,pinnedProductEntity:Lb8,playbackData:$sg,playerStateEntity:JV8,quantityIncrementerEntity:bDg,refresh:QNg,saveToPlaylistListEntity:dIm,selectedChipIndexEntityPayload:Plo,settingEntity:ZdN,stringEntity:qJX,
suggestedFeedbackChipStateEntity:v_v,transfer:Ycv,trendingOfferEntity:ka1,videoDownloadContextEntity:r_$,videoOverviewAsyncDataEntity:xwX,videoPlaybackPositionEntity:nfm,votingEntity:q2g,ytMainChannelEntity:zcj,youchatPendingResponseEntity:Kb8,ytMainDownloadedVideoEntity:o_L,ytMainVideoEntity:Rc1};var iR7,qkN,v2,KwV,dIK,Yk6,ju6,rlX,Qu$;iR7=function(f,S){this.JSC$10658_wrapped=f;this.JSC$10658_encoderRegistry=S;this.changedKeys={}};
qkN=function(f,S){a:{f=HRN(f.JSC$10658_encoderRegistry,S.version);try{var B=f.decodeImpl(S.data,S.key);break a}catch(G){RzV(G,zzs)}B=void 0}return B};
_.$rj=function(f,S,B){return f.JSC$10658_wrapped.objectStore("EntityStore").get(S).then(function(G){if(G){if(B&&G.entityType!==B)throw Error("Bf");return qkN(f,G)}})};
v2=function(f,S,B){return B?(B=B.map(function(G){return _.$rj(f,G,S)}),sZ.all(B)):f.JSC$10658_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(S)).then(function(G){return G.map(function(g){return qkN(f,g)})})};
_.vRV=function(f,S,B){var G=WnV(S),g=HRN(f.JSC$10658_encoderRegistry,1),b=Object.assign({},S);return f.JSC$10658_wrapped.objectStore("EntityStore").get(G).then(function(z){if(z){if(z.entityType!==B)throw Error("Bf");b.entityMetadata||(z=qkN(f,z),b.entityMetadata=z.entityMetadata)}}).then(function(){var z={key:G,
entityType:B,data:K41(g,b,G),version:1};return sZ.all([f.JSC$10658_wrapped.objectStore("EntityStore").put(z),Qu$(f,b,B)])}).then(function(){Yk6(f,G,B);
return G})};
KwV=function(f,S){var B=_.mW(S).entityType;return sZ.all([f.JSC$10658_wrapped.objectStore("EntityStore").delete(S),rlX(f,S)]).then(function(){Yk6(f,S,B)})};
dIK=function(f,S,B,G){var g=HRN(f.JSC$10658_encoderRegistry,1);return _.$rj(f,S,G).then(function(b){if(b){b=DsN(b,B);var z={key:S,entityType:G,data:K41(g,b,S),version:1};return sZ.all([f.JSC$10658_wrapped.objectStore("EntityStore").put(z),Qu$(f,b,G)])}}).then(function(){Yk6(f,S,G);
return S})};
Yk6=function(f,S,B){var G=f.changedKeys[B];G||(G=new Set,f.changedKeys[B]=G);G.add(S)};
ju6=function(f,S,B){var G=WnV(S);B=hzN(B);if(!B)return sZ.resolve([]);B=new B(S);f=f.JSC$10658_wrapped.objectStore("EntityAssociationStore");S=[];B=_.m(B.getAssociations());for(var g=B.next();!g.done;g=B.next())S.push(f.put({parentEntityKey:G,childEntityKey:g.value}));return sZ.all(S).then(function(b){return b.map(function(z){return z[1]})})};
rlX=function(f,S){return f.JSC$10658_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(S))};
Qu$=function(f,S,B){var G=WnV(S);return rlX(f,G).then(function(){return ju6(f,S,B)})};var ORm=function(){};
_.q(ORm,vP$);ORm.prototype.encodeImpl=function(f){return f};
ORm.prototype.decodeImpl=function(f){if(f instanceof Uint8Array)throw bsM(0);return f};var VbG=function(){this.cacheMap={};this.cacheMap[0]=new ORm;if(!_.K("aes_pes_encoder_killswitch")){var f=this.cacheMap;try{var S=_.vL();var B=XG1(S);var G=new jE(new TDv(B),new F4o(B))}catch(g){throw f=g instanceof Error?new Tc("KEY_CREATION_FAILED",{originalMessage:g.message}):new Tc("KEY_CREATION_FAILED"),_.xH(f),f;}f[1]=G}},HRN=function(f,S){S=S===void 0?0:S;
f=f.cacheMap[S];if(!f)throw S=new Tc("INVALID_ENCODER_VERSION",{encoderVersion:S}),_.xH(S),S;return f};var VI=function(f,S){_.qR.call(this);this.token=f;this.JSC$10672_encoderRegistry=S;this.observers=[];f=new _.S1.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.vL());f.onmessage=this.handleMessage.bind(this);this.channel=f};
_.q(VI,_.qR);_.P2=function(f,S,B){var G,g,b,z;return _.R(function(X){if(X.nextAddress==1)return _.h(X,Gw1(f.token),2);if(X.nextAddress!=3)return G=X.yieldResult,_.h(X,_.MH(G,["EntityStore","EntityAssociationStore"],S,function(w){g=new iR7(w,f.JSC$10672_encoderRegistry);return B(g)}),3);
b=X.yieldResult;g&&(z=g.changedKeys,Object.keys(z).length>0&&(f.channel.postMessage(z),xri(f,z)));return X.return(b)})};
VI.prototype.observe=function(f){var S=this;this.observers.push(f);return function(){var B=S.observers.indexOf(f);B>=0&&S.observers.splice(B,1)}};
var jG9=function(f){var S;return _.R(function(B){if(B.nextAddress==1)return _.h(B,_.P2(f,{mode:"readonly",enableRetries:!0},function(G){return G.JSC$10658_wrapped.objectStore("EntityStore").getAll()}),2);
S=B.yieldResult;return B.return(Promise.all(S.filter(function(G){return!!G}).map(function(G){var g,b;
return _.R(function(z){if(z.nextAddress==1){g=G.key;b=G.entityType;var X=drj(HRN(f.JSC$10672_encoderRegistry,G.version),G.data,G.key);return _.h(z,X,2)}return z.return({key:g,entityType:b,data:z.yieldResult})})})))})};
VI.prototype.handleMessage=function(f){xri(this,f.data)};
var xri=function(f,S){f=_.m(f.observers);for(var B=f.next();!B.done;B=f.next())B=B.value,B(S)};
VI.prototype.disposeInternal=function(){this.channel.close()};
var T19;var OX,L47,C8j;OX={};_.EPg=(OX.mainVideoEntity="mainVideoEntityActionMetadata",OX.mainPlaylistEntity="mainPlaylistEntityActionMetadata",OX.musicTrack="musicTrackEntityActionMetadata",OX.musicPlaylist="musicPlaylistEntityActionMetadata",OX);L47=new _.Sn("DOWNLOADS_ENTITY_TYPE_MAP");_.Yr=_.XV("","downloadsPageViewConfigurationEntity");C8j=_.XV("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.WpK=_.XV("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.XV("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.XV("SMART_DOWNLOADS_ENABLED","settingEntity");_.XV("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var QHG=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var Lw9=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var I69={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var xZ,k9s,vGm,ji1;xZ=window;_.CJ=xZ.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.ZWx=xZ.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.tR;k9s=xZ.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||OC;vGm=xZ.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||Pt6;_.kJN=xZ.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.nrg;ji1=xZ.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||IKX;Mz({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 aS1=nfK(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(f){return f}}}),AGG=nfK(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(f){return f}}}),UGT=new Map;var WkM=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],MRM;var nPm=function(f){return _.ef({type:"SET_EPHEMERAL_ACTION",payload:f})};var sug={ephemeralAction:null};var Dr7={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var vZ1={sharedUi:function(f,S){f=f===void 0?Dr7:f;switch(S.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},f,{animatedThumbnailEnabled:S.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},f,{inlinePreviewEnabled:S.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},f,{currentPageType:S.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},f,{currentPageSubType:S.payload});default:return f}},
a11y:h2({ephemeralAction:function(f,S){f=f===void 0?sug.ephemeralAction:f;switch(S.type){case "SET_EPHEMERAL_ACTION":return S.payload;default:return f}}})};var BYA={playlistId:"",inviteLinkURL:""};var IV8={};var XnT=h2({continuationCommand:function(f,S){f=f===void 0?IV8:f;switch(S.type){case "SET_CONTINUATION_COMMAND":return S.payload.continuationCommand;default:return f}}});var gZW={currentFormId:"",commandsMap:{}};var wnQ=h2({isLeaderTab:function(f,S){f=f===void 0?!0:f;switch(S.type){case "SET_IS_LEADER_TAB":var B,G;return(G=S==null?void 0:(B=S.payload)==null?void 0:B.isLeaderTab)!=null?G:f;default:return f}}});var Ur8=function(f){return _.ef({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:f}})};var POM=h2({isDesktopSmallWidth:function(f,S){switch(S.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return S.payload.isDesktopSmallWidth;default:return f===void 0?!1:f}},
isShortsActive:function(f,S){switch(S.type){case "SET_IS_SHORTS_ACTIVE":return S.payload.isShortsActive;default:return f===void 0?!1:f}},
isWatchWhileMode:function(f,S){switch(S.type){case "SET_IS_WATCH_WHILE_MODE":return S.payload.isWatchWhileMode;default:return f===void 0?!1:f}},
playerState:function(f,S){switch(S.type){case "SET_PLAYER_STATE":return S.payload.playerState;default:return f===void 0?-1:f}},
isFullscreen:function(f,S){switch(S.type){case "SET_IS_FULLSCREEN":return S.payload.isFullscreen;default:return f===void 0?!1:f}},
isSmallScreenSqueezeback:function(f,S){switch(S.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return S.payload.isSmallScreenSqueezeback;default:return f===void 0?!1:f}},
isShortsPipActive:function(f,S){switch(S.type){case "SET_IS_SHORTS_PIP_ACTIVE":return S.payload.isShortsPipActive;default:return f===void 0?!1:f}},
isPlaybackStarted:function(f,S){switch(S.type){case "SET_IS_PLAYBACK_STARTED":return S.payload.isPlaybackStarted;default:return f===void 0?!1:f}}});var dwM=function(){return function(f){return function(S){var B=f(S);_.bW(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[S],!0);return B}}};var CEj,QwA;CEj=new _.w3;_.ms=new _.Sn("WATCH_PLAYER_PROMISE_TOKEN");_.pXN=new _.w3;_.Al7=new _.Sn("SHORTS_PLAYER_PROMISE_TOKEN");QwA=new _.Sn("");var iDx=function(){return function(f){return function(S){S.type==="ENTITY_LOADED"&&_.oy().resolve(_.ms).then(function(B){var G;(G=B.dispatchReduxAction)==null||G.call(B,S)});
return f(S)}}};var ND6={};var hfT=h2({additionalContext:function(f,S){switch(S.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var B;return(B=S.payload)!=null?B:"";default:return f===void 0?"":f}},
impersonatedChannelUrl:function(f,S){switch(S.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var B;return(B=S.payload)!=null?B:"";default:return f===void 0?"":f}},
selectedVideoIds:function(f,S){f=f===void 0?ND6:f;switch(S.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var B={};return Object.assign({},f,(B[S.payload]=!0,B));case "VIDEO_UNSELECTED":return S=S.payload,f=Object.assign({},f),delete f[S],f;default:return f}}});var TYs=h2({parentClickTrackingParams:function(f,S){switch(S.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return S.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return f===void 0?"":f}}});var Mtv=function(f){return _.ef({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:f})};var ZRm={};var FiN=h2({stepStates:function(f,S){f=f===void 0?ZRm:f;switch(S.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var B=f,G=S.payload,g,b,z;f={};S={selectionStates:Object.assign({},(z=(g=B[G.stepId])==null?void 0:g.selectionStates)!=null?z:{},(f[G.token]={isSelected:G.isSelected},f)),userQuery:(b=B[G.stepId])==null?void 0:b.userQuery};g={};return Object.assign({},B,(g[G.stepId]=S,g));case "TALK_TO_RECS_UPDATE_USER_QUERY":return g=f,b=S.payload,z={selectionStates:Object.assign({},
(G=(B=g[b.stepId])==null?void 0:B.selectionStates)!=null?G:{}),userQuery:{userQuery:b.userQuery,token:b.userQueryToken}},B={},Object.assign({},g,(B[b.stepId]=z,B));default:return f}}});var tt8,us6,yl1;tt8=function(f){return _.ef({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:f})};
us6=function(f){return _.ef({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:f})};
_.nz=function(f){return _.ef({type:"SET_CURRENT_PAGE_TYPE",payload:f})};
_.aVj=function(f){return _.ef({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:f})};
yl1=function(f){return _.ef({type:"SET_CHIP_BAR_IS_STICKY",payload:f})};var bDT={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"};_.W4m=function(f){return _.ef({type:"SET_PLAYER_STATE",payload:{playerState:f}})};var cl$=[],lV8={width:0,height:0};var VEQ=h2({isTheaterMode:function(f,S){f=f===void 0?_.K("kevlar_disable_theater_mode_persistence")?!1:_.s6("START_IN_THEATER_MODE"):f;switch(S.type){case "SET_IS_THEATER_MODE":return S.payload.isTheaterMode;default:return f}},
isWatchActive:function(f,S){switch(S.type){case "SET_IS_WATCH_ACTIVE":return S.payload.isWatchActive;default:return f===void 0?!1:f}},
isLearningJourneyActive:function(f,S){switch(S.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return S.payload.isLearningJourneyActive;default:return f===void 0?!1:f}},
isWatchFullscreen:function(f,S){switch(S.type){case "SET_IS_WATCH_FULLSCREEN":return S.payload.isWatchFullscreen;default:return f===void 0?!1:f}},
isWatchNarrowWidth:function(f,S){switch(S.type){case "SET_IS_WATCH_NARROW_WIDTH":return S.payload.isWatchNarrowWidth;default:return f===void 0?!1:f}},
isWatchRetroMode:function(f,S){switch(S.type){case "SET_IS_WATCH_RETRO_MODE":return S.payload.isWatchRetroMode;default:return f===void 0?!1:f}},
isLiveChatCollapsed:function(f,S){switch(S.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return S.payload.isLiveChatCollapsed;default:return f===void 0?!1:f}},
openEngagementPanels:function(f,S){f=f===void 0?cl$:f;var B=[].concat(_.$d(f));switch(S.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return B.push(S.payload.panelToAdd),B;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return B.splice(B.indexOf(S.payload.panelToRemove),1),B;default:return f}},
playerState:function(f,S){switch(S.type){case "SET_PLAYER_STATE":return S.payload.playerState;default:return f===void 0?-1:f}},
watchScrollTop:function(f,S){switch(S.type){case "SET_WATCH_SCROLL_TOP":return S.payload.watchScrollTop;default:return f===void 0?0:f}},
watchWindowSize:function(f,S){f=f===void 0?lV8:f;switch(S.type){case "SET_WATCH_WINDOW_SIZE":return S.payload.watchWindowSize;default:return f}}});var f38={feedbackTokens:[]};var J0T=h2({surveyFeedbackData:function(f,S){f=f===void 0?f38:f;switch(S.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return S.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},f,S.payload);default:return f}}});var zfs={};var qXx=void 0;_.K("web_enable_redux_store_on_demand")||(qXx=HDG());var oqv=function(f,S,B){var G=this;this.listId=f;this.JSC$10806_updateCallback=S;this.isOfflineVideoCallback=B;_.W2().subscribe(function(){G.handleUpdate()})};
oqv.prototype.getPlaylistData=function(){var f=_.W2().getState().entities;if(this.listId&&this.listId!=="PPSV"){var S=YdV(f,this.listId,!0),B=_.XV(this.listId,"mainPlaylistEntity"),G,g;f=f==null?void 0:(G=f.mainPlaylistEntity)==null?void 0:(g=G[B])==null?void 0:g.title;return $wN(S,f,this.listId)}S=_.kwV(ofx(f));f=_.kwV(_.r9(f));return $wN(S.concat(f))};
oqv.prototype.getPlaylistId=function(){return this.listId};
oqv.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$10806_updateCallback(this.listId,this.getPlaylistData(),{})};var EX=function(f,S,B,G){G=G===void 0?[]:G;this.JSC$10809_playlistNetworkManager=f;this.listId=S;this.JSC$10809_updateCallback=B;this.videoIds=G;this.pendingUpdates=[];this.currentIndex=0};
EX.prototype.JSC$10809_setCurrentIndex=function(f){this.currentIndex=f};
EX.prototype.setListId=function(f){this.listId=f};
var SiL=function(f,S){f.currentCreateRequest&&f.currentCreateRequest.cancel(S);f.currentUpdateRequest&&f.currentUpdateRequest.cancel(S);f.currentRefreshRequest&&f.currentRefreshRequest.cancel(S)};
EX.prototype.delete=function(){SiL(this,"PROXY DELETED")};
EX.prototype.addVideos=function(f,S,B){var G=this;B!==void 0?this.videoIds.splice.apply(this.videoIds,[B,0].concat(_.$d(f))):this.videoIds.push.apply(this.videoIds,_.$d(f));this.listId||this.currentCreateRequest?(f.forEach(function(g,b){g={addedVideoId:g,action:"ACTION_ADD_VIDEO"};B&&(g.addedVideoPosition=B+b);G.pendingUpdates.push(g)}),LD(this)):BEo(this,S.onCreateListCommand)};
var G5L=function(f,S,B,G,g){HMM(f.videoIds,S,B);S>f.currentIndex&&B<=f.currentIndex?f.JSC$10809_setCurrentIndex(f.currentIndex+1):S===f.currentIndex?f.JSC$10809_setCurrentIndex(B):S<f.currentIndex&&B>=f.currentIndex&&f.JSC$10809_setCurrentIndex(f.currentIndex-1);f.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:G,movedSetVideoIdPredecessor:g});LD(f)},BEo=function(f,S){SiL(f,"OBSOLETE");
f.currentCreateRequest=gq7(f.JSC$10809_playlistNetworkManager,S,f.videoIds);_.jA(f.currentCreateRequest,function(){f.currentCreateRequest=void 0}).then(function(B){f.setListId(B.playlistId);
f.pendingUpdates.length>0?LD(f):eii(f)})},LD=function(f){if(f.pendingUpdates.length!==0&&(f.currentRefreshRequest&&f.currentRefreshRequest.cancel("OBSOLETE"),!f.currentUpdateRequest&&!f.currentCreateRequest)){var S=f.pendingUpdates.splice(0,f.pendingUpdates.length);
f.currentUpdateRequest=f.JSC$10809_playlistNetworkManager.updatePlaylist(f.listId,S);_.jA(f.currentUpdateRequest,function(){f.currentUpdateRequest=void 0}).then(function(){f.pendingUpdates.length>0?LD(f):eii(f)}).thenCatch(function(){f.pendingUpdates.unshift.apply(f.pendingUpdates,_.$d(S))})}},eii=function(f){f.currentRefreshRequest=_.bfm(f.JSC$10809_playlistNetworkManager,f.listId,f.currentIndex,f.videoIds[f.currentIndex]);
_.jA(f.currentRefreshRequest,function(){f.currentRefreshRequest=void 0}).then(function(S){f.JSC$10809_updateCallback(S.playlistId,S.playlistPanelRenderer,S.autoplayRenderer)})};
EX.prototype.size=function(){return this.videoIds.length};var mji=function(f,S,B,G){G=G===void 0?[]:G;EX.call(this,f,S,B,G);this.JSC$10809_playlistNetworkManager=f;this.listId=S;this.JSC$10809_updateCallback=B;this.videoIds=G};
_.q(mji,EX);_.kZ=function(f,S,B,G,g,b,z){g=g===void 0?[]:g;z=z===void 0?zh:z;EX.call(this,f,S,B,g);this.JSC$10809_playlistNetworkManager=f;this.listId=S;this.JSC$10809_updateCallback=B;this.onAuthChange=G;this.videoIds=g;this.storage=b;this.cookieReader=z;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.Xd(_.xJ,this.checkLoggedInStatusChange.bind(this),1E3)};
_.q(_.kZ,EX);_.e=_.kZ.prototype;_.e.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.Xd(_.xJ,this.checkLoggedInStatusChange.bind(this),1E3)};
_.e.JSC$10809_setCurrentIndex=function(f){EX.prototype.JSC$10809_setCurrentIndex.call(this,f);this.store()};
_.e.delete=function(){_.xJ.cancelJob(this.queueSapisIdJob);EX.prototype.delete.call(this)};
_.e.setListId=function(f){EX.prototype.setListId.call(this,f);this.store()};
_.e.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var zig=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],Rim=["playerResponse","videoDetails"],X0i=["response","currentVideoEndpoint","watchEndpoint","videoId"],w0o=["response","currentVideoEndpoint","watchEndpoint","playlistId"],hiN=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],TEX=["response","contents","twoColumnWatchNextResults","playlist","playlist"],FXX=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
VGL=["response","contents","twoColumnWatchNextResults"];var nD={},ODK=(nD.WEB_UNPLUGGED="^unplugged/",nD.WEB_UNPLUGGED_ONBOARDING="^unplugged/",nD.WEB_UNPLUGGED_OPS="^unplugged/",nD.WEB_UNPLUGGED_PUBLIC="^unplugged/",nD.WEB_CREATOR="^creator/",nD.WEB_KIDS="^kids/",nD.WEB_EXPERIMENTS="^experiments/",nD.WEB_MUSIC="^music/",nD.WEB_REMIX="^music/",nD.WEB_MUSIC_EMBEDDED_PLAYER="^music/",nD.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",nD);var hkQ,gq7;hkQ=function(f,S){this.networkManager=f;this.innertubeTransportService=S};
gq7=function(f,S,B){if(!_.H(S,_.pW))return _.xe(Error("Ff"));_.H(S,_.pW).videoIds=B;B={create_playlist_title:_.Jf("QUEUE",void 0,"Queue")};return r0Q(_.uF(f.innertubeTransportService,S,B),QhV)};
_.bfm=function(f,S,B,G){S={videoId:G,playlistId:S,playlistIndex:B};B=_.lC(JWN);return r0Q(_.sX(f.innertubeTransportService,S,B),jh1)};
hkQ.prototype.updatePlaylist=function(f,S){return r0Q(_.uF(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:f,actions:S}}),YX1)};var Jg8=function(f){this.storage=f},Pr1;
Jg8.prototype.store=function(f,S){S=S===void 0?0:S;if(this.storage&&f.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",f),this.storage.set("TLPQindex",String(S)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(B){}};
Jg8.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
Jg8.prototype.getPlaylistId=function(){if(!this.storage)return null;var f=null;try{f=this.storage.get("TLPQplaylist")}catch(S){}return f};var kEs=["navigationEndpoint","watchEndpoint","videoId"],Li1=["nextButtonVideo","watchEndpoint","videoId"];_.st=new _.Sn("NETWORK_TOKEN");_.o8=new _.Sn("PAGE_TOKEN");_.Dr=new _.Sn("PLAYLIST_TOKEN");var vqi;vqi=new _.Sn("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.DU=new _.Sn("INNERTUBE_TRANSPORT_TOKEN");var KX7,Ih,ifg,Hfm,$j7,Q_v;KX7=new Set(["ci","cr","carml"]);Ih=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$10856_parkedJobs=new Map;this.parkedProcessors=new Map};
_.UX=function(){Ih.instance||(Ih.instance=new Ih);return Ih.instance};
Ih.prototype.onAny=function(f){return _.djN(this,f,2)};
Ih.prototype.parkOrScheduleJob=function(f,S,B,G,g){_.CD(this,B)?_.kj().addJob(f,S,G):(g&&(f=ifg(f),Hfm(this,f,S,B,g)),g=this.JSC$10856_parkedJobs.get(B),g||(this.JSC$10856_parkedJobs.set(B,[]),g=this.JSC$10856_parkedJobs.get(B)),g.push({job:f,priority:S,delay:G}))};
Ih.prototype.addListener=function(f,S,B){B&&(S=ifg(S),Hfm(this,S,0,f,B));B=this.parkedProcessors.get(f);B||(this.parkedProcessors.set(f,[]),B=this.parkedProcessors.get(f));B.push(S)};
Ih.prototype.processSignal=function(f){if(!_.CD(this,f)){this.inProgressSignals.add(f);var S=this.JSC$10856_parkedJobs.get(f);if(S){S=_.m(S);for(var B=S.next();!B.done;B=S.next())B=B.value,_.kj().addJob(B.job,B.priority,B.delay);this.JSC$10856_parkedJobs.delete(f)}if(S=this.parkedProcessors.get(f)){S=_.m(S);for(B=S.next();!B.done;B=S.next())B=B.value,B();this.parkedProcessors.delete(f)}this.signals.push(f);this.inProgressSignals.delete(f)}};
_.CD=function(f,S){return KX7.has(S)||_.s6("IS_HOMEPAGE_COLD")||_.s6("IS_RESULTS_PAGE_COLD")||_.s6("IS_WATCH_PAGE_COLD")?f.signals.indexOf(S)>=0:!0};
ifg=function(f){var S=!1;return function(){S||(S=!0,f())}};
Hfm=function(f,S,B,G,g){if(qim.has(G))_.kj().addJob(S,B,g);else{var b=f.compoundSignals.get(G);b&&_.kj().addJob(function(){_.CD(f,G)||(b.isTimeoutConditionSatisfied?_.kj().addJob(S,B):b.timeoutConditionObservers.push(function(){_.kj().addJob(S,B)}))},B,g)}};
_.djN=function(f,S,B){if(S.length>1){var G=[],g=Object.create(null);S=_.m(S);for(var b=S.next();!b.done;b=S.next())b=b.value,g[b]||(G.push(b),g[b]=!0);S=G}if(S.length===1)return S[0];b=S;G="";g=B===2?"|":"&";b.sort();b=_.m(b);for(var z=b.next();!z.done;z=b.next())G+=z.value+g;if(!f.compoundSignals.get(G)){g=0;b=[];z=_.m(S);for(var X=z.next();!X.done;X=z.next())X=X.value,g++,_.CD(f,X)||b.push(X);(B=B===2)&&g>b.length||!B&&!b.length?f.signals.push(G):$j7(f,G,B,S,b)}return G};
$j7=function(f,S,B,G,g){var b=g.length,z=function(){B||--b===0?f.processSignal(S):Q_v(f,S)};
g=_.m(g);for(var X=g.next();!X.done;X=g.next())f.addListener(X.value,z);f.compoundSignals.set(S,{signals:G,isOnAny:B,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});Q_v(f,S)};
Q_v=function(f,S){if(!_.CD(f,S)){var B=f.compoundSignals.get(S);if(B&&!B.isTimeoutConditionSatisfied){for(var G=!1,g=0,b=0,z=_.m(B.signals),X=z.next();!X.done;X=z.next()){var w=X.value;X=!_.CD(f,w);qim.has(w)?G=!0:(w=f.compoundSignals.get(w))?X&&!w.isTimeoutConditionSatisfied&&(b++,B.isInitialized||w.timeoutConditionObservers.push(function(){Q_v(f,S)})):X&&g++}B.isInitialized=!0;
B.isOnAny?G&&(B.isTimeoutConditionSatisfied=!0):g===0&&b===0&&(B.isTimeoutConditionSatisfied=!0);if(B.isTimeoutConditionSatisfied)for(B=_.m(B.timeoutConditionObservers),G=B.next();!G.done;G=B.next())G=G.value,G()}}};
Ih.prototype.processSignal=Ih.prototype.processSignal;Ih.prototype.parkOrScheduleJob=Ih.prototype.parkOrScheduleJob;Ih.prototype.onAny=Ih.prototype.onAny;_.WL("ytsignals.getInstance",_.UX);Ih.prototype.onAny=Ih.prototype.onAny;Ih.prototype.parkOrScheduleJob=Ih.prototype.parkOrScheduleJob;Ih.prototype.processSignal=Ih.prototype.processSignal;var qim=new Set(["eop","eocs","dl","pcl"]);_.N_=new _.Sn("MINIPLAYER_SERVICE");var pD,Yi$,rgm;pD=function(f,S,B){var G=_.AE.getInstance();if(!Pr1){var g=new zSQ;var b=void 0,z=_.nL("ID_TOKEN");z&&g.isAvailable()&&(b=new $0(g,"yt-queue"+z));Pr1=new Jg8(b)}g=Pr1;b=_.UX();this.JSC$10863_actionRouter=G;this.pageManager=f;this.playlistManager=S;this.JSC$10863_playlistNetworkManager=B;this.storage=g;this.signals=b;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.A0=function(){if(!Yi$){var f=_.oy(),S=f.resolve(_.fN(_.o8)),B=f.resolve(_.fN(_.st)),G=f.resolve(_.fN(_.Dr));f=f.resolve(_.DU);Yi$=new pD(S,G,new hkQ(B,f))}return Yi$};
rgm=function(f,S,B){if(B){var G;if(((G=f.responsePlaylistData)==null?void 0:G.playlistId)!==B)return}f.responsePlaylistData&&(B=CON(S,f.responsePlaylistData),f.responsePlaylistData=(0,_.$v.unsafeClone)(f.responsePlaylistData),A0N(f.responsePlaylistData,B));B=f.temporaryItems.findIndex(function(g){return g.videoId===S});
B>-1&&f.temporaryItems.splice(B,1);_.Nw(f,_.Mw(f,f.response?f.response.autoplayRenderer:void 0))};
_.j_m=function(f,S){if(f.responsePlaylistData){var B=pnK(S,f.responsePlaylistData);A0N(f.responsePlaylistData,B);if(f.queueProxy){var G=f.queueProxy;B<0||(G.videoIds.splice(B,1),B<G.currentIndex&&G.JSC$10809_setCurrentIndex(G.currentIndex-1),G.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:S}),LD(G))}}_.Nw(f,_.Mw(f,f.response?f.response.autoplayRenderer:void 0))};
pD.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.Nw(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
pD.prototype.setPlaylistData=function(f,S,B){this.temporaryItems=[];this.listId=f;this.responsePlaylistData=S;_.Nw(this,_.Mw(this,B))};
var Ofi=function(f){return(f==null?0:f.playlistId)?f.playlistId:"PPSV"},xj$=function(f){return f&&f.playlistId?f.playlistId==="PPSV"?!0:$xG(_.W2().getState().entities,f.playlistId):!1};
pD.prototype.isPlayingOfflineVideo=function(){return this.response?xj$(this.response):!1};
pD.prototype.closeMiniplayer=function(f){var S=this.queueProxy&&this.queueProxy.size()<=1,B=_.oy().resolve(_.N_);if(!this.queueProxy||S)this.queueProxy&&this.clearQueue(),B.close(!0);else{B.pipController.getWindow()&&window.focus();S=this.responsePlaylistData;var G=this.temporaryItems.length+(S&&S.contents?S.contents.length:0);S=_.Jf("QUEUE_CLEARED_UNPLURALIZED")||_.PK("QUEUE_CLEARED",G);S=_.oe(S);B=_.Jf("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");G=_.Jf("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.PK("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",G);var g=_.Jf("MINIPLAYER_CLOSE",void 0,"Close"),b=_.Jf("CANCEL",void 0,"Cancel");_.sc(this.JSC$10863_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.uC(B),dialogMessages:[_.uC(G)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.uC(g),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
S]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.uC(b)}}}}}}],f)}};
_.Mw=function(f,S){var B={},G=f.response;B.autoplayRenderer=S;if(!f.responsePlaylistData&&!f.temporaryItems.length)return!G||!G.hasRelatedVideoData&&_.K("kevlar_prefetch_data_augments_network_data")||(B.playerData={rvs:G.relatedVideoArgs,endScreenRenderer:G.endScreenRenderer}),B;B.playerData={};if(f.index===void 0)return _.xH(Error("Hf")),B;B.panel=f.responsePlaylistData?(0,_.$v.unsafeClone)(f.responsePlaylistData):{titleText:_.uC(_.Jf("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
S=B.panel;if(S.contents)for(var g=_.m(f.temporaryItems),b=g.next();!b.done;b=g.next())S.contents.push({playlistPanelVideoRenderer:b.value});f.queueProxy&&G&&G.playingVideo&&G.playingVideoId&&!Uwj(G.playingVideoId,B.panel)&&(S=G.playingVideo,g=B.panel,b=f.index,g.contents&&g.contents.splice(b===void 0?0:b,0,{playlistPanelVideoRenderer:S}));G&&G.playingVideoId&&(S=f.index,g=B.panel,S=!g.contents||S>=g.contents.length?void 0:g.contents[S].playlistPanelVideoRenderer,S&&S.videoId===G.playingVideoId||(S=
CON(G.playingVideoId,B.panel),f.index=S!==-1?S:f.index?f.index-1:0));S=Irj(f.index+1,B.panel);g=void 0;f.index>0&&(g=Irj(f.index-1,B.panel));if(g||S)B.autoplayRenderer=nZG(S,g,B.autoplayRenderer);!S&&(G==null?0:G.relatedVideoArgs)&&(B.playerData.rvs=G.relatedVideoArgs);G=G?G.playlistIndexOffset:0;f.queueProxy?ZD1(B.panel,f.index,G,Dw1,!0,!0,!0):ZD1(B.panel,f.index,G);B.playerData.playlistPanelRenderer=B.panel;return B};
pD.prototype.openToast=function(f){_.oy().resolve(_.N_).openToast(f,_.Jf("ADDED_TO_QUEUE",void 0,"Added to queue"))};
pD.prototype.isMiniplayerActive=function(){return _.oy().resolve(_.N_).isMiniplayerActive()};
_.Nw=function(f,S){f.playlistManager.setAutoplayRenderer(S.autoplayRenderer||null);f.playlistManager.setPlaylistData(S.panel||null);S.playerData&&f.playlistManager.setPlayerPlaybackControlData(S.playerData)};var uo9="#";var EqL={},LXN={},k57={},nqj={},s_X={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:(EqL.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",EqL),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:(LXN.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",LXN),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:(k57.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",k57),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:(nqj.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",nqj),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 jv1=[{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:s_X},{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:s_X}}];var vkV;_.X2=[[["d3l0b25oNTk4a2luZCNweTg=","bzN5eWg2dmFsdWUjMTJrYmFp"],"X0tJTkRfU1RBUlQjbjVvYWF6MzBlbXRwQURfUExBQ0VNRU5U"]];
vkV=[[["cHJpbWFyeSM2YTVoMjZyN3V5eWU=",null,null],[null,["a2N1NnVyb3N3eXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIjaHcx","cXdvNXpyMWdweG9oc3R5bGUtc2NvcGUj"],null],["aGVhc2doZHI2ODhmbWFzdGhlYWQtYWQj",["cmlkLXJlbmRlcmVyI2N4M3NkZ3hncmZuYXl0ZC1yaWNoLWc="],null],[null,["cmlkLXJlbmRlcmVyIzk0c2theXphYzNuOXl0ZC1yaWNoLWc=","M2Z5NDVjZHB3ZWRic3R5bGUtc2NvcGUj"],null],[null,["LXJlbmRlcmVyI3AweW9ydHk2cWw5N3l0ZC1iYW5uZXItcHJvbW8=","dm9rZHE5anZlMDE0c3R5bGUtc2NvcGUj"],null],[null,["LXNsb3QtcmVuZGVyZXIjZHdzcXA0OHhmOWcyeXRkLWFk"],
null]],[["cyMydm1zdzUyM2tqZTVwbGF5ZXItYWQ=",null,null]]];_.Re=["cDgybGdsb2JhbENhbGxiYWNrcyNxbXY2NHBrdA==","YWxpdHlEZXRlY3RlZCNiZjBmYTR2aDM0ZnBvbkFibm9ybQ==","ZFNraXAjeGRtMHl2NHoyZnhnb25B","cGxheWVyX3Jlc3BvbnNlI2RuaDBnbWpmMWVqZHJhd18=","YWRTbG90cyNqZThlY2VnNGN3bnk="];_.Zr="cDgybGdsb2JhbENhbGxiYWNrcyNxbXY2NHBrdA== YWxpdHlEZXRlY3RlZCNiZjBmYTR2aDM0ZnBvbkFibm9ybQ== ZFNraXAjeGRtMHl2NHoyZnhnb25B cGxheWVyX3Jlc3BvbnNlI2RuaDBnbWpmMWVqZHJhd18= M2ZqNDZsZTk5M2d3ZWJfcGxheWxpc3RfcXVldWVfbXVsdGlwbGVfc2tpcHNfa3MjYQ== c2FfZWYjaTU1N2Nub2pydnp2YWJf YWRTbG90cyNqZThlY2VnNGN3bnk=".split(" ");var t0;t0=function(f,S,B){this.tZg=f;this.isAsync=S;this.oZ9=B};
_.p4s=[new t0("b.f_",!1,0),new t0("j.s_",!1,2),new t0("r.s_",!1,4),new t0("e.h_",!1,6),new t0("i.s_",!0,8),new t0("s.t_",!1,10),new t0("p.h_",!1,12),new t0("s.i_",!1,14),new t0("f.i_",!1,16),new t0("a.b_",!1,18),new t0("a.o_",!1),new t0("g.o_",!1,22),new t0("p.i_",!1,24),new t0("p.m_",!1),new t0("n.k_",!0,20),new t0("i.f_",!1),new t0("a.s_",!0),new t0("m.c_",!1),new t0("n.h_",!1,26),new t0("o.p_",!1),new t0("m.p_",!0,28),new t0("o.a_",!1),new t0("d.p_",!1),new t0("e.i_",!1)].reduce(function(f,S){f[S.tZg]=
S;return f},{});var DjX=function(){};
DjX.prototype.flush=function(f,S){f=f===void 0?[]:f;S=S===void 0?!1:S;if(_.K("enable_client_streamz_web")){f=_.m(f);for(var B=f.next();!B.done;B=f.next())B=AXm(B.value),this.rootSpec&&_.SZ(B,2,this.rootSpec),B={serializedIncrementBatch:_.oO(B.JSC$7652_serializeBinary())},_.jD("streamzIncremented",B,{sendIsolatedPayload:S})}};
var c0j=function(){};
_.q(c0j,DjX);var I3N=function(f){var S=new n$j;var B=new E$j;B=_.Jx(B,1,"botguard");f=_.Jx(B,2,f);this.rootSpec=_.Bo(S,1,soo,f)};
_.q(I3N,DjX);var bt,Uj8=new Map;var H5K,fCV,zHs,BQV,eHG,Ji9,$mN,FQj;H5K=2;fCV=2;zHs=2;BQV=2;eHG=2;Ji9=2;$mN=2;FQj=new Dcv;var p0o,Agg,NEN;p0o=function(){this.ongoingFlowNonces=new Map};
_.F2=function(){Agg||(Agg=new p0o);return Agg};
_.hK=function(f,S,B){return{eventType:{flowEventNamespace:f,flowEventType:S},metadata:B,statusCode:void 0,csn:void 0,can:void 0}};
_.NQs=function(f,S){var B=_.F2(),G=NEN(B,S,!0);_.TF(B,f,S,G)};
_.TF=function(f,S,B,G){f={flowNonce:G||NEN(f,B),flowType:B,flowEventType:S.eventType};S.metadata&&(f.flowMetadata=S.metadata);S.statusCode!==void 0&&(f.flowEventStatus=S.statusCode);S.csn&&(f.csn=S.csn);S.can&&(f.can=S.can);_.jD("flowEvent",f,void 0)};
NEN=function(f,S,B){B=B===void 0?!1:B;var G=f.ongoingFlowNonces.get(S);if(!G||B)G=ri(16),f.ongoingFlowNonces.set(S,G);return G};_.MG6=new ssg;var uw1={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch"};var uO=function(f,S,B,G,g,b,z){B=B===void 0?!1:B;G=G===void 0?!1:G;b=b===void 0?_.A0():b;this.hasRun=!1;this.ssQ=f;this.wAP=S;this.v5P=B;this.fromHistory=G;this.previousVideoId=g;this.bW6=b;this.tempData=z;this.quI=new _.IEj};
_.q(uO,oh);uO.prototype.validate=function(f){return!(!f.data.playerResponse||f.data.page!=="watch"&&f.data.page!=="learning_journey_watch"&&f.data.page!=="shorts"||this.hasRun)};
uO.prototype.handle=function(f){var S=this,B=_.H(f.endpoint,_.t2),G=_.H(f.endpoint,_.QW);if(_.K("kevlar_continue_playback_without_player_response")&&(B==null?0:B.videoId)&&this.previousVideoId&&(B==null?void 0:B.videoId)===this.previousVideoId&&(B==null?0:B.continuePlayback)&&!this.fromHistory)this.ssQ.resolve();else{var g={};B?g.watch_endpoint=B:G&&(g.watch_endpoint=G,G.endTimeSeconds&&(g.end=G.endTimeSeconds));f.data.page==="watch"?(f.data.filler||this.v5P||(_.n2("cfg"),_.AE.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(g,Zf8(this,f.endpoint)),_.K("enable_masthead_quartile_ping_fix")&&Object.assign(g,tGi(this)),Object.assign(g,void 0),f.data.forceExternalPlaylist&&(g.external_list=!0)):f.data.page==="shorts"?_.AE.getInstance().triggerAction("yt-start-loading-shorts"):f.data.page==="learning_journey_watch"&&_.AE.getInstance().triggerAction("yt-start-loading-learning-journey");if(B=this.wAP()){try{B.loadVideoWithPlayerResponse(f.data.playerResponse,g),B.getPlayerPromise().then(this.ssQ.resolve)}catch(b){_.xH(b),
this.ssQ.resolve()}this.hasRun=!0;B.getPlayerPromise().then(function(b){b.addEventListener("onAbnormalityDetected",function(){var z=f.data.playerResponse,X=b.getVideoData().cpn;$mN=0;_.Cro=X;if(X=C_N(z))S.quI.increment("IN_PLAYER"),_.VW(5),_.K("ab_st_vid_ks")?b.pauseVideo(!0):b.stopVideo(),z.playabilityStatus=Object.assign({},z.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:X}}),z.videoDetails=void 0,_.AE.getInstance().triggerOptionalAction("yt-updated-playability-status",
z.playabilityStatus)})})}else _.Lg(Error("Kf"))}};
var Zf8=function(f,S){var B=_.H(S,_.t2);if(S&&B&&B.playlistId&&B.videoId&&(f=f.bW6,f.queueProxy?(f=f.queueProxy,B=f.listId===B.playlistId?f.attributionData.get(B.videoId):void 0):B=void 0,B))return{queue_info:B}},tGi=function(f){var S;
if((S=f.tempData)==null?0:S.adpings)return{adpings:f.tempData.adpings}};var ah=function(f,S,B){this.hasRun=!1;this.yEK=f;this.qjp=S;this.hja=B};
_.q(ah,oh);ah.prototype.validate=function(f){return!!_.$v.getValueByKeys.apply(null,[f.data].concat(_.$d(VGL)))};
ah.prototype.handle=function(f){var S=this;this.yEK.promise.then(function(){var B=f.data;var G=_.$v.getValueByKeys.apply(null,[B].concat(_.$d(zig))),g=_.$v.getValueByKeys.apply(null,[B].concat(_.$d(TEX))),b=_.$v.getValueByKeys.apply(null,[B].concat(_.$d(X0i)));var z=(z=_.$v.getValueByKeys.apply(null,[B].concat(_.$d(Rim))))?{videoId:z.videoId,thumbnail:z.thumbnail,title:z.title?_.uC(z.title):void 0,shortBylineText:z.author?_.uC(z.author):void 0}:void 0;var X=void 0;_.K("web_get_playlist_id_from_current_endpoint_ks")||
(X=_.$v.getValueByKeys.apply(null,[B].concat(_.$d(w0o))));var w=_.$v.getValueByKeys.apply(null,[B].concat(_.$d(FXX))),F=_.$v.getValueByKeys.apply(null,[B].concat(_.$d(hiN))),V=!!w||!!F&&!!F.results&&F.results.length>0,J=0;g&&g.currentIndex&&g.localCurrentIndex&&(J=g.currentIndex-g.localCurrentIndex);g&&g.playlistId&&(X=g.playlistId);B={rawResponse:B,autoplayRenderer:G,hasRelatedVideoData:V,playingVideo:z,playingVideoId:b,playlistPanelRenderer:g,playlistId:X,playlistIndex:g&&g.currentIndex,relatedVideoArgs:w,
endScreenRenderer:F,playlistIndexOffset:J};a:{G=S.hja;g=S.qjp;G.response=B;if(xj$(B))G.downloadPlaylistProxy&&G.downloadPlaylistProxy.getPlaylistId()===Ofi(B)||(G.downloadPlaylistProxy=new oqv(Ofi(B),G.setPlaylistData.bind(G),G.isPlayingOfflineVideo.bind(G))),G.responsePlaylistData=G.downloadPlaylistProxy.getPlaylistData(),G.listId=Ofi(B),G.index=0;else if(B.playlistPanelRenderer&&B.playlistId&&B.autoplayRenderer)B.playlistId.startsWith("TLPQ")?G.queueProxy?G.listId===B.playlistId?(G.index=B.playlistIndex,
G.responsePlaylistData=B.playlistPanelRenderer,G.queueProxy.JSC$10809_setCurrentIndex(G.index)):B.playingVideoId&&G.index!==void 0&&g.clientParams.autoSaveToQueue&&(G.index+=1,G.queueProxy.JSC$10809_setCurrentIndex(G.index),G.queueProxy.addVideos([B.playingVideoId],{},G.index)):(G.queueProxy=new _.kZ(G.JSC$10863_playlistNetworkManager,B.playlistId,G.setPlaylistData.bind(G),G.clearQueue.bind(G),_.NYQ(B.playlistPanelRenderer),G.storage),G.responsePlaylistData=B.playlistPanelRenderer,G.listId=B.playlistId,
G.index=B.playlistIndex):(G.index=B.playlistIndex,G.listId!==B.playlistId&&G.clearQueue(),G.responsePlaylistData=B.playlistPanelRenderer,G.listId=B.playlistId,G.playlistProxy=new mji(G.JSC$10863_playlistNetworkManager,B.playlistId,G.setPlaylistData.bind(G),_.NYQ(B.playlistPanelRenderer)));else if(!G.queueProxy)G.responsePlaylistData=void 0;else if(B.playingVideoId&&g.clientParams.autoSaveToQueue){if(G.index===void 0){_.xH(Error("Gf"));G.clearQueue();break a}G.queueProxy.videoIds.includes(B.playingVideoId)||
(G.index+=1,G.queueProxy.JSC$10809_setCurrentIndex(G.index),G.queueProxy.addVideos([B.playingVideoId],{},G.index))}_.Nw(G,_.Mw(G,G.response.autoplayRenderer))}})};var uSi=function(f,S){S=S===void 0?_.A0():S;V2.call(this);this.he.push(new ah(this.bT,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},S));this.he.push(new uO(this.bT,f,!1,!1));_.K("web_response_commands_chunk_processor")&&this.he.push(new J0)};
_.q(uSi,V2);uSi.prototype.processChunk=function(f){f&&f.data.player===void 0&&this.bT.resolve();V2.prototype.processChunk.call(this,f)};var y2=function(f,S){f=f===void 0?{layer:0}:f;this.hasRun=!1;this.createScreenConfig=f;this.pNH=S};
_.q(y2,oh);y2.prototype.validate=function(f){return!(this.hasRun||!f.endpoint)};
y2.prototype.handle=function(f){var S=_.ik(),B,G,g=(G=_.H((B=f.endpoint)==null?void 0:B.commandMetadata,_.oD))==null?void 0:G.rootVe;this.pNH&&g?_.Rh(S,g,this.pNH,this.createScreenConfig):Df6(S,f.endpoint,this.createScreenConfig);this.hasRun=!0};var Wn=function(f,S){this.hasRun=!1;this.iWl=f;this.previousVideoId=S};
_.q(Wn,oh);Wn.prototype.validate=function(f){return _.K("kevlar_continue_playback_without_player_response")&&(f=_.H(f.endpoint,_.t2),(f==null?0:f.videoId)&&this.previousVideoId&&(f==null?void 0:f.videoId)===this.previousVideoId&&(f==null?0:f.continuePlayback))?!1:this.iWl.gUv===0};
Wn.prototype.handle=function(f){_.AE.getInstance().triggerAction("yt-stop-old-player",f.data,!0)};var a38=function(f){f=f===void 0?{layer:0}:f;V2.call(this);this.he.push(new Wn(this));this.he.push(new y2(f));this.he.push(new Fo(f))};
_.q(a38,V2);var yg8=function(){this.hasRun=this.hasRun=!1};
_.q(yg8,oh);yg8.prototype.validate=function(f){return!this.hasRun&&!(!f.data.csn||!f.data.rootVe)};
yg8.prototype.handle=function(f){this.hasRun=!0;_.Lk(f.data.csn,f.data.rootVe,3)};var WXL=function(){oh.apply(this,arguments)};
_.q(WXL,oh);WXL.prototype.validate=function(f){return!!f.data.preconnect};
WXL.prototype.handle=function(f){_.kT("bc");f=_.m(f.data.preconnect);for(var S=f.next();!S.done;S=f.next())S=S.value,(new Image).src=S};var cgL=function(f,S,B){B=B===void 0?{layer:0}:B;V2.call(this);this.he.push(new uO(this.bT,f));this.he.push(new y2(B));this.he.push(new Fo(B))};
_.q(cgL,V2);var l3X=function(f,S,B,G,g){B=B===void 0?{layer:0}:B;G=G===void 0?_.A0():G;V2.call(this);var b=!!S&&!!S.clientParams&&!!S.clientParams.miniplayer;b&&this.he.push(new yg8);this.he.push(new ah(this.bT,S,G));this.he.push(new WXL);var z,X;this.he.push(new uO(this.bT,f,b,!((z=S.clientParams)==null||!z.fromHistory),(X=S.clientParams)==null?void 0:X.previousVideoId,G,S.tempData));var w;this.he.push(new Wn(this,(w=S.clientParams)==null?void 0:w.previousVideoId));var F;(F=S.clientParams)!=null&&F.fromHistory||
(B.layer||(B=Object.assign({},B,{layer:b?3:0})),this.he.push(new y2(B,g)),this.he.push(new Fo(B)));_.K("web_response_commands_chunk_processor")&&this.he.push(new J0)};
_.q(l3X,V2);var cn,Sr6;cn={};
_.fym=(cn["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},cn["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},cn["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},cn["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},cn["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},cn["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},cn["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},cn);_.lO=new _.s4("yt-edu");_.oai=function(){this.JSC$10964_eduDisplayedThisLoad_={}};
Sr6=function(f){var S=_.oai.getInstance();var B=_.Gt("kevlar_tooltip_impression_cap");S=B&&parseInt(_.lO.get(f+"-impression")||0,10)>=B||_.lO.get(f+"-dismissed")?!1:(B=_.fym[f])&&!S.JSC$10964_eduDisplayedThisLoad_[B.setKey||f]&&(B.titleText&&_.Jf(B.titleText)||B.bodyText&&_.Jf(B.bodyText))?!0:!1;if(!S)return null;S=_.fym[f];if(!S)return null;B=S.bodyText?_.Jf(S.bodyText):void 0;var G=S.titleText?_.Jf(S.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:S.position,popup:{bubbleHintRenderer:{text:G?
_.uC(G):void 0,detailsText:B?_.uC(B):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.uC(_.Jf("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:f}}]}}}}}}}},{eduImpressionAction:{key:f}}]};
_.mG(_.oai);var Mj9=!1;for(var BnX="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),G0$=[],f5=6;f5>=1;f5--)G0$.push({columnCount:f5,query:f5==1?0:f5*2*107-4+32,className:"grid-"+f5+"-columns",width:f5*2*107+"px"});_.eEN=function(f){this.actionRouter_=f=f===void 0?_.AE.getInstance():f;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.gaX(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.gaX=function(f){var S=f.miniGuideVisible_?72:0,B=f.documentWidth_-(f.guidePersistentAndVisible_?240:S);return G0$.find(function(G){return B>G.query})};
_.mG(_.eEN);var bt6=function(){var f=this;this.JSC$10976_keyboardInUse=!1;document.addEventListener("keydown",function(){f.onKeydown()});
document.addEventListener("mousedown",function(){f.JSC$10976_keyboardInUse=!1})},mug;
bt6.prototype.isKeyBoardInUse=function(){return this.JSC$10976_keyboardInUse};
bt6.prototype.onKeydown=function(){this.JSC$10976_keyboardInUse=!0};var zEo,B4;_.ov=new _.s4("yt-mentions");_.Sj=function(){};
zEo=function(f,S){return B4(S,"drag-to-reorder-edu-displayed")};
B4=function(f,S,B,G,g,b){B=B===void 0?"OPEN_POPUP_POSITION_TOP":B;if(S){if(_.ov.get(S))return;_.ov.set(S,!0,G)}if(g&&b!==void 0){S=Number(_.ov.get(g)||0);if(S>=b)return;_.ov.set(g,S+1)}return[{openPopupAction:{popupType:"HINT",position:B,popup:{bubbleHintRenderer:{detailsText:f,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.mG(_.Sj);var RE1,Xxi,wx7;RE1=function(f,S,B,G){this.JSC$10986_taskManager_=f;this.onFulfilled_=typeof S==="function"?S:null;this.onRejected_=typeof B==="function"?B:null;this.JSC$10986_context_=G};
Xxi=function(f,S){f.onFulfilled_&&_.H8(f.JSC$10986_taskManager_,function(){f.onFulfilled_.call(f.JSC$10986_context_,S)})};
wx7=function(f,S){f.onRejected_&&_.H8(f.JSC$10986_taskManager_,function(){f.onRejected_.call(f.JSC$10986_context_,S)})};
_.Gb=function(f){this.JSC$10989_taskManager_=f;this.callbacks_=[]};
_.Gb.prototype.then=function(f,S,B){this.callbacks_.push(new RE1(this.JSC$10989_taskManager_,f,S,B));return this};
_.Gb.prototype.onSuccess=function(f){this.callbacks_.forEach(function(S){Xxi(S,f)})};
_.Gb.prototype.onFailure=function(f){this.callbacks_.forEach(function(S){wx7(S,f)})};
_.Gb.prototype.cancel=function(){this.callbacks_.length=0};
ZXL(_.Gb);_.yiM=null;_.k8=new _.Sn("ACTIVITY_TOKEN");var gQ=function(f,S){this.serviceId=new Nji(f,S)};
gQ.prototype.toString=function(){return this.serviceId.toString()};var hE6=function(){this.internalMap={}};
_.e=hE6.prototype;_.e.contains=function(f){return Object.prototype.hasOwnProperty.call(this.internalMap,f)};
_.e.get=function(f){if(this.contains(f))return this.internalMap[f]};
_.e.set=function(f,S){this.internalMap[f]=S};
_.e.getKeys=function(){return Object.keys(this.internalMap)};
_.e.remove=function(f){delete this.internalMap[f]};var ej=function(){this.mappings=new hE6;this.errorCallbacks=new Set};
ej.prototype.getModuleId=function(f){return f.serviceId.getModuleId()};
ej.prototype.get=function(f){var S=this.mappings.get(f.toString());return TnN(this,S,f)};
ej.prototype.getMultipleAsync=function(){var f=_.qb.apply(0,arguments),S=this,B=f.map(function(w){return S.getModuleId(w)}),G=f.map(function(w){return S.mappings.get(w.toString())}).filter(function(w){return w});
if(G.length===f.length)return _.wh(G.map(function(w,F){return TnN(S,w,f[F])}));
var g=Ob().loadMultiple(B);G=_.rX(B.map(function(w){return g[w]}));
var b=document.hidden,z=-1,X=_.Gt("get_async_timeout_ms",-1);X>-1&&(z=setTimeout(function(){_.Lg(new _.dO("Module timeout.",B,b,document.hidden))},X));
return _.jA(G.then(function(){return f.map(function(w){return TnN(S,S.mappings.get(w.toString()),w)})}).thenCatch(function(w){for(var F=_.m(S.errorCallbacks),V=F.next();!V.done;V=F.next())V=V.value,V(w);
throw w;}),function(){clearTimeout(z)})};
ej.prototype.registerService=function(f,S){this.mappings.set(f.toString(),{type:"mapping",value:S});return f};
var TnN=function(f,S,B){switch(S.type){case "mapping":return S.value;case "factory":return S=S.value(),f.mappings.set(B.toString(),{type:"mapping",value:S}),S;default:return _.mu(S)}};
ej.prototype.onLoadError=function(f){var S=this;this.errorCallbacks.add(f);return function(){S.errorCallbacks.delete(f)}};
_.b_=new ej;var oNA=/^[a-zA-Z0-9_\-]{11}$/;var S0V=_.i4(function(){var f,S;return(S=(f=window).matchMedia)==null?void 0:S.call(f,"(prefers-reduced-motion: reduce)").matches});var FYg=_.i4(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 f=_.U6("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");f||(f=_.Ja("VIDEO"),_.WL("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
f));return!!(f&&f.canPlayType&&f.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var mfx=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var mQ;mQ=function(){this.tokenJars={};if(this.cookiesEnabled=_.PL()){var f=_.VP.get("CONSISTENCY",void 0);f&&VLj(this,{encryptedTokenJarContents:f})}};
_.Rk9=function(){mQ.instance||(mQ.instance=new mQ);return mQ.instance};
mQ.prototype.handleResponse=function(f,S){if(!S)throw Error("Qf");var B,G;S=((B=S.innerTubeRequest.context)==null?void 0:(G=B.request)==null?void 0:G.consistencyTokenJars)||[];var g;(f=(g=f.responseContext)==null?void 0:g.consistencyTokenJar)&&this.replace(S,f)};
mQ.prototype.replace=function(f,S){f=_.m(f);for(var B=f.next();!B.done;B=f.next())delete this.tokenJars[B.value.encryptedTokenJarContents];VLj(this,S)};
var VLj=function(f,S){if(S.encryptedTokenJarContents&&(f.tokenJars[S.encryptedTokenJarContents]=S,typeof S.expirationSeconds==="string")){var B=Number(S.expirationSeconds);setTimeout(function(){delete f.tokenJars[S.encryptedTokenJarContents]},B*1E3);
f.cookiesEnabled&&_.JY("CONSISTENCY",S.encryptedTokenJarContents,B,void 0,!0)}};var JHN,zb;JHN=window.location.hostname.split(".").slice(-2).join(".");_.kG=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var f=_.nL("LOCATION_PLAYABILITY_TOKEN");_.nL("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=PQN(this))&&(f=this.localStorage.get("yt-location-playability-token"));f&&(this.locationPlayabilityToken=f,this.mostRecentPosition=void 0)};
_.kG.getInstance=function(){zb=_.U6("yt.clientLocationService.instance");zb||(zb=new _.kG,_.WL("yt.clientLocationService.instance",zb));return zb};
_.kG.prototype.setLocationOnInnerTubeContext=function(f){f.client||(f.client={});if(this.mostRecentPosition)f.client.locationInfo||(f.client.locationInfo={}),f.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),f.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),f.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),f.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)f.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.kG.prototype.handleResponse=function(f){var S;f=(S=f.responseContext)==null?void 0:S.locationPlayabilityToken;f!==void 0&&(this.locationPlayabilityToken=f,this.mostRecentPosition=void 0,_.nL("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=PQN(this))&&this.localStorage.set("yt-location-playability-token",f,15552E3):_.JY("YT_CL",JSON.stringify({loctok:f}),15552E3,JHN,!0))};
var PQN=function(f){return f.localStorage===void 0?new _.s4("yt-client-location"):f.localStorage};
_.kG.prototype.clearLocationPlayabilityToken=function(f){f==="TVHTML5"?(this.localStorage=PQN(this))&&this.localStorage.remove("yt-location-playability-token"):_.oc1("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.kG.prototype.getCurrentPositionFromGeolocation=function(){var f=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Rf"));var S=!1,B=1E4;_.nL("INNERTUBE_CLIENT_NAME")==="MWEB"&&(S=!0,B=15E3);return new Promise(function(G,g){navigator.geolocation.getCurrentPosition(function(b){f.mostRecentPosition=b;G(b)},function(b){g(b)},{enableHighAccuracy:S,
maximumAge:0,timeout:B})})};
_.kG.prototype.createUnpluggedLocationInfo=function(f){var S={};f=f.coords;if(f==null?0:f.latitude)S.latitudeE7=Math.floor(f.latitude*1E7);if(f==null?0:f.longitude)S.longitudeE7=Math.floor(f.longitude*1E7);if(f==null?0:f.accuracy)S.locationRadiusMeters=Math.round(f.accuracy);return S};
_.kG.prototype.createLocationInfo=function(f){var S={};f=f.coords;if(f==null?0:f.latitude)S.latitudeE7=Math.floor(f.latitude*1E7);if(f==null?0:f.longitude)S.longitudeE7=Math.floor(f.longitude*1E7);return S};var vaX=function(){};
_.e=vaX.prototype;
_.e.JSC$11056_getRequest=function(f,S,B){S=S===void 0?{}:S;B=B===void 0?yYv:B;var G=S;if(this.isNavigationCommand()){var g,b=(g=_.H(f==null?void 0:f.commandMetadata,_.oD))==null?void 0:g.url;G=_.XlV(f.clickTrackingParams,!0,!1,b,this.JSC$11056_getClientScreen(G))}else G=_.XlV(f.clickTrackingParams,!1,this.includeCsn);G={context:G};if(g=this.getExtension(f))return this.JSC$11056_buildRequest(G,g,S),g=this.getApiUrl(f),b=Object.assign({},{command:f},this.getRequestConfig(f,S)),G={input:g,requestShell:M5(g),
innerTubeRequest:G,config:b},G.config.authStrategy?G.config.authStrategy.identity=B:G.config.authStrategy={identity:B},(f=this.JSC$11056_getRequestKey(f,S))&&!G.config.requestKey&&(G.config.requestKey=f),G;f=new _.dO("Error: Failed to create Request from Command.",f);_.xH(f)};
_.e.getApiUrl=function(f){var S=_.lC(this.getApiPaths(f)),B;(f=(B=_.H(f.commandMetadata,_.oD))==null?void 0:B.apiUrl)&&(S=f);return MA1(NXG(S))};
_.e.isNavigationCommand=function(){return!1};
_.e.JSC$11056_getClientScreen=function(){};
_.e.JSC$11056_getRequestKey=function(){};
_.e.getRequestConfig=function(){};
_.y3.Object.defineProperties(vaX.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var Rv=function(){};
_.q(Rv,vaX);Rv.prototype.JSC$11063_getStoreKey=function(){};
Rv.prototype.JSC$11056_getRequestKey=function(f,S){S=S===void 0?{}:S;return this.JSC$11063_getStoreKey(f,S)};var dum;_.Xw=function(f,S,B){var G=B&&B>0?B:0;B=G?Date.now()+G*1E3:0;if((G=G?(0,_.KYm)():dum())&&window.JSON){typeof S!=="string"&&(S=JSON.stringify(S,void 0));try{G.set(f,S,B)}catch(g){G.remove(f)}}};
_.wQ=function(f){var S=dum(),B=(0,_.KYm)();if(!S&&!B||!window.JSON)return null;try{var G=S.get(f)}catch(g){}if(typeof G!=="string")try{G=B.get(f)}catch(g){}if(typeof G!=="string")return null;try{G=JSON.parse(G,void 0)}catch(g){}return G};
_.hi=function(f){try{var S=dum(),B=(0,_.KYm)();S&&S.remove(f);B&&B.remove(f)}catch(G){}};
_.KYm=_.i4(function(){try{var f=new m5N;var S=f.isAvailable()?f:null}catch(B){return null}return S?new _.gi(S):null});
dum=_.i4(function(){var f=new zSQ;return f.isAvailable()?new _.gi(f):null});var Tq=new _.Sn("ENTITY_STATE_TOKEN"),Tb=new _.Sn("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var itm=XMLHttpRequest.prototype.fetch,Htm=itm&&itm.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!ay?!0:!1;var Ji=function(f){this.JSC$11068_storeWithEntities=f};
_.q(Ji,Rv);_.e=Ji.prototype;_.e.getApiPaths=function(){return C_v};
_.e.getExtension=function(f){return _.H(f,_.t2)||_.H(f,_.QW)||_.H(f,C6m)};
_.e.isNavigationCommand=function(){return!0};
_.e.JSC$11063_getStoreKey=function(f){if((_.K("kevlar_cache_on_ttl_player")||_.K("mweb_enable_shorts_innertube_player_prefetch")||_.K("mweb_use_new_history_manager")||_.K("web_shorts_prefetch_service_enabled"))&&(f=this.getExtension(f))&&f.videoId){var S={videoId:f.videoId};f.playlistId&&(S.playlistId=f.playlistId);f.playerParams&&(S.params=f.playerParams);return _.ZT("player",S)}};
_.e.JSC$11056_getClientScreen=function(f){var S;return((S=f.contentPlaybackContext)==null?void 0:S.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.e.JSC$11056_buildRequest=function(f,S,B){if(_.K("enable_interstitial_entity_check")){var G=this.JSC$11068_storeWithEntities;if(S.videoId)for(var g=_.m(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),b=g.next();!b.done;b=g.next()){b=b.value;var z;var X=void 0,w=void 0,F=S.videoId,V=b;(z=G)?(F=_.XV(F+V,"interstitialInteractionStateEntity"),z=(X=(w=_.w9(z.getState().entities,"interstitialInteractionStateEntity",F))==null?void 0:w.primaryButtonClicked)!=null?X:!1):z=!1;if(z)switch(b){case "CONTENT_CHECK_REQUIRED":S.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":S.racyCheckOk=!0}}}S.videoId&&(f.videoId=S.videoId);S.playlistId&&(f.playlistId=S.playlistId);S.index!==void 0&&(f.playlistIndex=S.index+1);S.playerParams&&(f.params=S.playerParams);"startTimeSeconds"in S&&S.startTimeSeconds&&(_.K("enable_player_request_builder_start_time_floor")?f.startTimeSecs=Math.floor(S.startTimeSeconds):f.startTimeSecs=S.startTimeSeconds);B.contentPlaybackContext&&(f.playbackContext={contentPlaybackContext:B.contentPlaybackContext});B.prefetchPlaybackContext&&
(f.playbackContext=Object.assign({},f.playbackContext,{prefetchPlaybackContext:B.prefetchPlaybackContext}),f.context.request||(f.context.request={}),f.context.request.isPrefetch=!0);f.playbackContext||(f.playbackContext={});G=FYg();f.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!G,supportXhr:Htm};B.overrideMutedAtStart&&(f.overrideMutedAtStart=B.overrideMutedAtStart);f.racyCheckOk=!!S.racyCheckOk;f.contentCheckOk=!!S.contentCheckOk;!_.K("captions_prefs_killswitch")&&(B=(B=_.wQ("yt-player-caption-language-preferences"))?
B:[],B==null?0:B.length)&&(f.captionParams={viewerSelectedCaptionLangs:B})};
_.e.getRequestConfig=function(f){f=this.JSC$11063_getStoreKey(f);var S;f&&(S={storeStrategy:{storeKey:f}});_.K("web_log_player_watch_next_ticks")&&(S=S||{},S.requestTick="ps_s",S.responseTick="ps_r");return S};
Ji[oN]=[Tq];var P4=function(){};
_.q(P4,Rv);_.e=P4.prototype;_.e.getApiPaths=function(){return JWN};
_.e.getExtension=function(f){return _.H(f,_.t2)};
_.e.isNavigationCommand=function(){return!0};
_.e.JSC$11063_getStoreKey=function(f){if((f=this.getExtension(f))&&f.videoId){var S={videoId:f.videoId};f.playlistId&&(S.playlistId=f.playlistId);f.index&&(S.index=f.index);f.params&&(S.params=f.params);return _.ZT("next",S)}};
_.e.JSC$11056_getClientScreen=function(f){var S;return((S=f.contentPlaybackContext)==null?void 0:S.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.e.JSC$11056_buildRequest=function(f,S,B){S.videoId&&(f.videoId=S.videoId);S.playlistId&&(f.playlistId=S.playlistId);S.params&&(f.params=S.params);S.index!==void 0&&(f.playlistIndex=S.index);f.racyCheckOk=!(!B.racyCheckOk&&!S.racyCheckOk);f.contentCheckOk=!!S.contentCheckOk;B.contentPlaybackContext&&(f.autonavState=B.contentPlaybackContext.autonavState,f.playbackContext={vis:B.contentPlaybackContext.vis,lactMilliseconds:B.contentPlaybackContext.lactMilliseconds});B.prefetchPlaybackContext&&(f.context.request||
(f.context.request={}),f.context.request.isPrefetch=!0);_.K("captions_hats_killswitch")||(S=_.K2().getFlag(65),S=S!=null?!S:!1,B=!!_.wQ("yt-player-sticky-caption"),f.captionsRequested=S&&B)};
_.e.getRequestConfig=function(f){f=this.JSC$11063_getStoreKey(f);var S;f&&(S={storeStrategy:{storeKey:f}});_.K("web_log_player_watch_next_ticks")&&(S=S||{},S.requestTick="wn_s",S.responseTick="wn_r");return S};
var v4=function(){};
_.q(v4,Rv);v4.prototype.getApiPaths=function(){return JWN};
v4.prototype.getExtension=function(f){return _.H(f,_.p9)};
v4.prototype.JSC$11056_buildRequest=function(f,S){S.token&&(f.continuation=S.token)};var K5=function(f,S){this.playerRequestBuilder=f;this.watchNextRequestBuilder=S};
_.q(K5,Rv);K5.prototype.getApiPaths=function(){return jvj};
K5.prototype.getExtension=function(f){return _.H(f,_.t2)};
K5.prototype.isNavigationCommand=function(){return!0};
K5.prototype.JSC$11056_buildRequest=function(f,S,B){f.playerRequest={};this.playerRequestBuilder.JSC$11056_buildRequest(f.playerRequest,S,B);_.K("web_streaming_watch")&&(f.watchNextRequest={},this.watchNextRequestBuilder.JSC$11056_buildRequest(f.watchNextRequest,S,B))};
K5[oN]=[Ji,P4];var qr8;_.dQ=new _.Sn("SHORTS_CONTROLLER_TOKEN");qr8=new _.Sn("SHORTS_STATE_STORE_TOKEN");var i_=function(f,S){var B=_.qb.apply(2,arguments);f=f===void 0?0:f;_.dO.call(this,S,B);this.errorType=f;Object.setPrototypeOf(this,this.constructor.prototype)};
_.q(i_,_.dO);var $uL,QAm,rH1,uWW,t9,X$Q,Eai,xuN,Iy8,na$,k0$;$uL=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(f){return f+"="}).join("|"));
QAm=RegExp(".*\\?.*playnext=1.*");_.H4=function(f,S,B,G){this.watchEndpointMap=f;this.reelWatchEndpointMap=S;this.innerTubeTransportService=B;this.fetchPbj=G};
rH1=function(f,S,B){var G=_.oy().resolve(_.fN(YrN));_.H4.instance=new _.H4(f,S,B,G)};
_.jA6=function(f,S){var B=_.Gt("web_pbj_log_warning_rate",0);B=B>0&&Math.random()<B;var G;if((G=_.H(S.commandMetadata,_.oD))==null||!G.rootVe)return B&&_.Lg(Error("Tf")),!1;var g;G=(g=_.H(S.commandMetadata,_.oD))==null?void 0:g.url;if(!G)return B&&_.Lg(Error("Uf")),!1;if(QAm.test(G))return!0;if($uL.test(G))return B&&_.Lg(Error("Vf`"+G)),!1;if(_.H(S,_.t2)){if(!(f.watchEndpointMap.watchNext&&f.watchEndpointMap.player||_.K("kevlar_fetch_initial_data_op_watch_client")))return B&&_.Lg(Error("Mf")),!1;
f=_.Gt("web_pbj_log_warning_rate",0);f=f>0&&Math.random()<f;_.H(S,_.t2)?lC1(S)?S=!0:(f&&_.Lg(Error("Nf")),S=!1):(f&&_.Lg(Error("Mf")),S=!1);return S}if(_.H(S,_.QW))return ff1(S);if(_.H(S,_.s2))return!0;f=_.t3(f.innerTubeTransportService,S);!f&&B&&_.xH(Error("Wf"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(S)});return f};
uWW=function(f,S,B,G,g,b){S={url:S};if(B==null?0:B.itct)S.parentTrackingParams=B.itct;var z=_.lC(yii);return _.sX(f.innerTubeTransportService,S,z).then(function(X){(X=X.endpoint)||(X=_.vn);(B==null?0:B.itct)&&X&&!X.trackingParams&&(X.trackingParams=B.itct);var w=qo(X);return t9(f,X,B,G,w,g,b)})};
t9=function(f,S,B,G,g,b,z,X){X=X===void 0?{}:X;if(f.fetchPbj&&!_.jA6(f,S)&&!_.K("force_one_platform")){X=f.fetchPbj(S);var w=_.wh(X.then(function(M){if(!M)throw Error("Xf");z(w)||b(S,M);return M}));
return w}var F,V,J={rootVe:(F=_.H(S.commandMetadata,_.oD))==null?void 0:F.rootVe,url:(V=_.H(S.commandMetadata,_.oD))==null?void 0:V.url,endpoint:S,page:g};if(_.H(S,_.t2)){var P,d={contentPlaybackContext:_.ja(B,(P=_.H(S.commandMetadata,_.oD))==null?void 0:P.url,G)},Q=_.aa();_.K("web_streaming_watch")&&window.TextDecoderStream?(X=OtN(f.innerTubeTransportService,S,d,function(M){!J.response&&M.content&&(J.response=M.content);!J.playerResponse&&M.player&&(J.playerResponse=M.player);b(S,J)}),F=Z8N(S),F.length&&
(J.preconnect=F,b(S,J)),xuN(X,Q,J).catch(function(M){M instanceof i_&&M.errorType===2&&Eai(f,S,d,J,b,z,Q)})):Eai(f,S,d,J,b,z,Q);
return Q.promise}if(_.H(S,_.QW)){var x;if(((x=_.H(S,_.QW))==null?void 0:x.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var E=_.aa();_.LYX(_.oy().resolve(_.dQ),S).then(function(M){k0$(f,B,G,g,b,E,M)});
return E.promise}X=_.wh();var U;F={contentPlaybackContext:_.ja(B,(U=_.H(S.commandMetadata,_.oD))==null?void 0:U.url,G)};(U=f.reelWatchEndpointMap.player)&&(U=U().JSC$11056_getRequest(S,F))&&(X=_.sX(f.innerTubeTransportService,U.innerTubeRequest,U.input,S.clickTrackingParams,U.config));U=_.wh();(V=f.reelWatchEndpointMap.reelItemWatch)&&(V=V().JSC$11056_getRequest(S))&&(U=_.sX(f.innerTubeTransportService,V.innerTubeRequest,V.input,S.clickTrackingParams,V.config));V=_.wh();(P=f.reelWatchEndpointMap.reelWatchSequence)&&
_.H(S,_.QW).sequenceParams&&(F=P().JSC$11056_getRequest(S,F))&&(V=_.sX(f.innerTubeTransportService,F.innerTubeRequest,F.input,S.clickTrackingParams,F.config));F=_.wh(J);P=_.aa();na$(S,F,X,U,V,b,z,P);return P.promise}var A;if(_.H(S,aCN)&&((A=_.H(S.commandMetadata,_.oD))==null?0:A.url))return X=zk1(_.NR(jr().location.href),_.NR(_.H(S.commandMetadata,_.oD).url)).toString(),uWW(f,X,B,G,b,function(){return!1});
if(_.H(S,_.s2))return b(S,J),_.wh(J);if(_.t3(f.innerTubeTransportService,S)){X=Object.assign({},{tempData:B,disableCache:B.disableCache},X);var t=_.uF(f.innerTubeTransportService,S,X).then(function(M){J.response=M;z(t)||b(S,J);return J});
return t}return _.wh(J)};
_.DuL=function(f,S,B,G){if(_.H(S,_.t2)||_.H(S,_.QW)&&(_.K("mweb_enable_shorts_innertube_player_prefetch")||_.K("kevlar_enable_shorts_prefetch_in_sequence"))||_.H(S,C6m)&&_.K("web_enable_prefetching_videos_on_home")){var g,b={contentPlaybackContext:_.ja(B,(g=_.H(S.commandMetadata,_.oD))==null?void 0:g.url,G),prefetchPlaybackContext:G71(B)},z,X,w;if(((z=_.H(S,_.t2))==null?void 0:(X=z.watchEndpointSupportedPrefetchConfig)==null?void 0:(w=X.prefetchHintConfig)==null?void 0:w.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(B=
f.watchEndpointMap.watchNext)if(b=B().JSC$11056_getRequest(S,b))return Promise.resolve(_.sX(f.innerTubeTransportService,b.innerTubeRequest,b.input,void 0,b.config).then(function(J){return J}))}else if(_.H(S,_.QW)&&_.K("web_prefetch_riw_for_next_video")){if(B=f.reelWatchEndpointMap.reelItemWatch)if((B=B().JSC$11056_getRequest(S,b))&&_.sX(f.innerTubeTransportService,B.innerTubeRequest,B.input,void 0,B.config).then(function(J){return J}),B=f.reelWatchEndpointMap.player)if(b=B().JSC$11056_getRequest(S,
b))return Promise.resolve(_.sX(f.innerTubeTransportService,b.innerTubeRequest,b.input,void 0,b.config).then(function(J){return J}))}else if(B=f.watchEndpointMap.player)if(b=B().JSC$11056_getRequest(S,b))return Promise.resolve(_.sX(f.innerTubeTransportService,b.innerTubeRequest,b.input,void 0,b.config).then(function(J){return J}))}else if(_.t3(f.innerTubeTransportService,S)){var F={tempData:B},V=sAv(f.innerTubeTransportService,S);
return V?new Promise(function(J,P){var d,Q;return _.R(function(x){if(x.nextAddress==1)return _.h(x,V,2);if(x.nextAddress!=4)return d=x.yieldResult,d.JSC$11063_getStoreKey(S,F)?_.h(x,_.uF(f.innerTubeTransportService,S,F),4):(P(new _.dO("Prefetching request builder with no store key.",S)),x.jumpTo(0));Q=x.yieldResult;J(Q);_.TT(x)})}):Promise.reject(new _.dO("Prefetching unregistered request builder.",S))}return Promise.reject(new _.dO("No request builder available to prefetch endpoint.",S))};
X$Q=function(f,S){var B,G,g;if(_.H(S,_.t2)){var b=f.watchEndpointMap.watchNext;b&&(B=b());(f=f.watchEndpointMap.player)&&(G=f())}else if(_.H(S,_.QW))(b=f.reelWatchEndpointMap.reelItemWatch)&&(B=b()),(b=f.reelWatchEndpointMap.player)&&(G=b()),(f=f.reelWatchEndpointMap.reelWatchSequence)&&(g=f());else{a:{f=yUj(S,f.innerTubeTransportService.endpointMap);if(f!==void 0)if(typeof f.then==="function")_.xH(new _.dO("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",S));else break a;
f=void 0}f&&(B=f)}var z,X,w;return{content:(z=B)==null?void 0:z.JSC$11063_getStoreKey(S),player:(X=G)==null?void 0:X.JSC$11063_getStoreKey(S),reelSequence:(w=g)==null?void 0:w.JSC$11063_getStoreKey(S)}};
Eai=function(f,S,B,G,g,b,z){var X=_.wh(),w=f.watchEndpointMap.player;_.K("web_streaming_player")&&(w=r3(K5));w&&(w=w().JSC$11056_getRequest(S,B))&&(X=_.sX(f.innerTubeTransportService,w.innerTubeRequest,w.input,S.clickTrackingParams,w.config));w=_.wh();var F=f.watchEndpointMap.watchNext;F&&(B=F().JSC$11056_getRequest(S,B))&&(w=_.sX(f.innerTubeTransportService,B.innerTubeRequest,B.input,S.clickTrackingParams,B.config));f=_.wh(G);Iy8(S,f,X,w,g,b,z)};
xuN=function(f,S,B){return _.R(function(G){if(G.nextAddress==1)return _.h(G,f,2);S.resolve(B);_.TT(G)})};
Iy8=function(f,S,B,G,g,b,z){var X,w,F,V,J;_.R(function(P){switch(P.nextAddress){case 1:return _.h(P,S,2);case 2:X=P.yieldResult;if(b(z.promise))return z.resolve(X),P.return();g(f,X);w=Z8N(f);if(!w.length){P.jumpTo(3);break}return _.h(P,S,4);case 4:X.preconnect=w,g(f,X);case 3:return _.zT(P,5),_.h(P,B,7);case 7:F=P.yieldResult;_.CN(P,6);break;case 5:return V=_.hm(P),z.reject(V),P.return();case 6:if(F===void 0)return X.reload=!0,g(f,X),z.resolve(X),P.return();if(b(z.promise))return z.resolve(X),P.return();
X.playerResponse=F;g(f,X);_.zT(P,8);return _.h(P,G,10);case 10:J=P.yieldResult;_.CN(P,9);break;case 8:_.hm(P);case 9:if(J===void 0)return X.response={responseContext:{}},z.resolve(X),P.return();if(b(z.promise))return z.resolve(X),P.return();X.response=J;g(f,X);z.resolve(X);_.TT(P)}})};
na$=function(f,S,B,G,g,b,z,X){var w,F,V,J,P,d;_.R(function(Q){switch(Q.nextAddress){case 1:return _.h(Q,S,2);case 2:w=Q.yieldResult;if(z(X.promise))return X.resolve(w),Q.return();b(f,w);F=Z8N(f);if(!F.length){Q.jumpTo(3);break}return _.h(Q,S,4);case 4:w.preconnect=F,b(f,w);case 3:return _.zT(Q,5),_.h(Q,B,7);case 7:V=Q.yieldResult;_.CN(Q,6);break;case 5:return J=_.hm(Q),X.reject(J),Q.return();case 6:if(V===void 0)return w.reload=!0,b(f,w),X.resolve(w),Q.return();if(z(X.promise))return X.resolve(w),
Q.return();w.playerResponse=V;b(f,w);_.zT(Q,8);return _.h(Q,G,10);case 10:P=Q.yieldResult;_.CN(Q,9);break;case 8:_.hm(Q);case 9:if(P===void 0)return w.response={responseContext:{}},X.resolve(w),Q.return();if(z(X.promise))return X.resolve(w),Q.return();w.response=P;b(f,w);_.zT(Q,11);return _.h(Q,g,13);case 13:d=Q.yieldResult;_.CN(Q,12);break;case 11:_.hm(Q);case 12:if(z(X.promise))return X.resolve(w),Q.return();w.reelWatchSequenceResponse=d;b(f,w);X.resolve(w);_.TT(Q)}})};
k0$=function(f,S,B,G,g,b,z){var X,w,F,V,J,P;_.R(function(d){if((X=z)==null||!X.replacementEndpoint)return b.reject(),d.return();w=z.replacementEndpoint;(F=_.H(w,_.QW))?(z.sequenceContinuation&&(F.sequenceParams=z.sequenceContinuation),V=_.oy().resolve(_.dQ),J=F.sequenceParams,UuL(V,w)&&delete F.sequenceParams,P=t9(f,w,S,B,G,g,function(){return!1}),P.then(function(Q){return _.R(function(x){if(x.nextAddress==1)return CQg(V,{reelWatchEndpoint:{sequenceParams:J}},Q),_.h(x,0,2);
b.resolve(Q);_.TT(x)})})):b.reject();
_.TT(d)})};_.pxN=function(f){if(f.validatedFragments_.length==0)return null;if(!f.mergedPrefetchedData_){for(var S=[],B=_.m(f.validatedFragments_),G=B.next();!G.done;G=B.next()){G=_.m(f.fragmentConfiguration_[G.value].graftedKeys);for(var g=G.next();!g.done;g=G.next())(g=f.prefetchedData_[g.value].trackingParams)&&S.push(g)}f.mergedPrefetchedData_={};Object.assign(f.mergedPrefetchedData_,f.prefetchedData_,{clientSideGrafts:S})}return f.mergedPrefetchedData_};var AH6;_.qm=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
AH6=function(f,S,B){if(_.WQN(S))return f.prefetchCache_.get(_.ci1(S,B))};_.$k=new _.Sn("NAVIGATION_TOKEN");var Nn1=function(f){var S=this;var B=B===void 0?TP1():B;var G=G===void 0?_.oy().resolve(_.$k):G;this.onePickCommand=f;this.JSC$11166_playlistNetworkManager=B;this.navigationManager=G;this.videoPickerBuilder=_.wl1("yt-addtoplaylist");_.Rv7(BON(GtN(SZ8(this.videoPickerBuilder.setTitle(f.modalTitle).setSize(1E3).addView(evi()).addView(gp8())).addView("youtube"),f.selectButtonLabel)),function(g){S.handleAction(g)})};
Nn1.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
Nn1.prototype.handleAction=function(f){var S=this;if(f&&this.onePickCommand.listId&&f.action==="picked"&&f.docs){var B=[];f.docs.forEach(function(G){B.push({addedVideoId:G.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$11166_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,B).then(function(){_.K("playlist_add_video_hard_reload_killswitch")?S.navigationManager.reload():MLo(S.navigationManager)})}};var Zt7=function(){if(this.constructor===Zt7)throw new TypeError("Yf");};
_.e=Zt7.prototype;_.e.dispose=function(){};
_.e.disconnect=function(){};
_.e.reconnect=function(){};
_.e.observe=function(f,S,B){return{element:f,option:B}};
_.e.unobserveByKey=function(){};var F$K=function(f,S){S=S===void 0?0:S;Zt7.call(this);this.viewroot=f;this.defaultPrescanHeight=S;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),f?{root:f,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.q(F$K,Zt7);_.e=F$K.prototype;_.e.dispose=function(){this.disconnect();this.handlers.clear()};
_.e.disconnect=function(f){this.isConnected=!1;this.pauseObservingUntilReconnect=f===void 0?!1:f;this.observer.disconnect();f=_.m(this.prescanObservers.values());for(var S=f.next();!S.done;S=f.next())S.value.disconnect()};
_.e.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var f=_.m(this.handlers),S=f.next();!S.done;S=f.next()){var B=_.m(S.value);S=B.next().value;var G=B.next().value;B=!1;G=_.m(G.keys());for(var g=G.next();!g.done;g=G.next())if((g=g.value)&&g.state==="prescan"){B=!0;break}B&&tLm(this,S).observe(S);this.observer.observe(S)}}};
_.e.handleObserveEvent=function(f){f=_.m(f);for(var S=f.next();!S.done;S=f.next()){S=S.value;var B=this.handlers.get(S.target);if(B){var G=S.isIntersecting;B=_.m(B);for(var g=B.next();!g.done;g=B.next()){var b=_.m(g.value);g=b.next().value;b=b.next().value;g&&(g.state==="visible"&&G||g.state==="hidden"&&!G)&&(b(S.target,g.state),g.calledOnce&&this.unobserveByKey({element:S.target,option:g}))}}}};
_.e.handlePrescanEvent=function(f){f=_.m(f);for(var S=f.next();!S.done;S=f.next()){S=S.value;var B=this.handlers.get(S.target);if(B&&S.isIntersecting){B=_.m(B);for(var G=B.next();!G.done;G=B.next()){var g=_.m(G.value);G=g.next().value;g=g.next().value;G&&G.state==="prescan"&&(g(S.target,G.state),G.calledOnce&&this.unobserveByKey({element:S.target,option:G}))}}}};
_.e.observe=function(f,S,B){var G=(G=this.handlers.get(f))&&G.has(B)?{element:f,option:B}:void 0;if(G)return G;G={element:f,option:B};this.handlers.has(f)||this.handlers.set(f,new Map);var g=this.handlers.get(f);g&&!g.has(B)&&g.set(B,S);this.pauseObservingUntilReconnect||(B.state==="prescan"&&tLm(this,f).observe(f),this.observer.observe(f));return G};
_.e.unobserveByKey=function(f){var S=this.handlers.get(f.element);if(S&&S.has(f.option)){S.delete(f.option);if(f&&f.option.state==="prescan")for(var B=_.m(this.prescanObservers.values()),G=B.next();!G.done;G=B.next())G.value.unobserve(f.element);S.size===0&&(this.handlers.delete(f.element),this.observer.unobserve(f.element))}};
var tLm=function(f,S){var B=f.defaultPrescanHeight;S.hasAttribute("prescan-height")&&(S=Number(S.getAttribute("prescan-height")),isNaN(S)||(B=S));if(f.prescanObservers.has(B))return f.prescanObservers.get(B);S="-0.1px -0.1px "+B+"px -0.1px";S=new IntersectionObserver(f.handlePrescanEvent.bind(f),f.viewroot?{root:f.viewroot,rootMargin:S}:{rootMargin:S});f.prescanObservers.set(B,S);return S};var utX=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],ay7=function(){var f,S=this;this.JSC$11183_actionRouter=f=f===void 0?_.AE.getInstance():f;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return S.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return S.visibilityObservedElementHandlerKeys}}},yHN,cH$,oML;
ay7.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.K("kevlar_use_vimio_behavior")&&_.nL("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=Vy1())};
ay7.prototype.dispose=function(){this.visibilityMonitor&&_.qM(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
ay7.prototype.handleVisibilityRefreshed=function(){for(var f=_.m(this.targetMap.entries()),S=f.next();!S.done;S=f.next()){var B=_.m(S.value);S=B.next().value;B=B.next().value;_.WYL(this,S,B)}};
_.fD8=function(f,S,B){cH$(f,B);var G=_.lyX(f,S);G.element=B;f.targetedElements.set(B,S);_.WYL(f,S,G)};
cH$=function(f,S){var B=f.targetedElements.get(S);if(B){var G=f.targetMap.get(B);G&&(delete G.element,f.targetMap.set(B,G));f.targetedElements.delete(S);f.visibilityObserver&&f.visibilityObservedElementHandlerKeys&&(B=f.visibilityObservedElementHandlerKeys.get(S))&&(f.visibilityObserver.unobserveByKey(B),f.visibilityObservedElementHandlerKeys.delete(S))}};
_.WYL=function(f,S,B){var G=B.action,g=B.element;g&&G&&(utX.includes(S)||_.nL("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||f.visibilityMonitor&&f.visibilityMonitor.isNodeVisible(g)?oML(f,S,B):f.visibilityObserver&&(f.visibilityObservedElementHandlerKeys||(f.visibilityObservedElementHandlerKeys=new WeakMap),G=f.visibilityObserver.observe(g,function(){oML(f,S,B);f.visibilityObservedElementHandlerKeys.delete(g)},{calledOnce:!0,
state:"visible"}),f.visibilityObservedElementHandlerKeys.set(g,G)))};
oML=function(f,S,B){var G=B.action;(B=B.element)&&G&&(_.sc(f.JSC$11183_actionRouter,[G],B),f.targetMap.delete(S),f.targetedElements.delete(B),f.triggeredTargets.add(S))};
_.lyX=function(f,S){var B=f.targetMap.get(S);B||(B={},f.targetMap.set(S,B));return B};
_.Qh=function(){yHN||(yHN=new ay7);return yHN};var SwL=document.createElement("div");SwL.style.touchAction="pan-down";var JWA=SwL.style.touchAction==="pan-down";var BKg,Gfm;BKg=function(){this.hammerFn=oei();this.JSC$11191_screenManager=_.ik();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.Eo(83615);_.wY(this.JSC$11191_screenManager,this.ve);P3N()};
_.Yk=function(){Gfm||(Gfm=new BKg);return Gfm};
BKg.prototype.registerTouchEvents=function(f,S,B){var G=_.qb.apply(3,arguments),g=this.hammerFn(f,{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}]]});B&&g.set({touchAction:B});this.nodeManagerMapping.set(f,g);var b=
vNM(S);G=_.m(G);for(var z=G.next();!z.done;z=G.next()){z=z.value;if(z.includes("swipe")||z.includes("pinch")||z.includes("pan"))z.includes("swipe")?g.get("swipe").set({enable:!0,direction:b,velocity:.2}):z.includes("pinch")?g.get("pinch").set({enable:!0}):z.includes("pan")&&(g.get("pan").set({enable:!0,direction:b}),g.get("swipe").set({enable:!0,direction:b,velocity:.2}),g.get("swipe").recognizeWith("pan"));gMm(this,f,g,z)}};
var gMm=function(f,S,B,G){B.on(G,function(g){if(G.includes("pinch"))f.lastPinchTime=Date.now();else if(G.includes("swipe")&&Date.now()-f.lastPinchTime<400)return;g.pointerType!=="mouse"&&(g=G==="doubletap"?{coordinates:g.center}:G.includes("pan")?g:G.includes("swipe")?{target:g.target}:{},S.dispatchEvent(new CustomEvent(G,{bubbles:!0,composed:!0,detail:g})))})};
BKg.prototype.unregisterTouchEvents=function(f){var S=_.qb.apply(1,arguments),B=this.nodeManagerMapping.get(f);if(B){S=_.m(S);for(var G=S.next();!G.done;G=S.next())B.off(G.value);this.nodeManagerMapping.delete(f);f.style.touchAction="unset"}};var eR7=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var K$N=null;var bpj=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},If1=function(){bpj.instance||(bpj.instance=new bpj);
return bpj.instance},Uf9=function(f){var S=f.networkEvents;
f.networkEvents=[];return _.K("enable_network_monitoring")?S:[]};var myj;myj={};_.zRX=la("yt-serviceworker-metadata",{objectStores:(myj.auth={addedAtVersion:1},myj["resource-manifest-assets"]={addedAtVersion:2},myj),shared:!0,upgrade:function(f,S){S(1)&&IJ(f,"resource-manifest-assets");S(2)&&IJ(f,"auth")},
version:2});var Q5W=self.location.origin+"/";Y01([/\.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\//]);Y01([/purge_shell=1/]);var RRN=void 0;RRN=RRN===void 0?[]:RRN;for(var Xmi=[],wmN=_.m(AYm),hR$=wmN.next();!hR$.done;hR$=wmN.next())Xmi.push({key:hR$.value});for(var TK8=_.m(RRN),F_m=TK8.next();!F_m.done;F_m=TK8.next())Xmi.push(F_m.value);var Vcv,Ie=_.S1==null?void 0:(Vcv=_.S1.performance)==null?void 0:Vcv.memory,OVK=!1,C3W={},L$Q={},Ut={},Cn=navigator;var rQ=function(f){this.JSC$11235_expiringStorage=new HL(f)};
rQ.prototype.set=function(f,S,B){B=B!==void 0?Date.now()+B:void 0;this.JSC$11235_expiringStorage.set(f,S,B)};
rQ.prototype.get=function(f){return this.JSC$11235_expiringStorage.get(f)};
rQ.prototype.remove=function(f){this.JSC$11235_expiringStorage.remove(f)};var afM=_.f4(["https://www.youtube.com/",""]),yW1=_.f4(["https://studio.youtube.com/",""]),oPN="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",cWN=null,e9M;var Jkg=_.f4(["https://www.youtube.com/iframe_api"]),jj=function(){this.playerResolver_=_.aa();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.d8;this.playbackDurationSeconds_=0},Pbm=function(f){var S=function(){return window.YT&&typeof window.YT.ready==="function"};
if(S())return _.wh(window.YT);var B=_.aa(),G=_.Ja("SCRIPT");G.onload=G.onreadystatechange=function(){G.readyState&&G.readyState!="loaded"&&G.readyState!="complete"||(G.onload=_.d8,G.onreadystatechange=_.d8,G.onerror=_.d8,S()?B.resolve(window.YT):B.reject(new _.dO("Failed to load the iframe player library","script.onload",G.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
G.onerror=function(g){G.onload=_.d8;G.onreadystatechange=_.d8;G.onerror=_.d8;B.reject(new _.dO("Failed to load the iframe player library","script.onerror",g&&g.target&&g.target.src))};
_.CC(G,_.Sr(Jkg));f.insertBefore(G,f.firstChild);return B.promise},vM6=function(f,S,B){var G,g;
_.R(function(b){switch(b.nextAddress){case 1:return f.playbackEndedCallback_=B,_.zT(b,2),_.h(b,Pbm(S.parentElement||null),4);case 4:G=b.yieldResult;_.CN(b,3);break;case 2:return g=_.hm(b),g instanceof _.dO&&g.args&&g.args[0]=="script.onerror"?_.Lg(g):_.xH(g),b.return();case 3:G.ready(function(){return new G.Player(S,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:f.onPlayerReady_.bind(f),onStateChange:f.onPlayerStateChange_.bind(f),
onCueRangeExit:f.onCueRangeExit_.bind(f)}})}),_.TT(b)}})};
_.e=jj.prototype;_.e.getPlayerPromise=function(){return this.playerPromise_};
_.e.onPlayerReady_=function(f){this.playerResolver_.resolve(f.target)};
_.e.onPlayerStateChange_=function(f){if(f.data==YT.PlayerState.PLAYING){f=f.target;var S=f.getCurrentTime();f.addCueRange("playback",S,S+this.playbackDurationSeconds_)}};
_.e.onCueRangeExit_=function(f){f.data=="playback"&&(f.target.stopVideo(),this.playbackEndedCallback_())};
_.e.stopVideo=function(){this.playerPromise_.then(function(f){f.stopVideo()})};
var K_X=function(f){f.playerVars_&&f.playerPromise_.then(function(S){typeof S.cueVideoByPlayerVars!="function"?_.Lg(new _.dO("vmh: player API not ready","cueVideoByPlayerVars",typeof S.cueVideoByPlayerVars)):S.cueVideoByPlayerVars(f.playerVars_)})};
jj.prototype.playVideo=function(){var f=this;this.playerVars_&&this.playerPromise_.then(function(S){typeof S.loadVideoByPlayerVars!="function"?(S=new _.dO("vmh: player API not ready","loadVideoByPlayerVars",typeof S.loadVideoByPlayerVars),_.xH(S)):S.loadVideoByPlayerVars(f.playerVars_)})};
var dyN=function(f,S,B,G,g){S&&(B===void 0&&(B=0),G===void 0&&(G=0),f.playbackDurationSeconds_=G/1E3,f.playerVars_={adformat:"17_8",videoId:S,suggestedQuality:"hd720",startSeconds:B/1E3,player_params:g})};
jj.prototype.mute=function(){this.playerPromise_.then(function(f){f.mute()})};
jj.prototype.unMute=function(){this.playerPromise_.then(function(f){f.unMute()})};var ipN=function(f,S){var B=DT();f||(f="unknown");S||(S="unknown");f="MAIN_APP_WEB_PAGE_TYPE_"+f.toUpperCase();f in DMN||(f="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");S="MAIN_APP_WEB_REQUEST_TYPE_"+S.toUpperCase();S in I27||(S="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.J9(B,{mainAppWeb:{pageType:f,requestType:S,isShellLoad:_.s6("IS_SHELL_LOAD",!1)}})},Hp1={start:function(){_.J9(jtA(),{mainAppWeb:_.ut()})},
success:function(){_.PY(jtA(),"SUCCESS")},
failure:function(){_.PY(jtA(),"FAILURE")},
cancelled:function(){_.PY(jtA(),"CANCELLED")}};var qwi,$y6,TDN;qwi=_.f4(["/sw.js"]);$y6=_.f4(["/sw.js?0"]);_.QCN=_.Sr(qwi);TDN=_.Sr($y6);var YwN=function(){var f=Error.apply(this,arguments);this.message=f.message;"stack"in f&&(this.stack=f.stack)};
_.q(YwN,Error);_.Wt.prototype.load=function(f){this.megabloxUrl_=_.nL("YPC_MB_URL");_.I4(this.megabloxUrl_,(0,_.$A)(function(){f&&f()},this))};
_.BkV=function(f,S,B,G,g,b,z,X,w,F,V){_.VtA(w);f.load((0,_.$A)(function(){try{var J=b?b:_.nL("HL"),P=_.nL("SESSION_INDEX");_.miN("client",function(){WrL("59",{helpCenterPath:"/youtube",locale:J,window:window}).JSC$8020_loadChatSupport({authuser:String(P)})})}catch(d){throw ae(10,V,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),g&&g(d),_.xH(d),d;
}rk$(this,S,B,G,g,b,z,X,w,F,V)},f))};
_.Wt.prototype.openFixFlowDialog=function(f,S,B,G){this.load((0,_.$A)(function(){try{jCL(this,_.U6("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(f).withIntegratorCallback(S).load(B,G)}catch(g){throw _.xH(g),g;}},this))};
var jCL=function(f,S,B,G){var g=S.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.K("enable_window_constrained_buy_flow_dialog")&&(g=g.usingPopupStyle(_.U6("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));G&&(g=g.usingCloseCallback(G));S.bootstrap.fromPaymentsUrl(f.megabloxUrl_);f=S.bootstrap.asMashupMode(g);B=B?B:_.nL("HL");f.usingGaiaIndex(_.nL("SESSION_INDEX")).usingLocale(B).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.K("enable_google_payments_buyflow_material2_style_web")?
f.usingStyle(":m2;pc=#444;ac=#065fd4"):f.usingStyle(":md;pc=#444;ac=#065fd4");return f},rk$=function(f,S,B,G,g,b,z,X,w,F,V){try{var J=_.U6("payments.business.integration");
if(!J)throw new YwN("payments.business.integration is undefined");var P=J.standaloneContextAuthId.forUserId(),d=jCL(f,J,b,function(){PEM(!1);X&&X()});
z&&d.usingServerAnalyticsEventHandler(z);var Q=d.inStandaloneContext(P).buyFlow(function(x){if(x&&(!x.integratorData||x.integratorData===""||x.error))if(x.error!=null)if(String(x.error)==="-1")_.JlT(w);else{var E=String(x.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";ae(10,V,E,x.debugCode);_.yW(E,w,x.debugCode);E=new _.dO("PAYMENT_ERROR_MESSAGE::"+x.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+x.internalErrorDetails);
_.xH(E)}else ae(10,V,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.yW("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",w,"EMPTY_INTEGRATOR_DATA"),_.xH(Error("cg"));B&&(PEM(!1),B(x))}).withEncryptedParameters(S);
F&&Q.withClientParameters(fh9(_.gIQ(F)));Q.load(function(){ae(24,V);_.sL("ttc",void 0,"commerce_transaction");Wb1("commerce_transaction");G&&(PEM(!0),G())},function(x){if(x==null?0:x.debugCode)var E=x==null?void 0:x.debugCode;
else if(!x||(x==null?0:x.debugCode))E="EMPTY_LOAD_FAILURE_ERROR",_.xH(Error(E));else{E="EMPTY_LOAD_FAILURE_DEBUG_CODE";var U=new _.dO("LOAD_FAILURE:"+x.message," DEBUG_CODE:"+E);_.xH(U)}ae(10,V,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",E);_.yW("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",w,E);_.xH(x);g&&g(x)})}catch(x){throw x instanceof YwN&&(ae(10,V,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),g&&g(x)),_.xH(x),x;
}};var OpN;OpN=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.fqV=function(f,S){S=S===void 0?!1:S;f=OpN.test(f)?_.zC(f):null;!S&&window.payments||!f?(f=_.aa(),S=f.promise,f.resolve()):S=_.k11(f,{attributes:{"data-payments-main":"",id:"payment-lib"}});return S};var xyg;xyg=_.f4(["//www.googletagmanager.com/gtm.js?id=",""]);_.Oj=function(f,S){_.gb(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:S}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.nL("GL")}),S=_.Ja("SCRIPT"),S.async=!0,_.CC(S,_.Sr(xyg,f)),S.id="gtm",f=document.getElementsByTagName("script"),f.length==0?document.head.appendChild(S):(f=f[0],f.parentNode.insertBefore(S,f)))};
_.xk=function(f){if(f=JSON.parse(f))window.dataLayer=window.dataLayer||[],window.dataLayer.push(f)};var EMj,L_N;EMj=_.f4(["https://clients2.google.com/gr/gr_sync.js"]);_.cb9=function(){};
_.cb9.prototype.init=function(){if(L_N()){var f=_.aa();f.resolve();return f.promise}return _.k11(_.Sr(EMj)).then(function(){if(!L_N())throw Error("dg");},function(){throw Error("eg");
})};
_.lsM=function(){if(!L_N())return"";var f=window.google.gr;f.init({async:{schedule:"sync"},merchantId:"youtube"});f.start();f=f.finish();return f==null?"":f};
L_N=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.I=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.q(_.I,PolymerFakeBaseClassWithoutHtml);_.dv=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.q(_.dv,PolymerFakeBaseClassWithoutHtml);var vPN=window.ShadyDOM;var f3V,clN,SiG,BEj,gq9,eiM,Ej,bu;f3V=_.K("enable_shadydom_free_scoped_query_methods");clN=_.K("enable_shadydom_free_scoped_node_methods");SiG=_.K("enable_shadydom_free_scoped_readonly_properties_batch_one");BEj=_.K("enable_shadydom_free_parent_node");gq9=_.K("enable_shadydom_free_children");eiM=_.K("enable_shadydom_free_last_child");Ej=window.ShadyDOM;_.wv=Ej&&Ej.noPatch&&Ej.wrap?Ej.wrap:Ej?function(f){return Ej.patch(f)}:function(f){return f};
bu=function(f){if(f instanceof ShadowRoot)this.host=(0,_.wv)(f.host),this.root=f;else if(f.$$){this.host=(0,_.wv)(f);var S;this.root=(S=f.root)!=null?S:this.host}else if(f.polymerController){this.host=(0,_.wv)(f);var B;this.root=(B=this.host.shadowRoot)!=null?B:this.host}else this.root=this.host=(0,_.wv)(f)};
lVV();oqN();bfK();mjM();G5G();var kf8={querySelector:function(f,S){S=dr1(S,ol(f));f=_.Sd(f);return BF(f).prototype.querySelector.call(f,S)},
querySelectorAll:function(f,S){S=dr1(S,ol(f));f=_.Sd(f);return BF(f).prototype.querySelectorAll.call(f,S)}},nM8={appendChild:function(f,S){var B=ol(f),G=_.fP(S);
return _.yls(_.Sd(f),B?_.gv(S,B,G):S)},
cloneNode:function(f,S){var B=_.fP(f);f=_.Sd(f);S=BF(f).prototype.cloneNode.call(f,S);return B?ed(S,B):S},
contains:function(f,S){var B=ol(f),G=_.fP(S);return B!==G?!1:W41(f,S)},
insertBefore:function(f,S,B){var G=ol(f),g=_.fP(S);f=_.Sd(f);S=G?_.gv(S,G,g):S;return BF(f).prototype.insertBefore.call(f,S,B)},
removeChild:function(f,S){var B=ol(f);f=_.Sd(f);S=B?ed(S,B):S;return BF(f).prototype.removeChild.call(f,S)},
replaceChild:function(f,S,B){var G=ol(f),g=_.fP(S);S=G?_.gv(S,G,g):g?ed(S,g):S;B=G?ed(B,G):B;f=_.Sd(f);return BF(f).prototype.replaceChild.call(f,S,B)},
getRootNode:function(f,S){S=S===void 0?{composed:!0}:S;var B;if(((B=S)!=null?B:{}).composed)f=EPT(f);else{S=f;for(f=HRW(f);f;)S=f,f=$r1(f);f=S}return f}},Ri1=SiG?{firstChild:NDx,
nextSibling:CE1,previousSibling:Al9,firstElementChild:MtN,lastElementChild:ttV,nextElementSibling:UrV,previousElementSibling:pXW,childNodes:usx}:{};BEj&&(Ri1.parentNode=IVV);gq9&&(Ri1.children=aV1);eiM&&(Ri1.lastChild=ZRK);f3V&&ziT(kf8);clN&&ziT(nM8);X0M();var w0j=function(f){this.node=f instanceof ShadowRoot?f.host:f};
hiW();TEQ();var JgV=new WeakMap;var vqM=Symbol("wd");var qiK=new Set(["tap","track","down","up"]),$j9=_.K("pbcm_fi_query_decorators");var L5=function(){return _.dv.apply(this,arguments)||this};
_.q(L5,_.dv);_.e=L5.prototype;_.e.getState=function(){return this.store.getState()};
_.e.dispatch=function(f){this.store.dispatch(f)};
_.e.beforeRegister=function(){if(this&&typeof this==="object"){var f;var S=!!this.useSignals||!((f=this.polymerController)==null||!f.useSignals)}else S=!1;if(!S&&this.properties)for(S=_.m(Object.keys(this.properties)),f=S.next();!f.done;f=S.next()){var B=f.value;f=this.properties[B];if(f.selector){if(f.computed)throw Error("kg");B=["reduxPropertiesRecomputeTrigger",'"'+B+'"'].concat(_.$d(f.selectorArgs||[])).join(",");f.computed="recomputeReduxSelector("+B+")"}}};
_.e.attached=function(){var f=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){f.reduxPropertiesRecomputeTrigger++}));
_.K("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.e.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.e.recomputeReduxSelector=function(f,S){var B=_.qb.apply(2,arguments),G=this.properties[S].selector;if(!G)throw Error("ig`"+S);return G.apply(null,[this.store.getState()].concat(_.$d(B)))};
_.e.select=function(f){var S=_.qb.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return f.apply(null,[this.store.getState()].concat(_.$d(S)))};
_.y3.Object.defineProperties(L5.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("jg");}}});
L5.prototype.recomputeReduxSelector=L5.prototype.recomputeReduxSelector;_.N([_.n(),_.Z("design:type",Number)],L5.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.N([_.iu()],L5);var kk=[],j_1={},kb=function(){return cS.apply(this,arguments)||this};
_.q(kb,cS);kb.prototype._addPropertyEffect=function(f,S,B){if(S==="__observeEffects"&&B){var G,g=(G=B.info.method)!=null?G:B.info.methodName;if(g){var b=this[g];this[g]=function(){kk.push(g);try{b==null||b.apply(this,arguments)}finally{kk.pop()}}}}_.qI._addPropertyEffect.apply(this,[f,
S,B])};
kb.prototype._setPendingProperty=function(f,S,B){if(kk.length){var G=kk[kk.length-1],g;(g=j_1[this.is])!=null&&g.has(G)||(OfM(this.is,G),_.jD("polymerPropertyChangedInObserver",{componentName:this.is,observerName:G}))}return _.qI._setPendingProperty.apply(this,[f,S,B])};
_.N([hFN()],kb);var xjN=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),LXW,$b={};_.K("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=$b);var rv=function(){return _.dv.apply(this,arguments)||this};
_.q(rv,_.dv);rv.prototype._setUnmanagedPropertyToNode=function(f,S,B){f.loggingStatus&&(f.loggingStatus.isDeclarativeExternal=!0);if(B!==f[S]||typeof B==="object")f[S]=B;f.is&&f.polymerController&&f.polymerController!==f&&Qg(f.is,S,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");f.loggingStatus&&(f.loggingStatus.isDeclarativeExternal=!1)};
_.N([_.iu()],rv);EqG()&&(sl.prototype._setUnmanagedPropertyToNode=(new rv)._setUnmanagedPropertyToNode);_.uSM={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(f){},set polymerController(f){}}]};var LP=function(){var f=cS.apply(this,arguments)||this;f.json=function(){};
return f};
_.q(LP,cS);LP.prototype.equals=function(f,S){return f===S};
LP.prototype.isEmpty=function(f){return!f||_.W9(f)&&f.length===0};
_.N([hFN()],LP);var sCL=function(f){f=z21(f);Cd.call(this,f)};
_.q(sCL,Cd);sCL.prototype.addProvider=function(f){f=f.key?f:z21([f])[0];var S=this.keyIdToIndex.get(f.key.id);if(S){if(I3W(f,this.providers[S]))throw Error("lg`"+f.key.displayName);}else Cd.prototype.addProvider.call(this,f)};
var Dy1=new sCL([]);var IDL=!1;var MGx={};IDL||(NEW(),IDL=!0);
MGx.InjectBehavior={initializeInjection:function(){var f=this.provide;try{if((f=f!=null?f:[])&&f.length>0)for(var S=z21(f),B=_.m(S),G=B.next();!G.done;G=B.next())Dy1.addProvider(G.value);var g=new Set;UjV(this.behaviors||[],g);S={};for(var b=_.m(g),z=b.next();!z.done;z=b.next()){var X=z.value;X.inject&&Object.assign(S,X.inject)}this.inject&&Object.assign(S,this.inject);for(var w=_.m(Object.keys(S)),F=w.next();!F.done;F=w.next()){var V=F.value,J=S[V];try{this[V]=Dy1.resolve(J)}catch(P){throw P;}}}catch(P){throw Error(P.message);
}}};var tGM;var a3V=/\bclass\b/.test(function(){}.toString()),cgG=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var Uyo=function(f){this.wasDefined=!0;Array.isArray(f)||f instanceof Array?(this.JSC$11364_getImpl=f[0],this.JSC$11364_setImpl=f[1]):this.JSC$11364_getImpl=f};
_.e=Uyo.prototype;_.e.getWithPath=function(f){return oaM(this.JSC$11364_getImpl(),f)};
_.e.setWithPath=function(f,S){var B=this;if(f.length)throw Error("mg");if(!this.JSC$11364_setImpl)throw Error("ng");Kj(function(){B.JSC$11364_setImpl(S)})};
_.e.notifyPath=function(){throw Error("og");};
_.e.notifySplices=function(){throw Error("pg");};
_.e.getChangeRecordSignal=function(f,S){var B=this;if(f.length)throw Error("qg");return function(){var G=B.getWithPath(f);return{path:S!=null?S:"",base:G,value:G}}};
_.e.getSplicesSignal=function(){throw Error("rg");};
_.e.getPathMutationSignal=function(){throw Error("sg");};
_.e.pop=function(){throw Error("tg");};
_.e.push=function(){throw Error("ug");};
_.e.splice=function(){throw Error("vg");};
_.e.unshift=function(){throw Error("wg");};var n5=function(f){var S=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(f)||f instanceof Array?(this.JSC$11369_getImpl=f[0],this.JSC$11369_setImpl=f[1]):this.JSC$11369_getImpl=f;this.wasDefined=!1;wA(function(){S.wasDefined=S.JSC$11369_getImpl()!==void 0})};
n5.prototype.getWithPath=function(f){return oaM(this.JSC$11369_getImpl(),f)};
n5.prototype.setWithPath=function(f,S){var B=this;if(f[f.length-1]!=="*"&&f[f.length-1]!=="splices"){if(f.length===0){if(!this.JSC$11369_setImpl)throw Error("xg");this.wasDefined||(this.wasDefined=S!==void 0);Kj(function(){B.JSC$11369_setImpl(S)})}else{for(var G=wA(function(){return B.getWithPath([])}),g=0;g<f.length-1;g++){if(!G)return;
G=G[f[g]]}g=f[f.length-1];G&&(G[g]=S);this.wasDefined||(this.wasDefined=f.length>1||S!==void 0)}Cbi(this,f,{pathComponents:f,value:S})}};
n5.prototype.notifyPath=function(f,S){f.length===0?S&&this.setWithPath(f,S.value):Cbi(this,f,{pathComponents:f,value:S==null?void 0:S.value,fallbackWhenUndefined:S==null?void 0:S.value})};
var Cbi=function(f,S,B,G){if(f.setMutationSignal){var g=++f.mutationIndex,b=[f.observedPath],z=f.observedPath,X;S.length===0&&(X=z);for(var w=0;w<S.length;w++){var F=z.subPaths[S[w]];if(!F)break;b.push(F);z=F;w===S.length-1&&(X=F)}for(S=!1;b.length;)z=b.shift(),z.data={index:g,mutation:B,spliceMutationIndex:G},S||(S=z===X),S&&b.push.apply(b,_.$d(Object.values(z.subPaths)));Kj(function(){f.setMutationSignal(g)})}};
n5.prototype.notifySplices=function(f,S){var B=this,G=wA(function(){return B.getWithPath(f)}),g=[].concat(_.$d(f),["splices"]);
Cbi(this,g,{pathComponents:g,value:{indexSplices:S}});if(G==null?0:G.length)S=this.mutationIndex,g=[].concat(_.$d(f),["length"]),Cbi(this,g,{pathComponents:g,value:G.length},S)};
var pmL=function(f,S,B,G,g,b){f.notifySplices(B,[{index:G,addedCount:g,removed:b,object:S,type:"splice"}])},Akj=function(f,S){f=f.observedPath;
for(var B=0;B<S.length;B++){var G=S[B],g=f.subPaths[G];g||(g={pathComponents:S.slice(0,B+1),subPaths:{}},f.subPaths[G]=g);f=g}},Mcg=function(f,S,B){Akj(f,S);
if(!f.getMutationSignal){var G=_.m(_.hj(f.mutationIndex,void 0,"HavCgf"));f.getMutationSignal=G.next().value;f.setMutationSignal=G.next().value}var g=f.getMutationSignal;return _.vW(function(){g();return B(NKm(f,S))},void 0,"BYaPo")};
n5.prototype.getChangeRecordSignal=function(f,S){var B=this,G=this.mutationIndex,g;return Mcg(this,f,function(b){if(b&&b.index>G){var z=b.mutation;G=b.index;g=void 0}b=wA(function(){return B.getWithPath(f)});
if(z){var X=z.pathComponents[z.pathComponents.length-1],w=[].concat(_.$d(z.pathComponents));if(X==="splices"||X==="length")return{base:b,path:(S?[S].concat(_.$d(w)):w).join("."),value:z.value};var F=f.length>w.length?f:w,V;return{base:b!=null?b:z.fallbackWhenUndefined,path:(S?[S].concat(_.$d(F)):F).join("."),value:(V=wA(function(){return B.getWithPath(F)}))!=null?V:z.fallbackWhenUndefined}}g||(g={base:b,
path:(S?[S].concat(_.$d(f)):f).join("."),value:b});return g})};
n5.prototype.getSplicesSignal=function(f){var S=this.mutationIndex,B;return Mcg(this,f,function(G){if(G&&G.index>S&&G.spliceMutationIndex!==S){var g=G.mutation;S=G.index;B=void 0}return g&&g.pathComponents[g.pathComponents.length-1]==="splices"?B=G=g.value:B})};
n5.prototype.getPathMutationSignal=function(f){var S=this;Akj(this,f);if(!this.getMutationSignal){var B=_.m(_.hj(this.mutationIndex,void 0,"yZelVe"));this.getMutationSignal=B.next().value;this.setMutationSignal=B.next().value}var G=this.getMutationSignal,g=this.mutationIndex,b;return _.vW(function(){G();var z=NKm(S,f);if(z&&z.index>g&&z.mutation&&Srx(z.mutation.pathComponents,f)){var X=z.mutation;g=z.index}if(!b||g!==b.index){var w,F;z=(F=wA(function(){return S.getWithPath(f)}))!=null?F:(w=X)==null?
void 0:w.fallbackWhenUndefined;
b={index:g,value:z}}return b},void 0,"Aumsyf")};
var NKm=function(f,S){f=f.observedPath;S=_.m(S);for(var B=S.next();!B.done;B=S.next())f=f.subPaths[B.value];return f.data};
n5.prototype.pop=function(f){var S=this,B=wA(function(){return S.getWithPath(f)});
if(!(B instanceof Array))throw Error("yg");var G=B.length>0,g=B.pop();G&&pmL(this,B,f,B.length,0,[g]);return g};
n5.prototype.push=function(f){var S=_.qb.apply(1,arguments),B=this,G=wA(function(){return B.getWithPath(f)});
if(!(G instanceof Array))throw Error("zg");var g=G.length,b=G.push.apply(G,_.$d(S));S.length&&pmL(this,G,f,g,S.length,[]);return b};
n5.prototype.splice=function(f,S,B){var G=_.qb.apply(3,arguments),g=this,b=wA(function(){return g.getWithPath(f)});
if(!(b instanceof Array))throw Error("Ag");S<0?S=b.length-Math.floor(-S):S&&(S=Math.floor(S));var z=b.splice.apply(b,[S,B].concat(_.$d(G)));(G.length||z.length)&&pmL(this,b,f,S,G.length,z);return z};
n5.prototype.unshift=function(f){var S=_.qb.apply(1,arguments),B=this,G=wA(function(){return B.getWithPath(f)});
if(!(G instanceof Array))throw Error("Bg");var g=G.unshift.apply(G,_.$d(S));S.length&&pmL(this,G,f,0,S.length,[]);return g};var Zpi=!0,tc1=!1,Dys=!1,u0i=!1,sj=!1,aDm=0;u0i=!1;aDm=0;Zpi=!0;sj=tc1=Dys=!1;var DC=function(f,S,B){this.model=f;this.unknownSignalResolver=S;this.options=B;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];S=_.m(XxM());f=S.next().value;S=S.next().value;this.owner=f;this.disposeImpl=S};
DC.prototype.dispose=function(){if(!this.isDisposed){for(var f=_.m(this.childSignalProxies),S=f.next();!S.done;S=f.next())S.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var ykN=function(f,S){f=_.l5(f.owner);try{S()}finally{_.l5(f)}};
DC.prototype.effect=function(f){ykN(this,function(){_.Lj(f)})};
var W_g=function(f,S){f.options!=null||(f.options={});var B;(B=f.options).immutableProps!=null||(B.immutableProps=new Set);f.options.immutableProps.add(S)},sAN=function(f,S){S=""+S;
ck$(f,S);var B,G;if((B=f.options)==null?0:(G=B.immutableProps)==null?0:G.has(S))return!0;var g;if((g=f.model.__signalCache)==null?0:g.has(S))B=f.model.__signalCache.get(S),Array.isArray(B)&&W_g(f,S);var b,z,X;return(X=(b=f.options)==null?void 0:(z=b.immutableProps)==null?void 0:z.has(S))!=null?X:!1},lDm=function(f,S){var B;
f.unknownSignalResolver&&(B=f.unknownSignalResolver(S));var G,g;((G=f.options)==null?0:(g=G.immutableProps)==null?0:g.has(S))?B!=null||(B=new Uyo(_.hj(f.model[S],void 0,"bgwlkd"))):B!=null||(B=new n5(_.hj(f.model[S],void 0,"V1hou")));var b=f.model.hostElement;Object.defineProperty(f.model,S,{get:function(){nq1(b,S);return B.getWithPath([])},
set:function(z){Yb(b,S);f.setWithPath([S],z)},
configurable:!0});return B},ck$=function(f,S){var B,G,g;
((B=f.model.__signalCache)==null||!B.has(S))&&((G=f.options)==null?0:(g=G.externalSignalProps)==null?0:g.has(S))&&f.model[S]},Il=function(f,S){S=""+S;
var B=f.signalCache[S];if(B!==void 0)return B;B=!1;ck$(f,S);var G;if((G=f.model.__signalCache)==null?0:G.has(S))if(B=f.model.__signalCache.get(S),Array.isArray(B))B=!0,W_g(f,S);else return f.signalCache[S]=f.model.__signalCache.get(S).signal,f.signalCache[S];var g,b;G=(b=(g=f.options)==null?void 0:g.reactivityMode)!=null?b:0;var z,X;if(!((z=f.options)==null?0:(X=z.reactiveProps)==null?0:X.has(S))&&!B&&G===1)throw Error("Cg`"+S);g=B?fHo(f,S):lDm(f,S);return f.signalCache[S]=g},fHo=function(f,S){var B=
Object.getOwnPropertyDescriptor(f.model.constructor.prototype,S),G=function(){return f.model[S]};
return new Uyo(B&&B.get&&!B.set?G:[G,function(g){f.model[S]=g}])};
DC.prototype.getWithPath=function(f){var S=_.m(f);f=S.next().value;S=aK(S);nq1(this.model.hostElement,""+f);return Il(this,f).getWithPath(S)};
DC.prototype.setWithPath=function(f,S){if(f.length){Yb(this.model.hostElement,f.join("."));var B=_.m(f);f=B.next().value;B=aK(B);Il(this,f).setWithPath(B,S)}};
DC.prototype.getPathMutationSignal=function(f){var S=_.m(f);f=S.next().value;S=aK(S);return Il(this,f).getPathMutationSignal(S)};
DC.prototype.notifyPath=function(f,S){var B=_.m(f);f=B.next().value;B=aK(B);Il(this,f).notifyPath(B,S)};
var onN=function(f,S){if(S.type==="literal")return function(){return{rootWasDefined:!0,value:S.value}};
var B=sW(S.path),G=_.m(B),g=G.next().value;G=aK(G);var b,z;if(S.type==="path"&&(B.length===1||((b=f.options)==null?0:(z=b.immutableProps)==null?0:z.has(g))))return function(){var J=f.getWithPath(B.slice(0,1)),P=oaM(J,B.slice(1));J=J!==void 0;sj&&(J=Il(f,B[0]).wasDefined);return{rootWasDefined:J,value:P}};
var X=Il(f,g);if(S.type==="path"){var w=X.getPathMutationSignal(G);return function(){var J=sj?X.wasDefined:kp(f.owner,function(){return X.getWithPath([])})!==void 0;
var P,d=(P=w())==null?void 0:P.value;return{rootWasDefined:J,value:d}}}if(S.type==="splices"){var F=X.getSplicesSignal(G);
return function(){var J=F();return{rootWasDefined:sj?X.wasDefined:J!==void 0,value:J}}}var V=X.getChangeRecordSignal(G,""+g);
return function(){var J=V();return{rootWasDefined:sj?X.wasDefined:J!==void 0,value:J}}},muT=function(f,S,B){var G=B.map(function(X){return onN(f,X)}),g=B.length===0,b=[],z=B.length!==1||B[0].type!=="path"?!1:!0;
f.effect(function(){for(var X=G.length,w=[],F=!!b.length,V=0;V<X;V++){var J=G[V](),P=J.rootWasDefined;J=J.value;g||(g=P);w[V]=J;z&&(w[V+X]=F?b[V]:w[V],b[V]=J)}g&&kp(f.owner,function(){return void S.apply(null,_.$d(w))})})},BnQ=function(f,S,B,G,g){var b=Il(f,S);
g!==void 0&&b.setWithPath([],g);muT(f,function(){var z=_.qb.apply(0,arguments);Yb(f.model.hostElement,S,!0);b.setWithPath([],B.apply(null,_.$d(z)))},G)};
DC.prototype.arrayPush=function(f){var S=_.qb.apply(1,arguments),B=_.m(f),G=B.next().value;B=aK(B);G=Il(this,G);return G.push.apply(G,[B].concat(_.$d(S)))};
DC.prototype.arraySplice=function(f,S,B){var G=_.qb.apply(3,arguments),g=_.m(f),b=g.next().value;g=aK(g);b=Il(this,b);return b.splice.apply(b,[g,S,B].concat(_.$d(G)))};
DC.prototype.arrayUnshift=function(f){var S=_.qb.apply(1,arguments),B=_.m(f),G=B.next().value;B=aK(B);G=Il(this,G);return G.unshift.apply(G,[B].concat(_.$d(S)))};
DC.prototype.notifySplices=function(f,S){var B=_.m(f);f=B.next().value;B=aK(B);Il(this,f).notifySplices(B,S)};var JHW=/([^\s]+?)\(([\s\S]*)\)/,TnA=/\.([^.]+)$/,vaQ=/\\,/g,wx9=/&comma;/g,hEx=/\\(.)/g,PQW=[],FYT={"*":"wildcard",splices:"splices"};var jAx=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"),$uG=/[A-Z]/,Sqj=["class","hidden","id","on-dom-change"],xuA=new Set([].concat(_.$d(Sqj),
["if","notify-dom-change","restamp"])),EaM=new Set([].concat(_.$d(Sqj),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),LYQ=new Set(["restamp"]);var xS1=new Set(["className","id"]);var IyV=Symbol(),Zt9=window;var fDV=window;var bp1=0,BKT=0,UW=[],eR9=0,SwG=!1,gMK=document.createTextNode("");(new window.MutationObserver(Gf1)).observe(gMK,{characterData:!0});var pP=new Map,CP=0,BM7=function(f){this.mappedHandleId=f},zRQ=function(f,S,B,G){this.mappedHandleId=f;
var g=this;this.mappedHandleId=f;this.callback=S;this.waitTime=B;this.schedulerPriority=G;this.handleId=_.xJ.addJob(function(){g.callback();pP.delete(g.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.q(zRQ,BM7);zRQ.prototype.cancel=function(){_.xJ.cancelJob(this.handleId);pP.delete(this.mappedHandleId)};
var RRW=function(f,S){this.mappedHandleId=f;var B=this;this.mappedHandleId=f;this.callback=S;this.handleId=my1(function(){B.callback();pP.delete(B.mappedHandleId)})};
_.q(RRW,BM7);RRW.prototype.cancel=function(){var f=this.handleId-BKT;f<0||UW.length<=f||(UW[f]=null);pP.delete(this.mappedHandleId)};var TKV=function(){};
TKV.prototype.cancel=function(){this.jobHandle!==void 0&&(XmM(this.jobHandle),this.jobHandle=void 0)};
TKV.prototype.run=function(f,S,B){var G=this;this.cancel();this.callback=f;this.jobHandle=_.AO(function(){f();G.callback=void 0},S,B)};
TKV.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var wmW=new WeakMap;var Gu7=cy(function(f){for(var S=f,B=0;B<3;B++)S=Object.getPrototypeOf(S);delete S.prototype.connectedCallback;var G=function(){return f.apply(this,arguments)||this};
_.q(G,f);G.prototype._attachDom=function(g){if(!g)return null;var b=(0,_.wv)(this.hostElement);b.attachShadow({mode:"open",shadyUpgradeFragment:g});b.shadowRoot.appendChild(g);return b.shadowRoot};
G.prototype._takeAttributes=function(){for(var g=this.hostElement.attributes,b=0;b<g.length;b++){var z=g[b],X=void 0,w=void 0;(w=(X=this).__attributeReaction)==null||w.call(X,z.name,null,z.value)}};
G.prototype._readyClients=function(){f.prototype._readyClients.call(this);this.root=this};
G.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);f.prototype.connectedCallback.call(this)};
_.y3.Object.defineProperties(G,{template:{configurable:!0,enumerable:!0,get:function(){return G.prototype._template}}});
return G}),gn7=cy(function(f){var S=function(){return f.apply(this,arguments)||this};
_.q(S,f);S.prototype.created=function(){if(this.__notifyEffects)for(var B=_.m(Object.values(this.__notifyEffects)),G=B.next();!G.done;G=B.next()){G=_.m(G.value);for(var g=G.next();!g.done;g=G.next())g.value.fn=Pb1}if(this.__reflectEffects)for(B=_.m(Object.values(this.__reflectEffects)),G=B.next();!G.done;G=B.next())for(G=_.m(G.value),g=G.next();!g.done;g=G.next())g.value.fn=vMx};
S.prototype._addEventListenerToNode=function(B,G,g){B=MJ(B);ju(B,G,g)||f.prototype._addEventListenerToNode.call(this,B,G,g)};
S.prototype._removeEventListenerFromNode=function(B,G,g){B=MJ(B);Ol(B,G,g)||f.prototype._removeEventListenerFromNode.call(this,B,G,g)};
S.prototype._propertiesChanged=function(B,G,g){if(this.__dataToNotify&&this.__notifyEffects)for(var b=_.m(Object.keys(this.__dataToNotify)),z=b.next();!z.done;z=b.next()){z=z.value;var X=JkT(z);this.__notifyEffects[X]||delete this.__dataToNotify[z]}else this.__dataToNotify=null;f.prototype._propertiesChanged.call(this,B,G,g)};
S.prototype.fire=function(B,G,g){G=G===void 0?{}:G;var b;return _.ew(MJ((b=g==null?void 0:g.node)!=null?b:this),B,G,g)};
S.prototype._ensureAttribute=function(B,G){var g=MJ(this);g.hasAttribute(B)||De(g,G,B)};
S.prototype.isLightDescendant=function(B){var G=MJ(this);return MJ(G)!==B&&_.m9(G).contains(B)&&_.m9(G).getRootNode()===_.m9(B).getRootNode()};
return S});
_.$m.ready=function(){var f;((f=this.hostElement)!=null?f:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var S;((S=this.hostElement)!=null?S:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.Ld._subscribeIronResize=function(f){var S;((S=f.hostElement)!=null?S:f).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.Ld._unsubscribeIronResize=function(f){var S;((S=f.hostElement)!=null?S:f).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var ipW=[Array,Boolean,Date,Number,Object,String],tO=function(f,S,B,G){this.polySiInfo=f;this.polySiParams=S;this.polySiContext=B;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;G||this instanceof HTMLElement&&(G=this);if(!G)throw Error("Jg");this.allowedProps=S.allowedProps;this.hostElement=G;this.is=f.is;this.upgradeDisabled=!!S.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");f=new Set(S.reactiveSchemas.filter(function(g){return g.type!==
"observe"}).map(function(g){return g.propertyKey}));
this.signalProxy=new DC(this,void 0,{reactiveProps:f,reactivityMode:S.reactivityMode});this.__dataHasAccessor={};S=_.m(S.reactiveSchemas);for(f=S.next();!f.done;f=S.next())f=f.value,f.type==="signal"&&(this.__dataHasAccessor[f.propertyKey]=!0);this.upgradeDisabled||eJL(this)};
tO.prototype.getExtraMethodsToForward=function(){return[]};
var eJL=function(f){f.polySiContext.didRegister||(f.registered(),f.polySiContext.didRegister=!0);f.polySiContext.finalizedTemplate||(f.polySiContext.finalizedTemplate={},f.polySiParams.templateGetter&&(f.polySiContext.finalizedTemplate.processedTemplate=oMG(f.polySiParams.templateGetter,f.polySiParams.is)));bIm(f);var S=f.hostElement;S.loggingStatus!=null||(S.loggingStatus={});S.loggingStatus.isInitializing=!0;wA(function(){return void f.created()});
S.loggingStatus.isInitializing=!1;f.isPolySiElementConnected&&mSN(f)},mSN=function(f){f.didCallReady||(wA(function(){return void f.ready()}),f.didCallReady=!0);
f.isAttached=!0;f.attached()};
_.e=tO.prototype;_.e.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||mSN(this)};
_.e.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.e.attributeChangedCallback=function(f,S,B){if(this.upgradeDisabled)f==="disable-upgrade"&&B===null&&(this.upgradeDisabled=!1,eJL(this));else if(S!==B){var G=_.Vw(f),g=this.polySiContext.typesForSignals[G];if(g&&(!this.reflecting||_.K("polysi_attribute_changed_serializing_killswitch"))){switch(g){case Object:try{var b=JSON.parse(B)}catch(X){b=B}break;case Array:try{b=JSON.parse(B)}catch(X){b=null}break;case Date:b=isNaN(B)?String(B):Number(B);b=new Date(b);break;case Boolean:b=B!==null;break;case Number:b=
Number(B);break;default:b=B}this[G]=b}G=_.m(this.polySiParams.behaviors);for(g=G.next();!g.done;g=G.next())b=void 0,(b=g.value.attributeChanged)==null||b.call(this,f,S,B);var z;(z=this.attributeChanged)==null||z.call(this,f,S,B)}};
_.e.attributeChangedCallbackWrapper=function(f,S,B){this.attributeChangedCallback(f,S,B)};
_.e.setPropertiesFromInitialAttributeValues=function(){for(var f=0;f<this.hostElement.attributes.length;f++){var S=this.hostElement.attributes[f];(S.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(S.name))&&this.attributeChangedCallback(S.name,null,S.value)}};
_.e.created=function(){this.provide=this.polySiParams.provide;var f;(f=this.initializeInjection)==null||f.call(this);f=_.m(this.polySiParams.reactiveSchemas);for(var S=f.next();!S.done;S=f.next())S=S.value,S.type==="signal"&&(this.mutablePropNames.add(S.propertyKey),Il(this.signalProxy,S.propertyKey));dyA(this,this.polySiInfo,this.polySiParams.behaviors);f=_.m(this.polySiParams.reactiveSchemas);for(S=f.next();!S.done;S=f.next())S=S.value,S.type==="signal"&&S.value!==void 0&&(this.signalProxy.model[S.propertyKey]=
typeof S.value==="function"?S.value.call(this):S.value);if(this.polySiParams.signalProperties)for(f=_.m(this.polySiParams.signalProperties),S=f.next();!S.done;S=f.next()){S=S.value;var B=void 0;((B=this.__signalCache)==null?0:B.has(S))||(this.signalProxy.model[S]=void 0)}u0i||zJo(this);K_Q(this);f=_.m(this.polySiParams.behaviors);for(S=f.next();!S.done;S=f.next())B=void 0,(B=S.value.created)==null||B.call(this);var G;(G=this.polySiInfo.created)==null||G.call(this)};
_.e.registered=function(){var f=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var S=Object.getPrototypeOf(this);S.addReactiveSchema=function(X){f.polySiParams.reactiveSchemas.push(X)};
for(var B=_.m(this.polySiParams.behaviors),G=B.next();!G.done;G=B.next()){var g=void 0;(g=G.value.beforeRegister)==null||g.call(S)}var b;(b=this.polySiInfo.beforeRegister)==null||b.call(S);S.addReactiveSchema=qwM;B=_.m(this.polySiParams.behaviors);for(G=B.next();!G.done;G=B.next())g=void 0,(g=G.value.registered)==null||g.call(S);var z;(z=this.polySiInfo.registered)==null||z.call(S)};
_.e.ready=function(){var f;(f=this.beforeReady)==null||f.call(this);u0i&&zJo(this);var S;if(f=(S=this.polySiContext.finalizedTemplate)==null?void 0:S.processedTemplate){f=lyQ(f.template,f.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:f.hasInsertionPoint,thisCtx:this});S=f.nodesById;f=f.root;var B=this.hostElement;var G=G===void 0?!1:G;B=(0,_.wv)(B);if(!B.attachShadow)throw Error("Cd");if(!B.shadowRoot||G)B.attachShadow({mode:"open",shadyUpgradeFragment:f}),B.shadowRoot.appendChild(f);
this.root=B.shadowRoot;this.$=S}RJg(this);G=_.m(this.polySiParams.behaviors);for(S=G.next();!S.done;S=G.next())f=void 0,(f=S.value.ready)==null||f.call(this);var g;(g=this.polySiInfo.ready)==null||g.call(this)};
_.e.attached=function(){for(var f=_.m(this.polySiParams.behaviors),S=f.next();!S.done;S=f.next()){var B=void 0;(B=S.value.attached)==null||B.call(this)}var G;(G=this.polySiInfo.attached)==null||G.call(this)};
_.e.detached=function(){for(var f=_.m(this.polySiParams.behaviors),S=f.next();!S.done;S=f.next()){var B=void 0;(B=S.value.detached)==null||B.call(this)}var G;(G=this.polySiInfo.detached)==null||G.call(this)};
var bIm=function(f){for(var S=_.m(f.polySiParams.behaviors),B=S.next();!B.done;B=S.next())if(B=B.value,B.listeners)for(var G in B.listeners)cHN(f,f.hostElement,G,B.listeners[G]);if(f.polySiInfo.listeners)for(var g in f.polySiInfo.listeners)cHN(f,f.hostElement,g,f.polySiInfo.listeners[g])},cHN=function(f,S,B,G,g){f=fy1(f,G,g);
ju(S,B,f)||S.addEventListener(B,f);return f},zJo=function(f){for(var S=_.m(f.polySiParams.reactiveSchemas),B=S.next();!B.done;B=S.next())B=B.value,B.type==="compute"||B.type==="computeWithMethod"?G0N(f.signalProxy,B,f):B.type==="redux"?btx(f.signalProxy,B,f.store):B.type==="signal"&&B.readOnly&&eEA(f.signalProxy,B)},RJg=function(f){for(var S=_.m(f.polySiParams.reactiveSchemas),B=S.next(),G={};!B.done;G={schema$jscomp$12:void 0},B=S.next())G.schema$jscomp$12=B.value,G.schema$jscomp$12.type==="notify"?
zEj(f.signalProxy,G.schema$jscomp$12,f.hostElement):G.schema$jscomp$12.type==="observe"?REs(f.signalProxy,G.schema$jscomp$12,f):G.schema$jscomp$12.type==="reflect"&&f.signalProxy.effect(function(b){return function(){var z=f.signalProxy.getWithPath([b.schema$jscomp$12.propertyKey]);
f.reflecting=!0;duK(f.hostElement,b.schema$jscomp$12.propertyKey,z,!0);f.reflecting=!1}}(G));
if(f.reflectedAttributes)for(S=_.m(Object.entries(f.reflectedAttributes)),G=S.next(),B={};!G.done;B={key$jscomp$881:void 0,value$jscomp$8895:void 0},G=S.next()){var g=_.m(G.value);G=g.next().value;g=g.next().value;B.key$jscomp$881=G;B.value$jscomp$8895=g;f.signalProxy.effect(function(b){return function(){f.reflecting=!0;duK(f.hostElement,b.key$jscomp$881,(0,b.value$jscomp$8895)(),!0);f.reflecting=!1}}(B))}};
_.e=tO.prototype;_.e._setPendingProperty=function(f,S){this.set(f,S);return!1};
_.e._enableProperties=function(){};
_.e._setPendingPropertyOrPath=function(f,S){this.notifyPath(f,S);return!1};
_.e._addPropertyEffect=function(){};
_.e._stampTemplate=function(){throw Error("Kg");};
_.e.fire=function(f,S,B){S=S===void 0?{}:S;B=B===void 0?{}:B;var G,g,b={bubbles:(G=B.bubbles)!=null?G:!0,cancelable:!!B.cancelable,composed:(g=B.composed)!=null?g:!0},z;return _.ew($yx((z=B.node)!=null?z:this.hostElement),f,S,b)};
_.e.get=function(f,S){var B=sW(f);return S?oaM(S,B):f==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(B)};
_.e.linkPaths=function(){};
_.e.listen=function(f,S,B){f=$yx(f);this.boundListeners!=null||(this.boundListeners=new WeakMap);var G=this.boundListeners.get(f);G||(G={},this.boundListeners.set(f,G));var g=S+B;G[g]||(G[g]=cHN(this,f,S,B))};
_.e.notifyPath=function(f,S){this.signalProxy.notifyPath(sW(f),arguments.length===2?{value:S}:void 0)};
_.e.canNotifyPath=function(f){return this.mutablePropNames.has(f)&&!sAN(this.signalProxy,f)};
_.e.notifySplices=function(f,S){this.signalProxy.notifySplices(sW(f),S)};
_.e.pop=function(f){var S=this.signalProxy;f=sW(f);var B=_.m(f);f=B.next().value;B=aK(B);return Il(S,f).pop(B)};
_.e.push=function(f){var S=_.qb.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[sW(f)].concat(_.$d(S)))};
_.e.set=function(f,S,B){if(B)throw Error("Lg");f==="hidden"?this.hostElement.hidden=!!S:this.signalProxy.setWithPath(sW(f),S)};
_.e.setProperties=function(f){f=_.m(Object.entries(f));for(var S=f.next();!S.done;S=f.next()){var B=_.m(S.value);S=B.next().value;B=B.next().value;this[S]=B}};
_.e.splice=function(f,S,B){var G=_.qb.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[sW(f),S,B].concat(_.$d(G)))};
_.e.unlinkPaths=function(){};
_.e.unlisten=function(f,S,B){f=$yx(f);if(this.boundListeners){var G=this.boundListeners.get(f);if(G){B=S+B;var g=G[B];g&&(Ol(f,S,g)||f.removeEventListener(S,g),delete G[B])}}};
_.e.unshift=function(f){var S=_.qb.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[sW(f)].concat(_.$d(S)))};
_.y3.Object.defineProperties(tO.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 sCG=[Array,Boolean,Date,Number,Object,String];var Uyj=!1;var Iv=function(){var f=HTMLElement.apply(this,arguments)||this;f.restamp=!1;f.notifyDomChange=!1;f.JSC$11477_didCallConnected=!1;f.JSC$11477_renderDebouncer=null;f.disableTemplateUpdateSignalImpl=uu()?void 0:_.hj(!1,void 0,"zLXz1e");var S;f.getDisableTemplateUpdate=(S=f.disableTemplateUpdateSignalImpl)==null?void 0:S[0];var B;f.setDisableTemplateUpdate=(B=f.disableTemplateUpdateSignalImpl)==null?void 0:B[1];return f};
_.q(Iv,HTMLElement);var XH8=function(f){f.conditionSignalImpl!=null||(f.conditionSignalImpl=new n5(_.hj(!1,void 0,"wcuOQ")));return f.conditionSignalImpl};
_.e=Iv.prototype;_.e.showHideChildren=function(f){wHg(this,f,this.if)};
_.e.attributeChangedCallback=function(f,S,B){if(this.JSC$11477_didCallConnected)throw Error("Pg`"+f);f==="notify-dom-change"?this.notifyDomChange=B!==null:f==="restamp"&&(this.restamp=B!==null)};
_.e.debounceRender=function(){this.JSC$11477_renderDebouncer=_.zw(this.JSC$11477_renderDebouncer,El,this.JSC$11477_renderImpl.bind(this));_.RH(this.JSC$11477_renderDebouncer)};
_.e.disconnectedCallback=function(){var f=(0,_.wv)(this).parentNode;(!f||f.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in f&&!f.host)&&hJi(this)};
_.e.connectedCallback=function(){var f=this;this.JSC$11477_didCallConnected=!0;Zpi?CbM():this.style.display="none";this.parentSignalProxy.effect(function(){XH8(f).getWithPath([]);f.debounceRender()})};
_.e.render=function(){_.Tw()};
_.e.JSC$11477_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var f=this.if;if(f){a:{var S=(0,_.wv)(this).parentNode;if(this.hasInstance()){var B=this.instance.children;if((B==null?0:B.length)&&(0,_.wv)(this).previousSibling!==B[B.length-1])for(var G=0;G<B.length;G++)(0,_.wv)(S).insertBefore(B[G],this)}else{if(!S){S=!1;break a}TMg(this,S)}S=!0}if(!S)return}else this.restamp&&hJi(this);wHg(this,!1,f);f&&F0j(this);tc1&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",
{bubbles:!0,composed:!0}))}};
_.e.hasInstance=function(){return!!this.instance};
var TMg=function(f,S){var B=f.parentSignalProxy;if(uu()){var G=_.m(_.hj(!0,void 0,"wXzgnc"));var g=G.next().value;G=G.next().value;B=f.parentSignalProxy}else{var b;var z=new DC((b=VQ7(f))!=null?b:{},function(w){var F=Il(f.parentSignalProxy,w).getChangeRecordSignal([]);w=_.hj(void 0,void 0,"mryEkc");var V=new n5(w);z.effect(function(){if(f.getDisableTemplateUpdate&&!f.getDisableTemplateUpdate()){var J=F();V.notifyPath(sW(J.path),{value:J.value})}});
return V});
f.parentSignalProxy.childSignalProxies.push(z);var X=B=z}B=lyQ(f.templateInfo,f.templateInfo.nodeInfoList,B,{eventListenerHost:f.eventListenerHost,hasInsertionPoint:f.templateInfo.hasInsertionPoint,thisCtx:f.eventListenerHost,enabledSignal:uu()?g:void 0,getModel:function(){return VQ7(f)}}).root;
f.instance={root:B,children:[],hidden:!1,signalProxy:X,getTemplateUpdatesEnabled:g,setTemplateUpdatesEnabled:G};X=_.m(B.childNodes);for(g=X.next();!g.done;g=X.next())f.instance.children.push(g.value);(0,_.wv)(S).insertBefore(f.instance.root,f)},VQ7=function(f){if((f=f.parentSignalProxy.model)&&!f.hostElement){var S={},B;
for(B in f)f.hasOwnProperty(B)&&(S[B]=f[B]);return S}},hJi=function(f){if(f.instance){var S=f.instance.children;
if(S.length){var B=(0,_.wv)(S[0]).parentNode;if(B){B=(0,_.wv)(B);for(var G=0;G<S.length;G++)B.removeChild(S[G])}}uu()?f.instance.setTemplateUpdatesEnabled(!1):f.instance.signalProxy.dispose();f.instance=void 0}},wHg=function(f,S,B){S=S||!B;
f.instance&&f.instance.hidden!==S&&(f.instance.hidden=S,IDG(S,f.instance.children))},F0j=function(f){if(uu()){var S=f.instance;
S&&kp(f.parentSignalProxy.owner,function(){return!S.getTemplateUpdatesEnabled()})&&S.setTemplateUpdatesEnabled(!0)}else f.setDisableTemplateUpdate(!1)};
_.y3.Object.defineProperties(Iv.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var f=this;return kp(this.parentSignalProxy.owner,function(){return XH8(f).getWithPath([])})},
set:function(f){f||(uu()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));XH8(this).setWithPath([],!!f)}}});
_.y3.Object.defineProperties(Iv,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",Iv);var JSN=[],Uj=function(){var f=HTMLElement.apply(this,arguments)||this;f.as="item";f.indexAs="index";f.itemsIndexAs="itemsIndex";f.targetFramerate=20;f.notifyDomChange=!1;f.isDetached=!1;f.JSC$11484_renderDebouncer=null;f.instances=[];f.chunkingId=null;f.chunkCount=null;f.shouldMeasureChunk=!1;f.shouldContinueChunking=!1;f.renderStartTime=null;f.JSC$11484_didCallConnected=!1;return f};
_.q(Uj,HTMLElement);var PcN=function(f){f.itemSignalImpl!=null||(f.itemSignalImpl=new n5(_.hj(JSN,void 0,"YBrqgf")));return f.itemSignalImpl},vnj=function(f,S){Array.isArray(S)||(S=JSN);
PcN(f).setWithPath([],S)};
_.e=Uj.prototype;_.e.showHideChildren=function(f){for(var S=_.m(this.instances),B=S.next();!B.done;B=S.next())IDG(f,B.value.children)};
_.e.notifyPath=function(f,S){f=sW(f);f[0]==="items"&&(f.length===1?vnj(this,S):PcN(this).setWithPath(f.slice(1),S))};
_.e.canNotifyPath=function(f){return f==="items"};
_.e.attributeChangedCallback=function(f,S,B){if(this.JSC$11484_didCallConnected)throw Error("Qg`"+f);f==="as"?this.as=B:f==="index-as"?this.indexAs=B:f==="items-index-as"?this.itemsIndexAs=B:f==="initial-count"?this.initialCount=Number(B):f==="notify-dom-change"?this.notifyDomChange=B!==null:f==="target-framerate"&&(this.targetFramerate=Number(B))};
_.e.disconnectedCallback=function(){this.isDetached=!0;for(var f=0;f<this.instances.length;f++)K0N(this,f);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.e.connectedCallback=function(){var f=this,S=PcN(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var g=S(),b=sW(g.path);if(b[0]===void 0||b[0]==="splices"||b[0]==="length")f.debounceRender();else{var z=b[0];if(z=f.instances[typeof z==="string"?Math.floor(Number(z)):z])b=[f.as].concat(_.$d(b.slice(1))),z.signalProxy.notifyPath(b,g)}});
this.JSC$11484_didCallConnected=!0;Zpi?CbM():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var B=(0,_.wv)((0,_.wv)(this).parentNode),G=0;G<this.instances.length;G++)B.insertBefore(this.instances[G].root,this);this.chunkingId&&this.render()}};
_.e.debounceRender=function(){this.JSC$11484_renderDebouncer=_.zw(this.JSC$11484_renderDebouncer,El,this.JSC$11484_renderImpl.bind(this));_.RH(this.JSC$11484_renderDebouncer)};
_.e.render=function(){this.debounceRender();_.Tw()};
_.e.JSC$11484_renderImpl=function(){var f=this,S=this.items,B=dSi(this,S.length);iIi(this,S,B);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){f.chunkingId=null;if(f.shouldMeasureChunk){var G=performance.now()-f.renderStartTime;f.chunkCount=Math.round(Math.ceil(1E3/f.targetFramerate)/G*f.chunkCount)||1}f.shouldContinueChunking&&f.debounceRender()}));
tc1&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
var dSi=function(f,S){var B=S,G=f.instances.length;if(f.initialCount){if(f.chunkCount){var g=Math.min(Math.max(S-G,0),f.chunkCount);B=Math.min(G+g,S)}else B=Math.min(S,f.initialCount),g=Math.max(B-G,0),f.chunkCount=g||1;f.shouldMeasureChunk=g===f.chunkCount;f.shouldContinueChunking=B<S;f.renderStartTime=performance.now()}return B},iIi=function(f,S,B){for(var G=0;G<B;G++){var g=f.instances[G],b=S[G];
g?(g.signalProxy.setWithPath([f.as],b),g.signalProxy.setWithPath([f.indexAs],G)):HI6(f,b,G)}for(S=f.instances.length-1;S>=G;S--)B=f,g=S,K0N(B,g),_.m(B.instances.splice(g,1)).next().value.signalProxy.dispose()},K0N=function(f,S){f=f.instances[S];
S=(0,_.wv)(f.root);for(var B=0;B<f.children.length;B++)S.appendChild(f.children[B])},HI6=function(f,S,B){var G={};
S=Object.assign({},qq7(f),(G[f.as]=S,G[f.indexAs]=B,G[f.itemsIndexAs]=B,G));var g=new DC(S,function(z){if(z!==f.as&&z!==f.indexAs){if(z===f.itemsIndexAs)return Il(g,f.indexAs);var X=Il(f.parentSignalProxy,z).getChangeRecordSignal([]);z=_.hj(void 0,void 0,"Mu2Bwb");var w=new n5(z);g.effect(function(){var F=X();w.notifyPath(sW(F.path),{value:F.value})});
return w}});
f.parentSignalProxy.childSignalProxies.push(g);G=lyQ(f.templateInfo,f.templateInfo.nodeInfoList,g,{eventListenerHost:f.eventListenerHost,getModel:function(){var z={};return Object.assign({},qq7(f),(z[f.as]=g.model[f.as],z[f.indexAs]=g.model[f.indexAs],z[f.itemsIndexAs]=g.model[f.indexAs],z))},
hasInsertionPoint:f.templateInfo.hasInsertionPoint,thisCtx:f.eventListenerHost,methodInvocationRequirement:aDm,enabledSignal:f.stampingEnabled}).root;S={root:G,children:[],signalProxy:g};G=_.m(G.childNodes);for(var b=G.next();!b.done;b=G.next())S.children.push(b.value);G=(G=f.instances[B+1])?G.children[0]:f;(0,_.wv)((0,_.wv)(f).parentNode).insertBefore(S.root,G);f.instances[B]=S},qq7=function(f){if((f=f.parentSignalProxy.model)&&!f.hostElement){var S={},B;
for(B in f)f.hasOwnProperty(B)&&(S[B]=f[B]);return S}};
Uj.prototype.itemForElement=function(f){var S=this,B=this.instances.find(function(G){return G.children.includes(f)});
if(B)return kp(this.parentSignalProxy.owner,function(){return B.signalProxy.getWithPath([S.as])})};
Uj.prototype.indexForElement=function(f){var S=this.instances.findIndex(function(B){return B.children.includes(f)});
return S>=0?S:void 0};
_.y3.Object.defineProperties(Uj.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var f=this;return kp(this.parentSignalProxy.owner,function(){return PcN(f).getWithPath([])})},
set:function(f){vnj(this,f)}},
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}}});
_.y3.Object.defineProperties(Uj,{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",Uj);var $Sg,Q66;_.C5=new _.Sn("STATE_STORE_TOKEN");$Sg=new _.Sn("SELECT_TOKEN");Q66=new _.Sn("DISPATCH_TOKEN");var tcs={getSelectFn:function(){var f;return(f=_.oy().resolve(_.fN($Sg)))!=null?f:pmG},
getDispatchFn:function(){var f;return(f=_.oy().resolve(_.fN(Q66)))!=null?f:_.al().dispatch.bind(_.al())},
getAppStore:function(){return _.oy().resolve(_.C5)}},Ak1,ZpM=!1;var fH={traceAllComponents:_.K("web_tracing_all_components"),exportToCsi:_.K("web_tracing_export_to_csi"),exportBreadcrumbs:_.K("web_enable_tracing"),bufferSize:_.Gt("web_max_tracing_events"),enabledSpansArray:_.e7("web_tracing_enabled_spans")};var fHj=function(){};var W_T=void 0;var Yq$=function(){};
Yq$.prototype.hasAttribute=function(f){if(f==="dir")return!1;if(f==="disable-upgrade"){var S,B;return(B=(S=this.hostElement)==null?void 0:S.hasAttribute("disable-upgrade"))!=null?B:!1}throw Error("Rg`"+f);};
Yq$.prototype.attributeChangedCallbackWrapper=function(f,S,B){if(f==="disable-upgrade"&&this.__isUpgradeDisabled&&B===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var G;((G=this.hostElement)!=null?G:this).isConnected&&this.connectedCallback()}else S===B||this.__isReflecting||this.attributeChangedCallback(f,S,B)};
Yq$.prototype.getExtraMethodsToForward=function(){for(var f=this,S=[],B=_.m(rSL),G=B.next(),g={};!G.done;g={tagName$jscomp$53:void 0,name$jscomp$532:void 0},G=B.next())g.name$jscomp$532=G.value,G=void 0,g.name$jscomp$532==="_setPendingProperty"?(g.tagName$jscomp$53=this.hostElement.tagName.toLowerCase(),G=function(b){return function(z,X,w){Qg(b.tagName$jscomp$53,z,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return f._setPendingProperty(z,X,w)}}(g)):G=function(b){return function(){return f[b.name$jscomp$532].apply(f,
_.$d(_.qb.apply(0,arguments)))}}(g),S.push([g.name$jscomp$532,
G]);return S};
for(var BM9=gn7(Gu7((0,_.HG)(Yq$))),bI1=["disabled","disable-upgrade"],j6m=(0,_.HG)(function(){}),OI$=new Set(Object.getOwnPropertyNames(j6m.prototype)),wHT=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.$d(OI$))),zJj=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),rSL=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),xSm=new Set([].concat(_.$d(zJj),_.$d(rSL),_.$d(OI$))),EnX=_.m(xSm),L01=EnX.next();!L01.done;L01=EnX.next())xjN.add(L01.value);var XHV={created:function(){K_Q(this);this.initializeInjection()}};var dSM=!1,gR=window.ShadyDOM,j6K=["appendChild","insertBefore","removeChild","replaceChild"],rSG=[Node];gR&&rSG.push(gR.Wrapper);var nnN,s6Q,USG={};var mT=new Set,eP="",CcG="";var bk,zi=new Set;var ySG=new Set("context didCallReady is info params signalProxy".split(" ")),cSQ="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),lHG="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var kum=h2({entities:l7W}),nnv=new yI(kum);var s6X=function(){return _.dv.apply(this,arguments)||this};
_.q(s6X,_.dv);_.y3.Object.defineProperties(s6X.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return nnv}}});
_.N([_.iu()],s6X);_.p5=[L5.prototype,s6X.prototype];_.Ai={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var f=this,S={};setTimeout(function(){var B;return _.ew((B=f.hostElement)!=null?B:f,"yt-live-chat-add-tooltip-target",S)},0);
this.handler_=S.handler},
detached:function(){if(this.handler_){var f;this.handler_.removeElementFromSupportingTooltips((f=this.hostElement)!=null?f:this)}this.handler_=null}}};_.VU=new _.Sn("ICON_MANAGER_TOKEN");var DSN=[48,20,18,16,15,13,12],dDj=new Map,FDj=new Set,wJK=new Set,TaK=new Set,XJs=new Set,hts=new Set,J7A=new Promise(function(f){var S=!1,B=!1,G=!1,g=[],b=function(z){if("detail"in z)if(z=z.detail,z.name==="yt-icons")Vox(z),S=!0;else if(z.name==="yt-sys-icons")Vox(z),B=!0;else{var X;((X=z.name)==null?0:X.includes("yt-sys-icons"))&&z.size!==24&&(Vox(z,!0),g.push(z.size),g.length===DSN.length&&(G=!0))}S&&B&&G&&(window.removeEventListener("iron-iconset-added",b),f())};
window.addEventListener("iron-iconset-added",b)}),vw1=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"]]);_.Nm={};_.Nm.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.ac,computeHref_:function(f,S){S=S===void 0?!1:S;if(!f||f.commandExecutorCommand)return null;var B=kiV(f,S);return S||B!==null?B?_.K("enable_polymer_resin")?_.io(B).toString():B:null:(_.Lg(new _.dO("computeHref was null",this.is,f)),null)},
computeOptionalHref_:function(f){return this.computeHref_(f,!0)},
computeNofollow_:function(f){return f?$Bs(f)?"nofollow":null:null},
computeIcon_:function(f){return f&&f.iconType?_.F_(f.iconType):""},
resolveCommand:function(f,S,B){S=S===void 0?{}:S;return _.Ps(f,this.hostElement,S,B===void 0?!1:B)}};var USL,Mm;_.IH1={};USL=null;
Mm={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_=Vy1(this.viewroot));_.AO(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var f=this;this.unobserve_();if(_.K("kevlar_vimio_use_shared_monitor"))QzN(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 S=[];this.visibilityOptionVisible_&&S.push(this.visibilityObserver.observe(this.hostElement,function(){return f.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&S.push(this.visibilityObserver.observe(this.hostElement,function(){return f.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&S.push(this.visibilityObserver.observe(this.hostElement,function(){return f.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=S}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){ixW(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 f=_.kv(this.parentNode,function(B){var G,g=(G=B.polymerController)!=null?G:B;return!!g.getVisibilityObserverForChild&&g.getVisibilityObserverForChild()},!0);
if(f){var S;this.localVisibilityObserver_=((S=f.polymerController)!=null?S:f).getVisibilityObserverForChild()}else USL||(USL=Vy1()),this.localVisibilityObserver_=USL;return this.localVisibilityObserver_},visibilityCallback:function(f){f?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.K("kevlar_use_vimio_behavior")||(Mm={});Mm&&!_.K("kevlar_use_vimio_behavior")&&(delete Mm.attached,delete Mm.detached);_.IH1.YtVisibilityObserverBehavior=[Mm];var CcL={};CcL.YtVisualElementBehavior=[_.IH1.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.K("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.K("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var f=this.getScreenLayer&&this.getScreenLayer(),S=this.getVisibilityLogger();S&&S.reportShown(this,void 0,f)}},
onHidden:function(){if(_.K("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.K("kevlar_vimio_use_shared_monitor")){var f=this.getScreenLayer&&this.getScreenLayer(),S=this.getVisibilityLogger();S&&S.reportHidden(this,void 0,f)}},
getVisibilityLogger:function(){return _.K("kevlar_use_vimio_behavior")?_.KH():null},
shouldSkipLogging:function(){if(_.nL("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var f=this.getParentRenderer&&this.getParentRenderer();if(!f)return!1;var S,B=(S=f.polymerController)!=null?S:f;if(!B.data)return!1;f=this.data.trackingParams;f=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:f;var G;S=(G=B.data)==null?void 0:G.trackingParams;var g,b;S=((g=B.data)==null?0:g.loggingDirectives)?(b=B.data)==null?void 0:b.loggingDirectives.trackingParams:S;return f&&S&&f===
S}}];var jz9=new Map,rR;var K21=function(f){this.layer=f},DP=function(f){return f.layer!==void 0?f.layer:f.parent?DP(f.parent):f.layer=0};var nwW;_.c={};nwW=0;_.c.YtRendererBehavior=[_.Nm.YtComponentBehavior,CcL.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_:_.K("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var f,S;(S=(f=this.monitorScrollElement)!=null?f:this.hostElement)==null||S.removeEventListener("scroll",_.Fc(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();Y$T(this.hostElement);cH$(_.Qh(),this.hostElement);WK.delete(this.hostElement)},
registerRenderer:function(f){var S;((S=f.polymerController)!=null?S:f).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(f),this.markDirty())},
unregisterRenderer_:function(f){this.useVimio_||(this.childCache_.delete(f),this.markDirty())},
attached:function(){var f=this,S=this.getParentRenderer();if(S){var B,G,g;(G=(B=(g=S.polymerController)!=null?g:S).registerRenderer)==null||G.call(B,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var b,z;(z=(b=this.monitorScrollElement)!=null?b:this.hostElement)==null||z.addEventListener("scroll",_.Fc(this,this.onScroll))}_.xJ.addJob(function(){Oxj(f.hostElement)},8);
B=new K21(this.screenLayer||void 0);(S=WK.get(S))&&S.layerNode&&(B.parent=S.layerNode);S={};qc1(this.hostElement,(S.isRenderer=!0,S.layerNode=B,S[d4G]=this.data,S))},
getParentRenderer:function(){for(var f=this.hostElement.parentNode,S,B;f&&((S=WK.get(f))==null||!S.isRenderer)&&!((B=f.polymerController)!=null?B:f).isRenderer_;)f=f.parentNode||f.host;return f},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.K("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.s6("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.K("debug_web_ve_data")&&this.data.trackingParams){var f="";try{f=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(B){_.xH(B)}if(f){var S=WI1(f,1);S!==void 0&&(this.hostElement.dataset.veIndex=String(S));f=WI1(f,2);
f!==void 0&&(this.hostElement.dataset.ve=String(f))}}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,_.K("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.Ye(this.data.loggingDirectives.trackingParams)),this.visualElement=_.dR(_.ik(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var f=this.data.targetId;_.fD8(_.Qh(),f,this.hostElement)}else cH$(_.Qh(),this.hostElement)},
onScroll:function(){var f=Date.now();f-this.lastHandledScroll_<50||(this.lastHandledScroll_=f,this.markDirty())},
markDirty:function(){_.K("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():szx(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var f=this.getParentRenderer();if(f&&(f=WK.get(f))&&f.layerNode)return DP(f.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.$d(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var f=0;f<this.data.impressionEndpoints.length;f++)this.sendImpression(this.data.impressionEndpoints[f]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(f){f.clickTrackingParams&&delete f.clickTrackingParams;var S,B;(f==null?0:(S=f.commandMetadata)==null?0:(B=S.webCommandMetadata)==null?0:B.sendPost)?_.RD(this.hostElement,[f,{impression:!0}]):_.Xh(this.hostElement,[f],this.hostElement)},
logExplicitClick:function(f){var S=_.xc(this.getScreenLayer());if(S){var B,G=(B=f.polymerController)!=null?B:f;f=G.visualElement;G=G.trackingParams||G.clickTrackingParams;!f&&G&&(f=_.Ye(G));f&&_.uW(S,f)}}}];var pHN={},ZC=function(){return _.dv.apply(this,arguments)||this};
_.q(ZC,_.dv);ZC.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
ZC.prototype.onPdgItemBehaviorClick=ZC.prototype.onPdgItemBehaviorClick;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],ZC.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],ZC.prototype,"data",void 0);_.N([_.Vg("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],ZC.prototype,"onPdgItemBehaviorClick",null);_.N([_.iu()],ZC);pHN.YtPdgLiveChatItemBehavior=[ZC.prototype,_.c.YtRendererBehavior];var ASm;var NMm;_.ti={};_.ti.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var u_=function(){var f=cS.apply(this,arguments)||this;f.switchTemplateAtRegistration=!1;return f};
_.q(u_,cS);u_.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||CYs(this),_.F_1(this,"doRender"),this.doRender())};
u_.prototype.debounceRender=function(){this.templatingFn&&_.NJ(this,"doRender",this.doRender)};
u_.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.xH(Error("ah"))};
u_.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.N([hFN()],u_);var MQ8=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,av={},Mo1=(av[1]={filterString:null,isUnwrappable:null,unwrap:null},av[2]={filterString:function(f,S,B){return X$(B)},
isUnwrappable:function(f){return f instanceof rc},
unwrap:function(f){return OQ(f)}},av[3]={filterString:function(f,S,B){return MQ8.test(B)?B:dc.toString()},
isUnwrappable:function(f){return F6(f)},
unwrap:function(f){return _.Ve(f)}},av[4]={filterString:function(){return dc.toString()},
isUnwrappable:function(f){return f instanceof mg},
unwrap:function(f){return _.RP(f).toString()}},av[5]={filterString:function(f,S,B){return B},
isUnwrappable:function(f){return typeof f==="string"},
unwrap:function(f){return f.toString()}},av[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(f){return f instanceof _.sQ},
unwrap:function(f){return IP(f)}},av[8]={filterString:function(f,S,B){B=String(B).toLowerCase();
return bOT(f,S,B)?B:"zClosurez"},
isUnwrappable:null,unwrap:null},av[10]={filterString:null,isUnwrappable:null,unwrap:null},av);cD[Uv["default"]]=to9;var uCx=[];var zyN=y7s("A"),Rys=y7s("BUTTON"),jq=y7s("DIV"),XMs=y7s("LABEL");(function(){var f=WW;WW=function(S){f==null||f(S);En(function(){for(var B=0;B<S.length;B++)aJV(S[B])})}})();var ZI7=function(){var f=_.dv.apply(this,arguments)||this;f.hasUnmounted=!1;return f};
_.q(ZI7,_.dv);_.e=ZI7.prototype;_.e.beforeRegister=function(){var f=this.doIdomRender;this.templatingFn?_.xH(Error("$g")):(this.templatingFn=f,this.switchTemplateAtRegistration=!0,Naj(this))};
_.e.attached=function(){};
_.e.detached=function(){aJV(this.hostElement)};
_.e.renderIdom=function(){throw Error("ch");};
_.e.doIdomRender=function(){var f=this;tP1(this.hostElement,function(){f.renderIdom()})};
_.N([_.iu()],ZI7);var tQ1=[u_.prototype,ZI7.prototype];var ufj,aHm=function(){return ufj!==void 0?ufj:ufj=document.createElement("template")};
document.head.appendChild(aHm().content);var ySL;var W0v,cSX=function(){return W0v!==void 0?W0v:W0v=document.createElement("template")};
document.head.appendChild(cSX().content);var lHL;var fJm=document.head,ow$=fJm.appendChild,S$L;if(lHL===void 0){var BaN=document.createElement("template");_.Y(BaN,"\x3c!--css-build:shady--\x3e");BaN.content.insertBefore(cSX().content.cloneNode(!0),BaN.content.firstChild);lHL=BaN}S$L=lHL;ow$.call(fJm,S$L.content);var GHi,gwm=function(){return GHi!==void 0?GHi:GHi=document.createElement("template")};
document.head.appendChild(gwm().content);var etX;var bx6=document.head,mDL=bx6.appendChild,ztm;if(etX===void 0){var RtL=document.createElement("template");_.Y(RtL,"\x3c!--css-build:shady--\x3e");RtL.content.insertBefore(gwm().content.cloneNode(!0),RtL.content.firstChild);etX=RtL}ztm=etX;mDL.call(bx6,ztm.content);var XJ1=document.head,wJm=XJ1.appendChild,ht1;if(ySL===void 0){var Tam=document.createElement("template");_.Y(Tam,"\x3c!--css-build:shady--\x3e");Tam.content.insertBefore(aHm().content.cloneNode(!0),Tam.content.firstChild);ySL=Tam}ht1=ySL;wJm.call(XJ1,ht1.content);var FDo,Vo6=function(){return FDo!==void 0?FDo:FDo=document.createElement("template")};
document.head.appendChild(Vo6().content);var J7N;_.yU=new _.Sn("DARK_THEME_TOKEN");var CgM=new _.u("accessibilityProperties");var ULQ=new _.u("layoutProperties");var pIQ=new _.u("imageType");var PYm={};if("ytAttributedStringLinkHoverColor"in PYm)throw Error("fh`ytAttributedStringLinkHoverColor");(function(f,S){PYm[f]="value"in S&&"unit"in S?oY1(f,S):function(B){try{return S(B)}catch(G){throw Error("dh`"+f+"`"+G.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var vwj=function(f){var S=this;this.holdTime=f===void 0?500:f;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(B){var G=new CustomEvent("LONG_PRESS"),g;(g=B.changedTouches[0].target)==null||g.dispatchEvent(G)};
this.ontouchstart=function(B){S.longPressTimeout=_.OR(_.xJ,function(){S.onlongpress(B);S.longPressOccurred=!0},S.holdTime)};
this.ontouchmove=function(){_.xJ.cancelJob(S.longPressTimeout);S.longPressTimeout=NaN;S.longPressOccurred=!1;S.moveOccurred=!0};
this.ontouchend=function(B){if(S.longPressTimeout&&!S.longPressOccurred&&!S.moveOccurred){var G;(G=B.changedTouches[0].target)==null||G.dispatchEvent(new Event("click"))}_.xJ.cancelJob(S.longPressTimeout);S.longPressTimeout=NaN;S.longPressOccurred=!1;S.moveOccurred=!1}};var icW=function(f,S){vwj.call(this,S);var B=this;this.callback=f;this.onlongpress=function(G){var g;(g=B.callback)==null||g.call(B,G)}};
_.q(icW,vwj);var HcM=function(f,S){var B=Object.assign({},S);f=_.m(new Map([["ontouchstart",f.ontouchstart],["ontouchend",f.ontouchend],["ontouchmove",f.ontouchmove]]));for(var G=f.next(),g={};!G.done;g={eventName$jscomp$85:void 0,eventHandler$jscomp$1:void 0},G=f.next()){var b=_.m(G.value);G=b.next().value;b=b.next().value;g.eventName$jscomp$85=G;g.eventHandler$jscomp$1=b;S[g.eventName$jscomp$85]=function(z){return function(X){var w;(w=B[z.eventName$jscomp$85])==null||w.call(B,X);(0,z.eventHandler$jscomp$1)(X)}}(g)}};_.S7=new _.Sn("COMMAND_HANDLER_TOKEN");var BSN=new _.u("parallelCommand");var eZM=new _.u("performOnceCommand");var gY9=new _.u("serialCommand");var bcx=void 0;var KDv=function(){this.data=[];this.consumer=null};
KDv.prototype.push=function(f){this.consumer?this.consumer(f):this.data.push(f)};var b1={};_.hj(b1,void 0,"sgPmTd");_.hj(null,void 0,"jypsq");var eOW=new KDv;var F7A=[JhW,PyT,vLx,dX1,KKM,VJA,iAV,HAM];var DLj=new _.u("bracketTextDecorator");var uk=new _.u("highlightTextDecorator");_.cs=new _.Sn("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var EYN=function(){},dDo;
(dDo=window.requestIdleCallback)==null||dDo.bind(window);var ksA={calledOnce:!1,state:"visible"},L7s={calledOnce:!1,state:"hidden"};var ixN=new _.Sn("ICON_WIZ_COMPONENT_TOKEN");_.Y8=_.oS(function(f){var S=f.icon;var B=f.active;var G=f.className;var g=f.style;var b=f.dataSelected;var z=f.dataDisabled;var X=f.role;var w=f.animateIcon;var F=f.themeOverride;var V=f.ariaHidden;var J=f.ariaExpanded;var P=f.ariaLabel;var d=f.tabindex;var Q=f.id;var x=f.size;var E=f.iconFilter;return _.T(_.v,{cond:S,then:function(){var U=_.oy().resolve(ixN);return _.T(U,{icon:S,dataSelected:b,dataDisabled:z,animateIcon:w,themeOverride:F,ariaExpanded:J,tabindex:d,id:Q,active:B,size:x,role:X,className:G,
ariaHidden:V,ariaLabel:P,style:function(){return g!=null&&g()||x==null||!x()?g==null?void 0:g():"width: "+(x==null?void 0:x())+"px;height: "+((x==null?void 0:x())+"px;")},
iconFilter:E})}})},"b");
_.Y8.idomCompat=!0;var GRT=window.devicePixelRatio||1;var mTT=new Map([["yt_outline_bag_black_24","bag"]]);var yh=function(f){var S=this;this.margin=.1;this.whenInViewportWithMargin=f;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){S.requestScan()});
window.addEventListener("touchend",function(){S.requestScan()});
window.addEventListener("updateui",function(){S.requestScan()});
var B=new _.S3((0,_.$A)(this.requestScan,this),100);window.addEventListener("scroll",function(){B.fire()},!0);
window.addEventListener("resize",(0,_.$A)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){S.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.$A)(this.requestScan,this))};
yh.prototype.observe=function(f){this.observationTargets.includes(f)||this.observationTargets.push(f)};
yh.prototype.unobserve=function(f){this.observationTargets=this.observationTargets.filter(function(S){return S!==f})};
yh.prototype.requestScan=function(){var f=this;this.scanRequested||(En(function(){HxN(f)}),this.scanRequested=!0)};
var HxN=function(f){var S=(1+f.margin)*(document.documentElement.clientHeight||window.innerHeight);f.observationTargets=f.observationTargets.filter(function(B){var G=B.getBoundingClientRect();(G=S>G.top&&!!G.height)&&f.whenInViewportWithMargin(B);return!G&&B.parentNode});
f.scanRequested=!1};
yh.prototype.disconnect=function(){this.observationTargets=[]};var q$X,Qzv;q$X=_.m(_.hj(hWj(),void 0,"O3X2wd"));_.$Dv=q$X.next().value;Qzv=q$X.next().value;window.addEventListener("resize",function(){Qzv(hWj())});var Y$g={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},r7L=void 0,jz7=window.innerWidth,Oxo=window.innerHeight;window.addEventListener("resize",function(){r7L=void 0});var xD7;if("IntersectionObserver"in window)xD7=Vh1();else{if(r7L===void 0){var Ewo;Ewo="matchMedia"in window?window.matchMedia(Y$g.landscape+","+Y$g.portrait).matches:void 0;r7L=Ewo!==void 0?Ewo:jz7>=930&&Oxo>=550||jz7>=550&&Oxo>=930}xD7=r7L?{observe:function(f){En(function(){var S;(S=f.onViewportEntered)==null||S.call(f)})},
unobserve:function(){}}:new yh(function(f){En(function(){var S;
(S=f.onViewportEntered)==null||S.call(f)})})}var Tts=xD7;var LD7=_.oS(function(f){var S=!1,B=_.tE("img",function(G){_.Ov(function(){S=!0;G.onload=null})});
_.jp(function(){var G,g=(G=f.data)==null?void 0:G.call(f),b,z=(b=f.getSrc)==null?void 0:b.call(f).cb,X;G=(X=f.config)==null?void 0:X.call(f);if(X=B.value)if(b=function(F,V){if(!S)return z?z(F,V):F},v4K(X,G),_.K("web_image_dont_reload_same_src")&&PRj(X,g,b))_.K("web_image_dont_reload_same_src_simulate_load")&&X.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var w;J4W(X,g||null,b,G,(w=f.lazy)==null?void 0:w.call(f))}},"v0I2p");
return _.T("img",{el:B})},"c");
LD7.idomCompat=!0;_.f9=_.oS(function(f){var S=function(){var B,G=f.data(),g,b,z,X,w,F,V,J,P,d,Q,x,E,U,A,t,M,a,l,mx,zj,VN,$Q,OV,rW,MA,UV,W7,c7;var Q$={contentMode:(g=f.contentMode)==null?void 0:g.call(f),loadedClass:(b=f.loadedClass)==null?void 0:b.call(f),isPreloaded:(z=f.isPreloaded)==null?void 0:z.call(f),notifyOnLoaded:(X=f.notifyOnLoaded)==null?void 0:X.call(f),notifyOnUnloaded:(w=f.notifyOnUnloaded)==null?void 0:w.call(f),preferredThumbnail:(F=f.preferredThumbnail)==null?void 0:F.call(f),preserveHeight:(V=f.preserveHeight)==
null?void 0:V.call(f),preserveWidth:(J=f.preserveWidth)==null?void 0:J.call(f),objectPosition:(P=f.objectPosition)==null?void 0:P.call(f),targetWidth:(d=f.targetWidth)==null?void 0:d.call(f),targetHeight:(Q=f.targetHeight)==null?void 0:Q.call(f),shouldShowPlaceholder:(x=f.shouldShowPlaceholder)==null?void 0:x.call(f),useWidth:(E=f.useWidth)==null?void 0:E.call(f),isToggled:(U=f.isToggled)==null?void 0:U.call(f),alt:(A=f.alt)==null?void 0:A.call(f),className:(t=f.className)==null?void 0:t.call(f),
onerror:f.onerror,onload:f.onload,style$:((M=f.style$)==null?void 0:M.call(f))||((a=f.style)==null?void 0:a.call(f)),color:(l=f.color)==null?void 0:l.call(f),width:(mx=f.width)==null?void 0:mx.call(f),height:(zj=f.height)==null?void 0:zj.call(f),"aria-hidden$":(W7=(VN=f["aria-hidden$"])==null?void 0:VN.call(f))!=null?W7:($Q=f.ariaHidden)==null?void 0:$Q.call(f),draggable:(OV=f.draggable)==null?void 0:OV.call(f),"data-disabled$":(c7=(rW=f["data-disabled$"])==null?void 0:rW.call(f))!=null?c7:(MA=f.dataDisabled)==
null?void 0:MA.call(f),size:(UV=f.size)==null?void 0:UV.call(f)};return iwx(G,Q$,(B=f.hideOn404)==null?void 0:B.call(f))};
return _.T(_.qp,null,_.T(_.i0,{when:function(){var B;return((B=S())==null?void 0:B.type)==="image"}},function(){return _.T(LD7,{data:function(){return S().image},
getSrc:{cb:function(B,G){var g=S().image.sources,b=S().config.isPreloaded,z=S().config.useWidth,X=S().config.targetWidth,w=S().config.targetHeight,F=S().config.preferredThumbnail;return _.g4N(G,g,b,z,X,w,F)||""}},
config:function(){var B=S().config,G;for(G in B)B[G]===void 0&&delete B[G];return B},
lazy:f.renderLazy})}),_.T(_.i0,{when:function(){var B;
return((B=S())==null?void 0:B.type)==="icon"}},function(){return _.T(_.Y8,{icon:function(){return S().iconName},
role:function(){return S().config.role},
className:function(){return S().config.className},
style:function(){return S().config.style$+";width: "+(S().config.width+"px;height: ")+(S().config.height+"px;color: ")+(S().config.color+";")},
ariaLabel:function(){return S().config["aria-label$"]},
ariaHidden:function(){return S().config["aria-hidden$"]},
dataDisabled:function(){return S().config["data-disabled$"]},
active:function(){return S().config.isToggled},
size:function(){return S().config.size}})}))},"d");
_.f9.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var kHN=function(f){return function(S){return _.T(Rdj,null,function(){var B=S.data(),G=_.Ev(S.config);return _.T(y0,null,function(){return void f(B,G)})})}}(QbV),qmN=_.oS(function(f){var S=function(G){var g,b=_.Sq(function(P){g=xp(function(){for(var d=_.m(V()),Q=d.next();!Q.done;Q=d.next()){Q=YmT(Q.value);
Q=typeof Q==="string"?document.createTextNode(Q):Q;if(!(Q instanceof Node)){d=new _.dO("Part is not a node",Q,typeof Q);_.xH(d);break}P.appendChild(Q)}})}),z=Bw(function(){return NS1(G())},{isEqual:Hwj}),X=_.cF(f.config),w=function(){var P,d=z();
return!((P=X())==null||!P.ariaLabel)||!(d.commandRuns&&d.commandRuns.length!==0||d.paragraphStyleRuns&&d.paragraphStyleRuns.length!==0)},F=Bw(X,{isEqual:jbQ}),V=function(){var P=A6N(z(),F());
ZcW(P,F());return z().content?c69(z().content,P).parts:[]},J=!0;
_.jp(function(){z();F();if(J)J=!1;else{var P=V();Promise.resolve().then(function(){var d=b.value;if(d){d.innerText="";var Q;(Q=g)==null||Q();g=_.QR(d,function(){return _.T(r4Q,{parts:P})})}})}},"YlhjWd");
return _.T("span",{el:b,class:function(){return z()&&r6V(z(),X())},
dir:function(){var P;return((P=X())==null?0:P.userInput)?"auto":void 0},
"aria-label":function(){var P;return w()?(P=X())==null?void 0:P.ariaLabel:void 0},
role:function(){return w()?"text":void 0}})},B;
return((B=f.config)==null?0:B.renderedFromFormattedString)?S(f.text):_.T(_.v,{cond:f.text,then:S})},"e");
qmN.idomCompat=!0;_.oY=_.oS(function(f){var S=_.cF(f.text),B=OwW(f);f.renderedFromFormattedString!==void 0&&(B.renderedFromFormattedString=!0);return _.K("attr_string_reactive")?_.T(qmN,{text:S,config:B}):_.T(_.v,{cond:function(){var G;return S()&&((G=NS1(S()))==null?void 0:G.content)},
then:function(){return _.T(kHN,{data:f.text,config:B})},
debugInstance:"Apcuac"})},"f");
_.oY.idomCompat=!0;var E4j=function(f,S,B){S=S===void 0?"unknown":S;B=B===void 0?{}:B;_.dO.call(this,f+" ("+S+")",Object.assign({},{name:"YtWcwError",tagName:S},B));Object.setPrototypeOf(this,this.constructor.prototype)};
_.q(E4j,_.dO);_.Iij=new WeakMap;_.DTQ=!1;var sbW,UTV,n4M;_.W4=Symbol("hh");_.gm=Symbol("ih");sbW=Symbol("jh");UTV=new Set(Object.getOwnPropertyNames(Element.prototype));n4M=Symbol("kh");var nwN=_.oS(function(f){return _.T("yt-attributed-string",{"aria-label":f.ariaLabel,hidden:f.hidden,id:f.id,class:f.className,"force-default-style":f.forceDefaultStyle},_.T(_.oY,{text:f.data,ariaLabel:f.ariaLabel,ellipsisTruncate:f.ellipsisTruncate,isOverlay:f.isOverlay,linkInheritColor:f.linkInheritColor,noPreWrap:f.noPreWrap,noWrap:f.noWrap,userInput:f.userInput,noEndpoints:f.noEndpoints,headerRuns:f.headerRuns}))},"g");
_.K("web_wiz_attributed_string")&&_.eq(nwN,"yt-attributed-string",{props:{ariaHidden:_.W4,ariaLabel:_.W4,className:_.W4,ellipsisTruncate:_.W4,isOverlay:_.W4,linkInheritColor:_.W4,noEndpoints:_.W4,noStyleRuns:_.W4,noLinkColor:_.W4,noPreWrap:_.W4,noWrap:_.W4,skipOnClick:_.W4,userInput:_.W4,headerRuns:_.W4,id:_.W4,data:_.W4,hidden:_.W4,forceDefaultStyle:_.W4,text:_.gm,stopPropagation:_.gm,disableUpgrade:_.gm,disable:_.gm,slot:_.gm}});var c4=function(){return _.I.apply(this,arguments)||this};
_.q(c4,_.I);c4.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},QbV(this.data,this.config))};
_.N([_.r(tQ1),_.Z("design:type",Object)],c4.prototype,"ytIdomTemplatingBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],c4.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],c4.prototype,"ariaLabel",void 0);_.N([_.n(),_.Z("design:type",Boolean)],c4.prototype,"disable",void 0);_.N([_.n(),_.Z("design:type",Boolean)],c4.prototype,"ellipsisTruncate",void 0);_.N([_.n(),_.Z("design:type",Boolean)],c4.prototype,"isOverlay",void 0);
_.N([_.n(),_.Z("design:type",Boolean)],c4.prototype,"linkInheritColor",void 0);_.N([_.n(),_.Z("design:type",Boolean)],c4.prototype,"noPreWrap",void 0);_.N([_.n(),_.Z("design:type",Boolean)],c4.prototype,"noWrap",void 0);_.N([_.n(),_.Z("design:type",Boolean)],c4.prototype,"userInput",void 0);_.N([_.n(),_.Z("design:type",Boolean)],c4.prototype,"noEndpoints",void 0);_.N([_.n(),_.Z("design:type",Array)],c4.prototype,"headerRuns",void 0);
_.N([_.nP({is:"yt-attributed-string",disableElementRegistration:!0})],c4);
_.K("web_wiz_attributed_string")||_.p(c4,"yt-attributed-string",function(){if(J7N===void 0){var f=document.createElement("template");_.Y(f,"\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");f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);
f.content.insertBefore(Vo6().content.cloneNode(!0),f.content.firstChild);J7N=f}f=J7N;return f},{mode:2});var sz6,DD7,th1;sz6=function(){this.firstThumbnailLoaded=!1};
_.IJm=function(){DD7||(DD7=new sz6);return DD7};
th1=function(f){var S=_.IJm();S.firstThumbnailLoaded||(S.firstThumbnailLoaded=!0,_.kT("ftl",f))};
sz6.prototype.reset=function(){this.firstThumbnailLoaded=!1};var pCj=0,Zwj=new WeakMap,Nt1=0,zD=new Set;var UDX,CY1=function(){return UDX!==void 0?UDX:UDX=document.createElement("template")};
document.head.appendChild(CY1().content);var pJo;var WST,li9,l_;_.wm=_.S1.caches;l_=function(){};
l_.prototype.open=function(f){return _.wm.open(A7m(f))};
l_.prototype.has=function(f){return _.wm.has(A7m(f))};
l_.prototype.delete=function(f){return _.wm.delete(A7m(f))};
l_.prototype.match=function(f,S){var B=this,G,g,b,z,X,w;return _.R(function(F){switch(F.nextAddress){case 1:return _.h(F,B.keys(),2);case 2:G=F.yieldResult,g=_.m(G),b=g.next();case 3:if(b.done){F.jumpTo(5);break}z=b.value;return _.h(F,B.open(z),6);case 6:return X=F.yieldResult,_.h(F,X.match(f,S),7);case 7:if(w=F.yieldResult)return F.return(w);b=g.next();F.jumpTo(3);break;case 5:return F.return()}})};
var flN=function(){};
_.q(flN,l_);var A7m=function(f){if(f.includes(":"))throw Error("nh`"+f);return f+":"+_.vL("CacheStorage get")};
flN.prototype.keys=function(){var f,S,B,G,g,b,z,X,w;return _.R(function(F){if(F.nextAddress==1)return f=[],S=_.vL("CacheStorage keys"),_.h(F,_.wm.keys(),2);B=F.yieldResult;G=_.m(B);for(g=G.next();!g.done;g=G.next())b=g.value,z=_.y4Q(b),X=z.originalName,w=z.datasyncId,w===S&&f.push(X);return F.return(f)})};var fV=function(){var f=_.I.apply(this,arguments)||this;f.objectURL=null;f.loadTime=Infinity;return f};
_.q(fV,_.I);_.e=fV.prototype;_.e.renderIdom=function(){ai1(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("qh");this.setConfig();this.config&&KSN(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.e.objectFitToContentMode=function(f){switch(f){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.e.logThumbnailFailureVe=function(){var f=_.Eo(197497);_.Xo(_.ik(),f);var S=_.xc();S&&f&&S&&_.Zu(S,[f])};
_.e.loadImageFromCacheIfExists=function(f){var S=this,B=f.target;(B==null?0:B.src)&&SNK(B.src).then(function(G){S.objectURL=_.Ho(G).toString();S.setSrc(B,S.objectURL)}).catch(function(){})};
_.e.onError=function(f){var S=this;if(_.K("web_use_cache_for_image_fallback")){var B=f.target;B&&SNK(B.src).then(function(G){S.objectURL=_.Ho(G).toString();S.setSrc(B,S.objectURL)}).catch(function(){_.K("kevlar_woffle_log_thumbnail_failure_ve")&&S.logThumbnailFailureVe();
_.K("kevlar_woffle_fallback_image")&&S.setSrc(B,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.e.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.e.setConfig=function(){var f=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(S){f.loadImageFromCacheIfExists(S);f.revokeObjectURL();uBs(f.hostElement)},
onerror:function(S){f.onError(S)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.K("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.e.setSrc=function(f,S){S&&(f.src=S)};
_.N([_.r(tQ1),_.Z("design:type",Object)],fV.prototype,"ytIdomTemplatingBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],fV.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",String)],fV.prototype,"alt",void 0);_.N([_.n(),_.Z("design:type",Boolean)],fV.prototype,"ftlEligible",void 0);_.N([_.n(),_.Z("design:type",Number)],fV.prototype,"height",void 0);_.N([_.n(),_.Z("design:type",Boolean)],fV.prototype,"notifyOnLoaded",void 0);
_.N([_.n(),_.Z("design:type",Boolean)],fV.prototype,"notifyOnUnloaded",void 0);_.N([_.n(),_.Z("design:type",String)],fV.prototype,"objectFit",void 0);_.N([_.n(),_.Z("design:type",String)],fV.prototype,"objectPosition",void 0);_.N([_.n(),_.Z("design:type",String)],fV.prototype,"preferredThumbnail",void 0);_.N([_.n(),_.Z("design:type",Boolean)],fV.prototype,"preserveHeight",void 0);_.N([_.n(),_.Z("design:type",Boolean)],fV.prototype,"preserveWidth",void 0);
_.N([_.n({value:!0}),_.Z("design:type",Boolean)],fV.prototype,"useWidth",void 0);_.N([_.n({value:function(){return!_.s6("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.Z("design:type",Boolean)],fV.prototype,"shouldRenderLazy",void 0);_.N([_.n(),_.Z("design:type",Number)],fV.prototype,"width",void 0);_.N([_.nP({is:"yt-image",disableElementRegistration:!0})],fV);
_.p(fV,"yt-image",function(){if(pJo===void 0){var f=document.createElement("template");_.Y(f,"\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");f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);f.content.insertBefore(CY1().content.cloneNode(!0),f.content.firstChild);
pJo=f}f=pJo;return f},{mode:2});var o5=function(){return _.I.apply(this,arguments)||this};
_.q(o5,_.I);o5.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var f=_.CH(this.data.onVisibleCommand);f&&this.ytComponentBehavior.resolveCommand(f)}};
_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],o5.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],o5.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ti.YtVisibilityBehavior),_.Z("design:type",Object)],o5.prototype,"ytVisibilityBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],o5.prototype,"data",void 0);_.N([_.nP({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],o5);
_.p(o5,"yt-bumper-user-edu-content-view-model",function(){if(NMm===void 0){var f=document.createElement("template");_.Y(f,'\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>');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;ASm===void 0&&(ASm=document.createElement("template"));var G=ASm;B.call(S,G.content.cloneNode(!0),f.content.firstChild);NMm=f}f=NMm;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var Nao;var Moj,Zx$=function(){if(Moj!==void 0)return Moj;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;Nao===void 0&&(Nao=document.createElement("template"));var G=Nao;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return Moj=f};var to7;_.Sy={};to7=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"]);_.Sy.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var f=this.getContext_();return f?f.getTaskManager():_.xJ},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var f=_.ew(this.hostElement,"yt-get-context-provider",{});f.detail&&f.detail.contextProvider?this.cachedProviderNode_=f.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return to7.has(this.hostElement.localName)},
getNetworkManager:function(){var f=this.getContext_();if(f)return f.getNetworkManager()}};var mtK,uC6,y71,aJ8;_.Bl=function(f){var S=uC6.get(f);if(S&&(S=S.pop()))return aJ8++,S;y71++;try{var B=document.createElement(f)}catch(G){throw new _.dO("ElementPool failed to create element",f,G.message);}return B};
mtK=function(f){var S=f.is;if(S){var B=uC6.get(S);B||(B=[],uC6.set(S,B));var G=_.nL("ELEMENT_POOL_CONFIG")||{};B.length>=(G[S]!==void 0?G[S]:_.nL("ELEMENT_POOL_DEFAULT_CAP",0))||B.push(f)}else _.Lg(new _.dO("Element pool should only handle custom elements:",f.nodeName))};
uC6=new Map;y71=0;aJ8=0;var h3=new WeakMap,b31=new WeakMap;var c7N;_.G7=function(f,S,B){B=B===void 0?_.kj():B;this.JSC$11748_defaultPriority=f;this.signal=S;this.scheduler=B;this.nextJobDescriptor=0;this.JSC$11748_parkedJobs=[];this.scheduledJobs=new Map};
_.gP=function(f,S){if(S){var B=_.UX();f.signal&&!_.CD(B,f.signal)?(B.addListener(f.signal,function(){f.processSignal()}),f.JSC$11748_parkedJobs.push({job:S,
priority:void 0})):WDg(f,S)}};
c7N=function(f,S){if(S!==f.JSC$11748_defaultPriority){f.JSC$11748_defaultPriority=S;for(var B=_.m(f.scheduledJobs.values()),G=B.next();!G.done;G=B.next())G=G.value,f.scheduler.cancelJob(G.jobId),G.jobId=f.scheduler.addJob(G.jobWrapper,S)}};
_.G7.prototype.flushJobs=function(){c7N(this,10);this.processSignal()};
_.G7.prototype.cancel=function(){for(var f=_.m(this.scheduledJobs),S=f.next();!S.done;S=f.next()){var B=_.m(S.value);S=B.next().value;B=B.next().value;this.scheduler.cancelJob(B.jobId);this.scheduledJobs.delete(S)}this.JSC$11748_parkedJobs=[]};
_.G7.prototype.processSignal=function(){for(var f=_.m(this.JSC$11748_parkedJobs),S=f.next();!S.done;S=f.next())S=S.value,WDg(this,S.job,S.priority);this.JSC$11748_parkedJobs=[]};
var WDg=function(f,S,B){B=B||f.JSC$11748_defaultPriority;if(B===10)Ra(S);else{var G=f.nextJobDescriptor++,g=function(){S();f.scheduledJobs.delete(G)},b=f.scheduler.addJob(g,B);
f.scheduledJobs.set(G,{jobWrapper:g,jobId:b,priority:B})}};_.Su(w5x);var hbN={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};h_K({beforeVisit:function(f){if(mT.has(f.type)){var S;(S=f.props).idomKey!=null||(S.idomKey=f.type)}else f.type.TAG_NAME&&(eP=f.type.TAG_NAME)},
afterRender:function(f,S){var B;eP=(B=S==null?void 0:S.type)!=null?B:""},
didPatch:function(){eP=""}});var lJX;_.ey={};lJX={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.ey.YtRendererstamperBehavior=[_.Sy.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 f in this.stampDom){var S=this.stampDom[f];S&&S.id&&this.addReactiveSchema({type:"observe",method:{methodName:GyM(S.id),args:[{type:"wildcard",path:f}]}})}else{(f=(this.constructor.generatedFrom||this).observers)||(f=[]);for(S in this.stampDom){var B=this.stampDom[S];B&&B.id&&f.push(GyM(B.id)+"("+S+".*)")}this.constructor.generatedFrom.observers=f}},
addStampDomObserverFns_:function(){for(var f in this.stampDom){var S=this.stampDom[f];S.id?(this[GyM(S.id)]=this.rendererStamperObserver_.bind(this,f,S.id),this.hasDataPath_[f]=!1):(S=new _.dO("Bad rendererstamper config",this.is+":"+f),_.xH(S))}},
rendererStamperObserver_:function(f,S,B){if(B.path==f){if(B.value===void 0&&!this.hasDataPath_[f])return;this.hasDataPath_[f]=B.value!==void 0}this.rendererStamperApplyChangeRecord_(f,S,B)},
rendererStamperApplyChangeRecord_:function(f,S,B){var G=this.renderJobsMap_[S],g=null;f==B.path?(B=B.value,_.W9(B)||(B=B===void 0||B===null?[]:[B]),f=this.stampDom[f],f.mapping&&(g=this.stampDomArray_.bind(this,B,S,f.mapping,f.reuseComponents,f.events,f.stamperStableList)),G&&G.cancel(),B=f.usePageScheduler?this.getTaskManager():void 0,G||f.initialRenderPriority==void 0)?f.renderPriority==void 0||G||(G=new _.G7(f.renderPriority,f.waitForSignal,B),this.renderJobsMap_[S]=G):(G=new _.G7(f.initialRenderPriority,
f.waitForSignal,B),this.renderJobsMap_[S]=G,g=function(b,z){b();c7N(z,10)}.bind(this,g,G)):g=f+".splices"==B.path?this.stampDomArraySplices_.bind(this,f,S,B.value):this.forwardRendererStamperChanges_.bind(this,f,S,B);
G?_.gP(G,g):g()},
forwardRendererStamperChanges_:function(f,S,B){var G=B.path.slice(f.length+1),g=this.getStampContainer_(S),b=G.indexOf("."),z=G.substring(0,b),X=!1,w=0,F=parseInt(z,0);if(z[0]=="#"){X=parseInt(z.substring(1),0);F=this.get(f);var V=this.get([f,z]);F[X]==V?w=X:w=F.indexOf(V);X=!0}else isNaN(F)||(w=F,X=!0);X&&(G=G.substring(z.length+1),b=G.indexOf("."));z=_.HZ(g).children[w];var J;if(g=(J=z==null?void 0:z.polymerController)!=null?J:z)G="data"+G.slice(b),typeof g.notifyPath!=="function"?_.Lg(new _.dO("notifyPath missing",
this.is+": "+f+", "+S)):B.value?g.notifyPath(G,B.value):g.notifyPath(G)},
stampDomArraySplices_:function(f,S,B){if(B&&B.indexSplices){var G=this.getStampContainer_(S);if(G){for(var g=_.HZ(G),b=ebW(this.stampDom[f].reuseComponents),z=B.indexSplices.length,X=0;X<z;X++){for(var w=B.indexSplices[X],F=g.children[w.index],V=w.removed.length;V>0;V--)F&&F.parentElement&&(_.HZ(F.parentElement).removeChild(F),b&&mtK(F),F=g.children[w.index]);V=this.stampDom[f].mapping;for(var J=w.index+w.addedCount,P=document.createDocumentFragment(),d=b,Q=w.index;Q<J;Q++){var x=w.object[Q],E=BdM(V,
x);if(E){var U=V[E];x=x[E];E=this.getComponentName_(U,x);var A=F?h3.has(F):!1;d&&F&&F.is==E&&A?(E=F,this.telemetry_.reuse++,F=F.nextElementSibling):d&&F&&A?(E=this.createComponent_(U,x,b),A=_.HZ(F).nextElementSibling,g.insertBefore(E,A),RbK(this.is,g,F,b),F=A):(d=!1,E=this.createComponent_(U,x,b),P.appendChild(E));this.deferRenderStamperBinding_(E,U,x)}else U=new _.dO("Unimplemented type",f,S,G.tagName,Object.keys(x)[0]),_.xH(U)}g.insertBefore(P,F)}this.flushRenderStamperComponentBindings_();this.stampDom[f].events&&
_.ew(this.hostElement,"yt-rendererstamper-finished",{container:G})}else f=new _.dO("Container object not found",S,this.hostElement?this.hostElement.is:""),_.xH(f)}},
stampDomArray_:function(f,S,B,G,g,b){var z=this.getStampContainer_(S);if(z)if(S=_.HZ(z),G=ebW(G),f){var X=0,w=0,F;if(b=b===void 0?_.s6("STAMPER_STABLE_LIST",!1):b||!1)for(F=S.firstElementChild;F&&!h3.has(F)&&f.length>w;){b=f[w];var V=BdM(B,b);if(V){if(this.getComponentName_(B[V],b[V])!=F.is){var J=this.createComponent_(B[V],b[V],G),P=_.HZ(F).nextElementSibling;P?S.insertBefore(J,P):S.appendChild(J);RbK(this.is,S,F,G);F=J}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(F,B[V],b[V]);X++;
w++;F=_.HZ(F).nextElementSibling}else w++}X5G(this.is,S,X,G);X=F;if(f.length>w){b=document.createDocumentFragment();for(V=f.length;w<V;w++)if(J=f[w],P=BdM(B,J))F=this.createComponent_(B[P],J[P],G),this.deferRenderStamperBinding_(F,B[P],J[P]),b.appendChild(F);X&&_.HZ(X).parentNode&&F&&!h3.has(F)?S.insertBefore(b,X):S.appendChild(b)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();g&&_.ew(this.hostElement,"yt-rendererstamper-finished",{container:z})}else X5G(this.is,S,0,
G);else f=new _.dO("Container object not found",S,this.hostElement?this.hostElement.is:""),_.xH(f)},
getStampContainer_:function(f){return this.$&&this.$[f]||_.m9(this.hostElement).querySelector("#"+f)},
getComponentName_:function(f,S){return typeof f==="string"?f:f.matcher?f.matcher.call(this,S):f.component},
createComponent_:function(f,S,B){f=this.getComponentName_(f,S);try{var G=zi.has(f)||mT.has(f);if(B&&!G){var g=_.Bl(f);try{_.hO(g)}catch(b){B="Failed to clear styles for "+f+".",b.message&&(B+=" Original error: "+b.message),_.Lg(new _.dO(B))}}else g=document.createElement(f)}catch(b){return g="YtRendererStamperBehavior failed to create "+f+".",b.message&&(g+=" Original description: "+b.message),b.message="YtRendererStamperBehavior failed to create element",_.kH(b,g),lJX.hasOwnProperty(f)?_.Lg(b):_.xH(b),
document.createElement("SPAN")}this.telemetry_.create++;return g},
deferRenderStamperBinding_:function(f,S,B){this.deferredBindingTasks_.push({component:f,typeOrConfig:S,data:B})},
flushRenderStamperComponentBindings_:function(){for(var f=0,S=this.deferredBindingTasks_.length;f<S;f++){var B=this.deferredBindingTasks_[f];if(!B)break;var G=void 0,g=void 0,b=void 0,z=void 0,X=B.component,w=B.typeOrConfig;B=B.data;var F=(z=X.polymerController)!=null?z:X;z=X.loggingStatus;try{z&&(z.isRendererStamper=!0);if(typeof w!=="string"){for(b in w.attributes)w.attributes[b]===!0?X.setAttribute(b,""):w.attributes[b]===!1?X.removeAttribute(b):X.setAttribute(b,w.attributes[b]);for(g in w.params)F[g]=
w.params[g],X!==F&&Qg(X.localName,g,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(G in w.properties){var V=w.properties[G];if(V){var J=gCs(V);F[G]=this.get(J);X!==F&&Qg(X.localName,G,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(G==="on-tap"||G==="on-click"){var P=this.get(J);X.addEventListener("click",P);b31.set(X,{property:G,listener:{type:"element",eventName:"click",handler:P}})}}else{var d=new _.dO("Undefined property binding",G);_.xH(d)}}}if(w.classListBinding){var Q=gCs(w.classListBinding),
x=Q?this[Q]:null;if(x)for(G=0;G<x.length;G++)_.Rl(X,x[G],!0)}F.data=B}finally{z&&(z.isRendererStamper=!1)}if(G=h3.get(X))X.hidden=!1,h3.delete(X),_.xJ.cancelJob(G)}this.deferredBindingTasks_.length=0}}];_.b3={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(f){for(var S=_.AE.getInstance(),B=_.m(Object.keys(f)),G=B.next();!G.done;G=B.next()){var g=G.value;G=f[g];if(this&&this[G]){var b=S.actionRoutingMap.get(g);b||(b=new Map,S.actionRoutingMap.set(g,b));S.registerActionHandler(this,g,this[G].bind(this),b)}else g=Error("id"),g.params=G,_.Dt(g)}},
unregisterActionMap:function(f){_.M6(_.AE.getInstance(),f,this)}}]};var Vj=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_"+(_.K("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.K("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.K("enable_web_delhi_icons")?120: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 Fd;var J3=new Map;var $t1=window.matchMedia("(forced-colors: active)").matches;var fG6;var oYj;var j29=new _.Sn("LOTTIE_LOADER_TOKEN");_.eq(_.oS(function(f){return _.T("ytd-lottie-player",{id:f.id,hidden:f.hidden,class:f.className,"aria-label":f.ariaLabel,style:"display: block;"},_.T(_.vw,{data:f.data,animationName:function(){var S;return((S=f.data().animationConfig)==null?void 0:S.name)||""},
animationRef:function(){return f.data().animationRef}}))},"h"),"ytd-lottie-player",{props:{data:_.W4,
id:_.W4,hidden:_.W4,className:_.W4,ariaLabel:_.W4}});var m$=function(){var f=_.I.apply(this,arguments)||this;f.animationRef={};f.delhiIconsEnabled=_.K("enable_web_delhi_icons");return f};
_.q(m$,_.I);_.e=m$.prototype;
_.e.handlePropertyChange=function(){var f=this.animatedIcon,S=this.active,B=this.isDarkTheme;if(f){var G=this.previousActive!==S;this.previousActive=S;this.animationRef.lottieEl?G&&this.toggleAnimation(S,f.totalFrames):S?this.initializeAnimationAsToggled(f.lottiePlayerProps,f.totalFrames):this.initializeAnimationAsUntoggled(f.lottiePlayerProps);f.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=f.type;this.lottiePlayerProps=this.computeLottiePlayerProps(f,B)}};
_.e.computeLottiePlayerProps=function(f,S){var B=this.deepCloneLottiePlayerProps(f);S?(S=f.nameDarkTheme,f=f.pathDarkTheme):(S=f.name,f=f.path);B.animationConfig.name=S;(S=J3.get(f))?B.animationConfig.animationData=S:B.animationConfig.path=f;return B};
_.e.initializeAnimationAsToggled=function(f,S){f.animationConfig.initialSegment=[S-1,S]};
_.e.initializeAnimationAsUntoggled=function(f){f.animationConfig.initialSegment=void 0};
_.e.toggleAnimation=function(f,S){if(f){var B;(B=this.animationRef.lottieEl)==null||B.playSegments([0,S],!0)}else{var G;(G=this.animationRef.lottieEl)==null||G.playSegments([0,1],!0)}};
_.e.deepCloneLottiePlayerProps=function(f){var S=Object.assign({},f.lottiePlayerProps.animationConfig);f=Object.assign({},f.lottiePlayerProps);f.animationConfig=S;return f};
m$.prototype.handlePropertyChange=m$.prototype.handlePropertyChange;_.N([_.n(),_.Z("design:type",Object)],m$.prototype,"animatedIcon",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],m$.prototype,"active",void 0);_.N([_.n(),_.Z("design:type",Boolean)],m$.prototype,"isDarkTheme",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",String)],m$.prototype,"animatedIconType",void 0);_.N([_.n(),_.Z("design:type",Boolean)],m$.prototype,"previousActive",void 0);
_.N([_.n(),_.Z("design:type",Object)],m$.prototype,"lottiePlayerProps",void 0);_.N([_.n(),_.Z("design:type",Object)],m$.prototype,"animationRef",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],m$.prototype,"delhiIconsEnabled",void 0);_.N([_.JO("animatedIcon","active","isDarkTheme"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],m$.prototype,"handlePropertyChange",null);_.N([_.nP({is:"yt-animated-icon",disableElementRegistration:!0})],m$);
_.p(m$,"yt-animated-icon",function(){if(oYj===void 0){var f=document.createElement("template");_.Y(f,'\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>');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;fG6===void 0&&(fG6=document.createElement("template"));var G=fG6;B.call(S,G.content.cloneNode(!0),f.content.firstChild);oYj=f}f=oYj;return f},{mode:2});var Saj;var BSv;var ECK=_.oS(function(f){var S=_.us("span"),B=O6(function(){return{value:null}});
_.Ov(function(){var g;(g=B.value)==null||g.cancel()});
var G=_.vW(f.data,{equals:function(g,b){return g.iconName===b.iconName&&g.iconStyle===b.iconStyle&&g.iconSize===b.iconSize&&g.iconSetName===b.iconSetName&&g.iconSelected===b.iconSelected}},"aoiXAb");
_.jp(function(){var g,b=(g=f.options)==null?void 0:g.call(f);xt1(S,B,G(),b)},"QXgxJd");
return _.T("span",{class:"yt-icon-shape",el:S})},"i");
ECK.idomCompat=!0;var $gT=["youtube_fill","youtube_outline"];var Gsm=new _.jx({type:"iconset",value:void 0}),z7=function(){var f=_.I.apply(this,arguments)||this;f.isDarkTheme=document.documentElement.hasAttribute("dark");f.iconName="";f.iconsetName="yt-icons";f.iconset=null;f.missingIconSet=!1;f.iconType=null;f.iconShapeDataSignal=_.hj(void 0,void 0,"RQ9kUb");f.renderingOptionsSignal=_.hj({iconWidth:"100%",iconHeight:"100%",iconFilter:f.iconFilter},void 0,"qtx8Ef");f.wizHasRendered=!1;f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return f};
_.q(z7,_.I);z7.prototype.onDarkModeToggledAction=function(f){f!==this.isDarkTheme&&(this.isDarkTheme=f)};
z7.prototype.handlePropertyChange=function(){var f=this,S,B,G,g,b,z,X,w,F,V,J,P,d,Q,x,E,U;return _.R(function(A){switch(A.nextAddress){case 1:if(S=!f.icon&&!f.iconName||!f.isAttached)return A.return();B=f;G=B.icon;g=B.size;b=B.defaultToFilled;z=B.active;X=B.targetContainer;f.toggleContainerClass(X);_.K("kevlar_use_wil_icons")&&G&&(w=RtG(G),f.iconType=w.length?w[1]:null);if(G){A.jumpTo(2);break}f.iconsetName="";f.iconName="";return _.h(A,f.renderIcon(X,G),3);case 3:return A.return();case 2:F=gY7(G);
V=RtG(F);V.length&&(f.iconsetName=V[0],f.iconName=V[1]);if(!_.K("kevlar_use_wil_icons")){A.jumpTo(4);break}J=z7;P=eZi;d=f.iconType;Q=f.active;x=f.defaultToFilled;E=f.size;U=f.iconsetName;return _.h(A,bc6(),6);case 6:return _.h(A,P.call(J,d,Q,x,E,U,A.yieldResult),5);case 5:f.iconShapeData=A.yieldResult;case 4:if(f.shouldRenderIconShape(X)){A.jumpTo(7);break}return _.h(A,f.determineIconSet(F,z,b,g,X),7);case 7:return _.h(A,f.renderIcon(X,G),0)}})};
z7.prototype.toggleContainerClass=function(f){f?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var gY7=function(f){return!_.K("default_to_innertube_icon")||f.indexOf(":")>0?f:_.F_(f)};
_.e=z7.prototype;_.e.determineIconSet=function(f,S,B,G){var g=this;return _.R(function(b){return b.nextAddress==1?_.K("kevlar_system_icons")||_.nL("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.nL("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?_.h(b,g.switchToYtSysIconset(f,S,B,G),3):b.jumpTo(2):b.nextAddress!=2?b.return():_.h(b,g.useYtSysIconsetForMissingIcons(f,S,B,G),0)})};
_.e.switchToYtSysIconset=function(f,S,B,G){var g=this,b,z,X,w,F,V,J;return _.R(function(P){switch(P.nextAddress){case 1:if(!f||g.iconsetName!=="yt-icons"&&g.iconsetName!=="yt-sys-icons"){P.jumpTo(0);break}b=RtG(f);z=b[1];z=_.KDN(z);_.K("enable_polymer_icons_replace_underscores_dash")&&z.includes("_filled")&&(z=z.replace(/_filled/g,"-filled"));return _.h(P,Ti(z,!0),3);case 3:return X=P.yieldResult,_.h(P,Ti(z,!1),4);case 4:if((w=P.yieldResult)||S&&X)g.iconsetName="yt-sys-icons";g.iconName=g.getIconName(z,
S,B,w,X);if(G===24){P.jumpTo(0);break}F="yt-sys-icons"+G+":"+g.iconName;return _.h(P,Ti(F,!1,!0),6);case 6:return V=P.yieldResult,_.h(P,Ti(F,!0,!0),7);case 7:J=P.yieldResult;g.iconName=g.getIconName(z,S,B,V,J);if(!S&&V||S&&J)g.iconsetName="yt-sys-icons"+G;_.TT(P)}})};
_.e.getIconName=function(f,S,B,G,g){f.includes("-filled")&&(f=f.replace("-filled",""));return g&&(S||B)?f+"-filled":f};
_.e.useYtSysIconsetForMissingIcons=function(f,S,B,G){var g=this,b,z;return _.R(function(X){if(X.nextAddress==1)return g.iconsetName!=="yt-icons"?X.jumpTo(0):_.h(X,Ti(g.iconName,!1,!1,!0),3);if(X.nextAddress!=4)return b=X.yieldResult,_.h(X,Ti(g.iconName,!1),4);z=X.yieldResult;if(b||!z)return X.jumpTo(0);g.iconsetName="yt-sys-icons";return _.h(X,g.switchToYtSysIconset(f,S,B,G),0)})};
_.e.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var bc6=function(){return _.R(function(f){try{return f.return(_.oy().resolve(_.VU))}catch(S){return f.return(new Promise(function(B){_.UX().parkOrScheduleJob(function(){B(_.oy().resolve(_.VU))},2,"ci")}))}})},eZi=function(f,S,B,G,g,b){G=G===void 0?24:G;
if(f){f=f.toLowerCase();var z=f.endsWith("_filled")||f.endsWith("-filled");S={iconName:f,iconStyle:(S===void 0?0:S)||(B===void 0?0:B)||z?"youtube_fill":"youtube_outline",iconSize:G,iconSetName:g===void 0?"yt-icons":g};B=!!b.resolveIcon(S);B||(S.iconSize=void 0,B=!!b.resolveIcon(S));!B&&z&&(S.iconName=f.substring(0,f.length-7),S.iconSize=G,B=!!b.resolveIcon(S),B||(S.iconSize=void 0,B=!!b.resolveIcon(S)));B||(S.iconStyle=void 0,B=!!b.resolveIcon(S));B||_.Lg(new _.dO("Icon not supported",{iconName:S.iconName,
iconStyle:S.iconStyle,iconSize:S.iconSize,iconType:f}));return B?S:void 0}};
_.e=z7.prototype;_.e.shouldRenderIconShape=function(f){if(!_.K("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;f=this.getContainer(f);return!Q2s(f,this.icon)};
_.e.renderIcon=function(f,S){var B=this,G,g,b,z,X,w,F,V;return _.R(function(J){switch(J.nextAddress){case 1:if(S&&B.icon!==S)return J.return();G=B.getContainer(f);g=Q2s(G,B.icon);if(B.shouldRenderIconShape(f)&&B.iconType)return B.applyIconShape(g,G),J.return();B.removeIconShape();if(!G)return J.return();B.iconName===""&&B.iconset&&G&&(B.removeStaticIcon(B.iconset,G),g&&B.removeAnimatedIcon(G));if(B.iconName===""&&B.iconset||!B.iconsetName||!Gsm)return J.return();B.iconset=Gsm.byKey(B.iconsetName);
if(!B.iconset)return B.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.Fc(B,B.onIconsetAdded)),J.return();B.missingIconSet&&(B.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.Fc(B,B.onIconsetAdded)));z=(b=g||B.isAnimatedIcon?qN9(B.icon):void 0)&&!b.lazyLoad;w=b&&((X=b)==null?void 0:X.lazyLoad)&&(b.lottiePlayerProps.animationConfig.animationData?!0:J3.get(B.isDarkTheme?b.pathDarkTheme:b.path)?!0:!1);if(z||w)return B.applyAnimatedIcon(G,b,B.iconset),J.return();if(w||
(F=b)==null||!F.lazyLoad){J.jumpTo(2);break}V=rwT(b,B.isDarkTheme);B.applyStaticIcon(B.iconset,G,B.iconName,f,g);return _.h(J,V,3);case 3:return _.h(J,B.renderIcon(B.targetContainer,B.icon),4);case 4:return J.return();case 2:B.applyStaticIcon(B.iconset,G,B.iconName,f,g),_.TT(J)}})};
_.e.getContainer=function(f){var S,B=(S=EPT(this.hostElement))==null?void 0:S.host;S=!!B&&!!B.polymerController;if(!f||S)return f?this.getTargetContainer(f,B):this.hostElement};
_.e.getTargetContainer=function(f,S){var B=_.m9(S).querySelector("#"+f);B||(f=new _.dO("yt-icon container missing",S.is,f),_.xH(f));return B};
_.e.applyStaticIcon=function(f,S,B,G,g){g&&this.removeAnimatedIcon(S);this.removeIconShape();g=g&&!!this.iconType&&!!this.iconShapeData&&_.K("kevlar_use_wil_icons");try{g?this.applyIconShape(!1,S):f.applyIcon(S,B)}catch(b){this.handleError(b,G,S)}};
_.e.applyIconShape=function(f,S){this.iconset&&S&&(this.removeStaticIcon(this.iconset,S),f&&this.removeAnimatedIcon(S));f={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var B=_.m(this.iconShapeDataSignal);S=B.next().value;B=B.next().value;var G=_.m(this.renderingOptionsSignal),g=G.next().value;G=G.next().value;B(this.iconShapeData);G(f);if(!this.wizHasRendered)for(this.wizHasRendered=!0,f=_.m(LqT(S,g)).next().value;f.firstChild;)_.m9(this.hostElement).appendChild(f.firstChild)};
_.e.removeIconShape=function(){if(_.K("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.e.removeStaticIcon=function(f,S){f.removeIcon(S)};
_.e.applyAnimatedIcon=function(f,S,B){this.removeStaticIcon(B,f);this.removeIconShape();var G;B=this.animatedIconElement&&((G=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:G.type)===S.type;if(this.animatedIconElement&&B){this.animatedIconElement.polymerController.animatedIcon=S;var g;((g=this.animatedIconElement)==null?void 0:g.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(f),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=S,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.K("kevlar_use_wil_icons")?f.insertBefore(this.animatedIconElement,f.childNodes[0]):(f=_.m9(f),f.insertBefore(this.animatedIconElement,f.childNodes[0]))};
_.e.removeAnimatedIcon=function(f){_.K("kevlar_use_wil_icons")?this.animatedIconElement&&f.contains(this.animatedIconElement)&&f.removeChild(this.animatedIconElement):(f=_.m9(f),this.animatedIconElement&&f.contains(this.animatedIconElement)&&f.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.e.handleError=function(f,S,B){_.kH(f,this.iconName,S,B);S=Q2s(B,this.icon);var G=!1;window.location.href.includes("JpymaW6Lh2w")?G=!0:B._svgIcon&&(B=(B=B._svgIcon.parentNode)?B.tagName:"unknown",_.kH(f,B),B==="YT-ICON"&&f.name==="NotFoundError"?G=!0:f.name==="NotFoundError"&&S&&(G=!0));G?_.Lg(f):_.xH(f)};
_.y3.Object.defineProperties(z7,{template:{configurable:!0,enumerable:!0,get:function(){if(BSv===void 0){var f=document.createElement("template");_.Y(f,"\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");f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;
Saj===void 0&&(Saj=document.createElement("template"));var G=Saj;B.call(S,G.content.cloneNode(!0),f.content.firstChild);BSv=f}f=BSv;return f}}});
z7.prototype.handlePropertyChange=z7.prototype.handlePropertyChange;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],z7.prototype,"actionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",String)],z7.prototype,"icon",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],z7.prototype,"active",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],z7.prototype,"defaultToFilled",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],z7.prototype,"isAnimatedIcon",void 0);
_.N([_.n({value:24}),_.Z("design:type",Number)],z7.prototype,"size",void 0);_.N([_.n({value:""}),_.Z("design:type",String)],z7.prototype,"targetContainer",void 0);_.N([_.n(),_.Z("design:type",Object)],z7.prototype,"animatedIconElement",void 0);_.N([_.n(),_.Z("design:type",Object)],z7.prototype,"isDarkTheme",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],z7.prototype,"ariaHidden",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",String)],z7.prototype,"ariaLabel",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",String)],z7.prototype,"role",void 0);_.N([_.n(),_.Z("design:type",String)],z7.prototype,"style",void 0);_.N([_.n(),_.Z("design:type",String)],z7.prototype,"iconFilter",void 0);_.N([_.JO("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype",Promise)],z7.prototype,"handlePropertyChange",null);_.N([_.nP({is:"yt-icon",noInjection:!0})],z7);var mLX;var zZ$=function(){var f=document.body,S=f.appendChild;if(mLX===void 0){var B=document.createElement("template");_.Y(B,'\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>');
mLX=B}B=mLX;S.call(f,B.content)};
document.body?zZ$():window.addEventListener("DOMContentLoaded",zZ$);var RZL,XI7=function(){return RZL!==void 0?RZL:RZL=document.createElement("template")};
document.head.appendChild(XI7().content);var wIv,hZN=function(){return wIv!==void 0?wIv:wIv=document.createElement("template")};
document.head.appendChild(hZN().content);var TS8;_.R5=new _.Sn("KEY_MANAGER_TOKEN");var IlN={duration:1E3,easing:"ease",fill:"forwards"};_.Su(DtT);var C71={duration:1E3,easing:"ease",fill:"forwards"},J6N=_.oS(function(f){var S=_.tE("animated-rolling-character"),B=void 0,G=function(){var g,b;return a4((g=f.character)==null?void 0:g.call(f))||a4((b=f.previousCharacter)==null?void 0:b.call(f))};
_.jp(function(){if(f.marginMultiplier()){var g;(g=B)==null||g.cancel();if(G()){var b;g=((b=f.previousCharacter)==null?0:b.call(f))?Number(f.previousCharacter())+10:f.rollUp()?0:30;var z;if((z=f.shouldAnimate)==null||!z.call(f)){var X,w;g-=Ut1((X=f.character)==null?void 0:X.call(f),(w=f.previousCharacter)==null?void 0:w.call(f),f.rollUp(),g)}}else{g=f.rollUp()?0:2;var F;(F=f.shouldAnimate)!=null&&F.call(f)||(b=g,z=f.rollUp()?-1:1,g=b-z)}S.value.style.marginTop="-"+g*f.marginMultiplier()+"px";var V;
if((V=f.shouldAnimate)==null?0:V.call(f)){var J,P;B=p5V(S.value,(J=f.character)==null?void 0:J.call(f),(P=f.previousCharacter)==null?void 0:P.call(f),f.rollUp(),g,G(),f.marginMultiplier())}else{var d;S.value.style.display=((d=f.character)==null?0:d.call(f))?"":"none"}}},"vt9b9b");
return _.T("animated-rolling-character",{el:S,class:"animated-rolling-character-wiz"},_.T(_.v,{cond:G,then:function(){return _.T(F7N,null)},
else:function(){return _.T(V6N,{character:f.character})}}))},"j");
J6N.idomCompat=!0;var Aw1=_.K("web_enable_sink_animated_rolling_character_and_number")?J6N:DtT,Pgm=_.K("web_enable_sink_animated_rolling_character_and_number")?J6N:_.dm(DtT),F7N=_.oS(function(){for(var f=[],S=1;S<30;S++)f.push(_.T("div",null,S%10));return _.T(_.gg,null,_.T("div",null,"\u00a0"),f,_.T("div",null,"\u00a0"))},"k"),V6N=_.oS(function(f){var S=f.character;
return _.T(_.gg,null,_.T("div",null,"\u00a0"),_.T(_.v,{cond:function(){return!(S==null?0:S())||_.bK(S==null?void 0:S())},
then:function(){return _.T("div",null,"\u00a0")},
else:function(){return _.T("div",null,S)}}),_.T("div",null,"\u00a0"))},"l");_.Su(Ndx);var vY$=_.oS(function(f){var S=void 0,B=void 0,G=function(){var b;return((b=f.fontSizeMultiplier)==null?0:b.call(f))?f.heightPx()*f.fontSizeMultiplier():f.heightPx()},g=_.vW(function(){if(!f.numberText())return[];
var b,z,X=((b=f.forceRollUp)==null?void 0:b.call(f))||!B||!((z=f.numberValue)==null?0:z.call(f))||B<f.numberValue(),w,F=f.numberText();b=G();z=!((w=f.shouldAnimate)==null||!w.call(f));w=[];var V=0,J=0,P=(S?S.replace(/\D/g,"").length:0)-(F?F.replace(/\D/g,"").length:0),d=S?S.split(/(\d)/).filter(Boolean):[];for(F=F.split(/(\d)/).filter(Boolean);P<0;){var Q=F[J];w.push({character:Q,rollUp:X,marginMultiplier:b,shouldAnimate:z});J++;a4(Q)&&P++}for(;V<P;)Q=d[V],w.push({previousCharacter:Q,rollUp:X,marginMultiplier:b,
shouldAnimate:z}),V++,a4(Q)||P++;for(;J<F.length;)P=F[J],Q=d[V],a4(P)===a4(Q)?(J++,V++):a4(P)?(V++,P=void 0):a4(Q)&&(J++,Q=void 0),w.push({character:P,previousCharacter:Q,rollUp:X,marginMultiplier:b,shouldAnimate:z});S=f.numberText();var x;B=(x=f.numberValue)==null?void 0:x.call(f);return w},void 0,"B9AmNd");
return _.T("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:function(){return f.numberText()?["height: "+G()+"px;","line-height: "+f.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.T(_.dg,{each:g,keyBy:"INDEX"},function(b){return _.T(Pgm,{character:function(){return b().character},
previousCharacter:function(){return b().previousCharacter},
marginMultiplier:function(){return b().marginMultiplier},
rollUp:function(){return b().rollUp},
shouldAnimate:function(){return b().shouldAnimate}})}))},"m");
vY$.idomCompat=!0;_.mhV=_.K("web_enable_sink_animated_rolling_character_and_number")?vY$:Ndx;_.K7N=_.K("web_enable_sink_animated_rolling_character_and_number")?vY$:_.dm(Ndx);var M5A={click:"EVENT_SPAN_TYPE_CLICK",dblclick:"EVENT_SPAN_TYPE_DBLCLICK",mousedown:"EVENT_SPAN_TYPE_MOUSEDOWN",mouseup:"EVENT_SPAN_TYPE_MOUSEUP",mouseover:"EVENT_SPAN_TYPE_MOUSEOVER",mouseout:"EVENT_SPAN_TYPE_MOUSEOUT",mouseenter:"EVENT_SPAN_TYPE_MOUSEENTER",mouseleave:"EVENT_SPAN_TYPE_MOUSELEAVE",mousemove:"EVENT_SPAN_TYPE_MOUSEMOVE",contextmenu:"EVENT_SPAN_TYPE_CONTEXTMENU",keydown:"EVENT_SPAN_TYPE_KEYDOWN",keyup:"EVENT_SPAN_TYPE_KEYUP",keypress:"EVENT_SPAN_TYPE_KEYPRESS",touchstart:"EVENT_SPAN_TYPE_TOUCHSTART",
touchend:"EVENT_SPAN_TYPE_TOUCHEND",touchmove:"EVENT_SPAN_TYPE_TOUCHMOVE",touchcancel:"EVENT_SPAN_TYPE_TOUCHCANCEL",pointerdown:"EVENT_SPAN_TYPE_POINTERDOWN",pointerup:"EVENT_SPAN_TYPE_POINTERUP",pointermove:"EVENT_SPAN_TYPE_POINTERMOVE",pointerover:"EVENT_SPAN_TYPE_POINTEROVER",pointerout:"EVENT_SPAN_TYPE_POINTEROUT",pointerenter:"EVENT_SPAN_TYPE_POINTERENTER",pointerleave:"EVENT_SPAN_TYPE_POINTERLEAVE",pointercancel:"EVENT_SPAN_TYPE_POINTERCANCEL",gotpointercapture:"EVENT_SPAN_TYPE_GOTPOINTERCAPTURE",
lostpointercapture:"EVENT_SPAN_TYPE_LOSTPOINTERCAPTURE",submit:"EVENT_SPAN_TYPE_SUBMIT",change:"EVENT_SPAN_TYPE_CHANGE",input:"EVENT_SPAN_TYPE_INPUT",focus:"EVENT_SPAN_TYPE_FOCUS",blur:"EVENT_SPAN_TYPE_BLUR",reset:"EVENT_SPAN_TYPE_RESET",select:"EVENT_SPAN_TYPE_SELECT",invalid:"EVENT_SPAN_TYPE_INVALID",load:"EVENT_SPAN_TYPE_LOAD",unload:"EVENT_SPAN_TYPE_UNLOAD",beforeunload:"EVENT_SPAN_TYPE_BEFOREUNLOAD",domcontentloaded:"EVENT_SPAN_TYPE_DOMCONTENTLOADED",resize:"EVENT_SPAN_TYPE_RESIZE",scroll:"EVENT_SPAN_TYPE_SCROLL",
pageshow:"EVENT_SPAN_TYPE_PAGESHOW",pagehide:"EVENT_SPAN_TYPE_PAGEHIDE",play:"EVENT_SPAN_TYPE_PLAY",pause:"EVENT_SPAN_TYPE_PAUSE",playing:"EVENT_SPAN_TYPE_PLAYING",waiting:"EVENT_SPAN_TYPE_WAITING",seeking:"EVENT_SPAN_TYPE_SEEKING",seeked:"EVENT_SPAN_TYPE_SEEKED",ended:"EVENT_SPAN_TYPE_ENDED",volumechange:"EVENT_SPAN_TYPE_VOLUMECHANGE",timeupdate:"EVENT_SPAN_TYPE_TIMEUPDATE",ratechange:"EVENT_SPAN_TYPE_RATECHANGE",dragstart:"EVENT_SPAN_TYPE_DRAGSTART",drag:"EVENT_SPAN_TYPE_DRAG",dragend:"EVENT_SPAN_TYPE_DRAGEND",
dragenter:"EVENT_SPAN_TYPE_DRAGENTER",dragleave:"EVENT_SPAN_TYPE_DRAGLEAVE",dragover:"EVENT_SPAN_TYPE_DRAGOVER",drop:"EVENT_SPAN_TYPE_DROP",animationstart:"EVENT_SPAN_TYPE_ANIMATIONSTART",animationend:"EVENT_SPAN_TYPE_ANIMATIONEND",animationiteration:"EVENT_SPAN_TYPE_ANIMATIONITERATION",transitionrun:"EVENT_SPAN_TYPE_TRANSITIONRUN",transitionstart:"EVENT_SPAN_TYPE_TRANSITIONSTART",transitionend:"EVENT_SPAN_TYPE_TRANSITIONEND",transitioncancel:"EVENT_SPAN_TYPE_TRANSITIONCANCEL"};_.XD=_.oS(function(f){var S=_.tE("a",f.ref),B=f.aTagConfig?f.aTagConfig:_.vW(function(){var G,g,b,z,X,w;var F=(w=_.CH((z=f.command)==null?void 0:z.call(f)))!=null?w:(X=f.command)==null?void 0:X.call(f);return _.AZ({innertubeCommand:F,skipOnClick:(G=f.skipOnClick)==null?void 0:G.call(f),stopPropagation:(g=f.dangerousStopPropagation)==null?void 0:g.call(f),defaultTarget:(b=f.target)==null?void 0:b.call(f)})||{}},void 0,"gnrRge");
_.jp(function(){S.value._data=B()._data;S.value.params=B().params},"dcjvAe");
return _.T("a",{el:S,href:function(){return B().href$},
rel:function(){return B().rel$},
class:function(){var G,g;return(g=B().className)!=null?g:(G=f.className)==null?void 0:G.call(f)},
style:function(){var G;if((G=f.style)==null?0:G.call(f))return f.style();var g;return((g=f.disabled)==null?0:g.call(f))?"pointer-events:none":""},
"aria-haspopup":function(){return!!B()["aria-haspopup$"]},
"force-new-state":Hw(function(){return B()["force-new-state$"]}),
title:Hw(function(){var G,g;return(g=B().title$)!=null?g:(G=f.title)==null?void 0:G.call(f)}),
role:Hw(function(){return B().role$}),
target:Hw(function(){return B().target$}),
dir:Hw(function(){var G;return((G=f.dir)==null?0:G.call(f))?f.dir():B().dir}),
tabindex:function(){var G;return B().tabindex$?Number(B().tabindex$):(G=f.tabIndex)==null?void 0:G.call(f)},
"aria-hidden":function(){var G,g;return(g=B()["aria-hidden$"])!=null?g:(G=f.ariaHidden)==null?void 0:G.call(f)},
"aria-label":function(){var G,g;return(g=B()["aria-label$"])!=null?g:(G=f.ariaLabel)==null?void 0:G.call(f)},
"aria-current":f.ariaCurrent,"aria-disabled":f.disabled,"aria-labelledby":f.ariaLabelledby,"aria-describedby":f.ariaDescribedby,"aria-selected":f.ariaSelected,"tab-identifier":f.tabIdentifier,"on:pointerdown":_.iF(function(G){var g,b;return void((b=(g=B()).onpointerdown)==null?void 0:b.call(g,G))}),
"on:click":_.iF(function(G){var g,b;return void((b=(g=B()).onclick)==null?void 0:b.call(g,G))})},f.children)},"n");var dL1=function(f,S){this.fillAnimation=new Animation(alK(f),document.timeline);this.strokeAnimation=new Animation(ywx(S),document.timeline)};
dL1.prototype.play=function(){var f,S;(S=(f=this.fillAnimation).play)==null||S.call(f);var B,G;(G=(B=this.strokeAnimation).play)==null||G.call(B)};
dL1.prototype.cancel=function(){var f,S;(S=(f=this.fillAnimation).cancel)==null||S.call(f);var B,G;(G=(B=this.strokeAnimation).cancel)==null||G.call(B)};_.Oo=_.oS(function(f){var S=f.model;var B=f.pointerDownEvent;var G=f.pointerUpEvent;var g=f.pointerLeaveEvent;f=_.tE("div");var b=_.Qj({"border-radius":function(){return S().borderRadius}}),z=_.tE("div"),X=_.tE("div"),w=_.m(_.$8(function(){return(G==null?0:G())||(g==null?0:g())?!1:!(B==null||!B())||!1})),F=w.next().value,V=w.next().value,J=void 0,P=function(){!J&&X.value&&z.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(J=new dL1(X.value,z.value));
var A;(A=J)==null||A.play()},d=function(){var A;
(A=J)==null||A.cancel()},Q=function(){var A;
(A=J)==null||A.cancel()};
_.jp(function(){(G==null?0:G())&&P()},"YjVIpd");
_.jp(function(){(B==null?0:B())&&d()},"UrXvqb");
_.jp(function(){(g==null?0:g())&&Q()},"QK6L8b");
w=_.iF(function(){P();V(!1)});
var x=_.iF(function(){d();V(!0)}),E=_.iF(function(){Q();
V(!1)});
_.Ov(function(){if(J){var A;(A=J)==null||A.cancel();J=void 0}});
var U={};F=_.Pw("yt-spec-touch-feedback-shape",function(){return WqK(S().color)},(U["yt-spec-touch-feedback-shape--focused"]=function(){return!!S().focused&&!S().disabled},U["yt-spec-touch-feedback-shape--circular"]=function(){return!!S().circular},U["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!S().isExtended},U["yt-spec-touch-feedback-shape--down"]=F,U["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!S().triggerEvents},U));
return _.T("yt-touch-feedback-shape",{style:_.Qj({"border-radius":"inherit"})},_.T("div",{el:f,class:F,style:_.Qj({"margin-top":function(){return S().customTopExtend?"-"+S().customTopExtend+"px":void 0}}),
"on:mousedown":x,"on:mouseup":w,"on:pointerleave":E,"on:touchstart":x,"on:touchend":w,"aria-hidden":!0},_.T("div",{class:"yt-spec-touch-feedback-shape__stroke",style:b,el:z}),_.T("div",{class:"yt-spec-touch-feedback-shape__fill",style:b,el:X})))},"o");
_.Oo.idomCompat=!0;var icN={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 wP=_.Js();wP=wP.toLowerCase();if(_.XG(wP,"android")){var Hci=wP.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);Hci&&parseFloat(Hci[1])<100||wP.match("("+Object.keys(icN).join("|")+")")};var qam=_.oS(function(f){return _.T(_.v,{cond:f.aTagConfig,then:function(S){return _.T(_.XD,{aTagConfig:S,disabled:f.disabled,className:f.className,style:f.style,title:f.title,ariaLabel:f.ariaLabel,ariaCurrent:function(){var B,G;return((B=f.toggleable)==null?void 0:B.call(f))&&((G=f.toggled)==null?void 0:G.call(f))}},f.children)},
else:function(){return _.T("button",{"on:click":_.iF(function(S){var B;return(B=f.onClick)==null?void 0:B.call(f,S)}),
class:f.className,title:f.title,style:f.style,disabled:f.disabled,"aria-pressed":function(){var S,B;return((S=f.toggleable)==null?0:S.call(f))?!((B=f.toggled)==null||!B.call(f)):void 0},
"aria-label":f.ariaLabel,"aria-disabled":f.visiblyDisabled,"aria-hidden":f.ariaHidden,tabindex:f.tabIndex},f.children)}})},"p"),QMm=_.oS(function(f){var S=f.data;
var B=f.hasIconLeading;var G=f.hasIconLeadingTrailing;var g=f.hasIconTrailing;var b=f.iconButton;var z=f.iconClassName;var X=f.secondaryIconClassName;var w=f.icon;var F=f.secondaryIcon;var V=f.textContentClassName;return _.T(hW,{className:"",style:"display: inherit; justify-content: center"},_.T(_.v,{debugInstance:"V4z1Uc",cond:function(){return w&&(B()||G()||(b==null?void 0:b()))},
then:function(){return _.T(hW,null,_.T("div",{class:z,"aria-hidden":"true"},w==null?void 0:w()))}}),_.T(_.v,{debugInstance:"ok3btb",
cond:function(){return(S().buttonText||S().animatedTextProps||S().formattedButtonText)&&!(b==null?0:b())},
then:function(){return _.T(hW,null,_.T($Lg,{className:V,iconPosition:function(){return S().iconPosition},
text:function(){return S().buttonText},
oneOffCustomTextWrap:function(){return S().oneOffCustomTextWrap},
formattedButtonText:function(){return S().formattedButtonText},
animatedTextProps:function(){return S().animatedTextProps}}))}}),_.T(_.v,{debugInstance:"DO5Rz",
cond:g,then:function(){return _.T(hW,null,_.T("div",{class:z},w==null?void 0:w()))}}),_.T(_.v,{debugInstance:"bnojSc",
cond:G,then:function(){return _.T(hW,null,_.T("div",{class:X},F==null?void 0:F()))}}),_.T(_.v,{debugInstance:"HN3kad",
cond:function(){return!S().disabled&&!0},
then:function(){return _.T(_.Oo,{model:function(){return{color:SBQ(S())}}})}}))},"q"),$Lg=_.oS(function(f){var S=function(){var B,G;
return((B=f.iconPosition)==null?void 0:B.call(f))==="icon-with-label"||((G=f.oneOffCustomTextWrap)==null?void 0:G.call(f))};
return _.T("div",{class:f.className,"aria-hidden":function(){var B,G,g;return((B=f.ariaHidden)==null?void 0:B.call(f))&&(!((G=f.animatedTextProps)==null||!G.call(f))||!((g=f.formattedButtonText)==null||!g.call(f)))}},_.T(_.qp,null,_.T(_.i0,{when:function(){var B;
return(B=f.animatedTextProps)==null?void 0:B.call(f)}},function(){return _.T(_.K7N,{numberText:function(){return f.animatedTextProps().numberText},
numberValue:function(){return f.animatedTextProps().numberValue},
heightPx:function(){return f.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return f.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return f.animatedTextProps().shouldAnimate},
forceRollUp:function(){return f.animatedTextProps().forceRollUp}})}),_.T(_.i0,{when:function(){var B;
return(B=f.formattedButtonText)==null?void 0:B.call(f)}},function(){return _.T(_.oY,{text:function(){return Object.assign({},f.formattedButtonText(),{lineBreakMode:S()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":f.formattedButtonText().lineBreakMode,
alignment:S()?"TEXT_ALIGNMENT_CENTER":f.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!S()}})}),_.T(_.i0,{when:function(){var B,G;
return((B=f.iconPosition)==null?void 0:B.call(f))==="icon-with-label"&&((G=f.text)==null?void 0:G.call(f))}},function(){return _.T(_.oY,{text:function(){return{content:f.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.T(_.Hf,null,function(){return f.text})))},"r"),Yam=_.oS(function(f){return _.T(_.v,{debugInstance:"kM7Sgc",
cond:f.hasLabel,then:function(){var S;return _.T("label",{class:f.className},f.children,(S=f.textContent)==null?void 0:S.call(f))},
else:function(){return f.children}})},"s"),hW=_.oS(function(f){return f.children},"t");var g81=fj("stamper-context");var Be=_.oS(function(f){var S=f.data;var B=f.icon;var G=f.iconName;var g=f.secondaryIcon;var b=f.secondaryIconName;var z=f.focusedOverride;hys();var X=cw9(S),w=X.size,F=X.style;f=X.disabled;var V=X.onTap,J=X.alignByText,P=X.aTagConfig,d=X.customColors,Q=X.segmentedPosition,x=X.toggled,E=X.toggleable,U=X.accessibilityLabel,A=X.onToggle,t=X.iconPosition,M=X.oneOffCustomTextWrap,a=X.disableTextEllipsis,l=X.disableBackdropFilter,mx=X.tooltipText,zj=X.ariaHidden,VN=X.tabIndex,$Q=X.buttonText,OV=X.formattedButtonText,
rW=X.animatedTextProps,MA=oss(S,B,g,G,b,z),UV=MA.type;B=MA.shouldFocus;G=MA.hasIconLeading;g=MA.hasIconTrailing;var W7=MA.hasIconLeadingTrailing,c7=MA.hasIconOnly;b=MA.hasIconOnly40;var Q$=MA.hasIconWithLabel;z=MA.iconButton;var To=MA.visiblyDisabled;X=MA.overrideSmallSizeIcon;var Ci=MA.iconToRender;MA=MA.secondaryIconToRender;var VM={},Go={};return _.T(Yam,{className:_.Pw("yt-spec-button-shape-with-label",(VM["yt-spec-button-shape-with-label--is-overlay"]=function(){return F()==="overlay"||F()===
"overlay-dark"},VM)),
hasLabel:Q$,textContent:function(){return _.T($Lg,{text:$Q,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:M,iconPosition:t,formattedButtonText:OV,animatedTextProps:rW})}},_.T(qam,{aTagConfig:P,
className:_.Pw("yt-spec-button-shape-next",function(){return GUN(UV())},function(){return To()?void 0:gsx(F())},function(){return eyN(w())},(Go["yt-spec-button-shape-next--disabled"]=To,Go["yt-spec-button-shape-next--focused"]=B,Go["yt-spec-button-shape-next--icon-trailing"]=g,Go["yt-spec-button-shape-next--icon-leading"]=G,Go["yt-spec-button-shape-next--icon-leading-trailing"]=W7,Go["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return W7()&&!($Q()||OV())},Go["yt-spec-button-shape-next--icon-button"]=
function(){return c7()||Q$()},Go["yt-spec-button-shape-next--icon-only-default"]=b,Go["yt-spec-button-shape-next--align-by-text"]=J,Go["yt-spec-button-shape-next--segmented-start"]=function(){return Q()==="start"},Go["yt-spec-button-shape-next--segmented-end"]=function(){return Q()==="end"},Go["yt-spec-button-shape-next--override-small-size-icon"]=X,Go["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=M,Go["yt-spec-button-shape-next--disable-text-ellipsis"]=a,Go["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!l()&&BoM()},Go)),
style:function(){return bl9(d()).style},
onClick:function(Io){V==null||V(Io);E()&&(A==null||A(Io))},
disabled:f,ariaLabel:U,toggleable:E,toggled:x,title:function(){var Io;return(Io=mx())!=null?Io:""},
visiblyDisabled:To,ariaHidden:zj,tabIndex:VN},_.T(QMm,{data:S,hasIconLeading:G,hasIconLeadingTrailing:W7,hasIconTrailing:g,iconButton:z,icon:Ci,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:MA})))},"u");
Be.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var r68=_.oS(function(f){var S=f.data;var B=f.id;var G=f.hidden;var g=f.className;var b=f.iconName;var z=f.secondaryIconName;f=_.m(_.hj(!1,void 0,"RyKHFc"));var X=f.next().value,w=f.next().value,F=function(){var J=_.oy().resolve(_.fN(_.R5));J&&w(J.isKeyBoardInUse())},V=function(){w(!1)};
f=_.tE("yt-button-shape",function(J){if(_.oy().resolve(_.fN(_.R5)))return J.addEventListener("focusin",F),J.addEventListener("focusout",V),function(){J.removeEventListener("focusin",F);J.removeEventListener("focusout",V)}});
return _.T("yt-button-shape",{el:f,id:B,class:g,hidden:G},_.T(_.v,{cond:S,then:function(){return _.T(Be,{data:S,iconName:b,secondaryIconName:z,focusedOverride:X})}}))},"v");
_.K("web_wiz_button_shape")&&_.eq(r68,"yt-button-shape",{props:{data:_.W4,id:_.W4,hidden:_.W4,className:_.W4,iconName:_.W4,secondaryIconName:_.W4},unsafeExternallySettableAttributes:new Set(["key","dialog-dismiss","disable-upgrade"])});var T7=function(){var f=_.I.apply(this,arguments)||this;f.keyboardFocused=!1;return f};
_.q(T7,_.I);T7.prototype.onFocus=function(){var f=_.oy().resolve(_.fN(_.R5));f&&(this.keyboardFocused=f.isKeyBoardInUse())};
T7.prototype.onBlur=function(){this.keyboardFocused=!1};
T7.prototype.renderIdom=function(){var f=this;if(this.data){var S=rm(this.data,!!this.iconName,this.data.ignoreIconSizeOverride),B=f_K(this.data);this.data.focused=this.keyboardFocused;wMx(this.data,function(){var G;ke("yt-icon",{icon:f.iconName,active:(G=f.data)==null?void 0:G.toggled,size:S,style:"width: "+S+"px; height: "+S+"px;",iconFilter:B},uv)},function(){var G;
ke("yt-icon",{icon:f.secondaryIconName,active:(G=f.data)==null?void 0:G.toggled,size:S,style:"width: "+S+"px; height: "+S+"px;",iconFilter:B},uv)});
_.ew(this.hostElement,"yt-renderidom-finished")}};
_.y3.Object.defineProperties(T7,{template:{configurable:!0,enumerable:!0,get:function(){if(TS8===void 0){var f=document.createElement("template");_.Y(f,"\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");
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);f.content.insertBefore(hZN().content.cloneNode(!0),f.content.firstChild);f.content.insertBefore(XI7().content.cloneNode(!0),f.content.firstChild);TS8=f}f=TS8;return f}}});
T7.prototype.onBlur=T7.prototype.onBlur;T7.prototype.onFocus=T7.prototype.onFocus;_.N([_.r(tQ1),_.Z("design:type",Object)],T7.prototype,"ytIdomTemplatingBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],T7.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",String)],T7.prototype,"iconName",void 0);_.N([_.n(),_.Z("design:type",String)],T7.prototype,"secondaryIconName",void 0);_.N([_.n(),_.Z("design:type",Object)],T7.prototype,"keyboardFocused",void 0);
_.N([_.Vg("focusin"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],T7.prototype,"onFocus",null);_.N([_.Vg("focusout"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],T7.prototype,"onBlur",null);_.N([_.nP({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.K("web_wiz_button_shape")})],T7);_.eq(_.oS(function(f){function S(){B().seconds&&b(jR9({seconds:Number(B().seconds)-Date.now()/1E3}))}
var B=f.targetTimestamp;f=f.className;var G=_.m(_.hj("",void 0,"U1Q8Ae")),g=G.next().value,b=G.next().value;_.Y5(function(){S();var z=setInterval(function(){S()},1E3);
_.Ov(function(){clearInterval(z)})});
return _.T("yt-countdown",{class:_.Pw("ytCountDownHost",f)},_.T("div",null,g))},"w"),"yt-countdown",{props:{targetTimestamp:_.W4,
className:_.gm}});_.I8=_.oS(function(f){var S=f.data;var B=f.className;var G=f.style;var g=f.useOutlinedIcon;var b=f.buttonOverrides;var z=f.animatedTextProps;var X=f.onClick;var w=_.tE("button-view-model",function(E){E.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var U=S().targetId;U&&_.fD8(_.Qh(),U,E);return function(){cH$(_.Qh(),E)}}),F=function(){return S().iconName},V,J=(V=_.oy().resolve(_.fN(_.yU)))==null?void 0:V(),P=function(){var E=S();
var U=b==null?void 0:b(),A=z==null?void 0:z();if(E){var t=JU1(E.type);var M=!!E.title||!!E.titleFormatted;var a=!(!E.iconName&&!E.iconImage);M=a&&!M?"icon-only":a?E.iconTrailing||E.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;M==="icon-only-40"&&(t="text");var l,mx=(l=U==null?void 0:U.disabled)!=null?l:E.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||E.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";l=Object;a=l.assign;var zj=E.title,VN=E.titleFormatted;A=A&&A.numberText&&
!isNaN(Number(A.numberValue))?A:void 0;var $Q=E.accessibilityText,OV=VKW(E.style),rW=Pj1(E.state),MA=vsN(E.buttonSize),UV=FtG(E,w,mx,X);mx=mx&&!E.onDisabledTap;var W7=_.AZ({elementsCommand:E.onTap,forceNewState:!0});W7=NB(W7)?W7:void 0;var c7=E.customFontColor,Q$=E.customBackgroundColor;var To=E.customBorderColor;var Ci=E.customDarkThemeFontColor,VM=E.customDarkThemeBackgroundColor,Go=E.customDarkThemeBorderColor;c7=J&&Ci?Ci:c7;Q$=J&&VM?VM:Q$;To=J&&Go?Go:To;To={color:c7?_.AK(c7):void 0,backgroundColor:Q$?
_.AK(Q$):void 0,borderColor:To?_.AK(To):void 0};E=a.call(l,{},{buttonText:zj,formattedButtonText:VN,animatedTextProps:A,accessibilityLabel:$Q,style:OV,type:t,state:rW,size:MA,iconPosition:M,onTap:UV,disabled:mx,aTagConfig:W7,customColors:To,tooltipText:E.tooltip},U)}else E={style:"mono",type:"text",state:"active",size:"M"};E.focused=x();return E},d=function(){return rm(P(),!!S().iconName)};
f=_.m(_.hj(!1,void 0,"vxWDPb"));V=f.next().value;var Q=f.next().value,x=V;f=_.iF(function(){var E=_.oy().resolve(_.fN(_.R5));E&&Q(E.isKeyBoardInUse());return!1});
V=_.iF(function(){Q(!1);return!1});
_.jp(function(){var E,U=_.H(S==null?void 0:(E=S())==null?void 0:E.onVisible,_.Un);U&&_.pH(U,{disableClickTracking:!0})},"x3DHkf");
return _.T("button-view-model",{el:w,class:_.Pw("yt-spec-button-view-model",B),"on:focusin":f,"on:focusout":V},_.T(_.v,{cond:function(){var E;return(S==null?0:(E=S())==null?0:E.iconImage)?{sources:[S().iconImage]}:void 0},
then:function(E){return _.T(Be,{data:P,icon:function(){return _.T(_.f9,{data:E,alt:"",targetWidth:d,targetHeight:d,preserveWidth:!0,preserveHeight:!0})}})},
else:function(){return _.T(Be,{data:P,icon:function(){return _.T(_.Y8,{icon:F,active:function(){return(g==null?0:g())?!1:P().toggled},
animateIcon:function(){var E;return!!(G==null?0:(E=G())==null?0:E.animateIcon)},
size:d})}})}}))},"x");
_.I8.idomCompat={callbacks:{onClick:!0}};_.eq(_.oS(function(f){return _.T("yt-button-view-model",{id:f.id,class:_.Pw(f.scopingClassName,f.classes),icon:function(){var S;return(S=f.icon)==null?void 0:S.call(f)},
"dialog-dismiss":function(){var S;return((S=f.dialogDismiss)==null?0:S.call(f))?"":void 0}},_.T(_.I8,{data:function(){var S;
return(S=f.data)==null?void 0:S.call(f)},
className:function(){var S;return(S=f.className)==null?void 0:S.call(f)},
style:function(){var S;return(S=f.style)==null?void 0:S.call(f)},
useOutlinedIcon:function(){var S;return(S=f.useOutlinedIcon)==null?void 0:S.call(f)},
buttonOverrides:function(){var S;return(S=f.buttonOverrides)==null?void 0:S.call(f)},
animatedTextProps:function(){var S;return(S=f.animatedTextProps)==null?void 0:S.call(f)},
onClick:function(S){var B;return(B=f.onClick)==null?void 0:B.call(f,S)}}))},"y"),"yt-button-view-model",{props:{data:_.W4,
className:_.W4,style:_.W4,useOutlinedIcon:_.W4,buttonOverrides:_.W4,animatedTextProps:_.W4,onClick:_.gm,scopingClassName:_.W4,id:_.W4,icon:_.W4,dialogDismiss:_.W4,classes:_.W4}});var FD=function(){var f=_.I.apply(this,arguments)||this;f.isGoalActive=!0;return f};
_.q(FD,_.I);FD.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
FD.prototype.progressBarChanged=function(){var f=_.m9(this.hostElement).querySelector("#progress-bar-progress"),S,B,G,g=(G=Number((S=this.creatorGoalState)==null?void 0:S.currentGoalCount)/Number((B=this.creatorGoalState)==null?void 0:B.totalGoalCount)*100)!=null?G:0,b;f.style.width=((b=Math.min(g,100))!=null?b:0)+"%"};
FD.prototype.goalStateChanged=function(){var f;this.isGoalActive=((f=this.creatorGoalState)==null?void 0:f.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var S;f={"--yt-progress-bar-color":DD9((S=this.creatorGoalState)==null?void 0:S.progressBarColor)};_.hO(this.hostElement,f)};
FD.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.y3.Object.defineProperties(FD.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var f;return this.isGoalActive&&!((f=this.creatorGoalState)==null||!f.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.creatorGoalState)==null?0:f.endTimestampMs){var S;f=Number((S=this.creatorGoalState)==null?void 0:S.endTimestampMs)/1E3;return{seconds:String(f)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.creatorGoalState)==null?0:f.themedTargetImage){var S;f=_.H((S=this.creatorGoalState)==null?void 0:S.themedTargetImage,hfg);return this.isAppDarkTheme()?f==null?void 0:f.imageDark:f==null?void 0:f.imageLight}}}});
_.y3.Object.defineProperties(FD,{template:{configurable:!0,enumerable:!0,get:function(){return Zx$()}}});
FD.prototype.goalStateChanged=FD.prototype.goalStateChanged;FD.prototype.progressBarChanged=FD.prototype.progressBarChanged;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],FD.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.p5),_.Z("design:type",Object)],FD.prototype,"ytLiveChatReduxBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],FD.prototype,"ytRendererBehavior",void 0);
_.N([_.n({selectorArgs:["data.creatorGoalEntityKey"],selector:function(f,S){return _.w9(f.entities,"creatorGoalEntity",S)}}),
_.Z("design:type",Object)],FD.prototype,"creatorGoalState",void 0);_.N([_.n(),_.Z("design:type",Object)],FD.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],FD.prototype,"isGoalActive",void 0);_.N([_.k("creatorGoalState","isGoalActive"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],FD.prototype,"shouldShowCountdown",null);_.N([_.k("creatorGoalState"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],FD.prototype,"endTimestamp",null);
_.N([_.k("creatorGoalState"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],FD.prototype,"targetIconThemedImage",null);_.N([_.JO("creatorGoalState.currentGoalCount"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],FD.prototype,"progressBarChanged",null);_.N([_.JO("creatorGoalState.creatorGoalState"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],FD.prototype,"goalStateChanged",null);
_.N([_.nP({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],FD);_.p(FD,"yt-creator-goal-progress-flow-view-model",function(){return Zx$()},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var jML;var Oco;var Vz=function(){return _.I.apply(this,arguments)||this};
_.q(Vz,_.I);Vz.prototype.attached=function(){var f,S,B;if(this==null?0:(f=this.data)==null?0:(S=f.pdgPurchasedBumperLoggingDirectives)==null?0:(B=S.loggingDirectives)==null?0:B.trackingParams){var G,g,b;ils(this==null?void 0:(G=this.data)==null?void 0:(g=G.pdgPurchasedBumperLoggingDirectives)==null?void 0:(b=g.loggingDirectives)==null?void 0:b.trackingParams)}};
Vz.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Vz.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Vz.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Vz.prototype,"data",void 0);_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],Vz);
_.p(Vz,"yt-live-chat-item-bumper-view-model",function(){if(Oco===void 0){var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;jML===void 0&&(jML=document.createElement("template"));var G=jML;B.call(S,G.content.cloneNode(!0),f.content.firstChild);Oco=f}f=Oco;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var xLi;var EYv;_.cw=function(f,S){this.data=f;this.actions=S;this.data=f;this.actions=S};
_.N1=function(){};_.JW={};_.JW.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(f,S){HlT(this.hostElement,f,S)},
getNavigationEndpointPopupAction:function(f){return qBs(f,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(f,S){$hG(this.hostElement,f,S,this.openPopupConfig)}};var nsj=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.Pl={};
_.Pl.YtEndpointBehavior=[_.JW.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.nL("openPopupConfig");(this.useClickHandler=_.s6("useClickHandler",!1))?this.hostElement.addEventListener("click",TY(this,this.onEndpointClick_)):(ju(this.hostElement,"tap",TY(this,this.onEndpointTap_)),ju(this.hostElement,"touchend",TY(this,this.onEndpointTouchEnd_)));ju(this.hostElement,"touchstart",TY(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
TY(this,this.onEndpointTapStart_))},
onEndpointClick_:function(f){rUK(this.hostElement,f,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(f){var S=this.hostElement,B=this.openPopupConfig,G=this.disableCommandHandlerOverride;G=G===void 0?!1:G;var g=QBW(f);if(g){g.href&&ZU(g.href);var b=f.detail;var z=b.sourceEvent;b=b.preventer;z=z.button!==void 0?z.button===0&&!L9(z):b?!L9(b):!0;g.data&&z&&YBA(S,g,f,B,G)}},
onEndpointTouchEnd_:function(f){L9(f)||QBW(f)&&f.preventDefault()},
onEndpointTapStart_:function(f){LtV(f)}}];var sBK="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),I_V=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var L71={};L71.YtPlaintextBehavior=[_.qx,{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(f){f.preventDefault();f=f.clipboardData.getData("text/plain");document.execCommand("insertText",!1,f)},
preventRichTextFormatting_:function(f){_.v_&&(f=f.detail.keyboardEvent,f.stopImmediatePropagation(),f.preventDefault())}}];var ksN;var nYg;var vl=function(){var f=_.I.apply(this,arguments)||this;f.ignoreShadyDom=!1;f.hasChange_=!1;f.hasSetTitle_=!1;f.useIOObserverForVisibilityLogging_=_.K("kevlar_use_vimio_behavior")&&_.nL("INNERTUBE_CLIENT_NAME")==="WEB";f.ytFormattedStringObserverHandlerKeys_=void 0;return f};
_.q(vl,_.I);_.e=vl.prototype;_.e.created=function(){this.useIOObserverForVisibilityLogging_=_.K("kevlar_use_vimio_behavior")&&_.nL("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.e.ready=function(){_.nL("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_()};
_.e.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.e.detached=function(){this.unobserveIOObservers_()};
_.e.clearContents_=function(){for(var f=this.getRoot(),S=f.lastChild;S&&S.tagName!=="STYLE";){try{f.removeChild(S)}catch(B){break}S=f.lastChild}};
_.e.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var f=_.m(this.ytFormattedStringObserverHandlerKeys_),S=f.next();!S.done;S=f.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(S.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.e.resetForAttributedString=function(){var f=this.getRoot();!f.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),f.appendChild(this.ytAttributedStringElementRef))};
_.e.resetForFormattedString=function(){var f=this.getRoot(),S=f.querySelector("yt-attributed-string");S&&(this.ytAttributedStringElementRef=f.removeChild(S))};
_.e.textChanged=function(){this.textChanged_(this.text)};
_.e.textChanged_=function(f){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!f||!f.runs&&!f.simpleText;if(_.K("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var S=this.hostElement.firstChild;S&&S.nodeName==="FONT";){var B=S;S=S.nextSibling;this.hostElement.removeChild(B)}S=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
B=f.simpleText;var G;!B&&((G=f.runs)==null?void 0:G.length)===1&&this.isSimpleString_(f.runs[0])&&(B=f.runs[0].text);B!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.nL("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(B!==void 0){try{S.textContent=B}catch(g){}S.textContent||(this.isEmpty=!0)}else f=f.runs,B!==void 0&&(f=[{text:B}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),f&&this.updateText_(f),
S.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.e.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)};
_.e.computeAriaLabel_=function(f){return f};
_.e.computeEllipsisTruncateStyling=function(f,S){return f&&!S};
_.e.computeUseAttributedString=function(f){return _.K("web_replace_formatted_with_attributed_string")&&fGx(f)&&!this.disableAttributedString&&!this.enableContentEditable};
_.e.setNodeStyle_=function(f,S){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.K("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?S.removeAttribute("dir"):S.setAttribute("dir","auto");S.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");S.style.color="";var B=null;this.noStyles||(f.bold&&(S.classList.add("bold"),B="bold"),f.deemphasize&&(S.classList.add("deemphasize"),B="deemphasize"),f.italics&&S.classList.add("italic"),
f.strikethrough&&S.classList.add("strikethrough"),f.errorUnderline&&(S.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),f.bracket&&S.classList.add("bracket"),f.textColor&&(S.style.color=_.pn(f.textColor)));B!==S.getAttribute("style-target")&&(B?S.setAttribute("style-target",B):S.removeAttribute("style-target"))};
_.e.setUpVisibilityLogging_=function(f,S){var B=this;this.setNodeTrackingParams_(f,S);var G;((G=S.data)==null?0:G.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(f=this.ytRendererBehavior.visibilityObserver.observe(S,function(g){var b=B.ytRendererBehavior.getVisibilityLogger();b&&b.reportShown(g)},this.ytRendererBehavior.visibilityOptionVisible_),S=this.ytRendererBehavior.visibilityObserver.observe(S,function(g){var b=B.ytRendererBehavior.getVisibilityLogger();
b&&b.reportHidden(g)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(f),this.ytFormattedStringObserverHandlerKeys_.push(S))};
_.e.setNodeTrackingParams_=function(f,S){S.data||(S.data={});if((f=f.loggingDirectives?f.loggingDirectives.trackingParams:null)||S.data.trackingParams)S.data.trackingParams=f};
_.e.computeHasLinkOnly_=function(f){return!(!f||f.length!==1||this.noEndpoints||!f[0].navigationEndpoint)};
_.e.getRoot=function(){var f=this.buildScopeDomOptions();return this.enableContentEditable?_.m9(_.m9(this.hostElement,f).querySelector("[contenteditable]")):_.m9(this.hostElement,f)};
_.e.fixContenteditableScope=function(){var f=function(S){S&&(S.nodeType===1&&S.classList&&(S.classList.add("style-scope"),S.classList.add("yt-formatted-string")),S.childNodes&&S.childNodes.forEach(function(B){f(B)}))};
f(this.getRoot())};
_.e.updateText_=function(f){for(var S=f.length,B=this.getRoot(),G=B.firstChild;G&&G.nodeName==="STYLE";)G=G.nextSibling;for(var g=0;g<S&&G;){var b=f[g],z=_.K("remove_cr_char")&&b.text?b.text.replace("\r",""):b.text;if(this.isSimpleString_(b)&&!this.useMixedDirectionFormattedStrings)if(G.nodeName==="#text"){G.textContent!=z&&(G.textContent=z);g++;G=G.nextSibling;continue}else break;if(_.H(b,Dw))break;else if(!this.noEndpoints&&b.navigationEndpoint){if(G.nodeName!=="A")break;this.setDataOnAnchor_(G,
b.navigationEndpoint)}else if(G.nodeName!=="SPAN")break;this.setNodeStyle_(b,G);this.setUpVisibilityLogging_(b,G);G.textContent!=z&&(G.textContent=z);g++;G=G.nextSibling}if(G)for(b=B.lastChild,G=g?G.previousSibling:null;b&&b!=G;){try{B.removeChild(b)}catch(X){break}b=B.lastChild}g!==S&&this.addTextNodes_(f,g)};
_.e.addTextNodes_=function(f,S){for(var B=document.createDocumentFragment(),G=f.length;S<G;S++){var g=f[S],b=_.K("remove_cr_char")&&g.text?g.text.replace("\r",""):g.text;if(this.isSimpleString_(g)&&!this.useMixedDirectionFormattedStrings)B.appendChild(document.createTextNode(b));else{var z=_.H(g,Dw);if(z){if(z.image){var X=document.createElement("img");z.isCustomEmoji||X.classList.add("small-emoji");X.classList.add("emoji");z.isCustomEmoji&&(X.dataset.emojiId=z.emojiId);X.src=_.bF(z.image.thumbnails,
this.emojiSize);(g=this.get("image.accessibility.accessibilityData.label",z))?X.alt=g:z.shortcuts&&z.shortcuts.length>0?X.alt=z.shortcuts[0]:z.emojiId&&(X.alt=z.emojiId);B.appendChild(X);this.hasEmoji=!0}}else!this.noEndpoints&&g.navigationEndpoint?(X=document.createElement("a"),X.classList.add("yt-simple-endpoint"),X.setAttribute("spellcheck","false"),this.setDataOnAnchor_(X,g.navigationEndpoint)):X=document.createElement("span"),this.setNodeStyle_(g,X),this.setUpVisibilityLogging_(g,X),X.appendChild(document.createTextNode(b)),
B.appendChild(X)}}this.getRoot().appendChild(B)};
_.e.isSimpleString_=function(f){return(this.noEndpoints||!f.navigationEndpoint)&&!_.H(f,Dw)&&(this.noStyles||!(f.bold||f.deemphasize||f.italics||f.strikethrough||f.errorUnderline||f.bracket||f.textColor))&&!f.loggingDirectives};
_.e.getRawText=function(){return _.ac(this.text)};
_.e.getFirstRunText=function(){var f;if(((f=this.text)==null?0:f.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.e.setFirstRunText=function(f){var S;((S=this.text)==null?0:S.runs)&&this.text.runs[0]&&(this.text.runs[0].text=f,this.textChanged_(this.text))};
_.e.setDataOnAnchor_=function(f,S){var B=this;!_.K("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(S)||this.isSignalServiceEndpoint_(S)?(f.onclick=this.serviceEndpointHandler_(S),Y6(f,"#")):HHj({text:this.text,command:S},function(){nex(f,S,B.target)})};
_.e.isServiceEndpoint_=function(f){var S;return!((S=_.H(f==null?void 0:f.commandMetadata,_.oD))==null||!S.sendPost)};
_.e.isSignalServiceEndpoint_=function(f){return!!_.H(f,_.Fh)};
_.e.serviceEndpointHandler_=function(f){var S=this;return function(B){_.RD(S.hostElement,[f]);B.preventDefault()}};
_.e.overrideAriaLabelChanged_=function(){var f=this.getRoot();this.enableContentEditable&&f&&f.setAttribute("aria-label",this.overrideAriaLabel)};
_.e.enableContentEditableChanged_=function(){var f=this,S=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),S=_.m9(this.hostElement,S),!S.lastChild||S.lastChild instanceof HTMLElement&&S.lastChild.id!=="contenteditable-root"){var B=document.createElement("div");B.id="contenteditable-root";B.setAttribute("contenteditable","true");B.setAttribute("dir","auto");B.onfocus=function(){f.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
S.appendChild(B);this.overrideAriaLabel&&B.setAttribute("aria-label",this.overrideAriaLabel)}}else B=_.zY(this.hostElement).firstChild,B instanceof HTMLElement&&B.id==="contenteditable-root"&&_.m9(this.hostElement,S).removeChild(B)};
_.e.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.e.getNodesForVisibilityLogging_=function(){return _.wp(this.getRoot().childNodes,function(f){var S;return!((S=f.data)==null||!S.trackingParams)})};
_.e.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.e.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var f=this.ytRendererBehavior.getVisibilityLogger();f&&this.getNodesForVisibilityLogging_().forEach(function(S){f.reportShown(S)})}};
_.e.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var f=this.ytRendererBehavior.getVisibilityLogger();f&&this.getNodesForVisibilityLogging_().forEach(function(S){f.reportHidden(S)})}};
_.y3.Object.defineProperties(vl.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.K("enable_mixed_direction_formatted_strings")}}});
vl.prototype.enableContentEditableChanged_=vl.prototype.enableContentEditableChanged_;vl.prototype.overrideAriaLabelChanged_=vl.prototype.overrideAriaLabelChanged_;vl.prototype.ellipsisTruncateChanged_=vl.prototype.ellipsisTruncateChanged_;vl.prototype.textChanged=vl.prototype.textChanged;_.N([_.r(L71.YtPlaintextBehavior),_.Z("design:type",Object)],vl.prototype,"ytPlaintextBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],vl.prototype,"ytComponentBehavior",void 0);
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],vl.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],vl.prototype,"text",void 0);_.N([_.n(),_.Z("design:type",Boolean)],vl.prototype,"noEndpoints",void 0);_.N([_.n(),_.Z("design:type",Boolean)],vl.prototype,"noStyles",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],vl.prototype,"isDarkTheme",void 0);
_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],vl.prototype,"splitLines",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],vl.prototype,"forceDefaultStyle",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],vl.prototype,"ellipsisTruncate",void 0);_.N([_.n(),_.Z("design:type",Object)],vl.prototype,"ignoreShadyDom",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.Z("design:type",Boolean)],vl.prototype,"ellipsisTruncateStyling",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.Z("design:type",String)],vl.prototype,"ariaLabel",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],vl.prototype,"isEmpty",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.Z("design:type",Boolean)],vl.prototype,"hasLinkOnly_",void 0);_.N([_.n(),_.Z("design:type",Boolean)],vl.prototype,"hasEmoji",void 0);_.N([_.n(),_.Z("design:type",Boolean)],vl.prototype,"disableAttributedString",void 0);_.N([_.n(),_.Z("design:type",Boolean)],vl.prototype,"isOverlay",void 0);_.N([_.n(),_.Z("design:type",Boolean)],vl.prototype,"linkInheritColor",void 0);
_.N([_.n(),_.Z("design:type",Boolean)],vl.prototype,"noPreWrap",void 0);_.N([_.n(),_.Z("design:type",Boolean)],vl.prototype,"userInput",void 0);_.N([_.n({value:16}),_.Z("design:type",Number)],vl.prototype,"emojiSize",void 0);_.N([_.n(),_.Z("design:type",String)],vl.prototype,"target",void 0);_.N([_.n(),_.Z("design:type",Boolean)],vl.prototype,"enableContentEditable",void 0);_.N([_.n(),_.Z("design:type",String)],vl.prototype,"overrideAriaLabel",void 0);
_.N([_.n(),_.Z("design:type",Boolean)],vl.prototype,"respectHtmlDir",void 0);_.N([_.n(),_.Z("design:type",Boolean)],vl.prototype,"respectLangDir",void 0);_.N([_.k("plaintextOnly"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],vl.prototype,"useMixedDirectionFormattedStrings",null);_.N([_.n({computed:"computeUseAttributedString(text)"}),_.Z("design:type",Boolean)],vl.prototype,"useYtAttributedString",void 0);
_.N([_.JO("text"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vl.prototype,"textChanged",null);_.N([_.JO("ellipsisTruncate"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vl.prototype,"ellipsisTruncateChanged_",null);_.N([_.JO("overrideAriaLabel"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vl.prototype,"overrideAriaLabelChanged_",null);
_.N([_.JO("enableContentEditable"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vl.prototype,"enableContentEditableChanged_",null);_.N([_.nP({is:"yt-formatted-string",disableElementRegistration:!0})],vl);
_.p(vl,"yt-formatted-string",function(){if(nYg===void 0){var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;ksN===void 0&&(ksN=document.createElement("template"));var G=ksN;B.call(S,G.content.cloneNode(!0),f.content.firstChild);nYg=f}f=nYg;return f});var sMX;var DLo;var IG8;var ULX;var KV=function(){var f=_.I.apply(this,arguments)||this;f.focused=!1;f.disabled=!1;f.isOverlay=!1;return f};
_.q(KV,_.I);KV.prototype.triggerDown=function(){if(!this.disabled){_.Rl(this.hostElement,"down",!0);var f;(f=this.currentAnimation)==null||f.cancel()}};
KV.prototype.triggerUp=function(){if(!this.disabled){_.Rl(this.hostElement,"down",!1);var f=this.fillElement;var S=this.strokeElement;typeof GroupEffect==="function"?(f=new GroupEffect([alK(f),ywx(S)]),f=new Animation(f,document.timeline)):f=new dL1(f,S);this.currentAnimation=f;var B;(B=this.currentAnimation)==null||B.play()}};
_.N([_.vF(".stroke"),_.Z("design:type",HTMLElement)],KV.prototype,"strokeElement",void 0);_.N([_.vF(".fill"),_.Z("design:type",HTMLElement)],KV.prototype,"fillElement",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],KV.prototype,"focused",void 0);_.N([_.n(),_.Z("design:type",Object)],KV.prototype,"disabled",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],KV.prototype,"isOverlay",void 0);_.N([_.nP({is:"yt-interaction",disableElementRegistration:!0})],KV);
_.p(KV,"yt-interaction",function(){if(ULX===void 0){var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;IG8===void 0&&(IG8=document.createElement("template"));var G=IG8;B.call(S,G.content.cloneNode(!0),f.content.firstChild);ULX=f}f=ULX;return f},{mode:2});var dP=function(){return _.I.apply(this,arguments)||this};
_.q(dP,_.I);_.e=dP.prototype;_.e.ready=function(){var f=this,S=_.m9(this.hostElement).querySelector("#button");S.addEventListener("focus",function(){mug||(mug=new bt6);f.keyboardFocused=mug.isKeyBoardInUse()});
S.addEventListener("blur",function(){f.keyboardFocused=!1;f.rippleUp_()})};
_.e.computeTabIndex_=function(f){return f?-1:0};
_.e.computeButtonAriaPressed_=function(f){if(this.toggleable)return f?"true":"false"};
_.e.rippleDown_=function(){_.m9(this.hostElement).querySelector("#interaction").triggerDown()};
_.e.rippleUp_=function(){_.m9(this.hostElement).querySelector("#interaction").triggerUp()};
_.e.onPressedChanged_=function(){var f=_.zY(_.m9(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.zY(_.m9(this.hostElement).querySelector("#button")).children[0];f&&(f.active=this.pressed)};
dP.prototype.onPressedChanged_=dP.prototype.onPressedChanged_;dP.prototype.rippleUp_=dP.prototype.rippleUp_;dP.prototype.rippleDown_=dP.prototype.rippleDown_;_.N([_.n(),_.Z("design:type",String)],dP.prototype,"label",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],dP.prototype,"disabled",void 0);_.N([_.n(),_.Z("design:type",Boolean)],dP.prototype,"pressed",void 0);_.N([_.n(),_.Z("design:type",Object)],dP.prototype,"toggleable",void 0);
_.N([_.n(),_.Z("design:type",Boolean)],dP.prototype,"untabbable",void 0);_.N([_.n(),_.Z("design:type",Boolean)],dP.prototype,"keyboardFocused",void 0);_.N([_.Vg("down"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],dP.prototype,"rippleDown_",null);_.N([_.Vg("up"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],dP.prototype,"rippleUp_",null);
_.N([_.JO("pressed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],dP.prototype,"onPressedChanged_",null);_.N([_.nP({is:"yt-icon-button",disableElementRegistration:!0})],dP);
_.p(dP,"yt-icon-button",function(){if(DLo===void 0){var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;sMX===void 0&&(sMX=document.createElement("template"));var G=sMX;B.call(S,G.content.cloneNode(!0),f.content.firstChild);DLo=f}f=DLo;return f},{mode:2});var Cgi=_.f4(["aria-"]),i3={};i3.YtRenderButtonBehavior=[_.c.YtRendererBehavior,_.Pl.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!!_.oy().resolve(_.fN(_.R5))&&_.K("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 f=this.computeHref_(this.endpoint,!0);f?Y6(this.elements_.endpoint,f):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){f=this.buttonClass.split(" ");f=_.m(f);for(var S=f.next();!S.done;S=f.next())S=S.value,_.Rl(this.hostElement,S,!0),this.elements_.button&&_.Rl(this.elements_.button,S,!0),this.elements_.text&&_.Rl(this.elements_.text,S,!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&&(f=null,this.buttonAccessibility&&(f=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=f:f?_.AJ([_.fo(Cgi)],this.elements_.button,"aria-label",f):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var f=_.oy().resolve(_.fN(_.R5));f&&(this.keyboardFocused=f.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.Bl("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,_.HZ(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.HZ(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(f,S){if(S)for(f=S.split(" "),f=_.m(f),S=f.next();!S.done;S=f.next())S=S.value,_.Rl(this.hostElement,S,!1),this.elements_.button&&_.Rl(this.elements_.button,S,!1),this.elements_.text&&_.Rl(this.elements_.text,S,!1)},
buttonIconChanged_:function(f){this.elements_.icon?f?(this.elements_.icon.icon=f,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.HZ(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.Xc(this.hostElement,"is-paper-button-with-icon",!1)):f&&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"&&_.HZ(this.elements_.button).appendChild(this.elements_.icon):_.HZ(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.Xc(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(f){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,f){var S=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(f){case "yt_icon_button_with_label":S=!0;_.Rl(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();f=_.HZ(this.elements_.button).firstElementChild;
this.elements_.icon=f;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.HZ(this.elements_.endpoint).appendChild(this.elements_.button);_.HZ(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.Bl("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;_.HZ(this.elements_.button).appendChild(this.elements_.text);_.HZ(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":S=!0,this.elements_.button=this.getYtIconButton_(),f=_.HZ(this.elements_.button).firstElementChild,this.elements_.icon=f,this.setIconActive_(this.elements_.icon),
_.HZ(this.elements_.endpoint).appendChild(this.elements_.button)}_.Xc(this.hostElement,"is-icon-button",S);_.Xc(this.hostElement,"is-paper-button",!S);_.Xc(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 B;_.m9((B=this.container.hostElement)!=null?B:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.HZ(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(f){if(f!=void 0||this.disabled)this.disabled=f,this.elements_.button&&(this.elements_.button.disabled=f)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(f){_.K("kevlar_system_icons")&&f&&this.data&&(this.data.isSelected!==void 0?f.active=this.data.isSelected:this.data.isToggled!==void 0&&(f.active=this.data.isToggled))},
observeBasicPalette_:function(f){_.n9(this.hostElement,f)},
disabledChanged_:function(f){this.data&&this.set("data.isDisabled",f)},
onYtButtonTap_:function(f){if(this.disabled)f.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.RD(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(f=this.disableCommandHandlerOverride,!this.data||!this.data.command||f||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.K("handle_service_request_actions")||_.RD(this.hostElement,[this.serviceEndpoint]),
_.ew(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.K("handle_service_request_actions")?(f=[],this.serviceEndpoint&&f.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&f.push(this.data.command),f.length&&_.Xh(this.hostElement,f,this.hostElement)):this.data&&this.data.command&&(f=this.data.command,f.accountUnlinkCommand||f.accountLinkCommand||f.insertAdCommand||f.insertHighlightMarkerCommand||
f.createLivestreamHighlightClipCommand||f.getVideoUploadFeedbackCommand||f.musicDeletePrivatelyOwnedEntityCommand||f.ypcCancelRecurrenceEndpoint||f.getMultiSelectCommandEndpoint?_.RD(this.hostElement,[f]):_.Xh(this.hostElement,[f],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 f,S=_.m9((f=this.container.hostElement)!=null?f:this.container);S.lastChild&&S.lastChild.tagName!="STYLE";)try{S.removeChild(S.lastChild)}catch(B){break}},
getYtIconButton_:function(){var f=this.reuseEnabled_()?_.Bl("yt-icon-button"):document.createElement("yt-icon-button"),S=_.HZ(f).firstElementChild;if(S&&S.is!="yt-icon"){for(S=_.HZ(f);S.lastChild;)S.removeChild(S.lastChild);S=null}S||(S=this.getIcon_(),this.setIconActive_(S),_.HZ(f).appendChild(S));return f},
reuseEnabled_:function(){return _.K("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.Bl("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.Bl("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.pIX={};
_.pIX.YtButtonBehavior=[i3.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var f=this.data;f&&(this._setEndpoint(this.computeEndpoint_(f)),this._setServiceEndpoint(this.computeServiceEndpoint_(f)),this._setCommand(this.computeCommand_(f)),this._setButtonIcon(this.computeButtonIcon_(f)),this._setButtonText(this.computeButtonText_(f,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(f)),this._setButtonTooltip(this.computeTooltip_(f)),this._setButtonClass(this.computeButtonClass_(f)),this._setIconPositionType(this.computeIconPositionType_(f)),this.updateRenderedElements())},
setPressedState:function(f){var S;if((S=this.elements_)==null?0:S.button)this.elements_.button.pressed=!!f},
computeIconPositionType_:function(f){return f&&f.iconPosition||null},
computeEndpoint_:function(f){var S=f&&f.navigationEndpoint,B=this.get("data.command.commandMetadata.webCommandMetadata.url"),G=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return S?S:f&&f.command&&f.command.modalEndpoint?f.command:B&&!G&&f.command?f.command:null},
computeServiceEndpoint_:function(f){var S=f&&f.serviceEndpoint,B=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return S?S:B&&f.command?f.command:null},
computeCommand_:function(f){return f&&f.command||null},
computeButtonIcon_:function(f){return f&&f.icon&&f.icon.iconType?_.F_(f.icon.iconType):null},
computeButtonText_:function(f,S){return!S&&f&&f.text||null},
computeAccessibility_:function(f){return this.get("accessibilityData.accessibilityData",f)||f&&f.accessibility||(f&&f.text?{label:this.getSimpleString(f.text)}:null)},
computeTooltip_:function(f){return f?f.isDisabled&&f.disabledTooltip||f.tooltip||null:null},
computeButtonClass_:function(f){var S=f&&f.style?f.style.toLowerCase().replace(/_/g,"-")+" ":"";S+=f&&f.size?f.size.toLowerCase().replace(/_/g,"-")+" ":"";f.colorData&&f.colorData.basicColorPaletteData&&f.colorData.basicColorPaletteData.borderColor&&(S+="palette-with-border");return S.trim()}}];var so={};var A6$;var NSj;var M6m,ZcN=function(){return M6m!==void 0?M6m:M6m=document.createElement("template")};
document.head.appendChild(ZcN().content);var t6g;var u4o,aGv=function(){return u4o!==void 0?u4o:u4o=document.createElement("template")};
document.head.appendChild(aGv().content);var y67;var W7m,c67=function(){return W7m!==void 0?W7m:W7m=document.createElement("template")};
document.head.appendChild(c67().content);var lG8;var fim=document.head,o46=fim.appendChild,Smj;if(lG8===void 0){var BtN=document.createElement("template");_.Y(BtN,"\x3c!--css-build:shady--\x3e");BtN.content.insertBefore(c67().content.cloneNode(!0),BtN.content.firstChild);lG8=BtN}Smj=lG8;o46.call(fim,Smj.content);var GRg=document.head,g4$=GRg.appendChild,eW8;if(y67===void 0){var bwg=document.createElement("template");_.Y(bwg,"\x3c!--css-build:shady--\x3e");bwg.content.insertBefore(aGv().content.cloneNode(!0),bwg.content.firstChild);y67=bwg}eW8=y67;g4$.call(GRg,eW8.content);var mTg=document.head,zWv=mTg.appendChild,RWN;if(t6g===void 0){var XC6=document.createElement("template");_.Y(XC6,"\x3c!--css-build:shady--\x3e");XC6.content.insertBefore(ZcN().content.cloneNode(!0),XC6.content.firstChild);t6g=XC6}RWN=t6g;zWv.call(mTg,RWN.content);var wC1;_.Dd("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");wC1=_.K("web_button_rework")&&_.s6("BUTTON_REWORK")||_.K("web_button_rework_with_live");_.Hl=function(){return _.I.apply(this,arguments)||this};
_.q(_.Hl,_.I);_.Hl.prototype.created=function(){this.openPopupConfig=_.nL("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.Hl.prototype.onYtNavigate_=function(f){var S=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(f.detail.endpoint);S&&(this.ytOpenPopupBehavior.openPopup(S),f.stopPropagation(),f.preventDefault())};
_.y3.Object.defineProperties(_.Hl,{template:{configurable:!0,enumerable:!0,get:function(){if(NSj===void 0){var f=document.createElement("template");_.Y(f,"\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");f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);
var S=f.content,B=S.insertBefore;A6$===void 0&&(A6$=document.createElement("template"));var G=A6$;B.call(S,G.content.cloneNode(!0),f.content.firstChild);NSj=f}f=NSj;return f}}});
_.Hl.prototype.onYtNavigate_=_.Hl.prototype.onYtNavigate_;_.N([_.r(_.JW.YtOpenPopupBehavior),_.Z("design:type",Object)],_.Hl.prototype,"ytOpenPopupBehavior",void 0);_.N([_.r(_.pIX.YtButtonBehavior),_.Z("design:type",Object)],_.Hl.prototype,"ytButtonBehavior",void 0);_.N([_.Vg("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],_.Hl.prototype,"onYtNavigate_",null);
_.N([_.nP({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:wC1})],_.Hl);var hWo;var Tt1=_.K("web_button_rework")&&_.s6("BUTTON_REWORK")||_.K("web_button_rework_with_live"),qf=function(){var f=_.I.apply(this,arguments)||this;f.isPressed=!1;f.forceIconButton=!1;f.forceIconOnly=!1;f.forceModernIconButton=!1;f.skipCommandHandling=!1;f.alignByText=!1;f.fitToVisibleBounds=!0;f.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};f.onTap=function(S){_.ew(f.hostElement,"yt-service-request-sent-button-renderer",S)};
return f};
_.q(qf,_.I);_.e=qf.prototype;_.e.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.e.onClick=function(f){var S,B=this.disabled||((S=this.data)==null?void 0:S.isDisabled);S=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");B&&S&&f.stopPropagation()};
_.e.computeIcon=function(){var f,S,B=(f=this.data)==null?void 0:(S=f.icon)==null?void 0:S.iconType;if(B)return _.F_(B)};
_.e.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.e.handleUpdateButtonAction=function(f){f=_.H(f,UaL);var S=_.H(f==null?void 0:f.updatedButton,_.IR);if(this.data&&f&&S){var B=this.data;B.targetId&&f.targetId&&B.targetId===f.targetId&&(this.data=S)}};
_.y3.Object.defineProperties(qf.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var f=this;if(this.data){var S=MKN({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.ew(f.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.ew(f.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});S.alignByText=this.alignByText;return S}}}});
_.y3.Object.defineProperties(qf,{template:{configurable:!0,enumerable:!0,get:function(){if(hWo===void 0){var f=document.createElement("template");_.Y(f,'\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>');hWo=f}f=hWo;return f}}});
qf.prototype.onClick=qf.prototype.onClick;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],qf.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],qf.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],qf.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],qf.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],qf.prototype,"isPressed",void 0);
_.N([_.n(),_.Z("design:type",Object)],qf.prototype,"forceIconButton",void 0);_.N([_.n(),_.Z("design:type",Object)],qf.prototype,"forceIconOnly",void 0);_.N([_.n(),_.Z("design:type",Object)],qf.prototype,"forceModernIconButton",void 0);_.N([_.n(),_.Z("design:type",Object)],qf.prototype,"skipCommandHandling",void 0);_.N([_.n(),_.Z("design:type",Object)],qf.prototype,"alignByText",void 0);_.N([_.n(),_.Z("design:type",Object)],qf.prototype,"buttonTooltipPosition",void 0);
_.N([_.n(),_.Z("design:type",Object)],qf.prototype,"fitToVisibleBounds",void 0);_.N([_.n({computed:"computeTooltip(data)"}),_.Z("design:type",Object)],qf.prototype,"tooltip",void 0);_.N([_.n(),_.Z("design:type",Object)],qf.prototype,"overrides",void 0);_.N([_.n(),_.Z("design:type",Boolean)],qf.prototype,"disabled",void 0);_.N([_.Vg("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],qf.prototype,"onClick",null);
_.N([_.k("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],qf.prototype,"computedButtonShape",null);_.N([_.nP({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!Tt1,cssBuildOptOut:!0}),_.nP({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!Tt1,cssBuildOptOut:!0})],qf);var FSX;var Vhm;var $N=function(){var f=_.I.apply(this,arguments)||this;f.empty_=!0;f.loadTime=Infinity;f.pendingPaint=!1;f.hasChange_=!1;f.oldThumbnail_=null;f.oldDelayedSrc_="";f.objectURL_=null;return f};
_.q($N,_.I);_.e=$N.prototype;_.e.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.e.ready=function(){var f=this.shouldShowPlaceholder_();_.Rl(this.hostElement,"no-transition",!0);f&&this.hostElement.classList.add("with-placeholder")};
_.e.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.e.isThumbPreloaded_=function(f){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",f)};
_.e.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||J4N};
_.e.computeThumbnailSrc_=function(f){return f&&f.thumbnails?_.bF(f.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.e.computeAlt_=function(){var f=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&f||""};
_.e.thumbnailChanged_=function(){var f=_.m([this.thumbnail,this.oldThumbnail_]),S=f.next().value;f=f.next().value;this.oldThumbnail_=S;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(f=this.computeThumbnailSrc_(f),this.computeThumbnailSrc_(S)===f))return;_.K("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(S)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):S&&_.s6("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.ui(this,this.onReload_):_.ui(this,this.onShow_):this.resetImage_();S&&(this.hostElement.style.opacity=""+S.opacity)}};
_.e.delayedSrcChanged_=function(){var f=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===f||this.resetImage_()};
_.e.setSrc_=function(f){f?(_.m9(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.m9(this.hostElement).querySelector("#img").src=f):(_.m9(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.e.resetImage_=function(){ai1(this.hostElement);this.empty_=!0;this.setSrc_(J4N);this.ytRendererBehavior.invalidate(!1)};
_.e.observePlaceholderColor_=function(){var f=this.thumbnail&&this.thumbnail.placeholderColor;f?this.hostElement.style.backgroundColor=_.pn(f):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.e.onLoad_=function(){_.m9(this.hostElement).querySelector("#img").src&&_.m9(this.hostElement).querySelector("#img").src!==J4N&&(uBs(this.hostElement),this.notifyOnLoaded&&_.ew(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.e.onError_=function(){var f=this;if(_.K("web_use_cache_for_image_fallback"))SNK(_.m9(this.hostElement).querySelector("#img").src).then(function(S){f.objectURL_=_.Ho(S).toString();f.setSrc_(f.objectURL_)}).catch(function(){_.K("kevlar_woffle_fallback_image")&&f.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.e.onPrescanVisible=function(){this.onShow_()};
_.e.onVisible=function(){if(_.K("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.e.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var f=this.computeSrc_();f!==_.m9(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(f))}};
_.e.onReload_=function(){this.empty_=!1;var f=this.computeSrc_();f!==_.m9(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(f))};
_.e.shouldShowPlaceholder_=function(){return _.K("kevlar_thumbnail_bg")};
$N.prototype.observePlaceholderColor_=$N.prototype.observePlaceholderColor_;$N.prototype.delayedSrcChanged_=$N.prototype.delayedSrcChanged_;$N.prototype.thumbnailChanged_=$N.prototype.thumbnailChanged_;_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",String)],$N.prototype,"alt",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],$N.prototype,"ariaHidden",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",String)],$N.prototype,"ariaLabel",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],$N.prototype,"hidden",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",String)],$N.prototype,"id",void 0);_.N([_.r(_.ti.YtVisibilityBehavior),_.Z("design:type",Object)],$N.prototype,"ytVisibilityBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],$N.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",String)],$N.prototype,"delayedSrc",void 0);
_.N([_.n(),_.Z("design:type",Object)],$N.prototype,"thumbnail",void 0);_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],$N.prototype,"loaded",void 0);_.N([_.n(),_.Z("design:type",Boolean)],$N.prototype,"notifyOnLoaded",void 0);_.N([_.n(),_.Z("design:type",Number)],$N.prototype,"height",void 0);_.N([_.n(),_.Z("design:type",Number)],$N.prototype,"width",void 0);_.N([_.n({value:function(){return"width"}}),
_.Z("design:type",String)],$N.prototype,"dimension",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],$N.prototype,"fit",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],$N.prototype,"fitHeight",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],$N.prototype,"fitWidth",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",String)],$N.prototype,"objectFit",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",String)],$N.prototype,"objectPosition",void 0);_.N([_.n(),_.Z("design:type",String)],$N.prototype,"preferredThumbnail",void 0);_.N([_.n({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.Z("design:type",String)],$N.prototype,"alt_",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",String)],$N.prototype,"sharedTooltipText",void 0);
_.N([_.n(),_.Z("design:type",Boolean)],$N.prototype,"ftlEligible",void 0);_.N([_.n({value:void 0}),_.Z("design:type",String)],$N.prototype,"observeHiddenOption",void 0);_.N([_.n({value:"observe_once"}),_.Z("design:type",String)],$N.prototype,"observePrescanOption",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],$N.prototype,"roundedContainer",void 0);
_.N([_.HF("thumbnail"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$N.prototype,"thumbnailChanged_",null);_.N([_.HF("delayedSrc"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$N.prototype,"delayedSrcChanged_",null);_.N([_.JO("thumbnail.placeholderColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$N.prototype,"observePlaceholderColor_",null);
_.N([_.nP({is:"yt-img-shadow",disableElementRegistration:!0})],$N);var J4N=_.s6("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.RS()($N,"yt-img-shadow",function(){if(Vhm===void 0){var f=document.createElement("template");_.Y(f,'\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">');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;FSX===void 0&&(FSX=document.createElement("template"));var G=FSX;B.call(S,G.content.cloneNode(!0),f.content.firstChild);Vhm=f}f=Vhm;return f},{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 y8V;_.Qz=new _.Sn("SCREEN_MANAGER_TOKEN");y8V=new _.Sn("LOG_INITIAL_SCREEN_TOKEN");_.ER=_.oS(function(f){function S(mx){return _.H(mx,_.Q5)}
function B(){var mx=G().isTogglingDisabled||P()?x():!x();E(mx);A(!1);if(!G().isTogglingDisabled){var zj;(zj=z)==null||zj(!!mx)}var VN;((VN=b)==null?0:VN())||_.TE(_.oy().resolve(_.Qz),G().trackingParams);var $Q;if(!mx||!S(G().defaultButtonViewModel)||($Q=b)!=null&&$Q()){var OV;!S(G().toggledButtonViewModel)||((OV=b)==null?0:OV())||_.TE(_.oy().resolve(_.Qz),S(G().toggledButtonViewModel).trackingParams)}else _.TE(_.oy().resolve(_.Qz),S(G().defaultButtonViewModel).trackingParams)}
var G=f.data,g=f.buttonShapeOverrides,b=f.disableExplicitClickLogging,z=f.onToggle,X=f.style,w=f.useOutlinedIcon,F=f.className,V=function(){var mx,zj;return x()?(mx=f.animatedTextPropsToggled)==null?void 0:mx.call(f):(zj=f.animatedTextPropsDefault)==null?void 0:zj.call(f)},J=_.vW(function(){return V()?Object.assign({},V(),{shouldAnimate:U()}):void 0},void 0,"ZKEa0b"),P=function(){var mx;
return((mx=a())==null?void 0:mx.isToggled)!==void 0},d=_.m(_.$8(function(){var mx,zj,VN;
return P()?(mx=a())==null?void 0:mx.isToggled:(VN=g==null?void 0:(zj=g())==null?void 0:zj.toggled)!=null?VN:G().isToggled})),Q=d.next().value;
d=d.next().value;var x=Q,E=d;d=_.m(_.$8(function(){var mx,zj;return(mx=f.animatedTextPropsToggled)==null?void 0:(zj=mx.call(f))==null?void 0:zj.shouldAnimate}));
Q=d.next().value;d=d.next().value;var U=Q,A=d;Q=_.m(_.hj(!1,void 0,"S11hid"));var t=Q.next().value,M=Q.next().value,a=_.Uo(function(mx){var zj;a:{var VN=G().entityKey,$Q=G().toggledStateEntitySelectorType;if($Q&&VN)switch($Q){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":var OV;mx=(OV=_.w9(mx.entities,"sfvAudioItemCurrentlyPlayingEntity",VN))!=null?OV:void 0;OV=(zj=mx==null?void 0:mx.sfvAudioItemPlaybackState)!=null?zj:void 0;if(OV==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){zj={isToggled:!0};
break a}if(OV){zj={isToggled:!1};break a}break;default:_.Lg(new _.dO("Error: entitySelectorType defined but not matched in selector.",mx,$Q))}zj=void 0}return zj}),l=function(){return Object.assign({},g==null?void 0:g(),{onToggle:B,
toggleable:!0,toggled:x(),focused:t()})};
return _.T("toggle-button-view-model",{"on:focusin":_.iF(function(){var mx=_.oy().resolve(_.fN(_.R5));mx&&M(mx.isKeyBoardInUse());return!1}),
"on:focusout":_.iF(function(){M(!1);return!1}),
class:F},_.T(_.v,{cond:function(){return x()?S(G().toggledButtonViewModel):S(G().defaultButtonViewModel)},
then:function(mx){return _.T(_.I8,{data:mx,className:F,style:X,useOutlinedIcon:w,buttonOverrides:l,animatedTextProps:J})}}))},"z");
_.ER.idomCompat={callbacks:{onToggle:!0}};_.eq(_.oS(function(f){return _.T("yt-toggle-button-view-model",{class:function(){var S;return(S=f.scopingClassName)==null?void 0:S.call(f)}},_.T(_.ER,{data:function(){var S;
return(S=f.data)==null?void 0:S.call(f)},
buttonShapeOverrides:function(){var S;return(S=f.overrides)==null?void 0:S.call(f)},
animatedTextPropsDefault:function(){var S;return(S=f.animatedTextPropsDefault)==null?void 0:S.call(f)},
animatedTextPropsToggled:function(){var S;return(S=f.animatedTextPropsToggled)==null?void 0:S.call(f)},
disableExplicitClickLogging:function(){var S;return(S=f.disableExplicitClickLogging)==null?void 0:S.call(f)},
onToggle:function(S){var B;return(B=f.onToggle)==null?void 0:B.call(f,S)},
style:function(){var S;return(S=f.style)==null?void 0:S.call(f)},
useOutlinedIcon:function(){var S;return(S=f.useOutlinedIcon)==null?void 0:S.call(f)},
className:function(){var S;return(S=f.className)==null?void 0:S.call(f)}}))},"A"),"yt-toggle-button-view-model",{props:{data:_.W4,
buttonShapeOverrides:_.W4,overrides:_.W4,animatedTextPropsDefault:_.W4,animatedTextPropsToggled:_.W4,disableExplicitClickLogging:_.W4,onToggle:_.gm,style:_.W4,useOutlinedIcon:_.W4,className:_.W4,scopingClassName:_.W4}});var YN=function(){return _.I.apply(this,arguments)||this};
_.q(YN,_.I);YN.prototype.onTap=function(f){f.stopPropagation();f=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.LF("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:f})):this.ytLiveChatReduxBehavior.dispatch(_.KF("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:f}))};
_.y3.Object.defineProperties(YN.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.engagementState)==null?void 0:f.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var f=_.H(this.data.toggleButton,_.YK),S;if(Number(((S=this.likeCountState)==null?void 0:S.likeCountIfIndifferentNumber)||"0")===0){var B;S=((B=this.data.likeCountPlaceholder)==null?void 0:B.content)||""}else{var G,g,b;S=((G=this.likeCountState)==null?void 0:(g=G.likeCountIfIndifferent)==null?void 0:g.content)||((b=this.data.likeCountPlaceholder)==null?void 0:b.content)||""}var z,X;B=((z=this.likeCountState)==null?void 0:(X=
z.likeCountIfLiked)==null?void 0:X.content)||"1";z=_.H(f.toggledButtonViewModel,_.Q5);return Object.assign({},f,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.H(f.defaultButtonViewModel,_.Q5),{title:S})},toggledButtonViewModel:{buttonViewModel:Object.assign({},z,{title:B})}})}}}});
YN.prototype.onTap=YN.prototype.onTap;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],YN.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],YN.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.p5),_.Z("design:type",Object)],YN.prototype,"ytLiveChatReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],YN.prototype,"data",void 0);
_.N([_.n({selectorArgs:["data.likeCountEntityKey"],selector:Zls}),_.Z("design:type",Object)],YN.prototype,"likeCountState",void 0);_.N([_.n({selectorArgs:["data.engagementStateKey"],selector:KtK}),_.Z("design:type",Object)],YN.prototype,"engagementState",void 0);_.N([_.k("data","engagementState"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],YN.prototype,"isLiked",null);
_.N([_.k("data","likeCountState","isLiked"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],YN.prototype,"toggleButton",null);_.N([_.Vg("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],YN.prototype,"onTap",null);_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],YN);
_.p(YN,"yt-live-chat-like-button-view-model",function(){if(EYv===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;xLi===void 0&&(xLi=document.createElement("template"));var G=xLi;B.call(S,G.content.cloneNode(!0),f.content.firstChild);EYv=f}f=EYv;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var PRo;var v4m;var rP=function(){return _.I.apply(this,arguments)||this};
_.q(rP,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],rP.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],rP.prototype,"data",void 0);_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],rP);
_.p(rP,"yt-live-chat-paid-message-footer-renderer",function(){if(v4m===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;PRo===void 0&&(PRo=document.createElement("template"));var G=PRo;B.call(S,G.content.cloneNode(!0),f.content.firstChild);v4m=f}f=v4m;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var KSv;var dTm;var iw6;var Hwo,qm$=function(){if(Hwo!==void 0)return Hwo;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;iw6===void 0&&(iw6=document.createElement("template"));var G=iw6;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return Hwo=f};var jy=function(){return _.I.apply(this,arguments)||this};
_.q(jy,_.I);jy.prototype.onTap=function(f){f.stopPropagation()};
_.y3.Object.defineProperties(jy.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var f=_.H(this.data.replyButton,_.Q5),S,B,G,g,b,z,X,w=Number(((S=this.replyCountState)==null?void 0:S.replyCountNumber)||"0")===0?(B=this.data)==null?void 0:(G=B.replyCountPlaceholder)==null?void 0:G.content:((g=this.replyCountState)==null?void 0:(b=g.replyCount)==null?void 0:b.content)||((z=this.data)==null?void 0:(X=z.replyCountPlaceholder)==null?void 0:X.content)||"",F;return Object.assign({},
f,{title:w,accessibilityText:(F=this.replyCountState)==null?void 0:F.replyButtonAccessibilityText})}}}});
_.y3.Object.defineProperties(jy,{template:{configurable:!0,enumerable:!0,get:function(){return qm$()}}});
jy.prototype.onTap=jy.prototype.onTap;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],jy.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],jy.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.p5),_.Z("design:type",Object)],jy.prototype,"ytLiveChatReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],jy.prototype,"data",void 0);
_.N([_.n({selectorArgs:["data.replyCountEntityKey"],selector:function(f,S){return _.w9(f.entities,"replyCountEntity",S)}}),
_.Z("design:type",Object)],jy.prototype,"replyCountState",void 0);_.N([_.k("data","replyCountState"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],jy.prototype,"buttonViewModel",null);_.N([_.Vg("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],jy.prototype,"onTap",null);_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],jy);
_.p(jy,"yt-live-chat-reply-button-view-model",function(){return qm$()},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var $To;var Qb8;var O0=function(){var f=_.I.apply(this,arguments)||this;f.ariaLabel="";return f};
_.q(O0,_.I);
O0.prototype.dataChanged=function(){for(var f=(0,_.wv)(_.m9(this.hostElement).querySelector("#image"));f.firstChild;)f.removeChild(f.firstChild);if(this.data)if(this.data.icon){var S=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(S.polymerController.icon="yt-sys-icons:shield-filled",S.polymerController.defaultToFilled=!0):S.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();f.appendChild(S)}else if(this.data.customThumbnail){S=document.createElement("img");
var B=_.CRs(this.data.customThumbnail.thumbnails,16);B?(S.src=B,f.appendChild(S),S.setAttribute("alt",this.hostElement.ariaLabel||"")):_.Lg(new _.dO("Could not compute URL for thumbnail",this.data.customThumbnail))}};
O0.prototype.identity=function(f){return f};
O0.prototype.computeType=function(f){return wR(f||void 0)};
O0.prototype.dataChanged=O0.prototype.dataChanged;_.N([_.n(),_.Z("design:type",Object)],O0.prototype,"data",void 0);_.N([_.n({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.Z("design:type",Object)],O0.prototype,"ariaLabel",void 0);_.N([_.n({computed:"computeType(data)",reflectToAttribute:!0}),_.Z("design:type",String)],O0.prototype,"type",void 0);
_.N([_.n({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.Z("design:type",String)],O0.prototype,"sharedTooltipText",void 0);_.N([_.n({reflectToAttribute:!0,value:function(){return _.K("live_chat_enable_new_moderator_badge")}}),
_.Z("design:type",Boolean)],O0.prototype,"enableNewModeratorBadge",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],O0.prototype,"dataChanged",null);_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],O0);
_.p(O0,"yt-live-chat-author-badge-renderer",function(){if(Qb8===void 0){var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;$To===void 0&&($To=document.createElement("template"));var G=$To;B.call(S,G.content.cloneNode(!0),f.content.firstChild);Qb8=f}f=Qb8;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var Ymg;var r4X;var xN=function(){return _.I.apply(this,arguments)||this};
_.q(xN,_.I);_.e=xN.prototype;_.e.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"}}}}};
_.e.computeBadgesInsideChip=function(f){return f?f.filter(function(S){return wR(S.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.e.computeBadgesOutsideChip=function(f){return this.prependChatBadges||!f?[]:f.filter(function(S){S=wR(S.liveChatAuthorBadgeRenderer);return S!=="verified"&&S!=="owner"})};
_.e.computeBadgesBeforeChip=function(f){return this.prependChatBadges&&f?f.filter(function(S){S=wR(S.liveChatAuthorBadgeRenderer);return S!=="verified"&&S!=="owner"}):[]};
_.e.computeIsHighlighted=function(f,S){var B=!!S$G(f,"owner"),G=!!S$G(f,"verified");f=!!S$G(f,"moderator");return(B||G&&!f)&&!S};
_.e.computeAuthorType=function(f){return owN(f)};
_.e.computeAuthorClass=function(f,S){return S?(f?f+" ":"")+"single-line":f};
_.e.onSeedColorChanged=function(){_.K("live_chat_author_name_color_usernames")||_.K("live_chat_seed_color_usernames")||_.K("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):_.K("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
xN.prototype.onSeedColorChanged=xN.prototype.onSeedColorChanged;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],xN.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],xN.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],xN.prototype,"authorName",void 0);_.N([_.n(),_.Z("design:type",Array)],xN.prototype,"authorBadges",void 0);
_.N([_.n({computed:"computeAuthorType(authorBadges)"}),_.Z("design:type",String)],xN.prototype,"authorType",void 0);_.N([_.n({computed:"computeAuthorClass(authorType, singleLine)"}),_.Z("design:type",String)],xN.prototype,"authorClass",void 0);_.N([_.n({computed:"computeBadgesInsideChip(authorBadges)"}),_.Z("design:type",Array)],xN.prototype,"badgesInsideChip",void 0);_.N([_.n({computed:"computeBadgesOutsideChip(authorBadges)"}),_.Z("design:type",Array)],xN.prototype,"badgesOutsideChip",void 0);
_.N([_.n({computed:"computeBadgesBeforeChip(authorBadges)"}),_.Z("design:type",Array)],xN.prototype,"badgesBeforeChip",void 0);_.N([_.n({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],xN.prototype,"isHighlighted",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],xN.prototype,"singleLine",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],xN.prototype,"disableHighlighting",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],xN.prototype,"dashboardMoneyFeed",void 0);_.N([_.n({value:_.K("live_chat_prepend_badges"),reflectToAttribute:!0}),_.Z("design:type",Boolean)],xN.prototype,"prependChatBadges",void 0);_.N([_.n(),_.Z("design:type",String)],xN.prototype,"authorNameColor",void 0);_.N([_.vF("#author-name"),_.Z("design:type",HTMLDivElement)],xN.prototype,"username",void 0);
_.N([_.JO("authorNameColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xN.prototype,"onSeedColorChanged",null);_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],xN);
_.p(xN,"yt-live-chat-author-chip",function(){if(r4X===void 0){var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;Ymg===void 0&&(Ymg=document.createElement("template"));var G=Ymg;B.call(S,G.content.cloneNode(!0),f.content.firstChild);r4X=f}f=r4X;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var jbX;var OwN;var E0=function(){var f=_.I.apply(this,arguments)||this;f.debounceCommand=_.Hq(function(S){f.ytComponentBehavior.resolveCommand(S)},1500);
return f};
_.q(E0,_.I);E0.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var f=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",S,B,G=this.isHearted?(S=this.data)==null?void 0:S.unheartCommand:(B=this.data)==null?void 0:B.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.LF("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:f}));(f=_.CH(G))&&this.debounceCommand(f)}};
_.y3.Object.defineProperties(E0.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var f,S;if(!((f=this.data)==null?0:(S=f.creatorThumbnail)==null?0:S.sources))return{};f={thumbnails:[]};S={};S.url=this.data.creatorThumbnail.sources[0].url;f.thumbnails.push(S);return f}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var f,S;return((f=this.engagementState)==null?void 0:f.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((S=this.engagementState)==null?void 0:S.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var f,S;return((f=this.engagementState)==null?void 0:f.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((S=this.engagementState)==null?void 0:S.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.engagementState)==null?void 0:f.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var f,S,B;return((f=this.engagementState)==null?void 0:f.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((S=this.engagementState)==null?void 0:S.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((B=this.engagementState)==null?void 0:B.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}}});
E0.prototype.onTap=E0.prototype.onTap;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],E0.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],E0.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.p5),_.Z("design:type",Object)],E0.prototype,"ytLiveChatReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],E0.prototype,"data",void 0);
_.N([_.n({selectorArgs:["data.engagementStateKey"],selector:KtK}),_.Z("design:type",Object)],E0.prototype,"engagementState",void 0);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],E0.prototype,"thumbnailDetails",null);_.N([_.k("data","engagementState"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],E0.prototype,"isHearted",null);_.N([_.k("data","engagementState"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],E0.prototype,"isEditable",null);
_.N([_.k("data","engagementState"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],E0.prototype,"showCreatorView",null);_.N([_.k("data","engagementState"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],E0.prototype,"showButton",null);_.N([_.k("data","isHearted"),_.Z("design:type",String),_.Z("design:paramtypes",[])],E0.prototype,"label",null);_.N([_.k("data","isHearted"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],E0.prototype,"heartHoverText",null);
_.N([_.Vg("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],E0.prototype,"onTap",null);_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],E0);
_.p(E0,"yt-live-chat-creator-heart-view-model",function(){if(OwN===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;jbX===void 0&&(jbX=document.createElement("template"));var G=jbX;B.call(S,G.content.cloneNode(!0),f.content.firstChild);OwN=f}f=OwN;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var LV=function(){};
_.q(LV,Rv);LV.prototype.JSC$11056_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:M5("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
LV.prototype.getApiPaths=function(){return[]};
LV.prototype.getExtension=function(){};
LV.prototype.JSC$11056_buildRequest=function(){};var xTN={},E4o=(xTN.GET_DATASYNC_IDS=YG(LV),xTN);var LSv,kR6,n4i,OtN,kN,Iio,sAv,DTX,sbN;LSv="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");kR6=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.Zd=function(f,S,B,G,g,b,z,X,w){this.endpointMap=f;this.networkManager=S;this.authService=B;this.responseProcessorMap=G;this.innertubeResponseStore=g;this.contextProcessors=b;this.asyncContextProcessors=z;this.localInnertubeRouter=X;this.requestSequencer=w;this.inflightRequests=new Map;f.signalEndpointMap||(f.signalEndpointMap={});f.signalEndpointMap=Object.assign({},E4o,f.signalEndpointMap)};
n4i=function(f,S,B,G,g,b,z,X,w){if(_.Zd.instance!==void 0){if(G=_.Zd.instance,f=[f!==G.endpointMap,S!==G.networkManager,B!==G.authService,g!==G.innertubeResponseStore,b!==G.contextProcessors,z!==G.asyncContextProcessors,X!==G.localInnertubeRouter],f.some(function(F){return F}))throw new _.dO("InnerTubeTransportService is already initialized",f);
}else _.Zd.instance=new _.Zd(f,S,B,G,g,b,z,X,w)};
_.uF=function(f,S,B){var G=G===void 0?yYv:G;var g=sAv(f,S);return g?new _.TM(function(b,z){var X,w,F,V,J;return _.R(function(P){switch(P.nextAddress){case 1:return _.h(P,g,2);case 2:X=P.yieldResult;w=X.JSC$11056_getRequest(S,B,G);if(!w){z(new _.dO("Error: Failed to build request for command.",S));P.jumpTo(0);break}ZU(w.input);V=((F=w.requestShell)==null?void 0:F.mode)==="cors"?"cors":void 0;if(f.authService.syncHeaders){J=sbN(w.config,V);P.jumpTo(4);break}return _.h(P,DTX(w.config,V),5);case 5:J=
P.yieldResult;case 4:b(Iio(f,w,J)),_.TT(P)}})}):_.xe(new _.dO("Error: No request builder found for command.",S))};
OtN=function(f,S,B,G){var g=g===void 0?yYv:g;var b,z,X,w,F,V,J,P,d,Q,x,E,U,A,t,M,a,l;return _.R(function(mx){switch(mx.nextAddress){case 1:b=a_N(S,f.endpointMap);if(!b)throw new _.dO("Error: No streaming request builder found for command",S);z=b.JSC$11056_getRequest(S,B,g);if(!z)throw new _.dO("Failed to build YtRequest for streaming Command",S);if((X=f.localInnertubeRouter)==null||!X.shouldPreferLocalResponse(z.input,z.innerTubeRequest)){mx.jumpTo(2);break}return _.h(mx,f.localInnertubeRouter.localInnertubeResponse(z.input,
z.innerTubeRequest),3);case 3:return w=mx.yieldResult,F={},w.playerResponse&&(kN(f,w.playerResponse,z),F.player=w.playerResponse,(V=G)==null||V(F,w)),w.watchNextResponse&&(kN(f,w.watchNextResponse,z),F.content=w.watchNextResponse,(J=G)==null||J(F,w)),mx.return(F);case 2:d=((P=z.requestShell)==null?void 0:P.mode)==="cors"?"cors":void 0;if(f.authService.syncHeaders){Q=sbN(z.config,d);mx.jumpTo(4);break}return _.h(mx,DTX(z.config,d),5);case 5:Q=mx.yieldResult;case 4:return U=(E=(x=z.requestShell)==null?
void 0:x.headers)!=null?E:{},z.requestShell=Object.assign({},z.requestShell,{headers:Object.assign({},U,Q)}),A=Object.assign({},z.requestShell),t=JSON.stringify(z.innerTubeRequest),z.requestShell.method==="POST"&&(A=Object.assign({},A,{body:t})),M=function(zj,VN){kN(f,VN.playerResponse||VN.watchNextResponse||VN.reelItemWatchResponse||VN.reelWatchSequenceResponse,z);G==null||G(zj,VN)},a={},_.h(mx,UT8(f.networkManager,z.input,A,M),6);
case 6:return a=mx.yieldResult,((l=z.config)==null?0:l.responseTick)&&_.kT(z.config.responseTick),mx.return(a)}})};
_.sX=function(f,S,B,G,g){g=g===void 0?{authStrategy:{identity:yYv}}:g;var b=b===void 0?!0:b;var z=function(){};
z=G6Q(ScM(B));S.context||(S.context=_.XlV(G,b));return new _.TM(function(X){var w,F,V,J,P;return _.R(function(d){if(d.nextAddress==1)return w=NXG(B),F=_.N5(w),f.authService.syncHeaders?(V=sbN(g,F),d.jumpTo(2)):_.h(d,DTX(g,F),3);d.nextAddress!=2&&(V=d.yieldResult);J=MA1(NXG(B));P={input:J,requestShell:M5(J),innerTubeRequest:S,config:g};X(Iio(f,P,V,z));_.TT(d)})})};
kN=function(f,S,B){var G;if(S&&!(S==null?0:(G=S.sequenceMetaData)==null?0:G.skipProcessing)&&f.responseProcessorMap){G=_.m(LSv);for(var g=G.next();!g.done;g=G.next())g=g.value,f.responseProcessorMap[g]&&f.responseProcessorMap[g].handleResponse(S,B)}};
Iio=function(f,S,B,G){G=G===void 0?function(){}:G;
var g,b,z,X,w,F,V,J,P,d,Q,x,E,U,A,t,M,a,l,mx,zj,VN,$Q,OV,rW,MA,UV,W7,c7,Q$,To,Ci,VM,Go,Io,uz,RT,P7,O8,ao;return _.R(function(H7){switch(H7.nextAddress){case 1:z=(g=S.config)==null?void 0:(b=g.storeStrategy)==null?void 0:b.storeKey;if(!(z&&f.innertubeResponseStore&&f.innertubeResponseStore.has(z))||((X=S.config)==null?0:(w=X.storeStrategy)==null?0:w.disableCache)){H7.jumpTo(2);break}return _.h(H7,f.innertubeResponseStore.get(z),3);case 3:if((F=H7.yieldResult)&&!F.isExpired())return H7.return(Promise.resolve(_.wL(F)));
case 2:if(!((V=S)==null?0:(J=V.innerTubeRequest)==null?0:J.context)){H7.jumpTo(4);break}P=S.innerTubeRequest.context;if(!(f.asyncContextProcessors&&f.asyncContextProcessors.length>0)){H7.jumpTo(5);break}d=[];Q=_.m(f.asyncContextProcessors);for(x=Q.next();!x.done;x=Q.next())E=x.value,U=E.processContext(S),U.wrappedPromise_&&d.push(U.wrappedPromise_);if(!(d.length>0)){H7.jumpTo(5);break}return _.h(H7,Promise.all(d),5);case 5:A=_.m(f.contextProcessors||[]),t=A.next();case 8:if(t.done){H7.jumpTo(4);break}M=
t.value;return _.h(H7,M.processContext(P),9);case 9:t=A.next();H7.jumpTo(8);break;case 4:if((a=f.localInnertubeRouter)==null||!a.shouldPreferLocalResponse(S.input,S.innerTubeRequest)){H7.jumpTo(12);break}return _.h(H7,f.localInnertubeRouter.localInnertubeResponse(S.input,S.innerTubeRequest),13);case 13:return l=H7.yieldResult,kN(f,l,S),H7.return(l);case 12:return(VN=(zj=S.config)==null?void 0:zj.requestKey)&&f.inflightRequests.has(VN)?mx=f.inflightRequests.get(VN):($Q=JSON.stringify(S.innerTubeRequest),
MA=(rW=(OV=S.requestShell)==null?void 0:OV.headers)!=null?rW:{},S.requestShell=Object.assign({},S.requestShell,{headers:Object.assign({},MA,B)}),UV=Object.assign({},S.requestShell),S.requestShell.method==="POST"&&(UV=Object.assign({},UV,{body:$Q})),((W7=S.config)==null?0:W7.requestTick)&&_.kT(S.config.requestTick),c7=function(){return f.networkManager.fetch(S.input,UV,S.config)},mx=f.requestSequencer?CR1(f.requestSequencer,S,c7):c7(),VN&&f.inflightRequests.set(VN,mx)),_.h(H7,mx,14);
case 14:(Q$=H7.yieldResult)&&_.K("web_streaming_player")&&Array.isArray(Q$)&&(Q$=Q$[0].playerResponse);if(Q$&&"error"in Q$&&((To=Q$)==null?0:(Ci=To.error)==null?0:Ci.details))for(VM=Q$.error.details,Go=_.m(VM),Io=Go.next();!Io.done;Io=Go.next())uz=Io.value,(RT=uz["@type"])&&kR6.indexOf(RT)>-1&&(delete uz["@type"],Q$=uz);VN&&f.inflightRequests.has(VN)&&f.inflightRequests.delete(VN);((P7=S.config)==null?0:P7.responseTick)&&_.kT(S.config.responseTick);if(Q$||(O8=f.localInnertubeRouter)==null||!O8.canProvideFallbackResponse(S.input,
S.innerTubeRequest)){H7.jumpTo(15);break}return _.h(H7,f.localInnertubeRouter.localFallbackInnertubeResponse(S.input,S.innerTubeRequest),16);case 16:Q$=H7.yieldResult;case 15:return kN(f,Q$,S),((ao=S.config)==null?0:ao.processorTick)&&_.kT(S.config.processorTick),G(),H7.return(Q$||void 0)}})};
_.t3=function(f,S){return upQ(S,f.endpointMap)};
sAv=function(f,S){f=yUj(S,f.endpointMap);if(f!==void 0)return Promise.resolve(f)};
DTX=function(f,S){var B,G,g,b;return _.R(function(z){if(z.nextAddress==1){g=(B=f)==null?void 0:(G=B.authStrategy)==null?void 0:G.sessionIndex;var X=_.wh(Vw1({sessionIndex:g}));return _.h(z,X,2)}b=z.yieldResult;return z.return(Promise.resolve(Object.assign({},WtW(S),b)))})};
sbN=function(f,S){var B;f=f==null?void 0:(B=f.authStrategy)==null?void 0:B.sessionIndex;B=Vw1({sessionIndex:f});return Object.assign({},WtW(S),B)};var pCo,A4m,Ntj,Mhg,Zwo,thj,y4X,WSg,Df,c4m,li7,aij,fl$;pCo=0;A4m=/tone[1-5]/;Ntj=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");Mhg="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
Zwo=Number.MAX_SAFE_INTEGER;thj=RegExp("\ufe0f","g");_.nV=function(f){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;f&&_.uB1(this,f)};
_.uB1=function(f,S){try{_.wO(S,{context:f,onSuccess:function(G,g){Array.isArray(g)?f.load(g):(G=new _.dO("Emoji manager JSON response was not an array!",{response:g}),_.xH(G))},
onError:function(G){G=new _.dO("Failed to retrieve emoji manager initial JSON data!",{url:S,statusCode:_.ba(G).toString()});_.Lg(G)}})}catch(G){var B=new _.dO("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:S});
_.Lg(B)}};
_.nV.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.nV.prototype.load=function(f,S){if(S)if(f.length)f=f.concat(S.emojis);else{this.emojis=S.emojis;this.emojiMap=S.emojiMap;this.emojiShortcutMap=S.emojiShortcutMap;this.emojiShortcutCharMap=aij(S);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=S.emojiRegex;return}this.emojis=[].concat(_.$d(new Set(this.emojis.concat(f))));this.hasInitializedShortcutCharMap=!1;f=Array(this.emojis.length);for(S=0;S<this.emojis.length;S++){var B=this.emojis[S];if(B.emojiId){this.emojiMap[B.emojiId]=B;this.emojiMap[B.emojiId].index=
S;for(var G=0;B.shortcuts&&G<B.shortcuts.length;G++)this.emojiShortcutMap[B.shortcuts[G].toLocaleLowerCase()]=B;f[S]=B.isCustomEmoji&&B.shortcuts?B.shortcuts[0]:B.emojiId}}f.sort(function(g,b){return b.length-g.length});
if(f.length)try{this.emojiRegex=new RegExp(f.join("|").replace("*","\\*"),"gi")}catch(g){this.emojiRegex=/$./}else this.emojiRegex=/$./};
y4X=function(f,S){S=_.m(S);for(var B=S.next();!B.done;B=S.next()){var G=B.value;if(G.emojiId&&f.emojiMap[G.emojiId]){B=Object.assign({},f.emojiMap[G.emojiId],G);f.emojiMap[G.emojiId]=B;var g=void 0;B.index&&((g=f.emojis[B.index])==null?void 0:g.emojiId)===G.emojiId&&(f.emojis[B.index]=B);G=void 0;if((G=B.shortcuts)==null?0:G.length)for(f.hasInitializedShortcutCharMap=!1,G=_.m(B.shortcuts),g=G.next();!g.done;g=G.next())f.emojiShortcutMap[g.value.toLocaleLowerCase()]=B}}};
WSg=function(f){var S,B;_.R(function(G){if(G.nextAddress==1)return _.h(G,_.YZ.getInstance(),2);if(G.nextAddress!=3)return(S=G.yieldResult)?_.h(G,S.get("ytlc-emoji-pref"),3):G.return();(B=G.yieldResult)&&y4X(f,Object.keys(B).map(function(g){return{emojiId:g,stickyPrefId:B[g]}}).filter(function(g){return!!g.emojiId&&!!g.stickyPrefId}));
_.TT(G)})};
_.s0=function(f,S,B){return(f=f.emojiMap[S])&&(!f.isLocked||B!==void 0&&B)?f:void 0};
Df=function(f,S,B){B=_.s0(f,S,B===void 0?!1:B);var G=S.match("\u200d");B&&f.skinTone!==0&&(f=(G==null?void 0:G.length)===1?_.s0(f,S.replace("\u200d",Ntj[f.skinTone]+"\u200d")):_.s0(f,S+Ntj[f.skinTone]))&&(B=f);return B};
c4m=function(f,S){var B=f.emojiMap[S];return(B==null?0:B.stickyPrefId)?f.emojiMap[B.stickyPrefId]:Df(f,S)};
_.He=function(f,S){f=f.emojiShortcutMap[S.toLocaleLowerCase()];return!f||f.isLocked?null:f};
li7=function(f,S,B){return aij(f,B===void 0?!1:B)[S]||{}};
aij=function(f,S){S=S===void 0?!1:S;if(!f.hasInitializedShortcutCharMap){f.hasInitializedShortcutCharMap=!0;for(var B=0;B<f.emojis.length;B++){var G=f.emojis[B];if(!(G.isLocked||S&&G.isCustomEmoji&&G.emojiId&&!f.pickerCustomEmojiIds.includes(G.emojiId)))for(var g=0;G.shortcuts&&g<G.shortcuts.length;g++){var b=G.shortcuts[g];b.startsWith(":_")&&G.isCustomEmoji&&(f.emojiShortcutCharMap[":_"]==null&&(f.emojiShortcutCharMap[":_"]=Object.create(null)),f.emojiShortcutCharMap[":_"][b]=G);if(!(b.length<3||
!G.isCustomEmoji&&A4m.test(b))){var z=b.substr(0,3).toLocaleLowerCase();f.emojiShortcutCharMap[z]==null&&(f.emojiShortcutCharMap[z]=Object.create(null));f.emojiShortcutCharMap[z][b]=G}}}}return f.emojiShortcutCharMap};
_.nV.prototype.createEmoji=function(f,S){S=S===void 0?!0:S;var B=document.createElement("img");f.isCustomEmoji||B.classList.add("small-emoji");B.classList.add("emoji");B.classList.add("yt-formatted-string");B.src=f.image?_.bF(f.image.thumbnails,this.emojiSize)||"":"";var G=void 0;f.image&&f.image.accessibility&&f.image.accessibility.accessibilityData&&(G=f.image.accessibility.accessibilityData.label);B.alt=G?G:(f.isCustomEmoji&&f.shortcuts?f.shortcuts[0]:f.emojiId)||"";f.isCustomEmoji&&(B.dataset.emojiId=
f.emojiId);_.Td&&(B.setAttribute("contenteditable","false"),B.setAttribute("unselectable","on"));S&&(f.shortcuts&&f.shortcuts.length&&B.setAttribute("shared-tooltip-text",f.shortcuts[0]),B.id="emoji-"+pCo++);return B};
_.nV.prototype.createDocumentFragment=function(f,S,B,G){S=S===void 0?!1:S;B=B===void 0?!0:B;G=G===void 0?!1:G;f=f.replace(thj,"");for(var g=document.createDocumentFragment(),b=0,z,X=0;(z=this.emojiRegex.exec(f))!=null;){var w=_.s0(this,z[0])||_.He(this,z[0]);!w||w.isCustomEmoji&&!S||(w=this.createEmoji(w,B),b!==z.index&&g.appendChild(document.createTextNode(f.substring(b,z.index))),g.appendChild(w),b=z.index+z[0].length,X++)}if(!G||X)return g.appendChild(document.createTextNode(f.substr(b))),g};
fl$=function(f,S,B){var G,g,b,z,X,w,F,V,J;return _.R(function(P){if(P.nextAddress==1){if(!S.emojiId||!f.emojiMap[S.emojiId])return P.return();G=Object.assign({},f.emojiMap[S.emojiId],{stickyPrefId:B});f.emojiMap[S.emojiId]=G;S.index&&((g=f.emojis[S.index])==null?void 0:g.emojiId)===S.emojiId&&(f.emojis[S.index]=G);if((b=S.shortcuts)==null?0:b.length)for(f.hasInitializedShortcutCharMap=!1,z=_.m(S.shortcuts),X=z.next();!X.done;X=z.next())w=X.value,f.emojiShortcutMap[w.toLocaleLowerCase()]=G;return _.h(P,
_.YZ.getInstance(),2)}if(P.nextAddress!=4)return(F=P.yieldResult)?_.h(P,F.get("ytlc-emoji-pref"),4):P.jumpTo(0);J=(V=P.yieldResult)!=null?V:{};J[S.emojiId]=B;return _.h(P,F.set("ytlc-emoji-pref",J,Zwo),0)})};
_.I5=new _.nV;var Bdi;_.U0={};
Bdi={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.K("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:_.K("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 ZK(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 f=_.m9(this.hostElement||this).querySelector("#inline-action-button-container");f&&f.setAttribute("aria-hidden","true");this.menuButton=_.m9(this.hostElement).querySelector("#menu-button")},
attached:function(){var f=this.menuButton;f&&(f.addEventListener("focusin",_.Fc(this,this.onMenuButtonFocus_)),f.addEventListener("focusout",_.Fc(this,this.onMenuButtonBlur_)))},
detached:function(){var f=this.menuButton;f&&(f.removeEventListener("focusin",_.Fc(this,this.onMenuButtonFocus_)),f.removeEventListener("focusout",_.Fc(this,this.onMenuButtonBlur_)))},
identity:_.IT,truthy:function(f){return!!f},
computeTimestampString:function(f){return f?f.timestampText?this.getSimpleString(f.timestampText):this.TIME_FORMATTER.format(new Date(f.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(f){return f},
computeMenuVisible_:function(f,S){return f||S},
computeHasInlineActionButtons:function(f){if(!f)return!1;var S,B;return!((S=f.inlineActionButtons)==null||!S.length)||!((B=f.additionalInlineActionButtons)==null||!B.length)},
createDocumentFragmentFromString:function(f){var S=_.I5.createDocumentFragment.bind(_.I5),B;if((B=this.participantsManager)==null||!B.viewerRegex)return S(f);B=document.createDocumentFragment();for(var G=0,g;(g=this.participantsManager.viewerRegex.exec(f))!=null;){if(g.index>0){var b=":"+g[0]+":";if((_.s0(_.I5,b)||_.He(_.I5,b))&&f.indexOf(b)===g.index-1)continue}B.appendChild(S(f.substring(G,g.index)));G=document.createElement("span");G.appendChild(S(g[0]));G.classList.add("mention");B.appendChild(G);
G=g.index+g[0].length}B.appendChild(S(f.substring(G)));return B},
createDocumentFragment:function(f){var S=document.createDocumentFragment();if(f.simpleText)return S.appendChild(this.createDocumentFragmentFromString(f.simpleText)),S;if(!f.runs)return S;for(var B=0;B<f.runs.length;B++){var G=f.runs[B];if(G.emoji)S.appendChild(_.I5.createEmoji(G.emoji));else if(G.text)if(G.navigationEndpoint){var g=document.createElement("a");g.classList.add("yt-simple-endpoint");nex(g,G.navigationEndpoint);_.m9(g).appendChild(this.createDocumentFragmentFromString(G.text));S.appendChild(g)}else S.appendChild(this.createDocumentFragmentFromString(G.text))}return S},
hasModerationOverlayVisible:function(){var f;return((f=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:f.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(f){f.composedPath().some(function(S){return(S=S instanceof Element?S:null)?S.tagName&&(S.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||S.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.K("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(f)},
colorFromDecimal:function(f){return DD9(f)},
markAsDeleted:function(f,S){this.set("data.deletedStateMessage",f);this.set("data.showOriginalContentMessage",S)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(f){if(this.data.contextMenuEndpoint){var S=_.oy().resolve(_.st),B=this.data.contextMenuEndpoint,G;(G=_.Zd.instance)&&_.t3(G,B)?(S=oCX(S,B),G=_.sX(G,{},S)):G=_.SNm(S,B);G.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);f&&f.stopPropagation()}},
handleGetContextMenuResponse_:function(f){var S=_.Zd.instance;S&&_.t3(S,{liveChatEndpoint:{}})||(f=f.response);f.liveChatItemContextMenuSupportedRenderers&&f.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(f.liveChatItemContextMenuSupportedRenderers.menuRenderer);f.actions&&_.bW(this.hostElement,"yt-live-chat-actions",[f.actions])},
handleGetContextMenuError:function(f){if(f instanceof Error||f instanceof Object||f instanceof String)var S=f;_.xH(new _.dO("Error encountered calling GetLiveChatItemContextMenu",S))},
showContextMenu_:function(f){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:f}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.ew(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.ew(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.U0.YtLiveChatItemBehavior=[Bdi,_.Nm.YtComponentBehavior,_.JW.YtOpenPopupBehavior];_.CV=function(){};var Gyi;var gC1;var ebN;var b3j;var pV=function(){var f=_.I.apply(this,arguments)||this;f.active=!1;f.identity=_.IT;return f};
_.q(pV,_.I);pV.prototype.dataChanged=function(){this.active=!1};
pV.prototype.onClick=function(){_.ew(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
pV.prototype.dataChanged=pV.prototype.dataChanged;_.N([_.n(),_.Z("design:type",Object)],pV.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],pV.prototype,"active",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pV.prototype,"dataChanged",null);_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],pV);
_.p(pV,"yt-live-chat-text-input-field-suggestion",function(){if(b3j===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;ebN===void 0&&(ebN=document.createElement("template"));var G=ebN;B.call(S,G.content.cloneNode(!0),f.content.firstChild);b3j=f}f=b3j;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});_.AW=function(f,S,B){return CustomEvent.call(this,f,{detail:{value:S,path:B}})||this};
_.q(_.AW,CustomEvent);_.Nf=function(){var f=_.I.apply(this,arguments)||this;f.viewerName=null;f.actionMap={"yt-live-chat-actions":"onChatMessage_"};f.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];f.PARTICIPANT_TIME_USEC_=3E8;return f};
_.q(_.Nf,_.I);_.e=_.Nf.prototype;_.e.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.e.addParticipant=function(f){var S=_.dAG(this.participants,f,function(G,g){G=G[Object.keys(G)[0]];g=g[Object.keys(g)[0]];G=String(_.ac(G.authorName)).toLowerCase();g=String(_.ac(g.authorName)).toLowerCase();return G<g?-1:G==g?0:1}.bind(this));
if(S>=0){var B=this.participants[S];B[Object.keys(B)[0]].timestampUsec&&this.splice("participants",S,1,f)}else this.splice("participants",-S-1,0,f);f=f[Object.keys(f)[0]];S=_.ac(f.authorName).toLocaleLowerCase();B=S.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(B)||(this.allParticipantsCharMap_[B]={});this.allParticipantsCharMap_[B][S]=f};
_.e.getAuthorsFromPrefix=function(f){return this.allParticipantsCharMap_.hasOwnProperty(f)?this.allParticipantsCharMap_[f]:null};
_.e.computeViewerRegex_=function(f){if(!f)return null;f=f.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var S=f.indexOf("@")===0&&_.K("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(S+f.replace(/ /g,"\\s*")+"|^"+f.replace(/ /g,"\\s*")+"$|^"+f.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+f.replace(/ /g,"\\s*")+"$|(?<=\\s)"+f.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.e.checkForStaleParticipants_=function(){var f=this;this.trimOldParticipants_();this.asyncHandle_&&XmM(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.AO(function(){f.checkForStaleParticipants_()},3E4))};
_.e.onChatMessage_=function(f){var S=this,B=Date.now()*1E3;f.forEach(function(G){if(G=_.H(G,TXj)){G=G.item;var g=Object.keys(G)[0];S.SUPPORTED_ITEM_TYPES_.indexOf(g)!=-1&&G[g].timestampUsec>=B-S.PARTICIPANT_TIME_USEC_&&S.addParticipant(G)}},this);
this.checkForStaleParticipants_()};
_.e.trimOldParticipants_=function(){for(var f=Date.now()*1E3,S=this.participants.length-1;S>=0;S--){var B=this.participants[S];B=B[Object.keys(B)[0]];B.timestampUsec&&B.timestampUsec<f-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",S,1)}};
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],_.Nf.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],_.Nf.prototype,"viewerName",void 0);_.N([_.n({computed:"computeViewerRegex_(viewerName)"}),_.Z("design:type",Object)],_.Nf.prototype,"viewerRegex",void 0);_.N([_.n({value:function(){return[]},
notify:!0}),_.Z("design:type",Array)],_.Nf.prototype,"participants",void 0);_.N([_.nP({is:"yt-live-chat-participants-manager",noInjection:!0})],_.Nf);var mtm=/.*([:@#].*?)$/,Mf=/\u00a0/g,zbN=String.fromCharCode(160),Rbm={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"},Zf=function(){var f=_.I.apply(this,arguments)||this;f.disabled=!1;f.liveChatRichMessageInput=null;f.messageInput=null;f.isValidWithNoInputText=!1;f.suggestions=[];f.emojiManager=_.I5;f.inputMethodEditorActive=
!1;f.suggestionIndex=-1;f.JSC$12054_lastSuggestionRange=null;return f};
_.q(Zf,_.I);_.e=Zf.prototype;_.e.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.e.attached=function(){_.Fx&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.e.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.e.dataChanged=function(){if(!this.ignoreColorMapping){var f=!1,S={},B;for(B in Rbm)this.data&&this.data.hasOwnProperty(B)&&(S[Rbm[B]]=this.colorFromDecimal(this.data[B]),f=!0);f&&_.hO(this.hostElement,S)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.e.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.e.colorFromDecimal=function(f){f=Math.floor(Number(f));return"rgba("+[f>>16&255,f>>8&255,f&255,(f>>24&255)/255].join()+")"};
_.e.preventDrag=function(f){f.dataTransfer&&(f.dataTransfer.dropEffect="none");f.preventDefault()};
_.e.preventResize=function(f){f.returnValue=!1};
_.e.onInputChange=function(){var f=this.characterCount,S=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&S&&S.remove();if(!S&&this.characterCount>this.maxCharacterLimit){var B=window.getSelection();if(B){var G=B.getRangeAt(0);B.removeAllRanges();B.addRange(G)}}if(B=this.getCurrentRange())G=this.calculateTextBeforeRange(B),this.completeEmojisInRange(B,G,!0)||this.updateSuggestions(B,G);G=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(G);
_.ew(this.hostElement,"yt-live-chat-message-input-change",G);S&&this.characterCount===0&&S.remove();B&&B.commonAncestorContainer.parentElement.id==="input"&&B.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>f):B&&!B.collapsed&&B.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(f=this.input.childNodes.length-1;f>=0;f--)this.input.childNodes[f].nodeName==="BR"&&this.input.childNodes[f].remove()};
_.e.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.e.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var f=this.getCurrentRange();f&&f.commonAncestorContainer.parentElement.id==="input"&&f.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.e.mergeOverflowText=function(f){if(f){var S=document.createRange();S.selectNodeContents(f);S=S.extractContents();this.input.insertBefore(S,f)}};
_.e.checkRangeAtEndOfInput=function(){var f=this.getCurrentRange();if(f){var S=_.m9(this.hostElement).querySelector("#overflow-text"),B=document.createRange();S&&S.previousSibling?S.previousSibling instanceof HTMLImageElement?B.selectNode(S.previousSibling):B.selectNodeContents(S.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?B.selectNode(this.input.lastChild):B.selectNodeContents(this.input.lastChild));B.collapse(!1);return B.isPointInRange(f.startContainer,
f.startOffset)}return!1};
_.e.handleOverflowText=function(f){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var S=_.m9(this.hostElement).querySelector("#overflow-text"),B=this.getCurrentRange();this.input.normalize();f=this.checkRangeAtEndOfInput()&&f;this.mergeOverflowText(S);for(var G,g=0,b=0,z,X=this.input.childNodes,w=0;w<X.length;w++){var F=X[w];F instanceof Text?(b+=F.textContent.length,b>this.maxCharacterLimit&&(G=F,g=this.maxCharacterLimit+F.textContent.length-b)):F instanceof HTMLImageElement&&
(G=void 0,b=F.dataset.emojiId&&((G=this.data)==null?0:G.emojiCharacterCount)?b+this.data.emojiCharacterCount:b+F.alt.length,G=this.input,g=w);if(b>this.maxCharacterLimit&&G){z=document.createRange();z.collapse(!1);S?(b=this.input.lastChild.previousSibling,b instanceof Text?z.setEnd(this.input.lastChild.previousSibling,b.textContent.length):b instanceof HTMLImageElement&&z.setEnd(this.input,this.input.childNodes.length-1)):z.selectNodeContents(this.input);z.setStart(G,g);break}}z&&(G=!1,B&&(f=z.isPointInRange(B.startContainer,
B.startOffset-1)),S||(S=document.createElement("span"),S.id="overflow-text",S.textContent="",S.setAttribute("contenteditable","true"),_.m9(_.m9(this.hostElement).querySelector("#input")).appendChild(S),G=!0),S&&(B=z.extractContents(),S.insertBefore(B,S.firstChild),f&&S.firstChild&&(B=document.createRange(),G?B.setStartAfter(S.lastChild):B.setStartAfter(S.firstChild),B.collapse(!0),S=window.getSelection(),S.removeAllRanges(),S.addRange(B))))}};
_.e.checkForDuplicateSpans=function(){for(var f=0;f<this.input.childNodes.length;f++){var S=this.input.childNodes[f];if(S.nodeName==="SPAN"){var B=document.createRange();B.selectNodeContents(S);B=B.extractContents();this.input.insertBefore(B,S);S.remove()}}this.handleOverflowText(!0)};
_.e.getCurrentRange=function(){var f=window.getSelection();return f&&f.rangeCount?f.getRangeAt(0).cloneRange():null};
_.e.getInputRange=function(){var f=this.getCurrentRange();if(f){for(var S=f.commonAncestorContainer,B=!1,G=_.m9(this.hostElement).querySelector("#input");S;){if(S===G){B=!0;break}S=S.parentNode}B||(f=null)}f||(f=this.getRangeAtEnd());return f};
_.e.getRangeAtEnd=function(){var f=document.createRange(),S=_.m9(this.hostElement).querySelector("#input").lastChild;!S||S.nodeName!=="#text"&&S.nodeName!=="SPAN"?(f.selectNodeContents(_.m9(this.hostElement).querySelector("#input")),f.collapse(!1)):S.nodeName==="#text"?f.setStart(S,S.textContent.length):f.setStart(S,S.childNodes.length);return f};
_.e.getChatParticipantSuggestions=function(f,S,B,G){var g=_.K("live_chat_enable_handles_web_text_input_update");if(S)for(var b in S)if(b.indexOf(f)===0||g&&b.indexOf(B+f)===0){var z=S[b],X=_.ac(z.authorName);G.push({suggestion:{author:!0,authorType:B,image:z.authorPhoto,alt:X,text:X}});if(G.length>=64)break}};
_.e.getSuggestions=function(f){var S=[],B=f.substring(0,3),G=li7(_.I5,B,!0);if(G)for(var g in G)if(g.toLocaleLowerCase().indexOf(f)===0){var b=G[g];if(b&&b.emojiId){if(b=c4m(_.I5,b.emojiId)){var z=void 0,X=void 0,w=void 0,F=void 0,V=((z=b.image)==null?0:(X=z.accessibility)==null?0:(w=X.accessibilityData)==null?0:w.label)||b.isCustomEmoji?(F=b.shortcuts)==null?void 0:F[0]:b.emojiId;S.push({suggestion:{emoji:!0,image:b.image,alt:V,text:g,textToInsertWhenSelected:b.isCustomEmoji?g:V}})}if(S.length>=
64)break}}if(!this.participantsManager)return null;if(B.indexOf("@")===0||B.indexOf("#")===0)G=B.charAt(0),f=f.substring(1),g=_.K("live_chat_enable_handles_web_text_input_update"),B.indexOf("@")===0&&g&&(g=this.participantsManager.getAuthorsFromPrefix(B.substring(0,2)),this.getChatParticipantSuggestions(f,g,G,S)),B=B.substring(1),B=this.participantsManager.getAuthorsFromPrefix(B),this.getChatParticipantSuggestions(f,B,G,S);return S?S.sort(function(J,P){return P.suggestion.text<J.suggestion.text?-1:
P.suggestion.text===J.suggestion.text?0:1}):null};
_.e.insertSuggestion=function(f){var S=_.K("live_chat_enable_handles_web_text_input_update"),B=f.authorType;S=f.text.indexOf(B)===0&&S?f.text+zbN:B+f.text+zbN;f.emoji?this.insertTextAtRange(this.JSC$12054_lastSuggestionRange,f.textToInsertWhenSelected||""):f.author&&this.insertTextAtRange(this.JSC$12054_lastSuggestionRange,S)};
_.e.updateSuggestionsAtCaret=function(){var f=this.getCurrentRange();f&&this.updateSuggestions(f,this.calculateTextBeforeRange(f))};
_.e.offsetStartOfRangeBy=function(f,S){for(;S>0;)if(f.startOffset-S>=0){f.setStart(f.startContainer,f.startOffset-S);break}else{S=f.startContainer instanceof HTMLImageElement?S-f.startContainer.alt.length:S-f.startOffset;var B=f.startContainer.previousSibling;if(!B){f.setStart(f.startContainer,0);break}if(_.K("live_chat_require_space_for_autocomplete_emoji")){var G=void 0,g=void 0;f.setStart(B,((G=B)==null?void 0:(g=G.textContent)==null?void 0:g.length)||0)}else f.setStart(B,B.childNodes.length||
0)}};
_.e.updateSuggestions=function(f,S){var B=this;this.JSC$12054_lastSuggestionRange&&(this.JSC$12054_lastSuggestionRange.detach(),this.JSC$12054_lastSuggestionRange=null);if((S=mtm.exec(S))&&S.length&&(S=S[S.length-1].toLocaleLowerCase(),S.length>2&&(this.offsetStartOfRangeBy(f,S.length),this.JSC$12054_lastSuggestionRange=f,(f=this.getSuggestions(S))&&f.length))){this.suggestions=f;_.ui(this,function(){_.m9(B.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(f.length-1);return}this.dropdown.opened=!1};
_.e.completeEmojisInRange=function(f,S,B){var G=S.replace(/[\s\xa0]+$/,"");S=S.length-G.length;G=G.split(" ");G=G[G.length-1].trim().toLocaleLowerCase();var g=G.lastIndexOf(":");if(B&&!S&&g!==G.length-1)return!1;g!==-1&&(B=G.lastIndexOf(":",g-1),B!==-1&&(G=G.substring(B)));if((B=_.He(_.I5,G))&&B.emojiId){B=c4m(_.I5,B.emojiId)||null;this.offsetStartOfRangeBy(f,G.length+S);var b,z,X,w;G=(((b=B)==null?0:b.isCustomEmoji)?(z=B)==null?void 0:(X=z.shortcuts)==null?void 0:X[0]:(w=B)==null?void 0:w.emojiId)||
"";S&&(G+=zbN);this.insertTextAtRange(f,G);this.dropdown.opened=!1;return!0}return!1};
_.e.onSuggestion=function(f){this.insertSuggestion(f.detail);this.dropdown.opened=!1};
_.e.onKeyPress=function(f){f.keyCode===13&&(f.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.ew(this.hostElement,"yt-live-chat-send-message"))};
_.e.completeEmojis=function(){var f=document.createRange(),S=_.m9(this.hostElement).querySelector("#input").lastChild;S?f.setStart(S,S.childNodes.length):(f.selectNodeContents(_.m9(this.hostElement).querySelector("#input")),f.collapse(!1));this.completeEmojisInRange(f,this.calculateTextBeforeRange(f),_.K("live_chat_require_space_for_autocomplete_emoji"))};
_.e.maybePreventTextFormatting=function(f){!_.v_||!f.ctrlKey&&!f.metaKey||f.keyCode!==66&&f.keyCode!==73||(f.stopImmediatePropagation(),f.preventDefault())};
_.e.onKeyDown=function(f){this.maybePreventTextFormatting(f);if(this.dropdown.opened)switch(f.keyCode){case 27:this.dropdown.opened=!1;f.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;f.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);f.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),f.preventDefault()}};
_.e.onKeyUp=function(f){switch(f.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.Td)this.onInputChange()};
_.e.changeSuggestionIndex=function(f){if(this.dropdown.opened){var S=_.m9(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<S.children.length&&(S.children[this.suggestionIndex].active=!1);var B=this.suggestions.length;this.suggestionIndex=(f+B)%B;f=S.children[this.suggestionIndex];f.active=!0;S.scrollTop=f.offsetTop}};
_.e.onInputPaste=function(f){f.preventDefault();(f=f.clipboardData)&&f.types&&(f=f.getData("text/plain")||"",f=f.replace(/\n/g,""),this.insertText(f));(f=this.getCurrentRange())&&f.commonAncestorContainer.parentElement.id==="input"&&f.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.e.onFocus=function(){this._setFocused(!0)};
_.e.onBlur=function(){this._setFocused(!1)};
_.e.insertText=function(f){this.insertTextAtRange(this.getInputRange(),f)};
_.e.insertTextAtRange=function(f,S){if(f&&(f.collapsed||f.deleteContents(),S=_.I5.createDocumentFragment(S,!0,!1))){for(var B=_.m((S==null?void 0:S.childNodes)||[]),G=B.next();!G.done;G=B.next()){G=G.value;var g=void 0,b=void 0,z=void 0,X=void 0,w=void 0;(z=(g=window)==null?void 0:(b=g.ShadyCSS)==null?void 0:b.ScopingShim)==null||(w=(X=z).scopeNode)==null||w.call(X,G,this.hostElement.localName)}B=S.lastChild;f.insertNode(S);this.focused||this.input.focus();if(this.focused){f=f.cloneRange();f.selectNodeContents(B);
f.collapse(!1);if(S=window.getSelection())S.removeAllRanges(),S.addRange(f);f.commonAncestorContainer.parentElement.id==="input"&&f.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}f=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(f);_.ew(this.hostElement,"yt-live-chat-message-input-change",f)}};
_.e.setLiveChatRichMessageInput=function(f){_.m9(_.m9(this.hostElement).querySelector("#input")).textContent="";if(f&&f.textSegments){for(var S=0;S<f.textSegments.length;S++){var B=f.textSegments[S];B.text?_.m9(_.m9(this.hostElement).querySelector("#input")).appendChild(_.I5.createDocumentFragment(B.text,!0,!1)):B.emojiId&&(B=_.s0(_.I5,B.emojiId))&&_.m9(_.m9(this.hostElement).querySelector("#input")).appendChild(_.I5.createEmoji(B,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.e.setText=function(f){this.setLiveChatRichMessageInput(f?{textSegments:[{text:f}]}:null)};
_.e.calculateTextBeforeRange=function(f){var S="",B=f.startContainer;if(B&&B instanceof Text){var G;S=((G=B.textContent)==null?void 0:G.substring(0,f.startOffset))||"";B=B.previousSibling}for(;B&&B instanceof Text;)S=B.textContent+S,B=B.previousSibling;return S.replace(Mf," ")};
_.e.calculateLiveChatRichMessageInput=function(){for(var f=[],S="",B=_.m9(_.m9(this.hostElement).querySelector("#input")).childNodes,G=0;G<B.length;G++){var g=B[G];g instanceof Text?S+=g.textContent:g instanceof HTMLImageElement&&(g.dataset.emojiId?(S&&(f.push({text:S.replace(Mf," ")}),S=""),f.push({emojiId:g.dataset.emojiId})):S+=g.alt)}S&&f.push({text:S.replace(Mf," ")});if(B=_.m9(this.hostElement).querySelector("#overflow-text")){S="";B=B.childNodes;for(G=0;G<B.length;G++)g=B[G],g instanceof Text?
S+=g.textContent:g instanceof HTMLImageElement&&(g.dataset.emojiId?(S&&(f.push({text:S.replace(Mf," ")}),S=""),f.push({emojiId:g.dataset.emojiId})):S+=g.alt);S&&f.push({text:S.replace(Mf," ")})}return{textSegments:f}};
_.e.computeCharacterCount=function(f){if(!f||!f.textSegments)return 0;for(var S=0,B=0;B<f.textSegments.length;B++){var G=f.textSegments[B];if(G.text)S+=G.text.length;else if(G.emojiId){var g=void 0;if((g=this.data)==null?0:g.emojiCharacterCount)S+=this.data.emojiCharacterCount;else{var b=g=void 0,z=void 0;S+=((b=_.s0(_.I5,(g=G)==null?void 0:g.emojiId))==null?void 0:(z=b.shortcuts)==null?void 0:z[0].length)||0}}}return S};
_.e.characterCountChanged=function(){_.ew(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.e.focusedChanged=function(){this.hostElement.dispatchEvent(new _.AW("focused-changed",this.focused))};
_.e.focus=function(){this.setFocus(!1)};
_.e.focusAtEnd=function(){this.setFocus(!0)};
_.e.setFocus=function(f){f=f?this.getRangeAtEnd():this.getInputRange();_.m9(this.hostElement).querySelector("#input").focus();var S=window.getSelection();S&&(S.removeAllRanges(),S.addRange(f))};
_.e.insertEmoji=function(f){var S,B=((f==null?0:f.isCustomEmoji)?(S=f.shortcuts)==null?void 0:S[0]:f==null?void 0:f.emojiId)||"";this.insertText(B)};
_.e.computeText=function(f){if(!f||!f.textSegments)return"";for(var S="",B=0;B<f.textSegments.length;B++){var G=f.textSegments[B];if(G.text)S+=G.text;else if(G.emojiId){var g=void 0,b=void 0,z=void 0;S+=((b=_.s0(_.I5,(g=G)==null?void 0:g.emojiId))==null?void 0:(z=b.shortcuts)==null?void 0:z[0])||""}}return S};
_.e.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.y3.Object.defineProperties(Zf.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.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}}});
Zf.prototype.focusedChanged=Zf.prototype.focusedChanged;Zf.prototype.characterCountChanged=Zf.prototype.characterCountChanged;Zf.prototype.onSuggestion=Zf.prototype.onSuggestion;Zf.prototype.onMessageSet=Zf.prototype.onMessageSet;Zf.prototype.dataChanged=Zf.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Zf.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Zf.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],Zf.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Zf.prototype,"disabled",void 0);_.N([_.k("disabled"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],Zf.prototype,"inputTabIndex",null);_.N([_.k("data.maxCharacterLimit"),_.n({readOnly:!0,notify:!0}),_.Z("design:type",Number),_.Z("design:paramtypes",[])],Zf.prototype,"maxCharacterLimit",null);
_.N([_.k("liveChatRichMessageInput"),_.n({readOnly:!0,notify:!0}),_.Z("design:type",Number),_.Z("design:paramtypes",[])],Zf.prototype,"characterCount",null);_.N([_.k("maxCharacterLimit, characterCount"),_.n({readOnly:!0,notify:!0}),_.Z("design:type",Number),_.Z("design:paramtypes",[])],Zf.prototype,"remainingCharacterCount",null);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Zf.prototype,"isChatMessageInput",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Zf.prototype,"inputExpanded",void 0);_.N([_.n({readOnly:!0,notify:!0}),_.Z("design:type",Object)],Zf.prototype,"liveChatRichMessageInput",void 0);_.N([_.n(),_.Z("design:type",Object)],Zf.prototype,"messageInput",void 0);_.N([_.n(),_.Z("design:type",Boolean)],Zf.prototype,"ignoreColorMapping",void 0);_.N([_.k("characterCount"),_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Zf.prototype,"hasText",null);
_.N([_.n(),_.Z("design:type",Object)],Zf.prototype,"isValidWithNoInputText",void 0);_.N([_.k("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.n(),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Zf.prototype,"isInputValid",null);_.N([_.n({readOnly:!0,value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Zf.prototype,"focused",void 0);_.N([_.n(),_.Z("design:type",Array)],Zf.prototype,"suggestions",void 0);
_.N([_.n(),_.Z("design:type",_.nV)],Zf.prototype,"emojiManager",void 0);_.N([_.n(),_.Z("design:type",_.Nf)],Zf.prototype,"participantsManager",void 0);_.N([_.n(),_.Z("design:type",Boolean)],Zf.prototype,"noUnderline",void 0);_.N([_.n(),_.Z("design:type",Object)],Zf.prototype,"inputMethodEditorActive",void 0);_.N([_.vF("#dropdown"),_.Z("design:type",Object)],Zf.prototype,"dropdown",void 0);_.N([_.vF("#input"),_.Z("design:type",HTMLElement)],Zf.prototype,"input",void 0);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Zf.prototype,"dataChanged",null);_.N([_.JO("messageInput"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Zf.prototype,"onMessageSet",null);_.N([_.Vg("yt-live-chat-select-suggestion"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Zf.prototype,"onSuggestion",null);
_.N([_.JO("characterCount"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Zf.prototype,"characterCountChanged",null);_.N([_.JO("focused"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Zf.prototype,"focusedChanged",null);_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],Zf);
_.X5L=_.p(Zf,"yt-live-chat-text-input-field-renderer",function(){if(gC1===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;Gyi===void 0&&(Gyi=document.createElement("template"));var G=Gyi;B.call(S,G.content.cloneNode(!0),f.content.firstChild);gC1=f}f=gC1;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var tW=function(){var f=_.I.apply(this,arguments)||this;f.buttonOverrides={style:"overlay",type:"filled"};f.allowAnimations=!1;f.modern=_.K("web_button_rework_with_live");f.noPadding=!1;return f};
_.q(tW,_.I);_.e=tW.prototype;_.e.shouldSupportInlineActionButtons=function(){return!0};
_.e.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"}}}}};
_.e.ready=function(){var f=document.querySelector("yt-live-chat-app");f&&f.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.e.attached=function(){this.allowAnimations=!1};
_.e.dataChanged=function(){if(this.data){var f={"--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)};_.hO(this.hostElement,f);this.allowAnimations=!0}};
_.e.messageChanged=function(){var f,S=(f=this.data)==null?void 0:f.message;f=_.m9(_.m9(this.hostElement).querySelector("#message"));f.textContent="";S&&f.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(S))};
_.e.computeShowOnlyHeader=function(f,S){return!f||f.pdgLikeButton||f.replyButton||f.buyFlowButton?!1:this.isEmpty(f,S)&&!f.footer};
_.e.computeShowFooterDivider=function(f,S,B){return f?!!f.footer&&!this.isEmpty(f,S)&&!B:!1};
_.e.computeIsUserEditable=function(f){return!!f.inputField};
_.e.computeHasHeartButton=function(f){return(f==null?void 0:f.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(f==null?void 0:f.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(f==null?void 0:f.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.e.computeNoveltyImage=function(f){if(f.headerOverlayImage&&f.headerOverlayImage.thumbnails.length){var S=f.headerOverlayImage.thumbnails[0],B,G;if((B=f.pdgPurchasedNoveltyLoggingDirectives)==null?0:(G=B.loggingDirectives)==null?0:G.trackingParams){var g,b;ils((g=f.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(b=g.loggingDirectives)==null?void 0:b.trackingParams)}return S.width||0}return 0};
_.e.computeAuthorPhotoSize=function(f){return(f==null?0:f.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.e.inputFocus=function(){var f=_.m9(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");f&&f.focus()};
_.e.inputInsertEmoji=function(f){var S=_.m9(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");S&&S.insertEmoji(f)};
_.e.inputMessage=function(){var f=_.m9(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),S;return f&&((S=this.data)==null?0:S.inputField)?(f.completeEmojis(),_.A3(f.liveChatRichMessageInput)):null};
_.e.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.e.isEmpty=function(f,S){return f?f.empty||!(f.message||f.inputField||S):!0};
_.e.onLowerBuyButtonClick=function(){var f,S=_.H((f=this.data)==null?void 0:f.buyButton,_.IR);S&&S.trackingParams&&!UDQ(S.command)&&(f=_.Ye(S.trackingParams))&&(S=_.xc())&&_.uW(S,f)};
_.e.shouldSupportWholeItemClick=function(){return!0};
_.y3.Object.defineProperties(tW.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?0:f.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
tW.prototype.isDeletedChanged=tW.prototype.isDeletedChanged;tW.prototype.messageChanged=tW.prototype.messageChanged;tW.prototype.dataChanged=tW.prototype.dataChanged;_.N([_.r(pHN.YtPdgLiveChatItemBehavior),_.Z("design:type",Object)],tW.prototype,"ytPdgLiveChatItemBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],tW.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.p5),_.Z("design:type",Object)],tW.prototype,"ytLiveChatReduxBehavior",void 0);
_.N([_.r(_.U0.YtLiveChatItemBehavior),_.Z("design:type",_.CV)],tW.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],tW.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],tW.prototype,"data",void 0);_.N([_.n({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:KtK}),_.Z("design:type",Object)],tW.prototype,"engagementState",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.Z("design:type",Boolean)],tW.prototype,"isUserEditable",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.Z("design:type",Boolean)],tW.prototype,"hasHeartButton",void 0);_.N([_.n({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],tW.prototype,"showOnlyHeader",void 0);
_.N([_.n({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],tW.prototype,"showFooterDivider",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Object)],tW.prototype,"allowAnimations",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],tW.prototype,"dashboardMoneyFeed",void 0);_.N([_.n({computed:"computeNoveltyImage(data)"}),_.Z("design:type",Number)],tW.prototype,"noveltyWidth",void 0);
_.N([_.n({computed:"computeAuthorPhotoSize(data)"}),_.Z("design:type",Number)],tW.prototype,"authorPhotoSize",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],tW.prototype,"modern",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],tW.prototype,"noPadding",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tW.prototype,"dataChanged",null);
_.N([_.JO("data.message"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tW.prototype,"messageChanged",null);_.N([_.k("data","dashboardMoneyFeed"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],tW.prototype,"hideLowerBumper",null);_.N([_.JO("isDeleted"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tW.prototype,"isDeletedChanged",null);
_.N([_.C({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],tW);
_.p(tW,"yt-live-chat-paid-message-renderer",function(){if(dTm===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;KSv===void 0&&(KSv=document.createElement("template"));var G=KSv;B.call(S,G.content.cloneNode(!0),f.content.firstChild);dTm=f}f=dTm;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var w56;var hb$;var u3=function(){var f=_.dv.apply(this,arguments)||this;f._noAccessors=!0;return f};
_.q(u3,_.dv);u3.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.nL("openPopupConfig")};
_.N([_.r(_.JW.YtOpenPopupBehavior),_.Z("design:type",Object)],u3.prototype,"ytOpenPopupBehavior",void 0);_.N([_.iu()],u3);_.a5=[_.JW.YtOpenPopupBehavior,u3.prototype];var Td$;var yj=[_.d3,Bpi,_.nW,_.Ht,_.t2,_.FRN,_.QW,_.is7,_.IQ,JF9];_.K("web_watch_get_updated_metadata_response_processing")&&yj.push(_.Mx6);_.K("web_continuation_response_processing")&&yj.push(_.p9);var JBM=new _.Sn("RESPONSE_RECEIVED_COMMANDS"),hMA=new _.Sn("RESPONSE_RECEIVED_COMMANDS");var eMW="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),gOT=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],GzG=["GET_UNSEEN_NOTIFICATION_COUNT"];var yz=function(){var f=_.dv.apply(this,arguments)||this;f._noAccessors=!0;f.serviceEndpointHandlers=[];return f};
_.q(yz,_.dv);yz.prototype.created=function(){var f=this;this.endpointHandlerActionMap={"yt-service-request":function(S,B,G,g){var b;return B_T(f.hostElement,S,B,G,g,f.serviceEndpointHandlers,(b=f.onEntitiesUpdated)==null?void 0:b.bind(f))}}};
yz.prototype.attached=function(){_.N6(_.AE.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
yz.prototype.detached=function(){_.M6(_.AE.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.N([_.iu()],yz);_.Fqj=[yz.prototype];var V5L,JwN=function(){return V5L!==void 0?V5L:V5L=document.createElement("template")};
document.head.appendChild(JwN().content);var P78;var vC6=document.head,KqN=vC6.appendChild,dtv;if(P78===void 0){var i37=document.createElement("template");_.Y(i37,"\x3c!--css-build:shady--\x3e");i37.content.insertBefore(JwN().content.cloneNode(!0),i37.content.firstChild);P78=i37}dtv=P78;KqN.call(vC6,dtv.content);var H3g,qN7=function(){return H3g!==void 0?H3g:H3g=document.createElement("template")};
document.head.appendChild(qN7().content);var $tj;var Q21=document.head,YN7=Q21.appendChild,rwg;if($tj===void 0){var j27=document.createElement("template");_.Y(j27,"\x3c!--css-build:shady--\x3e");j27.content.insertBefore(qN7().content.cloneNode(!0),j27.content.firstChild);$tj=j27}rwg=$tj;YN7.call(Q21,rwg.content);var O3j;_.Dd("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.Dd("sharingRendererButtons","buttonRenderer","ytd-button-renderer");O3j=_.K("web_button_rework")&&_.s6("BUTTON_REWORK")||_.K("web_button_rework_with_live");_.Wl=function(){var f=_.I.apply(this,arguments)||this;f.isPressed=!1;f.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return f};
_.q(_.Wl,_.I);_.e=_.Wl.prototype;_.e.created=function(){this.showTooltips=!0};
_.e.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.e.onHintIdChanged=function(){var f=this,S,B,G=(S=this.ytButtonBehavior.data)==null?void 0:(B=S.hint)==null?void 0:B.hintRenderer;if(G&&G.hintId){S=_.mU(this.hostElement,"yt-get-opened-popups-action");S=(S&&S.length===1?S[0]:[]).length>0;var g=null;G.hintId!=="sponsor-pre-purchase"||S?G.hintId.startsWith("sponsor-post-purchase")&&!S?g=Sr6("membership-manage"):G.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!S&&(g=Sr6("membership-freebie-join")):g=Sr6("membership-join");g&&_.xJ.addLowPriorityJob(function(){for(var b=
_.m(g),z=b.next();!z.done;z=b.next())f.ytComponentBehavior.resolveCommand(z.value)})}};
_.e.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.e.onYtNavigate=function(f){var S=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(f.detail.endpoint);S&&(f.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(S))};
_.e.onYtServiceRequestSent=function(f,S){this.handleServiceRequestActions(S);_.ew(this.hostElement,"yt-service-request-sent-button-renderer")};
_.e.onServiceRequestCompleted=function(f,S){this.handleServiceRequestActions(S);_.ew(this.hostElement,"yt-service-request-completed-button-renderer")};
_.e.updateButton=function(f){var S;if(f=(S=_.H(f,UaL))==null?void 0:S.updatedButton)this.ytButtonBehavior.data=_.H(f,_.IR)};
_.e.handleUpdateButtonAction=function(f){var S=this.ytButtonBehavior.data;S.targetId&&f.updateButtonAction.targetId&&S.targetId===f.updateButtonAction.targetId&&this.updateButton(f)};
_.e.handleServiceRequestActions=function(f){if(f=f.actions)for(var S=0;S<f.length;S++)this.updateButton(f[S])};
_.y3.Object.defineProperties(_.Wl,{template:{configurable:!0,enumerable:!0,get:function(){if(Td$===void 0){var f=document.createElement("template");_.Y(f,"\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");f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);Td$=f}f=Td$;return f}}});
_.Wl.prototype.onServiceRequestCompleted=_.Wl.prototype.onServiceRequestCompleted;_.Wl.prototype.onYtServiceRequestSent=_.Wl.prototype.onYtServiceRequestSent;_.Wl.prototype.onYtNavigate=_.Wl.prototype.onYtNavigate;_.Wl.prototype.onPressedStateChanged=_.Wl.prototype.onPressedStateChanged;_.Wl.prototype.onHintIdChanged=_.Wl.prototype.onHintIdChanged;_.N([_.n(),_.Z("design:type",Object)],_.Wl.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],_.Wl.prototype,"isPressed",void 0);
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],_.Wl.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.pIX.YtButtonBehavior),_.Z("design:type",Object)],_.Wl.prototype,"ytButtonBehavior",void 0);_.N([_.r(_.a5),_.Z("design:type",Object)],_.Wl.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],_.Wl.prototype,"ytComponentBehavior",void 0);
_.N([_.r(i3.YtRenderButtonBehavior),_.Z("design:type",Object)],_.Wl.prototype,"ytRenderButtonBehavior",void 0);_.N([_.JO("data.hint.hintRenderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],_.Wl.prototype,"onHintIdChanged",null);_.N([_.JO("isPressed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],_.Wl.prototype,"onPressedStateChanged",null);
_.N([_.Vg("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],_.Wl.prototype,"onYtNavigate",null);_.N([_.Vg("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.N1]),_.Z("design:returntype")],_.Wl.prototype,"onYtServiceRequestSent",null);
_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.cw]),_.Z("design:returntype")],_.Wl.prototype,"onServiceRequestCompleted",null);_.N([_.C({is:"ytd-button-renderer",disableElementRegistration:O3j})],_.Wl);var cl=function(){var f=_.I.apply(this,arguments)||this;f.modern=_.K("web_button_rework_with_live");f.buttonOverrides={style:"overlay",type:"filled"};return f};
_.q(cl,_.I);_.e=cl.prototype;_.e.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"}}}}};
_.e.ready=function(){var f=document.querySelector("yt-live-chat-app");f&&f.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.e.dataChanged=function(){if(this.data&&this.data.sticker){var f=_.bF(this.data.sticker.thumbnails,this.stickerWidth);f||_.KB1(f).thenCatch(function(){_.Lg(new _.dO("Failed to load Super Sticker with url",f))})}};
_.e.computeAuthorPhotoSize=function(f){return(f==null?0:f.isV2Style)?32:40};
_.e.computeIsV2Style=function(f){return(f==null?0:f.isV2Style)?!0:!1};
_.e.onStickerLoaded=function(f){var S,B,G;(S=_.lt(f))==null||(B=S.parentNode)==null||(G=B.classList)==null||G.add("sticker-loaded")};
_.e.computeNoveltyImageWidth=function(f){var S,B;if(f==null?0:(S=f.headerOverlayImage)==null?0:(B=S.thumbnails)==null?0:B.length){S=f.headerOverlayImage.thumbnails[0];var G,g;if((G=f.pdgPurchasedNoveltyLoggingDirectives)==null?0:(g=G.loggingDirectives)==null?0:g.trackingParams){var b,z;ils((b=f.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(z=b.loggingDirectives)==null?void 0:z.trackingParams)}return S.width||0}return 0};
_.e.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.e.updateStickerStyles=function(){var f=this.data;f&&(f={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(f.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(f.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(f.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(f.authorNameTextColor)},
_.hO(this.hostElement,f))};
_.e.onBuyButtonClick=function(){var f,S=_.H((f=this.data)==null?void 0:f.buyButton,_.IR);S&&!UDQ(S.command)&&this.ytRendererBehavior.logExplicitClick(S)};
_.e.shouldSupportWholeItemClick=function(){return!0};
_.y3.Object.defineProperties(cl.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 f;return((f=this.data)==null?0:f.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
cl.prototype.updateStickerStyles=cl.prototype.updateStickerStyles;cl.prototype.isDeletedChanged=cl.prototype.isDeletedChanged;cl.prototype.onStickerLoaded=cl.prototype.onStickerLoaded;cl.prototype.dataChanged=cl.prototype.dataChanged;_.N([_.r(pHN.YtPdgLiveChatItemBehavior),_.Z("design:type",Object)],cl.prototype,"ytPdgLiveChatItemBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],cl.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],cl.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.U0.YtLiveChatItemBehavior),_.Z("design:type",_.CV)],cl.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],cl.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],cl.prototype,"data",void 0);
_.N([_.n({computed:"computeAuthorPhotoSize(data)"}),_.Z("design:type",Number)],cl.prototype,"authorPhotoSize",void 0);_.N([_.n(),_.Z("design:type",Boolean)],cl.prototype,"isDeleted",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],cl.prototype,"dashboardMoneyFeed",void 0);_.N([_.n({computed:"computeNoveltyImageWidth(data)"}),_.Z("design:type",Number)],cl.prototype,"noveltyWidth",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],cl.prototype,"modern",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.Z("design:type",Boolean)],cl.prototype,"isV2Style",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cl.prototype,"dataChanged",null);_.N([_.Vg("yt-img-shadow-loaded"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],cl.prototype,"onStickerLoaded",null);
_.N([_.k("data"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],cl.prototype,"stickerWidth",null);_.N([_.k("data"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],cl.prototype,"stickerHeight",null);_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],cl.prototype,"hasHeartButton",null);_.N([_.k("data","dashboardMoneyFeed"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],cl.prototype,"hideLowerBumper",null);
_.N([_.JO("isDeleted"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cl.prototype,"isDeletedChanged",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cl.prototype,"updateStickerStyles",null);_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],cl);
_.p(cl,"yt-live-chat-paid-sticker-renderer",function(){if(hb$===void 0){var f=document.createElement("template");_.Y(f,'\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>');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;w56===void 0&&(w56=document.createElement("template"));var G=w56;B.call(S,G.content.cloneNode(!0),f.content.firstChild);hb$=f}f=hb$;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var xtj;var ECm;var Lqg,kym=function(){return Lqg!==void 0?Lqg:Lqg=document.createElement("template")};
document.head.appendChild(kym().content);var nC8,s28=function(){return nC8!==void 0?nC8:nC8=document.createElement("template")};
document.head.appendChild(s28().content);var Dtg;var Il$,Utj=function(){return Il$!==void 0?Il$:Il$=document.createElement("template")};
document.head.appendChild(Utj().content);var C7j;var p58=document.head,Awm=p58.appendChild,Nd6;if(C7j===void 0){var M5N=document.createElement("template");_.Y(M5N,"\x3c!--css-build:shady--\x3e");M5N.content.insertBefore(Utj().content.cloneNode(!0),M5N.content.firstChild);C7j=M5N}Nd6=C7j;Awm.call(p58,Nd6.content);var Z31=document.head,t5N=Z31.appendChild,uNo;if(Dtg===void 0){var l3=document.createElement("template");_.Y(l3,"\x3c!--css-build:shady--\x3e");l3.content.insertBefore(s28().content.cloneNode(!0),l3.content.firstChild);l3.content.insertBefore(kym().content.cloneNode(!0),l3.content.firstChild);Dtg=l3}uNo=Dtg;t5N.call(Z31,uNo.content);var fR=function(){var f=_.dv.apply(this,arguments)||this;f.focusedIndex=0;f.verticalOffset=0;f.verticalAlign="top";f.dynamicAlign=!0;return f};
_.q(fR,_.dv);fR.prototype.emojiUrl=function(f){f=_.s0(this.emojiManager,f);if(!f)return"";var S;f=(S=f.image)==null?void 0:S.thumbnails;return _.bF(f,24)||""};
var alm=function(f){var S;f.emojiVariants&&(S=f.data)!=null&&S.target&&_.ui(f,function(){f.set("verticalOffset",-1*f.hostElement.clientHeight);var B=_.m9(f.hostElement).querySelector("img");B&&B.focus()})};
_.e=fR.prototype;_.e.onKeyboardEnter=function(){};
_.e.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.e.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.e.onKeyDown=function(f){switch(f.keyCode){case 13:this.onKeyboardEnter();f.preventDefault();break;case 40:this.changeFocus(1);f.preventDefault();break;case 38:this.changeFocus(-1);f.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.e.onYtEmojiSelect=function(f){var S=this,B,G,g,b,z,X,w,F;return _.R(function(V){if(V.nextAddress==1)return G=(B=S.data)==null?void 0:B.emoji,z=((g=G)==null?void 0:g.stickyPrefId)||((b=G)==null?void 0:b.emojiId),w=(X=f.detail)==null?void 0:X.emojiId,z&&w&&z!==w?_.h(V,(F=S.emojiManager)==null?void 0:fl$(F,G,w),2):V.return();_.bW(S.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[G,w]);_.TT(V)})};
_.e.changeFocus=function(f){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+f+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(f=_.m9(this.hostElement).querySelector("#variants"))&&f.children[this.focusedIndex].focus())};
_.y3.Object.defineProperties(fR.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
fR.prototype.onYtEmojiSelect=fR.prototype.onYtEmojiSelect;fR.prototype.onKeyDown=fR.prototype.onKeyDown;fR.prototype.onEmojiVariantsChanged=fR.prototype.onEmojiVariantsChanged;fR.prototype.onVerticalOffsetOrPositionTargetChanged=fR.prototype.onVerticalOffsetOrPositionTargetChanged;_.N([_.r(_.uH),_.Z("design:type",Object)],fR.prototype,"ironOverlayBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],fR.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",_.nV)],fR.prototype,"emojiManager",void 0);
_.N([_.n(),_.Z("design:type",Object)],fR.prototype,"emojiVariants",void 0);_.N([_.n(),_.Z("design:type",Object)],fR.prototype,"focusedIndex",void 0);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],fR.prototype,"positionTarget",null);_.N([_.n({reflectToAttribute:!0}),_.k("verticalOffset","data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],fR.prototype,"isPositioned",null);_.N([_.n(),_.Z("design:type",Object)],fR.prototype,"verticalOffset",void 0);
_.N([_.n(),_.Z("design:type",Object)],fR.prototype,"verticalAlign",void 0);_.N([_.n(),_.Z("design:type",Object)],fR.prototype,"dynamicAlign",void 0);_.N([_.JO("verticalOffset","positionTarget"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],fR.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.N([_.JO("emojiVariants"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],fR.prototype,"onEmojiVariantsChanged",null);
_.N([_.Vg("keydown"),_.Z("design:type",Function),_.Z("design:paramtypes",[KeyboardEvent]),_.Z("design:returntype")],fR.prototype,"onKeyDown",null);_.N([_.Vg("yt-emoji-select"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype",Promise)],fR.prototype,"onYtEmojiSelect",null);_.N([_.iu()],fR);var yw6=[fR.prototype];var Wqm;var cw7;var llN=/medium-light|medium-dark|light|medium|dark/,f_m=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,os1=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),ou=function(){var f=_.I.apply(this,arguments)||this;f.userSelection={left:null,right:null};f.scrollAction="lock";f.isEmojiDraftInProgress=!1;return f};
_.q(ou,_.I);_.e=ou.prototype;_.e.onClick=function(f){f=_.lt(f);f instanceof HTMLImageElement&&this.selectOrUpdateEmoji(f)};
_.e.selectOrUpdateEmoji=function(f){var S=f.getAttribute("selection");S&&(S==="default"?_.ew(this.hostElement,"yt-emoji-select",_.s0(this.emojiManager,f.id)):S==="left"?this.userSelection=Object.assign({},this.userSelection,{left:f.src}):S==="right"?this.userSelection=Object.assign({},this.userSelection,{right:f.src}):S==="user"&&this.userSelection.left&&this.userSelection.right&&_.ew(this.hostElement,"yt-emoji-select",_.s0(this.emojiManager,f.id)))};
_.e.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.e.onMultiSelectorThumbnailRowChanged=function(){var f,S,B;((f=this.data)==null?0:(S=f.emoji)==null?0:(B=S.multiSelectorThumbnailRow)==null?0:B.length)&&this.openSelector()};
_.e.getThumbnailFromEmojiRow=function(f){var S,B;return(f==null?void 0:(S=f.thumbnails)==null?void 0:(B=S[0])==null?void 0:B.url)||""};
_.e.getEmojiAltTextForPartialSelector=function(f){var S;return((S=this.getThumbnailFromEmojiRow(f).match(f_m))==null?void 0:S[0])||""};
_.e.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.e.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.e.getRowSelection=function(f){return["left","right"][f]};
_.e.getIdFromComposedEmoji=function(f){return(f==null?void 0:f.emojiId)||""};
_.e.getEmojiFromPartialSelections=function(f,S){if(!f&&!S)return null;var B,G,g=(B=this.data)==null?void 0:(G=B.emoji)==null?void 0:G.variantIds;if(!g||!g.length)return null;var b;f=(b=f.match(llN))==null?void 0:b[0];var z;S=(z=S.match(llN))==null?void 0:z[0];if(!f||!S)return null;var X=os1.get(f);z=os1.get(S);if(X===z){z=Array.from(os1.values()).filter(function(F){return F!==X}).join("|");
var w=new RegExp("^((?!("+z+")).)*"+X+"$")}else w=new RegExp(X+".*"+z);return(g=g.find(function(F){return w.test(F)}))&&_.s0(this.emojiManager,g)||null};
_.e.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var f,S=this.ytEmojiSelectorBehavior.emojiUrl(((f=this.data.emoji)==null?void 0:f.emojiId)||"");_.m9(this.hostElement).querySelector('[selection="user"]').src.includes(S)||(this.isEmojiDraftInProgress=!0)}};
_.e.onDomChange=function(){alm(this.ytEmojiSelectorBehavior)};
_.e.getFocusableElements=function(){return _.m9(this.hostElement).querySelectorAll("img").filter(function(f){return f.getAttribute("role")==="option"})};
_.e.changeFocus=function(f){var S=this.getFocusableElements();S!=null&&S.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+f+S.length)%S.length,this.ytEmojiSelectorBehavior.focusedIndex<S.length&&(f=S[this.ytEmojiSelectorBehavior.focusedIndex])&&f.focus())};
_.e.onKeyboardEnter=function(){var f=this.getFocusableElements();f!=null&&f.length&&(f=f[this.ytEmojiSelectorBehavior.focusedIndex])&&f instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(f),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.y3.Object.defineProperties(ou.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var f=this,S,B,G;return this.emojiManager&&((S=this.data)==null?0:(B=S.emoji)==null?0:(G=B.variantIds)==null?0:G.length)?this.data.emoji.variantIds.map(function(g){return!!g&&_.s0(f.emojiManager,g)}).filter(function(g){return!!g}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var f,S=(f=this.userSelection)==null?void 0:f.left,B;f=(B=this.userSelection)==null?void 0:B.right;return S&&f?this.getEmojiFromPartialSelections(S,f):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.composedEmojiSelection)==null?0:f.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var S;f=(S=this.userSelection)==null?void 0:S.left;var B;S=(B=this.userSelection)==null?void 0:B.right;if(!f&&!S){var G;return this.ytEmojiSelectorBehavior.emojiUrl(((G=this.data.emoji)==null?void 0:G.emojiId)||"")}return f&&!S?f:!f&&S?S:""}}});
ou.prototype.onMultiSelectorThumbnailRowChanged=ou.prototype.onMultiSelectorThumbnailRowChanged;ou.prototype.onClick=ou.prototype.onClick;_.N([_.r(_.uH),_.Z("design:type",Object)],ou.prototype,"ironOverlayBehavior",void 0);_.N([_.r(yw6),_.Z("design:type",Object)],ou.prototype,"ytEmojiSelectorBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],ou.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",_.nV)],ou.prototype,"emojiManager",void 0);
_.N([_.n(),_.Z("design:type",Object)],ou.prototype,"userSelection",void 0);_.N([_.n(),_.Z("design:type",Object)],ou.prototype,"scrollAction",void 0);_.N([_.n(),_.Z("design:type",Object)],ou.prototype,"isEmojiDraftInProgress",void 0);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ou.prototype,"emojiVariants",null);_.N([_.k("data","userSelection"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ou.prototype,"composedEmojiSelection",null);
_.N([_.Vg("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[MouseEvent]),_.Z("design:returntype")],ou.prototype,"onClick",null);_.N([_.JO("data.emoji.multiSelectorThumbnailRow"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ou.prototype,"onMultiSelectorThumbnailRowChanged",null);_.N([_.k("data","userSelection","composedEmojiSelection"),_.Z("design:type",String),_.Z("design:paramtypes",[])],ou.prototype,"draftEmojiUrl",null);
_.N([_.nP({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],ou);
_.p(ou,"yt-emoji-multi-person-selector",function(){if(cw7===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;Wqm===void 0&&(Wqm=document.createElement("template"));var G=Wqm;B.call(S,G.content.cloneNode(!0),f.content.firstChild);cw7=f}f=cw7;return f},{mode:2});var SBX;var Boi;var St=function(){var f=_.I.apply(this,arguments)||this;f.tooltip_=null;return f};
_.q(St,_.I);_.e=St.prototype;_.e.dataChanged_=function(){var f;if((f=this.data)==null?0:f.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.m9(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.wv)(this.tooltip_).textContent=this.data.tooltip};
_.e.computeTargetId=function(){var f;return((f=this.data)==null?void 0:f.targetId)||""};
_.e.computeId_=function(f){return f};
_.e.computeIcon_=function(f){return _.F_(f)};
_.e.onTap_=function(){this.active=!this.active;_.ew(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.e.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AW("active-changed",this.active))};
_.y3.Object.defineProperties(St.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var f,S;if((f=this.data)==null?0:(S=f.icon)==null?0:S.iconType)return this.data.icon.iconType==="SUPER_STICKER";var B,G;return((B=this.data)==null?void 0:(G=B.icon)==null?void 0:G.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
St.prototype.activeChangedForBinding=St.prototype.activeChangedForBinding;St.prototype.dataChanged_=St.prototype.dataChanged_;_.N([_.r(_.Ai.YtLiveChatTooltipTargetingBehavior),_.Z("design:type",Object)],St.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],St.prototype,"data",void 0);_.N([_.n({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.Z("design:type",String)],St.prototype,"id",void 0);
_.N([_.n({computed:"computeTargetId(data.targetId)"}),_.Z("design:type",String)],St.prototype,"targetId",void 0);_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],St.prototype,"active",void 0);_.N([_.n({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.Z("design:type",String)],St.prototype,"icon",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],St.prototype,"dataChanged_",null);
_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],St.prototype,"iconFilled",null);_.N([_.JO("active"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],St.prototype,"activeChangedForBinding",null);_.N([_.nP({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],St);
_.p(St,"yt-emoji-picker-category-button-renderer",function(){if(Boi===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;SBX===void 0&&(SBX=document.createElement("template"));var G=SBX;B.call(S,G.content.cloneNode(!0),f.content.firstChild);Boi=f}f=Boi;return f},{mode:2});var GUv;var gs6;var BX=function(){var f=_.I.apply(this,arguments)||this;f.ariaLabel=null;f.ariaActivedescendant=null;f.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};f.JSC$12119_ignoreNextFocus_=!1;f.longPressTimeoutId=-1;return f};
_.q(BX,_.I);_.e=BX.prototype;_.e.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.e.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.e.emojiChanged_=function(){this.changeFocus_(0,!1);for(var f=_.ik(),S=0;S<this.emoji.length;S++){var B={veType:88013,elementIndex:S},G=this.emoji[S];G.isCustomEmoji&&(G=document.querySelector(("#"+G.emojiId).replace("/","\\/")))&&(B=_.dR(f,B))&&(G.visualElement=B)}};
_.e.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.e.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.e.emojiSkinToneChanged_=function(f){this.skinTone=f};
_.e.dataChanged=function(){this.data&&this.data.emojiData&&y4X(this.emojiManager,this.data.emojiData)};
_.e.emojiUrl=function(f){f=this.getEmoji(f);if(!f)return"";var S;f=(S=f.image)==null?void 0:S.thumbnails;return _.bF(f,24)||""};
_.e.emojiAlt=function(f){var S=this.get("image.accessibility.accessibilityData.label",f);return S?S:f.isCustomEmoji?f.shortcuts[0]:f.emojiId};
_.e.emojiAriaLabel=function(f){return f.shortcuts?f.shortcuts[0]:""};
_.e.emojiAriaSelected=function(f,S,B){return f&&B==S?"true":"false"};
_.e.getEmoji=function(f){if(this.emojiManager)return this.shouldUseStickyPreferences?c4m(this.emojiManager,f):Df(this.emojiManager,f)};
_.e.computeId_=function(f){return f.categoryId||""};
_.e.computeEmoji=function(f){var S=this;return this.emojiManager?f.emojiIds?f.emojiIds.map(function(B){return B?_.s0(S.emojiManager,B):null}).filter(dnx):f.emojiData?f.emojiData.map(function(B){var G=!!B.emojiId&&_.s0(S.emojiManager,B.emojiId);
return G?Object.assign({},G,B):null}).filter(dnx):[]:[]};
_.e.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.e.computeAriaLabel_=function(f){return _.ac(f)};
_.e.computeAriaActivedescendant_=function(f,S){return f&&f[S]?f[S].emojiId||"":""};
_.e.handleLongPressEmojiWithVariants=function(f,S){this.changeFocusToEmoji(f.emojiId,!1);this.openVariantSelector(f,S)};
_.e.onMouseDown=function(f){var S=this;this.hostElement!==document.activeElement&&(this.JSC$12119_ignoreNextFocus_=!0);if(f.button===0){var B=_.lt(f);if(B instanceof HTMLImageElement){var G=_.m9(this.hostElement).querySelector("#repeat").itemForElement(B);this.emojiContainsVariants(G)&&(this.longPressTimeoutId=setTimeout(function(){S.handleLongPressEmojiWithVariants(G,B)},500))}}};
_.e.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.e.onFocus=function(){this.JSC$12119_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$12119_ignoreNextFocus_=!1};
_.e.onBlur_=function(){this.showFocus=!1};
_.e.emojiContainsVariants=function(f){return!!(f&&f.variantIds&&f.variantIds.length)};
_.e.onClick=function(f){clearTimeout(this.longPressTimeoutId);f=_.lt(f);if(f instanceof HTMLImageElement){var S=f.id;this.changeFocusToEmoji(S,!1);var B=this.getEmoji(S),G;if(G=this.shouldUseStickyPreferences&&this.emojiContainsVariants(B)){var g;G=!((g=this.emojiManager.emojiMap[S])!=null&&g.stickyPrefId)}G?(g=_.m9(this.hostElement).querySelector("#repeat").itemForElement(f),this.openVariantSelector(g,f)):_.ew(this.hostElement,"yt-emoji-select",B)}};
_.e.isActiveEmojiWithVariants=function(f,S){return f&&S?S.stickyPrefId?f===S.stickyPrefId:f===S.emojiId:!1};
_.e.onCloseEmojiVariantSelector=function(f){this.activeEmojiWithVariantsId===f&&(this.activeEmojiWithVariantsId="")};
_.e.onMouseOver_=function(f){f=_.lt(f);f instanceof HTMLImageElement&&_.ew(this.hostElement,"yt-emoji-hover",_.s0(this.emojiManager,f.id))};
_.e.changeFocus_=function(f,S){this.focusedIndex=(this.focusedIndex+f+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(f=this.emoji[this.focusedIndex],S&&(this.showFocus=!0,_.m9(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.ew(this.hostElement,"yt-emoji-hover",f)))};
_.e.changeFocusToEmoji=function(f,S){if(f){var B=this.emoji.findIndex(function(G){return G.emojiId===f});
B!==-1&&this.changeFocus_(B-this.focusedIndex,S)}};
_.e.onKeyDown_=function(f){switch(f.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var S=this.emoji[this.focusedIndex];if(S&&S.emojiId){if(this.emojiContainsVariants(S)){var B=_.m9(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(S,B)}else _.ew(this.hostElement,"yt-emoji-select",Df(this.emojiManager,S.emojiId)),this.hostElement.focus();f.preventDefault()}}break;case 40:this.changeFocus_(1,!0);f.preventDefault();break;case 38:this.changeFocus_(-1,!0),
f.preventDefault()}};
_.e.onEmojiStickyPreferenceChanged=function(f,S){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&f.emojiId&&f.variantIds&&f.variantIds.includes(S)&&this.activeEmojiWithVariantsId!==S&&this.setStickyEmojiPreference(f.emojiId,S)};
_.e.openVariantSelector=function(f,S){this.activeEmojiWithVariantsId=f.stickyPrefId||f.emojiId||"";_.ew(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:f,target:S})};
_.e.setStickyEmojiPreference=function(f,S){if(this.data){var B=this.emoji.findIndex(function(g){return g.emojiId===f});
if(B!==-1){var G=this.emoji[B];G.stickyPrefId=S;this.set("emoji."+B,Object.assign({},G));this.activeEmojiWithVariantsId=S}}};
BX.prototype.onKeyDown_=BX.prototype.onKeyDown_;BX.prototype.onMouseOver_=BX.prototype.onMouseOver_;BX.prototype.onClick=BX.prototype.onClick;BX.prototype.onBlur_=BX.prototype.onBlur_;BX.prototype.onFocus=BX.prototype.onFocus;BX.prototype.onMouseUp=BX.prototype.onMouseUp;BX.prototype.onMouseDown=BX.prototype.onMouseDown;BX.prototype.dataChanged=BX.prototype.dataChanged;BX.prototype.disableIncrementalLoadingChanged_=BX.prototype.disableIncrementalLoadingChanged_;BX.prototype.emojiManagerChanged_=BX.prototype.emojiManagerChanged_;
BX.prototype.emojiChanged_=BX.prototype.emojiChanged_;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],BX.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],BX.prototype,"data",void 0);_.N([_.n({computed:"computeId_(data)"}),_.Z("design:type",String)],BX.prototype,"id",void 0);_.N([_.n({computed:"computeEmoji(data)"}),_.Z("design:type",Array)],BX.prototype,"emoji",void 0);_.N([_.n(),_.Z("design:type",Number)],BX.prototype,"skinTone",void 0);
_.N([_.n(),_.Z("design:type",_.nV)],BX.prototype,"emojiManager",void 0);_.N([_.n(),_.Z("design:type",Boolean)],BX.prototype,"disableIncrementalLoading",void 0);_.N([_.n({value:0}),_.Z("design:type",Number)],BX.prototype,"focusedIndex",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],BX.prototype,"showFocus",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.Z("design:type",Object)],BX.prototype,"ariaLabel",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.Z("design:type",Object)],BX.prototype,"ariaActivedescendant",void 0);_.N([_.n({value:60}),_.Z("design:type",Number)],BX.prototype,"domRepeatTargetFramerate",void 0);_.N([_.n({value:1}),_.Z("design:type",Number)],BX.prototype,"domRepeatInitialCount",void 0);_.N([_.n({value:""}),_.Z("design:type",String)],BX.prototype,"activeEmojiWithVariantsId",void 0);
_.N([_.n({value:!1}),_.Z("design:type",Boolean)],BX.prototype,"shouldUseStickyPreferences",void 0);_.N([_.JO("emoji"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],BX.prototype,"emojiChanged_",null);_.N([_.JO("emojiManager"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],BX.prototype,"emojiManagerChanged_",null);
_.N([_.JO("disableIncrementalLoading"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],BX.prototype,"disableIncrementalLoadingChanged_",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],BX.prototype,"dataChanged",null);_.N([_.Vg("mousedown"),_.Z("design:type",Function),_.Z("design:paramtypes",[Object]),_.Z("design:returntype")],BX.prototype,"onMouseDown",null);
_.N([_.Vg("mouseup"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],BX.prototype,"onMouseUp",null);_.N([_.Vg("focus"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],BX.prototype,"onFocus",null);_.N([_.Vg("blur"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],BX.prototype,"onBlur_",null);
_.N([_.Vg("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],BX.prototype,"onClick",null);_.N([_.Vg("mouseover"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],BX.prototype,"onMouseOver_",null);_.N([_.Vg("keydown"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],BX.prototype,"onKeyDown_",null);
_.N([_.nP({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],BX);
_.p(BX,"yt-emoji-picker-category-renderer",function(){if(gs6===void 0){var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;GUv===void 0&&(GUv=document.createElement("template"));var G=GUv;B.call(S,G.content.cloneNode(!0),f.content.firstChild);gs6=f}f=gs6;return f},{mode:2});var ey$;var bl7;var mh8;var zyv;var GJ=function(){var f=_.I.apply(this,arguments)||this;f.ariaLabel=null;f.ariaActivedescendant=null;f.getFormattedStringRawText=_.ac;f.JSC$12125_ignoreNextFocus_=!1;return f};
_.q(GJ,_.I);_.e=GJ.prototype;_.e.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")};
_.e.emojiUrl=function(f){var S,B;f=(S=Df(this.emojiManager,f,!0))==null?void 0:(B=S.image)==null?void 0:B.thumbnails;return _.bF(f,24)||""};
_.e.emojiAlt=function(f){var S=this.get("image.accessibility.accessibilityData.label",f);return S?S:f.isCustomEmoji?f.shortcuts[0]:f.emojiId};
_.e.emojiId=function(f){return"emoji"+f};
_.e.computeId_=function(f){return f.categoryId||""};
_.e.computeAriaActivedescendant_=function(f){return this.emoji&&f<this.emoji.length?this.emojiId(f):""};
_.e.emojiChanged_=function(){this.changeFocus_(0,!1);for(var f=_.ik(),S=0;S<this.emoji.length;S++){var B={veType:88013,elementIndex:S},G=this.emoji[S];G.isCustomEmoji&&(G=document.querySelector(("#"+G.emojiId).replace("/","\\/")))&&(B=_.dR(f,B))&&(G.visualElement=B)}};
_.e.computeEmoji_=function(f){var S=this;return this.emojiManager?f.emojiIds.map(function(B){return _.s0(S.emojiManager,B,!0)}).filter(i0j):[]};
_.e.titleOffsetChanged_=function(){var f=this.hostElement.getBoundingClientRect(),S=_.m9(this.hostElement).querySelector("#title").getBoundingClientRect();f=Math.max(0,Math.min(this.titleOffset,f.height-S.height));_.m9(this.hostElement).querySelector("#title").style.top=f+"px"};
_.e.onEmojiMouseOver_=function(f){_.ew(this.hostElement,"yt-emoji-hover",f.model.item)};
_.e.onEmojiTap_=function(f){this.data.command&&(f=Ol1(_.oy().resolve(_.fN(Cg)),this.data.command,f),_.ew(this.hostElement,"yt-navigate",f))};
_.e.emojiAriaLabel=function(f){return f.shortcuts[0]};
_.e.emojiAriaSelected=function(f,S,B){return f&&B==S?"true":"false"};
_.e.changeFocus_=function(f,S){var B=this.emoji.length;this.focusedIndex=(this.focusedIndex+f+B)%B;f=this.emoji[this.focusedIndex];if(S){var G;(G=_.m9(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||G.scrollIntoView(!1);_.ew(this.hostElement,"yt-emoji-hover",f)}};
_.e.onMouseDown_=function(){this.JSC$12125_ignoreNextFocus_=!0};
_.e.onFocus_=function(){this.JSC$12125_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$12125_ignoreNextFocus_=!1};
_.e.onBlur_=function(){this.showFocus=!1};
_.e.onKeyDown_=function(f){switch(f.keyCode){case 13:this.onEmojiTap_(f);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);f.preventDefault();break;case 38:this.changeFocus_(-1,!0),f.preventDefault()}};
GJ.prototype.onKeyDown_=GJ.prototype.onKeyDown_;GJ.prototype.onBlur_=GJ.prototype.onBlur_;GJ.prototype.onFocus_=GJ.prototype.onFocus_;GJ.prototype.onMouseDown_=GJ.prototype.onMouseDown_;GJ.prototype.onEmojiTap_=GJ.prototype.onEmojiTap_;GJ.prototype.titleOffsetChanged_=GJ.prototype.titleOffsetChanged_;GJ.prototype.emojiChanged_=GJ.prototype.emojiChanged_;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],GJ.prototype,"ytComponentBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],GJ.prototype,"data",void 0);_.N([_.n({computed:"computeId_(data)"}),_.Z("design:type",String)],GJ.prototype,"id",void 0);_.N([_.n({computed:"computeEmoji_(data)"}),_.Z("design:type",Array)],GJ.prototype,"emoji",void 0);_.N([_.n({value:0}),_.Z("design:type",Number)],GJ.prototype,"titleOffset",void 0);_.N([_.n({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.Z("design:type",Object)],GJ.prototype,"ariaLabel",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.Z("design:type",Object)],GJ.prototype,"ariaActivedescendant",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],GJ.prototype,"showFocus",void 0);_.N([_.n({value:0}),_.Z("design:type",Number)],GJ.prototype,"focusedIndex",void 0);_.N([_.n(),_.Z("design:type",_.nV)],GJ.prototype,"emojiManager",void 0);
_.N([_.JO("emoji"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],GJ.prototype,"emojiChanged_",null);_.N([_.JO("titleOffset"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],GJ.prototype,"titleOffsetChanged_",null);_.N([_.Vg("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],GJ.prototype,"onEmojiTap_",null);
_.N([_.Vg("mousedown"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],GJ.prototype,"onMouseDown_",null);_.N([_.Vg("focus"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],GJ.prototype,"onFocus_",null);_.N([_.Vg("blur"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],GJ.prototype,"onBlur_",null);
_.N([_.Vg("keydown"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],GJ.prototype,"onKeyDown_",null);_.N([_.nP({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],GJ);
_.p(GJ,"yt-emoji-picker-upsell-category-renderer",function(){if(zyv===void 0){var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;mh8===void 0&&(mh8=document.createElement("template"));var G=mh8;B.call(S,G.content.cloneNode(!0),f.content.firstChild);zyv=f}f=zyv;return f},{mode:2});var Ry1;var XM1;var gD=function(){var f=_.I.apply(this,arguments)||this;f.scrollAction="lock";f.verticalAlign="top";return f};
_.q(gD,_.I);_.e=gD.prototype;_.e.onClick=function(f){f=_.lt(f);f instanceof HTMLImageElement&&_.ew(this.hostElement,"yt-emoji-select",_.s0(this.emojiManager,f.id))};
_.e.openSelector=function(){this.ironOverlayBehavior.open()};
_.e.onDomChange=function(){alm(this.ytEmojiSelectorBehavior)};
_.e.computeIsFamilySelector=function(f){var S;return(f==null?void 0:(S=f.emoji)==null?void 0:S.emojiId)==="\ud83d\udc6a"};
_.e.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var f=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];f&&f.emojiId&&(_.ew(this.hostElement,"yt-emoji-select",_.s0(this.emojiManager,f.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.y3.Object.defineProperties(gD.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var f=this,S,B,G;return this.emojiManager&&((S=this.data)==null?0:(B=S.emoji)==null?0:(G=B.variantIds)==null?0:G.length)?this.data.emoji.variantIds.map(function(g){return!!g&&_.s0(f.emojiManager,g)}).filter(function(g){return!!g}):[]}}});
gD.prototype.onClick=gD.prototype.onClick;_.N([_.r(_.uH),_.Z("design:type",Object)],gD.prototype,"ironOverlayBehavior",void 0);_.N([_.r(yw6),_.Z("design:type",Object)],gD.prototype,"ytEmojiSelectorBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],gD.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",_.nV)],gD.prototype,"emojiManager",void 0);_.N([_.n(),_.Z("design:type",Object)],gD.prototype,"scrollAction",void 0);_.N([_.n(),_.Z("design:type",Object)],gD.prototype,"verticalAlign",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.Z("design:type",Boolean)],gD.prototype,"isFamilySelector",void 0);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],gD.prototype,"emojiVariants",null);_.N([_.Vg("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[MouseEvent]),_.Z("design:returntype")],gD.prototype,"onClick",null);_.N([_.nP({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],gD);
_.p(gD,"yt-emoji-variant-selector",function(){if(XM1===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;Ry1===void 0&&(Ry1=document.createElement("template"));var G=Ry1;B.call(S,G.content.cloneNode(!0),f.content.firstChild);XM1=f}f=XM1;return f},{mode:2});var wM6=/:/g,hy1=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],et=function(){var f=_.I.apply(this,arguments)||this;f.emojiVariantSelector=null;f.emojiMultiPersonSelector=null;f.identity=_.IT;f.lastAnimationTime_=0;f.animationStart_=null;f.animationEnd_=null;return f};
_.q(et,_.I);_.e=et.prototype;
_.e.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}}};
_.e.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.I5)};
_.e.attached=function(){_.Td&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&WSg(this.emojiManager)};
_.e.dataChanged=function(){var f;if((f=this.data)==null?0:f.categories){f=this.emojiManager;var S=this.getCustomEmojiIds();f.pickerCustomEmojiIds=[].concat(_.$d(Mhg),_.$d(S))}};
_.e.getCustomEmojiIds=function(){var f,S=(f=this.data.categories)==null?void 0:f.find(function(b){var z;return((z=b.emojiPickerCategoryRenderer)==null?void 0:z.categoryId)&&hy1.includes(b.emojiPickerCategoryRenderer.categoryId)}),B;
f=(B=this.data.categories)==null?void 0:B.find(function(b){return b.emojiPickerUpsellCategoryRenderer});
var G,g;return[S==null?void 0:(G=S.emojiPickerCategoryRenderer)==null?void 0:G.emojiIds,f==null?void 0:(g=f.emojiPickerUpsellCategoryRenderer)==null?void 0:g.emojiIds].flat().filter(function(b){return!!b})};
_.e.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.e.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.e.updateCategoriesAndPlaceholderInternal=function(f,S){var B=this;f&&S&&(this.categories=f.categories||[],this.categoryButtons=f.categoryButtons||[],this.resetPlaceholder(),this.search="",_.AO(function(){B.updateButtons_()}))};
_.e.computeId_=function(f){return f.id||""};
_.e.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(f){return f.emojiPickerCategoryRenderer&&f.emojiPickerCategoryRenderer.emojiData}):!1};
_.e.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.e.onShowEmojiVariantSelector=function(f){var S=f.detail.emojiData;S.variantIds&&S.variantIds.length&&(S.multiSelectorThumbnailRow&&S.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:S,target:f.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:S,target:f.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.e.onIronOverlayClosed=function(f){var S=c4m(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");S&&f.composedPath&&(f.composedPath().includes(_.m9(this.hostElement).querySelector("#emoji-variant-selector"))||f.composedPath().includes(_.m9(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.bW(this.hostElement,"yt-close-emoji-variant-selector",[S.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.e.onEmojiVariantSelectorMouseup=function(f){var S=f.target.firstChild;this.variantSelectorOpened&&S&&_.AO(function(){S.noCancelOnOutsideClick=!1},100)};
_.e.onEmojiVariantSelectorMousedown=function(f){f=f.target.firstChild;this.variantSelectorOpened&&f&&(f.noCancelOnOutsideClick=!1)};
_.e.onSelectCategory_=function(f){var S=this.search!="";this.search="";for(var B=_.m9(this.hostElement).querySelector("#categories").children,G=0;G<B.length;G++){var g=B[G];if(g.id==f.detail.categoryId){S?(_.m9(this.hostElement).querySelector("#categories").scrollTop=g.offsetTop,this.updateButtons_()):(this.animationStart_=_.m9(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=g.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.e.onEmojiHover_=function(f){this.placeholder=f.detail.shortcuts?f.detail.shortcuts[0]:""};
_.e.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.e.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.e.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.e.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.e.computeSearchCategory_=function(f){f=f.replace(wM6,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();f=f.split(" ");for(var S=[],B=this.emojiManager.emojis,G=0;G<B.length;G++){var g=B[G];if(g.searchTerms)for(var b=0;b<g.searchTerms.length;b++){for(var z=g.searchTerms[b].toLocaleLowerCase(),X=!1,w=0;w<f.length;w++)if(z.indexOf(f[w])!=-1){X=!0;break}if(X&&(!g.isCustomEmoji||!g.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(g.emojiId))){S.push(g.emojiId);
break}}}return{categoryId:-1,emojiIds:S}};
_.e.computeSearchEmptyMessage_=function(f,S){return f&&S&&S.emojiIds&&S.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.e.computeSearching_=function(f){return this.emojiManager&&f.replace(wM6,"").length>1};
_.e.computeSkinToneHidden=function(){var f;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((f=this.data)==null||!f.hideSkinTonePicker)};
_.e.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.e.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.e.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.e.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.e.selectSkinTone_=function(f){f=Number(f.target.getAttribute("tone"));this.set("emojiManager.skinTone",f);_.bW(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[f]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.e.skinToneChanged_=function(){_.m9(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var f=_.m9(this.hostElement).querySelector("#dropdown-content").children,S=0;S<f.length;S++)S===this.skinTone?f[S].setAttribute("selected",""):f[S].removeAttribute("selected")};
_.e.animateScroll_=function(f){this.lastAnimationTime_||(this.lastAnimationTime_=f);f-=this.lastAnimationTime_;f<200?(_.m9(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*f/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.m9(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.e.searchChanged_=function(){this.updateButtons_()};
_.e.updateButtons_=function(){var f=null;if(!this.search)for(var S=_.m9(this.hostElement).querySelector("#categories").scrollTop,B=_.m9(this.hostElement).querySelector("#categories").children,G=0;G<B.length;G++){var g=B[G];g.offsetTop<=S&&(f=g.id)}S=_.m9(this.hostElement).querySelector("#category-buttons").children;for(B=0;B<S.length;B++)G=S[B],G.active=G.id===f};
et.prototype.searchChanged_=et.prototype.searchChanged_;et.prototype.skinToneChanged_=et.prototype.skinToneChanged_;et.prototype.onEmojiHover_=et.prototype.onEmojiHover_;et.prototype.onSelectCategory_=et.prototype.onSelectCategory_;et.prototype.onShowEmojiVariantSelector=et.prototype.onShowEmojiVariantSelector;et.prototype.updateCategoriesAndPlaceholder_=et.prototype.updateCategoriesAndPlaceholder_;et.prototype.dataChanged=et.prototype.dataChanged;
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],et.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],et.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],et.prototype,"data",void 0);_.N([_.n({value:function(){return[]}}),
_.Z("design:type",Array)],et.prototype,"categories",void 0);_.N([_.n({value:function(){return[]}}),
_.Z("design:type",Array)],et.prototype,"categoryButtons",void 0);_.N([_.n({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],et.prototype,"disableScroll",void 0);_.N([_.n({computed:"computeId_(data)",reflectToAttribute:!0}),_.Z("design:type",String)],et.prototype,"id",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],et.prototype,"selected",void 0);
_.N([_.n({value:!1}),_.Z("design:type",Boolean)],et.prototype,"disableIncrementalLoading",void 0);_.N([_.n(),_.Z("design:type",String)],et.prototype,"placeholder",void 0);_.N([_.n({value:""}),_.Z("design:type",String)],et.prototype,"search",void 0);_.N([_.n({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],et.prototype,"searching",void 0);_.N([_.n({computed:"computeSearchCategory_(search)"}),_.Z("design:type",Object)],et.prototype,"searchCategory",void 0);
_.N([_.n({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.Z("design:type",Object)],et.prototype,"searchEmptyMessage",void 0);_.N([_.n({computed:"identity(emojiManager.skinTone)"}),_.Z("design:type",Number)],et.prototype,"skinTone",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],et.prototype,"skinToneOpened",void 0);_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],et.prototype,"variantSelectorOpened",void 0);
_.N([_.n({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.Z("design:type",Boolean)],et.prototype,"skinToneHidden",void 0);_.N([_.n(),_.Z("design:type",_.nV)],et.prototype,"emojiManager",void 0);_.N([_.n(),_.Z("design:type",Object)],et.prototype,"emojiVariantSelector",void 0);_.N([_.n(),_.Z("design:type",Object)],et.prototype,"emojiMultiPersonSelector",void 0);
_.N([_.n({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.Z("design:type",Boolean)],et.prototype,"shouldUseStickyPreferences",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],et.prototype,"dataChanged",null);_.N([_.JO("data","selected"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],et.prototype,"updateCategoriesAndPlaceholder_",null);
_.N([_.Vg("yt-show-emoji-variant-selector"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],et.prototype,"onShowEmojiVariantSelector",null);_.N([_.Vg("yt-emoji-picker-select-category"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],et.prototype,"onSelectCategory_",null);_.N([_.Vg("yt-emoji-hover"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],et.prototype,"onEmojiHover_",null);
_.N([_.JO("skinTone"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],et.prototype,"skinToneChanged_",null);_.N([_.JO("search"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],et.prototype,"searchChanged_",null);_.N([_.nP({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],et);
_.p(et,"yt-emoji-picker-renderer",function(){if(bl7===void 0){var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;ey$===void 0&&(ey$=document.createElement("template"));var G=ey$;B.call(S,G.content.cloneNode(!0),f.content.firstChild);bl7=f}f=bl7;return f},{mode:2});var bE=function(){var f=_.I.apply(this,arguments)||this;f.emojiManager=_.I5;f.isDarkTheme=document.documentElement.hasAttribute("dark");f.selectedIndex=1;f.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return f};
_.q(bE,_.I);_.e=bE.prototype;_.e.handleEmojiCustomizationVisible=function(f){this.emojiPickerRenderer.selected=f;this.selectedIndex=1;f?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.e.emojiCustomizationSetChanged=function(){var f;(f=this.data)!=null&&f.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.m6(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.e.updateSaveButtonState=function(f){var S;(S=this.data)!=null&&S.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.KF("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:f}))};
_.e.emojiUrl=function(f){f=_.s0(this.emojiManager,f);if(!f)return"";var S;f=(S=f.image)==null?void 0:S.thumbnails;return _.bF(f,24)||""};
_.e.emojiAlt=function(f){var S=_.s0(this.emojiManager,f);if(!S)return f;var B,G,g,b=(S==null?void 0:(B=S.image)==null?void 0:(G=B.accessibility)==null?void 0:(g=G.accessibilityData)==null?void 0:g.label)||"";return b?b:S.isCustomEmoji?S.shortcuts[0]:S.emojiId||f};
_.e.emojiAriaLabel=function(f){var S,B;return((S=_.s0(this.emojiManager,f))==null?void 0:(B=S.shortcuts)==null?void 0:B[0])||f};
_.e.onEmojiClick=function(f){f.model.index!==0&&(this.selectedIndex=f.model.index)};
_.e.onEmojiSelect=function(f){f=f.detail;var S,B;((S=this.data)==null?0:S.emojiCustomizationSetEntityKey)&&((B=this.emojiCustomizationSet)==null?0:B.emojiId)&&f.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,f.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.KF("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,f.emojiId,this.selectedIndex)}))};
_.e.canEditEmoji=function(f,S,B){f=f.indexOf(S);return f===B||f===0||B===0?!1:!0};
_.e.getUpdatedEmojiIdList=function(f,S,B){var G=f.indexOf(S);f=[].concat(_.$d(f));G>=0&&(f[G]=f[B]);f[B]=S;return f};
_.y3.Object.defineProperties(bE,{template:{configurable:!0,enumerable:!0,get:function(){if(ECm===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;xtj===void 0&&(xtj=document.createElement("template"));var G=xtj;B.call(S,G.content.cloneNode(!0),f.content.firstChild);ECm=f}f=ECm;return f}}});
bE.prototype.onEmojiSelect=bE.prototype.onEmojiSelect;_.N([_.r(_.p5),_.Z("design:type",Object)],bE.prototype,"ytLiveChatReduxBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],bE.prototype,"ytActionHandlerBehavior",void 0);_.N([_.vF("yt-emoji-picker-renderer"),_.Z("design:type",Object)],bE.prototype,"emojiPickerRenderer",void 0);
_.N([_.n({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(f,S){return _.w9(f.entities,"emojiCustomizationSetEntity",S)},
observer:"emojiCustomizationSetChanged"}),_.Z("design:type",Object)],bE.prototype,"emojiCustomizationSet",void 0);_.N([_.n(),_.Z("design:type",Object)],bE.prototype,"originalEmojiSet",void 0);_.N([_.n(),_.Z("design:type",_.nV)],bE.prototype,"emojiManager",void 0);_.N([_.n(),_.Z("design:type",Object)],bE.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],bE.prototype,"isDarkTheme",void 0);_.N([_.n(),_.Z("design:type",Object)],bE.prototype,"selectedIndex",void 0);
_.N([_.Vg("yt-emoji-select"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],bE.prototype,"onEmojiSelect",null);_.N([_.nP({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],bE);var To1;var FtL;var VKN;var JUj;var m4=function(){var f=_.I.apply(this,arguments)||this;f.authorBadges=[];return f};
_.q(m4,_.I);_.e=m4.prototype;_.e.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.e.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]]"}}}}}};
_.e.dataChanged=function(){var f=owN(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",f)};
_.e.updateMessage=function(){var f=this.data.message,S=_.m9(_.m9(this.hostElement).querySelector("#message"));S.textContent="";f&&S.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(f))};
_.e.shouldSupportWholeItemClick=function(){return!0};
_.e.onShowOriginalClick=function(f){f.preventDefault();this.showOriginal=!0};
_.e.computeShowBar=function(f,S,B){return f&&S||B};
_.e.computeAuthorBadges=function(f){return f.authorBadges||[]};
_.e.computeAuthorIsOwner=function(f){return!!S$G(f.authorBadges,"owner")};
_.e.computeAuthorNameColor=function(f){var S;if(_.K("live_chat_author_name_color_usernames")&&(f==null?0:(S=f.authorName)==null?0:S.simpleText))return _.mDG(_.ztK(f.authorName.simpleText));if(_.K("live_chat_seed_color_usernames")&&(f==null?0:f.authorSeedColorArgb))return _.mDG(_.hZ(f.authorSeedColorArgb));if(_.K("live_chat_colored_usernames"))return"#cc0000";var B;return _.K("live_chat_simple_color_usernames")&&(f==null?0:(B=f.authorName)==null?0:B.simpleText)&&(f==null?0:f.authorUsernameColorLight)&&
(f==null?0:f.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.hZ(f.authorUsernameColorDark):_.hZ(f.authorUsernameColorLight):""};
m4.prototype.updateMessage=m4.prototype.updateMessage;m4.prototype.dataChanged=m4.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],m4.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.U0.YtLiveChatItemBehavior),_.Z("design:type",_.CV)],m4.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],m4.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],m4.prototype,"data",void 0);
_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],m4.prototype,"showOriginal",void 0);_.N([_.n({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],m4.prototype,"isDimmed",void 0);_.N([_.n({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],m4.prototype,"showBar",void 0);
_.N([_.n({computed:"computeAuthorBadges(data)"}),_.Z("design:type",Array)],m4.prototype,"authorBadges",void 0);_.N([_.n({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],m4.prototype,"authorIsOwner",void 0);_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],m4.prototype,"inCollapsedBanner",void 0);_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],m4.prototype,"inBanner",void 0);
_.N([_.n({value:_.K("live_chat_hide_avatars"),reflectToAttribute:!0}),_.Z("design:type",Boolean)],m4.prototype,"avatarHidden",void 0);_.N([_.n({computed:"computeAuthorNameColor(data)"}),_.Z("design:type",String)],m4.prototype,"authorNameColor",void 0);_.N([_.n(),_.Z("design:type",_.Nf)],m4.prototype,"participantsManager",void 0);_.N([_.n({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.Z("design:type",Object)],m4.prototype,"filledButtonOverrides",void 0);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],m4.prototype,"dataChanged",null);_.N([_.JO("data.message"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],m4.prototype,"updateMessage",null);_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],m4);
_.p(m4,"yt-live-chat-text-message-renderer",function(){if(JUj===void 0){var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;VKN===void 0&&(VKN=document.createElement("template"));var G=VKN;B.call(S,G.content.cloneNode(!0),f.content.firstChild);JUj=f}f=JUj;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var zJ=function(){var f=_.I.apply(this,arguments)||this;f.tonalButtonOverrides={type:"tonal",style:"overlay"};return f};
_.q(zJ,_.I);
zJ.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]]"}}}}}};
zJ.prototype.shouldSupportInlineActionButtons=function(){return!0};
zJ.prototype.shouldSupportWholeItemClick=function(){return!0};
_.y3.Object.defineProperties(zJ.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],zJ.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.U0.YtLiveChatItemBehavior),_.Z("design:type",_.CV)],zJ.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],zJ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],zJ.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",_.Nf)],zJ.prototype,"participantsManager",void 0);
_.N([_.n(),_.Z("design:type",Object)],zJ.prototype,"tonalButtonOverrides",void 0);_.N([_.n({reflectToAttribute:!0}),_.k("data.infoDialogButton"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],zJ.prototype,"hasInfoDialogButton",null);_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],zJ);
_.p(zJ,"yt-live-chat-auto-mod-message-renderer",function(){if(FtL===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;To1===void 0&&(To1=document.createElement("template"));var G=To1;B.call(S,G.content.cloneNode(!0),f.content.firstChild);FtL=f}f=FtL;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var Pjm;var vs$;var Ktm;var dh7=function(){return _.I.apply(this,arguments)||this};
_.q(dh7,_.I);_.N([_.n(),_.Z("design:type",Object)],dh7.prototype,"data",void 0);_.N([_.C({is:"ytd-factoid-renderer",disableElementRegistration:!0})],dh7);
_.p(dh7,"ytd-factoid-renderer",function(){if(Ktm!==void 0)return Ktm;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Ktm=f},{mode:1});var Ru=function(){return _.I.apply(this,arguments)||this};
_.q(Ru,_.I);Ru.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.N([_.n(),_.Z("design:type",Object)],Ru.prototype,"data",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Ru.prototype,"ytRendererstamperBehavior",void 0);_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],Ru);
_.p(Ru,"yt-live-chat-channel-activity-reputation-renderer",function(){if(vs$===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;Pjm===void 0&&(Pjm=document.createElement("template"));var G=Pjm;B.call(S,G.content.cloneNode(!0),f.content.firstChild);vs$=f}f=vs$;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var il1;var Hlg;var Xs=function(){return _.I.apply(this,arguments)||this};
_.q(Xs,_.I);Xs.prototype.ready=function(){var f=document.querySelector("yt-live-chat-app");f&&f.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Xs.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Boolean)],Xs.prototype,"menuFocused",void 0);_.N([_.n(),_.Z("design:type",Object)],Xs.prototype,"data",void 0);_.N([_.r(_.U0.YtLiveChatItemBehavior),_.Z("design:type",_.CV)],Xs.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],Xs);
_.p(Xs,"yt-live-chat-donation-announcement-renderer",function(){if(Hlg===void 0){var f=document.createElement("template");_.Y(f,'\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>');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;il1===void 0&&(il1=document.createElement("template"));var G=il1;B.call(S,G.content.cloneNode(!0),f.content.firstChild);Hlg=f}f=Hlg;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var qB1;var $hL,QBN=function(){if($hL!==void 0)return $hL;var f=document.createElement("template");_.Y(f,'\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>');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;qB1===void 0&&(qB1=document.createElement("template"));var G=qB1;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return $hL=f};var wD=function(){return _.I.apply(this,arguments)||this};
_.q(wD,_.I);_.y3.Object.defineProperties(wD,{template:{configurable:!0,enumerable:!0,get:function(){return QBN()}}});
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],wD.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],wD.prototype,"data",void 0);_.N([_.nP({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],wD);_.p(wD,"yt-live-chat-empty-feed-view-model",function(){return QBN()},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var YBN;var rUm;var hl=function(){return _.I.apply(this,arguments)||this};
_.q(hl,_.I);hl.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"}}}}}};
_.y3.Object.defineProperties(hl.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var f,S;return{runs:[{text:(f=this.data)==null?void 0:(S=f.channelName)==null?void 0:S.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var f=[],S;if((S=this.data)==null||!S.channelBadges)return f;var B;S=_.m((B=this.data)==null?void 0:B.channelBadges);for(B=S.next();!B.done;B=S.next()){B=_.H(B.value,$Mo);var G=void 0,g=void 0;if((G=B)==null?0:(g=G.badgeImage)==null?0:g.sources)G=void 0,g={liveChatAuthorBadgeRenderer:{tooltip:B.tooltip,accessibility:{accessibilityData:{label:(G=_.H(B.rendererContext,_.H1))==null?void 0:G.label}}}},B.badgeImage.sources[0].clientResource?g.liveChatAuthorBadgeRenderer.icon=
{iconType:B.badgeImage.sources[0].clientResource.imageName}:g.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:B.badgeImage.sources},f.push(g)}return f}}});
_.N([_.n(),_.Z("design:type",Object)],hl.prototype,"data",void 0);_.N([_.k("data.channelName"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],hl.prototype,"channelName",null);_.N([_.k("data.channelBadges"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],hl.prototype,"channelBadges",null);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],hl.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],hl);
_.p(hl,"yt-live-chat-identity-view-model",function(){if(rUm===void 0){var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;YBN===void 0&&(YBN=document.createElement("template"));var G=YBN;B.call(S,G.content.cloneNode(!0),f.content.firstChild);rUm=f}f=rUm;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var jB1;var Olj;var xho;var Es7;var TJ=function(){var f=_.I.apply(this,arguments)||this;f.hidden=!1;f.supportsInlineActionButtons=!0;return f};
_.q(TJ,_.I);TJ.prototype.ready=function(){var f;((f=document.querySelector("yt-live-chat-app"))==null?0:f.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
TJ.prototype.dataChanged=function(f){var S=(0,_.wv)(_.m9(this.hostElement).querySelector("#detail-text"));S.textContent="";(f==null?0:f.detailText)&&S.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(f.detailText))};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],TJ.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.U0.YtLiveChatItemBehavior),_.Z("design:type",_.CV)],TJ.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],TJ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n({observer:"dataChanged"}),_.Z("design:type",Object)],TJ.prototype,"data",void 0);
_.N([_.n({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.Z("design:type",Object)],TJ.prototype,"hidden",void 0);_.N([_.C({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],TJ);
_.p(TJ,"yt-live-chat-legacy-paid-message-renderer",function(){if(Es7===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;xho===void 0&&(xho=document.createElement("template"));var G=xho;B.call(S,G.content.cloneNode(!0),f.content.firstChild);Es7=f}f=Es7;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var Lt8;var kU1;var nso={},Fs=function(){return _.dv.apply(this,arguments)||this};
_.q(Fs,_.dv);Fs.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Fs.prototype.onLiveChatMembershipItemBehaviorClick=Fs.prototype.onLiveChatMembershipItemBehaviorClick;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Fs.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Fs.prototype,"data",void 0);_.N([_.Vg("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],Fs.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.N([_.iu()],Fs);
nso.YtLiveChatMembershipItemBehavior=[Fs.prototype,_.c.YtRendererBehavior];var Vs=function(){var f=_.I.apply(this,arguments)||this;f.supportsInlineActionButtons=!0;f.hasPrimaryHeaderText=!1;f.showOnlyHeader=!1;f.authorBadges=[];f.modern=_.K("web_button_rework_with_live");f.buttonOverrides={style:"overlay",type:"filled"};return f};
_.q(Vs,_.I);_.e=Vs.prototype;_.e.shouldSupportInlineActionButtons=function(){return!0};
_.e.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.e.ready=function(){var f=document.querySelector("yt-live-chat-app");f&&f.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.e.messageChanged=function(){var f=this.data.message,S=(0,_.wv)(_.m9(this.hostElement).querySelector("#message"));S.textContent="";f&&S.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(f))};
_.e.computeHasPrimaryHeaderText=function(f){return!(!f||!f.headerPrimaryText)};
_.e.computeShowOnlyHeader=function(f,S){return this.isMessageEmpty(f,S)};
_.e.computeAuthorBadges=function(f){return f.authorBadges||[]};
_.e.isMessageEmpty=function(f,S){return!f||f.empty?!0:!f.message&&!f.inputField&&!S};
_.e.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.e.getInputElement=function(){return _.m9(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.e.inputFocus=function(){var f=this.getInputElement();f&&f.focus()};
_.e.inputInsertEmoji=function(f){var S=this.getInputElement();S&&S.insertEmoji(f)};
_.e.inputMessage=function(){var f=this.getInputElement();return f&&this.data.inputField?(f.completeEmojis(),_.A3(f.liveChatRichMessageInput)):null};
_.e.onFooterButtonClick=function(){this.data.footerButton&&_.ew(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.e.shouldSupportWholeItemClick=function(){return!0};
Vs.prototype.isDeletedChanged=Vs.prototype.isDeletedChanged;Vs.prototype.messageChanged=Vs.prototype.messageChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Vs.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.U0.YtLiveChatItemBehavior),_.Z("design:type",_.CV)],Vs.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.r(nso.YtLiveChatMembershipItemBehavior),_.Z("design:type",Object)],Vs.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Vs.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Vs.prototype,"data",void 0);_.N([_.n({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],Vs.prototype,"hasPrimaryHeaderText",void 0);_.N([_.n({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.Z("design:type",Object)],Vs.prototype,"showOnlyHeader",void 0);
_.N([_.n({computed:"computeAuthorBadges(data)"}),_.Z("design:type",Array)],Vs.prototype,"authorBadges",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Vs.prototype,"modern",void 0);_.N([_.JO("data.message"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Vs.prototype,"messageChanged",null);_.N([_.JO("isDeleted"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Vs.prototype,"isDeletedChanged",null);
_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],Vs);
_.p(Vs,"yt-live-chat-membership-item-renderer",function(){if(kU1===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;Lt8===void 0&&(Lt8=document.createElement("template"));var G=Lt8;B.call(S,G.content.cloneNode(!0),f.content.firstChild);kU1=f}f=kU1;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var sBm;var Dhm;var Jl=function(){return _.I.apply(this,arguments)||this};
_.q(Jl,_.I);Jl.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Jl.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Jl.prototype,"data",void 0);_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],Jl);
_.p(Jl,"yt-live-chat-mode-change-message-renderer",function(){if(Dhm===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;sBm===void 0&&(sBm=document.createElement("template"));var G=sBm;B.call(S,G.content.cloneNode(!0),f.content.firstChild);Dhm=f}f=Dhm;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var I_8;var Uh$;var PX=function(){return _.I.apply(this,arguments)||this};
_.q(PX,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],PX.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.U0.YtLiveChatItemBehavior),_.Z("design:type",_.CV)],PX.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],PX.prototype,"data",void 0);_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],PX);
_.p(PX,"yt-live-chat-moderation-message-renderer",function(){if(Uh$===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;I_8===void 0&&(I_8=document.createElement("template"));var G=I_8;B.call(S,G.content.cloneNode(!0),f.content.firstChild);Uh$=f}f=Uh$;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var CjX;var pMm;var vX=function(){var f=_.I.apply(this,arguments)||this;f.modern=_.K("web_button_rework");return f};
_.q(vX,_.I);vX.prototype.onClick=function(){var f;if((f=this.data)!=null&&f.onClickCommand){var S;_.JZ.instance.resolveCommand((S=this.data)==null?void 0:S.onClickCommand)}};
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],vX.prototype,"modern",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],vX.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.p5),_.Z("design:type",Object)],vX.prototype,"ytLiveChatReduxBehavior",void 0);_.N([_.r(_.U0.YtLiveChatItemBehavior),_.Z("design:type",_.CV)],vX.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],vX.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],vX.prototype,"data",void 0);_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],vX);
_.p(vX,"yt-live-chat-offer-click-count-message-renderer",function(){if(pMm===void 0){var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;CjX===void 0&&(CjX=document.createElement("template"));var G=CjX;B.call(S,G.content.cloneNode(!0),f.content.firstChild);pMm=f}f=pMm;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var AUX;var Nog=function(){return _.I.apply(this,arguments)||this};
_.q(Nog,_.I);_.N([_.n(),_.Z("design:type",Object)],Nog.prototype,"data",void 0);_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],Nog);
_.p(Nog,"yt-live-chat-placeholder-item-renderer",function(){if(AUX===void 0){var f=document.createElement("template");_.Y(f,"\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");f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);AUX=f}f=AUX;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var MK$;var Zl1;var tKj=new ZK(7),KR=function(){var f=_.I.apply(this,arguments)||this;f.data={};return f};
_.q(KR,_.I);KR.prototype.dataChanged=function(){var f;((f=this.data)==null?0:f.class)&&_.Rl(this.hostElement,this.data.class,!0);var S;((S=this.oldData)==null?0:S.class)&&_.Rl(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
KR.prototype.computeTimestampString=function(f){return tKj.format(new Date(f/1E3))};
KR.prototype.dataChanged=KR.prototype.dataChanged;_.N([_.n(),_.Z("design:type",Object)],KR.prototype,"data",void 0);_.N([_.n({computed:"computeTimestampString(data.timestampUsec)"}),_.Z("design:type",String)],KR.prototype,"timestampString",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],KR.prototype,"dataChanged",null);_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],KR);
_.p(KR,"yt-live-chat-server-error-message",function(){if(Zl1===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;MK$===void 0&&(MK$=document.createElement("template"));var G=MK$;B.call(S,G.content.cloneNode(!0),f.content.firstChild);Zl1=f}f=Zl1;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var upX;var a_$;var dD=function(){var f=_.I.apply(this,arguments)||this;f.defaultToFilledIcon=!1;return f};
_.q(dD,_.I);dD.prototype.computeHasPrimaryColorIcon=function(f){return f==="SPARK"||f==="SPONSORSHIP_STAR"};
dD.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],dD.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.U0.YtLiveChatItemBehavior),_.Z("design:type",_.CV)],dD.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],dD.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],dD.prototype,"defaultToFilledIcon",void 0);_.N([_.n(),_.Z("design:type",Object)],dD.prototype,"data",void 0);
_.N([_.n({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],dD.prototype,"hasPrimaryColorIcon",void 0);_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],dD);
_.p(dD,"yt-live-chat-viewer-engagement-message-renderer",function(){if(a_$===void 0){var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;upX===void 0&&(upX=document.createElement("template"));var G=upX;B.call(S,G.content.cloneNode(!0),f.content.firstChild);a_$=f}f=a_$;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var yUo;var iE=function(){var f=_.I.apply(this,arguments)||this;f.modernUpdate=!1;f.buttonStyle="overlay";f.buttonType="filled";return f};
_.q(iE,_.I);iE.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
iE.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],iE.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],iE.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],iE.prototype,"modernUpdate",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",String)],iE.prototype,"buttonStyle",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",String)],iE.prototype,"buttonType",void 0);
_.N([_.C({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],iE);
_.p(iE,"ytd-ad-hover-text-button-renderer",function(){if(yUo!==void 0)return yUo;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return yUo=f},{mode:1});var WtN;var HX=function(){var f=_.I.apply(this,arguments)||this;f.buttonOverrides={size:"XS"};f.modern=_.K("web_button_rework");return f};
_.q(HX,_.I);HX.prototype.onHelpTap=function(f){this.data&&this.data.informationDialog&&(_.ew(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),f.preventDefault(),f.stopPropagation())};
_.N([_.n(),_.Z("design:type",Object)],HX.prototype,"buttonOverrides",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],HX.prototype,"modern",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],HX.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],HX.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],HX);
_.p(HX,"ytd-live-chat-purchased-product-message-renderer",function(){if(WtN!==void 0)return WtN;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return WtN=f},{mode:1});var cUo;var l_7;var qr=function(){var f=_.I.apply(this,arguments)||this;f.isContainerDeleted=!1;return f};
_.q(qr,_.I);qr.prototype.onContextMenuClick=function(f){this.ytLiveChatItemBehavior.showContextMenu(f)};
qr.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))};
qr.prototype.isContainerDeletedChanged=qr.prototype.isContainerDeletedChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],qr.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.U0.YtLiveChatItemBehavior),_.Z("design:type",_.CV)],qr.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],qr.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],qr.prototype,"isContainerDeleted",void 0);
_.N([_.n(),_.Z("design:type",String)],qr.prototype,"deletedStateMessage",void 0);_.N([_.JO("isContainerDeleted"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qr.prototype,"isContainerDeletedChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],qr);
_.p(qr,"ytd-sponsorships-live-chat-header-renderer",function(){if(l_7!==void 0)return l_7;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return l_7=f},{mode:1});var $P=function(){var f=_.I.apply(this,arguments)||this;f.modern=_.K("web_button_rework_with_live");f.buttonOverrides={style:"overlay",type:"filled"};return f};
_.q($P,_.I);$P.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]]"}}}}}};
$P.prototype.onCtaButtonClick=function(){var f,S=_.H((f=this.data)==null?void 0:f.optInPrompt,_.IR);if(f=this.maybeGetButtonCommand(S)){var B;(B=_.ik())==null||B.clickCommand(f)}};
$P.prototype.maybeGetButtonCommand=function(f){return!f||!f.command||_.H(f.command,S2o)===void 0&&_.H(f.command,of6)===void 0?null:f.command};
$P.prototype.shouldHideOptinPrompt=function(f,S){return!f||S};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],$P.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.U0.YtLiveChatItemBehavior),_.Z("design:type",_.CV)],$P.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],$P.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],$P.prototype,"modern",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],$P);
_.p($P,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(cUo!==void 0)return cUo;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return cUo=f},{mode:1});var f5m;var Qs=function(){return _.I.apply(this,arguments)||this};
_.q(Qs,_.I);Qs.prototype.onContextMenuClick=function(f){this.ytLiveChatItemBehavior.showContextMenu(f)};
Qs.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))};
Qs.prototype.isDeletedChanged=Qs.prototype.isDeletedChanged;_.N([_.r(_.U0.YtLiveChatItemBehavior),_.Z("design:type",_.CV)],Qs.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Qs.prototype,"data",void 0);_.N([_.JO("isDeleted"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Qs.prototype,"isDeletedChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],Qs);
_.p(Qs,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(f5m!==void 0)return f5m;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return f5m=f},{mode:1});var YP=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return f};
_.q(YP,_.I);_.e=YP.prototype;
_.e.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"}}}};
_.e.handleLiveChatAction=function(f){_.H(f,VA6)?this.handleMarkChatItemAsDeletedAction(_.H(f,VA6)):_.H(f,F51)&&this.handleRemoveChatItemAction(_.H(f,F51))};
_.e.handleLiveChatActions=function(f){f.forEach(this.handleLiveChatAction,this)};
_.e.handleMarkChatItemAsDeletedAction=function(f){var S=this,B;((B=this.data)==null?0:B.items)&&this.data.items.forEach(function(G,g){var b=Object.keys(G)[0];Object.values(G)[0].id===f.targetItemId&&S.markAsDeleted("data.items",g,b,f.deletedStateMessage,f.showOriginalContentMessage)})};
_.e.handleRemoveChatItemAction=function(f){var S=this,B;((B=this.data)==null?0:B.items)&&this.data.items.forEach(function(G,g){Object.values(G)[0].id===f.targetItemId&&S.splice("data.items",g,1)})};
_.e.markAsDeleted=function(f,S,B,G,g){f=[f,S,B].join(".");this.set(f+".deletedStateMessage",G);this.set(f+".showOriginalContentMessage",g)};
_.N([_.n(),_.Z("design:type",Object)],YP.prototype,"data",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],YP.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],YP.prototype,"ytActionHandlerBehavior",void 0);_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],YP);
_.p(YP,"yt-live-chat-item-display-list-renderer",function(){if(Olj===void 0){var f=document.createElement("template");_.Y(f,'\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>');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;jB1===void 0&&(jB1=document.createElement("template"));var G=jB1;B.call(S,G.content.cloneNode(!0),f.content.firstChild);Olj=f}f=Olj;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var oOm;var S3v,B_g=function(){if(S3v!==void 0)return S3v;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;oOm===void 0&&(oOm=document.createElement("template"));var G=oOm;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return S3v=f};var rD=function(){var f=_.I.apply(this,arguments)||this;f.isHeader=!1;return f};
_.q(rD,_.I);rD.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.y3.Object.defineProperties(rD,{template:{configurable:!0,enumerable:!0,get:function(){return B_g()}}});
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],rD.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],rD.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],rD.prototype,"isHeader",void 0);_.N([_.nP({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],rD);_.p(rD,"yt-live-chat-item-display-renderer",function(){return B_g()},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var GzL,gOg,RMo,zMX;
GzL={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}};gOg={home:"eohps",search:"eosps",watch:"eowps"};_.eMN=["watch","search","home"];
_.jt=function(){this.JSC$12236_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$12236_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.nL("PRECONSTRUCTION_DELAY",0);this.signals_=_.UX();this.targetPage_=""};
_.jt.prototype.init=function(f,S){f=f===void 0?"":f;S=S===void 0?null:S;if(this.JSC$12236_isInitialized_)this.abort();else if(this.JSC$12236_isInitialized_=!0,f&&_.b0m(this,f),S){var B=_.CD(this.signals_,"pcl")?0:10,G=function(){for(var g=0,b;b=_.eMN[g++];)b!=f&&b!=S&&this.pendingPages_.push(b);_.mnL(this)}.bind(this);
this.signals_.parkOrScheduleJob(G,B,"pcl")}};
_.jt.prototype.abort=function(){this.fragmentJobId_&&(_.xJ.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);zMX(this)};
_.b0m=function(f,S){f.JSC$12236_isInitialized_&&!f.targetPage_&&(f.targetPage_=S,RMo(f,S),f.isInitialPass_=!1,RMo(f,S),f.signals_.processSignal(gOg[f.targetPage_]),zMX(f),_.mnL(f))};
_.mnL=function(f){f.pendingPages_.length&&!f.pagePreparerJobId_&&(f.pagePreparerJobId_=_.q6(_.xJ,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.b0m(this,this.pendingPages_.shift())}.bind(f),f.DEFAULT_DELAY_))};
RMo=function(f,S){if(S=GzL[S])for(var B in S){var G=!1,g=B;B.charAt(0)=="~"&&(G=!0,g=B.substring(1));var b=S[B];b=typeof b=="object"?b:{count:b};S[B]=b;b.componentName=g;b.count>0&&(f.isInitialPass_?G||f.isSeenDuringInitialPass_[g]||(f.JSC$12236_queue_.push({componentName:g,count:1,signals:b.signals}),f.isSeenDuringInitialPass_[g]=!0,b.count--):f.JSC$12236_queue_.push(b))}};
zMX=function(f){f.JSC$12236_queue_.length=0;f.targetPage_="";f.isInitialPass_=!0;f.signals_.processSignal("eop")};
_.jt.getInstance=function(){return _.RQ(_.jt)};var XN1=function(){this.signals=_.UX();this.init()};
XN1.prototype.startPreconstruction=function(){_.jt.getInstance().init(_.s6("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
XN1.prototype.init=function(){wNX(this);window.Polymer&&ktm&&Z5T();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var f=_.S1.ytcsi;if(f&&f.gt&&(f=f.gt())&&f.tick&&(f.tick.aft>0||f.tick.pbs>0)&&(_.s6("IS_HOMEPAGE_COLD")||_.s6("IS_RESULTS_PAGE_COLD")||_.s6("IS_WATCH_PAGE_COLD"))){hMN(this);break a}mzj(ZuM,this.onNotifications,this)}};
var wNX=function(f){var S=function(){f.signals.processSignal("dl")};
document.readyState==="complete"?(_.CL(Error("th"),"WARNING"),S()):_.DoQ(window,"load",S)};
XN1.prototype.onNotifications=function(f){f.timer||(_.s6("IS_HOMEPAGE_COLD")||_.s6("IS_RESULTS_PAGE_COLD")||_.s6("IS_WATCH_PAGE_COLD"))&&hMN(this)};
var hMN=function(f){f.signals.parkOrScheduleJob(function(){f.signals.processSignal("eocs")},10,"eor")};
new XN1;var Ok,T_g=function(){return _.dv.apply(this,arguments)||this};
_.q(T_g,_.dv);_.e=T_g.prototype;_.e.enableActiveViewMeasurement=function(f){if(this.isActiveViewEnabled(f)){var S=this.getUrlPrefixesFromCommand(f.viewableCommands);f=this.getUrlPrefixesFromCommand(f.endOfSessionCommands);if(!Ok){var B=_.Gt("custom_active_view_tos_timeout_ms");Ok=B>0&&B!==36E5?new i6G(this.getVersion(),B):new i6G(this.getVersion())}qSV(Ok,this.hostElement);$U1(Ok,this.hostElement,S,f)}};
_.e.stopActiveViewMeasurement=function(){Ok&&qSV(Ok,this.hostElement)};
_.e.isActiveViewEnabled=function(f){return!!f&&(this.hasAtLeastOneUrl(f.viewableCommands)||this.hasAtLeastOneUrl(f.endOfSessionCommands))};
_.e.hasAtLeastOneUrl=function(f){return!!f&&f.length>0&&f[0].loggingUrls!=null&&f[0].loggingUrls.length>0};
_.e.getVersion=function(){var f=_.nL("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(f==null?void 0:f.length)===2?f[1]:null};
_.e.getUrlPrefixesFromCommand=function(f){if(!f)return[];var S=[];f=_.m(f);for(var B=f.next();!B.done;B=f.next())if(B=B.value,B.loggingUrls){B=_.m(B.loggingUrls);for(var G=B.next();!G.done;G=B.next())G=G.value,G.baseUrl&&S.push(G.baseUrl)}return S};
_.N([_.iu()],T_g);var xP=[T_g.prototype];var FBm=function(){return _.dv.apply(this,arguments)||this};
_.q(FBm,_.dv);_.y3.Object.defineProperties(FBm.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.K("enable_entity_store_from_dependency_injection")?_.al():_.W2()}}});
_.N([_.iu()],FBm);_.Ek=[L5.prototype,FBm.prototype];var VB$=["ytd-rich-shelf-renderer"],LR=function(){var f=_.dv.apply(this,arguments)||this;f._noAccessors=!0;f.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";f.followUpDialogPromise=null;f.followUpDialogPromiseResolve=null;f.followUpDialogPromiseReject=null;return f};
_.q(LR,_.dv);_.e=LR.prototype;_.e.dismissibleItemIsDismissedChanged_=function(f){_.K("kevlar_fluid_dismiss")&&(f?_.ew(this.hostElement,"yt-dismissible-item-dismissed"):_.ew(this.hostElement,"yt-dismissible-item-undismissed"))};
_.e.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.e.dismissibleItemReset_=function(){var f=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 _.TM(function(S,B){f.followUpDialogPromiseResolve=S;f.followUpDialogPromiseReject=B});
_.ew(this.hostElement,"yt-enable-lockup-interaction")};
_.e.dismissibleItemOnYtServiceRequestSent_=function(f,S){S.actions&&this.dismissibleItemProcessActions(S.actions,f)};
_.e.dismissibleItemOnRequestSent=function(f){if(_.K("web_button_rework"))for(var S=_.m(f.detail),B=S.next();!B.done;B=S.next()){var G=void 0;(B=(G=_.H(B.value,_.Fh))==null?void 0:G.actions)&&this.dismissibleItemProcessActions(B,f)}};
_.e.dismissibleItemOnCommandSent=function(f,S){S&&this.dismissibleItemProcessActions(S,f)};
_.e.setAndGetDismissedContentId=function(f){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+f};
_.e.replayDismissAction=function(f){this.dismissibleItemProcessActions([f])};
_.e.dismissibleItemProcessActions=function(f,S){for(var B=0;B<f.length;B++){var G=f[B],g=void 0;((g=_.H(G,_.hf))==null?0:g.commands)&&this.dismissibleItemProcessActions(_.H(G,_.hf).commands,S);if(_.H(G,_.$f)){if(g=_.H(G,_.$f),!g.replaceParentSection||VB$.includes(this.hostElement.nodeName.toLowerCase()))_.K("web_see_fewer_shorts_reactive_dismissal")&&g.groupDismissal&&H0s(this,g.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(g),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.KF("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:G})),G=void 0,(G=S)==null||G.stopPropagation()}else if(_.H(G,$_j))this.dismissibleItemHandleHideEnclosingAction_(),G=void 0,(G=S)==null||G.stopPropagation();else if(_.H(G,IIo))_.K("web_see_fewer_shorts_reactive_dismissal")&&(G=_.H(G,IIo),g=void 0,((g=G)==null?0:g.targetGroupId)&&H0s(this,{targetGroupId:G.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.KF("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),G=void 0,(G=S)==null||G.stopPropagation();else if(_.H(G,_.Fh))(G=_.H(G,_.Fh).actions)&&_.Xh(this.hostElement,G,this.hostElement),G=void 0,(G=S)==null||G.stopPropagation();else{var b=g=void 0;((g=_.H(G,_.UU))==null?void 0:g.signal)!=="TELL_US_WHY"||((b=_.H(G,_.UU))==null?0:b.targetId)&&_.K("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),G=void 0,(G=S)==null||G.stopPropagation())}}};
_.e.dismissibleItemOnYtServiceRequestCompleted_=function(f,S){var B=this.get("feedbackResponses.0.followUpDialog",S.data);B?this.followUpDialogPromiseResolve(B):S.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(S.actions,f)};
_.e.dismissibleItemHandleReplaceEnclosingAction_=function(f){this.dismissedRenderer=f.item;this.isDismissed=!0;var S=null;(S=_.m9(this.hostElement).querySelector("#dismissed"))&&_.ui(this,function(){_.uP(S)});
_.ew(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.e.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.e.dismissibleItemHandleUndoFeedbackAction_=function(){_.ew(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.e.dismissibleItemHandleTellUsWhySignalAction_=function(){var f=this;this.followUpDialogPromise.then(function(S){f.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:S}})})};
LR.prototype.dismissibleItemOnYtServiceRequestCompleted_=LR.prototype.dismissibleItemOnYtServiceRequestCompleted_;LR.prototype.dismissibleItemOnCommandSent=LR.prototype.dismissibleItemOnCommandSent;LR.prototype.dismissibleItemOnRequestSent=LR.prototype.dismissibleItemOnRequestSent;LR.prototype.dismissibleItemOnYtServiceRequestSent_=LR.prototype.dismissibleItemOnYtServiceRequestSent_;LR.prototype.dismissibleItemDataChanged_=LR.prototype.dismissibleItemDataChanged_;
LR.prototype.dismissibleItemIsDismissedChanged_=LR.prototype.dismissibleItemIsDismissedChanged_;_.N([_.r(_.a5),_.Z("design:type",Object)],LR.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],LR.prototype,"ytdReduxBehavior",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],LR.prototype,"isDismissed",void 0);_.N([_.n(),_.Z("design:type",Object)],LR.prototype,"dismissedRenderer",void 0);
_.N([_.JO("isDismissed"),_.Z("design:type",Function),_.Z("design:paramtypes",[Boolean]),_.Z("design:returntype")],LR.prototype,"dismissibleItemIsDismissedChanged_",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],LR.prototype,"dismissibleItemDataChanged_",null);
_.N([_.Vg("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.N1]),_.Z("design:returntype")],LR.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.N([_.Vg("yt-service-request-sent-button-renderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],LR.prototype,"dismissibleItemOnRequestSent",null);
_.N([_.Vg("yt-dismissible-item-action"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Array]),_.Z("design:returntype")],LR.prototype,"dismissibleItemOnCommandSent",null);_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.cw]),_.Z("design:returntype")],LR.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.N([_.iu()],LR);_.kP=[_.a5,_.Ek,LR.prototype];var nR=function(){var f=_.dv.apply(this,arguments)||this;f.disableGridStateAware=!1;f.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};f.currentGridClass="";return f};
_.q(nR,_.dv);nR.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.ui(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var f=this.gridStateAwareGetElement();_.Rl(f,"grid",!0)}};
nR.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
nR.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.m9(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
nR.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var f="grid-disabled";else{f=_.eEN.getInstance();var S=this.get("pageSubtype");f=S&&BnX.includes(S)?"grid-disabled":f.currentSnapState_?f.currentSnapState_.className:null}(S=this.gridStateAwareGetElement())&&f!==this.currentGridClass&&(f&&_.Rl(S,f,!0),this.currentGridClass&&_.Rl(S,this.currentGridClass,!1),this.currentGridClass=f)};
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],nR.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",String)],nR.prototype,"gridStateAwareSizingElementSelector",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],nR.prototype,"disableGridStateAware",void 0);_.N([_.iu()],nR);_.sk=[nR.prototype,_.b3.YtActionHandlerBehavior];_.DV=new _.Sn("GUIDE_TOKEN");var Uk;_.Iu={};Uk=function(){var f=_.dv.apply(this,arguments)||this;f.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 f};
_.q(Uk,_.dv);_.e=Uk.prototype;_.e.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.e.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var f=_.oy().resolve(_.fN(_.DV));f&&(this.guidePersistentAndVisible=f.getGuidePersistentAndVisible(),this.activeEndpoint=f.getActiveEndpoint(),this.guideOpened=f.getGuideOpened(),this.miniGuideVisible=f.getMiniGuideVisible())};
_.e.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.e.handleGuideStateAction=function(f){this.guidePersistentAndVisible=f};
_.e.handleMiniGuideStateAction=function(f){this.miniGuideVisible=f};
_.e.handleGuideOpenedAction=function(f){this.guideOpened=f};
_.e.handleActiveEndpointAction=function(f){this.activeEndpoint=f};
Uk.prototype.onActiveEndpointChange=Uk.prototype.onActiveEndpointChange;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],Uk.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Uk.prototype,"guidePersistentAndVisible",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Uk.prototype,"miniGuideVisible",void 0);_.N([_.n(),_.Z("design:type",Object)],Uk.prototype,"activeEndpoint",void 0);
_.N([_.JO("activeEndpoint"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Uk.prototype,"onActiveEndpointChange",null);_.N([_.n(),_.Z("design:type",Boolean)],Uk.prototype,"guideOpened",void 0);_.N([_.iu()],Uk);_.Iu.YtdGuideStateAwareBehavior=[];_.Iu.YtdGuideStateAwareBehavior.push(Uk.prototype,_.b3.YtActionHandlerBehavior);var JF7=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],CR=function(){var f=_.dv.apply(this,arguments)||this;f.hoverJobId=0;f.JSC$12267_touched=!1;return f};
_.q(CR,_.dv);_.e=CR.prototype;_.e.created=function(){this.useExpandableTooltip=!JF7.includes(this.is)};
_.e.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.e.detached=function(){this.useExpandableTooltip=!1};
_.e.lockupOnDown=function(f){this.interactionElement&&!_.lF(_.ct(f),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.e.lockupOnUp=function(f){this.interactionElement&&!_.lF(_.ct(f),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.e.onTouchStart=function(){this.JSC$12267_touched=!0};
_.e.lockupOnMouseEnter=function(){var f=this,S=_.Gt("kevlar_lockup_hover_delay",-1);this.JSC$12267_touched&&S>=0?(_.xJ.cancelJob(this.hoverJobId),this.hoverJobId=_.xJ.addJob(function(){f.lockupIsHovered=!0},8,S),this.JSC$12267_touched=!1):this.lockupIsHovered=!0};
_.e.lockupOnMouseLeave=function(){this.hoverJobId&&(_.xJ.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.e.lockupOnPopupClosed=function(f,S){var B;((B=S.popupRenderer)==null?void 0:B.is)==="ytd-menu-popup-renderer"&&(f=S.popupRenderer.veData,S=_.xc(),f&&S&&_.tf(S,[f]))};
_.e.lockupOnLockupRequested=function(f){var S=f.detail.videoIds[0],B;f.detail&&S===((B=this.data)==null?void 0:B.videoId)&&(f.detail.returnValue=[this.data])};
_.e.lockupOnYtServiceRequestSent=function(f,S){if(f=S.actions)for(var B=0;B<f.length;B++){var G=f[B];if(G.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&S.ajaxPromise){var g=void 0,b=(g=_.H(S.endpoint,_.nW))==null?void 0:g.playlistId;g=void 0;G=(g=G.removedVideoId)!=null?g:"";rgm(_.A0(),G,b)}else G.action==="ACTION_REMOVE_VIDEO"&&S.ajaxPromise&&(b=void 0,G=(b=G.setVideoId)!=null?b:"",_.j_m(_.A0(),G))}};
_.e.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.e.lockupOnLockupEnabled=function(){if(!this.$){var f=_.oy().resolve(_.o8).getCurrentPage(),S=this.getParentRenderer?this.getParentRenderer():void 0;_.Lg(new _.dO("component not ready",this.is,this.isAttached,f==null?void 0:f.is,S==null?void 0:S.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
CR.prototype.lockupOnLockupEnabled=CR.prototype.lockupOnLockupEnabled;CR.prototype.lockupOnLockupDisabled=CR.prototype.lockupOnLockupDisabled;CR.prototype.lockupOnYtServiceRequestSent=CR.prototype.lockupOnYtServiceRequestSent;CR.prototype.lockupOnLockupRequested=CR.prototype.lockupOnLockupRequested;CR.prototype.lockupOnPopupClosed=CR.prototype.lockupOnPopupClosed;CR.prototype.lockupOnMouseLeave=CR.prototype.lockupOnMouseLeave;CR.prototype.lockupOnMouseEnter=CR.prototype.lockupOnMouseEnter;
CR.prototype.onTouchStart=CR.prototype.onTouchStart;CR.prototype.lockupOnUp=CR.prototype.lockupOnUp;CR.prototype.lockupOnDown=CR.prototype.lockupOnDown;_.N([_.n(),_.Z("design:type",Object)],CR.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Boolean)],CR.prototype,"lockupIsHovered",void 0);_.N([_.n(),_.Z("design:type",Boolean)],CR.prototype,"lockupTouchTriggered",void 0);_.N([_.n(),_.Z("design:type",Boolean)],CR.prototype,"useExpandableTooltip",void 0);
_.N([_.vF("#interaction"),_.Z("design:type",Object)],CR.prototype,"interactionElement",void 0);_.N([_.Vg("down"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],CR.prototype,"lockupOnDown",null);_.N([_.Vg("up"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],CR.prototype,"lockupOnUp",null);
_.N([_.Vg("touchstart"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],CR.prototype,"onTouchStart",null);_.N([_.Vg("mouseenter"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],CR.prototype,"lockupOnMouseEnter",null);_.N([_.Vg("mouseleave"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],CR.prototype,"lockupOnMouseLeave",null);
_.N([_.Vg("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],CR.prototype,"lockupOnPopupClosed",null);_.N([_.Vg("yt-lockup-requested"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],CR.prototype,"lockupOnLockupRequested",null);
_.N([_.Vg("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.N1]),_.Z("design:returntype")],CR.prototype,"lockupOnYtServiceRequestSent",null);_.N([_.Vg("yt-disable-lockup-interaction"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],CR.prototype,"lockupOnLockupDisabled",null);
_.N([_.Vg("yt-enable-lockup-interaction"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],CR.prototype,"lockupOnLockupEnabled",null);_.N([_.iu()],CR);_.pR=[CR.prototype];_.PfX={YtdReduxBehavior:[]};_.PfX.YtdReduxBehavior.push.apply(_.PfX.YtdReduxBehavior,_.Ek);var Al=function(){var f=_.dv.apply(this,arguments)||this;f._noAccessors=!0;f.disableNowPlaying=!1;f.disableTooltips=!1;f.useHoveredProperty=!1;f.hovered=!1;f.isThumbnailHovered_=!1;f.addBackground=_.K("kevlar_thumbnail_bg");f.nowPlaying=!1;f.disableRounding=!1;f.size="small";return f};
_.q(Al,_.dv);_.e=Al.prototype;_.e.computeThumbnailOverlaySidePanelWidth_=function(f,S){return f-S};
_.e.computeSize=function(f,S){if(!this.disableRounding){if(!f&&!S)return"small";f=Math.max(f||0,S||0);return f>=256?"large":f>=96?"medium":"small"}};
_.e.computeFinalHoveredState_=function(f,S,B){return this.nowPlaying?!1:_.K("kevlar_thumbnail_fluid")&&f?S:B};
_.e.computeHoverOverlays_=function(f,S){return f&&S?S:void 0};
_.e.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.e.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.e.checkMiniplayer_=function(){var f;if(((f=this.data)==null?0:f.playlistSetVideoId)&&_.K("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{f=_.Pn();var S=f.currentEndpoint;!this.disableNowPlaying&&S&&_.H(S,_.t2)&&this.data?(S=_.H(S,_.t2),this.nowPlaying=this.data.playlistId?S.playlistId===this.data.playlistId:S.videoId===this.data.videoId,this.isVideoPlaying=f==null?void 0:f.isVideoPlaying):this.nowPlaying=!1}};
Al.prototype.checkMiniplayer_=Al.prototype.checkMiniplayer_;Al.prototype.onMouseLeave_=Al.prototype.onMouseLeave_;Al.prototype.onMouseEnter_=Al.prototype.onMouseEnter_;Al.prototype.computeHoverOverlays_=Al.prototype.computeHoverOverlays_;Al.prototype.computeFinalHoveredState_=Al.prototype.computeFinalHoveredState_;Al.prototype.computeSize=Al.prototype.computeSize;Al.prototype.computeThumbnailOverlaySidePanelWidth_=Al.prototype.computeThumbnailOverlaySidePanelWidth_;
_.N([_.r(_.Ek),_.Z("design:type",Object)],Al.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Al.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Number)],Al.prototype,"height",void 0);_.N([_.n(),_.Z("design:type",Boolean)],Al.prototype,"bottomSidePanel",void 0);_.N([_.n(),_.Z("design:type",Number)],Al.prototype,"width",void 0);_.N([_.n(),_.Z("design:type",Object)],Al.prototype,"disableNowPlaying",void 0);
_.N([_.n({selector:_.LJ}),_.Z("design:type",Boolean)],Al.prototype,"miniplayerIsActive",void 0);_.N([_.n(),_.Z("design:type",Object)],Al.prototype,"disableTooltips",void 0);_.N([_.n(),_.Z("design:type",Object)],Al.prototype,"useHoveredProperty",void 0);_.N([_.n(),_.Z("design:type",Object)],Al.prototype,"hovered",void 0);_.N([_.n(),_.Z("design:type",Object)],Al.prototype,"isThumbnailHovered_",void 0);
_.N([_.n({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.Z("design:type",Boolean)],Al.prototype,"finalHoveredState_",void 0);_.N([_.n({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.Z("design:type",Number)],Al.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Al.prototype,"addBackground",void 0);
_.N([_.n({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.Z("design:type",Object)],Al.prototype,"hoverOverlays_",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Al.prototype,"nowPlaying",void 0);_.N([_.n(),_.Z("design:type",Boolean)],Al.prototype,"isVideoPlaying",void 0);_.N([_.n(),_.Z("design:type",Object)],Al.prototype,"disableRounding",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.Z("design:type",Object)],Al.prototype,"size",void 0);_.N([_.Vg("mouseenter"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Al.prototype,"onMouseEnter_",null);_.N([_.Vg("mouseleave"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Al.prototype,"onMouseLeave_",null);
_.N([_.JO("data","disableNowPlaying","miniplayerIsActive"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Al.prototype,"checkMiniplayer_",null);_.N([_.iu()],Al);var vOX=[Al.prototype];_.Nr={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(f,S){return f+":"+_.Sm(S)},
getPlayerListener_:function(f,S,B){f=this.getPlayerListenerKey_(f,S);S=this.playerListeners_.get(f);B&&this.playerListeners_.delete(f);return S},
savePlayerListener_:function(f,S){var B=S.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(f,S),B);return B},
listenToPlayerEvent:function(f,S,B){B=this.savePlayerListener_(S,B);f.addEventListener(S,B)},
listenToPlayerEvents:function(f,S){S.forEach(function(B,G){this.listenToPlayerEvent(f,G,B)}.bind(this))},
unlistenFromPlayerEvent:function(f,S,B){B=this.getPlayerListener_(S,B,!0);f.removeEventListener(S,B)},
unlistenFromPlayerEvents:function(f,S){S.forEach(function(B,G){this.unlistenFromPlayerEvent(f,G,B)}.bind(this))}}};
_.Mr=function(){};_.KBj=new _.Sn("PLAYER_API_TOKEN");var O0s=!1,kzs,EOG=!1,sxW;var eW=function(f,S,B,G,g){_.qR.call(this);var b=this;this.playerId=S;this.webPlayerContextConfig=G;this.pvP=g;this.pen=!1;this.api={};this.m8n=this.sQY=null;this.iJQ=new _.Tt;this.yo={};this.frQ=this.chK=this.elementId=this.hSM=this.config=null;this.qJh=!1;this.cY=this.myY=null;this.nqY={};this.oqC=["onReady"];this.lastError=null;this.eYP=NaN;this.f2A={};this.d6v=0;this.zz=this.targetElement=f;_.ha(this,this.iJQ);dn6(this);B?this.d6v=setTimeout(function(){b.loadNewVideoConfig(B)},0):G&&(i0o(this),
H01(this))};
_.q(eW,_.qR);eW.prototype.getId=function(){return this.playerId};
eW.prototype.loadNewVideoConfig=function(f){if(!this.isDisposed()){this.d6v&&(clearTimeout(this.d6v),this.d6v=0);var S=f||{};S instanceof Dwm||(S=new Dwm(S));this.config=S;this.setConfig(f);H01(this);this.isReady()&&q37(this)}};
var i0o=function(f){var S;f.webPlayerContextConfig?S=f.webPlayerContextConfig.rootElementId:S=f.config.attrs.id;f.elementId=S||f.elementId;f.elementId==="video-player"&&(f.elementId=f.playerId,f.webPlayerContextConfig?f.webPlayerContextConfig.rootElementId=f.playerId:f.config.attrs.id=f.playerId);var B;((B=f.zz)==null?void 0:B.id)===f.elementId&&(f.elementId+="-player",f.webPlayerContextConfig?f.webPlayerContextConfig.rootElementId=f.elementId:f.config.attrs.id=f.elementId)};
eW.prototype.setConfig=function(f){this.hSM=f;this.config=$no(f);i0o(this);if(!this.chK){var S;this.chK=Qxj(this,((S=this.config.args)==null?void 0:S.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var B;if((B=this.config)==null?0:B.attrs)f=this.config.attrs,(S=f.width)&&this.zz&&(this.zz.style.width=UJ(Number(S)||S,!0)),(f=f.height)&&this.zz&&(this.zz.style.height=UJ(Number(f)||f,!0))};
var q37=function(f){if(f.config&&f.config.loaded!==!0)if(f.config.loaded=!0,!f.config.args||f.config.args.autoplay!=="0"&&f.config.args.autoplay!==0&&f.config.args.autoplay!==!1){var S;f.api.loadVideoByPlayerVars((S=f.config.args)!=null?S:null)}else f.api.cueVideoByPlayerVars(f.config.args)},rFi=function(f){var S=!0,B=f.getPlayerElement();
B&&f.config&&(S=B.dataset.version===Y3g(f));return S&&!!_.U6("yt.player.Application.create")},H01=function(f){if(!f.isDisposed()&&!f.qJh){var S=rFi(f);
if(S&&(f.getPlayerElement()?"html5":null)==="html5")f.frQ="html5",f.isReady()||jx6(f);else if(O01(f),f.frQ="html5",S&&f.cY&&f.targetElement)f.targetElement.appendChild(f.cY),jx6(f);else{f.config&&(f.config.loaded=!0);var B=!1;f.myY=function(){B=!0;var G=xn$(f,"player_bootstrap_method")?_.U6("yt.player.Application.createAlternate")||_.U6("yt.player.Application.create"):_.U6("yt.player.Application.create");var g=f.config?$no(f.config):void 0;G&&G(f.targetElement,g,f.webPlayerContextConfig,f.pvP);jx6(f)};
f.qJh=!0;S?f.myY():(_.I4(Y3g(f),f.myY),(S=EOL(f))&&wzW(S||""),LBm(f)&&!B&&_.WL("yt.player.Application.create",null))}}};
eW.prototype.getPlayerElement=function(){var f=_.gb(document,this.elementId);!f&&this.zz&&this.zz.querySelector&&(f=this.zz.querySelector("#"+this.elementId));return f};
var jx6=function(f){if(!f.isDisposed()){var S=f.getPlayerElement(),B=!1;S&&S.getApiInterface&&S.getApiInterface()&&(B=!0);if(B){f.qJh=!1;if(!xn$(f,"html5_remove_not_servable_check_killswitch")){var G;if((S==null?0:S.isNotServable)&&f.config&&(S==null?0:S.isNotServable((G=f.config.args)==null?void 0:G.video_id)))return}kz1(f)}else f.eYP=setTimeout(function(){jx6(f)},50)}},kz1=function(f){dn6(f);
f.pen=!0;var S=f.getPlayerElement();if(S){f.sQY=nOj(f,S,"addEventListener");f.m8n=nOj(f,S,"removeEventListener");var B=S.getApiInterface();B=B.concat(S.getInternalApiInterface());for(var G=f.api,g=0;g<B.length;g++){var b=B[g];G[b]||(G[b]=nOj(f,S,b))}}for(var z in f.yo)f.yo.hasOwnProperty(z)&&f.sQY&&f.sQY(z,f.yo[z]);q37(f);f.chK&&f.chK(f.api);f.iJQ.publish("onReady",f.api)},nOj=function(f,S,B){var G=S[B];
return function(){var g=_.qb.apply(0,arguments);try{return f.lastError=null,G.apply(S,g)}catch(b){if(B!=="sendAbandonmentPing")throw b.params=B,f.lastError=b,g=new _.dO("PlayerProxy error in method call",{error:b,method:B,playerId:f.playerId}),g.level="WARNING",g;}}},dn6=function(f){f.pen=!1;
if(f.m8n)for(var S in f.yo)f.yo.hasOwnProperty(S)&&f.m8n(S,f.yo[S]);for(var B in f.f2A)f.f2A.hasOwnProperty(B)&&clearTimeout(Number(B));f.f2A={};f.sQY=null;f.m8n=null;S=f.api;for(var G in S)S.hasOwnProperty(G)&&(S[G]=null);S.addEventListener=function(g,b){f.addEventListener(g,b)};
S.removeEventListener=function(g,b){f.removeEventListener(g,b)};
S.destroy=function(){f.dispose()};
S.getLastError=function(){return f.getLastError()};
S.getPlayerType=function(){return f.getPlayerType()};
S.getCurrentVideoConfig=function(){return f.hSM};
S.loadNewVideoConfig=function(g){f.loadNewVideoConfig(g)};
S.isReady=function(){return f.isReady()}};
eW.prototype.isReady=function(){return this.pen};
eW.prototype.addEventListener=function(f,S){var B=this;this.isDisposed();var G=Qxj(this,S);G&&(_.As(this.oqC,f)||this.yo[f]||(S=sxN(this,f),this.sQY&&this.sQY(f,S)),this.iJQ.subscribe(f,G),f==="onReady"&&this.isReady()&&setTimeout(function(){G(B.api)},0))};
eW.prototype.removeEventListener=function(f,S){this.isDisposed()||(S=Qxj(this,S))&&this.iJQ.unsubscribe(f,S)};
var Qxj=function(f,S){var B=S;if(typeof S==="string"){if(f.nqY[S])return f.nqY[S];B=function(){var G=_.qb.apply(0,arguments),g=_.U6(S);if(g)try{g.apply(_.S1,G)}catch(b){throw G=new _.dO("PlayerProxy error when executing callback",{error:b}),G.level="ERROR",G;}};
f.nqY[S]=B}return B?B:null},sxN=function(f,S){var B=function(G){var g=function(){f.isDisposed();
if(!f.isDisposed())try{f.iJQ.publish(S,G!=null?G:void 0)}catch(X){var z=new _.dO("PlayerProxy error when creating global callback",{error:X.message,event:S,playerId:f.playerId,data:G,originalStack:X.stack,componentStack:X.componentStack});z.level="WARNING";throw z;}};
if(xn$(f,"web_player_publish_events_immediately"))g();else{var b=setTimeout(function(){g();_.$v.remove(f.f2A,String(b))},0);
_.$v.add(f.f2A,String(b),!0)}};
return f.yo[S]=B};
eW.prototype.getPlayerType=function(){return this.frQ||(this.getPlayerElement()?"html5":null)};
eW.prototype.getLastError=function(){return this.lastError};
var O01=function(f){f.cancel();dn6(f);f.frQ=null;f.config&&(f.config.loaded=!1);var S=f.getPlayerElement();S&&(rFi(f)||!LBm(f)?f.cY=S:(S&&S.destroy&&S.destroy(),f.cY=null));f.targetElement&&_.EJ(f.targetElement)};
eW.prototype.cancel=function(){this.myY&&_.CXG(Y3g(this),this.myY);clearTimeout(this.eYP);this.qJh=!1};
eW.prototype.disposeInternal=function(){O01(this);if(this.cY&&this.config&&this.cY.destroy)try{this.cY.destroy()}catch(S){var f=new _.dO("PlayerProxy error during disposal",{error:S});f.level="ERROR";throw f;}this.nqY=null;for(f in this.yo)this.yo.hasOwnProperty(f)&&delete this.yo[f];this.hSM=this.config=this.api=null;delete this.targetElement;delete this.zz;_.qR.prototype.disposeInternal.call(this)};
var LBm=function(f){var S,B;f=(S=f.config)==null?void 0:(B=S.args)==null?void 0:B.fflags;return!!f&&f.indexOf("player_destroy_old_version=true")!==-1},Y3g=function(f){return f.webPlayerContextConfig?f.webPlayerContextConfig.jsUrl:(f=f.config.assets)?f.js:""},EOL=function(f){return f.webPlayerContextConfig?f.webPlayerContextConfig.cssUrl:(f=f.config.assets)?f.css:""},xn$=function(f,S){if(f.webPlayerContextConfig)var B=f.webPlayerContextConfig.serializedExperimentFlags;
else{var G;if((G=f.config)==null?0:G.args)B=f.config.args.fflags}return(B||"").split("&").includes(S+"=true")},$no=function(f){for(var S={},B=_.m(Object.keys(f)),G=B.next();!G.done;G=B.next()){G=G.value;
var g=f[G];S[G]=typeof g==="object"?_.$v.clone(g):g}return S};var pNM={},CfN="player_uid_"+(Math.random()*1E9>>>0);var ZV=function(f,S,B,G,g,b){S=S===void 0?document.createElement("div"):S;this.webPlayerContextConfig=f;this.container=S;this.commandResolver=B;this.apiResolver=MBV();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.w3;G||b?Dnj(this):I5X(this);this.pendingPlayerResponse=G;this.pendingWatchNextResponse=g;this.pendingPlayerVars=b;UnL(this)};
ZV.prototype.loadVideoWithPlayerResponse=function(f,S,B){this.loadVideo(f,S,B)};
ZV.prototype.loadVideoWithPlayerVars=function(f){return this.loadVideo(void 0,void 0,f)};
ZV.prototype.destroy=function(f){if(f=_.gb(document,f))f=CfN+"_"+_.Sm(f),(f=pNM[f])&&f.dispose()};
var pNi=function(f,S){var B;_.R(function(G){if(G.nextAddress==1)return f.pendingWatchNextResponse=S,f.synchronousApi?(B=f.synchronousApi,G.jumpTo(2)):_.h(G,f.api,3);G.nextAddress!=2&&(B=G.yieldResult);Cfv(f,B);f.pendingWatchNextResponse&&(B.updateVideoData({raw_watch_next_response:f.pendingWatchNextResponse}),f.pendingWatchNextResponse=void 0);_.TT(G)})},Cfv=function(f,S){var B;
if(!(S==null?0:(B=S.isReady)==null?0:B.call(S))){var G;f=new _.dO("playerApi is falsey",{synchronousApi:f.synchronousApi,apiResolved:f.apiResolver.resolved,playerApiUndefined:S===void 0,playerApiNull:S===null,playerApiReady:(S==null?void 0:(G=S.isReady)==null?void 0:G.call(S))===!0,playerApiMethods:S?Object.keys(S):[]});_.xH(f)}},AF7=function(f,S){if(typeof f[S]==="function")return f[S]()},N_L=function(f){var S=window,B,G=(B=S.ytplayer)==null?void 0:B.bootstrapPlayerContainer;
if((B=G==null?void 0:G.firstElementChild)&&_.Z2(B,"html5-video-player")){var g,b,z=(g=S.ytplayer)==null?void 0:(b=g.bootstrapWebPlayerContextConfig)==null?void 0:b.contextId;g=f.webPlayerContextConfig.contextId;if(z&&z===g){G!==f.container&&(G=!1,AF7(B,"getPlayerState")===2&&(G=!0),f.container.appendChild(B),G||AF7(B,"playVideo"));var X;if((X=S.ytplayer)==null?0:X.bootstrapPlayerResponse)f.bootstrapPlayerResponse=S.ytplayer.bootstrapPlayerResponse}}},UnL=function(f){var S,B,G,g,b;
_.R(function(z){if(z.nextAddress==1)return f.pageReadyOrDataAvailable?z.jumpTo(2):_.h(z,f.pageReadyOrDataAvailableResolver.promise,2);if(z.nextAddress!=4)return!_.K("kevlar_player_unified_player_loading")||xnN()&&LB1()?z.jumpTo(4):_.h(z,I5Q(),4);N_L(f);if(f.pendingPlayerResponse||f.pendingPlayerVars)S=UnG(f.pendingPlayerResponse,f.pendingWatchNextResponse,f.pendingPlayerVars),f.pendingPlayerResponse&&f.pendingPlayerResponse===f.bootstrapPlayerResponse&&(S.loaded=!0),f.bootstrapPlayerResponse=void 0;
B=N_G(f.container,S,f.webPlayerContextConfig);((G=S)==null?0:G.loaded)&&f.pendingWatchNextResponse?(pNi(f,f.pendingWatchNextResponse),f.pendingPlayerResponse=void 0,f.pendingPlayerVars=void 0):MB8(f);g=function(X){B.removeEventListener("onReady",g);f.synchronousApi=X;f.apiResolver.resolve(X)};
B.addEventListener("onReady",g);f.commandResolver!==void 0&&(b=f.commandResolver,B.addEventListener("innertubeCommand",function(X){b(X)}));
_.TT(z)})};
ZV.prototype.loadVideo=function(f,S,B){var G=this,g,b,z,X,w,F,V,J,P;return _.R(function(d){if(d.nextAddress==1)return G.pendingPlayerResponse=f,G.pendingWatchNextResponse=S,G.pendingPlayerVars=B,Dnj(G),G.synchronousApi?(g=G.synchronousApi,d.jumpTo(2)):_.h(d,G.api,3);d.nextAddress!=2&&(g=d.yieldResult);Cfv(G,g);z=new Promise(function(Q){b=Q});
X=function(){var Q=g.getPlayerResponse();Q&&(g.removeEventListener("onVideoDataChange",X),b(Q))};
g.addEventListener("onVideoDataChange",X);if(G.pendingPlayerResponse||G.pendingPlayerVars)G.pendingPlayerResponse&&G.pendingPlayerResponse===G.bootstrapPlayerResponse?(b(G.pendingPlayerResponse),G.pendingWatchNextResponse&&pNi(G,G.pendingWatchNextResponse)):(w=UnG(G.pendingPlayerResponse,G.pendingWatchNextResponse,G.pendingPlayerVars),(P=(F=G.pendingPlayerResponse)==null?void 0:(V=F.playerConfig)==null?void 0:(J=V.playbackStartConfig)==null?void 0:J.startPaused)?g.cueVideoByPlayerVars(w.args):g.loadVideoByPlayerVars(w.args)),
MB8(G),G.bootstrapPlayerResponse=void 0;return d.return(z)})};
var I5X=function(f){if(document.readyState==="complete"||document.readyState==="interactive")Dnj(f);else{var S=function(){document.removeEventListener("DOMContentLoaded",S);Dnj(f)};
document.addEventListener("DOMContentLoaded",S)}},Dnj=function(f){f.pageReadyOrDataAvailable=!0;
f.pageReadyOrDataAvailableResolver.resolve()},MB8=function(f){f.pendingPlayerResponse=void 0;
f.pendingWatchNextResponse=void 0;f.pendingPlayerVars=void 0};
_.y3.Object.defineProperties(ZV.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var tl=function(f){k9.call(this,f===void 0?"document_active":f);var S=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(B){S.transition("document_disposed",{event:B})});
window.addEventListener("beforeunload",function(B){S.transition("document_disposed_preventable",{event:B})});
window.addEventListener("unload",function(B){S.transition("document_disposed",{event:B});S.hasRun=new Map})};
_.q(tl,k9);
tl.prototype.runPreventableDispose=function(f,S){if(!this.hasRun.get("document_disposed_preventable")){f(S==null?void 0:S.event);var B,G;if((S==null?0:(B=S.event)==null?0:B.defaultPrevented)||(S==null?0:(G=S.event)==null?0:G.returnValue)){S.event.returnValue||(S.event.returnValue=!0);S.event.defaultPrevented||S.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")};
tl.prototype.runDispose=function(f,S){this.hasRun.get("document_disposed")?this.transition("document_active"):(f(S==null?void 0:S.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
tl.prototype.runFlush=function(f,S){f(S==null?void 0:S.event);this.transition("document_active")};
tl.prototype.runActive=function(){};var uE=function(f){k9.call(this,f===void 0?"document_visibility_unknown":f);var S=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(B){document.visibilityState==="visible"?S.transition("document_visible",{event:B}):S.transition("document_hidden",
{event:B})});
_.K("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(B){S.transition("document_backgrounded",{event:B})}),window.addEventListener("focus",function(B){S.transition("document_foregrounded",{event:B})}))};
_.q(uE,k9);uE.prototype.runVisible=function(f,S){f(S==null?void 0:S.event);_.K("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
uE.prototype.runHidden=function(f,S){f(S==null?void 0:S.event);_.K("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
uE.prototype.runBackgrounded=function(f,S){f(S==null?void 0:S.event)};
uE.prototype.runForegrounded=function(f,S){f(S==null?void 0:S.event)};var au=function(){this.teardownLifecycle=new tl;this.visibilityLifecycle=new uE};
au.prototype.install=function(){var f=_.qb.apply(0,arguments),S=this;f.forEach(function(B){S.teardownLifecycle.install(B)});
f.forEach(function(B){S.visibilityLifecycle.install(B)})};var ys=function(){au.call(this);var f={};this.install((f.document_disposed={callback:this.abortSlisAndFlush},f));_.K("combine_ve_grafts")&&(f={},this.install((f.document_disposed={callback:this.flushInteractionLoggingAttachVes},f)));f={};this.install((f.flush_logs={callback:this.logFinalPayload},f));_.K("web_log_cfg_cee_ks")||_.q6(_.xJ,Z08)};
_.q(ys,au);var Z0V=function(){ys.loggingInstance||(ys.loggingInstance=new ys);return ys.loggingInstance};
ys.prototype.logFinalPayload=function(){if(_.K("web_fp_via_jspb")){var f=new z_i,S=_.xc();S&&_.Jx(f,1,S);S=_.K("jspb_sparse_encoded_pivot")?new HD([{}]):new HD;_.Bo(S,380,R_j,f);OuW("finalPayload",S);_.K("web_fp_via_jspb_and_json")&&_.jD("finalPayload",{csn:_.xc()})}else _.jD("finalPayload",{csn:_.xc()})};
ys.prototype.abortSlisAndFlush=function(){dwi(MG);ZS!=null&&ZS.flush()};
ys.prototype.flushInteractionLoggingAttachVes=function(){plN(_.ik())};
var Z08=function(){var f=_.nL("CLIENT_EXPERIMENT_EVENTS");if(f){var S=INx();f=_.m(f);for(var B=f.next();!B.done;B=f.next())B=B.value,S(B)&&_.jD("genericClientExperimentEvent",{eventType:B});delete _.LL.CLIENT_EXPERIMENT_EVENTS}};var tBN={};
tBN.YtPlayerBehavior=[_.Nr.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 f=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.w3;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;tBW(function(){f.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.x2(this,"pan-down"),_.K("kevlar_pinch_fullscreen")&&_.Yk().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.K("kevlar_pinch_fullscreen")&&_.Yk().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(f,S,B){var G=this;bx(this.useUnifiedPlayer_());if(this.mainAppPlayer_)bx(!1,"MainAppPlayer already created.");else{var g=_.K("kevlar_player_container_query_killswitch")?this.$.container:_.m9(this.hostElement).querySelector("#container");this.mainAppPlayer_=new ZV(this.getWebPlayerContextConfig_(),g,function(b){return _.Ps(b,G.hostElement)},f,S,B);
this.mainAppPlayer_.api.then(function(b){G.player_=b;G.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&CEj.resolve(b)})}},
loadVideoWithPlayerResponse:function(f,S){var B=this;if(this.useUnifiedPlayer_()){var G=this.watchNextData,g,b=(g=f.videoDetails)==null?void 0:g.videoId,z,X,w;(g=(z=this.watchNextData)==null?void 0:(X=z.currentVideoEndpoint)==null?void 0:(w=X.watchEndpoint)==null?void 0:w.videoId)&&b!=g&&(G=void 0,_.K("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(f,G,S):this.createMainAppPlayer_(f,G,S);this.mainAppPlayer_.api.then(function(){_.ew(B.hostElement,
"yt-player-updated")})}else this.update(Y3T(f,S))},
loadVideoWithPlayerVars:function(f){var S=this;this.useUnifiedPlayer_()?(_.K("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(f):this.createMainAppPlayer_(void 0,void 0,f),this.mainAppPlayer_.api.then(function(){_.ew(S.hostElement,"yt-player-updated")})):this.update({args:f})},
update:function(f){var S=this;if(this.useUnifiedPlayer_())bx(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(f);var B=yqN(f.args);B&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==B&&Object.assign(f.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(f).then(function(G){_.ew(S.hostElement,"yt-player-updated",_.K("kevlar_player_updated_obsolete_player_killswitch")?
G:void 0)})}_.EU(new _.dO("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(f){var S=this,B;return _.R(function(G){if(G.nextAddress==1)return _.h(G,S.getPlayerPromise(),2);B=G.yieldResult;if(!B)throw Error("vh");f&&S.updatePlayerPlaylist_(f);_.TT(G)})},
acquireApi_:function(f){var S=this;if(this.useUnifiedPlayer_())bx(!1,"Invalid method call in kevlar_unified_player.");else return _.xJ.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(bx(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(B){S.shouldAutoplay_(f)?B.loadVideoByPlayerVars(f.args):B.cueVideoByPlayerVars(f.args)})):this.initPlayerPromise_=this.initPlayerContainer_(f),this.initPlayerPromise_},
initPlayerContainer_:function(f){var S=this;if(this.useUnifiedPlayer_())bx(!1,"Invalid method call in kevlar_unified_player.");else return bx(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.Lg(Error("wh")),bx(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.K("kevlar_player_container_query_killswitch")?this.$.container:_.m9(this.hostElement).querySelector("#container"),I5Q().then(function(){var B=S.initPlayer_(f);S.playerResolver_.resolve(B);
return B})},
onPlayerReady_:function(f,S){this.useUnifiedPlayer_()?bx(!1,"Invalid method call in kevlar_unified_player."):(f.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&CEj.resolve(f),S(f))},
maybeCallApiMethodOnElement_:function(f,S){if(typeof f[S]==="function")return f[S]()},
maybeAdoptBootstrapPlayer_:function(){var f=window,S,B=(S=f.ytplayer)==null?void 0:S.bootstrapPlayerContainer;if((S=B==null?void 0:B.firstElementChild)&&S.classList.contains("html5-video-player")){var G,g,b=(G=f.ytplayer)==null?void 0:(g=G.bootstrapWebPlayerContextConfig)==null?void 0:g.contextId;G=this.getWebPlayerContextConfig_().contextId;if(b&&b===G){B!==this.playerContainer_&&(B=!1,this.maybeCallApiMethodOnElement_(S,"getPlayerState")===2&&(B=!0),this.playerContainer_.appendChild(S),B||this.maybeCallApiMethodOnElement_(S,
"playVideo"));var z;if((z=f.ytplayer)==null?0:z.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=f.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(f){var S=this;if(this.useUnifiedPlayer_())bx(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(B){S.maybeAdoptBootstrapPlayer_();var G=f?rFM(f):void 0;G&&G==S.bootstrapPlayerResponse_&&(f.loaded=!0);G=S.playerContainer_;var g=S.getWebPlayerContextConfig_();G=N_G(G,f,g);S.player_=G;S.onPlayerReadyEvent_=S.onPlayerReady_.bind(S,S.player_,B);S.player_.addEventListener("onReady",S.onPlayerReadyEvent_);S.player_.addEventListener("innertubeCommand",
S.onPlayerInnerTubeCommand_.bind(S));_.K("enable_web_shorts_captions_language_command")&&(S.player_.addEventListener("captionschanged",S.storePlayerCaptionLanguage_.bind(S)),S.player_.addEventListener("captionssettingschanged",S.storePlayerCaptionLanguage_.bind(S)),S.player_.addEventListener("onCaptionsTrackListChanged",S.storePlayerCaptionLanguage_.bind(S)))})},
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(f){f.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(f){f.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var f=_.oy().resolve(_.o8).getCurrentPage();f&&f.getScrollTop()<=0?_.x2(this,"pan-down"):_.x2(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(f){f.isFullscreen()||f.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(f){f.isFullscreen()&&f.toggleFullscreen()})},
updatePlayerPlaylist_:function(f){var S=this,B,G,g;return _.R(function(b){if(b.nextAddress==1)return B=_.oy().resolve(_.fN(_.Dr)),G=!!(B&&B.playlistComponent&&B.playlistComponent.loopOn),_.h(b,S.getPlayerPromise(),2);var z=g=b.yieldResult,X=z.updatePlaylist,w=[];if(_.K("kevlar_player_playlist_use_local_index")){var F,V;var J=(V=(F=f.localCurrentIndex)!=null?F:f.currentIndex)!=null?V:0}else{var P;J=(P=f.currentIndex)!=null?P:0}if(f.contents)for(F=0;F<f.contents.length;F++)if((V=f.contents[F])&&V.playlistPanelVideoRenderer)if(sh9(V)){V=
V.playlistPanelVideoRenderer;P="";V.shortBylineText&&(P=_.ac(V.shortBylineText));var d="";V.title?d=_.ac(V.title):V.unplayableText&&(d=_.ac(V.unplayableText));w.push({author:P,title:d,encrypted_id:V.videoId})}else F<J&&--J;X.call(z,{index:J,list:f.playlistId?f.playlistId:"",loop:G,playlist_title:f.title,playlist_length:w.length,video:w,fetch:0,external_list:"1",title:f.title?f.title:"",playlist_author:f.ownerName?_.ac(f.ownerName):void 0});_.TT(b)})},
focusOnPlayer:function(){_.ui(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var f=this.playerContainer_.querySelector(".html5-video-player");f&&(_.WX(_.oy().resolve(_.k8)),f.focus())}})},
preparePlayer:function(){var f=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(S){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")S();else{var B=function(){document.removeEventListener("DOMContentLoaded",B);S()};
document.addEventListener("DOMContentLoaded",B)}})).then(function(){return I5Q()}).then(function(){f.initPlayerPromise_||f.preparePlayerJobId_||(f.preparePlayerJobId_=_.q6(_.xJ,function(){f.initPlayerPromise_||(f.initPlayerPromise_=f.initPlayerContainer_())}))}):_.EU(new _.dO("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(f){this.useUnifiedPlayer_()?bx(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(f)||(f.args.autoplay="0")},
shouldAutoplay_:function(f){if(this.useUnifiedPlayer_())bx(!1,"Invalid method call in kevlar_unified_player.");else{var S=this.get("args.el",f);return S&&S!="detailpage"&&this.isMiniplayerActive_()||S&&(S=="sponsorshipsoffer"||S=="handlesclaiming")&&this.get("args.autoplay",f)=="0"?!1:(f=rFM(f))&&this.get("playerConfig.playbackStartConfig.startPaused",f)?!1:!0}},
isMiniplayerActive_:function(){return _.oy().resolve(_.N_).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var f=this.getPlayer();if(f){var S=f.getPlayerState();_.K("kevlar_player_check_ad_state_on_stop")&&(S=f.getPlayerState(f.getPresentingPlayerType()));S!=5&&f.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(f,S,B){B=B===void 0?!1:B;var G=this,g,b,z,X;return _.R(function(w){if(w.nextAddress==1)return S||(S=G.hostElement),g=G.useUnifiedPlayer_()?!!G.mainAppPlayer_:!!G.initPlayerPromise_,g?_.h(w,G.getPlayerPromise(),2):(B?f.insertBefore(S,f.firstChild):f.appendChild(S),w.return());b=w.yieldResult;z=b.getPlayerState(b.getPresentingPlayerType());X=!1;if(z==-1||z==1||z==3)X=!0;B?f.insertBefore(S,f.firstChild):f.appendChild(S);X&&b.playVideo();b.setSize(NaN,NaN);_.TT(w)})},
watchNextDataChanged_:function(f){var S=this;f&&(this.useUnifiedPlayer_()&&_.K("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&pNi(this.mainAppPlayer_,f):this.getPlayerPromise().then(function(B){B.updateVideoData(S.computeWatchNextPlayerVars_(f))}))},
computeWatchNextPlayerVars_:function(f){if(this.useUnifiedPlayer_()&&_.K("kevlar_unified_player_update_watch_next_killswitch"))bx(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:f}},
maybeSendAbandonmentPing_:function(){var f=this.getPlayer();f&&f.getPlayerState()!=5&&f.getPlayerState()!=0&&f.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var f=_.nL("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(f=Object.assign({},f),f.rootElementId=this.playerId);f.serializedExperimentIds&&f.serializedExperimentFlags||_.Lg(Error("xh"));return f},
hasWebPlayerContextConfig_:function(){return!!_.nL("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(f){this.useUnifiedPlayer_()?bx(!1,"Invalid method call in kevlar_unified_player."):_.Ps(f,this.hostElement)},
storePlayerCaptionLanguage_:function(){this.getPlayerPromise().then(function(f){var S=_.oy().resolve(_.dQ);f=f==null?void 0:f.getOption("captions","track");var B=_.XV("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(f){var G,g=(G=_.v8(_.tK1,B)())==null?void 0:G.value,b;G=typeof(f==null?void 0:f.translationLanguage)==="object"&&((b=f.translationLanguage)==null?void 0:b.languageName)||f.displayName||"";g!==G&&S.store.dispatch(_.KF("stringEntity",B,{key:B,value:G.toString()}))}else S.store.dispatch(_.KF("stringEntity",
B,{key:B,value:"CAPTIONS_UNAVAILABLE"}))})},
useUnifiedPlayer_:function(){var f=_.K("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.K("kevlar_unified_player")||f}}];var uIL={};uIL.YtPlaylistPanelBehavior=[_.c.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(f){f=f.detail;if(f.actions.loop!=void 0||f.actions["yt-icons:loop"]!=void 0)this.loopOn=f.actions.loop||f.actions["yt-icons:loop"];if(f.actions.shuffle!=void 0||f.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=f.actions.shuffle||f.actions["yt-icons:shuffle"]},
setMenuData_:function(f){if(!f||!f.playlistButtons||f.isInfinite)return null;for(var S=f.playlistButtons.menuRenderer.topLevelButtons,B=S.length,G=0;G<B;G++)if(S[G].toggleButtonRenderer){var g=S[G].toggleButtonRenderer;g.defaultIcon.iconType=="LOOP"&&this.loopOn?g.isToggled=this.loopOn:g.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(g.isToggled=this.shuffleOn)}return f.playlistButtons}}];var a5N=function(f){Gl.call(this,f,132);this.isDocument=f===document.documentElement};
_.q(a5N,Gl);a5N.prototype.calculateScrollDelta=function(f,S,B){var G=0;f<S?G=f<S-100?-48:-8:f>S+B&&(G=f>S+B+100?48:8);return G};
a5N.prototype.JSC$9354_onMouseMove=function(f){this.isDocument||(f.clientX=f.event_.pageX,f.clientY=f.event_.pageY);Gl.prototype.JSC$9354_onMouseMove.call(this,f)};var cX=function(){var f=_.dv.apply(this,arguments)||this;f._noAccessors=!0;f.scrollElement=document.documentElement;f.JSC$12326_dragListGroup=null;f.dragScrollSupport=null;f.onDraggerCreated=function(S){var B=S.JSC$9350_dragger;B.scrollTarget_=f.scrollElement;S=S.draggerEl;B&&S.menuOpened&&B.setEnabled(!1)};
f.onDragStart=function(S){var B=S.draggerEl;S=S.currDragItem;var G=Object.assign({},S==null?void 0:S.data);G.trackingParams=void 0;B.data=G;B.style.position="absolute";B.style.width=(S==null?void 0:S.clientWidth)+"px";B.style.zIndex="2030";B.onDrag&&B.onDrag();_.K("web_owner_document_fallback_killswitch")?(S=document.querySelector("ytd-app"))&&_.m9(S).appendChild(B):(S=_.OI(B),(G=S.querySelector("ytd-app"))?_.m9(G).appendChild(B):S.body.appendChild(B));f.dragScrollSupport=new a5N(f.scrollElement);
f.dragScrollSupport.horizontalScrolling_=!1;B=f.dragScrollSupport;B.constrainScroll_=!!B.margin_&&!1};
f.onDrop=function(S){f.handleDrop(S);f.dragScrollSupport&&(_.cd(f.dragScrollSupport),f.dragScrollSupport=null)};
f.onReorderableScroll=function(){if(f.JSC$12326_dragListGroup){var S=f.JSC$12326_dragListGroup;Gcg(S,S.currDragItem_)}};
return f};
_.q(cX,_.dv);cX.prototype.detached=function(){_.yF7(this)};
_.yF7=function(f){f.JSC$12326_dragListGroup&&(_.qM(f.JSC$12326_dragListGroup,aum,f.onDragStart),_.qM(f.JSC$12326_dragListGroup,luv,f.onDragStart),f.JSC$12326_dragListGroup.dispose(),f.JSC$12326_dragListGroup=null);f.dragScrollSupport&&(_.cd(f.dragScrollSupport),f.dragScrollSupport=null);f.scrollElement.removeEventListener("scroll",f.onReorderableScroll)};
_.WB$=function(f,S,B,G){G=G===void 0?"":G;_.yF7(f);B&&(f.scrollElement=B);f.JSC$12326_dragListGroup=new ps;f.JSC$12326_dragListGroup.hysteresisDistance_=2;orN(f.JSC$12326_dragListGroup,S);f.JSC$12326_dragListGroup.draggerElClasses_=hs("dragging").split(" ");G&&SAv(f.JSC$12326_dragListGroup,function(g){var b=g||document,z=null;b.getElementsByClassName?z=b.getElementsByClassName(G)[0]:z=DAv("*",G,g);return z||g});
_.jP(f.JSC$12326_dragListGroup,twj,f.onDraggerCreated);_.jP(f.JSC$12326_dragListGroup,aum,f.onDragStart);_.jP(f.JSC$12326_dragListGroup,luv,f.onDrop);f.JSC$12326_dragListGroup.init();f.scrollElement.addEventListener("scroll",f.onReorderableScroll,{passive:!0})};
cX.prototype.handleDrop=function(){};
_.y3.Object.defineProperties(cX.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.N([_.n({value:100}),_.Z("design:type",Number)],cX.prototype,"scrollMargin",void 0);_.N([_.iu()],cX);_.cF7=[cX.prototype];_.lE={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(f,S,B){var G=this.getClickTarget_(S);if(G&&this.isClickAllowed_(G)){S.preventDefault();f=(0,_.$v.unsafeClone)(f);var g=this.getContainerBoundingRect();S=this.getRelativeClickXy_(S,g);this.expandEndpointUrlMacros_(f,{NX:S[0],NY:S[1],NB:G.code});B&&this.truncateWebCommendMetadataUrl_(f);_.ew(this.hostElement,"yt-navigate",{endpoint:f})}},
getClickTarget_:function(f){if(!this.clickTargetMap)return null;f=_.ct(f)||[];f=_.m(f);for(var S=f.next();!S.done;S=f.next()){S=S.value;if(S===_.m9(this.hostElement).querySelector("#menu"))break;if(S=this.clickTargetMap.get(S.id))return S}return null},
getRelativeClickXy_:function(f,S){var B=f.detail.x,G=f.detail.y;_.K("use_on_click_for_desktop_display_ad")&&f.clientX!=null&&f.clientY!=null&&(B=f.clientX,G=f.clientY);f=Math.round(B-S.left);S=Math.round(G-S.top);return f<0||S<0?[null,null]:[f,S]},
getContainerBoundingRect:function(){return _.m9(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(f,S){for(var B=_.m(f.loggingUrls||[]),G=B.next();!G.done;G=B.next())G=G.value,G.baseUrl&&(G.baseUrl=Qq(G.baseUrl,S));f.urlEndpoint&&f.urlEndpoint.url&&(f.urlEndpoint.url=Qq(f.urlEndpoint.url,S));f.commandMetadata&&f.commandMetadata.webCommandMetadata&&f.commandMetadata.webCommandMetadata.url&&(f.commandMetadata.webCommandMetadata.url=Qq(f.commandMetadata.webCommandMetadata.url,S))},
truncateWebCommendMetadataUrl_:function(f){if(f.commandMetadata&&f.commandMetadata.webCommandMetadata&&f.commandMetadata.webCommandMetadata.url){var S=f.commandMetadata.webCommandMetadata.url,B=S.indexOf("&pp=");if(B>0){var G=S.indexOf("&",B+1);f.commandMetadata.webCommandMetadata.url=G>B&&G<S.length?S.slice(0,B)+S.slice(G):S.slice(0,B)}}},
configureClickTargets:function(f,S,B){this.containerId=f;this.clickTargetMap=new Map;f=_.m(S);for(S=f.next();!S.done;S=f.next())if(S=S.value,S.location){var G=B.get(S.location);G&&(_.Rl(_.m9(this.hostElement).querySelector("#"+G),"yt-simple-endpoint",this.isClickAllowed_(S)),this.clickTargetMap.set(G,S))}},
isClickAllowed_:function(f){return f.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||f.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||f.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||f.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.ff={};
_.ff.YtLazyListBehavior=[_.Sy.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 f=(this.constructor.generatedFrom||this).observers;f||(f=[]);f.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
f}},
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 f=this.renderElementsOutsideVisibleArea_;f&&(c7N(f,4),f.processSignal())},
deepLazyListObserver_:function(f){var S=this;if(f){var B=f.value||[];if(this.itemsPath==f.path){var G=this.nonDeferredItemCount;f=0;G>-1&&B.length>G&&(f=_.nL("REMAINING_DOVA_DEFERRED_CHUNKS",-1));f>0?(G>0&&(G=B.slice(0,G),this.setInitialItemsOnDataChanged(G)),(G=this.renderElementsOutsideVisibleArea_)?G.cancel():(G=this.renderElementsOutsideVisibleArea_=new _.G7(2,"eocs"),_.DoQ(window,"scroll",function(){return S.renderDeferredElements()})),_.gP(G,function(){S.setInitialItemsOnDataChanged(B)}),_.k5("REMAINING_DOVA_DEFERRED_CHUNKS",
f-1)):this.setInitialItemsOnDataChanged(B)}else if(this.itemsPath+".splices"==f.path)this.onItemsUpdated_(B);
else G="shownItems"+f.path.substr(this.itemsPath.length),this.useSignals&&G==="shownItems.length"||this.notifyPath(G,f.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(f){f&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(f),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(f){f=f.indexSplices;for(var S=0,B=f.length;S<B;S++){var G=f[S];if(G.index<this.shownCount&&(G.removed&&this.splice("shownItems",G.index,G.removed.length),G.addedCount)){var g=G.object.slice(G.index,G.index+G.addedCount);G=["shownItems",G.index,0];G.push.apply(G,g);this.splice.apply(this,G)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(f){this.cancelPendingTasks_();f||(f=[]);this.items_=f;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&&(_.s6("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.ui(this,this.tryRenderChunk_)))},
fillRange_:function(f,S){this.canShowMore&&this.items_&&(f=this.items_.slice(f,S),f.unshift("shownItems"),this.push.apply(this,f),this.shownCount=S,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var f=this;this.canShowMore&&_.NJ(this,"renderChunk",function(){f.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.s6("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.H8(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var f=this.renderElementsOutsideVisibleArea_;f&&(f.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var f=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(f-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=f;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(f){return Math.ceil(1E3/f)},
onCanShowMoreUpdated_:function(f){this.data&&this.items_!==null&&(f?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(f){!this.shouldUseTaskManager()&&this.data&&(!f&&this.canShowMore?(_.F_1(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):f&&this.partiallyRenderedItems_.has(this.items_)&&(_.K("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var B0;_.o_={};
B0=function(){var f=_.dv.apply(this,arguments)||this;f.atStart=!0;f.atEnd=!0;f.startIndex=0;f.endIndex=0;f.scrollCount=0;f.initialStartIndex=0;f.disableScrollEventListener=!1;f.useFloorScrolling=!1;f.isSearch=!1;f.dragging=!1;f.dragMouseStart=0;f.dragOffsetStart=0;f.disableWheelScroll=!1;f.centerListItems=!1;f.offset=0;f.minComponentWidth=0;f.marginWidthRight=0;f.marginWidthLeft=0;f.setButtonsStateRequested=!1;f.itemsVisibilityObserver=null;f.fullyVisibleItemsIndices=[];f.JSC$12337_onWheelScroll=function(S){if(f.isSearch&&
!f.disableWheelScroll&&_.K("desktop_enable_dmpanel_wheel_scroll")){var B=S.shiftKey?Math.abs(S.deltaY)>Math.abs(S.deltaX)?S.deltaY:S.deltaX:S.deltaX;B!==0&&(S.preventDefault(),f.ytLazyListBehavior.fillRemainingListItems(),f.offset+=B,SG(f),f.reposition_())}};
f.onPointerDown=function(S){l5m(f)&&(f.dragMouseStart=S.clientX,f.dragOffsetStart=f.offset,f.dragging=!0)};
f.onPointerMove=function(S){l5m(f)&&f.dragging&&(f.ytLazyListBehavior.fillRemainingListItems(),f.offset=f.dragOffsetStart-(S.clientX-f.dragMouseStart),SG(f),f.reposition_())};
f.onPointerUp=function(){l5m(f)&&(f.dragging=!1)};
return f};
_.q(B0,_.dv);var fn$=function(f){var S=_.m9(f.hostElement).querySelector("#items").children;if(!S)return 0;var B=0;f=_.m(f.fullyVisibleItemsIndices);for(var G=f.next();!G.done;G=f.next())B+=S[G.value].clientWidth;return B},l5m=function(f){return f.isSearch&&_.K("desktop_enable_dmpanel_click_drag_scroll")};
B0.prototype.created=function(){this.cachedViewportWidth=_.nL("initialInnerWidth")||window.innerWidth;this.JSC$12337_cachedViewportHeight=_.nL("initialInnerHeight")||window.innerHeight;_.nL("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.k5("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
B0.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.K("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();ol8(this)};
B0.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.K("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var f;(f=this.itemsVisibilityObserver)==null||f.disconnect();this.itemsVisibilityObserver=null;var S;(S=this.itemsObserver)==null||S.disconnect()};
var ol8=function(f){var S=_.m9(f.hostElement).querySelector("#scroll-container");if(S){if(!f.itemsVisibilityObserver){var B=window.getComputedStyle(S).marginRight;f.itemsVisibilityObserver=new IntersectionObserver(function(G){Sp$(f,G)},{root:S,
rootMargin:B,threshold:.98})}if(S=_.m9(f.hostElement).querySelector("#items"))f.itemsObserver=new Ljm(S,function(G){Bwg(f,G)})}},Bwg=function(f,S){G2v(f)&&(Array.from(S.addedNodes).filter(function(B){return B.nodeType===Node.ELEMENT_NODE}).forEach(function(B){f.itemsVisibilityObserver&&f.itemsVisibilityObserver.observe(B)}),Array.from(S.removedNodes).filter(function(B){return B.nodeType===Node.ELEMENT_NODE}).forEach(function(B){f.itemsVisibilityObserver&&f.itemsVisibilityObserver.unobserve(B)}))},
Sp$=function(f,S){var B=new Set(f.fullyVisibleItemsIndices);
S=_.m(S);for(var G=S.next();!G.done;G=S.next()){G=G.value;var g=G.target.parentElement;g?(g=Array.from(g.children).indexOf(G.target),G.isIntersecting?B.add(g):B.has(g)&&B.delete(g)):_.Lg(new _.dO("Parent element not found",G.target.nodeName))}f.fullyVisibleItemsIndices=Array.from(B).sort(function(b,z){return b-z});
B.size===0?_.Lg(new _.dO("No visible entries in horizontal list")):(f.startIndex=f.fullyVisibleItemsIndices[0],f.endIndex=f.fullyVisibleItemsIndices[f.fullyVisibleItemsIndices.length-1])},G2v=function(f){f.data?f=(f=f.data)&&f.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===f.itemSizeConstraint:!1:f=!1;
return f};
_.e=B0.prototype;_.e.addScrollEventListeners=function(){var f=_.m9(this.hostElement).querySelector("#scroll-container");f.style.touchAction="pan-y";f.addEventListener("wheel",this.JSC$12337_onWheelScroll);f.addEventListener("pointerdown",this.onPointerDown);f.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.e.removeScrollEventListeners=function(){var f=_.m9(this.hostElement).querySelector("#scroll-container");f.removeEventListener("wheel",this.JSC$12337_onWheelScroll);f.removeEventListener("pointerdown",this.onPointerDown);f.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.e.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.ui(this,this.setStartIndex,[this.initialStartIndex])};
_.e.reposition_=function(){var f=_.nL("HTML_DIR")=="rtl"?"":"-",S=_.m9(this.hostElement).querySelector("#items");S&&(S.style.transform="translateX("+f+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.e.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.ui(this,this.setButtonsState_))};
_.e.setButtonsState_=function(){this.setButtonsStateRequested=!1;var f=_.m9(this.hostElement).querySelector("#items").firstElementChild;if(f){this.minComponentWidth||(this.minComponentWidth=glL(this,f));f=_.m9(this.hostElement).querySelector("#scroll-container").clientWidth;var S=_.m9(this.hostElement).querySelector("#items").clientWidth,B=this.get(this.ytLazyListBehavior.itemsPath,this);if(B){var G=Math.round(f/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=
Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+G,B.length)-1)}this.ytLazyListBehavior.canShowMore?S+this.minComponentWidth>=this.offset+f&&(this.atEnd=!1):this.atEnd=this.offset+f>=S-20?!0:!1;this.atStart=this.offset<=20}};
_.e.setStartIndex=function(f){if(!this.minComponentWidth){var S=_.m9(this.hostElement).querySelector("#items").firstElementChild;if(!S)return;this.minComponentWidth=glL(this,S)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*f;SG(this);this.reposition_()};
_.e.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.Tw();var f=_.m9(this.hostElement).querySelector("#scroll-container").clientWidth;_.K("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=glL(this,_.m9(this.hostElement).querySelector("#items").firstElementChild));f=this.useFloorScrolling?Math.floor(f/this.minComponentWidth)||1:Math.round(f/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&em6(this);this.offset+=G2v(this)?
fn$(this):f*this.minComponentWidth;SG(this);this.reposition_();this.scrollCount++};
_.e.prevClick_=function(){var f=_.m9(this.hostElement).querySelector("#scroll-container").clientWidth;f=this.useFloorScrolling?Math.floor(f/this.minComponentWidth)||1:Math.round(f/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=G2v(this)?fn$(this):this.minComponentWidth*this.scrollCount-1):this.offset-=G2v(this)?fn$(this):f*this.minComponentWidth;this.centerListItems&&em6(this);SG(this);this.reposition_()};
_.e.onIronResize_=function(){this.resizeSupportEnabled&&_.ui(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.e.onItemsTransitionEnd_=function(f){_.lt(f)===_.m9(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.e.onChildElementFocus_=function(f){f=f.target.closest("#items > *");var S=_.m9(this.hostElement).querySelector("#scroll-container");if(S.contains(f)){if(_.K("web_horizontal_list_behavior_focus_killswitch"))if(f.offsetLeft<this.offset)this.offset=Math.abs(f.offsetLeft)<f.clientWidth?0:f.offsetLeft;else if(f.offsetLeft+f.clientWidth>this.offset+S.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.Tw(),this.offset=f.offsetLeft+f.clientWidth-S.clientWidth;else return;else{var B=_.m9(this.hostElement).querySelector("#items"),
G=_.nL("HTML_DIR")==="rtl",g=G?B.clientWidth-f.offsetLeft:f.offsetLeft;B=G?B.clientWidth-(f.offsetLeft+f.clientWidth):f.offsetLeft+f.clientWidth;var b=G?g>this.offset+S.clientWidth:g<this.offset,z=G?B<this.offset:B>this.offset+S.clientWidth,X=G?b:z;if(G?z:b)S=G?B:g,this.offset=Math.abs(S)<f.clientWidth?0:S;else if(X)this.ytLazyListBehavior.fillRemainingListItems(),_.Tw(),this.offset=(G?g:B)-S.clientWidth;else return}SG(this);this.reposition_()}};
_.e.observeShownItems_=function(){this.reset()};
_.e.checkComponentWidthResize=function(){var f=_.m9(this.hostElement).querySelector("#items").firstElementChild;f&&(f=glL(this,f),this.centerListItems||f!==this.minComponentWidth)&&(this.minComponentWidth=f,this.offset=f*this.scrollCount,this.centerListItems&&em6(this),SG(this),this.reposition_())};
var glL=function(f,S){var B=window.getComputedStyle(S).marginRight;B=Math.floor(Number(B.replace("px","")));var G=window.getComputedStyle(S).marginLeft;G=Math.floor(Number(G.replace("px","")));f.centerListItems&&!f.marginWidthRight&&(f.marginWidthRight=B,f.marginWidthLeft=G);return f.resizeSupportEnabled?S.getBoundingClientRect().width+B:S.offsetWidth+B},SG=function(f){var S=_.m9(f.hostElement).querySelector("#scroll-container").clientWidth,B=_.m9(f.hostElement).querySelector("#items").clientWidth;
f.offset<0?f.offset=0:f.offset+S>=B&&(f.offset=B-S)},em6=function(f){f.offset-=(_.m9(f.hostElement).querySelector("#scroll-container").clientWidth+f.marginWidthRight-f.minComponentWidth)/2-f.marginWidthLeft};
_.y3.Object.defineProperties(B0.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var f=_.nL("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(f==-1)f=this.JSC$12337_cachedViewportHeight,f=f>1320?5:f>1020?4:f>730?3:f>430?2:1;else if(f==0)return 0;_.k5("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",f-1);f=_.nL("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(f>-1)return f;f=this.cachedViewportWidth;f=f>1600?6:f>1400?5:f>1300?4:f>1090?5:f>870?4:f>660?3:2;_.k5("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
f);return f},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.K("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
B0.prototype.observeShownItems_=B0.prototype.observeShownItems_;B0.prototype.onChildElementFocus_=B0.prototype.onChildElementFocus_;B0.prototype.onItemsTransitionEnd_=B0.prototype.onItemsTransitionEnd_;B0.prototype.onIronResize_=B0.prototype.onIronResize_;B0.prototype.prevClick_=B0.prototype.prevClick_;B0.prototype.nextClick_=B0.prototype.nextClick_;B0.prototype.setButtonsState_=B0.prototype.setButtonsState_;B0.prototype.requestButtonsStateUpdate_=B0.prototype.requestButtonsStateUpdate_;
B0.prototype.reposition_=B0.prototype.reposition_;B0.prototype.reset=B0.prototype.reset;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],B0.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ff.YtLazyListBehavior),_.Z("design:type",Object)],B0.prototype,"ytLazyListBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],B0.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],B0.prototype,"atStart",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],B0.prototype,"atEnd",void 0);_.N([_.n(),_.Z("design:type",Object)],B0.prototype,"startIndex",void 0);_.N([_.n(),_.Z("design:type",Object)],B0.prototype,"endIndex",void 0);_.N([_.n({value:6}),_.Z("design:type",Number)],B0.prototype,"initialCount",void 0);_.N([_.n(),_.Z("design:type",Object)],B0.prototype,"scrollCount",void 0);_.N([_.n(),_.Z("design:type",Object)],B0.prototype,"initialStartIndex",void 0);
_.N([_.n(),_.Z("design:type",Object)],B0.prototype,"disableScrollEventListener",void 0);_.N([_.n(),_.Z("design:type",Object)],B0.prototype,"supportComponentResize",void 0);_.N([_.n({value:function(){var f=this;return function(){return f.prevClick_()}}}),
_.Z("design:type",Function)],B0.prototype,"boundPrevClick",void 0);_.N([_.n({value:function(){var f=this;return function(){return f.nextClick_()}}}),
_.Z("design:type",Function)],B0.prototype,"boundNextClick",void 0);_.N([_.n(),_.Z("design:type",Object)],B0.prototype,"useFloorScrolling",void 0);_.N([_.n(),_.Z("design:type",Object)],B0.prototype,"isSearch",void 0);_.N([_.n(),_.Z("design:type",Object)],B0.prototype,"dragging",void 0);_.N([_.n(),_.Z("design:type",Object)],B0.prototype,"dragMouseStart",void 0);_.N([_.n(),_.Z("design:type",Object)],B0.prototype,"dragOffsetStart",void 0);
_.N([_.n(),_.Z("design:type",Object)],B0.prototype,"disableWheelScroll",void 0);_.N([_.n(),_.Z("design:type",Object)],B0.prototype,"centerListItems",void 0);_.N([_.Vg("iron-resize"),_.JO("guideOpened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],B0.prototype,"onIronResize_",null);_.N([_.Vg("transitionend"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],B0.prototype,"onItemsTransitionEnd_",null);
_.N([_.Vg("focusin"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],B0.prototype,"onChildElementFocus_",null);_.N([_.JO("shownItems"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],B0.prototype,"observeShownItems_",null);_.N([_.iu()],B0);_.o_.YtdHorizontalListBehavior=[];_.o_.YtdHorizontalListBehavior.push(_.Ld,_.c.YtRendererBehavior,_.ff.YtLazyListBehavior,_.Iu.YtdGuideStateAwareBehavior,B0.prototype);var a5W=["APP_STATE","PI"];var brj=_.f4(["about:blank"]),mW$={pushState:window.history.pushState,replaceState:window.history.replaceState};var G5=function(f){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=f;this.internalPushState=f.pushState.bind(f);this.internalReplaceState=f.replaceState.bind(f)};
G5.prototype.init=function(){this.initialized=!0};
G5.prototype.pushState=function(f,S){this.initialized||this.init();this.internalPushState&&this.internalPushState(f,"",S)};
G5.prototype.replaceState=function(f,S){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(f,"",S)};
G5.prototype.getState=function(){return this.history&&this.history.state};var zmN=function(f){var S=function(){var B=f.apply(this,arguments)||this;B.boundHistoryPushState=!1;B.boundHistoryReplaceState=!1;B.debugInfo={};return B};
_.q(S,f);S.prototype.init=function(){var B=_.Ja("IFRAME");_.x6(B,_.Sr(brj));B.sandbox="allow-same-origin";B.style.display="none";this.iframe=B;document.body.appendChild(B);this.bindHistoryStateFunctions();f.prototype.init.call(this)};
S.prototype.bindHistoryStateFunctions=function(){var B=this,G=[],g;this.iframe&&((g=this.iframe.contentWindow)==null?0:g.history)&&(g=this.iframe.contentWindow.history)&&(G.push(g),Object.getPrototypeOf(g)&&G.push(Object.getPrototypeOf(g)));window.history&&G.push(window.history);g=window.history;Object.getPrototypeOf(g)&&G.push(Object.getPrototypeOf(g));G.push(mW$);g=function(z){for(var X=null,w=0;w<G.length;w++){var F=G[w][z];if(typeof F==="function"){X=F.bind(window.history);B.debugInfo[z]=w;break}}return X};
if(!this.boundHistoryReplaceState){var b=g("replaceState");b&&(this.internalReplaceState=b,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(g=g("pushState"))&&(this.internalPushState=g,this.boundHistoryPushState=!0)};
return S}(G5),Rm$=function(){return zmN.call(this,window.history)||this};
_.q(Rm$,zmN);Rm$.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var gE=function(f){this.browserHistory=f;this.initialized=!1};
gE.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
gE.prototype.pushState=function(f,S){this.initialized||this.init();this.browserHistory.pushState(f,S)};
gE.prototype.replaceState=function(f,S){this.initialized||this.init();this.browserHistory.replaceState(f,S)};
gE.prototype.handlePopstate=function(f){return f.state};_.Xcj=function(f,S,B,G,g){this.endpoint=f;this.forward=S;this.historyEntry=B;this.JSC$26686_savedComponentState=G;this.legacyBorder=g===void 0?!1:g};var wcg=function(f,S){this.rootData=f;this.scrollTop=S};var jO=new _.Sn("PAGE_REQUEST_TOKEN"),YrN=new _.Sn("FETCH_PBJ_TOKEN");_.eG=new _.Sn("EPHEMERAL_STORE_TOKEN");_.br=function(f){this.data=Object.assign({},f);var S;(S=this.data.innertubeResponse)==null||delete S.frameworkUpdates};
_.br.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.fO)()};
_.wL=function(f){return Object.assign({},f.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var hm6=function(){this.maxSize=100;this.timeToDataCache=new Map};
hm6.prototype.get=function(f){var S=this.timeToDataCache.get(f);S&&(this.timeToDataCache.delete(f),this.timeToDataCache.set(f,S));if(S&&S.rootData&&(_.K("web_use_response_store_for_history_cache")||_.K("mweb_use_new_history_manager"))){var B=_.oy().resolve(_.eG),G=TwN(S),g=!!G;if(G){if(G.content){var b=mX(B,G.content);g&&b?S.rootData.response=_.wL(b):g=!1}G.player&&(b=mX(B,G.player),g&&b?S.rootData.playerResponse=_.wL(b):g=!1);G.reelSequence&&(B=mX(B,G.reelSequence),g&&B?S.rootData.reelWatchSequenceResponse=
_.wL(B):g=!1)}g||(this.timeToDataCache.delete(f),S=void 0)}return S};
hm6.prototype.set=function(f,S){if(S.rootData&&(_.K("web_use_response_store_for_history_cache")||_.K("mweb_use_new_history_manager"))){var B=TwN(S),G=Object.assign({},S.rootData);B&&(B.content&&S.rootData.response&&(FLm(this,B.content,S.rootData.response),G.response=null),B.player&&S.rootData.playerResponse&&(FLm(this,B.player,S.rootData.playerResponse),G.playerResponse=null),B.reelSequence&&S.rootData.reelWatchSequenceResponse&&(FLm(this,B.reelSequence,S.rootData.reelWatchSequenceResponse),G.reelWatchSequenceResponse=
null));S=new wcg(G,S.scrollTop)}this.timeToDataCache.has(f)?this.timeToDataCache.delete(f):this.timeToDataCache.size>=this.maxSize&&(B=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(B.value));this.maxSize!==0&&this.timeToDataCache.set(f,S)};
hm6.prototype.clear=function(){this.timeToDataCache.clear()};
var TwN=function(f){var S=_.oy().resolve(_.fN(jO)),B;if((B=f.rootData)==null?0:B.endpoint)return S==null?void 0:X$Q(S,f.rootData.endpoint);var G;_.Lg(new _.dO("History snapshot response data does not contain endpoint",(G=f.rootData)==null?void 0:G.url));return null},FLm=function(f,S,B){if(f.maxSize>0){var G;
(f=(G=B.responseContext)==null?void 0:G.maxAgeSeconds)&&Number(f)>0&&(G=_.oy().resolve(_.eG),B=R8(B,f),G.put(S,new _.br(B)))}};var VSL=function(f,S,B){this.endpoint=S;this.JSC$26691_savedComponentState=B===void 0?null:B;this.entryTime=f};var olV=1;var z5=function(f){var S=function(){var B=f.apply(this,[].concat(_.$d(_.qb.apply(0,arguments))))||this;B.historyEntryTime=0;B.historySnapshotCache=B.createHistoryCache();return B};
_.q(S,f);S.prototype.createHistoryCache=function(){return new hm6};
S.prototype.saveAndReplace=function(B,G,g){var b=window.location.href;var z=z===void 0?{}:z;var X=(X=this.browserHistory.getState())&&X.entryTime?X.entryTime:SpN();B=this.createNewHistoryEntry(B,z,X);this.saveSnapshot(X,G,g);this.replaceState(B,b||window.location.href)};
S.prototype.saveAndPush=function(B,G,g,b,z){z=z===void 0?{}:z;this.saveSnapshot(this.historyEntryTime,g,b);g=this.historySnapshotCache;b=this.historyEntryTime;var X=g.timeToDataCache.keys();X=_.m(X);for(var w=X.next();!w.done;w=X.next())w=w.value,w>b&&g.timeToDataCache.delete(w);G=this.createNewHistoryEntry(G,z);this.pushState(G,B)};
S.prototype.saveSnapshot=function(B,G,g){this.historySnapshotCache.set(B,new wcg(G,g))};
S.prototype.createNewHistoryEntry=function(B,G,g){g=g===void 0?SpN():g;return new VSL(g,B,G)};
S.prototype.handlePopstate=function(B){var G=f.prototype.handlePopstate.call(this,B),g=null,b=null,z=!1,X=null;G&&G.entryTime&&(X=this.historySnapshotCache.get(G.entryTime)||null,z=G.entryTime>this.historyEntryTime,this.historyEntryTime=G.entryTime,g=G.endpoint,b=G.JSC$26691_savedComponentState);this.handleHistoryCacheLoad(new _.Xcj(g,z,X,b),B);return G};
S.prototype.pushState=function(B,G){Number(B==null?void 0:B.entryTime)>=0&&(this.historyEntryTime=B.entryTime);f.prototype.pushState.call(this,B,G)};
S.prototype.replaceState=function(B,G){Number(B==null?void 0:B.entryTime)>=0&&(this.historyEntryTime=B.entryTime);f.prototype.replaceState.call(this,B,G)};
S.prototype.handleHistoryCacheLoad=function(){};
return S}(gE),Jum=function(){var f=z5.call(this,new Rm$)||this;
f.dispatchElement=null;f.entryIndex=0;return f};
_.q(Jum,z5);_.e=Jum.prototype;_.e.init=function(f){f=f===void 0?!0:f;z5.prototype.init.call(this);this.initialized||(f||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.e.handlePopstate=function(f){var S=null;f.state||(S="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return z5.prototype.handlePopstate.call(this,f);var B=new CustomEvent("yt-history-pop",{cancelable:!0});_.bW(this.dispatchElement,"yt-history-pop",[B,{errorMsg:S}]);_.mU(this.dispatchElement,"yt-close-all-popups-action");if(!B.defaultPrevented){B=_.oy().resolve(_.o8);S=B.getCurrentData();var G=B.getCurrentPage();B=0;G?(G=_.bW(this.dispatchElement,"yt-get-page-offset",
[G]),G.length>0&&(B=G[0])):_.Lg(new _.dO("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:S?S.page:"undefined"}));S&&(S.csn=_.xc());this.saveSnapshot(this.historyEntryTime,S,B)}return z5.prototype.handlePopstate.call(this,f)};
_.e.handleHistoryCacheLoad=function(f,S){f.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.m(_.mU(this.dispatchElement,"yt-history-will-navigate",[S])).next().value||_.bW(this.dispatchElement,"yt-history-load",[S,f]))};
_.e.pushState=function(f,S){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var B=new _.dO("history.pushState is not a function",this.getDebugString());_.xH(B)}z5.prototype.pushState.call(this,f,S)};
_.e.replaceState=function(f,S){if(!this.browserHistory.boundHistoryReplaceState){var B=new _.dO("history.replaceState is not a function",this.getDebugString());_.xH(B)}z5.prototype.replaceState.call(this,f,S)};
_.e.saveAndPush=function(f,S,B,G,g){g=g===void 0?{}:g;B&&(B.csn=_.xc());z5.prototype.saveAndPush.call(this,f,S,B,G,g)};
_.e.getDebugString=function(){var f=[];this.initialized&&f.push("i");this.browserHistory.boundHistoryReplaceState&&f.push("bhr");this.browserHistory.boundHistoryPushState&&f.push("bhs");"replaceState"in this.browserHistory.debugInfo&&f.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&f.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&f.push("ei:"+String(this.entryIndex));return f.join(",")};
_.R_=function(f,S){f.init(!0);var B=f.browserHistory.getState();f.replaceState(B,zG(S))};
Jum.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.XS=new _.Sn("DESKTOP_HISTORY_MANAGER_TOKEN");var PSX=[10,20,30,40,50,60],wE=function(){this.currentPartitionIndex=0},vlN=function(f){ODm({mainAppWeb:_.ut(),
survivalSli:{partitionMinute:f,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},KL7=function(f){ODm({mainAppWeb:_.ut(),
survivalSli:{partitionMinute:f,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},dWj=function(f){return f.currentPartitionIndex>=0&&f.currentPartitionIndex<PSX.length?PSX[f.currentPartitionIndex]:-1},irm=function(f){return f.currentPartitionIndex>0&&f.currentPartitionIndex-1<PSX.length?PSX[f.currentPartitionIndex-1]:-1};
wE.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var f=irm(this);f>0&&KL7(f);f=dWj(this);f>0&&vlN(f);Hr$(this)}};
var Hr$=function(f){var S=dWj(f);if(S>0){var B=irm(f);B<0&&(B=0);f.intervalId=_.xJ.addJob(function(){var G=irm(f);G>0&&KL7(G);G=dWj(f);G>0&&vlN(G);Hr$(f)},3,(S-B)*6E4);
f.currentPartitionIndex+=1}else f.currentPartitionIndex=-1};var qpg=function(){this.skipNextNavigation=!1},$Wv=function(f,S,B){if(!S)return!1;
if(f.skipNextNavigation)return f.skipNextNavigation=!1;if(_.H(B,_.pg))return!1;var G,g,b;if((G=_.H(B,_.d3))==null?0:(g=G.browseEndpointContextSupportedConfigs)==null?0:(b=g.browseEndpointContextMainConfig)==null?0:b.skipConfirmation)return!1;var z;return((z=_.H(S.commandMetadata,_.oD))==null?void 0:z.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
qpg.prototype.showConfirmationDialog=function(f,S){this.navigateParams=S;this.customConfirmationCommand?_.oy().resolve(_.S7).resolveCommand(this.customConfirmationCommand):(S={openPopupAction:{popup:{confirmDialogRenderer:{title:_.uC(_.Jf("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.uC(_.Jf("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.uC(_.Jf("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.uC(_.Jf("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.AE.getInstance().triggerAction("yt-open-popup-action",S,f))};
qpg.prototype.cancelPendingNavigation=function(){var f;((f=this.navigateParams)==null?void 0:f.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var QwN=function(){},ruN=function(f,S,B,G,g,b,z){B=B===void 0?{}:B;
z=z===void 0?{}:z;var X=_.H4.instance,w,F=(w=_.H(S,_.pg))==null?void 0:w.url;return F?uWW(X,F,B,window.location.href,function(V,J){Yp8(f,V,J,!1,!0,B,b,G)},function(){return!1}):t9(X,S,B,window.location.href,qo(S),function(V,J){Yp8(f,V,J,!1,!0,B,b,G)},g,z)},Yp8=function(f,S,B,G,g,b,z,X){if(!f.JSC$12395_chunkHandler)if(B.page==="watch"||B.page==="learning_journey_watch")if(g||G){if(_.K("kevlar_continue_playback_without_player_response")){var w;
var F=(w=_.H(X,_.t2))==null?void 0:w.videoId}f.JSC$12395_chunkHandler=new l3X(_.B8,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:G,previousVideoId:F},tempData:b},z)}else f.JSC$12395_chunkHandler=new uSi(_.B8);else B.page==="shorts"&&g&&!G?f.JSC$12395_chunkHandler=new cgL(_.B8,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:b},z):f.JSC$12395_chunkHandler=new a38(z);f.JSC$12395_chunkHandler.processChunk({endpoint:S,data:B});return f.JSC$12395_chunkHandler.bT.promise},
jw$=function(f,S,B,G,g){(B=_.pxN(B))&&Yp8(f,S,B,!1,!0,G,void 0,g)};var Orm=function(){this.pendingNavigationPromise=null};
_.e=Orm.prototype;_.e.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.e.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.e.addEventListener=function(){throw Error("yh");};
_.e.dispatchEvent=function(){throw Error("yh");};
_.e.removeEventListener=function(){throw Error("yh");};var xWN=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],hg=function(){_.$o.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];El1(this)};
_.q(hg,_.$o);hg.prototype.verifyUser=function(){var f=El1(this),S=f.logout;if(!f.sessionChange)return!0;this.dispatchEvent("ytsessionchange");S&&this.dispatchEvent("ytuserinvalid");return!1};
var El1=function(f){var S=xWN.map(function(g){var b;return(b=_.VP.get(g))!=null?b:""}),B=S.some(function(g,b){return f.sessionCookies&&f.sessionCookies[b]!==""&&g===""}),G=S.some(function(g,b){return f.sessionCookies&&f.sessionCookies[b]!==g});
f.sessionCookies=S;return{logout:B,sessionChange:G}};
hg.prototype.clearTimeout=function(){this.scheduledJobId&&(_.xJ.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var br1=new _.Sn("POSTMESSAGE_TUNNEL_TOKEN");var G2N=["/parent_tools","/file_download","/artist_roster"],RmN=[JhW,PyT,vLx,dX1,KKM,VJA,iAV,HAM];var LLX=new _.Sn("APP_ROOT");var T5=new _.Sn("NAVIGATION_CONFIRMATION_SERVICE");var k28="/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(" "),nlv=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
FS=function(f,S){this.pendingNavigationPromise=null;this.JSC$12413_clientRoot=f;this.historyManager=S;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 QwN;this.debugString=f.is;f={"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};_.N6(_.AE.getInstance(),f,this.JSC$12413_clientRoot)},CS$,pcN,Au6,Nw$,UWL;
_.q(FS,Orm);FS.prototype.reload=function(){_.tK(window.location.href)};
var MLo=function(f){f.currentEndpoint&&_.H(f.currentEndpoint,_.QW)?f.reload():f.currentEndpoint&&f.navigate(f.currentEndpoint,!0,void 0,{disableCache:!0})};
FS.prototype.navigate=function(f,S,B,G,g,b,z,X){S=S===void 0?!1:S;B=B===void 0?{}:B;G=G===void 0?{}:G;var w=_.oy().resolve(T5),F;if(!z&&$Wv(w,(F=this.currentEndpoint)!=null?F:void 0,f))return w.showConfirmationDialog(this.JSC$12413_clientRoot.parentElement,{endpoint:f,reload:S,params:B,tempData:G,requestType:g,createScreenConfig:b}),!1;var V=_.UX();_.CD(V,"eocs")||V.parkOrScheduleJob(function(){V.processSignal("eocs")},10,"eor");
z=qo(f);w=G.autonav==="1";F=_.xc();hg.instance||(hg.instance=new hg);var J=hg.instance.verifyUser(),P;if(_.K("enable_dark_theme_only_on_shorts")){var d=document.documentElement.hasAttribute("dark"),Q=_.xG(!0)==="USER_INTERFACE_THEME_DARK";if(z==="shorts"){if(!d)if(_.K("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var x;_.tK((x=_.H(f==null?void 0:f.commandMetadata,_.oD))==null?void 0:x.url,void 0,void 0,window.top)}}else{var E;_.tK(_.Zt((E=_.H(f==null?
void 0:f.commandMetadata,_.oD))==null?void 0:E.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.K("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!d){var U;_.tK(_.Zt((U=_.H(f==null?void 0:f.commandMetadata,_.oD))==null?void 0:U.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(Q!==d){var A;_.tK(_.Zt((A=_.H(f==null?void 0:f.commandMetadata,_.oD))==null?void 0:A.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(z==="watch"){if(swN(_.oy().resolve(_.N_),
f)&&(J||_.K("fix_miniplayer_navigation_killswitch")))return!1;_.K("block_all_player_prefetch_requests")||(P=AH6(_.RQ(_.qm),f,w))}else{var t,M=(t=_.H(this.currentEndpoint,_.t2))==null?void 0:t.videoId;M&&_.YZ.getInstance().then(function(OV){OV&&OV.set("yt-miniplayer-shown-video-id",M)})}P&&(B.frags=P.missingFragments_.join(","));
x=null;var a;E=(a=_.H(f==null?void 0:f.commandMetadata,_.oD))==null?void 0:a.ignoreNavigation;if(!E)if(_.K("kevlar_command_url")){var l;x=(l=_.H(f==null?void 0:f.commandMetadata,_.oD))==null?void 0:l.url}else x=_.qns(f,B);if(x&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&x==this.lastNavigationUrl)return _.EL({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.PY(DT(),"CANCELLED")}x&&(this.lastNavigationUrl=x);AiW();_.k5("IS_HOMEPAGE_COLD",
!1);_.k5("IS_RESULTS_PAGE_COLD",!1);_.k5("IS_WATCH_PAGE_COLD",!1);f.loggingUrls&&f.loggingUrls.forEach(function(OV){OV.baseUrl&&_.pO(OV.baseUrl)});
_.TwA(f,b?b.layer:0)&&_.K("kevlar_flush_logs_on_away_navigation")&&_.OU();if(Xc1(f))return!1;ipN(z,g);if(!x)return E||_.Lg(new _.dO("Can't construct url for endpoint",f)),_.PY(DT(),"FAILURE"),!1;_.BwT();a=f&&_.H(f,_.d3)&&_.H(f,_.d3).browseId.startsWith("UC");B=(l=_.K("enable_dark_theme_only_on_shorts")&&z==="shorts"?!1:_.Et()&&document.documentElement.hasAttribute("dark")!==_.Ot())?{themeRefresh:1}:{};l&&!_.PL()&&_.xG()==="USER_INTERFACE_THEME_DARK"&&(B.theme="dark");a=l||DWo(x)&&!a&&!_.K("kevlar_disable_url_allowlist");
J||(a=!0);if(a||_.nL("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var mx;var zj=(mx=window.top)==null?void 0:mx.location.href}catch(OV){var VN;zj=(VN=OV)==null?void 0:VN.message}_.Lg(new _.dO("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:zj}))}f=_.K("kevlar_redirect_on_window_killswitch")?window.top:window;ZU(x);_.tK(_.Zt(x,B),void 0,void 0,f);_.PY(DT(),"ABORTED");return!1}_.K("kevlar_early_popup_close")&&_.bW(this.JSC$12413_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$12395_chunkHandler=void 0;var $Q;zj=qo(($Q=this.currentEndpoint)!=null?$Q:void 0);($Q=z==="shorts"&&zj==="shorts")||_.yVM();_.Ij(n_N)("nr",void 0);w&&_.EL({webInfo:{navigationReason:"an"}});f.clickTrackingParams&&(G.itct=f.clickTrackingParams,G.csn=F);fV1(G);G.endpoint=JSON.stringify(f);_.K("enable_unknown_lact_fix_on_html5")&&(_.oy().resolve(_.k8),G.lact=_.or());_.$v.isEmpty(G)||_.WZ(x,G);!_.K("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(b=Object.assign({},{layer:0},b,{parentLayer:3}));this.pendingNavigationPromise=b=ruN(this.pageFetcher,f,G,this.currentEndpoint,this.JSC$12413_isNetworkPromiseStale.bind(this),b,X);b=b.then(this.handleNavigateSuccess.bind(this,b,f,P,G),this.handleNavigateFail.bind(this,b,f));_.Pn().navigationFinishPromise=b;S={endpoint:f,pageType:z,url:zG(x),reload:!!S,noProgressBar:$Q};g&&(S.type=g);this.fireEvent("yt-navigate-start",S);P&&jw$(this.pageFetcher,f,P,G,this.currentEndpoint);
return!0};
FS.prototype.JSC$12413_isNetworkPromiseStale=function(f){return f!=this.pendingNavigationPromise};
var Ing=function(f,S,B,G,g){var b=qo(S);S={endpoint:S,pageType:b};g&&(S.errorMessage=g);_.Lg(B);S.navigationDoneMs=_.kT("nd");S.navigationErrorReason=G;f.fireEvent("yt-navigate-error",S)};
FS.prototype.handleNavigateFail=function(f,S,B){var G=void 0;B instanceof _.y1&&(G=B,iHs(B));if(this.JSC$12413_isNetworkPromiseStale(f))return _.xe(G);_.PY(DT(),"FAILURE");Ing(this,S,B,"101");return _.xe(B)};
FS.prototype.handleNavigateSuccess=function(f,S,B,G,g){if(this.JSC$12413_isNetworkPromiseStale(f))return _.wh();this.pendingNavigationPromise=null;if(!g)return S=new _.dO("Missing data in response for navigation endpoint",S),_.xe(S);if(g.reload)return window.location.reload(!0),_.wh();B&&(f={},_.$v.extend(f,_.pxN(B),g),g=f);var b,z;B=(b=g)==null?void 0:(z=b.timing)==null?void 0:z.responseStart;B!=null&&_.kT("srt",B);_.kT("pdc");var X,w;b=(X=g)==null?void 0:(w=X.timing)==null?void 0:w.info;b!=null&&
(X=_.Ij(_.UiV)(b),_.EL(X));_.PY(DT(),"SUCCESS");UWL(this,S,g,1,G);return _.wh()};
var DWo=function(f){var S=f;_.K("kevlar_no_redirect_to_classic_2_ks")||(S=(new _.uT(f)).getPath());if(S==="/"||S==="/red")return!1;var B=!0;k28.forEach(function(G){f.indexOf(G)===0&&(B=!1)});
nlv.forEach(function(G){var g=G.url;_.K(G.expFlag)&&f.indexOf(g)===0&&(B=!1)});
return B};
FS.prototype.publishPageData=function(f){this.fireEvent("yt-page-data-fetched",{pageData:f})};
CS$=function(f,S,B,G,g,b){var z=null;S.page!=="watch"&&S.page!=="learning_journey_watch"||G?S.filler||_.bW(f.JSC$12413_clientRoot,"yt-stop-old-player",[S]):z=Yp8(f.pageFetcher,g,S,B,!1,b,void 0,f.currentEndpoint);if(z)return z.then(f.publishPageData.bind(f,S));f.publishPageData(S);return _.wh()};
pcN=function(f,S,B){var G=null;if(!B)return G=new _.dO("Empty data",f.debugString,S);var g=B.response;if(!g)return G;var b={endpointType:qo(S)||"unknown"};g.responseContext?(g=g.responseContext.errors)&&(G=new _.dO("Errors in response context",f.debugString,S,g,b)):G=g.error||g.errorMetadata?new _.dO("Errors in response",f.debugString,S,g.error,g.errorMetadata,b):new _.dO("responseContext missing",f.debugString,S,Object.keys(g).sort().join(","),b);var z,X,w,F;if(f=B==null?void 0:(z=B.response)==null?
void 0:(X=z.responseContext)==null?void 0:(w=X.webResponseContextExtensionData)==null?void 0:(F=w.webResponseContextDebugData)==null?void 0:F.debugErrorMessages)for(z=0;z<f.length;z++);return G};
Au6=function(f){var S,B,G,g;return f==null?void 0:(S=f.response)==null?void 0:(B=S.responseContext)==null?void 0:(G=B.errors)==null?void 0:(g=G.error)==null?void 0:g["0"]};
Nw$=function(f,S){var B;if(B=S.url&&!S.url.startsWith("/clip"))B=S.url,B=!_.K("webfe_parse_debug_param_in_resolveurl_service")&&f.searchDebugUrlMatcher.test(B)||jfV(B)?!0:!1;if(B)jfV(S.url)&&_.Mp(window.location.href).themeRefresh?(S=_.cZ(S.url,"themeRefresh"),_.R_(f.historyManager,S)):S.url&&!l51(S.url)&&_.R_(f.historyManager,S.url);else if(S.endpoint){var G,g,b;(B=(G=S.endpoint)==null?void 0:(g=G.commandMetadata)==null?void 0:(b=g.webCommandMetadata)==null?void 0:b.url)&&!l51(B)&&_.R_(f.historyManager,
B);B&&S.url&&B!=S.url&&!S.url.match("playnext=1")&&new _.dO("Response url mismatch in response data",f.debugString,B,S.url)}};
_.MSj=function(f,S,B,G,g,b,z,X){b=b===void 0?!1:b;var w=_.oy().resolve(T5),F;if(!X&&$Wv(w,(F=f.currentEndpoint)!=null?F:void 0,S))return w.showConfirmationDialog(f.JSC$12413_clientRoot.parentElement,{endpoint:S,data:B,navigationType:G,tempData:g,isMiniplayer:b,isForwardHistoryNavigation:z==null?void 0:z.forward}),_.wh();f.pageFetcher.JSC$12395_chunkHandler=void 0;return UWL(f,S,B,G,g,b)};
UWL=function(f,S,B,G,g,b){b=b===void 0?!1:b;f.isMiniplayerExpansion=b;var z=G===2;f.currentEndpoint=S;f.numNavigations++;f.numNavigations&&(C3W.navigationCount=f.numNavigations);_.k5("NUM_NAV",f.numNavigations);var X=pcN(f,S,B);if(X)return Ing(f,S,X,"102",Au6(B)),_.xe(X);var w,F,V,J;X=B.rootVe||(B==null?void 0:(w=B.response)==null?void 0:(F=w.responseContext)==null?void 0:(V=F.webResponseContextExtensionData)==null?void 0:(J=V.ytConfigData)==null?void 0:J.rootVisualElementType);!z&&B&&Nw$(f,B);var P,
d;w=B==null?void 0:(P=B.response)==null?void 0:(d=P.responseContext)==null?void 0:d.maxAgeSeconds;if(!z&&!isNaN(w)){var Q;_.K("kevlar_use_response_ttl_to_invalidate_cache")?Q=(0,_.fO)()+1E3*w:_.K("kevlar_always_invalidate_cache")&&(Q=0);isNaN(Q)||(B.expirationTime=Q)}_.K("html5_enable_ssap_entity_id")&&z&&B.playerResponse&&(B.playerResponse.cacheMetadata={isCacheHit:!0});_.RQ(_.qm).prefetchCache_.clear();z||B.page!=="watch"||B.type!=="reduced"&&G!==1?G=CS$(f,B,z,!!b,S,g):(f.publishPageData(B),G=_.wh());
g=G.then(function(){var x=qo(S);x={endpoint:S,pageType:x,fromHistory:z,response:B};x.navigationDoneMs=_.kT("nd");f.fireEvent("yt-navigate-finish",x)});
B.csn&&X&&B.clientSideGrafts&&G.then(f.attachClientSideGrafts.bind(f,B,_.Of()));return g};
_.e=FS.prototype;_.e.attachClientSideGrafts=function(f,S){f.clientSideGrafts&&S&&f.clientSideGrafts.forEach(function(B){if(S&&B){var G=_.Ye(B);_.K("combine_ve_grafts")?_.ik().graftServerVe(B,S):_.Af(f.csn,S,G)}})};
_.e.handleSignalActionHistoryBack=function(){window.history.back()};
_.e.handleSignalActionCloseWindow=function(){window.close()};
_.e.handleSignalActionReloadPage=function(){this.reload()};
_.e.handleSignalActionSoftReloadPage=function(){MLo(this)};
_.e.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.e.fireEvent=function(f,S){f=new CustomEvent(f,{bubbles:!0,cancelable:!1,composed:!0,detail:S});this.dispatchEvent(f)};
_.e.addEventListener=function(f,S){this.JSC$12413_clientRoot.addEventListener(f,S)};
_.e.dispatchEvent=function(f){return this.JSC$12413_clientRoot.dispatchEvent(f)};
_.e.removeEventListener=function(f,S){this.JSC$12413_clientRoot.removeEventListener(f,S)};
FS[oN]=[LLX,_.XS];_.cNj=new gQ("browse","h8y2qb");_.l1Q=new gQ("search","JzFVk");_.fkV=new gQ("shorts","xwEKAe");_.ouQ=new gQ("watchFixie","nmfa2d");_.SYV=new gQ("watchFlexy","CF909");_.BqW=new gQ("watchGrid","Tm0L3c");_.GxM=new gQ("watchLearningJourney","L3n37");var Zr6;var tSX=function(){return _.I.apply(this,arguments)||this};
_.q(tSX,_.I);_.y3.Object.defineProperties(tSX,{template:{configurable:!0,enumerable:!0,get:function(){if(Zr6===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);Zr6=f}f=Zr6;return f}}});
_.N([_.r(tBN.YtPlayerBehavior),_.Z("design:type",Object)],tSX.prototype,"ytPlayerBehavior",void 0);_.N([_.C({is:"ytd-player"})],tSX);var uRN;var anN;var yu1;var VK=function(){var f=_.I.apply(this,arguments)||this;f.forceModernIconButton=!1;f.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return f};
_.q(VK,_.I);VK.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]]"}}}}}};
VK.prototype.handleAccountLinkingStateChangedCommand=function(f){if(f=_.H(f,ZbL)){var S,B=(S=this.data)==null?void 0:S.providerKey;S=f.providerKey;B&&S&&B.id===S.id&&B.subject===S.subject&&(f=f.linked,f!==void 0&&(this.set("data.linked",f),this.notifyPath("data.linked"),_.K("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(f)))}};
VK.prototype.setPlayerAccountLinkState=function(f){var S=new x4N;OGK(S,EyQ(new L21,f));var B=_.B8();B&&B.getPlayerPromise().then(function(G){G.setAccountLinkState(_.oO(S.JSC$10127_serializeBinary(),4));G.updateAccountLinkingConfig(f)})};
VK.prototype.handleShowAccountLinkDialog=function(){var f=this.get("button.buttonRenderer.command");f&&_.TZ([f],this.hostElement)};
_.y3.Object.defineProperties(VK.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}}}});
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],VK.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],VK.prototype,"ytRendererBehavior",void 0);_.N([_.r([_.b3.YtActionHandlerBehavior]),_.Z("design:type",Object)],VK.prototype,"actionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],VK.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],VK.prototype,"overrides",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],VK.prototype,"forceModernIconButton",void 0);_.N([_.n({value:"bottom"}),_.Z("design:type",String)],VK.prototype,"buttonTooltipPosition",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],VK.prototype,"forceIconButton",void 0);_.N([_.n(),_.Z("design:type",Boolean)],VK.prototype,"disableTextTransform",void 0);
_.N([_.k("data","data.linked","data.isWarning"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],VK.prototype,"button",null);_.N([_.C({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],VK);
_.p(VK,"ytd-account-link-button-renderer",function(){if(yu1!==void 0)return yu1;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return yu1=f},{mode:1});var WLN;var cum=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],Jg=function(){return _.I.apply(this,arguments)||this};
_.q(Jg,_.I);Jg.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
Jg.prototype.updateButtonActiveState=function(){var f=this,S=!!cum.find(function(B){return f.currentState===B});
this.button&&(this.button.isPressed=S)};
_.y3.Object.defineProperties(Jg.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var f,S;return((f=this.playlistLoopStateEntity)==null?void 0:f.state)||((S=this.data)==null?void 0:S.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var f=void 0,S;if(this.currentState&&((S=this.data)==null?0:S.states)){S=_.m(this.data.states);for(var B=S.next();!B.done;B=S.next()){B=_.H(B.value,_.XqX);var G=void 0;if(((G=B)==null?void 0:G.state)===this.currentState){f=B;break}}}return f}}});
Jg.prototype.updateButtonActiveState=Jg.prototype.updateButtonActiveState;_.N([_.r(_.Ek),_.Z("design:type",Object)],Jg.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Jg.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Jg.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.n({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.dW1}),_.Z("design:type",Object)],Jg.prototype,"playlistLoopStateEntity",void 0);_.N([_.n(),_.Z("design:type",Object)],Jg.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Boolean)],Jg.prototype,"forceIconOnly",void 0);_.N([_.vF("ytd-button-renderer"),_.Z("design:type",_.Wl)],Jg.prototype,"button",void 0);
_.N([_.k("data","playlistLoopStateEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Jg.prototype,"currentState",null);_.N([_.JO("currentButtonStateRenderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Jg.prototype,"updateButtonActiveState",null);_.N([_.k("currentState"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Jg.prototype,"currentButtonStateRenderer",null);
_.N([_.C({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],Jg);
_.p(Jg,"ytd-playlist-loop-button-renderer",function(){if(WLN!==void 0)return WLN;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return WLN=f},
{mode:1});var lni;var fBm=_.Jf("DOWNLOAD",{},"Download"),o3o=_.Jf("DOWNLOADING",{},"Downloading"),Shm=_.Jf("DOWNLOADED",{},"Downloaded"),B6L=_.Jf("RETRY",{},"Retry"),P0=function(){var f=_.I.apply(this,arguments)||this;f.forceIconButton=!1;f.forceIconOnly=!1;f.overrides=!1;f.buttonTooltipPosition=!1;f.styleActionButton=!1;f.disableTextTransform=!1;f.downloadProgress=0;f.isDownloadComplete=!1;f.isHidden=!0;f.transferState="TRANSFER_STATE_UNKNOWN";f.isVideoDeletedByUser=!1;f.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return f};
_.q(P0,_.I);_.e=P0.prototype;_.e.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.e.dataChanged=function(){var f;(f=this.data)!=null&&f.text||(f=_.sA(_.W2().getState(),this.videoId),this.updateButtonState(f))};
_.e.computeVideoId=function(f){return f};
_.e.showHideButton=function(){this.updateButtonVisibility()};
_.e.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};
_.e.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.e.updateButtonState=function(f){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==o3o||!_.d9(f))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(f){case "TRANSFER_STATE_UNKNOWN":f=fBm;var S="OFFLINE_DOWNLOAD";var B="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":f=B6L;S="OFFLINE_DOWNLOAD";B="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":f=Shm;S="OFFLINE_PIN";B="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":f=
o3o;S="OFFLINE_DOWNLOADING_ZERO";B="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":f=B6L;S="OFFLINE_DOWNLOAD";B="ACTION_RETRY";break;default:f=fBm,S="OFFLINE_DOWNLOAD",B="ACTION_ADD"}this.isVideoDeletedByUser&&(f=fBm,S="OFFLINE_DOWNLOAD",B="ACTION_ADD");var G=Object.assign({},this.data);G.text=_.uC(f);G.tooltip=f;G.icon={iconType:S};G.size="SIZE_DEFAULT";G.style="STYLE_DEFAULT";_.H(G.command,_.V5)&&(_.H(G.command,_.V5).action=B);this.set("data",G)}};
_.e.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var f="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?f="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?f="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?f="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?f="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?f="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(f="OFFLINE_PIN",this.isDownloadComplete=!0);var S;f!==((S=this.data.icon)==null?void 0:S.iconType)&&(S=Object.assign({},this.data),S.text=_.uC(o3o),S.tooltip=o3o,S.icon={iconType:f},_.H(S.command,_.V5)&&(_.H(S.command,_.V5).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",S))}};
P0.prototype.updateProgress=P0.prototype.updateProgress;P0.prototype.onTransferStateChanged=P0.prototype.onTransferStateChanged;P0.prototype.showHideButton=P0.prototype.showHideButton;P0.prototype.dataChanged=P0.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],P0.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],P0.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],P0.prototype,"forceIconButton",void 0);
_.N([_.n(),_.Z("design:type",Object)],P0.prototype,"forceIconOnly",void 0);_.N([_.n(),_.Z("design:type",Object)],P0.prototype,"overrides",void 0);_.N([_.n(),_.Z("design:type",Object)],P0.prototype,"buttonTooltipPosition",void 0);_.N([_.n(),_.Z("design:type",Object)],P0.prototype,"styleActionButton",void 0);_.N([_.n(),_.Z("design:type",Object)],P0.prototype,"disableTextTransform",void 0);
_.N([_.n({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.Z("design:type",String)],P0.prototype,"videoId",void 0);_.N([_.n(),_.Z("design:type",Object)],P0.prototype,"data",void 0);_.N([_.n({selector:Ic,selectorArgs:["videoId"]}),_.Z("design:type",Object)],P0.prototype,"downloadProgress",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],P0.prototype,"isDownloadComplete",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],P0.prototype,"isHidden",void 0);_.N([_.n({selector:_.sA,selectorArgs:["videoId"]}),_.Z("design:type",String)],P0.prototype,"transferState",void 0);_.N([_.n({selector:_.q2T,selectorArgs:["videoId"]}),_.Z("design:type",Object)],P0.prototype,"isVideoDeletedByUser",void 0);_.N([_.n({selector:vfM,selectorArgs:["videoId"]}),_.Z("design:type",Object)],P0.prototype,"offlineabilityState",void 0);
_.N([_.n({value:!0}),_.Z("design:type",Boolean)],P0.prototype,"showTooltips",void 0);_.N([_.n({value:!0}),_.Z("design:type",Boolean)],P0.prototype,"sendCommandWhenDisabled",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],P0.prototype,"disabled",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],P0.prototype,"dataChanged",null);
_.N([_.HF("offlineabilityState"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],P0.prototype,"showHideButton",null);_.N([_.HF("transferState","isVideoDeletedByUser"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],P0.prototype,"onTransferStateChanged",null);_.N([_.HF("downloadProgress"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],P0.prototype,"updateProgress",null);
_.N([_.C({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],P0);
_.p(P0,"ytd-download-button-renderer",function(){if(lni!==void 0)return lni;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return lni=f},{mode:2});var Gpo;var g3m,egv=function(){if(g3m!==void 0)return g3m;var f=document.createElement("template");_.Y(f,'\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 g3m=f};var bmL=_.K("web_button_rework")&&_.s6("BUTTON_REWORK")||_.K("web_button_rework_with_live"),m8i=_.Gt("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,v0=function(){var f=_.I.apply(this,arguments)||this;f.isPressed=!1;f.forceIconButton=!1;f.forceIconOnly=!1;f.forceModernIconButton=!1;f.alignByText=!1;f.isShorts=!1;f.animatedText=!1;f.shouldAnimate=!1;f.JSC$12451_browserSupportsAnimation=_.K("web_supports_animations_api");f.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};f.onTap=function(){var S;if((S=f.data)==null||!S.defaultNavigationEndpoint){var B;S=!((B=f.data)==null?0:B.isToggled);var G;if((G=f.data)==null||!G.preventAutoToggle){f.shouldAnimate=!1;f.disableTextUpdateJobId&&_.xJ.cancelJob(f.disableTextUpdateJobId);f.disableTextUpdateJobId=_.xJ.addLowPriorityJob(function(){f.disableTextUpdateJobId=void 0},m8i);
var g;f.set("data.isToggled",!((g=f.data)==null?0:g.isToggled));B=f.getInnertubeIcon();G={toggled:S,actions:{}};B&&(G.actions[B.toLowerCase()]=S);_.ew(f.hostElement,"yt-toggle-button",G)}}};
return f};
_.q(v0,_.I);_.e=v0.prototype;_.e.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.xJ.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.e.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.e.toggle=function(f){var S;this.set("data.isToggled",f!==void 0?f:!((S=this.data)==null?0:S.isToggled))};
_.e.handleUpdateToggleButtonStateCommand=function(f){if(this.data){f=_.H(f,SJ7);var S,B,G,g=(S=this.data)==null?void 0:(B=S.toggleButtonSupportedData)==null?void 0:(G=B.toggleButtonIdData)==null?void 0:G.id;g&&f&&g===(f==null?void 0:f.buttonId)&&this.set("data.isToggled",f.toggled)}};
_.e.handleUpdateToggleButtonTextAction=function(f){if(this.data){f=_.H(f,DG6);var S,B,G,g=(S=this.data)==null?void 0:(B=S.toggleButtonSupportedData)==null?void 0:(G=B.toggleButtonIdData)==null?void 0:G.id;g&&f&&g===(f==null?void 0:f.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=f.defaultNumericalValue,this.set("data.defaultText",f.defaultText),this.set("data.toggledText",f.toggledText),this.shouldAnimate=!1)}};
_.e.getInnertubeIcon=function(){var f=this.data;if(f){var S,B,G=((S=f.defaultIcon)==null?0:S.iconType)?(B=f.defaultIcon)==null?void 0:B.iconType:null,g,b;S=((g=f.toggledIcon)==null?0:g.iconType)?(b=f.toggledIcon)==null?void 0:b.iconType:G;return f.isToggled?S:G}};
_.e.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.y3.Object.defineProperties(v0.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var f={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$12451_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var S=f.renderer;var B=f.element;var G=f.toggled;var g=f.onTapCallback;var b=f.commandClientArgs;var z=f.overrides;var X=f.forceIcon;var w=f.forceModernIconButton;var F=f.forceDisabled;var V=f.useAnimatedText;var J=f.animatedTextProps;f=$WN(S,G);X=!S.defaultIcon||!X&&S.defaultText?S.defaultIcon?"leading":void 0:w?"icon-only":"icon-only-40";X==="icon-only-40"&&(f.type="text");var P;w=Object;var d=w.assign,Q;a:switch((Q=
S.style)==null?void 0:Q.styleType){case "STYLE_COMPACT_GRAY":Q={size:"S"};break a;default:Q={size:"M"}}var x=!!G;var E=(E=G&&S.toggledText||S.defaultText)?_.sn(E):void 0;V?(V=_.ac(G&&S.toggledText||S.defaultText))&&J&&!isNaN(Number(J.numberValue))?(J.numberText=V,G&&(J.numberValue+=1),V=J):V=void 0:V=void 0;var U,A,t,M;var a=(J=((A=G?S.toggledAccessibilityData||((a=S.toggledText)==null?void 0:a.accessibility):S.accessibilityData||((U=S.defaultText)==null?void 0:U.accessibility))==null?void 0:(t=A.accessibilityData)==
null?void 0:t.label)||((M=S.accessibility)==null?void 0:M.label))?J:_.ac(G&&S.toggledText||S.defaultText);F=F===void 0?S.isDisabled:F;B=qpT(S,G,g,B,b);G=HrN(S,G);G!=null&&G.length?(G=_.AZ({innertubeCommand:hZW(G),forceNewState:!0}),G=NB(G)?G:void 0):G=void 0;S=d.call(w,{},f,Q,{iconPosition:X},z,{focused:!1,toggled:x,toggleable:!0,formattedButtonText:E,animatedTextProps:V,accessibilityLabel:a,disabled:F,onTap:B,aTagConfig:G},UhN((P=S.colorData)==null?void 0:P.basicColorPaletteData));S.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(S.type="filled");return S}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var f=this.getInnertubeIcon();if(f)return _.F_(f)}}});
v0.prototype.resetAnimation=v0.prototype.resetAnimation;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],v0.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],v0.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],v0.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],v0.prototype,"data",void 0);
_.N([_.n(),_.Z("design:type",Object)],v0.prototype,"isPressed",void 0);_.N([_.n(),_.Z("design:type",Object)],v0.prototype,"forceIconButton",void 0);_.N([_.n(),_.Z("design:type",Object)],v0.prototype,"forceIconOnly",void 0);_.N([_.n(),_.Z("design:type",Object)],v0.prototype,"forceModernIconButton",void 0);_.N([_.n(),_.Z("design:type",Object)],v0.prototype,"alignByText",void 0);_.N([_.n(),_.Z("design:type",Object)],v0.prototype,"overrides",void 0);
_.N([_.n(),_.Z("design:type",Boolean)],v0.prototype,"disabled",void 0);_.N([_.n(),_.Z("design:type",Object)],v0.prototype,"isShorts",void 0);_.N([_.n(),_.Z("design:type",Object)],v0.prototype,"buttonTooltipPosition",void 0);_.N([_.n(),_.Z("design:type",Object)],v0.prototype,"animatedText",void 0);_.N([_.n(),_.Z("design:type",String)],v0.prototype,"textNumberValue",void 0);_.N([_.n({computed:"computeTooltip(data, data.isToggled)"}),_.Z("design:type",Object)],v0.prototype,"tooltip",void 0);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],v0.prototype,"resetAnimation",null);_.N([_.k("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],v0.prototype,"computedButtonShape",null);_.N([_.k("data.*"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],v0.prototype,"computedIcon",null);
_.N([_.C({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],v0);bmL&&_.p(v0,"ytd-toggle-button-renderer",egv,{mode:_.X_("kevlar_poly_si_batch_j081")?1:2});var sR=_.oS(function(f){function S(F){var V;return _.R(function(J){if(J.nextAddress==1)return(V=!YpV(F,X())||!X().enabled)?J.jumpTo(2):_.h(J,Els(),3);J.nextAddress!=2&&(V=J.yieldResult);if(V)return J.return();B();setTimeout(function(){z(!1)},1500);
_.TT(J)})}
function B(){setTimeout(function(){z(!0);var F;(F=G.lottieEl)==null||F.goToAndPlay(0)},150)}
var G=_.TG(),g=_.m(_.hj(!1,void 0,"JJXzp")),b=g.next().value,z=g.next().value,X=_.cF(f.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.j9(function(){var F,V;((F=f.settings)==null?void 0:(V=F.call(f))==null?void 0:V.uniqueId)==="this is not intended behavior"&&_.Lg(new _.dO("Smartimation Settings is undefined"))});
_.jp(function(){X().experimentEnabled&&(X().enabled?ruA(S):(z(!1),jwN(S)),_.Ov(function(){jwN(S)}))},"FRiAUe");
_.jp(function(){X().timings.join("");X().experimentEnabled&&(OrK(X()),_.Ov(function(){xWA(X())}))},"VKiJOe");
var w=_.vW(function(){var F=G,V=X().uniqueId+"-border",J,P;var d="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((P=(J=_.oy().resolve(_.fN(_.yU)))==null?void 0:J())!=null&&P?"dark":"light")+"_v2.json";return{animationRef:F,animationConfig:{name:V,autoplay:!1,loop:!1,path:d}}},void 0,"tgykab");
g={};return _.T("yt-smartimation",{class:_.Pw(f.className,"smartimation",(g["smartimation--experiment-enabled"]=function(){return X().experimentEnabled},g["smartimation--active-border"]=b,g["smartimation--enable-masking"]=LLQ(),g))},_.T(_.v,{cond:function(){return X().experimentEnabled},
then:function(){return _.T("div",{class:"smartimation__border"},_.T(_.vw,{className:"smartimation__border-gradient",data:w,animationName:function(){return w().animationConfig.name}}))}}),_.T("div",{class:"smartimation__content"},f.children))},"B");
sR.idomCompat=!0;_.eq(sR,"yt-smartimation",{props:{className:_.W4,settings:_.W4}});var Kf=function(){var f=_.I.apply(this,arguments)||this;f.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};f.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};f.shouldEnableSmartimation=!1;return f};
_.q(Kf,_.I);Kf.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
Kf.prototype.onDataChanged=function(){var f,S;this.shouldEnableSmartimation=(((f=this.data)==null?void 0:(S=f.timedAnimationData)==null?void 0:S.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
Kf.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var f=_.H(this.data.likeButton,_.U2),S=_.H(this.data.dislikeButton,_.U2);return!!((f==null?0:f.isToggled)||(S==null?0:S.isToggled))};
Kf.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]]"}}}}}};
_.y3.Object.defineProperties(Kf.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var f,S,B=((f=this.data)==null?void 0:(S=f.timedAnimationData)==null?void 0:S.animationTiming)||[];return{uniqueId:"like-dislike",timings:B,enabled:this.shouldEnableSmartimation,experimentEnabled:B.length>0}}}});
Kf.prototype.onDataChanged=Kf.prototype.onDataChanged;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Kf.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Kf.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Kf.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],Kf.prototype,"likeButtonOverride",void 0);_.N([_.n(),_.Z("design:type",Object)],Kf.prototype,"dislikeButtonOverride",void 0);
_.N([_.k("shouldEnableSmartimation"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Kf.prototype,"smartimationSettings",null);_.N([_.JO("data"),_.Vg("yt-toggle-button"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Kf.prototype,"onDataChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],Kf);
_.p(Kf,"ytd-segmented-like-dislike-button-renderer",function(){if(Gpo!==void 0)return Gpo;var f=document.createElement("template");_.Y(f,'\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>');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return Gpo=f},{mode:1});var zgX;var Rgm;(Rgm=document.body)==null||Rgm.setAttribute("rounded-container","");var XgL={};XgL.YtToggleButtonBehavior=[_.b3.YtActionHandlerBehavior,i3.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 f=this.data.isToggled;if(!this.isModal_(f)){if(!this.data.preventAutoToggle){this.toggle();var S={toggled:this.data.isToggled,actions:{}};S.actions[this.buttonIcon]=this.data.isToggled;_.ew(this.hostElement,"yt-toggle-button",S)}S=this.data.defaultServiceEndpoint||null;var B=this.data.toggledServiceEndpoint||null;if(S&&B||S&&this.data.preventAutoToggle)f=f?B:S,S=this.disableCommandHandlerOverride,_.K("killswitch_toggle_button_behavior_resolve_command")||S?_.RD(this.hostElement,
[f]):_.Ps(f,this.hostElement),_.ew(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:f})}},
stateChanged_:function(){var f=this.data;if(f){var S=f.isToggled;this._setEndpoint(this.computeEndpoint_(f));this._setServiceEndpoint(this.computeServiceEndpoint_(f));this._setButtonIcon(this.computeButtonIcon_(f,S));this._setButtonText(this.computeButtonText_(f,S));this._setButtonAccessibility(this.computeAccessibility_(f,S));this._setButtonTooltip(this.computeTooltip_(f,S));this._setButtonClass(this.computeButtonClass_(f,S));this._setIconPositionType(this.computeIconPositionType_(f));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=S):this.elements_.button.setAttribute("aria-pressed",S));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=S)}},
shouldSetIconActiveState_:function(){return _.K("kevlar_system_icons")},
toggle:function(f){this.set("data.isToggled",f!==void 0?f:!this.data.isToggled);_.K("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(f){if(f){var S,B;return!!((S=this.data)==null?0:(B=S.toggledServiceEndpoint)==null?0:B.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(f){return f&&f.defaultNavigationEndpoint||null},
computeButtonIcon_:function(f,S){var B=f&&f.defaultIcon?_.F_(f.defaultIcon.iconType):null;f=f&&f.toggledIcon?_.F_(f.toggledIcon.iconType):B;return S?f:B},
handleUpdateToggleButtonStateCommand_:function(f){f=f.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==f.buttonId&&this.toggle(f.toggled)},
computeButtonText_:function(f,S){return f?S&&f.toggledText||f.defaultText||null:null},
computeAccessibility_:function(f,S){return f?(S?this.get("toggledAccessibilityData.accessibilityData",f):this.get("accessibilityData.accessibilityData",f))||f.accessibility||null:null},
computeTooltip_:function(f,S){return f?S&&f.toggledTooltip||f.defaultTooltip||null:null},
computeButtonClass_:function(f,S){if(!f)return"";var B="",G=f.toggledStyle||f.style;if(S=S?G:f.style){S.styleType&&(S=S.styleType);try{B+=S.toLowerCase().replace(/_/g,"-")+" "}catch(g){_.kH(g,S,typeof S),_.Lg(g)}}if(f=f.size){f.sizeType&&(f=f.sizeType);try{B+=f.toLowerCase().replace(/_/g,"-")+" "}catch(g){_.kH(g,f,typeof f),_.Lg(g)}}return B.trim()},
computeIconPositionType_:function(f){return f&&f.iconPosition||null},
computeServiceEndpoint_:function(f){var S=f&&f.serviceEndpoint,B=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return S?S:B&&f.command?f.command:null},
handleUpdateToggleButtonTextAction_:function(f){f=f.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==f.buttonId&&(this.set("data.defaultText",f.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",f.toggledText),this.notifyPath("data.toggledText"))}}];_.Dd("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var wgj=_.K("web_button_rework")&&_.s6("BUTTON_REWORK")||_.K("web_button_rework_with_live"),dE=function(){var f=_.I.apply(this,arguments)||this;f.systemIcons=_.K("kevlar_system_icons");f.roundedContainer=!0;return f};
_.q(dE,_.I);dE.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
dE.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var f=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var S={toggled:!!this.data.isToggled,actions:{}};S.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var B,G;S.actions.playlistId=(B=this.data.defaultServiceEndpoint)==null?void 0:(G=B.playlistEditEndpoint)==null?void 0:G.playlistId;_.ew(this.hostElement,"yt-toggle-button",S)}(f=f?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(f)}};
dE.prototype.onYtNavigate=function(f){var S=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(f.detail.endpoint);S&&(f.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(S))};
_.y3.Object.defineProperties(dE,{template:{configurable:!0,enumerable:!0,get:function(){if(zgX===void 0){var f=document.createElement("template");_.Y(f,"\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");f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);zgX=f}f=zgX;return f}}});
dE.prototype.onYtNavigate=dE.prototype.onYtNavigate;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],dE.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],dE.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.a5),_.Z("design:type",Object)],dE.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.r(XgL.YtToggleButtonBehavior),_.Z("design:type",Object)],dE.prototype,"ytToggleButtonBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],dE.prototype,"data",void 0);_.N([_.n({value:!0}),_.Z("design:type",Boolean)],dE.prototype,"showTooltips",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],dE.prototype,"systemIcons",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],dE.prototype,"roundedContainer",void 0);_.N([_.Vg("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],dE.prototype,"onYtNavigate",null);
_.N([_.C({is:"ytd-toggle-button-renderer",disableElementRegistration:wgj})],dE);var hg6;_.ir=new _.Sn("PANEL_CONTROLLER_TOKEN");_.H0=new _.Sn("SHEET_CONTROLLER_TOKEN");_.qj=new _.Sn("DIALOG_CONTROLLER_TOKEN");hg6=new _.Sn("DIALOG_CONTAINER_TOKEN");var Aux=_.Jf("DOWNLOAD",{},"Download"),NwN=_.Jf("DOWNLOADING",{},"Downloading"),MS1=_.Jf("DOWNLOADED",{},"Downloaded"),Zrx=_.Jf("RETRY",{},"Retry");var uRW=[],anA=!1;var T6v=_.oS(function(f){var S=Gpj,B=function(){return""},G=fB1(f.data),g=o3j(f.data),b=Sh1(f.data),z=B6G(f.data);
S=function(){var X=f.data(),w=CSN(X,G(),g(),b(),z()),F=!!X.videoId,V=w.text;return{title:F?V:void 0,tooltip:F?void 0:V,accessibilityText:V,onTap:w.onTap,iconName:w.iconType,style:X.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:w.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:X.buttonSize}};
B={};B=_.Pw("ytDownloadButtonViewModelHost",(B.ytDownloadButtonViewModelIsHidden=function(){var X=f.data(),w=z();return X.playlistId||w()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||w()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},B));
return _.T("download-button-view-model",{class:B},_.T(_.I8,{data:S}))},"C");
T6v.idomCompat=!0;var Vlm=_.oS(function(f){var S=f.backgroundLottieRef;var B=f.foregroundLottieRef;var G=f.children;var g=f.wrapperClass;var b=f.disableAnimation;f=function(){return(_.K("web_animated_actions")||_.K("web_animated_actions_v2"))&&!(b==null?0:b())};
return _.T("yt-animated-action",{class:_.Pw("animated-action__container",g)},_.T("div",{class:"animated-action__content-with-background"},_.T(_.v,{cond:f,then:function(){return _.T(Ffg,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:S==null?void 0:S(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(g31()?"dark":"light")+"_v5.json"}}}})}}),G),_.T(_.v,{cond:f,
then:function(){return _.T(Ffg,{lottiePlayerProps:function(){return{animationRef:B==null?void 0:B(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(g31()?"dark":"light")+"_v4.json"}}}})}}))},"D");
Vlm.idomCompat=!0;var Ffg=_.oS(function(f){var S=f.wrapperClass;var B=f.lottieClass;var G=f.lottiePlayerProps;return _.T("div",{class:_.Pw("animated-action__lottie",S),"aria-hidden":"true"},_.T(_.vw,{className:B,data:G,animationName:function(){return G().animationConfig.name}}))},"E");var egN={isOpen:!1};var m8M={isAllowed:!1};var Rg1={errorMessage:"",title:"",privacy:"",isDisabled:!0};var wg1={isOpen:!1};var T6N={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var JMX={response:void 0};var Vl1=function(f,S){f=f===void 0?JMX:f;switch(S.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},f,{response:S.payload});default:return f}};var PV8={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var JMQ=function(f,S){f=f===void 0?PV8:f;switch(S.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},f,{nextDisabled:S.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},f,{nextCommand:S.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},f,{footerSubmissionData:S.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},f,{isImpersonationValid:S.payload});default:return f}};var v31={reportFormData:void 0,reportDetailsFormData:void 0};var PVV=function(f,S){f=f===void 0?v31:f;switch(S.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},f,{reportFormData:S.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},f,{reportDetailsFormData:S.payload});default:return f}};var Kfj=void 0;_.K("mweb_enable_redux_store_on_demand")||(Kfj=new yI(v3s()));var d81=_.K("enable_web_delhi_icons");var imN=_.oS(function(f){f=_.lu(f,{themeOverride:void 0,animationRef:{}});var S=f.animatedIconType,B=f.active,G=f.themeOverride,g=f.animationRef;f=f.staticIconFn;var b=_.m(_.hj(void 0,void 0,"P5a72b")),z=b.next().value,X=b.next().value,w=function(){a:{var E=S();var U=G==null?void 0:G();var A;U=(U==null?void 0:U.useDarkTheme)||((A=_.oy().resolve(_.fN(_.yU)))==null?void 0:A());switch(E){case "LIKE":Kfj||(Kfj=new yI(v3s()));E=(E=KqW(Kfj.getState()))&&E.animationLightUrl&&E.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:U?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:U?E.animationDarkUrl:E.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(E){U=E;break a}U="animated_like_icon_"+(U?"dark":"light")+"_"+(d81?"v5":"v4");U={lottiePlayerProps:{animationConfig:{name:U,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+U+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(d81?" animated-like-icon-delhi":"")}}},totalFrames:d81?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":U={lottiePlayerProps:{animationConfig:{name:U?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(U?"dark":"light")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"}}},totalFrames:79,lazyLoad:!1};break a}U=void 0}return U},F=function(){var E,U;
return(U=(E=w())==null?void 0:E.lottiePlayerProps.animationConfig.name)!=null?U:""},V=function(){if(w()){var E=w().lottiePlayerProps.animationConfig.path;
return J3.get(E)||z()}};
b=_.m(_.hj(!1,void 0,"h6xR3c"));var J=b.next().value;b=b.next().value;var P=d8s(b),d=function(){var E=w(),U,A,t;return(t=E==null?void 0:(U=E.lottiePlayerProps.animationConfig)==null?void 0:(A=U.rendererSettings)==null?void 0:A.className)!=null?t:""},Q=void 0,x=void 0;
_.jp(function(){var E=w(),U=F(),A=V(),t=J(),M=B();if(E&&(x!==U&&(x=U,Q=M,U=g(),P.animationConfig=E.lottiePlayerProps.animationConfig,P.animationRef=U,A&&(P.animationConfig.animationData=A,P.animationConfig.path=void 0),U=E.lottiePlayerProps.animationConfig.path,!J3.get(U)&&E.lazyLoad&&U&&Kf1(U,X)),!(t||E.lazyLoad&&!A))){if(A=!g().lottieEl)M?(t=E.totalFrames,P.animationConfig.initialSegment=[t-1,t]):P.animationConfig.initialSegment=void 0;if(Q!==M&&!A)if(A=g(),M){var a;(a=A.lottieEl)==null||a.playSegments([0,
E.totalFrames],!0)}else{var l;(l=A.lottieEl)==null||l.playSegments([0,1],!0)}Q=M}},"YCYOCe");
return _.T("animated-icon",{class:"ytAnimatedIconHost"},_.T(_.v,{cond:function(){var E,U;return!((E=w())==null||!E.lottiePlayerProps.animationConfig.path||((U=w())==null?0:U.lazyLoad)&&!V()||J())},
then:function(){return _.T(_.vw,{data:P,animationName:F,className:d,animationRef:g})},
else:f}))},"F");_.$q=_.oS(function(f){var S=_.tE("yt-subscribe-button-view-model"),B=_.tE("div"),G=_.tE("div"),g=_.TG(),b=_.TG(),z=_.TG(),X=_.v8(FL1,function(){return f.data().stateEntityStoreKey}),w=_.v8(VSG,function(){var To,Ci;
return(Ci=(To=f.data().notificationStateEntityStoreKeys)==null?void 0:To.subsNotificationStateKey)!=null?Ci:""}),F=function(){return!f.data().enableSubscribeButtonPostClickAnimation},V=_.m(_.hj(0,void 0,"eTsWvc")),J=V.next().value,P=V.next().value;
V=_.m(_.hj(0,void 0,"dniDQ"));var d=V.next().value,Q=V.next().value;V=_.m(_.hj(!1,void 0,"EluPic"));var x=V.next().value,E=V.next().value;V=_.m(_.hj(!1,void 0,"r0jnre"));var U=V.next().value,A=V.next().value;V=_.m(_.hj(!1,void 0,"KMvoQe"));var t=V.next().value,M=V.next().value,a;V=_.m(_.hj(!1,void 0,"aSENce"));var l=V.next().value,mx=V.next().value,zj=function(){A(!0);_.H8(_.xJ,function(){A(!1)},1500)};
_.jp(function(){var To=U();wA(function(){To&&!F()&&X()&&x8N(g,b,z)})},"LgmX6c");
_.jp(function(){var To=X();wA(function(){if(!F()&&To){var Ci;((Ci=f.animateWidth)==null?0:Ci.call(f))&&OmQ(S.value,!!To.subscribed,J(),d());var VM,Go;((VM=a)==null?0:VM.subscribed)||!To.subscribed||To.key!==((Go=a)==null?void 0:Go.key)||zj();a=To}})},"iZzoUb");
V=_.vW(function(){var To,Ci,VM,Go=f.data(),Io=!((To=X())==null||!To.subscribed);To=!((Ci=f.isOverlay)==null||!Ci.call(f));Ci=x()?S:void 0;var uz=(VM=w())==null?void 0:VM.state;VM=l();jU1(Go,uz);return qhx({model:Go,subscribed:Io,isOverlay:To,element:Ci,notificationState:uz,disableTextEllipsis:!0,focused:VM})},void 0,"yGQGue");
var VN=function(){var To;if(!F()&&((To=f.animateWidth)==null?0:To.call(f))&&(B==null?0:B.value)&&(G==null?0:G.value)&&!t()){To=X();var Ci=_.m((To==null?0:To.subscribed)?[B,G]:[G,B]),VM=Ci.next().value;Ci=Ci.next().value;VM=Math.ceil(VM.value.getBoundingClientRect().width);Ci=Math.ceil(Ci.value.getBoundingClientRect().width);P(VM);Q(Ci);OmQ(S.value,!(To==null||!To.subscribed),VM,Ci);M(!0)}},$Q=_.iF(function(To){VN();
var Ci=X();Ci&&(To.detail.endpoint.subscribeEndpoint||To.detail.endpoint.unsubscribeEndpoint)&&QU9(S.value,!Ci.subscribed,Ci)}),OV=function(){var To=_.oy().resolve(_.fN(_.R5));
To&&mx(To.isKeyBoardInUse())},rW=function(){mx(!1)};
_.Z0("yt-player-subscribe",function(To){var Ci=X();Ci&&To===f.data().channelId&&QU9(S.value,!0,Ci)});
_.Z0("yt-player-unsubscribe",function(To){var Ci=X();Ci&&To===f.data().channelId&&QU9(S.value,!1,Ci)});
_.Z0("yt-update-subscribe-button-action",function(To){To=_.H(To,Chv);var Ci=X();Ci&&To&&To.channelId===f.data().channelId&&QU9(S.value,!!To.subscribed,Ci)});
_.j9(function(){S.value&&(S.value.addEventListener("focusin",OV),S.value.addEventListener("focusout",rW));var To=_.q6(_.xJ,function(){VN()});
E(!0);_.Ov(function(){_.xJ.cancelJob(To);S.value&&(S.value.removeEventListener("focusin",OV),S.value.removeEventListener("focusout",rW))})});
var MA=function(){var To,Ci,VM;if(VM=!((To=X())==null||!To.subscribed))To=!!f.data().disableNotificationBell,VM=(Ci=w())==null?void 0:Ci.state,VM=!To&&!!VM;return VM},UV=function(){var To;
return!((To=X())==null?0:To.subscribed)},W7=function(){var To,Ci;
if(Ci=UV()){Ci=!!f.data().disableNotificationBell;var VM=(To=w())==null?void 0:To.state;Ci=!Ci&&!!VM}return Ci},c7={},Q$={};
return _.T("yt-subscribe-button-view-model",{class:_.Pw(f.className,"yt-subscribe-button-view-model-wiz",(c7["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var To,Ci;return!((To=X())==null||!To.subscribed)&&((Ci=f.animateWidth)==null?void 0:Ci.call(f))&&U()},c7["yt-subscribe-button-view-model-wiz--hidden"]=function(){var To;
return!((To=X())==null?0:To.subscribed)&&f.data().hideWhenUnsubscribed},c7)),
el:S,"on:yt-service-request-sent":$Q},_.T(Vlm,{backgroundLottieRef:g,foregroundLottieRef:b,wrapperClass:_.Pw("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(Q$["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var To;return((To=f.animateWidth)==null?void 0:To.call(f))&&U()},Q$["yt-subscribe-button-view-model-wiz__static-width"]=function(){var To;
return!((To=f.animateWidth)==null?0:To.call(f))},Q$)),
disableAnimation:F},_.T("div",{el:B,class:"yt-subscribe-button-view-model-wiz__container"},_.T(Be,{data:V,icon:function(){return _.T(_.v,{cond:MA,then:function(){var To=function(){var Ci;return $8K((Ci=w())==null?void 0:Ci.state)};
return _.T(_.v,{cond:function(){return F()||To()!=="NOTIFICATIONS_NONE"},
then:function(){return _.T(_.Y8,{icon:To})},
else:function(){return _.T(imN,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:z})}})}})},
secondaryIconName:function(){return MA()?"EXPAND":void 0}}))),_.T("div",{el:G,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.T(_.v,{cond:function(){var To;return((To=f.animateWidth)==null?void 0:To.call(f))&&!F()&&!t()},
then:function(){return _.T(Be,{data:_.vW(function(){var To;return qhx({model:f.data(),subscribed:UV(),isOverlay:!((To=f.isOverlay)==null||!To.call(f)),element:S,disableTextEllipsis:!0})},void 0,"lwPlub"),
iconName:function(){var To;return W7()?$8K((To=w())==null?void 0:To.state):void 0},
secondaryIconName:function(){return W7()?"EXPAND":void 0}})}})))},"G");
_.$q.idomCompat=!0;var E3M=new _.Sn("RENDERER_STAMPER_OPTIONS_TOKEN");var Hm6=_.oS(function(f){var S=f.data;var B=_.v8(FL1,function(){return S().subscriptionStateEntityKey});
return _.T(_.v,{cond:function(){var G=S(),g=B();return!G.hideWhenUnsubscribed||(g==null?0:g.subscribed)?_.H(S().button,_.Q5):void 0},
then:function(G){return _.T("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.T(_.I8,{data:G,buttonOverrides:function(){return{toggled:!0}}}))}})},"H");
Hm6.idomCompat=!0;var AMK=_.$K({buttonViewModel:_.I8,subscribeButtonViewModel:_.$q,downloadButtonViewModel:T6v,toggleButtonViewModel:_.ER,subscribePlusButtonViewModel:Hm6});_.Su(MlG);var GIT=new _.Sn("RENDERER_LOGGER_TOKEN");var jW;_.rb=new kF8;jW=new Map;var oyG="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),BV1=["notificationTextRenderer","notificationMultiActionRenderer"],S11="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
fQG=ZmG(function(f){return _.Ev(f==null?void 0:f.targetId)}).useUpdatableData;var lBW=0;_.xK.debugName="EjJbCe";var qh6=_.oS(function(f){return _.T(_.xK,{data:function(){return f.actionRow().actions}},{buttonViewModel:function(S){var B=S.data;
return _.T(QK,{isRow:f.isRow,isIconOnlyButton:function(){return gyN(B())},
useIntrinsicWidth:f.useIntrinsicWidth},_.T(_.I8,{data:B}))},
subscribeButtonViewModel:function(S){return _.T(QK,{isRow:f.isRow},_.T(_.$q,{data:S.data,isOverlay:!1,animateWidth:function(){return!f.isRow()}}))},
downloadButtonViewModel:function(S){var B=S.data;return _.T(QK,{isRow:f.isRow,isIconOnlyButton:function(){return!!B().playlistId}},_.T(T6v,{data:B}))},
toggleButtonViewModel:function(S){var B=S.data;return _.T(QK,{isRow:f.isRow,isIconOnlyButton:function(){var G=B();return gyN(_.H(G.isToggled?G.toggledButtonViewModel:G.defaultButtonViewModel,_.Q5))}},_.T(_.ER,{data:B}))},
subscribePlusButtonViewModel:function(S){return _.T(QK,{isRow:f.isRow},_.T(Hm6,{data:S.data}))}})},"I"),QK=_.oS(function(f){var S={};
return _.T("div",{class:_.Pw("yt-flexible-actions-view-model-wiz__action",(S["yt-flexible-actions-view-model-wiz__action--row-action"]=f.isRow,S["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=f.useIntrinsicWidth,S["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,S["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=f.isIconOnlyButton,S))},f.children)},"J"),$8m=_.oS(function(f){var S=function(){var G;
return((G=f.layout)==null?void 0:G.call(f))===1},B={};
return _.T("yt-flexible-actions-view-model",{class:_.Pw("yt-flexible-actions-view-model-wiz",f.className,(B["yt-flexible-actions-view-model-wiz--inline"]=function(){return!S()},B["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return f.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},B))},_.T(_.dg,{each:function(){return f.data().actionsRows||[]}},function(G){return _.T(_.v,{cond:S,
then:function(){return _.T("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.T(qh6,{actionRow:G,isRow:S,useIntrinsicWidth:function(){return!!f.data().respectActionIntrinsicWidth}}))},
else:function(){return _.T(qh6,{actionRow:G,isRow:S})}})}))},"K"),Yq=_.K("web_enable_sink_yt_flexible_actions_view_model")?$8m:_.dm(MlG);
$8m.idomCompat=!0;_.eq(Yq,"yt-flexible-actions-view-model",{props:{data:_.W4,layout:_.W4,justifyContentOverride:_.W4,className:_.W4}});_.Su(eA9);var QU7,XpG;QU7=_.oS(function(f){var S=_.v8(C9,function(){var g;return(g=f.data().dislikeEntityKey)!=null?g:""}),B=_.vW(function(){var g=S();
return g?g.likeStatus==="DISLIKE":_.H(f.data().toggleButtonViewModel,_.YK).isToggled},void 0,"D8oIFb"),G=_.vW(function(){return Object.assign({},_.H(f.data().toggleButtonViewModel,_.YK),{isToggled:B()})},void 0,"shaCXe");
return _.T("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.T(_.ER,{data:G,buttonShapeOverrides:f.buttonShapeOverrideables,onToggle:function(g){var b=S();b&&g!==(b.likeStatus==="DISLIKE")&&b.key&&_.WF(_.LF("likeStatusEntity",b.key,{likeStatus:g?"DISLIKE":"INDIFFERENT",hadUserInteraction:g}))}}))},"L");
XpG=_.K("web_enable_sink_dislike_button_view_model")?QU7:eA9;_.rE=_.K("web_enable_sink_dislike_button_view_model")?QU7:_.dm(eA9);QU7.idomCompat=!0;_.Su(m49);var YhN,RAx;
YhN=_.oS(function(f){var S=_.K("web_supports_animations_api"),B=Bw(function(P){var d=F();if(!P){var Q,x;return{numberText:(x=d==null?void 0:(Q=d.likeCountIfIndifferent)==null?void 0:Q.content)!=null?x:"",numberValue:Number(d==null?void 0:d.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var E;Q=(d==null?void 0:(E=d.likeCountIfIndifferent)==null?void 0:E.content)!==P.numberText;if(X()||!Q)return P;var U;return{numberText:(d==null?void 0:(U=d.likeCountIfIndifferent)==null?void 0:U.content)||
"",numberValue:Number(d==null?void 0:d.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!d}}),G=Bw(function(P){var d=F();
if(!P){var Q,x;return{numberText:(x=d==null?void 0:(Q=d.likeCountIfLiked)==null?void 0:Q.content)!=null?x:"",numberValue:Number(d==null?void 0:d.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var E;Q=(d==null?void 0:(E=d.likeCountIfIndifferent)==null?void 0:E.content)!==P.numberText;if(X()||!Q)return P;var U;return{numberText:(d==null?void 0:(U=d.likeCountIfLiked)==null?void 0:U.content)||"",numberValue:Number(d==null?void 0:d.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!d}}),g=_.m(_.hj(void 0,
void 0,"yUfxHb")),b=g.next().value,z=g.next().value,X=b,w=_.v8(C9,function(){var P,d;
return(d=(P=f.data())==null?void 0:P.likeStatusEntityKey)!=null?d:""}),F=_.v8(Zls,function(){var P,d;
return((P=f.likeCountEntity)==null?void 0:(d=P.call(f))==null?void 0:d.key)||""}),V=_.vW(function(){var P;
return((P=w())==null?void 0:P.likeStatus)==="LIKE"},void 0,"Mx7vg"),J=function(){var P;
return S&&!((P=f.likeCountEntity)==null||!P.call(f))};
return _.T("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.T(_.ER,{data:function(){var P=Object,d=P.assign,Q;var x=_.H((Q=f.data())==null?void 0:Q.toggleButtonViewModel,_.YK);return d.call(P,{},x||{},{isToggled:V()})},
buttonShapeOverrides:f.buttonShapeOverrideables,animatedTextPropsDefault:function(){return J()?B():void 0},
animatedTextPropsToggled:function(){return J()?G():void 0},
onToggle:function(P){zAQ(P,w(),X(),z)},
style:function(){var P;return((P=f.disableIconAnimation)==null?0:P.call(f))?void 0:{animateIcon:"true"}}}))},"M");
RAx=_.K("web_enable_sink_like_button_view_model")?YhN:m49;_.jG=_.K("web_enable_sink_like_button_view_model")?YhN:_.dm(m49);_.Su(wpN);var rMv=_.oS(function(f){var S=function(){return _.H(f.data().likeButtonViewModel,_.kK)},B=function(){var g;
return((g=S())==null?void 0:g.likeStatusEntityKey)||""},G=_.vW(function(){var g,b;
var z=(b=_.v8(C9,B)())!=null?b:(g=S())==null?void 0:g.likeStatusEntity;g=f.data();var X;g=(g==null?void 0:(X=g.timedAnimationData)==null?void 0:X.animationTiming)||[];return{uniqueId:"like-dislike",timings:g,enabled:(z==null?void 0:z.likeStatus)==="INDIFFERENT"&&g.length>0,experimentEnabled:g.length>0}},void 0,"e1fsz");
return _.T("segmented-like-dislike-button-view-model",{class:_.Pw("ytSegmentedLikeDislikeButtonViewModelHost",f.className),"button-renderer":!0},_.T(sR,{settings:G},_.T("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.T(_.v,{cond:S,then:function(g){return _.T(_.jG,{data:g,likeCountEntity:function(){return f.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.T(_.v,{cond:function(){return _.H(f.data().dislikeButtonViewModel,_.nF)},
then:function(g){return _.T(_.rE,{data:g,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"N"),jUm=_.K("web_enable_sink_segmented_like_dislike_button_view_model")?rMv:wpN;
rMv.idomCompat=!0;_.K("web_enable_sink_segmented_like_dislike_button_view_model")?_.eq(jUm,"segmented-like-dislike-button-view-model",{props:{data:_.W4,className:_.W4}}):_.TD(jUm,"segmented-like-dislike-button-view-model",{propNames:["data"]});var P$T=0;_.eq(kIM,"account-link-button-view-model",{props:{data:_.W4,className:_.gm,setMinWidth:_.gm,forceIconOnly:_.gm}});_.Dd("menuRenderer","menuRenderer","ytd-menu-renderer");
var OmX={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"}},
x8$=_.K("web_fix_missing_action_buttons")?100:200,Oi=function(){var f=_.I.apply(this,arguments)||this;f.safeArea=!_.K("kevlar_flex_menu_safe_area_killswitch");f.tonalOverride=!1;f.threeDotSize="M";f.isOverlay=!1;f.useOverlayDark=!1;f.topLevelIconsOnly=!1;f.JSC$12596_lastWidth=0;f.maybeUpdateFlexibleMenu=function(){_.K("web_fix_missing_action_buttons")?requestAnimationFrame(f.maybeUpdateFlexibleMenuImpl):f.maybeUpdateFlexibleMenuImpl()};
f.maybeUpdateFlexibleMenuImpl=function(){var S;if((S=f.data)!=null&&S.flexibleItems){f.maybeFlushDebouncer();S=f.hostElement.clientWidth;var B=S>f.JSC$12596_lastWidth,G,g=((G=f.topLevelButtonsContainer)==null?void 0:G.scrollHeight)||0,b;G=((b=f.flexibleItemButtonsContainer)==null?void 0:b.scrollHeight)||0;b=f.hostElement.scrollHeight>Math.max(g,G)+8;B?(f.resetFlexibleItems(),f.JSC$12596_lastWidth=f.hostElement.clientWidth,f.maybeUpdateFlexibleMenu()):b&&(f.shrinkFlexibleMenu(),f.JSC$12596_lastWidth=
S)}};
f.computeThreeDotButtonShape=function(){return Object.assign({},{onTap:function(){f.onOverflowTap()},
iconPosition:"icon-only",style:f.isOverlay?f.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:f.threeDotSize,state:"active",accessibilityLabel:f.computeAccessibilityLabel(f.data)},f.threeDotButtonOverride)};
f.onOverflowTap=function(){if(f.data.fetchMenuCommand)_.oy().resolve(_.S7).resolveCommand(f.data.fetchMenuCommand,{form:{element:f.hostElement}});else if(f.data.isDisabled&&f.data.disabledCommand)_.Ps(f.data.disabledCommand,f.hostElement);else{var S=f.createMenuRendererVe(),B={items:f.items};f.data.menuPopupAccessibility&&(B.menuPopupAccessibility=f.data.menuPopupAccessibility);f.data.footer&&(B.footer=f.data.footer);S={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:B},veData:S}};
_.oy().resolve(_.H0).openSheet({openPopupActionCommand:S},f.hostElement)}};
return f};
_.q(Oi,_.I);_.e=Oi.prototype;_.e.updateButtonOverrides=function(){if(!_.K("menu_renderer_label_update_upkillswitch")){var f=_.m9(this.hostElement).querySelector("yt-button-view-model");f&&(f.buttonOverrides=this.buttonOverrides)}};
_.e.computeHasItems=function(){var f;return((f=this.topLevelButtonData)==null?void 0:f.length)||this.hasFlexibleItems};
_.e.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.e.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.hO(this.hostElement,{"--ytd-menu-renderer-button-color":_.pn(this.data.iconColor)}))};
_.e.onStamperFinished=function(){this.JSC$12596_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.e.setupFlexibleMenu=function(){var f=this,S;(S=this.data)!=null&&S.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.S3(this.maybeUpdateFlexibleMenu,x8$,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){f.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))};
_.e.maybeFlushDebouncer=function(){if(_.K("web_replace_formatted_with_attributed_string")){var f;(f=this.topLevelButtons)==null||f.forEach(function(B){var G;(B=(G=B.getElementsByTagName("yt-attributed-string"))==null?void 0:G[0])&&VcN(B)});
var S;(S=this.flexibleItemButtons)==null||S.forEach(function(B){var G;(B=(G=B.getElementsByTagName("yt-attributed-string"))==null?void 0:G[0])&&VcN(B)})}};
_.e.resetFlexibleItems=function(){var f;if((f=this.data)!=null&&f.flexibleItems){_.K("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var S;this.flexAsTopLevelButtons=(S=this.data.flexibleItems)==null?void 0:S.map(function(B){return _.H(B,_.Rz8).topLevelButton});
_.K("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.e.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.e.shrinkFlexibleMenu=function(){var f;(f=this.flexAsTopLevelButtons)!=null&&f.length&&(this.flexAsTopLevelButtons=[].concat(_.$d(this.flexAsTopLevelButtons.slice(0,-1))))};
_.e.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:OmX,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:OmX,events:!0}}};
_.e.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.e.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.e.detached=function(){this.icon="MORE_VERT"};
_.e.computeTopLevelButtonData=function(f){if(!f)return[];var S;f=(S=f==null?void 0:f.topLevelButtons)!=null?S:[];return _.$v.unsafeClone([].concat(_.$d(f)))};
_.e.computeItems=function(f,S){if(!f)return[];var B=[];if(S){var G=(f.flexibleItems||[]).map(function(z){return _.H(z,_.Rz8)});
G=_.m(G);for(var g=G.next();!g.done;g=G.next())g=g.value,S.includes(g.topLevelButton)||(g=g.menuItem)&&B.push(g)}var b;f=(b=f==null?void 0:f.items)!=null?b:[];return[].concat(_.$d(B),_.$d(f))};
_.e.computeMenuActive=function(f,S){return f||S};
_.e.onPopupOpened=function(){this.overlayOpen=!0;_.ew(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.e.onPopupClosed=function(){this.overlayOpen=!1;_.ew(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.e.onPopupCanceled=function(){this.overlayOpen=!1;_.ew(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.e.computeAccessibilityLabel=function(f){return this.get("accessibility.accessibilityData.label",f)};
_.e.isHidden=function(f,S){return this.tonalOverride||!f?!0:f.fetchMenuCommand||f.isDisabled&&f.disabledCommand?!1:!(S==null?0:S.length)};
_.e.isModernOverflowHidden=function(f,S){return this.tonalOverride&&f?f.fetchMenuCommand?!1:!(S==null?0:S.length):!0};
_.e.createMenuRendererVe=function(){var f=this.data.trackingParams,S=_.xc(),B=_.Of();return f&&S&&B?(f=_.Ye(f),B=_.Eo(7591),_.K("combine_ve_grafts")?_.Xo(_.ik(),B,f):_.Af(S,f,B),B):null};
_.y3.Object.defineProperties(Oi.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.flexAsTopLevelButtons)==null||!f.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
Oi.prototype.onPopupCanceled=Oi.prototype.onPopupCanceled;Oi.prototype.onPopupClosed=Oi.prototype.onPopupClosed;Oi.prototype.onPopupOpened=Oi.prototype.onPopupOpened;Oi.prototype.tonalOverrideChanged=Oi.prototype.tonalOverrideChanged;Oi.prototype.resetFlexibleItems=Oi.prototype.resetFlexibleItems;Oi.prototype.setupFlexibleMenu=Oi.prototype.setupFlexibleMenu;Oi.prototype.iconButtonColorChanged=Oi.prototype.iconButtonColorChanged;Oi.prototype.updateButtonOverrides=Oi.prototype.updateButtonOverrides;
_.N([_.r(_.a5),_.Z("design:type",Object)],Oi.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Oi.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Oi.prototype,"ytRendererstamperBehavior",void 0);_.N([_.vF("#button-shape"),_.Z("design:type",T7)],Oi.prototype,"buttonShape",void 0);_.N([_.vF("#button"),_.Z("design:type",Object)],Oi.prototype,"button",void 0);
_.N([_.n(),_.Z("design:type",Object)],Oi.prototype,"data",void 0);_.N([_.n({computed:"computeTopLevelButtonData(data)"}),_.Z("design:type",Array)],Oi.prototype,"topLevelButtonData",void 0);_.N([_.n(),_.Z("design:type",Array)],Oi.prototype,"flexAsTopLevelButtons",void 0);_.N([_.n({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.Z("design:type",Array)],Oi.prototype,"items",void 0);_.N([_.n({value:"MORE_VERT"}),_.Z("design:type",String)],Oi.prototype,"icon",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Oi.prototype,"safeArea",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.Z("design:type",Boolean)],Oi.prototype,"menuActive",void 0);_.N([_.n(),_.Z("design:type",Boolean)],Oi.prototype,"menuFocused",void 0);_.N([_.n({value:"bottom"}),_.Z("design:type",String)],Oi.prototype,"buttonTooltipPosition",void 0);_.N([_.n(),_.Z("design:type",Boolean)],Oi.prototype,"overlayOpen",void 0);
_.N([_.n({value:!0}),_.Z("design:type",Boolean)],Oi.prototype,"forceIconButton",void 0);_.N([_.n(),_.Z("design:type",Boolean)],Oi.prototype,"styleActionButton",void 0);_.N([_.n(),_.Z("design:type",Boolean)],Oi.prototype,"disableTextTransformOnButtons",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Oi.prototype,"tonalOverride",void 0);_.N([_.n(),_.Z("design:type",Object)],Oi.prototype,"threeDotSize",void 0);
_.N([_.n(),_.Z("design:type",Object)],Oi.prototype,"threeDotButtonOverride",void 0);_.N([_.n(),_.Z("design:type",Object)],Oi.prototype,"isOverlay",void 0);_.N([_.n(),_.Z("design:type",Object)],Oi.prototype,"useOverlayDark",void 0);_.N([_.n({computed:"computeButtonOverride(tonalOverride)"}),_.Z("design:type",Object)],Oi.prototype,"buttonOverride",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Oi.prototype,"hasCustomIconColor",void 0);
_.N([_.n({reflectToAttribute:!0}),_.k("flexAsTopLevelButtons"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Oi.prototype,"hasFlexibleItems",null);_.N([_.n({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.Z("design:type",Boolean)],Oi.prototype,"hasItems",void 0);_.N([_.n(),_.Z("design:type",Object)],Oi.prototype,"topLevelIconsOnly",void 0);
_.N([_.JO("topLevelIconsOnly"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Oi.prototype,"updateButtonOverrides",null);_.N([_.k("topLevelIconsOnly"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Oi.prototype,"buttonOverrides",null);_.N([_.vF("#top-level-buttons-computed"),_.Z("design:type",HTMLElement)],Oi.prototype,"topLevelButtonsContainer",void 0);_.N([_.KP(".top-level-buttons > *"),_.Z("design:type",Array)],Oi.prototype,"topLevelButtons",void 0);
_.N([_.vF("#flexible-item-buttons"),_.Z("design:type",HTMLElement)],Oi.prototype,"flexibleItemButtonsContainer",void 0);_.N([_.KP("#flexible-item-buttons > *"),_.Z("design:type",Array)],Oi.prototype,"flexibleItemButtons",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Oi.prototype,"iconButtonColorChanged",null);
_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Oi.prototype,"setupFlexibleMenu",null);_.N([_.HF("topLevelIconsOnly"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Oi.prototype,"resetFlexibleItems",null);_.N([_.JO("tonalOverride"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Oi.prototype,"tonalOverrideChanged",null);
_.N([_.Vg("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Oi.prototype,"onPopupOpened",null);_.N([_.Vg("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Oi.prototype,"onPopupClosed",null);_.N([_.Vg("yt-popup-canceled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Oi.prototype,"onPopupCanceled",null);
_.p(Oi,"ytd-menu-renderer",function(){if(anN===void 0){var f=document.createElement("template");_.Y(f,'\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>');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);anN=f}f=anN;return f},{mode:_.X_("kevlar_poly_si_batch_j030")?1:2});var E3i;var Lfm;_.xq=_.oS(function(f){var S=f.data;var B=function(){if(S().icon)a:{var G={iconName:S().icon};for(var g=_.oy().resolve(_.VU),b=_.m([12,24]),z=b.next();!z.done;z=b.next()){var X=z.value;z=Object.assign({},G,{iconStyle:"youtube_fill",iconSize:X});X=Object.assign({},G,{iconStyle:"youtube_outline",iconSize:X});if(g.resolveIcon(z)){G=z;break a}if(g.resolveIcon(X)){G=X;break a}}G=void 0}else G=void 0;return G};
f={};return _.T("badge-shape",{class:_.Pw("badge-shape-wiz",function(){return D4s(S().type)},(f["badge-shape-wiz--overlay"]=function(){return S().isOverlay},f["badge-shape-wiz--ads-include-dot"]=function(){return S().adsIncludeDot},f["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(S().type){case 16:case 17:case 18:var G=!0;
break a;default:G=!1}return G},f["badge-shape-wiz--status-badge"]=function(){a:switch(S().type){case 11:case 12:case 13:case 14:case 15:var G=!0;
break a;default:G=!1}return G},f["badge-shape-wiz--no-text"]=function(){return!S().text},f["badge-shape-wiz--modern"]=function(){return S().modern||_.K("web_modern_badge_shape")},f)),
style:_.Qj({"background-color":function(){var G;return(G=S().customColors)==null?void 0:G.backgroundColor}}),
role:function(){return S().accessibilityText?"img":void 0},
"aria-label":function(){return S().accessibilityText}},_.T(_.v,{cond:function(){return S().animation},
then:function(G){return _.T(_.vw,{className:"badge-shape-wiz__icon",data:G,animationName:function(){return G().animationConfig.name||""}})}}),_.T(_.v,{cond:function(){var G;
return B()&&!((G=S())==null?0:G.animation)},
then:function(){return _.T("div",{class:"badge-shape-wiz__icon"},_.T(ECK,{data:function(){return B()}}))}}),_.T("div",{class:"badge-shape-wiz__text"},function(){var G;
return(G=S())==null?void 0:G.text}))},"O");
_.xq.idomCompat=!0;_.eq(_.xq,"badge-shape",{props:{data:_.W4}});var Ei=function(){var f=_.I.apply(this,arguments)||this;f.systemIcons=_.K("kevlar_system_icons");f.animated=_.K("animated_live_badge_icon");f.useBadgeShape=_.K("web_badge_shape_defrag");return f};
_.q(Ei,_.I);_.e=Ei.prototype;_.e.addTooltips=function(){for(var f=_.m9(this.hostElement).querySelectorAll(".badge"),S=0,B;B=f[S++];){var G=this.repeatElement.itemForElement(B);B=_.m9(B);B.lastChild&&B.lastChild.is==="tp-yt-paper-tooltip"&&B.removeChild(B.lastChild);if(G=G.metadataBadgeRenderer&&G.metadataBadgeRenderer.tooltip){var g=_.Bl("tp-yt-paper-tooltip");(0,_.wv)(g).textContent=G;g.setAttribute("position","top");g.setAttribute("aria-hidden","true");B.appendChild(g)}}};
_.e.badgesChanged=function(){var f=this;_.UX().parkOrScheduleJob(function(){f.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.e.standaloneRoundedBadgeChanged=function(){var f=this.useRoundedBadge?this.useRoundedBadge:void 0;f&&(this.useRoundedBadge=f)};
_.e.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.e.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.e.computeStyle=function(f){_.K("enable_html5_teal_ad_badge")&&f==="BADGE_STYLE_TYPE_AD"&&(f="badge-style-type-ad-alternate");_.K("kevlar_ytb_live_badges")&&f==="BADGE_STYLE_TYPE_LIVE_NOW"&&(f="badge-style-type-live-now-alternate");return f?f.toLowerCase().replace(/_/g,"-"):""};
_.e.computeRole=function(f){return this.computeAriaLabel(f)?"img":"status"};
_.e.computeAriaLabel=function(f){var S;return(f==null?void 0:(S=f.accessibilityData)==null?void 0:S.label)||(f==null?void 0:f.label)};
_.e.computeBadgeShape=function(f){var S;if(f){var B,G=nyV(f.style),g=sds(f.style),b=f.label,z=((B=f.accessibilityData)==null?void 0:B.label)||f.label;f=(S=f.icon)==null?void 0:S.iconType;S={type:G,brNzRatingBadgeType:g,text:b,accessibilityText:z,icon:f!=="PREMIUM"?f:void 0}}else S={};return S};
_.e.updateComputedBadges=function(f,S,B){var G=this;(S=S?[S]:B?[B]:void 0)?this.computedBadges=S:this.computedBadges=f==null?void 0:f.filter(function(g){var b;if((b=g.metadataBadgeRenderer)==null?0:b.groups){b=!1;g=_.m(g.metadataBadgeRenderer.groups);for(var z=g.next();!z.done;z=g.next()){z=z.value;var X=void 0;b=b||((X=G.hiddenBadgeGroups)==null?void 0:X.includes(z))}return!b}return!0})};
_.e.useFilledIcons=function(f){return _.K("kevlar_system_icons")&&(f==="AUDIO_BADGE"||f==="CHECK_CIRCLE_THICK"||f==="OFFICIAL_ARTIST_BADGE"||f==="SPONSORSHIP_STAR"||f==="PERSON_RADAR_FILLED"||f==="PERSON_RADAR")};
_.e.computeBadgeShapeStyle=function(f){return this.useBadgeShape?f==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||f==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":"":""};
_.e.computeIcon=function(f){var S,B;f=f==null?void 0:(S=f.metadataBadgeRenderer)==null?void 0:(B=S.icon)==null?void 0:B.iconType;if(f!=="PREMIUM"&&f)return _.F_(f)};
_.e.computeStandaloneBadge=function(f){var S;f=f==null?void 0:(S=f.icon)==null?void 0:S.iconType;return f==="PREMIUM_STANDALONE"||f==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
Ei.prototype.hiddenBadgeGroupsChanged=Ei.prototype.hiddenBadgeGroupsChanged;Ei.prototype.standaloneBadgeChanged=Ei.prototype.standaloneBadgeChanged;Ei.prototype.standaloneRoundedBadgeChanged=Ei.prototype.standaloneRoundedBadgeChanged;Ei.prototype.badgesChanged=Ei.prototype.badgesChanged;_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ei.prototype,"hidden",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Ei.prototype,"componentBehavior",void 0);
_.N([_.n(),_.Z("design:type",Array)],Ei.prototype,"badges",void 0);_.N([_.n(),_.Z("design:type",Object)],Ei.prototype,"topStandaloneBadge",void 0);_.N([_.n(),_.Z("design:type",Object)],Ei.prototype,"bottomStandaloneBadge",void 0);_.N([_.n(),_.Z("design:type",Object)],Ei.prototype,"computedBadges",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ei.prototype,"mediumFontAdBadge",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ei.prototype,"useRoundedBadge",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ei.prototype,"largeFontAdBadge",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ei.prototype,"overlayAd",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ei.prototype,"overlayPremium",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ei.prototype,"noDotAdBadge",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ei.prototype,"collectionTruncate",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ei.prototype,"isThumbnailBadge",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ei.prototype,"wrapBadges",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Ei.prototype,"systemIcons",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Ei.prototype,"animated",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Ei.prototype,"useBadgeShape",void 0);_.N([_.n({value:[]}),_.Z("design:type",Array)],Ei.prototype,"hiddenBadgeGroups",void 0);_.N([_.vF("#repeat"),_.Z("design:type",xb)],Ei.prototype,"repeatElement",void 0);_.N([_.HF("badges"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ei.prototype,"badgesChanged",null);
_.N([_.HF("useRoundedBadge"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ei.prototype,"standaloneRoundedBadgeChanged",null);_.N([_.HF("topStandaloneBadge","bottomStandaloneBadge"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ei.prototype,"standaloneBadgeChanged",null);_.N([_.HF("hiddenBadgeGroups"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ei.prototype,"hiddenBadgeGroupsChanged",null);
_.N([_.C({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],Ei);
var kpN=_.RS()(Ei,"ytd-badge-supported-renderer",function(){if(Lfm===void 0){var f=document.createElement("template");_.Y(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge-shape [[computeBadgeShapeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></div></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);Lfm=f}f=Lfm;return f},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.X_("kevlar_poly_si_batch_j053")?1:2});var Lf=function(){var f=_.I.apply(this,arguments)||this;f.iconType="STAR";f.standardizeIconSize=_.K("kevlar_system_icons");f.mediaHoverOverlayInitialVisibility=_.K("enable_top_landscape_image_button_command_web");f.noBottomMargin=!1;f.thumbnailObjectFit="CONTAIN";f.thumbnailFitHeight=!0;f.actionMap={"yt-mute-ad-action":"handleMuteAd"};return f};
_.q(Lf,_.I);_.e=Lf.prototype;
_.e.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"}}}};
_.e.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",Lf.JSC$12608_DEFAULT_CLICK_LOCATION_BEHAVIOR,Lf.JSC$12608_CLICK_LOCATION_ID_MAP))};
_.e.onTap=function(f){if(!_.K("use_on_click_for_desktop_display_ad"))this.onTapOrClick(f)};
_.e.onClick=function(f){if(_.K("use_on_click_for_desktop_display_ad"))this.onTapOrClick(f)};
_.e.onTapOrClick=function(f){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,f,!1)};
_.e.updateMediaBackgroundImage=function(){var f=this.get("data.image.thumbnail.thumbnails");f&&(f=_.bF(f,0))&&_.hO(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+f+")"})};
_.e.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var f=0;f<this.data.impressionEndpoints.length;f++){var S=this.data.impressionEndpoints[f];S.clickTrackingParams&&delete S.clickTrackingParams;_.oy().resolve(_.S7).resolveCommand(S,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var B;((B=this.data)==null?0:B.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.e.handleMuteAd=function(){};
_.e.attached=function(){var f=this;_.K("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&f.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.e.detached=function(){_.K("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.y3.Object.defineProperties(Lf.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)==null||!f.titleText)return"";var S;return _.Jf("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((S=this.data)==null?void 0:S.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?0:f.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?0:f.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?0:f.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?0:f.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?0:f.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 f;return!((f=this.data)==null||!f.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"}}});
Lf.prototype.onClick=Lf.prototype.onClick;Lf.prototype.onTap=Lf.prototype.onTap;Lf.prototype.dataChanged=Lf.prototype.dataChanged;
Lf.JSC$12608_CLICK_LOCATION_ID_MAP=_.K("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"]]);
Lf.JSC$12608_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.K("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"}];_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Lf.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Lf.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.r(_.kP),_.Z("design:type",Object)],Lf.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],Lf.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.lE.YtSparklesClickLocationBehavior),_.Z("design:type",Object)],Lf.prototype,"ytSparklesClickLocationBehavior",void 0);_.N([_.r(xP),_.Z("design:type",Object)],Lf.prototype,"ytdActiveViewBehavior",void 0);_.N([_.r([_.b3.YtActionHandlerBehavior]),_.Z("design:type",Object)],Lf.prototype,"actionHandlerBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],Lf.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],Lf.prototype,"clickCommand",void 0);_.N([_.n({reflectToAttribute:!0,selector:_.xr}),_.Z("design:type",Boolean)],Lf.prototype,"miniMode",void 0);_.N([_.n(),_.Z("design:type",String)],Lf.prototype,"iconType",void 0);_.N([_.k("data.titleText"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Lf.prototype,"titleAriaLabel",null);
_.N([_.k("data.rating"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Lf.prototype,"getRating",null);_.N([_.k("data.price"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Lf.prototype,"getPrice",null);_.N([_.k("data.thirdLine"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Lf.prototype,"getThirdLine",null);_.N([_.k("data.fourthLine"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Lf.prototype,"getFourthLine",null);
_.N([_.k("data.fifthLine"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Lf.prototype,"getFifthLine",null);_.N([_.k("getRating"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Lf.prototype,"computeRatingHidden",null);_.N([_.k("getPrice"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Lf.prototype,"computePriceHidden",null);_.N([_.k("getThirdLine"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Lf.prototype,"computeThirdLineHidden",null);
_.N([_.k("getFourthLine"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Lf.prototype,"computeFourthLineHidden",null);_.N([_.k("getFifthLine"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Lf.prototype,"computeFifthLineHidden",null);_.N([_.n({reflectToAttribute:!0}),_.k("data.energyIcon"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Lf.prototype,"hasEnergyIcon",null);
_.N([_.k("computePriceHidden","computeRatingHidden"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Lf.prototype,"computeSecondaryTextHidden",null);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Lf.prototype,"standardizeIconSize",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Lf.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Lf.prototype,"noBottomMargin",void 0);
_.N([_.n({reflectToAttribute:!0}),_.k("data.layout"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Lf.prototype,"layout",null);_.N([_.k("data.layout"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Lf.prototype,"mediaThumbnailWidth",null);_.N([_.k("layout"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Lf.prototype,"useRoundedBadge",null);_.N([_.n(),_.Z("design:type",String)],Lf.prototype,"thumbnailObjectFit",void 0);
_.N([_.n(),_.Z("design:type",Object)],Lf.prototype,"thumbnailFitHeight",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Lf.prototype,"dataChanged",null);_.N([_.Vg("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Lf.prototype,"onTap",null);_.N([_.Vg("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Lf.prototype,"onClick",null);
_.N([_.C({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],Lf);
_.p(Lf,"ytd-display-ad-renderer",function(){if(E3i!==void 0)return E3i;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return E3i=f},{mode:1});var n3X;var sU6;var D8X;var IQN=new Map;var IBN=!1;var kq=function(){var f=_.I.apply(this,arguments)||this;f.DEFAULT_TOOLTIP_OFFSET="10";f.TOOLTIP_OFFSET_NO_BANNER="-8";f.badges=null;f.noEndpoints=!1;f.wrapText=!1;f.forceVerified=!1;f.tooltipPosition="top";f.compactStyle=!1;f.height=0;f.lineHeight=0;return f};
_.q(kq,_.I);_.e=kq.prototype;_.e.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.e.attached=function(){var f=this;this.observer=new MutationObserver(function(S,B){f.handleResized();B.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.e.detached=function(){this.observer&&this.observer.disconnect()};
_.e.logTooltipEvent=function(){_.K("kevlar_wiz_tooltip_event_killswitch")||IBN||(_.U4K("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),IBN=!0)};
_.e.handleWindowResized=function(){this.handleResized()};
_.e.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")))};
_.e.onHeightChanged=function(){if(this.verified){var f=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.nL("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=f:this.textContainerEl.style.marginRight=f}};
_.e.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.nL("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.e.handleResized=function(){var f=this;this.verified&&_.xJ.addLowPriorityJob(function(){f.fitBackgroundToText();var S=getComputedStyle(f.hostElement).lineHeight;S&&(S=S.match(/\d+/))&&S.length&&(f.lineHeight=Number(S[0]));f.height=f.lineHeight&&!f.wrapText?f.lineHeight:f.textEl.offsetHeight})};
_.e.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var f=document.createRange(),S=_.m9(this.textEl).children;S.length>0?f.selectNodeContents(S[0]):f.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(f.getBoundingClientRect().width)+"px"}};
_.e.computeChannelBadgeStyle=function(f){var S;if((f==null?0:(S=f.runs)==null?0:S.length)&&f.runs[0].textColor)return"--ytd-badge-icon-color:"+_.pn(f.runs[0].textColor)+";"};
_.y3.Object.defineProperties(kq.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"?_.uC(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var f=this.get("badges.0.metadataBadgeRenderer.tooltip");if(f)return f}return _.ac(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
kq.prototype.onLineHeightChanged=kq.prototype.onLineHeightChanged;kq.prototype.onHeightChanged=kq.prototype.onHeightChanged;kq.prototype.onChannelNameChanged=kq.prototype.onChannelNameChanged;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],kq.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],kq.prototype,"badges",void 0);_.N([_.n(),_.Z("design:type",Object)],kq.prototype,"channelName",void 0);
_.N([_.n(),_.Z("design:type",Object)],kq.prototype,"noEndpoints",void 0);_.N([_.n(),_.Z("design:type",Object)],kq.prototype,"wrapText",void 0);_.N([_.n(),_.Z("design:type",Object)],kq.prototype,"forceVerified",void 0);_.N([_.n(),_.Z("design:type",Object)],kq.prototype,"tooltipPosition",void 0);_.N([_.n(),_.Z("design:type",String)],kq.prototype,"tooltip",void 0);_.N([_.n(),_.Z("design:type",Boolean)],kq.prototype,"hasChannelArt",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],kq.prototype,"compactStyle",void 0);_.N([_.vF("#text-container"),_.Z("design:type",HTMLElement)],kq.prototype,"textContainerEl",void 0);_.N([_.vF("#text"),_.Z("design:type",Object)],kq.prototype,"textEl",void 0);_.N([_.vF("#verified-tooltip"),_.Z("design:type",HTMLElement)],kq.prototype,"verifiedTooltip",void 0);_.N([_.n(),_.Z("design:type",Object)],kq.prototype,"height",void 0);
_.N([_.n(),_.Z("design:type",Object)],kq.prototype,"lineHeight",void 0);_.N([_.n({reflectToAttribute:!0}),_.k("badges","forceVerified"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],kq.prototype,"verified",null);_.N([_.k("badges","verified"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],kq.prototype,"hideBadges",null);_.N([_.k("channelName"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],kq.prototype,"formattedName",null);
_.N([_.k("badges","verified","formattedName"),_.Z("design:type",String),_.Z("design:paramtypes",[])],kq.prototype,"tooltipText",null);_.N([_.k("hasChannelArt"),_.Z("design:type",String),_.Z("design:paramtypes",[])],kq.prototype,"tooltipOffset",null);_.N([_.JO("channelName"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],kq.prototype,"onChannelNameChanged",null);
_.N([_.JO("height"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],kq.prototype,"onHeightChanged",null);_.N([_.JO("lineHeight","height"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],kq.prototype,"onLineHeightChanged",null);_.N([_.C({is:"ytd-channel-name",disableElementRegistration:!0})],kq);
_.p(kq,"ytd-channel-name",function(){if(D8X!==void 0)return D8X;var f=document.createElement("template");_.Y(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-name--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-mouseover="logTooltipEvent" class="style-scope ytd-channel-name">\n  <div id="text-container" class="style-scope ytd-channel-name">\n    <yt-formatted-string id="text" ellipsis-truncate="[[!wrapText]]" link-inherit-color="" no-endpoints="[[noEndpoints]]" respect-lang-dir="" text="[[formattedName]]" title="" class="style-scope ytd-channel-name">\n    </yt-formatted-string>\n  </div>\n  <tp-yt-paper-tooltip aria-hidden="true" fit-to-visible-bounds="" offset="[[tooltipOffset]]" position="[[tooltipPosition]]" class="style-scope ytd-channel-name">\n    [[tooltipText]]\n  </tp-yt-paper-tooltip>\n</div>\n<ytd-badge-supported-renderer badges="[[badges]]" hidden="[[hideBadges]]" style$="[[computeChannelBadgeStyle(formattedName)]]" class="style-scope ytd-channel-name">\n</ytd-badge-supported-renderer>\n');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return D8X=f},{mode:_.X_("kevlar_poly_si_batch_j036")?1:2});var nf=function(){var f=_.I.apply(this,arguments)||this;f.standardizeIconSize=_.K("kevlar_system_icons");f.enableModernCommentBadges=_.K("enable_modern_comment_badges");return f};
_.q(nf,_.I);nf.prototype.basicPaletteChanged=function(){var f;(f=this.data.color)!=null&&f.basicColorPaletteData&&_.n9(this.hostElement,this.data.color.basicColorPaletteData)};
nf.prototype.colorChanged=function(){if(!this.enableModernCommentBadges){var f,S=this.get("basicColorPaletteData.backgroundColor",(f=this.data)==null?void 0:f.color),B;f=this.get("basicColorPaletteData.foregroundTitleColor",(B=this.data)==null?void 0:B.color);B={};S?(S=_.pn(S),B["--ytd-author-comment-badge-background-color"]=S):(B["--ytd-author-comment-badge-icon-background-color"]="transparent",B["--ytd-author-comment-badge-background-color"]="transparent");f?(S=_.pn(f),B["--ytd-author-comment-badge-name-color"]=
S,B["--ytd-author-comment-badge-icon-color"]=S):B["--ytd-author-comment-badge-name-color"]="var(--yt-spec-text-primary)";Object.keys(B).length>0&&_.hO(this.hostElement,B)}};
nf.prototype.useFilledIcons=function(f){return _.K("kevlar_system_icons")&&(f==="CHECK_CIRCLE_THICK"||f==="OFFICIAL_ARTIST_BADGE")};
_.y3.Object.defineProperties(nf.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")}}});
nf.prototype.colorChanged=nf.prototype.colorChanged;nf.prototype.basicPaletteChanged=nf.prototype.basicPaletteChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],nf.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],nf.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],nf.prototype,"standardizeIconSize",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],nf.prototype,"enableModernCommentBadges",void 0);
_.N([_.n({reflectToAttribute:!0}),_.k("data.authorUnifiedVerified"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],nf.prototype,"verified",null);_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],nf.prototype,"creator",null);_.N([_.JO("data.color.basicColorPaletteData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nf.prototype,"basicPaletteChanged",null);
_.N([_.JO("data.color"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nf.prototype,"colorChanged",null);_.N([_.C({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],nf);
_.p(nf,"ytd-author-comment-badge-renderer",function(){if(sU6!==void 0)return sU6;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return sU6=f},{mode:1});var U87;var I_=function(){return _.I.apply(this,arguments)||this};
_.q(I_,_.I);I_.prototype.computeThumbnailWidth=function(f){if(f==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],I_.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],I_.prototype,"data",void 0);_.N([_.n({computed:"computeIcon_(data.icon)"}),_.Z("design:type",String)],I_.prototype,"icon",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",String)],I_.prototype,"surface",void 0);
_.N([_.n({reflectToAttribute:!0,value:_.K("enable_shrink_image_size_on_web_posts_singleton")}),_.Z("design:type",Boolean)],I_.prototype,"searchSxsUx",void 0);_.N([_.C({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],I_);
_.p(I_,"ytd-backstage-image-renderer",function(){if(U87!==void 0)return U87;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return U87=f},{mode:1});var CV7;var Ui=function(){var f=_.I.apply(this,arguments)||this;f.isLoading=!1;f.selectedItemIndex=-1;return f};
_.q(Ui,_.I);_.e=Ui.prototype;_.e.computeIsChannelOwner=function(f){if(!f)return!0;f=f[0];return!(f&&(f.signinEndpoint||f.selectServiceEndpoint))};
_.e.computeIsImagePoll=function(f){return(f==null?void 0:f.type)==="POLL_TYPE_IMAGE"};
_.e.computeIsTotalVotesDisabled=function(f){return!(f==null?0:f.totalVotes)};
_.e.thumbnailSrc=function(f){var S,B,G,g;return(f==null?0:(S=f.thumbnails)==null?0:(B=S[0])==null?0:B.url)?_.io((G=f.thumbnails)==null?void 0:(g=G[0])==null?void 0:g.url):void 0};
_.e.progressWidth=function(f){return"width:"+(f?f*100:0)+"%;"};
_.e.textAreaWidth=function(f){return this.isImagePoll?null:"width:"+(f?f*100:0)+"%;"};
_.e.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.e.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var f=this.data.choices,S=0;S<f.length;S++)if(f[S].selected){this.selectedItemIndex=S;break}};
_.e.onPopupClosed=function(f,S){f=Number(this.pollVotes.selected);S.confirmed&&(this.selectChoice(f,!1),_.bW(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.e.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.e.onYtCommentPollRevert=function(f,S){S&&(this.selectChoice(S.selectedChoiceIndex,!0),this.set("data.totalVotes",S.totalVotes))};
_.e.onYtServiceRequestSent=function(f,S){if(S.actions)for(f=0;f<S.actions.length;f++){var B=S.actions[f];_.H(B,rU)&&this.set("data.totalVotes",_.H(B,rU).totalVotes)}};
_.e.onYtServiceRequestCompleted=function(f){var S=this.get("detail.data.actionResults.0.feedback",f);f=this.get("detail.data.actionResults.0.status",f);if(S==="FEEDBACK_DESELECT"||S==="FEEDBACK_SELECT")this.isLoading=!1,f==="STATUS_FAILED"?_.ew(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.e.getEndpoint=function(f,S){return S===f?this.data.choices[S].deselectServiceEndpoint||null:this.data.choices[f].selectServiceEndpoint||null};
_.e.selectChoice=function(f,S){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var B=0;B<this.data.choices.length;B++){var G;if(f===this.selectedItemIndex){var g=!1;var b=G=null}else G=(g=B===f)?this.data.choices[B].voteRatioIfSelected:this.data.choices[B].voteRatioIfNotSelected,b=g?this.data.choices[B].votePercentageIfSelected:this.data.choices[B].votePercentageIfNotSelected;this.set("data.choices."+B+".voteRatio",G);
this.set("data.choices."+B+".votePercentage",b);this.set("data.choices."+B+".selected",g)}S||(this.isLoading=!0,(S=this.getEndpoint(f,this.selectedItemIndex))&&_.oy().resolve(_.S7).resolveCommand(S,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===f?-1:f};
_.y3.Object.defineProperties(Ui.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
Ui.prototype.onYtServiceRequestCompleted=Ui.prototype.onYtServiceRequestCompleted;Ui.prototype.onYtServiceRequestSent=Ui.prototype.onYtServiceRequestSent;Ui.prototype.onYtCommentPollRevert=Ui.prototype.onYtCommentPollRevert;Ui.prototype.onPopupClosed=Ui.prototype.onPopupClosed;Ui.prototype.dataChanged=Ui.prototype.dataChanged;_.N([_.r(_.Wu),_.Z("design:type",Object)],Ui.prototype,"paperItemBehavior",void 0);
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Ui.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.a5),_.Z("design:type",Object)],Ui.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Ui.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],Ui.prototype,"isLoading",void 0);_.N([_.n({computed:"computeIsChannelOwner(data.choices)"}),_.Z("design:type",Boolean)],Ui.prototype,"isChannelOwner",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.Z("design:type",Boolean)],Ui.prototype,"isImagePoll",void 0);_.N([_.n({computed:"computeIsTotalVotesDisabled(data)"}),_.Z("design:type",Boolean)],Ui.prototype,"isTotalVotesDisabled",void 0);_.N([_.n(),_.Z("design:type",Object)],Ui.prototype,"previousPollInfo",void 0);_.N([_.n(),_.Z("design:type",Object)],Ui.prototype,"selectedItemIndex",void 0);_.N([_.vF("#poll-votes"),_.Z("design:type",Object)],Ui.prototype,"pollVotes",void 0);
_.N([_.k("isChannelOwner"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ui.prototype,"endpointStyle",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ui.prototype,"dataChanged",null);_.N([_.Vg("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],Ui.prototype,"onPopupClosed",null);
_.N([_.Vg("yt-comment-poll-revert"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],Ui.prototype,"onYtCommentPollRevert",null);_.N([_.Vg("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.N1]),_.Z("design:returntype")],Ui.prototype,"onYtServiceRequestSent",null);
_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Ui.prototype,"onYtServiceRequestCompleted",null);_.N([_.C({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],Ui);
_.p(Ui,"ytd-backstage-poll-renderer",function(){if(CV7!==void 0)return CV7;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return CV7=f},{mode:2});var pgg;var AMm={autoplay:!1,loop:!1},N68={simpleText:""},Cf=function(){var f=_.I.apply(this,arguments)||this;f.isLoading=!1;f.usesPanelLockup=!1;f.selectedItemIndex=-1;f.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},AMm,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});f.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},AMm,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});f.correctnessAnimationProps=[];f.correctnessAnimationRefs=[];return f};
_.q(Cf,_.I);_.e=Cf.prototype;_.e.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.e.computeIsChannelOwner=function(f){if(!f)return!0;f=f[0];return!(f&&(f.signinEndpoint||f.selectServiceEndpoint))};
_.e.computeIsTotalVotesDisabled=function(f){return!(f==null?0:f.totalVotes)};
_.e.computeIsImageQuiz=function(f){return(f==null?void 0:f.type)==="POLL_TYPE_IMAGE"};
_.e.onExplanationChanged=function(){this.expander.reset()};
_.e.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var f=this.data.choices;if(f){this.maybeInitializeQuizLotties(f);for(var S=0;S<f.length;S++)if(f[S].isSelected||this.isChannelOwner&&f[S].isCorrect){this.selectedItemIndex=S;return}this.selectedItemIndex=-1}}};
_.e.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var f=this.selectedItemIndex,S=Number(this.quizVotes.selected);this.selectChoice(S);this.sendVoteAction(S,f);this.quizVotes.selected=-1;var B;f=!((B=this.data)==null?0:B.enableAnimation);this.maybePlayAnswerAnimations(f)}};
_.e.onYtCommentPollRevert=function(f,S){S&&(this.selectChoice(S.selectedChoiceIndex),this.set("data.totalVotes",S.totalVotes))};
_.e.onYtServiceRequestSent=function(f,S){if(S.actions)for(f=_.m(S.actions),S=f.next();!S.done;S=f.next())(S=_.H(S.value,rU))&&this.set("data.totalVotes",S.totalVotes)};
_.e.onYtServiceRequestCompleted=function(f){var S=this.get("detail.data.actionResults.0.feedback",f);f=this.get("detail.data.actionResults.0.status",f);if(S==="FEEDBACK_DESELECT"||S==="FEEDBACK_SELECT")this.isLoading=!1,f==="STATUS_FAILED"?_.ew(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.e.getAnimationPropsForChoiceIndex=function(f,S){return S[f]};
_.e.maybePlayAnswerAnimations=function(f){f=f===void 0?!1:f;var S;if((S=this.data)!=null&&S.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){S=_.m(this.correctnessAnimationRefs);for(var B=S.next();!B.done;B=S.next()){var G=void 0,g=void 0;(G=B.value)==null||(g=G.lottieEl)==null||g.stop()}if(!(this.selectedItemIndex<0)){S=0;f&&(S=this.isCorrect?37:25);var b,z;(b=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(z=b.lottieEl)==null||z.goToAndPlay(f?S:0,!0);if(!(this.isCorrect||
(b=this.data.choices.findIndex(function(V){return V.isCorrect}),b<0))){var X,w;
(w=(X=this.correctnessAnimationRefs[b])==null?void 0:X.lottieEl)==null||w.goToAndPlay(37,!0);var F;X=(F=this.fadeContainers)==null?void 0:F.item(b);!f&&X&&this.fadeIn(X)}}}};
_.e.thumbnailSrc=function(f){var S,B,G,g;return(f==null?0:(S=f.thumbnails)==null?0:(B=S[0])==null?0:B.url)?_.io((G=f.thumbnails)==null?void 0:(g=G[0])==null?void 0:g.url):void 0};
_.e.a11yVotedText=function(f,S){var B,G,g=((B=this.data)==null?void 0:(G=B.correctVotedText)==null?void 0:G.simpleText)||"",b,z;B=((b=this.data)==null?void 0:(z=b.votedText)==null?void 0:z.simpleText)||"";if(!S)return"";var X,w;if((X=this.data)==null?0:(w=X.choices)==null?0:w[f].isCorrect)return g;var F,V;return((F=this.data)==null?0:(V=F.choices)==null?0:V[f].isSelected)?B:""};
_.e.getEndpoint=function(f,S){return S===f?this.data.choices[f].deselectServiceEndpoint||null:this.data.choices[f].selectServiceEndpoint||null};
_.e.sendVoteAction=function(f,S){if(f=this.getEndpoint(f,S))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(f)};
_.e.selectChoice=function(f){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var S=0;S<this.data.choices.length;S++)this.set("data.choices."+S+".isSelected",f===this.selectedItemIndex?!1:S===f);this.selectedItemIndex=this.selectedItemIndex===f?-1:f};
_.e.maybeInitializeQuizLotties=function(f){var S=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=f.map(function(B){return{animationConfig:B.isCorrect?S.baseCorrectLottiePlayerAnimationConfig:S.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){S.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(B){return B.animationRef||{}})};
_.e.fadeIn=function(f){f.classList.add("fade-in");_.Xd(_.xJ,function(){f.classList.remove("fade-in")},900)};
_.y3.Object.defineProperties(Cf.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.K("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.ac(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 f,S;return((f=this.data)==null?void 0:(S=f.choices)==null?void 0:S.some(function(B){return B.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null||!f.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?N68:this.data.choices[this.selectedItemIndex].explanation||N68}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null||!f.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
Cf.prototype.onYtServiceRequestCompleted=Cf.prototype.onYtServiceRequestCompleted;Cf.prototype.onYtServiceRequestSent=Cf.prototype.onYtServiceRequestSent;Cf.prototype.onYtCommentPollRevert=Cf.prototype.onYtCommentPollRevert;Cf.prototype.dataChanged=Cf.prototype.dataChanged;Cf.prototype.onExplanationChanged=Cf.prototype.onExplanationChanged;_.N([_.r(_.Wu),_.Z("design:type",Object)],Cf.prototype,"paperItemBehavior",void 0);
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Cf.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Cf.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.Sy.YtTaskEmitterBehavior),_.Z("design:type",Object)],Cf.prototype,"ytTaskEmitterBehavior",void 0);_.N([_.r(_.a5),_.Z("design:type",Object)],Cf.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Cf.prototype,"data",void 0);
_.N([_.n(),_.Z("design:type",Object)],Cf.prototype,"isLoading",void 0);_.N([_.n(),_.Z("design:type",Object)],Cf.prototype,"usesPanelLockup",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.Z("design:type",Boolean)],Cf.prototype,"isChannelOwner",void 0);_.N([_.n({computed:"computeIsTotalVotesDisabled(data)"}),_.Z("design:type",Boolean)],Cf.prototype,"isTotalVotesDisabled",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.Z("design:type",Boolean)],Cf.prototype,"isImageQuiz",void 0);_.N([_.n(),_.Z("design:type",Object)],Cf.prototype,"previousQuizInfo",void 0);_.N([_.n(),_.Z("design:type",Object)],Cf.prototype,"selectedItemIndex",void 0);_.N([_.n({reflectToAttribute:!0}),_.k("data","usesPanelLockup"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Cf.prototype,"shouldUseModernUi",null);
_.N([_.KP(".fade-container"),_.Z("design:type",Object)],Cf.prototype,"fadeContainers",void 0);_.N([_.n(),_.Z("design:type",Array)],Cf.prototype,"correctnessAnimationProps",void 0);_.N([_.k("explanation","showCorrectAnswer"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Cf.prototype,"showExplanation",null);_.N([_.k("isChannelOwner","isAttempted"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Cf.prototype,"showCorrectAnswer",null);
_.N([_.k("isChannelOwner","isAttempted","data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Cf.prototype,"isQuizAnsweringDisabled",null);_.N([_.k("isQuizAnsweringDisabled"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Cf.prototype,"endpointStyle",null);_.N([_.k("data","selectedItemIndex"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Cf.prototype,"isAttempted",null);
_.N([_.k("data","selectedItemIndex"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Cf.prototype,"explanation",null);_.N([_.k("data","selectedItemIndex"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Cf.prototype,"isCorrect",null);_.N([_.vF("ytd-expander"),_.Z("design:type",Object)],Cf.prototype,"expander",void 0);_.N([_.vF("#quiz-votes"),_.Z("design:type",Object)],Cf.prototype,"quizVotes",void 0);
_.N([_.JO("explanation"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Cf.prototype,"onExplanationChanged",null);_.N([_.JO("data","isChannelOwner"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Cf.prototype,"dataChanged",null);_.N([_.Vg("yt-comment-quiz-revert"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],Cf.prototype,"onYtCommentPollRevert",null);
_.N([_.Vg("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.N1]),_.Z("design:returntype")],Cf.prototype,"onYtServiceRequestSent",null);_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Cf.prototype,"onYtServiceRequestCompleted",null);_.N([_.C({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],Cf);
_.p(Cf,"ytd-backstage-quiz-renderer",function(){if(pgg!==void 0)return pgg;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return pgg=f},{mode:1});var MlL;var pf=function(){return _.I.apply(this,arguments)||this};
_.q(pf,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],pf.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],pf.prototype,"data",void 0);_.N([_.C({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],pf);
_.p(pf,"ytd-post-uploaded-video-renderer",function(){if(MlL!==void 0)return MlL;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return MlL=f},{mode:1});var ZmL;var Ag=function(){return _.I.apply(this,arguments)||this};
_.q(Ag,_.I);Ag.prototype.useFilledIcons=function(f){return f==="SPONSORSHIP_STAR"};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Ag.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Ag.prototype,"data",void 0);_.N([_.C({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],Ag);
_.p(Ag,"ytd-sponsors-only-badge-renderer",function(){if(ZmL!==void 0)return ZmL;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return ZmL=f},{mode:1});var tlv;var Nj=function(){return _.I.apply(this,arguments)||this};
_.q(Nj,_.I);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Nj.prototype,"componentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Nj.prototype,"data",void 0);_.N([_.C({is:"ytd-child-video-renderer",disableElementRegistration:!0})],Nj);
_.p(Nj,"ytd-child-video-renderer",function(){if(tlv!==void 0)return tlv;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return tlv=f},{mode:1});var ui$;var aB6;var Mj=function(){var f=_.I.apply(this,arguments)||this;f.size=0;f.enableWebModernCollectionsV2=_.K("web_modern_collections_v2");f.fallbackImageSize={height:void 0,width:9999};f.webModernCollections=!1;return f};
_.q(Mj,_.I);_.e=Mj.prototype;_.e.computeBlurredImageSize=function(f){return f?{height:f*2,width:f*2}:this.fallbackImageSize};
_.e.computeImageSize=function(f){return f?{height:f,width:f}:this.fallbackImageSize};
_.e.computeObjectFit=function(f){return f?"FILL":"CONTAIN"};
_.e.computePreserve=function(f){return f?!0:!1};
_.e.setBackground=function(){var f,S;_.K("web_modern_collections_v2")&&((f=this.data)==null?0:(S=f.thumbnail)==null?0:S.sampledThumbnailColor)&&(f=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+f.red+","+f.green+","+f.blue+",1)")};
Mj.prototype.setBackground=Mj.prototype.setBackground;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Mj.prototype,"ytRendererBehavior",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],Mj.prototype,"watchFeedThumbnail",void 0);_.N([_.n(),_.Z("design:type",Object)],Mj.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],Mj.prototype,"size",void 0);
_.N([_.n({computed:"computeBlurredImageSize(size)"}),_.Z("design:type",Object)],Mj.prototype,"blurredImageSize",void 0);_.N([_.n({computed:"computeImageSize(size)"}),_.Z("design:type",Object)],Mj.prototype,"imageSize",void 0);_.N([_.n({computed:"computePreserve(size)"}),_.Z("design:type",String)],Mj.prototype,"preserve",void 0);_.N([_.n({computed:"computeObjectFit(size)"}),_.Z("design:type",String)],Mj.prototype,"objectFit",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Mj.prototype,"enableWebModernCollectionsV2",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Mj.prototype,"webModernCollections",void 0);_.N([_.JO("data.thumbnail.sampledThumbnailColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Mj.prototype,"setBackground",null);_.N([_.C({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],Mj);
_.p(Mj,"ytd-playlist-custom-thumbnail-renderer",function(){if(aB6!==void 0)return aB6;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return aB6=f},{mode:1});var yM6;var Z3=function(){return _.I.apply(this,arguments)||this};
_.q(Z3,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Z3.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Z3.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Number)],Z3.prototype,"width",void 0);_.N([_.C({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],Z3);
_.p(Z3,"ytd-playlist-video-thumbnail-renderer",function(){if(yM6!==void 0)return yM6;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return yM6=f},{mode:1});var Wf6;var tg=function(){return _.I.apply(this,arguments)||this};
_.q(tg,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],tg.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],tg.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Number)],tg.prototype,"width",void 0);_.N([_.C({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],tg);
_.p(tg,"ytd-show-custom-thumbnail-renderer",function(){if(Wf6!==void 0)return Wf6;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Wf6=f},{mode:1});var cMv;var ur=function(){return _.I.apply(this,arguments)||this};
_.q(ur,_.I);ur.prototype.useFilledIcons=function(f){return f==="MUSIC"||f==="COURSE"};
ur.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=No(this.overlayColor,"0.8");else if(this.overlayColor){var f=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+f.red+","+f.green+","+f.blue+",0.8)"}};
_.y3.Object.defineProperties(ur.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)}}});
ur.prototype.overlayColorChanged=ur.prototype.overlayColorChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],ur.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],ur.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],ur.prototype,"overlayColor",void 0);_.N([_.n({reflectToAttribute:!0}),_.k("data.icon","data.text"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ur.prototype,"overlayStyle",null);
_.N([_.n({reflectToAttribute:!0}),_.k("data.icon","data.text"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ur.prototype,"overlayTextStyle",null);_.N([_.JO("overlayColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ur.prototype,"overlayColorChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],ur);
_.p(ur,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(cMv!==void 0)return cMv;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return cMv=f},{mode:1});var lBN;var a_=function(){var f=_.I.apply(this,arguments)||this;f.active=!1;return f};
_.q(a_,_.I);a_.prototype.computeIsSpinnerHidden=function(f){return(f==null?void 0:f.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
a_.prototype.computeOverlayIcon=function(f){return(f==null?void 0:f.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(f==null?void 0:f.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],a_.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],a_.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],a_.prototype,"active",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],a_);
_.p(a_,"ytd-thumbnail-overlay-downloading-renderer",function(){if(lBN!==void 0)return lBN;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return lBN=f},{mode:1});var fQL;var yK=function(){return _.I.apply(this,arguments)||this};
_.q(yK,_.I);_.y3.Object.defineProperties(yK.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],yK.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],yK.prototype,"data",void 0);_.N([_.k("data.text"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],yK.prototype,"text",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],yK);
_.p(yK,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(fQL!==void 0)return fQL;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return fQL=f},{mode:1});var oyL,S1j=function(){if(oyL!==void 0)return oyL;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return oyL=f};var W0=function(){return _.I.apply(this,arguments)||this};
_.q(W0,_.I);_.y3.Object.defineProperties(W0,{template:{configurable:!0,enumerable:!0,get:function(){return S1j()}}});
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],W0.prototype,"animateEqualizer",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],W0);_.RS()(W0,"ytd-thumbnail-overlay-equalizer",function(){return S1j()},{allowedProps:["animateEqualizer"],
mode:1});var BVm;var c0=function(){var f=_.I.apply(this,arguments)||this;f.nowPlayingBadge=_.K("web_now_playing_badge");f.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return f};
_.q(c0,_.I);c0.prototype.activeChanged=function(){var f=this;_.K("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.ui(this,function(){_.ew(f.hostElement,"yt-playlist-lockup-now-playing-active",f)})};
c0.prototype.onMiniplayerPlayStateChanged=function(f){var S,B=(S=_.H(_.Pn().currentEndpoint,_.t2))==null?void 0:S.videoId;this.isVideoPlaying=f&&(_.K("web_limit_now_playing_animation_killswitch")||this.videoId===B)};
c0.prototype.activeChanged=c0.prototype.activeChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],c0.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],c0.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],c0.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Boolean)],c0.prototype,"isVideoPlaying",void 0);_.N([_.n(),_.Z("design:type",String)],c0.prototype,"videoId",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],c0.prototype,"equalizerOnly",void 0);_.N([_.n(),_.Z("design:type",Boolean)],c0.prototype,"isActive",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],c0.prototype,"nowPlayingBadge",void 0);_.N([_.JO("isActive"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],c0.prototype,"activeChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],c0);
_.p(c0,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(BVm!==void 0)return BVm;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return BVm=f},{mode:1});var GIg;var lr=function(){return _.I.apply(this,arguments)||this};
_.q(lr,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],lr.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],lr.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],lr);
_.p(lr,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(GIg!==void 0)return GIg;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return GIg=f},{mode:_.X_("kevlar_poly_si_batch_j025")?1:2});var gyv;var ft=function(){return _.I.apply(this,arguments)||this};
_.q(ft,_.I);ft.prototype.onDurationChanged=function(){var f,S;_.m9(this.hostElement).querySelector("#progress").style.width=((S=(f=this.data)==null?void 0:f.percentDurationWatched)!=null?S:0)+"%"};
ft.prototype.onDurationChanged=ft.prototype.onDurationChanged;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],ft.prototype,"componentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],ft.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],ft.prototype,"isLive",void 0);_.N([_.JO("data.percentDurationWatched"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ft.prototype,"onDurationChanged",null);
_.N([_.C({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],ft);
_.p(ft,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(gyv!==void 0)return gyv;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return gyv=f},{mode:1});var eA7;var oA=function(){var f=_.I.apply(this,arguments)||this;f.bottomPanel=!1;f.richGridOverlay=!1;f.watchFeedOverlay=!1;f.isCompact=!1;return f};
_.q(oA,_.I);oA.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.y3.Object.defineProperties(oA.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var f,S;return((f=this.data)==null?void 0:(S=f.icon)==null?void 0:S.iconType)==="PLAY_ALL"&&_.K("kevlar_system_icons")}}});
oA.prototype.widthChanged=oA.prototype.widthChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],oA.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],oA.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Number)],oA.prototype,"width",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],oA.prototype,"bottomPanel",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],oA.prototype,"richGridOverlay",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],oA.prototype,"watchFeedOverlay",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],oA.prototype,"isCompact",void 0);_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],oA.prototype,"isIconFilled",null);_.N([_.JO("width","watchFeedOverlay"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],oA.prototype,"widthChanged",null);
_.N([_.C({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],oA);
_.p(oA,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(eA7!==void 0)return eA7;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return eA7=f},{mode:1});var bGg;var m47=["CLIP","SHORTS"],SL=function(){var f=_.I.apply(this,arguments)||this;f.animated=_.K("animated_live_badge_icon");f.hasIcon=!1;f.updateTimerIntervalId=0;f.timeSinceLive=0;return f};
_.q(SL,_.I);_.e=SL.prototype;_.e.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.e.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.e.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.e.hasIconOrText=function(){var f,S;return!!(((f=this.data)==null?0:f.icon)||((S=this.data)==null?0:S.text))};
_.e.initializeLiveBadgeTimer=function(){var f=this,S,B=(S=this.liveBadgeData)==null?void 0:S.startTimestampSec;if(B&&this.canShowLiveBadgeTimer()){var G;S=Number((G=this.liveBadgeData)==null?void 0:G.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(B);this.updateTimerIntervalId=_.zt(function(){f.canShowLiveBadgeTimer()?f.timeSinceLive++:(f.timeSinceLive=0,window.clearInterval(f.updateTimerIntervalId))},S)}else this.timeSinceLive=0};
_.e.canShowLiveBadgeTimer=function(){var f=Date.now(),S,B;return f<(Number((S=this.liveBadgeData)==null?void 0:S.endTimestampSec)-1)*1E3&&f>Number((B=this.liveBadgeData)==null?void 0:B.startTimestampSec)*1E3};
_.y3.Object.defineProperties(SL.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var f=this.data;var S=this.timeSinceLive;var B,G,g,b;a:{var z=f.style;if(z===void 0)z=16;else switch(z){case "LIVE":z=17;break a;default:z=16}}S={type:z,text:S?jR9({seconds:S}):_.ac(f.text),accessibilityText:(B=f.text)==null?void 0:(G=B.accessibility)==null?void 0:(g=G.accessibilityData)==null?void 0:g.label,icon:(b=f.icon)==null?void 0:b.iconType}}else S={};return S}},
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 f;return(f=this.data)==null?void 0:f.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 m47.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
SL.prototype.initializeLiveBadgeTimer=SL.prototype.initializeLiveBadgeTimer;SL.prototype.dataChanged=SL.prototype.dataChanged;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],SL.prototype,"componentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],SL.prototype,"data",void 0);_.N([_.n({computed:"computeIcon_(data.icon)"}),_.Z("design:type",String)],SL.prototype,"icon",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],SL.prototype,"animated",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.Z("design:type",Boolean)],SL.prototype,"hideTimeStatus",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],SL.prototype,"hasIcon",void 0);_.N([_.n(),_.Z("design:type",Object)],SL.prototype,"timeSinceLive",void 0);_.N([_.k("data","timeSinceLive"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],SL.prototype,"badgeShapeData",null);
_.N([_.k("data","overlayType"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],SL.prototype,"hideBadgeShape",null);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],SL.prototype,"dataChanged",null);_.N([_.n({reflectToAttribute:!0}),_.k("data.style"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],SL.prototype,"overlayStyle",null);
_.N([_.k("data.liveBadgeData"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],SL.prototype,"liveBadgeData",null);_.N([_.n({reflectToAttribute:!0}),_.k("data.type"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],SL.prototype,"overlayType",null);_.N([_.k("overlayType","overlayStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],SL.prototype,"useFilledIcon",null);
_.N([_.HF("liveBadgeData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],SL.prototype,"initializeLiveBadgeTimer",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],SL);
_.p(SL,"ytd-thumbnail-overlay-time-status-renderer",function(){if(bGg!==void 0)return bGg;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return bGg=f},{mode:_.X_("kevlar_poly_si_batch_j035")?1:2});var zAX;var Bx=function(){return _.I.apply(this,arguments)||this};
_.q(Bx,_.I);Bx.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"}}}}};
Bx.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(f){if(this.hasPlaybackProgressBar)return{percentDurationWatched:f.percentDurationWatched}};
Bx.prototype.computeHasPlaybackProgressBar=function(f){return!!f.percentDurationWatched&&f.percentDurationWatched>0};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Bx.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Bx.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Bx.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.Z("design:type",Boolean)],Bx.prototype,"hasPlaybackProgressBar",void 0);
_.N([_.C({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],Bx);
_.p(Bx,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(zAX!==void 0)return zAX;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return zAX=f},{mode:1});var RA6;var XpL=_.oS(function(f){var S=f.data;var B=f.children;var G=function(){return!!S().doubleStack};
return _.T("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!S().experimentEnabled}},_.T(_.v,{cond:S,
then:function(){return _.T("div",null,_.T(_.v,{cond:G,then:function(){var g={};return _.T("div",{class:_.Pw("collections-stack-wiz__collection-stack2",function(){return S().customClassName2ndStack},(g["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return S().enableResponsiveMode},g)),
style:_.Qj({"background-color":function(){return ppx(S())}})})}}),_.T("div",{class:_.Pw("collections-stack-wiz__collection-stack1",function(){return S().customClassName1stStack},function(){return C$V(S().thumbnailSize?S().thumbnailSize:"medium")}),
style:_.Qj({"background-color":function(){return ppx(S())}})}),B)}}))},"P");_.eq(XpL,"yt-collections-stack",{props:{data:_.W4}});var G0=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};f.webModernCollections=!1;f.isSearch=!1;f.isDoubleStack=!1;f.thumbnailSize="medium";f.enableWebModernCollectionsV2=_.K("web_modern_collections_v2");return f};
_.q(G0,_.I);_.e=G0.prototype;
_.e.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]]"}}}}}};
_.e.getThumbnailDetails=function(f){if(f!=null&&f.thumbnailRenderer){var S=f.thumbnailRenderer,B;if((B=S.playlistVideoThumbnailRenderer)==null?0:B.thumbnail)return S.playlistVideoThumbnailRenderer.thumbnail;var G;if((G=S.playlistCustomThumbnailRenderer)==null?0:G.thumbnail)return S.playlistCustomThumbnailRenderer.thumbnail;f=f.thumbnailRenderer;var g;if((g=f.showCustomThumbnailRenderer)==null?0:g.thumbnail)return f.showCustomThumbnailRenderer.thumbnail}};
_.e.computeOverlayColor=function(f){var S,B;if((S=this.getThumbnailDetails(f))==null?0:(B=S.darkColorPalette)==null?0:B.section2Color)return this.getThumbnailDetails(f).darkColorPalette.section2Color;var G;return(G=this.getThumbnailDetails(f))==null?void 0:G.sampledThumbnailColor};
_.e.computeWebModernCollections=function(f){if(f==null||!f.thumbnailOverlays)return!1;f=_.m(f.thumbnailOverlays);for(var S=f.next();!S.done;S=f.next()){var B=void 0;if((B=S.value)==null?0:B.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.e.computeNavigationEndpoint=function(f){return n9V(f==null?void 0:f.navigationEndpoint)};
_.y3.Object.defineProperties(G0.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var f=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:f==null?void 0:f.sampledThumbnailColor,vibrantColorPalette:f==null?void 0:f.vibrantColorPalette,darkColorPalette:f==null?void 0:f.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],G0.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],G0.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(vOX),_.Z("design:type",Object)],G0.prototype,"ytdThumbnailBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],G0.prototype,"componentBehavior",void 0);
_.N([_.n({value:!1}),_.Z("design:type",Boolean)],G0.prototype,"watchFeedThumbnail",void 0);_.N([_.n(),_.Z("design:type",Number)],G0.prototype,"customThumbnailSize",void 0);_.N([_.n({value:!0}),_.Z("design:type",Boolean)],G0.prototype,"hideAria",void 0);_.N([_.n(),_.Z("design:type",Object)],G0.prototype,"data",void 0);_.N([_.n({computed:"computeOverlayColor(data)"}),_.Z("design:type",Object)],G0.prototype,"overlayColor",void 0);
_.N([_.n({computed:"computeWebModernCollections(data)"}),_.Z("design:type",Object)],G0.prototype,"webModernCollections",void 0);_.N([_.n({computed:"computeNavigationEndpoint(data)"}),_.Z("design:type",Object)],G0.prototype,"computedNavigationEndpoint",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],G0.prototype,"isSearch",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],G0.prototype,"isDoubleStack",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",String)],G0.prototype,"thumbnailSize",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],G0.prototype,"enableWebModernCollectionsV2",void 0);_.N([_.k("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],G0.prototype,"collectionStack",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],G0);
_.p(G0,"ytd-playlist-thumbnail",function(){if(RA6!==void 0)return RA6;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return RA6=f},{mode:_.X_("kevlar_poly_si_batch_j025")?1:2});var wpv;var gn=function(){var f=_.I.apply(this,arguments)||this;f.noEndpoints=!1;f.amsterdamPostMvp=_.K("web_amsterdam_post_mvp_playlists");f.badges=[];f.transferState="TRANSFER_STATE_UNKNOWN";return f};
_.q(gn,_.I);_.e=gn.prototype;_.e.getMetadata=function(f){if(!f)return[];var S=[],B=f.shortViewCountText||f.viewCountText;B&&S.push(_.ac(B));f.publishedTimeText&&S.push(_.ac(f.publishedTimeText));f.upcomingEventData&&f.upcomingEventData.upcomingEventText&&S.push(_.UR(_.ac(f.upcomingEventData.upcomingEventText),Number(f.upcomingEventData.startTime)));return S};
_.e.observeDataForBylineSeparator=function(){this.data&&_.Rl(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.e.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.pn(this.metadataColor)};
_.e.getSimpleString=function(f){return _.ac(f)};
_.e.isBylineHidden=function(f){return this.noByline||!((f==null?0:f.longBylineText)||(f==null?0:f.shortBylineText))};
_.e.isMetadataHidden=function(f){var S;return((S=this.getMetadata(f))==null?void 0:S.length)===0};
_.e.isBylineMetadataSeparatorHidden=function(f){return this.isMetadataHidden(f)||!this.shouldShowVideoInfo};
_.e.isLongByline=function(f,S){return S&&!(f==null||!f.longBylineText)};
_.y3.Object.defineProperties(gn.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var f;return this.amsterdamPostMvp&&!((f=this.data)==null||!f.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 _.K("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
gn.prototype.metadataColorChanged=gn.prototype.metadataColorChanged;gn.prototype.observeDataForBylineSeparator=gn.prototype.observeDataForBylineSeparator;_.N([_.r(_.Ek),_.Z("design:type",Object)],gn.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],gn.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],gn.prototype,"noEndpoints",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],gn.prototype,"isSlimShort",void 0);
_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],gn.prototype,"radioMeta",void 0);_.N([_.n({selector:_.AD}),_.Z("design:type",Object)],gn.prototype,"isGridViewEnabled",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],gn.prototype,"richMeta",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],gn.prototype,"amsterdamPostMvp",void 0);_.N([_.n(),_.Z("design:type",Boolean)],gn.prototype,"noByline",void 0);
_.N([_.n({computed:"isLongByline(data, radioMeta)"}),_.Z("design:type",Boolean)],gn.prototype,"longByline",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],gn.prototype,"truncateMetadataLine",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],gn.prototype,"miniMode",void 0);_.N([_.n(),_.Z("design:type",Number)],gn.prototype,"metadataColor",void 0);_.N([_.n(),_.Z("design:type",Array)],gn.prototype,"badges",void 0);
_.N([_.n({selector:_.sA,selectorArgs:["data.videoId"]}),_.Z("design:type",String)],gn.prototype,"transferState",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],gn.prototype,"isDownloading",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],gn.prototype,"typographyBump",void 0);_.N([_.vF("#metadata-line"),_.Z("design:type",HTMLElement)],gn.prototype,"metadataLine",void 0);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],gn.prototype,"observeDataForBylineSeparator",null);_.N([_.JO("metadataColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],gn.prototype,"metadataColorChanged",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],gn.prototype,"shouldShowVideoInfo",null);
_.N([_.k("badges"),_.Z("design:type",String),_.Z("design:paramtypes",[])],gn.prototype,"inlineBadgeClass",null);_.N([_.k("longByline"),_.Z("design:type",String),_.Z("design:paramtypes",[])],gn.prototype,"longBylineClass",null);_.N([_.k("data","longByline"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],gn.prototype,"bylineText",null);_.N([_.k("isGridViewEnabled","data"),_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],gn.prototype,"watchFeedBigThumbs",null);
_.N([_.C({is:"ytd-video-meta-block",disableElementRegistration:!0})],gn);
_.p(gn,"ytd-video-meta-block",function(){if(wpv!==void 0)return wpv;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return wpv=f},{mode:_.X_("kevlar_poly_si_batch_j080")?1:2});_.Dd("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var eL=function(){var f=_.I.apply(this,arguments)||this;f.displayItemCount=2;f.isBackstagePlaylist=!1;f.isPostCompactPlaylist=!1;f.shouldShowChannelThumbnail=!1;f.useModernCollectionsV2=_.K("web_modern_collections_v2");return f};
_.q(eL,_.I);_.e=eL.prototype;_.e.computeFirstVideos=function(f,S){return f===void 0||S===void 0?[]:f.slice(0,S)};
_.e.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var f=this.data.thumbnailRenderer;f.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",f.playlistVideoThumbnailRenderer.thumbnail);f.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",f.playlistCustomThumbnailRenderer.thumbnail)}};
_.e.computeThumbnailHeight=function(f,S,B,G,g){return G?g==="BIG"?280:g==="MASSIVE"?337:234:B?240:S?72:f?118:138};
_.e.computeThumbnailWidth=function(f,S,B,G,g){return G?g==="MEDIUM"?450:g==="BIG"?500:g==="MASSIVE"?600:420:B?360:S?128:f?210:246};
_.e.computeUseBiggerThumbs=function(f){return f&&_.K("enable_desktop_search_bigger_thumbs")};
_.e.computeShouldShowChannelThumbnail=function(f,S){return f&&!(S==null||!S.channelThumbnail)};
_.y3.Object.defineProperties(eL.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
eL.prototype.dataChanged=eL.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],eL.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.pR),_.Z("design:type",Object)],eL.prototype,"ytdLockupBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],eL.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],eL.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],eL.prototype,"displayItemCount",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],eL.prototype,"isBackstagePlaylist",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],eL.prototype,"isPostCompactPlaylist",void 0);_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],eL.prototype,"isSearch",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.Z("design:type",Boolean)],eL.prototype,"useBiggerThumbs",void 0);_.N([_.n({reflectToAttribute:!0,value:function(){return _.gO("desktop_search_bigger_thumbs_style")}}),
_.Z("design:type",String)],eL.prototype,"biggerThumbsStyle",void 0);_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],eL.prototype,"isDownloads",void 0);_.N([_.n({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.Z("design:type",Object)],eL.prototype,"shouldShowChannelThumbnail",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],eL.prototype,"useModernCollectionsV2",void 0);
_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],eL.prototype,"dataChanged",null);_.N([_.k("isSearch"),_.Z("design:type",String),_.Z("design:paramtypes",[])],eL.prototype,"stackThumbnailSize",null);_.N([_.C({is:"ytd-playlist-renderer",disableElementRegistration:!0})],eL);
_.p(eL,"ytd-playlist-renderer",function(){if(ui$===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);ui$=f}f=ui$;return f},{mode:1});var hAN;var TVL;var bQ=function(){var f=_.I.apply(this,arguments)||this;f.collections=!!_.K("web_modern_collections_v2");f.startX=0;return f};
_.q(bQ,_.I);bQ.prototype.onEndpointMouseDown=function(f){this.startX=f.clientX};
bQ.prototype.onEndpointClick=function(f){this.startX!==f.clientX&&(f.preventDefault(),f.stopPropagation())};
bQ.prototype.computeObjectFit=function(f){return f==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||f==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||f==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
bQ.prototype.computeCardStyle=function(f){return f?f.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.y3.Object.defineProperties(bQ.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var f,S;return this.collections&&((f=this.data)==null?void 0:(S=f.searchRefinementCardRendererStyle)==null?void 0:S.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}}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],bQ.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],bQ.prototype,"data",void 0);_.N([_.n({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.Z("design:type",Number)],bQ.prototype,"objectFit",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.Z("design:type",String)],bQ.prototype,"cardStyle",void 0);
_.N([_.n({reflectToAttribute:!0,value:!0}),_.Z("design:type",Boolean)],bQ.prototype,"roundContainer",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],bQ.prototype,"collections",void 0);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],bQ.prototype,"isAlbumCard",null);_.N([_.k("data","collections","isAlbumCard"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],bQ.prototype,"collectionStack",null);
_.N([_.C({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],bQ);
_.p(bQ,"ytd-search-refinement-card-renderer",function(){if(TVL!==void 0)return TVL;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return TVL=f},{mode:1});var F27;var mY=function(){var f=_.I.apply(this,arguments)||this;f.isRichGrid=!1;return f};
_.q(mY,_.I);_.N([_.n(),_.Z("design:type",Object)],mY.prototype,"data",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],mY.prototype,"componentBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],mY.prototype,"ytdReduxBehavior",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],mY.prototype,"isRichGrid",void 0);_.N([_.n({reflectToAttribute:!0,selector:_.xr}),_.Z("design:type",Boolean)],mY.prototype,"miniMode",void 0);
_.N([_.C({is:"ytd-game-details-renderer",disableElementRegistration:!0})],mY);
_.p(mY,"ytd-game-details-renderer",function(){if(F27!==void 0)return F27;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return F27=f},{mode:1});var V86;var JGm;var z0=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return f};
_.q(z0,_.I);_.e=z0.prototype;_.e.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.e.currentStateData=function(f){var S=f||this.data;return S&&S.states&&S.currentStateId!=null?S.states.find(function(B){return B.stateId===S.currentStateId})||null:null};
_.e.currentStateRendererData=function(f){return(f=this.currentStateData(f))&&f.state&&f.state.buttonRenderer?f.state.buttonRenderer:null};
_.e.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())};
_.e.computeButtonIcon=function(f){f=this.currentStateRendererData(f);var S;return(f==null?0:(S=f.icon)==null?0:S.iconType)?f.icon.iconType.toLowerCase():null};
_.e.computeAccessibility=function(f){return(f=this.currentStateRendererData(f))&&f.accessibilityData?f.accessibilityData.accessibilityData||null:null};
_.e.computeButtonClass=function(f){var S=this.currentStateRendererData(f);if(!S)return"";f="";var B=S.style;B&&(f+=B.toLowerCase().replace(/_/g,"-")+" ");(S=S.size)&&(f+=S.toLowerCase().replace(/_/g,"-")+" ");return f.trim()};
_.e.computeServiceEndpoint=function(f){if(!f)return null;var S=f&&f.serviceEndpoint,B=this.get("command.commandMetadata.webCommandMetadata.sendPost",f);return S?S:B&&f.command?f.command:null};
_.e.computeBellMenuItemParams=function(f){var S;f=(S=_.H(f==null?void 0:f.command,_.hf))==null?void 0:S.commands;if(!f||f.length===0)return null;S=_.H(f[0],_.jR);var B,G;return(S==null?0:(B=S.popup)==null?0:(G=B.menuPopupRenderer)==null?0:G.items)?S.popup.menuPopupRenderer.items.map(function(g){return g.menuServiceItemRenderer.trackingParams}):null};
_.e.handleBellMenuOpenSelectedAction=function(f){var S=f.trackingParams,B=this.computeBellMenuItemParams(this.data);this.data&&S&&B&&B.includes(S)&&this.ytRenderButtonBehavior._setButtonIcon(f.icon.iconType.toLowerCase())};
_.e.onYtServiceRequestCompleted=function(f,S){(f=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",S))&&this.set("data",f)};
_.e.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.e.resetState=function(){this.set("data.currentStateId",3)};
_.e.onYtButtonTapHandler=function(){if(this.data){var f=this.currentStateRendererData(this.data);f&&this.ytRendererBehavior.logExplicitClick(f)}};
z0.prototype.onYtServiceRequestError=z0.prototype.onYtServiceRequestError;z0.prototype.onYtServiceRequestCompleted=z0.prototype.onYtServiceRequestCompleted;z0.prototype.stateChanged=z0.prototype.stateChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],z0.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],z0.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.r(i3.YtRenderButtonBehavior),_.Z("design:type",Object)],z0.prototype,"ytRenderButtonBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],z0.prototype,"data",void 0);_.N([_.HF("data","data.currentStateId"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],z0.prototype,"stateChanged",null);
_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.cw]),_.Z("design:returntype")],z0.prototype,"onYtServiceRequestCompleted",null);_.N([_.Vg("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],z0.prototype,"onYtServiceRequestError",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],z0);
_.p(z0,"ytd-subscription-notification-toggle-button-renderer",function(){if(JGm!==void 0)return JGm;var f=document.createElement("template");_.Y(f,"\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");f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return JGm=f},{mode:1});var P$g;var RA=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};f.tapHandler=function(){if(f.data){var S=f.currentStateRendererData();S&&f.ytRendererBehavior.logExplicitClick(S)}};
return f};
_.q(RA,_.I);_.e=RA.prototype;_.e.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.e.currentStateData=function(){var f=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(S){return S.stateId===f.data.currentStateId})||null:null};
_.e.currentStateRendererData=function(){var f=this.currentStateData();return f&&f.state&&f.state.buttonRenderer?f.state.buttonRenderer:null};
_.e.computeAccessibilityLabel=function(){var f,S,B;return(f=this.currentStateRendererData())==null?void 0:(S=f.accessibilityData)==null?void 0:(B=S.accessibilityData)==null?void 0:B.label};
_.e.computeBellMenuItemParams=function(){var f,S,B=(S=_.H((f=this.data)==null?void 0:f.command,_.hf))==null?void 0:S.commands;if(!B||B.length===0)return null;f=_.H(B[0],_.jR);var G,g;return(f==null?0:(G=f.popup)==null?0:(g=G.menuPopupRenderer)==null?0:g.items)?f.popup.menuPopupRenderer.items.map(function(b){return b.menuServiceItemRenderer.trackingParams}):null};
_.e.handleBellMenuOpenSelectedAction=function(f){var S=f.trackingParams,B=this.computeBellMenuItemParams();if(this.data&&S&&B&&B.includes(S)&&(f==null||!f.isDisabled)){var G;((G=_.H(f.serviceEndpoint,_.Fh))==null?void 0:G.signal)!=="CLIENT_SIGNAL"&&(this.icon=f.icon.iconType)}};
_.e.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.e.onYtServiceRequestCompleted=function(f,S){if(f=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",S))this.icon=void 0,this.set("data",f)};
_.e.onYtServiceRequestError=function(){this.icon=void 0};
_.y3.Object.defineProperties(RA.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var f=this.data,S=this.textLabel,B=this.hostElement,G=this.computeAccessibilityLabel(),g=this.tapHandler,b=this.isOverlay?"overlay":"mono",z=(f==null?0:f.disableButton)?"disabled":"active";S=S?_.sn(S):void 0;return{style:b,type:"tonal",state:z,size:"M",focused:!1,formattedButtonText:S,iconPosition:"leading-trailing",onTap:M8V(f,g,B),accessibilityLabel:G}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var f=this.currentStateRendererData(),S,B,G=(B=this.icon)!=null?B:f==null?void 0:(S=f.icon)==null?void 0:S.iconType;if(G)return _.F_(G)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var f,S,B=(f=this.data)==null?void 0:(S=f.secondaryIcon)==null?void 0:S.iconType;if(B)return _.F_(B)}}});
RA.prototype.onYtServiceRequestError=RA.prototype.onYtServiceRequestError;RA.prototype.onYtServiceRequestCompleted=RA.prototype.onYtServiceRequestCompleted;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],RA.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],RA.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],RA.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],RA.prototype,"textLabel",void 0);
_.N([_.n(),_.Z("design:type",String)],RA.prototype,"icon",void 0);_.N([_.n(),_.Z("design:type",Boolean)],RA.prototype,"isOverlay",void 0);_.N([_.k("data.*","textLabel"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],RA.prototype,"computedButtonShape",null);_.N([_.k("data.*","icon"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],RA.prototype,"computedIcon",null);_.N([_.k("data.*"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],RA.prototype,"computedSecondaryIcon",null);
_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.cw]),_.Z("design:returntype")],RA.prototype,"onYtServiceRequestCompleted",null);_.N([_.Vg("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],RA.prototype,"onYtServiceRequestError",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],RA);
_.p(RA,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(P$g!==void 0)return P$g;var f=document.createElement("template");_.Y(f,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return P$g=f},{mode:_.X_("kevlar_poly_si_batch_j081")?1:2});var vyj;_.eq(Vlm,"yt-animated-action",{props:{backgroundLottieRef:_.W4,foregroundLottieRef:_.W4,wrapperClass:_.W4,disableAnimation:_.W4},unsafeExternallySettableAttributes:new Set(["key"])});var Xt=function(){var f=_.I.apply(this,arguments)||this;f.animatedActionEnabled=_.K("web_animated_actions");f.foregroundLottieRef={};f.backgroundLottieRef={};f.forceIconOnly=!1;f.showTextWhileAnimating=!1;f.keyboardFocused=!1;f.isAnimating=!1;f.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return f};
_.q(Xt,_.I);_.e=Xt.prototype;_.e.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.e.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]]"}}}}}};
_.e.attached=function(){this.keyboardFocused=!1};
_.e.onYtServiceRequestSent=function(f,S){(this.get("endpoint.subscribeEndpoint",S)||this.get("endpoint.unsubscribeEndpoint",S))&&this.updateSubscriptionState(!this.subscribed)};
_.e.onYtServiceRequestCompleted=function(f,S){(f=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",S.data))&&this.bellButton&&(this.bellButton.data=f)};
_.e.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.hO(this.hostElement)};
_.e.onPlayerSubscribe=function(f){this.isCompactRed()||f!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.e.onPlayerUnsubscribe=function(f){this.isCompactRed()||f!==this.data.channelId||this.updateSubscriptionState(!1)};
_.e.handleUpdateSubscribeButtonAction=function(f){f=_.H(f,Chv);var S;f&&f.channelId===((S=this.data)==null?void 0:S.channelId)&&this.updateSubscriptionState(!!f.subscribed)};
_.e.computeButtonStyle=function(f){return this.get("style.styleType",f)||null};
_.e.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.e.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.e.updateSubscriptionState=function(f){if(f!==this.subscribed){this.set("data.subscribed",f);var S,B=(S=this.data)==null?void 0:S.subscribedEntityKey;B&&this.ytdReduxBehavior.dispatch(_.KF("subscriptionStateEntity",B,{key:B,subscribed:f}));this.isCompactRed()||_.ew(this.hostElement,"yt-subscription-changed",f);f||(_.bW(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!f),f&&this.hasBellButton&&this.startAnimation())}};
_.e.startAnimation=function(){var f=this;if(!this.isAnimating){var S=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var B;(B=this.backgroundLottieRef.lottieEl)==null||B.goToAndPlay(0);var G;(G=this.foregroundLottieRef.lottieEl)==null||G.goToAndPlay(0);_.xJ.addJob(function(){f.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.xJ.addJob(function(){f.updateContainerToFitContent(!!f.subscribed,!0)},2,1500);
_.xJ.addJob(function(){f.isAnimating=!1},2,S)}};
_.e.maybeAnimateBellIcon=function(){var f=_.zY(this.hostElement).querySelector("yt-animated-icon");if(f){var S;(S=f.animationRef.lottieEl)==null||S.goToAndPlay(0)}};
_.e.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.e.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.e.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var f;this.unsubscribedWidth=(f=this.subscribeButtonShape)==null?void 0:f.getBoundingClientRect().width}var S;this.subscribedWidth=(S=this.bellButton)==null?void 0:S.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.e.updateContainerToFitContent=function(f,S){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(f?(f=this.subscribedWidth,S=this.isAnimating&&!S,this.subscribedIconOnlyWidth===void 0||S||(f=this.subscribedIconOnlyWidth),this.hostElement.style.width=f+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.e.clearContainerSize=function(){this.hostElement.style.width=""};
_.e.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.e.maybeSetSubscribedButtonIconOnlyWidth=function(){var f=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 S;f.subscribedIconOnlyWidth=(S=f.bellButton)==null?void 0:S.getBoundingClientRect().width;requestAnimationFrame(function(){if(f.bellButton){var B;f.bellButton.textLabel=
(B=f.data)==null?void 0:B.subscribedButtonText}})})))};
_.y3.Object.defineProperties(Xt.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 f;return(f=this.data)==null?void 0:f.subscribedButtonText}var S;return this.forceIconOnly?void 0:(S=this.data)==null?void 0:S.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var f,S,B=((f=this.data)==null?void 0:(S=f.timedAnimationData)==null?void 0:S.animationTiming)||[];return{uniqueId:"subscribe",timings:B,enabled:B.length>0&&!this.subscribed,experimentEnabled:B.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var f;return!this.subscribed&&((f=this.data)==null?void 0:f.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 f={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var S=f.renderer;var B=f.element;var G=f.subscribed;var g=f.commandController;var b=f.isOverlay;f=f.stopPropagation;var z=aQx(S,G);b&&(z.style="overlay");b=Object;var X=b.assign,w;a:switch((w=S.style)==null?void 0:w.styleType){case "COMPACT_GRAY":case "COMPACT_RED":w={size:"S"};break a;default:w={size:"M"}}var F=uZj(S,
G);var V=(V=G?S.subscribedButtonText:S.unsubscribedButtonText)?_.sn(V):void 0;return X.call(b,{},z,w,{focused:!1,toggled:G,accessibilityLabel:F,formattedButtonText:V,onTap:t8G(S,G,B,g,f)})}}}});
Xt.prototype.onMouseDown=Xt.prototype.onMouseDown;Xt.prototype.onDataChanged=Xt.prototype.onDataChanged;Xt.prototype.observedSubscribed=Xt.prototype.observedSubscribed;Xt.prototype.onYtServiceRequestCompleted=Xt.prototype.onYtServiceRequestCompleted;Xt.prototype.onYtServiceRequestSent=Xt.prototype.onYtServiceRequestSent;Xt.prototype.maybeUpdateBellButtonText=Xt.prototype.maybeUpdateBellButtonText;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Xt.prototype,"ytComponentBehavior",void 0);
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Xt.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Xt.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],Xt.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],Xt.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Xt.prototype,"data",void 0);
_.N([_.n({selectorArgs:["data.subscribedEntityKey"],selector:FL1}),_.Z("design:type",Object)],Xt.prototype,"subscriptionStateEntity",void 0);_.N([_.n({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],Xt.prototype,"subscribed",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Xt.prototype,"branded",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Xt.prototype,"animatedActionEnabled",void 0);
_.N([_.n(),_.Z("design:type",Object)],Xt.prototype,"foregroundLottieRef",void 0);_.N([_.n(),_.Z("design:type",Object)],Xt.prototype,"backgroundLottieRef",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Xt.prototype,"overlayButton",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.Z("design:type",Object)],Xt.prototype,"buttonStyle",void 0);_.N([_.n(),_.Z("design:type",Object)],Xt.prototype,"forceIconOnly",void 0);
_.N([_.n(),_.Z("design:type",Object)],Xt.prototype,"showTextWhileAnimating",void 0);_.N([_.n({value:function(){return!!_.oy().resolve(_.fN(_.R5))&&_.K("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.Z("design:type",Boolean)],Xt.prototype,"useKeyboardFocused",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Xt.prototype,"keyboardFocused",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Xt.prototype,"isAnimating",void 0);_.N([_.k("data.notificationPreferenceButton.*"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Xt.prototype,"hasBellButton",null);
_.N([_.JO("subscribedButtonText"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Xt.prototype,"maybeUpdateBellButtonText",null);_.N([_.k("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Xt.prototype,"subscribedButtonText",null);_.N([_.k("data.timedAnimationData.animationTiming","subscribed"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Xt.prototype,"smartimationSettings",null);
_.N([_.n({reflectToAttribute:!0}),_.k("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Xt.prototype,"subscribeButtonHidden",null);_.N([_.n({reflectToAttribute:!0}),_.k("subscribed","hasBellButton"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Xt.prototype,"subscribeButtonInvisible",null);
_.N([_.n({reflectToAttribute:!0}),_.k("subscribed"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Xt.prototype,"unsubscribeButtonHidden",null);_.N([_.vF("ytd-subscription-notification-toggle-button-renderer-next"),_.Z("design:type",Object)],Xt.prototype,"bellButton",void 0);_.N([_.vF("#subscribe-button-shape"),_.Z("design:type",HTMLElement)],Xt.prototype,"subscribeButtonShape",void 0);
_.N([_.k("overlayButton","subscribed","data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Xt.prototype,"buttonShape",null);_.N([_.Vg("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.N1]),_.Z("design:returntype")],Xt.prototype,"onYtServiceRequestSent",null);_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.cw]),_.Z("design:returntype")],Xt.prototype,"onYtServiceRequestCompleted",null);
_.N([_.JO("subscribed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Xt.prototype,"observedSubscribed",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Xt.prototype,"onDataChanged",null);_.N([_.Vg("mousedown"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Xt.prototype,"onMouseDown",null);
_.N([_.C({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],Xt);
_.p(Xt,"ytd-subscribe-button-renderer",function(){if(vyj!==void 0)return vyj;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return vyj=f},{mode:1});var wn=function(){var f=_.I.apply(this,arguments)||this;f.isRichGrid=!1;return f};
_.q(wn,_.I);wn.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"}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],wn.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],wn.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],wn.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],wn.prototype,"isRichGrid",void 0);_.N([_.C({is:"ytd-game-card-renderer",disableElementRegistration:!0})],wn);
_.p(wn,"ytd-game-card-renderer",function(){if(V86!==void 0)return V86;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return V86=f},{mode:1});var hH={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.K("defer_menus")&&!eR7?0:void 0,waitForSignal:"eocs"};var K2m;var d4L;var T0=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return f};
_.q(T0,_.I);_.e=T0.prototype;_.e.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.e.onSeriesReminderStateEntityChange=function(){var f,S,B;((f=this.eventReminderStateEntity)==null?0:f.key)&&((S=this.seriesReminderStateEntity)==null?void 0:S.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((B=this.eventReminderStateEntity)==null?void 0:B.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.KF("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.e.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.e.onYtServiceRequestError=function(){var f;this.updateReminderStateEntitiesFromButtonState((f=this.data)==null?void 0:f.currentState)};
_.e.handleUpdateUpcomingEventReminderButtonStateCommand=function(f){if(f=_.H(f,G98)){var S,B=(S=this.data)==null?void 0:S.targetId;B&&f.targetId===B&&_.AO(this.updateReminderStateEntitiesFromButtonState.bind(this,f.state))}};
_.e.getButtonStateFromReminderState=function(){var f;if(((f=this.seriesReminderStateEntity)==null?void 0:f.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var S;if(((S=this.eventReminderStateEntity)==null?void 0:S.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var B,G;if(((B=this.seriesReminderStateEntity)==null?void 0:B.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((G=this.eventReminderStateEntity)==
null?void 0:G.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var g;return(g=this.data)==null?void 0:g.currentState};
_.e.updateReminderStateEntitiesFromButtonState=function(f){if(f){switch(f){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":f="UPCOMING_EVENT_REMINDER_STATE_NONE";var S="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":f="UPCOMING_EVENT_REMINDER_STATE_SINGLE";S="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":f="UPCOMING_EVENT_REMINDER_STATE_NONE";S="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var B;
((B=this.eventReminderStateEntity)==null?0:B.key)&&this.ytdReduxBehavior.dispatch(_.KF("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:f})));var G;((G=this.seriesReminderStateEntity)==null?0:G.key)&&this.ytdReduxBehavior.dispatch(_.KF("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:S})))}};
_.y3.Object.defineProperties(T0.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var f=this.getButtonStateFromReminderState(),S,B;if(f&&((S=this.data)==null?0:(B=S.states)==null?0:B.length))for(S=_.m(this.data.states),B=S.next();!B.done;B=S.next()){B=B.value;var G=void 0;if(((G=_.H(B,gf7))==null?void 0:G.state)===f)return _.H(B,gf7)}}}});
T0.prototype.onYtServiceRequestError=T0.prototype.onYtServiceRequestError;T0.prototype.onYtServiceRequestCompleted=T0.prototype.onYtServiceRequestCompleted;T0.prototype.onSeriesReminderStateEntityChange=T0.prototype.onSeriesReminderStateEntityChange;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],T0.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],T0.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],T0.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],T0.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],T0.prototype,"data",void 0);_.N([_.n({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:JuK}),_.Z("design:type",Object)],T0.prototype,"eventReminderStateEntity",void 0);
_.N([_.n({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(f,S){return _.w9(f.entities,"sportsSeriesReminderStateEntity",S)}}),
_.Z("design:type",Object)],T0.prototype,"seriesReminderStateEntity",void 0);_.N([_.k("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],T0.prototype,"currentButtonStateRenderer",null);_.N([_.JO("seriesReminderStateEntity"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],T0.prototype,"onSeriesReminderStateEntityChange",null);
_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],T0.prototype,"onYtServiceRequestCompleted",null);_.N([_.Vg("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],T0.prototype,"onYtServiceRequestError",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],T0);
_.p(T0,"ytd-upcoming-event-reminder-button-renderer",function(){if(d4L!==void 0)return d4L;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);
return d4L=f},{mode:1});var iG$;var Ft=function(){return _.I.apply(this,arguments)||this};
_.q(Ft,_.I);Ft.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.y3.Object.defineProperties(Ft.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(_.K("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Ft.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Ft.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Ft.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],Ft.prototype,"shelfDismissal",void 0);_.N([_.k("data.responseText"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ft.prototype,"text",null);
_.N([_.k("data.responseText"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ft.prototype,"textAriaLabel",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],Ft);
_.p(Ft,"ytd-notification-multi-action-renderer",function(){if(iG$!==void 0)return iG$;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return iG$=f},{mode:1});var HGi;var Va=function(){return _.I.apply(this,arguments)||this};
_.q(Va,_.I);Va.prototype.ready=function(){var f=this;_.m9(this.hostElement).querySelector("#undo").addEventListener("tap",function(){f.onUndoTap()})};
Va.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.oy().resolve(_.S7).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Va.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Va.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],Va);
_.p(Va,"ytd-notification-text-renderer",function(){if(HGi!==void 0)return HGi;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return HGi=f},{mode:1});var q1m;var JH=function(){var f=_.I.apply(this,arguments)||this;f.mouseOverDelayJobId=0;f.fadeInImageDelayJobId=0;f.startTimeMs=-1;f.loadingStartTimeMs=-1;f.loadingEndTimeMs=-1;f.hasVideoPreview=!1;return f};
_.q(JH,_.I);_.e=JH.prototype;_.e.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.e.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.e.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.e.showThumbnail=function(){var f=this;this.csn=_.xc();_.n2("fmth");_.xJ.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.Xd(_.xJ,function(){f.loadingStartTimeMs=(0,_.fO)();var S=_.m9(f.hostElement).querySelector("#thumbnail");S.complete?f.displayMouseOverImage():S.addEventListener("load",_.Fc(f,f.displayMouseOverImage))},150):_.Rl(_.m9(this.hostElement).querySelector("#play"),"show",!0)};
_.e.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.e.onTap=function(){this.removeVideoPreview()};
_.e.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var f=this.videoId,S=this.csn,B=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,G=this.startTimeMs,g=this.hasVideoPreview,b=_.Ye(this.trackingParams),z={isMovingThumbnail:g};g&&G>0&&(B>0&&(z.movingThumbnailLoadingDurationMs=Math.round(B)),z.durationHoveredMs=Math.round((0,_.fO)()-G));f&&(z.videoId=f);_.aD(S,b,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:z});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.e.removeVideoPreview=function(){_.xJ.cancelJob(this.mouseOverDelayJobId);_.xJ.cancelJob(this.fadeInImageDelayJobId);var f=_.m9(this.hostElement).querySelector("#thumbnail");_.Rl(f,"fade-in",!1);f.removeEventListener("load",_.Fc(this,this.displayMouseOverImage));f=_.m9(this.hostElement).querySelector("#play");_.Rl(f,"fade-in",!1);_.Rl(f,"show",!1)};
_.e.displayMouseOverImage=function(){var f=_.m9(this.hostElement).querySelector("#thumbnail"),S=_.m9(this.hostElement).querySelector("#play");this.isImageAvailable(f)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.fO)(),this.startTimeMs=(0,_.fO)(),this.fadeInImageDelayJobId=_.Xd(_.xJ,function(){_.Rl(f,"fade-in",!0)},50)):_.Rl(S,"fade-in",!0)};
_.e.computeThumbnail=function(f,S){var B;f&&f.movingThumbnailDetails&&f.movingThumbnailDetails.thumbnails&&S?B=_.bF(f.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):B=S?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(B)return _.io(B)};
_.e.isImageAvailable=function(f){return!(!f.src||f.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||f.naturalWidth===120)};
JH.prototype.onTap=JH.prototype.onTap;JH.prototype.dataChanged=JH.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],JH.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],JH.prototype,"ytComponentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],JH.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],JH.prototype,"csn",void 0);_.N([_.n(),_.Z("design:type",Object)],JH.prototype,"trackingParams",void 0);
_.N([_.n(),_.Z("design:type",String)],JH.prototype,"videoId",void 0);_.N([_.n(),_.Z("design:type",Boolean)],JH.prototype,"isAttachedAndDataSet",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],JH.prototype,"dataChanged",null);_.N([_.Vg("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],JH.prototype,"onTap",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],JH);
_.p(JH,"ytd-moving-thumbnail-renderer",function(){if(q1m!==void 0)return q1m;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return q1m=f},{mode:1});var $4N;_.VG=function(f){this.hostElement=f;this.eventSink=null;this.eventList=[]};
_.VG.prototype.shouldForward=function(){var f,S;return(S=(f=this.eventSink)==null?void 0:f.isConnected)!=null?S:document.body.contains(this.eventSink)};
_.VG.prototype.start=function(f,S){this.eventSink&&this.stop();for(var B=0;B<f.length;B++)this.hostElement.addEventListener(f[B],_.Fc(this,this.forwardEvent));var G;this.eventSink=(G=S.hostElement)!=null?G:S;this.eventList=f};
_.VG.prototype.stop=function(){for(var f=0;f<this.eventList.length;f++)this.hostElement.removeEventListener(this.eventList[f],_.Fc(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.VG.prototype.forwardEvent=function(f,S){this.shouldForward()&&(f.stopPropagation(),this.eventSink instanceof Element?_.ew(this.eventSink,f.type,S):_.Lg(new _.dO("eventSink is not an element")))};_.Px={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.VG(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(f,S){this.forwarder_.start(f,S)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var vx=function(){return _.I.apply(this,arguments)||this};
_.q(vx,_.I);_.e=vx.prototype;_.e.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=_.nL("HTML_DIR")==="rtl"?"right":"left"};
_.e.dataChanged=function(){this.popupOpen=!1};
_.e.computeAriaLabel=function(f){return _.H(f,PGm).label};
_.e.onTap=function(f){f.stopPropagation();f.preventDefault();this.data.command&&_.oy().resolve(_.S7).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.e.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.e.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
vx.prototype.onPopupClosed=vx.prototype.onPopupClosed;vx.prototype.onPopupOpened=vx.prototype.onPopupOpened;vx.prototype.onTap=vx.prototype.onTap;vx.prototype.dataChanged=vx.prototype.dataChanged;_.N([_.r(_.Px.YtEventForwardingBehavior),_.Z("design:type",Object)],vx.prototype,"eventForwardingBehavior",void 0);_.N([_.r(_.nd),_.Z("design:type",Object)],vx.prototype,"ironButtonState",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],vx.prototype,"componentBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],vx.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,value:-1}),_.Z("design:type",Number)],vx.prototype,"tabindex",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.Z("design:type",Object)],vx.prototype,"ariaLabel",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],vx.prototype,"disableTooltips",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],vx.prototype,"popupOpen",void 0);
_.N([_.n(),_.Z("design:type",Element)],vx.prototype,"eventSink",void 0);_.N([_.vF("#tooltip"),_.Z("design:type",Object)],vx.prototype,"tooltip",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vx.prototype,"dataChanged",null);_.N([_.Vg("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],vx.prototype,"onTap",null);
_.N([_.Vg("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vx.prototype,"onPopupOpened",null);_.N([_.Vg("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vx.prototype,"onPopupClosed",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],vx);
_.p(vx,"ytd-thumbnail-overlay-button-renderer",function(){if($4N!==void 0)return $4N;var f=document.createElement("template");_.Y(f,'\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>');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return $4N=f},{mode:1});var Qd6;var Kt=function(){return _.I.apply(this,arguments)||this};
_.q(Kt,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Kt.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Kt.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Kt.prototype,"disableAnimation",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Kt.prototype,"rounded",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Kt.prototype,"transparentBackground",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Kt.prototype,"noPadding",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],Kt);
_.p(Kt,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(Qd6!==void 0)return Qd6;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Qd6=f},{mode:1});var Y1m;var dn=function(){return _.I.apply(this,arguments)||this};
_.q(dn,_.I);dn.prototype.computeIconPosition=function(f){return this.get("iconPosition",f)||null};
dn.prototype.computeIconStyle=function(f){return this.get("iconStyle",f)||null};
dn.prototype.computeIsIconStyleFilled=function(f){if(!f)return!1;var S;return f.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((S=f.icon)==null?void 0:S.iconType)==="ERROR_BLACK"};
_.N([_.n(),_.Z("design:type",Object)],dn.prototype,"data",void 0);_.N([_.n({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],dn.prototype,"iconPosition",void 0);_.N([_.n({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],dn.prototype,"iconStyle",void 0);_.N([_.n({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],dn.prototype,"iconStyleFilled",void 0);
_.N([_.C({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],dn);
_.p(dn,"ytd-thumbnail-overlay-icon-renderer",function(){if(Y1m!==void 0)return Y1m;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Y1m=f},{mode:1});var rGX;var iQ=function(){return _.I.apply(this,arguments)||this};
_.q(iQ,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],iQ.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],iQ.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],iQ);
_.p(iQ,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(rGX!==void 0)return rGX;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return rGX=f},{mode:1});var jdm;var Hx=function(){var f=_.I.apply(this,arguments)||this;f.isPreviewLoading=!1;return f};
_.q(Hx,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Hx.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Hx.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Hx.prototype,"isPreviewLoading",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],Hx);
_.p(Hx,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(jdm!==void 0)return jdm;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return jdm=f},{mode:1});var OGm;var qu=function(){return _.I.apply(this,arguments)||this};
_.q(qu,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],qu.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],qu.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],qu);
_.p(qu,"ytd-thumbnail-overlay-pinking-renderer",function(){if(OGm!==void 0)return OGm;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return OGm=f},{mode:1});var x4$;var $a=function(){var f=_.I.apply(this,arguments)||this;f.disableTooltips=!1;f.isLoading=!1;f.useExpandableTooltip=!1;f.toggled=!1;f.hovered=!1;f.mouseoverDelayJobId=0;f.toggleDelayJobId=0;f.expandAnimationDelayJobId=0;return f};
_.q($a,_.I);_.e=$a.prototype;_.e.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");_.m9(this.hostElement).querySelector("#tooltip").position=_.nL("HTML_DIR")==="rtl"?"right":"left"};
_.e.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.xJ.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.xJ.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.xJ.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.e.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.xJ.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.xJ.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.xJ.cancelJob(this.expandAnimationDelayJobId)};
_.e.computeIcon=function(f,S,B){return(f=B?S:f)&&f.iconType?_.F_(f.iconType):void 0};
_.e.computeAriaLabel=function(f,S,B){return _.H(B?S:f,PGm).label};
_.e.computeTooltip=function(f,S,B){return B?S:f};
_.e.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.e.computeIconOnHover=function(f,S){if((f==null?0:f.iconType)&&!S)return _.F_(f.iconType)};
_.e.onTap=function(f){var S=this;f.stopPropagation();f.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(f=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(f),this.useExpandableTooltip&&(this.toggleDelayJobId=_.Xd(_.xJ,function(){S.hovered=!1;S.data&&!S.data.toggledServiceEndpoint&&(S.expandAnimationDelayJobId=_.Xd(_.xJ,function(){S.set("data.isToggled",
!1)},200))},2E3))};
_.e.onMouseenter=function(){var f=this;this.mouseoverDelayJobId=_.Xd(_.xJ,function(){f.hovered=!0},300)};
_.e.onMouseleave=function(){_.xJ.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.e.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.e.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.e.onServiceRequestCompleted=function(f,S){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(S)||this.set("data.isToggled",!this.data.isToggled)};
_.e.serviceRequestWasSuccessful=function(f){return _.H(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.nW)?f.data.status==="STATUS_SUCCEEDED":!0};
$a.prototype.onServiceRequestCompleted=$a.prototype.onServiceRequestCompleted;$a.prototype.onPopupClosed=$a.prototype.onPopupClosed;$a.prototype.onPopupOpened=$a.prototype.onPopupOpened;$a.prototype.onMouseleave=$a.prototype.onMouseleave;$a.prototype.dataChanged=$a.prototype.dataChanged;_.N([_.r(_.nd),_.Z("design:type",Object)],$a.prototype,"ironButtonState",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],$a.prototype,"ytComponentBehavior",void 0);
_.N([_.r(_.Px.YtEventForwardingBehavior),_.Z("design:type",Object)],$a.prototype,"ytEventForwardingBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],$a.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.Z("design:type",Object)],$a.prototype,"ariaLabel",void 0);_.N([_.n(),_.Z("design:type",Object)],$a.prototype,"disableTooltips",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],$a.prototype,"popupOpen",void 0);_.N([_.n(),_.Z("design:type",Object)],$a.prototype,"isLoading",void 0);_.N([_.n(),_.Z("design:type",Element)],$a.prototype,"eventSink",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],$a.prototype,"useExpandableTooltip",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.Z("design:type",Object)],$a.prototype,"toggled",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],$a.prototype,"hovered",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.Z("design:type",Object)],$a.prototype,"iconOnHover",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$a.prototype,"dataChanged",null);
_.N([_.Vg("mouseleave"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$a.prototype,"onMouseleave",null);_.N([_.Vg("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$a.prototype,"onPopupOpened",null);_.N([_.Vg("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$a.prototype,"onPopupClosed",null);
_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.cw]),_.Z("design:returntype")],$a.prototype,"onServiceRequestCompleted",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],$a);
_.p($a,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(x4$!==void 0)return x4$;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return x4$=f},{mode:_.X_("kevlar_poly_si_batch_j053")?1:2});var EyX;var L2j=_.oS(function(f){var S=f.data;var B=f.thumbnailSize;var G=function(){return S().enableSegmentView};
return _.T("yt-thumbnail-overlay-progress-bar-view-model",{class:_.Pw("ytThumbnailOverlayProgressBarHost",function(){return yGT(B==null?void 0:B())})},_.T(_.v,{cond:G,
then:function(){return _.T("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.T("div",{class:_.K9("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+S().startPercent+"%"}}),_.T("div",{class:_.K9("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+S().segmentDurationPercent+"%"}},_.T("div",{class:_.K9("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.T("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.T("div",null," ",function(){return S().segmentLabel})),_.T("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.T("div",{class:_.K9("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.T(_.v,{cond:function(){return!G()&&S().startPercent},
then:function(){var g={};return _.T("div",{class:_.K9("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(g.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.K("web_enable_modern_progress_bar_overlay"),g))},_.T("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+S().startPercent+"%"}}))}}))},"Q");
L2j.idomCompat=!0;var kIi=_.oS(function(f){var S=_.TG(),B=_.Uo(function(g){var b,z,X;a:{var w=(b=f.data())==null?void 0:b.animationActivationTargetId;b=((z=f.data())==null?void 0:z.animationActivationEntityKey)||"";z=(X=f.data())==null?void 0:X.animationActivationEntitySelectorType;if(b&&w)switch(z){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":g=_.w9(g.entities,"playerStateEntity",b);X=_.oy().resolve(_.fN(_.N_));w=!!(g&&g.videoId===w&&(X==null?0:X.isMiniplayerActive()));w={activated:w,playAnimation:w&&
g.playerState==="PLAYER_STATE_PLAYING"};break a}w=void 0}return w});
_.jp(function(){var g;if((g=B())==null?0:g.activated){var b;if((b=B())==null?0:b.playAnimation){var z;(z=S.lottieEl)==null||z.goToAndPlay(0)}else{var X;(X=S.lottieEl)==null||X.goToAndStop(0)}}},"MDTl2e");
var G=function(){var g,b=!((g=B())==null||!g.activated);if(f.data()){g=f.data();var z=void 0;g.icon&&(z=_.Sm1(g.icon),z=zWN(z));var X=void 0,w;if((w=g.backgroundColor)==null?0:w.lightTheme){var F;X={backgroundColor:No((F=g.backgroundColor)==null?void 0:F.lightTheme,"0.8")}}if(g.text||z||b){if(b&&g.lottieData&&S){F=g.lottieData;var V,J,P;w={animationConfig:{name:F.url,path:F.url,autoplay:(V=F.settings)==null?void 0:V.autoplay,loop:(P=(J=F.settings)==null?void 0:J.loop)!=null?P:!0},animationRef:S}}else w=
void 0;if(b)V=16;else b:switch(g.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":V=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":V=18;break b;default:V=16}b={type:V,text:b&&g.animatedText?g.animatedText:g.text,icon:z,customColors:X,animation:w}}else b=void 0}else b=void 0;return b};
return _.T("yt-thumbnail-badge-view-model",{class:_.Pw("yt-thumbnail-badge-view-model-wiz",f.class)},_.T(_.v,{cond:G,then:function(){return _.T(_.xq,{data:function(){return G()}})}}))},"R");var ny8=_.oS(function(f){var S={},B={};return _.T("yt-thumbnail-bottom-overlay-view-model",{class:_.Pw("ytThumbnailBottomOverlayViewModelHost",(S.ytThumbnailBottomOverlayViewModelHostBackground=function(){return f.data().enableGradientBackground},S))},_.T(_.xK,{data:function(){return f.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(G){return _.T(L2j,{data:G.data,
thumbnailSize:f.thumbnailSize})}}),_.T("div",{class:_.Pw("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var G;
return W2V((G=f.thumbnailSize)==null?void 0:G.call(f))},(B.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var G;
return(G=f.isClip)==null?void 0:G.call(f)},B.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var G;
return!_.K("web_enable_modern_progress_bar_overlay")&&((G=f.thumbnailSize)==null?void 0:G.call(f))==="small"},B))},_.T(_.xK,{data:function(){return f.data().badge}},{thumbnailBadgeViewModel:function(G){return _.T(kIi,{data:G.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.T(_.xK,{data:function(){return f.data().badges}},{thumbnailBadgeViewModel:function(G){return _.T(kIi,{data:G.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"S");
ny8.idomCompat=!0;_.eq(ny8,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.gm,thumbnailSize:_.gm,isClip:_.gm}});var m3V={calledOnce:!1,state:"visible"},zsN={calledOnce:!1,state:"hidden"};var Qa=_.oS(function(f){var S=f.data;var B=f.className;f=f.alwaysShow;var G=_.tE("thumbnail-hover-overlay-view-model");_.a8(G,function(){return S().rendererContext});
var g=_.fjG(),b={};return _.T("thumbnail-hover-overlay-view-model",{el:G,class:_.Pw("ytThumbnailHoverOverlayViewModelHost",B,(b.ytThumbnailHoverOverlayViewModelHostForceHover=f,b)),"aria-label":function(){var z;return(z=_.H(S().rendererContext,_.H1))==null?void 0:z.label},
role:function(){return _.tD(S().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.tD(S().rendererContext)!==void 0?0:void 0},
"on:keypress":g},_.T("div",{class:_.Pw("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(S().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var z="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:z="ytThumbnailHoverOverlayViewModelStyleCover"}return z})},_.T(_.v,{cond:function(){return S().icon},
then:function(z){return _.T(_.f9,{data:z,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.T(_.v,{cond:function(){return S().text},
then:function(z){return _.T(_.oY,{text:z,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"T");
Qa.idomCompat=!0;var sd1=_.oS(function(f){var S=f.data;return _.T(_.xK,{data:function(){return S==null?void 0:S().overlays}},{thumbnailHoverOverlayViewModel:Qa})},"U");
sd1.idomCompat=!0;var D41={};var IQv=_.oS(function(f){var S=f.data;var B=f.image;var G=f.state;var g=f.iconType;var b=f.overlays;var z=f.isOverlay;var X=_.us("div");f=_.m(_.hj(!0,void 0,"sUzEZ"));var w=f.next().value,F=f.next().value,V=function(){return!!S().onTap},J=_.cF(g,"LIVE");
_.jp(function(){var d=S();requestAnimationFrame(function(){if(X.value===null)var Q=!0;else{var x=X.value;Q=d.badgeText;var E=wTK(d.size);Q in D41?x=D41[Q]:(x=x.clientWidth,D41[Q]=x);(Q=x>E)?X.value.style.display="none":X.value.style.visibility="visible"}F(Q)})},"SpVcNb");
var P=function(){var d={};return d["yt-spec-avatar-shape__image"]=!0,d["yt-spec-avatar-shape__image--ads-app"]=S().type===1,d};
return _.T("yt-avatar-shape",null,_.T("div",{el:_.Sq(TJj(V,{keydown:function(d){if(d.key==="Enter"){var Q;(Q=d.currentTarget)==null||Q.click()}},
click:function(d){var Q,x;return void((x=(Q=S()).onTap)==null?void 0:x.call(Q,d))}})),
class:function(){var d={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},Q=S();d=(d[Q.clusterLayoutConfig?JP1(Q.clusterLayoutConfig):PMN(Q.size)]=!0,d["yt-spec-avatar-shape__button--tappable"]=V(),d);(Q=S().avatarButtonCustomClassName)&&(d[Q]=!0);return _.K9(d)},
"aria-label":function(){return V()?S().accessibilityText:""},
role:function(){return V()?"button":void 0},
tabindex:function(){return V()?0:void 0}},_.T("div",{class:function(){var d,Q=S(),x=G==null?void 0:G(),E=z==null?void 0:z(),U=!((d=Q.decorations)==null||!d.includes(2)||Q.size!=="medium"&&Q.size!=="large"),A=Q.size==="tiny"||Q.size==="extra-small",t,M,a,l,mx={};
d=(mx["yt-spec-avatar-shape--live-ring"]=!!(((t=Q.decorations)==null?0:t.includes(0))&&KFW(Q.size)),mx["yt-spec-avatar-shape--stories-watched"]=U&&!(x==null||!x.storiesWatched),mx["yt-spec-avatar-shape--stories-unwatched"]=U&&!(x==null?0:x.storiesWatched),mx["yt-spec-avatar-shape--background-border"]=d3N(Q.decorations)&&!A,mx["yt-spec-avatar-shape--background-border-thin"]=d3N(Q.decorations)&&A,mx["yt-spec-avatar-shape__on-select-border"]=!((M=Q.decorations)==null||!M.includes(4)),mx["yt-spec-avatar-shape__white-border"]=
!((a=Q.decorations)==null||!a.includes(5)),mx["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((l=Q.decorations)==null?0:l.includes(5))&&A),mx["yt-spec-avatar-shape--is-overlay"]=!!E,mx);return _.K9(d)},
style:function(){a:{var d=S().clusterLayoutConfig;if(d){b:{var Q=d.numAvatarsInCluster;var x=d.avatarIndex;if(x!==Q-1){switch(d.clusterSize){case "small":d="32";break;case "medium":d="36";break;case "40":d="40";break;default:Q=void 0;break b}Q="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+d+"x"+d+"_avatars_"+Q+"_index_"+x+".svg"}else Q=void 0}if(Q){Q=_.Qj({"-webkit-mask-image":"url("+Q+")","mask-image":"url("+Q+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}Q=void 0}return Q}},_.T("div",{class:function(){var d={};
var Q=S();d=(d[Q.clusterLayoutConfig?FFA(Q.clusterLayoutConfig):V4A(Q.size)]=!0,d["yt-spec-avatar-shape--no-margin"]=d3N(S().decorations),d);return _.K9(d)}},_.T(_.f9,{data:B,
alt:function(){return!V()&&S().accessibilityText?S().accessibilityText:""},
targetWidth:function(){return vF1(S().size)},
targetHeight:function(){return vF1(S().size)},
className:function(){return _.K9(P())}}),_.T(_.v,{cond:function(){var d;
return((d=S().decorations)==null?void 0:d.includes(0))&&KFW(S().size)},
then:function(){return _.T("div",{class:function(){var d={};d=(d["yt-spec-avatar-shape__live-badge"]=!0,d["yt-spec-avatar-shape__live-badge--badge-small"]=S().size==="small",d["yt-spec-avatar-shape__live-badge--badge-medium"]=S().size==="medium"||S().size==="48",d["yt-spec-avatar-shape__live-badge--badge-large"]=S().size==="large",d["yt-spec-avatar-shape__live-badge--badge-extra-large"]=S().size==="extra-large"||S().size==="extra-extra-large"||S().size==="giant",d);return _.K9(d)}},_.T(_.v,{cond:function(){return S().badgeText},
then:function(d){return _.T("div",{class:"yt-spec-avatar-shape__badge-text",el:X},d)}}),_.T(_.v,{cond:w,
then:function(){return _.T("div",{class:"yt-spec-avatar-shape__badge-icon"},_.T(_.Y8,{icon:J,size:function(){a:switch(S().size){case "extra-large":var d=16;break a;default:d=13}return d}}))}}))}}),_.T(_.v,{cond:function(){var d,Q;
return((d=S().decorations)==null?void 0:d.includes(1))||((Q=S().decorations)==null?void 0:Q.includes(0))&&!KFW(S().size)},
then:function(){return _.T("div",{class:function(){var d=S(),Q,x,E={};var U=(E["yt-spec-avatar-shape__live-dot"]=!((Q=d.decorations)==null||!Q.includes(0)||KFW(d.size)),E["yt-spec-avatar-shape__new-content"]=!((x=d.decorations)==null||!x.includes(1)),E);return _.K9(U)}})}}),_.T(_.v,{cond:function(){return!!b},
then:function(){return _.T("div",{class:function(){var d={};d=Object.assign((d["yt-spec-avatar-shape__image-overlays"]=!0,d),P());return _.K9(d)}},b==null?void 0:b())}})))))},"V");
IQv.idomCompat={callbacks:{overlays:!0}};_.Ya=_.oS(function(f){function S(){B().endpoint&&_.MB(B().endpoint)}
var B=f.data;var G=f.decorations;var g=f.avatarButtonCustomClassName;var b=f.isOverlay;var z=f.clusterLayoutConfig;return _.T("avatar-view-model",null,_.T(_.v,{cond:function(){return B().image},
then:function(X){return _.T(IQv,{data:function(){return HEN({data:B(),onTap:B().endpoint?S:void 0,decorations:G==null?void 0:G(),badgeText:void 0,accessibilityText:B().accessibilityText,avatarButtonCustomClassName:g==null?void 0:g(),clusterLayoutConfig:z==null?void 0:z()})},
image:X,iconType:"RADAR_LIVE",overlays:function(){return _.T(sd1,{data:B})},
isOverlay:b})}}))},"W");
_.Ya.idomCompat=!0;_.rn=_.oS(function(f){var S=f.data;f=f.className;var B=_.us("yt-decorated-avatar-view-model"),G=function(){return _.H(S().avatar,_.y5)},g=_.vW(function(){var b,z=S(),X=G(),w=_.tD(S().rendererContext),F=(b=B.value)!=null?b:void 0,V;
if(X){F={data:z,avatar:X,onTap:w,element:F};b=F.data;z=F.avatar;X=F.onTap;w=F.element;F=F.commandController;X=X?YMK(X,w,F):void 0;w=[];b.liveData&&w.push(0);var J;F=(J=b.liveData)==null?void 0:J.liveBadgeText;J=(V=_.H(b.rendererContext,_.H1))==null?void 0:V.label;V=HEN({data:z,onTap:X,decorations:w,badgeText:F,accessibilityText:J?J:b.a11yLabel})}else V={size:"medium"};return V},void 0,"H8tk9d");
return _.T("yt-decorated-avatar-view-model",{class:_.Pw("yt-decorated-avatar-view-model-wiz",f),el:B},_.T(_.v,{cond:function(){var b;return(b=G())==null?void 0:b.image},
then:function(b){return _.T(IQv,{data:g,image:b,iconType:"RADAR_LIVE",overlays:function(){return _.T(sd1,{data:G})}})}}))},"X");
_.rn.idomCompat=!0;_.jL=_.oS(function(f){var S=function(){var w;return Object.assign({},f.data(),(w=f.overrides)==null?void 0:w.call(f))},B=_.tE("yt-avatar-stack-view-model"),G=function(){return B&&_.ux(S().rendererContext)};
_.a8(B,function(){return S().rendererContext});
var g=function(){var w=S().avatars,F,V;return(V=(F=(w==null?0:w[0])?_.H(w[0],_.y5):void 0)==null?void 0:F.avatarImageSize)!=null?V:"AVATAR_SIZE_UNKNOWN"},b=function(){return Q7Q(S())},z=function(){if(S().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var w=void 0;
else if((w=f.decorations)==null?0:w.call(f))w=f.decorations();else{w=S();var F=0;w.avatars&&(F+=w.avatars.length);w.decoratedText&&(F+=1);w=F>1?[3]:[]}return w},X={};
return _.T("yt-avatar-stack-view-model",{el:B,class:_.Pw("yt-avatar-stack-view-model-wiz",f.className,(X["yt-avatar-stack-view-model-wiz--tappable"]=G,X["yt-avatar-stack-view-model-wiz--is-overlay"]=f.isOverlay,X["yt-avatar-stack-view-model-wiz--medium-text"]=f.useMediumText,X)),tabindex:function(){return G()?0:void 0},
role:function(){return G()?"link":void 0},
"aria-label":function(){var w,F;return(F=(w=_.H(S().rendererContext,_.H1))==null?void 0:w.label)!=null?F:""}},_.T(_.v,{cond:function(){var w;
return S().avatars&&!((w=f.hideAvatar)==null?0:w.call(f))},
then:function(){return _.T("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.T(_.v,{cond:function(){return S().decoratedText},
then:function(w){var F={};return _.T("div",{class:_.Pw("yt-avatar-stack-view-model-wiz__text-container",(F["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return g()==="AVATAR_SIZE_XXS"||g()==="AVATAR_SIZE_XS"},F["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var V;
return((V=f.isOverlay)==null?void 0:V.call(f))&&(g()==="AVATAR_SIZE_XXS"||g()==="AVATAR_SIZE_XS")},F)),
style:_.Qj({width:function(){return b().avatarSizeInPx+"px"},
height:function(){return b().avatarSizeInPx+"px"}})},_.T(_.oY,{text:w,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.T("div",{style:function(){return _.Qj(b().avatarStackStyle)()},
class:function(){return b().avatarStackClass}},_.T(_.xK,{data:function(){return b().avatars.reverse()}},{avatarViewModel:function(w,F){return _.T("div",{style:function(){var V,J;
return _.Qj((J=(V=b()).avatarStyle)==null?void 0:J.call(V,F()))()},
class:function(){return b().avatarClass}},_.T(_.Ya,{data:w.data,
decorations:z,avatarButtonCustomClassName:function(){return b().avatarButtonCustomClassName},
isOverlay:f.isOverlay,clusterLayoutConfig:function(){var V,J;return(J=(V=b()).clusterLayoutConfig)==null?void 0:J.call(V,F())}}))},
decoratedAvatarViewModel:function(w,F){return _.T("div",{style:function(){var V,J;return _.Qj((J=(V=b()).avatarStyle)==null?void 0:J.call(V,F()))()},
class:function(){return b().avatarClass}},_.T(_.rn,{data:w.data}))}})))}}),_.T(_.v,{cond:function(){return S().text},
then:function(w){return _.T(_.oY,{text:w,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"Y");
_.jL.idomCompat=!0;_.eq(_.oS(function(f){var S=f.data;var B=f.thumbnailSize;return _.T("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.T("div",{class:_.Pw("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return rPG(B==null?void 0:B())})},_.T(_.xK,{data:function(){return S().avatarStack}},{avatarStackViewModel:function(G){return _.T(_.jL,{data:G.data,
decorations:[5]})}})))},"Z"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.W4,
thumbnailSize:_.W4}});var U4m=_.oS(function(f){f=_.lu(f,{hidden:!1});var S=f.data;return _.T("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:f.hidden},_.T(_.oY,{text:function(){return S().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.T(_.v,{cond:function(){return S().subtitle},
then:function(){return _.T(_.oY,{text:function(){return S().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"$");
U4m.idomCompat=!0;_.eq(U4m,"yt-thumbnail-overlay-title-view-model",{props:{data:_.W4,hidden:_.W4}});var C$8=_.oS(function(f){f=_.lu(f,{isClip:!1});var S=f.data,B=f.thumbnailSize,G={};return _.T("yt-thumbnail-overlay-badge-view-model",{class:_.Pw("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(S().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var g="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:g="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return g},function(){return j7N(B==null?void 0:B())},(G["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
f.isClip,G))},_.T(_.xK,{data:function(){return S().thumbnailBadges}},{thumbnailBadgeViewModel:function(g){return _.T(kIi,{data:g.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"aa");
C$8.idomCompat=!0;_.eq(C$8,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.W4,thumbnailSize:_.W4,isClip:_.W4}});_.Su(OEW);_.TD(OEW,"yt-page-indicator-view-model",{propNames:["data"]});var Or=function(){var f=_.I.apply(this,arguments)||this;f.eventSink=function(){return f};
f.disableInteraction=!1;f.noRoundedCorners=!1;f.isPreviewLoading=!1;f.isOriginalAspectRatio=!1;f.computedObjectFit=!1;f.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return f};
_.q(Or,_.I);_.e=Or.prototype;
_.e.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:_.K("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"}}};
_.e.onImageLoaded=function(){this.loaded=!0};
_.e.onImageUnloaded=function(){this.loaded=!1};
_.e.computeRichThumbnail=function(f,S,B,G){if(f&&S&&!G&&!_.K("disable_moving_thumbs_handling")&&!B)return S};
_.e.computeImageWidth=function(f,S){return S||9999};
_.e.computeIsOriginalAspectRatio=function(f){return f};
_.e.computeIsLive=function(f){if(f==null?0:f.badges)for(var S=0;S<f.badges.length;S++){var B=f.badges[S];if(B.metadataBadgeRenderer&&B.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(f==null?0:f.thumbnailOverlays)for(S=0;S<f.thumbnailOverlays.length;S++)if(B=f.thumbnailOverlays[S],B.thumbnailOverlayTimeStatusRenderer&&B.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.e.computeObjectFit=function(f,S){return S||(f?"CONTAIN":"")};
_.e.computeNavigationEndpoint=function(f,S,B){return f?S:B};
_.e.computeHasClip=function(f){f=_.m(f||[]);for(var S=f.next();!S.done;S=f.next())if(S.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.e.computeOverlayColor=function(f){var S;return(f==null?0:(S=f.darkColorPalette)==null?0:S.section2Color)?f.darkColorPalette.section2Color:f==null?void 0:f.sampledThumbnailColor};
_.y3.Object.defineProperties(Or.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return $nj(this.width)}}});
Or.prototype.onImageUnloaded=Or.prototype.onImageUnloaded;Or.prototype.onImageLoaded=Or.prototype.onImageLoaded;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],Or.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Or.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(vOX),_.Z("design:type",Object)],Or.prototype,"ytdThumbnailBehavior",void 0);
_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Or.prototype,"componentBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],Or.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Or.prototype,"data",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],Or.prototype,"circular",void 0);
_.N([_.n({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.Z("design:type",Object)],Or.prototype,"richThumbnail",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.Z("design:type",Boolean)],Or.prototype,"hasClip",void 0);_.N([_.n(),_.Z("design:type",Object)],Or.prototype,"eventSink",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Or.prototype,"queued",void 0);
_.N([_.n({value:!1}),_.Z("design:type",Boolean)],Or.prototype,"richGridThumbnail",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],Or.prototype,"useExpandableTooltip",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],Or.prototype,"useUntranslatedNavigationEndpoint",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Or.prototype,"disableInteraction",void 0);
_.N([_.n({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.Z("design:type",Object)],Or.prototype,"computedNavigationEndpoint",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Or.prototype,"nowPlayingEqualizerOnly",void 0);_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Or.prototype,"hidePlaybackStatus",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",String)],Or.prototype,"objectFit",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Or.prototype,"noRoundedCorners",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],Or.prototype,"watchFeedThumbnail",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Or.prototype,"isPreviewLoading",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.Z("design:type",Object)],Or.prototype,"isOriginalAspectRatio",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.Z("design:type",Object)],Or.prototype,"computedObjectFit",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.Z("design:type",Boolean)],Or.prototype,"isLiveVideo",void 0);
_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Or.prototype,"loaded",void 0);_.N([_.n({computed:"computeOverlayColor(data.thumbnail)"}),_.Z("design:type",Object)],Or.prototype,"overlayColor",void 0);_.N([_.n({selector:_.mG9}),_.Z("design:type",Boolean)],Or.prototype,"inlinePreviewIsEnabled",void 0);_.N([_.n(),_.Z("design:type",Number)],Or.prototype,"width",void 0);
_.N([_.k("inlinePreviewIsEnabled"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Or.prototype,"isPreviewDisabled",null);_.N([_.k("width"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Or.prototype,"thumbnailSize",null);_.N([_.Vg("image-loaded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Or.prototype,"onImageLoaded",null);
_.N([_.Vg("image-unloaded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Or.prototype,"onImageUnloaded",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-thumbnail"})],Or);
var pp6=_.RS()(Or,"ytd-thumbnail",function(){if(EyX===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);EyX=f}f=EyX;return f},{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 kv1=function(f){var S=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$12871_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$12871_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(B){AGL(S,B)};
this.onLockupMouseLeaveFn=function(B){B=B.relatedTarget;var G,g;((G=document.getElementsByTagName("ytd-video-preview"))==null?0:(g=G.item(0))==null?0:g.contains(B))||(S.terminateVideoPreview(),xa(S))};
this.onThumbnailMouseDownFn=function(){S.terminateVideoPreview();xa(S)};
this.onTouchStart=function(){S.JSC$12871_touched=!0};
this.mediaRenderer=f.mediaRenderer;this.thumbnailElement=f.thumbnailElement;this.lockupElement=f.lockupElement;this.videoPreviewOptsInput=f.videoPreviewOpts;NVv(this);Er(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)):
_.Lg(Error("Ch")):_.Lg(Error("Dh")):M88(this)},mZ=function(f){M88(f);
var S;(S=f.lockupElement)==null||S.removeEventListener("mouseenter",f.onMouseMoveFn);var B;(B=f.lockupElement)==null||B.removeEventListener("mouseleave",f.onLockupMouseLeaveFn);var G;(G=f.lockupElement)==null||G.removeEventListener("touchstart",f.onTouchStart);var g;(g=f.thumbnailElement)==null||g.removeEventListener("mousedown",f.onThumbnailMouseDownFn);xa(f)},NVv=function(f){f.inlinePreviewIsEnabledForUser=_.W2().getState().ui.inlinePreviewIsEnabled;
f.unsubscribeFromInlinePreviewIsEnabled=_.KD(_.W2(),_.mG9,function(S){(f.inlinePreviewIsEnabledForUser=S)||xa(f)});
f.JSC$12871_unsubscribeFromInlinePreviewIsActive=_.KD(_.W2(),_.bW9,function(S){(f.inlinePreviewIsActive=S)||xa(f)})},M88=function(f){f.unsubscribeFromInlinePreviewIsEnabled();
f.unsubscribeFromInlinePreviewIsEnabled=function(){};
f.JSC$12871_unsubscribeFromInlinePreviewIsActive();f.JSC$12871_unsubscribeFromInlinePreviewIsActive=function(){}},AGL=function(f,S){S.buttons>0||(S=_.Gt("kevlar_lockup_hover_delay",-1),f.JSC$12871_touched&&S>=0?(_.xJ.cancelJob(f.videoPreviewJobId),f.videoPreviewJobId=_.Xd(_.xJ,function(){ZG7(f)},S),f.JSC$12871_touched=!1):ZG7(f))},xg9=function(f){f.videoPreviewJobId=_.Xd(_.xJ,function(){var S,B,G,g;
return _.R(function(b){if(b.nextAddress==1){if(!Er(f))return b.return();S=f.getVideoPreviewOpts();if(!S)return b.return();S.isAutoplay=!0;return(G=(B=_.mU(f.mediaRenderer.hostElement,"yt-open-video-preview-action",[S]))&&B[0])?_.h(b,B[0],3):b.jumpTo(2)}b.nextAddress!=2&&(G=b.yieldResult===1);G&&EFj((g=f.mediaRenderer)==null?void 0:g.data);_.TT(b)})})},ZG7=function(f){!f.previewTriggered&&Er(f)&&(f.inlinePreviewIsActive&&f.terminateVideoPreview(),f.previewTriggered=!0,f.mediaRenderer.isInlinePreviewTriggered=
!0,_.xJ.cancelJob(f.videoPreviewJobId),f.videoPreviewJobId=_.Xd(_.xJ,function(){var S,B,G,g;
return _.R(function(b){if(b.nextAddress==1){if(!Er(f))return b.return();S=f.getVideoPreviewOpts();return S?(G=(B=_.mU(f.mediaRenderer.hostElement,"yt-open-video-preview-action",[S]))&&B[0])?_.h(b,B[0],3):b.jumpTo(2):b.return()}b.nextAddress!=2&&(G=b.yieldResult===1);G&&EFj((g=f.mediaRenderer)==null?void 0:g.data);_.TT(b)})}))};
kv1.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var f,S;if((S=(f=this.videoPreviewOptsInput)==null?void 0:f.videoPreviewData)!=null)f=S;else if(f=this.mediaRenderer.data)if(x3j(f))f={inlinePlaybackEndpoint:_.CH(f.inlinePlayerData.onVisible),navigationEndpoint:_.CH(f.onTap),thumbnail:"image"in f?f.image:f.thumbnail,thumbnailOverlays:void 0,accessibilityText:LFA(f)};else if("multipleInlinePlaybackEndpoint"in f){var B=_.H(_.H(f.multipleInlinePlaybackEndpoint,KRg),dF$);if(B!=
null&&B.playerDescriptors){S=[];B=_.m(B.playerDescriptors);for(var G=B.next();!G.done;G=B.next())G=G.value,S.push({inlinePlaybackEndpoint:G.inlinePlaybackEndpoint,navigationEndpoint:G.navigationEndpoint,thumbnail:G.thumbnail,thumbnailOverlays:G.thumbnailOverlays,accessibilityText:LFA(f)});f=S}else f=void 0}else f={inlinePlaybackEndpoint:f.inlinePlaybackEndpoint,navigationEndpoint:f.navigationEndpoint,thumbnail:f.thumbnail,thumbnailOverlays:f.thumbnailOverlays,accessibilityText:LFA(f)};else f=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:f,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var Er=function(f){var S;if(S=f.inlinePreviewIsEnabledForUser)S=(f=f.mediaRenderer.data)?"inlinePlaybackEndpoint"in f&&f.inlinePlaybackEndpoint||x3j(f)&&f.inlinePlayerData||"multipleInlinePlaybackEndpoint"in f&&f.multipleInlinePlaybackEndpoint?!0:!1:!1;return S};
kv1.prototype.terminateVideoPreview=function(){_.bW(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var xa=function(f){_.xJ.cancelJob(f.videoPreviewJobId);f.inlinePreviewIsActive=!1;f.previewTriggered=!1;f.mediaRenderer.isInlinePreviewTriggered=!1};var t8L=_.f4(["#"]),Lt=function(){var f=_.I.apply(this,arguments)||this;f.isDisabled=!1;return f};
_.q(Lt,_.I);_.e=Lt.prototype;_.e.configureRendererStamper=function(){return{"data.menu":hH,"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"}}}};
_.e.attached=function(){this.updateInlinePreviewHoverListeners()};
_.e.detached=function(){this.clearInlinePreviewHoverListeners()};
_.e.getMetadata=function(f){var S=[];if(f.metadataText&&Object.keys(f.metadataText).length>0){var B=this.ytRendererBehavior.getSimpleString(f.metadataText);f.upcomingEventData&&f.upcomingEventData.upcomingEventText&&(B=_.UR(B,Number(f.upcomingEventData.startTime)));S.push(B)}else f.shortViewCountText&&S.push(this.ytRendererBehavior.getSimpleString(f.shortViewCountText)),f.publishedTimeText&&S.push(this.ytRendererBehavior.getSimpleString(f.publishedTimeText)),f.upcomingEventData&&f.upcomingEventData.upcomingEventText&&
(B=this.ytRendererBehavior.getSimpleString(f.upcomingEventData.upcomingEventText),S.push(_.UR(B,Number(f.upcomingEventData.startTime))));return S};
_.e.calculateBylineText=function(f){return f.shortBylineText?f.shortBylineText:f.bylineText?f.bylineText:null};
_.e.calculateIsDisabled=function(f){return!!f.isDisabled};
_.e.computeHrefWithDefault=function(f){return this.ytComponentBehavior.computeHref_(f)||_.$6(t8L)};
_.e.onDetailsTap=function(f){var S=this.data&&this.data.navigationEndpoint;S&&!_.lF(_.ct(f)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.K("kevlar_grid_video_renderer_killswitch")?_.ew(this.hostElement,"yt-navigate",{endpoint:S}):this.ytComponentBehavior.resolveCommand(S))};
_.e.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.e.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12876_inlinePreviewHoverListener=W8({mediaRenderer:this,lockupElement:_.m9(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.m9(this.hostElement).querySelector("ytd-thumbnail")})};
_.e.clearInlinePreviewHoverListeners=function(){var f;(f=this.JSC$12876_inlinePreviewHoverListener)==null||mZ(f)};
_.e.computeThumbnailWidth=function(f,S){return S&&S>0?S:f?360:210};
_.e.computeShowChannelThumbnail=function(f,S){var B;return S&&!!(f==null?0:(B=f.channelThumbnailSupportedRenderers)==null?0:B.channelThumbnailWithLinkRenderer)};
_.y3.Object.defineProperties(Lt.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.JSC$12876_inlinePreviewHoverListener)==null?0:Er(f))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Lt.prototype.dataChanged=Lt.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Lt.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Lt.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Lt.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.kP),_.Z("design:type",Object)],Lt.prototype,"ytdDismissibleItemBehavior",void 0);
_.N([_.r(_.pR),_.Z("design:type",Object)],Lt.prototype,"ytdLockupBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],Lt.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Lt.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Boolean)],Lt.prototype,"noEndpoints",void 0);_.N([_.n({computed:"calculateBylineText(data)"}),_.Z("design:type",Object)],Lt.prototype,"bylineText",void 0);
_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],Lt.prototype,"isSearch",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],Lt.prototype,"isDownloading",void 0);_.N([_.n({reflectToAttribute:!0,value:0}),_.Z("design:type",Number)],Lt.prototype,"width",void 0);_.N([_.n({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.Z("design:type",Object)],Lt.prototype,"isDisabled",void 0);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Lt.prototype,"dataChanged",null);_.N([_.k("lockupIsHovered"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Lt.prototype,"isHovered",null);_.N([_.C({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],Lt);
_.p(Lt,"ytd-grid-video-renderer",function(){if(K2m!==void 0)return K2m;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return K2m=f},{mode:_.X_("kevlar_poly_si_batch_j047")?1:2});var uZo;var ka=function(){var f=_.I.apply(this,arguments)||this;f.roundedContainer=!0;f.skipRoundingTop=!1;f.disableTopPadding=!1;f.amsterdamEnabled=_.K("enable_desktop_amsterdam_info_panels");return f};
_.q(ka,_.I);ka.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
ka.prototype.onClick=function(f){var S,B=(S=this.data)==null?void 0:S.sourceEndpoint;!_.lF(_.ct(f),this.hostElement,["A".toString()])&&B&&_.ew(this.hostElement,"yt-navigate",{endpoint:B})};
_.y3.Object.defineProperties(ka.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 f;return!((f=this.data)==null||!f.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var f,S;return(S=(f=this.data)==null?void 0:f.paragraphMaxLines)!=null?S:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],ka.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],ka.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],ka.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],ka.prototype,"showVerticalDividers",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],ka.prototype,"roundedContainer",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],ka.prototype,"skipRoundingTop",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],ka.prototype,"disableTopPadding",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],ka.prototype,"amsterdamEnabled",void 0);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ka.prototype,"showMetadataAtTop",null);
_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ka.prototype,"showMetadataBelowTitle",null);_.N([_.n({reflectToAttribute:!0}),_.k("data.menu"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ka.prototype,"hasMenu",null);_.N([_.n({reflectToAttribute:!0}),_.k("data.truncateParagraphs"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ka.prototype,"truncateParagraphs",null);
_.N([_.n({reflectToAttribute:!0}),_.k("data.paragraphMaxLines"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],ka.prototype,"paragraphMaxLines",null);_.N([_.n({type:_.K("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.k("data.background"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ka.prototype,"background",null);_.N([_.C({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],ka);
_.p(ka,"ytd-info-panel-content-renderer",function(){if(uZo!==void 0)return uZo;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return uZo=f},{mode:_.X_("kevlar_poly_si_batch_j076")?1:2});var aQ6;var yGg;var W28;var cGj;var nt=function(){return _.I.apply(this,arguments)||this};
_.q(nt,_.I);nt.prototype.computeStyle=function(f){return f};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],nt.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],nt.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Z("design:type",String)],nt.prototype,"style_",void 0);_.N([_.nP({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],nt);
_.p(nt,"yt-channel-thumbnail-with-link-renderer",function(){if(cGj===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;W28===void 0&&(W28=document.createElement("template"));var G=W28;B.call(S,G.content.cloneNode(!0),f.content.firstChild);cGj=f}f=cGj;return f},{mode:2});var sr=function(){var f=_.I.apply(this,arguments)||this;f.modernTypography=_.K("web_modern_typography");return f};
_.q(sr,_.I);sr.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"}}}};
sr.prototype.computeTitleStyle=function(f){return f||null};
sr.prototype.computeAvatarStyle=function(f){return f||null};
sr.prototype.computeShowNavigationButton=function(f,S){return!(f==null||!f.navigationButton||S)};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],sr.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],sr.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],sr.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.Z("design:type",String)],sr.prototype,"titleStyle",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.Z("design:type",String)],sr.prototype,"avatarStyle",void 0);_.N([_.n(),_.Z("design:type",Boolean)],sr.prototype,"hideNavigationButton",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],sr.prototype,"isModernSd",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],sr.prototype,"modernTypography",void 0);
_.N([_.C({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],sr);
_.p(sr,"ytd-rich-list-header-renderer",function(){if(yGg!==void 0)return yGg;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return yGg=f},{mode:_.X_("kevlar_poly_si_batch_j058")?1:2});var Dy=function(){return _.I.apply(this,arguments)||this};
_.q(Dy,_.I);Dy.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]]"}}}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Dy.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Dy.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Dy.prototype,"data",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],Dy.prototype,"isSearch",void 0);_.N([_.C({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],Dy);
_.p(Dy,"ytd-preview-card-renderer",function(){if(aQ6!==void 0)return aQ6;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return aQ6=f},{mode:1});var lQL;var IA=function(){return _.I.apply(this,arguments)||this};
_.q(IA,_.I);IA.prototype.configureRendererStamper=function(){return{"data.menu":hH}};
IA.prototype.dataChanged=function(){var f=this.get("colorExtractionPalette.section1Color",this.data);f=_.pn(f);_.hO(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":f})};
IA.prototype.computeCardStyle=function(f){return this.get("style.value",f)||null};
IA.prototype.dataChanged=IA.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],IA.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],IA.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.kP),_.Z("design:type",Object)],IA.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],IA.prototype,"data",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.Z("design:type",String)],IA.prototype,"cardStyle",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],IA.prototype,"dataChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],IA);
_.p(IA,"ytd-compact-channel-recommendation-card-renderer",function(){if(lQL!==void 0)return lQL;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return lQL=f},{mode:1});var fjL;var oF7;var Ur=function(){var f=_.I.apply(this,arguments)||this;f.alignAuto=!1;f.collapsed=!0;f.isToggled=!1;f.alwaysCollapsed=!1;f.canToggle=!0;f.collapsedHeight=80;f.disableToggle=!1;f.alwaysToggleable=!1;f.reversed=!1;f.shouldUseNumberOfLines=!1;f.recomputeOnResize=!1;f.canToggleJobId=0;f.lastReversed=!1;return f};
_.q(Ur,_.I);_.e=Ur.prototype;_.e.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.e.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.e.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var f=_.m9(this.hostElement),S=f.childNodes,B=document.createDocumentFragment(),G=f.childNodes.length-1;G>=0;G--)_.m9(B).appendChild(S[G]);_.K("enable_shadydom_free_scoped_node_methods")?_.zY(this.hostElement).appendChild(B):f.appendChild(B)}};
_.e.ready=function(){var f=this;_.AO(function(){f.initChildrenObserver()},1)};
_.e.detached=function(){this.detachObserver()};
_.e.toggle=function(f,S){this.canToggle&&(this.isToggled=S,_.ew(this.hostElement,"yt-refit"),f&&f.stopPropagation())};
_.e.reset=function(){this.childrenChanged()};
_.e.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.e.computeIsMoreVisible=function(f,S){return f&&!S};
_.e.computeShouldUseNumberOfLines=function(f){try{return!!f&&window.CSS.supports("-webkit-line-clamp","1")}catch(S){}return!1};
_.e.computeIsLessVisible=function(f,S){return f&&S};
_.e.observeCollapsedHeightAndMaxLines=function(){var f=this.collapsedHeight,S=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.hO(this.hostElement,{"--ytd-expander-max-lines":""+S,"--ytd-expander-collapsed-height":""}):_.hO(this.hostElement,{"--ytd-expander-collapsed-height":f+"px","--ytd-expander-max-lines":""})};
_.e.handleMoreTap=function(f){this.disableToggle||(_.ew(this.hostElement,"yt-expander-more-tapped"),this.toggle(f,!0))};
_.e.handleLessTap=function(f){_.ew(this.hostElement,"yt-expander-less-tapped");this.toggle(f,!1)};
_.e.initChildrenObserver=function(){var f=this;this.observer=new MutationObserver(function(){f.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.e.childrenChanged=function(){var f=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){Ra(function(){f.canToggleJobId=0;f.calculateCanCollapse()})}))};
_.e.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};
_.e.detachObserver=function(){this.observer&&this.observer.disconnect()};
_.e.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AW("collapsed-changed",this.collapsed))};
_.e.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AW("is-toggled-changed",this.isToggled))};
_.e.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AW("can-toggle-changed",this.canToggle))};
_.y3.Object.defineProperties(Ur.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
Ur.prototype.canToggleChangedForBinding=Ur.prototype.canToggleChangedForBinding;Ur.prototype.isToggledChangedForBinding=Ur.prototype.isToggledChangedForBinding;Ur.prototype.collapsedChangedForBinding=Ur.prototype.collapsedChangedForBinding;Ur.prototype.observeCollapsedHeightAndMaxLines=Ur.prototype.observeCollapsedHeightAndMaxLines;Ur.prototype.onIronResize=Ur.prototype.onIronResize;Ur.prototype.reversedChanged=Ur.prototype.reversedChanged;Ur.prototype.toggledChanged=Ur.prototype.toggledChanged;
Ur.prototype.alwaysToggleableChanged=Ur.prototype.alwaysToggleableChanged;_.N([_.r(_.Ld),_.Z("design:type",Object)],Ur.prototype,"ironResizableBehavior",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Ur.prototype,"alignAuto",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Ur.prototype,"collapsed",void 0);_.N([_.n(),_.Z("design:type",Object)],Ur.prototype,"isToggled",void 0);_.N([_.n(),_.Z("design:type",Object)],Ur.prototype,"alwaysCollapsed",void 0);
_.N([_.n(),_.Z("design:type",Object)],Ur.prototype,"canToggle",void 0);_.N([_.n(),_.Z("design:type",Object)],Ur.prototype,"collapsedHeight",void 0);_.N([_.n(),_.Z("design:type",Object)],Ur.prototype,"disableToggle",void 0);_.N([_.n(),_.Z("design:type",Object)],Ur.prototype,"alwaysToggleable",void 0);_.N([_.n(),_.Z("design:type",Object)],Ur.prototype,"reversed",void 0);_.N([_.n(),_.Z("design:type",Number)],Ur.prototype,"maxNumberOfLines",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.Z("design:type",Object)],Ur.prototype,"shouldUseNumberOfLines",void 0);_.N([_.n(),_.Z("design:type",Object)],Ur.prototype,"recomputeOnResize",void 0);_.N([_.vF("#content"),_.Z("design:type",HTMLDivElement)],Ur.prototype,"content",void 0);_.N([_.HF("alwaysToggleable"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ur.prototype,"alwaysToggleableChanged",null);
_.N([_.HF("isToggled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ur.prototype,"toggledChanged",null);_.N([_.k("canToggleJobId"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ur.prototype,"isResetting",null);_.N([_.JO("reversed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ur.prototype,"reversedChanged",null);
_.N([_.Vg("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ur.prototype,"onIronResize",null);_.N([_.JO("maxNumberOfLines","collapsedHeight"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ur.prototype,"observeCollapsedHeightAndMaxLines",null);_.N([_.JO("collapsed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ur.prototype,"collapsedChangedForBinding",null);
_.N([_.JO("isToggled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ur.prototype,"isToggledChangedForBinding",null);_.N([_.JO("canToggle"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ur.prototype,"canToggleChangedForBinding",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-expander"})],Ur);
_.p(Ur,"ytd-expander",function(){if(oF7!==void 0)return oF7;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return oF7=f},{mode:1});var Ct=function(){return _.I.apply(this,arguments)||this};
_.q(Ct,_.I);Ct.prototype.computeIsCarousel=function(f){return!!f.isCarousel};
Ct.prototype.observeLightsourcePalette=function(){var f,S=(f=this.data)==null?void 0:f.vibrantsourceColorPaletteData;S&&_.n9(this.hostElement,S)};
Ct.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
Ct.prototype.observeLightsourcePalette=Ct.prototype.observeLightsourcePalette;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Ct.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Ct.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Ct.prototype,"data",void 0);_.N([_.n({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ct.prototype,"isCarousel",void 0);
_.N([_.JO("data.vibrantsourceColorPaletteData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ct.prototype,"observeLightsourcePalette",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],Ct);
_.p(Ct,"ytd-media-upsell-renderer",function(){if(fjL!==void 0)return fjL;var f=document.createElement("template");_.Y(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="EXPAND" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="COLLAPSE" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return fjL=f},{mode:2});var SM6;var pt=function(){var f=_.I.apply(this,arguments)||this;f.JSC$12904_playerEvents=new Map;f.listeningToPlayer=!1;f.startX=0;f.active=!1;f.shouldShowButtons=_.K("web_buttons_hidden_killswitch");f.isHighlighted=!1;f.useHighlightStyling=_.K("web_enable_deeper_metadata_highlight_styling");f.modern=_.K("kevlar_modern_sd");f.enableProblemWalkthrough=_.K("problem_walkthrough_sd");return f};
_.q(pt,_.I);_.e=pt.prototype;
_.e.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}}}}}};
_.e.created=function(){this.JSC$12904_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.e.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.Fc(this,this.onRepeatButtonToggle));_.K("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.Fc(this,this.onActiveUpdate))};
_.e.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.Fc(this,this.onRepeatButtonToggle));_.K("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.Fc(this,this.onActiveUpdate))};
_.e.onDataChanged=function(){this.removePlayerListeners()};
_.e.onColorPaletteChange=function(){var f={},S;if(_.xG()==="USER_INTERFACE_THEME_DARK"&&((S=this.data)==null?0:S.darkColorPalette)){var B=this.data.darkColorPalette;f["--ytd-macro-markers-list-item-background-color"]=_.AK(this.get("section2Color",B))}else{var G;_.xG()==="USER_INTERFACE_THEME_LIGHT"&&((G=this.data)==null?0:G.lightColorPalette)&&(B=this.data.lightColorPalette,f["--ytd-macro-markers-list-item-background-color"]=_.AK(this.get("section3Color",B)))}B?(f["--ytd-macro-markers-list-item-title-color"]=
_.AK(this.get("primaryTitleColor",B)),f["--ytd-macro-markers-list-item-secondary-color"]=_.AK(this.get("secondaryTitleColor",B)),f["--ytd-macro-markers-list-item-timestamp-background-color"]=_.AK(this.get("section1Color",B)),this.customButtonProperties={customColors:{color:_.AK(this.get("primaryTitleColor",B))}},this.useColorSampling=!0):(f["--ytd-macro-markers-list-item-background-color"]="initial",f["--ytd-macro-markers-list-item-title-color"]="initial",f["--ytd-macro-markers-list-item-secondary-color"]=
"initial",f["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.hO(this.hostElement,f)};
_.e.onEndpointMouseDown=function(f){this.startX=f.clientX};
_.e.onEndpointClick=function(f){var S=this,B,G,g;return _.R(function(b){if(b.nextAddress==1){if(S.startX!==f.clientX)return f.preventDefault(),b.return();S.data&&S.ytRendererBehavior.logExplicitClick(S.data);if(!S.seekWithAnimationOnClick)return b.jumpTo(0);if(f.button!==0||f.shiftKey||f.altKey||f.metaKey||f.ctrlKey||_.lF(_.ct(f),S.hostElement,["BUTTON".toString()]))return b.return();f.stopPropagation();f.preventDefault();return S.data?_.h(b,_.GG().getPlayerPromise(),3):b.return()}B=b.yieldResult;
g=(G=_.H(S.data.onTap,_.t2))==null?void 0:G.startTimeSeconds;g!==void 0&&B.seekToTimeWithAnimation(g*1E3,_.ac(S.data.title));_.TT(b)})};
_.e.computeLayout=function(f){return f};
_.e.computeIsHighlighted=function(f){return!!f};
_.e.computeCarouselType=function(f){return f};
_.e.hideModernCarousel=function(f){return this.modern&&this.hideThumbnail(f)};
_.e.hideThumbnail=function(f){return this.enableProblemWalkthrough&&f!==null&&f==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.e.onRepeatButtonToggle=function(f){var S=this;f.detail.toggled&&_.GG().getPlayerPromise().then(function(B){S.ytPlayerListenerBehavior.listenToPlayerEvents(B,S.JSC$12904_playerEvents);S.listeningToPlayer=!0})};
_.e.onLoopRangeChange=function(f){var S=_.m9(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(S){var B=S.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",S.polymerController.data);if(B){var G=Number(B.endTimeMs);if(Number(B.startTimeMs)!==(f==null?void 0:f.startTimeMs)||G!==(f==null?void 0:f.endTimeMs))S.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.e.removePlayerListeners=function(){var f=this;this.listeningToPlayer&&_.GG().getPlayerPromise().then(function(S){f.ytPlayerListenerBehavior.unlistenFromPlayerEvents(S,f.JSC$12904_playerEvents);f.listeningToPlayer=!1})};
_.e.onActiveUpdate=function(f){this.active=f.detail.active};
pt.prototype.onColorPaletteChange=pt.prototype.onColorPaletteChange;pt.prototype.onDataChanged=pt.prototype.onDataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],pt.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],pt.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Nr.YtPlayerListenerBehavior),_.Z("design:type",_.Mr)],pt.prototype,"ytPlayerListenerBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],pt.prototype,"data",void 0);_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],pt.prototype,"useCustomColors",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],pt.prototype,"active",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],pt.prototype,"shouldShowButtons",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.Z("design:type",String)],pt.prototype,"layout",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.Z("design:type",Object)],pt.prototype,"isHighlighted",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],pt.prototype,"useHighlightStyling",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],pt.prototype,"modern",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],pt.prototype,"enableProblemWalkthrough",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.Z("design:type",String)],pt.prototype,"carouselType",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],pt.prototype,"useColorSampling",void 0);_.N([_.n(),_.Z("design:type",Boolean)],pt.prototype,"seekWithAnimationOnClick",void 0);_.N([_.n(),_.Z("design:type",Object)],pt.prototype,"customButtonProperties",void 0);
_.N([_.vF("#repeat-button"),_.Z("design:type",HTMLElement)],pt.prototype,"repeatButton",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pt.prototype,"onDataChanged",null);_.N([_.JO("data.lightColorPalette","data.darkColorPalette"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pt.prototype,"onColorPaletteChange",null);_.N([_.C({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],pt);
_.p(pt,"ytd-macro-markers-list-item-renderer",function(){if(SM6!==void 0)return SM6;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return SM6=f},{mode:1});var BJi;var Gvm;var AH=function(){var f=_.I.apply(this,arguments)||this;f.modernTypography=_.K("web_modern_typography");return f};
_.q(AH,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],AH.prototype,"ytRendererBehavior",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],AH.prototype,"modernTypography",void 0);_.N([_.n(),_.Z("design:type",Object)],AH.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],AH);
_.p(AH,"ytd-title-and-button-list-header-renderer",function(){if(Gvm!==void 0)return Gvm;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Gvm=f},{mode:1});var gFv;var es$=new _.Sn("BUTTON_RENDERER_WIZ_TOKEN"),bEv=new _.Sn("BUTTON_RENDERER_TOKEN");_.Nu=_.oS(function(f){var S=_.oy().resolve(_.fN(es$));if(S)return _.T(S,Object.assign({},f));var B=_.oy().resolve(bEv);return B?_.T(Rdj,null,function(){return _.T(y0,null,function(){var G,g,b,z,X,w,F,V,J,P,d,Q;return void B(f.data(),{onButtonClickCallback:f.onButtonClickCallback,shouldShowIcons:(G=f.shouldShowIcons)==null?void 0:G.call(f),icon:(g=f.icon)==null?void 0:g.call(f),processAllEndpoints:(b=f.processAllEndpoints)==null?void 0:b.call(f),preventDefault:(z=f.preventDefault)==null?void 0:z.call(f),
stopPropagation:(X=f.stopPropagation)==null?void 0:X.call(f),disableButtonRendererClickHandling:(w=f.disableButtonRendererClickHandling)==null?void 0:w.call(f),className:(F=f.className)==null?void 0:F.call(f),buttonOverrides:(V=f.buttonOverrides)==null?void 0:V.call(f),forceModernIconButton:(J=f.forceModernIconButton)==null?void 0:J.call(f),isSubscribe:(P=f.isSubscribe)==null?void 0:P.call(f),alignByText:(d=f.alignByText)==null?void 0:d.call(f),forceDisabled:(Q=f.forceDisabled)==null?void 0:Q.call(f)})})}):
_.T(_.gg,null)},"ba");
_.Nu.idomCompat=!0;var m38=_.oS(function(f){var S=f.data,B=_.cF(f.useSquareAspectRatio,!1);return _.T("dismissed-mini-game-card-view-model",null,_.T(_.v,{cond:function(){var G,g;return(G=S().responseText)==null?void 0:(g=G.runs)==null?void 0:g.length},
then:function(){var G={};return _.T("div",{class:_.Pw("yt-mini-game-card-view-model__dismissed-card",(G["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!B()},G["yt-mini-game-card-view-model--dismissed-square-card"]=B,G))},_.T("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.T(_.v,{cond:function(){return S().responseText.runs[0].text},
then:function(g){return _.T("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:g},g)}}),_.T(_.xK,{data:function(){return S().buttons}},{buttonRenderer:_.Nu,
buttonViewModel:_.I8})))}}))},"ca");var TJo=_.oS(function(f){f=_.lu(f,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var S=f.data,B=f.useFullWidth,G=f.isDesktopWeb,g=f.addSearchResultTopMargin,b=function(){return S().layout},z=function(){return S().title},X=function(){return S().metadataText?S().metadataText:S().genre},w=function(){return S().channelName},F=function(){return S().image},V=function(){return S().colorPalette},J=function(){return S().actionButton},P=function(){return S().overflowButton},
d=function(){return S().avatar},Q=function(){var A={};
A=_.Pw("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(A["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return G()},A));
return _.T("div",{class:A},_.T(zsv,{imageData:F,colorPalette:V}),_.T(Rsm,{onTap:function(){return S().onTap},
imageData:F,accessibilityText:function(){return S().accessibilityText},
overlayBadgeText:function(){return S().overlayBadgeText},
iconName:function(){return S().iconName},
unplayableInlinePlaybackIconName:function(){return S().unplayableInlinePlaybackIconName},
isDesktopWeb:G}),_.T(_.v,{cond:function(){return!G()},
then:function(){return _.T(_.gg,null,_.T(XTX,{layout:b,colorPalette:V,isDesktopWeb:G,overflowButton:P,avatar:d,onTap:function(){return S().onTap},
genre:X,title:z,channelName:w,entityRedesignExperiments:function(){return S().entityRedesignExperiments}}),_.T(Mu,{actionButton:J}))}}))},x=function(){var A={};
A=_.Pw((A["yt-mini-game-card-view-model--search-result-desktop"]=function(){return G()},A["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!G()},A["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return g()},A));
return _.T("div",{class:A},Q(),_.T(wTm,{description:function(){return S().description},
isDesktopWeb:G,title:z,genre:X,onTap:function(){return S().onTap},
actionButton:J,overflowButton:P,avatar:d,channelName:w}))},E=function(){var A=function(){var M;
return(M=S().entityRedesignExperiments)==null?void 0:M.changePlayablesLayoutWithCta},t={};
t=_.Pw("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(t["yt-mini-game-card-view-model--change-layout-with-cta"]=function(){return A()},t["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return G()},t["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return G()&&S().width===135},t["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return G()},t["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=
function(){return!A()&&G()&&S().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},t["yt-mini-game-card-view-model--big-metadata-font"]=function(){return S().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},t["yt-mini-game-card-view-model--use-full-width"]=function(){return B()},t["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!J()},t));
return _.T("div",{class:t},_.T(_.v,{cond:function(){return A()},
then:function(){return _.T(_.gg,null,_.T(hs8,{entityRedesignExperiments:function(){return S().entityRedesignExperiments},
colorPalette:V,isDesktopWeb:G,onTap:function(){return S().onTap},
accessibilityText:function(){return S().accessibilityText},
overlayBadgeText:function(){return S().overlayBadgeText},
iconName:function(){return S().iconName},
unplayableInlinePlaybackIconName:function(){return S().unplayableInlinePlaybackIconName},
actionButton:J,imageData:F}),_.T(XTX,{layout:b,colorPalette:V,isDesktopWeb:G,overflowButton:P,avatar:d,onTap:function(){return S().onTap},
genre:X,title:z,channelName:w,entityRedesignExperiments:function(){return S().entityRedesignExperiments}}),_.T(_.v,{cond:function(){return!!A()===!1&&J()},
then:function(){return _.T(Mu,{actionButton:J})}}))},
else:function(){return _.T(_.gg,null,_.T(zsv,{imageData:F,colorPalette:V}),_.T(Rsm,{onTap:function(){return S().onTap},
imageData:F,accessibilityText:function(){return S().accessibilityText},
overlayBadgeText:function(){return S().overlayBadgeText},
iconName:function(){return S().iconName},
unplayableInlinePlaybackIconName:function(){return S().unplayableInlinePlaybackIconName},
isDesktopWeb:G}),_.T(XTX,{layout:b,colorPalette:V,isDesktopWeb:G,overflowButton:P,avatar:d,onTap:function(){return S().onTap},
genre:X,title:z,channelName:w,entityRedesignExperiments:function(){return S().entityRedesignExperiments}}),_.T(Mu,{actionButton:J}))}}))},U=function(){var A={};
A=_.Pw("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(A["yt-mini-game-card-view-model--square-card-desktop"]=function(){return G()},A["yt-mini-game-card-view-model--use-full-width"]=function(){return B()},A));
return _.T("div",{class:A},_.T(Rsm,{onTap:function(){return S().onTap},
imageData:F,accessibilityText:function(){return S().accessibilityText},
overlayBadgeText:function(){return S().overlayBadgeText},
iconName:function(){return S().iconName},
unplayableInlinePlaybackIconName:function(){return S().unplayableInlinePlaybackIconName},
isDesktopWeb:G}),_.T(XTX,{layout:b,colorPalette:V,isDesktopWeb:G,overflowButton:P,avatar:d,onTap:function(){return S().onTap},
genre:X,title:z,channelName:w,entityRedesignExperiments:function(){return S().entityRedesignExperiments}}))};
return _.T("mini-game-card-view-model",{class:f.className},_.T(_.qp,null,_.T(_.i0,{when:function(){return b()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return E()}),_.T(_.i0,{when:function(){return b()==="MINI_APP_LAYOUT_SQUARE"}},function(){return U()}),_.T(_.i0,{when:function(){return b()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return x()})))},"da");
TJo.idomCompat=!0;var Mu=_.oS(function(f){var S=_.cF(f.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.T(_.xK,{data:f.actionButton},{buttonViewModel:function(B){return _.T("div",{class:S},_.T(_.I8,{data:B.data}))}})},"ea"),Rsm=_.oS(function(f){var S=f.onTap;
var B=f.imageData;var G=f.accessibilityText;var g=f.overlayBadgeText;var b=f.iconName;var z=f.unplayableInlinePlaybackIconName;f=f.isDesktopWeb;return _.T(_.XD,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:S},_.T(_.f9,{data:B,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(G==null?void 0:G())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.T(FFN,{overlayBadgeText:g,iconName:b,unplayableInlinePlaybackIconName:z,isDesktopWeb:f}))},"fa"),FFN=_.oS(function(f){var S=f.overlayBadgeText;
var B=f.iconName;var G=f.unplayableInlinePlaybackIconName;var g=f.isDesktopWeb;return _.T("div",{class:"yt-mini-game-card-view-model__badge-container"},_.T(_.v,{cond:B,then:function(b){return _.T("div",{class:"yt-mini-game-card-view-model__badge"},_.T("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.T(_.Y8,{icon:b,className:"yt-mini-game-card-view-model__icon"}),_.T("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},S)))}}),_.T(_.v,{cond:function(){return!B()&&
S()},
then:function(){return _.T("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},S)}}),_.T(_.v,{cond:function(){return G()&&g()},
then:function(){return _.T("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.T(_.Y8,{icon:G,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"ga"),zsv=_.oS(function(f){var S=f.colorPalette;
var B=f.imageData;var G=function(){return S().vibrantColorPalette?S().vibrantColorPalette.section2Color:S().sectionTwoColor};
return _.T(_.gg,null,_.T("div",{class:"yt-mini-game-card-view-model__background-base",style:_.Qj({"background-color":function(){return No(G(),"1")}})}),_.T("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.Qj({"background-image":function(){return"url("+B().sources[0].url+")"}})}),_.T("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.Qj({background:function(){return"linear-gradient(180deg,\n    "+No(G(),".8")+" 0%,\n    "+No(G(),".4")+" 25%,\n    "+No(S().vibrantColorPalette?S().vibrantColorPalette.section4Color:S().sectionFourColor,".8")+" 100%)"}})}))},"ha"),XTX=_.oS(function(f){var S=f.layout;
var B=f.colorPalette;var G=f.overflowButton;var g=f.avatar;var b=f.onTap;var z=f.title;var X=f.channelName;var w=f.entityRedesignExperiments;var F=f.genre;var V=function(){var P;return S()!=="MINI_APP_LAYOUT_SQUARE"&&((P=B())==null?0:P.textPrimaryColor)?"color: "+No(B().textPrimaryColor,".7"):""},J=function(){var P;
return w==null?void 0:(P=w())==null?void 0:P.changePlayablesLayoutWithCta};
return _.T("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.T(_.v,{cond:g,then:function(){return _.T("div",{class:"yt-mini-game-card-view-model__avatar"},_.T(_.xK,{data:g},{avatarViewModel:_.Ya}))}}),_.T(_.XD,{command:b,
className:"yt-mini-game-card-view-model__metadata-details"},_.T("h3",{class:"yt-mini-game-card-view-model__title",title:z},z),_.T(_.v,{cond:g,then:function(){return _.T("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.T("span",{class:"yt-mini-game-card-view-model__genre",title:X,style:V},X),_.T("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:V},F))},
else:function(){return _.T(_.v,{cond:J,then:function(){return _.T("span",{class:"yt-mini-game-card-view-model__genre",title:F},F)},
else:function(){return _.T("span",{class:"yt-mini-game-card-view-model__genre",title:F,style:V},F)}})}})),_.T("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.T(_.xK,{data:G},{buttonViewModel:function(P){var d=P.data;
return _.T(_.I8,{data:function(){return Object.assign({},d(),{customFontColor:J()?void 0:d().customFontColor})}})}})))},"ia"),hs8=_.oS(function(f){var S=f.entityRedesignExperiments;
var B=f.colorPalette;var G=f.isDesktopWeb;var g=f.onTap;var b=f.accessibilityText;var z=f.overlayBadgeText;var X=f.iconName;var w=f.unplayableInlinePlaybackIconName;var F=f.actionButton;f=f.imageData;var V=function(){var J;return S==null?void 0:(J=S())==null?void 0:J.changePlayablesLayoutWithCta};
return _.T("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.T(zsv,{imageData:f,colorPalette:B}),_.T(Rsm,{onTap:g,imageData:f,accessibilityText:b,overlayBadgeText:z,iconName:X,unplayableInlinePlaybackIconName:w,isDesktopWeb:G}),_.T(_.v,{cond:function(){return(V==null?void 0:V())&&(F==null?void 0:F())},
then:function(){return _.T(Mu,{actionButton:F})}}))},"ja"),wTm=_.oS(function(f){var S=f.description;
var B=f.isDesktopWeb;var G=f.title;var g=f.genre;var b=f.onTap;var z=f.actionButton;var X=f.overflowButton;var w=f.avatar;f=f.channelName;var F={};F=_.Pw("yt-mini-game-card-view-model--search-result-metadata-wrapper",(F["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=B,F["yt-mini-game-card-view-model--show-unplayable-on-hover"]=B,F["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!B()},F));
var V={};V=_.Pw("yt-mini-game-card-view-model__search-result-info-row",(V["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!B()},V));
return _.T("div",{class:F},_.T("div",{class:V},_.T(_.XD,{command:b,className:"yt-mini-game-card-view-model__metadata-details"},_.T("h3",{class:"yt-mini-game-card-view-model__title",title:G},G),_.T("span",{class:"yt-mini-game-card-view-model__genre",title:g},g)),_.T(Mu,{actionButton:z,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.T("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.T(_.xK,{data:X},{buttonViewModel:_.I8}))),_.T("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.T("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.T("div",{class:"yt-mini-game-card-view-model__avatar"},_.T(_.xK,{data:w},{avatarViewModel:function(J){var P=J.data;return _.T(_.Ya,{data:function(){return Object.assign({},P(),{avatarImageSize:B()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.T(_.XD,{command:b,
className:"yt-mini-game-card-view-model__description"},_.T("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},f)),_.T(_.XD,{command:b,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.T("div",null)))),_.T(_.v,{cond:B,then:function(){return _.T(_.XD,{command:b,className:"yt-mini-game-card-view-model__description"},S)}}))},"ka");_.eq(TJo,"mini-game-card-view-model",{props:{data:_.W4,className:_.W4,useFullWidth:_.W4,isDesktopWeb:_.W4,addSearchResultTopMargin:_.W4}});_.eq(m38,"dismissed-mini-game-card-view-model",{props:{data:_.W4,useSquareAspectRatio:_.W4}});var Zy=function(){var f=_.I.apply(this,arguments)||this;f.isSearch=!1;f.isRichGrid=!1;return f};
_.q(Zy,_.I);_.e=Zy.prototype;_.e.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.e.dismissibleItemOnYtServiceRequestSent=function(f,S){S.actions&&this.dismissibleItemProcessActions(f,S.actions)};
_.e.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.e.dataChanged=function(){this.dismissibleItemReset()};
_.e.dismissibleItemProcessActions=function(f,S){for(var B=0;B<S.length;B++){var G=S[B];_.H(G,_.$f)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.H(G,_.$f)),f.stopPropagation())}};
_.e.dismissibleItemHandleReplaceEnclosingAction=function(f){this.dismissedRenderer=f.item;this.isDismissed=!0};
_.y3.Object.defineProperties(Zy.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var f;return!!this.data&&!((f=this.dismissedRenderer)==null?0:f.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.dismissedRenderer)==null||!f.notificationMultiActionRenderer)}}});
Zy.prototype.dataChanged=Zy.prototype.dataChanged;Zy.prototype.dismissibleItemOnRequestSent=Zy.prototype.dismissibleItemOnRequestSent;Zy.prototype.dismissibleItemOnYtServiceRequestSent=Zy.prototype.dismissibleItemOnYtServiceRequestSent;_.N([_.n(),_.Z("design:type",Object)],Zy.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Zy.prototype,"isSearch",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Zy.prototype,"isDismissed",void 0);
_.N([_.n(),_.Z("design:type",Object)],Zy.prototype,"dismissedRenderer",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Zy.prototype,"isRichGrid",void 0);_.N([_.k("data.layout"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Zy.prototype,"useSquareAspectRatio",null);_.N([_.k("data","dismissedRenderer"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Zy.prototype,"showCard",null);
_.N([_.k("data","dismissedRenderer"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Zy.prototype,"showDismissed",null);_.N([_.Vg("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.N1]),_.Z("design:returntype")],Zy.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.N([_.Vg("yt-service-request-sent-button-renderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Zy.prototype,"dismissibleItemOnRequestSent",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Zy.prototype,"dataChanged",null);_.N([_.nP({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],Zy);
_.p(Zy,"ytd-mini-game-card-view-model",function(){if(gFv!==void 0)return gFv;var f=document.createElement("template");_.Y(f,'\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>');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return gFv=f},{mode:_.X_("kevlar_poly_si_batch_j081")?1:2});var V4N;var JPj;var tH=function(){return _.WS.apply(this,arguments)||this};
_.q(tH,_.WS);tH.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
tH.prototype.getContinuationUrl=function(f){var S={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(S.itct=this.data.clickTrackingParams);return _.tA(f,S)};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],tH.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],tH.prototype,"data",void 0);_.N([_.nP({is:"yt-reload-continuation",noInjection:!0})],tH);var PM$;var vFj;var uQ=function(){var f=_.I.apply(this,arguments)||this;f.notificationData={};return f};
_.q(uQ,_.I);_.e=uQ.prototype;_.e.isMenuExpanded=function(f){return f&&f.length<=1?"undefined":"false"};
_.e.dataChanged_=function(){this.selected=void 0;var f=this.computeSelectedIndex_(this.data);f>=0&&(this.selected=f);f=this.data&&this.data.length>1;_.Rl(this.hostElement,"has-items",f);_.m9(this.hostElement).querySelector("#label").tabIndex=f?0:-1};
_.e.onDropdownOpen=function(){var f=_.xc();if(this.parentTrackingParams&&this.data){var S=_.Ye(this.parentTrackingParams);this.data.forEach(function(B){f&&S&&B.trackingParams&&(B=_.Ye(B.trackingParams),_.Af(f,S,B),_.Zu(f,[B]))})}else this.parentTrackingParams||_.Lg(new _.dO("No parent tracking params passed in for yt-dropdown-menu."))};
_.e.hasNotification=function(f){var S;if(f.targetId&&((S=this.notificationData)==null?0:S.targetId)){var B;return f.targetId===((B=this.notificationData)==null?void 0:B.targetId)}};
_.e.computeSelectedIndex_=function(f){if(f)for(var S=0,B=f.length;S<B;S++)if(f[S].selected)return S;return-1};
_.e.computeLabel_=function(f){return this.data&&f!=void 0?this.data[f].title:""};
_.e.computeShowIcon_=function(f,S){return!S&&!!f};
_.e.computeVerticalOffset_=function(f){return f?36:0};
_.e.computeEndpoint_=function(f){return f.endpoint||f.navigationEndpoint};
_.e.onLabelClick_=function(f){this.data&&this.data.length<=1?f.stopPropagation():this.menuExpanded="true"};
_.e.onIronActivate_=function(f){f=f.detail.item;var S=_.m9(this.hostElement).querySelector("#repeat").itemForElement(f);if(S&&S.trackingParams){var B=_.xc(),G=_.Ye(S.trackingParams);B&&_.uW(B,G)}if(S&&S.serviceEndpoint)_.K("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(S.serviceEndpoint):_.RD(this.hostElement,[S.serviceEndpoint]),_.ew(this.hostElement,"yt-playlist-reloading");else a:{if((S=f.querySelector("yt-supported-renderers"))&&
(S=S.rendererElement)&&S.is=="yt-reload-continuation"){S.trigger();break a}(f=f.querySelector("yt-reload-continuation"))&&f.trigger()}};
_.e.onTap_=function(f){f.preventDefault()};
_.e.onItemTap_=function(f){this.ytEndpointBehavior.onEndpointTap_(f)};
_.e.onLinkFocus_=function(f){try{var S=f.target}catch(G){}if(S){var B=S.querySelector("tp-yt-paper-item");B&&_.NJ(this,"focus",function(){B.focus()})}};
_.e.onMenuClose_=function(){this.menuExpanded="false"};
_.e.isLabelIconActive_=function(f){return f==="true"};
_.e.computeHasSubtitle_=function(f){return!!f};
_.e.computeHrefForItem_=function(f){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(f))};
_.e.updateSelectedFromBinding=function(f){this.selected=f.detail.value};
_.y3.Object.defineProperties(uQ.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
uQ.prototype.onMenuClose_=uQ.prototype.onMenuClose_;uQ.prototype.onTap_=uQ.prototype.onTap_;uQ.prototype.onIronActivate_=uQ.prototype.onIronActivate_;uQ.prototype.onDropdownOpen=uQ.prototype.onDropdownOpen;uQ.prototype.dataChanged_=uQ.prototype.dataChanged_;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],uQ.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.Pl.YtEndpointBehavior),_.Z("design:type",Object)],uQ.prototype,"ytEndpointBehavior",void 0);
_.N([_.n(),_.Z("design:type",Array)],uQ.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],uQ.prototype,"parentTrackingParams",void 0);_.N([_.n(),_.Z("design:type",Object)],uQ.prototype,"selected",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],uQ.prototype,"useLabel",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],uQ.prototype,"useComputedAriaLabel",void 0);_.N([_.n(),_.Z("design:type",String)],uQ.prototype,"icon",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",String)],uQ.prototype,"iconLabel",void 0);_.N([_.n(),_.Z("design:type",String)],uQ.prototype,"ariaLabel",void 0);_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],uQ.prototype,"disabled",void 0);_.N([_.n({computed:"isMenuExpanded(data)"}),_.Z("design:type",String)],uQ.prototype,"menuExpanded",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],uQ.prototype,"closeOnActivate",void 0);
_.N([_.n({reflectToAttribute:!0,value:_.K("web_modern_buttons")}),_.Z("design:type",Boolean)],uQ.prototype,"modernButtons",void 0);_.N([_.n(),_.Z("design:type",Object)],uQ.prototype,"notificationData",void 0);_.N([_.k("ariaLabel, selected"),_.n(),_.Z("design:type",String),_.Z("design:paramtypes",[])],uQ.prototype,"computedAriaLabel",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],uQ.prototype,"dataChanged_",null);
_.N([_.Vg("paper-dropdown-open"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],uQ.prototype,"onDropdownOpen",null);_.N([_.Vg("iron-activate"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],uQ.prototype,"onIronActivate_",null);_.N([_.Vg("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],uQ.prototype,"onTap_",null);
_.N([_.Vg("iron-overlay-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],uQ.prototype,"onMenuClose_",null);_.N([_.nP({is:"yt-dropdown-menu",disableElementRegistration:!0})],uQ);
_.p(uQ,"yt-dropdown-menu",function(){if(vFj===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;PM$===void 0&&(PM$=document.createElement("template"));var G=PM$;B.call(S,G.content.cloneNode(!0),f.content.firstChild);vFj=f}f=vFj;return f},{mode:2});var aA=function(){var f=_.I.apply(this,arguments)||this;f.hasNotification=!1;return f};
_.q(aA,_.I);aA.prototype.computeId=function(f){return f};
aA.prototype.computeHorizontalAlign=function(f){return f?"right":"left"};
aA.prototype.computeAccessibilityLabel=function(f){var S,B;return((S=f.accessibility)==null?void 0:(B=S.accessibilityData)==null?void 0:B.label)||null};
aA.prototype.notificationDataChanged=function(){var f;this.hasNotification=!!this.notificationData&&!((f=this.data)==null?0:f.icon)};
aA.prototype.notificationDataChanged=aA.prototype.notificationDataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],aA.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Ai.YtLiveChatTooltipTargetingBehavior),_.Z("design:type",Object)],aA.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],aA.prototype,"data",void 0);_.N([_.n({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Z("design:type",String)],aA.prototype,"id",void 0);
_.N([_.n({value:!1}),_.Z("design:type",Boolean)],aA.prototype,"isRightAligned",void 0);_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],aA.prototype,"disabled",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],aA.prototype,"closeOnActivate",void 0);_.N([_.n(),_.Z("design:type",Object)],aA.prototype,"notificationData",void 0);_.N([_.n(),_.Z("design:type",Object)],aA.prototype,"hasNotification",void 0);
_.N([_.n({value:!1}),_.Z("design:type",Boolean)],aA.prototype,"useComputedAriaLabel",void 0);_.N([_.JO("notificationData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],aA.prototype,"notificationDataChanged",null);_.N([_.nP({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],aA);
_.p(aA,"yt-sort-filter-sub-menu-renderer",function(){if(JPj===void 0){var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;V4N===void 0&&(V4N=document.createElement("template"));var G=V4N;B.call(S,G.content.cloneNode(!0),f.content.firstChild);JPj=f}f=JPj;return f},{mode:2});_.Su(s7W);
var KFN=_.oS(function(f){var S=f.children;var B=f.className;var G=f.style;var g=f.role;var b=f.ariaSelected;var z=f.ariaLabel;var X=f.ariaHidden;var w=f.ariaLabelledby;var F=f.ariaDescribedby;var V=f.command;var J=f.elementsCommand;var P=f.forceNewState;var d=f.tabIdentifier;var Q=f.target;var x=f.tabIndex;var E=f.stopPropagation;f=_.vW(function(){var U=_.AZ({innertubeCommand:V==null?void 0:V(),elementsCommand:J==null?void 0:J(),forceNewState:P==null?void 0:P(),stopPropagation:(E==null?void 0:E())!==
!1});U||(U={});U["aria-hidden$"]=X==null?void 0:X();var A;U.tabindex$=(A=x==null?void 0:x())!=null?A:U.tabindex$;var t;U["force-new-state$"]=(t=P==null?void 0:P())!=null?t:U["force-new-state$"];var M;U.role$=(M=g==null?void 0:g())!=null?M:U.role$;var a;U["aria-hidden$"]=(a=X==null?void 0:X())!=null?a:U["aria-hidden$"];var l;U.target$=(l=Q==null?void 0:Q())!=null?l:U.target$;return U},void 0,"SU0Mnc");
return _.T(_.XD,{aTagConfig:f,className:B,style:G,ariaLabel:z,ariaLabelledby:w,ariaDescribedby:F,ariaSelected:b,tabIdentifier:d},S)},"la");var d3$=_.dm(D3N);_.Su(D3N);_.eq(d3$,"place-data-view-model",{props:{data:_.W4}});var iEg=new _.Sn("INLINE_PLAYBACK_HOOK_TOKEN");var HE$=function(f){this.setActiveSlideIndex=f;this.jobIds=[];this.isSlideshowPlaying=!1},Q7X=function(f,S){f.isSlideshowPlaying||(f.isSlideshowPlaying=!0,qMj(f),$3m(f,S,0))},qMj=function(f){_.Xd(_.xJ,function(){f.setActiveSlideIndex(0)},1)},$3m=function(f,S,B){f.jobIds.push(_.Xd(_.xJ,function(){var G=B<S-1?B+1:0;
f.setActiveSlideIndex(G);$3m(f,S,G)},1800))};var YMm=new _.Sn("IMAGE_ON_LOAD_HANDLER_TOKEN");var rPL=_.oS(function(f){return _.T("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.T(_.v,{cond:function(){var S;return(S=f.data())==null?void 0:S.thumbnail},
then:function(S){return _.T(_.f9,{data:S,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ma");_.j7$=_.oS(function(f){var S=f.data;var B=f.lockupExperiments;f={};return _.T("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.T("div",{class:_.Pw("ytThumbnailOverlayButtonViewModelButton",(f.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var G;return B&&((G=B())==null?void 0:G.useLegacySizedIconButton)},f))},_.T(_.xK,{data:function(){return S().overlayButton}},{buttonViewModel:function(G){return _.T(_.I8,{data:G.data,
buttonOverrides:function(){var g;return B&&((g=B())==null?0:g.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"na");
_.j7$.idomCompat=!0;var OEN=_.oS(function(f){return _.T("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.iF(function(S){S.preventDefault();return!1})},_.T(_.xK,{data:function(){return f.data().buttons}},{toggleButtonViewModel:function(S){return _.T("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.T(_.ER,{data:S.data}))}}))},"oa");
OEN.idomCompat=!0;var x3o=_.oS(function(f){var S=function(){var B;return((B=_.H(f.data().rendererContext,_.H1))==null?void 0:B.label)||""};
return _.T("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.T(_.v,{cond:function(){return f.data().image},
then:function(){return _.T("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.T(_.f9,{data:function(){return f.data().image},
alt:S}))}}),_.T(_.v,{cond:function(){return f.data().text},
then:function(){return _.T("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return f.data().text})}}))},"pa");_.ya=_.oS(function(f){var S=[],B=function(){var P,d;return $nj((P=f.width)==null?void 0:P.call(f),(d=f.height)==null?void 0:d.call(f))},G=_.oy().resolve(_.fN(YMm)),g=_.tE("yt-thumbnail-view-model",function(){S.push("elRef.value set");
var P;(P=f.playbackRef)==null||P.call(f,{thumbnailElRef:g,thumbnail:f.data().image,thumbnailOverlays:f.data().overlays,thumbnailSize:B()})});
_.j9(function(){S.push("onInit");_.Ov(function(){S.push("onCleanup")})});
var b=_.Uo(U3M),z=function(){var P,d;return(d=(P=f.aspectRatio)==null?void 0:P.call(f))!=null?d:0},X=function(){return(f.data().image?_.o4x(f.data().image):z())<=1&&z()===0},w=function(){return X()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},F=function(){g.value||_.Lg(new _.dO("Thumbnail elRef.value is null",S.join("\n")));
G&&g.value&&G(g.value)},V=function(){var P,d;
return((P=f.hovered)==null?void 0:P.call(f))&&B()!=="large"&&((d=f.data().overlays)==null?void 0:d.some(function(Q){return _.H(Q,HWi)}))},J={};
return _.T("yt-thumbnail-view-model",{class:_.Pw("yt-thumbnail-view-model",f.className,function(){return APQ(z())},function(){var P,d;
a:{var Q=B(),x=(P=f.disableRounding)==null?void 0:P.call(f);P=(d=f.isClip)==null?void 0:d.call(f);if(!x&&!P)switch(Q){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},(J["yt-thumbnail-view-model--cinematic"]=X,J)),
style:_.Qj({"background-color":function(){var P,d=X()?(P=f.data().backgroundColor)==null?void 0:P.lightTheme:void 0;return d?No(d,"1"):void 0}}),
el:g},_.T(_.v,{cond:X,then:function(){return _.T("div",{class:"yt-thumbnail-view-model__blurred-image"},_.T(_.f9,{data:function(){return f.data().image},
alt:"",contentMode:w,targetWidth:f.width,onload:F}))}}),_.T("div",{class:"yt-thumbnail-view-model__image"},_.T(_.f9,{data:function(){return f.data().image},
alt:"",contentMode:w,targetWidth:f.width,onload:F}),null),_.T(_.xK,{data:function(){return V()?void 0:f.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:U4m,thumbnailOverlayBadgeViewModel:function(P){return _.T(C$8,{data:P.data,thumbnailSize:B,isClip:f.isClip})},
thumbnailBottomOverlayViewModel:function(P){return _.T(ny8,{data:P.data,thumbnailSize:B,isClip:f.isClip})},
thumbnailOverlayFullViewModel:x3o,thumbnailOverlayButtonViewModel:function(P){return _.T(_.j7$,{data:P.data,lockupExperiments:f.lockupExperiments})}}),_.T(_.xK,{data:function(){var P;
return((P=f.hovered)==null?0:P.call(f))?f.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(P){return _.T(Qa,{data:P.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:OEN}),_.T(_.xK,{data:function(){var P;return((P=f.hovered)==null?0:P.call(f))&&b()?f.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:rPL}),_.T(_.v,{cond:f.isClip,then:function(){return _.T("div",{class:"yt-pinking"},_.T("svg",{class:"yt-pinking__pinking-left"},_.T("defs",null,_.T("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.T("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.T("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.T("svg",{class:"yt-pinking__pinking-right"},_.T("defs",null,_.T("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.T("polygon",{class:"yt-pinking__pinking",points:"4,0 0,4 4,8"}))),_.T("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"qa");
_.ya.idomCompat={callbacks:{playbackRef:!0}};var EFo=_.oS(function(f){var S=_.m(_.hj(-1,void 0,"IOLZ0b")),B=S.next().value,G=S.next().value;_.j9(function(){var g=new HE$(G);Q7X(g,f.data().thumbnails.length);_.Ov(function(){if(g.isSlideshowPlaying){g.isSlideshowPlaying=!1;for(var b=g.jobIds,z=0,X=b.length;z<X;z++)_.xJ.cancelJob(b[z]);g.jobIds.length=0}})});
return _.T("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.T(_.xK,{data:function(){return f.data().thumbnails}},{thumbnailViewModel:function(g,b){return _.T("div",{class:function(){var z=!f.data().primaryThumbnail,X=b(),w=B(),F=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
z&&X===0&&F.push("yt-collection-thumbnail-slideshow--first-slide");X<=w&&F.push("yt-collection-thumbnail-slideshow--show-slide");return F.join(" ")}},_.T(_.ya,{data:g.data,
disableRounding:f.disableRounding}))}}))},"ra");
EFo.idomCompat=!0;var NJs=new _.Sn("DWELL_DETECTOR_REGISTRY_TOKEN");var kvj=_.oS(function(f){var S=ZEN(f.triggeringElement),B=function(){return!!f.data().primaryThumbnail};
return _.T("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.T(LFN,{stackEnabled:B,thumbnailSize:function(){var G,g;return $nj((G=f.width)==null?void 0:G.call(f),(g=f.height)==null?void 0:g.call(f))},
doubleStack:f.doubleStack,stackColor:function(){return f.data().stackColor}},_.T("div",null,_.T(_.xK,{data:function(){return f.data().primaryThumbnail}},{thumbnailViewModel:function(G){var g={};
return _.T(_.ya,{data:G.data,width:f.width,height:f.height,aspectRatio:f.aspectRatio,disableRounding:f.disableRounding,className:_.Pw((g["yt-collection-thumbnail-view-model--has-stacks"]=B,g)),hovered:f.hovered,playbackRef:f.playbackRef})}}),_.T(_.v,{cond:function(){var G;
return S()&&((G=f.data().thumbnails)==null?void 0:G.length)},
then:function(){return _.T("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.T(EFo,{data:f.data,disableRounding:function(){return!B()}}))}}))))},"sa");
kvj.idomCompat={callbacks:{playbackRef:!0}};
var LFN=_.oS(function(f){var S=f.children;var B=f.stackEnabled;var G=f.thumbnailSize;var g=f.doubleStack;var b=f.stackColor;var z,X=(z=_.oy().resolve(_.fN(_.yU)))==null?void 0:z();return _.T(_.v,{cond:B,then:function(){return _.T(XpL,{data:function(){var w,F;return{experimentEnabled:!0,thumbnailSize:G(),doubleStack:g==null?void 0:g(),color:X?b==null?void 0:(w=b())==null?void 0:w.darkTheme:b==null?void 0:(F=b())==null?void 0:F.lightTheme,enableResponsiveMode:!1}}},S)},
else:function(){return S}})},"ta");var nF6=new _.Sn("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var cx;_.Wx={calledOnce:!0,state:"visible"};cx={calledOnce:!0,state:"hidden"};_.lQ=_.oS(function(f){var S=f.data;var B=f.customCommandResolver;var G=f.className;var g=f.delayedClassName;var b=f.animationEntityKey;var z=f.isCompactWidth;var X=_.tE("ad-button-view-model"),w=_.cF(b,""),F=_.v8(P7V,w),V=function(){var zj,VN;return(VN=(zj=F())==null?void 0:zj.value)!=null?VN:!1},J=function(){_.WF(_.KF("booleanEntity",w(),{key:w(),
value:!0}));t=void 0};
f=_.m(_.$8(V));var P=f.next().value,d=f.next().value;f=_.m(_.$8(V));var Q=f.next().value,x=f.next().value;f=_.m(_.$8(function(){var zj;return V()?(zj=S().styleTransitionConfig)==null?void 0:zj.destinationStyle:void 0}));
var E=f.next().value,U=f.next().value,A=function(){var zj=Object.assign({},S(),E()&&{style:E()}),VN,$Q,OV=zj.label,rW=(VN=zj.interaction)==null?void 0:($Q=VN.accessibility)==null?void 0:$Q.label;VN=zj.iconImage?zj.label&&zj.label.content?zj.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:OV,accessibilityLabel:rW,style:yPN(zj.style),type:WFx(zj.style),state:"active",size:aj1(zj.size),iconPosition:VN,disabled:!1,aTagConfig:uPW(zj,B)}},t;
_.of(X,{visibilityCallback:function(zj){var VN,$Q=(VN=S().interaction)==null?void 0:VN.onFirstVisible;zj&&$Q&&_.MB($Q)},
showOption:_.Wx});var M=function(){return rm(A(),!!S().iconImage)};
f={};G=_.Pw(function(){return"ytwAdButtonViewModelHost"},function(){return S().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var zj=!!S().delayedAppearanceConfig,VN=P();
return zj?VN?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var zj=!!S().delayedAppearanceConfig,VN=Q();
return zj?VN?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!S().delayedAppearanceConfig||P()?g==null?void 0:g():""},(f.ytwAdButtonViewModelHostCompactWidth=function(){return z==null?void 0:z()},f),G!=null?G:"");
var a=function(){var zj,VN=(zj=S().delayedAppearanceConfig)==null?void 0:zj.delayedInvisibleSeconds;VN&&(t=_.H8(_.xJ,function(){d(!0);l()},VN*1E3))},l=function(){var zj,VN=(zj=S().delayedAppearanceConfig)==null?void 0:zj.delayedVisibleSeconds;
VN&&(t=_.H8(_.xJ,function(){x(!0);mx()},VN*1E3))},mx=function(){var zj,VN=(zj=S().styleTransitionConfig)==null?void 0:zj.styleTransitionSeconds,$Q,OV=($Q=S().styleTransitionConfig)==null?void 0:$Q.destinationStyle;
VN&&OV?t=_.H8(_.xJ,function(){U(OV);J()},VN*1E3):J()};
_.j9(function(){var zj;((zj=S().delayedAppearanceConfig)==null?0:zj.transitionDurationSeconds)&&X.value.style.setProperty("transition-duration",S().delayedAppearanceConfig.transitionDurationSeconds+"s");a()});
_.Ov(function(){t&&_.xJ.cancelJob(t)});
return _.T("ad-button-view-model",{class:G,el:X},_.T(_.v,{cond:A,then:function(){return _.T(Be,{data:A,icon:function(){return _.T(_.v,{cond:function(){return S().iconImage},
then:function(zj){return _.T(_.f9,{data:zj,alt:"",targetWidth:M,targetHeight:M,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"ua");var s7N=_.oS(function(f){var S=f.data;f=_.tE("ad-button-group-view-model");_.of(f,{visibilityCallback:function(G){var g,b=(g=S().interaction)==null?void 0:g.onFirstVisible;G&&b&&_.MB(b)},
showOption:_.Wx});var B={};return _.T("ad-button-group-view-model",{class:_.Pw("ytwAdButtonGroupViewModelHost",(B.ytwAdButtonGroupViewModelHostCompactWidth=function(){return S().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"},B)),
el:f},_.T("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.T(_.xK,{data:function(){return S().secondaryAdButton}},{adButtonViewModel:function(G){return _.T(_.lQ,{data:G.data})}})),_.T("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.T(_.xK,{data:function(){return S().primaryAdButton}},{adButtonViewModel:function(G){return _.T(_.lQ,{data:G.data})}})))},"va");var D3v=_.oS(function(f){var S=function(){var B;return((B=f.data())==null?void 0:B.answers)||[]};
return _.T("yt-survey-icons",{class:"ytSurveyIconsHost"},_.T("div",{class:"ytSurveyIconsHeader"},_.T("div",{class:"ytSurveyIconsTitle"},function(){var B;return(B=f.data())==null?void 0:B.text}),_.T("div",null,_.T(Be,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var B;(B=f.onDismiss)==null||B.call(f)}}},
iconName:"DISMISSAL"}))),_.T("div",null,_.T("div",{class:"ytSurveyIconsAnswers"},_.T(_.dg,{each:function(){return S()},
keyBy:"INDEX"},function(B,G){return _.T("div",null,_.T(Be,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var g;(g=f.onSelect)==null||g.call(f,B(),G)}}},
icon:function(){return _.T(_.Y8,{icon:function(){var g,b;return(g=B())==null?void 0:(b=g.icon)==null?void 0:b.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.T("div",{class:"ytSurveyIconsAnswersText"},_.T("div",null,function(){return S().length?S()[0].text:""}),_.T("div",null,function(){return S().length?S()[S().length-1].text:""}))))},"wa");var Ij1=_.oS(function(f){var S=_.m(_.hj(!1,void 0,"s8HkOb")),B=S.next().value,G=S.next().value,g=_.v8(Y11,function(){var X;return(X=f.data().keys)==null?void 0:X.surveyEntityKey}),b=_.v8(rGQ,function(){var X;
return(X=f.data().keys)==null?void 0:X.surveyStateEntityKey});
_.Z0("ytd-slimline-survey-show-action",function(){G(!1)});
var z=function(){var X,w;var F=(X=b())==null?void 0:(w=X.questionStack)==null?void 0:w[0];if(F!==void 0){var V,J;return(V=g())==null?void 0:(J=V.questions)==null?void 0:J[F]}};
S={};return _.T("yt-slimline-survey-view-model",{class:_.Pw("ytSlimlineSurveyViewModelHost",(S.ytSlimlineSurveyViewModelCollapsed=function(){return B()},S))},_.T("div",{class:"ytSlimlineSurveyViewModelContainer"},_.T(_.v,{cond:function(){var X;
return((X=z())==null?void 0:X.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.T(D3v,{data:function(){return z()},
onSelect:function(X,w){var F,V;return _.R(function(J){G(!0);if(V=(F=f.data())==null?void 0:F.onSelectRating)_.MB(V),_.WF(tt8(w));_.TT(J)})},
onDismiss:function(){G(!0)}})}})))},"xa");var U3i=_.oS(function(f){return _.T("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.T(_.xK,{data:function(){var S;return(S=f.data())==null?void 0:S.attachments}},{flexibleActionsViewModel:function(S){return _.T("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.T($8m,{data:S.data,
layout:function(){var B;return((B=f.lockupStyle())==null?void 0:B.arrangement)===1?0:1},
justifyContentOverride:function(){var B;return((B=f.lockupStyle())==null?void 0:B.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(S){return _.T("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.T(Ij1,{data:S.data}))},
expandableMetadataViewModel:function(S){S=S.data;var B;return _.T("div",{class:"ytLockupAttachmentsViewModelAttachment"},(B=_.oy().resolve(_.fN(nF6)))==null?void 0:B({data:S}))},
adButtonGroupViewModel:function(S){return _.T("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.T(s7N,{data:S.data}))},
adButtonViewModel:function(S){return _.T("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.T(_.lQ,{data:S.data,isCompactWidth:!0}))}}))},"ya");var Bys=_.Gt("rich_grid_min_item_width",310),oxG=_.Gt("rich_grid_max_item_width",500);var CMm=_.oS(function(f){var S=f.data;return _.T("br-nz-badge-shape",{class:_.Pw(function(){return XbG(S().brNzRatingBadgeType)}),
role:function(){return S().accessibilityText?"img":void 0},
"aria-label":function(){return S().accessibilityText}},function(){var B;
return(B=S())==null?void 0:B.text})},"za");_.fp=_.oS(function(f){var S=function(){var B=f.data(),G,g;if(B){var b=!((G=f.workaroundShortsIsThumbnailBadge)==null||!G.call(f));G=(g=f.modern)==null?void 0:g.call(f);a:switch(B.badgeStyle){case "BADGE_OVERLAY":g=!0;break a;default:g=!1}B={type:b?16:wbx(B.badgeStyle),brNzRatingBadgeType:hIK(B.badgeStyle),text:B.badgeText,icon:B.iconName,isOverlay:g,modern:G||_.K("web_modern_badge_view_model"),accessibilityText:B.accessibilityLabel}}else B=void 0;return B};
return _.T("yt-badge-view-model",{class:_.Pw("yt-badge-view-model-wiz",f.class)},_.T(_.qp,null,_.T(_.i0,{when:function(){var B;return!((B=S())==null||!B.brNzRatingBadgeType)}},function(){return _.T(CMm,{data:function(){return S()}})}),_.T(_.i0,{when:function(){return!!S()&&!S().brNzRatingBadgeType}},function(){return _.T(_.xq,{data:function(){return S()}})})))},"Aa");
_.fp.idomCompat=!0;var FeK,TyV;FeK=16/9;TyV=2/3;_.oC=_.oS(function(f){var S=f.data;var B=f.className;var G=f.imageSizeConfig;var g=f.notifyOnLoaded;f=_.tE("yt-content-preview-image-view-model");var b=function(){return S().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},z=function(){var d;
return _.ux((d=S())==null?void 0:d.rendererContext)},X={};
X=(X["yt-content-preview-image-view-model-wiz"]=!0,X["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return b()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},X["yt-content-preview-image-view-model-wiz--tappable"]=function(){return z()},X);
var w=function(){var d,Q;return(Q=(d=_.H(S().rendererContext,_.H1))==null?void 0:d.label)!=null?Q:""},F=function(){return Jnx(S())},V=function(){var d=VYK(b(),S().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",G==null?void 0:G(),PLW(F()),S().layoutWidth,S().layoutHeight),Q=Object.assign({},d);
d.width&&(Q.width=Math.round(d.width));d.height&&(Q.height=Math.round(d.height));d.maxWidth&&(Q.maxWidth=Math.round(d.maxWidth));d.maxHeight&&(Q.maxHeight=Math.round(d.maxHeight));return Q},J=_.vW(function(){return V().height},void 0,"QOtei"),P=_.vW(function(){return V().width},void 0,"rKpuNc");
_.a8(f,function(){var d;return(d=S())==null?void 0:d.rendererContext});
return _.T("yt-content-preview-image-view-model",{el:f,role:function(){return z()?"link":void 0},
tabindex:function(){return z()?0:void 0},
class:_.Pw(B,X,function(){var d=b();var Q=G==null?void 0:G();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"?(Q==null?void 0:Q.size)!=null&&Q.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(Q==null?void 0:Q.size)!=null&&Q.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=V(),Q=[];d.width&&Q.push("width: "+d.width+"px");d.height&&Q.push("height: "+d.height+"px");d.maxWidth&&Q.push("max-width: "+d.maxWidth+"px");d.maxHeight&&Q.push("max-height: "+d.maxHeight+"px");d.fullWidth&&Q.push("width: 100%");return Q.join(";")}},_.T(_.v,{cond:F,
then:function(d){return _.T(_.f9,{data:d,alt:w,"data-disabled$":function(){return!w()},
notifyOnLoaded:g,targetWidth:P,targetHeight:J,preserveWidth:function(){return!!P()},
preserveHeight:function(){return!!J()}})}}),_.T(_.xK,{data:function(){var d;
return(d=S())==null?void 0:d.overlays}},{thumbnailHoverOverlayViewModel:Qa,
thumbnailOverlayButtonViewModel:_.j7$}))},"Ba");
_.oC.idomCompat=!0;var APX=_.oS(function(f){var S=f.data;var B=f.className;var G=f.useSmallLayout;var g=f.useMediumText;f=_.tE("yt-attribution-view-model");var b={};g=(b["yt-attribution-view-model-wiz"]=!0,b["yt-attribution-view-model-wiz--medium-text"]=g,b);_.a8(f,function(){var z;return(z=S())==null?void 0:z.rendererContext});
return _.T("yt-attribution-view-model",{el:f,class:_.Pw(B,g)},_.T(_.v,{cond:function(){return _.ux(S().rendererContext)},
then:function(){return _.T("button",{class:"yt-attribution-view-model-wiz--tappable"},_.T(pTL,{data:S,useSmallLayout:G}))},
else:function(){return _.T(pTL,{data:S,useSmallLayout:G})}}))},"Ca"),pTL=_.oS(function(f){var S=f.data;
var B=f.useSmallLayout;var G=function(){return{size:(B==null?0:B())?16:24}};
return _.T(_.gg,null,_.T(_.xK,{data:function(){return S().contentPreviewImage}},{contentPreviewImageViewModel:function(g){return _.T(_.oC,{data:g.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:G})}}),_.T(_.xK,{data:function(){return S().badge}},{badgeViewModel:function(g){return _.T(_.fp,{data:g.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.T(_.v,{cond:function(){return S().text},
then:function(){return _.T(_.oY,{text:function(){return S().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.T(_.v,{cond:function(){return S().suffix},
then:function(){return _.T(_.oY,{text:function(){return S().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"Da");
APX.idomCompat=!0;var QnG=_.$K({avatarStackViewModel:_.jL,badgeViewModel:_.fp});_.Su(jnW);var NJ1,M46,ZEv,t4j,uPN,ajj;NJ1=_.oS(function(f){var S=f.delimiter;var B=f.max;var G=f.index;var g=f.isStandalone;return _.T(_.v,{cond:function(){return B()-1>G()},
then:function(){var b={};return _.T("span",{class:_.Pw("yt-content-metadata-view-model-wiz__delimiter",(b["yt-content-metadata-view-model-wiz__delimiter--standalone"]=g,b)),"aria-hidden":!0},S)}})},"Ea");
M46=_.oS(function(f){var S=f.metadataPart;var B=f.maxLines;return _.T(_.oY,{text:function(){return S().text},
linkInheritColor:!0,className:function(){return OeA(B())},
userInput:!0})},"Fa");
ZEv=_.oS(function(f){var S=f.metadataPart;var B=f.maxLines;return _.T(_.v,{cond:function(){return S().tooltip},
then:function(G){return _.T("span",{title:G,role:"tooltip"},_.T(M46,{metadataPart:S,maxLines:B}))},
else:function(){return _.T(M46,{metadataPart:S,maxLines:B})}})},"Ga");
t4j=_.oS(function(f){var S=f.metadataPart;var B=f.isOverlay;var G=f.useMediumText;var g=f.hideAvatar;var b=function(){return S().maxLines!==void 0?S().maxLines:1};
return _.T(_.gg,null,_.T(_.xK,{data:function(){return S().avatarStack}},{avatarStackViewModel:function(z){return _.T(_.jL,{data:z.data,
isOverlay:B,useMediumText:G,hideAvatar:g})},
badgeViewModel:_.fp}),_.T(_.v,{cond:function(){return S().text},
then:function(){return _.T(ZEv,{metadataPart:S,maxLines:b})}}))},"Ha");
uPN=_.oS(function(f){var S=f.metadataRow;var B=f.isInline;var G=f.delimiter;var g=f.isOverlay;var b=f.useMediumText;var z=f.extensions;var X=function(){var F;return KeT(z==null?void 0:(F=z())==null?void 0:F.lockupMetadata,S())},w=function(){return S().metadataParts||[]};
f={};return _.T("div",{class:_.Pw("yt-content-metadata-view-model-wiz__metadata-row",(f["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=B,f["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var F;return ieA(z==null?void 0:(F=z())==null?void 0:F.lockupMetadata,S())},f["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=function(){var F;
return!!(z==null?0:(F=z())==null?0:F.lockupMetadata)&&S().badges&&!S().metadataParts},f))},_.T(_.xK,{data:function(){return S().badges}},{badgeViewModel:function(F){return _.T("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.T(_.fp,{data:F.data}))}}),_.T(_.dg,{each:w},function(F,V){return _.T(_.gg,null,_.T(t4j,{metadataPart:F,
isOverlay:g,useMediumText:b,hideAvatar:X}),_.T(NJ1,{delimiter:G,max:function(){return w().length},
index:V,isStandalone:!1}))}),_.T(_.v,{cond:function(){return S().isSpacerRow&&!B()},
then:function(){return _.T("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Ia");
ajj=_.oS(function(f){var S=_.lu(f,{layout:0,isOverlay:!1});f=S.className;var B=S.data,G=S.layout,g=S.isOverlay,b=S.useMediumText,z=S.extensions;S=_.tE("yt-content-metadata-view-model");var X=function(){return G()===0};
_.a8(S,function(){return B().rendererContext});
var w=function(){var V;return((V=B().metadataRows)==null?void 0:V.filter(function(J){var P;return!dqM(z==null?void 0:(P=z())==null?void 0:P.lockupMetadata,J)}))||[]},F={};
return _.T("yt-content-metadata-view-model",{class:_.Pw(f,"yt-content-metadata-view-model-wiz",(F["yt-content-metadata-view-model-wiz--inline"]=X,F["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.ux(B().rendererContext)},F["yt-content-metadata-view-model-wiz--medium-text"]=b,F)),
el:S},_.T(_.dg,{each:w},function(V,J){return _.T(_.gg,null,_.T(uPN,{metadataRow:V,isInline:X,delimiter:function(){return B().delimiter},
isOverlay:g,useMediumText:b,extensions:z}),_.T(_.v,{cond:function(){return X()&&!V.isSpacerRow},
then:function(){return _.T(NJ1,{delimiter:function(){return B().delimiter},
max:function(){return w().length},
index:J,isStandalone:!0})}}))}))},"Ja");
_.yP$=_.K("web_enable_sink_yt_content_metadata_view_model")?ajj:_.dm(jnW);ajj.idomCompat=!0;var WF6=_.oS(function(f){var S={};return _.T("yt-lockup-metadata-view-model",{class:_.Pw("yt-lockup-metadata-view-model-wiz",function(){a:{var B=f.lockupStyle();if(B==null?0:B.isOverlay)B="yt-lockup-metadata-view-model-wiz--overlay";else switch(B==null?void 0:B.arrangement){case 1:B="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:B="yt-lockup-metadata-view-model-wiz--vertical"}}return B},function(){a:{var B=f.lockupStyle();
if(B==null?0:B.isTiny)B="yt-lockup-metadata-view-model-wiz--tiny";else switch(B==null?void 0:B.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":B="yt-lockup-metadata-view-model-wiz--compact";break a;default:B="yt-lockup-metadata-view-model-wiz--standard"}}return B},(S["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var B;
return(B=f.lockupStyle())==null?void 0:B.isOverlay},S["yt-lockup-metadata-view-model-wiz--card"]=function(){var B;
return(B=f.lockupStyle())==null?void 0:B.isCard},S["yt-lockup-metadata-view-model-wiz--centered"]=function(){var B;
return(B=f.lockupStyle())==null?void 0:B.isCentered},S["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var B;
return(B=f.lockupStyle())==null?void 0:B.typographyBump},S["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var B;
return(B=f.lockupStyle())==null?void 0:B.useLegacyTypography},S["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var B;
return(B=f.lockupStyle())==null?void 0:B.useRichGridLegacyTypography},S))},_.T(_.xK,{data:function(){return f.data().image}},{avatarStackViewModel:function(B){return _.T("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.T(_.jL,{data:B.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(B){return _.T("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.T(_.Ya,{data:B.data}))},
decoratedAvatarViewModel:function(B){return _.T("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.T(_.rn,{data:B.data}))}}),_.T("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.T("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var B;return(B=f.data().title)==null?void 0:B.content}},_.T(_.v,{cond:function(){return f.data().title},
then:function(B){return _.T(_.XD,{command:f.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:f.lockupAccessibilityLabel},_.T(_.oY,{text:B}))}})),_.T("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.T(_.xK,{data:function(){return f.data().metadata}},{contentMetadataViewModel:function(B){return _.T(_.yP$,{data:B.data,
layout:1,useMediumText:function(){var G,g;return((G=f.lockupStyle())==null?void 0:G.typographyBump)||((g=f.lockupStyle())==null?void 0:g.useRichGridLegacyTypography)},
extensions:function(){var G,g,b;return{lockupMetadata:{byline:{hideAvatar:((G=f.lockupStyle())==null?void 0:G.arrangement)===0,addPadding:((g=f.lockupStyle())==null?void 0:g.arrangement)===1},description:{hideDescription:!((b=f.lockupStyle())==null||!b.hideDescription)}}}}})}})),_.T(_.xK,{data:function(){return f.data().attribution}},{attributionViewModel:function(B){return _.T("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},_.T(APX,{data:B.data,
useSmallLayout:!0}))}})),_.T("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.T(_.xK,{data:function(){return f.data().menuButton}},{buttonViewModel:function(B){return _.T(_.I8,{data:B.data,
buttonOverrides:function(){var G;return((G=f.lockupStyle())==null?0:G.isOverlay)?{style:"overlay"}:void 0}})}})))},"Ka");
WF6.idomCompat=!0;var cPo=_.oS(function(f){var S=_.tE("notification-multi-action-renderer");_.Y5(function(){requestAnimationFrame(function(){_.uP(S.value)})});
var B={},G={},g={};return _.T("notification-multi-action-renderer",{class:_.Pw("ytNotificationMultiActionRendererHost",(B.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var b;return(b=f.useLegacyShelfStyle)==null?void 0:b.call(f)},B)),
el:S},_.T("span",{"aria-live":"polite",class:_.Pw("ytNotificationMultiActionRendererTextContainer",(G.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var b;return(b=f.useLegacyShelfStyle)==null?void 0:b.call(f)},G))},_.T(_.oY,{text:function(){return f.data().responseText}})),_.T("div",{class:_.Pw("ytNotificationMultiActionRendererButtonContainer",(g.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var b;
return(b=f.useLegacyShelfStyle)==null?void 0:b.call(f)},g))},_.T(_.xK,{data:function(){var b;
return(b=f.data().buttons)==null?void 0:b.map(function(z){if(z=z.buttonRenderer){var X,w=Object,F=w.assign,V=(X=z.icon)==null?void 0:X.iconType;X=(X=z.command||z.serviceEndpoint||z.navigationEndpoint)?{innertubeCommand:X}:void 0;z={buttonViewModel:F.call(w,{},{iconName:V,onTap:X,trackingParams:z.trackingParams,titleFormatted:z.text?_.sn(z.text):void 0},xqs(z))}}else z=void 0;return z}).filter(function(z){return!!z})}},{buttonViewModel:function(b,z){return _.T("div",null,_.T(_.I8,{data:b.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var X;return((X=f.useModernStyles)==null?0:X.call(f))?{type:z()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"La");var ljL=_.oS(function(f){var S=_.tE("notification-text-renderer");_.Y5(function(){requestAnimationFrame(function(){_.uP(S.value)})});
return _.T("notification-text-renderer",{el:S,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.T(_.oY,{text:function(){return f.data().successResponseText}}))},"Ma");_.fo1=_.oS(function(f){var S=_.v8(ir1,function(){var G;return Exs((G=f.contentId)==null?void 0:G.call(f))}),B=function(){var G;
return _.H((G=S())==null?void 0:G.command,_.$f)};
return _.T(_.v,{cond:function(){var G;if(!(G=B())){var g;G=_.H((g=S())==null?void 0:g.command,$_j)}return G},
then:function(){return _.T(_.v,{cond:B,then:function(){var G={};return _.T("div",{class:_.Pw("ytDismissibleItemReplacedContent",function(){var g;return Le1((g=f.aspectRatio)==null?void 0:g.call(f))})},_.T("div",{class:_.Pw((G.ytDismissibleItemAspectRatioContainer=function(){var g;
return((g=f.aspectRatio)==null?void 0:g.call(f))!==void 0},G))},_.T(_.xK,{data:function(){var g;
return(g=B())==null?void 0:g.item}},{notificationMultiActionRenderer:function(g){return _.T(cPo,{data:g.data,
useModernStyles:f.useModernStyle,useLegacyShelfStyle:f.useLegacyShelfStyle})},
notificationTextRenderer:ljL})))}})},
else:f.children})},"Na");_.oxL=_.oS(function(f){var S=f.data;var B=f.customCommandResolver;f=_.us("ad-avatar-view-model");var G=function(){var b;return((b=S().interaction)==null?0:b.onTap)?function(z){var X;t41(z,(X=S().interaction)==null?void 0:X.onTap,B)}:void 0},g=function(){var b,z=S(),X=G(),w=(b=_.H(S().rendererContext,_.H1))==null?void 0:b.label;
a:switch(z.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":b=1;break a;default:b=0}return{size:snT(z.size),type:b,onTap:X,accessibilityText:w}};
_.of(f,{visibilityCallback:function(b){var z,X=(z=S().interaction)==null?void 0:z.onFirstVisible;b&&X&&_.MB(X)},
showOption:_.Wx});return _.T("ad-avatar-view-model",{class:function(){var b;return((b=S().interaction)==null?0:b.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:f},_.T(_.v,{cond:function(){return S().image},
then:function(b){return _.T(IQv,{data:g,image:b})}}))},"Oa");_.Sc=_.oS(function(f){f=_.lu(f,{hasDot:!1});var S=Object.assign({},f),B=f.data,G=f.hasDot;f=f.customCommandResolver;var g=(delete S.data,delete S.hasDot,delete S.customCommandResolver,S);S=function(){return B().style};
S!==void 0&&S!==null||_.CL(Error("Eh"));S=_.tE("ad-badge-view-model");_.c8(S,function(){return B().interaction},f);
return _.T("ad-badge-view-model",{class:_.Pw(function(){var b;return((b=B().interaction)==null?0:b.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var b=g.adRenderingContextType();
B();return b==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:S},_.T(_.xq,{data:function(){var b;B();return{type:2,text:(b=B().label)==null?void 0:b.content,adsIncludeDot:G(),isOverlay:B().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Pa");var SGv;_.Bm=_.oS(function(f){var S=f.data;var B=f.customCommandResolver;var G=f.adRenderingContextType;f=_.tE("ad-details-line-view-model");_.c8(f,function(){return S().interaction},B);
_.of(f,{visibilityCallback:function(g){var b,z=(b=S().interaction)==null?void 0:b.onFirstVisible;g&&z&&_.MB(z)},
showOption:_.Wx});return _.T("ad-details-line-view-model",{class:function(){var g;return((g=S().interaction)==null?0:g.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:f},_.T(_.v,{cond:function(){return S().style},
then:function(g){return _.T(_.dg,{each:function(){var b;return((b=S())==null?void 0:b.attributes)||[]},
keyBy:"INDEX"},function(b){return _.T(SGv,{attribute:b,style:g,adRenderingContextType:function(){return G()}})})}}))},"Qa");
SGv=_.oS(function(f){var S=f.attribute;var B=f.style;var G=f.adRenderingContextType;return _.T(_.v,{cond:function(){return S().text},
then:function(g){return _.T(_.oY,{text:g,className:function(){var b=G();B();return b==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Ra");var By1=_.oS(function(f){var S=f.data;var B=f.typographyBump;var G=function(){return S().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
f={};return _.T(_.gg,null,_.T("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.T(_.oY,{text:function(){return S().headline},
className:_.Pw("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(f.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return G==null?void 0:G()},f.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(B==null?void 0:B())&&!(G==null?0:G())},f)),
linkInheritColor:!0}),_.T(_.v,{cond:function(){return S().description},
then:function(g){var b={};return _.T(_.oY,{text:g,className:_.Pw("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(b.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return G==null?void 0:G()},b.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(B==null?void 0:B())&&!(G==null?0:G())},b)),
linkInheritColor:!0})}}),_.T(_.v,{cond:function(){return S().secondaryDescription},
then:function(g){var b={};return _.T(_.oY,{text:g,className:_.Pw("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(b.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return B==null?void 0:B()},b)),
linkInheritColor:!0})}}),_.T("div",{class:function(){return G()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.T(_.v,{cond:function(){return S().adAvatar},
then:function(){return _.T("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.T(_.xK,{data:function(){return S().adAvatar}},{adAvatarViewModel:_.oxL}))}}),_.T(_.xK,{data:function(){return S().adBadge}},{adBadgeViewModel:function(g){return _.T(_.Sc,{data:g.data,
hasDot:function(){return!!S().adDetailsLine},
adRenderingContextType:function(){return S().adRenderingContextType}})}}),_.T(_.xK,{data:function(){return S().adDetailsLine}},{adDetailsLineViewModel:function(g){return _.T(_.Bm,{data:g.data,
adRenderingContextType:function(){return S().adRenderingContextType}})}}))),_.T("div",{class:function(){return G()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.T(_.xK,{data:function(){return S().menu}},{buttonViewModel:function(g){return _.T(_.I8,{data:g.data,
buttonOverrides:function(){a:switch(S().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var b="S";break a;default:b="M"}return{size:b}}})}})))},"Sa"),GA6=_.oS(function(f){var S=f.data;
var B=f.noBottomMargin;var G=f.useVideoLockupTopPadding;var g=f.typographyBump;f={};f=_.Pw("ytwFeedAdMetadataViewModelHostMetadata",(f.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return B==null?void 0:B()},f.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return G==null?void 0:G()},f));
var b=function(){return S().adBadge};
b!==void 0&&b!==null||_.CL(Error("Fh"));b={};var z={};return _.T(_.gg,null,_.T(_.v,{cond:function(){return S().adAvatar},
then:function(){return _.T("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.T(_.xK,{data:function(){return S().adAvatar}},{adAvatarViewModel:function(X){return _.T(_.oxL,{data:X.data})}}))}}),_.T("div",{class:f},_.T("div",{class:_.Pw("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(b.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return g==null?void 0:g()},b.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(g==
null?void 0:g())&&_.K("web_enable_typography_bump_v2")},b))},_.T(_.oY,{text:function(){return S().headline},
linkInheritColor:!0})),_.T(_.v,{cond:function(){return S().description},
then:function(X){return _.T(_.oY,{text:X,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.T("div",{class:function(){return S().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.K("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.T(_.xK,{data:function(){return S().adBadge}},
{adBadgeViewModel:function(X){return _.T(_.Sc,{data:X.data,
hasDot:function(){return!!S().adDetailsLine},
adRenderingContextType:function(){return S().adRenderingContextType}})}}),_.T(_.xK,{data:function(){return S().adDetailsLine}},{adDetailsLineViewModel:function(X){return _.T(_.Bm,{data:X.data,
adRenderingContextType:function(){return S().adRenderingContextType}})}})),_.T(_.v,{cond:function(){return S().secondaryDescription},
then:function(X){return _.T(_.oY,{text:X,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.T("div",{class:_.Pw("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(z.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return G==null?void 0:G()},z))},_.T(_.xK,{data:function(){return S().menu}},{buttonViewModel:_.I8})))},"Ta"),gxi=_.oS(function(f){var S=f.data;
var B=f.noBottomMargin;var G=f.listenToTapEvent;var g=f.setTouchEndHandler;var b=f.useVideoLockupTopPadding;var z=f.typographyBump;var X=_.tE("feed-ad-metadata-view-model");_.c8(X,function(){return S().interaction},void 0,function(){return G==null?void 0:G()});
f=_.m(_.hj(!1,void 0,"qjt0Xc"));var w=f.next().value,F=f.next().value;f=_.iF(function(){(g==null?0:g())&&!w()&&(X.value.click(),F(!0),setTimeout(function(){F(!1)},100));
return!1});
_.of(X,{visibilityCallback:function(V){var J,P=(J=S().interaction)==null?void 0:J.onFirstVisible;V&&P&&_.MB(P)},
showOption:_.Wx});return _.T("feed-ad-metadata-view-model",{class:function(){var V;return((V=S().interaction)==null?0:V.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:X,"on:touchend":f},_.T(_.qp,null,_.T(_.i0,{when:function(){return S().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.T(By1,{data:S,
typographyBump:z})}),_.T(_.i0,{when:function(){return S().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.T(GA6,{data:S,
noBottomMargin:B,useVideoLockupTopPadding:b,typographyBump:z})})))},"Ua");var eIi;_.Gf=_.oS(function(f){return _.T("yt-lockup-view-model",{class:_.Pw(f.className)},_.T(_.fo1,{contentId:function(){return f.data().contentId},
useModernStyle:!0,aspectRatio:function(){var S,B;return((S=f.containerType)==null?void 0:S.call(f))!==3?zIA(f.data().contentType,(B=f.force16By9ThumbnailAspectRatio)==null?void 0:B.call(f)):void 0}},function(){return _.T(eIi,Object.assign({},f))}))},"Va");
eIi=_.oS(function(f){f=_.lu(f,{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 S=f.data,B=f.containerLayoutConfig,G=f.containerType,g=f.sizing,b=f.protectBackground,z=f.typographyBump,X=f.force16By9ThumbnailAspectRatio,w=f.thumbnailFixedWidth,F=f.thumbnailTargetWidth,V=f.lockupExperiments,J=f.elementsPerRow;
f=_.tE("div");_.a8(f,function(){var rW;return(rW=S())==null?void 0:rW.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL","YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0);var P=_.Uo(CMK),d=_.oy().resolve(_.fN(iEg)),Q=d?{}:void 0,x=function(){var rW,MA,UV;return(UV=(MA=_.H((rW=S())==null?void 0:rW.rendererContext,_.H1))==null?void 0:MA.label)!=null?UV:void 0},E=function(){var rW=B==null?void 0:B(),MA;
if(rW==null?0:rW.containerType){var UV=(MA=S())==null?void 0:MA.contentType;MA=V();var W7=z(),c7=F(),Q$=b();rW=Object.assign({},RI1(eIM(rW),GAx(rW.responsiveSize),W7,UV,rW.force16By9ThumbnailAspectRatio,c7,Q$,MA),{thumbnailFixedWidth:rW.contentPreviewWidth})}else rW=RI1(G(),g(),z(),(UV=S())==null?void 0:UV.contentType,X(),F(),b(),V());return rW};
d&&Q&&d({enabled:function(){return P()},
itemPlaybackModel:function(){return S().itemPlayback},
thumbnailElRef:function(){return Q.thumbnailElRef},
containerElRef:f,options:function(){var rW,MA=(rW=_.H(S().metadata,Jv7))==null?void 0:rW.endorsement;rW=Q.thumbnailOverlays||[];MA&&rW.push(MA);var UV,W7;return{thumbnail:Q.thumbnail,thumbnailOverlays:rW,accessibilityText:x(),thumbnailSize:Q.thumbnailSize,enableRounding:E().isCollection,containPlayerWithinThumbnail:E().isCollection,trackingParams:(UV=_.H(S().rendererContext,_.Hs))==null?void 0:(W7=UV.loggingDirectives)==null?void 0:W7.trackingParams}}});
var U=0;d=_.m(_.hj(!1,void 0,"BKBkhb"));var A=d.next().value,t=d.next().value;d=_.m(_.hj(!1,void 0,"GK0mq"));var M=d.next().value,a=d.next().value;d=_.iF(function(){var rW=P()&&S().itemPlayback;M()?(_.xJ.cancelJob(U),U=_.xJ.addJob(function(){t(!rW)},8,32)):t(!rW);
return!0});
var l=_.iF(function(){U&&(_.xJ.cancelJob(U),U=0);t(!1)});
_.Ov(function(){U&&(_.xJ.cancelJob(U),U=0)});
var mx=nxA(function(){a(!0)}),zj=mx.touchFeedbackEvents,VN=mx.touchFeedbackOnPointerUp,$Q=mx.touchFeedbackOnPointerDown;
mx=mx.touchFeedbackOnPointerLeave;var OV={};return _.T("div",{el:f,class:_.Pw("yt-lockup-view-model-wiz",function(){a:{var rW=E();if(rW.isOverlay)rW="yt-lockup-view-model-wiz--overlay";else switch(rW.arrangement){case 1:rW="yt-lockup-view-model-wiz--horizontal";break a;default:rW="yt-lockup-view-model-wiz--vertical"}}return rW},function(){a:{var rW=E();
if(rW.isOverlay)rW="yt-lockup-view-model-wiz--overlay";else{switch(rW.collectionStackNumber){case 1:rW="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:rW="yt-lockup-view-model-wiz--collection-stack-2";break a}rW=void 0}}return rW},(OV["yt-lockup-view-model-wiz--card"]=function(){return E().isCard},OV["yt-lockup-view-model-wiz--compact"]=function(){return E().isTiny||E().sizing!=="STANDARD"},OV["yt-lockup-view-model-wiz--protect-background"]=b,OV["yt-lockup-view-model-wiz--add-margins"]=
function(){return E().addMarginForFullbleed},OV["yt-lockup-view-model-wiz--centered"]=function(){return E().isCentered},OV["yt-lockup-view-model-wiz--fullbleed"]=function(){return E().fullbleed},OV["yt-lockup-view-model-wiz--single-column-grid"]=function(){return J()===1&&G()===2},OV["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var rW;
return(rW=V())==null?void 0:rW.useRichGridLegacyMargin},OV)),
"on:mousedown":$Q,"on:mouseleave":l,"on:mouseup":VN,"on:mouseover":d,"on:touchstart":$Q,"on:touchend":VN,"on:pointerleave":mx},_.T(_.XD,{command:function(){var rW;return _.tD((rW=S())==null?void 0:rW.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return w()&&E().arrangement===1?"width: "+w():""}},_.T(_.xK,{data:function(){var rW;
return(rW=S())==null?void 0:rW.contentImage}},{thumbnailViewModel:function(rW){return _.T(_.ya,{data:rW.data,
aspectRatio:function(){return E().aspectRatio},
disableRounding:function(){return E().disableRounding},
width:F,hovered:A,isClip:function(){var MA;return((MA=S())==null?void 0:MA.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:Ijs(Q),lockupExperiments:function(){return V()}})},
collectionThumbnailViewModel:function(rW){return _.T(kvj,{data:rW.data,aspectRatio:function(){return E().aspectRatio},
disableRounding:function(){return E().disableRounding},
width:F,doubleStack:function(){return E().collectionStackNumber===2},
hovered:A,playbackRef:Ijs(Q)})},
decoratedAvatarViewModel:_.rn})),_.T("div",{class:"yt-lockup-view-model-wiz__metadata"},_.T(_.xK,{data:function(){var rW;return(rW=S())==null?void 0:rW.metadata}},{lockupMetadataViewModel:function(rW){return _.T(WF6,{data:rW.data,
lockupStyle:E,lockupCommand:function(){var MA;return _.tD((MA=S())==null?void 0:MA.rendererContext)},
lockupAccessibilityLabel:function(){return x()}})},
feedAdMetadataViewModel:function(rW){return _.T(gxi,{data:rW.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:z})}}),_.T(_.xK,{data:function(){var rW;
return(rW=S())==null?void 0:rW.attachmentSlot}},{lockupAttachmentsViewModel:function(rW){return _.T(U3i,{data:rW.data,
lockupStyle:E})}})),_.T(_.Oo,{model:function(){a:{switch(E().collectionStackNumber){case 1:var rW=8;
break a;case 2:rW=12;break a}rW=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:rW}},
pointerDownEvent:zj.pointerDownEvent,pointerUpEvent:zj.pointerUpEvent,pointerLeaveEvent:zj.pointerLeaveEvent}))},"Wa");
_.Gf.idomCompat=!0;_.eq(_.Gf,"yt-lockup-view-model",{props:{data:_.W4,containerLayoutConfig:_.W4,containerType:_.W4,sizing:_.W4,protectBackground:_.W4,typographyBump:_.W4,thumbnailFixedWidth:_.W4,thumbnailTargetWidth:_.W4,force16By9ThumbnailAspectRatio:_.W4,className:_.W4,lockupExperiments:_.W4,elementsPerRow:_.W4}});var pb1;_.Su(tYs);var beN=_.dm(tYs,{callbacks:{onExpandClick:!0}});var loN=_.$K({buttonViewModel:_.I8}),mqX=_.dm(WeN);_.Su(WeN);_.Su(ao1);_.Su(ynW);_.eq(mqX,"yt-video-attribute-view-model",{props:{data:_.W4,className:_.W4}});var gK=function(){var f=_.I.apply(this,arguments)||this;f.useHighlightStyling=_.K("web_enable_deeper_metadata_highlight_styling");f.isSearch=!1;f.JSC$13109_lastScrollContainerWidth=NaN;f.pageLoadingFromNavigation=!1;f.currentIndex=0;f.supportComponentResize=!1;return f};
_.q(gK,_.I);_.e=gK.prototype;
_.e.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}}}}}};
_.e.attached=function(){document.addEventListener("yt-page-type-changed",_.Fc(this,this.onPageChange))};
_.e.detached=function(){document.removeEventListener("yt-page-type-changed",_.Fc(this,this.onPageChange))};
_.e.getItemsPath=function(){return"data.cards"};
_.e.onIronResize=function(){this.updateListStyles()};
_.e.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var f;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(f=this.data)==null?void 0:f.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.K("problem_walkthrough_sd")&&!!this.centerItems};
_.e.computeCardListStyle=function(f){return f||null};
_.e.computeEmpty=function(f){return!this.get("cards.length",f)};
_.e.computeThumbnailStyle=function(f){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",f)||null};
_.e.computeHasSubtitle=function(f){return!!this.get("header.richListHeaderRenderer.subtitle",f)};
_.e.computeInitialCountNumber=function(f){return this.hasSquareMiniApp&&f==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&f==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:f==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:f==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:f==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&f==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.e.computeUseFloorScrolling=function(f){return f==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.e.computeHasGameCard=function(f){return(f=this.get("cards",f))?f.some(function(S){return S.gameCardRenderer}):!1};
_.e.computeCenterHeaderTitle=function(f){return!(f==null||!f.centerHeaderTitle)};
_.e.computeHasPortraitMiniApp=function(f){return(f=f==null?void 0:f.cards)?f.some(function(S){return S.miniGameCardViewModel&&S.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.e.computeHasSquareMiniApp=function(f){return(f=f==null?void 0:f.cards)?f.some(function(S){return S.miniGameCardViewModel&&S.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.e.computeHasSkinnyWidthPortraitMiniApp=function(f){return(f=f==null?void 0:f.cards)?f.some(function(S){return S.miniGameCardViewModel&&S.miniGameCardViewModel.width===135}):!1};
_.e.computeCenterItems=function(f){return!!f};
_.e.computeHasInfoPanel=function(f){var S;return f==null?void 0:(S=f.cards)==null?void 0:S.some(function(B){return B.infoPanelContentRenderer})};
_.e.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.e.getItemByIndex=function(f){var S=this.items.children;return S&&S.length>f?S[f]:void 0};
_.e.onPageChange=function(){var f=this;this.pageLoadingFromNavigation=!0;_.xJ.addJob(function(){f.pageLoadingFromNavigation=!1;_.mU(f.hostElement,"yt-terminate-video-preview-action")},8)};
_.e.updateListStyles=function(){if(_.K("problem_walkthrough_sd")&&this.JSC$13109_scrollContainer!==void 0){var f=this.JSC$13109_scrollContainer.clientWidth;f!==this.JSC$13109_lastScrollContainerWidth&&(this.JSC$13109_lastScrollContainerWidth=f,_.hO(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(f*.8,415)+"px"}),_.ew(this.hostElement,"iron-resize"))}};
_.y3.Object.defineProperties(gK.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.K("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var f,S,B;return!!((f=this.data)==null?0:(S=f.cards)==null?0:(B=S[0])==null?0:B.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var f,S,B;return!!((f=this.data)==null?0:(S=f.cards)==null?0:(B=S[0])==null?0:B.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var f,S,B;return _.K("enable_desktop_amsterdam_info_panels")&&!!((f=this.data)==null?0:(S=f.cards)==null?0:(B=S[0])==null?0:B.infoPanelContentRenderer)}}});
gK.prototype.dataChanged=gK.prototype.dataChanged;gK.prototype.onIronResize=gK.prototype.onIronResize;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],gK.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],gK.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.o_.YtdHorizontalListBehavior),_.Z("design:type",Object)],gK.prototype,"ytdHorizontalListBehavior",void 0);
_.N([_.r(_.kP),_.Z("design:type",Object)],gK.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],gK.prototype,"data",void 0);_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],gK.prototype,"useCustomColors",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],gK.prototype,"useHighlightStyling",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.Z("design:type",Object)],gK.prototype,"cardListStyle",void 0);_.N([_.n({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.Z("design:type",Boolean)],gK.prototype,"empty",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.Z("design:type",Boolean)],gK.prototype,"hasSubtitle",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.Z("design:type",Boolean)],gK.prototype,"thumbnailStyle",void 0);_.N([_.n({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.Z("design:type",Boolean)],gK.prototype,"hasGameCard",void 0);_.N([_.n({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.Z("design:type",Boolean)],gK.prototype,"centerHeaderTitle",void 0);
_.N([_.n({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.Z("design:type",Boolean)],gK.prototype,"hasPortraitMiniApp",void 0);_.N([_.n({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.Z("design:type",Boolean)],gK.prototype,"hasSquareMiniApp",void 0);_.N([_.n({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.Z("design:type",Boolean)],gK.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.N([_.n({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.Z("design:type",Boolean)],gK.prototype,"hasInfoPanel",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],gK.prototype,"isSearch",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],gK.prototype,"inlineStructuredDescription",void 0);_.N([_.vF("#scroll-container"),_.Z("design:type",HTMLDivElement)],gK.prototype,"JSC$13109_scrollContainer",void 0);
_.N([_.n({computed:"computeInitialCountNumber(data.style.type)"}),_.Z("design:type",Number)],gK.prototype,"initialCount",void 0);_.N([_.n({computed:"computeUseFloorScrolling(data.style.type)"}),_.Z("design:type",Boolean)],gK.prototype,"useFloorScrolling",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.Z("design:type",Boolean)],gK.prototype,"centerItems",void 0);_.N([_.n(),_.Z("design:type",Object)],gK.prototype,"pageLoadingFromNavigation",void 0);
_.N([_.n(),_.Z("design:type",Object)],gK.prototype,"currentIndex",void 0);_.N([_.n(),_.Z("design:type",Number)],gK.prototype,"scrollCount",void 0);_.N([_.n(),_.Z("design:type",Object)],gK.prototype,"supportComponentResize",void 0);_.N([_.vF("#items"),_.Z("design:type",HTMLDivElement)],gK.prototype,"items",void 0);_.N([_.Vg("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],gK.prototype,"onIronResize",null);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],gK.prototype,"dataChanged",null);_.N([_.n({reflectToAttribute:!0}),_.k("inlineStructuredDescription"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],gK.prototype,"hideNavigationButton",null);_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],gK.prototype,"modernChapters",null);
_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],gK.prototype,"hasVideoAttributeViewModels",null);_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],gK.prototype,"modernInfoPanels",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],gK);
_.p(gK,"ytd-horizontal-card-list-renderer",function(){if(BJi!==void 0)return BJi;var f=document.createElement("template");_.Y(f,'\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>');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return BJi=f},{mode:_.X_("kevlar_poly_si_batch_j072")?1:2});var zIN=_.oS(function(f){var S=f.data;var B={};return _.T("video-summary-content-view-model",{class:_.Pw("video-summary-content-view-model-wiz",f.className,(B["video-summary-content-view-model-wiz--is-search"]=f.isSearch,B))},_.T(_.dg,{each:function(){var G=[],g=S().paragraphs;if(g==null||!g.length)return[];for(var b=0;b<g.length;b++){var z=_.H(g[b],iuo),X=void 0;b>0&&(X=_.H(g[b-1],iuo));X&&!!X.marker===!!z.marker?G[G.length-1].paragraphs.push(z):G.push({isList:!!z.marker,paragraphs:[z]})}return G},
keyBy:"INDEX"},function(G){return _.T(_.v,{cond:function(){return G().isList},
then:function(){return _.T("ul",{class:"video-summary-content-view-model-wiz__list"},_.T(_.dg,{each:function(){return G().paragraphs},
keyBy:"INDEX"},function(g){return _.T("li",{class:"video-summary-content-view-model-wiz__list-item"},_.T(_.oY,{text:function(){return g().text}}))}))},
else:function(){return _.T(_.dg,{each:function(){return G().paragraphs},
keyBy:"INDEX"},function(g){return _.T("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.T(_.oY,{text:function(){return g().text}}))})}})}),_.T(_.v,{cond:function(){return!!_.H(S().likeButtonViewModel,_.kK)&&!!_.H(S().dislikeButtonViewModel,_.nF)},
then:function(){return _.T("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},_.T("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.T(_.jG,{data:function(){return _.H(S().likeButtonViewModel,_.kK)},
disableIconAnimation:!0})),_.T(_.rE,{data:function(){return _.H(S().dislikeButtonViewModel,_.nF)}}))}}))},"Xa");
zIN.idomCompat=!0;_.eq(zIN,"video-summary-content-view-model",{props:{data:_.W4,isSearch:_.W4,className:_.W4}});var ec=function(){var f=_.I.apply(this,arguments)||this;var S,B;f.isExpanded=(B=(S=f.data)==null?void 0:S.isExpanded)!=null?B:!1;f.disableExpand=!1;f.showProminentLabel=!1;f.showRightSideLabel=!0;f.toggleExpandableContent=function(G){f.disableExpand||(G.stopPropagation(),_.fF(_.ct(G),f.hostElement,["info","expanded-subtitle"])||(f.isExpanded=!f.isExpanded,f.ytRendererBehavior.logExplicitClick(f.data),f.JSC$13120_cardList&&!_.K("expandable_metadata_a11y_fix_ks")&&_.ui(f,function(){_.ty(f.hostElement)})))};
f.useSquareThumbnail=!1;f.startX=0;return f};
_.q(ec,_.I);_.e=ec.prototype;_.e.computeUseSquareThumbnail=function(){var f;return(f=this.data)==null?void 0:f.useSquareThumbnail};
_.e.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"}}}}};
_.e.dataChanged=function(){if(this.data){var f,S;this.isExpanded=(S=(f=this.data)==null?void 0:f.isExpanded)!=null?S:!1;var B,G,g,b;if(f=this.isDarkTheme()?(B=this.data)==null?void 0:(G=B.colorData)==null?void 0:G.darkColorPalette:(g=this.data)==null?void 0:(b=g.colorData)==null?void 0:b.lightColorPalette){var z,X;if((z=this.data)==null?0:(X=z.colorData)==null?0:X.vibrantColorPalette)f.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.n9(this.hostElement,f)}}};
_.e.isExpandedChanged=function(){this.isExpanded&&this.JSC$13120_cardList&&_.ew(this.JSC$13120_cardList,"iron-resize")};
_.e.computeIsExpanded=function(f){return!!f.isExpanded};
_.e.computeShowProminentLabel=function(f,S){var B;return!!(f==null?0:(B=f.header)==null?0:B.showLeadingCollapsedLabel)&&!S};
_.e.computeShowRightSideLabel=function(f,S){var B;return!(f==null?0:(B=f.header)==null?0:B.showLeadingCollapsedLabel)&&!S};
_.e.captureContentClick=function(f){if(!this.disableExpand)if(_.K("expandable_metadata_fix_killswitch")){var S=f.target;_.mNN(S,"ytd-macro-markers-list-item-renderer")||f.stopPropagation();(S==null?void 0:S.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.fF(_.ct(f),this.hostElement,["items"])||_.lF(_.ct(f),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.e.timestampClick=function(f){f.stopPropagation();var S,B;(f=(S=this.data)==null?void 0:(B=S.header)==null?void 0:B.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(f)};
_.e.onDown=function(f){f.stopPropagation();this.startX=f.detail?f.detail.x:0};
_.e.onUp=function(f){this.skipKeyInteraction(f)&&f.stopPropagation()};
_.e.skipKeyInteraction=function(f){var S=f.target;if((S==null?void 0:S.id)==="scroll-container"||(S==null?void 0:S.id)==="items"||f.detail&&f.detail.x!==this.startX)return!0;f=_.ct(f);f=_.m(f);for(S=f.next();!S.done;S=f.next()){S=S.value;if(S===this.hostElement)break;if(S.hasAttribute&&S.hasAttribute("skip-key-interaction"))return!0}return!1};
_.e.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.y3.Object.defineProperties(ec.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var f;return!!_.H((f=this.data)==null?void 0:f.expandedContent,dim)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var f;return!!_.H((f=this.data)==null?void 0:f.expandedContent,_.Pej)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var f,S;return!((f=this.data)==null||!f.useCustomColors)&&!((S=this.data)==null||!S.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var f,S;return!!((f=this.data)==null?0:(S=f.header)==null?0:S.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var f,S;return!!((f=this.data)==null?0:(S=f.header)==null?0:S.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var f,S;return!!((f=this.data)==null?0:(S=f.header)==null?0:S.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
ec.prototype.onUp=ec.prototype.onUp;ec.prototype.onDown=ec.prototype.onDown;ec.prototype.isExpandedChanged=ec.prototype.isExpandedChanged;ec.prototype.dataChanged=ec.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],ec.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],ec.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],ec.prototype,"ytComponentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],ec.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],ec.prototype,"isExpanded",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],ec.prototype,"disableExpand",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],ec.prototype,"isSearch",void 0);
_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],ec.prototype,"isWatch",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.Z("design:type",Object)],ec.prototype,"showProminentLabel",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.Z("design:type",Object)],ec.prototype,"showRightSideLabel",void 0);
_.N([_.n({value:!1,reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ec.prototype,"hasVideoSummary",null);_.N([_.n({value:!1,reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ec.prototype,"hasLockupViewModel",null);_.N([_.n({reflectToAttribute:!0}),_.k("data","isWatch"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ec.prototype,"useCustomColors",null);
_.N([_.n({reflectToAttribute:!0}),_.k("data","isExpanded"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ec.prototype,"showInfoButton",null);_.N([_.k("data","isExpanded"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ec.prototype,"showTimestamp",null);_.N([_.k("data","isExpanded"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ec.prototype,"showExpandedSubtitle",null);
_.N([_.k("data","isExpanded"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ec.prototype,"showThumbnail",null);_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ec.prototype,"useVppShoppingDestinationStyle",null);_.N([_.n(),_.Z("design:type",Object)],ec.prototype,"toggleExpandableContent",void 0);_.N([_.vF("ytd-horizontal-card-list-renderer"),_.Z("design:type",Object)],ec.prototype,"JSC$13120_cardList",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.Z("design:type",Object)],ec.prototype,"useSquareThumbnail",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ec.prototype,"dataChanged",null);_.N([_.JO("isExpanded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ec.prototype,"isExpandedChanged",null);
_.N([_.Vg("down"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],ec.prototype,"onDown",null);_.N([_.Vg("up"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],ec.prototype,"onUp",null);_.N([_.C({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],ec);
_.p(ec,"ytd-expandable-metadata-renderer",function(){if(hAN!==void 0)return hAN;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return hAN=f},{mode:1});var RIj,XbL=function(){if(RIj!==void 0)return RIj;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return RIj=f};_.eq(_.jL,"yt-avatar-stack-view-model",{props:{className:_.W4,data:_.W4,overrides:_.W4,isOverlay:_.W4,useMediumText:_.W4,decorations:_.W4,hideAvatar:_.W4}});_.Dd("itemSectionRenderer","videoRenderer","ytd-video-renderer");var bb=function(){var f=_.I.apply(this,arguments)||this;f.disableExpand=!1;f.shouldShowChannelInfo=!1;f.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return f};
_.q(bb,_.I);_.e=bb.prototype;_.e.computeUseSearchUi=function(){var f,S;return this.isSearch||((f=this.data)==null?void 0:(S=f.style)==null?void 0:S.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.e.computeUseThreeLineTitle=function(){var f;return((f=this.data)==null?void 0:f.maxTitleLines)===3};
_.e.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.K("polymer_video_renderer_defer_menu")&&!eR7?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"}}}};
_.e.attached=function(){_.Rl(this.hostElement,"blue-links",_.K("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.e.detached=function(){this.clearInlinePreviewHoverListeners()};
_.e.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.Xc(_.m9(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var f=this.get("data.buttons.buttonRenderer.serviceEndpoint"),S;f&&((S=_.H(f.commandMetadata,_.O2))==null?0:S.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(f);this.updateInlinePreviewHoverListeners()};
_.e.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13125_inlinePreviewHoverListener=W8({mediaRenderer:this,lockupElement:this.JSC$13125_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.e.clearInlinePreviewHoverListeners=function(){var f;(f=this.JSC$13125_inlinePreviewHoverListener)==null||mZ(f)};
_.e.onTextWrapperClick=function(f){var S,B,G=this.hideTranslation?(S=this.data)==null?void 0:S.untranslatedNavigationEndpoint:(B=this.data)==null?void 0:B.navigationEndpoint;S=_.fF(_.ct(f),this.hostElement,["expandable-metadata"]);!G||S&&!_.K("expandable_metadata_fix_killswitch")||_.lF(_.ct(f),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.ew(this.hostElement,"yt-navigate",{endpoint:G})};
_.e.computeThumbnailWidth=function(f,S,B,G,g){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:G?g==="MASSIVE"?600:g==="BIG"?500:g==="MEDIUM"?450:420:B?360:S?128:f?210:246};
_.e.computeUseBiggerThumbs=function(f){return f&&_.K("enable_desktop_search_bigger_thumbs")};
_.e.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.e.computeVideoStyle=function(){if(_.K("enable_video_style")){var f,S;return(f=this.data)==null?void 0:(S=f.style)==null?void 0:S.value}};
_.e.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.e.handleHideItemSectionVideosByIdCommand=function(f){var S;f=(S=_.H(f,Aqv))==null?void 0:S.videoId;this.data&&this.data.videoId===f&&(this.isHidden=!0)};
_.e.getMetadataSnippetContainerClass=function(f){return f?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.e.computeTitleText=function(f,S,B){return f?B:S};
_.e.computeDescriptionSnippet=function(f,S,B){return f?B:S};
_.e.computeSnippetText=function(f,S,B){return f?B:S};
_.e.computeNavigationEndpoint=function(f,S){return f?S==null?void 0:S.untranslatedNavigationEndpoint:S==null?void 0:S.navigationEndpoint};
_.e.hideInlineTitleIcon=function(f,S){return f||!S};
_.y3.Object.defineProperties(bb.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 f;return(f=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?f:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var f,S,B;return!!(this==null?0:(f=this.data)==null?0:(S=f.channelThumbnailSupportedRenderers)==null?0:(B=S.channelThumbnailWithLinkRenderer)==null?0:B.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var f;return!!_.H((f=this.data)==null?void 0:f.avatar,vfi)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.JSC$13125_inlinePreviewHoverListener)==null?0:Er(f))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.y3.Object.defineProperties(bb,{template:{configurable:!0,enumerable:!0,get:function(){return XbL()}}});
bb.prototype.dataChanged=bb.prototype.dataChanged;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],bb.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],bb.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],bb.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.kP),_.Z("design:type",Object)],bb.prototype,"ytdDismissibleItemBehavior",void 0);
_.N([_.r(_.pR),_.Z("design:type",Object)],bb.prototype,"ytdLockupBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],bb.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],bb.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],bb.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],bb.prototype,"isBackstageVideo",void 0);
_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],bb.prototype,"isPostCompactVideo",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],bb.prototype,"isHistory",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],bb.prototype,"isRichGridVideoPost",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],bb.prototype,"isHidden",void 0);
_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],bb.prototype,"isSearch",void 0);_.N([_.n({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.Z("design:type",Boolean)],bb.prototype,"useSearchUi",void 0);_.N([_.n({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.Z("design:type",Boolean)],bb.prototype,"useThreeLineTitle",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.Z("design:type",Boolean)],bb.prototype,"useBiggerThumbs",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.Z("design:type",Object)],bb.prototype,"videoStyle",void 0);_.N([_.n({computed:"computeDisableExpand(videoStyle)"}),_.Z("design:type",Object)],bb.prototype,"disableExpand",void 0);
_.N([_.n({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.Z("design:type",Object)],bb.prototype,"shouldShowChannelInfo",void 0);_.N([_.n({reflectToAttribute:!0,value:function(){return _.gO("desktop_search_bigger_thumbs_style")}}),
_.Z("design:type",String)],bb.prototype,"biggerThumbsStyle",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.Z("design:type",String)],bb.prototype,"inlineTitleIcon",void 0);_.N([_.n({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.Z("design:type",Object)],bb.prototype,"computedNavigationEndpoint",void 0);_.N([_.n({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(f,S){return _.w9(f.entities,"searchVideoResultEntity",S)}}),
_.Z("design:type",Object)],bb.prototype,"searchVideoResultEntity",void 0);_.N([_.vF("ytd-thumbnail"),_.Z("design:type",HTMLElement)],bb.prototype,"thumbnail",void 0);_.N([_.vF("#dismissible"),_.Z("design:type",HTMLElement)],bb.prototype,"JSC$13125_dismissibleMedia",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],bb.prototype,"dataChanged",null);
_.N([_.k("searchVideoResultEntity"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],bb.prototype,"hideTranslation",null);_.N([_.k("searchVideoResultEntity"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],bb.prototype,"hiddenBadgeGroups",null);_.N([_.k("data","useAvatar"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],bb.prototype,"shouldShowChannelThumbnail",null);_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],bb.prototype,"useAvatar",null);
_.N([_.k("lockupIsHovered"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],bb.prototype,"isHovered",null);_.N([_.C({is:"ytd-video-renderer",disableElementRegistration:!0})],bb);_.p(bb,"ytd-video-renderer",function(){return XbL()},{mode:_.X_("kevlar_poly_si_batch_j047")?1:2});var hk=function(){var f=_.I.apply(this,arguments)||this;f.editDialog=null;f.roundedContainer=!0;f.isLoading=!1;f.isRichGrid=!1;f.isRichGridRepost=!1;f.reduceSidePaddings=_.K("reduce_side_paddings_in_shelf");f.JSC$13132_spinnerEl=null;return f};
_.q(hk,_.I);_.e=hk.prototype;
_.e.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"}}}};
_.e.contentTextChanged=function(){this.expander.reset()};
_.e.dataChanged=function(){var f=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var S=0,B=this.data.actions&&this.data.actions.length;S<B;S++)this.openEditDialog(_.H(this.data.actions[S],w_j));if((S=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(S=this.get("buttonRenderer.hint.hintRenderer.hintId",S))&&S.startsWith("share-post-hint")){var G=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(G){_.Sj.getInstance();var g=B4(_.uC(_.Jf("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.xJ.addLowPriorityJob(function(){_.Xh(f.hostElement,g,G)})}}}};
_.e.updatePoll=function(f){f>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.e.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$13132_spinnerEl||(this.JSC$13132_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.m9(this.hostElement).appendChild(this.JSC$13132_spinnerEl));this.JSC$13132_spinnerEl&&(this.JSC$13132_spinnerEl.active=this.isLoading)};
_.e.onYtNavigate=function(f){var S=this.get("updateCommentDialogEndpoint",f.detail.endpoint);S&&(this.openEditDialog(S),f.stopPropagation())};
_.e.onYtCommentboxDismiss=function(){this.editDialog=null};
_.e.onYtCommentPollRevert=function(f,S){S&&this.updatePoll(S.selectedChoiceIndex)};
_.e.onYtServiceRequestSent=function(f,S){var B;S.endpoint&&(_.H(S.endpoint,xI7)||_.H(S.endpoint,Os1)&&((B=_.H(S.endpoint,Os1))==null||!B.clientActions))&&(this.isLoading=!0);if(S.actions)for(f=0;f<S.actions.length;f++)B=S.actions[f],_.H(B,rU)&&(B=this.get("updateBackstagePollAction.selectedChoiceIndex",B),B==void 0&&(B=-1),this.updatePoll(B))};
_.e.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.e.openEditDialog=function(f){f&&f.dialog&&(this.editDialog=f.dialog,f=this.editDialogEl.firstElementChild)&&(f.focus(),f.openDialog&&f.openDialog())};
_.e.computeIsPostHidden=function(f,S){return!!f||S};
_.e.computeSurfaceType=function(f){return f?f.toLowerCase().replace(/_/g,"-"):""};
_.e.computeUsesCompactLockup=function(f){return f==="BACKSTAGE_SURFACE_TYPE_HOME"||f==="BACKSTAGE_SURFACE_TYPE_SEARCH"||f==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||f==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||f==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||f==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.e.computeShowWithoutToolbar=function(f){return!f.actionButtons&&!f.actionMenu};
_.e.computePostAttachment=function(f){if(f.backstageAttachment){if(_.H(f.backstageAttachment,XGm))return"poll";if(_.H(f.backstageAttachment,a7i))return"quiz";if(_.H(f.backstageAttachment,_.CW))return"video";if(_.H(f.backstageAttachment,y_N))return"uploaded-videos";if(_.H(f.backstageAttachment,CGo))return f.contentText?"image":"image-only";if(_.H(f.backstageAttachment,MnL))return"playlist"}return"none"};
_.e.computePostTabIndex=function(f){return f?0:-1};
_.e.computeButtonTooltipPosition=function(f){return this.computeUsesCompactLockup(f)?"top":"bottom"};
_.e.computeHasText=function(f){return!(f==null||!f.contentText)};
_.e.onTap=function(f){var S,B;if(((S=this.data)==null?0:S.navigationEndpoint)&&((B=this.data)==null?void 0:B.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var G;((G=this.data)==null?0:G.navigationEndpoint)&&!_.lF(_.ct(f)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.ew(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.y3.Object.defineProperties(hk.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.voteCount)||_.uC("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.H(this.data.backstageAttachment,XGm))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.H(this.data.backstageAttachment,y_N))}}});
hk.prototype.onYtServiceRequestCompleted=hk.prototype.onYtServiceRequestCompleted;hk.prototype.onYtServiceRequestSent=hk.prototype.onYtServiceRequestSent;hk.prototype.onYtCommentPollRevert=hk.prototype.onYtCommentPollRevert;hk.prototype.onYtCommentboxDismiss=hk.prototype.onYtCommentboxDismiss;hk.prototype.onYtNavigate=hk.prototype.onYtNavigate;hk.prototype.isLoadingChanged=hk.prototype.isLoadingChanged;hk.prototype.dataChanged=hk.prototype.dataChanged;hk.prototype.contentTextChanged=hk.prototype.contentTextChanged;
_.N([_.r(_.kP),_.Z("design:type",Object)],hk.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],hk.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],hk.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],hk.prototype,"ytComponentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],hk.prototype,"data",void 0);
_.N([_.n(),_.Z("design:type",Object)],hk.prototype,"editDialog",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],hk.prototype,"roundedContainer",void 0);_.N([_.n(),_.Z("design:type",Object)],hk.prototype,"isLoading",void 0);_.N([_.n({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.Z("design:type",String)],hk.prototype,"surface",void 0);
_.N([_.n({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],hk.prototype,"usesCompactLockup",void 0);_.N([_.n({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],hk.prototype,"showWithoutToolbar",void 0);_.N([_.n({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.Z("design:type",String)],hk.prototype,"attachment",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],hk.prototype,"isRichGrid",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],hk.prototype,"isRichGridRepost",void 0);_.N([_.n({reflectToAttribute:!0,value:_.K("use_better_post_dismissals")}),_.Z("design:type",Boolean)],hk.prototype,"useBetterPostDismissals",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],hk.prototype,"reduceSidePaddings",void 0);
_.N([_.n({computed:"computeHasText(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],hk.prototype,"hasText",void 0);_.N([_.vF("#expander"),_.Z("design:type",Object)],hk.prototype,"expander",void 0);_.N([_.vF("#action-buttons"),_.Z("design:type",Object)],hk.prototype,"actionButtons",void 0);_.N([_.vF("#edit-dialog"),_.Z("design:type",HTMLElement)],hk.prototype,"editDialogEl",void 0);
_.N([_.JO("data.contentText"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hk.prototype,"contentTextChanged",null);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hk.prototype,"dataChanged",null);_.N([_.JO("isLoading"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hk.prototype,"isLoadingChanged",null);
_.N([_.Vg("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],hk.prototype,"onYtNavigate",null);_.N([_.Vg("yt-commentbox-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hk.prototype,"onYtCommentboxDismiss",null);_.N([_.Vg("yt-comment-poll-revert"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],hk.prototype,"onYtCommentPollRevert",null);
_.N([_.Vg("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.N1]),_.Z("design:returntype")],hk.prototype,"onYtServiceRequestSent",null);_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.cw]),_.Z("design:returntype")],hk.prototype,"onYtServiceRequestCompleted",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],hk.prototype,"voteCount",null);
_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],hk.prototype,"commentCount",null);_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],hk.prototype,"hasPoll",null);_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],hk.prototype,"hasUploadedVideo",null);_.N([_.C({is:"ytd-post-renderer",disableElementRegistration:!0})],hk);
_.p(hk,"ytd-post-renderer",function(){if(n3X!==void 0)return n3X;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return n3X=f},{mode:1});var wb6;var hIm;var Tf=function(){return _.I.apply(this,arguments)||this};
_.q(Tf,_.I);Tf.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Tf.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Tf.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.o_.YtdHorizontalListBehavior),_.Z("design:type",Object)],Tf.prototype,"ytdHorizontalListBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Tf.prototype,"componentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Tf.prototype,"data",void 0);
_.N([_.n({value:"$.items.children"}),_.Z("design:type",String)],Tf.prototype,"itemsPath",void 0);_.N([_.n({value:1}),_.Z("design:type",Number)],Tf.prototype,"initialCount",void 0);_.N([_.n(),_.Z("design:type",String)],Tf.prototype,"surface",void 0);_.N([_.C({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],Tf);
_.p(Tf,"ytd-post-multi-image-renderer",function(){if(hIm!==void 0)return hIm;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return hIm=f},{mode:_.X_("kevlar_poly_si_batch_j079")?1:2});var Ty8={"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"}}},F0=function(){var f=_.I.apply(this,arguments)||this;f.hasInlineCommentSection=!1;f.editDialog=null;f.isLoading=!1;f.shouldHideAuthor=!1;f.shouldShowVideoTime=!1;
f.isInEngagementPanel=!1;f.hideBorder=!1;f.usesFullLockup=!1;f.shouldShowMenuInCompactView=!1;f.JSC$13148_spinnerEl=null;f.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return f};
_.q(F0,_.I);_.e=F0.prototype;_.e.configureRendererStamper=function(){return Ty8};
_.e.computeIsPollHeaderEnabled=function(f){return(f==null?void 0:f.pollMetadataIcon)!=null};
_.e.getPublishTimeStampString=function(f,S){S=new Date((Number(S)-60*((new Date).getTimezoneOffset()-(new Date(Number(S)*1E3)).getTimezoneOffset()))*1E3);S=(new ZK(10)).format(S);if(f&&f.runs&&f.runs.length)for(var B=0;B<f.runs.length;B++)f.runs[B].text&&(f.runs[B].text=f.runs[B].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",S));return f};
_.e.created=function(){this.JSC$13148_spinnerEl=null};
_.e.contentTextChanged=function(){this.expander.reset()};
_.e.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var f;if((f=this.data)==null?0:f.actions){f=_.m(this.data.actions);for(var S=f.next();!S.done;S=f.next())this.openEditDialog(_.H(S.value,w_j))}};
_.e.handleSignalActionOpenPostCommentDialogAction=function(){_.m9(this.hostElement).querySelector("#action-buttons").reply()};
_.e.updatePoll=function(f,S){S&&this.set("data.pollMetadataVoteCountText",S);this.hasInlineCommentSection&&(f=f>=0,S=_.m9(this.hostElement).querySelector("#action-buttons"),f?S.reply():S.hideReplyDialog())};
_.e.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$13148_spinnerEl||(this.JSC$13148_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.m9(this.hostElement).appendChild(this.JSC$13148_spinnerEl));this.JSC$13148_spinnerEl&&(this.JSC$13148_spinnerEl.active=this.isLoading)};
_.e.onYtNavigate=function(f){var S=this.get("updateCommentDialogEndpoint",f.detail.endpoint);S&&(this.openEditDialog(S),f.stopPropagation())};
_.e.onYtCommentboxDismiss=function(){this.editDialog=null};
_.e.onYtCommentPollRevert=function(f,S){S&&this.updatePoll(S.selectedChoiceIndex,S.totalVotes)};
_.e.onYtServiceRequestSent=function(f,S){f.stopPropagation();f=_.H(S.endpoint,Os1);if(_.H(S.endpoint,xI7)||f&&!f.clientActions)this.isLoading=!0;if(S.actions)for(f=0;f<S.actions.length;f++){var B=S.actions[f],G=_.H(B,rU);G&&(B=this.get("updateBackstagePollAction.selectedChoiceIndex",B),B===void 0&&(B=-1),this.updatePoll(B,G.totalVotes))}};
_.e.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.e.openEditDialog=function(f){f&&f.dialog&&(this.editDialog=f.dialog,f=this.editDialogElement.firstElementChild)&&(f.focus(),f.openDialog&&f.openDialog())};
_.e.computeIsBodyHidden=function(f,S){return!!f||S};
_.y3.Object.defineProperties(F0.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var f,S;if((f=this.data)==null?0:(S=f.pollMetadataIcon)==null?0:S.iconType)return _.F_(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.voteCount)||_.uC("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.H(this.data.backstageAttachment,XGm))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.H(this.data.backstageAttachment,a7i))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.H(this.data.backstageAttachment,y_N))}}});
F0.prototype.onYtServiceRequestCompleted=F0.prototype.onYtServiceRequestCompleted;F0.prototype.onYtServiceRequestSent=F0.prototype.onYtServiceRequestSent;F0.prototype.onYtCommentPollRevert=F0.prototype.onYtCommentPollRevert;F0.prototype.onYtCommentboxDismiss=F0.prototype.onYtCommentboxDismiss;F0.prototype.onYtNavigate=F0.prototype.onYtNavigate;F0.prototype.isLoadingChanged=F0.prototype.isLoadingChanged;F0.prototype.dataChanged=F0.prototype.dataChanged;F0.prototype.contentTextChanged=F0.prototype.contentTextChanged;
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],F0.prototype,"actionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],F0.prototype,"rendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],F0.prototype,"rendererstamperBehavior",void 0);_.N([_.vF("#contentTextExpander"),_.Z("design:type",Object)],F0.prototype,"expander",void 0);
_.N([_.vF("#edit-dialog"),_.Z("design:type",Element)],F0.prototype,"editDialogElement",void 0);_.N([_.n(),_.Z("design:type",Object)],F0.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],F0.prototype,"hasInlineCommentSection",void 0);_.N([_.n(),_.Z("design:type",Object)],F0.prototype,"editDialog",void 0);_.N([_.n(),_.Z("design:type",Object)],F0.prototype,"isLoading",void 0);
_.N([_.n({computed:"computeIsPollHeaderEnabled(data)"}),_.Z("design:type",Boolean)],F0.prototype,"isPollHeaderEnabled",void 0);_.N([_.n(),_.Z("design:type",Object)],F0.prototype,"shouldHideAuthor",void 0);_.N([_.n(),_.Z("design:type",Object)],F0.prototype,"shouldShowVideoTime",void 0);_.N([_.n(),_.Z("design:type",Object)],F0.prototype,"isInEngagementPanel",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],F0.prototype,"hideBorder",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],F0.prototype,"usesFullLockup",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],F0.prototype,"shouldShowMenuInCompactView",void 0);_.N([_.k("isInEngagementPanel"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],F0.prototype,"postTextMaxLines",null);_.N([_.k("data.icon.iconType"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],F0.prototype,"pollIcon",null);
_.N([_.JO("data.contentText"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],F0.prototype,"contentTextChanged",null);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],F0.prototype,"dataChanged",null);_.N([_.JO("isLoading"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],F0.prototype,"isLoadingChanged",null);
_.N([_.Vg("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],F0.prototype,"onYtNavigate",null);_.N([_.Vg("yt-commentbox-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],F0.prototype,"onYtCommentboxDismiss",null);_.N([_.Vg("yt-comment-poll-revert"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],F0.prototype,"onYtCommentPollRevert",null);
_.N([_.Vg("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.N1]),_.Z("design:returntype")],F0.prototype,"onYtServiceRequestSent",null);_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],F0.prototype,"onYtServiceRequestCompleted",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],F0.prototype,"voteCount",null);
_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],F0.prototype,"commentCount",null);_.N([_.k("data.backstageAttachment"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],F0.prototype,"hasPoll",null);_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],F0.prototype,"hasQuiz",null);_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],F0.prototype,"hasUploadedVideo",null);
_.N([_.C({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],F0);
_.p(F0,"ytd-backstage-post-renderer",function(){if(wb6!==void 0)return wb6;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return wb6=f},{mode:1});var Fem;var Vk=function(){var f=_.I.apply(this,arguments)||this;f.editDialog=null;f.showExpandButton=!1;f.isRichGrid=!1;f.usesFullLockup=!1;return f};
_.q(Vk,_.I);_.e=Vk.prototype;_.e.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"}}}};
_.e.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.e.computeShowExpandButton=function(f){return this.usesCompactLockup||f&&f.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.e.computeUsesCompactLockup=function(f){return!!f.condensedContent};
_.e.computeShowFullContentText=function(f){return!f};
_.e.onYtNavigate=function(f){f=this.get("updateCommentDialogEndpoint",f.detail.endpoint);this.openEditDialog(f)};
_.e.onYtCommentboxDismiss=function(){this.editDialog=null};
_.e.openEditDialog=function(f){f&&f.dialog&&(this.editDialog=f.dialog,f=this.repostEditDialogEl.firstElementChild)&&(f.focus(),f.openDialog&&f.openDialog())};
_.e.onTap=function(f){if(this.data){var S=null;this.usesCompactLockup&&!_.lF(_.ct(f)||[],this.hostElement,["YT-IMG-SHADOW"])?S=this.get("navigationEndpoint",this.data):f.target===this.moreButtonEl&&(S=this.get("navigationEndpoint",f.target.data));S&&_.ew(this.hostElement,"yt-navigate",{endpoint:S})}};
Vk.prototype.onYtCommentboxDismiss=Vk.prototype.onYtCommentboxDismiss;Vk.prototype.onYtNavigate=Vk.prototype.onYtNavigate;Vk.prototype.dataChanged=Vk.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Vk.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Vk.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Vk.prototype,"data",void 0);
_.N([_.n(),_.Z("design:type",Object)],Vk.prototype,"editDialog",void 0);_.N([_.n({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],Vk.prototype,"usesCompactLockup",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Vk.prototype,"showExpandButton",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Vk.prototype,"isRichGrid",void 0);
_.N([_.n({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],Vk.prototype,"showFullContentText",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Vk.prototype,"usesFullLockup",void 0);_.N([_.vF("#more"),_.Z("design:type",Object)],Vk.prototype,"moreButtonEl",void 0);_.N([_.vF("#repost-content-text"),_.Z("design:type",HTMLElement)],Vk.prototype,"repostContentTextEl",void 0);
_.N([_.vF("#repost-edit-dialog"),_.Z("design:type",HTMLElement)],Vk.prototype,"repostEditDialogEl",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Vk.prototype,"dataChanged",null);_.N([_.Vg("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Vk.prototype,"onYtNavigate",null);
_.N([_.Vg("yt-commentbox-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Vk.prototype,"onYtCommentboxDismiss",null);_.N([_.C({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],Vk);
_.p(Vk,"ytd-shared-post-renderer",function(){if(Fem!==void 0)return Fem;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Fem=f},{mode:1});var VYm;var Jn6;var Jk=function(){return _.I.apply(this,arguments)||this};
_.q(Jk,_.I);Jk.prototype.attached=function(){var f=this;this.networkStatusManager||(this.networkStatusManager=new _.N7,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){f.onlineHandler()}))};
Jk.prototype.detached=function(){var f=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){f.onlineHandler()}),delete this.networkStatusManager)};
Jk.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Jk.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Jk.prototype,"ytComponentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Jk.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],Jk);
_.p(Jk,"ytd-reload-page-button-renderer",function(){if(Jn6!==void 0)return Jn6;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);
return Jn6=f},{mode:1});var PLN={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"},Pm=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return f};
_.q(Pm,_.I);_.e=Pm.prototype;_.e.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.e.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.e.computeHasBodyText=function(f){return!!f.bodyText};
_.e.computeButtons=function(f){var S=[];f.ctaButton&&S.push(f.ctaButton);f.secondaryButton&&S.push(f.secondaryButton);return S};
_.e.computeRendererStyle=function(f){return f.style?f.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():f.icon?"":"no-icon"};
_.e.getIconName=function(f,S){S=S===void 0?!1:S;if(f===void 0)return"";f=this.get("icon.iconType",f);var B;_.K("enable_hlp_client_icon_pick")?B=this.getThemedIcon(f,S):B=f;(S=PLN[B])||(S="yt-icons");return[S,B].join(":")};
_.e.getThemedIcon=function(f,S){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(f)?S?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(f)?S?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":f};
_.e.isThumbnail=function(f){return!!f.thumbnail};
_.e.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.e.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Pm.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Pm.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],Pm.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Pm.prototype,"data",void 0);
_.N([_.n({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.Z("design:type",String)],Pm.prototype,"rendererStyle",void 0);_.N([_.n({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.Z("design:type",String)],Pm.prototype,"iconName",void 0);_.N([_.n({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],Pm.prototype,"thumbnail",void 0);_.N([_.n({computed:"computeButtons(data)"}),_.Z("design:type",Array)],Pm.prototype,"buttons",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Pm.prototype,"isDarkTheme",void 0);_.N([_.n({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],Pm.prototype,"hasBodyText",void 0);_.N([_.C({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],Pm);
_.p(Pm,"ytd-background-promo-renderer",function(){if(VYm!==void 0)return VYm;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return VYm=f},{mode:1});var vxm;var vm=function(){var f=_.I.apply(this,arguments)||this;f.collections=_.K("web_modern_collections_v2");return f};
_.q(vm,_.I);_.y3.Object.defineProperties(vm.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var f,S,B,G,g,b;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(f=this.data)==null?void 0:(S=f.thumbnail)==null?void 0:S.sampledThumbnailColor,vibrantColorPalette:(B=this.data)==null?void 0:(G=B.thumbnail)==null?void 0:G.vibrantColorPalette,darkColorPalette:(g=this.data)==null?void 0:(b=g.thumbnail)==null?void 0:b.darkColorPalette,experimentEnabled:this.collections}}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],vm.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],vm.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],vm.prototype,"collections",void 0);_.N([_.k("data","collections"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],vm.prototype,"collectionStack",null);_.N([_.C({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],vm);
_.p(vm,"ytd-compact-station-renderer",function(){if(vxm!==void 0)return vxm;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return vxm=f},{mode:1});var Keg;var Kp=function(){var f=_.I.apply(this,arguments)||this;f.isRichGrid=!1;return f};
_.q(Kp,_.I);Kp.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]]"}}}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Kp.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Kp.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Kp.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Kp.prototype,"isRichGrid",void 0);_.N([_.C({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],Kp);
_.p(Kp,"ytd-grid-channel-renderer",function(){if(Keg!==void 0)return Keg;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return Keg=f},{mode:1});var dqi;var dK=function(){return _.I.apply(this,arguments)||this};
_.q(dK,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],dK.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],dK.prototype,"data",void 0);_.N([_.C({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],dK);
_.p(dK,"ytd-grid-movie-playlist-renderer",function(){if(dqi!==void 0)return dqi;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return dqi=f},{mode:1});var ieN;var ib=function(){var f=_.I.apply(this,arguments)||this;f.downloadProgress=0;f.transferState="TRANSFER_STATE_UNKNOWN";f.modernButtons=_.K("web_modern_buttons");f.useModernCollectionsV2=_.K("web_modern_collections_v2");return f};
_.q(ib,_.I);ib.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
ib.prototype.configureRendererStamper=function(){return{"data.menu":hH}};
ib.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
ib.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.K("woffle_playlist_renderer_killswitch")){var f,S=oZG(this.entityInfo,this.transferState,this.downloadProgress,(f=this.data)==null?void 0:f.playlistId,this.isOnline);f=S.viewPlaylistText;var B=S.badges;S=S.thumbnailOverlays;this.isDownloads=!!f||!!B;this.set("data.viewPlaylistText",f);B&&B.length>0&&this.set("data.badges",B);S&&S.length>0&&this.set("data.thumbnailOverlays",
S)}};
_.y3.Object.defineProperties(ib.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 f;return!((f=this.data)==null?0:f.menu)}}});
ib.prototype.transferStateChanged=ib.prototype.transferStateChanged;ib.prototype.dataChanged=ib.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],ib.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.pR),_.Z("design:type",Object)],ib.prototype,"ytdLockupBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],ib.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],ib.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.n({selector:_.VRN,selectorArgs:["data.playlistId"]}),_.Z("design:type",Object)],ib.prototype,"downloadProgress",void 0);_.N([_.n({selector:_.DK,selectorArgs:["data.playlistId"]}),_.Z("design:type",Object)],ib.prototype,"transferState",void 0);_.N([_.n({selector:FkN,selectorArgs:["data.playlistId"]}),_.Z("design:type",Object)],ib.prototype,"entityInfo",void 0);_.N([_.n({selector:nJ}),_.Z("design:type",Boolean)],ib.prototype,"isOnline",void 0);
_.N([_.n(),_.Z("design:type",Object)],ib.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],ib.prototype,"downloadRenderData",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],ib.prototype,"modernButtons",void 0);_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],ib.prototype,"isDownloads",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],ib.prototype,"useModernCollectionsV2",void 0);
_.N([_.k("transferState"),_.n({reflectToAttribute:!0}),_.Z("design:type",String),_.Z("design:paramtypes",[])],ib.prototype,"downloadState",null);_.N([_.k("data"),_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ib.prototype,"menuHidden",null);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ib.prototype,"dataChanged",null);
_.N([_.HF("transferState","downloadProgress","isOnline"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ib.prototype,"transferStateChanged",null);_.N([_.C({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],ib);
_.p(ib,"ytd-grid-playlist-renderer",function(){if(ieN!==void 0)return ieN;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return ieN=f},{mode:1});var Hem;var Hm=function(){var f=_.I.apply(this,arguments)||this;f.collections=_.K("web_modern_collections_v2");return f};
_.q(Hm,_.I);Hm.prototype.configureRendererStamper=function(){return{"data.menu":hH,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.y3.Object.defineProperties(Hm.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var f,S,B,G,g,b;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(f=this.data)==null?void 0:(S=f.thumbnail)==null?void 0:S.sampledThumbnailColor,vibrantColorPalette:(B=this.data)==null?void 0:(G=B.thumbnail)==null?void 0:G.vibrantColorPalette,darkColorPalette:(g=this.data)==null?void 0:(b=g.thumbnail)==null?void 0:b.darkColorPalette,experimentEnabled:this.collections}}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Hm.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.kP),_.Z("design:type",Object)],Hm.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.r(_.pR),_.Z("design:type",Object)],Hm.prototype,"ytdLockupBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Hm.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Hm.prototype,"data",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Hm.prototype,"collections",void 0);_.N([_.k("data","collections"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Hm.prototype,"collectionStack",null);_.N([_.C({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],Hm);
_.p(Hm,"ytd-grid-radio-renderer",function(){if(Hem!==void 0)return Hem;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Hem=f},{mode:1});var qGm;var qy=function(){var f=_.I.apply(this,arguments)||this;f.useModernCollectionsV2=_.K("web_modern_collections_v2");return f};
_.q(qy,_.I);qy.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
qy.prototype.computeNavigationEndpoint=function(f){return n9V(f==null?void 0:f.navigationEndpoint)};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],qy.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],qy.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.pR),_.Z("design:type",Object)],qy.prototype,"ytdLockupBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],qy.prototype,"data",void 0);_.N([_.n({computed:"computeNavigationEndpoint(data)"}),_.Z("design:type",Object)],qy.prototype,"computedNavigationEndpoint",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],qy.prototype,"useModernCollectionsV2",void 0);_.N([_.C({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],qy);
_.p(qy,"ytd-grid-show-renderer",function(){if(qGm!==void 0)return qGm;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return qGm=f},{mode:1});var $qm;_.$M=function(f){this.playerClient=f};
_.QnL=function(f,S,B){B=B===void 0?{}:B;return f.playerClient.setOption("ad",S,B)};
_.$M.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.$M.prototype.executeCommand=function(f,S){this.getOptions().includes("executeCommand")?_.QnL(this,"executeCommand",{command:f,layoutId:S}):_.GN("Calling executeCommand when adModule is not loaded")};var Qk=function(){return _.I.apply(this,arguments)||this};
_.q(Qk,_.I);Qk.prototype.getLayoutId=function(){var f=_.U6("yt.www.ads.eventcache.getLastCompanionData");return f?(f=f())&&f.layoutId:null};
Qk.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var f=_.B8(),S=this.getLayoutId(),B=this.data.clickthroughEndpoint;f&&S&&_.K("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?f.getPlayerPromise().then(function(G){(new _.$M(G)).executeCommand(B,S)}):_.ew(this.hostElement,"yt-navigate",{endpoint:B})}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Qk.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Qk.prototype,"data",void 0);_.N([_.C({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],Qk);
_.p(Qk,"ytd-shopping-companion-item-renderer",function(){if($qm!==void 0)return $qm;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return $qm=f},{mode:1});var YGX;var YM=function(){var f=_.I.apply(this,arguments)||this;f.isExpandableContent=!1;return f};
_.q(YM,_.I);_.y3.Object.defineProperties(YM.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var f,S,B;return((f=this.data)==null?void 0:f.price)||((S=this.data)==null?void 0:(B=S.dealsData)==null?void 0:B.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var f,S;if((f=this.data)!=null&&f.dealsData&&((S=this.data)==null||!S.priceReplacementText)){f=this.data.dealsData;var B,G,g;return((B=f.salesData)==null?void 0:B.originalPrice)||((G=f.priceDropData)==null?void 0:G.referencePrice)||((g=f.promotionData)==null?void 0:g.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var f,S;return(f=this.data)==null?void 0:(S=f.dealsData)==null?void 0:S.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],YM.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],YM.prototype,"componentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],YM.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],YM.prototype,"isExpandableContent",void 0);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],YM.prototype,"showCta",null);
_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],YM.prototype,"ctaText",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],YM.prototype,"hasPriceTopPosition",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],YM.prototype,"hasPriceBottomPosition",null);_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],YM.prototype,"useNewStyle",null);
_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],YM.prototype,"showPriceReplacementText",null);_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],YM.prototype,"priceValue",null);_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],YM.prototype,"showDeal",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],YM.prototype,"showAffiliateDisclaimer",null);
_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],YM.prototype,"useSaleStyle",null);_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],YM.prototype,"useFromBrandCtaStyle",null);_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],YM.prototype,"useFromVendorCtaStyle",null);
_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],YM.prototype,"useShoppingCollectionCtaStyle",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],YM);
_.p(YM,"ytd-vertical-product-card-renderer",function(){if(YGX!==void 0)return YGX;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return YGX=f},{mode:1});var rn8;var rK=function(){return _.I.apply(this,arguments)||this};
_.q(rK,_.I);rK.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],rK.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],rK.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.pR),_.Z("design:type",Object)],rK.prototype,"ytdLockupBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],rK.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],rK);
_.p(rK,"ytd-grid-movie-renderer",function(){if(rn8!==void 0)return rn8;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return rn8=f},{mode:1});var jnN;var jc=function(){var f=_.I.apply(this,arguments)||this;f.rounded=!0;f.itemStyle="small-item";return f};
_.q(jc,_.I);jc.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var f,S,B,G,g=(S=_.H((f=this.data)==null?void 0:f.buttonCommand,_.qG))==null?void 0:(B=S.item)==null?void 0:(G=B.notificationTextRenderer)==null?void 0:G.successResponseText;g&&_.fFA(this.hostElement,g)}};
_.y3.Object.defineProperties(jc.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var f,S;return((f=this.data)==null?void 0:f.isProductPlaceholder)!==void 0&&((S=this.data)==null?void 0:S.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.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}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],jc.prototype,"ytRendererBehavior",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],jc.prototype,"rounded",void 0);_.N([_.n(),_.Z("design:type",Object)],jc.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",String)],jc.prototype,"itemStyle",void 0);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],jc.prototype,"hasPrice",null);
_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],jc.prototype,"hasPriceReplacementText",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],jc.prototype,"hasAdditionalFeesText",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],jc.prototype,"hasAffiliateDisclaimer",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],jc.prototype,"isProductPlaceholder",null);
_.N([_.n(),_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],jc.prototype,"hideOpenInNewIcon",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],jc.prototype,"ariaLabel",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],jc);
_.p(jc,"ytd-merch-shelf-item-renderer",function(){if(jnN!==void 0)return jnN;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return jnN=f},{mode:1});var OeN=_.oS(function(f){var S=_.tE("button-card-view-model");_.a8(S,function(){return f.data().rendererContext});
return _.T("button-card-view-model",{el:S,class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return f.data().title},
role:"button"},_.T(_.Oo,{model:{}}),_.T("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.T("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.T(_.v,{cond:function(){return f.data().image},
then:function(B){return _.T(_.f9,{data:B,alt:function(){var G;return(G=f.data().title)!=null?G:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.T("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return f.data().title})))},"Ya");_.K("web_button_view_model_wcw_registration_killswitch")||_.eq(OeN,"button-card-view-model",{props:{data:_.W4}});_.eq(_.oS(function(f){f=_.lu(f,{className:void 0});var S=f.data;f=f.className;var B=_.vW(function(){return S().onTapCommand},void 0,"NprDr");
return _.T("ytd-shopping-item-card",{class:_.Pw("ytdShoppingItemCardHost",f)},_.T(_.XD,{command:B,className:"ytdShoppingItemCardHostLink"},_.T("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.T(_.xK,{data:function(){return S().thumbnailViewModel}},{thumbnailViewModel:function(G){return _.T(_.ya,{data:G.data,
aspectRatio:3})}})),_.T("div",null,_.T("p",{class:"ytdShoppingItemCardHostItemTitle"},_.T(_.oY,{text:function(){return S().itemTitle}})),_.T("p",{class:"ytdShoppingItemCardHostPrice"},_.T(_.oY,{text:function(){return S().priceOrStatus}})))))},"Za"),"ytd-shopping-item-card",{props:{data:_.W4,
className:_.W4}});var xq1={isAdsVideo:!0},Ex1={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},Lem={showPlayerControls:!1,videoPreviewDurationMs:15E3},kAN={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.K("web_shorts_imp_fullwidth_killswitch")};var e3=null,otM={};var G3T="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(" "),Ow={},gtN=(Ow.FEwhat_to_watch="home",Ow.FEhashtag="hashtag",Ow.FEtrending="trending",Ow.FEhistory="history",Ow.SPunlimited="premium",Ow.FEmemberships_and_purchases="paid_memberships",Ow.SPredeem_code="redeem",Ow.SPverify_location="locate",Ow.SPminor_moment="minor_moment",
Ow.FEmini_app_container="mini_app",Ow.FEnews_destination="news",Ow.SPopen_in_app="open_in_app",Ow.FEexplore="explore",Ow.FEsubscriptions="subscriptions",Ow.FEsfv_audio_pivot="sfv_audio_pivot",Ow.FEplaylist_aggregation="playlist_aggregation",Ow);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");_.wh("init");var nxN=function(){},Uq1=_.oS(function(f){var S=f.data;
var B=f.inlineMetadata;var G=f.aspectRatio;var g=f.scrimStyle;var b=f.className;var z=f.useDefaultStyle;var X=new nxN,w=_.K("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",F=_.vW(function(){return(z==null?0:z())?w==="SHORTS_LOCKUP_STYLE_SLIM":S().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"gDCMs"),V=_.vW(function(){return _.Ev(B)||F()||!1},void 0,"x8cr8b"),J=function(){return(g==null?void 0:g())!==void 0?g==null?void 0:g():1},P=_.vW(function(){return S().belowThumbnailMetadata||
!V()},void 0,"Q84Mmb");
f=_.tE("ytm-shorts-lockup-view-model",function(a){X&&(X.hostElement=a,E())});
_.of(f,{visibilityCallback:function(a){var l=S().onFirstVisible;a&&l&&_.MB(l)},
showOption:{calledOnce:!0,state:"visible"}});b=_.Pw("shortsLockupViewModelHost",b);var d=_.tE("div"),Q={};Q=_.Pw(function(){return F(),"shortsLockupViewModelHostThumbnailContainer"},(Q.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.Ev(G)===1},Q.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.Ev(G)===2},Q.shortsLockupViewModelHostThumbnailContainerRounded=function(){return!F()},Q.shortsLockupViewModelHostThumbnailContainerCustomDimensions=
function(){return!_.K("web_shorts_2_by_3_lockups_study")&&!_.K("desktop_search_enable_two_by_three_shorts_aspect_ratio")},Q));
var x,E=function(){if(X){var a;(a=x)==null||mZ(a);var l;X.hostElement&&((l=X.data)==null?0:l.inlinePlayerData)&&(x=W8({mediaRenderer:X,lockupElement:X.hostElement,thumbnailElement:d.value,videoPreviewOpts:kAN}))}};
_.jp(function(){X&&(X.data=S(),E())},"M6Qdl");
var U=_.vW(function(){return S().thumbnail},void 0,"kpJjV"),A=_.vW(function(){return S().badge},void 0,"Uaw67"),t=_.vW(function(){return S().onTap},void 0,"aZjcTb"),M={};
return _.T("ytm-shorts-lockup-view-model",{el:f,class:b},_.T(_.gg,null,_.T(_.XD,{command:t,className:_.Pw("shortsLockupViewModelHostEndpoint",(M.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!P()},M),"reel-item-endpoint",""),
ariaHidden:function(){return!V()},
tabIndex:function(){return V()?0:-1}},_.T("div",{el:d,
class:Q},_.T(_.v,{cond:U,then:function(){return _.T(_.f9,{data:function(){var a;return(a=U==null?void 0:U())!=null?a:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),null),_.T(_.v,{cond:V,
then:function(){return _.T(sng,{data:S,scrimStyle:J,useDefaultStyle:z})}}),_.T(_.xK,{data:A},{badgeViewModel:function(a){return _.T(_.fp,{data:a.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.T(_.v,{cond:function(){return V()&&S().menuOnTap},
then:function(){return _.T(Dqg,{data:S,inlineMetadata:!0})}}),_.T(_.v,{cond:P,
then:function(){return _.T(Ioo,{data:S,useDefaultStyle:z})}})))},"$a"),sng=_.oS(function(f){var S=f.data;
var B=f.scrimStyle;var G=f.useDefaultStyle;var g=_.K("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",b=G&&_.K("web_hide_primary_text_for_pivot_panel"),z=_.vW(function(){return(G==null?0:G())?g==="SHORTS_LOCKUP_STYLE_SLIM":S().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"Vk6Xmf");
f={};f=_.Pw("shortsLockupViewModelHostInlineMetadata",(f.shortsLockupViewModelHostMetadataRounded=function(){return!z()},f.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(B==null?void 0:B())===3&&!_.K("enable_shorts_lockup_new_scrim")},f.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(B==null?void 0:B())===3&&_.K("enable_shorts_lockup_new_scrim")},f.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(B==null?void 0:B())===2||(B==null?void 0:
B())===4},f.shortsLockupViewModelHostShowOverPlayer=function(){return!0},f),"image-overlay-text");
var X={};return _.T("div",{class:f},_.T("h3",{class:_.Pw("shortsLockupViewModelHostMetadataTitle",(X.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(B==null?void 0:B())===4},X)),
"aria-label":function(){return S().accessibilityText}},_.T(_.v,{cond:function(){var w;
return!((w=S().overlayMetadata)==null||!w.primaryText)&&!b},
then:function(){return _.T(_.oY,{text:function(){var w;return(w=S().overlayMetadata)==null?void 0:w.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.T(_.v,{cond:function(){var w;
return(w=S().overlayMetadata)==null?void 0:w.secondaryText},
then:function(){return _.T(CLN,{data:S,scrimStyle:B,className:void 0})}}))},"ab"),Ioo=_.oS(function(f){var S=f.data;
var B=f.useDefaultStyle;var G=_.K("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",g=_.vW(function(){return(B==null?0:B())?G==="SHORTS_LOCKUP_STYLE_SLIM":S().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"KkUyib");
f=_.Pw(function(){return g()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},"image-overlay-text");
var b=_.tE("div"),z,X=_.iF(function(P){if(_.ZP(_.Ml(P),b.value,["AVATAR-VIEW-MODEL"]))return!1;var d;(d=z)==null||d.click();return!1}),w=_.vW(function(){return S().belowThumbnailMetadata||S().overlayMetadata},void 0,"pwoVwc"),F=function(){var P;
return(P=w())==null?void 0:P.avatar},V={},J={};
return _.T("div",{class:_.Pw(f,(V.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!F()},V)),
"on:click":X,el:b},_.T(_.xK,{data:F},{avatarViewModel:function(P){return _.T("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.T(_.Ya,{data:P.data}))}}),_.T("div",null,_.T("h3",{class:_.Pw("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(J.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var P,d;
return!((P=w())==null?0:(d=P.primaryText)==null?0:d.content)},J)),
"aria-label":function(){return S().accessibilityText}},_.T(_.XD,{ref:function(P){return void(z=P)},
command:function(){return S().onTap},
className:_.Pw("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var P,d;return(P=w())==null?void 0:(d=P.primaryText)==null?void 0:d.content}},_.T(_.v,{cond:function(){var P;
return(P=w())==null?void 0:P.primaryText},
then:function(P){return _.T(_.oY,{text:P,noEndpoints:!0,noStyleRuns:!0})}}))),_.T(_.v,{cond:function(){var P;
return(P=w())==null?void 0:P.secondaryText},
then:function(P){return _.T("div",{class:_.Pw("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead"),"aria-hidden":"true"},_.T(_.oY,{text:P,noStyleRuns:!0}))}})),_.T(_.v,{cond:function(){return S().menuOnTap},
then:function(){return _.T(Dqg,{data:S,inlineMetadata:!1})}}))},"bb"),CLN=_.oS(function(f){var S=f.data;
var B=f.scrimStyle;f=f.className;var G={};return _.T("div",{class:_.Pw((G.shortsLockupViewModelHostMetadataSubhead=function(){return(B==null?void 0:B())!==4},G.shortsLockupViewModelHostMetadataSubheadNew=_.K("enable_shorts_lockup_new_scrim"),G.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(B==null?void 0:B())===4},G),f),
"aria-hidden":"true"},_.T(_.oY,{text:function(){var g;return(g=S().overlayMetadata)==null?void 0:g.secondaryText},
noStyleRuns:!0}))},"cb"),Dqg=_.oS(function(f){var S=f.data;
var B=f.inlineMetadata;f={};f=_.Pw((f.shortsLockupViewModelHostInlineMetadataMenu=function(){return B()},f.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!B()},f.shortsLockupViewModelHostShowOverPlayer=function(){return!0},f),"image-overlay-text");
return _.T("div",{class:f},_.T(Be,{data:function(){return{style:B()?"overlay":"mono",accessibilityLabel:S().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(G){G.preventDefault();G.stopPropagation();var g=_.AZ({elementsCommand:S().menuOnTap,forceNewState:!0});if(g==null?0:g.onclick)g.onclick(G)}}},
iconName:"MORE_VERT"}))},"db");var pbj=_.oS(function(f){var S=f.data;var B=f.inlineMetadata;var G=f.aspectRatio;var g=f.scrimStyle;var b=f.className;var z=f.useDefaultStyle;f=_.vW(function(){var X=S().entityId;return X?X.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"W3Tlke");
return _.T("ytm-shorts-lockup-view-model-v2",{class:_.Pw("shortsLockupViewModelHost",b)},_.T(_.fo1,{contentId:f,aspectRatio:function(){return(G==null?void 0:G())===1?1:(G==null?void 0:G())===2?2:4}},function(){return _.T(Uq1,{data:S,
inlineMetadata:B,aspectRatio:G,scrimStyle:g,className:b,useDefaultStyle:z})}))},"eb");_.eq(pbj,"ytm-shorts-lockup-view-model-v2",{props:{data:_.gm,inlineMetadata:_.gm,aspectRatio:_.gm,scrimStyle:_.gm,className:_.gm,useDefaultStyle:_.gm}});var An$=16/9*210,xM=function(){var f=_.I.apply(this,arguments)||this;f.isExpandableContent=!1;f.hideShelfHeader=!1;f.engagementPanel=!1;f.buttonClasses=["arrow"];f.isSearch=!1;f.disableScrollEventListener=!1;f.containsLockup=!1;f.overrideArrowPositionForProductCard=!1;f.overrideArrowPositionForShoppingItemCard=!1;f.overrideArrowPositionForReelItems=!1;f.overrideArrowPositionForGridMovie=!1;f.overrideArrowPositionToCenter=!1;f.isSearchPostShelf=!1;f.overrideArrowPositionForMixedShelf=!1;f.overrideArrowPositionForMixedShelfShortsOnly=
!1;f.hasBigThumbsReelItems=!1;f.shouldUseMixedListHeight=!1;f.shouldUseShortsListHeight=!1;f.gridVideoWidth=0;f.isSearchVodShelf=!1;f.disableWheelScroll=!1;f.sizing="COMPACT";f.shortsLockupAspectRatio=0;return f};
_.q(xM,_.I);_.e=xM.prototype;
_.e.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]]"}}}}};
_.e.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.K("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.e.computeInitialCountNumber=function(f){if(!f)return 6;var S=f.items.some(function(b){return!!b.topicRecommendationsChipRenderer}),B=f.items.some(function(b){return!!b.displayAdRenderer}),G=this.computeShouldListItemsHaveEqualHeight(f),g=f.items.some(function(b){return!!b.gridPlaylistRenderer});
f=f.items.some(function(b){return!!b.shoppingItemCardViewModel});
return S?9:B?8:g||G?10:f?7:6};
_.e.computeContainsPost=function(f){return!!f&&!!f.items&&f.items.some(function(S){return!!S.postRenderer})};
_.e.computeContainsLockup=function(){if(_.K("web_horizontal_list_lockup_arrow_killswitch"))return!1;var f,S;return(f=this.data)==null?void 0:(S=f.items)==null?void 0:S.some(function(B){return!!B.lockupViewModel})};
_.e.maybeUpdateLockupAspectRatio=function(){var f,S;if(this.computeContainsLockup()&&((f=this.data)==null?0:(S=f.items)==null?0:S.length)){var B;f=zIA((B=this.data.items[0].lockupViewModel)==null?void 0:B.contentType,this.data.force16By9ThumbnailAspectRatio);B=Qx1(f);B=this.computeLockupWidth()/B;_.hO(this.hostElement,{"--yt-horizontal-list-content-height":B+"px"})}};
_.e.computeOverrideArrowPositionForProductCard=function(f){if(this.isExpandableContent)return!1;var S;return!!(f==null?0:(S=f.items)==null?0:S.some(function(B){return!!B.verticalProductCardRenderer}))};
_.e.computeOverrideArrowPositionForShoppingItemCard=function(f){var S;return!!(f==null?0:(S=f.items)==null?0:S.some(function(B){return!!B.shoppingItemCardViewModel}))};
_.e.computeOverrideArrowPositionForReelItemRenderer=function(f){return this.containsReelItemRenderer(f)};
_.e.computeHasBigThumbsReelItems=function(f,S){return f&&this.containsReelItemRenderer(S)};
_.e.computeShouldListItemsHaveEqualHeight=function(f){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(f==null?void 0:f.itemSizeConstraint)};
_.e.computeShouldListItemsHaveShortsHeight=function(f){return this.computeShouldListItemsHaveEqualHeight(f)&&!this.containsGridVideoRenderer(f)};
_.e.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.e.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.e.containsReelItemRenderer=function(f){var S;return!!(f==null?0:(S=f.items)==null?0:S.some(function(B){return!(!B.reelItemRenderer&&!B.shortsLockupViewModel)}))};
_.e.containsGridVideoRenderer=function(f){var S;return!!(f==null?0:(S=f.items)==null?0:S.some(function(B){return!!B.gridVideoRenderer||!!B.lockupViewModel}))};
_.e.computeContainsGridMovieRenderer=function(f){var S;return!!(f==null?0:(S=f.items)==null?0:S.some(function(B){return!!B.gridMovieRenderer}))};
_.e.computeOverrideArrowPositionToCenter=function(f){return this.computeIsSearchPostShelf(f)};
_.e.computeIsSearchPostShelf=function(f){var S;return!!(f==null?0:(S=f.items)==null?0:S.some(function(B){var G,g;return((g=(G=B.postRenderer)==null?void 0:G.surface)!=null?g:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.e.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(f){var S;return!!(f==null?0:(S=f.items)==null?0:S.some(function(B){var G,g,b;return((b=(G=B.backgroundPromoRenderer)==null?void 0:(g=G.style)==null?void 0:g.value)!=null?b:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.e.computeIsSearchVodShelf=function(f,S){return f&&this.containsGridVideoRenderer(S)};
_.e.computeDisableWheelScroll=function(f,S){return this.computeIsSearchVodShelf(f,S)};
_.e.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.e.computeShortsLockupAspectRatio=function(){return 1};
_.e.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.hO(this.hostElement,{"--ytd-reel-item-thumbnail-height":An$+"px"})};
xM.prototype.dataChanged=xM.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],xM.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],xM.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.o_.YtdHorizontalListBehavior),_.Z("design:type",Object)],xM.prototype,"ytdHorizontalListBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],xM.prototype,"data",void 0);
_.N([_.n(),_.Z("design:type",Object)],xM.prototype,"isExpandableContent",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],xM.prototype,"hideShelfHeader",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],xM.prototype,"engagementPanel",void 0);_.N([_.n(),_.Z("design:type",Array)],xM.prototype,"buttonClasses",void 0);_.N([_.n(),_.Z("design:type",Object)],xM.prototype,"isSearch",void 0);
_.N([_.n(),_.Z("design:type",Object)],xM.prototype,"disableScrollEventListener",void 0);_.N([_.n({computed:"computeInitialCountNumber(data)"}),_.Z("design:type",Number)],xM.prototype,"initialCount",void 0);_.N([_.n({computed:"computeContainsPost(data)"}),_.Z("design:type",Boolean)],xM.prototype,"supportComponentResize",void 0);_.N([_.n({computed:"computeContainsPost(data)"}),_.Z("design:type",Boolean)],xM.prototype,"containsPost",void 0);
_.N([_.n({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],xM.prototype,"containsLockup",void 0);_.N([_.n({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],xM.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.N([_.n({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],xM.prototype,"overrideArrowPositionForProductCard",void 0);_.N([_.n({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],xM.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.N([_.n({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],xM.prototype,"overrideArrowPositionForReelItems",void 0);_.N([_.n({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],xM.prototype,"overrideArrowPositionForGridMovie",void 0);
_.N([_.n({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],xM.prototype,"overrideArrowPositionToCenter",void 0);_.N([_.n({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],xM.prototype,"isSearchPostShelf",void 0);_.N([_.n({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],xM.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.N([_.n({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],xM.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.N([_.n({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.Z("design:type",Object)],xM.prototype,"hasBigThumbsReelItems",void 0);
_.N([_.n({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],xM.prototype,"shouldUseMixedListHeight",void 0);_.N([_.n({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],xM.prototype,"shouldUseShortsListHeight",void 0);_.N([_.n({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],xM.prototype,"gridVideoWidth",void 0);
_.N([_.n({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.Z("design:type",Object)],xM.prototype,"isSearchVodShelf",void 0);_.N([_.n({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.Z("design:type",Object)],xM.prototype,"disableWheelScroll",void 0);_.N([_.n({computed:"computeSizing(isSearch)"}),_.Z("design:type",Object)],xM.prototype,"sizing",void 0);
_.N([_.n({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.Z("design:type",Object)],xM.prototype,"shortsLockupAspectRatio",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xM.prototype,"dataChanged",null);
_.p(xM,"yt-horizontal-list-renderer",function(){if(uRN===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);uRN=f}f=uRN;return f},{mode:1});var Nyv;var MYj=[10,12,14,16,18,20,24,28,32,36],Ze8=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],Ew=function(){var f=_.I.apply(this,arguments)||this;f.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";f.hideOverflow=!1;f.useRoboto=!1;f.fontClass="";f.overflown=!1;f.actionMap={"yt-window-resized":"resize"};return f};
_.q(Ew,_.I);_.e=Ew.prototype;
_.e.attached=function(){var f=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();_.ui(this,function(){f.resize()});
if(!_.Td){var S,B,G;(S=document)==null||(B=S.fonts)==null||(G=B.ready)==null||G.then(function(){f.resize()})}};
_.e.dataChanged=function(){this.resize()};
_.e.guideIsExpandedChanged=function(){this.resize()};
_.e.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 f=this.getMaxNumLines(),S=this.getMinFont(),B=this.getMaxFont(),G=this.useRoboto?MYj:Ze8;for(G=G.filter(function(b){return b<=B&&b>=S});G.length>1;){var g=Math.floor(G.length/2);
this.updateFontSize(G[g]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=f)G=G.slice(g,G.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>f)G=G.slice(0,g);else break}this.updateFontSize(G[G.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(f)}};
_.e.handleOverflow=function(f){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>f&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",f.toString()))};
_.e.updateFontSize=function(f){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+f;this.textNode.classList.add(this.fontClass)};
_.e.getMaxFont=function(){var f=this.useRoboto?MYj:Ze8;f=f[f.length-1];return this.maxFontSize&&this.maxFontSize<=f?this.maxFontSize:f};
_.e.getMinFont=function(){var f=(this.useRoboto?MYj:Ze8)[0];return this.minFontSize&&this.minFontSize>=f?this.minFontSize:f};
_.e.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.e.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.e.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.ac(this.text).split("\n").length-1:Infinity};
_.e.setParentConstraints=function(){this.maxWidth&&(this.containerNode.style.maxWidth=this.maxWidth+"px");this.maxHeight&&(this.containerNode.style.maxHeight=this.maxHeight+"px");if(this.fontWeight){if(this.useRoboto&&this.fontWeight!==400&&this.fontWeight!==500)throw Error("Gh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
Ew.prototype.guideIsExpandedChanged=Ew.prototype.guideIsExpandedChanged;Ew.prototype.dataChanged=Ew.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Ew.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],Ew.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],Ew.prototype,"actionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Ew.prototype,"text",void 0);
_.N([_.n(),_.Z("design:type",String)],Ew.prototype,"fontFamily",void 0);_.N([_.n(),_.Z("design:type",Number)],Ew.prototype,"maxWidth",void 0);_.N([_.n(),_.Z("design:type",Number)],Ew.prototype,"maxHeight",void 0);_.N([_.n(),_.Z("design:type",Number)],Ew.prototype,"maxFontSize",void 0);_.N([_.n(),_.Z("design:type",Number)],Ew.prototype,"minFontSize",void 0);_.N([_.n(),_.Z("design:type",Number)],Ew.prototype,"maxLines",void 0);_.N([_.n(),_.Z("design:type",Object)],Ew.prototype,"hideOverflow",void 0);
_.N([_.n({selector:_.G9V}),_.Z("design:type",Boolean)],Ew.prototype,"guideIsExpanded",void 0);_.N([_.vF("#container"),_.Z("design:type",HTMLElement)],Ew.prototype,"containerNode",void 0);_.N([_.vF("#text"),_.Z("design:type",HTMLElement)],Ew.prototype,"textNode",void 0);_.N([_.HF("text"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ew.prototype,"dataChanged",null);
_.N([_.HF("guideIsExpanded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ew.prototype,"guideIsExpandedChanged",null);_.N([_.C({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],Ew);
_.p(Ew,"yt-dynamic-sizing-formatted-string",function(){if(Nyv!==void 0)return Nyv;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Nyv=f},{mode:1});var tY1;_.uQL=function(f){_.fM.call(this,f)};
_.q(_.uQL,_.fM);var aom=function(f){_.fM.call(this,f)};
_.q(aom,_.uQL);var Lp=function(){return _.I.apply(this,arguments)||this};
_.q(Lp,_.I);Lp.prototype.onTapSuspendedChannel=function(){var f;if((f=this.data)!=null&&f.serviceEndpoint){var S,B;(f=(B=_.H((S=this.data)==null?void 0:S.serviceEndpoint,_.pg))==null?void 0:B.url)?_.tK(f,void 0,void 0,window.top):(S=new aom("Did not handle suspended account tap. No appealUrl."),_.xH(S))}else S=new aom("Did not handle suspended account tap. No serviceEndpoint."),_.xH(S)};
Lp.prototype.onTap=function(){var f=this,S=_.ik(),B,G=(B=_.dR(S,{veType:7116}))!=null?B:void 0;_.M1(S,{visualElement:G});_.Mo();this.saveRoleText();var g;if((g=this.data)==null?0:g.youtubeSuspended)this.onTapSuspendedChannel();else{var b=!1,z,X;(S=(X=_.H((z=this.data)==null?void 0:z.serviceEndpoint,_.pu$))==null?void 0:X.supportedTokens)&&S.forEach(function(w){if(w.accountSigninToken)if(b=!0,f.onAccountItemTap)f.onAccountItemTap(w.accountSigninToken.signinUrl);else _.tK(w.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!b){if(z=this.get("serviceEndpoint",this.data))b=!0,this.ytComponentBehavior.resolveCommand(z);b||_.EU(new aom("Did not handle account switch tap. No token."))}}};
Lp.prototype.saveRoleText=function(){if(this.data){var f=this.data,S=f.channelDelegationRole;if(S){var B,G=(B=_.H(f==null?void 0:f.serviceEndpoint,_.pu$))==null?void 0:B.supportedTokens;if(!G){var g,b,z,X;G=(g=_.H(f==null?void 0:f.serviceEndpoint,_.jR))==null?void 0:(b=g.popup)==null?void 0:(z=b.confirmDialogRenderer)==null?void 0:(X=z.confirmButton)==null?void 0:X.buttonRenderer;var w;G=(w=_.H(G==null?void 0:G.command,_.hf))==null?void 0:w.commands;if(!G)return;var F;G=(F=_.H(G[1],_.pu$))==null?
void 0:F.supportedTokens}if(G){w=void 0;F=_.m(G);for(G=F.next();!G.done;G=F.next())if(G=G.value,G.datasyncIdToken){w=G.datasyncIdToken.datasyncIdToken;break}if(w){var V;a:{if(_.tyQ()&&(F=_.RST(w+"::pom"))){F=new rQ(F);break a}F=void 0}(V=F)==null||V.set("role_text",S);if((e9M?e9M:window.location).href.indexOf("studio")!==-1&&(V=uDK())){F=V.src?(new URL(V.src)).origin:"*";var J;(J=V.contentWindow)==null||J.postMessage({action:"save_pom_role",datasyncId:w,roleText:S},F)}}}}}};
_.y3.Object.defineProperties(Lp.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var f,S,B=(f=this.data)==null?void 0:(S=f.accountPhoto)==null?void 0:S.thumbnails;return B&&B.length>0&&(B[0].height===36||B[0].height===48)?B[0].height:40}}});
Lp.prototype.onTap=Lp.prototype.onTap;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Lp.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Lp.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Lp.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!1}),_.Z("design:type",Function)],Lp.prototype,"onAccountItemTap",void 0);
_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Lp.prototype,"enableRingForActiveAccount",null);_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],Lp.prototype,"thumbnailSize",null);_.N([_.Vg("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Lp.prototype,"onTap",null);_.N([_.C({is:"ytd-account-item-renderer",disableElementRegistration:!0})],Lp);
_.p(Lp,"ytd-account-item-renderer",function(){if(tY1!==void 0)return tY1;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return tY1=f},{mode:1});var ynN;var kM=function(){return _.I.apply(this,arguments)||this};
_.q(kM,_.I);kM.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.oy().resolve(_.S7).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],kM.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],kM.prototype,"data",void 0);_.N([_.C({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],kM);
_.p(kM,"ytd-identity-chip-renderer",function(){if(ynN!==void 0)return ynN;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return ynN=f},{mode:1});var Wev;var cnX;var lo$;var fFN;var np=function(){var f=_.I.apply(this,arguments)||this;f.richItemMinWidth=_.Gt("wn_grid_min_item_width",310);f.isShorts=!1;f.isWatchNext=!1;f.isExploreHub=!1;return f};
_.q(np,_.I);_.y3.Object.defineProperties(np.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var f=[],S=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.hO(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var B;if(((B=this.data)==null?0:B.rows)&&S)for(S*=this.data.rows,B=0;B<S;B++)f.push({});return f}}});
_.N([_.r(_.Ek),_.Z("design:type",Object)],np.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],np.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],np.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,selector:_.EA,value:3}),_.Z("design:type",Number)],np.prototype,"itemsPerRow",void 0);_.N([_.n({selector:_.BUW,value:6}),_.Z("design:type",Number)],np.prototype,"slimItemsPerRow",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Number)],np.prototype,"richItemMinWidth",void 0);_.N([_.n({reflectToAttribute:!0,selector:_.xr}),_.Z("design:type",Boolean)],np.prototype,"miniMode",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],np.prototype,"isShorts",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],np.prototype,"isWatchNext",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],np.prototype,"isExploreHub",void 0);
_.N([_.k("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],np.prototype,"cardItems",null);_.N([_.C({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],np);
_.oti=_.RS()(np,"ytd-ghost-grid-renderer",function(){if(fFN===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);fFN=f}f=fFN;return f},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.eq(_.oS(function(f){var S=_.lu(f,{numberOfComments:3}).numberOfComments,B=_.lu(f,{isInitialLoad:!1}).isInitialLoad,G=_.lu(f,{engagementPanel:!1}).engagementPanel,g=function(){return Math.min(Number(S==null?void 0:S())||20,20)};
return _.T("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.T(_.v,{cond:function(){return!(G==null?0:G())&&(B==null?void 0:B())},
then:function(){return _.T("div",{class:"ytGhostCommentsComments"},_.T("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.T("div",{class:_.Pw("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.T("div",{class:_.Pw("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.T("div",{class:"ytGhostCommentsGhostCard"},_.T("div",{class:"ytGhostCommentsAvatar"},_.T("div",{class:"ytGhostCommentsCircle"})),_.T("div",{class:"ytGhostCommentsComments"},_.T("div",{class:"ytGhostCommentsMeta"},
_.T("div",{class:_.Pw("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.T("div",{class:_.Pw("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.T("div",{class:"ytGhostCommentsComments"},_.T(_.dg,{each:function(){return Array((g==null?void 0:g())||3)}},function(){return _.T("div",{class:"ytGhostCommentsGhostCard"},_.T("div",{class:"ytGhostCommentsAvatar"},_.T("div",{class:"ytGhostCommentsCircle"})),_.T("div",{class:"ytGhostCommentsHost"},_.T("div",{class:"ytGhostCommentsMeta"},
_.T("div",{class:_.Pw("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.T("div",{class:_.Pw("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.T("div",{class:_.Pw("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.T("div",{class:"ytGhostCommentsGhostLikeDislike"},_.T("div",{class:_.Pw("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.T("div",{class:_.Pw("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"fb"),"yt-ghost-comments",{props:{numberOfComments:_.W4,
isInitialLoad:_.W4,engagementPanel:_.W4}});_.Dd("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var sw=function(){var f=_.I.apply(this,arguments)||this;f.isOverridable=!1;f.spinnerActive=!1;f.showButton=!1;f.isCommentsSection=!1;f.engagementPanel=!0;f.isShortsGrid=!1;f.isShortsPage=!1;f.isWatchPage=!1;f.ghostCardExperimentEnabled=_.K("show_ghost_comments_shorts_watch")||_.K("show_ghost_comments_desktop_watch");f.originalShowButton=!1;f.endOfList=!1;return f};
_.q(sw,_.I);_.e=sw.prototype;_.e.resetIntersectionObserver=function(){var f;(f=this.observer)==null||f.disconnect();this.observer=void 0};
_.e.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var f,S;((f=this.data)==null?void 0:f.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((S=this.data)==null?0:S.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.e.initializeIntersectionObserver=function(){var f=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(S){S=_.m(S);for(var B=S.next();!B.done;B=S.next())B.value.isIntersecting&&(f.triggerContinuation(),f.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.e.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]]"}}}}}};
_.e.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var f;((f=this.data)==null?0:f.continuationEndpoint)&&(f=_.H(this.data.continuationEndpoint,_.p9))&&this.ytdReduxBehavior.dispatch(_.ef({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:f}}))};
_.e.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.e.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.e.onServiceRequestCompleted=function(f,S){if(!_.K("kevlar_hide_spinner_on_empty_continuation_killswitch")){var B;(B=S.actions)!=null&&B.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.e.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.e.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.e.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.e.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var f=3;if(this.engagementPanel){var S,B,G;f=Math.floor(((((S=this.hostElement)==null?void 0:(B=S.parentElement)==null?void 0:(G=B.parentElement)==null?void 0:G.scrollHeight)||108)-108)/108);f=this.isInitialLoad?Math.max(f,3):3}S=[].concat(_.$d(this.hostElement.querySelectorAll("yt-ghost-comments")));S=_.m(S);for(B=S.next();!B.done;B=S.next())B=B.value,B.numberOfComments=f,B.isInitialLoad=this.isInitialLoad,B.engagementPanel=
this.engagementPanel}};
_.e.detached=function(){this.resetIntersectionObserver()};
_.y3.Object.defineProperties(sw.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.K("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.K("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
sw.prototype.numberOfGhostCommentsChanged=sw.prototype.numberOfGhostCommentsChanged;sw.prototype.continuationTriggerOffsetChanged=sw.prototype.continuationTriggerOffsetChanged;sw.prototype.showButtonChanged=sw.prototype.showButtonChanged;sw.prototype.onYtServiceRequestCompletedForButtonRenderer=sw.prototype.onYtServiceRequestCompletedForButtonRenderer;sw.prototype.onServiceRequestCompleted=sw.prototype.onServiceRequestCompleted;sw.prototype.onYtServiceRequestSentForButtonRenderer=sw.prototype.onYtServiceRequestSentForButtonRenderer;
sw.prototype.observeData=sw.prototype.observeData;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],sw.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],sw.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ti.YtVisibilityBehavior),_.Z("design:type",Object)],sw.prototype,"ytVisibilityBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],sw.prototype,"ytComponentBehavior",void 0);
_.N([_.r(_.Ek),_.Z("design:type",Object)],sw.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],sw.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],sw.prototype,"isOverridable",void 0);_.N([_.n(),_.Z("design:type",Object)],sw.prototype,"spinnerActive",void 0);_.N([_.n(),_.Z("design:type",Object)],sw.prototype,"showButton",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],sw.prototype,"isCommentsSection",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],sw.prototype,"engagementPanel",void 0);_.N([_.n(),_.Z("design:type",Object)],sw.prototype,"isShortsGrid",void 0);_.N([_.n({reflectToAttribute:!0,selector:_.eGK}),_.Z("design:type",Object)],sw.prototype,"isShortsPage",void 0);_.N([_.n({reflectToAttribute:!0,selector:_.kr}),_.Z("design:type",Object)],sw.prototype,"isWatchPage",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],sw.prototype,"ghostCardExperimentEnabled",void 0);
_.N([_.n(),_.Z("design:type",Number)],sw.prototype,"continuationTriggerOffset",void 0);_.N([_.n(),_.Z("design:type",Object)],sw.prototype,"endOfList",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],sw.prototype,"isInitialLoad",void 0);_.N([_.vF("ytd-button-renderer"),_.Z("design:type",_.Wl)],sw.prototype,"buttonRenderer",void 0);_.N([_.n(),_.Z("design:type",Object)],sw.prototype,"buttonOverrides",void 0);
_.N([_.n(),_.k("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],sw.prototype,"isShortsCommentsSection",null);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],sw.prototype,"observeData",null);
_.N([_.Vg("yt-service-request-sent-button-renderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],sw.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.cw]),_.Z("design:returntype")],sw.prototype,"onServiceRequestCompleted",null);
_.N([_.Vg("yt-service-request-completed-button-renderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],sw.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.N([_.HF("showButton"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],sw.prototype,"showButtonChanged",null);
_.N([_.HF("continuationTriggerOffset"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],sw.prototype,"continuationTriggerOffsetChanged",null);_.N([_.JO("isInitialLoad","engagementPanel"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],sw.prototype,"numberOfGhostCommentsChanged",null);_.N([_.C({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],sw);
_.p(sw,"ytd-continuation-item-renderer",function(){if(lo$!==void 0)return lo$;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return lo$=f},{mode:1});var SSL;var DD=function(){var f=_.I.apply(this,arguments)||this;f.downloadProgress=0;f.transferState="TRANSFER_STATE_UNKNOWN";f.downloadState="DOWNLOAD_STATE_UNKNOWN";f.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";f.offlineVideoPolicyExpirationTimestamp=0;f.downloadedVideoPlaybackPosition=0;return f};
_.q(DD,_.I);DD.prototype.dataChanged=function(){var f;this.videoData=_.H((f=this.data)==null?void 0:f.renderer,VbL);this.transferStateChanged()};
DD.prototype.downloadProgressChanged=function(){if(this.entityInfo){var f=Object.assign({},this.videoData),S=SXV(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),B=S.publishedTimeText,G=S.badges;f.shortViewCountText=S.shortViewCountText;f.publishedTimeText=B;f.badges=G;this.set("videoData",f)}};
DD.prototype.transferStateChanged=function(){if(this.entityInfo){var f=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",S=_.d9(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!KJ(this.entityInfo.policyEntity),B=Object.assign({},this.videoData),G=SXV(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),g=G.publishedTimeText,b=G.badges;B.shortViewCountText=
G.shortViewCountText;B.publishedTimeText=g;B.badges=b;B.isDisabled=S;B.isWatched=this.downloadedVideoPlaybackPosition>0;B.navigationEndpoint=S?void 0:LnA(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var z;f&&((z=this.videoData)==null?0:z.videoId)&&!_.K("dl_resume_click_killswitch")&&(B.isDisabled=!1,B.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});B.thumbnailOverlays=frT(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",B)}};
DD.prototype.transferStateChanged=DD.prototype.transferStateChanged;DD.prototype.downloadProgressChanged=DD.prototype.downloadProgressChanged;DD.prototype.dataChanged=DD.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],DD.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],DD.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],DD.prototype,"data",void 0);
_.N([_.n(),_.Z("design:type",Object)],DD.prototype,"videoData",void 0);_.N([_.n({selector:Ic,selectorArgs:["videoData.videoId"]}),_.Z("design:type",Object)],DD.prototype,"downloadProgress",void 0);_.N([_.n(),_.Z("design:type",Number)],DD.prototype,"relativeDateReference",void 0);_.N([_.n({selector:_.sA,selectorArgs:["videoData.videoId"]}),_.Z("design:type",Object)],DD.prototype,"transferState",void 0);
_.N([_.n({selector:$GN,selectorArgs:["videoData.videoId"]}),_.Z("design:type",Object)],DD.prototype,"downloadState",void 0);_.N([_.n({selector:X1A,selectorArgs:["videoData.videoId"]}),_.Z("design:type",Object)],DD.prototype,"offlinePolicyAction",void 0);_.N([_.n({selector:w1x,selectorArgs:["videoData.videoId"]}),_.Z("design:type",Object)],DD.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.N([_.n({selector:UA,selectorArgs:["videoData.videoId"]}),_.Z("design:type",Object)],DD.prototype,"downloadedVideoPlaybackPosition",void 0);_.N([_.n({selector:TU1,selectorArgs:["videoData.videoId"]}),_.Z("design:type",Object)],DD.prototype,"entityInfo",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],DD.prototype,"isDownloading",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],DD.prototype,"dataChanged",null);
_.N([_.HF("downloadProgress"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],DD.prototype,"downloadProgressChanged",null);_.N([_.HF("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],DD.prototype,"transferStateChanged",null);
_.N([_.C({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],DD);
_.p(DD,"ytd-downloaded-video-grid-video-renderer",function(){if(SSL!==void 0)return SSL;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return SSL=f},{mode:_.X_("kevlar_poly_si_batch_j025")?1:2});var B7o;var IC=function(){};
IC.prototype.resolve=function(f,S){var B=this;return _.R(function(G){return _.h(G,B.resolveCommand(f,S),0)})};var G3g,Uw;G3g=ZmG(function(f){return f.targetId},{shouldPersist:!1});
Uw=G3g.updateData;_.gt$=G3g.useUpdatableData;var eTL,b67;eTL=ZmG(function(f){return f.targetId});
b67=eTL.updateData;_.mU8=eTL.useUpdatableData;var zT$=mUV.bind(null,Uw),RTL=mUV.bind(null,b67);(function(f,S,B){var G=_.H(B==null?void 0:B.updatedRenderer,_.ZTm);return G?f({targetId:S},function(){return G}):!1}).bind(null,Uw);var Cp=function(){};
_.q(Cp,IC);Cp.prototype.resolveCommand=function(f){var S;return _.R(function(B){S=_.H(f,_.FB1);if(!S)return B.return();zT$(S.targetId,S);_.TT(B)})};var pp=function(){var f=_.dv.apply(this,arguments)||this;f.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return f};
_.q(pp,_.dv);_.e=pp.prototype;_.e.configureContinuationPathMap=function(){return{}};
_.e.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.e.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.e.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.e.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.e.handleAppendContinuationItemsAction=function(f){var S=_.H(f,_.H4i);if(this.data&&this.data.targetId&&S&&this.continuationPathMap&&S.targetId===this.data.targetId){var B=rZG(f),G=B&&this.continuationPathMap[B];if(G&&B)if(f=this.get(G,this.data)){a:{for(B=0;B<f.length;B++){var g=f[B],b=void 0,z=!!_.H((b=_.H(g,bb7))==null?void 0:b.content,_.wGv);if(_.H(g,_.zq)||z)break a}B=f.length}G="data."+G;S.continuationItems?B===f.length-1?(this.pop(G),this.push.apply(this,[G].concat(_.$d(S.continuationItems)))):
B===f.length?this.push.apply(this,[G].concat(_.$d(S.continuationItems))):this.splice.apply(this,[G,B,1].concat(_.$d(S.continuationItems))):this.splice(G,B,1);(_.K("web_enable_voting_animation")||_.K("enable_music_web_cairo_voting_animation"))&&_.ew(this.hostElement,"yt-append-continuation-items-action-finished");_.ew(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.Lg(new _.dO("append continuation items does not exist",B));else _.Lg(new _.dO("append continuation path does not exist",
B))}};
_.e.handleReloadContinuationItemsCommand=function(f){var S=_.H(f,_.FB1);if(this.data&&S){if(_.K("web_explore_hub")||_.K("web_client_explore_hub")||_.K("web_explore_hub_on_hover")||_.K("web_client_explore_hub_on_hover"))try{_.oy().resolve(Cp).resolveCommand(f)}catch(b){}if(this.data.targetId&&this.continuationPathMap&&S.targetId===this.data.targetId&&(!_.K("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||S.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var B,G=
(B=S.slot)==null?void 0:B.replace("RELOAD_CONTINUATION_SLOT_","");B=(f=rZG(f)+"-"+(G==null?void 0:G.toLowerCase()))&&this.continuationPathMap[f];if(!B||!f||!G)_.Lg(new _.dO("reload continuation path does not exist",f));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(S)){if(S.replaceWithFirstItem){var g;this.set("data."+B,((g=S.continuationItems)==null?0:g.length)?S.continuationItems[0]:{})}else this.set("data."+B,S.continuationItems?S.continuationItems:
[]);this.continuationIsReloading=!1;_.ew(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.e.handleShowReloadUiCommand=function(f){f=_.H(f,DaN);var S;((S=this.data)==null?0:S.targetId)&&(f==null?0:f.targetId)&&f.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
pp.prototype.observeData=pp.prototype.observeData;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],pp.prototype,"actionHandlerBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],pp.prototype,"componentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],pp.prototype,"data",void 0);_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],pp.prototype,"continuationIsReloading",void 0);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pp.prototype,"observeData",null);_.N([_.iu()],pp);_.Ak=[_.Nm.YtComponentBehavior,_.b3.YtActionHandlerBehavior,pp.prototype];_.Ny={};_.Ny.YtNextContinuationBehavior=[_.Sy.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",_.Fc(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.Fc(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(f,S){f.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,S,{}):(f={locationRetrieved:function(B){this.makeNextContinuationRequest_(B,S,{})}.bind(this)},_.ew(this.hostElement,"yt-retrieve-location",f))},
makeNextContinuationRequest_:function(f,S,B){_.n2("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();f=S(f);var G;this.canUseContextualNetworkManager_()&&(G=this.getNetworkManager());G||(G=_.oy().resolve(_.st));S=_.Zd.instance;if(_.nL("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&S){G=_.lC([f.startsWith("/")?f.substr(1):f]);var g,b;B=_.sX(S,{},G,B==null?void 0:(g=B.context)==null?void 0:(b=g.clickTracking)==null?void 0:b.clickTrackingParams).then(function(z){return{response:z}})}else B=
this.nextContinuation.usePost?G.postData(f,B):G.fetchData(f);
B.then(this.updateNextContinuationData_.bind(this,f));this.pendingContinuationRequest_=B;this.startListeningForNavigate_()},
updateNextContinuationData_:function(f,S){var B=this;_.n2("ncl");this.pendingContinuationRequest_=void 0;if(S){var G={};this.nextContinuation&&(G=this.nextContinuation);if(S.response&&S.response.continuationContents&&S.response.continuationContents[G.continuationType]){f=S.response.continuationContents[G.continuationType];var g=G.header||"data.header",b=f[G.responseHeaderKey||"header"];b&&this.set(g,b);g=G.contentsArray||"data.contents";b=this.getContents_(f,G.responseContentsKey||"contents")||[];
this.pathExists_(g)?(b.unshift(g),this.push.apply(this,b)):this.set(g,b);b&&(zTN(_.ik(),S.response,this.hostElement,function(z){_.bW(B.hostElement,"yt-store-grafted-ve-action",[z])}),_.ew(this.hostElement,"yt-next-continuation-data-updated",{continuationData:S,
page:this,contentsArray:g}));this.set(G.continuationsArray||"data.continuations",f[G.responseContinuationsKey||"continuations"]||[])}else S.reload?_.Lg(new _.dO("Reloading from continuation is unsupported")):S.responseContext&&S.responseContext.errors||(delete S.xsrf_token,delete S.timing,delete S.endpoint,delete S.csn,S.responseContext&&delete S.responseContext.serviceTrackingParams,g={request:_.Zt(f,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(S).sort()},S.response&&(g.responseContentKeys=
Object.keys(S.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(g.continuationType=this.nextContinuation.continuationType.substr(0,256)),S=new _.dO("Malformed continuation",g),f.indexOf("/comment_service_ajax")==0?_.Lg(S):_.xH(S)),this.set(G.continuationsArray||"data.continuations",[])}else _.EU(new _.dO("Missing continuation response",f))},
getContents_:function(f,S){S=S.split(".");return _.$v.getValueByKeys(f,S)},
pathExists_:function(f){var S=this;f=f.toString().split(".");for(var B=0;B<f.length;B++)if(S=S[f[B]],S===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var X36;var w3N;var My=function(){var f=_.I.apply(this,arguments)||this;f.triggered_=!1;return f};
_.q(My,_.I);_.e=My.prototype;_.e.attached=function(){this.maybeTriggerAutoload()};
_.e.detached=function(){this.hasBeenTriggered_=!1};
_.e.onPrescanVisible=function(){this.onShow()};
_.e.onShow=function(){this.showButton||this.trigger()};
_.e.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.ew(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.e.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.e.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.e.computeLabel_=function(f,S){return f===void 0?null:f.label||!S?f.label:this.showMoreText_};
_.e.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.e.getContinuationUrl=function(f){var S={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(S.itct=this.data.clickTrackingParams);return _.tA(f,S)};
_.e.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
My.prototype.showButtonChanged_=My.prototype.showButtonChanged_;My.prototype.observeData_=My.prototype.observeData_;_.N([_.r(_.ti.YtVisibilityBehavior),_.Z("design:type",Object)],My.prototype,"ytVisibilityBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],My.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],My.prototype,"data",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],My.prototype,"showButton",void 0);
_.N([_.n({value:!1}),_.Z("design:type",Boolean)],My.prototype,"showIcon",void 0);_.N([_.n({computed:"computeLabel_(data, showButton)"}),_.Z("design:type",Object)],My.prototype,"label",void 0);_.N([_.n({value:_.uC(_.Jf("SHOW_MORE",void 0,"Show More"))}),_.Z("design:type",Object)],My.prototype,"showMoreText_",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],My.prototype,"spinnerActive_",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],My.prototype,"hasBeenTriggered_",void 0);
_.N([_.n({value:void 0}),_.Z("design:type",String)],My.prototype,"observeVisibleOption",void 0);_.N([_.n({value:void 0}),_.Z("design:type",String)],My.prototype,"observeHiddenOption",void 0);_.N([_.n({value:"observe_once"}),_.Z("design:type",Object)],My.prototype,"observePrescanOption",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],My.prototype,"observeData_",null);
_.N([_.JO("showButton"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],My.prototype,"showButtonChanged_",null);_.N([_.nP({is:"yt-next-continuation",disableElementRegistration:!0})],My);
_.p(My,"yt-next-continuation",function(){if(w3N===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;X36===void 0&&(X36=document.createElement("template"));var G=X36;B.call(S,G.content.cloneNode(!0),f.content.firstChild);w3N=f}f=w3N;return f},{mode:2});var hT6;var T7o;var ZD=function(){return _.I.apply(this,arguments)||this};
_.q(ZD,_.I);ZD.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],ZD.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],ZD.prototype,"data",void 0);_.N([_.nP({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],ZD);
_.p(ZD,"yt-music-pass-small-feature-info-renderer",function(){if(T7o===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;hT6===void 0&&(hT6=document.createElement("template"));var G=hT6;B.call(S,G.content.cloneNode(!0),f.content.firstChild);T7o=f}f=T7o;return f},{mode:2});_.Dd("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var tk=function(){var f=_.I.apply(this,arguments)||this;f.isCollapsible=!1;f.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return f};
_.q(tk,_.I);_.e=tk.prototype;_.e.computeIsCollapsible=function(f){return!!(((f==null?0:f.showMoreText)||(f==null?0:f.visibleRowCount))&&(f==null?0:f.isCollapsible))};
_.e.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"}}}};
_.e.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.e.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.e.onIronResize=function(){var f=this;_.NJ(this,"updateGridInitItems",function(){f.maybeUpdateInitialItemsDisplayed()})};
_.e.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var f=this.getVisibleWidth();f!==0&&(f=Math.floor(f/214)*(this.data.visibleRowCount||2),f!==this.initialCount&&(this.initialCount=f,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.e.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.e.computeExpandVisible=function(f,S,B,G){return f&&S&&B&&!!G&&!!G.showMoreText};
_.e.computeShowMoreButton=function(f){return{text:f,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.e.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.e.initCollapsed=function(){var f=this;this.ytLazyListBehavior.canShowMore=!1;var S;(this.collapsed=!((S=this.data)==null||!S.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.ui(this,function(){_.mU(f.hostElement,"yt-refit-popups-action")})};
_.e.fillRestIfNotCollapsible=function(){var f=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!f||this.ytLazyListBehavior.fillRemainingListItems()};
_.e.computeViewAllHidden=function(f,S){return f||!S.viewAllEndpoint};
tk.prototype.fillRestIfNotCollapsible=tk.prototype.fillRestIfNotCollapsible;tk.prototype.initCollapsed=tk.prototype.initCollapsed;tk.prototype.onIronResize=tk.prototype.onIronResize;tk.prototype.persistentGuideChanged=tk.prototype.persistentGuideChanged;_.N([_.r(_.Ld),_.Z("design:type",Object)],tk.prototype,"ironResizableBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],tk.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],tk.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.ff.YtLazyListBehavior),_.Z("design:type",Object)],tk.prototype,"ytLazyListBehavior",void 0);_.N([_.r(_.Ny.YtNextContinuationBehavior),_.Z("design:type",Object)],tk.prototype,"ytNextContinuationBehavior",void 0);_.N([_.r(_.Iu.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],tk.prototype,"ytdGuideStateAwareBehavior",void 0);
_.N([_.r(_.Ak),_.Z("design:type",Object)],tk.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],tk.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Boolean)],tk.prototype,"collapsed",void 0);_.N([_.n(),_.Z("design:type",Number)],tk.prototype,"initialCount",void 0);_.N([_.n({computed:"computeShowMoreButton(data.showMoreText)"}),_.Z("design:type",Object)],tk.prototype,"showMoreButton",void 0);
_.N([_.n({computed:"computeIsCollapsible(data)"}),_.Z("design:type",Object)],tk.prototype,"isCollapsible",void 0);_.N([_.vF("#items"),_.Z("design:type",HTMLElement)],tk.prototype,"items",void 0);_.N([_.HF("guidePersistentAndVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tk.prototype,"persistentGuideChanged",null);_.N([_.Vg("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tk.prototype,"onIronResize",null);
_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tk.prototype,"initCollapsed",null);_.N([_.HF("canShowMore"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tk.prototype,"fillRestIfNotCollapsible",null);_.N([_.C({is:"ytd-grid-renderer",disableElementRegistration:!0})],tk);
_.p(tk,"ytd-grid-renderer",function(){if(B7o!==void 0)return B7o;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return B7o=f},{mode:_.X_("kevlar_poly_si_batch_j025")?1:2});var ub=function(){return _.I.apply(this,arguments)||this};
_.q(ub,_.I);
ub.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"}}}};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],ub.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],ub.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],ub.prototype,"data",void 0);_.N([_.C({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],ub);
_.p(ub,"ytd-carousel-ad-renderer",function(){if(cnX!==void 0)return cnX;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return cnX=f},{mode:1});var FVm;var aC=function(){return _.I.apply(this,arguments)||this};
_.q(aC,_.I);_.e=aC.prototype;_.e.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"}}}};
_.e.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,aC.JSC$13323_CLICK_LOCATION_ID_MAP))};
_.e.onSitelinkTap=function(f){f.stopPropagation();var S,B,G=f==null?void 0:(S=f.model)==null?void 0:(B=S.item)==null?void 0:B.onTap;G&&this.ytSparklesClickLocationBehavior.handleClick(G,f,!1)};
_.e.onTap=function(f){var S=this.data&&this.data.content&&this.data.content.navigationEndpoint;S&&this.ytSparklesClickLocationBehavior.handleClick(S,f,!1)};
_.e.sendImpression=function(){if(this.data&&this.data.content)for(var f=_.m(this.data.content.impressionEndpoints||[]),S=f.next();!S.done;S=f.next()){S=_.m(S.value.loggingUrls||[]);for(var B=S.next();!B.done;B=S.next())B=B.value,B.baseUrl&&Ay(B.baseUrl,B.attributionSrcMode)}};
aC.prototype.onTap=aC.prototype.onTap;aC.prototype.dataChanged=aC.prototype.dataChanged;aC.JSC$13323_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"]]);
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],aC.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],aC.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.lE.YtSparklesClickLocationBehavior),_.Z("design:type",Object)],aC.prototype,"ytSparklesClickLocationBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],aC.prototype,"data",void 0);
_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],aC.prototype,"dataChanged",null);_.N([_.Vg("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],aC.prototype,"onTap",null);_.N([_.C({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],aC);
_.p(aC,"ytd-promoted-sparkles-text-search-renderer",function(){if(FVm!==void 0)return FVm;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return FVm=f},{mode:1});var V$$;var yk=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-mute-ad-action":"handleMuteAd"};return f};
_.q(yk,_.I);_.e=yk.prototype;
_.e.configureRendererStamper=function(){return{"data.menu":{id:_.K("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]]"}}}}}};
_.e.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.e.computeHasAdBadge=function(f){return!(f==null||!f.adBadge)};
_.e.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",yk.JSC$13332_DEFAULT_AD_BADGE_RENDERER),_.Rl(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,yk.JSC$13332_CLICK_LOCATION_ID_MAP))};
_.e.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var f;(((f=this.data)==null?void 0:f.impressionCommands)||[]).forEach(function(S){S=_.m(S.loggingUrls||[]);for(var B=S.next();!B.done;B=S.next())B=B.value,B.baseUrl&&Ay(B.baseUrl,B.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.e.onTap=function(f){var S,B=(S=this.data)==null?void 0:S.navigationEndpoint,G;(S=(G=this.data)==null?void 0:G.thumbnailNavigationEndpoint)&&_.fF(_.ct(f),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(S,f,!1):B&&this.ytSparklesClickLocationBehavior.handleClick(B,f,!1)};
_.e.handleMuteAd=function(){this.collapsed=!0};
_.e.attached=function(){var f=this;_.K("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&f.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.e.detached=function(){_.K("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.y3.Object.defineProperties(yk.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var f;return!(((f=this.data)==null?void 0:f.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var f;return!(((f=this.data)==null?void 0:f.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.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}}});
yk.prototype.dataChanged=yk.prototype.dataChanged;
yk.JSC$13332_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"]]);
yk.JSC$13332_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Jf("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],yk.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],yk.prototype,"ytRendererBehavior",void 0);_.N([_.r(xP),_.Z("design:type",Object)],yk.prototype,"ytdActiveViewBehavior",void 0);
_.N([_.r([_.b3.YtActionHandlerBehavior]),_.Z("design:type",Object)],yk.prototype,"actionHandlerBehavior",void 0);_.N([_.r(_.lE.YtSparklesClickLocationBehavior),_.Z("design:type",Object)],yk.prototype,"ytSparklesClickLocationBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],yk.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],yk.prototype,"collapsed",void 0);_.N([_.n({reflectToAttribute:!0,value:function(){return _.K("enable_desktop_search_bigger_thumbs")}}),
_.Z("design:type",Boolean)],yk.prototype,"useBiggerThumbs",void 0);_.N([_.n({reflectToAttribute:!0,value:function(){return _.gO("desktop_search_bigger_thumbs_style")}}),
_.Z("design:type",String)],yk.prototype,"biggerThumbsStyle",void 0);_.N([_.n({reflectToAttribute:!0,value:function(){return _.K("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.Z("design:type",Boolean)],yk.prototype,"fixAlignmentSmallScreens",void 0);_.N([_.n({reflectToAttribute:!0,value:function(){return _.K("enable_desktop_search_bigger_thumbs_square")}}),
_.Z("design:type",Boolean)],yk.prototype,"useBiggerThumbsSquare",void 0);_.N([_.n({reflectToAttribute:!0}),_.k("data.mediaHoverOverlay"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],yk.prototype,"hideHoverOverlay",null);_.N([_.n({reflectToAttribute:!0}),_.k("data.promotedSparklesWebStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],yk.prototype,"webSearchLayout",null);
_.N([_.n({reflectToAttribute:!0}),_.k("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],yk.prototype,"webSearchLayoutLandscape",null);_.N([_.n({reflectToAttribute:!0}),_.k("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],yk.prototype,"webSearchLayoutSquare",null);
_.N([_.n({reflectToAttribute:!0}),_.k("data.promotedSparklesWebStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],yk.prototype,"sparklesCtaNoBackground",null);_.N([_.n({reflectToAttribute:!0}),_.k("data.actionButton"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],yk.prototype,"hideActionButton",null);_.N([_.n({computed:"computeButtonOverride(uiUpdate)"}),_.Z("design:type",Object)],yk.prototype,"buttonOverride",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.Z("design:type",Boolean)],yk.prototype,"hasNewAdBadge",void 0);_.N([_.k("data.promotedSparklesWebStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],yk.prototype,"useRoundedBadge",null);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],yk.prototype,"dataChanged",null);_.N([_.C({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],yk);
_.p(yk,"ytd-promoted-sparkles-web-renderer",function(){if(V$$!==void 0)return V$$;var f=document.createElement("template");_.Y(f,'\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>');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return V$$=f},{mode:1});var JIo;var Wm=function(){return _.I.apply(this,arguments)||this};
_.q(Wm,_.I);_.e=Wm.prototype;_.e.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]]"}}}}}};
_.e.computeShowCta=function(f){return!(f==null||!f.ctaRenderer)};
_.e.onCtaClick=function(){var f,S,B,G=(f=this.data)==null?void 0:(S=f.ctaRenderer)==null?void 0:(B=S.buttonRenderer)==null?void 0:B.command;G&&this.ytComponentBehavior.resolveCommand(G)};
_.e.onWatchButtonClick=function(){var f,S,B,G=(f=this.data)==null?void 0:(S=f.watchButtonRenderer)==null?void 0:(B=S.buttonRenderer)==null?void 0:B.command;G&&this.ytComponentBehavior.resolveCommand(G)};
_.e.onTap=function(){};
_.e.dataChanged=function(){if(this.data&&(this.data.adBadge||this.set("data.adBadge",Wm.JSC$13335_DEFAULT_AD_BADGE_RENDERER),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",Wm.JSC$13335_DEFAULT_CLICK_LOCATION_BEHAVIOR,Wm.JSC$13335_CLICK_LOCATION_ID_MAP),this.thumbnail)){var f=this.thumbnail.getElementsByTagName("a");f.length>0&&(f=f.namedItem("thumbnail"))&&f.removeAttribute("href")}};
_.e.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var f=_.m(this.data.impressionUrls),S=f.next();!S.done;S=f.next())S=S.value,wtj(S,T3G(S));this.data.impressionsFired=!0}};
_.e.maybeComputeHref=function(){return null};
_.e.computeIsShortDR=function(f){return!(f==null||!f.watchButtonRenderer)&&!(f==null||!f.ctaRenderer)&&!!this.enableShortDR};
_.e.computeIsNewUiOrShortDr=function(f){return!!this.enableUiUpdate||this.computeIsShortDR(f)};
_.e.computeIsNewUiAndNotShortDr=function(f){return!!this.enableUiUpdate&&!this.computeIsShortDR(f)};
_.e.computeHideAvatar=function(f){return!((f==null?0:f.channelThumbnail)&&this.computeIsNewUiOrShortDr(f))};
_.e.onClick=function(f){var S,B=(S=this.data)==null?void 0:S.navigationEndpoint;if(this.enableShortDR&&B&&(_.H(B,_.t2)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(B,f,!!_.H(B,_.t2)),f.stopPropagation();else if(B&&_.H(B,_.t2))this.ytSparklesClickLocationBehavior.handleClick(B,f,!0),f.stopPropagation();else if(B){var G,g;((G=this.data)==null?0:G.navigationEndpoint)&&((g=this.data)==null?0:g.adPlaybackContextParams)&&SEV(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(B)}};
_.e.computeButtonOverride=function(f){if(this.computeIsNewUiOrShortDr(f))return{style:"call-to-action",type:"tonal",iconPosition:"none"}};
_.e.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.e.onThumbnailContainerClick=function(f){this.onClick(f)};
_.e.computeThumbnailWidth=function(f,S){return f?S==="MASSIVE"?600:S==="BIG"?500:S==="MEDIUM"?450:420:360};
_.e.attached=function(){var f=this;_.K("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&f.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.e.detached=function(){_.K("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
Wm.prototype.dataChanged=Wm.prototype.dataChanged;Wm.prototype.onTap=Wm.prototype.onTap;Wm.JSC$13335_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Jf("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};Wm.JSC$13335_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
Wm.JSC$13335_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"}];_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Wm.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Wm.prototype,"ytRendererBehavior",void 0);_.N([_.r(xP),_.Z("design:type",Object)],Wm.prototype,"ytdActiveViewBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Wm.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.lE.YtSparklesClickLocationBehavior),_.Z("design:type",Object)],Wm.prototype,"ytSparklesClickLocationBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Wm.prototype,"data",void 0);
_.N([_.n({reflectToAttribute:!0,value:function(){return _.K("enable_desktop_search_bigger_thumbs")}}),
_.Z("design:type",Boolean)],Wm.prototype,"useBiggerThumbs",void 0);_.N([_.n({reflectToAttribute:!0,value:function(){return _.K("enable_video_display_compact_button_group_for_desktop_search")}}),
_.Z("design:type",Boolean)],Wm.prototype,"enableShortDR",void 0);_.N([_.n({reflectToAttribute:!0,value:function(){return _.K("enable_vac_ui_update_for_desktop_search")}}),
_.Z("design:type",Boolean)],Wm.prototype,"enableUiUpdate",void 0);_.N([_.n({reflectToAttribute:!0,value:function(){return _.gO("desktop_search_bigger_thumbs_style")}}),
_.Z("design:type",String)],Wm.prototype,"biggerThumbsStyle",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.Z("design:type",Boolean)],Wm.prototype,"showCta",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.Z("design:type",Boolean)],Wm.prototype,"isShortDr",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.Z("design:type",Boolean)],Wm.prototype,"isShortDrOrNewUi",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.Z("design:type",Boolean)],Wm.prototype,"isNewUiAndNotShortDr",void 0);_.N([_.n({computed:"computeButtonOverride(data)"}),_.Z("design:type",Object)],Wm.prototype,"buttonOverride",void 0);_.N([_.n({computed:"computeSecondaryButtonOverride(data)"}),_.Z("design:type",Object)],Wm.prototype,"secondaryButtonOverride",void 0);_.N([_.vF("ytd-thumbnail"),_.Z("design:type",HTMLElement)],Wm.prototype,"thumbnail",void 0);
_.N([_.Vg("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Wm.prototype,"onTap",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Wm.prototype,"dataChanged",null);_.N([_.C({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],Wm);
_.p(Wm,"ytd-promoted-video-renderer",function(){if(JIo!==void 0)return JIo;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return JIo=f},{mode:1});var Pwm;var cm=function(){var f=_.I.apply(this,arguments)||this;f.useRoundedBadge=!0;f.sitelinkIds=[];return f};
_.q(cm,_.I);_.e=cm.prototype;
_.e.configureRendererStamper=function(){return{"data.menu":{id:_.K("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]]"}}}}}};
_.e.dataChanged=function(){var f;(f=this.data)!=null&&f.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,cm.JSC$13342_CLICK_LOCATION_ID_MAP)};
_.e.onTap=function(f){var S,B=(S=this.data)==null?void 0:S.navigationCommand;B&&!_.fF(_.ct(f),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(B,f,!1)};
_.e.onSitelinkTap=function(f){var S,B,G=f==null?void 0:(S=f.model)==null?void 0:(B=S.item)==null?void 0:B.onTap;G&&this.ytSparklesClickLocationBehavior.handleClick(G,f,!1)};
_.e.configureSitelinkClickTargets=function(){var f=this,S,B,G=(S=this.data)==null?void 0:(B=S.clickLocationTargets)==null?void 0:B.find(function(g){return g.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
G&&_.m9(this.hostElement).querySelectorAll(".sitelink").forEach(function(g){_.Rl(g,"yt-simple-endpoint",!0);f.sitelinkIds.push(g.id);var b,z;(b=f.ytSparklesClickLocationBehavior)==null||(z=b.clickTargetMap)==null||z.set(g.id,G)})};
_.e.sendImpression=function(){var f,S,B=((f=this.data)==null?void 0:(S=f.impressionCommand)==null?void 0:S.loggingUrls)||[];f=_.m(B);for(S=f.next();!S.done;S=f.next())S=S.value,S.baseUrl&&Ay(S.baseUrl,S.attributionSrcMode)};
_.e.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.y3.Object.defineProperties(cm.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
cm.prototype.onTap=cm.prototype.onTap;cm.prototype.dataChanged=cm.prototype.dataChanged;cm.JSC$13342_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"]]);
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],cm.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],cm.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.lE.YtSparklesClickLocationBehavior),_.Z("design:type",Object)],cm.prototype,"ytSparklesClickLocationBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],cm.prototype,"data",void 0);
_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],cm.prototype,"showFavicon",null);_.N([_.n({reflectToAttribute:!0,value:function(){return _.K("enable_desktop_search_bigger_thumbs")}}),
_.Z("design:type",Boolean)],cm.prototype,"useBiggerThumbs",void 0);_.N([_.n({reflectToAttribute:!0,value:function(){return _.gO("desktop_search_bigger_thumbs_style")}}),
_.Z("design:type",String)],cm.prototype,"biggerThumbsStyle",void 0);_.N([_.n({reflectToAttribute:!0,value:function(){return _.K("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.Z("design:type",Boolean)],cm.prototype,"enableThumbnailScalingFix",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cm.prototype,"dataChanged",null);_.N([_.Vg("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],cm.prototype,"onTap",null);_.N([_.C({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],cm);
_.p(cm,"ytd-text-image-no-button-layout-renderer",function(){if(Pwm!==void 0)return Pwm;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return Pwm=f},{mode:_.X_("kevlar_poly_si_batch_j028")?1:2});var vtg;var lb=function(){var f=_.I.apply(this,arguments)||this;f.isInlinePlaybackState=!1;f.uiUpdate=_.K("web_modern_buttons");f.hideCta=_.K("hide_cta_for_home_web_video_ads");f.noBottomMargin=!1;f.animateInTimeStamp=_.Gt("hide_cta_for_home_web_video_ads_animate_in_time");f.animateInCta=!1;f.isHovered=!1;f.player=null;f.JSC$13349_playerEvents=new Map;f.JSC$13349_preventProgressSaveTimer=null;f.delayedCtaJobId=null;return f};
_.q(lb,_.I);_.e=lb.prototype;_.e.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]]"}}}}}};
_.e.attached=function(){this.JSC$13349_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$13349_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.K("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.e.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$13349_playerEvents)};
_.e.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",lb.JSC$13348_DEFAULT_CLICK_LOCATION_BEHAVIOR,lb.JSC$13348_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.e.hoverChanged=function(){var f=this;this.delayedCtaJobId&&(_.xJ.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.K("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.H8(_.xJ,function(){f.buttonContainer.classList.add("show-delayed-buttons")},_.Gt("delayed_cta_on_web_delay_milliseconds")))};
_.e.setPlayer=function(){var f=this,S;return _.R(function(B){if(B.nextAddress==1)return(S=_.mU(f.hostElement,"yt-get-inline-preview-player-action"))&&S[0]?_.h(B,S[0].getPlayerPromise(),3):B.jumpTo(0);f.player=B.yieldResult;f.ytPlayerListenerBehavior.listenToPlayerEvents(f.player,f.JSC$13349_playerEvents);_.TT(B)})};
_.e.onPlaybackStart=function(){var f=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$13349_preventProgressSaveTimer=_.Xd(_.xJ,function(){f.JSC$13349_preventProgressSaveTimer=null},1E4))};
_.e.onVideoProgress=function(f){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&f>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.e.resetPreventProgressSaveTimer=function(){_.xJ.cancelJob(this.JSC$13349_preventProgressSaveTimer);this.JSC$13349_preventProgressSaveTimer=null};
_.e.getSimpleString=function(f){return _.ac(f)};
_.e.onClick=function(f){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var S,B=(S=this.data)==null?void 0:S.navigationEndpoint,G;S=(G=this.data)==null?void 0:G.channelEndpoint;var g,b;(G=(b=_.H((g=this.data)==null?void 0:g.adCtaButton,_.IR))==null?void 0:b.command)&&_.fF(_.ct(f),this.hostElement,["call-to-action"])?_.K("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(G,f,!1):S&&_.fF(_.ct(f),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(S,f,!1):!_.fF(_.ct(f),this.hostElement,["secondary-button"])&&B&&(_.K("enable_short_dr_for_desktop_launchable")?(g=!!_.H(B,_.t2),this.isInlinePlaybackState&&g&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(B,f,g)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(B,f,!0)))}};
_.e.updateWatchEndpointStartTime=function(){var f,S;this.player&&((f=this.data)==null?0:f.inlinePlaybackEndpoint)&&((S=this.data)==null?0:S.navigationEndpoint)&&!this.JSC$13349_preventProgressSaveTimer&&(f=Math.floor(this.player.getCurrentTime()),_.H(this.data.navigationEndpoint,_.t2).startTimeSeconds=f,_.H(this.data.inlinePlaybackEndpoint,_.t2).startTimeSeconds=f)};
_.e.computeButtonOverride=function(){if(this.uiUpdate)return{style:"call-to-action",type:"tonal"}};
_.e.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.y3.Object.defineProperties(lb.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.K("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var f,S;return!((f=this.data)==null||!f.watchButton)&&!((S=this.data)==null||!S.adCtaButton)}}});
lb.prototype.hoverChanged=lb.prototype.hoverChanged;lb.prototype.dataChanged=lb.prototype.dataChanged;
lb.JSC$13348_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"]]);
lb.JSC$13348_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"}];
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],lb.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],lb.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],lb.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.lE.YtSparklesClickLocationBehavior),_.Z("design:type",Object)],lb.prototype,"ytSparklesClickLocationBehavior",void 0);
_.N([_.r(_.Nr.YtPlayerListenerBehavior),_.Z("design:type",_.Mr)],lb.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],lb.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],lb.prototype,"isInlinePlaybackState",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],lb.prototype,"miniMode",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],lb.prototype,"uiUpdate",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],lb.prototype,"hideCta",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],lb.prototype,"noBottomMargin",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],lb.prototype,"animateInCta",void 0);_.N([_.n({computed:"computeButtonOverride(uiUpdate)"}),_.Z("design:type",Object)],lb.prototype,"buttonOverride",void 0);
_.N([_.n({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.Z("design:type",Object)],lb.prototype,"secondaryButtonOverride",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],lb.prototype,"isHovered",void 0);_.N([_.vF("#button-container"),_.Z("design:type",HTMLElement)],lb.prototype,"buttonContainer",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],lb.prototype,"typographyBump",void 0);
_.N([_.n({reflectToAttribute:!0}),_.k("typographyBump"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],lb.prototype,"typographyBumpV2",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],lb.prototype,"dataChanged",null);_.N([_.JO("isHovered"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],lb.prototype,"hoverChanged",null);
_.N([_.k("data"),_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],lb.prototype,"isButtonGroup",null);_.N([_.C({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],lb);
_.p(lb,"ytd-ad-inline-playback-meta-block",function(){if(vtg!==void 0)return vtg;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return vtg=f},{mode:_.X_("kevlar_poly_si_batch_j065")?1:2});var KV$;var fI=function(){var f=_.I.apply(this,arguments)||this;f.noBottomMargin=!1;f.isInlinePreviewTriggered=!1;f.JSC$13354_activeViewMeasurementDataResolver=_.aa();return f};
_.q(fI,_.I);_.e=fI.prototype;_.e.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.e.attached=function(){var f=this;this.updateInlinePreviewHoverListeners();this.JSC$13354_activeViewMeasurementDataResolver.promise.then(function(S){f.ytdActiveViewBehavior.enableActiveViewMeasurement(S,15)});
_.K("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&f.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.e.detached=function(){this.clearInlinePreviewHoverListeners();_.K("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.e.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13354_inlinePreviewHoverListener=W8({mediaRenderer:this,lockupElement:this.JSC$13354_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:xq1})};
_.e.clearInlinePreviewHoverListeners=function(){var f;(f=this.JSC$13354_inlinePreviewHoverListener)==null||mZ(f)};
_.e.onDataChanged=function(){var f;((f=this.data)==null?0:f.activeView)&&this.JSC$13354_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",fI.JSC$13353_DEFAULT_CLICK_LOCATION_BEHAVIOR,fI.JSC$13353_CLICK_LOCATION_ID_MAP);this.thumbnail&&(f=this.thumbnail.getElementsByTagName("a"),f.length>0&&(f=f.namedItem("thumbnail"))&&f.removeAttribute("href"));var S,B;if(((S=this.data)==
null?0:S.hasAutoplay)||((B=this.data)==null?0:B.forceImpAutoplay)){var G;(G=this.JSC$13354_inlinePreviewHoverListener)==null||xg9(G)}};
_.e.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.e.onThumbnailContainerClick=function(f){if(this.data&&this.data.navigationEndpoint){var S,B=(S=this.data)==null?void 0:S.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(B,f,!!_.H(B,_.t2));f.stopPropagation()}};
_.e.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.e.impressionLog=function(){var f=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var S,B,G=(B=_.H((S=this.data)==null?void 0:S.onImpression,_.hf))==null?void 0:B.commands;G&&(G.forEach(function(g){g.clickTrackingParams&&delete g.clickTrackingParams;f.ytComponentBehavior.resolveCommand(g)}),this.data.impressionsFired=!0)}};
_.y3.Object.defineProperties(fI.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.JSC$13354_inlinePreviewHoverListener)==null?0:Er(f))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
fI.prototype.onTypographyBumpChanged=fI.prototype.onTypographyBumpChanged;fI.prototype.onDataChanged=fI.prototype.onDataChanged;fI.JSC$13353_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);fI.JSC$13353_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"}];
_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],fI.prototype,"ytComponentBehavior",void 0);_.N([_.r(xP),_.Z("design:type",Object)],fI.prototype,"ytdActiveViewBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],fI.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],fI.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.kP),_.Z("design:type",Object)],fI.prototype,"ytdDismissibleItemBehavior",void 0);
_.N([_.r(_.pR),_.Z("design:type",Object)],fI.prototype,"ytdLockupBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],fI.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.lE.YtSparklesClickLocationBehavior),_.Z("design:type",Object)],fI.prototype,"ytSparklesClickLocationBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],fI.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],fI.prototype,"noBottomMargin",void 0);
_.N([_.n(),_.Z("design:type",Object)],fI.prototype,"isInlinePreviewTriggered",void 0);_.N([_.n({reflectToAttribute:!0,selector:_.xr}),_.Z("design:type",Boolean)],fI.prototype,"miniMode",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],fI.prototype,"typographyBump",void 0);_.N([_.vF("ytd-thumbnail"),_.Z("design:type",HTMLElement)],fI.prototype,"thumbnail",void 0);_.N([_.vF("#dismissible"),_.Z("design:type",HTMLElement)],fI.prototype,"JSC$13354_dismissibleMedia",void 0);
_.N([_.vF("ytd-ad-inline-playback-meta-block"),_.Z("design:type",HTMLElement)],fI.prototype,"adInlinePlaybackMetaBlock",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],fI.prototype,"onDataChanged",null);_.N([_.HF("typographyBump"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],fI.prototype,"onTypographyBumpChanged",null);
_.N([_.k("lockupIsHovered"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],fI.prototype,"isHovered",null);_.N([_.C({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],fI);
_.p(fI,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(KV$!==void 0)return KV$;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return KV$=f},{mode:1});var dUN;var o6=function(){var f=_.I.apply(this,arguments)||this;f.isInlinePreviewTriggered=!1;f.JSC$13357_activeViewMeasurementDataResolver=_.aa();return f};
_.q(o6,_.I);_.e=o6.prototype;_.e.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.e.attached=function(){var f=this;this.updateInlinePreviewHoverListeners();this.JSC$13357_activeViewMeasurementDataResolver.promise.then(function(S){f.ytdActiveViewBehavior.enableActiveViewMeasurement(S,15)})};
_.e.detached=function(){this.clearInlinePreviewHoverListeners()};
_.e.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13357_inlinePreviewHoverListener=W8({mediaRenderer:this,lockupElement:this.JSC$13357_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:xq1})};
_.e.clearInlinePreviewHoverListeners=function(){var f;(f=this.JSC$13357_inlinePreviewHoverListener)==null||mZ(f)};
_.e.onDataChanged=function(){var f;((f=this.data)==null?0:f.activeView)&&this.JSC$13357_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",o6.JSC$13356_DEFAULT_CLICK_LOCATION_BEHAVIOR,o6.JSC$13356_CLICK_LOCATION_ID_MAP);this.thumbnail&&(f=this.thumbnail.getElementsByTagName("a"),f.length>0&&(f=f.namedItem("thumbnail"))&&f.removeAttribute("href"))};
_.e.onThumbnailContainerClick=function(f){if(this.data&&this.data.navigationEndpoint){var S,B=(S=this.data)==null?void 0:S.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(B,f,!0);f.stopPropagation()}};
_.e.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.e.impressionLog=function(){var f=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var S,B,G=(B=_.H((S=this.data)==null?void 0:S.onImpression,_.hf))==null?void 0:B.commands;G&&(G.forEach(function(g){g.clickTrackingParams&&delete g.clickTrackingParams;_.oy().resolve(_.S7).resolveCommand(g,{form:{element:f.hostElement}})}),this.data.impressionsFired=!0)}};
_.y3.Object.defineProperties(o6.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.JSC$13357_inlinePreviewHoverListener)==null?0:Er(f))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
o6.prototype.onDataChanged=o6.prototype.onDataChanged;o6.JSC$13356_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);o6.JSC$13356_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"}];_.N([_.r(xP),_.Z("design:type",Object)],o6.prototype,"ytdActiveViewBehavior",void 0);
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],o6.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],o6.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.kP),_.Z("design:type",Object)],o6.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.r(_.pR),_.Z("design:type",Object)],o6.prototype,"ytdLockupBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],o6.prototype,"ytdReduxBehavior",void 0);
_.N([_.r(_.lE.YtSparklesClickLocationBehavior),_.Z("design:type",Object)],o6.prototype,"ytSparklesClickLocationBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],o6.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],o6.prototype,"isInlinePreviewTriggered",void 0);_.N([_.n({reflectToAttribute:!0,selector:_.xr}),_.Z("design:type",Boolean)],o6.prototype,"miniMode",void 0);_.N([_.vF("ytd-thumbnail"),_.Z("design:type",HTMLElement)],o6.prototype,"thumbnail",void 0);
_.N([_.vF("#dismissible"),_.Z("design:type",HTMLElement)],o6.prototype,"JSC$13357_dismissibleMedia",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],o6.prototype,"onDataChanged",null);_.N([_.k("lockupIsHovered"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],o6.prototype,"isHovered",null);_.N([_.C({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],o6);
_.p(o6,"ytd-video-display-full-buttoned-renderer",function(){if(dUN!==void 0)return dUN;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return dUN=f},{mode:1});var V1=function(f,S,B,G){G=G===void 0?!1:G;_.fM.call(this,f);this.adsClientErrorMessage=B;this.aggressivelySample=G;this.args=[];S&&this.args.push(S)};
_.q(V1,_.fM);var X8=function(f,S,B,G){G=G===void 0?!1:G;_.fM.call(this,f);this.adsClientErrorMessage=B;this.aggressivelySample=G;this.args=[];S&&this.args.push(S)};
_.q(X8,_.fM);var i6L=function(f){_.qR.call(this);var S=this;this.initializationFunction=f;this.instance=null;this.addOnDisposeCallback(function(){_.cd(S.instance);S.instance=null})};
_.q(i6L,_.qR);i6L.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.GN("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var JIj=function(){var f=new Map;[].forEach(function(S){f.set(S.JSC$27007_getType(),S)})};new Promise(function(){});var w3A=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"]]),RTG=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"}]]),H6i=function(f){this.experimentApiProvider=f;f=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=f<.1};var SQ=function(f,S,B,G){_.qR.call(this);this.adsControlFlowEventListeners=S;this.adEventLogger=B;this.experimentApiProvider=G;this.adsControlFlowManagerHelper=f(this,this,this,this,this);_.ha(this,this.adsControlFlowManagerHelper);f=_.m(S);for(S=f.next();!S.done;S=f.next())_.ha(this,S.value)};
_.q(SQ,_.qR);var qS8=function(f,S,B,G){BH(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",S,B,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,G);f=_.m(f.adsControlFlowEventListeners);for(G=f.next();!G.done;G=f.next())qS8(G.value,S,B)};
_.e=SQ.prototype;_.e.onOpportunityProcessedExternallyManaged=function(f,S,B,G){BH(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",f,B,S,void 0,void 0,void 0,void 0,void 0,void 0,void 0,G)};
_.e.onSlotReceivedExternallyManaged=function(f,S){Gu(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",f,S)};
_.e.onSlotEntered=function(f){if(gM(this.adsControlFlowManagerHelper,f)!=null){Gu(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",f);this.adsControlFlowManagerHelper.onSlotEntered(f);for(var S=_.m(this.adsControlFlowEventListeners),B=S.next();!B.done;B=S.next())B.value.onSlotEntered(f);if(gM(this.adsControlFlowManagerHelper,f)!=null&&gM(this.adsControlFlowManagerHelper,f).isOccupyingSlotType()&&eQ(this.adsControlFlowManagerHelper,f)&&!$Uj(this.adsControlFlowManagerHelper,f)){var G;bc(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",f,(G=eQ(this.adsControlFlowManagerHelper,f))!=null?G:void 0);f=gM(this.adsControlFlowManagerHelper,f);f.slotLifecycleStage!=="entered"&&m0(f.slot,f.slotLifecycleStage,"enterLayoutForSlot");f.slotLifecycleStage="rendering";f.registeredLayoutRenderingAdapter.startRendering(f.layout)}}};
_.e.onSlotExited=function(f){if(gM(this.adsControlFlowManagerHelper,f)!=null){Gu(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",f);this.adsControlFlowManagerHelper.onSlotExited(f);for(var S=_.m(this.adsControlFlowEventListeners),B=S.next();!B.done;B=S.next())B.value.onSlotExited(f);gM(this.adsControlFlowManagerHelper,f)!=null&&gM(this.adsControlFlowManagerHelper,f).markedForUnscheduleAfterOutboundAdapterRequests&&QE8(this,f)}};
_.e.onLayoutReceivedExternallyManaged=function(f,S,B){f.managerLayer!=="core"&&bc(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",f,S,B)};
var YSo=function(f,S,B){if(gM(f.adsControlFlowManagerHelper,S)!=null){bc(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",S,B);f=_.m(f.adsControlFlowEventListeners);for(var G=f.next();!G.done;G=f.next())YSo(G.value,S,B)}};
SQ.prototype.onLayoutExited=function(f,S,B){if(gM(this.adsControlFlowManagerHelper,f)!=null){bc(this.adEventLogger,X3x(B),f,S);this.adsControlFlowManagerHelper.onLayoutExited(f,S);for(var G=_.m(this.adsControlFlowEventListeners),g=G.next();!g.done;g=G.next())g.value.onLayoutExited(f,S,B);(B=eQ(this.adsControlFlowManagerHelper,f))&&S.layoutId===B.layoutId&&rIv(this,f)}};
SQ.prototype.disposeInternal=function(){var f=jEi(this.adsControlFlowManagerHelper);f=_.m(f);for(var S=f.next();!S.done;S=f.next())QE8(this,S.value);_.qR.prototype.disposeInternal.call(this)};
var QE8=function(f,S){if(gM(f.adsControlFlowManagerHelper,S)!=null)if(gM(f.adsControlFlowManagerHelper,S).JSC$27038_isSlotExitRequested()||gM(f.adsControlFlowManagerHelper,S).JSC$27038_isLayoutExitRequested())gM(f.adsControlFlowManagerHelper,S).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(gM(f.adsControlFlowManagerHelper,S).isOccupyingSlotType())gM(f.adsControlFlowManagerHelper,S).markedForUnscheduleAfterOutboundAdapterRequests=!0,rIv(f,S);else if(gM(f.adsControlFlowManagerHelper,S).JSC$27038_isSlotFillRequested())gM(f.adsControlFlowManagerHelper,
S).markedForUnscheduleAfterOutboundAdapterRequests=!0,gM(f.adsControlFlowManagerHelper,S)!=null&&(Gu(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",S),S=gM(f.adsControlFlowManagerHelper,S),S.fulfillmentLifecycleStage="fill_cancel_requested",S.registeredFulfillmentAdapter.cancelSlotFilling());else{var B=eQ(f.adsControlFlowManagerHelper,S),G;f.experimentApiProvider.get();(G=_.K("h5_enable_layout_unscheduling_events"))&&(B?O6m(f,S,B):_.GN(Error("Ih"),S,B,void 0,!1));Gu(f.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",S);var g=gM(f.adsControlFlowManagerHelper,S),b=S.slotEntryTrigger,z=g.registeredSlotEntryTriggerAdapters.get(b.triggerId);z&&(z.unregisterTrigger(b),g.registeredSlotEntryTriggerAdapters.delete(b.triggerId));b=_.m(S.slotFulfillmentTriggers);for(z=b.next();!z.done;z=b.next()){z=z.value;var X=g.registeredFulfillmentTriggerAdapters.get(z.triggerId);X&&(X.unregisterTrigger(z),g.registeredFulfillmentTriggerAdapters.delete(z.triggerId))}b=_.m(S.slotExpirationTriggers);
for(z=b.next();!z.done;z=b.next())if(z=z.value,X=g.registeredExpirationTriggerAdapters.get(z.triggerId))X.unregisterTrigger(z),g.registeredExpirationTriggerAdapters.delete(z.triggerId);g.hasLayout()&&(b=g.layout,zu(g,b.layoutExitNormalTriggers),zu(g,b.layoutExitSkipTriggers),zu(g,b.layoutExitMuteTriggers),zu(g,b.layoutExitUserInputSubmittedTriggers),zu(g,b.layoutExitUserCancelledTriggers));g.registeredFulfillmentAdapter=void 0;g.registeredSlotAdapter!=null&&(g.registeredSlotAdapter.release(),g.registeredSlotAdapter=
void 0);g.registeredLayoutRenderingAdapter!=null&&(g.registeredLayoutRenderingAdapter.release(),g.registeredLayoutRenderingAdapter=void 0);g=f.adsControlFlowManagerHelper;gM(g,S)&&(g=xU$(g,S.slotType+"_"+S.slotPhysicalPosition))&&g.delete(S.slotId);Gu(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",S);f=_.m(f.adsControlFlowEventListeners);for(g=f.next();!g.done;g=f.next())g=g.value,g.onSlotUnscheduled(S),B&&!G&&O6m(g,S,B)}},O6m=function(f,S,B){bc(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
S,B);
bc(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",S,B);f=_.m(f.adsControlFlowEventListeners);for(var G=f.next();!G.done;G=f.next())G=G.value,B&&O6m(G,S,B)},rIv=function(f,S){if(gM(f.adsControlFlowManagerHelper,S)!=null&&gM(f.adsControlFlowManagerHelper,S).isOccupyingSlotType()){var B=eQ(f.adsControlFlowManagerHelper,S);
if(B&&$Uj(f.adsControlFlowManagerHelper,S)){if(gM(f.adsControlFlowManagerHelper,S)!=null){var G=f.adEventLogger,g;var b=((g=RTG.get("abandoned"))==null?void 0:g.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";bc(G,b,S,B);f=gM(f.adsControlFlowManagerHelper,S);f.slotLifecycleStage!=="rendering"&&m0(f.slot,f.slotLifecycleStage,"exitLayout");f.slotLifecycleStage="rendering_stop_requested";f.registeredLayoutRenderingAdapter.stopRendering(B,"abandoned")}}else{Gu(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
S);try{G=gM(f.adsControlFlowManagerHelper,S);if(!G)throw new X8("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");G.slotLifecycleStage!=="enter_requested"&&G.slotLifecycleStage!=="entered"&&G.slotLifecycleStage!=="rendering"&&m0(G.slot,G.slotLifecycleStage,"exitSlot");G.slotLifecycleStage="exit_requested";if(G.registeredSlotAdapter===void 0)throw G.slotLifecycleStage="scheduled",new X8("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
G.registeredSlotAdapter.exit()}catch(z){z instanceof X8&&z.adsClientErrorMessage?(Et$(f.adEventLogger,z.adsClientErrorMessage,S),_.GN(z,S,void 0,void 0,z.aggressivelySample)):(Et$(f.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",S),_.GN(z,S))}}}};var R6=function(f,S,B,G,g,b){_.qR.call(this);this.registry=f;this.experimentApiProvider=b;this.slotMap=new Map};
_.q(R6,_.qR);var xU$=function(f,S){return(f=f.slotMap.get(S))?f:new Map},gM=function(f,S){return xU$(f,S.slotType+"_"+S.slotPhysicalPosition).get(S.slotId)},jEi=function(f){var S=[];
f.slotMap.forEach(function(B){B=_.m(B.values());for(var G=B.next();!G.done;G=B.next())S.push(G.value.slot)});
return S};
R6.prototype.onSlotEntered=function(f){f=gM(this,f);f.slotLifecycleStage!=="enter_requested"&&m0(f.slot,f.slotLifecycleStage,"onSlotEntered");f.slotLifecycleStage="entered"};
var $Uj=function(f,S){f=gM(f,S);return f.hasLayout()&&f.isRendering()},eQ=function(f,S){(f=gM(f,S))?f.hasLayout()&&!f.layout&&_.GN("Unexpected empty layout",S):_.GN("Unexpected undefined slotState",S);
return(f==null?void 0:f.layout)||null};
R6.prototype.onSlotExited=function(f){f=gM(this,f);f.slotLifecycleStage!=="exit_requested"&&m0(f.slot,f.slotLifecycleStage,"onSlotExited");f.slotLifecycleStage="scheduled"};
R6.prototype.onLayoutExited=function(f,S){f=gM(this,f);f.isPrimaryLayout(S)&&(f.slotLifecycleStage!=="rendering_stop_requested"&&m0(f.slot,f.slotLifecycleStage,"onLayoutExited"),f.slotLifecycleStage="entered")};
var zu=function(f,S){S=_.m(S);for(var B=S.next();!B.done;B=S.next()){B=B.value;var G=f.registeredLayoutExitTriggerAdapters.get(B.triggerId);G&&(G.unregisterTrigger(B),f.registeredLayoutExitTriggerAdapters.delete(B.triggerId))}},m0=function(f,S,B){_.GN("Slot stage was "+S+" when calling method "+B,f)};var k3N=function(f){_.qR.call(this);this.deps=f;this.JSC$13406_adsControlFlowManager=LVL(this)};
_.q(k3N,_.qR);var LVL=function(f){var S=new SQ(function(B,G,g,b){return new R6(f.deps.registry,B,G,g,b,f.deps.experimentApiProvider)},new Set(V$N(f.deps.registry).concat(f.deps.listeners)),f.deps.adEventLogger,f.deps.experimentApiProvider);
_.ha(f,S);return S};var ntX=function(f,S){_.qR.call(this);this.experimentApiProvider=f;this.eventLoggingSettingsProvider=S;this.eventCount=0};
_.q(ntX,_.qR);ntX.prototype.logEvent=function(f){BH(this,f)};
var Gu=function(f,S,B,G){BH(f,S,void 0,void 0,void 0,B,void 0,void 0,void 0,B.adSlotLoggingData,void 0,void 0,G)},bc=function(f,S,B,G,g){BH(f,S,void 0,void 0,void 0,B,G?G:void 0,void 0,void 0,B.adSlotLoggingData,G?G.adLayoutLoggingData:void 0,void 0,g)},Et$=function(f,S,B){BH(f,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,B,void 0,void 0,void 0,B.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:S})},BH=function(f,S,B,G,g,b,z,X,w,F,V,J,P){P=P===void 0?0:P;
sE7(f.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+S,"slot:",b,"layout:",z,"ping:",X,"Opportunity:",{opportunityType:B,associatedSlotId:G,slotsFromOpportunity:g,triggerBundle:w,adSlotLoggingData:F,adLayoutLoggingData:V});try{var d=function(){f.experimentApiProvider.get();if(S!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){S||_.GN("Empty PACF event type",b,z);var Q=f.eventLoggingSettingsProvider.get();var x;(x=Q.alwaysIncludeDebugData)||(Q.experimentApiProvider.get(),x=
!1);Q=x;x={eventType:S,eventOrder:++f.eventCount};var E={};b&&(E.slotData=T7j(Q,b));if(z){var U={type:z.layoutType,controlFlowManagerLayer:w3A.get(z.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};Q&&(U.debugData={layoutId:z.layoutId});E.layoutData=U}X&&(E.pingData={pingDispatchStatus:X.dispatchStatus,serializedAdPingMetadata:X.ping.serializedAdPingMetadata,pingIndex:X.index});w&&(E.triggerData=hTx(w.trigger,w.category));B&&(E.opportunityData=FV1(Q,B,G,g));x.adClientData=E;F&&(x.serializedSlotAdServingData=
F.serializedSlotAdServingDataEntry);V&&(x.serializedAdServingData=V.serializedAdServingDataEntry);J&&(x.errorInfo=J);_.jD("adsClientStateChange",{adsClientEvent:x})}};
P&&P>0?_.q6(_.kj(),function(){return d()},P):d()}catch(Q){sE7(f.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.q6(_.kj(),function(){_.GN(Q instanceof Error?Q:String(Q),b,z,{pacf_message:"exception during pacf logging"})})}};var DU1=function(f,S){ntX.call(this,f,S)};
_.q(DU1,ntX);var IF8=function(){},sE7=function(f,S){return _.K(S)};var Cwm=function(){var f=new UUo;this.JSC$13425_adsControlFlowManager=(new k3N(f)).JSC$13406_adsControlFlowManager},UUo=function(){_.qR.call(this);
var f=this;this.experimentApiProvider=new i6L(function(){return new IF8});
var S=new i6L(function(){return new H6i(f.experimentApiProvider)});
this.adEventLogger=new DU1(this.experimentApiProvider,S);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.q(UUo,_.qR);var p3j=function(){},AIj,Xf=function(){AIj||(AIj=new p3j);
return AIj},wM=function(f){if(!f.JSC$13436_externallyManagedSlotAdapterCallback){var S=(new Cwm).JSC$13425_adsControlFlowManager;
f.JSC$13436_externallyManagedSlotAdapterCallback=S}return f.JSC$13436_externallyManagedSlotAdapterCallback},N76=function(f,S,B){var G=S.opportunityType,g=Error("Jh");
if(G!==void 0){var b=wM(f);qS8(b,G,void 0,B)}else _.GN(g,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});b=[];if(S.adSlotAndLayoutMetadata!==void 0){S=_.m(S.adSlotAndLayoutMetadata);for(var z=S.next();!z.done;z=S.next()){var X=z.value;if(z=X.adSlotMetadata)if(b.push(z),f.onSlotReceivedExternallyManaged(z,B),X.adLayoutMetadata){X=_.m(X.adLayoutMetadata);for(var w=X.next();!w.done;w=X.next())f.onLayoutReceivedExternallyManaged(z,w.value,B)}else B>0&&_.GN("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
G,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else B>0&&_.GN("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+G,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else B>0&&_.GN("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+G,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(G!==void 0)f.onOpportunityProcessedExternallyManaged(G,b,void 0,B);else _.GN(g,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
p3j.prototype.onSlotReceivedExternallyManaged=function(f,S){f=F8(f);if(f instanceof X8)_.GN(f,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else wM(this).onSlotReceivedExternallyManaged(f,S)};
p3j.prototype.onLayoutReceivedExternallyManaged=function(f,S,B){f=F8(f);S=PwK(S);if(f instanceof X8)_.GN(f,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(S instanceof V1)_.GN(S,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else wM(this).onLayoutReceivedExternallyManaged(f,S,B)};
p3j.prototype.onOpportunityProcessedExternallyManaged=function(f,S,B,G){var g=[];S=_.m(S);for(var b=S.next();!b.done;b=S.next())b=F8(b.value),b instanceof X8?_.GN(b,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):g.push(b);wM(this).onOpportunityProcessedExternallyManaged(f,g,B,G)};
var M$7=function(f,S){S=F8(S);if(S instanceof X8)_.GN(S,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var B=wM(f);Gu(B.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",S);B=_.m(B.adsControlFlowEventListeners);for(var G=B.next();!G.done;G=B.next())G=gM(G.value,S),G.slotLifecycleStage!=="not_scheduled"&&m0(G.slot,G.slotLifecycleStage,"onSlotScheduled"),G.slotLifecycleStage="scheduled";f=wM(f);Gu(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",S);f=_.m(f.adsControlFlowEventListeners);
for(B=f.next();!B.done;B=f.next())B.value.onSlotEntered(S)}},Z6$=function(f,S){S=F8(S);
if(S instanceof X8)_.GN(S,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var B=wM(f);Gu(B.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",S);B=_.m(B.adsControlFlowEventListeners);for(var G=B.next();!G.done;G=B.next())G.value.onSlotExited(S);f=wM(f);Gu(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",S);f=_.m(f.adsControlFlowEventListeners);for(B=f.next();!B.done;B=f.next())B.value.onSlotUnscheduled(S)}},t$o=function(f,S,B){S=F8(S);
B=PwK(B);if(S instanceof X8)_.GN(S,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(B instanceof V1)_.GN(B,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var G=wM(f);bc(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",S,B);G=_.m(G.adsControlFlowEventListeners);for(var g=G.next();!g.done;g=G.next())g.value.onLayoutScheduled(S,B);f=wM(f);bc(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",S,B);f=_.m(f.adsControlFlowEventListeners);
for(G=f.next();!G.done;G=f.next())YSo(G.value,S,B)}},hS=function(f,S,B){S=F8(S);
B=PwK(B);if(S instanceof X8)_.GN(S,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(B instanceof V1)_.GN(B,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var G=wM(f);bc(G.adEventLogger,X3x("normal"),S,B);G=_.m(G.adsControlFlowEventListeners);for(var g=G.next();!g.done;g=G.next())g.value.onLayoutExited(S,B,"normal");f=wM(f);f=_.m(f.adsControlFlowEventListeners);for(G=f.next();!G.done;G=f.next())O6m(G.value,S,B)}};_.Tu=_.oS(function(f){var S=_.lu(f,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});f=Object.assign({},S);var B=S.data;S=S.customCommandResolver;var G=(delete f.data,delete f.customCommandResolver,f),g=_.tE("ad-image-view-model");_.c8(g,function(){return B().interaction},S,function(){var X;
return(X=G.listenToTapEvent)==null?void 0:X.call(G)});
_.of(g,{visibilityCallback:function(X){var w,F=(w=B().interaction)==null?void 0:w.onFirstVisible;X&&(F&&_.MB(F),G.setOnErrorHandler()&&vtT(g))},
showOption:_.Wx});f=_.m(_.hj(!1,void 0,"eiYvIe"));var b=f.next().value,z=f.next().value;return _.T("ad-image-view-model",{class:function(){var X,w=[((X=B().interaction)==null?0:X.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],F;((F=G.isGridViewEnabled)==null?0:F.call(G))&&w.push("ytwAdImageViewModelHostInGridView");return w.join(" ")},
el:g,"on:touchend":_.iF(function(){var X;((X=G.setTouchEndHandler)==null?0:X.call(G))&&!b()&&(g.value.click(),z(!0),setTimeout(function(){z(!1)},100));
return!1})},_.T("div",{class:"ytwAdImageViewModelHostImageContainer"},_.T(_.f9,{data:function(){var X;
return{sources:B().imageSources,contentMode:(X=B().imageProperties)==null?void 0:X.contentMode}},
alt:function(){var X,w;return((X=B().interaction)==null?void 0:(w=X.accessibility)==null?void 0:w.label)||""},
targetHeight:G.targetHeight,targetWidth:G.targetWidth,preserveHeight:G.preserveHeight,preserveWidth:G.preserveWidth,useWidth:G.useWidth,style:function(){var X,w;return"vertical-align: bottom;"+(((X=B().background)==null?0:X.color)?"background-color:"+_.pn((w=B().background)==null?void 0:w.color)+";":"")},
className:function(){return G.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var X,w;return(w=(X=G.setDraggable)==null?void 0:X.call(G))!=null?w:void 0}})))},"gb");var u5i=_.oS(function(f){var S=f.data,B=f.listenToTapEvent,G=_.tE("ad-button-hover-overlay-view-model");_.K("enable_web_home_top_landscape_image_layout_legacy_click_command")||_.c8(G,function(){return S().interaction},void 0,function(){return B==null?void 0:B()});
_.of(G,{visibilityCallback:function(b){var z,X=(z=S().interaction)==null?void 0:z.onFirstVisible;b&&X&&_.MB(X)},
showOption:_.Wx});var g=function(){};
return _.T("ad-button-hover-overlay-view-model",{"on:click":_.iF(function(){if(_.K("enable_web_home_top_landscape_image_layout_legacy_click_command")){var b,z=(b=S().interaction)==null?void 0:b.onTap;z&&_.ew(G.value,"yt-navigate",{endpoint:_.CH(z)})}}),
class:function(){var b;return((b=S().interaction)==null?0:b.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:G},function(){return _.K("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.T(_.xK,{data:function(){return S().button}},{adButtonViewModel:function(b){return _.T(_.lQ,{data:b.data,
customCommandResolver:g})}}):_.T(_.xK,{data:function(){return S().button}},{adButtonViewModel:_.lQ})}())},"hb");var Jp;_.eq(_.oS(function(f){var S=f.data;var B=_.tE("compact-landscape-no-button-layout-view-model");_.K("stop_av_measurement_on_detach")&&_.Ov(function(){ve(B)});
_.c8(B,function(){return S().interaction},void 0,function(){return!0});
_.of(B,{visibilityCallback:function(b){if(b){var z;(b=(z=S().interaction)==null?void 0:z.onFirstVisible)&&_.MB(b);var X;if(z=(X=S().adLayoutData)==null?void 0:X.activeViewData)Pe(B,z),_.K("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&ve(B)})}else _.K("stop_av_measurement_on_detach")&&ve(B)},
showOption:_.Wx,hideOption:cx});f=_.m(_.hj(!1,void 0,"yzu6qe"));var G=f.next().value,g=f.next().value;return _.T("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:B,"on:mouseenter":_.iF(function(){g(!0)}),
"on:mouseleave":_.iF(function(){g(!1)})},_.T("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",
style:_.Qj({"max-width":function(){return _.K("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.T("div",{class:function(){var b;
a:{var z;switch((b=_.H(S().thumbnailImage,sQj))==null?void 0:(z=b.imageProperties)==null?void 0:z.renderingAspect){case "RENDERING_ASPECT_SQUARE":b="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":b="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}b=void 0}return b}},_.T(_.xK,{data:function(){return S().thumbnailImage}},{adImageViewModel:function(b){return _.T(_.Tu,
{data:b.data,
listenToTapEvent:!0,setTouchEndHandler:_.K("enable_top_landscape_image_experiment_dom_id_web")})}})),_.T("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.T(_.v,{cond:function(){var b,z,X;
return(b=_.H(S().thumbnailImage,sQj))==null?void 0:(z=b.imageProperties)==null?void 0:(X=z.overlayIcon)==null?void 0:X.iconImage},
then:function(b){return _.T(_.f9,{data:b,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.T("div",{class:function(){return G()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.T(_.xK,{data:function(){return S().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(b){return _.T(u5i,
{data:b.data,
listenToTapEvent:!0})}}))),_.T("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.T(_.xK,{data:function(){return S().feedAdMetadata}},{feedAdMetadataViewModel:function(b){return _.T(gxi,{data:b.data,
listenToTapEvent:!0,setTouchEndHandler:_.K("enable_top_landscape_image_experiment_dom_id_web")})}})))},"ib"),"compact-landscape-no-button-layout-view-model",{props:{data:_.W4}});_.eq(_.oS(function(f){var S=f.data;var B=_.tE("square-image-layout-view-model");_.K("stop_av_measurement_on_detach")&&_.Ov(function(){ve(B)});
var G=_.Uo(_.AD);_.c8(B,function(){return S().interaction});
_.of(B,{visibilityCallback:function(z){if(z){var X;(z=(X=S().interaction)==null?void 0:X.onFirstVisible)&&_.MB(z);var w;if(X=(w=S().adLayoutData)==null?void 0:w.activeViewData)Pe(B,X),_.K("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&ve(B)})}else _.K("stop_av_measurement_on_detach")&&ve(B)},
showOption:_.Wx,hideOption:cx});f={};var g={},b={};return _.T("square-image-layout-view-model",{class:_.Pw("ytwSquareImageLayoutViewModelHost",(f.ytwSquareImageLayoutViewModelHostColumn=G,f)),el:B},_.T("div",{class:_.Pw("ytwSquareImageLayoutViewModelHostImage",(g.ytwSquareImageLayoutViewModelHostColumnImage=G,g))},function(){return _.T(_.xK,{data:function(){return S().adImage}},{adImageViewModel:function(z){return _.T(_.Tu,{data:z.data,
isGridViewEnabled:G,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.T("div",{class:_.Pw("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(b.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=G,b))},_.T(_.xK,{data:function(){return S().feedAdMetadata}},{feedAdMetadataViewModel:gxi}),function(){return _.T(_.xK,{data:function(){return S().adButton}},{adButtonViewModel:function(z){var X={};
return _.T(_.lQ,{data:z.data,className:_.Pw((X.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,X.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=G,X))})}})}()))},"jb"),"square-image-layout-view-model",{props:{data:_.W4}});_.eq(_.oS(function(f){var S=f.data;var B=f.noBottomMargin;var G=f.typographyBump;var g=_.tE("top-landscape-image-layout-view-model");_.K("stop_av_measurement_on_detach")&&_.Ov(function(){ve(g)});
_.K("enable_web_home_top_landscape_image_layout_level_click")&&_.c8(g,function(){return S().interaction},void 0,function(){return!0});
f=function(){return S().interaction};
f!==void 0&&f!==null||_.CL(Error("Kh"));_.of(g,{visibilityCallback:function(F){if(F){var V;(F=(V=S().interaction)==null?void 0:V.onFirstVisible)&&_.MB(F);var J;if(V=(J=S().adLayoutData)==null?void 0:J.activeViewData)Pe(g,V),_.K("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&ve(g)})}else _.K("stop_av_measurement_on_detach")&&ve(g)},
showOption:_.Wx,hideOption:cx});var b=function(){var F,V,J;return(F=_.H(S().thumbnailImage,sQj))==null?void 0:(V=F.background)==null?void 0:(J=V.backgroundImageSource)==null?void 0:J.imageSources};
f=_.m(_.hj(!1,void 0,"GIwTMc"));var z=f.next().value,X=f.next().value,w=function(){return z()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.T("top-landscape-image-layout-view-model",{class:function(){var F;return((F=S().interaction)==null?0:F.onTap)&&_.K("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:g,"on:mouseenter":_.iF(function(){X(!0)}),
"on:mouseleave":_.iF(function(){X(!1)})},_.T("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.T(_.v,{cond:function(){return b()&&b().length>0},
then:function(){return _.T("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.Qj({top:"0","background-image":function(){return"url("+String(b()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.T(_.v,{cond:function(){return!!S().adButtonHoverOverlay},
then:function(){return _.T("div",{class:w},_.T(_.xK,{data:function(){return S().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:u5i}))}}),_.T("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.T(_.xK,{data:function(){return S().thumbnailImage}},{adImageViewModel:function(F){return _.T(_.Tu,{data:F.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.K("enable_web_home_top_landscape_image_layout_level_click")})}})),_.T("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.T(_.f9,{data:{sources:[{clientResource:{imageName:_.K("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.T("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.T(_.xK,{data:function(){return S().feedAdMetadata}},{feedAdMetadataViewModel:function(F){return _.T(gxi,{data:F.data,
noBottomMargin:function(){return B==null?void 0:B()},
listenToTapEvent:function(){return _.K("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return G==null?void 0:G()}})}})))},"kb"),"top-landscape-image-layout-view-model",{props:{data:_.W4,
noBottomMargin:_.W4,typographyBump:_.W4}});_.eq(_.oS(function(f){var S=f.data;var B=f.typographyBump;var G=_.tE("video-display-button-group-layout-view-model");_.of(G,{visibilityCallback:function(g){if(g){var b;(g=(b=S().interaction)==null?void 0:b.onFirstVisible)&&_.MB(g);var z;b=(z=S().adLayoutData)==null?void 0:z.activeViewData;!_.K("ablate_desktop_short_dr_video_ads_components_ui_active_view")&&b&&Pe(G,b)}},
showOption:_.Wx,hideOption:cx});return _.T("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:G},_.T("div",null,_.T(_.xK,{data:function(){return S().videoLockup}},{lockupViewModel:function(g){return _.T(_.Gf,{data:g.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:B})}})))},"lb"),"video-display-button-group-layout-view-model",{props:{data:_.W4,
noBottomMargin:_.W4,typographyBump:_.W4}});_.eq(_.oS(function(f){var S=f.data;var B=f.className;var G=f.typographyBump;var g=_.tE("video-display-compact-button-group-layout-view-model");_.of(g,{visibilityCallback:function(b){if(b){var z;(b=(z=S().interaction)==null?void 0:z.onFirstVisible)&&_.MB(b);var X;(z=(X=S().adLayoutData)==null?void 0:X.activeViewData)&&Pe(g,z)}},
showOption:_.Wx});return _.T("video-display-compact-button-group-layout-view-model",{el:g,class:_.Pw("videoDisplayCompactButtonGroupLayoutViewModelHost",B)},_.T(_.xK,{data:function(){return S().videoLockup}},{lockupViewModel:function(b){return _.T(_.Gf,{data:b.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:G})}}))},"mb"),"video-display-compact-button-group-layout-view-model",{props:{data:_.W4,
className:_.W4,typographyBump:_.W4}});_.eq(_.oS(function(f){var S=f.data;var B=f.typographyBump;var G=_.tE("video-display-full-layout-view-model");_.of(G,{visibilityCallback:function(g){if(g){var b;(g=(b=S().interaction)==null?void 0:b.onFirstVisible)&&_.MB(g);var z;b=(z=S().adLayoutData)==null?void 0:z.activeViewData;!_.K("ablate_desktop_short_dr_video_ads_components_ui_active_view")&&b&&Pe(G,b)}},
showOption:_.Wx,hideOption:cx});return _.T("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:G},_.T("div",null,_.T(_.xK,{data:function(){return S().videoLockup}},{lockupViewModel:function(g){return _.T(_.Gf,{data:g.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:B})}})))},"nb"),"video-display-full-layout-view-model",{props:{data:_.W4,
noBottomMargin:_.W4,typographyBump:_.W4}});_.aFo=_.oS(function(f){var S=f.data;f=_.tE("ad-card-badge-view-model");return _.T("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:f},_.T(_.v,{cond:function(){return S().imageBadge},
then:function(B){return _.T(_.f9,{data:B,alt:""})}}))},"ob");var yIN=_.oS(function(f){var S=f.data;var B=f.customCommandResolver;f=_.tE("carousel-ad-card-image-view-model");_.c8(f,function(){return S().interaction},B);
_.of(f,{visibilityCallback:function(G){var g,b=(g=S().interaction)==null?void 0:g.onFirstVisible;G&&b&&_.MB(b)},
showOption:_.Wx});return _.T("carousel-ad-card-image-view-model",{class:function(){var G;return((G=S().interaction)==null?0:G.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:f,"aria-label":function(){var G,g;return(G=S().interaction)==null?void 0:(g=G.accessibility)==null?void 0:g.label}},_.T(_.xK,{data:function(){return S().adImage}},{adImageViewModel:function(G){return _.T(_.Tu,{data:G.data,
customCommandResolver:B})}}),_.T("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.T(_.xK,{data:function(){return S().badge}},{adCardBadgeViewModel:_.aFo})),_.T(_.Oo,{model:{color:4}}))},"pb");var WVN=_.oS(function(f){var S=_.m(_.hj(0,void 0,"o9Bzd")),B=S.next().value;S.next();var G=S.next().value,g=_.m(_.hj(!1,void 0,"KLdzYe"));S=g.next().value;var b=g.next().value,z;_.Ov(function(){clearTimeout(z)});
g=_.iF(function(){var F;((F=f.animate)==null?0:F.call(f))?(b(!0),z=setTimeout(function(){b(!1);X()},200)):X();
return!1});
var X=function(){G(function(F){return(F+f.numShownItems())%f.data().length})},w={};
return _.T("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.T("div",{class:_.Pw("ytwHorizontalCarouselCarouselWrapper")},_.T("div",{class:_.Pw("ytwHorizontalCarouselCarouselInnerWrapper",(w.ytwHorizontalCarouselAnimating=S,w))},_.T(_.dg,{each:f.data,keyBy:"INDEX"},function(F,V){return _.T("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.Qj({"flex-basis":function(){return"calc((100% - (8px * "+(f.numShownItems()-1)+")) / "+f.numShownItems()+")"},
order:function(){var J=V-B();J<0&&(J+=f.data().length);return J}})},f.children(F,V))}))),_.T("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":g},f.nextButton()))},"qb");var cI$=_.oS(function(f){var S=f.data;var B=f.customCommandResolver;var G=f.expansive;f=_.tE("carousel-ad-card-collection-view-model");_.of(f,{visibilityCallback:function(g){var b,z=(b=S().interaction)==null?void 0:b.onFirstVisible;g&&z&&_.MB(z)},
showOption:_.Wx});return _.T("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:f},_.T(WVN,{data:function(){var g;return((g=S())==null?void 0:g.carouselAdCards)||[]},
nextButton:function(){return _.T(_.xK,{data:function(){return S().nextButton}},{buttonViewModel:function(g){var b=g.data;
return _.T(_.I8,{data:function(){return(G==null?0:G())?Object.assign({},b(),{style:"mono"}):b()},
className:_.K("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(g){return _.T(_.xK,{data:g},{carouselAdCardImageViewModel:function(b){return _.T(yIN,{data:b.data,customCommandResolver:B})}})}))},"rb");var lF$=_.oS(function(f){var S=f.data;var B=f.customCommandResolver;var G=f.className;var g=f.buttonClassName;var b=f.animationEntityKey;var z=f.expansive;return _.T("carousel-button-view-model",{class:_.Pw("ytwCarouselButtonViewModelHost",G)},_.T(_.xK,{data:function(){return S().carousel}},{carouselAdCardCollectionViewModel:function(X){return _.T(cI$,{data:X.data,
customCommandResolver:B,expansive:z})}}),_.T(_.xK,{data:function(){return S().button}},{adButtonViewModel:function(X){var w=X.data;
return _.T(_.lQ,{data:function(){return(z==null?0:z())?Object.assign({},w(),{style:"AD_BUTTON_STYLE_TONAL"}):w()},
className:g,customCommandResolver:B,animationEntityKey:b})}}))},"sb");_.fOX=_.oS(function(f){var S=f.data;f=f.className;var B=_.tE("pivot-button-view-model");_.j9(function(){var G;((G=S())==null?0:G.backgroundColor)&&B.value.setAttribute("data-background-color",String(S().backgroundColor))});
return _.T("pivot-button-view-model",{el:B,class:_.Pw("ytwPivotButtonViewModelHost",f)},_.T(_.XD,{command:function(){var G=S();G=G.onClickCommand?_.CH(G.onClickCommand):G.contentDescription?_.oe(G.contentDescription):void 0;return G},
ariaLabel:function(){return S().contentDescription}},_.T(_.v,{cond:function(){return S().thumbnail},
then:function(G){return _.T(_.f9,{data:G,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.T(_.v,{cond:function(){return S().icon},
then:function(G){return _.T(_.Y8,{icon:function(){return G().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"tb");_.oSL=_.oS(function(f){var S=f.data;var B=f.buttonShapeOverrideables;return _.T("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.T(_.xK,{data:function(){return S().buttonViewModels}},{buttonViewModel:function(G){return _.T(_.I8,{data:G.data,
buttonOverrides:B})},
likeButtonViewModel:function(G){return _.T(_.jG,{data:G.data,buttonShapeOverrideables:B})},
dislikeButtonViewModel:function(G){return _.T(_.rE,{data:G.data,buttonShapeOverrideables:B})},
toggleButtonViewModel:function(G){return _.T(_.ER,{data:G.data,buttonShapeOverrides:B})}}))},"ub");var SD6=_.oS(function(f){var S=f.avatar;var B=f.headline;var G=f.badge;var g=f.description;var b=f.expansive;f={};return _.T("yt-ad-metadata-shape",{class:_.Pw("ytAdMetadataShapeHost",(f.ytAdMetadataShapeHostLarge=b,f))},_.T("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.T(_.v,{cond:S,then:function(z){return _.T(_.oxL,{data:function(){return(b==null?0:b())?Object.assign({},z(),{size:"AD_AVATAR_SIZE_MPLUS"}):z()}})}}),_.T("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.T(_.oY,{text:B,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.T(_.v,{cond:G,then:function(z){return _.T(_.Sc,{data:function(){return(b==null?0:b())?Object.assign({},z(),{style:"AD_BADGE_STYLE_STARK"}):z()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.T("h2",{class:"ytAdMetadataShapeHostDescription"},_.T(_.oY,{text:g,
linkInheritColor:!0})))},"vb");var BfX=_.oS(function(f){var S=f.data;var B=f.onShow;var G=f.expansive;f=_.tE("reels-ad-card-buttoned-view-model");_.c8(f,function(){return S().interaction});
_.j9(function(){var b,z=(b=S().animatedRenderingConfig)==null?void 0:b.delayedSecondsToVisible;if(z){var X=setTimeout(B,z*1E3);_.Ov(function(){clearTimeout(X)})}});
var g={};return _.T("reels-ad-card-buttoned-view-model",{class:_.Pw(function(){var b;return((b=S().interaction)==null?0:b.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(g.ytwReelsAdCardButtonedViewModelHostExpansive=G,g)),
el:f},_.T(SD6,{avatar:function(){return _.H(S().avatar,kqj)},
headline:function(){return S().headline},
badge:function(){return _.H(S().adBadge,njv)},
description:function(){return S().description},
expansive:G}),_.T(_.xK,{data:function(){return S().ctaButton}},{adButtonViewModel:function(b){var z=b.data;
return _.T(_.lQ,{data:function(){return(G==null?0:G())?Object.assign({},z(),{style:"AD_BUTTON_STYLE_FILLED"}):z()}})}}))},"wb");var GOo=_.oS(function(f){var S=f.data;f=f.expansive;var B=_.tE("reels-ad-metadata-view-model");_.K("web_ad_metadata_clickable")&&_.c8(B,function(){return S().interaction});
var G={};G=_.K9("ytwReelsAdMetadataViewModelHost",(G.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.K("web_ad_metadata_clickable"),G));return _.T("reels-ad-metadata-view-model",{class:G,el:B},_.T(SD6,{avatar:function(){return _.H(S().avatar,kqj)},
headline:function(){return S().headline},
badge:function(){return _.H(S().adBadge,njv)},
description:function(){return S().description},
expansive:f}))},"xb");var gS8={iconPosition:"icon-with-label",size:"L"},el$=_.oS(function(f){var S=f.data;var B=f.overlayDensity;f=_.tE("reels-player-overlay-layout-view-model");var G=_.cF(B,0),g=function(){var J;return(J=S().reelsAdCardButtonedEntityKey)!=null?J:""},b=function(){return g()+"/ad_button"},z=_.v8(P7V,g),X=function(){var J,P;
return(P=(J=z())==null?void 0:J.value)!=null?P:!1},w=_.Uo(QEV),F=function(){return Object.assign({},gS8,(w()||G()===2)&&{style:"overlay-dark"})};
B={};var V={};return _.T("reels-player-overlay-layout-view-model",{class:_.Pw("ytwReelsPlayerOverlayLayoutViewModelHost",(B.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!S().extension},B.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},B)),
"overlay-density":function(){return String(G())},
el:f},_.T("div",{class:_.Pw("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(V.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},V))},_.T("div",{"aria-hidden":function(){return X()},
class:_.Pw("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return X()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.Qj({"transition-duration":function(){return jEM(S())}})},_.T(_.xK,{data:function(){return S().adMetadata}},{reelsAdMetadataViewModel:function(J){return _.T(GOo,{data:J.data,
expansive:function(){return G()===1}})}}),_.T(_.v,{cond:function(){return S().extension},
then:function(J){return _.T("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.T(_.xK,{data:J},{adButtonViewModel:function(P){return _.T(_.lQ,{data:P.data,animationEntityKey:b,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(P){return _.T(lF$,{data:P.data,animationEntityKey:b,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return G()===1}})}}))}})),_.T("div",{"aria-hidden":function(){return!X()},
class:_.Pw("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return X()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.Qj({"transition-duration":function(){return jEM(S())}})},_.T(_.xK,{data:function(){return S().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(J){return _.T(BfX,{data:J.data,
onShow:function(){_.WF(_.KF("booleanEntity",g(),{key:g(),value:!0}))},
expansive:function(){return G()===1}})}}))),_.T("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.T(_.xK,{data:function(){return S().actions}},{reelActionBarViewModel:function(J){return _.T(_.oSL,{data:J.data,
buttonShapeOverrideables:F})}}),_.T(_.xK,{data:function(){return S().menu}},{buttonViewModel:function(J){return _.T(_.I8,{data:J.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},F(),{type:"tonal"})}})}}),_.T(_.xK,{data:function(){return S().pivotButton}},{pivotButtonViewModel:function(J){return _.T(_.fOX,{data:J.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"yb");_.eq(el$,"reels-player-overlay-layout-view-model",{props:{data:_.W4,overlayDensity:_.W4}});var Ff=function(){var f=_.I.apply(this,arguments)||this;f.noBottomMargin=!1;f.overlayDensity=0;return f};
_.q(Ff,_.I);_.e=Ff.prototype;
_.e.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.K("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]]"}}}}}};
_.e.ready=function(){var f=this;tBW(function(){f.isAttached&&zN(f.JSC$13479_storedAdSlotMetadata,f.JSC$13479_storedAdLayoutMetadata,f.adSlotMetadata,f.adLayoutMetadata)&&hS(Xf(),f.JSC$13479_storedAdSlotMetadata,f.JSC$13479_storedAdLayoutMetadata)})};
_.e.attached=function(){zN(this.JSC$13479_storedAdSlotMetadata,this.JSC$13479_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&t$o(Xf(),this.JSC$13479_storedAdSlotMetadata,this.JSC$13479_storedAdLayoutMetadata)};
_.e.detached=function(){zN(this.JSC$13479_storedAdSlotMetadata,this.JSC$13479_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&hS(Xf(),this.JSC$13479_storedAdSlotMetadata,this.JSC$13479_storedAdLayoutMetadata)};
_.e.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.e.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13479_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13479_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13479_storedAdLayoutMetadata!==void 0&&this.JSC$13479_storedAdSlotMetadata!==void 0&&hS(Xf(),this.JSC$13479_storedAdSlotMetadata,this.JSC$13479_storedAdLayoutMetadata),t$o(Xf(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13479_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13479_storedAdSlotMetadata=this.adSlotMetadata)};
_.y3.Object.defineProperties(Ff.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.adLayoutMetadata}}});
Ff.prototype.onAdMetadataChanged=Ff.prototype.onAdMetadataChanged;Ff.prototype.onTypographyBumpChanged=Ff.prototype.onTypographyBumpChanged;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Ff.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Ff.prototype,"rendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Ff.prototype,"ytComponentBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],Ff.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],Ff.prototype,"noBottomMargin",void 0);_.N([_.n(),_.Z("design:type",Object)],Ff.prototype,"overlayDensity",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],Ff.prototype,"typographyBump",void 0);_.N([_.k("data.adLayoutMetadata"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ff.prototype,"adLayoutMetadata",null);_.N([_.n(),_.Z("design:type",Object)],Ff.prototype,"adSlotMetadata",void 0);
_.N([_.vF("ytd-video-display-full-buttoned-and-button-group-renderer"),_.Z("design:type",HTMLElement)],Ff.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.N([_.JO("typographyBump"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ff.prototype,"onTypographyBumpChanged",null);_.N([_.JO("adLayoutMetadata","adSlotMetadata"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ff.prototype,"onAdMetadataChanged",null);
_.N([_.C({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],Ff);
_.p(Ff,"ytd-in-feed-ad-layout-renderer",function(){if(Wev!==void 0)return Wev;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return Wev=f},
{mode:_.X_("kevlar_poly_si_batch_j028")?1:2});var bUm;var mZo;var VF=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return f};
_.q(VF,_.I);_.e=VF.prototype;_.e.computeHasLiveDescription=function(f){return!(f==null||!f.liveDescription)};
_.e.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.e.onYtToggleButton=function(f){var S,B=(S=this.data)==null?void 0:S.videoReminderEntityKey;B&&this.ytdReduxBehavior.dispatch(_.KF("upcomingEventReminderStateEntity",B,{key:B,state:f.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.e.attached=function(){this.updateChannelBanner()};
_.e.dataChanged=function(){this.updateChannelBanner()};
_.e.videoReminderStateChanged=function(){var f;this.videoReminderState&&_.H((f=this.data)==null?void 0:f.cta,_.U2)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.e.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var f=_.bF(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);f&&(f.startsWith("//")&&(f="https:"+f),this.hostElement.classList.add("channel-banner"),_.hO(this.hostElement,{"--ytvmh-channel-banner":"url("+f+")"}))}else _.K("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.e.onPlayerReady=function(){this.onIronResize()};
_.e.maybeFlushDebouncer=function(){_.K("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(f){var S;f=(S=f.getElementsByTagName("yt-attributed-string"))==null?void 0:S[0];VcN(f==null?void 0:f.polymerController)})};
_.e.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var f=_.m9(this.hostElement).querySelector("#live-description"),S;f&&((S=this.data)==null?0:S.shortLiveDescription)&&f.clientWidth<f.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
VF.prototype.onIronResize=VF.prototype.onIronResize;VF.prototype.videoReminderStateChanged=VF.prototype.videoReminderStateChanged;VF.prototype.dataChanged=VF.prototype.dataChanged;VF.prototype.onYtToggleButton=VF.prototype.onYtToggleButton;_.N([_.r(_.Ld),_.Z("design:type",Object)],VF.prototype,"ironResizableBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],VF.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],VF.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],VF.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],VF.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],VF.prototype,"data",void 0);_.N([_.n({selectorArgs:["data.videoReminderEntityKey"],selector:JuK}),_.Z("design:type",Object)],VF.prototype,"videoReminderState",void 0);
_.N([_.n({reflectToAttribute:!0,value:_.K("web_modern_buttons")}),_.Z("design:type",Boolean)],VF.prototype,"rounded",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.Z("design:type",Boolean)],VF.prototype,"hasLiveDescription",void 0);_.N([_.n({reflectToAttribute:!0,value:_.K("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.Z("design:type",Boolean)],VF.prototype,"resizableAdBannerSafariFix",void 0);
_.N([_.n({reflectToAttribute:!0,value:_.K("align_three_dot_menu_with_title_description")}),_.Z("design:type",Boolean)],VF.prototype,"menuFix",void 0);_.N([_.KP("yt-formatted-string"),_.Z("design:type",Array)],VF.prototype,"formattedStrings",void 0);_.N([_.vF("#cta-button"),_.Z("design:type",HTMLElement)],VF.prototype,"ctaButton",void 0);_.N([_.Vg("yt-toggle-button"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],VF.prototype,"onYtToggleButton",null);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],VF.prototype,"dataChanged",null);_.N([_.JO("videoReminderState"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],VF.prototype,"videoReminderStateChanged",null);_.N([_.Vg("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],VF.prototype,"onIronResize",null);
_.N([_.C({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],VF);
_.p(VF,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(mZo!==void 0)return mZo;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return mZo=f},{mode:1});var zlN;var JS=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};f.isLocked=!1;return f};
_.q(JS,_.I);_.e=JS.prototype;_.e.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.e.onExpandedChanged=function(){this.expanded&&_.mU(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.e.onMouseOver=function(){this.maybeExpand()};
_.e.onTap=function(){this.maybeExpand()};
_.e.onExpandableTileExpanding=function(f){f!==this&&(this.expanded=!1)};
_.e.onExpandableTileLockAndCollapse=function(f){this.isLocked=!0;f!==this&&(this.expanded=!1)};
_.e.onExpandableTileUnlock=function(){this.isLocked=!1};
JS.prototype.onTap=JS.prototype.onTap;JS.prototype.onMouseOver=JS.prototype.onMouseOver;JS.prototype.onExpandedChanged=JS.prototype.onExpandedChanged;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],JS.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],JS.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],JS.prototype,"data",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],JS.prototype,"expanded",void 0);_.N([_.HF("expanded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],JS.prototype,"onExpandedChanged",null);_.N([_.Vg("mouseover"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],JS.prototype,"onMouseOver",null);_.N([_.Vg("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],JS.prototype,"onTap",null);
_.N([_.C({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],JS);
_.p(JS,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(zlN!==void 0)return zlN;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return zlN=f},{mode:1});var Rl1;var PH=function(){var f=_.I.apply(this,arguments)||this;f.buttonOverrides={style:"overlay"};f.useYtdPlayer=_.K("use_ytd_player_for_desktop_masthead");f.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};f.playbackFinished=!1;f.JSC$13491_playerManager=null;f.JSC$13491_mastheadCounter=new kTo;return f};
_.q(PH,_.I);_.e=PH.prototype;_.e.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"}}}};
_.e.created=function(){this.JSC$13491_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$13491_playerManager=new jj)};
_.e.ready=function(){var f=this;this.JSC$13491_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var S=_.m9(this.hostElement).querySelector("#player");this.useYtdPlayer?S.style.display="none":(this.ytdPlayer.style.display="none",vM6(this.JSC$13491_playerManager,S,function(){f.onPlaybackEnded()}),_.m9(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var B;
((B=f.data)==null?0:B.navigationEndpoint)&&_.ew(f.hostElement,"yt-navigate",{endpoint:f.data.navigationEndpoint})}))};
_.e.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$13491_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.e.attached=function(){var f=this;_.AO(function(){f.maybePlayVideo()})};
_.e.maybePlayVideo=function(){var f=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$13491_playerManager.playVideo(),this.getPlayerPromise().then(function(){f.JSC$13491_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.e.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13491_playerManager.stopVideo()};
_.e.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var f,S={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((f=this.data.playbackStartMs)!=null?f:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(S);this.setupYtdPlayer()}else dyN(this.JSC$13491_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(K_X(this.JSC$13491_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.e.getPlayerPromise=function(){return this.JSC$13491_playerManager.getPlayerPromise()};
_.e.onYtToggleButton=function(f){this.useYtdPlayer?this.toggleMute(f.detail.toggled):f.detail.toggled?this.JSC$13491_playerManager.mute():this.JSC$13491_playerManager.unMute()};
_.e.onYtNavigate=function(f){var S=z9G(f.detail.endpoint),B=R9M(this.data.clickthroughReportingData);S&&B&&(f.detail.endpoint.watchEndpoint?f.detail.tempData=B:_.WZ(S,B,30))};
_.e.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.e.onExpandedChanged=function(){this.expanded?(_.mU(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.e.onMouseOver=function(){this.maybeExpand()};
_.e.onTap=function(){this.maybeExpand()};
_.e.onExpandableTileExpanding=function(f){f!==this&&(this.stopVideo(),this.expanded=!1)};
_.e.onExpandableTileLockAndCollapse=function(f){f!==this&&(this.isLocked=!0,this.expanded=!1)};
_.e.onExpandableTileUnlock=function(){this.isLocked=!1};
_.e.lockAndCollapseExpandableTiles=function(){_.bW(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.e.unlockExpandableTiles=function(){_.bW(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.e.setupYtdPlayer=function(){var f=this,S;return _.R(function(B){if(B.nextAddress==1)return _.h(B,f.ytdPlayer.getPlayerPromise(),2);S=B.yieldResult;S.addEventListener("onStateChange",function(G){f.onPlayerStateChange(G)});
S.addEventListener("onCueRangeExit",function(G){f.onCueRangeExit(G)});
_.TT(B)})};
_.e.onPlayerStateChange=function(f){if(f===1&&(f=this.ytdPlayer.getPlayer())){var S=f.getCurrentTime(),B,G,g=S+((G=(B=this.data)==null?void 0:B.playbackDurationMs)!=null?G:0)/1E3;f.addCueRange("playback",S,g);this.JSC$13491_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.e.onCueRangeExit=function(f){f==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.e.toggleMute=function(f){var S=this,B;return _.R(function(G){if(G.nextAddress==1)return _.h(G,S.ytdPlayer.getPlayerPromise(),2);B=G.yieldResult;f?B.mute():B.unMute();_.TT(G)})};
PH.prototype.onTap=PH.prototype.onTap;PH.prototype.onMouseOver=PH.prototype.onMouseOver;PH.prototype.onExpandedChanged=PH.prototype.onExpandedChanged;PH.prototype.onYtNavigate=PH.prototype.onYtNavigate;PH.prototype.onYtToggleButton=PH.prototype.onYtToggleButton;PH.prototype.dataChanged=PH.prototype.dataChanged;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],PH.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],PH.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],PH.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],PH.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],PH.prototype,"expanded",void 0);_.N([_.n(),_.Z("design:type",Object)],PH.prototype,"buttonOverrides",void 0);
_.N([_.n(),_.Z("design:type",Object)],PH.prototype,"useYtdPlayer",void 0);_.N([_.vF("#ytd-player"),_.Z("design:type",Object)],PH.prototype,"ytdPlayer",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],PH.prototype,"dataChanged",null);_.N([_.Vg("yt-toggle-button"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],PH.prototype,"onYtToggleButton",null);
_.N([_.Vg("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],PH.prototype,"onYtNavigate",null);_.N([_.HF("expanded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],PH.prototype,"onExpandedChanged",null);_.N([_.Vg("mouseover"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],PH.prototype,"onMouseOver",null);
_.N([_.Vg("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],PH.prototype,"onTap",null);_.N([_.C({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],PH);
_.p(PH,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(Rl1!==void 0)return Rl1;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Rl1=f},{mode:1});var Xa6;var vH=function(){return _.I.apply(this,arguments)||this};
_.q(vH,_.I);vH.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
vH.prototype.onShow=function(){var f=_.m9(this.hostElement).querySelector("#live-description"),S;f&&((S=this.data)==null?0:S.shortLiveDescription)&&f.clientWidth<f.scrollWidth&&this.hostElement.classList.add("short-live-description")};
vH.prototype.onYtToggleButton=function(f){var S,B=(S=this.data)==null?void 0:S.videoReminderEntityKey;B&&this.ytdReduxBehavior.dispatch(_.KF("upcomingEventReminderStateEntity",B,{key:B,state:f.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
vH.prototype.videoReminderStateChanged=function(){var f;this.videoReminderState&&_.H((f=this.data)==null?void 0:f.cta,_.U2)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
vH.prototype.videoReminderStateChanged=vH.prototype.videoReminderStateChanged;vH.prototype.onYtToggleButton=vH.prototype.onYtToggleButton;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],vH.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],vH.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],vH.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],vH.prototype,"data",void 0);
_.N([_.n({selectorArgs:["data.videoReminderEntityKey"],selector:JuK}),_.Z("design:type",Object)],vH.prototype,"videoReminderState",void 0);_.N([_.Vg("yt-toggle-button"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],vH.prototype,"onYtToggleButton",null);_.N([_.JO("videoReminderState"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vH.prototype,"videoReminderStateChanged",null);
_.N([_.C({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],vH);
_.p(vH,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(Xa6!==void 0)return Xa6;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Xa6=f},{mode:_.X_("kevlar_poly_si_batch_j065")?1:2});var wa6;var KI=function(){var f=_.I.apply(this,arguments)||this;f.useYtdPlayer=_.K("use_ytd_player_for_desktop_masthead");f.buttonOverrides={style:"overlay"};f.JSC$13499_playerManager=null;f.JSC$13499_mastheadCounter=new kTo;f.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return f};
_.q(KI,_.I);_.e=KI.prototype;_.e.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"}}}};
_.e.created=function(){this.JSC$13499_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$13499_playerManager=new jj)};
_.e.ready=function(){var f=this;this.JSC$13499_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var S;(S=this.embeddedPlayer)==null||S.remove()}else{var B;(B=this.ytdPlayer)==null||B.remove();vM6(this.JSC$13499_playerManager,this.embeddedPlayer,function(){f.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){f.data&&f.data.navigationEndpoint&&_.ew(f.hostElement,"yt-navigate",{endpoint:f.data.navigationEndpoint})})}};
_.e.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$13499_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.e.dataChanged=function(){var f=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var S=!this.data.disableAutoPlayback,B,G={autoplay:S,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((B=this.data.playbackStartMs)!=null?B:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(S?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(G);this.setupYtdPlayer()}else dyN(this.JSC$13499_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(K_X(this.JSC$13499_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$13499_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.bW(f.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");f.JSC$13499_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.e.getPlayerPromise=function(){return this.JSC$13499_playerManager.getPlayerPromise()};
_.e.onYtToggleButton=function(f){this.useYtdPlayer?this.toggleMute(f.detail.toggled):f.detail.toggled?this.JSC$13499_playerManager.mute():this.JSC$13499_playerManager.unMute()};
_.e.onYtNavigate=function(f){var S=z9G(f.detail.endpoint),B=R9M(this.data.clickthroughReportingData);S&&B&&(f.detail.endpoint.watchEndpoint?f.detail.tempData=B:_.WZ(S,B,30))};
_.e.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13499_playerManager.stopVideo()};
_.e.setupYtdPlayer=function(){var f=this,S;return _.R(function(B){if(B.nextAddress==1)return _.h(B,f.ytdPlayer.getPlayerPromise(),2);S=B.yieldResult;S.addEventListener("onStateChange",function(G){f.onPlayerStateChange(G)});
S.addEventListener("onCueRangeExit",function(G){f.onCueRangeExit(G)});
_.TT(B)})};
_.e.onPlayerStateChange=function(f){if(f===1&&(f=this.ytdPlayer.getPlayer())){var S=f.getCurrentTime(),B,G,g=S+((G=(B=this.data)==null?void 0:B.playbackDurationMs)!=null?G:0)/1E3;f.addCueRange("playback",S,g);_.bW(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$13499_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.e.onCueRangeExit=function(f){f==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.e.toggleMute=function(f){var S=this,B;return _.R(function(G){if(G.nextAddress==1)return _.h(G,S.ytdPlayer.getPlayerPromise(),2);B=G.yieldResult;f?B.mute():B.unMute();_.TT(G)})};
_.y3.Object.defineProperties(KI.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var f,S;if(!((f=this.data)==null?0:(S=f.accessibilityData)==null?0:S.label))return"Ad primary link";var B,G;return _.Jf("AD_TITLE",{title:(B=this.data)==null?void 0:(G=B.accessibilityData)==null?void 0:G.label})}}});
KI.prototype.onYtMastheadHidden=KI.prototype.onYtMastheadHidden;KI.prototype.onYtNavigate=KI.prototype.onYtNavigate;KI.prototype.onYtToggleButton=KI.prototype.onYtToggleButton;KI.prototype.dataChanged=KI.prototype.dataChanged;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],KI.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],KI.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],KI.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],KI.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],KI.prototype,"useYtdPlayer",void 0);_.N([_.vF("ytd-toggle-button-renderer"),_.Z("design:type",Object)],KI.prototype,"muteButton",void 0);_.N([_.n(),_.Z("design:type",Object)],KI.prototype,"buttonOverrides",void 0);
_.N([_.k("data.accessibilityData.label"),_.Z("design:type",String),_.Z("design:paramtypes",[])],KI.prototype,"titleAriaLabel",null);_.N([_.vF("#replay-button"),_.Z("design:type",Object)],KI.prototype,"replayButton",void 0);_.N([_.vF("#player-container"),_.Z("design:type",Object)],KI.prototype,"playerContainer",void 0);_.N([_.vF("#player"),_.Z("design:type",Object)],KI.prototype,"embeddedPlayer",void 0);_.N([_.vF("#ytd-player"),_.Z("design:type",Object)],KI.prototype,"ytdPlayer",void 0);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],KI.prototype,"dataChanged",null);_.N([_.Vg("yt-toggle-button"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],KI.prototype,"onYtToggleButton",null);_.N([_.Vg("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],KI.prototype,"onYtNavigate",null);
_.N([_.Vg("yt-masthead-hidden"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],KI.prototype,"onYtMastheadHidden",null);_.N([_.C({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],KI);
_.p(KI,"ytd-video-masthead-ad-primary-video-renderer",function(){if(wa6!==void 0)return wa6;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return wa6=f},{mode:2});var hl1;var dM=function(){var f=_.I.apply(this,arguments)||this;f.collapsed=!1;f.impressionResolver=_.aa();f.JSC$13503_activeViewMeasurementDataResolver=_.aa();f.actionMap={"yt-mute-ad-action":"handleMuteAd"};return f};
_.q(dM,_.I);_.e=dM.prototype;_.e.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"}}}};
_.e.ready=function(){var f=this;_.m9(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){f.expandAd()});
this.hostElement.addEventListener("yt-action",function(S){if(S.detail.actionName==="yt-service-request"){var B=S.detail.args[1];B.videoMastheadAdMuteCommand&&(f.collapseAd(B.videoMastheadAdMuteCommand.encryptedMastheadId),S.stopPropagation())}})};
_.e.attached=function(){var f=this;_.AO(function(){f.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(S){if(!f.collapsed){S=_.m(S);for(var B=S.next();!B.done;B=S.next())B=B.value,Ay(B.baseUrl,B.attributionSrcMode);f.data.impressionCommand=void 0}});
this.JSC$13503_activeViewMeasurementDataResolver.promise.then(function(S){f.ytdActiveViewBehavior.enableActiveViewMeasurement(S,15)});
_.K("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&f.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.e.dataChanged=function(){var f;((f=this.data.impressionCommand)==null?0:f.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var S;((S=this.data)==null?0:S.activeView)&&this.JSC$13503_activeViewMeasurementDataResolver.resolve(this.data.activeView);(f=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(f.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.e.computeWidescreen=function(f){var S;return!!(f&&((S=_.H(f,jQo))==null?0:S.isWidescreen))};
_.e.computeExpandable=function(f){return!!(f&&f.length>0)};
_.e.onIronResize=function(){if(this.expandable){var f=_.m9(this.hostElement).querySelector("#expandable-tile-container :first-child");f&&!f.expanded&&(f.expanded=!0)}};
_.e.handleMuteAd=function(){this.collapseAd(null)};
_.e.restoreCollapsedState=function(f){this.collapsed=_.K2().get("HIDDEN_MASTHEAD_ID")===f};
_.e.collapseAd=function(f){if(f){var S=_.K2();S.set("HIDDEN_MASTHEAD_ID",f);S.save()}(f=_.m9(this.hostElement).querySelector("#video"))&&_.ew(f,"yt-masthead-hidden");this.collapsed=!0};
_.e.expandAd=function(){var f=_.K2();f.set("HIDDEN_MASTHEAD_ID",!1);f.save();location.reload()};
_.e.detached=function(){_.K("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
dM.prototype.onIronResize=dM.prototype.onIronResize;dM.prototype.dataChanged=dM.prototype.dataChanged;_.N([_.r(_.Ld),_.Z("design:type",Object)],dM.prototype,"ironResizableBehavior",void 0);_.N([_.r(xP),_.Z("design:type",Object)],dM.prototype,"ytdActiveViewBehavior",void 0);_.N([_.r(_.sk),_.Z("design:type",Object)],dM.prototype,"ytdGridStateAwareBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],dM.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],dM.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],dM.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],dM.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.Z("design:type",Boolean)],dM.prototype,"widescreen",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.Z("design:type",Boolean)],dM.prototype,"expandable",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],dM.prototype,"collapsed",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],dM.prototype,"dataChanged",null);
_.N([_.Vg("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],dM.prototype,"onIronResize",null);_.N([_.C({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],dM);
_.p(dM,"ytd-video-masthead-ad-v3-renderer",function(){if(hl1!==void 0)return hl1;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return hl1=f},{mode:2});var ic=function(){return _.I.apply(this,arguments)||this};
_.q(ic,_.I);_.e=ic.prototype;_.e.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.e.ready=function(){var f=this;tBW(function(){f.isAttached&&zN(f.JSC$13508_storedAdSlotMetadata,f.JSC$13508_storedAdLayoutMetadata,f.adSlotMetadata,f.adLayoutMetadata)&&hS(Xf(),f.JSC$13508_storedAdSlotMetadata,f.JSC$13508_storedAdLayoutMetadata)})};
_.e.attached=function(){zN(this.JSC$13508_storedAdSlotMetadata,this.JSC$13508_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&t$o(Xf(),this.JSC$13508_storedAdSlotMetadata,this.JSC$13508_storedAdLayoutMetadata)};
_.e.detached=function(){zN(this.JSC$13508_storedAdSlotMetadata,this.JSC$13508_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&hS(Xf(),this.JSC$13508_storedAdSlotMetadata,this.JSC$13508_storedAdLayoutMetadata)};
_.e.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13508_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13508_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13508_storedAdLayoutMetadata!==void 0&&this.JSC$13508_storedAdSlotMetadata!==void 0&&hS(Xf(),this.JSC$13508_storedAdSlotMetadata,this.JSC$13508_storedAdLayoutMetadata),t$o(Xf(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13508_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13508_storedAdSlotMetadata=this.adSlotMetadata)};
_.y3.Object.defineProperties(ic.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.adLayoutMetadata}}});
ic.prototype.onAdMetadataChanged=ic.prototype.onAdMetadataChanged;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],ic.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],ic.prototype,"ytComponentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],ic.prototype,"data",void 0);_.N([_.k("data.adLayoutMetadata"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ic.prototype,"adLayoutMetadata",null);
_.N([_.n(),_.Z("design:type",Object)],ic.prototype,"adSlotMetadata",void 0);_.N([_.JO("adLayoutMetadata","adSlotMetadata"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ic.prototype,"onAdMetadataChanged",null);_.N([_.C({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],ic);
_.p(ic,"ytd-page-top-ad-layout-renderer",function(){if(bUm!==void 0)return bUm;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return bUm=
f},{mode:_.X_("kevlar_poly_si_batch_j070")?1:2});var Tfg;var HH=function(){var f=_.I.apply(this,arguments)||this;f.noBottomMargin=!1;f.overlayDensity=0;f.typographyBump=!1;return f};
_.q(HH,_.I);_.e=HH.prototype;
_.e.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]]"}}}}}};
_.e.ready=function(){var f=this;tBW(function(){f.isAttached&&f.adSlotMetadata&&Z6$(Xf(),f.adSlotMetadata)})};
_.e.attached=function(){if(this.adSlotMetadata){var f;if(this.adSlotMetadata===((f=this.data)==null?void 0:f.adSlotMetadata))M$7(Xf(),this.adSlotMetadata);else{var S;_.Lg(Error("Lh`"+this.adSlotMetadata+"`"+((S=this.data)==null?void 0:S.adSlotMetadata)))}}};
_.e.detached=function(){this.adSlotMetadata&&Z6$(Xf(),this.adSlotMetadata)};
_.e.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.e.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&Z6$(Xf(),this.adSlotMetadata),M$7(Xf(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.y3.Object.defineProperties(HH.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var f,S,B=_.H((f=this.data)==null?void 0:(S=f.fulfillmentContent)==null?void 0:S.fulfilledLayout,_.x_g),G;return(f=(G=_.H(B==null?void 0:B.renderingContent,Oz1))==null?void 0:G.layout)?f.toLowerCase().replace(/_/g,"-"):""}}});
HH.prototype.onAdSlotMetadataChanged=HH.prototype.onAdSlotMetadataChanged;HH.prototype.onTypographyBumpChanged=HH.prototype.onTypographyBumpChanged;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],HH.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],HH.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],HH.prototype,"rendererBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],HH.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],HH.prototype,"noBottomMargin",void 0);_.N([_.n(),_.Z("design:type",Object)],HH.prototype,"overlayDensity",void 0);_.N([_.n(),_.Z("design:type",Object)],HH.prototype,"typographyBump",void 0);_.N([_.vF("ytd-in-feed-ad-layout-renderer"),_.Z("design:type",HTMLElement)],HH.prototype,"inFeedAdLayoutRenderer",void 0);
_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",String),_.Z("design:paramtypes",[])],HH.prototype,"layout",null);_.N([_.JO("typographyBump"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],HH.prototype,"onTypographyBumpChanged",null);_.N([_.JO("data.adSlotMetadata"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],HH.prototype,"onAdSlotMetadataChanged",null);
_.N([_.C({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],HH);
_.p(HH,"ytd-ad-slot-renderer",function(){if(Tfg!==void 0)return Tfg;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return Tfg=f},{mode:_.X_("kevlar_poly_si_batch_j077")?
1:2});var Flm;var qS=function(){return _.I.apply(this,arguments)||this};
_.q(qS,_.I);_.e=qS.prototype;_.e.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"}}}};
_.e.maybeComputeHref=function(f){return _.K("enable_handle_watch_endpoint_click_for_vdc")?null:this.ytComponentBehavior.computeOptionalHref_(f)};
_.e.onTap=function(){_.K("enable_handle_watch_endpoint_click_for_vdc")||this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&SEV(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.e.onThumbnailContainerClick=function(f){this.onClick(f)};
_.e.onClick=function(f){if(_.K("enable_handle_watch_endpoint_click_for_vdc")){var S,B=(S=this.data)==null?void 0:S.navigationEndpoint;B&&_.H(B,_.t2)&&(this.ytSparklesClickLocationBehavior.handleClick(B,f,!1),f.stopPropagation())}};
_.e.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var f=_.m(this.data.impressionUrls),S=f.next();!S.done;S=f.next())S=S.value,wtj(S,T3G(S));this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);_.K("enable_handle_watch_endpoint_click_for_vdc")&&(this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",qS.JSC$13516_DEFAULT_CLICK_LOCATION_BEHAVIOR,qS.JSC$13516_CLICK_LOCATION_ID_MAP),this.thumbnail&&(f=this.thumbnail.getElementsByTagName("a"),
f.length>0&&(f=f.namedItem("thumbnail"))&&f.removeAttribute("href")))}};
_.e.attached=function(){var f=this;_.K("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&f.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.e.detached=function(){_.K("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.y3.Object.defineProperties(qS.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.K("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.K("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
qS.prototype.dataChanged=qS.prototype.dataChanged;qS.prototype.onTap=qS.prototype.onTap;qS.JSC$13516_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
qS.JSC$13516_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"}];_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],qS.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],qS.prototype,"ytRendererBehavior",void 0);_.N([_.r(xP),_.Z("design:type",Object)],qS.prototype,"ytdActiveViewBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],qS.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],qS.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.lE.YtSparklesClickLocationBehavior),_.Z("design:type",Object)],qS.prototype,"ytSparklesClickLocationBehavior",void 0);
_.N([_.n({selector:_.AD}),_.Z("design:type",Object)],qS.prototype,"isGridViewEnabled",void 0);_.N([_.k("isGridViewEnabled"),_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],qS.prototype,"watchFeedBigThumbs",null);_.N([_.k("isGridViewEnabled"),_.n({reflectToAttribute:!0}),_.Z("design:type",String),_.Z("design:paramtypes",[])],qS.prototype,"thumbnailWidth",null);_.N([_.n(),_.Z("design:type",Object)],qS.prototype,"data",void 0);
_.N([_.vF("ytd-thumbnail"),_.Z("design:type",HTMLElement)],qS.prototype,"thumbnail",void 0);_.N([_.Vg("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qS.prototype,"onTap",null);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qS.prototype,"dataChanged",null);_.N([_.C({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],qS);
_.p(qS,"ytd-compact-promoted-video-renderer",function(){if(Flm!==void 0)return Flm;var f=document.createElement("template");_.Y(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-compact-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[thumbnailWidth]]" on-click="onThumbnailContainerClick" class="style-scope ytd-compact-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-promoted-video-renderer">\n    <a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-compact-promoted-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n        </ytd-video-meta-block>\n        <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n          <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n        </div>\n      </div>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n  </div>\n</div>');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return Flm=f},{mode:1});var VHm;_.Dd("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var $n=function(){return _.I.apply(this,arguments)||this};
_.q($n,_.I);$n.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],$n.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],$n.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],$n.prototype,"data",void 0);_.N([_.C({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],$n);
_.p($n,"ytd-search-pyv-renderer",function(){if(VHm!==void 0)return VHm;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return VHm=f},{mode:1});var Jzg;_.Dd("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var QF=function(){var f=_.I.apply(this,arguments)||this;f.roundedContainer=!0;f.JSC$13524_handleOpenPostCommentDialogActionAfterStamp=!1;f.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return f};
_.q(QF,_.I);_.e=QF.prototype;
_.e.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}}};
_.e.onStampFinished=function(){this.JSC$13524_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.e.handleSignalActionOpenPostCommentDialogAction=function(){var f=_.m9(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");f?f.openDialog():this.JSC$13524_handleOpenPostCommentDialogActionAfterStamp=!0};
_.e.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.e.computeHideBorder=function(){return this.isInEngagementPanel};
_.e.computeIsCompact=function(){return this.isInEngagementPanel};
_.e.computeUsesCompactLockup=function(f){return f==="BACKSTAGE_SURFACE_TYPE_HOME"||f==="BACKSTAGE_SURFACE_TYPE_SEARCH"||f==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||f==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||f==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||f==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.e.computeUsesFullLockup=function(){var f,S=(f=this.data)==null?void 0:f.post,B;f=(B=_.H(S,pY7))==null?void 0:B.surface;var G;B=(G=_.H(S,NLi))==null?void 0:G.originalPost;var g;if(G=f||((g=_.H(B,pY7))==null?void 0:g.surface))return!this.computeUsesCompactLockup(G)&&this.useUpdatedRepostUi;var b;return((b=_.H(S,NLi))==null?void 0:b.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.y3.Object.defineProperties(QF.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var f,S;return((S=_.H((f=this.data)==null?void 0:f.post,pY7))==null?void 0:S.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.useUpdatedRepostUi}}});
QF.prototype.onYtCommentModerationPanelEmpty=QF.prototype.onYtCommentModerationPanelEmpty;QF.prototype.onStampFinished=QF.prototype.onStampFinished;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],QF.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],QF.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],QF.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],QF.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],QF.prototype,"roundedContainer",void 0);_.N([_.n({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],QF.prototype,"hideBorder",void 0);_.N([_.n({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],QF.prototype,"isCompact",void 0);
_.N([_.n({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],QF.prototype,"usesFullLockup",void 0);_.N([_.Vg("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],QF.prototype,"onStampFinished",null);
_.N([_.Vg("ytd-comment-moderation-panel-empty"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],QF.prototype,"onYtCommentModerationPanelEmpty",null);_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],QF.prototype,"isInEngagementPanel",null);_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],QF.prototype,"useUpdatedRepostUi",null);
_.N([_.C({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],QF);
_.p(QF,"ytd-backstage-post-thread-renderer",function(){if(Jzg!==void 0)return Jzg;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Jzg=f},{mode:1});var PNm;var Yn=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return f};
_.q(Yn,_.I);Yn.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
Yn.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var f=this.data.thumbnail.thumbnails;this.isDarkTheme&&(f=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(f=_.bF(f,24,void 0,"height"))?f:void 0}};
Yn.prototype.onDarkModeToggledAction=function(f){this.isDarkTheme=f};
Yn.prototype.computeHasText=function(){var f;return!((f=this.data)==null||!f.text)};
_.y3.Object.defineProperties(Yn.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.io(this.bannerImageUrl))+'");'}}});
Yn.prototype.computeHasText=Yn.prototype.computeHasText;Yn.prototype.computeBannerImageUrl=Yn.prototype.computeBannerImageUrl;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],Yn.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],Yn.prototype,"actionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Yn.prototype,"ytRendererBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],Yn.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Boolean)],Yn.prototype,"isDarkTheme",void 0);_.N([_.n(),_.Z("design:type",String)],Yn.prototype,"bannerImageUrl",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.Z("design:type",Boolean)],Yn.prototype,"hasText",void 0);_.N([_.JO("data","isDarkTheme"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Yn.prototype,"computeBannerImageUrl",null);
_.N([_.JO("data.text"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Yn.prototype,"computeHasText",null);_.N([_.k("bannerImageUrl"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Yn.prototype,"bannerStyle",null);_.N([_.C({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],Yn);
_.p(Yn,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(PNm!==void 0)return PNm;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return PNm=f},{mode:1});var vSi;var rM=function(){return _.I.apply(this,arguments)||this};
_.q(rM,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],rM.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],rM.prototype,"data",void 0);_.N([_.C({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],rM);
_.p(rM,"ytd-backstage-zero-state-renderer",function(){if(vSi!==void 0)return vSi;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return vSi=f},{mode:1});var Kl1;var jQ=function(){return _.I.apply(this,arguments)||this};
_.q(jQ,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],jQ.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],jQ.prototype,"data",void 0);_.N([_.n({computed:"computeIcon_(data.icon)"}),_.Z("design:type",String)],jQ.prototype,"icon",void 0);_.N([_.C({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],jQ);
_.p(jQ,"ytd-post-filter-zero-state-renderer",function(){if(Kl1!==void 0)return Kl1;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Kl1=f},{mode:1});var dZv;var iUi={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},Oq=function(){return _.I.apply(this,arguments)||this};
_.q(Oq,_.I);Oq.prototype.configureRendererStamper=function(){return iUi};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Oq.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Oq.prototype,"rendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Oq.prototype,"data",void 0);_.N([_.n({computed:"computeIcon_(data.icon)"}),_.Z("design:type",String)],Oq.prototype,"icon",void 0);_.N([_.C({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],Oq);
_.p(Oq,"ytd-post-scheduling-zero-state-renderer",function(){if(dZv!==void 0)return dZv;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return dZv=f},{mode:1});var HU1;var xn=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return f};
_.q(xn,_.I);xn.prototype.onTabsActivate=function(f){this.data&&this.data.tabs&&_.ew(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[f.detail.selected].navigationEndpoint})};
xn.prototype.shouldShowTotalCount=function(f){return f&&f.totalCount!==void 0};
xn.prototype.handleUpdatePostsTotalCountAction=function(f){var S=this.get(["data.tabs",1,"totalCount"]),B=this.get("updatePostsTotalCountAction.updateType",f);f=this.get("updatePostsTotalCountAction.number",f);S!==void 0&&B!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&f&&(B==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(S)+f):B==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(S)-f))};
_.y3.Object.defineProperties(xn.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var f=0,S=this.data.tabs.length;f<S;f++)if(this.data.tabs[f].selected)return f;return 0}}});
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],xn.prototype,"actionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],xn.prototype,"rendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],xn.prototype,"data",void 0);_.N([_.k("data.tabs"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],xn.prototype,"selected",null);_.N([_.C({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],xn);
_.p(xn,"ytd-post-stream-filter-renderer",function(){if(HU1!==void 0)return HU1;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return HU1=f},{mode:1});var qD6;var Eq=function(){return _.I.apply(this,arguments)||this};
_.q(Eq,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Eq.prototype,"kevlarBehaviors",void 0);_.N([_.n(),_.Z("design:type",Object)],Eq.prototype,"data",void 0);_.N([_.C({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],Eq);
_.p(Eq,"ytd-channel-age-gate-renderer",function(){if(qD6!==void 0)return qD6;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return qD6=f},{mode:1});var $Zj;_.Dd("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var LI=function(){var f=_.I.apply(this,arguments)||this;f.data=null;return f};
_.q(LI,_.I);LI.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.y3.Object.defineProperties(LI.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var f,S,B;return((f=this.data)==null?0:(S=f.title)==null?0:(B=S.runs)==null?0:B.length)?147:160}}});
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],LI.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],LI.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],LI.prototype,"imageSizePx",null);_.N([_.C({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],LI);
_.p(LI,"ytd-channel-owner-empty-state-renderer",function(){if($Zj!==void 0)return $Zj;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return $Zj=f},{mode:1});var QZL;var YD7;var kn=function(){var f=_.I.apply(this,arguments)||this;f.boundSubmitSearch=function(){f.submitSearch()};
f.boundClearSearch=function(){f.clearSearch()};
return f};
_.q(kn,_.I);_.e=kn.prototype;_.e.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]]"}}}}}};
_.e.toggleClearButton=function(){this.hideClearButton=PpN||!this.input.value};
_.e.submitOnEnterKeyUp=function(f){f.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.e.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.e.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.e.submit=function(){_.ew(this.hostElement,"search-query-changed",this.input.value)};
kn.prototype.toggleClearButton=kn.prototype.toggleClearButton;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],kn.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],kn.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],kn.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],kn.prototype,"data",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],kn.prototype,"hideClearButton",void 0);_.N([_.n(),_.Z("design:type",Object)],kn.prototype,"boundSubmitSearch",void 0);_.N([_.n(),_.Z("design:type",Object)],kn.prototype,"boundClearSearch",void 0);_.N([_.vF("#input"),_.Z("design:type",Object)],kn.prototype,"input",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],kn.prototype,"toggleClearButton",null);
_.N([_.C({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],kn);
_.p(kn,"ytd-channel-switcher-search-box-renderer",function(){if(YD7!==void 0)return YD7;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return YD7=f},{mode:1});var rz8;var nI=function(){var f=_.I.apply(this,arguments)||this;f.boundSubmit=function(){f.submit()};
return f};
_.q(nI,_.I);_.e=nI.prototype;_.e.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"}}}}};
_.e.ready=function(){var f=this;this.form.addEventListener("submit",function(S){return f.onSubmit(S)})};
_.e.onSubmit=function(f){f.preventDefault();return!1};
_.e.toggleClearButton=function(){this.hideClearButton=PpN||!this.input.value};
_.e.submitOnEnterKeyUp=function(f){f.keyCode===13&&this.submit()};
_.e.submit=function(){var f=this.data.endpoint,S=(0,_.$v.unsafeClone)(f);_.H(S,_.d3)?_.H(S,_.d3).query=this.input.value:_.H(S,_.Ht)&&(_.H(S,_.Ht).query=this.input.value);var B=_.H(S.commandMetadata,_.oD);(B==null?0:B.url)?(B.url=_.D0(B.url,"query",this.input.value),_.ew(this.hostElement,"yt-navigate",{endpoint:S})):_.H(S,qy$)?(_.H(S,qy$).channelSwitcherQuery=this.input.value,_.oy().resolve(_.S7).resolveCommand(S,{form:{element:this.hostElement}})):(f=Error("Mh`"+JSON.stringify(f)),_.xH(f))};
_.e.getUrl=function(f){return this.get("commandMetadata.webCommandMetadata.url",f)};
nI.prototype.toggleClearButton=nI.prototype.toggleClearButton;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],nI.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],nI.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],nI.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],nI.prototype,"hideClearButton",void 0);
_.N([_.n(),_.Z("design:type",Object)],nI.prototype,"boundSubmit",void 0);_.N([_.vF("#form"),_.Z("design:type",HTMLFormElement)],nI.prototype,"form",void 0);_.N([_.vF("#input"),_.Z("design:type",Object)],nI.prototype,"input",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nI.prototype,"toggleClearButton",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],nI);
_.p(nI,"ytd-search-box-renderer",function(){if(rz8!==void 0)return rz8;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return rz8=f},{mode:2});var sq=function(){var f=_.I.apply(this,arguments)||this;f.showSearchBox=!0;return f};
_.q(sq,_.I);sq.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],sq.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],sq.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],sq.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],sq.prototype,"showSearchBox",void 0);_.N([_.C({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],sq);
_.p(sq,"ytd-channel-switcher-header-renderer",function(){if(QZL!==void 0)return QZL;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return QZL=f},{mode:1});var jZ$;var OUL;var DH=function(){var f=_.I.apply(this,arguments)||this;f.isDisplayed=!0;return f};
_.q(DH,_.I);_.e=DH.prototype;_.e.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.e.dataChanged=function(){this.isDisplayed=!0};
_.e.computeType=function(f){return f||"UNKNOWN"};
_.e.onYtServiceRequestCompleted=function(f){f.stopPropagation();this.isDisplayed=!1};
_.e.onClose=function(){this.isDisplayed=!1};
DH.prototype.onYtServiceRequestCompleted=DH.prototype.onYtServiceRequestCompleted;DH.prototype.dataChanged=DH.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],DH.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],DH.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],DH.prototype,"data",void 0);
_.N([_.n({computed:"computeType(data.type)",reflectToAttribute:!0}),_.Z("design:type",String)],DH.prototype,"type",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],DH.prototype,"isDisplayed",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],DH.prototype,"dataChanged",null);
_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],DH.prototype,"onYtServiceRequestCompleted",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],DH);
_.p(DH,"ytd-alert-with-button-renderer",function(){if(OUL!==void 0)return OUL;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return OUL=f},{mode:1});var I6=function(){var f=_.I.apply(this,arguments)||this;f.noResult=!1;f.enableAlertBanner=!1;f.dismissedAlertBanner=!1;f.hideCreateChannelButton=!1;f.boundDismissAlertBanner=function(){f.dismissAlertBanner()};
f.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return f};
_.q(I6,_.I);_.e=I6.prototype;_.e.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.e.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.e.updateChannelSwitcherAction=function(f){var S;f=(S=_.H(f,e2m))==null?void 0:S.page;_.H(f,gUN)!==void 0&&(this.data=_.H(f,gUN))};
_.e.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]]"}}}}}};
_.e.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.e.searchQueryChanged=function(f,S){if(this.data&&this.data.contents&&this.data.contents.length){f=[];var B=[];this.hideCreateChannelButton=this.noResult=!1;for(var G=document.querySelectorAll("ytd-account-item-renderer"),g=_.m(G),b=g.next();!b.done;b=g.next())b=b.value,B.push(b),b.style.display="block";this.resetRightBorder(B);if(S){this.hideCreateChannelButton=!0;for(B=1;B<this.data.contents.length;B++)if(b=this.data.contents[B],_.H(b,d_j)){var z=void 0,X=void 0;g=(z=_.H(b,d_j))==null?void 0:(X=
z.accountName)==null?void 0:X.simpleText;X=z=void 0;b=(z=_.H(b,d_j))==null?void 0:(X=z.channelHandle)==null?void 0:X.simpleText;(z=G[B-1])&&g&&_.wW(g,S)?f.push(z):_.K("enable_handle_search_on_channel_switcher")&&z&&b&&_.wW(b.toString(),S.toString())?f.push(z):z.style.display="none"}f.length===0&&(this.noResult=!0);this.resetRightBorder(f)}}};
_.e.resetRightBorder=function(f){for(var S=0;S<f.length;S++)f[S].style.borderRight=!this.hideCreateChannelButton&&(S+2)%3===0||this.hideCreateChannelButton&&(S+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.e.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.e.setShowSearchBox=function(f){if(f&&f.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var S=0;S<f.contents.length;S++)_.H(f.contents[S],_.zq)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.e.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.y3.Object.defineProperties(I6.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null?0:f.contents)}}});
I6.prototype.onContinuationItemsUpdated=I6.prototype.onContinuationItemsUpdated;I6.prototype.searchQueryChanged=I6.prototype.searchQueryChanged;I6.prototype.onDataChanged=I6.prototype.onDataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],I6.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],I6.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],I6.prototype,"actionHandlerBehavior",void 0);_.N([_.r(_.Ak),_.Z("design:type",Object)],I6.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],I6.prototype,"data",void 0);_.N([_.vF("ytd-channel-switcher-header-renderer"),_.Z("design:type",Object)],I6.prototype,"channelSwitcherHeaderRenderer",void 0);_.N([_.n(),_.Z("design:type",Object)],I6.prototype,"noResult",void 0);
_.N([_.n(),_.Z("design:type",Object)],I6.prototype,"enableAlertBanner",void 0);_.N([_.n(),_.Z("design:type",Object)],I6.prototype,"dismissedAlertBanner",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],I6.prototype,"hideCreateChannelButton",void 0);_.N([_.k("data.contents"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],I6.prototype,"isLoading",null);_.N([_.n(),_.Z("design:type",Object)],I6.prototype,"boundDismissAlertBanner",void 0);
_.N([_.n({computed:"computeButtonOverride()"}),_.Z("design:type",Object)],I6.prototype,"buttonOverride",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],I6.prototype,"onDataChanged",null);_.N([_.Vg("search-query-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,String]),_.Z("design:returntype")],I6.prototype,"searchQueryChanged",null);
_.N([_.Vg("yt-next-continuation-data-updated"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],I6.prototype,"onContinuationItemsUpdated",null);_.N([_.C({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],I6);
_.p(I6,"ytd-channel-switcher-page-renderer",function(){if(jZ$!==void 0)return jZ$;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return jZ$=f},{mode:1});var xZ$;var ES$;var Uq=function(){var f=_.I.apply(this,arguments)||this;f.images=[];f.selectedImageIndex=0;return f};
_.q(Uq,_.I);_.e=Uq.prototype;
_.e.ready=function(){_.jP(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.jP(this.JSC$13569_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.jP(this.JSC$13569_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.jP(this.JSC$13569_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.e.onThumbnailClick=function(f){if(f=f.event_.detail)this.selectedImageIndex=this.images.indexOf(f)};
_.e.updateImageThumbnails=function(f){f=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:f.event_.detail});this.images.splice(this.selectedImageIndex,1,f);this.images=[].concat(_.$d(this.images))};
_.e.cancelImageRepositions=function(){this.selectedImageIndex=0;_.ew(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.e.saveImageRepositions=function(){this.selectedImageIndex=0;_.ew(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.y3.Object.defineProperties(Uq.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var f=this;return(this.images||[]).map(function(S,B){return{image:S,selected:B===f.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Uq.prototype,"ytRendererstamperBehavior",void 0);_.N([_.vF("ytd-backstage-image-preview-renderer"),_.Z("design:type",Object)],Uq.prototype,"JSC$13569_imagePreviewContainer",void 0);_.N([_.vF(".thumbnail-images-container"),_.Z("design:type",HTMLElement)],Uq.prototype,"thumbnailImagesContainer",void 0);_.N([_.n(),_.Z("design:type",Array)],Uq.prototype,"images",void 0);
_.N([_.n(),_.Z("design:type",Object)],Uq.prototype,"repositionInstructions",void 0);_.N([_.n(),_.Z("design:type",Object)],Uq.prototype,"selectedImageIndex",void 0);_.N([_.k("images","selectedImageIndex"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],Uq.prototype,"thumbnailRendererDatas",null);_.N([_.k("images","selectedImageIndex"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Uq.prototype,"selectedImageData",null);
_.N([_.C({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],Uq);
_.p(Uq,"ytd-backstage-multi-image-reposition-renderer",function(){if(ES$!==void 0)return ES$;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return ES$=f},{mode:1});var CI=function(f,S){_.$o.call(this);this.uploadUrl=f;this.channelId=S;this.imagesUploadData=[]};
_.q(CI,_.$o);CI.prototype.getAllUploadStatuses=function(){var f=this,S,B,G;return _.R(function(g){if(g.nextAddress==1)return _.h(g,LlX(f),2);S=g.yieldResult;B=S.get("succeed");G=S.get("failed");return g.return(B.concat(G))})};
var nSN=function(f){var S,B;return _.R(function(G){if(G.nextAddress==1)return _.h(G,LlX(f),2);S=G.yieldResult;B=S.get("failed");B.length>0&&kON(f,B);return G.return(f.getAllUploadStatuses())})},LlX=function(f){var S,B,G,g,b,z,X;
return _.R(function(w){if(w.nextAddress==1)return S=new Map,_.h(w,Promise.allSettled(f.imagesUploadData.map(function(F){return F.uploadPromise})),2);
B=w.yieldResult;G=[];g=_.m(B);for(b=g.next();!b.done;b=g.next())z=b.value,z.status==="fulfilled"&&G.push(z.value);X=f.imagesUploadData.map(function(F){return F.image}).filter(function(F){return G.every(function(V){return V.id!==F.id})});
S.set("succeed",G);S.set("failed",X);return w.return(S)})},kON=function(f,S){S=_.m(S);
for(var B=S.next();!B.done;B=S.next()){var G=f;B=B.value;sZm(G,B.id)>=0&&G.cancel(B.id);var g=new DZg(B),b=_.zF1(G.uploadUrl,{"X-YouTube-ChannelId":G.channelId},B.imageBlob);g.transfer=b;g.uploadPromise=IO8(b,B);G.imagesUploadData.push(g);b.run()}};
CI.prototype.cancel=function(f){var S=sZm(this,f);S!==-1&&((S=this.imagesUploadData[S].transfer)&&S.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(B){return B.image.id!==f}))};
var sZm=function(f,S){return f.imagesUploadData.findIndex(function(B){return B.image.id===S})},IO8=function(f,S){return new Promise(function(B,G){f.listen("l",function(){var g=f.getResponseText();
g?(g=JSON.parse(g).encryptedBlobId,S.encryptedBlobId=g,B(S)):G("upload failed")});
f.listen("n",function(){G("upload failed")})})},DZg=function(f){this.image=f};var O6K=function(f,S,B,G,g){this.id=f;this.imageBlob=S;this.localImageSrc=B;this.naturalWidth=G;this.naturalHeight=g;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 UZg=[".jpeg",".jpg",".png"],pI=function(){var f=_.I.apply(this,arguments)||this;f.showImagesPreview=!1;f.pollOptions=[];f.errorMessage="";f.optionPlaceholderText="";f.optionDefaultText="";f.JSC$13580_imageId=0;f.maxFileSizeMb=0;f.maxAspectRatio=0;f.invalidFileSizeError="";f.invalidAspectRatioError="";f.invalidFileTypeError="";f.imageSelector=new F1(null,"single_file",UZg);return f};
_.q(pI,_.I);_.e=pI.prototype;_.e.ready=function(){_.jP(this.imageSelector,"j",this.onImageSelect,!1,this);_.jP(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.jP(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.e.dataChanged=function(){var f,S,B=_.H((f=this.data)==null?void 0:(S=f.cellTemplate)==null?void 0:S.onEmptyCellTap,g91);if(B&&B.uploadUrl&&B.channelId){var G;this.maxFileSizeMb=((G=B.imageValidationInfo)==null?void 0:G.maxFileSizeMb)||0;var g;this.maxAspectRatio=((g=B.imageValidationInfo)==null?void 0:g.allowedMaxAspectRatio)||0;var b;this.invalidFileSizeError=this.getSimpleString((b=this.data)==null?void 0:b.invalidFileSizeError);var z;this.invalidAspectRatioError=this.getSimpleString((z=this.data)==
null?void 0:z.invalidAspectRatioError);var X;this.invalidFileTypeError=this.getSimpleString((X=this.data)==null?void 0:X.invalidFileTypeError);this.uploadManager=new CI(B.uploadUrl,B.channelId)}};
_.e.onEditorInfoChange=function(){this.optionPlaceholderText=_.ac(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.ac(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.e.observeAddImageError=function(){this.errorMessage!==""&&_.ew(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.e.onPollOptionsChange=function(){for(var f=!1,S=[],B=0;B<this.pollOptions.length;B++){var G=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(B+1);this.pollOptions[B].placeholderText!==G?(f=!0,S.push(Object.assign({},this.pollOptions[B],{placeholderText:G}))):S.push(this.pollOptions[B])}f&&(this.pollOptions=S);this.isValid()?_.ew(this.hostElement,"yt-commentbox-post-enable"):_.ew(this.hostElement,"yt-commentbox-post-disable")};
_.e.createPollOptions=function(f){var S=[],B;f=(B=f==null?void 0:f.minPollOptions)!=null?B:0;for(B=0;B<f;B++)S.push(this.createPollOption());return S};
_.e.onImageSelect=function(f){var S=this,B,G,g,b,z,X;return _.R(function(w){if(w.nextAddress==1){if(S.selectedImageIndex===void 0)return w.jumpTo(0);B=f.files[0];S.errorMessage="";G=S.validateImage(B);if(G!=="")return S.errorMessage=G,w.return();g=new aR(S.maxAspectRatio,!1,!0);return _.h(w,g.transform(B),3)}if(w.nextAddress!=4)return b=w.yieldResult,b.transformedData?b.invalidAspectRatio?(S.errorMessage=S.invalidAspectRatioError,w.return()):_.h(w,xUN(S.JSC$13580_imageId,f.files[0],b.transformedData),
4):(S.errorMessage=S.invalidFileTypeError,w.return());z=w.yieldResult;S.JSC$13580_imageId++;kON(S.uploadManager,[z]);X=Object.assign({},S.pollOptions[S.selectedImageIndex],{image:z});S.pollOptions.splice(S.selectedImageIndex,1,X);S.refreshPollOptions();_.ew(S.hostElement,"yt-backstage-poll-image-select");_.TT(w)})};
_.e.validateImage=function(f){return f.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.e.refreshPollOptions=function(){this.pollOptions=[].concat(_.$d(this.pollOptions))};
_.e.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.$d(this.pollOptions),[this.createPollOption()]))};
_.e.onRemovePollOption=function(f){var S=this.pollOptions[f.model.index];S&&S.image&&this.uploadManager.cancel(S.image.id);this.pollOptions.splice(f.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.ew(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.e.onTextInput=function(){this.refreshPollOptions()};
_.e.onImageButtonClick=function(f){this.selectedImageIndex=f.model.index;this.imageSelector.click()};
_.e.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.e.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.e.saveImageRepositions=function(f){f=f.event_.detail;for(var S=0,B=[],G=_.m(this.pollOptions),g=G.next();!g.done;g=G.next())g=g.value,g.image!==void 0?(g=Object.assign({},g,{image:f[S]}),B.push(g),S++):B.push(g);this.showImagesPreview=!1;this.pollOptions=[].concat(_.$d(B))};
_.e.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 f=0,S=_.m(this.pollOptions),B=S.next();!B.done;B=S.next())if(B=B.value,B.optionText.trim()!==""||B.image!==void 0){if(!B.image||this.hasCustomOptionText&&B.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;f++}return f>=Number(this.editorInfo.minPollOptions)};
_.e.getAllUploadStatuses=function(){var f=this,S,B,G,g;return _.R(function(b){if(b.nextAddress==1)return _.h(b,f.uploadManager.getAllUploadStatuses(),2);S=b.yieldResult;B=_.m(S);for(G=B.next();!G.done;G=B.next())if(g=G.value,g.encryptedBlobId===void 0)return b.return(nSN(f.uploadManager));return b.return(S)})};
_.e.getPostCreateOptions=function(){for(var f=[],S=_.m(this.pollOptions),B=S.next();!B.done;B=S.next())B=B.value,B.image!==void 0&&f.push({text:this.hasCustomOptionText?B.optionText:B.placeholderText,image:B.image});return f};
_.e.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.e.createButtonRenderer=function(f,S){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:f,accessibilityData:{accessibilityData:{label:this.getSimpleString(f)}},isDisabled:S}};
_.e.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.e.computeThumbnailRendererData=function(f){return f?{image:f,selected:!1}:void 0};
_.e.getSimpleString=function(f){return _.ac(f)};
_.e.updateOptionTextFromBinding=function(f){if(f.target){var S=Array.from(_.m9(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(f.target);if(S>=0){var B;this.pollOptions[S].optionText=(B=f.detail.value)!=null?B:""}}};
_.y3.Object.defineProperties(pI.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var f,S;return this.pollOptions.length<((S=(f=this.editorInfo)==null?void 0:f.maxPollOptions)!=null?S:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(f){return f.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(f){return f.image}).map(function(f){return f.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(f){return f.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var f,S=(f=this.data)==null?void 0:f.addOptionButtonText;return S?this.createButtonRenderer(S,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var f,S=(f=this.data)==null?void 0:f.repositionImagesButtonLabel;return S?this.createButtonRenderer(S,!this.hasImages):void 0}}});
pI.prototype.onPollOptionsChange=pI.prototype.onPollOptionsChange;pI.prototype.observeAddImageError=pI.prototype.observeAddImageError;pI.prototype.onEditorInfoChange=pI.prototype.onEditorInfoChange;pI.prototype.dataChanged=pI.prototype.dataChanged;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],pI.prototype,"ytRendererstamperBehavior",void 0);_.N([_.vF("ytd-backstage-multi-image-reposition-renderer"),_.Z("design:type",Object)],pI.prototype,"imageRepositionContainer",void 0);
_.N([_.n(),_.Z("design:type",Object)],pI.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],pI.prototype,"editorInfo",void 0);_.N([_.n(),_.Z("design:type",CI)],pI.prototype,"uploadManager",void 0);_.N([_.n(),_.Z("design:type",Object)],pI.prototype,"showImagesPreview",void 0);_.N([_.n(),_.Z("design:type",Array)],pI.prototype,"pollOptions",void 0);_.N([_.n(),_.Z("design:type",Object)],pI.prototype,"errorMessage",void 0);
_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pI.prototype,"dataChanged",null);_.N([_.HF("editorInfo"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pI.prototype,"onEditorInfoChange",null);_.N([_.JO("errorMessage"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pI.prototype,"observeAddImageError",null);
_.N([_.HF("pollOptions"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pI.prototype,"onPollOptionsChange",null);_.N([_.k("pollOptions","editorInfo"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],pI.prototype,"isAllowedToAddOption",null);_.N([_.k("pollOptions"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],pI.prototype,"hasImages",null);
_.N([_.k("pollOptions"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],pI.prototype,"imagesToReposition",null);_.N([_.k("pollOptions"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],pI.prototype,"hasCustomOptionText",null);_.N([_.k("data","isAllowedToAddOption"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],pI.prototype,"addOptionButton",null);_.N([_.k("data","hasImages"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],pI.prototype,"repositionImagesButton",null);
_.N([_.C({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],pI);
_.p(pI,"ytd-backstage-image-poll-editor-renderer",function(){if(xZ$!==void 0)return xZ$;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return xZ$=f},{mode:2});var CNm={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 paj;var AS=function(){var f=_.I.apply(this,arguments)||this;f.a11yConfig=CNm;f.imageDisplayOffsetTop=0;f.imageDisplayOffsetLeft=0;f.pickerDisplayOffsetTop=0;f.pickerDisplayOffsetLeft=0;f.showPreviewContainer=!0;f.startPicker=!1;f.repositionOptional=!1;f.editOnlyMode=!1;f.savedImageDisplayOffsetTop=0;f.savedImageDisplayOffsetLeft=0;return f};
_.q(AS,_.I);_.e=AS.prototype;_.e.created=function(){_.A5.requestAvailability()};
_.e.ready=function(){};
_.e.onArrowKeysDown=function(f){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){f.detail.keyboardEvent.preventDefault();var S=0,B=0,G="";switch(f.detail.keyboardEvent.key){case "ArrowUp":EtN(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?G=this.a11yConfig.reachBottomOfImage:S=this.imageHeight*.05*-1;break;case "ArrowDown":EtN(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?G=this.a11yConfig.reachTopOfImage:
S=this.imageHeight*.05;break;case "ArrowLeft":EtN(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?G=this.a11yConfig.reachRightOfImage:B=this.imageWidth*.05*-1;break;case "ArrowRight":EtN(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?G=this.a11yConfig.reachLeftOfImage:B=this.imageWidth*.05}G&&_.Jf(G)&&_.ew(this.hostElement,"iron-announce",{text:_.Jf(G)});if(B||S)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+S)),f=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),f=_.Jf(this.a11yConfig.imageVerticalPosition,{x_percent:""+f,y_percent:""+(100-f)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+B)),f=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),f=_.Jf(this.a11yConfig.imageHorizontalPosition,{x_percent:""+f,y_percent:""+(100-f)})),f&&_.ew(this.hostElement,"iron-announce",{text:f})}};
_.e.getPreviewPosition=function(f,S,B,G){return Math.round(100*(f+S*.5-B)/G)};
_.e.calculateDisplayPosition=function(){var f=this.imageData.naturalWidth,S=this.imageData.naturalHeight;this.displayScale=Math.max(200/f,200/S);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var B=f*this.displayScale*this.imageData.previewCoordinates.left,G=S*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=S>f?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-B;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=f>S?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-G;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=f*this.displayScale;this.imageHeight=S*this.displayScale};
_.e.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.e.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.e.getSignedPosition=function(f,S,B){return S==="X"&&_.nL("HTML_DIR")==="rtl"?B==="-"?f+"px":f*-1+"px":B==="-"?f*-1+"px":f+"px"};
_.e.pickerMove=function(f){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var S=this.pickerOffsetX-f.clientX,B=this.pickerOffsetY-f.clientY;this.pickerOffsetX=f.clientX;this.pickerOffsetY=f.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
B)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-S))}};
_.e.pickerMoveStart=function(f){this.startPicker=!0;this.pickerOffsetX=f.clientX;this.pickerOffsetY=f.clientY};
_.e.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var f=this.generateCropPreview();f&&_.ew(this.hostElement,"ytd-backstage-image-preview-coordinates-update",f)};
_.e.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.ew(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.e.deleteImage=function(){_.ew(this.hostElement,"ytd-backstage-image-preview-delete")};
_.e.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.e.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var f=this.generateCropPreview();f&&_.ew(this.hostElement,"ytd-backstage-image-preview-coordinates-save",f)};
_.e.getPreviewOffset=function(f,S,B){return S&&f?(B==="X"&&_.nL("HTML_DIR")==="rtl"?300/S*f:300/S*f*-1)+"px":"0px"};
_.e.getSimpleText=function(f){return f?_.ac(f):""};
_.e.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}};
_.y3.Object.defineProperties(AS.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var f=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Jf(this.a11yConfig.imageVerticalPosition,{x_percent:""+f,y_percent:""+(100-f)})+"\n"+_.Jf(this.a11yConfig.verticalRepositionInstruction)}f=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Jf(this.a11yConfig.imageHorizontalPosition,{x_percent:""+f,y_percent:""+(100-f)})+"\n"+_.Jf(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 f,S,B=(f=this.instruction)==null?void 0:(S=f.previewInstruction)==null?void 0:S.editButtonLabel;return B?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:B,accessibilityData:{accessibilityData:{label:this.getSimpleText(B)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var f,S,B,G,g=this.editOnlyMode?(f=this.instruction)==null?void 0:(S=f.editInstruction)==null?void 0:S.saveImagesButtonLabel:(B=this.instruction)==null?void 0:(G=B.editInstruction)==null?void 0:G.saveButtonLabel;return g?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:g,accessibilityData:{accessibilityData:{label:this.getSimpleText(g)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var f,S,B=(f=this.instruction)==null?void 0:(S=f.previewInstruction)==null?void 0:S.deleteButtonLabel;return B?{size:"SIZE_SMALL",text:B,accessibilityData:{accessibilityData:{label:this.getSimpleText(B)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var f,S,B=(f=this.instruction)==null?void 0:(S=f.editInstruction)==null?void 0:S.cancelButtonLabel;f=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return B?{style:f,size:"SIZE_SMALL",text:B,accessibilityData:{accessibilityData:{label:this.getSimpleText(B)}}}: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"}}});
AS.prototype.onEditOnlyModeUpdate=AS.prototype.onEditOnlyModeUpdate;AS.prototype.onImageChange=AS.prototype.onImageChange;_.N([_.n(),_.Z("design:type",O6K)],AS.prototype,"imageData",void 0);_.N([_.n(),_.Z("design:type",Object)],AS.prototype,"instruction",void 0);_.N([_.n(),_.Z("design:type",Object)],AS.prototype,"a11yConfig",void 0);_.N([_.n(),_.Z("design:type",Number)],AS.prototype,"imageWidth",void 0);_.N([_.n(),_.Z("design:type",Number)],AS.prototype,"imageHeight",void 0);
_.N([_.n(),_.Z("design:type",Number)],AS.prototype,"displayScale",void 0);_.N([_.n(),_.Z("design:type",Object)],AS.prototype,"imageDisplayOffsetTop",void 0);_.N([_.n(),_.Z("design:type",Object)],AS.prototype,"imageDisplayOffsetLeft",void 0);_.N([_.n(),_.Z("design:type",Object)],AS.prototype,"pickerDisplayOffsetTop",void 0);_.N([_.n(),_.Z("design:type",Object)],AS.prototype,"pickerDisplayOffsetLeft",void 0);_.N([_.n(),_.Z("design:type",Object)],AS.prototype,"showPreviewContainer",void 0);
_.N([_.n(),_.Z("design:type",Object)],AS.prototype,"startPicker",void 0);_.N([_.n(),_.Z("design:type",Number)],AS.prototype,"pickerOffsetX",void 0);_.N([_.n(),_.Z("design:type",Number)],AS.prototype,"pickerOffsetY",void 0);_.N([_.n(),_.Z("design:type",Object)],AS.prototype,"repositionOptional",void 0);_.N([_.n(),_.Z("design:type",Object)],AS.prototype,"editOnlyMode",void 0);_.N([_.vF("#picker-container"),_.Z("design:type",HTMLElement)],AS.prototype,"JSC$13593_pickerContainer",void 0);
_.N([_.vF("#picker"),_.Z("design:type",HTMLElement)],AS.prototype,"picker",void 0);_.N([_.vF("#preview-clipper"),_.Z("design:type",HTMLElement)],AS.prototype,"previewClipper",void 0);_.N([_.vF("#image-in-picker-background"),_.Z("design:type",HTMLImageElement)],AS.prototype,"JSC$13593_imageInBackground",void 0);_.N([_.vF("#image-in-picker"),_.Z("design:type",HTMLImageElement)],AS.prototype,"JSC$13593_imageInPicker",void 0);
_.N([_.vF("#image-in-preview-clipper"),_.Z("design:type",HTMLImageElement)],AS.prototype,"JSC$13593_imageInPreviewClipper",void 0);_.N([_.k("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.Z("design:type",String),_.Z("design:paramtypes",[])],AS.prototype,"altLabelForImage",null);_.N([_.k("imageHeight","imageWidth"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],AS.prototype,"pickerSize",null);
_.N([_.k("imageHeight","imageWidth"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],AS.prototype,"imageOrientationStyle",null);_.N([_.k("instruction"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],AS.prototype,"editButton",null);_.N([_.k("instruction","editOnlyMode"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],AS.prototype,"saveButton",null);_.N([_.k("instruction"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],AS.prototype,"deleteButton",null);
_.N([_.k("instruction","editOnlyMode"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],AS.prototype,"cancelButton",null);_.N([_.k("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],AS.prototype,"cropOffsetTop",null);_.N([_.k("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],AS.prototype,"cropOffsetLeft",null);
_.N([_.k("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.Z("design:type",String),_.Z("design:paramtypes",[])],AS.prototype,"pickerBackgroundStyle",null);_.N([_.k("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.Z("design:type",String),_.Z("design:paramtypes",[])],AS.prototype,"pickerDisplayStyle",null);_.N([_.k("cropOffsetLeft","cropOffsetTop"),_.Z("design:type",String),_.Z("design:paramtypes",[])],AS.prototype,"imageInPickerStyle",null);
_.N([_.k("cropOffsetLeft","cropOffsetTop","pickerSize"),_.Z("design:type",String),_.Z("design:paramtypes",[])],AS.prototype,"previewClipperStyle",null);_.N([_.HF("imageData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],AS.prototype,"onImageChange",null);_.N([_.HF("editOnlyMode"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],AS.prototype,"onEditOnlyModeUpdate",null);
_.N([_.k("showPreviewContainer"),_.Z("design:type",String),_.Z("design:paramtypes",[])],AS.prototype,"pickerModeStyle",null);_.N([_.C({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],AS);
_.p(AS,"ytd-backstage-image-preview-renderer",function(){if(paj!==void 0)return paj;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return paj=f},{mode:1});var Az6;var Nf1={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 MH7;var ZUN;var NS=function(){var f=_.I.apply(this,arguments)||this;f.a11yConfig=Nf1;f.imageDisplayOffsetTop=0;f.imageDisplayOffsetLeft=0;f.pickerDisplayOffsetTop=0;f.pickerDisplayOffsetLeft=0;f.cropCoordinatesSaved=!1;f.previewSize=0;f.startPicker=!1;f.repositionOptional=!1;return f};
_.q(NS,_.I);_.e=NS.prototype;_.e.created=function(){_.A5.requestAvailability()};
_.e.ready=function(){};
_.e.onArrowKeysDown=function(f){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){f.detail.keyboardEvent.preventDefault();var S=0,B=0,G="";switch(f.detail.keyboardEvent.key){case "ArrowUp":LVG(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?G=this.a11yConfig.reachBottomOfImage:S=this.imageHeight*.05*-1;break;case "ArrowDown":LVG(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?G=this.a11yConfig.reachTopOfImage:
S=this.imageHeight*.05;break;case "ArrowLeft":LVG(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?G=this.a11yConfig.reachRightOfImage:B=this.imageWidth*.05*-1;break;case "ArrowRight":LVG(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?G=this.a11yConfig.reachLeftOfImage:B=this.imageWidth*.05}G&&_.Jf(G)&&_.ew(this.hostElement,"iron-announce",{text:_.Jf(G)});if(B||S)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+S)),f=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),f=_.Jf(this.a11yConfig.imageVerticalPosition,{x_percent:""+f,y_percent:""+(100-f)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+B)),f=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),f=_.Jf(this.a11yConfig.imageHorizontalPosition,{x_percent:""+f,y_percent:""+(100-f)})),f&&_.ew(this.hostElement,"iron-announce",{text:f})}};
_.e.getPreviewPosition=function(f,S,B,G){return Math.round(100*(f+S*.5-B)/G)};
_.e.displayImage=function(){var f=this.JSC$13604_pickerContainer.getBoundingClientRect().width,S=this.JSC$13604_pickerContainer.getBoundingClientRect().height,B=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),G=this.JSC$13604_imageInBackground.naturalWidth,g=this.JSC$13604_imageInBackground.naturalHeight;this.displayScale=Math.max(B/G,B/g);this.imageWidth=G*this.displayScale;this.imageHeight=g*this.displayScale;this.pickerDisplayOffsetLeft=(f-B)/2;this.pickerDisplayOffsetTop=
(S-B)/2;this.imageDisplayOffsetLeft=g>G?this.pickerDisplayOffsetLeft:(f-this.imageWidth)/2;this.imageDisplayOffsetTop=G>g?this.pickerDisplayOffsetTop:(S-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.e.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$13604_imageInBackground.src=this.imageData.toString(),this.JSC$13604_imageInPicker.src=this.imageData.toString(),this.JSC$13604_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.e.getSignedPosition=function(f,S,B){return S==="X"&&_.nL("HTML_DIR")==="rtl"?B==="-"?f+"px":f*-1+"px":B==="-"?f*-1+"px":f+"px"};
_.e.pickerMove=function(f){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var S=this.pickerOffsetX-f.clientX,B=this.pickerOffsetY-f.clientY;this.pickerOffsetX=f.clientX;this.pickerOffsetY=f.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
B)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-S))}};
_.e.pickerMoveStart=function(f){this.startPicker=!0;this.pickerOffsetX=f.clientX;this.pickerOffsetY=f.clientY};
_.e.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.e.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.ew(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.e.getPreviewOffset=function(f,S,B,G){return S&&f&&B?(G==="X"&&_.nL("HTML_DIR")==="rtl"?B/S*f:B/S*f*-1)+"px":"0px"};
_.e.getSimpleText=function(f){return f?_.ac(f):""};
_.e.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var f=this.cropOffsetTop/this.imageHeight,S=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,B=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,G=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.m9(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.ew(this.hostElement,"yt-img-crop-coordinates-update",{top:f,right:S,bottom:B,left:G})}};
_.y3.Object.defineProperties(NS.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var f=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Jf(this.a11yConfig.imageVerticalPosition,{x_percent:""+f,y_percent:""+(100-f)})+"\n"+_.Jf(this.a11yConfig.verticalRepositionInstruction)}f=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Jf(this.a11yConfig.imageHorizontalPosition,{x_percent:""+f,y_percent:""+(100-f)})+"\n"+_.Jf(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 f,S=(f=this.learnMore.runs[0])==null?void 0:f.navigationEndpoint,B;return((B=_.H(S,_.pg))==null?void 0:B.url)||void 0}}}});
NS.prototype.onImageDataChange=NS.prototype.onImageDataChange;_.N([_.n(),_.Z("design:type",Object)],NS.prototype,"imageData",void 0);_.N([_.n(),_.Z("design:type",Object)],NS.prototype,"instruction",void 0);_.N([_.n(),_.Z("design:type",Object)],NS.prototype,"a11yConfig",void 0);_.N([_.n(),_.Z("design:type",Number)],NS.prototype,"imageWidth",void 0);_.N([_.n(),_.Z("design:type",Number)],NS.prototype,"imageHeight",void 0);_.N([_.n(),_.Z("design:type",Number)],NS.prototype,"displayScale",void 0);
_.N([_.n(),_.Z("design:type",Object)],NS.prototype,"imageDisplayOffsetTop",void 0);_.N([_.n(),_.Z("design:type",Object)],NS.prototype,"imageDisplayOffsetLeft",void 0);_.N([_.n(),_.Z("design:type",Object)],NS.prototype,"pickerDisplayOffsetTop",void 0);_.N([_.n(),_.Z("design:type",Object)],NS.prototype,"pickerDisplayOffsetLeft",void 0);_.N([_.n(),_.Z("design:type",Object)],NS.prototype,"cropCoordinatesSaved",void 0);_.N([_.n(),_.Z("design:type",Object)],NS.prototype,"previewSize",void 0);
_.N([_.n(),_.Z("design:type",Object)],NS.prototype,"startPicker",void 0);_.N([_.n(),_.Z("design:type",Number)],NS.prototype,"pickerOffsetX",void 0);_.N([_.n(),_.Z("design:type",Number)],NS.prototype,"pickerOffsetY",void 0);_.N([_.n(),_.Z("design:type",Object)],NS.prototype,"repositionOptional",void 0);_.N([_.vF("#picker-container"),_.Z("design:type",HTMLElement)],NS.prototype,"JSC$13604_pickerContainer",void 0);_.N([_.vF("#picker"),_.Z("design:type",HTMLElement)],NS.prototype,"picker",void 0);
_.N([_.vF("#image-in-picker-background"),_.Z("design:type",HTMLImageElement)],NS.prototype,"JSC$13604_imageInBackground",void 0);_.N([_.vF("#image-in-picker"),_.Z("design:type",HTMLImageElement)],NS.prototype,"JSC$13604_imageInPicker",void 0);_.N([_.vF("#image-in-preview-clipper"),_.Z("design:type",HTMLImageElement)],NS.prototype,"JSC$13604_imageInPreviewClipper",void 0);_.N([_.vF("#full-image-as-preview"),_.Z("design:type",HTMLImageElement)],NS.prototype,"imageAsPreview",void 0);
_.N([_.k("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.Z("design:type",String),_.Z("design:paramtypes",[])],NS.prototype,"altLabelForImage",null);_.N([_.k("imageHeight","imageWidth"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],NS.prototype,"pickerSize",null);_.N([_.k("imageHeight","imageWidth"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],NS.prototype,"imageOrientationStyle",null);
_.N([_.k("instruction.previewInstruction.editButtonLabel"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],NS.prototype,"editButton",null);_.N([_.k("instruction.editInstruction.saveButtonLabel"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],NS.prototype,"saveButton",null);_.N([_.k("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],NS.prototype,"cropOffsetTop",null);
_.N([_.k("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],NS.prototype,"cropOffsetLeft",null);_.N([_.k("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.Z("design:type",String),_.Z("design:paramtypes",[])],NS.prototype,"pickerBackgroundStyle",null);_.N([_.k("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.Z("design:type",String),_.Z("design:paramtypes",[])],NS.prototype,"pickerDisplayStyle",null);
_.N([_.k("cropOffsetLeft","cropOffsetTop"),_.Z("design:type",String),_.Z("design:paramtypes",[])],NS.prototype,"imageInPickerStyle",null);_.N([_.k("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.Z("design:type",String),_.Z("design:paramtypes",[])],NS.prototype,"previewClipperStyle",null);_.N([_.JO("imageData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NS.prototype,"onImageDataChange",null);
_.N([_.k("cropCoordinatesSaved"),_.Z("design:type",String),_.Z("design:paramtypes",[])],NS.prototype,"pickerModeStyle",null);_.N([_.k("instruction.editInstruction.learnMore"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],NS.prototype,"learnMore",null);_.N([_.k("learnMore"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],NS.prototype,"learnMoreUrl",null);_.N([_.nP({is:"yt-img-crop-picker",disableElementRegistration:!0})],NS);
_.p(NS,"yt-img-crop-picker",function(){if(ZUN===void 0){var f=document.createElement("template");_.Y(f,'\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>');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;MH7===void 0&&(MH7=document.createElement("template"));var G=MH7;B.call(S,G.content.cloneNode(!0),f.content.firstChild);ZUN=f}f=ZUN;return f},{mode:2});var MS=function(){var f=_.I.apply(this,arguments)||this;f.errorMessage="";f.hasPreview=!1;f.isBackstagePost=!1;f.dismissButtonOverrides={size:"XS"};return f};
_.q(MS,_.I);_.e=MS.prototype;_.e.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"}}}};
_.e.detached=function(){this.removeOverlay()};
_.e.setPreview=function(f){_.m9(this.hostElement).querySelector("#preview-picker").imageData=f;this.hasPreview=!0;_.ew(this.hostElement,"yt-backstage-image-select-preview")};
_.e.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var f=_.m9(this.hostElement).querySelector("#dropzone");f.classList.remove("dragover");f.classList.remove("error");_.ew(this.hostElement,"yt-backstage-image-select-cancel")};
_.e.setupOverlay=function(){var f=this.imageUploadEndpoint;this.removeOverlay();if(f&&f.imageValidationInfo){var S=_.m9(this.hostElement).querySelector("#dropzone"),B=_.m9(this.hostElement).querySelector("#select");this.overlay=new W1(f.uploadUrl,f.channelId,f.imageValidationInfo.maxFileSizeMb,f.imageValidationInfo.allowedMaxAspectRatio,S,B,!0);_.jP(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.jP(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.jP(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.jP(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.jP(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.e.removeOverlay=function(){this.overlay&&(_.qM(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.qM(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.qM(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.qM(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.qM(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.e.onDragOver=function(f){var S=_.m9(this.hostElement).querySelector("#dropzone");_.Rl(S,"dragover",f.value)};
_.e.onPreview=function(f){this.setPreview(f.value)};
_.e.onImageError=function(f){if(f.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var S;f=(S=this.data)==null?void 0:S.fileSizeError}else if(f.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var B;f=(B=this.data)==null?void 0:B.invalidError}else if(f.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var G;f=(G=this.data)==null?void 0:G.invalidAspectRatioError}else return;this.errorMessage=_.ac(f);_.m9(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.e.onImageAlert=function(f){this.onImageError(f)};
_.e.uploadPromise=function(){var f=this,S=this.overlay&&this.overlay.uploadPromise();if(S)return S.catch(function(){throw Error(f.data?_.ac(f.data.uploadFailureError):"");})};
_.y3.Object.defineProperties(MS.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var f,S;if((f=this.data)==null?0:(S=f.icon)==null?0:S.iconType)return _.F_(this.data.icon.iconType)}}});
MS.prototype.setupOverlay=MS.prototype.setupOverlay;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],MS.prototype,"rendererStamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],MS.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],MS.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],MS.prototype,"imageUploadEndpoint",void 0);_.N([_.n(),_.Z("design:type",Object)],MS.prototype,"errorMessage",void 0);
_.N([_.n(),_.Z("design:type",W1)],MS.prototype,"overlay",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],MS.prototype,"hasPreview",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],MS.prototype,"isBackstagePost",void 0);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],MS.prototype,"selectionCancel",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],MS.prototype,"previewCancel",null);
_.N([_.k("data.icon.iconType"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],MS.prototype,"icon",null);_.N([_.n(),_.Z("design:type",Object)],MS.prototype,"dismissButtonOverrides",void 0);_.N([_.JO("imageUploadEndpoint"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],MS.prototype,"setupOverlay",null);_.N([_.C({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],MS);
_.p(MS,"ytd-backstage-image-select-renderer",function(){if(Az6!==void 0)return Az6;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return Az6=f},{mode:1});var tHL;var uAi;var ZH=function(){var f=_.I.apply(this,arguments)||this;f.selected=!1;return f};
_.q(ZH,_.I);_.e=ZH.prototype;_.e.computeSelected=function(f){return f==null?void 0:f.selected};
_.e.computeTransform=function(f,S,B){var G,g,b=(g=(G=this.imageContainer)==null?void 0:G.getBoundingClientRect())!=null?g:{width:0,height:0};G=Math.max(b.width/S,b.height/B);B=B*G*f.top;return"translateX("+this.getSignedPosition(S*G*f.left,"X","-")+") translateY("+this.getSignedPosition(B,"Y","-")+")"};
_.e.getSignedPosition=function(f,S,B){return S==="X"&&_.nL("HTML_DIR")==="rtl"?B==="-"?f+"px":f*-1+"px":B==="-"?f*-1+"px":f+"px"};
_.e.onClick=function(){var f;_.ew(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(f=this.data)==null?void 0:f.image)};
_.e.onKeyPress=function(f){if(f.keyCode===13)this.onClick()};
_.y3.Object.defineProperties(ZH.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var f,S;return((f=this.data)==null?void 0:(S=f.image)==null?void 0:S.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)!=null&&f.image){var S;f=(S=this.data)==null?void 0:S.image;return f.previewCoordinates.top!==0||f.previewCoordinates.left!==0?(S=this.computeTransform(f.previewCoordinates,f.naturalWidth,f.naturalHeight),f.naturalHeight>=f.naturalWidth?"width:inherit;transform:"+S+";":"height:inherit;transform:"+S+";"):f.naturalHeight>=f.naturalWidth?"width:inherit;":"height:inherit;"}}}});
ZH.prototype.onKeyPress=ZH.prototype.onKeyPress;_.N([_.vF(".image-container"),_.Z("design:type",HTMLElement)],ZH.prototype,"imageContainer",void 0);_.N([_.n(),_.Z("design:type",Object)],ZH.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.Z("design:type",Object)],ZH.prototype,"selected",void 0);_.N([_.k("data.image"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ZH.prototype,"thumbnailUrl",null);
_.N([_.k("data.image","data.image.previewCoordinates"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ZH.prototype,"thumbnailStyle",null);_.N([_.Vg("keypress"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],ZH.prototype,"onKeyPress",null);_.N([_.C({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],ZH);
_.p(ZH,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(uAi!==void 0)return uAi;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return uAi=f},{mode:2});var tS=function(f,S,B){B=B===void 0?!1:B;_.$o.call(this);var G=this;this.dropZoneOverlay=new T9(f);this.selectOverlay=B?new F1(S,"multiple_file",["image/*"]):new F1(S,"single_file",["image/*"]);this.handler=new _.BZ(this);_.ha(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(S,"click",function(){G.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.q(tS,_.$o);tS.prototype.onChange=function(f){var S;(S=f.files)!=null&&S.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:f.files}))};var uc=function(){var f=_.I.apply(this,arguments)||this;f.addImageErrorMessage="";f.errorMessage="";f.images=[];f.selectedImageIndex=0;f.modern=_.K("web_modern_buttons");f.maxNumImagesPerPost=_.Gt("max_num_images_per_post_web_ui");f.JSC$13619_imageId=0;return f};
_.q(uc,_.I);_.e=uc.prototype;_.e.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.ew(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.e.observeDragToReorder=function(){var f=this;if(this.showImagesPreview){var S,B=zEo(_.Sj.getInstance(),(S=this.data)==null?void 0:S.dragToReorderTooltip);_.xJ.addLowPriorityJob(function(){_.Xh(f.hostElement,B,f.thumbnailDragDropArea)})}};
_.e.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}}};
_.e.computeThumbnail=function(f){return(f==null?void 0:f.localImageSrc)||void 0};
_.e.onRendererstamperFinished=function(){_.WB$(this.ytReorderableBehavior,_.m9(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.m9(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.e.handleDrop=function(f){var S=f.currDragItem;if(S!=null&&S.data){f=this.images[this.selectedImageIndex];var B=S.data.image,G=this.images.indexOf(B)||0;S=_.CM(S.parentNode.children,S);this.images.splice(G,1);this.images.splice(S,0,B);this.images=[].concat(_.$d(this.images));this.selectedImageIndex=this.images.indexOf(f)}};
_.e.setUpImagePicker=function(){var f=this.imageUploadEndpoint;f&&f.imageValidationInfo&&(this.uploadManager=new CI(f.uploadUrl,f.channelId),this.initialPicker||(this.initialPicker=new tS(this.dropzone,this.selectLink,!0),_.jP(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new tS(this.addImageButtonContainer,this.addImageSelectButton),_.jP(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.jP(this.JSC$13619_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.jP(this.JSC$13619_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.jP(_.m9(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.e.detached=function(){this.initialPicker&&(_.qM(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.qM(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.e.onInitialSelectImages=function(f){var S=this;return _.R(function(B){return _.h(B,S.onSelectImages(f,!1),0)})};
_.e.onAddImage=function(f){var S=this;return _.R(function(B){return _.h(B,S.onSelectImages(f,!0),0)})};
_.e.onSelectImages=function(f,S){var B=this,G,g,b,z,X,w,F,V,J,P,d,Q,x,E,U,A,t,M,a,l;return _.R(function(mx){switch(mx.nextAddress){case 1:S?B.addImageErrorMessage="":(B.images=[],B.errorMessage="");G=f.detail;g=B.validateImages([].concat(_.$d(G)));if(g!=="")return S?B.addImageErrorMessage=g:B.errorMessage=g,mx.return();b=[].concat(_.$d(G)).map(function(zj){return(new aR(B.maxAspectRatio,!1,!0)).transform(zj)});
return _.h(mx,Promise.allSettled(b),2);case 2:z=mx.yieldResult,X=_.m(z.entries()),w=X.next();case 3:if(w.done){mx.jumpTo(5);break}F=w.value;V=_.m(F);J=V.next().value;P=V.next().value;d=J;Q=P;if(Q.status!=="fulfilled"){U=E=x=void 0;S?B.addImageErrorMessage=_.ac((x=B.data)==null?void 0:x.invalidError):B.errorMessage=B.errorMessage===""?_.ac((E=B.data)==null?void 0:E.invalidError):_.ac((U=B.data)==null?void 0:U.multiFileError);mx.jumpTo(4);break}A=Q.value;A.cropped&&_.ew(B.hostElement,"yt-backstage-multi-image-cropped");
if(A.invalidAspectRatio){a=M=t=void 0;S?B.addImageErrorMessage=_.ac((t=B.data)==null?void 0:t.invalidAspectRatioError):B.errorMessage=B.errorMessage===""?_.ac((M=B.data)==null?void 0:M.invalidAspectRatioError):_.ac((a=B.data)==null?void 0:a.multiFileError);mx.jumpTo(4);break}return _.h(mx,xUN(B.JSC$13619_imageId,f.detail[d],A.transformedData),8);case 8:l=mx.yieldResult,B.images.push(l),B.JSC$13619_imageId++;case 4:w=X.next();mx.jumpTo(3);break;case 5:if(B.errorMessage!==""||B.addImageErrorMessage!==
"")return mx.return();S?kON(B.uploadManager,[B.images[B.images.length-1]]):kON(B.uploadManager,B.images);B.images=[].concat(_.$d(B.images));B.selectedImageIndex=S?Math.max(B.images.length-1,0):0;_.ew(B.hostElement,"yt-backstage-multi-image-select");_.TT(mx)}})};
_.e.onThumbnailClick=function(f){if(f=f.event_.detail)this.selectedImageIndex=this.images.indexOf(f)};
_.e.validateImages=function(f){if(f.length>this.maxNumImagesPerPost){var S;return _.ac((S=this.data)==null?void 0:S.multiImageExceedMaxImageCountError)}var B=1048576*this.maxFileSizeMb;f=f.filter(function(b){return b.size>B}).length;
if(f===0)return"";var G,g;f=f>1?(G=this.data)==null?void 0:G.multiFileError:(g=this.data)==null?void 0:g.fileSizeError;return _.ac(f)};
_.e.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.$d(this.images));this.selectedImageIndex=0};
_.e.repositionImage=function(f){this.images[this.selectedImageIndex].previewCoordinates=f.event_.detail;this.images=[].concat(_.$d(this.images))};
_.e.getAllUploadStatuses=function(){var f=this,S,B,G,g;return _.R(function(b){if(b.nextAddress==1)return _.h(b,f.uploadManager.getAllUploadStatuses(),2);S=b.yieldResult;B=_.m(S);for(G=B.next();!G.done;G=B.next())if(g=G.value,g.encryptedBlobId===void 0)return b.return(nSN(f.uploadManager));return b.return(S)})};
_.e.hasImages=function(){return this.images.length>0};
_.e.cancel=function(){for(var f=this.uploadManager,S=_.m(f.imagesUploadData),B=S.next();!B.done;B=S.next())f.cancel(B.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.ew(this.hostElement,"yt-backstage-multi-image-cancel")};
_.y3.Object.defineProperties(uc.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var f,S;return((f=this.imageUploadEndpoint)==null?void 0:(S=f.imageValidationInfo)==null?void 0:S.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var f,S;return((f=this.imageUploadEndpoint)==null?void 0:(S=f.imageValidationInfo)==null?void 0:S.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var f,S;if((f=this.data)==null?0:(S=f.icon)==null?0:S.iconType)return _.F_(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.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 f=this;return(this.images||[]).map(function(S,B){return{renderer:{image:S,selected:B===f.selectedImageIndex}}})}}});
uc.prototype.setUpImagePicker=uc.prototype.setUpImagePicker;uc.prototype.onRendererstamperFinished=uc.prototype.onRendererstamperFinished;uc.prototype.observeDragToReorder=uc.prototype.observeDragToReorder;uc.prototype.observeAddImageError=uc.prototype.observeAddImageError;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],uc.prototype,"rendererStamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],uc.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.cF7),_.Z("design:type",Object)],uc.prototype,"ytReorderableBehavior",void 0);_.N([_.vF("#dropzone"),_.Z("design:type",HTMLElement)],uc.prototype,"dropzone",void 0);_.N([_.vF("#select-link"),_.Z("design:type",HTMLElement)],uc.prototype,"selectLink",void 0);_.N([_.vF("#thumbnail-drag-drop-area"),_.Z("design:type",HTMLElement)],uc.prototype,"thumbnailDragDropArea",void 0);_.N([_.vF("#add-image-button-container"),_.Z("design:type",HTMLElement)],uc.prototype,"addImageButtonContainer",void 0);
_.N([_.vF("#add-image-button"),_.Z("design:type",HTMLElement)],uc.prototype,"addImageSelectButton",void 0);_.N([_.vF("#image-preview-container"),_.Z("design:type",Object)],uc.prototype,"JSC$13619_imagePreviewContainer",void 0);_.N([_.n(),_.Z("design:type",Object)],uc.prototype,"addImageErrorMessage",void 0);_.N([_.n(),_.Z("design:type",Object)],uc.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],uc.prototype,"errorMessage",void 0);
_.N([_.n(),_.Z("design:type",Object)],uc.prototype,"imageUploadEndpoint",void 0);_.N([_.n(),_.Z("design:type",Array)],uc.prototype,"images",void 0);_.N([_.n(),_.Z("design:type",tS)],uc.prototype,"initialPicker",void 0);_.N([_.n(),_.Z("design:type",tS)],uc.prototype,"addImagePicker",void 0);_.N([_.n(),_.Z("design:type",CI)],uc.prototype,"uploadManager",void 0);_.N([_.n(),_.Z("design:type",Object)],uc.prototype,"selectedImageIndex",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],uc.prototype,"modern",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],uc.prototype,"maxNumImagesPerPost",void 0);_.N([_.k("imageUploadEndpoint"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],uc.prototype,"maxAspectRatio",null);_.N([_.k("imageUploadEndpoint"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],uc.prototype,"maxFileSizeMb",null);
_.N([_.k("data.icon.iconType"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],uc.prototype,"dropIcon",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],uc.prototype,"selectionCancel",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],uc.prototype,"previewCancel",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],uc.prototype,"dataForAddImageButton",null);
_.N([_.k("errorMessage"),_.Z("design:type",String),_.Z("design:paramtypes",[])],uc.prototype,"dropzoneClass",null);_.N([_.k("images"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],uc.prototype,"showImagesPreview",null);_.N([_.k("images"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],uc.prototype,"containMaxImages",null);_.N([_.JO("addImageErrorMessage"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],uc.prototype,"observeAddImageError",null);
_.N([_.JO("showImagesPreview"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],uc.prototype,"observeDragToReorder",null);_.N([_.k("images","selectedImageIndex"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],uc.prototype,"selectedImageData",null);_.N([_.k("images","selectedImageIndex"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],uc.prototype,"thumbnailRenderers",null);
_.N([_.Vg("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],uc.prototype,"onRendererstamperFinished",null);_.N([_.JO("imageUploadEndpoint"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],uc.prototype,"setUpImagePicker",null);_.N([_.C({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],uc);
_.p(uc,"ytd-backstage-multi-image-select-renderer",function(){if(tHL!==void 0)return tHL;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return tHL=f},{mode:1});var aOv;var yzo;var Wli;var a6=function(){var f=_.I.apply(this,arguments)||this;f.boundCaptureFocus=function(S){f.onCaptureFocus(S)};
return f};
_.q(a6,_.I);_.e=a6.prototype;_.e.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.e.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.e.onCaptureFocus=function(f){_.ct(f).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.e.getIconType=function(f){return f?"yt-icons:"+f.toLowerCase():null};
_.e.onSelect=function(){var f;if((f=this.data)==null?0:f.onSelectCommand)if(_.K("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var S;((S=_.H(this.data.onSelectCommand.commandMetadata,_.oD))==null?0:S.url)?_.ew(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.oy().resolve(_.S7).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.y3.Object.defineProperties(a6.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.ac(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}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],a6.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],a6.prototype,"ytComponentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],a6.prototype,"data",void 0);_.N([_.vF("#item"),_.Z("design:type",HTMLElement)],a6.prototype,"item",void 0);_.N([_.k("data.label"),_.Z("design:type",String),_.Z("design:paramtypes",[])],a6.prototype,"label",null);
_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],a6.prototype,"value",null);_.N([_.C({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],a6);
_.p(a6,"ytd-privacy-dropdown-item-renderer",function(){if(Wli!==void 0)return Wli;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Wli=f},{mode:1});var yF=function(){var f=_.I.apply(this,arguments)||this;f.value="";f.label="";f.disabled=!1;return f};
_.q(yF,_.I);_.e=yF.prototype;_.e.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"}}}};
_.e.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.e.dataChanged=function(){this.reset()};
_.e.valueChanged=function(){var f;if(this.value&&(f=this.data)!=null&&f.entries){f=_.m(this.data.entries);for(var S=f.next();!S.done;S=f.next())if((S=this.getRendererForEntry(S.value))&&this.getItemRendererValue(S)===this.value){this.label=this.ytComponentBehavior.getSimpleString(S.label);break}}};
_.e.setInitialLabel=function(){if(this.data&&this.data.entries)for(var f=_.m(this.data.entries),S=f.next();!S.done;S=f.next())if(S=this.getRendererForEntry(S.value)){if(S.isSelected){this.label=this.ytComponentBehavior.getSimpleString(S.label);break}this.data.label&&(this.label=this.data.label)}};
_.e.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var f=_.m(this.data.entries),S=f.next();!S.done;S=f.next()){S=this.getRendererForEntry(S.value);var B=void 0;if((B=S)==null?0:B.isSelected)return this.getItemRendererValue(S)||-1}return-1};
_.e.getItemRendererValue=function(f){return"stringValue"in f||"int32Value"in f?f.stringValue||f.int32Value||null:null};
_.e.getRendererForEntry=function(f){return f.dropdownItemRenderer||f.privacyDropdownItemRenderer||f.navigationDropdownItemRenderer||null};
_.e.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AW("value-changed",this.value))};
_.e.updateValueFromBinding=function(f){this.value=f.detail.value};
yF.prototype.valueChangedForBinding=yF.prototype.valueChangedForBinding;yF.prototype.valueChanged=yF.prototype.valueChanged;yF.prototype.dataChanged=yF.prototype.dataChanged;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],yF.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],yF.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],yF.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],yF.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],yF.prototype,"value",void 0);_.N([_.n(),_.Z("design:type",Object)],yF.prototype,"label",void 0);_.N([_.vF("#entries"),_.Z("design:type",Object)],yF.prototype,"entries",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],yF.prototype,"disabled",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],yF.prototype,"dataChanged",null);
_.N([_.HF("value"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],yF.prototype,"valueChanged",null);_.N([_.JO("value"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],yF.prototype,"valueChangedForBinding",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],yF);
_.p(yF,"ytd-flat-dropdown-renderer",function(){if(yzo!==void 0)return yzo;var f=document.createElement("template");_.Y(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return yzo=f},{mode:1});var czm;var WH=function(){var f=_.I.apply(this,arguments)||this;f.quizOptions=[];f.explanationPlaceholderText="";f.optionPlaceholderText="";f.correctAnswerIndex=-1;f.isMarkAnswerTooltipShown=!1;f.timer=0;return f};
_.q(WH,_.I);_.e=WH.prototype;_.e.dataChanged=function(){this.optionPlaceholderText=_.ac(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.ac(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.e.onMarkCorrectAnswer=function(f){var S,B=((S=this.quizOptions[this.correctAnswerIndex])==null?void 0:S.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[f.model.index]=Object.assign({},this.quizOptions[f.model.index],{explanationText:B,isCorrect:!0});this.correctAnswerIndex=f.model.index;this.quizOptions=[].concat(_.$d(this.quizOptions))};
_.e.updatePlaceholderTexts=function(){for(var f=!1,S=[],B=0;B<this.quizOptions.length;B++){var G=this.optionPlaceholderText+" "+(B+1),g=void 0;((g=this.quizOptions[B])==null?void 0:g.placeholderText)!==G?(f=!0,S.push(Object.assign({},this.quizOptions[B],{placeholderText:G}))):S.push(this.quizOptions[B])}f&&(this.quizOptions=S);this.isValid()?_.ew(this.hostElement,"yt-commentbox-post-enable"):_.ew(this.hostElement,"yt-commentbox-post-disable")};
_.e.getSimpleString=function(f){return _.ac(f)};
_.e.createQuizOptions=function(f){var S=[],B;f=(B=f==null?void 0:f.minQuizOptions)!=null?B:0;for(B=0;B<f;B++)S.push(this.createQuizOption());return S};
_.e.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.$d(this.quizOptions),[this.createQuizOption()]))};
_.e.onInput=function(){this.quizOptions=[].concat(_.$d(this.quizOptions))};
_.e.onExplanationInput=function(){_.ew(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.e.onRemoveQuizOption=function(f){this.quizOptions.splice(f.model.index,1);f.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:f.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.$d(this.quizOptions));this.quizOptions.length===0&&_.ew(this.hostElement,"yt-quiz-attachment-dismiss")};
_.e.updateHintRenderer=function(){var f=this;clearTimeout(this.timer);this.timer=setTimeout(function(){f.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.e.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var f=0,S=0,B=_.m(this.quizOptions),G=B.next();!G.done;G=B.next()){G=G.value;var g=void 0;if(((g=G.optionText)==null?void 0:g.trim())!==""||G.isCorrect){G.isCorrect&&S++;g=void 0;if(this.hasCustomOptionText&&((g=G.optionText)==null?void 0:g.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;f++}}return f>=
Number(this.editorInfo.minQuizOptions)&&S===1};
_.e.getPostCreateOptions=function(){for(var f=[],S=_.m(this.quizOptions),B=S.next();!B.done;B=S.next()){B=B.value;var G=void 0;((G=B.optionText)==null?void 0:G.trim())!==""&&f.push({pollOption:{text:B.optionText,explanation:B.explanationText},isCorrect:B.isCorrect})}return f};
_.e.getExplanationText=function(){var f;return((f=this.quizOptions[this.correctAnswerIndex])==null?void 0:f.explanationText)||""};
_.e.maybeDisplayMarkAnswerEduToolTip=function(){var f,S,B,G,g,b,z;this.shouldShowMarkAnswerTooltip()&&((f=this.editorInfo)==null?0:(S=f.markAnswerButton)==null?0:(B=S.buttonRenderer)==null?0:(G=B.hint)==null?0:(g=G.hintRenderer)==null?0:(b=g.content)==null?0:(z=b.bubbleHintRenderer)==null?0:z.text)&&(_.Sj.getInstance(),f=B4(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,(f==null?void 0:f.length)>0&&this.optionSelectors&&_.Ps(f[0],this.optionSelectors[0]))};
_.e.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var f=0,S=_.m(this.quizOptions),B=S.next();!B.done;B=S.next()){B=B.value;var G=void 0;((G=B.optionText)==null?void 0:G.trim())!==""&&f++;if(B.isCorrect)return!1}return f<2?!1:!0};
_.e.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.e.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.e.updateOptionTextFromBinding=function(f){if(f.target){var S=Array.from(_.m9(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(f.target);if(S>=0){var B;this.quizOptions[S].optionText=(B=f.detail.value)!=null?B:""}}};
_.y3.Object.defineProperties(WH.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var f,S,B=(f=this.editorInfo)==null?void 0:(S=f.addOptionButton)==null?void 0:S.buttonRenderer;B&&(B.style="STYLE_SUGGESTIVE",B.size="SIZE_SMALL",B.isDisabled=!this.isAllowedToAddOption);return(B==null?0:B.text)?B:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var f,S;return this.quizOptions.length<((S=(f=this.editorInfo)==null?void 0:f.maxQuizOptions)!=null?S:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(f){var S;return(S=f.optionText)==null?void 0:S.trim()})}}});
WH.prototype.updatePlaceholderTexts=WH.prototype.updatePlaceholderTexts;WH.prototype.dataChanged=WH.prototype.dataChanged;_.N([_.n(),_.Z("design:type",Object)],WH.prototype,"editorInfo",void 0);_.N([_.n(),_.Z("design:type",Array)],WH.prototype,"quizOptions",void 0);_.N([_.n(),_.Z("design:type",Object)],WH.prototype,"explanationPlaceholderText",void 0);_.N([_.KP(".option-selector-button"),_.Z("design:type",Array)],WH.prototype,"optionSelectors",void 0);
_.N([_.HF("editorInfo"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],WH.prototype,"dataChanged",null);_.N([_.k("editorInfo","isAllowedToAddOption","quizOptions"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],WH.prototype,"addAnswerButton",null);_.N([_.k("editorInfo","quizOptions"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],WH.prototype,"isAllowedToAddOption",null);
_.N([_.HF("quizOptions"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],WH.prototype,"updatePlaceholderTexts",null);_.N([_.k("quizOptions"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],WH.prototype,"hasCustomOptionText",null);_.N([_.C({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],WH);
_.p(WH,"ytd-backstage-quiz-editor-renderer",function(){if(czm!==void 0)return czm;var f=document.createElement("template");_.Y(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-backstage-quiz-editor-renderer">\n  <template is="dom-repeat" items="[[quizOptions]]" index="quizAnswerIndex" class="style-scope ytd-backstage-quiz-editor-renderer">\n    <div class="quiz-option style-scope ytd-backstage-quiz-editor-renderer">\n      <div class="quiz-option-container style-scope ytd-backstage-quiz-editor-renderer">\n        <div class="quiz-thumbnail-container style-scope ytd-backstage-quiz-editor-renderer">\n          <div class="quiz-select-container style-scope ytd-backstage-quiz-editor-renderer">\n            <yt-icon-button class="option-selector-button style-scope ytd-backstage-quiz-editor-renderer" aria-checked="[[item.isCorrect]]" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" role="radio" on-click="onMarkCorrectAnswer">\n              <yt-icon class="option-selector style-scope ytd-backstage-quiz-editor-renderer" hidden="[[item.isCorrect]]" icon="yt-icons:radio-button-unchecked">\n              </yt-icon>\n              <yt-icon class="option-selector-correct style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" default-to-filled="true" icon="yt-icons:check-circle">\n              </yt-icon>\n            </yt-icon-button>\n          </div>\n        </div>\n        <tp-yt-paper-input-container class="quiz-option-input style-scope ytd-backstage-quiz-editor-renderer" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-option-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onInput" on-keyup="updateHintRenderer" on-value-changed="updateOptionTextFromBinding">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="option-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n        <yt-icon-button class="remove-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.removeOptionButtonA11yText.accessibilityData.label]]" on-click="onRemoveQuizOption">\n          <yt-icon class="remove-option style-scope ytd-backstage-quiz-editor-renderer" icon="yt-icons:delete"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div class="quiz-explanation style-scope ytd-backstage-quiz-editor-renderer">\n        <tp-yt-paper-input-container class="quiz-explanation-input style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-explanation-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizExplanationChars]]" no-label-float="" placeholder$="[[explanationPlaceholderText]]" value="{{item.explanationText}}" on-input="onExplanationInput">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="explanation-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n      </div>\n    </div>\n  </template>\n</div>\n<div class="button-container style-scope ytd-backstage-quiz-editor-renderer">\n  <yt-button-renderer class="add-answer style-scope ytd-backstage-quiz-editor-renderer" data="[[addAnswerButton]]" hidden="[[!isAllowedToAddOption]]" on-click="onAddQuizOption">\n  </yt-button-renderer>\n</div>\n');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return czm=f},{mode:2});var lOj;var f8g=(OC.FIRSTDAYOFWEEK+1)%7;var oho;var SPj=[],BrL=0,Ggj=0;BrL=0;Ggj=24;if(.25*(Ggj-BrL)<0)oho=[];else{for(var gh7=BrL;gh7<Ggj;gh7+=.25)SPj.push(gh7);oho=SPj}var e48=oho.map(function(f){f=f*60*60;return{secondsSinceMidnight:f,text:(new ZK(7)).format(new Date(0,0,0,0,0,f))}});var b$g;var cH=function(){var f=_.I.apply(this,arguments)||this;f.skipNextOpenDialog=!1;f.errorMessage="";return f};
_.q(cH,_.I);_.e=cH.prototype;_.e.attached=function(){var f=this,S=new MutationObserver(function(){f.JSC$13662_calendarMain.scrollHeight>0&&(S.disconnect(),f.calendarConfig&&f.calendarConfig.selectedDate&&f.scrollToDate())});
S.observe(this.JSC$13662_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){S.disconnect()},1E3)};
_.e.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.e.onDateTextChange=function(){if(this.calendarConfig){var f=this.validateDateText();f.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(f.details)):this.textbox.setAttribute("invalid","")}};
_.e.handleDayClick=function(f){f.model.day.date&&(this.commitDate(f.model.day.date),this.dialog.close())};
_.e.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var f=AI1(this.calendarConfig.selectedDate,this.renderData);f!==void 0&&this.JSC$13662_calendarMain.scrollToIndex(f)}};
_.e.scrollToNextMonth=function(){this.JSC$13662_calendarMain.scrollToIndex(this.JSC$13662_calendarMain.firstVisibleIndex+1)};
_.e.scrollToPrevMonth=function(){this.JSC$13662_calendarMain.firstVisibleIndex===0&&this.JSC$13662_calendarMain.scrollTo(0,0);this.JSC$13662_calendarMain.scrollToIndex(this.JSC$13662_calendarMain.firstVisibleIndex-1)};
_.e.onFormSubmit=function(f){f.preventDefault();this.calendarConfig&&(f=this.validateDateText(),f.isValid&&(this.commitDate(f.details),this.dialog.close()))};
_.e.onEscOrClickingOutside=function(f){f=f.detail.path&&!!f.detail.path.length&&f.detail.path[0];if(f.classList.contains("ytd-calendar-date-picker")){f===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var S=0;S<this.dropdownButton.children.length;S++)this.dropdownButton.children[S]===f&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}f=this.textbox.value!==this.dateText;S=this.validateDateText();f&&S.isValid&&this.commitDate(S.details);this.dialog.close();this.textbox.value=
this.dateText};
_.e.commitDate=function(f){this.calendarConfig&&(this.set("calendarConfig.selectedDate",f),_.ew(this.hostElement,"ytd-calendar-date-selected",f))};
_.e.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var f=this.textbox.value;var S=new Date;f=(new mZj(2)).parse(f,S,{validate:!0})===f.length?Cw1(S):void 0;if(!f)return this.errorMessage=_.Jf("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};S=this.calendarConfig.start;var B=this.calendarConfig.end;if(ntQ(f,S))return this.errorMessage=_.Jf("ENTER_DATE_OR_LATER",{allowed_date:UUj(S)}),{isValid:!1,details:void 0};if(ntQ(B,f))return this.errorMessage=
_.Jf("ENTER_DATE_OR_EARLIER",{allowed_date:UUj(B)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:f}};
_.y3.Object.defineProperties(cH.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?UUj(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var f=this.calendarConfig,S=[],B=0;B<7;B++)S.push(OC.NARROWWEEKDAYS[(B+f8g)%7]);B=[];for(var G=new Date(f.start.year,f.start.month);G.getFullYear()<f.end.year||G.getFullYear()===f.end.year&&G.getMonth()<=f.end.month;){var g=B,b=g.push,z=G.getFullYear(),X=G.getMonth(),w=f,F=void 0,V=[],J=Object.freeze({extraCssClass:"invisible",debugClass:""}),P=new Date(z,X),d=Cw1(P);P=P.getDay();for(var Q=Cw1(new Date);d.month===
X;){P!==f8g&&F||(F=Array.from({length:7}).fill(J),V.push(F));var x={date:{year:z,month:X,day:d.day},extraCssClass:"",debugClass:""};w.selectedDate&&x.date&&k3W(x.date,w.selectedDate)&&(x.extraCssClass+=" selected");if(ntQ(d,w.start)||ntQ(w.end,d))x.extraCssClass+=" disabled";k3W(d,Q)&&(x.extraCssClass+=" today");x.extraCssClass=x.extraCssClass.trim();F[(P-f8g+7)%7]=x;d=DUs(d);P=(P+1)%7}b.call(g,{weeks:V,monthLabel:OC.SHORTMONTHS[X]+" "+z,year:z,month:X,monthLabelExtraCssClass:V[0][2]===J?"shift-down-label":
""});G.setMonth(G.getMonth()+1)}return{months:B,daysOfWeekLabel:S}}}}});
cH.prototype.onEscOrClickingOutside=cH.prototype.onEscOrClickingOutside;cH.prototype.scrollToDate=cH.prototype.scrollToDate;_.N([_.n(),_.Z("design:type",Object)],cH.prototype,"calendarConfig",void 0);_.N([_.n(),_.Z("design:type",Object)],cH.prototype,"skipNextOpenDialog",void 0);_.N([_.n(),_.Z("design:type",Object)],cH.prototype,"errorMessage",void 0);_.N([_.vF("#textbox"),_.Z("design:type",HTMLInputElement)],cH.prototype,"textbox",void 0);
_.N([_.vF("#calendar-dialog"),_.Z("design:type",Object)],cH.prototype,"dialog",void 0);_.N([_.vF("#calendar-main"),_.Z("design:type",Object)],cH.prototype,"JSC$13662_calendarMain",void 0);_.N([_.vF("#date-picker"),_.Z("design:type",HTMLElement)],cH.prototype,"dropdownButton",void 0);_.N([_.k("calendarConfig.selectedDate"),_.Z("design:type",String),_.Z("design:paramtypes",[])],cH.prototype,"dateText",null);
_.N([_.k("calendarConfig","calendarConfig.selectedDate"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],cH.prototype,"renderData",null);_.N([_.JO("renderData","calendarConfig.selectedDate"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cH.prototype,"scrollToDate",null);_.N([_.Vg("iron-overlay-canceled"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],cH.prototype,"onEscOrClickingOutside",null);
_.N([_.nP({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],cH);
_.p(cH,"ytd-calendar-date-picker",function(){if(b$g!==void 0)return b$g;var f=document.createElement("template");_.Y(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" 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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return b$g=f},{mode:2});var md8=_.Jf("UTC_OFFSET_FORMAT",{utc_offset:(new ZK("Z")).format(new Date)}),z48=(new Date).getTimezoneOffset()*-60,R4N=new Date,Xjm,wjj=Mz(R4N.getTimezoneOffset());Xjm=FW7(JRv(wjj,R4N));var h4$=_.Jf("LOCAL_TIME_GMT_LABEL",{gmt_text:Xjm.replace("+0","+").replace("-0","-").replace(":00","")}),lc=function(){var f=_.I.apply(this,arguments)||this;f.selectedTimeIndex=0;f.selectedTimezoneIndex=0;f.timeOfDayOptions=e48;return f};
_.q(lc,_.I);_.e=lc.prototype;_.e.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.e.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var f=IFV();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=f,this.selectedTimeIndex=0;else{var S=p31(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},f,{selectedDate:S.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(B){return B.secondsSinceMidnight===S.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.e.onDatePicked=function(f){this.selectedDate=f.detail};
_.e.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.ew(this.hostElement,"ytd-date-time-selection-cancelled")};
_.e.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var f=this.selectedDate;f=new Date(f.year,f.month,f.day);_.ew(this.hostElement,"ytd-date-time-selection-update",Math.floor(f.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+f.getTimezoneOffset()*60))}};
_.e.getTimezoneFormat=function(f){return f.localizedDisplayText?f.localizedDisplayText:_.Jf("TIMEZONE_FORMAT",{utc_offset_text:""+f.localizedUtcOffset,city_name:""+f.localizedName})};
_.e.updateSelectedTimeIndexFromBinding=function(f){this.selectedTimeIndex=f.detail.value};
_.e.updateSelectedTimezoneIndexFromBinding=function(f){this.selectedTimezoneIndex=f.detail.value};
_.y3.Object.defineProperties(lc.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var f=this.data.timezoneOptions;var S={name:"Etc/Unknown",localizedName:_.Jf("LOCAL_TIME_LABEL"),localizedUtcOffset:md8,utcOffsetSec:""+z48,localizedDisplayText:h4$};f?f.length&&f[0].name!==S.name&&(f[0].localizedDisplayText||(S.localizedDisplayText=""),f.unshift(S)):f=[S];return f}}},
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]}}});
lc.prototype.onDateTimeTimezoneChange=lc.prototype.onDateTimeTimezoneChange;lc.prototype.onDatePicked=lc.prototype.onDatePicked;lc.prototype.updateDefaultSelectedValue=lc.prototype.updateDefaultSelectedValue;_.N([_.n(),_.Z("design:type",Object)],lc.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],lc.prototype,"calendarConfig",void 0);_.N([_.n(),_.Z("design:type",Object)],lc.prototype,"selectedDate",void 0);_.N([_.n(),_.Z("design:type",Object)],lc.prototype,"selectedTimeIndex",void 0);
_.N([_.n(),_.Z("design:type",Object)],lc.prototype,"selectedTimezoneIndex",void 0);_.N([_.vF("#time-listbox"),_.Z("design:type",Object)],lc.prototype,"timeListBox",void 0);_.N([_.vF("#timezone-listbox"),_.Z("design:type",Object)],lc.prototype,"timezoneListBox",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],lc.prototype,"rendererStamperBehavior",void 0);_.N([_.k("data.timezoneOptions"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],lc.prototype,"timeZones",null);
_.N([_.HF("data","timeZones"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],lc.prototype,"updateDefaultSelectedValue",null);_.N([_.k("selectedTimezoneIndex","timeZones"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],lc.prototype,"selectedTimezone",null);_.N([_.k("selectedTimeIndex"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],lc.prototype,"selectedTime",null);
_.N([_.Vg("ytd-calendar-date-selected"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],lc.prototype,"onDatePicked",null);_.N([_.JO("selectedTimezone","selectedTime","selectedDate"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],lc.prototype,"onDateTimeTimezoneChange",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],lc);
_.p(lc,"ytd-date-time-picker-renderer",function(){if(lOj!==void 0)return lOj;var f=document.createElement("template");_.Y(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return lOj=f},{mode:1});var Tr8;var fx=function(){var f=_.I.apply(this,arguments)||this;f.boundOnTapDismissButton=function(){f.dismissTapHandler()};
f.dismissButtonOverrides={size:"XS"};return f};
_.q(fx,_.I);fx.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}}}}}};
fx.prototype.dismissTapHandler=function(){_.ew(this.hostElement,"yt-backstage-attachment-dismissed")};
fx.prototype.computeAttachmentType=function(f){return f?f.backstageImageRenderer?"image":f.videoRenderer?"video":"none":"none"};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],fx.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],fx.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],fx.prototype,"attachmentPreview",void 0);_.N([_.n(),_.Z("design:type",Object)],fx.prototype,"dismissButton",void 0);_.N([_.n(),_.Z("design:type",Object)],fx.prototype,"boundOnTapDismissButton",void 0);
_.N([_.n(),_.Z("design:type",Object)],fx.prototype,"dismissButtonOverrides",void 0);_.N([_.n({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.Z("design:type",String)],fx.prototype,"attachmentType",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],fx);
_.p(fx,"ytd-backstage-dismissable-attachment",function(){if(Tr8!==void 0)return Tr8;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Tr8=f},{mode:1});var FOi;var oz=function(){var f=_.I.apply(this,arguments)||this;f.selectedVideoId=void 0;f.picker=void 0;f.dismissButtonOverrides={size:"XS"};f.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return f};
_.q(oz,_.I);_.e=oz.prototype;_.e.onServiceRequestCompleted=function(f){f.stopPropagation()};
_.e.handleAddVideoPreviewAction=function(f){f=this.get("addVideoPreviewAction",f);this.onGetVideoPreviewSuccess(f)};
_.e.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}}}}}};
_.e.onLaunchVideoPicker=function(f){var S=this,B=_.ac(this.get("addVideoLinkAction.title",f)),G=this.get("addVideoLinkAction.onePickHostId",f);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",f);G&&(this.picker||(B=_.Rv7(_.wl1(G).setTitle(B).addView(evi()).addView(gp8()),function(g){S.onPickVideo(g)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",f)||B.addView("youtube"),this.picker=B.build()),this.picker.setVisible(!0))};
_.e.onPickVideo=function(f){if(f)if(f.action==="cancel")_.ew(this.hostElement,"yt-video-link-button-cancel");else if(f.action==="picked"){f=f.docs;if(!f||f.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(f=(f==null?0:f.length)?f[0]:void 0)?f.id:void 0;this.setVideoPreview()}};
_.e.setVideoPreview=function(){var f=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){f.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.e.onGetVideoPreviewSuccess=function(f){if(f&&f.videoPreview&&f.cancelButton)this.videoPreview=f.videoPreview,this.cancelButton=f.cancelButton,_.ew(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.e.onGetVideoPreviewError=function(){this.cancel()};
_.e.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.ew(this.hostElement,"yt-video-link-cancel")};
_.e.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
oz.prototype.onServiceRequestCompleted=oz.prototype.onServiceRequestCompleted;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],oz.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],oz.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],oz.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],oz.prototype,"ytComponentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],oz.prototype,"videoPreview",void 0);_.N([_.n(),_.Z("design:type",Object)],oz.prototype,"cancelButton",void 0);_.N([_.n(),_.Z("design:type",Object)],oz.prototype,"getVideoPreviewCommand",void 0);_.N([_.n(),_.Z("design:type",Object)],oz.prototype,"dismissButtonOverrides",void 0);
_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],oz.prototype,"onServiceRequestCompleted",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],oz);
_.p(oz,"ytd-backstage-video-link-attachment",function(){if(FOi!==void 0)return FOi;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return FOi=f},{mode:1});var VVL;var JCL;var PDN;var So=function(){return _.I.apply(this,arguments)||this};
_.q(So,_.I);So.prototype.dataChanged=function(){this.active=!1};
So.prototype.onTap=function(){_.ew(this.hostElement,"yt-select-emoji-suggestion",this.data)};
So.prototype.identity=function(f){return f};
_.y3.Object.defineProperties(So.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var f,S,B,G;if((f=this.data)==null?0:(S=f.image)==null?0:(B=S.thumbnails)==null?0:(G=B[0])==null?0:G.url)return f=this.data.image.thumbnails[0].url,f.startsWith("data:image/svg+xml")?TC(f):_.io(f)}}});
So.prototype.dataChanged=So.prototype.dataChanged;_.N([_.n(),_.Z("design:type",Object)],So.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],So.prototype,"active",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],So.prototype,"dataChanged",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],So.prototype,"imageSrc",null);
_.N([_.C({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],So);
_.p(So,"ytd-emoji-suggestion",function(){if(PDN!==void 0)return PDN;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return PDN=f},{mode:1});var vho=/.*([:@#].*?)$/,BJ=function(){var f=_.I.apply(this,arguments)||this;f.suggestions=[];f.suggestionIndex=-1;f.JSC$13690_lastSuggestionRange=null;return f};
_.q(BJ,_.I);_.e=BJ.prototype;_.e.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.e.getSuggestions=function(f){var S=[],B=li7(this.emojiManager,f.substr(0,3));if(B)for(var G in B)if(G.toLocaleLowerCase().indexOf(f)===0){var g=B[G];if(g&&g.emojiId){g=Df(this.emojiManager,g.emojiId);var b=void 0,z=void 0,X=void 0,w=void 0,F=((b=g)==null?0:b.isCustomEmoji)?(z=g)==null?void 0:(X=z.shortcuts)==null?void 0:X[0]:(w=g)==null?void 0:w.emojiId;b=void 0;S.push({suggestion:{image:(b=g)==null?void 0:b.image,alt:F,text:G}});if(S.length>=64)break}}return S?S.sort(function(V,J){return J.suggestion.text<
V.suggestion.text?-1:J.suggestion.text===V.suggestion.text?0:1}):null};
_.e.insertSuggestion=function(f){_.ew(this.hostElement,"yt-insert-suggestion",{range:this.JSC$13690_lastSuggestionRange,text:f.alt});this.dropdown.opened=!1};
_.e.updateSuggestionsAtCaret=function(f){this.updateSuggestions(f,this.retrieveTextBeforeRange(f))};
_.e.offsetStartOfRangeBy=function(f,S){f.startOffset>=S&&f.setStart(f.startContainer,f.startOffset-S)};
_.e.updateSuggestions=function(f,S){var B=this;this.JSC$13690_lastSuggestionRange&&(this.JSC$13690_lastSuggestionRange.detach(),this.JSC$13690_lastSuggestionRange=null);if((S=vho.exec(S))&&S.length&&(S=S[S.length-1].toLocaleLowerCase(),S.length>2||S===":_")&&(this.offsetStartOfRangeBy(f,S.length),this.JSC$13690_lastSuggestionRange=f,(f=this.getSuggestions(S))&&f.length)){this.suggestions=f;_.ui(this,function(){B.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(f.length-1);return}this.dropdown.opened=!1};
_.e.onKeyDown=function(f){if(this.dropdown.opened)switch(f.key){case "Escape":this.dropdown.opened=!1;f.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);f.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);f.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),f.preventDefault()}};
_.e.onKeyUp=function(f,S){switch(f.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(S);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(S)}};
_.e.onKeyPress=function(f){f.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),f.preventDefault())};
_.e.changeSuggestionIndex=function(f){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(f+this.suggestions.length)%this.suggestions.length,f=this.dropdownContent.children[this.suggestionIndex],f.active=!0,this.dropdownContent.scrollTop=f.offsetTop)};
_.e.retrieveTextBeforeRange=function(f){var S=f.startContainer;return S&&S.nodeType===Node.TEXT_NODE?S.textContent.substr(0,f.startOffset):""};
BJ.prototype.onKeyPress=BJ.prototype.onKeyPress;BJ.prototype.onKeyUp=BJ.prototype.onKeyUp;BJ.prototype.onKeyDown=BJ.prototype.onKeyDown;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],BJ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Array)],BJ.prototype,"suggestions",void 0);_.N([_.n(),_.Z("design:type",_.nV)],BJ.prototype,"emojiManager",void 0);_.N([_.n(),_.Z("design:type",Number)],BJ.prototype,"verticalSuggestionsOffset",void 0);
_.N([_.vF("#dropdown"),_.Z("design:type",Object)],BJ.prototype,"dropdown",void 0);_.N([_.vF("#dropdown-content"),_.Z("design:type",HTMLDivElement)],BJ.prototype,"dropdownContent",void 0);_.N([_.Vg("keydown"),_.Z("design:type",Function),_.Z("design:paramtypes",[KeyboardEvent]),_.Z("design:returntype")],BJ.prototype,"onKeyDown",null);_.N([_.Vg("keyup"),_.Z("design:type",Function),_.Z("design:paramtypes",[KeyboardEvent,Range]),_.Z("design:returntype")],BJ.prototype,"onKeyUp",null);
_.N([_.Vg("keypress"),_.Z("design:type",Function),_.Z("design:paramtypes",[KeyboardEvent]),_.Z("design:returntype")],BJ.prototype,"onKeyPress",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-emoji-input"})],BJ);
_.p(BJ,"ytd-emoji-input",function(){if(JCL!==void 0)return JCL;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return JCL=f},{mode:2});var KO7;var GH=function(){var f=_.I.apply(this,arguments)||this;f.hasMaxOptions=!1;return f};
_.q(GH,_.I);_.e=GH.prototype;_.e.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.e.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.e.setPrefilledChoices=function(f){var S=this;this.set("pollOptions",[]);var B;for(B=0;B<Math.min(f.length,this.data.maxPollOptions);B++)this.push("pollOptions",f[B].substring(0,this.data.maxPollOptionChars));for(;B<this.data.minPollOptions;B++)this.push("pollOptions","");this.hasMaxOptions=B>=this.data.maxPollOptions;_.ui(this,function(){for(var G=S.pollOptions,g=_.m9(S.hostElement).querySelectorAll(".poll-option-input"),b=0;b<g.length;b++)g[b].value=G[b]})};
_.e.focusChanged=function(){_.hO(this.hostElement)};
_.e.onInput=function(){var f=this;_.NJ(this,"onInput",function(){f.isValid()?_.ew(f.hostElement,"yt-commentbox-post-enable"):_.ew(f.hostElement,"yt-commentbox-post-disable")},300)};
_.e.setPollOptions=function(){var f=[],S,B=((S=this.data)==null?0:S.minPollOptions)?this.data.minPollOptions:0;for(S=0;S<B;S++)f.push("");return f};
_.e.addPollOption=function(){var f=this;_.ew(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.xJ.addLowPriorityJob(function(){var S;(S=_.m9(f.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||S.focus()})};
_.e.onRemovePollOption=function(f){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.ew(this.hostElement,"yt-poll-attachment-dismiss")):(f=this.repeat.indexForElement(f.target.parentNode),f!==null&&(this.splice("pollOptions",f,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.ew(this.hostElement,"yt-commentbox-post-enable"))))};
_.e.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.e.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var f=0,S=this.pollOptions.length;f<S;f++)if(this.pollOptions[f].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.e.getPollOptions=function(){return this.pollOptions};
_.e.setPollOptionsFromInputs=function(){for(var f=_.m9(this.hostElement).querySelectorAll(".poll-option-input"),S=0;S<f.length;S++)this.pollOptions[S]=f[S].value.trim()};
_.e.clearPollOptions=function(){var f=_.m9(this.hostElement).querySelectorAll(".poll-option-input");f=_.m(f);for(var S=f.next();!S.done;S=f.next())S.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.e.getSimpleString=function(f){return _.ac(f)};
_.e.updateValueFromBinding=function(f){if(f.target&&this.pollOptions){var S=Array.from(_.m9(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(f.target);if(S>=0){var B;this.pollOptions[S]=(B=f.detail.value)!=null?B:"";this.notifyPath("pollOptions."+S)}}};
GH.prototype.dataChanged=GH.prototype.dataChanged;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],GH.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],GH.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Array)],GH.prototype,"pollOptions",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],GH.prototype,"hasMaxOptions",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],GH.prototype,"enableCreationBox",void 0);
_.N([_.vF("#repeat"),_.Z("design:type",xb)],GH.prototype,"repeat",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],GH.prototype,"dataChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-poll-attachment"})],GH);
_.p(GH,"ytd-poll-attachment",function(){if(KO7!==void 0)return KO7;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return KO7=f},{mode:2});var dd6;var i$6;var H$L;var qPN;var eo=function(){return _.I.apply(this,arguments)||this};
_.q(eo,_.I);_.y3.Object.defineProperties(eo.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],eo.prototype,"rendererBehaviors",void 0);_.N([_.n(),_.Z("design:type",Object)],eo.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],eo.prototype,"focused",void 0);_.N([_.n({reflectToAttribute:!0}),_.k("focused"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],eo.prototype,"ariaSelected",null);_.N([_.nP({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],eo);
_.p(eo,"yt-user-mention-suggestion-renderer",function(){if(qPN===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;H$L===void 0&&(H$L=document.createElement("template"));var G=H$L;B.call(S,G.content.cloneNode(!0),f.content.firstChild);qPN=f}f=qPN;return f},{mode:2});var $dX;var Qqj;var bY=function(){var f=_.I.apply(this,arguments)||this;f.focusedSuggestionIndex=-1;return f};
_.q(bY,_.I);_.e=bY.prototype;_.e.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.e.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.e.setFocusedSuggestionIndex=function(f){!this.data||!this.data.suggestions||f<0||f>=this.data.suggestions.length||(this.focusedSuggestionIndex=f,f=this.getSuggestionId(f),this._setFocusedSuggestionId(f))};
_.e.advanceSuggestion=function(f){this.focusedSuggestionIndex===-1||f!==-1&&f!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+f),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.e.ensureSuggestionVisible=function(f){f=this.getSuggestionId(f);f=_.m9(this.hostElement).querySelector("[id="+f+"]");f!=null&&(f.offsetTop<this.hostElement.scrollTop?f.scrollIntoView(!0):f.offsetTop+f.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&f.scrollIntoView(!1))};
_.e.getSuggestionId=function(f){return"user-mention-suggestion-"+f};
_.e.onSuggestionTap=function(f){var S=_.H(f.model.item,fSv);this.ytRendererBehavior.logExplicitClick(S);_.ew(this.hostElement,"yt-user-mention-suggestion-selected",{data:S,index:f.model.index})};
_.e.onSuggestionMouseMove=function(f){f.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(f.model.index)};
_.e.isSuggestionFocused=function(f,S){return f===S};
_.e.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.e.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AW("focused-suggestion-id-changed",this.focusedSuggestionId))};
bY.prototype.focusedSuggestionIdChangedForBinding=bY.prototype.focusedSuggestionIdChangedForBinding;bY.prototype.onDomChange=bY.prototype.onDomChange;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],bY.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],bY.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],bY.prototype,"focusedSuggestionIndex",void 0);_.N([_.n({readOnly:!0}),_.Z("design:type",String)],bY.prototype,"focusedSuggestionId",void 0);
_.N([_.Vg("dom-change"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],bY.prototype,"onDomChange",null);_.N([_.JO("focusedSuggestionId"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],bY.prototype,"focusedSuggestionIdChangedForBinding",null);_.N([_.nP({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],bY);
_.p(bY,"yt-user-mention-suggestions-dropdown",function(){if(Qqj===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;$dX===void 0&&($dX=document.createElement("template"));var G=$dX;B.call(S,G.content.cloneNode(!0),f.content.firstChild);Qqj=f}f=Qqj;return f},{mode:2});var mD=function(){var f=_.I.apply(this,arguments)||this;f.suggestionsResponse=null;f.activeMention=null;f.selectionChangeListener=f.onSelectionChange.bind(f);f.handlesEnabled=_.K("enable_handles_in_mention_suggest_posts");f.handlesInMentionSuggestionsEnabled=_.K("handles_in_mention_suggest_posts");f.zeroPrefixMentionSuggestionEnabled=_.K("enable_zero_prefix_mention_suggestion_web");f.pendingQuery=null;f.flowNonce=null;return f};
_.q(mD,_.I);_.e=mD.prototype;_.e.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.e.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.e.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.e.hasSuggestions=function(f){return!!(f&&f.suggestions&&f.suggestions.length>0)};
_.e.onInput=function(){var f=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var S=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),B=this.activeMention.JSC$9306_getText().slice(-1)===" ",G=this.activeMention.JSC$9306_getText().slice(-2,-1)===" ",g="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$9306_getText().slice(-2,-1))>=
0;g=this.zeroPrefixMentionSuggestionEnabled&&g;if(this.activeMention.isCollapsed()||(S||G||g)&&B)this.cancelActiveMention();else{var b=this.activeMention.JSC$9306_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.NJ(this,"requestSuggestions",function(){f.requestSuggestions(b)},100)}}}};
_.e.onServiceRequestSent=function(f){f.stopPropagation()};
_.e.onServiceRequestCompleted=function(f){f.stopPropagation();f=f.detail.data;f.query&&(!this.pendingQuery||this.pendingQuery!==f.query)||!this.zeroPrefixMentionSuggestionEnabled&&f.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=f,this.hasSuggestions(f)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.e.onServiceRequestError=function(f){f.stopPropagation()};
_.e.onUserMentionSuggestionSelected=function(f){this.selectSuggestion(f.detail.data,f.detail.index)};
_.e.onSelectionChange=function(){if(this.activeMention){var f=_.$V(),S=this.activeMention.JSC$9306_containsRange(f);f=f&&this.containsHelper(this.dropdown,f.getContainer());S||f||this.cancelActiveMention()}};
_.e.containsHelper=function(f,S){var B;if(((B=window.ShadyDOM)==null?void 0:B.noPatch)===!0)return f.contains(S);for(;S;){if(S===f)return!0;S=S instanceof ShadowRoot?S.host:S.parentNode}return!1};
_.e.maybeStartSuggest=function(){var f=_.$V();if(f&&f.isCollapsed()){var S=f.JSC$9306_getStartNode(),B=f.JSC$9306_getStartOffset();if(S instanceof Text&&!(B<1)){var G=S.textContent;!(G=G&&G.charAt(B-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(G)<0||(this.activeMention=_.Ue(S,B-1,f.JSC$9306_getEndNode(),f.JSC$9306_getEndOffset()),this.flowNonce=ri(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.e.updateActiveMention=function(){if(this.activeMention){var f=_.$V();f&&f.isCollapsed()&&(this.activeMention=_.Ue(this.activeMention.JSC$9306_getStartNode(),this.activeMention.JSC$9306_getStartOffset(),f.JSC$9306_getEndNode(),f.JSC$9306_getEndOffset()))}};
_.e.requestSuggestions=function(f){if(this.activeMention){var S={suggestions_query:f};this.pendingQuery=f;_.RD(this.hostElement,[this.suggestionsEndpoint,S])}};
_.e.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()};
_.e.focusPreviousSuggestion=function(f){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),f.preventDefault())};
_.e.focusNextSuggestion=function(f){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),f.preventDefault())};
_.e.selectFocusedSuggestion=function(f){if(this.hasSuggestions(this.suggestionsResponse)){var S=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.H(S,fSv)&&(this.selectSuggestion(_.H(S,fSv),this.dropdown.focusedSuggestionIndex),f.preventDefault())}};
_.e.selectSuggestion=function(f,S){if(f){var B=this.activeMention;if(B){var G=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&f.handle?_.sJ(G,"\u00a0\u2068@"+f.handle+"\u2069\u00a0"):this.handlesEnabled?_.sJ(G,"\u00a0"+f.displayName+"\u00a0"):_.sJ(G,"\u00a0@"+f.displayName+"\u00a0");Y6(G,"/channel/"+f.channelId);G.classList.add("yt-formatted-string","yt-simple-endpoint");G.setAttribute("spellcheck","false");B.isCollapsed()||B.JSC$9306_removeContents();B.insertNode(G,!0);f=document.createTextNode(" ");
G.parentNode.insertBefore(f,G.nextSibling);window.getSelection().collapse(f,1);S={suggestionSelected:{suggestionIndex:S}};if(this.zeroPrefixMentionSuggestionEnabled){var g;S.suggestionSelected.isZeroPrefix=((g=this.suggestionsResponse)==null?void 0:g.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",S);this.cancelActiveMention();_.ew(this.hostElement,"yt-mention-inserted")}}};
_.e.getPositionTarget=function(f){return f&&f.getBrowserRangeObject()};
_.e.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.e.onFocusedSuggestionIdChanged=function(f){var S=_.VGG(this.hostElement)[0];S&&(f.detail.value?S.setAttribute("aria-activedescendant",f.detail.value):S.removeAttribute("aria-activedescendant"))};
_.e.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.e.logGELEvent=function(f,S){f={eventType:f,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};S&&(f=Object.assign(f,S));_.jD("userMentionAutoCompleteBoxEvent",f)};
mD.prototype.onDomChange=mD.prototype.onDomChange;mD.prototype.onUserMentionSuggestionSelected=mD.prototype.onUserMentionSuggestionSelected;mD.prototype.onServiceRequestError=mD.prototype.onServiceRequestError;mD.prototype.onServiceRequestCompleted=mD.prototype.onServiceRequestCompleted;mD.prototype.onServiceRequestSent=mD.prototype.onServiceRequestSent;mD.prototype.onInput=mD.prototype.onInput;_.N([_.r(_.qx),_.Z("design:type",Object)],mD.prototype,"ironA11yKeysBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],mD.prototype,"suggestionsEndpoint",void 0);_.N([_.n(),_.Z("design:type",Object)],mD.prototype,"suggestionsResponse",void 0);_.N([_.n(),_.Z("design:type",Object)],mD.prototype,"activeMention",void 0);_.N([_.vF("#dropdown"),_.Z("design:type",Object)],mD.prototype,"dropdown",void 0);_.N([_.vF("#iron-dropdown"),_.Z("design:type",Object)],mD.prototype,"ironDropdown",void 0);
_.N([_.Vg("input"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],mD.prototype,"onInput",null);_.N([_.Vg("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],mD.prototype,"onServiceRequestSent",null);_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],mD.prototype,"onServiceRequestCompleted",null);
_.N([_.Vg("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],mD.prototype,"onServiceRequestError",null);_.N([_.Vg("yt-user-mention-suggestion-selected"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],mD.prototype,"onUserMentionSuggestionSelected",null);
_.N([_.Vg("dom-change"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],mD.prototype,"onDomChange",null);_.N([_.nP({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],mD);
_.p(mD,"yt-user-mention-autosuggest-input",function(){if(i$6===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;dd6===void 0&&(dd6=document.createElement("template"));var G=dd6;B.call(S,G.content.cloneNode(!0),f.content.firstChild);i$6=f}f=i$6;return f},{mode:2});var zH=null;
_.OW({is:"ytd-commentbox",_template:function(){if(VVL!==void 0)return VVL;var f=document.createElement("template");_.Y(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="EXPAND" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return VVL=f},
behaviors:[_.uSM.YtHostElementBehavior,_.qx,_.b3.YtActionHandlerBehavior,_.Nm.YtComponentBehavior,_.ey.YtRendererstamperBehavior,_.PfX.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(f,S){return _.w9(f.entities,"aadcGuidelinesStateEntityPayload",S)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(f,S){return _.w9(f.entities,"commentboxStateEntity",S)},
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 _.I5}},
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:_.K("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.K("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",_.Fc(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(f){this.fire(f?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(f){this.set("submitButtonDisabled",void 0);this.clear();f&&this.computeIsEmojiButtonDisplayed_(f)&&(f=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&f.updateEmojiCategories()},
observePrefilledImage_:function(f,S,B){this.isValidPrefilledImage_(f,S,B)&&(this.prefilledAttachment_="image",this.prefilledImageData_=S,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(f,S){this.isValidPrefilledVideo_(f,S)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(f){f&&f.pollData&&f.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(f.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.Tw();this.focus()},
detached:function(){document.removeEventListener("tap",_.Fc(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(f){f=f.detail;f=f.isCustomEmoji?f.shortcuts[0]:f.emojiId;var S=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(S,f);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var f=_.$V();if(f){f=f.getBrowserRangeObject();for(var S=f.commonAncestorContainer;S;){if(S===this.getEditableTextArea_())return f;S=S.parentNode}}f=this.getEditableTextArea_();f=_.IH(f,f.childNodes.length);f.select();return f.getBrowserRangeObject()},
insertTextWithEmojis_:function(f,S,B){(S=this.emojiManager.createDocumentFragment(S,!0,!1,B===void 0?!0:B))&&S.childNodes.length!==0&&(f.collapsed||f.deleteContents(),B=S.lastChild,f.insertNode(S),_.sD1(B).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var f=_.$V();if(f){var S=f.JSC$9306_getStartNode(),B=f.JSC$9306_getEndNode();if(N7x(S)&&N7x(B)){var G=f.JSC$9306_getStartOffset(),g;if(_.P_&&S.nodeType===Node.ELEMENT_NODE&&(g=_.IN6(S)))_.IH(g,0).select();else{g=i1(S)?S:_.kv(S,i1);var b=i1(B)?B:_.kv(B,i1);if(g||b)if(f.isCollapsed()){if(S.nodeType===Node.TEXT_NODE){f=!0;G===S.length&&(f=!1);if(zH==="end"||zH==="right")f=!1;S=S.parentNode;f=[].concat(_.$d(S.parentNode.childNodes)).indexOf(S)+(f?0:1);_.IH(S.parentNode,f).select()}}else g?
g.previousSibling&&g.previousSibling.length>0?_.Ue(B,f.JSC$9306_getEndOffset(),g.previousSibling,g.previousSibling.length-1).select():(S=document.createTextNode("\u200b"),g.parentNode.insertBefore(S,g),_.Ue(B,f.JSC$9306_getEndOffset(),S,0).select()):b&&(b.nextSibling&&b.nextSibling.length>0?_.Ue(S,f.JSC$9306_getStartOffset(),b.nextSibling,1).select():(B=document.createTextNode("\u200b"),b.parentNode.insertBefore(B,b.nextSibling),_.Ue(S,f.JSC$9306_getStartOffset(),B,B.length).select()));zH=null}}else zH=
null}else zH=null},
leftKeyPressed_:function(){zH="left"},
rightKeyPressed_:function(){zH="right"},
endKeyPressed_:function(){zH="end"},
maybeDeleteChip_:function(){var f=yIW(!0);if(f){var S=_.$V(),B=S.JSC$9306_getStartNode();S=S.JSC$9306_getStartOffset();_.Ee(B,S,f,f.childNodes.length).select()}},
maybeBackspaceChip_:function(){var f=yIW(!1);if(f){var S=_.$V(),B=S.JSC$9306_getStartNode();S=S.JSC$9306_getStartOffset();_.Ee(B,S,f,0).select()}},
maybeBackspaceChipWordMode_:function(f){var S=_.$V();if(S.isCollapsed()){var B=S.JSC$9306_getStartNode();S=S.JSC$9306_getStartOffset();var G=WVW(B,S,!0);G&&(_.Ee(B,S,G,0).select(),document.execCommand("delete"),f.preventDefault(),f.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(f){var S=_.$V();if(S.isCollapsed()){var B=S.JSC$9306_getStartNode();S=S.JSC$9306_getStartOffset();var G=WVW(B,S,!1);G&&(_.Ee(B,S,G,G.childNodes.length).select(),document.execCommand("delete"),f.preventDefault(),f.stopImmediatePropagation())}},
onTap_:function(f){if(!f.defaultPrevented&&(f.currentTarget.tagName==="YTD-COMMENTBOX"&&i1(f.target)&&f.preventDefault(),this.isEmojiPickerDisplayed)){var S=this.$$("#emojis"),B=this.$$("#emoji-button"),G=this.getEditableTextArea_();if((f=f.path?f.path:f.composedPath&&f.composedPath())&&!f.includes(S)&&!f.includes(G)&&!f.includes(B))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(f,S,B){return f==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&S!==void 0&&S.encryptedBlobId!==null&&S.sourceExternalVideoId!==null&&B!==void 0&&B.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(f,S){return f==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!S&&!!S.videoRenderer&&!!S.videoRenderer.videoId},
isValidPrefilledAttachment_:function(f,S,B){return this.isValidPrefilledImage_(f,S,B)||this.isValidPrefilledVideo_(f,B)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.K("enable_multi_image_post_creation")){var f=this.$$("ytd-backstage-multi-image-select-renderer");f&&f.hasImages()&&f.cancel()}else(f=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&f.cancel();(f=this.$["poll-attachment"])&&this.hasPoll_&&f.clearPollOptions();(f=this.$["image-poll-attachment"])&&this.hasImagePoll_&&f.resetPollOptions();(f=this.$["quiz-attachment"])&&this.hasQuiz_&&f.resetQuizOptions();
(f=this.$["video-link-attachment"])&&this.hasVideo_&&f.cancel();(f=this.$["access-restrictions-selector"].firstElementChild)&&f.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 _.m9(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.m9(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(f,S){f=Z6N(f,this.emojiManager,S).cloneNode(!0);for(S=f.firstChild;S;)if(S.nodeType!==1)S=S.nextSibling;else switch(S.tagName){case "BR":var B=_.OJ();_.t1m(B,S);S=B.nextSibling;break;case "DIV":(B=S.lastChild)&&S.nextSibling&&_.kU(_.OJ(),B);S.previousSibling&&(S.previousSibling.nodeType===1||S.previousSibling.nodeType===3&&!S.previousSibling.textContent.endsWith("\n"))&&_.Lb(_.OJ(),S);B&&B.nodeName==="BR"&&_.Pv(B);B=S;S.hasChildNodes()?(S=S.firstChild,
_.uGo(B)):(S=S.nextSibling,_.Pv(B));break;default:S=S.nextSibling}return cIN(f)},
onAddImageError_:function(f){f.stopPropagation();this.errorMessage_=_.uC(f.detail)},
setTextAreaValue_:function(f){f||(f="");var S=this.getEditableFormattedString_();S.text="";this.getEditableTextArea_().innerText="";typeof f==="string"&&(f={runs:[{text:f}]});S.text=f},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();zH=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var f=this.getEditableTextArea_();f&&(_.IH(f,f.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.nL("HTML_DIR")==="rtl"){var f=this.getEditableTextArea_(),S=this.getTextAreaValue()!==""?"auto":"rtl";f.setAttribute("dir",S)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var f;return goG((f=this.$["quiz-attachment"])==null?void 0:f.getExplanationText())||goG(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var f=null;if(this.isEmojiButtonDisplayed){var S=this.getInputRange_();S&&(f=this.emojiInput.retrieveTextBeforeRange(S))}this.insertText_(f,!0);this.updateCharCount_();this.setSubmitButton_();f=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=f.scrollHeight>f.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var f=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:f})},
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(f){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(f)},
onPasteEmoji_:function(f){f.preventDefault();f.stopImmediatePropagation();f=f.clipboardData.getData("text/plain");this.insertText_(f,!1,!1)},
insertText_:function(f,S,B){S=S===void 0?!1:S;B=B===void 0?!0:B;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&f){var G=this.getInputRange_().cloneRange();this.emojiManager&&G&&(S&&this.emojiInput.offsetStartOfRangeBy(G,f.length),this.insertTextWithEmojis_(G,f,B),M$9(this.getEditableTextArea_().lastChild)||(G=this.getInputRange_().cloneRange()),G&&(this.emojiInput.updateSuggestions(G,f),this.updateSuggestionOffset_(G)))}},
setSubmitButton_:function(){if(this.data){var f=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",S=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(f||S){var B=this.getTextAreaValue().trim();S=B===this.previousText_;B=!B||this.aboveCharLimit_;f&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(B=this.aboveCharLimit_);this.submitButtonDisabled=
S||B||!this.getTextLength();f&&_.K("enable_post_scheduling")&&(this.submitButtonDisabled=S&&!this.scheduledPublishTimeSec_||B)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.ac,computeCreationBoxClass_:function(f){return f?"focused":"not-focused"},
computeFooterMessageClass_:function(f,S){return S?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(f,S){return S?S:f},
computeFooterMessageHidden_:function(f,S){return!S&&!f},
computePlaceholderText_:function(f,S,B){return(B==="video"||B==="image")&&(f==null?0:f.prefilledPlaceholderText)?f==null?void 0:f.prefilledPlaceholderText:S==="poll"||S==="image-poll"?f==null?void 0:f.pollPostPlaceholderText:S==="quiz"?f==null?void 0:f.quizPostPlaceholderText:S==="image"?f==null?void 0:f.imagePostPlaceholderText:f==null?void 0:f.placeholderText},
computeHideAttachmentButtons_:function(f,S,B,G){return f===void 0?!1:G&&this.getSimpleString(G)===this.getSimpleString(f.rateLimitErrorMessage)?!0:S!=="none"||B!=="none"||!f.videoLinkButton&&!f.pollButton&&!f.imagePollButton&&!f.quizButton&&!f.imageButton},
computeHideDismissableAttachment_:function(f){return f!=="image"&&f!=="video"},
computeHasVideo_:function(f){return f==="video"},
computeHasImage_:function(f){return f==="image"},
computeHasPoll_:function(f){return f==="poll"},
computeHasImagePoll_:function(f){return f==="image-poll"},
computeHasQuiz_:function(f){return f==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(f){return f&&f.backstageAttachment?f.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!f.backstageAttachment.quizRenderer&&!f.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(f){if(this.isValidPrefilledAttachment_(f.purpose,f.prefilledImageData,f.backstageAttachment))return f.backstageAttachment},
computeEditAttachment_:function(f){if(this.computePrefilledContent_(f)===void 0)return f.backstageAttachment},
computeAuthorThumbnailDimension_:function(f,S){return f&&!S?24:40},
computeImageUploadEndpoint_:function(f){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",f)},
computeRateLimitErrorCommands_:function(f){var S,B;return f==null?void 0:(S=f.advancedTierFeatures)==null?void 0:(B=S.rateLimit)==null?void 0:B.rateLimitCommands},
computeIsBackstageComment_:function(f){return!(!f||f!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(f){return this.get("submitButton.buttonRenderer.serviceEndpoint",f)||this.get("replyButton.buttonRenderer.serviceEndpoint",f)||this.get("postButton.buttonRenderer.serviceEndpoint",f)},
computeSubmitButtonOverride:function(){if(_.K("web_modern_buttons")){var f,S;return{segmentedPosition:this.dropdownSchedulePanel_||!((f=this.data)==null?0:(S=f.postOptionsMenu)==null?0:S.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.K("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(f,S){f=this.get("submitButton.buttonRenderer",f)||this.get("replyButton.buttonRenderer",f)||this.get("postButton.buttonRenderer",f);S&&(f=S);f&&(f=Object.assign({},f),f.serviceEndpoint=void 0,f.isDisabled=this.submitButtonDisabled);return f},
computeHasExternalLinksAccess_:function(f){if(_.K("enable_rfa_external_links")){var S,B,G;return(G=f==null?void 0:(S=f.advancedTierFeatures)==null?void 0:(B=S.externalLinks)==null?void 0:B.allowExternalLinks)!=null?G:!0}return!0},
computeIsEmojiButtonDisplayed_:function(f){return f.emojiButton&&f.emojiPicker&&f.emojiPicker.emojiPickerRenderer&&f.emojiPicker.emojiPickerRenderer.categories?f.emojiPicker.emojiPickerRenderer.categories.find(function(S){return S.emojiPickerCategoryRenderer?S.emojiPickerCategoryRenderer.emojiIds&&S.emojiPickerCategoryRenderer.emojiIds.length>0:S.emojiPickerUpsellCategoryRenderer?S.emojiPickerUpsellCategoryRenderer.emojis&&S.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(f){return f.charLimit?f.charLimit:null},
computeDropdownSchedulingPanel_:function(f,S){if(f==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&S)return S},
computeInlineSchedulingPanel_:function(f,S){if(f==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&S)return S},
computeHideAuthorThumbnail_:function(f,S){return f||this.computeUseIdentityChip_(S)},
computeHideIdentityChipRenderer_:function(f,S){return f||!this.computeUseIdentityChip_(S)},
computeUseIdentityChip_:function(f){return!!f&&!!f.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(f){var S,B,G,g;(f==null?0:(S=f.detail)==null?0:(B=S.endpoint)==null?0:B.ypcGetOffersEndpoint)||(f==null?0:(G=f.detail)==null?0:(g=G.endpoint)==null?0:g.ypcOffersEndpoint)?(f.stopPropagation(),_.RD(this,[f.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",f)&&(f.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(f){this.addedAttachment="video";this.selectedVideoId_=f.detail.videoId},
commentboxStateEntityChanged_:function(f){var S=this;(f==null?void 0:f.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(f==null?void 0:f.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){S.focus()})},
onYtServiceRequestSent_:function(f,S){if(S.actions)for(f=_.m(S.actions),S=f.next();!S.done;S=f.next())S.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(f){this.isLoading=!1;var S=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",f),B,G,g,b=f==null?void 0:(B=f.detail)==null?void 0:(G=B.data)==null?void 0:(g=G.actionResult)==null?void 0:g.commentboxStateEntityKey;if(S)this.errorMessage_=S;else if(b){var z;this.dismissData_=f==null?void 0:(z=f.detail)==null?void 0:z.data;this.commentboxStateKey_=b}else{this.clear();var X;this.fire("yt-commentbox-dismiss",f==null?void 0:(X=f.detail)==
null?void 0:X.data)}},
onYtServiceRequestError_:function(f){f.stopPropagation();this.isLoading=!1;var S,B;if(((S=this.data)==null?void 0:S.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((B=this.data)==null?void 0:B.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(S=this.get("detail.error.args",f)||[],S.length>1&&S[1].message){this.handlePostsServiceRequestError_(S[1].message);return}(f=this.get("detail.error.message",f))?this.errorMessage_=this.data.errorMessage||_.uC(f):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(f){if(_.K("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var S=_.m(this.rateLimitErrorCommands),B=S.next();!B.done;B=S.next())if(B=B.value,B.errorLabel===f){_.Ps(B.command,this.hostElement);return}this.errorMessage_=_.uC(f)},
submitIfNotBackstagePost_:function(f){if(!this.isBackstagePost)this.onSubmit_(f)},
onSubmit_:function(f){var S=this,B,G,g,b,z,X,w,F,V,J,P,d,Q,x,E;return _.R(function(U){switch(U.nextAddress){case 1:f.stopPropagation();if(!S.serviceEndpoint||!S.isValidInput_())return U.return();if(S.shouldShowPostAadcNotice_())return S.showPostAadcNotice_(),U.return();if(S.shouldShowCommentAadcNotice_())return S.showCommentAadcNotice_(),U.return();if(!(S.$$("ytd-backstage-multi-image-select-renderer")&&S.hasImage_&&_.K("enable_multi_image_post_creation"))){U.jumpTo(2);break}B=S.$$("ytd-backstage-multi-image-select-renderer");
return _.h(U,B.getAllUploadStatuses(),3);case 3:G=U.yieldResult;if(!G)return U.return();g=_.m(G);for(b=g.next();!b.done;b=g.next())if(z=b.value,z.encryptedBlobId===void 0)return S.isLoading=!1,w=X=void 0,S.errorMessage_=(w=(X=S.imageUploadEndpoint_)==null?void 0:X.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?w:null,U.return();return U.return(S.submitForm_(void 0,void 0,void 0,void 0,B.images,S.taggedVideoId_));case 2:if(!S.hasImagePoll_||!S.$["image-poll-attachment"]){U.jumpTo(4);
break}return _.h(U,S.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:F=U.yieldResult;if(!F)return U.return();V=_.m(F);for(J=V.next();!J.done;J=V.next())if(P=J.value,!P.encryptedBlobId)return S.isLoading=!1,d=void 0,S.errorMessage_=(d=S.data.errorMessage)!=null?d:null,U.return();case 4:x=(Q=S.$$("ytd-backstage-image-select-renderer"))&&Q.uploadPromise(),E=S.getSharedPostId_(),x?x.then(function(){S.submitForm_.apply(S,_.$d(_.qb.apply(0,arguments)))}).catch(function(A){S.isLoading=!1;
S.errorMessage_=_.uC(A.message)}):S.selectedVideoId_?S.submitForm_(void 0,S.selectedVideoId_):S.prefilledAttachment_==="image"?S.submitForm_(S.prefilledImageData_.encryptedBlobId,void 0,void 0,S.prefilledImageData_.sourceExternalVideoId,void 0,S.taggedVideoId_):S.prefilledAttachment_==="video"?S.submitForm_(void 0,S.data.backstageAttachment.videoRenderer.videoId):E?S.submitForm_(void 0,void 0,E):S.taggedVideoId_!==void 0?S.submitForm_(void 0,void 0,void 0,void 0,void 0,S.taggedVideoId_):S.submitForm_(),
_.TT(U)}})},
openSchedulingPanel:function(f){f&&f.scheduleButton&&f.scheduleButton.buttonRenderer&&(this.scheduleButton_=f.scheduleButton.buttonRenderer);f&&f.dateTimePicker&&this.set("data.schedulingDateTimePicker",f.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(f){f.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(f){f.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(f){f.stopPropagation();f.detail.alertMessage&&(this.alertMessage_=f.detail.alertMessage)},
onImageSelected_:function(f){f.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(f){f.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(f){f.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(f.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(f){f.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(f){var S=this.$["video-link-attachment"];S&&S.onLaunchVideoPicker(f)},
onAttachmentDismiss_:function(f){f.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"&&_.K("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.K("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 f;if(this.addedAttachment==="image-poll"&&((f=this.$["image-poll-attachment"])==null||!f.isValid()))return!1;var S;if(this.addedAttachment==="quiz"&&((S=this.$["quiz-attachment"])==null||!S.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;f=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(f=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")f=!0;return f||!!this.getTextAreaValue().trim()},
submitForm_:function(f,S,B,G,g,b){var z=this.getTextAreaValue().trim(),X={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&z===this.previousText_&&(z=void 0);z!==void 0&&(X.comment_text=z);this.isLoading=!0;b!=void 0&&(X.tagged_video_id=b);f?(X.image_blob_id=f,this.imagePreviewCoordinates_&&(X.image_preview_coordinates=this.imagePreviewCoordinates_)):S?X.attached_video_id=S:B?X.shared_post_id=B:g&&g.length>0&&(X.images_data=g.map(function(w){return{encryptedBlobId:w.encryptedBlobId,
previewCoordinates:w.previewCoordinates}}));
G&&(X.source_video_id=G);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(X.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(X.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(X.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.K("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(X.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.K("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(X.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.RD(this,[this.serviceEndpoint,X])},
onIsInputFocusChanged_:function(f,S){f?this.fire("yt-autonav-pause-focus"):S!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(f){var S=this.getEditableTextArea_();[].concat(_.$d(f.dataTransfer.items)).forEach(function(B){B.kind==="string"&&B.type.match("^text/plain")&&B.getAsString(function(G){S.appendChild(document.createTextNode(G))})});
f.preventDefault()},
preventDefault_:function(f){f.preventDefault()},
onSuggestionInsert_:function(f){this.insertTextWithEmojis_(f.detail.range,f.detail.text)},
onEmojiSuggestionClick_:function(f){this.emojiInput.insertSuggestion(f.detail)},
computeSubmitButtonClass_:function(f,S){return!S||f?"":"with-options"},
updateSuggestionOffset_:function(f){if(this.emojiInput&&_.m9(this.emojiInput).querySelector("#dropdown")){var S=this.getEditableTextArea_().getBoundingClientRect().bottom,B=f.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(S-B)+5;S=this.getEditableTextArea_().getBoundingClientRect().left;f=f.getBoundingClientRect().left-S;_.m9(this.emojiInput).querySelector("#dropdown").style.marginLeft=f+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(f){if(_.K("enable_post_scheduling")&&this.data&&this.data.purpose){f=f.detail;if(Math.floor(Date.now()/1E3)>=f)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var S=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(S)||S!==f?this.scheduledPublishTimeSec_=f:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=f;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var f=["image-button","image-poll-button","poll-button"];_.K("enable_quiz_creation")&&f.push("quiz-button");_.K("auto_convert_posts_video_tag")||f.push("video-link-button");return f},
getButtonRenderer:function(f,S){if(f)switch(S){case "video-link-button":var B;return((B=f.videoLinkButton)==null?void 0:B.buttonRenderer)||void 0;case "image-button":var G;return((G=f.imageButton)==null?void 0:G.buttonRenderer)||void 0;case "poll-button":var g;return((g=f.pollButton)==null?void 0:g.buttonRenderer)||void 0;case "image-poll-button":var b;return((b=f.imagePollButton)==null?void 0:b.buttonRenderer)||void 0;case "quiz-button":var z;return((z=f.quizButton)==null?void 0:z.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var f;return(f=this.data)==null||!f.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var f,S;return!((f=this.data)==null||!f.openAadcDialog)&&!((S=this.aadcGuidelinesState_)==null||!S.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.nL("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var f;((f=this.data)==null?0:f.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.s4("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(f){f.clickTrackingParams&&_.ik().clickCommand(f);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.bW(this,"yt-close-popup-action")},
onHideIdentityChip:function(f){var S;this.set("data.placeholderText",(S=f.hideIdentityChipAction)==null?void 0:S.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var Rz=function(){var f=_.I.apply(this,arguments)||this;f.isOpen=!1;f.modern=_.K("web_modern_buttons");f.roundedContainer=!0;f.dropdownButtonOverride=_.K("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;f.inPopupContainer=!1;f.isCommentboxLoading=!1;var S=["image-button","image-poll-button","poll-button"];_.K("enable_quiz_creation")&&S.push("quiz-button");_.K("auto_convert_posts_video_tag")||S.push("video-link-button");f.attachmentButtonIds=S;f.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 f};
_.q(Rz,_.I);_.e=Rz.prototype;_.e.computeButtonOverride=function(){var f;return((f=this.data)==null?0:f.postOptionsMenu)&&_.K("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.e.configureRendererStamper=function(){var f={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"EXPAND"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.K("auto_convert_posts_video_tag")||(f["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return f};
_.e.ready=function(){var f=this,S=_.m9(this.hostElement).querySelector("#placeholder-area"),B=function(G){f.onOpen(G)};
S.addEventListener("tap",B);S.addEventListener("keypress",B)};
_.e.showButtonEduTooltip=function(){var f,S,B,G,g,b,z;if(_.K("enable_quiz_creation")&&((f=this.data)==null?0:(S=f.quizButton)==null?0:(B=S.buttonRenderer)==null?0:(G=B.hint)==null?0:(g=G.hintRenderer)==null?0:(b=g.content)==null?0:(z=b.bubbleHintRenderer)==null?0:z.text)&&(_.Sj.getInstance(),f=B4(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(f==null?void 0:
f.length)>0)){this.ytComponentBehavior.resolveCommand(f[0],{form:{element:this.quizButton}});return}var X;if((X=this.data)==null?0:X.imagePollButtonTooltip)if(_.Sj.getInstance(),X=B4(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(X==null?void 0:X.length)>0){this.ytComponentBehavior.resolveCommand(X[0],{form:{element:this.imagePollButton}});return}var w;_.K("enable_multi_image_post_creation")&&
((w=this.data)==null?0:w.multiImageButtonTooltip)&&(_.Sj.getInstance(),w=B4(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(w==null?void 0:w.length)>0&&this.ytComponentBehavior.resolveCommand(w[0],{form:{element:this.imageButton}}))};
_.e.onCreatePollAction=function(f){_.H(f,Rhj)&&(this.JSC$13745_commentbox.addedAttachment="poll",this.openDialog())};
_.e.onAddVideoLinkAction=function(f){if(_.H(f,zh1))this.JSC$13745_commentbox.onAddVideoLink(f)};
_.e.onShowSchedulingPanelCommand=function(f){(f=_.H(f,IWv))&&this.openSchedulingPanel(f)};
_.e.onCreateImagePollCommand=function(f){_.H(f,tnN)&&(this.JSC$13745_commentbox.openImagePollComponent(),this.openDialog())};
_.e.onCreateQuizCommand=function(f){_.H(f,unm)&&(this.JSC$13745_commentbox.openQuizComponent(),this.openDialog())};
_.e.openSchedulingPanel=function(f){_.K("enable_post_scheduling")&&(this.openDialog(),this.JSC$13745_commentbox.openSchedulingPanel(f))};
_.e.onCreateCommentAction=function(f){this.get("createCommentAction.contents",f)&&(this.JSC$13745_commentbox.clear(),this.closeDialog())};
_.e.onOpen=function(f){f instanceof KeyboardEvent&&f.type==="keypress"&&f.keyCode!==13&&f.keyCode!==32||(this.data.prepareAccountEndpoint?_.ew(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.e.onYtCommentboxDismiss=function(){this.closeDialog()};
_.e.onYtCommentboxLoadingStart=function(f){f.stopPropagation();this.isCommentboxLoading=!0};
_.e.onYtCommentboxLoadingEnd=function(f){f.stopPropagation();this.isCommentboxLoading=!1};
_.e.onYtVideoLinkButtonCancel=function(f){f.stopPropagation();this.onOpen(f)};
_.e.onYtVideoLinkSelected=function(f){f.stopPropagation();this.onOpen(f)};
_.e.onIronSelect=function(f){f.stopPropagation();f.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=f.detail.item.value&&(this.accessRestriction?(this.accessRestriction=f.detail.item.value,this.onOpen(f)):this.accessRestriction=f.detail.item.value)};
_.e.onYtNavigate=function(f){this.get("detail.endpoint.backstageImageUploadEndpoint",f)&&(this.JSC$13745_commentbox.addedAttachment="image",this.JSC$13745_commentbox.submitButtonDisabled=!0,this.onOpen(f))};
_.e.onRequestSent=function(f){if(_.K("web_button_rework"))for(var S=_.m(f.detail),B=S.next();!B.done;B=S.next())_.H(B.value,g91)&&(this.JSC$13745_commentbox.addedAttachment="image",this.JSC$13745_commentbox.submitButtonDisabled=!0,this.onOpen(f))};
_.e.openDialog=function(){this.JSC$13745_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$13745_commentbox.focus()};
_.e.onPopupClosed=function(){_.Sj.getInstance()};
_.e.computeCreationDisabled=function(f){return!!f};
_.e.computeIsCreationDialog=function(f){return!!f&&f==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.e.computeDisabledPostButton=function(f){if(!f)return null;f.isDisabled=!0;return f};
_.e.computeIsCreationDialogWithHeader=function(f){return!this.inPopupContainer&&!!f&&!!f.authorText&&f.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.e.computeIsHeaderHidden=function(f,S){return!f||S};
_.e.computeDropdownRendererClasses=function(f){return f?["text-secondary-style"]:[]};
_.e.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var f=_.m9(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;f&&f.reset()};
Rz.prototype.onPopupClosed=Rz.prototype.onPopupClosed;Rz.prototype.onRequestSent=Rz.prototype.onRequestSent;Rz.prototype.onYtNavigate=Rz.prototype.onYtNavigate;Rz.prototype.onIronSelect=Rz.prototype.onIronSelect;Rz.prototype.onYtVideoLinkSelected=Rz.prototype.onYtVideoLinkSelected;Rz.prototype.onYtVideoLinkButtonCancel=Rz.prototype.onYtVideoLinkButtonCancel;Rz.prototype.onYtCommentboxLoadingEnd=Rz.prototype.onYtCommentboxLoadingEnd;Rz.prototype.onYtCommentboxLoadingStart=Rz.prototype.onYtCommentboxLoadingStart;
Rz.prototype.onYtCommentboxDismiss=Rz.prototype.onYtCommentboxDismiss;Rz.prototype.showButtonEduTooltip=Rz.prototype.showButtonEduTooltip;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Rz.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Rz.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Rz.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],Rz.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Rz.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Rz.prototype,"isOpen",void 0);_.N([_.n({computed:"computeButtonOverride(data)"}),_.Z("design:type",Object)],Rz.prototype,"buttonOverride",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Rz.prototype,"modern",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Rz.prototype,"roundedContainer",void 0);_.N([_.n(),_.Z("design:type",Object)],Rz.prototype,"dropdownButtonOverride",void 0);_.N([_.n({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.Z("design:type",Boolean)],Rz.prototype,"creationDisabled",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Rz.prototype,"enableCreationBox",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.Z("design:type",Boolean)],Rz.prototype,"isCreationDialog",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Rz.prototype,"inPopupContainer",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.Z("design:type",Boolean)],Rz.prototype,"isCreationDialogWithHeader",void 0);_.N([_.n(),_.Z("design:type",Object)],Rz.prototype,"accessRestriction",void 0);
_.N([_.n({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.Z("design:type",Array)],Rz.prototype,"dropdownRendererClasses",void 0);_.N([_.n(),_.Z("design:type",Object)],Rz.prototype,"isCommentboxLoading",void 0);_.N([_.n(),_.Z("design:type",Array)],Rz.prototype,"attachmentButtonIds",void 0);_.N([_.vF("#image-button"),_.Z("design:type",HTMLElement)],Rz.prototype,"imageButton",void 0);
_.N([_.vF("#image-poll-button"),_.Z("design:type",HTMLElement)],Rz.prototype,"imagePollButton",void 0);_.N([_.vF("#quiz-button"),_.Z("design:type",HTMLElement)],Rz.prototype,"quizButton",void 0);_.N([_.vF("#commentbox"),_.Z("design:type",Object)],Rz.prototype,"JSC$13745_commentbox",void 0);_.N([_.JO("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Rz.prototype,"showButtonEduTooltip",null);
_.N([_.Vg("yt-commentbox-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Rz.prototype,"onYtCommentboxDismiss",null);_.N([_.Vg("yt-commentbox-loading-start"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Rz.prototype,"onYtCommentboxLoadingStart",null);
_.N([_.Vg("yt-commentbox-loading-end"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Rz.prototype,"onYtCommentboxLoadingEnd",null);_.N([_.Vg("yt-video-link-button-cancel"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Rz.prototype,"onYtVideoLinkButtonCancel",null);
_.N([_.Vg("yt-video-link-selected"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Rz.prototype,"onYtVideoLinkSelected",null);_.N([_.Vg("iron-select"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Rz.prototype,"onIronSelect",null);_.N([_.Vg("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Rz.prototype,"onYtNavigate",null);
_.N([_.Vg("yt-service-request-sent-button-renderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Rz.prototype,"onRequestSent",null);_.N([_.Vg("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Rz.prototype,"onPopupClosed",null);_.N([_.C({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],Rz);
_.p(Rz,"ytd-backstage-post-dialog-renderer",function(){if(aOv!==void 0)return aOv;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return aOv=f},{mode:1});var YPj;var rC6;var XC=function(){return _.I.apply(this,arguments)||this};
_.q(XC,_.I);_.e=XC.prototype;_.e.computeHeartButtonStyle=function(f){return(f==null?0:f.styleType)?f.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.e.onYtButtonTap=function(){if(this.data.isEnabled){var f=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(f=this.getEndpoint(f))&&_.oy().resolve(_.S7).resolveCommand(f,{form:{element:this.hostElement}})}else(f=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(f)};
_.e.toggle=function(f){this.set("data.isHearted",f!==void 0?f:!this.data.isHearted)};
_.e.getEndpoint=function(f){var S,B=(S=this.data)==null?void 0:S.heartEndpoint,G;S=(G=this.data)==null?void 0:G.unheartEndpoint;if(B&&S)return f?S:B};
_.e.computeButtonAccessibility=function(f,S){var B,G,g=f==null?void 0:(B=f.heartedAccessibility)==null?void 0:(G=B.accessibilityData)==null?void 0:G.label,b,z;f=f==null?void 0:(b=f.unheartedAccessibility)==null?void 0:(z=b.accessibilityData)==null?void 0:z.label;return S?g:f};
_.y3.Object.defineProperties(XC.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 f;return _.K("kevlar_system_icons")&&!((f=this.data)==null||!f.isHearted)}}});
XC.prototype.onYtButtonTap=XC.prototype.onYtButtonTap;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],XC.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.a5),_.Z("design:type",Object)],XC.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],XC.prototype,"data",void 0);_.N([_.k("data.isHearted"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],XC.prototype,"heartTooltip",null);
_.N([_.k("data.isHearted"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],XC.prototype,"iconFilled",null);_.N([_.n({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.Z("design:type",String)],XC.prototype,"buttonAccessibility",void 0);_.N([_.n({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.Z("design:type",String)],XC.prototype,"heartButtonStyle",void 0);
_.N([_.Vg("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],XC.prototype,"onYtButtonTap",null);_.N([_.C({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],XC);
_.p(XC,"ytd-creator-heart-renderer",function(){if(rC6!==void 0)return rC6;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return rC6=f},{mode:1});var wa=function(){var f=_.I.apply(this,arguments)||this;f.hasCreatorReply=!1;f.buttonOverrides={size:"S",iconPosition:"icon-only"};f.replyButtonOverrides={size:"S",type:"text"};f.forceIconButton=!_.K("web_modern_buttons");f.modern=_.K("web_modern_buttons");f.buttonTooltipPosition="bottom";f.systemIcons=_.K("kevlar_system_icons");f.replyDialog=null;return f};
_.q(wa,_.I);_.e=wa.prototype;
_.e.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]]"}}}}}};
_.e.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.e.dataChange=function(){this.replyDialog&&_.m9(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var f,S,B;this.isLiked=this.systemIcons&&!!((f=this.data)==null?0:(S=f.likeButton)==null?0:(B=S.toggleButtonRenderer)==null?0:B.isToggled)};
_.e.computeShowVoteCountBeginning=function(f,S){return f===void 0||S===void 0?!0:f.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!S&&this.ytRendererBehavior.getSimpleString(S)!=="0"};
_.e.computeShowVoteCountEnd=function(f,S){return f===void 0||S===void 0?!0:f.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!S&&this.ytRendererBehavior.getSimpleString(S)!=="0"};
_.e.computeShowCommentCount=function(f,S){return f===void 0||S===void 0?!0:f.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!S&&this.ytRendererBehavior.getSimpleString(S)!=="0"};
_.e.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.e.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.e.showReplyDialog=function(f){f&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.m9(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=f,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.e.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.e.onRequestSent=function(f){if(_.K("web_button_rework")){f=_.m(f.detail);for(var S=f.next();!S.done;S=f.next())(S=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",S.value))&&this.showReplyDialog(S)}};
_.e.onYtNavigate=function(f){var S,B;(f=(S=_.H(f.detail.endpoint,_.bT8))==null?void 0:(B=S.dialog)==null?void 0:B.commentReplyDialogRenderer)&&this.showReplyDialog(f)};
_.e.onYtServiceRequestSent=function(f,S){f.stopPropagation();if(S.actions)for(f=0;f<S.actions.length;f++){var B=_.H(S.actions[f],hho);B&&this.handleUpdateCommentVoteAction(B)}};
_.e.handleUpdateCommentVoteAction=function(f){this.voteCount=f.voteCount||_.uC("0");f.voteStatus==="LIKE"?this.JSC$13756_ytdDislikeToggleButtonRenderer.toggle(!1):f.voteStatus==="DISLIKE"?this.JSC$13756_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$13756_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$13756_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.e.computeReplyButtonHidden=function(f){return f};
_.e.computeReplyButtonBeginning=function(f){return(f==null?0:f.replyButton)&&f.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?f.replyButton:void 0};
_.e.computeReplyButtonEnd=function(f){return(f==null?0:f.replyButton)&&f.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?f.replyButton:void 0};
_.e.computeActionButtonStyle=function(f){return(f==null?0:f.style)?f.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.e.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.e.onYtToggleButton=function(f){var S,B;this.isLiked=this.systemIcons&&!!((S=f.detail)==null?0:(B=S.actions)==null?0:B.like)};
wa.prototype.onYtToggleButton=wa.prototype.onYtToggleButton;wa.prototype.onButtonTooltipPositionChanged=wa.prototype.onButtonTooltipPositionChanged;wa.prototype.onYtServiceRequestSent=wa.prototype.onYtServiceRequestSent;wa.prototype.onYtNavigate=wa.prototype.onYtNavigate;wa.prototype.onRequestSent=wa.prototype.onRequestSent;wa.prototype.onYtCommentboxDismiss=wa.prototype.onYtCommentboxDismiss;wa.prototype.dataChange=wa.prototype.dataChange;
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],wa.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],wa.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],wa.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],wa.prototype,"voteCount",void 0);_.N([_.n(),_.Z("design:type",Object)],wa.prototype,"commentCount",void 0);_.N([_.n(),_.Z("design:type",Object)],wa.prototype,"replyThumbnail",void 0);
_.N([_.n(),_.Z("design:type",Object)],wa.prototype,"hasCreatorReply",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],wa.prototype,"enableCreationBox",void 0);_.N([_.n({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.Z("design:type",String)],wa.prototype,"actionButtonsStyle",void 0);_.N([_.n({computed:"computeReplyButtonBeginning(data)"}),_.Z("design:type",Object)],wa.prototype,"replyButtonBeginning",void 0);
_.N([_.n({computed:"computeReplyButtonEnd(data)"}),_.Z("design:type",Object)],wa.prototype,"replyButtonEnd",void 0);_.N([_.n(),_.Z("design:type",Object)],wa.prototype,"buttonOverrides",void 0);_.N([_.n(),_.Z("design:type",Object)],wa.prototype,"replyButtonOverrides",void 0);_.N([_.n(),_.Z("design:type",Object)],wa.prototype,"forceIconButton",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],wa.prototype,"useCommentIcon",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],wa.prototype,"modern",void 0);_.N([_.n(),_.Z("design:type",Object)],wa.prototype,"buttonTooltipPosition",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],wa.prototype,"systemIcons",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],wa.prototype,"isLiked",void 0);_.N([_.vF("ytd-button-renderer"),_.Z("design:type",Object)],wa.prototype,"ytdReplyButtonRenderer",void 0);
_.N([_.vF("#like-button"),_.Z("design:type",Object)],wa.prototype,"JSC$13756_ytdLikeToggleButtonRenderer",void 0);_.N([_.vF("#dislike-button"),_.Z("design:type",Object)],wa.prototype,"JSC$13756_ytdDislikeToggleButtonRenderer",void 0);_.N([_.vF("#reply-dialog"),_.Z("design:type",HTMLElement)],wa.prototype,"replyDialogElement",void 0);_.N([_.vF("#reply-button"),_.Z("design:type",HTMLElement)],wa.prototype,"replyButtonElement",void 0);
_.N([_.vF("#reply-button-end"),_.Z("design:type",HTMLElement)],wa.prototype,"replyButtonEndElement",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],wa.prototype,"dataChange",null);_.N([_.Vg("yt-commentbox-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],wa.prototype,"onYtCommentboxDismiss",null);
_.N([_.Vg("yt-service-request-sent-button-renderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],wa.prototype,"onRequestSent",null);_.N([_.Vg("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],wa.prototype,"onYtNavigate",null);
_.N([_.Vg("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.N1]),_.Z("design:returntype")],wa.prototype,"onYtServiceRequestSent",null);_.N([_.JO("buttonTooltipPosition"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],wa.prototype,"onButtonTooltipPositionChanged",null);
_.N([_.Vg("yt-toggle-button"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],wa.prototype,"onYtToggleButton",null);_.N([_.C({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],wa);
_.p(wa,"ytd-comment-action-buttons-renderer",function(){if(YPj!==void 0)return YPj;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return YPj=f},{mode:1});var jq7;var h7=function(){return _.I.apply(this,arguments)||this};
_.q(h7,_.I);h7.prototype.focus=function(){_.m9(this.hostElement).querySelector("#commentbox").focus()};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],h7.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],h7.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],h7.prototype,"zeroStepChannelCreationRenderer",void 0);_.N([_.C({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],h7);
_.p(h7,"ytd-comment-dialog-renderer",function(){if(jq7!==void 0)return jq7;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return jq7=f},{mode:1});var O$N;var TH=function(){var f=_.I.apply(this,arguments)||this;f.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.K("enable_web_delhi_icons")};f.replyButtonOverrides={size:"S",type:"text"};return f};
_.q(TH,_.I);_.e=TH.prototype;_.e.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.e.detached=function(){this.replyBox&&this.replyBox.remove()};
_.e.showReplyDialog=function(f){if(f){var S=this.replyBox;S||(S=document.createElement("ytd-comment-reply-dialog-renderer"),S.id="replybox",_.m9(this.replyDialogDiv).appendChild(S));S.data=f;this.replyDialogDiv.hidden=!1;S.openDialog()}};
_.e.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.e.onYtServiceRequestSent=function(f,S){f.stopPropagation();if(S.actions)for(var B=0;B<S.actions.length;B++){var G=_.H(S.actions[B],hho);G?this.handleUpdateCommentVoteAction(G):f.target===this.heartButton&&this.toggleHeartState()}};
_.e.handleUpdateCommentVoteAction=function(f){var S;(S=this.toolbarState)!=null&&S.key&&this.ytdReduxBehavior.dispatch(_.LF("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:f.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":f.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.e.toggleHeartState=function(){var f;(f=this.toolbarState)!=null&&f.key&&this.ytdReduxBehavior.dispatch(_.LF("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.y3.Object.defineProperties(TH.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var f,S,B;return(((f=this.toolbarState)==null?void 0:f.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(S=this.toolbarData)==null?void 0:S.likeCountLiked:(B=this.toolbarData)==null?void 0:B.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.toolbarSurface)==null?void 0:f.commentDisabledActionCommand)!==void 0}},
isSubscribersOnlyComments:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.toolbarSurface)==null?void 0:f.subscribersOnlySnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.toolbarSurface)==null?void 0:f.prepareAccountCommand)!==void 0&&!_.K("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var f,S=_.H((f=this.toolbarSurface)==null?void 0:f.prepareAccountCommand,_.Un),B,G,g,b,z,X,w,F,V;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((B=this.toolbarSharedData)==null||!B.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((G=this.toolbarState)==null?void 0:G.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:S!=null?S:_.H((g=this.toolbarSurface)==null?void 0:g.likeCommand,_.Un),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:S!=null?S:_.H((b=this.toolbarSurface)==null?void 0:b.unlikeCommand,_.Un),defaultCommand:this.isVisiblyDisabled?_.H((z=this.toolbarSurface)==null?void 0:z.commentDisabledActionCommand,_.Un):void 0,defaultTooltip:(X=this.toolbarData)==null?void 0:X.likeInactiveTooltip,toggledTooltip:(w=this.toolbarData)==null?void 0:w.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(F=this.toolbarData)==null?void 0:F.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(V=this.toolbarSharedData)==null?void 0:V.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var f,S=_.H((f=this.toolbarSurface)==null?void 0:f.prepareAccountCommand,_.Un),B,G,g,b,z,X,w,F,V,J;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((B=this.toolbarSharedData)==null||!B.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((G=this.toolbarState)==null?void 0:G.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:S!=null?S:_.H((g=this.toolbarSurface)==null?void 0:g.dislikeCommand,_.Un),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:S!=null?S:_.H((b=this.toolbarSurface)==null?void 0:b.undislikeCommand,_.Un),defaultCommand:this.isVisiblyDisabled?_.H((z=this.toolbarSurface)==null?void 0:z.commentDisabledActionCommand,_.Un):void 0,defaultTooltip:(X=this.toolbarData)==null?void 0:X.dislikeInactiveTooltip,toggledTooltip:(w=this.toolbarData)==null?void 0:
w.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(F=this.toolbarSharedData)==null?void 0:F.dislikeReplyButtonA11y:(V=this.toolbarSharedData)==null?void 0:V.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(J=this.toolbarSharedData)==null?void 0:J.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var f,S,B;if(((f=this.toolbarState)==null?void 0:f.heartState)!==void 0&&((S=this.toolbarState)==null?void 0:S.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((B=this.toolbarState)==null?void 0:B.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var G,g,b,z,X,w,F,V,J,P,d,Q,x,E;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(G=this.toolbarData)==null?void 0:G.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((g=this.toolbarState)==null?void 0:g.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((b=this.toolbarState)==null?void 0:b.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((z=this.toolbarState)==null?void 0:z.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((X=this.toolbarState)==null?void 0:X.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.H((w=this.toolbarSurface)==null?void 0:w.heartCommand,
_.Un),unheartEndpoint:this.isVisiblyDisabled?void 0:_.H((F=this.toolbarSurface)==null?void 0:F.unheartCommand,_.Un),disabledEndpoint:this.isVisiblyDisabled?_.H((V=this.toolbarSurface)==null?void 0:V.commentDisabledActionCommand,_.Un):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(J=this.toolbarData)==null?void 0:J.heartActiveTooltip,unheartedTooltip:(P=this.toolbarData)==null?void 0:P.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((d=
this.toolbarState)==null?void 0:d.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(Q=this.toolbarSharedData)==null?void 0:Q.unheartButtonA11y:(x=this.toolbarSharedData)==null?void 0:x.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(E=this.toolbarSharedData)==null?void 0:E.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.toolbarSurface)==null||!f.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var f,S,B,G;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubscribersOnlyComments?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(f=this.commentStrings)==null?void 0:f.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubscribersOnlyComments?void 0:_.H((S=this.toolbarSurface)==null?void 0:S.replyCommand,_.Un),command:this.isVisiblyDisabled?_.H((B=this.toolbarSurface)==null?void 0:B.commentDisabledActionCommand,
_.Un):this.isSubscribersOnlyComments?_.H((G=this.toolbarSurface)==null?void 0:G.subscribersOnlySnackbarCommand,_.Un):void 0}}}});
TH.prototype.onYtServiceRequestSent=TH.prototype.onYtServiceRequestSent;TH.prototype.hideReplyDialogDiv=TH.prototype.hideReplyDialogDiv;_.N([_.n(),_.Z("design:type",Object)],TH.prototype,"commentStrings",void 0);_.N([_.n(),_.Z("design:type",Boolean)],TH.prototype,"isReply",void 0);_.N([_.n(),_.Z("design:type",Object)],TH.prototype,"toolbarData",void 0);_.N([_.n(),_.Z("design:type",Object)],TH.prototype,"toolbarSharedData",void 0);
_.N([_.n(),_.Z("design:type",String)],TH.prototype,"toolbarStateKey",void 0);_.N([_.n(),_.Z("design:type",String)],TH.prototype,"toolbarSurfaceKey",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],TH.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],TH.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],TH.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.vF("#reply-dialog"),_.Z("design:type",HTMLElement)],TH.prototype,"replyDialogDiv",void 0);_.N([_.vF("#replybox"),_.Z("design:type",Object)],TH.prototype,"replyBox",void 0);_.N([_.vF("ytd-creator-heart-renderer"),_.Z("design:type",Object)],TH.prototype,"heartButton",void 0);_.N([_.n({selector:function(f,S){return _.w9(f.entities,"engagementToolbarStateEntityPayload",S)},
selectorArgs:["toolbarStateKey"]}),_.Z("design:type",Object)],TH.prototype,"toolbarState",void 0);_.N([_.n({selector:PSQ,selectorArgs:["toolbarSurfaceKey"]}),_.Z("design:type",Object)],TH.prototype,"toolbarSurface",void 0);_.N([_.n(),_.Z("design:type",Object)],TH.prototype,"buttonOverrides",void 0);_.N([_.Vg("yt-commentbox-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],TH.prototype,"hideReplyDialogDiv",null);
_.N([_.k("toolbarData","toolbarState"),_.Z("design:type",String),_.Z("design:paramtypes",[])],TH.prototype,"likeCount",null);_.N([_.k("likeCount"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],TH.prototype,"showLikeCount",null);_.N([_.k("toolbarSurface"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],TH.prototype,"isVisiblyDisabled",null);_.N([_.k("toolbarSurface"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],TH.prototype,"isSubscribersOnlyComments",null);
_.N([_.k("toolbarSurface"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],TH.prototype,"hasPrepareAccountCommand",null);_.N([_.k("toolbarData","toolbarState","toolbarSurface"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],TH.prototype,"likeToggleButtonRenderer",null);_.N([_.k("isReply","toolbarData","toolbarState","toolbarSurface"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],TH.prototype,"dislikeToggleButtonRenderer",null);
_.N([_.k("toolbarData","toolbarState","toolbarSurface"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],TH.prototype,"creatorHeartSupportedRenderer",null);_.N([_.k("toolbarSurface"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],TH.prototype,"hasReplyCommand",null);_.N([_.k("toolbarSurface","commentStrings","isVisiblyDisabled"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],TH.prototype,"replyButtonRenderer",null);
_.N([_.n(),_.Z("design:type",Object)],TH.prototype,"replyButtonOverrides",void 0);_.N([_.Vg("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.N1]),_.Z("design:returntype")],TH.prototype,"onYtServiceRequestSent",null);_.N([_.C({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],TH);
_.p(TH,"ytd-comment-engagement-bar",function(){if(O$N!==void 0)return O$N;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return O$N=f},{mode:1});var xdL;var FC=function(){return _.I.apply(this,arguments)||this};
_.q(FC,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],FC.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],FC.prototype,"data",void 0);_.N([_.C({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],FC);
_.p(FC,"ytd-comment-inline-thumbnail-renderer",function(){if(xdL!==void 0)return xdL;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return xdL=f},{mode:1});var Ehj;var Vb=function(){return _.I.apply(this,arguments)||this};
_.q(Vb,_.I);Vb.prototype.onMessageTap=function(){if(this.onTapCommand){var f=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);f&&this.ytdOpenPopupBehavior.openPopup(f)}};
_.y3.Object.defineProperties(Vb.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var f,S,B;return(f=this.data)==null?void 0:(S=f.button)==null?void 0:(B=S.buttonRenderer)==null?void 0:B.command}}});
_.N([_.r(_.a5),_.Z("design:type",Object)],Vb.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Vb.prototype,"data",void 0);_.N([_.k("data.button.buttonRenderer.command"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Vb.prototype,"onTapCommand",null);_.N([_.C({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],Vb);
_.p(Vb,"ytd-comment-pause-composer-renderer",function(){if(Ehj!==void 0)return Ehj;var f=document.createElement("template");_.Y(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" on-click="onMessageTap" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return Ehj=f},{mode:1});var LOm;var kgo;var J7=function(){var f=_.I.apply(this,arguments)||this;f.isOpen=!1;return f};
_.q(J7,_.I);_.e=J7.prototype;_.e.dataChanged=function(){this.isOpen=!1};
_.e.onTap=function(){this.data&&(this.data.navigationEndpoint?_.ew(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.e.focus=function(){this.JSC$13785_commentbox.focus()};
_.e.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.e.openDialog=function(){this.isOpen=!0;this.JSC$13785_commentbox.focus();this.JSC$13785_commentbox.maybeHeightChanged()};
J7.prototype.onYtCommentboxDismiss=J7.prototype.onYtCommentboxDismiss;J7.prototype.dataChanged=J7.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],J7.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],J7.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],J7.prototype,"isOpen",void 0);_.N([_.vF("#commentbox"),_.Z("design:type",Object)],J7.prototype,"JSC$13785_commentbox",void 0);
_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],J7.prototype,"dataChanged",null);_.N([_.Vg("yt-commentbox-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],J7.prototype,"onYtCommentboxDismiss",null);_.N([_.C({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],J7);
_.p(J7,"ytd-comment-reply-dialog-renderer",function(){if(kgo!==void 0)return kgo;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return kgo=f},{mode:1});var nhm;var PJ=function(){return _.I.apply(this,arguments)||this};
_.q(PJ,_.I);_.y3.Object.defineProperties(PJ.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var f,S,B=(f=this.data)==null?void 0:(S=f.icon)==null?void 0:S.iconType;return B?"yt-icons:"+B.toLowerCase():null}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],PJ.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],PJ.prototype,"data",void 0);_.N([_.n(),_.k("data.icon"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],PJ.prototype,"icon",null);_.N([_.C({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],PJ);
_.p(PJ,"ytd-pinned-comment-badge-renderer",function(){if(nhm!==void 0)return nhm;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return nhm=f},{mode:1});var sqm;var Dd6={},I8$={input:!0,meta:!0,br:!0,link:!0,img:!0},vJ=null;Dd6.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(){vJ==null&&(vJ=document.createElement("tp-yt-paper-tooltip"),vJ.offset=8,vJ.fitToVisibleBounds=!0)},
onMouseOver_:function(f){if(f=_.kv(f.target,function(g){return g==this||g.getAttribute&&g.getAttribute("shared-tooltip-text")}.bind(this),!0)){var S=f.getAttribute("shared-tooltip-text");
if(S){var B=this,G=null;f!=this&&(f.tagName.toLowerCase()in I8$?B=f.parentElement:B=f,f.id&&(G=f.id));this.polymerController.createTooltipIfRequired_();if(vJ.parentElement!=B||vJ.for!=G)(0,_.wv)(vJ).textContent=S,_.m9(B).appendChild(vJ),vJ.for=G,vJ.animationDelay=this.polymerController.sharedTooltipAnimationDelay,vJ.position=this.polymerController.sharedTooltipPosition}}}};var Kx=function(){return _.I.apply(this,arguments)||this};
_.q(Kx,_.I);Kx.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]]"}}}}}};
Kx.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
Kx.prototype.colorChanged=function(){var f,S,B,G=(f=this.data)==null?void 0:(S=f.color)==null?void 0:(B=S.basicColorPaletteData)==null?void 0:B.foregroundBodyColor;G&&(this.rgbBadgeColor=_.pn(G));_.m9(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
Kx.prototype.tooltipChanged=function(){var f;((f=this.data)==null?0:f.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
Kx.prototype.tooltipChanged=Kx.prototype.tooltipChanged;Kx.prototype.colorChanged=Kx.prototype.colorChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Kx.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Kx.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(Dd6.YtSharedTooltipBehavior),_.Z("design:type",Object)],Kx.prototype,"ytSharedTooltipBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Kx.prototype,"data",void 0);
_.N([_.n({value:"#4285F4"}),_.Z("design:type",String)],Kx.prototype,"rgbBadgeColor",void 0);_.N([_.JO("data.color"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Kx.prototype,"colorChanged",null);_.N([_.JO("data.tooltip"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Kx.prototype,"tooltipChanged",null);_.N([_.C({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],Kx);
_.p(Kx,"ytd-sponsor-comment-badge-renderer",function(){if(sqm!==void 0)return sqm;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return sqm=f},{mode:1});var Udg;var CDN;var da=function(){return _.I.apply(this,arguments)||this};
_.q(da,_.I);da.prototype.computeState=function(f){switch(f==null?void 0:f.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"}};
da.prototype.updateStateIdentifier=function(f){if(this.viewModel.triStateKey){var S=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.LF("triStateButtonStateEntityPayload",S,{key:S,stateIdentifier:f}))}};
da.prototype.onClick=function(){var f=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(){f.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){f.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.y3.Object.defineProperties(da.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 f;return((f=this.data)==null?void 0:f.buttonText)||""}}});
_.N([_.n(),_.Z("design:type",Object)],da.prototype,"viewModel",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],da.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],da.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],da.prototype,"ytRendererBehavior",void 0);_.N([_.n({selector:vlW,selectorArgs:["viewModel.triStateKey"]}),_.Z("design:type",Object)],da.prototype,"triStateButtonStateEntity",void 0);
_.N([_.n({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.Z("design:type",String)],da.prototype,"state",void 0);_.N([_.k("viewModel","state"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],da.prototype,"data",null);_.N([_.k("data"),_.Z("design:type",String),_.Z("design:paramtypes",[])],da.prototype,"buttonText",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],da);
_.p(da,"ytd-tri-state-button-view-model",function(){if(CDN!==void 0)return CDN;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return CDN=f},{mode:1});var pj7;var ACm;var iY=function(){var f=_.I.apply(this,arguments)||this;f.defaultIconToFilled=!_.K("kevlar_fill_comment_chip_icon_killswitch");return f};
_.q(iY,_.I);iY.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
iY.prototype.dataChanged=function(){if(this.data){var f,S;((f=this.data.chipColorPalette)==null?0:f.backgroundColor)&&((S=this.data.chipColorPalette)==null?0:S.foregroundTitleColor)&&_.hO(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.AK(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.AK(this.data.chipColorPalette.foregroundTitleColor)});var B;((B=this.data)==null?0:B.command)?(_.hO(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.hO(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}};
iY.prototype.onTap=function(){var f;if(this.data&&(f=this.data)!=null&&f.command){var S;this.ytComponentBehavior.resolveCommand((S=this.data)==null?void 0:S.command)}};
iY.prototype.getIconSize=function(){return _.K("kevlar_fill_comment_chip_icon_killswitch")?24:12};
iY.prototype.onTap=iY.prototype.onTap;iY.prototype.dataChanged=iY.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],iY.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],iY.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.qx),_.Z("design:type",Object)],iY.prototype,"ironA11yKeysBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],iY.prototype,"data",void 0);
_.N([_.n(),_.Z("design:type",Object)],iY.prototype,"basePriceText",void 0);_.N([_.n(),_.Z("design:type",Object)],iY.prototype,"chipIcon",void 0);_.N([_.n(),_.Z("design:type",Object)],iY.prototype,"defaultIconToFilled",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],iY.prototype,"dataChanged",null);_.N([_.Vg("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],iY.prototype,"onTap",null);
_.N([_.nP({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],iY);
_.p(iY,"yt-pdg-comment-chip-renderer",function(){if(ACm===void 0){var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;pj7===void 0&&(pj7=document.createElement("template"));var G=pj7;B.call(S,G.content.cloneNode(!0),f.content.firstChild);ACm=f}f=ACm;return f},{mode:2});var HJ=function(){var f=_.I.apply(this,arguments)||this;f.useSmallAvatars=_.K("small_avatars_for_comments");f.webWatchCompactComments=_.K("web_watch_compact_comments");f.editDialog=null;return f};
_.q(HJ,_.I);_.e=HJ.prototype;_.e.onShow=function(){_.n2("cmv",void 0,"wn_comments")};
_.e.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"}}}};
_.e.detached=function(){this.editDialog=null;this.expander.reset()};
_.e.updateBackgroundColor=function(){if(this.backgroundColor){var f={"--ytd-comment-paid-background-color":_.AK(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.hO(this.hostElement,f)}else _.hO(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.e.resetExpander=function(){var f;(f=this.expander)==null||f.reset()};
_.e.openEditDialog=function(f){f.dialog&&(this.editDialog=f.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.e.onYtNavigate=function(f){var S=f.detail.endpoint;if(S=_.H(S,_.ms7)||_.H(S,_.zC8))f.stopPropagation(),this.openEditDialog(S)};
_.e.onYtCommentboxDismiss=function(){this.editDialog=null;_.hO(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.e.onAuthorThumbnailClicked=function(){var f=this;_.K("enable_profile_cards_on_comments")&&this!=null&&this.authorThumbnailEndpoint&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{commandController:{onSuccess:function(S,B){f.onAuthorThumbnailEndpointSuccess(B)},
onServerError:function(S,B){_.Lg(new _.dO("Failed to resolve the command",B))}}})};
_.e.onAuthorThumbnailEndpointSuccess=function(f){if((f=f==null?void 0:f.popupCommand)&&this.authorThumbnailAnchor){this.ytComponentBehavior.resolveCommand(f,{form:{element:this.authorThumbnailAnchor}});this.logScreenVe();f=f==null?void 0:f.clickTrackingParams;var S=_.Of();f&&S&&_.ik().graftServerVe(f,S)}};
_.e.logScreenVe=function(){_.Rh(_.ik(),66557)};
_.e.onYtCommentboxResize=function(f){var S;(f==null?0:(S=f.detail)==null?0:S.height)&&_.hO(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":f.detail.height+"px"})};
_.y3.Object.defineProperties(HJ.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 f,S=(f=this.commentEntity)==null?void 0:f.author;return S&&(S.isCreator||S.isVerified||S.isArtist)?{renderer:{authorEndpoint:S.channelPageEndpoint?_.H(S.channelPageEndpoint,_.Un):_.H(S.channelCommand,_.Un),authorText:{runs:[{text:S.displayName}]},color:S.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:S.isArtist?{iconType:"AUDIO_BADGE"}:
S.isVerified?{iconType:S.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:S.isArtist||S.isVerified?S.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var f,S=(f=this.commentEntity)==null?void 0:f.author;return S!=null&&S.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:S.sponsorBadgeUrl}]},tooltip:S.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var f;return _.H((f=this.commentSurfaceEntity)==null?void 0:f.pdgCommentChip,_.Ds$)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var f;return this.voiceReplyContainerViewModel&&((f=this.voiceReplyContainerViewModel)==null?void 0:f.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var f;return _.H((f=this.commentSurfaceEntity)==null?void 0:f.voiceReplyContainerViewModel,dai)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var f;return this.voiceReplyContainerViewModel&&(f=this.voiceReplyContainerViewModel)!=null&&f.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var f,S;return(S=(f=this.commentSurfaceEntity)==null?void 0:f.commentBackgroundColor)!=null?S:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.K("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var f,S;return(((f=this.commentEntity)==null?void 0:(S=f.properties)==null?void 0:S.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var f,S;if(_.K("enable_profile_cards_on_comments")&&((f=this.commentEntity)==null?0:(S=f.author)==null?0:S.profileCardEndpoint)&&this.viewModel.allowProfileCard){var B,G;return _.H((B=this.commentEntity)==null?void 0:(G=B.author)==null?void 0:G.profileCardEndpoint,_.Un)}var g,b;return _.H((g=this.commentEntity)==null?void 0:(b=g.avatar)==null?void 0:b.endpoint,_.Un)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var f,S;if(_.K("enable_profile_cards_on_comments")&&((f=this.commentEntity)==null?0:(S=f.author)==null?0:S.channelPageEndpoint)){var B,G;return _.H((B=this.commentEntity)==null?void 0:(G=B.author)==null?void 0:G.channelPageEndpoint,_.Un)}var g,b;return _.H((g=this.commentEntity)==null?void 0:(b=g.avatar)==null?void 0:b.endpoint,_.Un)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var f,S,B,G,g=(f=this.commentEntity)==null?void 0:(S=f.avatar)==null?void 0:(B=S.image)==null?void 0:(G=B.sources)==null?void 0:G[0];return g?{thumbnails:[{url:g.url,width:g.width,height:g.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var f,S;return((f=this.commentEntity)==null?0:(S=f.author)==null?0:S.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var f,S;return((f=this.commentEntity)==null?void 0:(S=f.author)==null?void 0:S.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var f,S;return((f=this.commentEntity)==null?void 0:(S=f.properties)==null?void 0:S.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var f;return _.H((f=this.commentSurfaceEntity)==null?void 0:f.publishedTimeCommand,_.Un)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var f,S;if(((f=this.commentEntity)==null?0:f.translatedContent)&&((S=this.translateButtonState)==null?void 0:S.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var B;if((B=this.voiceReplyContainerViewModel)==null?0:B.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var G,g;return((G=this.commentEntity)==null?void 0:(g=G.properties)==null?void 0:g.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var f,S;return((f=this.commentSharedEntity)==null?void 0:(S=f.strings)==null?void 0:S.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var f,S;return((f=this.commentSharedEntity)==null?void 0:(S=f.strings)==null?void 0:S.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.commentEntity)==null||!f.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var f,S,B=(S=_.H((f=this.viewModel)==null?void 0:f.translateButton,KGi))!=null?S:{},G,g,b,z,X,w,F,V,J,P,d;return Object.assign({},B,{untoggledStateData:Object.assign({},B.untoggledStateData,{buttonText:(G=this.commentEntity)==null?void 0:(g=G.translateData)==null?void 0:g.text}),togglingStateData:Object.assign({},B.togglingStateData,{buttonText:(b=this.commentSharedEntity)==null?
void 0:(z=b.strings)==null?void 0:z.translatingText}),toggledStateData:Object.assign({},B.toggledStateData,{buttonText:(X=this.commentSharedEntity)==null?void 0:(w=X.strings)==null?void 0:w.seeOriginalText}),transitionCommand:((F=this.commentEntity)==null?0:F.translatedContent)?void 0:_.H((V=this.commentEntity)==null?void 0:(J=V.translateData)==null?void 0:J.translateComment,_.Un),triStateKey:(P=this.commentEntity)==null?void 0:(d=P.properties)==null?void 0:d.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var f,S,B;return((S=_.H(_.H((f=this.toolbarSurface)==null?void 0:f.menuCommand,_.Un),RCm))==null?void 0:(B=S.menu)==null?void 0:B.menuRenderer)||null}}});
HJ.prototype.onYtCommentboxResize=HJ.prototype.onYtCommentboxResize;HJ.prototype.onYtCommentboxDismiss=HJ.prototype.onYtCommentboxDismiss;HJ.prototype.onYtNavigate=HJ.prototype.onYtNavigate;HJ.prototype.resetExpander=HJ.prototype.resetExpander;HJ.prototype.updateBackgroundColor=HJ.prototype.updateBackgroundColor;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],HJ.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],HJ.prototype,"ytdReduxBehavior",void 0);
_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],HJ.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],HJ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.vF("#author-thumbnail > button"),_.Z("design:type",HTMLElement)],HJ.prototype,"authorThumbnailAnchor",void 0);_.N([_.n({reflectToAttribute:!0}),_.k("viewModel"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],HJ.prototype,"linked",null);
_.N([_.k("viewModel","linked"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],HJ.prototype,"linkedCommentBadge",null);_.N([_.n({reflectToAttribute:!0}),_.k("viewModel"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],HJ.prototype,"pinned",null);_.N([_.k("viewModel","pinned"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],HJ.prototype,"pinnedCommentBadge",null);
_.N([_.k("commentEntity","commentSharedEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],HJ.prototype,"authorCommentBadge",null);_.N([_.n({reflectToAttribute:!0}),_.k("authorCommentBadge"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],HJ.prototype,"hasAuthorBadge",null);_.N([_.k("commentEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],HJ.prototype,"sponsorCommentBadge",null);
_.N([_.n({reflectToAttribute:!0}),_.k("sponsorCommentBadge"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],HJ.prototype,"hasSponsorBadge",null);_.N([_.k("commentSurfaceEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],HJ.prototype,"pdgCommentChipRenderer",null);_.N([_.n({reflectToAttribute:!0}),_.k("voiceReplyContainerViewModel"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],HJ.prototype,"hasVoiceReply",null);
_.N([_.k("commentSurfaceEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],HJ.prototype,"voiceReplyContainerViewModel",null);_.N([_.k("voiceReplyContainerViewModel"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],HJ.prototype,"voiceReplyUnavailableText",null);_.N([_.n(),_.Z("design:type",Object)],HJ.prototype,"data",void 0);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],HJ.prototype,"viewModel",null);
_.N([_.n({selector:function(f,S){return _.w9(f.entities,"commentSharedEntityPayload",S)},
selectorArgs:["viewModel.sharedKey"]}),_.Z("design:type",Object)],HJ.prototype,"commentSharedEntity",void 0);_.N([_.n({selector:function(f,S){return _.w9(f.entities,"commentEntityPayload",S)},
selectorArgs:["viewModel.commentKey"]}),_.Z("design:type",Object)],HJ.prototype,"commentEntity",void 0);_.N([_.n({selector:function(f,S){return _.w9(f.entities,"commentSurfaceEntityPayload",S)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.Z("design:type",Object)],HJ.prototype,"commentSurfaceEntity",void 0);_.N([_.n({selector:PSQ,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.Z("design:type",Object)],HJ.prototype,"toolbarSurface",void 0);_.N([_.n({selector:vlW,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.Z("design:type",Object)],HJ.prototype,"translateButtonState",void 0);
_.N([_.k("commentSurfaceEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],HJ.prototype,"backgroundColor",null);_.N([_.n({reflectToAttribute:!0}),_.k("viewModel"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],HJ.prototype,"optimalReadingWidthComments",null);_.N([_.vF("ytd-expander"),_.Z("design:type",Object)],HJ.prototype,"expander",void 0);
_.N([_.JO("backgroundColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],HJ.prototype,"updateBackgroundColor",null);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],HJ.prototype,"useSmallAvatars",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],HJ.prototype,"webWatchCompactComments",void 0);_.N([_.n({reflectToAttribute:!0}),_.k("commentEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],HJ.prototype,"isReply",null);
_.N([_.k("commentEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],HJ.prototype,"authorThumbnailEndpoint",null);_.N([_.k("commentEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],HJ.prototype,"authorNameEndpoint",null);_.N([_.k("commentEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],HJ.prototype,"authorThumbnail",null);_.N([_.k("commentEntity"),_.Z("design:type",String),_.Z("design:paramtypes",[])],HJ.prototype,"authorTextClass",null);
_.N([_.k("commentEntity"),_.Z("design:type",String),_.Z("design:paramtypes",[])],HJ.prototype,"authorChannelName",null);_.N([_.k("commentEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],HJ.prototype,"publishedTime",null);_.N([_.k("commentSurfaceEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],HJ.prototype,"publishedTimeCommand",null);
_.N([_.k("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],HJ.prototype,"contentText",null);_.N([_.JO("contentText"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],HJ.prototype,"resetExpander",null);_.N([_.k("commentEntity"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],HJ.prototype,"shouldShowReadMoreInitially",null);
_.N([_.k("commentSharedEntity"),_.Z("design:type",String),_.Z("design:paramtypes",[])],HJ.prototype,"expandText",null);_.N([_.k("commentSharedEntity"),_.Z("design:type",String),_.Z("design:paramtypes",[])],HJ.prototype,"collapseText",null);_.N([_.k("commentEntity"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],HJ.prototype,"shouldShowTranslateButton",null);
_.N([_.k("commentEntity","commentSharedEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],HJ.prototype,"translateButton",null);_.N([_.k("toolbarSurface"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],HJ.prototype,"overflowMenuRenderer",null);_.N([_.n(),_.Z("design:type",Object)],HJ.prototype,"editDialog",void 0);_.N([_.vF("ytd-comment-dialog-renderer"),_.Z("design:type",Object)],HJ.prototype,"editCommentDialogContainer",void 0);
_.N([_.vF("ytd-comment-reply-dialog-renderer"),_.Z("design:type",Object)],HJ.prototype,"editReplyDialogContainer",void 0);_.N([_.Vg("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],HJ.prototype,"onYtNavigate",null);_.N([_.Vg("yt-commentbox-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],HJ.prototype,"onYtCommentboxDismiss",null);
_.N([_.Vg("yt-commentbox-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],HJ.prototype,"onYtCommentboxResize",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-comment-view-model"})],HJ);
_.p(HJ,"ytd-comment-view-model",function(){if(Udg!==void 0)return Udg;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Udg=f},{mode:_.X_("kevlar_poly_si_batch_j025")?1:2});var qD=function(){var f=_.I.apply(this,arguments)||this;f.modern=_.K("web_modern_buttons");f.isWatchGrid=_.K("kevlar_watch_grid");f.buttonOverrides={style:"call-to-action"};f.JSC$13831_spinnerEl=null;return f};
_.q(qD,_.I);_.e=qD.prototype;_.e.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.e.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]]"}}}}}};
_.e.attached=function(){this.isShowRepliesVisible=!0};
_.e.dataChanged=function(){var f=this.expanderContents;f&&(f.hidden=!0);this.isLoading=!1};
_.e.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.e.isLoadingChanged=function(){this.isLoading&&!this.JSC$13831_spinnerEl&&(this.JSC$13831_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.m9(this.expanderContents).appendChild(this.JSC$13831_spinnerEl));this.JSC$13831_spinnerEl&&(this.JSC$13831_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var f;(f=this.contents)==null||f.classList.remove("reloading")}};
_.e.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.triggerFirstContinuation();var f=_.H(this.data.viewReplies,_.IR);f&&this.ytRendererBehavior.logExplicitClick(f)};
_.e.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var f=_.H(this.data.hideReplies,_.IR);f&&this.ytRendererBehavior.logExplicitClick(f)};
_.e.isShowMoreChanged=function(){var f=_.m9(this.hostElement).querySelector("#expander-contents");f&&(f.hidden=this.isShowRepliesVisible)};
_.e.computeAlign=function(){if(this.modern){var f;return!((f=this.data)==null?0:f.viewRepliesCreatorThumbnail)}};
_.y3.Object.defineProperties(qD.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var f,S=(f=this.data)==null?void 0:f.contents;return!!S&&S.length>0&&!!S[S.length-1].continuationItemRenderer}}});
qD.prototype.isShowMoreChanged=qD.prototype.isShowMoreChanged;qD.prototype.isLoadingChanged=qD.prototype.isLoadingChanged;qD.prototype.triggerFirstContinuation=qD.prototype.triggerFirstContinuation;qD.prototype.dataChanged=qD.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],qD.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],qD.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.r(_.Ak),_.Z("design:type",Object)],qD.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],qD.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],qD.prototype,"modern",void 0);_.N([_.n(),_.Z("design:type",Boolean)],qD.prototype,"isLoading",void 0);_.N([_.n({value:!0}),_.Z("design:type",Boolean)],qD.prototype,"isShowRepliesVisible",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],qD.prototype,"useNewFormatting",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],qD.prototype,"isWatchGrid",void 0);_.N([_.n(),_.Z("design:type",Object)],qD.prototype,"buttonOverrides",void 0);_.N([_.vF("#expander-contents"),_.Z("design:type",HTMLElement)],qD.prototype,"expanderContents",void 0);_.N([_.vF("ytd-continuation-item-renderer"),_.Z("design:type",Object)],qD.prototype,"continuationItemRenderer",void 0);_.N([_.vF("#contents"),_.Z("design:type",HTMLElement)],qD.prototype,"contents",void 0);
_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qD.prototype,"dataChanged",null);_.N([_.k("data.contents"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],qD.prototype,"hasContinuation",null);_.N([_.Vg("yt-expander-more-tapped"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qD.prototype,"triggerFirstContinuation",null);
_.N([_.JO("isLoading"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qD.prototype,"isLoadingChanged",null);_.N([_.JO("isShowRepliesVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qD.prototype,"isShowMoreChanged",null);_.N([_.C({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],qD);
_.p(qD,"ytd-comment-replies-renderer",function(){if(LOm!==void 0)return LOm;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return LOm=f},{mode:1});var NrL;var $w=function(){var f=_.I.apply(this,arguments)||this;f.isOpen=!1;f.commentDialog=null;f.useSmallAvatars=_.K("small_avatars_for_comments");f.useSmallAvatarsEngagementPanelOnly=_.K("small_avatars_for_comments_ep");f.placeholderFocusListener=null;f.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return f};
_.q($w,_.I);_.e=$w.prototype;_.e.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]]"}}}}}};
_.e.ready=function(){var f=this,S=_.m9(this.hostElement).querySelector("#placeholder-area"),B=_.m9(this.hostElement).querySelector("#simplebox-placeholder"),G=function(g){g.stopPropagation();g instanceof KeyboardEvent&&g.type==="keypress"&&g.keyCode!==13&&g.keyCode!==32||f.openDialog()};
this.placeholderFocusListener=G;B.addEventListener("focus",this.placeholderFocusListener);S.addEventListener("tap",G);S.addEventListener("keypress",G)};
_.e.maybeRemoveFocusEventListener=function(){var f;(f=this.data)!=null&&f.prepareAccountEndpoint&&!_.K("web_comments_simplebox_modal_focus_on_tap_ks")&&(f=_.m9(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(f.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.e.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.e.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.K("web_comment_simplebox_resolve_polymer_command_ks")?_.JZ.instance.resolveCommand(this.data.prepareAccountEndpoint):_.Ps(this.data.prepareAccountEndpoint,this.hostElement);else if(this.data.subscribersOnlySnackbarCommand){var f=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);f&&this.ytdOpenPopupBehavior.openPopup(f)}else this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)}),
this.isOpen=!0,_.m9(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()};
_.e.onYtCommentboxDismiss=function(f){f.stopPropagation();this.isOpen=!1};
_.e.onCreateCommentAction=function(f){this.get("createCommentAction.contents",f)&&(this.isOpen=!1)};
_.e.computeCommentDialog=function(f){return{placeholderText:f.placeholderText,authorThumbnail:f.authorThumbnail,submitButton:f.submitButton,imageButton:f.imageButton,cancelButton:f.cancelButton,emojiButton:f.emojiButton,emojis:f.emojis,emojiPicker:f.emojiPicker,aadcGuidelinesStateEntityKey:f.aadcGuidelinesStateEntityKey,openAadcDialog:f.openAadcDialog,unicodeEmojisUrl:f.unicodeEmojisUrl}};
_.e.onHideIdentityChip=function(f){_.H(f,X_6)&&this.set("data.placeholderText",_.H(f,X_6).placeholderText)};
$w.prototype.onYtCommentboxDismiss=$w.prototype.onYtCommentboxDismiss;$w.prototype.dataChanged=$w.prototype.dataChanged;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],$w.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.a5),_.Z("design:type",Object)],$w.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],$w.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],$w.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],$w.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],$w.prototype,"isOpen",void 0);_.N([_.n(),_.Z("design:type",Object)],$w.prototype,"commentDialog",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],$w.prototype,"engagementPanel",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],$w.prototype,"useSmallAvatars",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],$w.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],$w.prototype,"enableCreationBox",void 0);_.N([_.n(),_.Z("design:type",Boolean)],$w.prototype,"showCreateDialog",void 0);
_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$w.prototype,"dataChanged",null);_.N([_.Vg("yt-commentbox-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],$w.prototype,"onYtCommentboxDismiss",null);_.N([_.C({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],$w);
_.p($w,"ytd-comment-simplebox-renderer",function(){if(NrL!==void 0)return NrL;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return NrL=f},{mode:1});var MVL;_.Dd("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var Qb=function(){var f=_.I.apply(this,arguments)||this;f.addHoverEffect=_.K("swatcheroo_comments_hover_effect");return f};
_.q(Qb,_.I);Qb.prototype.onTap=function(f){if(this.addHoverEffect&&!this.engagementPanel&&!_.lF(_.ct(f)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var S;((S=window.getSelection())==null?0:S.toString().length)||_.Ps({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
Qb.prototype.configureRendererStamper=function(){return{"data.replies":{id:"replies",mapping:{commentRepliesRenderer:{component:"ytd-comment-replies-renderer",noInjection:!0}}}}};
_.y3.Object.defineProperties(Qb.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)!=null&&f.commentViewModel)return _.H(this.data.commentViewModel,vWv)}}});
Qb.prototype.onTap=Qb.prototype.onTap;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Qb.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Qb.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Qb.prototype,"addHoverEffect",void 0);_.N([_.n(),_.Z("design:type",Object)],Qb.prototype,"data",void 0);
_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Qb.prototype,"commentViewModel",null);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Qb.prototype,"engagementPanel",void 0);_.N([_.Vg("tap"),_.Vg("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],Qb.prototype,"onTap",null);_.N([_.C({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],Qb);
_.p(Qb,"ytd-comment-thread-renderer",function(){if(MVL!==void 0)return MVL;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return MVL=f},{mode:_.X_("kevlar_poly_si_batch_j025")?1:2});var Z$1;var Yw=function(){var f=_.I.apply(this,arguments)||this;f.modernTypography=_.K("web_modern_typography");f.compactHeader=_.K("web_watch_compact_comments_header");f.hidePanelButton=!1;f.isPostSchedulingEnabled=_.K("enable_post_scheduling");f.hasFinishedStamping=!1;f.JSC$13849_handleOpenPostCommentDialogActionAfterStamp=!1;f.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return f};
_.q(Yw,_.I);_.e=Yw.prototype;
_.e.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"}}}};
_.e.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.e.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$13849_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.e.onYtServiceRequestSent=function(f,S){if(!_.K("kevlar_command_handler")&&S.actions)for(f=0;f<S.actions.length;f++){var B=S.actions[f];_.H(B,IWv)&&_.m9(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.H(B,IWv))}};
_.e.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var f;if(this.getPrefilledBackstagePostDialog((f=this.data)==null?void 0:f.actions)){_.m9(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var S=_.m9(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;S&&_.ui(this,function(){S.focus();S.openDialog&&S.openDialog()})}}else this.hasActionsChange=!0};
_.e.computeIsBackstage=function(f){return f};
_.e.onYtCommentboxDismiss=function(){_.m9(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.e.removePrefilledDialog=function(f){if(f==null?0:f.actions){for(var S=f.actions.length-1;S>=0;S--){var B=void 0;((B=_.H(f.actions[S],eCm))==null?0:B.dialog)&&delete f.actions[S]}this.set("data",void 0);this.set("data",f)}};
_.e.getPrefilledBackstagePostDialog=function(f){if(f)for(var S=0;S<f.length;S++){var B=f[S],G=void 0;if((G=_.H(B,eCm))==null?0:G.dialog)return _.H(B,eCm).dialog}return null};
_.e.computeBackstagePostDialog=function(f){return f&&(this.getPrefilledBackstagePostDialog(f.actions)||f.createRenderer)};
_.e.dataChanged=function(){if(this.data){var f=this.data.customEmojis,S=this.data.unicodeEmojisUrl;_.I5.clear();S&&_.uB1(_.I5,S);f&&_.I5.load(f)}};
_.e.handleSignalActionOpenPostCommentDialogAction=function(){var f=_.m9(this.hostElement).querySelector("ytd-comment-simplebox-renderer");f?f.openDialog():this.JSC$13849_handleOpenPostCommentDialogActionAfterStamp=!0};
_.y3.Object.defineProperties(Yw.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.K("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var f,S,B,G,g,b,z;return!this.hidePanelButton&&_.K("kevlar_watch_comments_panel_button")&&((z=_.H((f=this.data)==null?void 0:(S=f.sortMenu)==null?void 0:(B=S.sortFilterSubMenuRenderer)==null?void 0:(G=B.subMenuItems)==null?void 0:(g=G[0])==null?void 0:(b=g.serviceEndpoint)==null?void 0:b.commandMetadata,_.oD))==null?void 0:z.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.Jf("MINIPLAYER_EXPAND_LABEL"),text:_.uC(_.Jf("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
Yw.prototype.dataChanged=Yw.prototype.dataChanged;Yw.prototype.onYtCommentboxDismiss=Yw.prototype.onYtCommentboxDismiss;Yw.prototype.observePrefilledBackstagePostDialog=Yw.prototype.observePrefilledBackstagePostDialog;Yw.prototype.onYtServiceRequestSent=Yw.prototype.onYtServiceRequestSent;Yw.prototype.onStampFinished=Yw.prototype.onStampFinished;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],Yw.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Yw.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Yw.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Yw.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Yw.prototype,"modernTypography",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Yw.prototype,"compactHeader",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Yw.prototype,"engagementPanel",void 0);_.N([_.n(),_.Z("design:type",Object)],Yw.prototype,"hidePanelButton",void 0);_.N([_.n({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],Yw.prototype,"isBackstage",void 0);_.N([_.n({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.Z("design:type",Object)],Yw.prototype,"backstagePostDialog",void 0);
_.N([_.n(),_.Z("design:type",Object)],Yw.prototype,"isPostSchedulingEnabled",void 0);_.N([_.n({reflectToAttribute:!0}),_.k("data","showCommentsPanelButton"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Yw.prototype,"useSpaceBetween",null);_.N([_.n({reflectToAttribute:!0}),_.k("data","hidePanelButton"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Yw.prototype,"showCommentsPanelButton",null);
_.N([_.k("data","showCommentsPanelButton"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Yw.prototype,"commentsPanelButtonData",null);_.N([_.Vg("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Yw.prototype,"onStampFinished",null);_.N([_.Vg("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.N1]),_.Z("design:returntype")],Yw.prototype,"onYtServiceRequestSent",null);
_.N([_.JO("data.actions"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Yw.prototype,"observePrefilledBackstagePostDialog",null);_.N([_.Vg("yt-commentbox-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Yw.prototype,"onYtCommentboxDismiss",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Yw.prototype,"dataChanged",null);
_.N([_.C({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],Yw);
_.p(Yw,"ytd-comments-header-renderer",function(){if(Z$1!==void 0)return Z$1;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Z$1=f},{mode:1});var tVj;var ra=function(){return _.I.apply(this,arguments)||this};
_.q(ra,_.I);_.N([_.n(),_.Z("design:type",Object)],ra.prototype,"data",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],ra.prototype,"ytRendererBehavior",void 0);_.N([_.C({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],ra);
_.p(ra,"ytd-destination-button-renderer",function(){if(tVj!==void 0)return tVj;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return tVj=f},{mode:1});var umi;var jo=function(){var f=_.I.apply(this,arguments)||this;f.isRichGrid=!1;f.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};f.modernTypography=_.K("web_modern_typography");return f};
_.q(jo,_.I);_.e=jo.prototype;_.e.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.e.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.e.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.e.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var f;if((f=this.data)==null||!f.isExpanded){f=this.hostElement.clientWidth;var S;if(f&&(S=this.data)!=null&&S.destinationButtons){S=Math.floor((f+4)/214);f=this.data.destinationButtons.length;var B=Math.ceil(f/S);this.fullyVisibleRows=f%S===1&&B===2?1:Math.min(B,2);this.isShowMoreVisible=this.fullyVisibleRows<B}}}};
_.e.updateRichGridDestinationButtonsVisibility=function(){var f,S;if(this.isRichGrid&&((f=this.data)==null||!f.isExpanded)&&(S=this.data)!=null&&S.destinationButtons){f=this.richGridItemsPerRow+1;S=this.data.destinationButtons.length;var B=Math.ceil(S/f);this.fullyVisibleRows=S%f===1&&B===2?1:Math.min(B,2);this.isShowMoreVisible=this.fullyVisibleRows<B}};
_.e.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
jo.prototype.updateRichGridDestinationButtonsVisibility=jo.prototype.updateRichGridDestinationButtonsVisibility;_.N([_.n(),_.Z("design:type",Object)],jo.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Number)],jo.prototype,"fullyVisibleRows",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],jo.prototype,"isShowMoreVisible",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],jo.prototype,"isRichGrid",void 0);
_.N([_.n({selector:_.EA,value:0}),_.Z("design:type",Number)],jo.prototype,"richGridItemsPerRow",void 0);_.N([_.n(),_.Z("design:type",Object)],jo.prototype,"gridStateActionMap",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],jo.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],jo.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],jo.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],jo.prototype,"ytdReduxBehavior",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],jo.prototype,"modernTypography",void 0);_.N([_.JO("data","richGridItemsPerRow"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],jo.prototype,"updateRichGridDestinationButtonsVisibility",null);
_.N([_.C({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],jo);
_.p(jo,"ytd-destination-shelf-renderer",function(){if(umi!==void 0)return umi;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return umi=f},{mode:1});var a8X;var O$=function(){return _.I.apply(this,arguments)||this};
_.q(O$,_.I);O$.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"}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],O$.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],O$.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],O$.prototype,"data",void 0);_.N([_.C({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],O$);
_.p(O$,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(a8X!==void 0)return a8X;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return a8X=f},{mode:1});var yCL;var xw=function(){var f=_.I.apply(this,arguments)||this;f.disableAnimation=!1;f.isSlimlineSurvey=!1;f.isSlimlineSurveyFollowUp=!1;f.isShortsStyle=!1;return f};
_.q(xw,_.I);xw.prototype.onTap=function(f){f.preventDefault();this.data&&_.ew(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.y3.Object.defineProperties(xw.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 f,S,B,G,g;return((f=this.data)==null?0:f.checked)?(S=this.data)==null?void 0:(B=S.onStateIcon)==null?void 0:B.iconType:(G=this.data)==null?void 0:(g=G.defaultStateIcon)==null?void 0:g.iconType}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],xw.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],xw.prototype,"ytComponentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],xw.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],xw.prototype,"disableAnimation",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],xw.prototype,"isSlimlineSurvey",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],xw.prototype,"isSlimlineSurveyFollowUp",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],xw.prototype,"isShortsStyle",void 0);_.N([_.k("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],xw.prototype,"isAnimatedIcon",null);
_.N([_.k("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],xw.prototype,"iconSize",null);_.N([_.k("isShortsStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],xw.prototype,"isDarkTheme",null);_.N([_.k("data.checked"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],xw.prototype,"icon",null);_.N([_.C({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],xw);
_.p(xw,"ytd-rating-survey-option-renderer",function(){if(yCL!==void 0)return yCL;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return yCL=f},{mode:2});var WOj;var E$=function(){var f=_.I.apply(this,arguments)||this;f.firstResponseText=null;f.lastResponseText=null;f.selectedNonStarOption=null;f.hideOptions=!1;f.hideUndoButton=!0;f.disableAnimation=!1;f.showResponseRangeText=!1;f.selectedRatingIndex=-1;f.isSlimlineSurvey=!1;f.isSlimlineSurveyFollowUp=!1;f.isShortsStyle=!1;f.slimlineSurveyRatingSelectedIndex=-1;return f};
_.q(E$,_.I);_.e=E$.prototype;_.e.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.e.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.e.onOptionChange=function(f,S){var B=this;f=S.onStateIcon&&S.defaultStateIcon&&S.onStateIcon.iconType===S.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(z,X){z.responseText===S.responseText?B.isSlimlineSurvey?(B.selectedRatingIndex=X,B.ytdReduxBehavior.dispatch(tt8(X))):(B.setSurveyOptionValue(X,!0,"checked"),B.setSurveyOptionValue(X,!0,"selected")):(B.setSurveyOptionValue(X,!1,"checked"),B.setSurveyOptionValue(X,
!1,"selected"))});
else if(f)this.selectedNonStarOption=S,this.hideOptions=!0;else{var G=this.ytRendererBehavior.getSimpleString(S.responseText),g=!0;this.getOptionRenderers().forEach(function(z,X){B.setSurveyOptionValue(X,g,"checked");B.setSurveyOptionValue(X,!1,"selected");B.ytRendererBehavior.getSimpleString(z.responseText)===G&&(g=!1,B.setSurveyOptionValue(X,!0,"selected"))})}f=S.responseEndpoint;
var b;S.followUpCommand&&(b=_.H(S.followUpCommand,LRX));this.isSlimlineSurvey?(this.resetComponent(),_.bW(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.bW(this.hostElement,"ytd-inline-survey-rating-select-action",[f,b])};
_.e.showSelectedOption=function(){var f=this;_.xJ.addJob(function(){var S=f.getOptionRenderers()[f.slimlineSurveyRatingSelectedIndex];f.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),S)},8,100)};
_.e.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(f){var S;return(S=_.H(f,nU8))!=null?S:{}}):[]};
_.e.onUndoClick=function(){this.resetComponent();_.bW(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.e.setSurveyOptionValue=function(f,S,B){this.notifyPath("data.ratings."+f+".ratingSurveyOptionRenderer."+B);this.set("data.ratings."+f+".ratingSurveyOptionRenderer."+B,S)};
_.e.resetComponent=function(){var f=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var S=this.getOptionRenderers(),B,G;this.firstResponseText=(G=(B=S[0])==null?void 0:B.responseText)!=null?G:null;var g,b;this.lastResponseText=(b=(g=S[S.length-1])==null?void 0:g.responseText)!=null?b:null;S.forEach(function(z,X){f.setSurveyOptionValue(X,!1,"checked");f.setSurveyOptionValue(X,!1,"selected")})};
_.y3.Object.defineProperties(E$.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
E$.prototype.onOptionChange=E$.prototype.onOptionChange;E$.prototype.dataChanged=E$.prototype.dataChanged;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],E$.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],E$.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],E$.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],E$.prototype,"data",void 0);
_.N([_.n(),_.Z("design:type",Object)],E$.prototype,"firstResponseText",void 0);_.N([_.n(),_.Z("design:type",Object)],E$.prototype,"lastResponseText",void 0);_.N([_.n(),_.Z("design:type",Object)],E$.prototype,"selectedNonStarOption",void 0);_.N([_.n(),_.Z("design:type",Object)],E$.prototype,"hideOptions",void 0);_.N([_.n(),_.Z("design:type",Object)],E$.prototype,"hideUndoButton",void 0);_.N([_.n(),_.Z("design:type",Object)],E$.prototype,"disableAnimation",void 0);
_.N([_.n(),_.Z("design:type",Object)],E$.prototype,"showResponseRangeText",void 0);_.N([_.n(),_.Z("design:type",Object)],E$.prototype,"selectedRatingIndex",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],E$.prototype,"isSlimlineSurvey",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],E$.prototype,"isSlimlineSurveyFollowUp",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],E$.prototype,"isShortsStyle",void 0);_.N([_.n({selector:function(f){return f.ui.slimlineSurveyRatingSelectedIndex}}),
_.Z("design:type",Object)],E$.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.N([_.k("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],E$.prototype,"isSingleSelect",null);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],E$.prototype,"dataChanged",null);
_.N([_.Vg("ytd-rating-survey-option-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],E$.prototype,"onOptionChange",null);_.N([_.C({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],E$);
_.p(E$,"ytd-rating-survey-renderer",function(){if(WOj!==void 0)return WOj;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return WOj=f},{mode:1});var cC6;var l8i;var f4X;var gSV=(OC.FIRSTDAYOFWEEK+1)%7,ozj=function(f,S,B,G){var g="";if(G.selection&&oSG(G.selection))YV(f,G.selection)&&(g+=" selected");else if(G.selection&&SDx(G.selection)){var b=G.selection.selectionState||"START_DATE";YV(f,G.selection.start)&&(g+=" period-start ",b==="START_DATE"&&(g+="selected"));YV(f,G.selection.end)&&(g+=" period-end ",b==="END_DATE"&&(g+="selected"));r5(f,G.selection.start)||r5(G.selection.end,f)||(g+=" highlighted")}if(r5(S,G.start)||r5(G.end,S))g+=" disabled";G.circleToday&&
YV(S,B)&&(g+=" today");return g};var Lx=function(){return _.I.apply(this,arguments)||this};
_.q(Lx,_.I);_.e=Lx.prototype;_.e.attached=function(){var f=this;_.ui(this,function(){f.JSC$13883_calendarMain.scrollHeight>0&&(f.calendarConfig.selection?f.scrollToDate(BfQ(f.calendarConfig.selection)):f.scrollToDate(f.calendarConfig.end))})};
_.e.updateSelection=function(f){f=elN(Object.assign({},this.calendarConfig,{selection:f}),ozj);this.splice.apply(this,["renderData.months",0,f.length].concat(_.$d(f)))};
_.e.scrollToDate=function(f){this.renderData&&(f=bU1(f,this.renderData),f!==void 0&&this.JSC$13883_calendarMain.scrollToIndex(f))};
_.e.scrollToNextMonth=function(){this.JSC$13883_calendarMain.scrollToIndex(this.JSC$13883_calendarMain.firstVisibleIndex+1)};
_.e.scrollToPrevMonth=function(){this.JSC$13883_calendarMain.firstVisibleIndex===0&&this.JSC$13883_calendarMain.scrollTo(0,0);this.JSC$13883_calendarMain.scrollToIndex(this.JSC$13883_calendarMain.firstVisibleIndex-1)};
_.e.handleDayClick=function(f){_.bW(this.hostElement,"ytd-calendar-date-clicked",[f.model.day.date])};
_.e.handleDayMouseDown=function(f){f.preventDefault();_.bW(this.hostElement,"ytd-calendar-date-mousedown",[f.model.day.date])};
_.e.handleDayMouseUp=function(f){_.bW(this.hostElement,"ytd-calendar-date-mouseup",[f.model.day.date])};
_.e.handleDayMouseEnter=function(f){f.preventDefault();_.bW(this.hostElement,"ytd-calendar-date-mouseenter",[f.model.day.date])};
_.e.handleDayMouseLeave=function(f){_.bW(this.hostElement,"ytd-calendar-date-mouseleave",[f.model.day.date])};
_.y3.Object.defineProperties(Lx.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var f=this.calendarConfig,S=ozj;S=S===void 0?ozj:S;for(var B=[],G=0;G<7;G++)B.push(OC.NARROWWEEKDAYS[(G+gSV)%7]);return{months:elN(f,S),daysOfWeekLabel:B}}}});
_.N([_.n(),_.Z("design:type",Object)],Lx.prototype,"calendarConfig",void 0);_.N([_.vF("#calendar-main"),_.Z("design:type",Object)],Lx.prototype,"JSC$13883_calendarMain",void 0);_.N([_.k("calendarConfig"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Lx.prototype,"renderData",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],Lx);
_.p(Lx,"ytd-scrollable-calendar",function(){if(f4X!==void 0)return f4X;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return f4X=f},{mode:2});var Szj;var BTi;var kw=function(){var f=_.I.apply(this,arguments)||this;f.hideCharCounter=!1;f.hideLabel=!1;f.noLabelFloat=!1;f.autoValidate=!0;f.invalid=!1;f.disabled=!1;f.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return f};
_.q(kw,_.I);_.e=kw.prototype;_.e.reset=function(f){this.value=f&&this.data?this.data.value=f:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.e.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.e.focusTextInput=function(){this.input.focus()};
_.e.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()};
_.e.valueChanged=function(){var f,S;if(((f=this.data)==null?0:f.value)||((S=this.data)==null?void 0:S.value)==="")this.value=this.data.value;else{var B;((B=this.data)==null?void 0:B.value)!==void 0||this.value||(this.value="")}};
_.e.computeLabel=function(f,S){return S?"":_.ac(f)};
_.e.computeAriaLabel=function(f,S){return S?_.ac(f):""};
_.e.computeErrorMessage=function(f,S,B,G){!f&&S?f=B||this.strings.REQUIRED_LABEL:(f=_.ac(G),f=_.XG(f,"&")?"document"in _.S1?OAN(f):xXT(f):f);return f};
_.e.computeType=function(f){return f==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.e.onTextValueChanged=function(f){this.value=f.detail.value;var S;(S=this.onValueChanged)==null||S.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.e.handleUpdateTextInputFormFieldRendererCommand=function(f){(f=_.H(f,oU$))&&this.data&&this.data.id===f.id&&(f.invalid!==void 0&&(this.invalid=f.invalid),f.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",f.invalidValueErrorMessage))};
_.e.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AW("value-changed",this.value))};
_.e.updateInvalidFromBinding=function(f){this.invalid=f.detail.value};
_.y3.Object.defineProperties(kw.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var f;return!((f=this.data)==null||!f.isMultiline)}}});
kw.prototype.valueChangedForBinding=kw.prototype.valueChangedForBinding;kw.prototype.valueChanged=kw.prototype.valueChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],kw.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],kw.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],kw.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],kw.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",String)],kw.prototype,"value",void 0);_.N([_.n(),_.Z("design:type",String)],kw.prototype,"pattern",void 0);_.N([_.n(),_.Z("design:type",String)],kw.prototype,"errorMessage",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",String)],kw.prototype,"componentStyle",void 0);_.N([_.n(),_.Z("design:type",Object)],kw.prototype,"hideCharCounter",void 0);
_.N([_.n(),_.Z("design:type",Object)],kw.prototype,"hideLabel",void 0);_.N([_.n(),_.Z("design:type",Object)],kw.prototype,"noLabelFloat",void 0);_.N([_.n(),_.Z("design:type",Function)],kw.prototype,"onValueChanged",void 0);_.N([_.n(),_.Z("design:type",Boolean)],kw.prototype,"isMultilineOverride",void 0);_.N([_.n(),_.Z("design:type",Object)],kw.prototype,"autoValidate",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],kw.prototype,"invalid",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],kw.prototype,"disabled",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],kw.prototype,"enableOverlayTheme",void 0);_.N([_.n({value:{REQUIRED_LABEL:_.Jf("REQUIRED_LABEL",void 0,"Required")}}),_.Z("design:type",Object)],kw.prototype,"strings",void 0);_.N([_.vF("#input"),_.Z("design:type",Object)],kw.prototype,"input",void 0);
_.N([_.k("data","isMultilineOverride"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],kw.prototype,"isMultiline",null);_.N([_.HF("data.value"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],kw.prototype,"valueChanged",null);_.N([_.JO("value"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],kw.prototype,"valueChangedForBinding",null);_.N([_.nP({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],kw);
_.p(kw,"yt-text-input-form-field-renderer",function(){if(BTi===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;Szj===void 0&&(Szj=document.createElement("template"));var G=Szj;B.call(S,G.content.cloneNode(!0),f.content.firstChild);BTi=f}f=BTi;return f},{mode:2});var nx=function(){var f=_.I.apply(this,arguments)||this;f.data=void 0;f.selectionState="START_DATE";f.isStartDateInvalid=!1;f.isEndDateInvalid=!1;f.autoapply=!1;f.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 f};
_.q(nx,_.I);_.e=nx.prototype;_.e.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"}}}}};
_.e.focus=function(){this.startDateInput.focus()};
_.e.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:j3(this.data.selection.start),end:j3(this.data.selection.end)})};
_.e.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.e.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.mu(this.selectionState)}};
_.e.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.e.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.e.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.e.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var f=this.calendar.calendarConfig,S=f.end;f=zlW({start:f.start,end:this.endDate||S},this.startDateInput.value||"");this.isStartDateInvalid=!f.isValid;f.isValid&&(f=f.value,this.selection=this.endDate?{start:f,end:this.endDate}:f,this.calendar.scrollToDate(f));this.updateInvalidState()}};
_.e.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var f=this.calendar.calendarConfig,S=f.start;f=zlW({start:this.startDate||S,end:f.end},this.endDateInput.value||"");this.isEndDateInvalid=!f.isValid;f.isValid&&(f=f.value,this.selection={start:this.startDate,end:f},this.calendar.scrollToDate(f));this.updateInvalidState()}};
_.e.handleCalendarDateClicked=function(f){var S=this.selection&&BfQ(this.selection),B=this.selection&&GOj(this.selection);S&&!r5(f,S)&&this.selectionState==="END_DATE"?(this.selection={start:S,end:f},this.selectionState="START_DATE"):(B&&!r5(B,f)?this.selection={start:f,end:B}:this.selection=f,this.selectionState="END_DATE")};
_.e.handleCalendarDateMouseDown=function(f){this.selection&&!oSG(this.selection)&&(this.dragPivot=YV(f,this.selection.start)?this.selection.end:YV(f,this.selection.end)?this.selection.start:f)};
_.e.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.e.handleCalendarDateMouseEnter=function(f){this.dragPivot&&(this.selection={start:function(S,B){return r5(S,B)?S:B}(this.dragPivot,f),
end:function(S,B){return r5(S,B)?B:S}(this.dragPivot,f)},this.dragPivot||(this.selectionState="START_DATE"))};
_.e.handleCalendarDateMouseLeave=function(){};
_.e.handleCalendarSubmitDateRange=function(){this.selection&&!oSG(this.selection)&&_.bW(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.e.updateInvalidState=function(){var f=function(S,B){B?S.setAttribute("invalid",""):S.removeAttribute("invalid")};
f(this.startDateInput,this.isStartDateInvalid);f(this.endDateInput,this.isEndDateInvalid)};
_.e.updateDateStrings=function(){this.selection&&(oSG(this.selection)?fOQ(this.selection):(fOQ(this.selection.start),fOQ(this.selection.end)))};
_.e.updateCalendarSelection=function(f){this.calendar.updateSelection(Object.assign({},f,{selectionState:this.selectionState}))};
_.e.updateIsStartDateInvalidFromBinding=function(f){this.isStartDateInvalid=f.detail.value};
_.e.updateIsEndDateInvalidFromBinding=function(f){this.isEndDateInvalid=f.detail.value};
_.e.updateStartDateStringFromBinding=function(){};
_.e.updateEndDateStringFromBinding=function(){};
_.y3.Object.defineProperties(nx.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:j3(this.data.dateRangeStart),end:j3(this.data.dateRangeEnd),selection:{start:j3(this.data.selection.start),end:j3(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&BfQ(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&GOj(this.selection)}}});
nx.prototype.resetTextboxes=nx.prototype.resetTextboxes;nx.prototype.observeSelection=nx.prototype.observeSelection;nx.prototype.dataChanged=nx.prototype.dataChanged;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],nx.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],nx.prototype,"ytRendererstamperBehavior",void 0);_.N([_.vF("#calendar"),_.Z("design:type",Object)],nx.prototype,"calendar",void 0);
_.N([_.vF("#start-date"),_.Z("design:type",Object)],nx.prototype,"startDateInput",void 0);_.N([_.vF("#end-date"),_.Z("design:type",Object)],nx.prototype,"endDateInput",void 0);_.N([_.n(),_.Z("design:type",Object)],nx.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],nx.prototype,"selection",void 0);_.N([_.n(),_.Z("design:type",String)],nx.prototype,"selectionState",void 0);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],nx.prototype,"calendarConfig",null);
_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],nx.prototype,"errorMessage",null);_.N([_.k("selection"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],nx.prototype,"startDate",null);_.N([_.k("selection"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],nx.prototype,"endDate",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nx.prototype,"dataChanged",null);
_.N([_.JO("selection","selectionState"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nx.prototype,"observeSelection",null);_.N([_.JO("selectionState"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nx.prototype,"resetTextboxes",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],nx);
_.p(nx,"ytd-date-period-picker-renderer",function(){if(l8i!==void 0)return l8i;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return l8i=f},{mode:1});var s$=function(){var f=_.I.apply(this,arguments)||this;var S={};f.actionMap=(S["ytd-date-period-picker-apply"]="handleDateRangeUpdated",S);return f};
_.q(s$,_.I);s$.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
s$.prototype.handleDateRangeUpdated=function(){};
_.N([_.n(),_.Z("design:type",Object)],s$.prototype,"data",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],s$.prototype,"actionHandlerBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],s$.prototype,"rendererstamperBehavior",void 0);_.N([_.C({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],s$);
_.p(s$,"ytd-report-history-section-header-renderer",function(){if(cC6!==void 0)return cC6;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return cC6=f},{mode:1});var GPj;var gzj;var eON;var DJ=function(){return _.I.apply(this,arguments)||this};
_.q(DJ,_.I);_.y3.Object.defineProperties(DJ.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var f,S;return((f=this.data)==null?0:(S=f.icon)==null?0:S.iconType)?_.F_(this.data.icon.iconType):""}}});
_.N([_.n(),_.Z("design:type",Object)],DJ.prototype,"data",void 0);_.N([_.k("data"),_.Z("design:type",String),_.Z("design:paramtypes",[])],DJ.prototype,"icon",null);_.N([_.C({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],DJ);
_.p(DJ,"ytd-report-history-table-text-cell-renderer",function(){if(eON!==void 0)return eON;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return eON=f},{mode:1});var Iz=function(){return _.I.apply(this,arguments)||this};
_.q(Iz,_.I);Iz.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Iz.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Iz.prototype,"data",void 0);_.N([_.C({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],Iz);
_.p(Iz,"ytd-report-history-table-reason-cell-renderer",function(){if(gzj!==void 0)return gzj;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return gzj=f},{mode:1});var U$=function(){return _.I.apply(this,arguments)||this};
_.q(U$,_.I);U$.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"}}}};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],U$.prototype,"rendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],U$.prototype,"data",void 0);_.N([_.C({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],U$);
_.p(U$,"ytd-report-history-table-cell-renderer",function(){if(GPj!==void 0)return GPj;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);
return GPj=f},{mode:1});var ba6;var Cx=function(){var f=_.I.apply(this,arguments)||this;f.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 f};
_.q(Cx,_.I);Cx.prototype.onDataChanged=function(){var f;if((f=this.data)==null?0:f.style)this.componentStyle=this.getStyleName(this.data.style)};
Cx.prototype.getCellForColumn=function(f){return this.cells.find(function(S){var B;return((B=_.H(S==null?void 0:S.cell,I$8)||_.H(S==null?void 0:S.cell,DFm))==null?void 0:B.columnId)===f.type})};
Cx.prototype.getClassForColumn=function(f){switch(f){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
Cx.prototype.getStyleName=function(f){switch(f){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.y3.Object.defineProperties(Cx.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var f;return(((f=this.data)==null?void 0:f.cells)||[]).map(function(S){return _.H(S,sFj)})}}});
Cx.prototype.onDataChanged=Cx.prototype.onDataChanged;_.N([_.n(),_.Z("design:type",Object)],Cx.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Array)],Cx.prototype,"columnRenderData",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",String)],Cx.prototype,"componentStyle",void 0);_.N([_.k("data"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],Cx.prototype,"cells",null);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Cx.prototype,"onDataChanged",null);_.N([_.C({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],Cx);
_.p(Cx,"ytd-report-history-table-row-renderer",function(){if(ba6!==void 0)return ba6;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return ba6=f},{mode:1});var mQ6;var zO8;var Rls={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},Xax={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var px=function(){return _.I.apply(this,arguments)||this};
_.q(px,_.I);px.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"}}}}}};
px.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.y3.Object.defineProperties(px.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?0:f.columns)?VHK(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return TfT(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var f=this.tableSpec,S=Rls;S=S===void 0?Xax:S;S=FlK(f.columnDimensions,f.columnsToShow||[],S);f=0;S=_.m(S);for(var B=S.next();!B.done;B=S.next())B=B.value,f+=B.minWidth+B.paddingLeft+B.paddingRight;return f}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.N([_.r(_.Ak),_.Z("design:type",Object)],px.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],px.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],px.prototype,"data",void 0);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],px.prototype,"tableSpec",null);_.N([_.k("tableSpec"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],px.prototype,"columnRenderData",null);
_.N([_.k("tableSpec"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],px.prototype,"totalMinWidth",null);_.N([_.k("totalMinWidth"),_.Z("design:type",String),_.Z("design:paramtypes",[])],px.prototype,"tableWidthStyle",null);_.N([_.C({is:"ytd-table-renderer",disableElementRegistration:!0})],px);
_.p(px,"ytd-table-renderer",function(){if(zO8!==void 0)return zO8;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return zO8=f},{mode:1});var A7=function(){return _.I.apply(this,arguments)||this};
_.q(A7,_.I);A7.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}}}}}};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],A7.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],A7.prototype,"data",void 0);_.N([_.C({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],A7);
_.p(A7,"ytd-report-reason-history-modal-renderer",function(){if(mQ6!==void 0)return mQ6;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return mQ6=f},{mode:1});var ROv;var XR6;var wRj;var ND=function(){return _.I.apply(this,arguments)||this};
_.q(ND,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],ND.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],ND.prototype,"data",void 0);_.N([_.C({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],ND);
_.p(ND,"ytd-profile-column-stats-entry-renderer",function(){if(wRj!==void 0)return wRj;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return wRj=f},{mode:1});var hOi;var MD=function(){return _.I.apply(this,arguments)||this};
_.q(MD,_.I);MD.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],MD.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],MD.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],MD.prototype,"data",void 0);_.N([_.C({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],MD);
_.p(MD,"ytd-profile-column-stats-renderer",function(){if(hOi!==void 0)return hOi;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return hOi=f},{mode:1});var TTN;var ZJ=function(){return _.I.apply(this,arguments)||this};
_.q(ZJ,_.I);_.y3.Object.defineProperties(ZJ.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)==null||!f.useThumbnailSize)return 80;var S,B;f=(S=this.data)==null?void 0:(B=S.thumbnail)==null?void 0:B.thumbnails;var G;return f&&((G=f[0])==null?void 0:G.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)==null||!f.useThumbnailSize)return 80;var S,B;f=(S=this.data)==null?void 0:(B=S.thumbnail)==null?void 0:B.thumbnails;var G;return f&&((G=f[0])==null?void 0:G.height)||80}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],ZJ.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],ZJ.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",String)],ZJ.prototype,"componentStyle",void 0);_.N([_.k("data.useThumbnailSize"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ZJ.prototype,"thumbnailWidth",null);
_.N([_.k("data.useThumbnailSize"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ZJ.prototype,"thumbnailHeight",null);_.N([_.C({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],ZJ);
_.p(ZJ,"ytd-profile-column-user-info-renderer",function(){if(TTN!==void 0)return TTN;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return TTN=f},{mode:1});var t7=function(){return _.I.apply(this,arguments)||this};
_.q(t7,_.I);t7.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]]"}}}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],t7.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],t7.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],t7.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",String)],t7.prototype,"componentStyle",void 0);_.N([_.C({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],t7);
_.p(t7,"ytd-profile-column-renderer",function(){if(XR6!==void 0)return XR6;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return XR6=f},{mode:1});var uY=function(){var f=_.I.apply(this,arguments)||this;f.componentStyle="NON_CENTERED_PROFILE";return f};
_.q(uY,_.I);uY.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
uY.prototype.getIcon=function(f){return f?"settings:"+f.toLowerCase():null};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],uY.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],uY.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],uY.prototype,"data",void 0);_.N([_.C({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],uY);
_.p(uY,"ytd-page-introduction-renderer",function(){if(ROv!==void 0)return ROv;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return ROv=f},{mode:1});var FhN;var az=function(){return _.I.apply(this,arguments)||this};
_.q(az,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],az.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],az.prototype,"data",void 0);_.N([_.C({is:"ytd-report-description-renderer",disableElementRegistration:!0})],az);
_.p(az,"ytd-report-description-renderer",function(){if(FhN!==void 0)return FhN;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return FhN=f},{mode:1});var Vio;var JTm;var yb=function(){return _.I.apply(this,arguments)||this};
_.q(yb,_.I);yb.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],yb.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],yb.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],yb.prototype,"data",void 0);_.N([_.C({is:"ytd-video-report-renderer",disableElementRegistration:!0})],yb);
_.p(yb,"ytd-video-report-renderer",function(){if(JTm!==void 0)return JTm;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return JTm=f},{mode:1});var PU1;_.Dd("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.Dd("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var WJ=function(){return _.I.apply(this,arguments)||this};
_.q(WJ,_.I);WJ.prototype.configureRendererStamper=function(){return{"data.button":{id:"message-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.icon":{id:"icon",mapping:{iconType:{component:"yt-icon",properties:{icon:"[[data.icon.iconType]]"}}}},"data.thumbnail":{id:"thumbnail",mapping:{messageThumbnailRenderer:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail.messageThumbnailRenderer.thumbnailDetails]]"}}}}}};
WJ.prototype.computeMessageStyle=function(f){return f};
WJ.prototype.computeButtonOverride=function(f){var S;if((f==null?0:(S=f.style)==null?0:S.value)&&f.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],WJ.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],WJ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],WJ.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],WJ.prototype,"shelf",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],WJ.prototype,"panel",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.Z("design:type",Boolean)],WJ.prototype,"componentStyle",void 0);_.N([_.n({computed:"computeButtonOverride(data)"}),_.Z("design:type",Object)],WJ.prototype,"buttonOverride",void 0);_.N([_.C({is:"ytd-message-renderer",disableElementRegistration:!0})],WJ);
_.p(WJ,"ytd-message-renderer",function(){if(PU1!==void 0)return PU1;var f=document.createElement("template");_.Y(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" class="style-scope ytd-message-renderer"></div>\n<div id="thumbnail" class="style-scope ytd-message-renderer"></div>\n<yt-formatted-string id="message" hidden$="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<yt-formatted-string id="submessage" hidden$="[[!data.subtext]]" split-lines="" text="[[data.subtext.messageSubtextRenderer.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<div id="message-button" class="style-scope ytd-message-renderer"></div>\n');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return PU1=f},{mode:1});var cJ=function(){return _.I.apply(this,arguments)||this};
_.q(cJ,_.I);cJ.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"}}}};
cJ.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
cJ.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.y3.Object.defineProperties(cJ.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var f,S;return!!(((f=this.data)==null?0:f.header)&&((S=this.data)==null?0:S.table))}}});
cJ.prototype.onRequestError=cJ.prototype.onRequestError;_.N([_.r(_.Ak),_.Z("design:type",Object)],cJ.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],cJ.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],cJ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],cJ.prototype,"data",void 0);
_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],cJ.prototype,"isUnifiedReportHistory",null);_.N([_.Vg("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cJ.prototype,"onRequestError",null);_.N([_.C({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],cJ);
_.p(cJ,"ytd-report-history-section-renderer",function(){if(Vio!==void 0)return Vio;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Vio=f},{mode:1});var vzm;var lY=function(){var f=_.I.apply(this,arguments)||this;f.answerExpanded=!1;return f};
_.q(lY,_.I);lY.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],lY.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],lY.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],lY.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],lY.prototype,"answerExpanded",void 0);_.N([_.C({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],lY);
_.p(lY,"ytd-handles-claiming-faq-renderer",function(){if(vzm!==void 0)return vzm;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return vzm=f},{mode:1});var KhX;var dQ7=function(){return _.I.apply(this,arguments)||this};
_.q(dQ7,_.I);_.N([_.n(),_.Z("design:type",Object)],dQ7.prototype,"data",void 0);_.N([_.C({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],dQ7);
_.p(dQ7,"ytd-handles-claiming-faq-section-renderer",function(){if(KhX!==void 0)return KhX;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return KhX=f},{mode:1});var iaN;var fc=function(){var f=_.I.apply(this,arguments)||this;f.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";f.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";f.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";f.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";f.leftSquiggly=f.leftSquigglyLight;f.rightSquiggly=f.rightSquigglyLight;
f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};f.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return f};
_.q(fc,_.I);_.e=fc.prototype;_.e.updateLeftSquigglyStyle=function(){_.hO(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.e.updateRightSquigglyStyle=function(){_.hO(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.e.ready=function(){var f=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(f)};
_.e.onDarkModeToggledAction=function(f){f!==this.isDarkTheme&&(this.set("isDarkTheme",f),f?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.e.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
fc.prototype.updateRightSquigglyStyle=fc.prototype.updateRightSquigglyStyle;fc.prototype.updateLeftSquigglyStyle=fc.prototype.updateLeftSquigglyStyle;_.N([_.n(),_.Z("design:type",Object)],fc.prototype,"data",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],fc.prototype,"isDarkTheme",void 0);_.N([_.n(),_.Z("design:type",String)],fc.prototype,"leftSquiggly",void 0);_.N([_.n(),_.Z("design:type",String)],fc.prototype,"rightSquiggly",void 0);
_.N([_.JO("leftSquiggly"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],fc.prototype,"updateLeftSquigglyStyle",null);_.N([_.JO("rightSquiggly"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],fc.prototype,"updateRightSquigglyStyle",null);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],fc.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],fc.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],fc.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],fc.prototype,"actionButtonOverride",void 0);_.N([_.C({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],fc);
_.p(fc,"ytd-handles-claiming-header-renderer",function(){if(iaN!==void 0)return iaN;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return iaN=f},{mode:1});var Ham;var oM=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};f.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";f.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";f.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";f.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
f.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";f.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";f.image0SquigglyBackground=f.image0LightSquigglyBackground;f.image1SquigglyBackground=f.image1LightSquigglyBackground;f.image3SquigglyBackground=f.image3LightSquigglyBackground;return f};
_.q(oM,_.I);_.e=oM.prototype;_.e.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.e.onDataChanged=function(){this.updateTitleAndImages()};
_.e.onThemeChanged=function(){this.updateTitleAndImages()};
_.e.onDarkModeToggledAction=function(f){f!==this.isDarkTheme&&(this.isDarkTheme=f)};
_.e.updateImage0SquigglyBackground=function(){_.hO(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.e.updateImage1SquigglyBackground=function(){_.hO(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.e.updateImage3SquigglyBackground=function(){_.hO(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.e.updateTitleAndImages=function(){var f,S;((f=this.data)==null?void 0:(S=f.titleImages)==null?void 0:S.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))};
oM.prototype.updateImage3SquigglyBackground=oM.prototype.updateImage3SquigglyBackground;oM.prototype.updateImage1SquigglyBackground=oM.prototype.updateImage1SquigglyBackground;oM.prototype.updateImage0SquigglyBackground=oM.prototype.updateImage0SquigglyBackground;oM.prototype.onThemeChanged=oM.prototype.onThemeChanged;oM.prototype.onDataChanged=oM.prototype.onDataChanged;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],oM.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],oM.prototype,"isDarkTheme",void 0);_.N([_.n(),_.Z("design:type",Object)],oM.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],oM.prototype,"title0",void 0);_.N([_.n(),_.Z("design:type",Object)],oM.prototype,"title1",void 0);_.N([_.n(),_.Z("design:type",Object)],oM.prototype,"title2",void 0);_.N([_.n(),_.Z("design:type",Object)],oM.prototype,"title3",void 0);
_.N([_.n(),_.Z("design:type",Object)],oM.prototype,"title4",void 0);_.N([_.n(),_.Z("design:type",Object)],oM.prototype,"image0",void 0);_.N([_.n(),_.Z("design:type",Object)],oM.prototype,"image1",void 0);_.N([_.n(),_.Z("design:type",Object)],oM.prototype,"image2",void 0);_.N([_.n(),_.Z("design:type",Object)],oM.prototype,"image3",void 0);_.N([_.n(),_.Z("design:type",Object)],oM.prototype,"image4",void 0);_.N([_.n(),_.Z("design:type",String)],oM.prototype,"image0SquigglyBackground",void 0);
_.N([_.n(),_.Z("design:type",String)],oM.prototype,"image1SquigglyBackground",void 0);_.N([_.n(),_.Z("design:type",String)],oM.prototype,"image3SquigglyBackground",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],oM.prototype,"onDataChanged",null);_.N([_.JO("isDarkTheme"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],oM.prototype,"onThemeChanged",null);
_.N([_.JO("image0SquigglyBackground"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],oM.prototype,"updateImage0SquigglyBackground",null);_.N([_.JO("image1SquigglyBackground"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],oM.prototype,"updateImage1SquigglyBackground",null);
_.N([_.JO("image3SquigglyBackground"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],oM.prototype,"updateImage3SquigglyBackground",null);_.N([_.C({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],oM);
_.p(oM,"ytd-handles-claiming-title-images-section-renderer",function(){if(Ham!==void 0)return Ham;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Ham=f},{mode:1});var qzL;var S6=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return f};
_.q(S6,_.I);S6.prototype.ready=function(){var f=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(f)};
S6.prototype.onDarkModeToggledAction=function(f){f!==this.isDarkTheme&&this.set("isDarkTheme",f)};
S6.prototype.onCopyButtonClick=function(){var f=this,S,B,G;return _.R(function(g){return(S=f.data)!=null&&S.primaryChannelUrl?_.h(g,navigator.clipboard.writeText(((B=f.data)==null?0:B.encodedChannelUrl)?f.data.encodedChannelUrl:"https://"+_.ac((G=f.data)==null?void 0:G.primaryChannelUrl)),0):g.jumpTo(0)})};
_.N([_.n(),_.Z("design:type",Object)],S6.prototype,"data",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],S6.prototype,"ytComponentBehavior",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],S6.prototype,"isDarkTheme",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],S6.prototype,"ytActionHandlerBehavior",void 0);_.N([_.C({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],S6);
_.p(S6,"ytd-handles-claiming-update-social-renderer",function(){if(qzL!==void 0)return qzL;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return qzL=f},{mode:1});var $Qm;var BI=function(){var f=_.I.apply(this,arguments)||this;f.JSC$13977_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";f.JSC$13977_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};f.squigglyBackground=f.JSC$13977_squigglyBackgroundLight;return f};
_.q(BI,_.I);BI.prototype.updateSquigglyBackgroundStyle=function(){_.hO(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
BI.prototype.ready=function(){var f=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",f);this.squigglyBackground=f?this.JSC$13977_squigglyBackgroundDark:this.JSC$13977_squigglyBackgroundLight};
BI.prototype.onDarkModeToggledAction=function(f){f!==this.isDarkTheme&&(this.set("isDarkTheme",f),this.squigglyBackground=f?this.JSC$13977_squigglyBackgroundDark:this.JSC$13977_squigglyBackgroundLight)};
BI.prototype.updateSquigglyBackgroundStyle=BI.prototype.updateSquigglyBackgroundStyle;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],BI.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],BI.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],BI.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],BI.prototype,"data",void 0);
_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],BI.prototype,"isDarkTheme",void 0);_.N([_.n(),_.Z("design:type",String)],BI.prototype,"squigglyBackground",void 0);_.N([_.JO("squigglyBackground"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],BI.prototype,"updateSquigglyBackgroundStyle",null);_.N([_.C({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],BI);
_.p(BI,"ytd-handles-claiming-vanity-info-renderer",function(){if($Qm!==void 0)return $Qm;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return $Qm=f},{mode:1});var QiX;var Gs=function(){var f=_.I.apply(this,arguments)||this;f.JSC$13980_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";f.JSC$13980_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";f.squigglyBackground=f.JSC$13980_squigglyBackgroundLight;f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return f};
_.q(Gs,_.I);_.e=Gs.prototype;_.e.ready=function(){var f=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(f)};
_.e.onDarkModeToggledAction=function(f){f!==this.isDarkTheme&&(this.set("isDarkTheme",f),this.squigglyBackground=f?this.JSC$13980_squigglyBackgroundDark:this.JSC$13980_squigglyBackgroundLight)};
_.e.updateSquigglyBackgroundStyle=function(){_.hO(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.e.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.e.detached=function(){this.stop()};
_.e.stop=function(){this.playerElement.stop()};
_.e.setupVideoPlayer=function(){var f=this,S,B;return _.R(function(G){S=f.data.videoId;B="http://i1.ytimg.com/vi/"+S+"/maxresdefault.jpg";f.playerElement.loadVideoWithPlayerVars({video_id:S,iurlhq:B});_.TT(G)})};
Gs.prototype.onDataChanged=Gs.prototype.onDataChanged;Gs.prototype.updateSquigglyBackgroundStyle=Gs.prototype.updateSquigglyBackgroundStyle;_.N([_.n({value:!1}),_.Z("design:type",Boolean)],Gs.prototype,"isDarkTheme",void 0);_.N([_.n(),_.Z("design:type",String)],Gs.prototype,"squigglyBackground",void 0);_.N([_.vF("#player"),_.Z("design:type",Object)],Gs.prototype,"playerElement",void 0);_.N([_.n(),_.Z("design:type",Object)],Gs.prototype,"data",void 0);
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],Gs.prototype,"ytActionHandlerBehavior",void 0);_.N([_.JO("squigglyBackground"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Gs.prototype,"updateSquigglyBackgroundStyle",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Gs.prototype,"onDataChanged",null);
_.N([_.C({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],Gs);
_.p(Gs,"ytd-handles-claiming-video-item-renderer",function(){if(QiX!==void 0)return QiX;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return QiX=f},{mode:1});var YzN;var e6=function(){var f=_.dv.apply(this,arguments)||this;f.dragging=!1;f.dragMouseStart=0;f.dragOffsetStart=0;f.containerWidthDiff=0;f.boundPrevClick=function(){f.set("offset",gS(f,f.offset-(f.scrollDistance||320)))};
f.boundNextClick=function(){f.set("offset",gS(f,f.offset+(f.scrollDistance||320)))};
f.boundScrollContainerMouseDown=function(S){f.dragMouseStart=S.clientX;f.dragOffsetStart=f.offset;f.dragging=!0};
f.boundScrollContainerDrag=function(S){f.dragging&&f.set("offset",gS(f,f.dragOffsetStart-(S.clientX-f.dragMouseStart)))};
f.boundMouseUp=function(){f.onMouseUp()};
f.boundWheelScroll=function(S){var B=0;Math.abs(S.deltaX)>=Math.abs(S.deltaY)?B=S.deltaX:S.shiftKey&&(B=S.deltaY);B!==0&&(f.offset+=B,S.stopPropagation(),S.preventDefault())};
f.boundChipCloudChipScrollIntoView=function(S){(S=S.detail)&&f.scrollChipIntoView(S)};
return f};
_.q(e6,_.dv);e6.prototype.attached=function(){var f=_.m9(this.hostElement).querySelector("#scroll-container");f.addEventListener("wheel",this.boundWheelScroll);f.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);f.style.touchAction="pan-y";f.addEventListener("pointerdown",this.boundScrollContainerMouseDown);f.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
e6.prototype.detached=function(){var f=_.m9(this.hostElement).querySelector("#scroll-container");f.removeEventListener("wheel",this.boundWheelScroll);f.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);f.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);f.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
e6.prototype.reset=function(){this.set("offset",0);_.ui(this,this.setContainerWidthDiff);bg(this)};
var gS=function(f,S){return Math.min(Math.max(S,0),f.containerWidthDiff)};
e6.prototype.onMouseUp=function(){this.dragging=!1};
e6.prototype.transformContainer=function(){this.offset=gS(this,this.offset);var f=_.nL("HTML_DIR")==="rtl"?"":"-";_.m9(this.hostElement).querySelector("#chips").style.transform="translateX("+f+this.offset+"px)";bg(this)};
var bg=function(f){_.ui(f,f.setButtonsState)};
e6.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=gS(this,this.offset));this.atStart=this.offset<=0};
e6.prototype.setContainerWidthDiff=function(){var f=_.m9(this.hostElement).querySelector("#scroll-container"),S=_.m9(this.hostElement).querySelector("#chips");f&&S&&(this.containerWidthDiff=S.clientWidth-f.clientWidth)};
e6.prototype.scrollChipIntoView=function(f){var S=_.m9(this.hostElement).querySelector("#scroll-container");if(S){var B=this.atStart?0:106,G=this.atEnd?0:106;f.offsetLeft<this.offset+B?this.offset=gS(this,f.offsetLeft-B):f.offsetLeft+f.clientWidth>this.offset+S.clientWidth-G&&(this.offset=gS(this,f.offsetLeft+f.clientWidth+G-S.clientWidth))}};
e6.prototype.transformContainer=e6.prototype.transformContainer;_.N([_.n({value:0}),_.Z("design:type",Number)],e6.prototype,"offset",void 0);_.N([_.n({value:!0,reflectToAttribute:!0}),_.Z("design:type",Boolean)],e6.prototype,"atStart",void 0);_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],e6.prototype,"atEnd",void 0);_.N([_.n(),_.Z("design:type",Number)],e6.prototype,"scrollDistance",void 0);
_.N([_.JO("offset"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],e6.prototype,"transformContainer",null);_.N([_.iu()],e6);var rT$;var jim;var Ez1=_.oS(function(f){var S=f.data;f=_.m(_.hj(!1,void 0,"icHmSe"));var B=f.next().value,G=f.next().value;f={};f=_.Pw("ytChipShapeChip",function(){a:switch(S==null?void 0:S().state){case 0:var b="ytChipShapeActive";break a;case 1:b="ytChipShapeDisabled";break a;default:b="ytChipShapeInactive"}return b},function(){var b=S().type===1||S().type===2,z=S();
return b||z!=null&&z.startIcon?z==null||!z.startIcon||z!=null&&z.text?b?"ytChipShapeEndIconPadding":(z==null?0:z.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(f.ytChipShapeFocused=function(){var b;
return B()&&((b=S())==null?void 0:b.state)!==1},f));
var g=function(b){if((S==null?void 0:S().state)!==1){var z,X;(X=(z=S()).onTap)==null||X.call(z,b)}};
return _.T("chip-shape",{class:"ytChipShapeHost","on:focusin":_.iF(function(){var b=_.oy().resolve(_.fN(_.R5));if(b){G(b.isKeyBoardInUse());var z,X;(X=(z=S()).onFocusIn)==null||X.call(z)}return!1}),
"on:focusout":_.iF(function(){G(!1);return!1})},_.T(Oai,{shouldWrapInButton:function(){return S().type!==2},
selected:function(){return S().state===0},
onClick:g,isDropdown:function(){return S().type===1},
accessibilityLabel:function(){return S().accessibilityLabel}},_.T("div",{class:f},_.T(_.v,{cond:function(){return S().startIcon},
then:function(){return _.T(_.Y8,{icon:function(){var b;return(b=S())==null?void 0:b.startIcon},
className:function(){return S().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return S().text},_.T(xQ8,{shape:S,
onClick:g}))))},"zb");
Ez1.idomCompat=!0;var Oai=_.oS(function(f){var S=_.iF(function(B){f.onClick(B);return!1});
return _.T(_.v,{cond:f.shouldWrapInButton,then:function(){return _.T("button",{class:"ytChipShapeButtonReset","on:click":S,role:function(){return f.isDropdown()?"combobox":"tab"},
"aria-label":f.accessibilityLabel,"aria-selected":f.selected},f.children)},
else:function(){return f.children}})},"Ab"),xQ8=_.oS(function(f){var S=f.shape;
var B=f.onClick;var G=_.iF(function(g){B(g);return!1});
return _.T(_.qp,null,_.T(_.i0,{when:function(){return S().type===1}},function(){return _.T(_.Y8,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.T(_.i0,{when:function(){return S().type===2}},function(){return _.T("button",{class:"ytChipShapeButtonReset",
"on:click":G},_.T(_.Y8,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.T(_.i0,{when:function(){return S().type===0}},function(){return _.T(_.gg,null)}))},"Bb");_.eq(Ez1,"chip-shape",{props:{data:_.W4}});var m7=function(){var f=_.I.apply(this,arguments)||this;f.disableDeselectEvent=!1;f.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return f};
_.q(m7,_.I);_.e=m7.prototype;_.e.onSelectChipCommand=function(f){if(!this.selected&&this.data&&(f=_.H(f,Z4m),f.targetId&&f.targetId===this.data.targetId))this.onTap()};
_.e.onFilterChipTransformCommand=function(f){if(!this.selected&&this.data){var S;(f=(S=_.H(f,ugj))==null?void 0:S.chipUniqueId)&&f===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.e.dataChanged=function(){var f=this;_.ui(this,function(){f.data&&f.data.isSelected&&!f.selected&&(f.scrollChipIntoView(),f.onTap())})};
_.e.computeChipStyle=function(f){return f!=null?f:"STYLE_DEFAULT"};
_.e.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.bW(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.bW(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.e.onFocus=function(){var f=_.oy().resolve(_.fN(_.R5));f&&f.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.e.scrollChipIntoView=function(){_.ew(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.y3.Object.defineProperties(m7.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return iUM({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
m7.prototype.onFocus=m7.prototype.onFocus;m7.prototype.onTap=m7.prototype.onTap;m7.prototype.dataChanged=m7.prototype.dataChanged;_.N([_.r(_.Ym),_.Z("design:type",Object)],m7.prototype,"ironButtonState",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],m7.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],m7.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],m7.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.qx),_.Z("design:type",Object)],m7.prototype,"ironA11yKeysBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],m7.prototype,"disableDeselectEvent",void 0);_.N([_.n(),_.Z("design:type",Object)],m7.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.k("data.icon"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],m7.prototype,"hasIcon",null);
_.N([_.n({reflectToAttribute:!0}),_.k("data.uniqueId"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],m7.prototype,"isGnomeChip",null);_.N([_.n({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.Z("design:type",String)],m7.prototype,"chipStyle",void 0);_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],m7.prototype,"selected",void 0);
_.N([_.k("data","selected"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],m7.prototype,"chipShapeData",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],m7.prototype,"dataChanged",null);_.N([_.Vg("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],m7.prototype,"onTap",null);
_.N([_.Vg("focus"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],m7.prototype,"onFocus",null);_.N([_.nP({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],m7);
_.p(m7,"yt-chip-cloud-chip-renderer",function(){if(jim===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;rT$===void 0&&(rT$=document.createElement("template"));var G=rT$;B.call(S,G.content.cloneNode(!0),f.content.firstChild);jim=f}f=jim;return f},{mode:2});var zs=function(){var f=_.I.apply(this,arguments)||this;f.isDarkTheme=!1;f.notSticky=!1;f.transparentBackground=!1;f.shouldHide=!1;f.disableSticky=!1;f.fluidWidth=!1;f.isClipList=!1;f.defaultChipIndex=0;f.isPlaylist=!1;f.playlistVotingAnimationEnabled=_.K("web_enable_voting_animation");f.toolbarHeight=0;f.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return f};
_.q(zs,_.I);_.e=zs.prototype;
_.e.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}}}}}};
_.e.attached=function(){var f=this;document.addEventListener("scroll",_.Fc(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var S;this.toolbarHeight=((S=document.querySelector("ytd-masthead"))==null?void 0:S.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(B){f.handleIntersect(B)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){f.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.e.detached=function(){var f;(f=this.intersectionObserver)==null||f.disconnect();var S;(S=this.resizeObserver)==null||S.disconnect();document.removeEventListener("scroll",_.Fc(this,this.updateChipBarWidthAndTop))};
_.e.dataChanged=function(){var f=this,S,B,G;((G=_.H((S=this.data)==null?void 0:(B=S.contents)==null?void 0:B[0],T17))==null?void 0:G.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var g=this.findSelectedChipIndex();this.selectedIndex!==g&&(this.selectedIndex=-1);_.ui(this,function(){f.selectedIndex=g;f.updating=!1;f.ytScrollableChipCloudBehavior.reset()})};
_.e.findSelectedChipIndex=function(){var f;if((f=this.data)==null||!f.contents)return 0;f=this.data.contents;for(var S=0;S<f.length;S++){var B=void 0;if((B=_.H(f[S],T17))==null?0:B.isSelected)return S}return 0};
_.e.computeStyle=function(f){return f};
_.e.handleChipCloudChipSelectAction=function(f){f=this.JSC$13999_chipsSelector.indexOf(f);f>-1&&this.JSC$13999_chipsSelector.selectIndex(f)};
_.e.handleChipCloudChipDeselectAction=function(){if(_.K("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var f,S,B,G=(B=_.H((f=this.data)==null?void 0:(S=f.contents)==null?void 0:S[0],T17))==null?void 0:B.navigationEndpoint;G&&_.bW(this.hostElement,"yt-browse-section-list-reload-endpoint",[G]);this.JSC$13999_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.e.onGuideIsExpandedChanged=function(){var f=this.ytScrollableChipCloudBehavior;_.ui(f,f.setContainerWidthDiff);bg(this.ytScrollableChipCloudBehavior)};
_.e.onResize=function(){var f=this.ytScrollableChipCloudBehavior;_.ui(f,f.setContainerWidthDiff);bg(this.ytScrollableChipCloudBehavior)};
_.e.onDarkModeToggledAction=function(f){this.isDarkTheme=f};
_.e.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.e.handleIntersect=function(f){this.notSticky=this.isChannelPageGrid||this.disableSticky||f[0].intersectionRatio===1};
_.e.updateDimensions=function(){var f=this.ytRendererBehavior.parentComponent;if(f){var S,B=(S=f.headerElement)!=null?S:f;_.hO(this.hostElement,{"--ytd-rich-grid-chips-bar-width":B.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.e.updateSelectedIndexFromBinding=function(f){this.selectedIndex=f.detail.value};
_.e.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var f;(f=this.sortFilterHeaderRendererElement)==null||f.setAttribute("is-playlist-page-with-filters","")}};
_.e.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(yl1(!this.notSticky))};
_.y3.Object.defineProperties(zs.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 f,S,B=(f=this.data)==null?void 0:(S=f.contents)==null?void 0:S.find(function(G){return _.H(G,vR8)});
return{sortFilterHeaderRenderer:_.H(B,vR8)}}}});
zs.prototype.dispatchChipBarIsSticky=zs.prototype.dispatchChipBarIsSticky;zs.prototype.isPlaylistPageChanged=zs.prototype.isPlaylistPageChanged;zs.prototype.updateChipBarWidthAndTop=zs.prototype.updateChipBarWidthAndTop;zs.prototype.onResize=zs.prototype.onResize;zs.prototype.onGuideIsExpandedChanged=zs.prototype.onGuideIsExpandedChanged;zs.prototype.dataChanged=zs.prototype.dataChanged;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],zs.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],zs.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],zs.prototype,"actionHandlerBehavior",void 0);_.N([_.r(_.Ld),_.Z("design:type",Object)],zs.prototype,"ironResizableBehavior",void 0);_.N([_.r(),_.Z("design:type",e6)],zs.prototype,"ytScrollableChipCloudBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],zs.prototype,"ytdReduxBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],zs.prototype,"data",void 0);_.N([_.n({value:0}),_.Z("design:type",Number)],zs.prototype,"selectedIndex",void 0);_.N([_.n({value:320}),_.Z("design:type",Number)],zs.prototype,"scrollDistance",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],zs.prototype,"isDarkTheme",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],zs.prototype,"notSticky",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],zs.prototype,"transparentBackground",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.Z("design:type",String)],zs.prototype,"componentStyle",void 0);_.N([_.n({selector:_.G9V}),_.Z("design:type",Boolean)],zs.prototype,"guideIsExpanded",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],zs.prototype,"shouldHide",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],zs.prototype,"disableSticky",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],zs.prototype,"fluidWidth",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],zs.prototype,"isClipList",void 0);_.N([_.n(),_.Z("design:type",Object)],zs.prototype,"defaultChipIndex",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],zs.prototype,"isPlaylist",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],zs.prototype,"playlistVotingAnimationEnabled",void 0);_.N([_.vF("#chips"),_.Z("design:type",Object)],zs.prototype,"JSC$13999_chipsSelector",void 0);_.N([_.vF("ytd-sort-filter-header-renderer"),_.Z("design:type",HTMLElement)],zs.prototype,"sortFilterHeaderRendererElement",void 0);_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],zs.prototype,"updating",void 0);
_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zs.prototype,"dataChanged",null);_.N([_.JO("guideIsExpanded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zs.prototype,"onGuideIsExpandedChanged",null);_.N([_.Vg("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zs.prototype,"onResize",null);
_.N([_.HF("isChannelPageGrid","disableSticky","data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zs.prototype,"updateChipBarWidthAndTop",null);_.N([_.k("componentStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],zs.prototype,"isChannelPageGrid",null);_.N([_.k("componentStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],zs.prototype,"isHashtagLandingPage",null);
_.N([_.JO("isPlaylistPage"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zs.prototype,"isPlaylistPageChanged",null);_.N([_.k("componentStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],zs.prototype,"isPlaylistPage",null);_.N([_.k("componentStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],zs.prototype,"isDisableDeselectEvent",null);
_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],zs.prototype,"sortFilterHeaderRendererData",null);_.N([_.n({reflectToAttribute:!0,selector:_.RG1}),_.Z("design:type",String)],zs.prototype,"frostedGlassMode",void 0);_.N([_.JO("notSticky"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zs.prototype,"dispatchChipBarIsSticky",null);_.N([_.C({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],zs);
_.p(zs,"ytd-feed-filter-chip-bar-renderer",function(){if(YzN!==void 0)return YzN;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return YzN=f},{mode:1});var Lhi;var kPN=_.oS(function(f){var S=f.data;var B=f.buttonIndex;var G=f.selectedIndex;var g=f.onSelect;var b=function(){return B()===G()},z=function(){var X,w;
return(w=(X=S().text)==null?void 0:X.content)!=null?w:""};
f=_.lQG();return _.T("yt-toggleable-image-button-view-model",{class:function(){var X={};X=(X["toggleable-image-button-view-model-wiz"]=!0,X[""]=!0,X["toggleable-image-button-view-model-wiz__semi-transparent"]=G()!==-1&&!b(),X);return _.K9(X)},
tabindex:0,"aria-label":z,"aria-pressed":b,role:"button","on:keydown":f,"on:click":_.iF(function(){g(S().onSubmitCommand);return!1})},_.T(_.v,{cond:function(){return S().logo},
then:function(X){return _.T(_.f9,{data:X,className:function(){var w={};w=(w["toggleable-image-button-view-model-wiz__image"]=!0,w["toggleable-image-button-view-model-wiz__circular-radius"]=!(!S().backgroundColor||!S().backgroundColorDarkMode),w["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(b()&&S().backgroundColor&&S().backgroundColorDarkMode),w);return _.K9(w)},
alt:z,useWidth:!1,style:function(){if(b()&&S().backgroundColor&&S().backgroundColorDarkMode){var w=No(Number(S().backgroundColorDarkMode),"1");var F=No(Number(S().backgroundColor),"1");w="background: linear-gradient(180deg,"+w+","+F+") border-box;"}else w="";return w}})}}),_.T(_.Oo,{model:{borderRadius:"16px"}}),_.T("p",{class:function(){var X={};
X=(X["toggleable-image-button-view-model-wiz__label"]=!0,X["toggleable-image-button-view-model-wiz__bold-text"]=b(),X);return _.K9(X)}},_.T(_.oY,{text:function(){return S().text}})))},"Cb");
kPN.idomCompat=!0;var siN=_.oS(function(f){var S=f.data;f=_.m(_.hj({index:-1,command:{}},void 0,"Zcqtsb"));var B=f.next().value,G=f.next().value;return _.T("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.T("div",{class:"nudge-form-view-model-wiz__form-options"},_.T(_.xK,{data:function(){return S().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(g,b){return _.T(kPN,{data:g.data,buttonIndex:b,selectedIndex:function(){return B().index},
onSelect:function(z){G({index:b(),command:z})}})}})),_.T(_.oY,{text:function(){return S().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.T("div",{class:"nudge-form-view-model-wiz__submit"},_.T(_.xK,{data:function(){return S().submitButton}},{buttonViewModel:function(g){return _.T(nzo,{data:g.data,
isDisabled:function(){return B().index===-1},
onClick:function(){_.MB(B().command)}})}})))},"Db");
siN.idomCompat=!0;var nzo=_.oS(function(f){var S=_.vW(function(){return Object.assign({},f.data(),{state:f.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.T(_.I8,{data:S,onClick:f.onClick})},"Eb");_.eq(siN,"yt-nudge-form-view-model",{props:{data:_.W4}});var RM=function(){var f=_.I.apply(this,arguments)||this;f.roundedContainer=!0;f.buttonUpdate=_.K("web_modern_buttons");f.isDarkMode=!1;f.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return f};
_.q(RM,_.I);_.e=RM.prototype;_.e.computeNudgeStyle=function(f){return f?"modernized-nudge":""};
_.e.handleDarkModeToggledAction=function(f){this.isDarkMode=f};
_.e.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.e.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"}}}};
_.e.computeIsHorizontalButtons=function(f){return f?!!f.applyModernizedStyle&&!!f.enableHorizontalButtons&&!!f.secondaryButton:!1};
_.y3.Object.defineProperties(RM.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var f,S;return(S=(f=this.data)==null?void 0:f.backgroundStyle)!=null?S:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var f,S;return(S=(f=this.data)==null?void 0:f.contentsLocation)!=null?S:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null?0:f.lightIconImage)}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],RM.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],RM.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.kP),_.Z("design:type",Object)],RM.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],RM.prototype,"actionHandlerBehavior",void 0);
_.N([_.n({reflectToAttribute:!0}),_.k("isHideEnclosingAction"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],RM.prototype,"isHidden",null);_.N([_.n(),_.Z("design:type",Object)],RM.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],RM.prototype,"roundedContainer",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],RM.prototype,"buttonUpdate",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.Z("design:type",String)],RM.prototype,"nudgeStyle",void 0);_.N([_.n({reflectToAttribute:!0}),_.k("data.trimStyle"),_.Z("design:type",String),_.Z("design:paramtypes",[])],RM.prototype,"trimStyle",null);_.N([_.n({reflectToAttribute:!0}),_.k("data.backgroundStyle"),_.Z("design:type",String),_.Z("design:paramtypes",[])],RM.prototype,"backgroundStyle",null);
_.N([_.n({reflectToAttribute:!0}),_.k("data.contentsLocation"),_.Z("design:type",String),_.Z("design:paramtypes",[])],RM.prototype,"contentsLocation",null);_.N([_.n({reflectToAttribute:!0}),_.k("data.disableDropShadow"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],RM.prototype,"noShadow",null);_.N([_.n({reflectToAttribute:!0}),_.k("data.lightIconImage"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],RM.prototype,"noIcon",null);
_.N([_.n({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.Z("design:type",Boolean)],RM.prototype,"isHorizontalButtons",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Object)],RM.prototype,"isDarkMode",void 0);_.N([_.C({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],RM);
_.p(RM,"ytd-feed-nudge-renderer",function(){if(Lhi!==void 0)return Lhi;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Lhi=f},{mode:_.X_("kevlar_poly_si_batch_j028")?1:2});var DQj;var I46;var X4=function(){var f=_.I.apply(this,arguments)||this;f.collapsed=!1;f.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return f};
_.q(X4,_.I);X4.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"}}}};
X4.prototype.handleRatingSelect=function(){var f;((f=this.data)==null?0:f.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
X4.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],X4.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],X4.prototype,"actionHandlerBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],X4.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],X4.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.kP),_.Z("design:type",Object)],X4.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],X4.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],X4.prototype,"collapsed",void 0);_.N([_.C({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],X4);
_.p(X4,"ytd-slimline-survey-renderer",function(){if(I46!==void 0)return I46;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return I46=f},{mode:1});var UQN;var wS=function(){return _.I.apply(this,arguments)||this};
_.q(wS,_.I);wS.prototype.maybeGetBackgroundColor=function(f){return this.isDarkMode?f.section2Color:f.section3Color};
wS.prototype.colorPaletteChanged=function(){var f=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;f&&(f==null?0:f.secondaryTitleColor)&&this.maybeGetBackgroundColor(f)?(this.hostElement.style.backgroundColor=_.pn(this.maybeGetBackgroundColor(f)),this.hostElement.style.color=_.pn(f.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
wS.prototype.colorPaletteChanged=wS.prototype.colorPaletteChanged;_.N([_.r(_.Ek),_.Z("design:type",Object)],wS.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],wS.prototype,"data",void 0);_.N([_.n({selector:function(f){return f.ui.darkModeIsEnabled}}),
_.Z("design:type",Boolean)],wS.prototype,"isDarkMode",void 0);_.N([_.n(),_.Z("design:type",Object)],wS.prototype,"lightColorPalette",void 0);_.N([_.n(),_.Z("design:type",Object)],wS.prototype,"darkColorPalette",void 0);_.N([_.JO("darkColorPalette","lightColorPalette","data","isDarkMode"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],wS.prototype,"colorPaletteChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],wS);
_.p(wS,"ytd-endorsement-header-renderer",function(){if(UQN!==void 0)return UQN;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return UQN=f},{mode:1});_.eq(_.rn,"yt-decorated-avatar-view-model",{props:{data:_.W4,className:_.W4}});var h6=function(){var f=_.I.apply(this,arguments)||this;f.fullHeight=_.K("web_rich_grid_media_full_height");f.showChannelAvatar=!0;f.hasPlaylistThumbnail=!1;f.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};f.prepareThumbnailForPageTransition=function(){_.K("web_thumbnail_to_watch_transition")&&(f.thumbnail.style.viewTransitionName="thumbnail-to-watch",f.cleanupThumbnailAfterPageTransition(f.thumbnail))};
return f};
_.q(h6,_.I);_.e=h6.prototype;
_.e.configureRendererStamper=function(){return{lazyLoadMenu:hH,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"}}}};
_.e.attached=function(){this.updateInlinePreviewHoverListeners()};
_.e.detached=function(){this.clearInlinePreviewHoverListeners()};
_.e.shouldLazyLoadMenu=function(){var f=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.K("kevlar_modern_downloads_page")||!f};
_.e.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14025_inlinePreviewHoverListener=W8({mediaRenderer:this,lockupElement:this.JSC$14025_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.e.getVideoPreviewOpts=function(){var f={},S;if((S=this.data)==null?0:S.multipleInlinePlaybackEndpoint)f=Lem;this.isRadio&&(f=Ex1);return _.K("web_thumbnail_to_watch_transition")?Object.assign({},f,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):f};
_.e.clearInlinePreviewHoverListeners=function(){var f;(f=this.JSC$14025_inlinePreviewHoverListener)==null||mZ(f)};
_.e.getOwner=function(){var f,S,B;return((f=this.data)==null?void 0:(S=f.channelThumbnailSupportedRenderers)==null?void 0:S.channelThumbnailWithLinkRenderer)||_.H((B=this.data)==null?void 0:B.showProviderChannelThumbnail,gWi)};
_.e.updateLockupSize=function(){var f;((f=this.getOwner())==null?0:f.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.e.getFeedbackEndpoint=function(f){if(_.H(f,_.IQ))return f;var S,B;f=(B=(S=_.H(f,_.hf))==null?void 0:S.commands)!=null?B:[];S=_.m(f);for(B=S.next();!B.done;B=S.next())if(B=this.getFeedbackEndpoint(B.value))return B;return null};
_.e.computeNavigationEndpoint=function(f){return n9V(f==null?void 0:f.navigationEndpoint)};
_.e.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var f=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(f)!==JSON.stringify(this.data)&&this.set("data",f)}};
_.e.onDataChanged=function(){var f=this,S=this.getOwner();if(S){this.set("data.owner",S);var B,G,g,b,z,X=((B=this.data)==null?void 0:(G=B.shortBylineText)==null?void 0:(g=G.runs)==null?void 0:(b=g[0])==null?void 0:b.text)||((z=S.name)==null?void 0:z.simpleText);this.set("data.owner.title",X)}var w,F,V,J,P,d;S=((w=this.data)==null?void 0:(F=w.thumbnailRenderer)==null?void 0:F.playlistVideoThumbnailRenderer)||((V=this.data)==null?void 0:(J=V.thumbnailRenderer)==null?void 0:J.playlistCustomThumbnailRenderer)||
((P=this.data)==null?void 0:(d=P.thumbnailRenderer)==null?void 0:d.showCustomThumbnailRenderer);var Q;((Q=this.data)==null?0:Q.thumbnail)||!S||this.set("data.thumbnail",S.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){f.updateLockupSize()});
var x;if(w=((x=this.data)==null?void 0:x.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(w);var E;((E=this.dismissActionToReplayEntity)==null?0:E.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.e.onHiddenChanged=function(){this.updateLockupSize()};
_.e.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.bW(this.hostElement,"yt-terminate-video-preview-action");else{var f;(f=this.videoTitleLink)==null||f.focus()}};
_.e.metadataColorChanged=function(){var f;if(this.metadataColor&&((f=this.videoTitle)==null?0:f.style))this.videoTitle.style.color=_.pn(this.metadataColor);else{var S,B;!this.metadataColor&&((S=this.videoTitle)==null?0:(B=S.style)==null?0:B.color)&&(this.videoTitle.style.color="")}};
_.e.onDetailsClick=function(f){var S=this.computedNavigationEndpoint;S&&(_.lF(_.ct(f),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.ew(this.hostElement,"yt-navigate",{endpoint:S}))};
_.e.cleanupThumbnailAfterPageTransition=function(f){_.DoQ(document,"yt-page-type-changed",function(){f.style.viewTransitionName=""})};
_.e.onRendererTap=function(){this.prepareThumbnailForPageTransition();var f,S,B=((f=this.data)==null?void 0:f.serviceEndpoint)||this.getFeedbackEndpoint((S=this.data)==null?void 0:S.navigationEndpoint);B&&_.H(B,_.IQ)&&this.ytComponentBehavior.resolveCommand(B)};
_.e.onMouseDown=function(f){var S=f.target,B=this.computedNavigationEndpoint,G;f=S.href||((G=_.H(B==null?void 0:B.commandMetadata,_.oD))==null?void 0:G.url);G=S.data||B;f&&G&&kUs(f,G)};
_.e.computeVideoTitleText=function(){var f;if((f=this.data)==null?0:f.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.e.computeHasPlaylistThumbnail=function(f){var S,B,G,g,b;if((((S=f.thumbnailRenderer)==null?0:S.playlistVideoThumbnailRenderer)||((B=f.thumbnailRenderer)==null?0:B.playlistCustomThumbnailRenderer)||((G=f.thumbnailRenderer)==null?0:G.showCustomThumbnailRenderer)||((g=f.thumbnailRenderer)==null?0:g.playlistVideoThumbnailRenderer)||((b=f.thumbnailRenderer)==null?0:b.playlistCustomThumbnailRenderer))&&f.thumbnailOverlays)for(S=0;S<f.thumbnailOverlays.length;S++)if(B=void 0,(B=f.thumbnailOverlays[S])==
null?0:B.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.y3.Object.defineProperties(h6.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.K("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var f;return(f=this.data)==null?void 0:f.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var f;return(f=this.data)==null?void 0:f.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.JSC$14025_inlinePreviewHoverListener)==null?0:Er(f))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.JK(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var f,S;return((f=this.data)==null?void 0:f.videoId)||((S=this.data)==null?void 0:S.playlistId)||""}}});
h6.prototype.onMouseDown=h6.prototype.onMouseDown;h6.prototype.metadataColorChanged=h6.prototype.metadataColorChanged;h6.prototype.onIsDismissedChanged=h6.prototype.onIsDismissedChanged;h6.prototype.onHiddenChanged=h6.prototype.onHiddenChanged;h6.prototype.onDataChanged=h6.prototype.onDataChanged;h6.prototype.handleReloadDownloadsInfo=h6.prototype.handleReloadDownloadsInfo;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],h6.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],h6.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],h6.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.kP),_.Z("design:type",Object)],h6.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.r(_.pR),_.Z("design:type",Object)],h6.prototype,"ytdLockupBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],h6.prototype,"ytdReduxBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],h6.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",String)],h6.prototype,"entitySelectorType",void 0);_.N([_.n(),_.Z("design:type",Boolean)],h6.prototype,"noEndpoints",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],h6.prototype,"isRadio",void 0);_.N([_.n({reflectToAttribute:!0,selector:_.xr}),_.Z("design:type",Boolean)],h6.prototype,"miniMode",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],h6.prototype,"fullHeight",void 0);
_.N([_.n(),_.Z("design:type",Boolean)],h6.prototype,"showDarkVideoMetadata",void 0);_.N([_.n(),_.Z("design:type",Boolean)],h6.prototype,"showLightVideoMetadata",void 0);_.N([_.n(),_.Z("design:type",Number)],h6.prototype,"metadataColor",void 0);_.N([_.n(),_.Z("design:type",Object)],h6.prototype,"showChannelAvatar",void 0);_.N([_.n(),_.Z("design:type",Boolean)],h6.prototype,"hidden",void 0);_.N([_.n({value:!0}),_.Z("design:type",Boolean)],h6.prototype,"showYtInteraction",void 0);
_.N([_.n(),_.Z("design:type",String)],h6.prototype,"dismissedContentId",void 0);_.N([_.n({selectorArgs:["dismissedContentId"],selector:ir1}),_.Z("design:type",Object)],h6.prototype,"dismissActionToReplayEntity",void 0);
_.N([_.n({selectorArgs:["entitySelectorType","mediaId"],selector:function(f,S,B){if(_.K("kevlar_modern_downloads_page")&&B&&S&&S!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(S){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var G=TU1(f,B);if(G){S=_.sA(f,B);var g=Ic(f,B),b=$GN(f,B);f=UA(f,B);var z=SXV(G,S,g,b);g=z.shortViewCountText;var X=z.publishedTimeText;z=z.badges;var w=f>0;b=frT(G,S,b,f);G=_.d9(S)||S==="TRANSFER_STATE_FAILED"||S==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!KJ(G.policyEntity)?
void 0:LnA(B,f,G.videoEntity.lengthSeconds);S==="TRANSFER_STATE_PAUSED_BY_USER"&&B&&!_.K("dl_resume_click_killswitch")&&(G={offlineVideoEndpoint:{videoId:B,action:"ACTION_RESUME"}});B={shortViewCountText:g,publishedTimeText:X,badges:z,isWatched:w,navigationEndpoint:G,thumbnailOverlays:b}}else B=void 0;return B;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(S=FkN(f,B))if(G=_.DK(f,B),b=_.VRN(f,B),G!=="TRANSFER_STATE_UNKNOWN"){B=oZG(S,G,b,B,nJ(f));break a}B=void 0}return B;default:_.Lg(new _.dO("Error: entitySelectorType defined but not matched in selector.",
f,S))}}}),
_.Z("design:type",Object)],h6.prototype,"entityDrivenState",void 0);_.N([_.n({computed:"computeVideoTitleText(data)"}),_.Z("design:type",Object)],h6.prototype,"videoTitleText",void 0);_.N([_.n({computed:"computeHasPlaylistThumbnail(data)"}),_.Z("design:type",Object)],h6.prototype,"hasPlaylistThumbnail",void 0);_.N([_.n({computed:"computeNavigationEndpoint(data)"}),_.Z("design:type",Object)],h6.prototype,"computedNavigationEndpoint",void 0);
_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],h6.prototype,"typographyBump",void 0);_.N([_.n({reflectToAttribute:!0}),_.k("typographyBump"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],h6.prototype,"typographyBumpV2",null);_.N([_.vF("#video-title"),_.Z("design:type",HTMLElement)],h6.prototype,"videoTitle",void 0);_.N([_.vF("#video-title-link"),_.Z("design:type",HTMLElement)],h6.prototype,"videoTitleLink",void 0);
_.N([_.vF("#thumbnail"),_.Z("design:type",HTMLElement)],h6.prototype,"thumbnail",void 0);_.N([_.vF("#dismissible"),_.Z("design:type",HTMLElement)],h6.prototype,"JSC$14025_dismissibleMedia",void 0);_.N([_.k("data.menu"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],h6.prototype,"lazyLoadMenu",null);_.N([_.k("data.menu"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],h6.prototype,"immediateLoadMenu",null);
_.N([_.HF("entityDrivenState"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],h6.prototype,"handleReloadDownloadsInfo",null);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],h6.prototype,"onDataChanged",null);_.N([_.HF("hidden"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],h6.prototype,"onHiddenChanged",null);
_.N([_.JO("isDismissed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],h6.prototype,"onIsDismissedChanged",null);_.N([_.JO("metadataColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],h6.prototype,"metadataColorChanged",null);_.N([_.Vg("mousedown"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],h6.prototype,"onMouseDown",null);
_.N([_.k("lockupIsHovered"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],h6.prototype,"isHovered",null);_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],h6.prototype,"useAvatar",null);_.N([_.k("data","entitySelectorType"),_.Z("design:type",String),_.Z("design:paramtypes",[])],h6.prototype,"mediaId",null);_.N([_.C({is:"ytd-rich-grid-media",disableElementRegistration:!0})],h6);
var CUX=_.RS()(h6,"ytd-rich-grid-media",function(){if(DQj!==void 0)return DQj;var f=document.createElement("template");_.Y(f,'\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>');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return DQj=f},{mode:_.X_("kevlar_poly_si_batch_j072")?1:2});var pRi;var Ts=function(){var f=_.I.apply(this,arguments)||this;f.removeMaxWidth=!0;f.insetMetadata=!1;return f};
_.q(Ts,_.I);_.e=Ts.prototype;_.e.configureRendererStamper=function(){return{innerMenu:hH,outerMenu:Object.assign({},hH,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.e.onDataChanged=function(){var f,S=((f=this.data)==null?void 0:f.trackingParams)||"";S&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(S));var B;((B=this.dismissActionToReplayEntity)==null?0:B.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.e.attached=function(){this.updateInlinePreviewHoverListeners()};
_.e.detached=function(){this.clearInlinePreviewHoverListeners()};
_.e.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$14030_inlinePreviewHoverListener=W8({mediaRenderer:this,lockupElement:this.JSC$14030_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:kAN})};
_.e.clearInlinePreviewHoverListeners=function(){var f;(f=this.JSC$14030_inlinePreviewHoverListener)==null||mZ(f)};
_.e.onRendererTap=function(){var f,S,B=(f=this.data)==null?void 0:(S=f.serviceEndpoints)==null?void 0:S[0];_.H(B,_.IQ)&&this.componentBehavior.resolveCommand(B)};
_.e.onDetailsClick=function(f){var S,B=(S=this.data)==null?void 0:S.navigationEndpoint;B&&(_.lF(_.ct(f),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(B))};
_.e.onShow=function(){var f=this.data;f.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(f.onFirstVisibleCommand),delete f.onFirstVisibleCommand)};
_.y3.Object.defineProperties(Ts.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var f;return this.insetMetadata?void 0:(f=this.data)==null?void 0:f.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var f;return this.insetMetadata?(f=this.data)==null?void 0:f.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var f=this.data;if(f!=null&&f.badge&&(f=_.H(f.badge,bsi))){var S,B,G;return[{metadataBadgeRenderer:{label:((S=f.label)==null?void 0:(B=S.runs)==null?void 0:B[0].text)||((G=f.label)==null?void 0:G.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var f=this.data;return Object.assign({},f.headline,{accessibility:f.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var f,S,B;return this.isSlimShort?(f=this.computedTitle)==null?void 0:(S=f.accessibility)==null?void 0:(B=S.accessibilityData)==null?void 0:B.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.K("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.JSC$14030_inlinePreviewHoverListener)==null?0:Er(f))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Ts.prototype.onDataChanged=Ts.prototype.onDataChanged;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Ts.prototype,"componentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Ts.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.pR),_.Z("design:type",Object)],Ts.prototype,"ytdLockupBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Ts.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.r(_.kP),_.Z("design:type",Object)],Ts.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],Ts.prototype,"ytdReduxBehavior",void 0);_.N([_.vF("ytd-thumbnail"),_.Z("design:type",HTMLElement)],Ts.prototype,"thumbnail",void 0);_.N([_.vF("#dismissible"),_.Z("design:type",HTMLElement)],Ts.prototype,"JSC$14030_dismissibleMedia",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Ts.prototype,"removeMaxWidth",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Ts.prototype,"insetMetadata",void 0);_.N([_.n(),_.Z("design:type",String)],Ts.prototype,"dismissedContentId",void 0);_.N([_.n({selectorArgs:["dismissedContentId"],selector:ir1}),_.Z("design:type",Object)],Ts.prototype,"dismissActionToReplayEntity",void 0);_.N([_.k("insetMetadata"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ts.prototype,"thumbnailObjectFit",null);
_.N([_.k("data","insetMetadata"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ts.prototype,"innerMenu",null);_.N([_.k("data","insetMetadata"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ts.prototype,"outerMenu",null);_.N([_.n(),_.Z("design:type",Object)],Ts.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,selector:_.xr}),_.Z("design:type",Boolean)],Ts.prototype,"miniMode",void 0);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ts.prototype,"onDataChanged",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ts.prototype,"shortsBadges",null);_.N([_.k("data"),_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Ts.prototype,"isShort",null);
_.N([_.k("data"),_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Ts.prototype,"isSlimShort",null);_.N([_.k("data","isShort"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ts.prototype,"computedTitle",null);_.N([_.k("isSlimShort","computedTitle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ts.prototype,"computedAccessibilityLabel",null);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Ts.prototype,"shouldForce2By3",null);_.N([_.k("lockupIsHovered"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Ts.prototype,"isHovered",null);_.N([_.C({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],Ts);
_.p(Ts,"ytd-rich-grid-slim-media",function(){if(pRi!==void 0)return pRi;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return pRi=f},{mode:_.X_("kevlar_poly_si_batch_j063")?1:2});var AT7;var NTi;var F4=function(){var f=_.I.apply(this,arguments)||this;f.darkerDarkTheme=_.K("web_darker_dark_theme");return f};
_.q(F4,_.I);F4.prototype.computeIcon=function(f){return f&&f.iconType?"yt-sys-icons:"+f.iconType.toLowerCase():""};
F4.prototype.onMouseEnter=function(){this.isHovered=!0};
F4.prototype.onMouseLeave=function(){this.isHovered=!1};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],F4.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],F4.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],F4.prototype,"ytComponentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],F4.prototype,"data",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],F4.prototype,"isHovered",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],F4.prototype,"darkerDarkTheme",void 0);_.N([_.C({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],F4);
_.p(F4,"ytd-expand-on-hover-card-renderer",function(){if(NTi!==void 0)return NTi;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return NTi=f},{mode:1});var MiN,ZaN=function(){if(MiN!==void 0)return MiN;var f=document.createElement("template");_.Y(f,'\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>');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return MiN=f};_.Dd("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var VT=function(){var f=_.I.apply(this,arguments)||this;f.compactStyle=!1;f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return f};
_.q(VT,_.I);_.e=VT.prototype;_.e.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.e.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"}}}};
_.e.computeHideDot=function(f){return!(f&&f.subscriberCountText&&f.videoCountText)||this.compactStyle};
_.e.hasDualButtons=function(f){return f&&f.purchaseButton&&f.subscribeButton};
_.e.backgroundColorChanged=function(){if(this.data!==void 0){var f=this.data.backgroundColor;this.isDarkTheme&&(f=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=f!=null?_.pn(f):"transparent"}};
_.e.onDarkModeToggledAction=function(f){this.isDarkTheme=f};
_.e.onTap=function(f){var S,B,G=((S=this.data)==null?void 0:S.navigationEndpoint)||((B=this.data)==null?void 0:B.serviceEndpoint);_.H(G,_.mv)&&(G&&_.oy().resolve(_.S7).resolveCommand(G,{form:{element:this.hostElement}}),f.preventDefault())};
_.e.computeChannelEndpoint=function(f){return _.H(f,_.mv)?null:f};
_.e.computeHrefEndpoint=function(f){return _.H(f,_.mv)?null:this.componentBehavior.computeHref_(f)};
_.e.computeChannelRendererStyle=function(f){return f};
_.e.computeIconSize=function(f){return f?108:136};
_.y3.Object.defineProperties(VT,{template:{configurable:!0,enumerable:!0,get:function(){return ZaN()}}});
VT.prototype.backgroundColorChanged=VT.prototype.backgroundColorChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],VT.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],VT.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.a5),_.Z("design:type",Object)],VT.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],VT.prototype,"componentBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],VT.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Boolean)],VT.prototype,"isDarkTheme",void 0);_.N([_.n({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.Z("design:type",String)],VT.prototype,"channelRendererStyle",void 0);_.N([_.n({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],VT.prototype,"dualButtons",void 0);_.N([_.n({reflectToAttribute:!0,value:function(){return _.K("enable_desktop_search_bigger_thumbs")}}),
_.Z("design:type",Boolean)],VT.prototype,"useBiggerThumbs",void 0);_.N([_.n({reflectToAttribute:!0,value:function(){return _.gO("desktop_search_bigger_thumbs_style")}}),
_.Z("design:type",String)],VT.prototype,"biggerThumbStyle",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],VT.prototype,"compactStyle",void 0);_.N([_.JO("data","isDarkTheme"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],VT.prototype,"backgroundColorChanged",null);_.N([_.C({is:"ytd-channel-renderer",disableElementRegistration:!0})],VT);_.p(VT,"ytd-channel-renderer",function(){return ZaN()},{mode:1});var ti6;var ueg;_.Dd("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var J6=function(){var f=_.I.apply(this,arguments)||this;f.displayItemCount=2;f.collections=_.K("web_modern_collections_v2");f.hasPlaylistThumbnail=!1;f.stackThumbnailSize="large";return f};
_.q(J6,_.I);_.e=J6.prototype;_.e.attached=function(){this.updateInlinePreviewHoverListeners()};
_.e.detached=function(){this.clearInlinePreviewHoverListeners()};
_.e.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.e.computeFirstVideos=function(f,S){return f&&S?f.slice(0,S):[]};
_.e.computeThumbnailWidth=function(f,S){return f?S==="BIG"?500:S==="MASSIVE"?600:S==="MEDIUM"?450:420:360};
_.e.computeThumbnailHeight=function(f,S){return f?S==="BIG"?280:S==="MASSIVE"?337:234:202};
_.e.clearInlinePreviewHoverListeners=function(){var f;(f=this.JSC$14043_inlinePreviewHoverListener)==null||mZ(f)};
_.e.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14043_inlinePreviewHoverListener=W8({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:Lem,thumbnailElement:this.thumbnail})};
_.e.computeHasPlaylistThumbnail=function(f){var S,B;if((((S=f.thumbnailRenderer)==null?0:S.playlistVideoThumbnailRenderer)||((B=f.thumbnailRenderer)==null?0:B.playlistCustomThumbnailRenderer))&&f.thumbnailOverlays)for(S=0;S<f.thumbnailOverlays.length;S++)if(B=void 0,(B=f.thumbnailOverlays[S])==null?0:B.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.y3.Object.defineProperties(J6.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.JSC$14043_inlinePreviewHoverListener)==null?0:Er(f))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
J6.prototype.dataChanged=J6.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],J6.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.pR),_.Z("design:type",Object)],J6.prototype,"ytdLockupBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],J6.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],J6.prototype,"displayItemCount",void 0);_.N([_.n({reflectToAttribute:!0,value:function(){return _.K("enable_desktop_search_bigger_thumbs")}}),
_.Z("design:type",Boolean)],J6.prototype,"useBiggerThumbs",void 0);_.N([_.n({reflectToAttribute:!0,value:function(){return _.gO("desktop_search_bigger_thumbs_style")}}),
_.Z("design:type",String)],J6.prototype,"biggerThumbsStyle",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],J6.prototype,"collections",void 0);_.N([_.n({computed:"computeHasPlaylistThumbnail(data)"}),_.Z("design:type",Object)],J6.prototype,"hasPlaylistThumbnail",void 0);_.N([_.n(),_.Z("design:type",String)],J6.prototype,"stackThumbnailSize",void 0);_.N([_.vF("ytd-thumbnail"),_.Z("design:type",HTMLElement)],J6.prototype,"thumbnail",void 0);
_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],J6.prototype,"dataChanged",null);_.N([_.k("lockupIsHovered"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],J6.prototype,"isHovered",null);_.N([_.C({is:"ytd-radio-renderer",disableElementRegistration:!0})],J6);
_.p(J6,"ytd-radio-renderer",function(){if(ueg!==void 0)return ueg;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return ueg=f},{mode:_.X_("kevlar_poly_si_batch_j058")?1:2});var a4$;_.Dd("itemSectionRenderer","showRenderer","ytd-show-renderer");var PI=function(){return _.I.apply(this,arguments)||this};
_.q(PI,_.I);PI.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
PI.prototype.computeThumbnailWidth=function(f){return f?360:246};
PI.prototype.computeUseProminentThumbs=function(f){return f};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],PI.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],PI.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],PI.prototype,"data",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],PI.prototype,"isSearch",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.Z("design:type",Boolean)],PI.prototype,"useProminentThumbs",void 0);_.N([_.C({is:"ytd-show-renderer",disableElementRegistration:!0})],PI);
_.p(PI,"ytd-show-renderer",function(){if(a4$!==void 0)return a4$;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return a4$=f},{mode:1});_.Dd("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var vI=function(){var f=_.I.apply(this,arguments)||this;f.isRichGrid=!1;return f};
_.q(vI,_.I);vI.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"}}}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],vI.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],vI.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],vI.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],vI.prototype,"isRichGrid",void 0);_.N([_.C({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],vI);
_.p(vI,"ytd-feed-entry-renderer",function(){if(ti6!==void 0)return ti6;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return ti6=f},{mode:1});var yTX;var Kc=function(){return _.I.apply(this,arguments)||this};
_.q(Kc,_.I);Kc.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.N([_.r(_.Ek),_.Z("design:type",Object)],Kc.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Kc.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Kc.prototype,"ytComponentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Kc.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,selector:_.EA,value:3}),_.Z("design:type",Number)],Kc.prototype,"itemsPerRow",void 0);
_.N([_.C({is:"ytd-link-card-renderer",disableElementRegistration:!0})],Kc);
_.p(Kc,"ytd-link-card-renderer",function(){if(yTX!==void 0)return yTX;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return yTX=f},{mode:1});var Wh7;var dS=function(){return _.I.apply(this,arguments)||this};
_.q(dS,_.I);_.e=dS.prototype;_.e.configureRendererStamper=function(){return{"data.menu":hH,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.e.onRendererTap=function(f){if(!this.ytdDismissibleItemBehavior.isDismissed){var S,B=(S=this.data)==null?void 0:S.navigationEndpoint;B&&!_.lF(_.ct(f),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(B)?_.lF(_.ct(f),this.hostElement,["A"])||_.ew(this.hostElement,"yt-navigate",{endpoint:B}):this.ytComponentBehavior.resolveCommand(B,{}))}};
_.e.maybeComputeHref=function(f){return this.ytComponentBehavior.computeHref_(f,!0)};
_.e.getNavigationCommand=function(f){return this.isNavigationCommand(f)?f:null};
_.e.isNavigationCommand=function(f){return f?_.H(f,_.d3)||_.H(f,_.t2)||_.H(f,_.pg)?!0:!1:!1};
dS.prototype.onRendererTap=dS.prototype.onRendererTap;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],dS.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],dS.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.kP),_.Z("design:type",Object)],dS.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],dS.prototype,"ytComponentBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],dS.prototype,"data",void 0);_.N([_.Vg("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],dS.prototype,"onRendererTap",null);_.N([_.C({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],dS);
_.p(dS,"ytd-lumiere-promo-item-image-renderer",function(){if(Wh7!==void 0)return Wh7;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Wh7=f},{mode:1});var cTX;var ig=function(){return _.I.apply(this,arguments)||this};
_.q(ig,_.I);ig.prototype.computeLandscapeThumbnail=function(){var f;return((f=this.data)==null?void 0:f.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],ig.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],ig.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],ig.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,selector:_.xr}),_.Z("design:type",Boolean)],ig.prototype,"miniMode",void 0);_.N([_.n({reflectToAttribute:!0,selector:_.EA}),_.Z("design:type",Number)],ig.prototype,"itemsPerRow",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.Z("design:type",Boolean)],ig.prototype,"landscapeThumbnail",void 0);_.N([_.C({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],ig);
_.p(ig,"ytd-lumiere-shelf-details-renderer",function(){if(cTX!==void 0)return cTX;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return cTX=f},{mode:_.X_("kevlar_poly_si_batch_j076")?1:2});var l4$;var HI=function(){return _.I.apply(this,arguments)||this};
_.q(HI,_.I);HI.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],HI.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],HI.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],HI.prototype,"data",void 0);_.N([_.C({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],HI);
_.p(HI,"ytd-primetime-promo-details-renderer",function(){if(l4$!==void 0)return l4$;var f=document.createElement("template");_.Y(f,'\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>');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return l4$=f},{mode:1});var fs8;var qL=function(){return _.I.apply(this,arguments)||this};
_.q(qL,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],qL.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],qL.prototype,"data",void 0);_.N([_.C({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],qL);
_.p(qL,"ytd-panel-show-style-metadata-renderer",function(){if(fs8!==void 0)return fs8;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return fs8=f},{mode:1});var oIm;var $Y=function(){return _.I.apply(this,arguments)||this};
_.q($Y,_.I);_.e=$Y.prototype;_.e.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.e.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.e.computeThumbnail=function(f){if(f)return f.smallFormFactorBackgroundThumbnail||f.largeFormFactorBackgroundThumbnail};
_.e.maybeComputeHref=function(f){return this.ytComponentBehavior.computeHref_(f,!0)};
_.e.isNavigationCommand=function(f){return f?_.H(f,_.d3)||_.H(f,_.t2)||_.H(f,_.pg)?!0:!1:!1};
_.e.getNavigationCommand=function(f){return this.isNavigationCommand(f)?f:null};
$Y.prototype.onPanelTap=$Y.prototype.onPanelTap;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],$Y.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],$Y.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],$Y.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],$Y.prototype,"data",void 0);
_.N([_.n({reflectToAttribute:!0,value:!0}),_.Z("design:type",Boolean)],$Y.prototype,"roundedContainer",void 0);_.N([_.n({reflectToAttribute:!0,value:_.K("web_modern_buttons")}),_.Z("design:type",Boolean)],$Y.prototype,"modernButtons",void 0);_.N([_.Vg("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$Y.prototype,"onPanelTap",null);_.N([_.C({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],$Y);
_.p($Y,"ytd-primetime-promo-panel-renderer",function(){if(oIm!==void 0)return oIm;var f=document.createElement("template");_.Y(f,'\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>');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return oIm=f},{mode:1});_.eq(_.oS(function(f){f=_.lu(f,{data:{},useFullWidth:!1});var S=f.data,B=f.useFullWidth,G=function(){return S().caption},g=function(){return S().image},b=function(){return _.CH(S().onTap)};
f={};f=_.Pw("ytTeaserCardViewModelHost",(f.ytTeaserCardViewModelUseFullWidth=function(){return B()},f));
return _.T("teaser-card-view-model",{class:f},_.T(_.v,{cond:function(){return b()},
then:function(){return _.T(KFN,{className:"ytTeaserCardViewModelLink",command:b,forceNewState:!0,useATagConfig:!0},_.T("div",{class:"ytTeaserCardViewModelImageContainer"},_.T(_.v,{cond:g,then:function(z){return _.T(_.f9,{data:z,className:"ytTeaserCardViewModelImage",alt:""})}})),_.T("p",{class:"ytTeaserCardViewModelCaption"},G))}}))},"Fb"),"teaser-card-view-model",{props:{data:_.W4,
useFullWidth:_.W4}});var S_7=new _.Sn("RICH_GRID_VIDEO_RENDERER_TOKEN");_.eq(_.oS(function(f){var S=f.data;var B=f.showYtInteractionInContent;var G=function(){return!!S().selectableFeedback};
f=_.m(_.hj(!1,void 0,"nblDw"));var g=f.next().value,b=f.next().value;_.j9(function(){var P=_.H(S().primaryButton,_.YK);(P==null?0:P.isToggled)&&b(P.isToggled)});
f=_.iF(function(P){if(!G())return!1;if(g()){var d;var Q=(d=S().selectableFeedback)==null?void 0:d.onDeselect}else{var x;Q=(x=S().selectableFeedback)==null?void 0:x.onSelect}Q&&_.MB(Q,{form:{element:P.target}});b(!g());if(P=_.H(S().primaryButton,_.YK))P.isToggled=g();return!1});
var z=function(){if(!G()){var P,d=(P=S().loggingDirectives)==null?void 0:P.trackingParams;d&&_.TE(_.oy().resolve(_.Qz),d)}},X=_.fjG(),w=function(){var P;
return G()?(P=S().selectableFeedback)==null?void 0:P.a11yLabel:void 0},F=function(){return G()?{toggled:g()}:{}},V=_.oy().resolve(_.fN(S_7)),J={};
return _.T("yt-feedback-item-renderer",{class:_.Pw("ytFeedbackItemRendererHost",(J.ytFeedbackItemRendererSelectableFeedback=G,J)),"on:click":f,"on:keydown":X,title:w,"aria-label":w,"aria-pressed":function(){return G()?g():void 0},
tabindex:function(){return G()?0:void 0},
role:function(){return G()?"button":void 0}},_.T("div",{class:"ytFeedbackItemRendererContentContainer"},_.T(_.xK,{data:function(){return S().content}},{videoRenderer:function(P){return _.T(V,{data:P.data,
showYtInteraction:B})},
lockupViewModel:function(P){return _.T(_.Gf,{data:P.data,containerType:2})}})),_.T("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.T(_.xK,{data:function(){return S().primaryButton}},{toggleButtonViewModel:function(P){return _.T(_.ER,{data:P.data,
buttonShapeOverrides:F,disableExplicitClickLogging:!0,onToggle:z})}})))},"Gb"),"yt-feedback-item-renderer",{props:{data:_.W4,
showYtInteractionInContent:_.W4}});var QT=function(){var f=_.I.apply(this,arguments)||this;f.isShortsGrid=!1;f.isCompactGrid=!1;f.isShortsPanelGrid=!1;f.renderedFromRichGrid=!1;f.isInFirstColumn=!1;f.noGutterMargins=!1;f.isInlineGroupItem=!1;f.insetMetadata=!1;f.noBottomMarginInAds=_.K("web_no_bottom_margin_for_home_ad_buttons");f.force16By9ThumbnailAspectRatio=!1;f.useCompactList=!1;f.containerType=2;f.thumbnailTargetWidth=9999;f.isResponsiveGrid=!1;f.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};f.actionMap=
{"ytd-rich-item-index-update-action":"onIndexUpdateAction"};f.hoverListener=f.hover.bind(f);f.leaveListener=f.leave.bind(f);f.highlighted=!1;f.JSC$14078_unsubscribeFromInlinePreviewIsActive=function(){};
return f};
_.q(QT,_.I);_.e=QT.prototype;_.e.computeContainerType=function(){return this.useCompactList?3:2};
_.e.computeThumbnailTargetWidth=function(){var f;return(f=this.itemWidth)!=null?f:9999};
_.e.updateIsInFirstColumn=function(){var f;this.isInFirstColumn=((f=this.data)==null?void 0:f.colIndex)===0};
_.e.observerContainerType=function(){if(this.lockup){var f=this.lockup;f.containerType=this.containerType;f.sizing=this.sizing;f.typographyBump=this.typographyBump;f.itemWidth=this.itemWidth}this.richGridMedia&&_.K("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.K("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.e.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]]"}}}}}};
_.e.leave=function(f){f=f.relatedTarget;var S=document.querySelector("ytd-video-preview");f&&S&&_.zY(S).contains(f)||this.removeAndCleanupHighlight()};
_.e.hover=function(){var f;if(!this.highlighted&&(!_.K("web_enable_rich_item_on_focus_effect")||(f=this.data)!=null&&f.onFocusEffect)){var S,B;((S=this.data)==null?void 0:(B=S.onFocusEffect)==null?void 0:B.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(f=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:f,boxShadow:"0 0 0 10px "+f}));var G,g;((G=this.data)==null?void 0:(g=G.onFocusEffect)==null?void 0:
g.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.e.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};
_.e.registerHoverHighlightListeners=function(){var f=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$14078_unsubscribeFromInlinePreviewIsActive=_.KD(_.W2(),_.bW9,function(S){f.highlighted&&!S&&f.removeAndCleanupHighlight()})};
_.e.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$14078_unsubscribeFromInlinePreviewIsActive()};
_.e.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.e.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.e.getBackgroundColor=function(){var f,S,B=(f=this.data)==null?void 0:(S=f.onFocusEffect)==null?void 0:S.onFocusColor;if(B){if(document.documentElement.hasAttribute("dark")&&(B==null?0:B.darkTheme))return _.pn(B==null?void 0:B.darkTheme);if(B==null?0:B.lightTheme)return _.pn(B==null?void 0:B.lightTheme)}};
_.e.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var f=_.xc(),S,B,G;f&&((S=this.data)==null?0:S.trackingParams)&&((B=this.data)==null?void 0:B.colIndex)!=null&&((G=this.data)==null?void 0:G.rowIndex)!=null&&_.yp(f,_.Ye(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.e.isSlimMediaRenderer=function(f){return!!_.H(f==null?void 0:f.content,_.Dim)||!!_.H(f==null?void 0:f.content,sIj)||!!_.H(f==null?void 0:f.content,_.DS)||!!_.H(f==null?void 0:f.content,Gwm)};
_.e.isPostRenderer=function(){var f,S;return!!_.H((f=this.data)==null?void 0:f.content,A96)||!!_.H((S=this.data)==null?void 0:S.content,NLi)};
_.e.computeIsGameCardShelf=function(){var f;return!!_.H((f=this.data)==null?void 0:f.content,Msg)};
_.e.computeIsMiniGameCardShelf=function(){var f,S;return!!_.H((f=this.data)==null?void 0:f.content,erv)||!!_.H((S=this.data)==null?void 0:S.content,b8o)};
_.e.computeIsTeaserCard=function(){var f;return!!_.H((f=this.data)==null?void 0:f.content,b8o)};
_.e.computeIsSelectableFeedbackItem=function(){var f,S;return!((S=_.H((f=this.data)==null?void 0:f.content,_.zrL))==null||!S.selectableFeedback)};
_.e.computeContainsLumierePosters=function(){var f,S;return((S=_.H((f=this.data)==null?void 0:f.content,fIi))==null?void 0:S.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.e.computeIsExpandOnHoverCardShelf=function(){var f;return!!_.H((f=this.data)==null?void 0:f.content,lWi)};
_.e.computeIsLinkCardShelf=function(){var f;return!!_.H((f=this.data)==null?void 0:f.content,Xng)};
_.e.computeIsReelItemStyleAvatarCircle=function(f){var S;return((S=_.H(f==null?void 0:f.content,_.DS))==null?void 0:S.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.e.computeIsLinkCardFullWidth=function(f,S){var B;return((B=_.H(f==null?void 0:f.content,Xng))==null?void 0:B.useFullWidth)||S<=2};
_.y3.Object.defineProperties(QT.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&&_.K("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.K("web_enable_rich_item_on_focus_effect")||_.K("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return 1}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}}});
QT.prototype.richGridHoverHighlightChanged=QT.prototype.richGridHoverHighlightChanged;QT.prototype.observerContainerType=QT.prototype.observerContainerType;QT.prototype.updateIsInFirstColumn=QT.prototype.updateIsInFirstColumn;_.N([_.r(_.Ek),_.Z("design:type",Object)],QT.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],QT.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],QT.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],QT.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.pR),_.Z("design:type",Object)],QT.prototype,"ytdLockupBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],QT.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.Z("design:type",Boolean)],QT.prototype,"isPost",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.Z("design:type",Boolean)],QT.prototype,"containsLumierePosters",void 0);_.N([_.n({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.Z("design:type",Boolean)],QT.prototype,"isSlimMedia",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.Z("design:type",Boolean)],QT.prototype,"isGameCardShelf",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.Z("design:type",Boolean)],QT.prototype,"isMiniGameCardShelf",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.Z("design:type",Boolean)],QT.prototype,"isTeaserCard",void 0);_.N([_.n({computed:"computeIsSelectableFeedbackItem(data)"}),_.Z("design:type",Boolean)],QT.prototype,"isSelectableFeedbackItem",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],QT.prototype,"isShortsGrid",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],QT.prototype,"isSlimGrid",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],QT.prototype,"isCompactGrid",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],QT.prototype,"isShortsPanelGrid",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.Z("design:type",Boolean)],QT.prototype,"isExpandOnHoverCardShelf",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.Z("design:type",Boolean)],QT.prototype,"isLinkCardShelf",void 0);_.N([_.n({reflectToAttribute:!0,selector:_.EA,value:3}),_.Z("design:type",Number)],QT.prototype,"itemsPerRow",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],QT.prototype,"renderedFromRichGrid",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],QT.prototype,"isInFirstColumn",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],QT.prototype,"noGutterMargins",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],QT.prototype,"isInlineGroupItem",void 0);_.N([_.n(),_.Z("design:type",Object)],QT.prototype,"insetMetadata",void 0);
_.N([_.n(),_.Z("design:type",Object)],QT.prototype,"noBottomMarginInAds",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],QT.prototype,"isShelfItem",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.Z("design:type",Boolean)],QT.prototype,"isReelItemStyleAvatarCircle",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.Z("design:type",Boolean)],QT.prototype,"isLinkCardFullWidth",void 0);
_.N([_.n(),_.Z("design:type",Object)],QT.prototype,"force16By9ThumbnailAspectRatio",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],QT.prototype,"useCompactList",void 0);_.N([_.n(),_.Z("design:type",String)],QT.prototype,"sizing",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],QT.prototype,"typographyBump",void 0);_.N([_.n(),_.Z("design:type",Number)],QT.prototype,"itemWidth",void 0);_.N([_.n(),_.Z("design:type",Boolean)],QT.prototype,"isHomeShelf",void 0);
_.N([_.n(),_.Z("design:type",Boolean)],QT.prototype,"isHomeGrid",void 0);_.N([_.vF("yt-lockup-view-model"),_.Z("design:type",HTMLElement)],QT.prototype,"lockup",void 0);_.N([_.vF("ytd-rich-grid-media"),_.Z("design:type",HTMLElement)],QT.prototype,"richGridMedia",void 0);_.N([_.vF("ytd-ad-slot-renderer"),_.Z("design:type",HTMLElement)],QT.prototype,"adSlotRenderer",void 0);_.N([_.n({computed:"computeContainerType(useCompactList)"}),_.Z("design:type",Object)],QT.prototype,"containerType",void 0);
_.N([_.n({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.Z("design:type",Object)],QT.prototype,"thumbnailTargetWidth",void 0);_.N([_.k("showYtInteractionOnRichItem"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],QT.prototype,"showYtInteractionOnRichGridMedia",null);_.N([_.k("isSelectableFeedbackItem","richGridHoverHighlight"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],QT.prototype,"showYtInteractionOnRichItem",null);
_.N([_.k("typographyBump","isHomeGrid"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],QT.prototype,"richTypographyBump",null);_.N([_.n({reflectToAttribute:!0}),_.k("isShortsGrid","isCompactGrid"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],QT.prototype,"richGridHoverHighlight",null);_.N([_.k("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],QT.prototype,"shortsLockupViewModelAspectRatio",null);
_.N([_.k("isInlineGroupItem"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],QT.prototype,"shortsLockupViewModelScrimStyle",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],QT.prototype,"updateIsInFirstColumn",null);_.N([_.JO("containerType","sizing","typographyBump"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],QT.prototype,"observerContainerType",null);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],QT.prototype,"isResponsiveGrid",void 0);_.N([_.n(),_.Z("design:type",Object)],QT.prototype,"lockupExperiments",void 0);_.N([_.JO("richGridHoverHighlight"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],QT.prototype,"richGridHoverHighlightChanged",null);_.N([_.C({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],QT);
_.Bsi=_.RS()(QT,"ytd-rich-item-renderer",function(){if(AT7===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);AT7=f}f=AT7;return f},{mode:_.X_("kevlar_poly_si_batch_j028")?1:2});var OUG={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var IOV=_.uC(_.Jf("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var Gm$;var YY=function(){var f=_.I.apply(this,arguments)||this;f.useResponsiveGrid=!1;f.hidden=!1;f.standardShelfMargins=_.K("web_rich_grid_standard_shelf_margins");f.isShowMoreHidden=!1;f.isExpanded=!1;f.isInnerShelf=!1;f.allVideosCount=0;f.allPlaylistCount=0;f.haveSmartDownloadsCompleted=!1;f.isShowLessHidden=!0;f.restrictContentsOverflow=!1;f.firstShownIndex=0;f.horizontalOffset=0;f.atEnd=!0;f.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};f.nextClick=function(){var S;(S=f.data)!=null&&S.contents&&(f.firstShownIndex+=f.currentElementsPerRow,f.updateHorizontalOffset(),f.updateHorizontalItemVisibility())};
f.previousClick=function(){var S;(S=f.data)!=null&&S.contents&&(f.firstShownIndex-=f.currentElementsPerRow,f.updateHorizontalOffset(),f.updateHorizontalItemVisibility())};
return f};
_.q(YY,_.I);_.e=YY.prototype;
_.e.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:_.nL("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.e.attached=function(){this.requestElementsPerRow()};
_.e.refreshGridLayoutNew=function(){var f;if((f=this.data)!=null&&f.contents&&this.containerWidth){var S;((S=this.data.responsiveContainerConfiguration)==null?0:S.responsiveSize)?(f=_.pa1(this.data.responsiveContainerConfiguration,this.containerWidth),f=_.lx(Object.assign({},f,{standardUnitMinWidth:this.standardUnitMinWidth}))):f=_.lx({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=f.typographyBump;if(this.elementsPerRow!==
f.numItems||this.gutter!==f.gutter)this.elementsPerRow=f.numItems,this.gutter=f.gutter,this.itemWidth=f.itemWidth,_.hO(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":f.gutter+"px"})}};
_.e.computeSizing=function(){if(!this.isLumiere){var f=_.gxM(this.data);if(f)return f;if(_.K("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.e.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.e.computeButton=function(f){var S=_.H(f,_.IR);f=Object.assign({},_.H(f,_.IR));return S?(f.text||(f.text={simpleText:f.tooltip}),f.style="STYLE_MONO_OUTLINE",f.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",f):S};
_.e.onRowIndexChange=function(){var f=_.xc(),S,B;((S=this.data)==null?0:S.trackingParams)&&((B=this.data)==null?void 0:B.rowIndex)!=null&&f&&_.yp(f,_.Ye(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.e.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var f,S=((f=this.getRichItemRenderers()[0])==null?void 0:f.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*S;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.e.requestElementsPerRow=function(){_.ew(this.hostElement,"yt-request-elements-per-row")};
_.e.onUpdateElementsPerRowAction=function(f,S,B,G,g,b){if(this.containerWidth!==b&&(this.containerWidth=b,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&f&&S&&B&&G&&g&&(this.elementsPerRow!==f||this.postsPerRow!==S||this.slimItemsPerRow!==B||this.gameCardsPerRow!==G||this.miniGameCardsPerRow!==g)&&(this.elementsPerRow=f,this.postsPerRow=S,this.slimItemsPerRow=B,this.gameCardsPerRow=G,this.miniGameCardsPerRow=g,this.updateItemVisibility())};
_.e.getRichItemRenderers=function(){return _.m9(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.e.updateItemVisibility=function(){var f=this;if(this.data&&this.data.contents){var S=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(G,g){var b;((b=f.data)==null?0:b.isExpanded)?(G.hidden=g>S-1,G.ytRendererBehavior.markDirty()):G.hidden=g>f.currentElementsPerRow-1||g>S-1});
var B=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||B||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||B||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.e.setHeightToSingleRow=function(){var f=this.getRichItemRenderers(),S=Number.parseInt(getComputedStyle(f[0]).marginBottom,10)||0;f=f.slice(0,this.currentElementsPerRow).reduce(function(B,G){return Math.max(B,G.getBoundingClientRect().height+S)},0);
this.contents.style.height=f+"px"};
_.e.focusNextExpandedItem=function(){var f;((f=this.data)==null?0:f.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.e.focusItem=function(f,S){var B=this.getRichItemRenderers();if(B[f]&&(f=B[f].querySelector(".focus-on-expand"))){if(S){var G;(G=B[this.currentElementsPerRow])==null||G.scrollIntoView({behavior:"smooth",block:"center"})}f.focus({preventScroll:!0})}};
_.e.onDataChange=function(){var f=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var S;if((S=this.data)==null?0:S.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.ui(this,function(){f.updateItemVisibility()});
var B;if((B=this.data)==null?0:B.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.hO(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),S=0;S<this.data.contents.length;S++)B=_.H(this.data.contents[S],_.xf)||{},B.colIndex=S,B.rowIndex=this.data.rowIndex};
_.e.handleRerenderDownloadsData=function(){_.K("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())};
_.e.blockInlinePreview=function(f){var S=this,B;return _.R(function(G){(B=S.inlinePreviewIsEnabled)&&S.ytdReduxBehavior.dispatch(_.aVj(!1));return G.return(new Promise(function(g){f(function(){B&&S.ytdReduxBehavior.dispatch(_.aVj(!0));g()})}))})};
_.e.expandShelf=function(){var f=this;if(this.data){var S,B=(S=_.H(this.data.showMoreButton,_.IR))==null?void 0:S.trackingParams;B&&_.TE(_.ik(),B);this.data.isExpanded=!0;this.blockInlinePreview(function(G){f.setHeightToSingleRow();f.updateItemVisibility();f.contents.style.height=f.contents.scrollHeight+"px";_.xJ.addJob(function(){f.contents.style.height="auto";f.focusNextExpandedItem();G()},2,200)})}};
_.e.collapseShelf=function(){var f=this;return _.R(function(S){if(S.nextAddress==1){if(!f.data)return S.return();f.data.isExpanded=!1;return _.h(S,f.blockInlinePreview(function(B){f.contents.style.height=f.contents.scrollHeight+"px";f.setHeightToSingleRow();_.xJ.addJob(function(){f.updateItemVisibility();f.contents.style.height="auto";B()},2,200)}),2)}_.ew(f.hostElement,"yt-rich-shelf-renderer-collapse",f.data.trackingParams);
f.focusItem(0,!1);_.TT(S)})};
_.e.updateArrowButtonStatus=function(){var f=this.getRichItemRenderers().length;if(!_.K("web_rich_shelf_renderer_use_data_contents_killswitch")){var S,B;f=((S=this.data)==null?void 0:(B=S.contents)==null?void 0:B.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=f};
_.e.onChildElementFocus=function(f){this.hasChevronButtons&&(f=f.target.closest("#contents > *"),this.contents.contains(f)&&(f.offsetLeft<this.horizontalOffset?this.previousClick():f.offsetLeft+f.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.e.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.nL("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.e.updateHorizontalOffset=function(){var f=this.getRichItemRenderers(),S=f.length;if(!_.K("web_rich_shelf_renderer_use_data_contents_killswitch")){var B,G;S=((B=this.data)==null?void 0:(G=B.contents)==null?void 0:G.length)||0}var g;f=((g=f[0])==null?void 0:g.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>S?this.firstShownIndex=S-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*f};
_.e.isSlimMediaShelfRenderer=function(){var f,S,B,G=(B=_.H((f=this.data)==null?void 0:(S=f.contents)==null?void 0:S[0],_.xf))==null?void 0:B.content;return!!(_.H(G,_.Dim)||_.H(G,sIj)||_.H(G,_.DS)||_.H(G,Gwm))};
_.e.isGameCardShelf=function(){var f,S,B,G=(B=_.H((f=this.data)==null?void 0:(S=f.contents)==null?void 0:S[0],_.xf))==null?void 0:B.content;return!!_.H(G,Msg)};
_.e.isGnomeShelf=function(){var f,S,B,G=(B=_.H((f=this.data)==null?void 0:(S=f.contents)==null?void 0:S[0],_.xf))==null?void 0:B.content;return!!_.H(G,_.zrL)};
_.e.isMiniGameCardShelf=function(){var f,S,B,G=(B=_.H((f=this.data)==null?void 0:(S=f.contents)==null?void 0:S[0],_.xf))==null?void 0:B.content;return!!_.H(G,erv)||!!_.H(G,b8o)};
_.e.hasGameBoxArtAvatarStyle=function(){var f;return((f=this.data)==null?void 0:f.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.e.hasRoundedGameBoxArtAvatarStyle=function(){var f;return((f=this.data)==null?void 0:f.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.e.isShortsShelf=function(){var f,S,B,G=(B=_.H((f=this.data)==null?void 0:(S=f.contents)==null?void 0:S[0],_.xf))==null?void 0:B.content;return!!_.H(G,_.DS)||!!_.H(G,Gwm)};
_.e.isPostShelfRenderer=function(){var f,S,B,G=(B=_.H((f=this.data)==null?void 0:(S=f.contents)==null?void 0:S[0],_.xf))==null?void 0:B.content;return!(!_.H(G,A96)&&!_.H(G,NLi))};
_.e.isLumiereShelf=function(){var f,S,B=_.H((f=this.data)==null?void 0:(S=f.contents)==null?void 0:S[0],_.xf);return!!_.H(B==null?void 0:B.content,fIi)};
_.e.isLumiereShelfWithPosters=function(){var f,S,B=_.H((f=this.data)==null?void 0:(S=f.contents)==null?void 0:S[0],_.xf),G;return((G=_.H(B==null?void 0:B.content,fIi))==null?void 0:G.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.e.isExpandOnHoverCardShelf=function(){var f,S,B,G=(B=_.H((f=this.data)==null?void 0:(S=f.contents)==null?void 0:S[0],_.xf))==null?void 0:B.content;return!!_.H(G,lWi)};
_.e.computeHasFeaturedBadge=function(){var f,S,B=_.H((f=this.data)==null?void 0:(S=f.badges)==null?void 0:S[0],_.z2j);return B?B.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.e.computeHasPaygatedFeaturedBadge=function(){var f,S,B=_.H((f=this.data)==null?void 0:(S=f.badges)==null?void 0:S[0],_.z2j);return B?(B==null?void 0:B.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.e.computeHeaderHidden=function(){var f,S,B,G,g,b;return!((f=this.data)==null?0:f.icon)&&!((S=this.data)==null?0:S.title)&&!((B=this.data)==null?0:B.subtitle)&&!((G=this.data)==null?0:G.thumbnail)&&!((g=this.data)==null?0:g.badges)&&!((b=this.data)==null?0:b.menu)};
_.e.showCtaButton=function(){var f;return!((f=this.data)==null||!f.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.e.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.e.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.e.computeForce16By9ThumbnailAspectRatio=function(){var f,S;return((f=this.data)==null?void 0:(S=f.responsiveContainerConfiguration)==null?void 0:S.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.e.onSectionReactiveDismissal=function(f,S,B){var G,g;var b=(G=this.data)==null?void 0:(g=G.targetingContext)==null?void 0:g.targetGroupId;this&&b&&S.targetGroupId&&b.includes(S.targetGroupId)?(G=this.rowIndex,f=G===void 0?!1:!(S.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&G<=f)):f=!1;f&&(this.hidden=B)};
_.y3.Object.defineProperties(YY.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var f=this.elementsPerRow;this.isPostShelfRenderer()?f=this.postsPerRow:this.isSlimMediaShelfRenderer()?f=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?f=this.slimItemsPerRow-1:this.isGameCardShelf()?f=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(f=this.miniGameCardsPerRow);return f}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.K("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var f,S;return!((f=this.data)==null||!f.previousButton)&&!((S=this.data)==null||!S.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 f;return((f=_.oy().resolve(_.o8).getCurrentPage())==null?void 0:f.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var f,S,B,G;return!((f=this.data)==null?0:(S=f.thumbnail)==null?0:(B=S.accessibility)==null?0:(G=B.accessibilityData)==null?0:G.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
YY.prototype.onChildElementFocus=YY.prototype.onChildElementFocus;YY.prototype.handleRerenderDownloadsData=YY.prototype.handleRerenderDownloadsData;YY.prototype.onDataChange=YY.prototype.onDataChange;YY.prototype.onRowIndexChange=YY.prototype.onRowIndexChange;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],YY.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],YY.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.kP),_.Z("design:type",Object)],YY.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],YY.prototype,"actionHandlerBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],YY.prototype,"ytdReduxBehavior",void 0);_.N([_.n({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.Z("design:type",Object)],YY.prototype,"useResponsiveGrid",void 0);_.N([_.n(),_.Z("design:type",Object)],YY.prototype,"data",void 0);
_.N([_.n(),_.Z("design:type",Number)],YY.prototype,"standardUnitMinWidth",void 0);_.N([_.n({reflectToAttribute:!0,value:3}),_.Z("design:type",Number)],YY.prototype,"elementsPerRow",void 0);_.N([_.n({value:3}),_.Z("design:type",Number)],YY.prototype,"postsPerRow",void 0);_.N([_.n({value:6}),_.Z("design:type",Number)],YY.prototype,"slimItemsPerRow",void 0);_.N([_.n({value:6}),_.Z("design:type",Number)],YY.prototype,"gameCardsPerRow",void 0);
_.N([_.n({value:6}),_.Z("design:type",Number)],YY.prototype,"miniGameCardsPerRow",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],YY.prototype,"hidden",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],YY.prototype,"standardShelfMargins",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],YY.prototype,"isShowMoreHidden",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],YY.prototype,"isExpanded",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],YY.prototype,"isInnerShelf",void 0);_.N([_.n({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.Z("design:type",Boolean)],YY.prototype,"isShorts",void 0);_.N([_.n({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.Z("design:type",Boolean)],YY.prototype,"isLumiere",void 0);_.N([_.n({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.Z("design:type",Boolean)],YY.prototype,"hasBoxArtThumbnailStyle",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.Z("design:type",Boolean)],YY.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.Z("design:type",Boolean)],YY.prototype,"hasFeaturedBadge",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.Z("design:type",Boolean)],YY.prototype,"hasPaygatedFeaturedBadge",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.Z("design:type",Boolean)],YY.prototype,"isHeaderHidden",void 0);_.N([_.n({selector:_.hGV}),_.Z("design:type",Object)],YY.prototype,"allVideosCount",void 0);_.N([_.n({selector:CNK}),_.Z("design:type",Object)],YY.prototype,"allPlaylistCount",void 0);_.N([_.n({selector:HWM}),_.Z("design:type",Object)],YY.prototype,"haveSmartDownloadsCompleted",void 0);
_.N([_.n({selectorArgs:["entitySelectorType"],selector:function(f,S){if(_.K("kevlar_modern_downloads_page")&&S&&S!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var B=f.entities;switch(S){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":S=_.r9(B);f=EC(S);var G=_.iC(S);B=_.OA(B);B=_.B2(ESN(G,B,S.length));return{contents:f,subtitle:B};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return B=_.r9(B),{contents:EC(B)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return B=
_.jf(B),{contents:EC(B)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return B=_.txN(B),{contents:EC(B)};default:_.Lg(new _.dO("Error: entitySelectorType defined but not matched in selector.",f,S))}}}}),
_.Z("design:type",Object)],YY.prototype,"entityDrivenRichShelfData",void 0);_.N([_.n({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.Z("design:type",Boolean)],YY.prototype,"hasTopCtaButton",void 0);_.N([_.n({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.Z("design:type",Boolean)],YY.prototype,"hasBottomCtaButton",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.Z("design:type",Boolean)],YY.prototype,"force16By9ThumbnailAspectRatio",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],YY.prototype,"isShowLessHidden",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],YY.prototype,"restrictContentsOverflow",void 0);_.N([_.n({selector:_.mG9}),_.Z("design:type",Boolean)],YY.prototype,"inlinePreviewIsEnabled",void 0);
_.N([_.n({computed:"computeSizing(data)"}),_.Z("design:type",String)],YY.prototype,"sizing",void 0);_.N([_.n(),_.Z("design:type",Boolean)],YY.prototype,"typographyBump",void 0);_.N([_.n(),_.Z("design:type",Number)],YY.prototype,"itemWidth",void 0);_.N([_.n(),_.Z("design:type",Object)],YY.prototype,"firstShownIndex",void 0);_.N([_.n(),_.Z("design:type",Object)],YY.prototype,"horizontalOffset",void 0);_.N([_.n(),_.Z("design:type",Object)],YY.prototype,"atEnd",void 0);
_.N([_.vF("#contents"),_.Z("design:type",HTMLElement)],YY.prototype,"contents",void 0);_.N([_.JO("data.rowIndex"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],YY.prototype,"onRowIndexChange",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],YY.prototype,"onDataChange",null);
_.N([_.JO("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],YY.prototype,"handleRerenderDownloadsData",null);_.N([_.Vg("focusin"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],YY.prototype,"onChildElementFocus",null);_.N([_.n({reflectToAttribute:!0}),_.k("data","isHomePage"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],YY.prototype,"isTruncated",null);
_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],YY.prototype,"hideBottomDivider",null);_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],YY.prototype,"hasChevronButtons",null);_.N([_.k("firstShownIndex"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],YY.prototype,"previousButtonOverride",null);
_.N([_.k("atEnd"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],YY.prototype,"nextButtonOverride",null);_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],YY.prototype,"isHomePage",null);_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],YY.prototype,"thumbnailAriaHidden",null);_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],YY.prototype,"initiallyIsExpanded",null);
_.N([_.k("data"),_.Z("design:type",String),_.Z("design:paramtypes",[])],YY.prototype,"entitySelectorType",null);_.N([_.C({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],YY);
_.gIX=_.RS()(YY,"ytd-rich-shelf-renderer",function(){if(Gm$===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);Gm$=f}f=Gm$;return f},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.X_("kevlar_poly_si_batch_j028")?1:2});var eNi;_.eq(Ij1,"yt-slimline-survey-view-model",{props:{data:_.W4}});var rS=function(){var f=_.I.apply(this,arguments)||this;f.tileLottieAnimationRef={};f.backgroundLottieAnimationRef={};f.isOnHoverBehaviorForLottieEnabled=!0;f.useBiggerShowcaseImage=_.K("enable_desktop_search_bigger_thumbs");f.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return f};
_.q(rS,_.I);_.e=rS.prototype;_.e.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.e.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"}}}};
_.e.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var f=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);f!==this.hasTile&&this.set("hasTile",f);f=this.hasLogo(this.data)||!!this.data.badgeText;f!==this.hasMetadata&&this.set("hasMetadata",f);f=this.data.overflowButton?!1:f;f!==this.showLogoImage&&this.set("showLogoImage",f);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.e.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.e.currentColorChanged=function(){this.updateButtonPalette()};
_.e.computeBackgroundStyle=function(f){if(f&&this.data){var S=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var B=_.my((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);B&&S.push('background-image: url("'+B+'");')}var G;((G=f.basicColorData)==null?void 0:G.backgroundColor)!==void 0&&S.push("background-color: "+_.AK(f.basicColorData.backgroundColor)+";");return S.join("")}};
_.e.onDarkModeToggledAction=function(f){f!==this.isDarkTheme&&this.set("isDarkTheme",f)};
_.e.getCurrentLogo=function(f,S){if(f)return S?f.darkLogoImage:f.lightLogoImage};
_.e.getCurrentStaticTileImage=function(f,S){if(this.hasStaticTile(f))return f.darkTileImage?S?f.darkTileImage:f.tileImage:f.tileImage};
_.e.computeTitleStyle=function(f){if(this.data&&this.data.title&&f&&f.basicColorData&&f.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.pn(f.basicColorData.foregroundTitleColor)+";"};
_.e.computeSubtitleStyle=function(f){if(this.data&&this.data.subtitle&&f&&f.basicColorData&&f.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.pn(f.basicColorData.foregroundBodyColor)+";"};
_.e.computeSupplementalStyle=function(f){if(this.data&&this.data.supplementalText&&f&&f.supplementalTextColor!==void 0)return f=_.pn(f.supplementalTextColor),"color:"+f+";--yt-endpoint-color:"+f+";--yt-endpoint-hover-color:"+f+";--yt-endpoint-visited-color:"+f+";--yt-formatted-string-bold-font-weight:700;"};
_.e.computeBadgeStyle=function(f){if(this.data&&this.data.badgeText&&f&&f.basicColorData&&f.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.pn(f.basicColorData.foregroundActivatedColor)+";"};
_.e.computeDismissIconStyle=function(f){var S,B;if((f==null?0:(S=f.dismissButtonColorData)==null?0:S.foregroundTitleColor)&&(f==null?0:(B=f.dismissButtonColorData)==null?0:B.backgroundColor))return"--yt-button-color:"+_.AK(f.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.AK(f.dismissButtonColorData.backgroundColor)+";"};
_.e.computeOverflowIconStyle=function(f){var S,B;if((f==null?0:(S=f.dismissButtonColorData)==null?0:S.foregroundTitleColor)&&(f==null?0:(B=f.dismissButtonColorData)==null?0:B.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.AK(f.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.AK(f.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.AK(f.dismissButtonColorData.foregroundTitleColor)+";"};
_.e.computeBannerStyle=function(f){return f?f.toLowerCase().replace(/_/g,"-"):""};
_.e.computeLocation=function(f){switch(f==null?void 0:f.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.e.shouldShowTileSection=function(f,S,B){return!this.shouldExpandLogo(f,S,B)&&S};
_.e.shouldShowExpandedLogoSection=function(f,S,B){return this.shouldExpandLogo(f,S,B)&&f!==void 0&&this.hasLogo(f)};
_.e.shouldExpandLogo=function(f,S,B){return f&&S?!1:B>=2};
_.e.hasStaticTile=function(f){return!(f==null||!f.tileImage)};
_.e.hasTileLottie=function(f){var S;return!!(f==null?0:(S=f.tileLottie)==null?0:S.url)};
_.e.hasLogo=function(f){return this.getCurrentLogo(f,this.isDarkTheme)!==void 0};
_.e.getLogoHeight=function(f){return this.logoWithPadding(f)?"26":"20"};
_.e.getExpandedLogoHeight=function(f){return this.logoWithPadding(f)?"31":"24"};
_.e.getLogoImageId=function(f){return this.logoWithPadding(f)?"logo-image-with-padding":"logo-image"};
_.e.hasBackgroundLottie=function(f){var S;return!!(f==null?0:(S=f.backgroundLottie)==null?0:S.url)};
_.e.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var f,S;(f=this.tileLottieAnimationRef)==null||(S=f.lottieEl)==null||S.play();var B,G;(B=this.backgroundLottieAnimationRef)==null||(G=B.lottieEl)==null||G.play()}};
_.e.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var f,S;(f=this.tileLottieAnimationRef)==null||(S=f.lottieEl)==null||S.pause();var B,G;(B=this.backgroundLottieAnimationRef)==null||(G=B.lottieEl)==null||G.pause()}};
_.e.pauseLottie=function(){var f,S;(f=this.tileLottieAnimationRef)==null||(S=f.lottieEl)==null||S.pause();var B,G;(B=this.backgroundLottieAnimationRef)==null||(G=B.lottieEl)==null||G.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.e.performPrimaryButtonAction=function(){var f,S,B;((f=this.data)==null?0:(S=f.primaryButton)==null?0:(B=S.buttonRenderer)==null?0:B.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.e.requestElementsPerRow=function(){_.ew(this.hostElement,"yt-request-elements-per-row")};
_.e.updateButtonPalette=function(){if(this.data&&this.currentColorData){var f;((f=this.data.dismissButton)==null?0:f.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 S;if((S=this.data.primaryButton)==null?0:S.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 B;if((B=this.data.secondaryButton)==
null?0:B.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 G;((G=this.data.primaryButton)==null?0:G.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var g;((g=this.data.secondaryButton)==null?0:g.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.e.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var f=this.getTileLottieDataBasedOnTheme(),S,B;if(f.url!==((S=this.tileLottiePlayerProps)==null?void 0:(B=S.animationConfig)==null?void 0:B.path)){var G,g;(G=this.tileLottieAnimationRef)==null||(g=G.lottieEl)==null||g.destroy();var b;this.isOnHoverBehaviorForLottieEnabled=!((b=f.settings)==null?0:b.autoplay);var z,X;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(X=(z=f.settings)==null?void 0:z.autoplay)!=null?X:!1,loop:this.getLottieLoopValue(f.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof f.url==="string"?this.tileLottiePlayerProps.animationConfig.path=f.url:this.tileLottiePlayerProps.animationConfig.animationData=f.url}}};
_.e.getOverflowButton=function(f){return _.H(f.overflowButton,zz1)};
_.e.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var f=this.getBackgroundLottieDataBasedOnTheme(),S,B;if(f.url!==((S=this.backgroundLottiePlayerProps)==null?void 0:(B=S.animationConfig)==null?void 0:B.path)){var G,g;(G=this.backgroundLottieAnimationRef)==null||(g=G.lottieEl)==null||g.destroy();var b;this.isOnHoverBehaviorForLottieEnabled=!((b=f.settings)==null?0:b.autoplay);var z,X;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(X=(z=f.settings)==null?void 0:z.autoplay)!=null?X:!1,loop:this.getLottieLoopValue(f.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof f.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=f.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
f.url}}};
_.e.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var f;((f=this.tileLottieAnimationRef)==null?void 0:f.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var S;((S=this.backgroundLottieAnimationRef)==null?void 0:S.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.e.getTileLottieDataBasedOnTheme=function(){var f;if(this.isDarkTheme&&((f=this.data)==null?0:f.darkThemeTileLottie))return this.data.darkThemeTileLottie;var S;return((S=this.data)==null?0:S.tileLottie)?this.data.tileLottie:{}};
_.e.getBackgroundLottieDataBasedOnTheme=function(){var f;if(this.isDarkTheme&&((f=this.data)==null?0:f.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var S;return((S=this.data)==null?0:S.backgroundLottie)?this.data.backgroundLottie:{}};
_.e.onUpdateElementsPerRowAction=function(f){f&&this.elementsPerRow!==f&&(this.elementsPerRow=f)};
_.e.getLottieLoopValue=function(f){return f?f.loop!==void 0?f.loop:f.loopCount?f.loopCount-1:!0:!0};
_.e.logoWithPadding=function(f){var S,B,G;return(f=(S=this.getCurrentLogo(f,this.isDarkTheme))==null?void 0:(B=S.thumbnails)==null?void 0:(G=B[0])==null?void 0:G.height)&&f%31===0?!0:!1};
rS.prototype.currentColorChanged=rS.prototype.currentColorChanged;rS.prototype.themeChanged=rS.prototype.themeChanged;rS.prototype.dataChanged=rS.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],rS.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],rS.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.kP),_.Z("design:type",Object)],rS.prototype,"ytdDismissibleItemBehavior",void 0);
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],rS.prototype,"actionHandlerBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],rS.prototype,"ytComponentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],rS.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],rS.prototype,"primaryButton",void 0);_.N([_.n(),_.Z("design:type",Object)],rS.prototype,"secondaryButton",void 0);
_.N([_.n({reflectToAttribute:!0,value:3}),_.Z("design:type",Number)],rS.prototype,"elementsPerRow",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],rS.prototype,"isDarkTheme",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],rS.prototype,"hasTile",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],rS.prototype,"hasMetadata",void 0);
_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],rS.prototype,"showLogoImage",void 0);_.N([_.n(),_.Z("design:type",Object)],rS.prototype,"currentColorData",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.Z("design:type",String)],rS.prototype,"bannerStyle",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.Z("design:type",String)],rS.prototype,"location",void 0);
_.N([_.n(),_.Z("design:type",Object)],rS.prototype,"tileLottiePlayerProps",void 0);_.N([_.n(),_.Z("design:type",Object)],rS.prototype,"tileLottieAnimationRef",void 0);_.N([_.n(),_.Z("design:type",Object)],rS.prototype,"backgroundLottiePlayerProps",void 0);_.N([_.n(),_.Z("design:type",Object)],rS.prototype,"backgroundLottieAnimationRef",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],rS.prototype,"useBiggerShowcaseImage",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],rS.prototype,"isHideEnclosingAction",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],rS.prototype,"dataChanged",null);_.N([_.HF("isDarkTheme"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],rS.prototype,"themeChanged",null);
_.N([_.HF("currentColorData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],rS.prototype,"currentColorChanged",null);_.N([_.C({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],rS);
_.p(rS,"ytd-statement-banner-renderer",function(){if(eNi!==void 0)return eNi;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return eNi=f},{mode:1});var b7N;var j6=function(){var f=_.I.apply(this,arguments)||this;f.isSearch=!1;f.hideShelfHeader=!1;f.engagementPanel=!1;f.disableMouseScroll=!0;f.useFloorScrolling=!0;f.modernTypography=_.K("web_modern_typography");return f};
_.q(j6,_.I);j6.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.Jf("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.Jf("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
j6.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
j6.prototype.onDataChanged=j6.prototype.onDataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],j6.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],j6.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],j6.prototype,"isSearch",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],j6.prototype,"hideShelfHeader",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],j6.prototype,"engagementPanel",void 0);_.N([_.n(),_.Z("design:type",Object)],j6.prototype,"disableMouseScroll",void 0);_.N([_.n(),_.Z("design:type",Object)],j6.prototype,"useFloorScrolling",void 0);_.N([_.n(),_.Z("design:type",Object)],j6.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],j6.prototype,"modernTypography",void 0);
_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],j6.prototype,"onDataChanged",null);_.N([_.C({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],j6);
_.p(j6,"ytd-reel-shelf-renderer",function(){if(b7N!==void 0)return b7N;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return b7N=f},{mode:_.X_("kevlar_poly_si_batch_j028")?1:2});var mgL;var zNo=_.oS(function(f){var S=f.data;f=f.useSmallFont;var B={},G={};return _.T("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.T(_.v,{cond:function(){return S().favicon},
then:function(g){return _.T(_.f9,{data:g,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.T("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.T(_.oY,{text:function(){return S().title},
className:_.Pw("yt-channel-external-link-view-model-wiz__title",(B["yt-channel-external-link-view-model-wiz__title--title-small-font"]=f,B)),ellipsisTruncate:!0,userInput:!0}),_.T(_.oY,{text:function(){return S().link},
className:_.Pw("yt-channel-external-link-view-model-wiz__link",(G["yt-channel-external-link-view-model-wiz__link--link-small-font"]=f,G)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Hb");
zNo.idomCompat=!0;_.eq(zNo,"yt-channel-external-link-view-model",{props:{data:_.W4,useSmallFont:_.W4}});_.Dd("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var Oa=function(){var f=_.I.apply(this,arguments)||this;f.revealButtonClass="button";f.businessEmailDisplayState="HIDE_SECTION";return f};
_.q(Oa,_.I);_.e=Oa.prototype;_.e.refit=function(){var f=this;_.AO(function(){_.mU(f.hostElement,"yt-refit-popups-action")});
_.ui(this,function(){_.mU(f.hostElement,"yt-refit-popups-action")})};
_.e.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.I4("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA")};
_.e.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"};
_.e.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.e.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"}}}};
_.e.computeEmailHref=function(f){return"mailto:"+f};
_.e.computeSafeUrl=function(f){if(f)return _.io(f)};
_.e.linkEndpoint=function(f){return _.H(f.onTap,_.Un)};
_.e.linkEndpointToHref=function(f){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(f))};
_.e.onYtServiceRequestCompleted=function(f){var S;if((S=f.detail.data)==null?0:S.businessEmail)this.businessEmail=f.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var B;if((B=f.detail.data)==null?0:B.errorMessage)this.businessEmailErrorMessage=f.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.e.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var f=this.JSC$14184_captchaTextarea.value;if(f){f={recaptcha_response_token:f,channel_id:this.metadata.channelId};var S=_.H(this.metadata.onBusinessEmailRevealClickCommand,_.Un);S&&this.ytComponentBehavior.resolveCommand(S,{form:f})}}};
_.e.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.y3.Object.defineProperties(Oa.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var f;return _.H((f=this.data)==null?void 0:f.metadata,Gd7)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.H(this.metadata.businessEmailRevealButton,_.Q5)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var f=new URL(this.metadata.canonicalChannelUrl);return f.host+f.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 _.H(this.metadata.learnMoreOnTap,_.Un)}}});
Oa.prototype.onYtServiceRequestCompleted=Oa.prototype.onYtServiceRequestCompleted;Oa.prototype.businessEmailMetadataChanged=Oa.prototype.businessEmailMetadataChanged;Oa.prototype.refit=Oa.prototype.refit;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Oa.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Oa.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Oa.prototype,"ytRendererstamperBehavior",void 0);_.N([_.vF("#g-recaptcha-response"),_.Z("design:type",HTMLTextAreaElement)],Oa.prototype,"JSC$14184_captchaTextarea",void 0);_.N([_.n(),_.Z("design:type",Object)],Oa.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],Oa.prototype,"revealButtonClass",void 0);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Oa.prototype,"metadata",null);
_.N([_.k("metadata"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Oa.prototype,"revealButton",null);_.N([_.k("metadata"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Oa.prototype,"channelDisplayUrl",null);_.N([_.HF("metadata"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Oa.prototype,"refit",null);_.N([_.k("metadata"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Oa.prototype,"formattedDescription",null);
_.N([_.k("metadata","learnMoreCommand"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Oa.prototype,"shouldRendereVerifiedPhoneStatus",null);_.N([_.k("metadata"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Oa.prototype,"learnMoreCommand",null);_.N([_.n(),_.Z("design:type",String)],Oa.prototype,"businessEmailDisplayState",void 0);_.N([_.n(),_.Z("design:type",String)],Oa.prototype,"businessEmail",void 0);
_.N([_.n(),_.Z("design:type",String)],Oa.prototype,"businessEmailErrorMessage",void 0);_.N([_.HF("metadata"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Oa.prototype,"businessEmailMetadataChanged",null);_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Oa.prototype,"onYtServiceRequestCompleted",null);_.N([_.C({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],Oa);
_.p(Oa,"ytd-about-channel-renderer",function(){if(mgL!==void 0)return mgL;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return mgL=f},{mode:1});var RNo;var xY=function(){return _.I.apply(this,arguments)||this};
_.q(xY,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],xY.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],xY.prototype,"data",void 0);_.N([_.C({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],xY);
_.p(xY,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(RNo!==void 0)return RNo;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return RNo=f},{mode:1});var XP1;var Ea=function(){return _.I.apply(this,arguments)||this};
_.q(Ea,_.I);Ea.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Ea.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Ea.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",String)],Ea.prototype,"aligment",void 0);_.N([_.C({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],Ea);
_.p(Ea,"ytd-channel-list-sub-menu-renderer",function(){if(XP1!==void 0)return XP1;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return XP1=
f},{mode:1});var wPv;var Lc=function(){return _.I.apply(this,arguments)||this};
_.q(Lc,_.I);Lc.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}}}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Lc.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Lc.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Lc.prototype,"data",void 0);_.N([_.C({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],Lc);
_.p(Lc,"ytd-channel-sub-menu-renderer",function(){if(wPv!==void 0)return wPv;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return wPv=f},{mode:1});var hNi;var Tsi;var kY=function(){var f=_.I.apply(this,arguments)||this;f.isCompact=!1;return f};
_.q(kY,_.I);_.y3.Object.defineProperties(kY.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var f,S;return((S=_.H((f=this.data)==null?void 0:f.endpoint,_.pg))==null?void 0:S.target)==="TARGET_NEW_WINDOW"}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],kY.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],kY.prototype,"componentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],kY.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],kY.prototype,"isCompact",void 0);_.N([_.k("isCompact"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],kY.prototype,"thumbnailWidth",null);
_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],kY.prototype,"openNewWindow",null);_.N([_.C({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],kY);
_.p(kY,"ytd-media-lockup-renderer",function(){if(Tsi!==void 0)return Tsi;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Tsi=f},{mode:1});var FP7;var nc=function(){return _.I.apply(this,arguments)||this};
_.q(nc,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],nc.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],nc.prototype,"componentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],nc.prototype,"data",void 0);_.N([_.C({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],nc);
_.p(nc,"ytd-structured-description-channel-lockup-renderer",function(){if(FP7!==void 0)return FP7;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return FP7=f},{mode:1});var VMm;var sa=function(){var f=_.I.apply(this,arguments)||this;f.isCompact=!1;f.collections=_.K("web_modern_collections_v2");f.collectionsStackColor=_.K("modernize_structured_description_playlist_lockups_v2");return f};
_.q(sa,_.I);sa.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:_.K("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.y3.Object.defineProperties(sa.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var f,S,B,G,g,b;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(f=this.data)==null?void 0:(S=f.thumbnail)==null?void 0:S.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(B=this.data)==null?void 0:(G=B.thumbnail)==null?void 0:G.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(g=this.data)==null?void 0:(b=g.thumbnail)==
null?void 0:b.vibrantColorPalette:void 0}}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],sa.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],sa.prototype,"componentBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],sa.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],sa.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],sa.prototype,"showSidePanelThumbnailOverlay",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],sa.prototype,"isCompact",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],sa.prototype,"collections",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],sa.prototype,"collectionsStackColor",void 0);_.N([_.k("data"),_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],sa.prototype,"twoLineTitle",null);
_.N([_.k("data","collections","collectionsStackColor"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],sa.prototype,"collectionStack",null);_.N([_.C({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],sa);
_.p(sa,"ytd-structured-description-playlist-lockup-renderer",function(){if(VMm!==void 0)return VMm;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return VMm=f},{mode:1});var Jbm;var DG=function(){return _.I.apply(this,arguments)||this};
_.q(DG,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],DG.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],DG.prototype,"componentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],DG.prototype,"data",void 0);_.N([_.C({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],DG);
_.p(DG,"ytd-structured-description-video-lockup-renderer",function(){if(Jbm!==void 0)return Jbm;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return Jbm=f},{mode:2});var IM=function(){return _.I.apply(this,arguments)||this};
_.q(IM,_.I);
IM.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}}}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],IM.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],IM.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],IM.prototype,"data",void 0);_.N([_.C({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],IM);
_.p(IM,"ytd-compact-infocard-renderer",function(){if(hNi!==void 0)return hNi;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return hNi=f},{mode:1});var PIg;var Ua=function(){var f=_.I.apply(this,arguments)||this;f.useModernCollectionsV2=_.K("web_modern_collections_v2");return f};
_.q(Ua,_.I);Ua.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.y3.Object.defineProperties(Ua.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.K("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.K("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.K("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Ua.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Ua.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.kP),_.Z("design:type",Object)],Ua.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],Ua.prototype,"ytdReduxBehavior",void 0);_.N([_.n({selector:_.AD}),_.Z("design:type",Object)],Ua.prototype,"isGridViewEnabled",void 0);
_.N([_.k("isGridViewEnabled"),_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Ua.prototype,"watchFeedBigThumbs",null);_.N([_.k("isGridViewEnabled","data"),_.n({reflectToAttribute:!0,value:"168"}),_.Z("design:type",String),_.Z("design:paramtypes",[])],Ua.prototype,"thumbnailWidth",null);_.N([_.k("isGridViewEnabled","data"),_.n({reflectToAttribute:!0,value:"94"}),_.Z("design:type",String),_.Z("design:paramtypes",[])],Ua.prototype,"customThumbnailSize",null);
_.N([_.n(),_.Z("design:type",Object)],Ua.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Ua.prototype,"useModernCollectionsV2",void 0);_.N([_.C({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],Ua);
_.p(Ua,"ytd-compact-playlist-renderer",function(){if(PIg!==void 0)return PIg;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return PIg=f},{mode:1});var vIo;var Cc=function(){var f=_.I.apply(this,arguments)||this;f.darkerDarkTheme=_.K("web_darker_dark_theme");f.roundedContainer=!0;f.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return f};
_.q(Cc,_.I);_.e=Cc.prototype;_.e.attached=function(){this.requestElementsPerRow()};
_.e.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"}}}};
_.e.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.e.computeViewStyle=function(f){return f.style?f.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.e.onUpdateElementsPerRowAction=function(f){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&f===1};
_.e.requestElementsPerRow=function(){_.ew(this.hostElement,"yt-request-elements-per-row")};
Cc.prototype.dataChanged=Cc.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Cc.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Cc.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.kP),_.Z("design:type",Object)],Cc.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],Cc.prototype,"actionHandlerBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],Cc.prototype,"data",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],Cc.prototype,"hideThumbnail",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.Z("design:type",String)],Cc.prototype,"viewStyle",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Cc.prototype,"darkerDarkTheme",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Cc.prototype,"roundedContainer",void 0);
_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Cc.prototype,"dataChanged",null);_.N([_.C({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],Cc);
_.p(Cc,"ytd-compact-promoted-item-renderer",function(){if(vIo!==void 0)return vIo;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return vIo=f},{mode:1});var KP8;var pc=function(){var f=_.I.apply(this,arguments)||this;f.collections=_.K("web_modern_collections_v2");return f};
_.q(pc,_.I);pc.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
pc.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
pc.prototype.onYtNavigate=function(f,S){var B=this;if(S.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",S)){var G=this.get("watchEndpoint.videoId",S.endpoint),g=_.mU(this.hostElement,"yt-get-current-video-id-action")[0];_.K("kevlar_mix_handle_first_endpoint_different")&&G&&g&&G!==g||(f.stopPropagation(),_.GG().getPlayerPromise().then(function(b){if(b.getPlayerState()===0&&B.data.secondaryNavigationEndpoint)var z=B.data.secondaryNavigationEndpoint;else{z=
Object.assign({},S.endpoint);var X=_.H(z.commandMetadata,_.oD);X&&(b=Math.floor(b.getCurrentTime()),X.url=_.tA(X.url,{t:b}),!_.K("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(X=_.H(z,_.t2)))&&(X.startTimeSeconds=b)}_.ew(B.hostElement,"yt-navigate",{endpoint:z})}))}};
_.y3.Object.defineProperties(pc.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.K("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.K("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var f,S,B,G,g,b;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(f=this.data)==null?void 0:(S=f.thumbnail)==null?void 0:S.sampledThumbnailColor,vibrantColorPalette:(B=this.data)==null?void 0:(G=B.thumbnail)==null?void 0:G.vibrantColorPalette,darkColorPalette:(g=this.data)==null?void 0:(b=g.thumbnail)==null?void 0:b.darkColorPalette,experimentEnabled:this.collections}}}});
pc.prototype.onYtNavigate=pc.prototype.onYtNavigate;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],pc.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Pl.YtEndpointBehavior),_.Z("design:type",Object)],pc.prototype,"ytEndpointBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],pc.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.kP),_.Z("design:type",Object)],pc.prototype,"ytdDismissibleItemBehavior",void 0);
_.N([_.r(_.pR),_.Z("design:type",Object)],pc.prototype,"ytdLockupBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],pc.prototype,"ytdReduxBehavior",void 0);_.N([_.n({selector:_.AD}),_.Z("design:type",Object)],pc.prototype,"isGridViewEnabled",void 0);_.N([_.k("isGridViewEnabled"),_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],pc.prototype,"watchFeedBigThumbs",null);
_.N([_.k("isGridViewEnabled"),_.n({reflectToAttribute:!0}),_.Z("design:type",String),_.Z("design:paramtypes",[])],pc.prototype,"thumbnailWidth",null);_.N([_.n(),_.Z("design:type",Object)],pc.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],pc.prototype,"collections",void 0);_.N([_.k("data","collections"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],pc.prototype,"collectionStack",null);
_.N([_.Vg("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],pc.prototype,"onYtNavigate",null);_.N([_.C({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],pc);
_.p(pc,"ytd-compact-radio-renderer",function(){if(KP8!==void 0)return KP8;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return KP8=f},{mode:1});var dg8;var A6=function(){return _.I.apply(this,arguments)||this};
_.q(A6,_.I);A6.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
A6.prototype.computeRendererStyle=function(f){return f.style?f.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.N([_.n(),_.Z("design:type",Object)],A6.prototype,"data",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],A6.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],A6.prototype,"rendererBehavior",void 0);_.N([_.n({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.Z("design:type",String)],A6.prototype,"rendererStyle",void 0);_.N([_.C({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],A6);
_.p(A6,"ytd-compact-text-promo-renderer",function(){if(dg8!==void 0)return dg8;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return dg8=f},{mode:1});var i7g;var NL=function(){var f=_.I.apply(this,arguments)||this;f.isShortsStyle=!1;return f};
_.q(NL,_.I);_.e=NL.prototype;_.e.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"}}}};
_.e.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.ew(this.hostElement,"yt-disable-lockup-interaction"):_.ew(this.hostElement,"yt-enable-lockup-interaction"))};
_.e.isMetaBlockEmpty=function(f){return!f||!f.longBylineText&&!f.shortBylineText&&!f.shortViewCountText&&!f.viewCountText};
_.e.computeHasOneLineTitle=function(f){return this.forceOneLineTitle||!(f==null||!f.buttons)};
_.e.computeDisableInteraction=function(){var f;return!((f=this.data)==null?0:f.navigationEndpoint)};
_.e.hasSingularTopStandaloneBadge=function(){var f;return!((f=this.data)==null||!f.topStandaloneBadge)};
_.y3.Object.defineProperties(NL.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.K("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.K("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 f;return this.hasSingularTopStandaloneBadge()?[(f=this.data)==null?void 0:f.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var f;return this.shouldShowTopBadges?((f=this.data)==null?void 0:f.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
NL.prototype.disableInteractionChanged=NL.prototype.disableInteractionChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],NL.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],NL.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.kP),_.Z("design:type",Object)],NL.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.r(_.pR),_.Z("design:type",Object)],NL.prototype,"ytdLockupBehavior",void 0);
_.N([_.r(_.Ek),_.Z("design:type",Object)],NL.prototype,"ytdReduxBehavior",void 0);_.N([_.n({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.Z("design:type",Boolean)],NL.prototype,"metaBlockEmpty",void 0);_.N([_.n({selector:_.AD}),_.Z("design:type",Object)],NL.prototype,"isGridViewEnabled",void 0);_.N([_.k("isGridViewEnabled"),_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],NL.prototype,"watchFeedBigThumbs",null);
_.N([_.k("isGridViewEnabled"),_.n({reflectToAttribute:!0}),_.Z("design:type",String),_.Z("design:paramtypes",[])],NL.prototype,"thumbnailWidth",null);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],NL.prototype,"isShortsStyle",void 0);_.N([_.n(),_.Z("design:type",Object)],NL.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.Z("design:type",Boolean)],NL.prototype,"hasOneLineTitle",void 0);
_.N([_.n(),_.Z("design:type",Boolean)],NL.prototype,"hideThumbnail",void 0);_.N([_.n(),_.Z("design:type",Boolean)],NL.prototype,"forceOneLineTitle",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.Z("design:type",Boolean)],NL.prototype,"disableInteraction",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],NL.prototype,"musicMetadataVideoLockup",void 0);
_.N([_.JO("disableInteraction"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NL.prototype,"disableInteractionChanged",null);_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],NL.prototype,"shouldShowTopBadges",null);_.N([_.k("data"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],NL.prototype,"topBadges",null);
_.N([_.k("shouldShowTopBadges","data"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],NL.prototype,"inlineMetadataBadges",null);_.N([_.k("shouldShowTopBadges"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],NL.prototype,"shouldShowBadgesBelowMetadata",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],NL.prototype,"compactTitleClass",null);_.N([_.C({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],NL);
_.p(NL,"ytd-compact-video-renderer",function(){if(i7g!==void 0)return i7g;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return i7g=f},{mode:_.X_("kevlar_poly_si_batch_j067")?1:2});var H7$;_.Dd("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var ML=function(){return _.I.apply(this,arguments)||this};
_.q(ML,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],ML.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],ML.prototype,"data",void 0);_.N([_.C({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],ML);
_.p(ML,"ytd-counterfactual-renderer",function(){if(H7$!==void 0)return H7$;var f=document.createElement("template");_.Y(f,"\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");f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return H7$=f},{mode:1});var q_X;var ZG=function(){var f=_.I.apply(this,arguments)||this;f.hidden=!1;return f};
_.q(ZG,_.I);ZG.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.oy().resolve(_.S7).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
ZG.prototype.computeHidden=function(f){return!!f};
_.y3.Object.defineProperties(ZG.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}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],ZG.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],ZG.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.Z("design:type",Object)],ZG.prototype,"hidden",void 0);_.N([_.k("data.label"),_.Z("design:type",String),_.Z("design:paramtypes",[])],ZG.prototype,"label",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ZG.prototype,"value",null);
_.N([_.C({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],ZG);
_.p(ZG,"ytd-dropdown-item-renderer",function(){if(q_X!==void 0)return q_X;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return q_X=f},{mode:1});var $gg;var Q9o;var t6=function(){return _.I.apply(this,arguments)||this};
_.q(t6,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],t6.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],t6.prototype,"data",void 0);_.N([_.n({computed:"getSimpleString(data.label)"}),_.Z("design:type",String)],t6.prototype,"label",void 0);_.N([_.C({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],t6);
_.p(t6,"ytd-navigation-dropdown-item-renderer",function(){if(Q9o!==void 0)return Q9o;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return Q9o=f},{mode:1});var ug=function(){var f=_.I.apply(this,arguments)||this;f.disabled=!1;f.value="";f.noLabelFloat=!1;f.noUnderline=!1;f.usePrimaryColor=!1;f.hasBackground=!1;f.verticalAlign="top";f.autosize=!1;f.minAutosizeWidth=100;f.autosizeFont="14px Roboto";return f};
_.q(ug,_.I);_.e=ug.prototype;_.e.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"}}}};
_.e.open=function(){this.inputEl.open()};
_.e.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.e.dataChanged=function(){this.reset()};
_.e.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AW("value-changed",this.value))};
_.e.stopPropagation=function(f){f.stopPropagation()};
_.e.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var f=this.canvas.getContext("2d");f&&(f.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(f.measureText(this.inputEl.value).width)+24)+"px")}};
_.e.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var f=0,S=this.data.entries.length;f<S;f++){var B=this.data.entries[f],G;for(G in B)if(B.hasOwnProperty(G)){var g=B[G];if("isSelected"in g&&g.isSelected)return"stringValue"in g?g.stringValue||"":"int32Value"in g?g.int32Value||0:0}}return null};
_.e.updateValueFromBinding=function(f){this.value=f.detail.value};
_.y3.Object.defineProperties(ug.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 f=0,S=this.data.entries.length;f<S;f++){var B=this.data.entries[f],G;for(G in B)if(B.hasOwnProperty(G)){var g=B[G];if("isSelected"in g&&g.isSelected&&"label"in g)return this.ytRendererBehavior.getSimpleString(g.label)}}return null}}});
ug.prototype.autoSizeLabel=ug.prototype.autoSizeLabel;ug.prototype.stopPropagation=ug.prototype.stopPropagation;ug.prototype.valueChangedForBinding=ug.prototype.valueChangedForBinding;ug.prototype.dataChanged=ug.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],ug.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],ug.prototype,"ytRendererStamperBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],ug.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],ug.prototype,"disabled",void 0);_.N([_.n(),_.Z("design:type",Object)],ug.prototype,"value",void 0);_.N([_.n(),_.Z("design:type",Object)],ug.prototype,"noLabelFloat",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],ug.prototype,"noUnderline",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",String)],ug.prototype,"theme",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],ug.prototype,"usePrimaryColor",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],ug.prototype,"hasBackground",void 0);_.N([_.n(),_.Z("design:type",Object)],ug.prototype,"verticalAlign",void 0);_.N([_.n(),_.Z("design:type",Object)],ug.prototype,"autosize",void 0);_.N([_.n(),_.Z("design:type",Object)],ug.prototype,"minAutosizeWidth",void 0);_.N([_.n(),_.Z("design:type",Object)],ug.prototype,"autosizeFont",void 0);
_.N([_.vF("#entries"),_.Z("design:type",Object)],ug.prototype,"entries",void 0);_.N([_.vF("#input"),_.Z("design:type",Object)],ug.prototype,"inputEl",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ug.prototype,"dataChanged",null);_.N([_.HF("value"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ug.prototype,"valueChangedForBinding",null);
_.N([_.Vg("iron-overlay-opened"),_.Vg("iron-overlay-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],ug.prototype,"stopPropagation",null);_.N([_.Vg("iron-select"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ug.prototype,"autoSizeLabel",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ug.prototype,"label",null);
_.N([_.C({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],ug);
_.p(ug,"ytd-dropdown-renderer",function(){if($gg!==void 0)return $gg;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return $gg=f},{mode:1});var Y_N;var aM=function(){var f=_.I.apply(this,arguments)||this;f.isConstrainedList=!1;return f};
_.q(aM,_.I);aM.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"}}}};
aM.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
aM.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
aM.prototype.computeViewAllHidden=function(f,S){return f||!S.viewAllEndpoint};
aM.prototype.fillRestIfNoShowMore=aM.prototype.fillRestIfNoShowMore;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],aM.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],aM.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.ff.YtLazyListBehavior),_.Z("design:type",Object)],aM.prototype,"ytLazyListBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],aM.prototype,"data",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],aM.prototype,"isConstrainedList",void 0);_.N([_.HF("data","canShowMore"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],aM.prototype,"fillRestIfNoShowMore",null);_.N([_.C({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],aM);
_.p(aM,"ytd-expanded-shelf-contents-renderer",function(){if(Y_N!==void 0)return Y_N;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Y_N=f},{mode:_.X_("kevlar_poly_si_batch_j025")?1:2});var rbN;var yT=function(){return _.I.apply(this,arguments)||this};
_.q(yT,_.I);yT.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}}}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],yT.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],yT.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],yT.prototype,"data",void 0);_.N([_.C({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],yT);
_.p(yT,"ytd-feed-channel-filter-header-renderer",function(){if(rbN!==void 0)return rbN;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return rbN=f},{mode:1});var j9g;var O7v;var xg7;var WI=function(){return _.I.apply(this,arguments)||this};
_.q(WI,_.I);_.e=WI.prototype;_.e.onClick=function(f){var S,B=(S=this.data)==null?void 0:S.sectionEndpoint;!_.lF(_.ct(f),this.hostElement,["A".toString()])&&B&&_.ew(this.hostElement,"yt-navigate",{endpoint:B})};
_.e.computeHasSectionEndpoint=function(f){return(f==null?void 0:f.sectionEndpoint)!==void 0};
_.e.computeShowHeaderAsLink=function(f){return(f==null?void 0:f.header)!==void 0&&(f==null?void 0:f.sectionEndpoint)!==void 0};
_.e.computeShowSubheaderAsLink=function(f){return(f==null?void 0:f.subheader)!==void 0&&(f==null?void 0:f.sectionEndpoint)!==void 0&&(f==null?void 0:f.header)===void 0};
_.e.getHeaderAsLinkClass=function(f){var S=[],B;(f==null?0:(B=f.headerIcon)==null?0:B.iconType)&&S.push("header-link-active");return S.join(" ")};
_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],WI.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],WI.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],WI.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],WI.prototype,"data",void 0);
_.N([_.n({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],WI.prototype,"hasSectionEndpoint",void 0);_.N([_.n({computed:"computeShowHeaderAsLink(data)"}),_.Z("design:type",Boolean)],WI.prototype,"showHeaderAsLink",void 0);_.N([_.n({computed:"computeShowSubheaderAsLink(data)"}),_.Z("design:type",Boolean)],WI.prototype,"showSubheaderAsLink",void 0);_.N([_.C({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],WI);
_.p(WI,"ytd-medical-panel-section-renderer",function(){if(xg7!==void 0)return xg7;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return xg7=f},{mode:1});var cI=function(){var f=_.I.apply(this,arguments)||this;f.isExpanded=!1;f.roundedContainer=!0;f.skipRoundingTop=!1;f.toggleExpandableSection=function(){f.isExpanded=!f.isExpanded};
return f};
_.q(cI,_.I);
cI.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]]"}}}}}};
cI.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
cI.prototype.dataChanged=cI.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],cI.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],cI.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],cI.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],cI.prototype,"isExpanded",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],cI.prototype,"roundedContainer",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],cI.prototype,"skipRoundingTop",void 0);_.N([_.n(),_.Z("design:type",Object)],cI.prototype,"toggleExpandableSection",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cI.prototype,"dataChanged",null);_.N([_.C({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],cI);
_.p(cI,"ytd-medical-panel-content-renderer",function(){if(O7v!==void 0)return O7v;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return O7v=f},{mode:1});_.Dd("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var lg=function(){var f=_.I.apply(this,arguments)||this;f.roundedContainer=!0;f.amsterdamEnabled=_.K("enable_desktop_amsterdam_info_panels");f.hasTitle=!1;f.linkIcon="OPEN_IN_NEW";f.isDismissed=!1;return f};
_.q(lg,_.I);
lg.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"}}}};
lg.prototype.computeHasTitle=function(f){return!(f==null||!f.title)};
lg.prototype.onClick=function(f){var S,B=(S=this.data)==null?void 0:S.headerEndpoint;!_.lF(_.ct(f),this.hostElement,["BUTTON".toString()])&&B&&this.ytComponentBehavior.resolveCommand(B)};
_.y3.Object.defineProperties(lg.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 f;return((f=this.data)==null?void 0:f.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var f,S;return((f=this.data)==null?void 0:f.disableBottomDivider)||!((S=this.data)==null?0:S.title)}}});
_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],lg.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],lg.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],lg.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],lg.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],lg.prototype,"data",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],lg.prototype,"roundedContainer",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],lg.prototype,"amsterdamEnabled",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.Z("design:type",Object)],lg.prototype,"hasTitle",void 0);
_.N([_.n({type:_.K("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.k("data.background"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],lg.prototype,"background",null);_.N([_.n({type:_.K("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.k("data.titleStyle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],lg.prototype,"titleStyle",null);
_.N([_.n({type:_.K("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.k("data.titleStyle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],lg.prototype,"showLinkIcon",null);_.N([_.n(),_.Z("design:type",String)],lg.prototype,"linkIcon",void 0);_.N([_.n({type:_.K("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],lg.prototype,"hideDivider",null);
_.N([_.n({selectorArgs:["data.dismissStateEntityKey"],selector:function(f,S){f=_.w9(f.entities,"dismissState",S);return(f==null?void 0:f.isDismissed)||(f==null?void 0:f.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(f==null?void 0:f.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.Z("design:type",Object)],lg.prototype,"isDismissed",void 0);_.N([_.C({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],lg);
_.p(lg,"ytd-info-panel-container-renderer",function(){if(j9g!==void 0)return j9g;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return j9g=f},{mode:1});var EI8;_.Dd("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var fw=function(){var f=_.I.apply(this,arguments)||this;f.modernTypography=_.K("web_modern_typography");return f};
_.q(fw,_.I);fw.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
fw.prototype.computeStyle=function(f){return f?f:""};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],fw.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],fw.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],fw.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.Z("design:type",String)],fw.prototype,"titleStyle",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],fw.prototype,"modernTypography",void 0);_.N([_.C({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],fw);
_.p(fw,"ytd-item-section-header-renderer",function(){if(EI8!==void 0)return EI8;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return EI8=f},{mode:1});var LP7;var km$,nIm=function(){return km$!==void 0?km$:km$=document.createElement("template")};
document.head.appendChild(nIm().content);var s9g;_.ob=new _.Sn("VOTING_ANIMATION_CONTROLLER_TOKEN");var IsN=_.oS(function(f){var S=f.data;var B=_.tE("div"),G=_.tE("div");f=_.m(_.hj("VOTE_STATUS_NONE",void 0,"FVF7mc"));var g=f.next().value,b=f.next().value,z=_.v8(Azx,function(){var P;return(P=S())==null?void 0:P.entityKey}),X=_.K("web_enable_voting_animation")||_.K("enable_music_web_cairo_voting_animation");
_.j9(function(){var P;((P=S().initialState)==null?0:P.status)&&b(S().initialState.status)});
var w=function(){var P,d,Q=(d=(P=S().initialState)==null?void 0:P.votes)!=null?d:0,x;P=(x=S().initialState)==null?void 0:x.status;return P==="VOTE_STATUS_UPVOTED"?Q-1:P==="VOTE_STATUS_DOWNVOTED"?Q+1:Q},F=function(){return g()==="VOTE_STATUS_UPVOTED"?w()+1:g()==="VOTE_STATUS_DOWNVOTED"?w()-1:w()},V=function(P){var d=P?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
b(d);var Q=F(),x=_.oy().resolve(_.fN(_.ob)),E=z();E&&(P&&(E==null?0:E.upvoteDefaultButtonOnTap)?_.MB(E.upvoteDefaultButtonOnTap,{form:{element:B.value},disableClickTracking:!0}):(E==null?0:E.upvoteToggledButtonOnTap)&&_.MB(E.upvoteToggledButtonOnTap,{form:{element:B.value},disableClickTracking:!0}));var U;P=(U=E==null?void 0:E.enableOptimisticReordering)!=null?U:S().enableOptimisticReordering;X&&x&&S().itemId&&P&&Dgg(x,S().itemId,Q,d)},J=function(P){var d=P?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
b(d);var Q=F(),x=_.oy().resolve(_.fN(_.ob)),E=z();E&&(P&&(E==null?0:E.downvoteDefaultButtonOnTap)?_.MB(E.downvoteDefaultButtonOnTap,{form:{element:G.value},disableClickTracking:!0}):(E==null?0:E.downvoteToggledButtonOnTap)&&_.MB(E.downvoteToggledButtonOnTap,{form:{element:G.value},disableClickTracking:!0}));var U;P=(U=E==null?void 0:E.enableOptimisticReordering)!=null?U:S().enableOptimisticReordering;X&&x&&S().itemId&&P&&Dgg(x,S().itemId,Q,d)};
f={};f=_.Pw("ytVotingViewModelVoteCount",(f.ytVotingViewModelVoteCountDisabled=function(){return S().isDisabled},f));
return _.T("voting-view-model",{class:"ytVotingViewModelHost"},_.T("div",{el:B},_.T(_.xK,{data:function(){var P=_.H(S().upvoteButton,_.YK);return{toggleButtonViewModel:Object.assign({},P,{isToggled:g()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(P){return _.T(_.ER,{data:P.data,
onToggle:V})}})),_.T("div",{class:f},function(){var P,d,Q;
return g()==="VOTE_STATUS_UPVOTED"?(P=S().initialState)==null?void 0:P.compactVotesUpvoted:g()==="VOTE_STATUS_DOWNVOTED"?(d=S().initialState)==null?void 0:d.compactVotesDownvoted:(Q=S().initialState)==null?void 0:Q.compactVotes}),_.T("div",{el:G},_.T(_.xK,{data:function(){var P=_.H(S().downvoteButton,_.YK);
return{toggleButtonViewModel:Object.assign({},P,{isToggled:g()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(P){return _.T(_.ER,{data:P.data,
onToggle:J})}})))},"Ib");_.eq(_.oS(function(f){var S=f.data;return _.T("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.T("div",{class:_.Pw("ytEngagementBarViewModelEngagementBarWrapper",f.className)},_.T(_.xK,{data:function(){return S().actions}},{votingViewModel:IsN})))},"Jb"),"engagement-bar-view-model",{props:{data:_.W4,
className:_.W4}});var Sh=function(){var f=_.I.apply(this,arguments)||this;f.playlistVotingAnimationEnabled=_.K("web_enable_voting_animation");f.downloadProgress=0;f.transferState="TRANSFER_STATE_UNKNOWN";f.downloadState="DOWNLOAD_STATE_UNKNOWN";f.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";f.offlineVideoPolicyExpirationTimestamp=0;return f};
_.q(Sh,_.I);_.e=Sh.prototype;_.e.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"}}}};
_.e.canReorderChanged=function(){this.persistentDragHandle=_.K("kevlar_playlist_drag_handles")&&this.canReorder};
_.e.onDrag=function(){if(this.thumbnail){var f=_.m9(this.thumbnail).querySelector("yt-image");f&&(f.shouldRenderLazy=!1)}};
_.e.onMenuOverlayChanged=function(f,S){this.menuOpened=S};
_.e.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.e.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.e.onContentsTap=function(f){var S,B=(S=this.data)==null?void 0:S.serviceEndpoints;if(B&&B.length===1&&_.H(B[0],eTG)&&!_.lF(_.ct(f),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(B[0]);else{var G;(S=(G=this.data)==null?void 0:G.navigationEndpoint)&&_.K("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?UgX(_.oy().resolve(_.N_),S):(_.Pn().playlistSuggestionsShelfActivation=
!0,_.CI7(_.oy().resolve(_.N_),S)):S&&!_.lF(_.ct(f),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.K("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.ew(this.hostElement,"yt-navigate",{endpoint:S}):this.ytComponentBehavior.resolveCommand(S))}};
_.e.computeStyle=function(f){return f?f.toLowerCase().replace(/_/g,"-"):""};
_.e.computeThumbnailWidth=function(f){return f==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.e.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=SXV(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))}};
_.e.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.e.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.e.dataChanged=function(){if(this.data){var f,S,B,G=((f=this.downloadRenderData)==null?void 0:f.badges)&&((S=this.downloadRenderData)==null?void 0:S.badges)!==((B=this.data)==null?void 0:B.badges),g,b,z;f=((g=this.downloadRenderData)==null?void 0:g.thumbnailOverlays)&&((b=this.downloadRenderData)==null?void 0:b.thumbnailOverlays)!==((z=this.data)==null?void 0:z.thumbnailOverlays);(!this.downloadRenderData||G||f)&&this.downloadStateChanged()}};
_.e.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var f,S,B=(f=this.data.menu)==null?void 0:(S=f.menuRenderer)==null?void 0:S.items;if(B)for(f=_.m(B),S=f.next();!S.done;S=f.next())if(S=S.value,B=void 0,_.H((B=S.menuServiceItemRenderer)==null?void 0:B.serviceEndpoint,_.nW)){var G=B=void 0,g=void 0;S=(B=S)==null?void 0:(G=B.menuServiceItemRenderer)==null?void 0:(g=G.serviceEndpoint)==null?void 0:g.playlistEditEndpoint;g=G=void 0;if(B=(G=S)==null?void 0:(g=G.actions)==null?void 0:
g[0])G=void 0,B.setVideoId=(G=this.data)==null?void 0:G.setVideoId;g=G=B=void 0;if(S=(B=S)==null?void 0:(G=B.clientActions)==null?void 0:(g=G[0])==null?void 0:g.playlistRemoveVideosAction)B=void 0,S.setVideoIds=[(B=this.data)==null?void 0:B.setVideoId]}}};
_.y3.Object.defineProperties(Sh.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
Sh.prototype.setVideoIdChanged=Sh.prototype.setVideoIdChanged;Sh.prototype.dataChanged=Sh.prototype.dataChanged;Sh.prototype.downloadStateChanged=Sh.prototype.downloadStateChanged;Sh.prototype.onMenuOverlayChanged=Sh.prototype.onMenuOverlayChanged;Sh.prototype.canReorderChanged=Sh.prototype.canReorderChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Sh.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],Sh.prototype,"ytdReduxBehavior",void 0);
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Sh.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.pR),_.Z("design:type",Object)],Sh.prototype,"ytdLockupBehavior",void 0);_.N([_.r(_.kP),_.Z("design:type",Object)],Sh.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Sh.prototype,"ytComponentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Sh.prototype,"data",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Sh.prototype,"canReorder",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Sh.prototype,"menuOpened",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Sh.prototype,"handleIsHovered",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Sh.prototype,"persistentDragHandle",void 0);_.N([_.n(),_.Z("design:type",Object)],Sh.prototype,"downloadRenderData",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Z("design:type",String)],Sh.prototype,"styleType",void 0);_.N([_.n({computed:"computeThumbnailWidth(data.style)"}),_.Z("design:type",Number)],Sh.prototype,"thumbnailWidth",void 0);_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Sh.prototype,"isDownloads",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Sh.prototype,"playlistVotingAnimationEnabled",void 0);
_.N([_.n({selector:Ic,selectorArgs:["data.videoId"]}),_.Z("design:type",Object)],Sh.prototype,"downloadProgress",void 0);_.N([_.n(),_.Z("design:type",Number)],Sh.prototype,"relativeDateReference",void 0);_.N([_.n({selector:_.sA,selectorArgs:["data.videoId"]}),_.Z("design:type",Object)],Sh.prototype,"transferState",void 0);_.N([_.n({selector:$GN,selectorArgs:["data.videoId"]}),_.Z("design:type",Object)],Sh.prototype,"downloadState",void 0);
_.N([_.n({selector:X1A,selectorArgs:["data.videoId"]}),_.Z("design:type",Object)],Sh.prototype,"offlinePolicyAction",void 0);_.N([_.n({selector:w1x,selectorArgs:["data.videoId"]}),_.Z("design:type",Object)],Sh.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.N([_.n({selector:TU1,selectorArgs:["data.videoId"]}),_.Z("design:type",Object)],Sh.prototype,"entityInfo",void 0);_.N([_.n({selector:_.LJ}),_.Z("design:type",Boolean)],Sh.prototype,"miniplayerIsActive",void 0);
_.N([_.k("data"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Sh.prototype,"playlistVideoId",null);_.N([_.vF("#thumbnail"),_.Z("design:type",Object)],Sh.prototype,"thumbnail",void 0);_.N([_.HF("canReorder"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Sh.prototype,"canReorderChanged",null);
_.N([_.Vg("yt-menu-overlay-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Boolean]),_.Z("design:returntype")],Sh.prototype,"onMenuOverlayChanged",null);_.N([_.HF("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Sh.prototype,"downloadStateChanged",null);
_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Sh.prototype,"dataChanged",null);_.N([_.HF("data.setVideoId"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Sh.prototype,"setVideoIdChanged",null);_.N([_.C({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],Sh);
_.p(Sh,"ytd-playlist-video-renderer",function(){if(s9g!==void 0)return s9g;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);f.content.insertBefore(nIm().content.cloneNode(!0),f.content.firstChild);return s9g=f},{mode:1});var pP$;var BC=function(){return _.I.apply(this,arguments)||this};
_.q(BC,_.I);_.N([_.n(),_.Z("design:type",Object)],BC.prototype,"data",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],BC.prototype,"rendererBehavior",void 0);_.N([_.C({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],BC);
_.p(BC,"ytd-premium-browse-footer-renderer",function(){if(pP$!==void 0)return pP$;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return pP$=f},{mode:1});var Ab6;var GR=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return f};
_.q(GR,_.I);_.e=GR.prototype;_.e.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.e.handleDarkModeToggledAction=function(f){this.isDarkTheme=f};
_.e.computeHeaderLogoThumbnail=function(f,S){if(f)return S?f.darkLogo:f.lightLogo};
_.e.computeHeaderLogoHeight=function(f,S){var B,G,g;return(f=(B=this.computeHeaderLogoThumbnail(f,S))==null?void 0:(G=B.thumbnails)==null?void 0:(g=G[0])==null?void 0:g.height)&&f%31===0?"31":"24"};
_.e.computeHeaderLogoMarginBottom=function(f,S){return this.computeHeaderLogoHeight(f,S)==="24"?"0":"-7"};
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],GR.prototype,"actionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],GR.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],GR.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Boolean)],GR.prototype,"isDarkTheme",void 0);_.N([_.n({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.Z("design:type",Object)],GR.prototype,"themeLogo",void 0);
_.N([_.n({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.Z("design:type",String)],GR.prototype,"logoHeight",void 0);_.N([_.n({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.Z("design:type",String)],GR.prototype,"logoMarginBottom",void 0);_.N([_.C({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],GR);
_.p(GR,"ytd-primetime-promo-header-renderer",function(){if(Ab6!==void 0)return Ab6;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Ab6=f},{mode:1});var Nso;var Z7m=_.oS(function(f){var S=_.iF(function(g){var b;(b=f.onClick)==null||b.call(f,g)}),B={},G={};
return _.T("yt-shelf-header-layout",{class:_.Pw("shelf-header-layout-wiz",(B["shelf-header-layout-wiz--disable-horizontal-padding"]=f.disableHorizontalPadding,B["shelf-header-layout-wiz--disable-vertical-padding"]=f.disableVerticalPadding,B["shelf-header-layout-wiz--responsive"]=f.useResponsiveLayout,B["shelf-header-layout-wiz--narrow"]=function(){var g,b;return((g=f.useResponsiveLayout)==null?void 0:g.call(f))&&((b=f.forceSmallLayout)==null?void 0:b.call(f))},B["shelf-header-layout-wiz--is-overlay"]=
f.isOverlay,B["shelf-header-layout-wiz--tappable"]=!!f.onClick,B)),
"on:click":S,tabindex:f.onClick?0:void 0},_.T(_.v,{cond:f.leadingIcon,then:function(g){return _.T("div",{class:"shelf-header-layout-wiz__leading-icon"},_.T(_.Y8,{icon:g}))},
else:function(){return _.T(_.v,{cond:f.hasLeadingImage,then:function(){var g,b={};return _.T("div",{class:_.Pw("shelf-header-layout-wiz__leading-image",(b["shelf-header-layout-wiz__leading-image--circular-image"]=f.circularImage,b))},(g=f.leadingImage)==null?void 0:g.call(f))}})}}),_.T("div",{class:"shelf-header-layout-wiz__label-container"},_.T(_.v,{cond:f.hasSuperlabel,
then:function(){var g;return _.T("div",{class:"shelf-header-layout-wiz__superlabel"},(g=f.superlabel)==null?void 0:g.call(f))}}),_.T("div",{class:"shelf-header-layout-wiz__title-row"},_.T(MMN,{text:f.title,
className:_.Pw("shelf-header-layout-wiz__title",(G["shelf-header-layout-wiz__title--small-title"]=f.forceSmallLayout,G)),tagLevel:f.tagLevel}),_.T(_.v,{cond:f.hasDetail,then:function(){var g;return _.T("div",{class:"shelf-header-layout-wiz__detail"},(g=f.detail)==null?void 0:g.call(f))}})),_.T(_.v,{cond:f.hasSublabel,
then:function(){var g;return _.T("div",{class:"shelf-header-layout-wiz__sublabel"},(g=f.sublabel)==null?void 0:g.call(f))}})),_.T(_.v,{cond:f.hasTrailingActions,
then:function(){var g;return _.T("div",{class:"shelf-header-layout-wiz__trailing-actions"},(g=f.trailingActions)==null?void 0:g.call(f))}}))},"Kb");
Z7m.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};
var MMN=_.oS(function(f){var S=f.text;var B=f.className;var G=f.tagLevel;return _.T(_.qp,null,_.T(_.i0,{when:function(){return(G==null?void 0:G())===0}},function(){return _.T("h2",{class:B},S())}),_.T(_.i0,{when:function(){return(G==null?void 0:G())===1}},function(){return _.T("h3",{class:B},S())}),_.T(_.i0,{when:function(){return(G==null?void 0:G())===2}},function(){return _.T("h4",{class:B},S())}),_.T(_.Hf,null,function(){return _.T("h2",{class:B},S())}))},"Lb");var as7,tML,ukL;_.gt=_.oS(function(f){var S=f.data;return _.T("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:_.Qj({"background-color":function(){return Nfs(S().backgroundColor)?_.AK(Nfs(S().backgroundColor)):void 0}})},_.T(Z7m,{hasDetail:!1,
title:function(){return _.T(_.oY,{text:function(){return S().headline}})},
hasTitle:!0,sublabel:function(){return _.T(tML,{data:S})},
hasSublabel:function(){return!!S().sublabel||!!S().bottomBadge},
superlabel:function(){return _.T(ukL,{data:S})},
hasSuperlabel:function(){return!!S().superlabel||!!S().topBadge},
leadingImage:function(){return _.T(as7,{leadingAccessory:function(){return S().leadingAccessory}})},
hasLeadingImage:function(){return!!S().leadingAccessory},
trailingActions:function(){return _.T(_.xK,{data:function(){return S().trailingActions}},{flexibleActionsViewModel:Yq})},
hasTrailingActions:function(){return!!S().trailingActions},
disableHorizontalPadding:f.disableHorizontalPadding,disableVerticalPadding:f.disableVerticalPadding,forceSmallLayout:f.forceSmallLayout,useResponsiveLayout:f.useResponsiveLayout,isOverlay:f.isOverlay,onClick:function(B){if(_.ux(S().rendererContext)){var G=_.tD(S().rendererContext);G&&_.pH(G,{form:{element:B.target,event:B}})}}}))},"Mb");
as7=_.oS(function(f){var S=f.leadingAccessory;return _.T(_.gg,null,_.T(_.v,{cond:function(){var B;return(B=S().image)!=null?B:_.fy(S().themedImage)},
then:function(B){return _.T(_.f9,{data:B,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.T(_.v,{cond:function(){return _.H(S().avatar,_.y5)},
then:function(B){return _.T(_.Ya,{data:B})}}))},"Nb");
tML=_.oS(function(f){var S=f.data;return _.T(_.gg,null,_.T(_.v,{cond:function(){return _.H(S().bottomBadge,hG8)},
then:function(B){var G={};return _.T(_.fp,{data:B,class:_.Pw((G.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!B()&&!!S().sublabel},G))})}}),_.T(_.v,{cond:function(){return S().sublabel},
then:function(B){return _.T(_.oY,{text:B})}}))},"Ob");
ukL=_.oS(function(f){var S=f.data;return _.T(_.gg,null,_.T(_.v,{cond:function(){return _.H(S().topBadge,hG8)},
then:function(B){var G={};return _.T(_.fp,{data:B,class:_.Pw((G.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!B()&&!!S().superlabel},G))})}}),_.T(_.v,{cond:function(){return S().superlabel},
then:function(B){return _.T(_.oY,{text:B})}}))},"Pb");_.eq(_.gt,"yt-section-header-view-model",{props:{data:_.W4,className:_.W4,disableHorizontalPadding:_.W4,disableVerticalPadding:_.W4,forceSmallLayout:_.W4,useResponsiveLayout:_.W4,isOverlay:_.W4}});_.Dd("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var eh=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return f};
_.q(eh,_.I);_.e=eh.prototype;_.e.attached=function(){this.requestElementsPerRow()};
_.e.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"}}}};
_.e.onDataChange=function(){var f=this;_.ui(this,function(){f.updateItemVisibility()})};
_.e.onUpdateElementsPerRowAction=function(f){f&&this.elementsPerRow!==f&&(this.elementsPerRow=f,this.updateItemVisibility())};
_.e.updateItemVisibility=function(){var f=this;this.data&&this.data.panels&&_.m9(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(S,B){S.hidden=B>f.elementsPerRow-1})};
_.e.requestElementsPerRow=function(){_.ew(this.hostElement,"yt-request-elements-per-row")};
eh.prototype.onDataChange=eh.prototype.onDataChange;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],eh.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.kP),_.Z("design:type",Object)],eh.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],eh.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],eh.prototype,"actionHandlerBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],eh.prototype,"data",void 0);_.N([_.n({value:3}),_.Z("design:type",Number)],eh.prototype,"elementsPerRow",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],eh.prototype,"onDataChange",null);_.N([_.C({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],eh);
_.p(eh,"ytd-primetime-promo-renderer",function(){if(Nso!==void 0)return Nso;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Nso=f},{mode:1});var yb8;var bR=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return f};
_.q(bR,_.I);bR.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
bR.prototype.handleButtonRefreshAction=function(f){if(f=_.H(f,QQ1))this.set("data.button",f.membershipButton),this.notifyPath("data.button")};
_.y3.Object.defineProperties(bR.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var f,S;return((f=this.data)==null?void 0:(S=f.avatars)==null?void 0:S.slice(0,8))||[]}}});
_.N([_.n(),_.Z("design:type",Object)],bR.prototype,"data",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],bR.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],bR.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],bR.prototype,"rendererBehavior",void 0);_.N([_.k("data"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],bR.prototype,"avatars",null);
_.N([_.C({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],bR);
_.p(bR,"ytd-recognition-shelf-renderer",function(){if(yb8!==void 0)return yb8;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return yb8=f},{mode:1});var WPg;var cb7;var mS=function(){var f=_.I.apply(this,arguments)||this;f.modernButtons=_.K("web_modern_buttons");return f};
_.q(mS,_.I);_.e=mS.prototype;
_.e.configureRendererStamper=function(){return{visibleItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-vertical-list-renderer lockup",containerType:3,force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",typographyBump:"[[typographyBump]]",lockupExperiments:"[[lockupExperiments]]"}},channelRenderer:"ytd-channel-renderer",playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},radioRenderer:"ytd-radio-renderer",
showRenderer:"ytd-show-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.e.dataChanged=function(){this.collapsed=!0};
_.e.computeVisibleItems=function(f,S){return f!==void 0&&f.items?S?f.items.slice(0,this.data.collapsedItemCount):f.items:[]};
_.e.computeHideShowMore=function(f,S,B){return f>=S||!B};
_.e.computeHideShowAll=function(f,S,B){return!(f&&S)||B};
_.e.onMoreClick=function(){this.collapsed=!1};
_.y3.Object.defineProperties(mS.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.K("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.gO("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.K("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
mS.prototype.dataChanged=mS.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],mS.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],mS.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],mS.prototype,"data",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],mS.prototype,"isSearch",void 0);
_.N([_.n({computed:"computeVisibleItems(data,collapsed)"}),_.Z("design:type",Array)],mS.prototype,"visibleItems",void 0);_.N([_.n({value:!0}),_.Z("design:type",Boolean)],mS.prototype,"collapsed",void 0);_.N([_.n({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.Z("design:type",Boolean)],mS.prototype,"hideShowMore",void 0);
_.N([_.n({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.Z("design:type",Boolean)],mS.prototype,"hideShowAll",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],mS.prototype,"modernButtons",void 0);_.N([_.k("isSearch"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],mS.prototype,"typographyBump",null);
_.N([_.k("isSearch"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],mS.prototype,"lockupExperiments",null);_.N([_.k("isSearch"),_.Z("design:type",String),_.Z("design:paramtypes",[])],mS.prototype,"thumbnailWidth",null);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mS.prototype,"dataChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],mS);
_.p(mS,"ytd-vertical-list-renderer",function(){if(cb7!==void 0)return cb7;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return cb7=f},{mode:1});var lsi=_.f4(["#"]);_.Dd("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var zR=function(){var f=_.I.apply(this,arguments)||this;f.isConstrainedList=!1;f.modernTypography=_.K("web_modern_typography");return f};
_.q(zR,_.I);_.e=zR.prototype;
_.e.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"}}}};
_.e.computeThumbnailStyle=function(f){return f||""};
_.e.computePlaceAnnotationUnderTitle=function(){var f;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((f=this.data)==null?void 0:f.thumbnailStyle)||"")};
_.e.computeHrefWithDefault=function(f){return this.ytComponentBehavior.computeHref_(f)||_.$6(lsi)};
_.e.computeIsPromoShelf=function(f){var S;return(f=f==null?void 0:(S=f[0])==null?void 0:S.metadataBadgeRenderer)?f.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.e.computePlaceBadgeBesideTitle=function(f){var S;return(f==null?0:(S=f[0])==null?0:S.metadataBadgeRenderer)?!this.computeIsPromoShelf(f):!1};
_.e.computeMenuIcon=function(f){return this.computeIsPromoShelf(f)?"yt-icons:more_vert":"yt-icons:more"};
_.e.onDataChange=function(){var f,S;((f=this.data)==null?0:(S=f.content)==null?0:S.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.e.onLockupRequested=function(f){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&f.detail&&f.detail.videoIds){for(var S=this.data.content.gridRenderer.items,B=new Set,G=_.m(f.detail.videoIds),g=G.next();!g.done;g=G.next())B.add(g.value);f.detail.returnValue=S.filter(function(b){return b.gridVideoRenderer&&b.gridVideoRenderer.videoId&&B.has(b.gridVideoRenderer.videoId)}).map(function(b){return b.gridVideoRenderer})}};
_.e.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
zR.prototype.onLockupRequested=zR.prototype.onLockupRequested;zR.prototype.onDataChange=zR.prototype.onDataChange;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],zR.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.kP),_.Z("design:type",Object)],zR.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],zR.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],zR.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.Ld),_.Z("design:type",Object)],zR.prototype,"ironResizableBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],zR.prototype,"data",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],zR.prototype,"isSearch",void 0);_.N([_.n(),_.Z("design:type",Object)],zR.prototype,"isConstrainedList",void 0);_.N([_.n({reflectToAttribute:!0,value:function(){return _.K("kevlar_fluid_dismiss")}}),
_.Z("design:type",Boolean)],zR.prototype,"enableFluidDismiss",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.Z("design:type",String)],zR.prototype,"thumbnailStyle",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],zR.prototype,"modernTypography",void 0);_.N([_.n({computed:"computeMenuIcon(data.badges)"}),_.Z("design:type",String)],zR.prototype,"menuIcon",void 0);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zR.prototype,"onDataChange",null);_.N([_.Vg("yt-lockup-requested"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],zR.prototype,"onLockupRequested",null);_.N([_.C({is:"ytd-shelf-renderer",disableElementRegistration:!0})],zR);
_.p(zR,"ytd-shelf-renderer",function(){if(WPg!==void 0)return WPg;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return WPg=f},{mode:1});var fq8;var Rb=function(){return _.I.apply(this,arguments)||this};
_.q(Rb,_.I);Rb.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.y3.Object.defineProperties(Rb.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Rb.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Rb.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Rb.prototype,"data",void 0);_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Rb.prototype,"isPlaylist",void 0);_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Rb.prototype,"isClipList",void 0);
_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Rb.prototype,"isPlaylistPageWithFilters",void 0);_.N([_.n({value:!1,reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Rb.prototype,"hasTitle",null);_.N([_.n(),_.k("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Rb.prototype,"isRightAligned",null);
_.N([_.C({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],Rb);
_.p(Rb,"ytd-sort-filter-header-renderer",function(){if(fq8!==void 0)return fq8;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return fq8=f},{mode:1});var oBN;var XB=function(){var f=_.I.apply(this,arguments)||this;f.enableRightArrowHidden=_.K("channel_details_shelf_resize_observer");return f};
_.q(XB,_.I);XB.prototype.attached=function(){var f=this;this.enableRightArrowHidden&&(this.JSC$14315_throttledOnResize=new _.S3(function(){var S;(S=f.ytdHorizontalListBehavior)==null||S.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var S;
(S=f.JSC$14315_throttledOnResize)==null||S.fire()}),this.resizeObserver.observe(this.hostElement))};
XB.prototype.detached=function(){if(this.enableRightArrowHidden){var f;(f=this.resizeObserver)==null||f.disconnect();var S;(S=this.JSC$14315_throttledOnResize)==null||S.dispose()}};
XB.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]]"}}}}}};
XB.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.y3.Object.defineProperties(XB.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.K("enable_creator_details_shelf_m2")){var f=[],S;((S=this.data)==null?0:S.creatorVideosButton)&&f.push(this.data.creatorVideosButton);var B;((B=this.data)==null?0:B.creatorAboutButton)&&f.push(this.data.creatorAboutButton);S=_.m(this.data.creatorCustomUrlButtons||[]);for(B=S.next();!B.done;B=S.next())f.push(B.value);return f}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.K("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],XB.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],XB.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.o_.YtdHorizontalListBehavior),_.Z("design:type",Object)],XB.prototype,"ytdHorizontalListBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],XB.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],XB.prototype,"engagementPanel",void 0);
_.N([_.n(),_.Z("design:type",Object)],XB.prototype,"enableRightArrowHidden",void 0);_.N([_.k("enableRightArrowHidden","atEnd"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],XB.prototype,"hideRightArrow",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],XB.prototype,"creatorCustomUrlButtons",null);
_.N([_.n({reflectToAttribute:!0}),_.k("data","creatorCustomUrlButtons"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],XB.prototype,"showCreatorCustomUrlButtons",null);_.N([_.k("showCreatorCustomUrlButtons"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],XB.prototype,"channelAvatarSize",null);_.N([_.C({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],XB);
_.p(XB,"ytd-video-description-infocards-section-renderer",function(){if(oBN!==void 0)return oBN;var f=document.createElement("template");_.Y(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_" hidden="[[hideRightArrow]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return oBN=f},{mode:_.X_("kevlar_poly_si_batch_j067")?1:2});var S9o;var wt=function(){return _.I.apply(this,arguments)||this};
_.q(wt,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],wt.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],wt.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],wt.prototype,"data",void 0);_.N([_.n({computed:"computeIcon_(data.infoIcon)"}),_.Z("design:type",Object)],wt.prototype,"infoIcon",void 0);_.N([_.C({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],wt);
_.p(wt,"ytd-eom-settings-disclaimer-renderer",function(){if(S9o!==void 0)return S9o;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return S9o=f},{mode:1});var Bk8;var h4=function(){return _.I.apply(this,arguments)||this};
_.q(h4,_.I);_.y3.Object.defineProperties(h4.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.suppressPaddingDisclaimer)}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],h4.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],h4.prototype,"componentBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],h4.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],h4.prototype,"data",void 0);
_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],h4.prototype,"suppressPaddingDisclaimer",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],h4);
_.p(h4,"ytd-product-list-header-renderer",function(){if(Bk8!==void 0)return Bk8;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Bk8=f},{mode:1});var G_N;var TR=function(){return _.I.apply(this,arguments)||this};
_.q(TR,_.I);TR.prototype.computeThumbnailStyle=function(f){if(f&&(f=_.pn(f)))return"background-color:"+f+";"};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],TR.prototype,"rendererBehaviors",void 0);_.N([_.n(),_.Z("design:type",Object)],TR.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],TR);
_.p(TR,"ytd-hashtag-tile-renderer",function(){if(G_N!==void 0)return G_N;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return G_N=f},{mode:1});var gBN;var FB=function(){return _.I.apply(this,arguments)||this};
_.q(FB,_.I);FB.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}}}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],FB.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],FB.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],FB.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],FB);
_.p(FB,"ytd-sponsorships-alert-renderer",function(){if(gBN!==void 0)return gBN;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return gBN=f},{mode:1});var eqv;var VL=function(){return _.I.apply(this,arguments)||this};
_.q(VL,_.I);VL.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.y3.Object.defineProperties(VL.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.K("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.K("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.N([_.r(_.kP),_.Z("design:type",Object)],VL.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.r(_.pR),_.Z("design:type",Object)],VL.prototype,"ytdLockupBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],VL.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],VL.prototype,"ytRendererBehavior",void 0);_.N([_.n({selector:_.AD}),_.Z("design:type",Object)],VL.prototype,"isGridViewEnabled",void 0);
_.N([_.k("isGridViewEnabled"),_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],VL.prototype,"watchFeedBigThumbs",null);_.N([_.k("isGridViewEnabled"),_.n({reflectToAttribute:!0}),_.Z("design:type",String),_.Z("design:paramtypes",[])],VL.prototype,"thumbnailWidth",null);_.N([_.n(),_.Z("design:type",Object)],VL.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],VL);
_.p(VL,"ytd-compact-movie-renderer",function(){if(eqv!==void 0)return eqv;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return eqv=f},{mode:1});var b1o;var mKj;var zq8=_.nL("HTML_DIR")==="rtl",J4=function(){var f=_.I.apply(this,arguments)||this;f.engagementPanel=!1;f.maxLines=2;f.expandButtonOffset=0;f.showExpandButton=!1;f.isTruncated=!1;f.isExpanded=!1;f.currentSnippetType=2;f.alwaysShowExpandButton=!1;f.JSC$14332_lastWidth=NaN;f.observer=null;f.left=0;f.right=0;f.mid=0;f.longestSnippetLength=0;f.isFinalSnippet=!1;f.isFirstMutation=!1;f.isResetMutation=!1;f.OVERFLOW_THRESHOLD=5;return f};
_.q(J4,_.I);_.e=J4.prototype;_.e.onClick=function(f){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.lF(_.ct(f)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var S;if((S=window.getSelection())==null||!S.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.e.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.e.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.e.updateTextOnSnippetTypeChange=function(){_.K("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.e.setUpBinarySearch=function(f){f=f*this.maxLines/8;this.left=0;var S,B;this.right=Math.min(f*2,(B=(S=this.simpleText)==null?void 0:S.length)!=null?B:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.e.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.e.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.Lg(new _.dO("AttributedSnippet is empty when the description is not empty",this.text))};
_.e.mutationCallback=function(){if(this.observer!=null){var f=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var S=Math.floor(f*this.maxLines/8);this.setSnippetText(this.text,S);S!==0||this.attributedTextIsEmpty()||_.Lg(new _.dO("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;f=f*this.maxLines/8;this.left=0;var B;this.right=Math.min(f*2,(B=(S=this.simpleText)==null?void 0:S.length)!=null?B: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)}}};
_.e.mutationObserve=function(f){var S=this;this.observer||(this.observer=new MutationObserver(function(){S.mutationCallback()}));
this.observer.observe(f,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.e.attached=function(){var f=this;_.ui(this,function(){f.resize()})};
_.e.isExpandedChanged=function(){_.ew(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.e.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)};
_.e.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var f="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((zq8?"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",f);this.snippetContainer.style.setProperty("mask-image",
f)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(zq8?"right":"left",this.expandButtonOffset+"px")};
_.e.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.e.setSnippetText=function(f,S){f||(f={});if(_.Ws(f)){var B=aS(f,S);B.attachmentRuns||B.commandRuns||B.decorationRuns||B.styleRuns||B.alignment||B.lineBreakMode?this.attributedSnippetTextEl?(_.K("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=aS(f,S),this.attributedSnippetTextEl.headerRuns=xLM(S,this.headerRuns)):this.attributedSnippetText={data:aS(f,S),headerRuns:xLM(S,this.headerRuns)},this.currentSnippetType=0):_.Lg(new _.dO("Tried to set snippet text when HTML element was null",
f)):(this.plainSnippetText.textContent=tZ(f.content||"",S),this.currentSnippetType=2)}else{a:{B=MH9(f,S);if(B.runs){B=_.m(B.runs);for(var G=B.next();!G.done;G=B.next())if(G=G.value,G.bold||G.deemphasize||G.italics||G.strikethrough||G.textColor||G.navigationEndpoint||_.H(G,Dw)){B=!0;break a}}B=!1}B?this.formattedSnippetText?(this.formattedSnippetText.text=MH9(f,S),this.currentSnippetType=1):_.Lg(new _.dO("Tried to set snippet text when HTML element was null",f)):(this.plainSnippetText.textContent=
tZ(_.ac(f),S),this.currentSnippetType=2)}};
_.e.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.e.attributedTextIsEmpty=function(){var f=this.text;if(!_.Ws(f))return!0;var S;return((S=f.content)==null?void 0:S.length)===0?!0:!1};
_.e.resize=function(f){if(this.snippetText){if(f===void 0?0:f)this.JSC$14332_lastWidth=NaN;var S=this.hostElement.offsetWidth;if(S!==this.JSC$14332_lastWidth&&!this.isExpanded)if(this.JSC$14332_lastWidth=S,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;f=0;var B,G;S=Math.min(S*this.maxLines/8*2,(G=(B=this.simpleText)==null?void 0:B.length)!=null?G:0)-1;for(B=0;f<=S;)G=Math.floor(f+(S-f)/2),this.setSnippetText(this.text,G),this.isOverflowing()?S=G-1:(f=G+1,B=G);this.setSnippetText(this.text,B);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.e.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.e.onExpandClick=function(){var f=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.K("inline_expander_reset_focus_killswitch")||_.ui(this,function(){var S;((S=_.oy().resolve(_.fN(_.R5)))==null?0:S.isKeyBoardInUse())&&_.ty(f.hostElement)});
_.ew(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.e.onCollapseClick=function(){this.collapse();_.ew(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.e.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.e.computeExpandButtonOffset=function(){var f=this.expandSizer;return f?zq8?f.offsetParent?f.offsetParent.offsetWidth-f.offsetWidth-f.offsetLeft:0:f.offsetLeft:0};
_.y3.Object.defineProperties(J4.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.Ws(this.text)?this.text.content||"":_.ac(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 _.Ws(this.text)?!0:this.text&&_.K("web_replace_formatted_with_attributed_string")&&fGx(this.text)?(this.text=_.sn(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}}});
J4.prototype.onTextChanged=J4.prototype.onTextChanged;J4.prototype.updateMaskAndExpandButtonOffset=J4.prototype.updateMaskAndExpandButtonOffset;J4.prototype.updateSnippetContainerMaxHeight=J4.prototype.updateSnippetContainerMaxHeight;J4.prototype.isExpandedChanged=J4.prototype.isExpandedChanged;J4.prototype.updateTextOnSnippetTypeChange=J4.prototype.updateTextOnSnippetTypeChange;J4.prototype.updateIsFormattedExpanded=J4.prototype.updateIsFormattedExpanded;J4.prototype.updateIsAttributedExpanded=J4.prototype.updateIsAttributedExpanded;
J4.prototype.onClick=J4.prototype.onClick;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],J4.prototype,"componentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],J4.prototype,"text",void 0);_.N([_.n(),_.Z("design:type",Array)],J4.prototype,"headerRuns",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],J4.prototype,"engagementPanel",void 0);_.N([_.n(),_.Z("design:type",Object)],J4.prototype,"maxLines",void 0);
_.N([_.n(),_.Z("design:type",String)],J4.prototype,"expandLabel",void 0);_.N([_.n(),_.Z("design:type",String)],J4.prototype,"collapseLabel",void 0);_.N([_.n(),_.Z("design:type",Object)],J4.prototype,"expandCommand",void 0);_.N([_.n(),_.Z("design:type",Object)],J4.prototype,"expandButtonOffset",void 0);_.N([_.k("text"),_.Z("design:type",String),_.Z("design:paramtypes",[])],J4.prototype,"simpleText",null);
_.N([_.Vg("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],J4.prototype,"onClick",null);_.N([_.k("text","isExpanded"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],J4.prototype,"expandedText",null);_.N([_.k("headerRuns","isExpanded"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],J4.prototype,"expandedHeaderRuns",null);
_.N([_.k("text"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],J4.prototype,"hasAttributedStringText",null);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],J4.prototype,"showExpandButton",void 0);_.N([_.k("collapseLabel","isExpanded"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],J4.prototype,"showCollapseButton",null);_.N([_.n(),_.Z("design:type",Object)],J4.prototype,"isTruncated",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],J4.prototype,"isExpanded",void 0);_.N([_.n(),_.Z("design:type",Boolean)],J4.prototype,"isAttributedExpanded",void 0);_.N([_.JO("isExpanded","hasAttributedStringText"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],J4.prototype,"updateIsAttributedExpanded",null);_.N([_.n(),_.Z("design:type",Boolean)],J4.prototype,"isFormattedExpanded",void 0);
_.N([_.JO("isExpanded","hasAttributedStringText"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],J4.prototype,"updateIsFormattedExpanded",null);_.N([_.n(),_.Z("design:type",Number)],J4.prototype,"currentSnippetType",void 0);_.N([_.k("currentSnippetType"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],J4.prototype,"useAttributedSnippet",null);
_.N([_.k("currentSnippetType"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],J4.prototype,"useFormattedSnippet",null);_.N([_.k("currentSnippetType"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],J4.prototype,"usePlainSnippet",null);_.N([_.n(),_.Z("design:type",Object)],J4.prototype,"alwaysShowExpandButton",void 0);_.N([_.JO("currentSnippetType"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],J4.prototype,"updateTextOnSnippetTypeChange",null);
_.N([_.n(),_.Z("design:type",Object)],J4.prototype,"attributedSnippetText",void 0);_.N([_.vF("#snippet"),_.Z("design:type",HTMLElement)],J4.prototype,"snippetContainer",void 0);_.N([_.vF("#snippet-text"),_.Z("design:type",HTMLElement)],J4.prototype,"snippetText",void 0);_.N([_.vF("#plain-snippet-text"),_.Z("design:type",HTMLElement)],J4.prototype,"plainSnippetText",void 0);_.N([_.vF("#formatted-snippet-text"),_.Z("design:type",Object)],J4.prototype,"formattedSnippetText",void 0);
_.N([_.vF("#attributed-snippet-text"),_.Z("design:type",Object)],J4.prototype,"attributedSnippetTextEl",void 0);_.N([_.vF("#expand"),_.Z("design:type",HTMLElement)],J4.prototype,"expandButton",void 0);_.N([_.vF("#expand-sizer"),_.Z("design:type",HTMLElement)],J4.prototype,"expandSizer",void 0);_.N([_.HF("isExpanded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],J4.prototype,"isExpandedChanged",null);
_.N([_.JO("isExpanded","maxLines"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],J4.prototype,"updateSnippetContainerMaxHeight",null);_.N([_.JO("isTruncated","showExpandButton","expandButtonOffset"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],J4.prototype,"updateMaskAndExpandButtonOffset",null);
_.N([_.HF("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],J4.prototype,"onTextChanged",null);_.N([_.C({is:"ytd-text-inline-expander",disableElementRegistration:!0})],J4);
_.p(J4,"ytd-text-inline-expander",function(){if(mKj===void 0){var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);mKj=f}f=mKj;return f},{mode:2});var PC=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return f};
_.q(PC,_.I);PC.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
PC.prototype.handleUpdateDescriptionAction=function(f){if(f=_.H(f,_.sRm))if(f.attributedDescription)this.set("data.attributedDescriptionBodyText",f.attributedDescription);else if(f.description){var S;((S=this.data)==null?0:S.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.sn(f.description)):this.set("data.descriptionBodyText",f.description)}};
_.y3.Object.defineProperties(PC.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var f,S;return!((f=this.data)==null||!f.attributedDescriptionBodyText)||!((S=this.data)==null||!S.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)==null?0:f.collapsedLineCount){var S;return(S=this.data)==null?void 0:S.collapsedLineCount}f=_.Gt("web_watch_description_collapsed_default_lines",12);if(_.K("ww_desc_line_page_size_ks"))return f;S=Math.round(_.$G().height*_.Gt("web_watch_description_screen_height_percentage",.5)/20);return Math.max(S,f)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var f,S,B;return(B=(f=this.data)==null?void 0:f.descriptionBodyText)!=null?B:(S=this.data)==null?void 0:S.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.sourceAttributions}}});
PC.prototype.panelContentVisibleChanged=PC.prototype.panelContentVisibleChanged;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],PC.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],PC.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],PC.prototype,"componentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],PC.prototype,"data",void 0);
_.N([_.n(),_.Z("design:type",Boolean)],PC.prototype,"panelContentVisible",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],PC.prototype,"engagementPanel",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],PC.prototype,"shortsPanel",void 0);_.N([_.vF("#inline-expander"),_.Z("design:type",Object)],PC.prototype,"inlineExpander",void 0);
_.N([_.JO("panelContentVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],PC.prototype,"panelContentVisibleChanged",null);_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],PC.prototype,"hasDescriptionText",null);_.N([_.k("data"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],PC.prototype,"collapsedLines",null);
_.N([_.k("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],PC.prototype,"descriptionText",null);_.N([_.k("data","data.headerRuns"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],PC.prototype,"headerRuns",null);_.N([_.k("data","data.sourceAttributions"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],PC.prototype,"sourceAttributions",null);
_.N([_.C({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],PC);
_.p(PC,"ytd-expandable-video-description-body-renderer",function(){if(b1o!==void 0)return b1o;var f=document.createElement("template");_.Y(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[!hasDescriptionText]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return b1o=f},{mode:_.X_("kevlar_poly_si_batch_j028")?1:2});var RqX;var Xi1=_.oS(function(f){var S=f.data;return _.T("factoid-renderer",{class:"ytwFactoidRendererHost"},_.T("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return S().accessibilityText}},_.T("span",{class:"ytwFactoidRendererValue"},_.T(_.oY,{text:function(){return S().value}})),_.T("span",{class:"ytwFactoidRendererLabel"},_.T(_.oY,{text:function(){return S().label}}))))},"Qb");_.eq(Xi1,"factoid-renderer",{props:{data:_.W4}});_.eq(_.oS(function(f){var S=f.data;return _.T("upload-time-factoid-renderer",null,_.T(_.xK,{data:function(){return S().factoid}},{factoidRenderer:Xi1}))},"Rb"),"upload-time-factoid-renderer",{props:{data:_.gm}});_.eq(_.oS(function(f){var S=f.data;return _.T("view-count-factoid-renderer",null,_.T(_.xK,{data:function(){return S().factoid}},{factoidRenderer:Xi1}))},"Sb"),"view-count-factoid-renderer",{props:{data:_.gm}});var vC=function(){var f=_.I.apply(this,arguments)||this;f.shortsPanel=!1;f.engagementPanel=!1;f.watchWhileSdp=_.K("shorts_desktop_watch_while_sdp");return f};
_.q(vC,_.I);vC.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"}}}}};
_.y3.Object.defineProperties(vC.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var f;return(f=this.data)==null?void 0:f.channel}}});
_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],vC.prototype,"componentBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],vC.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],vC.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],vC.prototype,"shortsPanel",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],vC.prototype,"engagementPanel",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],vC.prototype,"watchWhileSdp",void 0);_.N([_.k("shortsPanel","engagementPanel","data.channel"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],vC.prototype,"showChannelInfo",null);_.N([_.C({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],vC);
_.p(vC,"ytd-video-description-header-renderer",function(){if(RqX!==void 0)return RqX;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return RqX=f},{mode:1});var wiX;var Kw=function(){return _.I.apply(this,arguments)||this};
_.q(Kw,_.I);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Kw.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Kw.prototype,"ytRendererBehavior",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Kw.prototype,"noPadding",void 0);_.N([_.n(),_.Z("design:type",Object)],Kw.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],Kw);
_.p(Kw,"ytd-list-item-view-model",function(){if(wiX!==void 0)return wiX;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return wiX=f},{mode:1});var hqL;var Tk8;var F18;var VU6;var dt=function(){var f=_.I.apply(this,arguments)||this;f.adaptiveFullWidth=!1;f.modernButtons=_.K("web_modern_buttons");f.buttonOverrides={style:"call-to-action",type:"filled"};f.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return f};
_.q(dt,_.I);dt.prototype.handleSetTimestamp_=function(f){this.data&&this.data.shortUrl&&(_.m9(this.hostElement).querySelector("#share-url").value=f.isSet?_.MF(this.data.shortUrl,"t",f.timestamp):this.data.shortUrl)};
dt.prototype.handleSignalActionCopyShareUrl_=function(f,S){(_.K("killswitch_copy_link_target_check")||_.m9(this.hostElement).querySelector("#copy-button")===S)&&this.copyUrlToClipboard()};
dt.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.m9(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
dt.prototype.computeStyle_=function(f){return f?f.toLowerCase().replace(/_/g,"-"):""};
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],dt.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],dt.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],dt.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.Z("design:type",String)],dt.prototype,"rendererStyle",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],dt.prototype,"adaptiveFullWidth",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],dt.prototype,"modernButtons",void 0);_.N([_.n(),_.Z("design:type",Object)],dt.prototype,"buttonOverrides",void 0);_.N([_.nP({is:"yt-copy-link-renderer",disableElementRegistration:!0})],dt);
_.p(dt,"yt-copy-link-renderer",function(){if(VU6===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;F18===void 0&&(F18=document.createElement("template"));var G=F18;B.call(S,G.content.cloneNode(!0),f.content.firstChild);VU6=f}f=VU6;return f},{mode:2});_.Dd("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var iR=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return f};
_.q(iR,_.I);_.e=iR.prototype;_.e.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.e.attached=function(){this.keyboardFocused=!1};
_.e.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var f=_.oy().resolve(_.fN(_.R5));f&&(this.keyboardFocused=f.isKeyBoardInUse())}};
_.e.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.e.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}};
_.e.onChange_=function(){if(this.data){var f=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;f&&this.ytComponentBehavior.resolveCommand(f);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.e.handleUpdateToggleAction_=function(f){(f=_.H(f,p_N))&&this.data&&f.targetId==this.data.targetId&&this.set("data.toggled",f.toggled)};
_.e.toBoolean_=function(f){return!!f};
_.e.reset=function(){};
_.e.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AW("data-changed",this.data))};
_.e.updateDataToggledFromBinding=function(f){this.set("data.toggled",f.detail.value)};
iR.prototype.dataChangedForBinding=iR.prototype.dataChangedForBinding;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],iR.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],iR.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],iR.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],iR.prototype,"ytRendererBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],iR.prototype,"data",void 0);_.N([_.n({computed:"computeDescription_(data.*)"}),_.Z("design:type",Object)],iR.prototype,"description_",void 0);_.N([_.n({value:function(){return!!_.oy().resolve(_.fN(_.R5))&&_.K("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.Z("design:type",Boolean)],iR.prototype,"useKeyboardFocused",void 0);_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],iR.prototype,"keyboardFocused",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],iR.prototype,"dataChangedForBinding",null);_.N([_.nP({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],iR);
_.p(iR,"yt-toggle-form-field-renderer",function(){if(Tk8===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;hqL===void 0&&(hqL=document.createElement("template"));var G=hqL;B.call(S,G.content.cloneNode(!0),f.content.firstChild);Tk8=f}f=Tk8;return f},{mode:2});var Jco;var PqL;var HC=function(){var f=_.I.apply(this,arguments)||this;f.isDarkTheme=!1;f.isSearch=!1;f.darkerDarkTheme=_.K("web_darker_dark_theme");f.noTopMargin=_.K("kevlar_watch_no_top_margin");f.maskFade=_.K("web_watch_chips_mask_fade");f.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 f};
_.q(HC,_.I);_.e=HC.prototype;_.e.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}}}}}};
_.e.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.e.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.e.dataChanged=function(){var f=this.getSelectedIndex();if(f>0)this.selected=f;else{this.selected=0;var S,B;(S=this.ytScrollableChipCloudBehavior)==null||(B=S.reset)==null||B.call(S)}};
_.e.getSelectedIndex=function(){var f;if((f=this.data)==null||!f.chips)return-1;f=-1;for(var S,B=0;B<((S=this.data)==null?void 0:S.chips.length);B++){var G=void 0,g=void 0;if((G=this.data)==null?0:(g=G.chips[B].chipCloudChipRenderer)==null?0:g.isSelected){f=B;break}}return f};
_.e.onResize=function(){var f=this.ytScrollableChipCloudBehavior;_.ui(f,f.setContainerWidthDiff);bg(this.ytScrollableChipCloudBehavior)};
_.e.onDarkModeToggledAction=function(f){this.isDarkTheme=f};
_.e.handleRelatedChipCommand=function(f,S){f=this.JSC$14359_chipsSelector.indexOf(S);f!==-1&&this.JSC$14359_chipsSelector.selectIndex(f)};
_.e.handleChipCloudChipSelectAction=function(f){f=this.JSC$14359_chipsSelector.indexOf(f);f>-1&&this.JSC$14359_chipsSelector.selectIndex(f)};
_.e.handleChipCloudChipDeselectAction=function(){var f=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$14359_chipsSelector&&((f==null?0:f.continuationCommand)?_.RD(this.hostElement,[f]):(f==null?0:f.searchEndpoint)?this.ytComponentBehavior.resolveCommand(f):f&&_.Xh(this.hostElement,[f],this.hostElement),this.JSC$14359_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.e.updateSelectedFromBinding=function(f){this.selected=f.detail.value};
HC.prototype.onResize=HC.prototype.onResize;HC.prototype.dataChanged=HC.prototype.dataChanged;HC.prototype.isSearchChanged=HC.prototype.isSearchChanged;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],HC.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],HC.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],HC.prototype,"actionHandlerBehavior",void 0);
_.N([_.r(_.Ld),_.Z("design:type",Object)],HC.prototype,"ironResizableBehavior",void 0);_.N([_.r(),_.Z("design:type",e6)],HC.prototype,"ytScrollableChipCloudBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],HC.prototype,"ytComponentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],HC.prototype,"data",void 0);_.N([_.n({value:0}),_.Z("design:type",Number)],HC.prototype,"selected",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],HC.prototype,"isDarkTheme",void 0);_.N([_.n({value:160}),_.Z("design:type",Number)],HC.prototype,"scrollDistance",void 0);_.N([_.n(),_.Z("design:type",Object)],HC.prototype,"isSearch",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],HC.prototype,"darkerDarkTheme",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],HC.prototype,"noTopMargin",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],HC.prototype,"maskFade",void 0);_.N([_.vF("#chips"),_.Z("design:type",Object)],HC.prototype,"JSC$14359_chipsSelector",void 0);_.N([_.JO("isSearch"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],HC.prototype,"isSearchChanged",null);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],HC.prototype,"dataChanged",null);
_.N([_.Vg("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],HC.prototype,"onResize",null);_.N([_.nP({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],HC);
_.p(HC,"yt-chip-cloud-renderer",function(){if(PqL===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;Jco===void 0&&(Jco=document.createElement("template"));var G=Jco;B.call(S,G.content.cloneNode(!0),f.content.firstChild);PqL=f}f=PqL;return f},{mode:2});var vBX,K1m=function(){return vBX!==void 0?vBX:vBX=document.createElement("template")};
document.head.appendChild(K1m().content);var dKo;var i11=document.head,H1g=i11.appendChild,q9v;if(dKo===void 0){var $KX=document.createElement("template");_.Y($KX,"");$KX.content.insertBefore(K1m().content.cloneNode(!0),$KX.content.firstChild);dKo=$KX}q9v=dKo;H1g.call(i11,q9v.content);var QG7=_.oS(function(f){var S=f.data;return _.T("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.T("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.T("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.T(_.v,{cond:function(){return _.fy(S().image)},
then:function(B){return _.T("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.T(_.f9,{data:B,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.T("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.T(_.oY,{text:function(){return S().title}})),_.T("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.T(_.oY,{text:function(){return S().subtitle}})))),_.T(_.v,{cond:function(){var B;
return(B=S())==null?void 0:B.hasBottomDivider},
then:function(){return _.T("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"Tb");var Y96=_.oS(function(f){var S=f.data;return _.T("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.T("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.T(_.xK,{data:function(){var B;return(B=S().offerPlanDetailsItem)!=null?B:[]}},{offerPlanDetailsItemViewModel:function(B){return _.T("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.T(QG7,{data:B.data}))}})),_.T("div",null,_.T(_.v,{cond:function(){return S().hasBottomDivider},
then:function(){return _.T("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.T("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.T("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.T("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.T("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"Ub");var rcX=_.oS(function(f){var S=f.data;f=_.m(_.hj(!1,void 0,"SpEGQd"));var B=f.next().value,G=f.next().value,g=_.iF(function(){G(!B());return!1}),b=function(){var z;
return(z=S().offerPlanDetailsContainer)!=null?z:[]};
return _.T("lp-complex-offer-card-details-view-model",null,_.T("div",null,_.T(_.v,{cond:function(){return B()},
then:function(){return _.T("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.T("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":g,"aria-expanded":B},_.T(_.oY,{text:function(){return S().expandedTitle}})),_.T("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.T(_.xK,{data:b},{offerPlanDetailsContainerViewModel:function(z){return _.T("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.T(Y96,{data:z.data}))}})),_.T("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.T(_.oY,{text:function(){return S().legalText}})))},
else:function(){return _.T("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":g,"aria-expanded":B},_.T(_.oY,{text:function(){return S().collapsedTitle}}),_.T("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.T(_.Y8,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"Vb");var jG7=_.oS(function(f){var S=f.data;return _.T("lp-complex-offer-card-option-view-model",null,_.T("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.T(_.v,{cond:function(){return S().topDividerText},
then:function(){return _.T("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.T("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.T("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.T("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.T(_.oY,{text:function(){return S().topDividerText}}))))}}),_.T(_.v,{cond:function(){return S().planPricingPrimary},
then:function(){return _.T("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.T(_.oY,{text:function(){return S().planPricingPrimary}}))}}),_.T(_.v,{cond:function(){return S().planPricingSecondary},
then:function(){return _.T("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.T(_.oY,{text:function(){return S().planPricingSecondary}}))}}),_.T(_.v,{cond:function(){return S().primaryButton},
then:function(){return _.T("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.T(_.xK,{data:function(){return S().primaryButton}},{buttonViewModel:function(B){return _.T(_.I8,{data:B.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"Wb");var O11=_.oS(function(f){var S=f.data;var B=function(){var b;return((b=S())==null?void 0:b.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
f={};var G={},g={};return _.T("ytm-lp-complex-offer-card-view-model",null,_.T("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.T("div",{class:_.Pw((f.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=B,f),"ytmLpComplexOfferCardViewModelCardContainer")},_.T(_.v,{cond:function(){var b;return(b=S())==null?void 0:b.bannerText},
then:function(){return _.T("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.T("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.T(_.oY,{text:function(){return S().bannerText}})))}}),_.T(_.v,{cond:function(){return _.fy(S().logo)},
then:function(b){var z={};return _.T("div",{class:_.Pw((z.ytmLpComplexOfferCardViewModelLogoAlignLeft=B,z),"ytmLpComplexOfferCardViewModelLogo")},_.T(_.f9,{data:b,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.T("div",{class:_.Pw((G.ytmLpComplexOfferCardViewModelTitleAlignLeft=B,G),"ytmLpComplexOfferCardViewModelTitle")},_.T(_.oY,{text:function(){return S().title}})),_.T(_.v,{cond:function(){var b;
return(b=S())==null?void 0:b.subtitle},
then:function(){var b={};return _.T("div",{class:_.Pw((b.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=B,b),"ytmLpComplexOfferCardViewModelSubtitle")},_.T(_.oY,{text:function(){return S().subtitle}}))}}),_.T(_.v,{cond:function(){return S().planPricingPrimary},
then:function(){return _.T("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.T(_.oY,{text:function(){return S().planPricingPrimary}}))}}),_.T(_.v,{cond:function(){return S().planPricingSecondary},
then:function(){return _.T("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.T(_.oY,{text:function(){return S().planPricingSecondary}}))}}),_.T(_.v,{cond:function(){return S().purchaseButton},
then:function(){return _.T("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.T(_.xK,{data:function(){return S().purchaseButton}},{buttonViewModel:function(b){return _.T(_.I8,{data:b.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.T(_.v,{cond:function(){var b;
return(b=S())==null?void 0:b.offerOptions},
then:function(){return _.T("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.T(_.xK,{data:function(){return S().offerOptions}},{lpComplexOfferCardOptionViewModel:jG7}))}}),_.T("div",{class:_.Pw((g.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=B,g),"ytmLpComplexOfferCardViewModelLegalText")},_.T(_.oY,{text:function(){return S().legalText}})),_.T(_.v,{cond:function(){var b;
return(b=S())==null?void 0:b.offerCardDetails},
then:function(){return _.T("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.T(_.xK,{data:function(){return S().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:rcX}))}}))))},"Xb");var xKv=_.oS(function(f){var S=f.data;var B=function(){var z;return((z=S())==null?void 0:z.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
f={};var G={},g={},b={};return _.T("ytm-lp-complex-offer-card-section-view-model",null,_.T("div",{class:_.Pw("ytmLpComplexOfferCardSectionViewModelHost")},_.T("div",{class:_.Pw((f.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=B,f),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.T("div",{class:_.Pw((G.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=B,G),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.T("h2",{class:_.Pw((g.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
B,g),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.T(_.oY,{text:function(){return S().title}}))),_.T(_.v,{cond:function(){var z;
return(z=S())==null?void 0:z.subtitle},
then:function(){var z={},X={};return _.T("div",{class:_.Pw((z.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=B,z),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.T("div",{class:_.Pw((X.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=B,X),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.T(_.oY,{text:function(){return S().subtitle}})))}}),_.T("div",{class:_.Pw((b.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=B,b),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.T(_.xK,{data:function(){var z;
return(z=S().offerPlans)!=null?z:[]}},{lpComplexOfferCardViewModel:function(z){return _.T("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.T(O11,{data:z.data}))}})))))},"Yb");var EBg=_.oS(function(f){return _.T("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.T("div",{class:"ytLpCouponBannerViewModelIcon"},_.T(_.Y8,{icon:function(){return"price_tag"}})),_.T("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.T("div",{class:"ytLpCouponBannerViewModelContent"},_.T("div",{class:"ytLpCouponBannerViewModelHeading"},_.T(_.oY,{text:function(){var S;
return(S=f.data())==null?void 0:S.title}})),_.T("div",{class:"ytLpCouponBannerViewModelBody"},_.T(_.oY,{text:function(){var S;
return(S=f.data())==null?void 0:S.subtitle}})))))},"Zb");
EBg.idomCompat=!0;_.qT=lx$.getInstance();var L1o=_.oS(function(f){return _.T("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":f.shouldAriaHideContent},_.T("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:f.questionId},_.T(_.oY,{text:f.question})))},"$b"),k_1=_.oS(function(f){var S=f.data;
var B=f.themeOverride;f=_.m(_.hj(!1,void 0,"ljTVPd"));var G=f.next().value,g=f.next().value;f=_.iF(function(){g(!G());return!1});
var b=function(){return G()?"EXPAND_LESS":"EXPAND_MORE"},z=("faq-container"+_.nu(_.qT)).toString(),X="faq-question-and-answers-section-question"+_.nu(_.qT),w={},F={};
return _.T("faq-entry-view-model-c3",null,_.T("div",{class:_.Pw("yt-lp-faq-entry-view-model",(w["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return B==null?void 0:B().useDarkTheme},w))},_.T("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":f,role:"button","aria-expanded":G,"aria-labelledby":X.toString(),"tab-index":"0"},_.T(L1o,{question:function(){return S().question},
questionId:X,shouldAriaHideContent:!0}),_.T(_.v,{cond:function(){return G()!==void 0},
then:function(){return _.T("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.T(_.Y8,{icon:b,ariaHidden:!0}),_.T("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.T("div",{class:_.Pw("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(F["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!G()},F))},_.T("div",{id:z},_.T(_.dg,{each:function(){return S().answers||[]}},function(V){return _.T("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.T(_.oY,{text:V}))})))))},"ac");
k_1.idomCompat=!0;var nBg=_.oS(function(f){var S=f.data;var B=f.themeOverride;f={};return _.T("lp-faq-section-view-model-c3",null,_.T("div",{class:_.Pw("yt-lp-faq-section-view-model",(f["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return S().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},f["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(B==null||!B().useDarkTheme)},f))},_.T("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.T(_.v,{cond:function(){return S().header},
then:function(G){return _.T("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.T(_.oY,{text:G}))}}),_.T("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.T(_.xK,{data:function(){return S().faqs}},{faqEntryViewModel:function(G){return _.T(k_1,{data:G.data,
themeOverride:B})}})),_.T("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.T(_.dg,{each:function(){return S().footers||[]}},function(G){return _.T(_.oY,{text:G})})),_.T(_.v,{cond:function(){return S().legal},
then:function(G){return _.T("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.T(_.oY,{text:G}))}}))))},"bc");
nBg.idomCompat=!0;var sG1=_.oS(function(f){var S=f.data;var B=f.themeOverride;_.j9(function(){var z=S().gtmId;z&&_.Oj(z,_.nL("GL",""))});
var G={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var z,X,w;return(w=(z=S().logo)==null?void 0:(X=z.accessibilityData)==null?void 0:X.label)!=null?w:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},g=_.oy().resolve(_.fN(_.yU)),b=function(){return g&&g()||(B==null?void 0:B().useDarkTheme)};
return _.T("lp-header-section-view-model",null,_.T("div",{class:function(){var z=S().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",X=S().marginType==="LP_SECTION_MARGIN_TYPE_TOP",w=B==null?void 0:B().useDarkTheme,F=["lp-header-section-view-model"];z&&F.push("lp-header-section-view-model--ptc-layout-type");X&&F.push("lp-header-section-view-model__lp-header-section-margin");w&&F.push("lp-header-section-view-model--premium-force-dark-mode");return F.join(" ")}},_.T(_.v,{cond:function(){return S().logo},
then:function(){return _.T("div",null,_.T(_.v,{cond:b,then:function(){return _.T(_.v,{cond:function(){var z;return(z=S().logo)==null?void 0:z.imageDark},
then:function(z){return _.T(_.f9,Object.assign({},{data:z},G))}})},
else:function(){return _.T(_.v,{cond:function(){var z;return(z=S().logo)==null?void 0:z.imageLight},
then:function(z){return _.T(_.f9,Object.assign({},{data:z},G))}})}}))}}),_.T(_.v,{cond:function(){return S().title},
then:function(z){return _.T("div",{class:"lp-header-section-view-model__lp-header-title"},_.T(_.oY,{text:z}))}}),_.T("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.T(_.v,{cond:function(){return S().subtitles},
then:function(z){return _.T(_.dg,{each:z},function(X){return _.T("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.T(_.oY,{text:X}))})}})),_.T(_.v,{cond:function(){return S().additionalInfo},
then:function(z){return _.T("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.T(_.oY,{text:z}))}}),_.T("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.T(_.v,{cond:function(){return S().primaryButton},
then:function(z){return _.T("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.T(_.xK,{data:z},{buttonViewModel:_.I8}))}}),_.T(_.v,{cond:function(){return S().secondaryButton},
then:function(z){return _.T("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.T(_.xK,{data:z},{buttonViewModel:_.I8}))}})),_.T(_.v,{cond:function(){return S().otherOffersInfo},
then:function(z){return _.T("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.T(_.oY,{text:z}))}}),_.T("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.T(_.v,{cond:function(){return S().billingInfo},
then:function(z){return _.T(_.dg,{each:z},function(X){return _.T("div",null,_.T(_.oY,{text:X}))})}}))))},"cc");
sG1.idomCompat=!0;var DK$=_.oS(function(f){var S=f.data;var B=_.cF(f.themeOverride,{useDarkTheme:!1});f={};f=_.Pw("ytm-lp-headline-section-view-model",(f["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return B().useDarkTheme},f));
return _.T("lp-headline-section-view-model",null,_.T("div",{class:f},_.T("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.T(_.oY,{text:function(){return S().title}})),_.T(_.v,{cond:function(){return S().subtitle},
then:function(G){return _.T("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.T(_.oY,{text:G}))}})))},"dc");var Iq$=_.oS(function(f){var S=f.data;var B=f.themeOverride;var G=_.oy().resolve(_.fN(_.yU)),g=function(){return G&&G()||(B==null?void 0:B().useDarkTheme)},b=function(){var F,V;
var J=g()?(F=S().textBackgroundImage)==null?void 0:F.imageDark:(V=S().textBackgroundImage)==null?void 0:V.imageLight;return fiK((J==null?void 0:J.sources)||[])},z=function(){var F,V;
return g()?(F=S().featureImage)==null?void 0:F.imageDark:(V=S().featureImage)==null?void 0:V.imageLight},X=function(){return S().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},w=function(){var F,V;
return g()?(F=S().logo)==null?void 0:F.imageDark:(V=S().logo)==null?void 0:V.imageLight};
return _.T("ytm-lp-large-feature-section-view-model",null,_.T("div",{class:function(){var F=S().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",V=S().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",J=(S().index||0)%2===1,P=B==null?void 0:B().useDarkTheme,d=["yt-lp-large-feature-section-view-model"];F?d.push("yt-lp-large-feature-section-view-model--music-feature-type"):V?d.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):J||d.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
P&&d.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return d.join(" ")}},_.T("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.T(_.v,{cond:z,
then:function(){return _.T(_.f9,{data:function(){return z()},
alt:function(){var F,V,J;return(J=(F=S().featureImage)==null?void 0:(V=F.accessibilityData)==null?void 0:V.label)!=null?J:""},
contentMode:X})}})),_.T("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var F;return((F=b())==null?0:F.url)?"background-image: url("+_.io(b().url)+");":""}},_.T("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.T(_.v,{cond:w,
then:function(){return _.T(_.f9,{data:function(){return w()},
alt:function(){var F,V,J;return(J=(F=S().logo)==null?void 0:(V=F.accessibilityData)==null?void 0:V.label)!=null?J:""},
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"})}}),_.T(_.v,{cond:function(){return S().eyebrowText},
then:function(){return _.T("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.T(_.oY,{text:function(){return S().eyebrowText}}))}}),_.T(_.v,{cond:function(){return S().title},
then:function(){return _.T("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.T(_.oY,{text:function(){return S().title}}))}}),_.T(_.v,{cond:function(){return S().subtitles},
then:function(){return _.T("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.T(_.dg,{each:function(){return S().subtitles||[]}},function(F){return _.T(_.oY,{text:F})}))}})))))},"ec");
Iq$.idomCompat=!0;var UKm=_.oS(function(f){return _.T("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.T("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.T(_.Y8,{icon:function(){var S;return(S=f.data())==null?void 0:S.iconType},
className:function(){var S;switch((S=f.data())==null?void 0:S.style){case "LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconGreen";case "LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconSmall";default:return"ytLpFeatureListItemViewModelFeatureListIconDefault"}},
active:function(){var S;return((S=f.data())==null?void 0:S.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.T("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.T(_.oY,{text:function(){var S;
return(S=f.data())==null?void 0:S.text},
className:function(){var S;return((S=f.data())==null?void 0:S.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"fc");var CqL=_.oS(function(f){f=_.lu(f,{config:void 0,themeOverride:void 0});var S=f.data,B=f.config,G=f.themeOverride;f={};f=_.Pw("ytm-lp-offer-card-option-view-model",(f["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var X;return(X=G())==null?void 0:X.useDarkTheme},f));
var g=_.iF(function(){var X,w;(X=B())==null||(w=X.handleRadioButtonClick)==null||w.call(X,S());return!1}),b=function(){var X;
return(X=B())==null?void 0:X.shouldDisplayRadioButton},z=function(){var X;
return(X=S().featureListItems)!=null?X:[]};
return _.T("ytm-lp-offer-card-option-view-model",null,_.T("div",{class:f,"on:click":_.iF(function(){if(b()){var X,w;(X=B())==null||(w=X.handleRadioButtonClick)==null||w.call(X,S())}return!1})},_.T(_.v,{cond:b,
then:function(){return _.T("div",null,_.T("input",{type:"radio","on:click":g,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var X;return!((X=B())==null||!X.isOptionSelected)}}))}}),_.T("div",null,_.T("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.T(_.oY,{text:function(){return S().eyebrowText}})),_.T("div",{class:"ytm-lp-offer-card-option-view-model__title"},_.T(_.oY,{text:function(){return S().title}})),_.T("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},
_.T(_.oY,{text:function(){return S().subtitle}})),_.T(_.v,{cond:function(){return z().length>0},
then:function(){return _.T("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.T(_.xK,{data:z},{lpFeatureListItemViewModel:UKm}))}}),_.T("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.T(_.oY,{text:function(){return S().description}})))))},"gc");
CqL.idomCompat=!0;var pi7=_.oS(function(f){var S=f.data;var B=f.themeOverride;f=_.m(_.$8(function(){var b,z=(b=S().offerOptions)==null?void 0:b[0];return _.H(z,c_7)||{}}));
var G=f.next().value,g=f.next().value;f={};return _.T("ytm-lp-offer-card-view-model",null,_.T("div",{class:_.Pw("ytm-lp-offer-card-view-model",(f["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(B==null||!B().useDarkTheme)},f))},_.T("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.T(_.v,{cond:function(){return S().titleIconType},
then:function(){return _.T("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.T(_.Y8,{icon:function(){var b;return((b=S().titleIconType)==null?void 0:b.toString())||""}}))}}),_.T("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.T(_.oY,{text:function(){return S().title}})),_.T(_.xK,{data:function(){return S().titleBadge}},{badgeViewModel:function(b){return _.T("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.T(_.fp,{data:b.data}))}})),_.T("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.T(_.xK,{data:function(){return S().offerOptions}},{lpOfferCardOptionViewModel:function(b){var z=b.data;
return _.T(_.gg,null,_.T("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.T(CqL,{data:z,config:function(){var X;return{shouldDisplayRadioButton:(S().offerOptions||[]).length>1,isOptionSelected:z().id===((X=G())==null?void 0:X.id),handleRadioButtonClick:function(w){return void g(w)}}},
themeOverride:B}))}})),_.T("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.T(_.xK,{data:function(){var b;
return(b=G())==null?void 0:b.purchaseButtonOverride}},{buttonViewModel:_.I8}))))},"hc");
pi7.idomCompat=!0;var Ac7=_.oS(function(f){var S=f.data;var B=f.themeOverride;f={};f=_.Pw("ytm-lp-offer-card-section-view-model",(f["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var G;return B==null?void 0:(G=B())==null?void 0:G.useDarkTheme},f));
return _.T("ytm-lp-offer-card-section-view-model",null,_.T("div",{class:f},_.T(_.v,{cond:function(){return S().title!==void 0},
then:function(){return _.T("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.T("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.T(_.oY,{text:function(){return S().title}})),_.T(_.v,{cond:function(){return S().subtitle},
then:function(){return _.T("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.T(_.oY,{text:function(){return S().subtitle}}))}}))}}),_.T("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.T(_.xK,{data:function(){return S().offerCards}},{lpOfferCardViewModel:function(G){return _.T("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.T(pi7,{data:G.data,
themeOverride:B}))}})),_.T(_.v,{cond:function(){return S().footer},
then:function(){return _.T("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.T(_.oY,{text:function(){return S().footer}}))}})))},"ic");var Nk6=_.oS(function(f){var S=f.data;return _.T("lp-offer-table-cell-content-view-model",null,_.T("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.T(_.qp,null,_.T(_.i0,{when:function(){return S().title}},function(){return _.T(_.oY,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return S().title}})}),_.T(_.i0,{when:function(){return S().subTitle}},function(){return _.T(_.oY,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return S().subTitle}})}),_.T(_.i0,{when:function(){return S().featureDescription}},function(){return _.T(_.oY,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return S().featureDescription}})}),_.T(_.i0,{when:function(){return S().description}},function(){return _.T(_.oY,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return S().description}})}),_.T(_.i0,{when:function(){return S().iconType}},function(){return _.T("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.T(_.Y8,{icon:function(){return S().iconType.toString()}}))}),_.T(_.i0,{when:function(){return S().purchaseButton}},function(){return _.T(_.xK,{data:function(){return S().purchaseButton}},{buttonViewModel:function(B){return _.T("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.T(_.I8,{data:B.data}))}})}),_.T(_.i0,{when:function(){return S().note}},function(){return _.T(_.oY,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return S().note}})}),_.T(_.i0,{when:function(){return S().featureDetail}},function(){return _.T(_.oY,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return S().featureDetail}})}),_.T(_.i0,{when:function(){return S().badge}},function(){return _.T(_.xK,{data:function(){return S().badge}},{badgeViewModel:_.fp})}))))},"jc");
Nk6.idomCompat=!0;var MUN=_.oS(function(f){var S=f.data;return _.T("lp-offer-table-cell-view-model",null,_.T("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(S().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;"}}},_.T(_.xK,{data:function(){return S().contents}},{lpOfferTableCellContentViewModel:Nk6})))},
"kc");
MUN.idomCompat=!0;var Z1$=_.oS(function(f){var S=f.data;var B=f.lpTableIsFirstRow;var G=f.lpTableIsLastRow;var g=function(){return(B==null?0:B())?"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"},b=function(){return(B==null?0:B())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(G==null?0:G())?"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 _.T("ytm-lp-offer-table-row-view-model",null,_.T("div",{class:"yt-lp-offer-table-row-view-model"},_.T(_.xK,{data:function(){return S().rowHeaderCell}},{lpOfferTableCellViewModel:function(z){return _.T("div",{class:g},_.T(MUN,{data:z.data}))}}),_.T(_.xK,{data:function(){return S().contentCells}},{lpOfferTableCellViewModel:function(z){return _.T("div",{class:b},_.T(MUN,{data:z.data}))}})))},"lc");
Z1$.idomCompat=!0;var tUL=_.oS(function(f){var S=f.data;var B=f.themeOverride;var G=_.oy().resolve(_.fN(_.yU)),g=function(){return _.H(S().logo,hfg)||{}};
f={};return _.T("ytm-lp-offer-table-section-view-model",null,_.T("div",{class:"yt-lp-offer-table-view-model"},_.T(_.v,{cond:function(){var b,z;return G&&G()||(B==null?0:B().useDarkTheme)?(b=g())==null?void 0:b.imageDark:(z=g())==null?void 0:z.imageLight},
then:function(b){return _.T(_.f9,{data:b,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var z,X,w;return(w=(z=g())==null?void 0:(X=z.accessibilityData)==null?void 0:X.label)!=null?w:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.T("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.T(_.oY,{text:function(){return S().title}})),_.T("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.T(_.oY,{text:function(){return S().subtitle}})),_.T(_.v,{cond:function(){return S().disclaimers},
then:function(b){return _.T("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.T(_.dg,{each:b},function(z){return _.T("div",null,_.T(_.oY,{text:z}))}))}}),_.T("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.T(_.xK,{data:function(){return S().rows}},{lpOfferTableRowViewModel:function(b,z){return _.T(Z1$,{data:b.data,
lpTableIsFirstRow:function(){return z()===0},
lpTableIsLastRow:function(){return z()===S().rows.length-1}})}})),_.T("div",{class:_.Pw((f["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return S().hasFooterBackground},f))},_.T(_.v,{cond:function(){return S().footer},
then:function(){return _.T("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.T(_.oY,{text:function(){return S().footer}}))}}),_.T(_.v,{cond:function(){return S().footerTitle},
then:function(){return _.T("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.T(_.oY,{text:function(){return S().footerTitle}}))}}),_.T(_.v,{cond:function(){return S().footerDescription},
then:function(){return _.T("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.T(_.oY,{text:function(){return S().footerDescription}}))}}))))},"mc");
tUL.idomCompat=!0;var uUN=_.oS(function(f){var S=f.data;var B=f.themeOverride;var G=_.oy().resolve(_.fN(_.yU)),g=function(){var X;return B==null?void 0:(X=B())==null?void 0:X.useDarkTheme},b=function(){var X,w;
return G&&G()||g()?(X=S().image)==null?void 0:X.imageDark:(w=S().image)==null?void 0:w.imageLight};
f={};f=_.Pw("ytm-lp-small-feature-section-view-model",(f["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=g,f));var z=function(){var X,w,F;return(F=(X=S().image)==null?void 0:(w=X.accessibilityData)==null?void 0:w.label)!=null?F:""};
return _.T("ytm-lp-small-feature-section-view-model",{class:f},_.T(_.v,{cond:function(){return b()&&!CLA},
then:function(){return _.T("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.T(_.f9,{data:function(){return b()},
alt:z,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.T("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.T("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.T(_.v,{cond:function(){return S().title},
then:function(X){return _.T(_.oY,{text:X})}})),_.T("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.T(_.oY,{text:function(){return S().description}}))))},"nc");
uUN.idomCompat=!0;var aqX=_.oS(function(f){var S=f.data;var B=f.themeOverride;f={};return _.T("ytm-lp-small-feature-section-group-view-model",null,_.T("div",{class:_.Pw("ytm-lp-small-feature-section-group-view-model",(f["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(B==null||!B().useDarkTheme)},f))},_.T("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.T(_.xK,{data:function(){return S().smallFeatures}},{lpSmallFeatureSectionViewModel:function(G){return _.T("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.T(uUN,{data:G.data,
themeOverride:B}))}}))))},"oc");
aqX.idomCompat=!0;_.eq(_.oS(function(f){var S=f.data;var B=function(){return S().forcedTheme==="USER_INTERFACE_THEME_DARK"},G=function(){return S().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},g=function(){var z="",X,w;
var F=_.oy().resolve(_.fN(_.yU));F=B()||(F==null?0:F())?(X=S().themedImageViewModel)==null?void 0:X.imageDark:(w=S().themedImageViewModel)==null?void 0:w.imageLight;(X=fiK((F==null?void 0:F.sources)||[]))&&X.url&&(z=G()?"background-image: linear-gradient(to bottom, transparent, "+(S().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.io(X.url)+");":"background-image: url("+_.io(X.url)+");");return z},b=function(){return{useDarkTheme:B()}};
f={};return _.T("yt-section-group-view-model",null,_.T("div",{class:_.Pw("yt-lp-section-group-view-model",(f["yt-lp-section-group-view-model--premium-force-dark-mode"]=B,f["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return S().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},f))},_.T(_.v,{cond:function(){return g().length},
then:function(){var z={};return _.T("div",{class:_.Pw("yt-lp-section-group-view-model__bg-image",(z["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=G,z)),style:g})}}),_.T("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.T(_.xK,{data:function(){return S().sections}},{lpFaqSectionViewModel:function(z){return _.T(nBg,{data:z.data,
themeOverride:b})},
lpHeaderSectionViewModel:function(z){return _.T(sG1,{data:z.data,themeOverride:b})},
lpHeadlineSectionViewModel:function(z){return _.T(DK$,{data:z.data,themeOverride:b})},
lpLargeFeatureSectionViewModel:function(z){return _.T(Iq$,{data:z.data,themeOverride:b})},
lpOfferCardSectionViewModel:function(z){return _.T(Ac7,{data:z.data,themeOverride:b})},
lpComplexOfferCardSectionViewModel:function(z){return _.T(xKv,{data:z.data})},
lpOfferTableSectionViewModel:function(z){return _.T(tUL,{data:z.data,themeOverride:b})},
lpSmallFeatureSectionGroupViewModel:function(z){return _.T(aqX,{data:z.data,themeOverride:b})},
lpCouponBannerViewModel:function(z){return _.T(EBg,{data:z.data})}}))))},"pc"),"yt-section-group-view-model",{props:{data:_.W4}});var uAM=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.ycX=_.oS(function(f){function S(){if(uAM.has(f.data().displayType)){var F=!G(),V;if((V=f.disableDeselection)==null||!V.call(f)||F){f.data().selected=F;V=Object.assign({},z(),{selected:F});X(V);var J;(J=f.callback)==null||J.call(f,V,F)}}}
var B=_.tE("chip-view-model"),G=function(){var F,V;return!!(((F=f.selected)==null?void 0:F.call(f))!==void 0?(V=f.selected)==null?0:V.call(f):z().selected)},g=_.m(_.$8(f.data)),b=g.next().value;
g=g.next().value;var z=b,X=g,w=_.v8(tHG,function(){return f.data().chipEntityKey||""});
return _.T("chip-view-model",{class:"ytChipViewModelHost",el:B},_.T(Ez1,{data:function(){var F,V=Object.assign({},z(),{selected:G()}),J=w(),P=(F=f.disableDeselection)==null?void 0:F.call(f);a:switch(V.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":F=1;break a;default:F=0}return{text:(J==null?void 0:J.text)||V.text,state:V.disabled?1:V.selected?0:2,type:F,onTap:aON(V,B,S,P),accessibilityLabel:V.accessibilityLabel||V.text}}}))},"qc");
_.ycX.idomCompat={callbacks:{callback:!0}};_.W11=_.oS(function(f){var S=_.v8(ZUW,function(){var z;return(z=f.data())==null?void 0:z.chipBarStateEntityKey}),B=function(){return f.data().disableDeselection},G=_.m(_.$8(function(){var z;
if(((z=S())==null?void 0:z.selectedIndex)!=void 0)return S().selectedIndex;var X,w;z=_.m(((X=f.data())==null?void 0:(w=X.chips)==null?void 0:w.entries())||[]);for(X=z.next();!X.done;X=z.next()){X=_.m(X.value);w=X.next().value;X=X.next().value;var F=void 0;if((F=_.H(X,_.Av))==null?0:F.selected)return w}return-1})),g=G.next().value,b=G.next().value;
return _.T("chip-bar-view-model",{class:_.Pw("ytChipBarViewModelHost",f.className),role:"tablist"},_.T(_.xK,{data:function(){return f.data().chips}},{chipViewModel:function(z,X){return _.T("div",{class:"ytChipBarViewModelChipWrapper"},_.T(_.ycX,{data:z.data,
selected:function(){return X()===g()},
callback:function(w,F){w=!!F;F=X();b(w?F:-1);var V,J=(V=f.data())==null?void 0:V.chipBarStateEntityKey;J&&w&&_.WF(_.KF("chipBarStateEntity",J,{key:J,selectedIndex:F}))},
disableDeselection:f.disableDeselection||B}))}}))},"rc");_.eq(_.W11,"chip-bar-view-model",{props:{data:_.gm,className:_.gm,disableDeselection:_.gm}});_.cc7=_.oS(function(f){var S=f.data;f={};return _.T("divider-view-model",{class:_.Pw("divider-view-model-wiz",(f["divider-view-model-wiz__inset-thin-padding"]=function(){return S().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},f))},_.T("div",{class:_.Pw("divider-view-model-wiz__base-divider",function(){return yzj(S().dividerStyle)}),
style:_.Qj({"background-color":function(){return S().backgroundColor?_.pn(S().backgroundColor):void 0}})}))},"sc");
_.cc7.idomCompat=!0;_.eq(_.cc7,"divider-view-model",{props:{data:_.W4}});var kV=new Map,Ly=new Map,lO1=0,ny;var e4V=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],z4V={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var lqi,fYL;lqi=function(f){return function(S){return function(){return String(S())+f}}};
_.$4=lqi("px");fYL=lqi("s");var SFv=_.oS(function(f){function S(a){return function(){var l=d().numItemsPerGridRow,mx=a()*l;l=mx+l;var zj,VN;return(VN=(zj=G().contents)==null?void 0:zj.slice(mx,l))!=null?VN:[]}}
var B=_.lu(f,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),G=B.data,g=B.layoutContainerWidth,b=B.shouldUseOwnContainerSize,z=B.marginSettings;B=_.m(_.hj(!0,void 0,"qgr2Je"));var X=B.next().value,w=B.next().value,F=function(){var a,l=(a=_.H(G().showMoreButton,_.Q5))==null?void 0:a.trackingParams;l&&_.TE(_.ik(),l);w(!1)},V=function(){var a,l=(a=_.H(G().showLessButton,_.Q5))==null?void 0:a.trackingParams;
l&&_.TE(_.ik(),l);w(!0)};
B=_.tE("grid-shelf-view-model");var J=_.XjK(B,{canHaveZeroSize:!1}),P=function(){var a;return(a=G().contentAspectRatio)!=null?a:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},d=_.vW(function(){var a=_.lx({containerWidth:b()&&J.width()>0?J.width()||g():g(),
sizing:"EXTRA_COMPACT",marginSettings:z(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:a.maxContainerWidth,numItemsPerGridRow:a.numItems,contentPadding:b()?a.margin:a.contentMargin,itemWidth:a.itemWidth,itemMargin:a.gutter/2}},void 0,"pqVdjc"),Q=function(){if(G().enableVerticalExpansion){if(X())return x();
var a,l,mx=(l=(a=G().contents)==null?void 0:a.length)!=null?l:0;return Math.ceil(mx/d().numItemsPerGridRow)}return d().numItemsPerGridRow<=2?2:1},x=function(){var a;
return Math.ceil(((a=G().minCollapsedItemCount)!=null?a:1)/d().numItemsPerGridRow)},E=function(){return G().enableVerticalExpansion&&G().showLessButton&&!X()&&Q()>x()},U=function(){var a,l;
return G().enableVerticalExpansion&&G().showMoreButton&&X()&&((l=(a=G().contents)==null?void 0:a.length)!=null?l:0)>d().numItemsPerGridRow*x()},A=function(){return!E()},t=function(){return!U()},M={};
return _.T("grid-shelf-view-model",{class:_.Pw("ytGridShelfViewModelHost",f.className,(M.ytGridShelfViewModelHostHasBottomButton=function(){return E()||U()},M)),
el:B,style:_.Qj({"margin-left":(0,_.$4)(function(){return d().contentPadding}),
"margin-right":(0,_.$4)(function(){return d().contentPadding})})},_.T(_.v,{cond:function(){return _.H(G().header,$Gv)},
then:function(a){return _.T(_.gt,{data:a,disableHorizontalPadding:!0})}}),_.T("div",null,_.T(_.dg,{each:function(){return Array(Q())}},function(a,l){return _.T(oDo,{className:f.className,
items:S(l),responsiveGridShelfLayout:d,contentAspectRatio:P})})),_.T("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.T(_.xK,{data:function(){return G().showMoreButton}},{buttonViewModel:function(a){return _.T("div",{hidden:t},_.T(_.I8,{data:a.data,
onClick:F}))}}),_.T(_.xK,{data:function(){return G().showLessButton}},{buttonViewModel:function(a){return _.T("div",{hidden:A},_.T(_.I8,{data:a.data,
onClick:V}))}})))},"tc");
SFv.idomCompat=!0;var oDo=_.oS(function(f){var S=f.items;var B=f.responsiveGridShelfLayout;var G=f.contentAspectRatio;f=f.className;var g=_.tE("div");czK(g,function(){a:{var z=g.value;for(var X=S(),w=[],F=0;F<X.length;F++){var V=_.H(X[F],Gwm);if(!V||V==null||!V.inlinePlayerData){z=null;break a}var J=z.children.item(F);if(!J){z=null;break a}w.push({thumbnailElement:J,videoData:V})}z={gridVideoPreviewData:{gridItems:w}}}return z});
var b=(0,_.$4)(function(){return-B().itemMargin});
return _.T("div",{el:g,class:_.Pw("ytGridShelfViewModelGridShelfRow",f),style:_.Qj({"margin-left":b,"margin-right":b})},_.T(_.xK,{data:S,replacementWrapper:function(z){return _.T(B$m,{responsiveGridShelfLayout:B},z)}},{shortsLockupViewModel:function(z){return _.T(B$m,{responsiveGridShelfLayout:B},_.T(pbj,{data:z.data,
aspectRatio:function(){return G()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"uc"),B$m=_.oS(function(f){return _.T("div",{style:_.Qj({width:(0,_.$4)(function(){return f.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+f.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},f.children)},"vc");
SFv.idomCompat=!0;_.eq(SFv,"grid-shelf-view-model",{props:{data:_.W4,layoutContainerWidth:_.W4,shouldUseOwnContainerSize:_.W4,marginSettings:_.W4,className:_.W4}});_.GkN=_.oS(function(f){var S=_.m(_.hj(!1,void 0,"YYtxR")),B=S.next().value,G=S.next().value;S={};return _.T("yt-alert-banner-view-model",{class:_.Pw("ytAlertBannerViewModelHost",f.className,function(){var g;a:switch((g=f.data())==null?void 0:g.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":g="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":g="ytAlertBannerViewModelWarning";break a;default:g="ytAlertBannerViewModelInformational"}return g},(S.ytAlertBannerViewModelDismissed=
B,S.ytAlertBannerViewModelFullbleed=f.fullbleed,S.ytAlertBannerViewModelNarrow=f.narrow,S.ytAlertBannerViewModelIsInRichGrid=f.isInRichGrid,S))},_.T(_.v,{cond:function(){var g;
return!((g=f.data())==null?0:g.hideIcon)},
then:function(){return _.T("div",{class:"ytAlertBannerViewModelIcon"},_.T(_.Y8,{icon:function(){return"info_circle"}}))}}),_.T("div",{class:"ytAlertBannerViewModelOuterContainer"},_.T("div",{class:"ytAlertBannerViewModelContainer"},_.T("div",{class:"ytAlertBannerViewModelContent"},_.T("div",{class:"ytAlertBannerViewModelHeading"},_.T(_.oY,{text:function(){var g;
return(g=f.data())==null?void 0:g.heading}})),_.T("div",{class:"ytAlertBannerViewModelBody"},_.T(_.oY,{text:function(){var g;
return(g=f.data())==null?void 0:g.body}})))),_.T(_.xK,{data:function(){var g;
return(g=f.data())==null?void 0:g.actionButton}},{buttonViewModel:function(g){return _.T(_.I8,{data:g.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.T(_.xK,{data:function(){var g;
return(g=f.data())==null?void 0:g.dismissButton}},{buttonViewModel:function(g){return _.T(_.I8,{data:g.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var b;((b=f.data())==null?0:b.disableLocalDismissBehavior)||G(!0)}})}}))},"wc");_.eq(_.GkN,"yt-alert-banner-view-model",{props:{data:_.W4,fullbleed:_.W4,narrow:_.W4,isInRichGrid:_.W4,className:_.W4}});var wj1;wj1=_.$K({chipViewModel:_.ycX,buttonViewModel:_.I8});_.gDm=_.dm(h4N,{callbacks:{callback:!0}});_.Su(h4N);_.eq(_.gDm,"chips-shelf-view-model",{props:{data:_.W4,callback:_.gm,enableSingleChipSelection:_.W4,disableChipsScrollAnimation:_.W4}});var e3N=_.oS(function(f){f=_.lu(f,{disabled:!1});var S=f.active,B=f.disabled;f={};f=_.Pw("ytSwitchShapeTrack",(f.ytSwitchShapeTrackActive=function(){return S()},f.ytSwitchShapeTrackDisabled=function(){return B()},f));
var G={};G=_.Pw("ytSwitchShapeKnob",(G.ytSwitchShapeKnobActive=function(){return S()},G));
return _.T("switch-shape",{class:"ytSwitchShapeHost"},_.T("div",{class:f}),_.T("div",{class:G}))},"xc");var bv$=_.oS(function(f){var S=_.lu(f,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),B=S.data;f=S.className;var G=S.handleOnTapEventInParent,g=S.parentActive;S=_.m(_.$8(function(){var J;return(J=g())!=null?J:B().switchedOnByDefault||!1}));
var b=S.next().value,z=S.next().value,X=function(){return B().isDisabled},w=_.tE("button");
S=_.iF(function(J){return J.key==="Enter"?(J.preventDefault(),w.value.click(),!1):!0});
var F=_.iF(function(J){if(B().handleOnTapEventInParent||G())return!0;if(X())return!1;FOM(B(),b(),J);z(!b());return!1}),V={};
V=_.Pw("ytSwitchButtonViewModelButton",(V.ytSwitchButtonViewModelTappable=function(){return!X()},V));
return _.T("switch-button-view-model",{class:_.Pw("ytSwitchButtonViewModelHost",f)},_.T("button",{el:w,class:V,"on:click":F,"on:keydown":S,"aria-label":function(){return b()?B().a11yLabelSwitchedOn:B().a11yLabelSwitchedOff},
"aria-checked":b,"aria-disabled":X,role:"switch"},_.T(e3N,{active:b,disabled:X})))},"yc");var z3i=_.oS(function(f){var S=_.lu(f,{checked:!1});f=S.name;var B=S.onChange,G=S.onClick,g=S.checked,b=S.labelRenderable,z=S.hasLeadingLabel,X=S.labelClass,w=S.isCompact,F=S.selectElementClass;S=S.disableHorizontalPadding;var V="checkbox"+_.nu(_.qT),J=_.iF(function(Q){G==null||G(Q);return!1}),P=_.iF(function(Q){B==null||B(Q);
return!1}),d={};
return _.T("checkbox-shape",null,_.T("label",{class:_.Pw("checkbox-shape-wiz",X,(d["checkbox-shape-wiz--compact"]=w,d["checkbox-shape-wiz--disable-horizontal-padding"]=S,d))},_.T("input",{class:"checkbox-shape-wiz__input",id:V,checked:g,name:f,type:"checkbox","prop:checked":g,"on:change":P,"on:click":J}),_.T(_.v,{cond:function(){return!(z==null?0:z())},
then:function(){return _.T(mem,{isLeading:!0,selectElementClass:F})}}),_.T(_.v,{cond:function(){return!!b},
then:function(){return _.T("div",{class:"checkbox-shape-wiz__label"},b==null?void 0:b())}}),_.T(_.v,{cond:z,
then:function(){return _.T(mem,{isLeading:!1,selectElementClass:F})}})))},"zc");
z3i.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var mem=_.oS(function(f){var S=f.selectElementClass;f={};return _.T("div",{class:_.Pw("checkbox-shape-wiz__checkbox",S,(f["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(S==null?0:S())},f)),
"aria-hidden":"true"},_.T(_.Y8,{icon:_.K("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.T(_.Y8,{icon:_.K("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Ac");_.QL=_.oS(function(f){var S=f.name;var B=f.onChange;var G=f.onClick;var g=f.checked;var b=f.labelRenderable;var z=f.useCheckIcon;var X=f.hasLeadingLabel;var w=f.labelClass;var F=f.isCompact;var V=f.selectElementClass;var J=f.ariaLabel;f=f.className;var P="radio"+_.nu(_.qT),d=_.tE("input"),Q=_.iF(function(a){d.value.checked=!(g==null||!g());B==null||B(a);return!1}),x=_.iF(function(a){G==null||G(a);
return!1}),E=_.m(_.hj(!1,void 0,"v5AMrb")),U=E.next().value,A=E.next().value;
E=_.iF(function(){var a;((a=_.oy().resolve(_.fN(_.R5)))==null?0:a.isKeyBoardInUse())&&A(!0)});
var t=_.iF(function(){A(!1)}),M={};
return _.T("radio-shape",{class:_.Pw("radio-shape-wiz",f)},_.T("input",{el:d,class:"radio-shape-wiz__input",id:P,"prop:checked":g,name:S,type:"radio","on:change":Q,"on:click":x,"aria-label":J,"on:focusin":E,"on:focusout":t}),_.T("label",{class:_.Pw("radio-shape-wiz__label-container",w,(M["radio-shape-wiz--compact"]=F,M["radio-shape-wiz__label-container--keyboard-focused"]=U,M)),for:P},_.T(_.v,{cond:function(){return!(X==null?0:X())},
then:function(){return _.T(R3o,{checked:g,useCheckIcon:z,isLeading:!0,selectElementClass:V})}}),_.T(_.v,{cond:function(){return!!b},
then:function(){return _.T("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(J==null?0:J())?"true":"false"}},b==null?void 0:b())}}),_.T(_.v,{cond:X,
then:function(){return _.T(R3o,{checked:g,useCheckIcon:z,isLeading:!1,selectElementClass:V})}})))},"Bc");
_.QL.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var R3o=_.oS(function(f){var S=f.useCheckIcon;var B=f.selectElementClass;f=function(){return(S==null?0:S())?"CHECK":_.K("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var G={};return _.T("div",{class:_.Pw("radio-shape-wiz__radio",B,(G["radio-shape-wiz__radio--check-icon"]=S,G["radio-shape-wiz__radio--radio-default-style"]=function(){return!(B==null?0:B())},G)),
"aria-hidden":"true"},_.T(_.Y8,{icon:f}),_.T(_.Y8,{icon:f,active:function(){return!(S==null?0:S())}}))},"Cc");_.Y4=_.oS(function(f){function S(){var c7;((c7=_.oy().resolve(_.fN(_.R5)))==null?0:c7.isKeyBoardInUse())&&W7(!0)}
function B(){W7(!1)}
var G=f.data;var g=f.isMenuItem;var b=f.isCompact;var z=f.onTap;var X=f.trailingAccessory;var w=f.hideSelectionTextChevron;var F=f.disabled;var V=f.inPopup;var J=f.disableHorizontalPadding;var P=f.isOverlay;var d=f.isToggled;var Q=_.K("apply_button_role_to_list_item"),x=_.Uo(function(c7){a:{var Q$=G();if((Q$==null?0:Q$.entitySelectorType)&&(Q$==null?0:Q$.entityKey))switch(Q$.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":c7=_.tK1(c7,Q$.entityKey);
c7=c7==null?void 0:c7.value;Q$=!1;c7==="CAPTIONS_UNAVAILABLE"&&(Q$=!0,c7="");c7=Object.assign({},!!c7&&{selectionText:{content:c7}},{isSelected:!!c7},!!c7&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:Q$});break a;default:c7={}}else c7={}}return c7}),E=function(){return _.K("enable_web_shorts_captions_language_command")?Object.assign({},G(),x()):G()},U=function(){return!(E().isSelected===void 0||!E().selectionStyle||E().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
A=function(){return(_.ux(E().rendererContext)||z)&&!U()},t=function(){return _.ux(E().rendererContext)||U()};
f={};P=_.Pw("yt-list-item-view-model-wiz",(f["yt-list-item-view-model-wiz--is-overlay"]=P,f["yt-list-item-view-model-wiz--keyboard-focused"]=function(){return!Q&&UV()},f));
f={};var M=_.Pw("yt-list-item-view-model-wiz__label",(f["yt-list-item-view-model-wiz__container"]=function(){return!U()},f["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!E().isDisabled||!(F==null||!F())},f["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!E().subtitle},f["yt-list-item-view-model-wiz__container--compact"]=b,f["yt-list-item-view-model-wiz__container--tappable"]=A,f["yt-list-item-view-model-wiz__container--in-popup"]=V,f["yt-list-item-view-model-wiz--keyboard-focused"]=
function(){return Q&&UV()},f["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(J==null?void 0:J())&&!U()},f));
f={};var a=_.Pw("yt-list-item-view-model-wiz__container",(f["yt-list-item-view-model-wiz__container--tappable"]=t,f["yt-list-item-view-model-wiz__container--compact"]=b,f["yt-list-item-view-model-wiz__container--in-popup"]=V,f["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(J==null?void 0:J())&&U()},f)),l=function(){return E().leadingImage||E().leadingAccessory},mx=_.Pw("yt-list-item-view-model-wiz__image-container",function(){return l()?"yt-list-item-view-model-wiz__trailing":
"yt-list-item-view-model-wiz__leading"});
V=_.tE("yt-list-item-view-model");var zj=_.tE("div"),VN=Q?zj:V,$Q=_.oS(function(){return _.T(_.v,{cond:function(){return Q},
then:function(){return _.T("div",{class:M,el:zj,role:function(){return t()||A()?"button":void 0},
tabindex:function(){return z||A()?0:void 0},
"on:keydown":rW,"on:click":OV},_.T(XB8,{data:E,hideSelectionTextChevron:w,trailingAccessory:X,isToggled:d}))},
else:function(){return _.T("div",{class:M,el:zj},_.T(XB8,{data:E,hideSelectionTextChevron:w,trailingAccessory:X,isToggled:d}))}})},"Dc");
$Q.idomCompat=!0;_.a8(V,function(){return E().rendererContext});
var OV=_.iF(function(c7){return void(z==null?void 0:z(c7))}),rW=_.lQG(),MA=_.m(_.hj(!1,void 0,"kFezJc"));
f=MA.next().value;MA=MA.next().value;var UV=f,W7=MA;_.j9(function(){A()&&(VN.value.addEventListener("focusin",S),VN.value.addEventListener("focusout",B));_.Ov(function(){VN.value&&A()&&(VN.value.removeEventListener("focusin",S),VN.value.removeEventListener("focusout",B))})});
f=_.iF(function(){return!0});
return _.T("yt-list-item-view-model",{el:V,class:P,role:function(){return(g==null?0:g())?"menuitem":"listitem"},
tabindex:function(){var c7=A();c7=Q?void 0:z||c7?0:void 0;return c7},
"on:keydown":Q?f:rW,"on:click":Q?f:OV},_.T(_.v,{cond:U,then:function(){return _.T(_.qp,null,_.T(_.i0,{when:function(){return E().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.T(z3i,{labelRenderable:function(){return _.T($Q,null)},
isCompact:b,checked:function(){return E().isSelected},
hasLeadingLabel:function(){return!!l()},
labelClass:a,selectElementClass:mx,disableHorizontalPadding:J})}),_.T(_.i0,{when:function(){return E().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.T(_.QL,{labelRenderable:function(){return _.T($Q,null)},
isCompact:b,checked:function(){return E().isSelected},
hasLeadingLabel:function(){return!!l()},
labelClass:a,selectElementClass:mx})}),_.T(_.i0,{when:function(){return E().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.T(_.QL,{labelRenderable:function(){return _.T($Q,null)},
isCompact:b,checked:function(){return E().isSelected},
hasLeadingLabel:function(){return!!l()},
labelClass:a,selectElementClass:mx,useCheckIcon:!0})}),_.T(_.Hf,null,function(){return _.T($Q,null)}))},
else:function(){return _.T($Q,null)}}))},"Ec");
_.Y4.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};var XB8=_.oS(function(f){var S=f.data;var B=f.hideSelectionTextChevron;var G=f.trailingAccessory;var g=f.isToggled;return _.T(_.gg,null,_.T(wBm,{data:S,isLeading:!0,hideSelectionTextChevron:function(){return!(B==null||!B())},
isToggled:g}),_.T(h3$,{data:S}),_.T(_.v,{cond:function(){return!!G},
then:function(){return _.T("div",{class:"yt-list-item-view-model-wiz__trailing"},G==null?void 0:G())},
else:function(){return _.T(wBm,{data:S,isLeading:!1,hideSelectionTextChevron:function(){return!(B==null||!B())},
isToggled:g})}}))},"Fc"),wBm=_.oS(function(f){var S=f.data;
var B=f.isLeading;var G=f.hideSelectionTextChevron;var g=f.isToggled;var b=_.Pw("yt-list-item-view-model-wiz__button-container");f={};var z=_.Pw("yt-list-item-view-model-wiz__image-container",(f["yt-list-item-view-model-wiz__leading"]=B,f["yt-list-item-view-model-wiz__trailing"]=function(){return!B()},f)),X=function(){return B()?S().leadingImage:S().trailingImage},w=_.Pw("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
f={};var F=_.Pw("yt-list-item-view-model-wiz__accessory",(f["yt-list-item-view-model-wiz__leading"]=B,f["yt-list-item-view-model-wiz__trailing"]=function(){return!B()},f)),V=function(){a:switch(S().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var J="expand_more";
break a;default:J="chevron_right"}return J};
return _.T(_.v,{cond:function(){var J=S(),P=B();return!!(P&&(J.leadingImage||J.leadingAccessory)||!P&&(J.trailingImage||J.trailingButton||J.trailingButtons||J.selectionText))},
then:function(){return _.T(_.gg,null,_.T(_.v,{cond:X,then:function(J){return _.T("div",{class:z,"aria-hidden":"true"},_.T(_.f9,{data:J,alt:"",preserveWidth:!0,preserveHeight:!0,className:w,isToggled:g}))}}),_.T(_.v,{cond:function(){return B()&&S().leadingAccessory},
then:function(){return _.T("div",{class:z},_.T(_.xK,{data:function(){return S().leadingAccessory}},{avatarViewModel:function(J){return _.T(_.Ya,{data:J.data,
avatarButtonCustomClassName:w})},
collectionThumbnailViewModel:kvj}))}}),_.T(_.v,{cond:function(){return!B()&&S().trailingButton},
then:function(){return _.T("div",{class:b},_.T(_.xK,{data:function(){return S().trailingButton}},{buttonViewModel:function(J){return _.T(_.I8,{data:J.data,
className:F})}}))}}),_.T(_.v,{cond:function(){var J;
return!B()&&((J=S().trailingButtons)==null?void 0:J.buttons)},
then:function(){return _.T("div",{class:b},_.T(_.xK,{data:function(){var J;return(J=S().trailingButtons)==null?void 0:J.buttons}},{buttonViewModel:function(J){return _.T(_.I8,{data:J.data,
className:F})},
accountLinkButtonViewModel:function(J){return _.T(kIM,{data:J.data,className:F})},
switchButtonViewModel:function(J){return _.T(bv$,{data:J.data,className:F})},
subscribeButtonViewModel:function(J){return _.T(_.$q,{data:J.data,isOverlay:!1,animateWidth:!1,className:F})},
toggleButtonViewModel:function(J){return _.T(_.ER,{data:J.data,className:F})}}))}}),_.T(_.v,{cond:function(){return!B()&&!!S().selectionText},
then:function(){return _.T(_.gg,null,_.T(_.oY,{text:function(){return S().selectionText},
className:_.Pw("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.T(_.v,{cond:function(){return!G()},
then:function(){return _.T(_.Y8,{icon:V,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Gc"),h3$=_.oS(function(f){var S=f.data;
return _.T(_.v,{cond:function(){return S().title||S().subtitle},
then:function(){return _.T("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.T("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.T(_.v,{cond:function(){return S().title},
then:function(B){return _.T(_.oY,{text:B,className:"yt-list-item-view-model-wiz__title"})}})),_.T(_.v,{cond:function(){return S().subtitle},
then:function(B){return _.T(_.oY,{text:B,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Hc");_.T$o=_.oS(function(f){var S=f.data;var B=f.onTap;var G=f.onSwitch;var g=f.overrideDisabled;f=f.disableHorizontalPadding;var b=_.m(_.$8(function(){var J;return((J=JCG(V()))==null?void 0:J.switchedOnByDefault)||!1})),z=b.next().value,X=b.next().value;
b=_.m(_.hj(!1,void 0,"ZHBkbb"));var w=b.next().value,F=b.next().value,V=function(){var J;if(!(J=S().switchButton)){var P=S();J=g==null?void 0:g();P={switchOnCommand:P.switchOnCommand,switchOffCommand:P.switchOffCommand,switchedOnByDefault:P.switchedOnByDefault,isDisabled:P.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:P.a11yLabelSwitchedOn,a11yLabelSwitchedOff:P.a11yLabelSwitchedOff};J!==void 0&&(P.isDisabled=J);J={switchButtonViewModel:P}}return J};
return _.T("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.T(_.Y4,{data:function(){return{title:S().title,subtitle:S().attributedSubtitle,leadingImage:S().leadingImage,leadingAccessory:S().leadingAccessory,isDisabled:S().isDisabled}},
onTap:function(J){var P=JCG(V());!P||P.isDisabled||S().ignoreTapUntilCommandCompletes&&w()||(B==null||B(J),FOM(P,z(),J,S().ignoreTapUntilCommandCompletes,F),X(!z()),G==null||G(z()))},
trailingAccessory:function(){return _.T(_.xK,{data:V},{switchButtonViewModel:function(J){return _.T(bv$,{data:J.data,parentActive:z,handleOnTapEventInParent:!!B})}})},
disableHorizontalPadding:f}))},"Ic");var FA8=_.oS(function(f){var S=_.tE("toggleable-list-item-view-model"),B=_.m(_.$8(function(){var b,z;return!!((b=f.data())==null?0:(z=b.initialState)==null?0:z.isToggled)})),G=B.next().value,g=B.next().value;
_.a8(S,function(){return f.data().rendererContext});
B=_.iF(function(){g(!G())});
return _.T("toggleable-list-item-view-model",{el:S,class:_.Pw("toggleableListItemViewModelHost",f.className),"on:click":B},_.T(_.v,{cond:G,then:function(){return _.T(_.xK,{data:function(){return f.data().toggledListItem}},{listItemViewModel:function(b){return _.T(_.Y4,{data:b.data,
isToggled:G})}})},
else:function(){return _.T(_.xK,{data:function(){return f.data().defaultListItem}},{listItemViewModel:_.Y4})}}))},"Jc");var Vvi=_.Jf("DOWNLOAD",{},"Download"),J8$=_.Jf("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),Pnv=_.Jf("RETRY",{},"Retry"),vDv=_.Jf("PAUSE_DOWNLOADING",{},"Pause downloading"),KAN=_.Jf("RESUME_DOWNLOAD",{},"Resume download"),PDA={text:Vvi,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},sC={text:J8$,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},ddx={text:Pnv,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
vhj={text:vDv,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},KO9={text:KAN,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var dem=_.oS(function(f){var S=function(){var X=f.data();X=_.tD(X.rendererContext);var w;return(w=_.H(X,_.V5))==null?void 0:w.videoId},B=_.Uo(function(X){var w=S(),F=qPA(f.data());
return w?_.sA(X,w):F?_.DK(X,F):"TRANSFER_STATE_UNKNOWN"}),G=_.v8(_.q2T,S),g=_.Uo(function(X){return _.Pe1(X,S(),qPA(f.data()))}),b=function(){return H$G(B(),G(),_.tD(f.data().rendererContext),!!qPA(f.data()))},z=function(){return g()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.T("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:z},_.T(_.v,{cond:function(){return!z()},
then:function(){return _.T(_.v,{cond:b,then:function(X){return _.T(_.dg,{each:X},function(w){return _.T(_.Y4,{data:w,isCompact:f.isCompact,isMenuItem:f.isMenuItem,inPopup:f.inPopup,disableHorizontalPadding:f.disableHorizontalPadding})})}})}}))},"Kc");
dem.idomCompat=!0;_.ivv=_.oS(function(f){var S=f.data;var B=f.isCompact;var G=f.hideSelectionTextChevron;var g=f.inPopup;var b=f.isOverlay;var z=f.disableHorizontalPadding;var X=function(){return $dQ(S())&&(g==null?void 0:g())};
f={};return _.T("yt-list-view-model",{class:_.Pw("yt-list-view-model-wiz",(f["yt-list-view-model-wiz--kaios-spat-nav"]=CLA&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",f)),role:function(){return X()?"menu":"list"},
style:_.Qj({"max-height":function(){var w,F=(w=S())==null?void 0:w.visibleElementCount;if(F)return YP1(S())?(F+.5)*48+"px":(F+.5)*40+"px"}})},_.T(_.xK,{data:function(){return S().listItems}},{listItemViewModel:function(w){return _.T(_.Y4,{data:w.data,
isMenuItem:X,isCompact:B,hideSelectionTextChevron:G,inPopup:g,isOverlay:b,disableHorizontalPadding:z})},
toggleableListItemViewModel:function(w){return _.T(FA8,{data:w.data})},
downloadListItemViewModel:function(w){return _.T(dem,{data:w.data,isMenuItem:X,isCompact:B,inPopup:g,disableHorizontalPadding:z})},
switchListItemViewModel:function(w){return _.T(_.T$o,{data:w.data,disableHorizontalPadding:z})}}))},"Lc");
_.ivv.idomCompat=!0;var Hvv=_.oS(function(f){var S=f.data;var B=f.isOverlay;f={};return _.T("yt-course-perks-view-model",{class:_.Pw("ytwCoursePerksViewModelHost",(f.ytwCoursePerksViewModelHostOverlay=B,f))},_.T("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.T(_.oY,{text:function(){return S().title}})),_.T("div",null,_.T(_.v,{cond:function(){return S().perks},
then:function(G){return _.T(_.ivv,{data:function(){return{listItems:G()}},
isCompact:!0,isOverlay:B})}})))},"Mc");_.eq(Hvv,"yt-course-perks-view-model",{props:{data:_.gm,isOverlay:_.gm}});_.eq(_.oS(function(f){var S=f.data;return _.T("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.T("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.T(_.oY,{text:function(){return S().title}})),_.T("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.T(_.oY,{text:function(){return S().progressSummary}})),_.T("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.T("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.Qj({width:function(){return S().progressPercentage*100+"%"}})})))},"Nc"),"yt-course-progress-view-model",{props:{data:_.W4}});var qFN=_.oS(function(f){var S={};return _.T("yt-progress-view-model",{class:_.Pw("ytwProgressViewModelHost",(S.ytwProgressViewModelHostOverlay=_.cF(f.isOverlay,!1),S))},_.T(_.v,{cond:function(){return f.data().progressSummary},
then:function(B){return _.T("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.T(_.oY,{text:B}))}}),_.T("div",{class:"ytwProgressViewModelHostProgressContainer"},_.T(_.v,{cond:function(){return f.data().leadingLabel},
then:function(B){return _.T("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.T(_.oY,{text:B}))}}),_.T("div",{class:"ytwProgressViewModelHostProgressBar"},_.T("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(f.data().progressPercentage||0)*100+"%"}}))))},"Oc");var rt=_.oS(function(f){var S=f.starNumber;var B=f.data;var G=function(){var g;return((g=B())==null?void 0:g.rating)||0};
return _.T(_.v,{cond:function(){return S()},
then:function(g){return _.T(_.qp,null,_.T(_.i0,{when:function(){return G()>=g()-.25}},function(){return _.T("div",{class:"ytStarRatingViewModelHostStar"},_.T(_.Y8,{icon:"STAR_FILLED"}))}),_.T(_.i0,{when:function(){return G()>=g()-.75}},function(){return _.T("div",{class:"ytStarRatingViewModelHostStar"},_.T(_.Y8,{icon:"STAR_HALF"}))}),_.T(_.Hf,null,function(){return _.T("div",{class:"ytStarRatingViewModelHostStar"},_.T(_.Y8,{icon:"STAR_BORDER"}))}))}})},"Pc"),$em=_.oS(function(f){f=f.data;
return _.T("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.T(rt,{starNumber:1,data:f}),_.T(rt,{starNumber:2,data:f}),_.T(rt,{starNumber:3,data:f}),_.T(rt,{starNumber:4,data:f}),_.T(rt,{starNumber:5,data:f}))},"Qc");_.eq(_.oS(function(f){var S=_.lu(f,{}).data;return _.T("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.T("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.T(_.oY,{text:function(){var B;return(B=S())==null?void 0:B.title}})),_.T("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.T(_.v,{cond:function(){return S().starProgressViewModels},
then:function(B){return _.T("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.T(_.xK,{data:B},{progressViewModel:qFN}))}}),_.T("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.T("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.T(_.oY,{text:function(){var B;
return(B=S())==null?void 0:B.averageRatingLabel}})),_.T(_.v,{cond:function(){return S().zeroStateText},
then:function(B){return _.T("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.T(_.oY,{text:B}))}}),_.T(_.v,{cond:function(){return S().starRatingViewModel},
then:function(B){return _.T("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.T(_.xK,{data:B},{starRatingViewModel:$em}))}}),_.T("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.T(_.oY,{text:function(){var B;
return(B=S())==null?void 0:B.totalRatingsCountLabel}})))))},"Rc"),"yt-course-ratings-view-model",{props:{data:_.gm}});var Q18;Q18={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"}};_.YFm=_.oS(function(f){var S=_.tE("yt-learning-journey-loader-view-model"),B=_.TG();_.Y5(function(){requestAnimationFrame(function(){var g;(g=B.lottieEl)==null||g.addEventListener("DOMLoaded",function(){var b;(b=f.onLottieLoaded)==null||b.call(f)})});
var G=f.data().browseEndpoint;G&&_.MB(G)});
return _.T("yt-learning-journey-loader-view-model",{class:_.Pw("learningJourneyLoaderViewModelHost",f.className),"data-target-id":function(){var G;return((G=f.data)==null?void 0:G.call(f).targetId)||""},
el:S},_.T(_.vw,{className:_.Pw("learningJourneyLoaderViewModelLoader",f.className),animationName:function(){return Q18.animationConfig.name},
data:Q18,animationRef:B}))},"Sc");_.eq(_.YFm,"yt-learning-journey-loader-view-model",{props:{data:_.W4,className:_.gm,onLottieLoaded:_.gm}});var jq9=new Set,rCx=null;_.r8i=_.oS(function(f){var S=null,B=null,G=null,g=function(){return f.data()},b=_.m(_.hj(-1,void 0,"H2gnQb")),z=b.next().value,X=b.next().value,w=function(x){return z()===x},F=function(x){return g().correctAnswerIndex===x},V=function(){return z()!==-1},J=function(){return z()===g().correctAnswerIndex},P=_.iF(function(){X(-1);
return!1}),d=function(){var x=V(),E=J();
return x?E?264685:264684:264683},Q=function(x){return J()&&F(x)};
return _.T("learning-journey-quiz-view-model",{class:_.Pw("learningJourneyQuizViewModelHost",f.className),style:_.Qj({background:function(){return Cy(IY(g())).backgroundColor}})},_.T(_.v,{cond:function(){return!!g().video},
then:function(){return _.T("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.Qj({background:function(){return Cy(IY(g())).videoBackgroundColor}})},_.T(_.xK,{data:function(){return g().video}},{lockupViewModel:function(x){return _.T(_.Gf,{data:x.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.T("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.T("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.T("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.T("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.Qj({"align-items":function(){return g().overflowMenu?"start":"center"}})},_.T("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.Qj({"min-height":function(){return g().overflowMenu?"48px":"26px"}})},_.T("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
el:_.Sq(function(x){_.Dp(d(),x,S,function(E){S=E})}),
style:_.Qj({color:function(){return Cy(IY(g())).primaryTextColor}}),
"client-ve-type":d},_.T(_.oY,{text:function(){var x=g(),E=V(),U=J();return E?U?x.successTitle:x.failureTitle:x.questionHeaderText}}))),_.T("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.T(_.v,{cond:V,
then:function(){return _.T("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover",el:_.Sq(function(x){_.Dp(264687,x,B,function(E){B=E})}),
"on:click":P,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.T("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.Qj({fill:function(){return Cy(IY(g())).primaryTextColor}})},_.T("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"})))}}),
_.T(_.xK,{data:function(){return g().overflowMenu}},{buttonViewModel:function(x){return _.T(_.I8,{data:x.data})}}))),_.T("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.Sq(function(x){_.Dp(264688,x,G,function(E){G=E})}),
style:_.Qj({color:function(){return Cy(IY(g())).secondaryTextColor}}),
"client-ve-type":264688},_.T(_.oY,{text:function(){var x=g();return V()?x.explanationText:x.questionSubheaderText}}))),_.T("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.T(_.dg,{each:function(){return g().optionsData||[]}},function(x,E){var U={};
return _.T("div",{class:_.Pw("learningJourneyQuizViewModelHostQuizOptions",(U.learningJourneyQuizViewModelHostQuizHover=function(){return!V()},U.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return Q(E())},U.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!J()&&w(E())},U.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return V()&&!w(E())},U)),
"on:click":_.iF(function(){if(V())return!1;X(E());return!1}),
style:_.Qj({background:function(){return V()&&w(E())?"":Cy(IY(g())).optionColor}}),
role:"button","aria-disabled":V,"tab-index":"0","client-ve-type":264686},_.T(_.v,{cond:V,then:function(){var A={};return _.T("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var t=E();return F(t)?"0 0 24 24":"0 -960 960 960"},
class:_.Pw("learningJourneyQuizViewModelHostQuizOptionIcon",(A.learningJourneyQuizViewModelHostQuizOptionIconPulse=function(){return Q(E())},A)),
style:_.Qj({fill:function(){return Cy(IY(g())).primaryTextColor}})},_.T("path",{d:function(){var t=E();
return F(t)?"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"}}))}}),_.T(_.oY,{text:x.optionText}))})))))},"Tc");
_.r8i.idomCompat=!0;_.eq(_.r8i,"learning-journey-quiz-view-model",{props:{data:_.W4,className:_.W4}});var j11=_.oS(function(f){var S=_.tE("yt-macro-marker-list-item-view-model");_.a8(S,function(){return f.data().rendererContext});
var B=_.lu(f,{palette:void 0,isLastItem:!1}),G=B.palette,g=B.isLastItem,b=function(){return f.data().isHighlighted},z=function(){var F;
return xdG((F=G())==null?void 0:F.iconDisabledColor)},X=function(){var F;
return xdG((F=G())==null?void 0:F.primaryTitleColor)},w=function(){var F;
return xdG((F=G())==null?void 0:F.secondaryTitleColor)};
B={};return _.T("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:S},_.T(_.xK,{data:function(){return f.data().thumbnail}},{thumbnailViewModel:_.ya}),_.T("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.T("div",{class:_.Pw("ytMacroMarkerListItemViewModelTimeDescription",(B.ytMacroMarkerListItemViewModelHighlighted=b,B)),
style:_.Qj({"background-color":function(){return b()?X():z()},
color:function(){return b()?"":w()}})},_.T(_.oY,{text:function(){return f.data().timestamp}})),_.T("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.Qj({"background-color":function(){return g()?"transparent":z()}})}),_.T("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(b()?X():w())}},_.T(_.oY,{text:function(){return f.data().title}}))))},"Uc");_.jh=_.oS(function(f){function S(Go){U("transform:translateX("+(_.nL("HTML_DIR")==="rtl"?"":"-")+Go+"px)")}
function B(Go){return Math.min(Math.max(Go,0),E()-l())}
function G(){var Go=M()+$Q();return g()?(Math.round(l()/Go)||1)*Go:0}
var g=function(){return f.data().items||[]},b=function(){return f.data().previousButton},z=function(){return f.data().nextButton},X=function(){var Go,Io;
return(Io=(Go=f.disableArrows)==null?void 0:Go.call(f))!=null?Io:!1},w=function(){var Go;
return!((Go=f.forceNarrowLayout)==null||!Go.call(f))},F=_.tE("horizontal-shelf-view-model"),V=_.tE("div"),J=_.m(_.hj(0,void 0,"FK8fq")),P=J.next().value,d=J.next().value;
J=_.m(_.hj(0,void 0,"FXvjXe"));var Q=J.next().value,x=J.next().value,E=Q;Q=_.m(_.hj("",void 0,"dmCnjc"));J=Q.next().value;var U=Q.next().value;Q=_.m(_.hj(0,void 0,"LqBxue"));var A=Q.next().value,t=Q.next().value,M=A;Q=_.m(_.hj(0,void 0,"o2DdWe"));A=Q.next().value;var a=Q.next().value,l=A;Q=_.m(_.hj(!1,void 0,"u9PZCd"));var mx=Q.next().value,zj=Q.next().value;Q=_.m(_.hj(0,void 0,"TYwGid"));A=Q.next().value;var VN=Q.next().value,$Q=A;Q=_.m(_.hj(0,void 0,"cLGHg"));var OV=Q.next().value,rW=Q.next().value;
Q=_.m(_.hj("50%",void 0,"aKvnEe"));var MA=Q.next().value,UV=Q.next().value,W7=function(){var Go,Io=(Go=f.data())==null?void 0:Go.responsiveContainerConfiguration,uz,RT;return Io?GAx(Io==null?void 0:Io.responsiveSize):(RT=(uz=f.sizing)==null?void 0:uz.call(f))!=null?RT:"STANDARD"};
Q=_.vW(function(){return!X()&&P()>0},void 0,"DIgCMb");
A=_.vW(function(){return!X()&&P()<E()-l()},void 0,"F5ZeCd");
var c7=function(){d(B(P()-G()));S(P())},Q$=function(){d(B(P()+G()));
S(P())},To=function(){F.value!==null&&VM()},Ci;
_.j9(function(){VM();window.ResizeObserver?(Ci=new ResizeObserver(_.Hq(To,0)),Ci.observe(F.value)):window.addEventListener("resize",To)});
_.Ov(function(){if(window.ResizeObserver){var Go;(Go=Ci)==null||Go.disconnect()}else window.removeEventListener("resize",To)});
var VM=function(){var Go=F.value.clientWidth,Io=f.includeMargin!==void 0?f.includeMargin():!1,uz;var RT=f.hasPeek!==void 0?f.hasPeek():!((uz=f.data())==null||!uz.hasPeek);Go=_.lx({containerWidth:Go,hasPeek:RT,sizing:W7(),marginSettings:Io?w()?4:1:0});VN(Go.gutter);rW(Go.margin);t(Go.itemWidth);zj(Go.maxContainerWidth<528||w());a(Go.maxContainerWidth);g()&&x((Go.itemWidth+Go.gutter)*g().length-Go.gutter);if(g()){var P7;if(((P7=f.thumbnailAspectRatio)==null?void 0:P7.call(f))!==void 0){var O8;UV(M()/
q39((O8=f.thumbnailAspectRatio)==null?void 0:O8.call(f))/2+"px")}else UV("50%")}};
return _.T("horizontal-shelf-view-model",{class:_.Pw("ytwHorizontalShelfViewModelHost",f.className),el:F},_.T(_.v,{cond:function(){var Go;return f.data().header&&!((Go=f.horizontalShelfExperiments)==null?0:Go.call(f).hideHeader)},
then:function(){return _.T("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.Qj({width:function(){return l()+"px"},
padding:function(){return"0 "+OV()+"px"}})},_.T(_.xK,{data:function(){return f.data().header}},{sectionHeaderViewModel:function(Go){return _.T(_.gt,{data:Go.data,
disableHorizontalPadding:!0,forceSmallLayout:mx,useResponsiveLayout:!0})}}))}}),_.T("div",{class:"ytwHorizontalShelfViewModelOuterContainer",
style:_.Qj({"margin-top":function(){var Go,Io=f.data().header&&!((Go=f.horizontalShelfExperiments)==null?0:Go.call(f).hideHeader),uz;return(((uz=f.ensureMarginTop)==null?0:uz.call(f))&&!Io?12:0)+"px"}})},_.T("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.Qj({width:function(){return l()+"px"},
padding:function(){return"0 "+OV()+"px"},
overflow:function(){return X()?"auto":"hidden"}})},_.T("div",{class:"ytwHorizontalShelfViewModelItems",
el:V,style:J},_.T(_.xK,{data:g},{macroMarkerListItemViewModel:function(Go,Io){return _.T("div",{style:_.Qj({width:function(){return M()+"px"},
"margin-right":function(){return(Io()===g().length-1?0:$Q())+"px"}})},_.T(j11,{data:Go.data,
palette:_.cF(f.palette),isLastItem:function(){return Io()===g().length-1}}))},
lockupViewModel:function(Go,Io){var uz=Go.data;return _.T("div",{style:_.Qj({width:function(){return M()+"px"},
"margin-right":function(){return(Io()===g().length-1?0:$Q())+"px"}})},_.T(_.Gf,{data:uz,
containerType:4,sizing:W7,protectBackground:f.protectBackground,thumbnailFixedWidth:function(){return Eh1(uz())+"px"},
thumbnailTargetWidth:function(){return Eh1(uz())}}))}}))),_.T(_.v,{cond:Q,
then:function(){return _.T("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.Qj({top:function(){return MA()}})},_.T(_.xK,{data:b},{buttonViewModel:function(Go){return _.T(_.I8,{data:Go.data,
onClick:c7})}}))}}),_.T(_.v,{cond:A,
then:function(){return _.T("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.Qj({top:function(){return MA()}})},_.T(_.xK,{data:z},{buttonViewModel:function(Go){return _.T(_.I8,{data:Go.data,
onClick:Q$})}}))}})))},"Vc");
_.jh.idomCompat=!0;var Ov$=_.oS(function(f){var S=function(){return f.data().targetId||""},B=function(){var Q;
return((Q=f.data())==null?void 0:Q.expansionEntityKey)||""},G=_.v8(_.tK1,B),g=!0,b=function(){var Q;
return((Q=G())==null?void 0:Q.value)===S()},z=function(Q){_.WF(_.KF("stringEntity",B(),{key:B(),
value:Q?S():""}))};
_.Y5(function(){g=!1;f.data().isExpanded&&z(!0)});
var X=function(){if(b()){var Q=!0;f.onCollapse!==void 0&&(Q=f.onCollapse());Q&&z(!1)}else z(!0)},w=_.iF(X),F=function(){var Q;
return(((Q=f.accordionStyle)==null?void 0:Q.call(f))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},V=_.tE("div"),J=function(){var Q,x;
return(x=(Q=_.H(f.data().rendererContext,_.H1))==null?void 0:Q.label)!=null?x:""},P={},d={};
return _.T("yt-accordion-item-view-model",{class:_.Pw("ytAccordionItemViewModelHost",f.className,(P.ytAccordionItemViewModelExpanded=function(){return b()},P.ytAccordionItemViewModelHidden=function(){var Q;
return(Q=f.hideIfNotExpanded)==null?void 0:Q.call(f)},P.ytAccordionItemViewModelMini=F,P)),
"data-target-id":S},_.T("div",{class:"ytAccordionItemViewModelContainer"},_.T("div",{class:"ytAccordionItemViewModelLeftSection","on:click":w,title:J},_.T(_.oY,{text:function(){return f.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:J})),_.T("div",{class:"ytAccordionItemViewModelRightSection"},_.T(_.xK,{data:function(){return b()?f.data().expandButton:f.data().collapseButton}},{buttonViewModel:function(Q){return _.T(_.I8,{data:Q.data,
className:"ytAccordionItemViewModelToggleButton",onClick:X})}}))),_.T("div",{class:"ytAccordionItemViewModelContainer"},_.T("div",{class:_.Pw("ytAccordionItemViewModelContent",(d.ytAccordionItemViewModelExpandedSubtitle=function(){return b()},d)),
el:V,style:_.Qj({"max-height":function(){return g?"auto":b()?V.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!b()}},_.T(_.v,{cond:function(){return!F()},
then:function(){return _.T(_.oY,{text:function(){return f.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.T(_.xK,{data:function(){return f.data().content}},{horizontalShelfViewModel:function(Q){return _.T(_.jh,{data:Q.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Wc");_.xeN=_.oS(function(f){var S=_.m((0,_.gt$)(f.data)).next().value,B=function(){return f.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},G=function(){return B()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},g=_.m(_.hj(!0,void 0,"FVec2e")),b=g.next().value,z=g.next().value,X=function(){return G()&&b()},w=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){z(!b())}}},F=_.iF(function(){S().onTitleTap&&_.MB(S().onTitleTap||{})});
g={};return _.T("yt-accordion-view-model",{class:_.Pw("ytAccordionViewModelHost",(g.ytAccordionViewModelMinimized=function(){return X()},g)),
"data-target-id":function(){return f.data().targetId||""}},_.T(_.v,{cond:function(){return G()||!!S().title},
then:function(){return _.T("div",{class:"ytAccordionViewModelHeader"},_.T("div",{class:"ytAccordionViewModelTitleSection"},_.T("div",{class:"ytAccordionViewModelTitleWrapper"},_.T(_.v,{cond:function(){return!!f.data().headerIcon},
then:function(){return _.T(_.Y8,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var V;return(V=f.data().headerIcon)==null?void 0:V.iconType}})}}),_.T("div",{class:"ytAccordionViewModelTitle",
"on:click":F},_.T(_.oY,{className:"ytAccordionViewModelTitleText",text:function(){return S().title}})))),_.T("div",{class:"ytAccordionViewModelButtonSection"},_.T(_.v,{cond:G,
then:function(){return _.T(Be,{data:w,iconName:function(){return X()?"chevron_down":"chevron_collapse"}})}})))}}),_.T("div",{class:"ytAccordionViewModelContent"},_.T(_.xK,{data:function(){return S().contents}},{accordionItemViewModel:function(V){return _.T(Ov$,{data:V.data,
className:"ytAccordionViewModelRow",accordionStyle:B,hideIfNotExpanded:X,onCollapse:function(){return G()?(z(!0),!1):!0}})}})),_.T("div",null,_.T(_.v,{cond:function(){return!G()&&(!!S().disclaimerFooter||!!S().footer)},
then:function(){return _.T("div",{class:"ytAccordionViewModelFooter"},_.T(_.oY,{text:function(){return S().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.T(_.xK,{data:function(){return f.data().footer}},{flexibleActionsViewModel:function(V){return _.T(Yq,{data:V.data,
layout:0})}}))}})))},"Xc");_.eq(_.xeN,"yt-accordion-view-model",{props:{data:_.W4}});_.eq(_.oS(function(f){var S=null,B=null,G,g=(G=_.oy().resolve(_.fN(_.yU)))==null?void 0:G(),b=_.m(_.hj(!1,void 0,"EVXQGb"));G=b.next().value;var z=b.next().value;b=_.m(_.hj(!0,void 0,"W9FIJf"));var X=b.next().value,w=b.next().value,F=_.tE("textarea",function(E){_.Dp(264503,E,S,function(U){S=U})}),V=function(E){z(!0);
E={learningJourneyFormData:{query:E}};_.MB(f.data().searchEndpoint||{},{form:{formData:E}});return!1},J=_.iF(function(E){E.target.closest("button-view-model")&&z(!0)});
b=_.iF(function(){w(F.value.value.length===0)});
var P=_.iF(function(E){if(E.key==="Enter"&&!E.shiftKey&&!X()){var U=E.target;E.preventDefault();V(U.value)}}),d={},Q={},x={};
return _.T("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.T("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.T(_.f9,{data:function(){return f.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.T("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.T("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.T("div",{class:_.Pw("ytLearningJourneyZeroStateSearchBar",(d.ytLearningJourneyZeroStateSearchBarDark=g,d))},_.T("textarea",{class:_.Pw("ytLearningJourneyZeroStateTextInput",(Q.ytLearningJourneyZeroStateTextInputDark=g,Q)),el:F,"on:keyup":b,"on:keydown":P,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.T("div",{class:_.Pw("ytLearningJourneyZeroStateSearchButtonContainer",(x.ytLearningJourneyZeroStateSearchButtonContainerDark=g,x))},_.T(_.I8,{data:function(){return _.H(f.data().searchButton,_.Q5)},
className:"search-button",onClick:function(){return V(F.value.value)},
buttonOverrides:function(){return{disabled:X(),style:g?"mono-inverse":"mono",size:"XL"}}}))),_.T(_.v,{cond:function(){return!!f.data().errorBanner},
then:function(){return _.T("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.Sq(function(E){_.Dp(264617,E,B,function(U){B=U})})},_.T(_.xK,{data:function(){return f.data().errorBanner}},{alertBannerViewModel:function(E){return _.T(_.GkN,{data:E.data,
"client-ve-type":264617})}}))}})),_.T(_.v,{cond:G,
then:function(){return _.T("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.T(_.xK,{data:function(){return f.data().loader}},{learningJourneyLoaderViewModel:function(E){return _.T(_.YFm,{data:E.data})}}))},
else:function(){return _.T("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.T(_.v,{cond:function(){return!!f.data().learningJourneyShelf},
then:function(){return _.T("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.T("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return f.data().learningJourneySectionTitle}),_.T(_.xK,{data:function(){return f.data().learningJourneyShelf}},{horizontalShelfViewModel:_.jh}))}}),_.T("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.T("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return f.data().suggestedJourneySectionTitle}),
_.T("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":J},_.T(_.xK,{data:function(){return f.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(E){return _.T(Yq,{data:E.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"Yc"),"yt-learning-journey-zero-state",{props:{data:_.W4}});var ED$=_.oS(function(f){var S=f.data;return _.T("ytvl-live-leaderboard-item-action-content-view-model",{class:_.Pw("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.T(_.oY,{text:function(){var B;return(B=S())==null?void 0:B.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.T(_.xK,{data:function(){return S().actionButton}},{buttonViewModel:function(B){return _.T(_.I8,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:B.data})}}))},"Zc");var LA7=_.oS(function(f){var S=f.data;return _.T("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.Pw("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.T(_.oY,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var B;return(B=S())==null?void 0:B.displayName},
ellipsisTruncate:!0}),_.T(_.xK,{data:function(){return S().badge}},{buttonViewModel:function(B){return _.T(_.I8,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:B.data})}}))},"$c");_.eq(_.oS(function(f){var S=f.data;return _.T("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.T("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.T(_.oY,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var B;return(B=S())==null?void 0:B.rank}})),_.T("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.T(_.xK,{data:function(){return S().avatar}},{avatarViewModel:_.Ya})),_.T("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.T(_.xK,{data:function(){return S().content}},{liveLeaderboardItemChannelContentViewModel:LA7,
liveLeaderboardItemActionContentViewModel:ED$})),_.T(_.oY,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var B;return(B=S())==null?void 0:B.points}}))},"ad"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.W4}});_.eq(_.oS(function(f){var S=f.data;return _.T("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.T(_.oY,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var B,G;return(B=S())==null?void 0:(G=B.ranking)==null?void 0:G.rank}}),_.T("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.T(_.xK,{data:function(){return S().avatar}},{avatarViewModel:_.Ya})),_.T(_.oY,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var B,G;return(B=S())==null?void 0:(G=B.channelContent)==null?void 0:G.channelName}}),_.T(_.oY,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var B;return(B=S())==null?void 0:B.points}}))},"bd"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.W4}});var kk8=_.oS(function(f){f=_.lu(f,{wrapper:!1}).wrapper;return _.T(_.v,{cond:f,then:function(){return _.T("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.T("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.T("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"cd");
kk8.idomCompat=!0;var nD$=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],s1N=_.oS(function(f){var S=f.data;var B=_.tE("div"),G=_.vW(function(){return S().command},void 0,"tJY20c");
_.jp(function(){G()&&_.pH(G(),{form:{element:B.value}})},"qs6Sof");
return _.T("div",{el:B,class:"YtQrCodeRendererHostContainer"},_.T(_.v,{cond:function(){return S().qrCodeImage},
then:function(g){return _.T(_.f9,{data:g,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.T(_.v,{cond:function(){return S().spinner},
then:function(){return _.T(kk8,null)}})}}),_.T(_.v,{cond:function(){return S().label},
then:function(g){return _.T(_.oY,{text:g,className:"YtQrCodeRendererHostLabel"})}}),_.T(_.v,{cond:function(){return S().labels},
then:function(g){return _.T("div",{class:"YtQrCodeRendererHostLabels"},_.T(_.dg,{each:g},function(b){return _.T(_.oY,{text:b})}))}}))},"ed");_.eq(_.oS(function(f){var S=f.data;var B=_.vW(function(){return S().qrEntityKey},void 0,"joYCxd"),G=_.vW(function(){return S().deleteEntityOnDismiss},void 0,"x3yAde"),g=_.vW(function(){return S().command},void 0,"dJe1Re"),b=_.v8(vCx,B);
f=_.vW(function(){return S().qrCodeImage},void 0,"qM5dZe");
var z=_.vW(function(){return S().style&&nD$.includes(S().style)},void 0,"CaNEkf"),X=_.tE("yt-qr-code-renderer");
_.of(X,{visibilityCallback:function(w){w&&g()&&_.pH(g())},
showOption:{calledOnce:!0,state:"visible"}});_.j9(function(){_.Ov(function(){G()&&B()&&_.al().dispatch(_.KF("qrCodeEntity",B()))})});
return _.T("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:X},_.T(_.v,{cond:z,then:function(){return _.T(_.v,{cond:b,then:function(w){return _.T(s1N,{data:w})}})}}),_.T(_.v,{cond:f,
then:function(w){return _.T(_.f9,{data:w,alt:""})}}))},"dd"),"yt-qr-code-renderer",{props:{data:_.W4}});_.Deo=_.oS(function(f){var S=f.data;var B=f.topbarOffset;var G,g=((G=_.oy().resolve(_.fN(_.yU)))==null?void 0:G())||!1;return _.T("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var b=S();var z,X,w=g?(z=b.config)==null?void 0:z.darkThemeBackgroundColor:(X=b.config)==null?void 0:X.lightThemeBackgroundColor;b=w?_.pn(w):void 0;b="background-color: "+b+";";B!==void 0&&(b+="top: -"+B()+"px;");return b},
"aria-hidden":!0},_.T(_.v,{cond:function(){var b,z,X;return!!((b=S().backgroundImageConfig)==null?0:(z=b.image)==null?0:(X=z.sources)==null?0:X.length)},
then:function(){return _.T(_.f9,{data:function(){var b;return(b=S().backgroundImageConfig)==null?void 0:b.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.T("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+LO1(g,S().gradientColorConfig)+";"}}))},"fd");
_.Deo.idomCompat=!0;var Om=_.oS(function(f){var S=f.className;var B=f.data;var G=f.isOverlay;var g=f.maxLinesOverride;var b=f.useMediumText;f=_.tE("yt-description-preview-view-model");var z=function(){return B().alwaysShowTruncationText},X=function(){return B().truncationText},w=function(){return b!==void 0&&b()?"medium":"small"},F=function(){return G!==void 0&&G()?"overlay":"default"},V=function(){var x,E;
return(E=(x=_.H(B().rendererContext,_.H1))==null?void 0:x.label)!=null?E:""},J=_.m(_.hj(!1,void 0,"mkuWzb")),P=J.next().value,d=J.next().value;
_.a8(f,function(){return B().rendererContext});
J=_.iF(function(){B().expandOnTap&&d(!P());return!1});
var Q={};return _.T("yt-description-preview-view-model",{el:f,class:_.Pw("yt-description-preview-view-model-wiz",S,(Q["yt-description-preview-view-model-wiz--clickable"]=function(){var x;return!((x=_.H(B().rendererContext,XTQ))==null||!x.onTap)},Q["yt-description-preview-view-model-wiz--is-overlay"]=G,Q)),
"on:click":J},_.T(_.v,{cond:function(){return B().description},
then:function(x){return _.T(_.v,{cond:P,then:function(){var E={};return _.T("div",{class:_.Pw("yt-description-preview-view-model-wiz__description",(E["yt-description-preview-view-model-wiz__description--medium-text"]=b,E))},_.T(_.oY,{text:x}))},
else:function(){return _.T(beN,{text:x,alwaysShowTruncationText:z,truncationText:X,maxLines:function(){var E;return(E=g==null?void 0:g())!=null?E:B().maxLines},
textStyle:F,accessibilityLabel:V,textSize:w})}})}}))},"gd");
Om.idomCompat=!0;var IY1=_.oS(function(f){var S=f.data;var B=f.isOverlay;return _.T("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.T("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.T(_.xK,{data:function(){return S().header}},{sectionHeaderViewModel:function(G){return _.T(_.gt,{data:G.data,
isOverlay:B})}})),_.T("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.T(_.xK,{data:function(){return S().channelInfoButtons}},{flexibleActionsViewModel:Yq})),_.T("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.T(_.xK,{data:function(){return S().description}},{descriptionPreviewViewModel:function(G){return _.T(Om,{data:G.data,
isOverlay:B})}})))},"hd");
IY1.idomCompat=!0;var Ue$=_.oS(function(f){var S=f.data;var B={};return _.T("factoid-view-model",{class:_.Pw("ytwFactoidViewModelHost",(B.ytwFactoidViewModelHostOverlay=f.isOverlay,B))},_.T(_.oY,{text:function(){return S().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.T(_.oY,{text:function(){return S().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"id");
Ue$.idomCompat=!0;var CnN=_.oS(function(f){var S=f.data;var B=f.isOverlay;return _.T("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.T(_.xK,{data:function(){return S().factoids}},{factoidViewModel:function(G){return _.T(Ue$,{data:G.data,
isOverlay:B})}}))},"jd");
CnN.idomCompat=!0;_.pBm=_.oS(function(f){var S=f.data;var B=f.isOverlay;return _.T("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.T(_.xK,{data:function(){return S().items}},{channelInfoViewModel:function(G){return _.T("div",{class:"ytwCourseMetadataViewModelHostItem"},_.T(IY1,{data:G.data,
isOverlay:B}))},
coursePerksViewModel:function(G){return _.T("div",{class:"ytwCourseMetadataViewModelHostItem"},_.T(Hvv,{data:G.data,isOverlay:B}))},
descriptionPreviewViewModel:function(G){return _.T("div",{class:"ytwCourseMetadataViewModelHostItem"},_.T(Om,{data:G.data,isOverlay:B}))},
factoidsRowViewModel:function(G){return _.T("div",{class:"ytwCourseMetadataViewModelHostItem"},_.T(CnN,{data:G.data,isOverlay:B}))},
progressViewModel:function(G){return _.T("div",{class:"ytwCourseMetadataViewModelHostItem"},_.T(qFN,{data:G.data,isOverlay:B}))}}))},"kd");var A8m=_.oS(function(f){return _.T("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.T(_.xK,{data:function(){return f.data().content}},{courseMetadataViewModel:function(S){return _.T(_.pBm,{data:S.data,
isOverlay:f.isOverlay})},
progressViewModel:function(S){return _.T(qFN,{data:S.data})}}))},"ld");var N$8=_.oS(function(f){var S=f.data;f=f.className;var B=_.tE("yt-dynamic-text-view-model"),G=function(){var b;return _.ux((b=S())==null?void 0:b.rendererContext)},g={};
g=(g["dynamic-text-view-model-wiz"]=!0,g["dynamic-text-view-model-wiz--tappable"]=function(){return G()},g);
_.a8(B,function(){var b;return(b=S())==null?void 0:b.rendererContext});
return _.T("yt-dynamic-text-view-model",{el:B,role:function(){return G()?"link":void 0},
tabindex:function(){return G()?0:void 0},
class:_.Pw(f,g)},_.T("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var b,z,X;return(X=(z=_.H((b=S())==null?void 0:b.rendererContext,_.H1))==null?void 0:z.label)!=null?X:""}},_.T(_.oY,{text:function(){return S().text},
userInput:!0})))},"md");
N$8.idomCompat=!0;_.Mv6=_.oS(function(f){var S=f.data;var B=f.isPositionRelative;var G=_.us("yt-image-banner-view-model"),g=_.nh1("(max-width: 527.9px)"),b=function(){var z,X;return(X=(z=S())==null?void 0:z.style)!=null?X:"IMAGE_BANNER_STYLE_FULL_BLEED"};
f={};f=(f["yt-image-banner-view-model-wiz"]=!0,f["yt-image-banner-view-model-wiz--inset"]=function(){return sq1(b())},f["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.Ev(!0)&&!(B==null?0:B())},f["yt-image-banner-view-model-wiz--small-inset"]=function(){return sq1(b())&&g()},f["yt-image-banner-view-model-wiz--tappable"]=function(){var z;
return _.Ev(G.value)&&_.ux((z=S())==null?void 0:z.rendererContext)},f);
_.a8(G,function(){var z;return(z=S())==null?void 0:z.rendererContext});
return _.T("yt-image-banner-view-model",{el:G,class:_.Pw(f)},_.T(_.v,{cond:function(){var z;return(z=S())==null?void 0:z.image},
then:function(){return _.T(_.f9,{data:function(){return S().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.T(_.xK,{data:function(){var z;
return(z=S())==null?void 0:z.overlays}},{thumbnailHoverOverlayViewModel:Qa}))},"nd");
_.Mv6.idomCompat=!0;var ZvL;ZvL=_.oS(function(f){var S=f.condition;var B=f.content;return _.T(_.v,{cond:S,then:function(){return _.T("div",{class:"page-header-view-model-wiz__scroll-container"},B())},
else:function(){return B()}})},"od");
_.tv1=_.oS(function(f){var S=f.data;var B=f.noPadding;var G=f.enableBanner;var g=f.cinematicContainerTopbarOffset;var b=f.allowCinematicContainerOverflow;var z=f.displayAsSidebar;var X=f.displayAsPanel;var w=Ddx(),F=function(){return!!S().image||!!S().animatedImage},V=function(){return!!S().background},J=function(){return(z==null?0:z())||(X==null?0:X())?1:w()},P=function(){return J()===1},d=function(){return P()||J()===2},Q=function(){return J()===4},x=function(){var OV=S();
var rW=!!S().heroImage;var MA=J(),UV=I8N(S()),W7=z==null?void 0:z(),c7=!OV.metadata,Q$;if(Q$=rW?_.H(OV.heroImage,TUm):_.H(OV.animatedImage||OV.image,TUm)){OV=Q$.style;var To=Q$.layoutMode;if(To!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(Q$=PLW(Jnx(Q$)),rW)rW=kgj(MA,OV,To,Q$,W7);else b:if(c7)rW=MA===1?{size:48}:{size:72};else switch(MA){case 1:rW={size:72};break b;case 2:rW={size:120};break b;default:rW=UV<4?{size:120}:{size:160}}else rW=void 0}else rW={size:0};return rW};
f={};f=_.Pw((f["page-header-view-model-wiz"]=!0,f["page-header-view-model-wiz--no-padding"]=function(){return!(B==null||!B())},f["page-header-view-model-wiz--small-top-padding"]=function(){return P()&&!S().actions&&!(X==null?0:X())||J()===2&&!(F()||S().heroImage)},f["page-header-view-model-wiz--small-bottom-padding"]=function(){return d()&&!S().actions&&!(X==null?0:X())},f["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(b==null?0:b())},f["page-header-view-model-wiz--display-as-sidebar"]=
z,f));
var E={},U=_.Pw((E["page-header-view-model-wiz__page-header-headline"]=!0,E["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){var OV;return(OV=x())==null?void 0:OV.allowFullWidth},E)),A=function(){var OV;
return d()&&!((OV=x())==null?0:OV.allowFullWidth)},t=function(){return P()&&(!!S().heroImage||F())&&I8N(S())>0},M=function(){return t()&&(X==null?void 0:X())};
E={};var a=_.Pw((E["page-header-view-model-wiz__page-header-title"]=!0,E["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!t()},E["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return t()&&!M()},E["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=M,E["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=V,E));
E={};var l=_.Pw((E["page-header-view-model-wiz__page-header-headline-image"]=!0,E["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!S().heroImage&&d()},E));
E={};var mx=_.Pw((E["page-header-view-model-wiz__page-header-banner-container"]=G,E["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var OV;return(G==null?void 0:G())&&((OV=_.H(S().banner,_.VR$))==null?void 0:OV.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},E));
E={};var zj=_.Pw((E["page-header-view-model-wiz__page-header-content-metadata"]=!0,E["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=V,E));E={};var VN=_.Pw((E["page-header-view-model-wiz__page-header-flexible-actions"]=!0,E["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!S().metadata||d()},E["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!d()},E));
E={};var $Q=_.Pw((E["page-header-view-model-wiz__page-header-attribution"]=!0,E["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=V,E));return _.T("yt-page-header-view-model",{class:f},_.T(_.v,{cond:V,then:function(){return _.T("div",{class:"page-header-view-model-wiz__page-header-background"},_.T(_.xK,{data:function(){return S().background}},{cinematicContainerViewModel:function(OV){return _.T(_.Deo,{data:OV.data,
topbarOffset:g})}}))}}),_.T(ZvL,{condition:function(){return!(z==null||!z())},
content:function(){return _.T("div",{class:"page-header-view-model-wiz__page-header-content"},_.T(_.v,{cond:function(){return(G==null?void 0:G())&&S().banner},
then:function(){return _.T("div",{class:mx},_.T(_.xK,{data:function(){return S().banner}},{imageBannerViewModel:_.Mv6}))}}),_.T("div",{class:U},_.T(_.v,{cond:F,
then:function(){return _.T(_.xK,{data:function(){var OV;if(!(OV=S().animatedImage)){OV=S();if(F()){var rW=OV=Object.assign({},OV),MA=J(),UV=I8N(S()),W7=rW.image,c7=_.H(W7,Fk$),Q$=c7==null?void 0:c7.avatar,To=_.H(Q$,_.y5);if(W7&&Q$&&To){switch(MA){case 1:To.avatarImageSize="AVATAR_SIZE_XL";break;case 2:To.avatarImageSize="AVATAR_SIZE_XXL";break;default:UV<4?To.avatarImageSize="AVATAR_SIZE_XXL":To.avatarImageSize="AVATAR_SIZE_XXXL"}_.K("web_enable_sink_page_header_view_model")&&(_.nH(Q$,_.y5,Object.assign({},
To)),c7.avatar=Object.assign({},Q$),_.nH(W7,Fk$,Object.assign({},c7)),rW.image=Object.assign({},W7))}}OV=OV.image}return OV}},{contentPreviewImageViewModel:function(OV){return _.T(_.oC,{data:OV.data,
className:l,imageSizeConfig:x})},
decoratedAvatarViewModel:function(OV){return _.T(_.rn,{data:OV.data,className:l})}})}}),_.T(_.v,{cond:function(){return!!S().heroImage&&!A()},
then:function(){return _.T(_.xK,{data:function(){return S().heroImage}},{contentPreviewImageViewModel:function(OV){return _.T(_.oC,{data:OV.data,
className:l,imageSizeConfig:x})}})}}),_.T("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.T(_.v,{cond:function(){return!!S().heroImage&&A()},
then:function(){return _.T("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.T(_.xK,{data:function(){return S().heroImage}},{contentPreviewImageViewModel:function(OV){return _.T(_.oC,{data:OV.data,
className:l,imageSizeConfig:x})}}))}}),_.T(_.xK,{data:function(){return S().title}},{dynamicTextViewModel:function(OV){return _.T(N$8,{data:OV.data,
className:a})}}),_.T(_.xK,{data:function(){return S().metadata}},{contentMetadataViewModel:function(OV){return _.T(_.yP$,{data:OV.data,
layout:function(){return P()?1:0},
className:zj,isOverlay:V,useMediumText:Q})}}),_.T(_.v,{cond:function(){return S().description&&!P()},
then:function(){return _.T(_.xK,{data:function(){return S().description}},{descriptionPreviewViewModel:function(OV){return _.T(Om,{data:OV.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:V,maxLinesOverride:function(){return P()?void 0:1},
useMediumText:Q})}})}}),_.T(_.v,{cond:function(){return S().attribution&&!d()},
then:function(){return _.T(_.xK,{data:function(){return S().attribution}},{attributionViewModel:function(OV){return _.T(APX,{data:OV.data,
className:$Q,useMediumText:Q})}})}}),_.T(_.v,{cond:function(){return S().actions&&!d()},
then:function(){return _.T(_.xK,{data:function(){return S().actions}},{flexibleActionsViewModel:function(OV){return _.T(Yq,{data:OV.data,
layout:function(){return UdT(J())},
className:VN})}})}}))),_.T("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.T(_.v,{cond:function(){return S().description&&P()},
then:function(){return _.T(_.xK,{data:function(){return S().description}},{descriptionPreviewViewModel:function(OV){return _.T(Om,{data:OV.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:V,maxLinesOverride:function(){return P()?void 0:1},
useMediumText:Q})}})}}),_.T(_.v,{cond:function(){return S().attribution&&d()},
then:function(){return _.T(_.xK,{data:function(){return S().attribution}},{attributionViewModel:function(OV){return _.T(APX,{data:OV.data,
className:$Q,useMediumText:Q})}})}}),_.T(_.v,{cond:function(){return S().actions&&d()},
then:function(){return _.T(_.xK,{data:function(){return S().actions}},{flexibleActionsViewModel:function(OV){return _.T(Yq,{data:OV.data,
layout:function(){return UdT(J())},
className:VN})}})}})),_.T("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.T(_.xK,{data:function(){return S().bottomMetadataFlexibleContainer}},{flexibleContainer:function(OV){return _.T(A8m,{data:OV.data,
isOverlay:V})}})))}}))},"pd");
_.tv1.idomCompat=!0;_.eq(_.oS(function(f){var S=_.m(_.hj(!1,void 0,"j5qbkc")),B=S.next().value,G=S.next().value;return _.T("yt-official-card-view-model",{class:_.Pw("ytOfficialCardViewModelHost",f.className),style:_.Qj({"background-color":function(){var g,b=Nfs((g=f.data())==null?void 0:g.backgroundColor);return b?_.AK(b):void 0}})},_.T(_.xK,{data:function(){return f.data().header}},{pageHeaderViewModel:function(g){return _.T(_.tv1,{data:g.data,
noPadding:!0})}}),_.T(_.xK,{data:function(){return f.data().contents}},{horizontalShelfViewModel:function(g){return _.T(_.jh,{data:g.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.T(_.v,{cond:B,
then:function(){return _.T("div",{class:"ytOfficialCardViewModelExpandedContent"},_.T(_.xK,{data:function(){return f.data().expandedContents}},{horizontalShelfViewModel:function(g){return _.T(_.jh,{data:g.data,
sizing:"MINI"})}}),_.T("div",{class:"ytOfficialCardViewModelCollapseButton"},_.T(_.xK,{data:function(){return f.data().collapseButton}},{buttonViewModel:function(g){return _.T(_.I8,{data:g.data,
onClick:function(){G(!B())}})}})))},
else:function(){return _.T("div",{class:"ytOfficialCardViewModelExpandButton"},_.T(_.xK,{data:function(){return f.data().expandButton}},{buttonViewModel:function(g){return _.T(_.I8,{data:g.data,
onClick:function(){G(!B())}})}}))}}))},"qd"),"yt-official-card-view-model",{props:{data:_.W4,
className:_.W4}});var CDW=_.$K({buttonViewModel:_.I8});_.Su(pj9);_.TD(pj9,"ytw-search-friction-view-model",{propNames:["data"]});_.x4=_.oS(function(f){var S=_.tE("markdown-div"),B,G=(B=_.oy().resolve(_.fN(_.yU)))==null?void 0:B();_.jp(function(){var g=S.value;var b=new YV6,z=new Map(b.JSC$7346_sanitizerTable.globalAttributePolicies);z.set("style",{policyAction:4});b.JSC$7346_sanitizerTable=new qF(b.JSC$7346_sanitizerTable.allowedElements,b.JSC$7346_sanitizerTable.elementPolicies,b.JSC$7346_sanitizerTable.allowedGlobalAttributes,z,b.JSC$7346_sanitizerTable.globallyAllowedAttributePrefixes);var X=["data-time"];if(X===void 0)z=
new Set(b.JSC$7346_sanitizerTable.globallyAllowedAttributePrefixes),z.add("data-"),b.JSC$7346_sanitizerTable=new qF(b.JSC$7346_sanitizerTable.allowedElements,b.JSC$7346_sanitizerTable.elementPolicies,b.JSC$7346_sanitizerTable.allowedGlobalAttributes,b.JSC$7346_sanitizerTable.globalAttributePolicies,z);else{z=new Set(b.JSC$7346_sanitizerTable.allowedGlobalAttributes);X=_.m(X);for(var w=X.next();!w.done;w=X.next()){w=w.value;if(w.indexOf("data-")!==0)throw Error("ra`"+w);z.add(w)}b.JSC$7346_sanitizerTable=
new qF(b.JSC$7346_sanitizerTable.allowedElements,b.JSC$7346_sanitizerTable.elementPolicies,z,b.JSC$7346_sanitizerTable.globalAttributePolicies,b.JSC$7346_sanitizerTable.globallyAllowedAttributePrefixes)}z=new Set(b.JSC$7346_sanitizerTable.allowedGlobalAttributes);z.add("class");b.JSC$7346_sanitizerTable=new qF(b.JSC$7346_sanitizerTable.allowedElements,b.JSC$7346_sanitizerTable.elementPolicies,z,b.JSC$7346_sanitizerTable.globalAttributePolicies,b.JSC$7346_sanitizerTable.globallyAllowedAttributePrefixes);
_.pC(g,_.iMm(b.build(),NrG(f.text())));MVG(S.value)},"FI2gYe");
B={};return _.T("div",null,_.T("markdown-div",{class:_.Pw("ytwMarkdownDivHost",(B.ytwMarkdownDivDark=G,B.ytwMarkdownDivHostSmall=function(){var g;return((g=f.isSmallText)==null?void 0:g.call(f))||!1},B)),
el:S}))},"rd");
_.x4.idomCompat=!0;var uWN=_.oS(function(f){var S=f.imageData;var B=_.cF(f.isInList,!1),G=function(){return B()?{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 _.T("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.T(_.v,{cond:function(){return S().image},
then:function(g){return _.T(_.f9,{data:g,alt:function(){return G().alt},
contentMode:function(){return G().contentMode},
targetWidth:function(){return G().targetWidth},
targetHeight:function(){return G().targetHeight},
className:function(){return G().className}})}}),_.T("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.T("div",{class:_.Pw("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.T(_.oY,{text:function(){return S().title}})),_.T(_.dg,{each:function(){var g;
return(g=S().description)!=null?g:[]}},function(g){return _.T("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.T(Em,{content:g}))})))},"sd"),aYm=_.oS(function(f){var S=f.list;
var B=function(){var G;return(G=S().items)!=null?G:[]};
return _.T("div",{class:"ytwGenAiRichTextViewModelListContent"},_.T(_.v,{cond:function(){return S().title},
then:function(G){return _.T("div",{class:_.Pw("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.T(_.oY,{text:G}))}}),_.T(_.v,{cond:function(){return S().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.T("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.T(_.dg,{each:B},function(G){return _.T("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.T(Em,{content:G,isInList:!0}))}))}}),_.T(_.v,{cond:function(){return S().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.T("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.T(_.dg,{each:B},function(G){return _.T("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.T(Em,{content:G,isInList:!0}))}))}}),_.T(_.v,{cond:function(){return S().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.T("div",{class:"ytwGenAiRichTextViewModelImageList"},_.T(_.dg,{each:B},function(G){return _.T("div",{class:"ytwGenAiRichTextViewModelListItem"},_.T(Em,{content:G,isInList:!0}))}))}}))},"td"),y88=_.oS(function(f){var S=f.table;
return _.T("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.T("thead",null,_.T("tr",null,_.T(_.dg,{each:function(){var B,G;return(G=(B=S().header)==null?void 0:B.cells)!=null?G:[]}},function(B){return _.T("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.T(_.dg,{each:function(){return B.contents}},function(G){return _.T(Em,{content:G})}))}))),_.T("tbody",null,_.T(_.dg,{each:function(){var B;
return(B=S().rows)!=null?B:[]}},function(B){return _.T("tr",null,_.T(_.dg,{each:function(){return B.cells}},function(G){return _.T("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.T(_.dg,{each:function(){return G.contents}},function(g){return _.T(Em,{content:g})}))}))})))},"ud"),Em=_.oS(function(f){var S=f.content;
var B=_.cF(f.isInList,!1),G=function(){var g,b;return(b=(g=S().contentBlock)==null?void 0:g.contents)!=null?b:[]};
return _.T("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.T(_.v,{cond:function(){return S().text},
then:function(g){return _.T(_.oY,{className:"ytwGenAiRichTextViewModelText",text:g})}}),_.T(_.v,{cond:function(){return S().image},
then:function(g){return _.T(uWN,{imageData:g,isInList:B})}}),_.T(_.v,{cond:function(){return S().list},
then:function(g){return _.T(aYm,{list:g})}}),_.T(_.v,{cond:function(){return S().contentBlock},
then:function(){return _.T("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.T(_.dg,{each:G},function(g){return _.T(Em,{content:g,isInList:!1})}))}}),_.T(_.v,{cond:function(){return S().table},
then:function(g){return _.T(y88,{table:g})}}))},"vd"),WAo=_.oS(function(f){var S={};
S=_.K9("ytwGenAiRichTextViewModelHost",(S.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.gO("search_overview_link_style")),S));return _.T("gen-ai-rich-text-view-model",{class:S},_.T(Em,{content:function(){return f.data().content}}))},"wd");_.Su(Z$s);_.Su(py);_.c86=_.oS(function(f){var S=f.data;var B=function(){var x;return((x=S().loadingUi)!=null?x:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},G=function(){return S().isLoading&&(B()==="UNSPECIFIED"||B()==="GHOST_CARD")},g=function(){return!S().isLoading},b=function(){return!!S().content&&!S().contents},z=function(){return!!S().contents},X=function(){return!!S().nextQueryButtons},w=function(){return S().isLoading&&B()==="INVISIBLE"},F=function(){var x,E;
return(E=(x=S().headerIcon)==null?void 0:x.iconType)!=null?E:""},V=function(){var x;
return(x=S().content)!=null?x:""},J=function(){return!!S().sourcesSection},P,d=!((P=_.oy().resolve(_.fN(_.yU)))==null||!P()),Q=_.vW(function(){var x=[],E=S().contents;
if(E)for(var U=0;U<E.length;U++){var A=_.H(E&&E[U],HsL);A&&x.push(A)}return x},void 0,"ycU97e");
_.j9(function(){S().isLoading||_.kT("so_re",void 0,"search_overview_answer")});
return _.T("ytd-overview-answer-view-model",{class:function(){var x={};x=(x.ytdOverviewAnswerViewModelHost=!0,x.ytdOverviewAnswerViewModelDarkBackground=d&&!w(),x.ytdOverviewAnswerViewModelLightBackground=!d&&!w(),x);return _.K9(x)}},_.T(_.v,{cond:function(){return!w()},
then:function(){return _.T(_.gg,null,_.T("h2",null,_.T("div",{class:"ytdOverviewAnswerViewModelHeader"},_.T(_.v,{cond:F,then:function(x){return _.T("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.T(_.Y8,{icon:x}))}}),_.T("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.T("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return S().headerText}),_.T("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.T(_.oY,{text:function(){return S().headerSubtext}}))))),_.T(_.v,{cond:G,
then:function(){return Z$s()}}),_.T(_.v,{cond:g,
then:function(){return _.T(_.gg,null,_.T(_.v,{cond:b,then:function(){return _.T("div",{class:"ytdOverviewAnswerViewModelText"},_.T(_.x4,{text:V,isSmallText:!0}))}}),_.T(_.v,{cond:z,
then:function(){return _.T("div",{class:"ytdOverviewAnswerViewModelRichText"},_.T(_.dg,{each:Q},function(x){return _.T(WAo,{data:x})}))}}),_.T(_.v,{cond:X,
then:function(){return _.T("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.T(_.xK,{data:function(){return S().nextQueryButtons}},{buttonViewModel:function(x){return _.T(_.I8,{data:x.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.jh}))}}),_.T("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.T("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.T(_.v,{cond:function(){return!!_.H(S().likeButtonViewModel,_.kK)&&!!_.H(S().dislikeButtonViewModel,_.nF)},
then:function(){return _.T("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.T(_.jG,{data:function(){return _.H(S().likeButtonViewModel,_.kK)},
disableIconAnimation:!0}),_.T(_.rE,{data:function(){return _.H(S().dislikeButtonViewModel,_.nF)}}))}})),_.T(_.v,{cond:function(){var x;
return(x=S().sourcesSection)==null?void 0:x.headerText},
then:function(x){return _.T("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.T(_.oY,{text:x}))}})),_.T(_.v,{cond:J,
then:function(){return _.T("div",{class:"ytdOverviewAnswerViewModelSources"},_.T(_.xK,{data:function(){var x;return(x=S().sourcesSection)==null?void 0:x.sourcesShelf}},{buttonViewModel:_.I8,
horizontalShelfViewModel:function(x){return _.T(_.jh,{data:x.data,includeMargin:!0,hasPeek:!0})}}))}}),_.T(_.v,{cond:function(){return S().disclaimerText},
then:function(){return _.T("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.T(_.oY,{text:function(){return S().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"xd");var lYL=_.oS(function(f){var S=f.data;var B=f.active;var G=_.tE("transcript-segment-view-model");_.jp(function(){var g,b,z,X=((g=_.oy().resolve(_.fN(_.yU)))==null?0:g())?(b=S())==null?void 0:b.darkThemeColorPalette:(z=S())==null?void 0:z.lightThemeColorPalette;X&&(X.additiveBackground&&G.value.style.setProperty("--timestamp-active-background-color",_.AK(X.additiveBackground)),X.textSecondary&&G.value.style.setProperty("--timestamp-active-color",_.pn(X.textSecondary)))},"KHcbwb");
f={};return _.T("transcript-segment-view-model",{class:_.Pw("ytwTranscriptSegmentViewModelHost",(f.ytwTranscriptSegmentViewModelHostActive=B,f.ytwTranscriptSegmentViewModelHostModern=_.K("enable_timeline_view_modern_transcript")||_.K("enable_timeline_view_modern_transcript_fe"),f)),el:G},_.T(_.v,{cond:function(){var g;return(g=S())==null?void 0:g.timestamp},
then:function(g){var b={};return _.T("div",{class:_.Pw("ytwTranscriptSegmentViewModelTimestamp",(b.ytwTranscriptSegmentViewModelTimestampActive=B,b))},g)}}),_.T(_.oY,{text:function(){var g,b,z;
return(z=(g=S())==null?void 0:g.attributedText)!=null?z:{content:(b=S())==null?void 0:b.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"yd");var f16=_.oS(function(f){var S=f.data;return _.T("div",{class:"yt-video-attributes-section-view-model__header"},_.T("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return S().headerTitle}),_.T(_.v,{cond:function(){return S().headerSubtitle},
then:function(){return _.T("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return S().headerSubtitle})}}))},"zd"),oim=_.oS(function(f){function S(x){return Math.max(Math.min(x,0),F()-X())}
var B=f.data;var G,g=_.tE("div",function(x){if(_.K("web_metadata_carousel_elref_bugfix")){var E=function(){V(x.clientWidth)};
E();window.ResizeObserver&&(G=new ResizeObserver(E),G.observe(x))}}),b=_.tE("div",function(x){w(x.scrollWidth)}),z=_.m(_.hj(0,void 0,"I9GbH"));
f=z.next().value;z=z.next().value;var X=f,w=z;z=_.m(_.hj(0,void 0,"eQAn5b"));f=z.next().value;z=z.next().value;var F=f,V=z;f=_.m(_.hj(0,void 0,"VU3lg"));var J=f.next().value,P=f.next().value;_.j9(function(){if(!_.K("web_metadata_carousel_elref_bugfix")){var x=function(){w(b.value.scrollWidth);V(g.value.clientWidth)};
x();if(window.ResizeObserver){var E=new ResizeObserver(x);E.observe(g.value);_.Ov(function(){E.disconnect()})}}});
_.Ov(function(){if(_.K("web_metadata_carousel_elref_bugfix")){var x;(x=G)==null||x.disconnect()}});
var d=function(){P(S(J()+F()))},Q=function(){P(S(J()-F()))};
return _.T("yt-video-attributes-section-view-model",null,_.T("div",{class:"yt-video-attributes-section-view-model"},_.T(_.v,{cond:function(){return B().headerTitle},
then:function(){return _.T(f16,{data:B})}}),_.T("div",{class:_.Pw("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:g},_.T("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.Qj({transform:function(){var x=J();_.nL("HTML_DIR")==="rtl"&&(x*=-1);return"translateX("+x+"px)"}}),
el:b},_.T(_.xK,{data:function(){return B().videoAttributeViewModels}},{videoAttributeViewModel:mqX}))),_.T(_.xK,{data:function(){return B().footerButton}},{buttonViewModel:function(x){return _.T(_.I8,{data:x.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.T(_.v,{cond:function(){return J()<0&&B().previousButton},
then:function(){return _.T("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.T(_.xK,{data:function(){return B().previousButton}},{buttonViewModel:function(x){return _.T(_.I8,{data:x.data,
onClick:d})}}))}}),_.T(_.v,{cond:function(){return J()>F()-X()&&B().nextButton},
then:function(){return _.T("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.T(_.xK,{data:function(){return B().nextButton}},{buttonViewModel:function(x){return _.T(_.I8,{data:x.data,
onClick:Q})}}))}})))},"Ad");
oim.idomCompat=!0;var SxN=_.oS(function(f){var S=f.data;var B=f.active;var G={},g={};return _.T("timeline-item-view-model",{class:_.Pw("ytwTimelineItemViewModelHost",(G.ytwTimelineItemViewModelHostChapterChild=f.chapterChild,G.ytwTimelineItemViewModelModern=_.K("enable_timeline_view_modern_transcript")||_.K("enable_timeline_view_modern_transcript_fe"),G))},_.T("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.T("div",{class:_.Pw("ytwTimelineItemViewModelTimestamp",(g.ytwTimelineItemViewModelTimestampActive=
B,g))},function(){return S().timestamp})),_.T("div",{class:"ytwTimelineItemViewModelContentItems"},_.T(_.xK,{data:function(){return S().contentItems}},{transcriptSegmentViewModel:function(b){return _.T(lYL,{data:b.data,
active:B})},
videoAttributesSectionViewModel:oim})))},"Bd");var BBi=_.oS(function(f){var S=f.data;f={};return _.T("timeline-chapter-view-model",{class:_.Pw("ytwTimelineChapterViewModelHost")},_.T("div",{class:_.Pw("ytwTimelineChapterViewModelTitle",(f.ytwTimelineChapterViewModelModern=_.K("enable_timeline_view_modern_transcript")||_.K("enable_timeline_view_modern_transcript_fe"),f))},function(){return S().title}),_.T(_.xK,{data:function(){return S().contents}},{timelineItemViewModel:function(B){return _.T(SxN,{data:B.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(B){return _.T(oim,{data:B.data})}}))},"Cd");var GQo=_.oS(function(f){var S=f.data;var B=_.tE("macro-markers-panel-item-view-model"),G=_.v8(_.TdN,function(){var b;return(b=S().markersEngagementPanelSyncEntityKey)!=null?b:""}),g=function(){var b;
return((b=G())==null?void 0:b.activeItemIndex)===S().index};
f=_.iF(function(b){var z,X,w,F,V;return _.R(function(J){if(J.nextAddress==1)return b.stopPropagation(),_.ZP(_.Ml(b),B.value,["A".toString(),"BUTTON".toString()])?J.return():(z=_.CH(S().onTap))?_.h(J,_.wb(),2):J.return();X=J.yieldResult;F=(w=_.H(z,_.t2))==null?void 0:w.startTimeSeconds;F===void 0||(V=X)!=null&&V.seekTo(F,!0);_.TT(J)})});
return _.T("macro-markers-panel-item-view-model",{class:_.Pw("ytwMacroMarkersPanelItemViewModelHost",{"is-active":g}),el:B,"on:click":f,tabindex:0},_.T(_.xK,{data:function(){var b;return(b=S())==null?void 0:b.item}},{timelineChapterViewModel:function(b){return _.T(BBi,{data:b.data,
active:g})},
timelineItemViewModel:function(b){return _.T(SxN,{data:b.data,active:g})},
videoAttributeViewModel:mqX}))},"Dd");
GQo.idomCompat=!0;_.eq(GQo,"macro-markers-panel-item-view-model",{props:{data:_.W4}});_.eq(oim,"yt-video-attributes-section-view-model",{props:{data:_.W4}});var gii=_.oS(function(f){var S=function(){var B,G,g;return(g=(B=f.data().leadingLogoAccessibility)==null?void 0:(G=B.accessibilityData)==null?void 0:G.label)!=null?g:""};
return _.T("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.T(_.v,{cond:function(){return f.data().leadingLogo},
then:function(B){return _.T(_.f9,{className:"ytwFantasySectionHeaderViewModelLogo",data:B,alt:S})}}),_.T("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.T(_.oY,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return f.data().title}}),_.T(_.oY,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return f.data().subtitle}})),_.T(_.xK,{data:function(){return f.data().trailingButton}},{buttonViewModel:function(B){return _.T(_.I8,{data:B.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"Ed");var eam=_.oS(function(f){var S={};S=_.Pw("ytwFantasyTeamViewModelHost",(S.ytwFantasyTeamViewModelCompact=function(){var g;return!((g=f.compact)==null||!g.call(f))},S.ytwFantasyTeamViewModelUser=function(){return f.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},S.ytwFantasyTeamViewModelOpponent=function(){return f.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},S));
var B=function(){var g,b,z;return(z=(g=f.data().teamLogoAccessibility)==null?void 0:(b=g.accessibilityData)==null?void 0:b.label)!=null?z:""},G=_.v8(V5G,function(){return f.data().teamEntityKey});
return _.T("ytw-fantasy-team-view-model",{class:S},_.T(_.v,{cond:function(){return f.data().teamLogo},
then:function(g){return _.T(_.f9,{className:"ytwFantasyTeamViewModelLogo",data:g,alt:B})}}),_.T("div",{class:"ytwFantasyTeamViewModelMetadata"},_.T("div",{class:"ytwFantasyTeamViewModelHeader"},_.T(_.oY,{className:"ytwFantasyTeamViewModelScore",
text:function(){var g;return(g=G())==null?void 0:g.score}}),_.T(_.Y8,{icon:function(){var g;
return(g=G())==null?void 0:g.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.T(_.oY,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var g;return(g=G())==null?void 0:g.projectedScore}})),_.T(_.oY,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return f.data().primaryText}}),_.T(_.oY,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return f.data().secondaryText}}),_.T(_.oY,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return f.data().tertiaryText}})),_.T(_.oY,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var g;return(g=G())==null?void 0:g.score}}))},"Fd");_.eq(_.oS(function(f){return _.T("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.T("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.T(_.xK,{data:function(){return f.data().summaryHeader}},{fantasySectionHeaderViewModel:gii})),_.T(_.xK,{data:function(){return f.data().userTeam}},{fantasyTeamViewModel:eam}),_.T(_.xK,{data:function(){return f.data().opponentTeam}},{fantasyTeamViewModel:eam}))},"Gd"),"fantasy-league-summary-view-model",{props:{data:_.W4}});var bK7=_.oS(function(f){var S=_.lu(f,{shape:{},useCustomTabRenderable:!1}),B=S.shape;S=S.useCustomTabRenderable;var G=f.customTabRenderable,g=function(){return B().disabled},b=function(){return B().selected},z=function(){return B().title},X=function(){return B().icon},w=_.tE("yt-tab-shape");
f=_.iF(function(J){var P;if(!g()&&((P=B().aTagConfig)==null?0:P.onclick))B().aTagConfig.onclick(J);return!1});
var F=_.iF(function(J){if(J.key==="Enter"||J.key==="ArrowUp"||J.key==="ArrowDown")J.preventDefault(),w.value.click();return!1}),V={};
return _.T("yt-tab-shape",{class:_.Pw("yt-tab-shape-wiz",function(){return B().className},(V["yt-tab-shape-wiz__tab--last-tab"]=function(){return B().isLastTab},V["yt-tab-shape-wiz--host-disabled"]=g,V["yt-tab-shape-wiz--host-clickable"]=!G,V)),
role:G?void 0:"tab","aria-selected":b!=null?b:!1,"aria-disabled":g,tabindex:G?void 0:0,"on:click":f,"on:keydown":F,el:w,"tab-identifier":function(){return B().identifier},
"tab-title":z},_.T(_.v,{cond:S,then:function(){return G()},
else:function(){var J={},P={};return _.T(_.gg,null,_.T("div",{class:_.Pw("yt-tab-shape-wiz__tab",(J["yt-tab-shape-wiz__tab--tab-selected"]=b,J))},_.T(_.v,{cond:X,then:function(d){return _.T(_.Y8,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return d().iconType}})}}),z),_.T("div",{class:_.Pw("yt-tab-shape-wiz__tab-bar",(P["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=b,P))}))}}))},"Hd");
bK7.idomCompat={callbacks:{customTabRenderable:!0}};_.za1=_.oS(function(f){var S=f.shape;f=_.m(_.hj(48,void 0,"r9IBlb"));var B=f.next().value,G=f.next().value;f=_.m(_.hj(0,void 0,"Bd7rmd"));var g=f.next().value,b=f.next().value,z=function(){return S().tabs},X=_.tE("yt-tab-group-shape"),w=function(){var F,V;
return(V=(F=z())==null?void 0:F.findIndex(function(J){return J.selected}))!=null?V:-1};
_.j9(function(){var F=X.value.querySelectorAll("yt-tab-shape"),V=w()>-1?F[w()]:void 0;_.xJ.addJob(function(){G((V==null?void 0:V.getBoundingClientRect().width)||0)},8,0)});
_.jp(function(){var F=w(),V=_.xJ.addJob(function(){var J,P=((J=X.value)==null?void 0:J.querySelectorAll("yt-tab-shape"))||[],d;G(((d=F>-1?P[F]:void 0)==null?void 0:d.getBoundingClientRect().width)||0);for(d=J=0;d<F;d++)J+=P[d].offsetWidth+24;_.nL("HTML_DIR")==="rtl"&&(J=-J);b(J)},8,0);
_.Ov(function(){_.xJ.cancelJob(V)})},"EHixkc");
f={};return _.T("yt-tab-group-shape",{class:_.Pw("yt-tab-group-shape-wiz",(f["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return S().isOverflowHidden},f)),
el:X},_.T(_.v,{cond:z,then:function(F){return _.T(_.gg,null,_.T("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.T(_.dg,{each:F},function(V,J){return _.T(bK7,{shape:function(){return Object.assign({},V,{isLastTab:J()===F().length-1})},
customTabRenderable:V.customTabRenderable,useCustomTabRenderable:!!V.customTabRenderable})})),_.T(m0j,{width:B,
sliderOffset:g}))}}))},"Id");
_.za1.idomCompat=!0;var m0j=_.oS(function(f){var S=_.cF(f.sliderOffset,0),B=f.width;return _.T("div",{class:"yt-tab-group-shape-wiz__slider",style:_.Qj({width:function(){return B()+"px"},
transform:function(){return"translateX("+S()+"px)"}})})},"Jd");var Ra6=_.oS(function(f){var S=function(){var b,z,X;return(X=(b=f.data().playerLogoAccessibility)==null?void 0:(z=b.accessibilityData)==null?void 0:z.label)!=null?X:""},B=_.v8(JwA,function(){return f.data().playerEntityKey}),G={};
G=_.Pw("ytwFantasyPlayerViewModelHost",(G.ytwFantasyPlayerViewModelPlaying=function(){var b;return!((b=B())==null||!b.isPlayerPlaying)},G.ytwFantasyPlayerViewModelOnField=function(){var b;
return((b=B())==null?void 0:b.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},G.ytwFantasyPlayerViewModelRedZone=function(){var b;
return((b=B())==null?void 0:b.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},G));
var g=function(){var b,z,X,w=((b=_.oy().resolve(_.fN(_.yU)))==null?0:b())?(z=f.data().playerLogoBackgroundColor)==null?void 0:z.darkTheme:(X=f.data().playerLogoBackgroundColor)==null?void 0:X.lightTheme;return w===void 0?"":_.AK(w)};
return _.T("ytw-fantasy-player-view-model",{class:G},_.T(_.v,{cond:function(){return f.data().playerLogo},
then:function(b){return _.T("div",{class:"ytwFantasyPlayerViewModelLogo"},_.T("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.T(_.f9,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.Qj({"background-color":g}),data:b,alt:S})),_.T("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.T(_.Y8,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.T("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.T("div",{class:"ytwFantasyPlayerViewModelHeader"},_.T(_.oY,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var b;return(b=f.data())==null?void 0:b.playerNameText}}),_.T(_.oY,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var b;return(b=f.data())==null?void 0:b.playerDescriptionText}})),_.T("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.T(_.oY,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var b;return(b=B())==null?void 0:b.gamePeriodText}}),_.T(_.oY,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var b;return(b=f.data())==null?void 0:b.opponentTeamText}}),_.T(_.oY,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var b;return(b=B())==null?void 0:b.gameStatusText}}),_.T(_.oY,{className:_.Pw("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var b;return(b=B())==null?void 0:b.playerStatusText}})),_.T("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.T(_.oY,{text:function(){var b;
return(b=B())==null?void 0:b.playerStatsText}}))),_.T(_.oY,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var b;return(b=B())==null?void 0:b.fantasyScore}}))},"Kd");var X6j=_.oS(function(f){return _.T("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.T(_.v,{cond:function(){return f.data().players},
then:function(S){return _.T(_.xK,{data:S},{fantasyPlayerViewModel:Ra6})}}))},"Ld");var w6i=_.oS(function(f){var S=_.m(_.$8(function(){var g;return(g=f.data().selectedTabIdentifierKey)!=null?g:""})),B=S.next().value,G=S.next().value;
_.Y5(function(){var g;(g=f.setSelectedTabSignal)==null||g.call(f,B)});
return _.T("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.T("div",{class:"ytTabbedViewModelTabGroup"},_.T(_.za1,{shape:function(){var g=f.data(),b=[],z={tabs:b};if(!g.tabs)return z;g=_.m(g.tabs);for(var X=g.next(),w={};!X.done;w={tabViewModel:void 0},X=g.next())if(w.tabViewModel=_.H(X.value,Lkg),w.tabViewModel){var F=X=void 0;b.push({aTagConfig:{onclick:function(V){return function(){var J;G((J=V.tabViewModel.tabIdentifier)!=null?J:"")}}(w)},
identifier:w.tabViewModel.tabIdentifier,selected:B()===w.tabViewModel.tabIdentifier,title:(F=(X=w.tabViewModel.title)==null?void 0:X.content)!=null?F:""})}return z}})),_.T(_.xK,{data:function(){var g,b=_.m((g=f.data().tabs)!=null?g:[]);
for(g=b.next();!g.done;g=b.next())if((g=_.H(g.value,Lkg))&&g.tabIdentifier===B())return g.content}},{fantasyRosterViewModel:X6j}))},"Md");_.eq(_.oS(function(f){var S=_.m(tV1()),B=S.next().value,G=S.next().value;return _.T("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.T(_.oY,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return f.data().title}}),_.T(_.v,{cond:function(){return f.data().tabbedViewModel},
then:function(g){return _.T(_.xK,{data:g},{tabbedViewModel:function(b){return _.T(w6i,{data:b.data,setSelectedTabSignal:G})}})}}),_.T(_.v,{cond:function(){var g,b=(g=_.H(f.data().tabbedViewModel,k91))==null?void 0:g.tabs;
g=_.H(b==null?void 0:b[0],Lkg);b=_.H(b==null?void 0:b[1],Lkg);var z=g==null?void 0:g.tabIdentifier;if(B()===z){var X,w;if(!((X=_.H(g==null?void 0:g.content,EU6))==null?0:(w=X.players)==null?0:w.length))return f.data().noUserTeamPlayersText}else{var F,V;if(!((F=_.H(b==null?void 0:b.content,EU6))==null?0:(V=F.players)==null?0:V.length))return f.data().noOpponentTeamPlayersText}},
then:function(g){return _.T(_.oY,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:g})}}))},"Nd"),"ytw-fantasy-matchup-view-model",{props:{data:_.W4}});_.eq(_.oS(function(f){return _.T("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.T(_.oY,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return f.data().title}}),_.T(_.v,{cond:function(){return f.data().matchupTeamPairs},
then:function(S){return _.T(_.dg,{each:S,keyBy:"INDEX"},function(B){return _.T("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.T(_.xK,{data:function(){return[B().firstTeam,B().secondTeam]}},{fantasyTeamViewModel:function(G){return _.T(eam,{data:G.data,
compact:!0})}}))})}}))},"Od"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.W4}});_.eq(_.oS(function(f){var S=function(){var g,b,z;return(z=(g=f.data().userLogoAccessibility)==null?void 0:(b=g.accessibilityData)==null?void 0:b.label)!=null?z:""},B=function(){var g,b,z;
return(z=(g=f.data().opponentLogoAccessibility)==null?void 0:(b=g.accessibilityData)==null?void 0:b.label)!=null?z:""},G=_.v8(Fq1,function(){return f.data().entityKey});
return _.T("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.T("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.T(_.v,{cond:function(){return f.data().userLogo},
then:function(g){return _.T(_.f9,{className:"ytwFantasyWinProbabilityViewModelLogo",data:g,alt:S})}}),_.T("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.T(_.oY,{text:function(){return f.data().title}})),_.T(_.v,{cond:function(){return f.data().opponentLogo},
then:function(g){return _.T(_.f9,{className:"ytwFantasyWinProbabilityViewModelLogo",data:g,alt:B})}})),_.T("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.T("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.T(_.oY,{text:function(){var g;
return(g=G())==null?void 0:g.userWinNumberLabel}})),_.T("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.T("div",{class:_.Pw("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.Qj({flex:function(){var g,b;return(b=(g=G())==null?void 0:g.userWinNumber)!=null?b:50}})}),_.T("div",{class:_.Pw("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.Qj({flex:function(){var g,b;return(b=(g=G())==null?void 0:g.opponentWinNumber)!=null?b:50}})})),_.T("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.T(_.oY,{text:function(){var g;
return(g=G())==null?void 0:g.opponentWinNumberLabel}}))))},"Pd"),"fantasy-win-probability-view-model",{props:{data:_.W4}});_.Dd("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var Lw=function(){var f=_.I.apply(this,arguments)||this;f.darkerPanels=_.K("web_watch_darker_panels");f.commentsHidePanelButton=!1;f.isWatchGrid=!1;f.continuationShowButton=!1;f.isSearch=!1;f.isConstrainedList=!1;f.isWatch=!1;f.eligibleToSwitchToGrid=!1;f.notSticky=!1;f.epRestyle=!1;f.isCarouselInFeed=!0;f.topSpacingZero=!1;f.continuationIsInitialLoad=!0;f.enableSqueezebackPanels=_.K("web_shorts_enable_squeezeback_panels");f.enableAnchoredPanel=_.K("desktop_shorts_v2_anchored_panel");f.mastheadHeight=
0;f.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};f.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return f};
_.q(Lw,_.I);_.e=Lw.prototype;_.e.updateLockupContainerTypes=function(f){if(this.eligibleToSwitchToGrid){var S;(S=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||S.forEach(function(B){B.containerType=f})}};
_.e.getItemsPath=function(){return"data.contents"};
_.e.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.e.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:_.K("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.K("kevlar_low_priority_continuation")}}};
_.e.created=function(){this.JSC$14569_cachedViewportHeight=_.nL("initialInnerHeight")||window.innerHeight};
_.e.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.e.handleIntersect=function(f){this.notSticky=f[0].intersectionRatio===1};
_.e.attached=function(){var f=this;document.addEventListener("scroll",_.Fc(this,this.updateHeaderState));var S;this.mastheadHeight=((S=document.querySelector("ytd-masthead"))==null?void 0:S.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(B){f.handleIntersect(B)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){f.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.e.detached=function(){document.removeEventListener("scroll",_.Fc(this,this.updateHeaderState));var f;(f=this.intersectionObserver)==null||f.disconnect();var S;(S=this.resizeObserver)==null||S.disconnect()};
_.e.updated=function(f){f.has("data")&&this.updateHeaderState()};
_.e.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(yl1(!this.notSticky))};
_.e.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var f=_.m9(this.hostElement).querySelector("ytd-comments-header-renderer");f&&(f.hidePanelButton=this.commentsHidePanelButton)}};
_.e.onRetrieveLocation=function(f,S){this.containsComments()&&(this.firstCommentsLoaded=S.hasComments=!0)};
_.e.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.e.onLoadReloadContinuation=function(f,S){var B=this;f.stopPropagation();this.isReloading=!0;_.ew(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(G){var g=_.oy().resolve(_.st);G=S(G);g.postData(G).then(function(b){B.onReloadContinuationData(b)})}})};
_.e.onReloadContinuationData=function(f){if(f=this.get("response.continuationContents.itemSectionContinuation",f)||this.get("response.contents.itemSectionRenderer",f)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",f)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",f))this.set("data.contents",f.contents||f.results),f.header&&this.set("data.header",f.header),this.set("data.continuations",
f.continuations||[]);this.isReloading=!1};
_.e.computeContentsClass=function(f){return f?"reloading":""};
_.e.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.e.computeSectionIdentifier=function(f){return f==null?void 0:f.sectionIdentifier};
_.e.computeFitContainer=function(f){return(f==null?void 0:f.sectionIdentifier)==="youchat-item-section"};
_.e.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.K("kevlar_disable_comments_auto_load")};
_.e.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.e.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.e.computeHasDestinationShelfRenderer=function(f){var S,B;return!!(f==null?0:(S=f.contents)==null?0:(B=S[0])==null?0:B.destinationShelfRenderer)};
_.e.computeHasSectionGroupViewModel=function(f){var S,B;return!!(f==null?0:(S=f.contents)==null?0:(B=S[0])==null?0:B.sectionGroupViewModel)};
_.e.computeHasQrCodeRenderer=function(f){var S,B;return!!(f==null?0:(S=f.contents)==null?0:(B=S[0])==null?0:B.qrCodeRenderer)};
_.e.computeStaticCommentsHeader=function(f){return f&&this.containsComments()};
_.e.computeEpRestyle=function(f){return _.K("web_ep_restyling")&&f&&this.containsComments()};
_.e.computeIsContinuationCommentSection=function(f){return(f==null?void 0:f.targetId)==="shorts-engagement-panel-comments-section"||(f==null?void 0:f.targetId)==="comments-section"||(f==null?void 0:f.targetId)==="engagement-panel-comments-section"};
_.e.computeSuppressPaddingDisclaimer=function(){var f,S,B,G;return!!((f=this.data)==null?0:(S=f.contents)==null?0:(B=S[0])==null?0:(G=B.productListHeaderRenderer)==null?0:G.suppressPaddingDisclaimer)};
_.e.computeHeaderStyle=function(f){switch(f==null?void 0:f.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.e.dataChanged=function(){this.firstCommentsLoaded=!1};
_.e.observeDataContentsLength=function(){var f,S;((f=this.data)==null?0:(S=f.contents)==null?0:S.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.e.onYtDismissibleItemDismissedChange=function(f){this._setItemDismissed(f.type==="yt-dismissible-item-dismissed")};
_.e.triggerContinuations=function(){for(var f=_.m9(this.hostElement).querySelector("#continuations").children,S=0;S<f.length;S++)f[S].trigger()};
_.e.triggerInitialContinuations=function(){for(var f=_.m9(this.hostElement).querySelector("#continuations").children,S=0;S<f.length;S++)f[S].triggerIfNotPreviouslyTriggered()};
_.e.handleYtItemSectionContinuation=function(f,S){var B;S&&((B=this.data)==null?void 0:B.sectionIdentifier)!==S||(this.set("data.continuations",[f]),this.triggerContinuations())};
_.e.handleYtItemSectionReplace=function(f,S){var B;S&&((B=this.data)==null?void 0:B.sectionIdentifier)!==S||(this.set("data.contents",f),this.set("data.continuations",[]))};
_.e.computeUseHeightHack=function(f){return f&&!_.K("kevlar_disable_height_hack")};
_.e.computeTopSpacingZero=function(f){return f};
_.e.continuationShowButtonChanged=function(){var f=_.m9(this.hostElement).querySelector("ytd-continuation-item-renderer");f&&(f.showButton=this.continuationShowButton)};
_.e.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AW("data-changed",this.data))};
_.y3.Object.defineProperties(Lw.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.K("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 f,S,B;return!!((f=this.data)==null?0:(S=f.contents)==null?0:(B=S[0])==null?0:B.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var f,S,B,G,g,b,z;return!!((f=this.data)==null?0:(S=f.contents)==null?0:(B=S[0])==null?0:(G=B.shelfRenderer)==null?0:(g=G.content)==null?0:(b=g.gridRenderer)==null?0:(z=b.targetId)==null?0:z.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var f,S,B;return!!((f=this.data)==null?0:(S=f.contents)==null?0:(B=S[0])==null?0:B.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var f,S,B;return!!((f=this.data)==null?0:(S=f.contents)==null?0:(B=S[0])==null?0:B.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.gO("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.K("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.K("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){if(this.isSearchDova)return Math.ceil((this.JSC$14569_cachedViewportHeight-130)/150)},
set:function(){}}});
Lw.prototype.dataChangedForBinding=Lw.prototype.dataChangedForBinding;Lw.prototype.continuationShowButtonChanged=Lw.prototype.continuationShowButtonChanged;Lw.prototype.onYtDismissibleItemDismissedChange=Lw.prototype.onYtDismissibleItemDismissedChange;Lw.prototype.observeDataContentsLength=Lw.prototype.observeDataContentsLength;Lw.prototype.dataChanged=Lw.prototype.dataChanged;Lw.prototype.onServiceRequestCompleted=Lw.prototype.onServiceRequestCompleted;Lw.prototype.onLoadReloadContinuation=Lw.prototype.onLoadReloadContinuation;
Lw.prototype.onRetrieveLocation=Lw.prototype.onRetrieveLocation;Lw.prototype.commentsHidePanelButtonChanged=Lw.prototype.commentsHidePanelButtonChanged;Lw.prototype.dispatchChipBarIsSticky=Lw.prototype.dispatchChipBarIsSticky;Lw.prototype.updateLockupContainerTypes=Lw.prototype.updateLockupContainerTypes;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],Lw.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Lw.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Lw.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.ff.YtLazyListBehavior),_.Z("design:type",Object)],Lw.prototype,"ytLazyListBehavior",void 0);_.N([_.r(_.Ny.YtNextContinuationBehavior),_.Z("design:type",Object)],Lw.prototype,"ytNextContinuationBehavior",void 0);
_.N([_.r(_.Ak),_.Z("design:type",Object)],Lw.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Lw.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],Lw.prototype,"ytdReduxBehavior",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Lw.prototype,"darkerPanels",void 0);_.N([_.n(),_.Z("design:type",Object)],Lw.prototype,"data",void 0);
_.N([_.n(),_.Z("design:type",Boolean)],Lw.prototype,"engagementPanel",void 0);_.N([_.n(),_.Z("design:type",Object)],Lw.prototype,"commentsHidePanelButton",void 0);_.N([_.n(),_.Z("design:type",Object)],Lw.prototype,"isWatchGrid",void 0);_.N([_.n(),_.Z("design:type",Object)],Lw.prototype,"continuationShowButton",void 0);_.N([_.n({computed:"computeIsContinuationCommentSection(data)"}),_.Z("design:type",Boolean)],Lw.prototype,"continuationIsCommentsSection",void 0);
_.N([_.n({value:!0}),_.Z("design:type",Boolean)],Lw.prototype,"autoFill",void 0);_.N([_.n(),_.Z("design:type",Boolean)],Lw.prototype,"continuationDisablePrescanVisibility",void 0);_.N([_.n(),_.Z("design:type",Boolean)],Lw.prototype,"isReloading",void 0);_.N([_.n(),_.Z("design:type",Object)],Lw.prototype,"isSearch",void 0);_.N([_.n(),_.Z("design:type",Object)],Lw.prototype,"isConstrainedList",void 0);_.N([_.n(),_.Z("design:type",Object)],Lw.prototype,"isWatch",void 0);
_.N([_.n(),_.Z("design:type",Object)],Lw.prototype,"eligibleToSwitchToGrid",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Lw.prototype,"notSticky",void 0);_.N([_.n({selector:_.AD}),_.Z("design:type",Object)],Lw.prototype,"isGridViewEnabled",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.Z("design:type",Object)],Lw.prototype,"epRestyle",void 0);
_.N([_.k("isWatch"),_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Lw.prototype,"hideShortsShelfHeader",null);_.N([_.k("isSearch","isWatch"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Lw.prototype,"thumbnailWidth",null);_.N([_.k("isSearch","isWatch"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Lw.prototype,"sizing",null);
_.N([_.k("isWatch","isGridViewEnabled","data"),_.n({reflectToAttribute:!0}),_.Z("design:type",Number),_.Z("design:paramtypes",[])],Lw.prototype,"lockupContainerType",null);_.N([_.JO("lockupContainerType","data"),_.Z("design:type",Function),_.Z("design:paramtypes",[Number]),_.Z("design:returntype")],Lw.prototype,"updateLockupContainerTypes",null);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",String)],Lw.prototype,"pageSubtype",void 0);
_.N([_.n({computed:"computeContainerWidth()"}),_.Z("design:type",Number)],Lw.prototype,"containerWidth",void 0);_.N([_.n(),_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Lw.prototype,"isPlaylist",null);_.N([_.n(),_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Lw.prototype,"isClipList",null);_.N([_.n(),_.Z("design:type",Object)],Lw.prototype,"isCarouselInFeed",void 0);
_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Lw.prototype,"isPlaylistVideoContainer",null);_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Lw.prototype,"isSearchFrictionPage",null);_.N([_.n({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.Z("design:type",Boolean)],Lw.prototype,"useHeightHack",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.Z("design:type",Object)],Lw.prototype,"topSpacingZero",void 0);_.N([_.n({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.Z("design:type",Boolean)],Lw.prototype,"showButton",void 0);_.N([_.n(),_.Z("design:type",Boolean)],Lw.prototype,"firstCommentsLoaded",void 0);_.N([_.n(),_.Z("design:type",Object)],Lw.prototype,"continuationIsInitialLoad",void 0);
_.N([_.n(),_.Z("design:type",Boolean)],Lw.prototype,"isSearchDova",void 0);_.N([_.n({reflectToAttribute:!0,readOnly:!0}),_.Z("design:type",Boolean)],Lw.prototype,"itemDismissed",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.Z("design:type",String)],Lw.prototype,"sectionIdentifier",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.Z("design:type",String)],Lw.prototype,"fitContainer",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.Z("design:type",Boolean)],Lw.prototype,"hasDestinationShelfRenderer",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.Z("design:type",Boolean)],Lw.prototype,"staticCommentsHeader",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Lw.prototype,"enableSqueezebackPanels",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Lw.prototype,"enableAnchoredPanel",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.Z("design:type",Boolean)],Lw.prototype,"hasSectionGroupViewModel",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.Z("design:type",Boolean)],Lw.prototype,"hasQrCodeRenderer",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.Z("design:type",Boolean)],Lw.prototype,"suppressDisclaimerSeparator",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.Z("design:type",String)],Lw.prototype,"headerStyle",void 0);_.N([_.k("isSearch"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Lw.prototype,"lockupExperiments",null);
_.N([_.k("isSearch"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Lw.prototype,"typographyBump",null);_.N([_.vF("#header"),_.Z("design:type",HTMLElement)],Lw.prototype,"header",void 0);_.N([_.JO("notSticky"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Lw.prototype,"dispatchChipBarIsSticky",null);
_.N([_.JO("commentsHidePanelButton"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Lw.prototype,"commentsHidePanelButtonChanged",null);_.N([_.Vg("yt-retrieve-location"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],Lw.prototype,"onRetrieveLocation",null);
_.N([_.Vg("yt-load-reload-continuation"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Function]),_.Z("design:returntype")],Lw.prototype,"onLoadReloadContinuation",null);_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Lw.prototype,"onServiceRequestCompleted",null);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Lw.prototype,"dataChanged",null);
_.N([_.HF("data.contents.length"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Lw.prototype,"observeDataContentsLength",null);_.N([_.Vg("yt-dismissible-item-dismissed"),_.Vg("yt-dismissible-item-undismissed"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],Lw.prototype,"onYtDismissibleItemDismissedChange",null);
_.N([_.JO("continuationShowButton"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Lw.prototype,"continuationShowButtonChanged",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Lw.prototype,"dataChangedForBinding",null);_.N([_.C({is:"ytd-item-section-renderer",disableElementRegistration:!0})],Lw);
_.p(Lw,"ytd-item-section-renderer",function(){if(LP7!==void 0)return LP7;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return LP7=f},{mode:1});var ha8;var l8M=_.uC(_.Jf("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var umM={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"};var TBm={},cCx=(TBm[0]={title:_.B2(_.Jf("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.B2(_.Jf("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:oc("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},TBm[1]={title:_.B2(_.Jf("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:oc("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},TBm);_.Dd("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var k4=function(){var f=_.I.apply(this,arguments)||this;f.allVideosCount=0;f.allPlaylistCount=0;f.isOnline=!1;f.shouldRenderDownloadsBanner=!1;f.shouldRenderDownloadsBannerUpsell=!1;f.hasOptedIntoSmartDownloads=!1;f.areAllSmartDownloadsDeleted=!1;f.smartDownloadsCompleted=!1;return f};
_.q(k4,_.I);k4.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
k4.prototype.attached=function(){this.downloadsToRenderChanged()};
k4.prototype.detached=function(){this.set("renderableData",{})};
k4.prototype.downloadsToRenderChanged=function(){var f=_.W2().getState().entities,S=_.r9(f),B=_.K("kevlar_playlist_dl_page_killswitch")?ofx(f):_.jf(f),G=_.y5M(f),g,b,z,X=(z=(b=((g=f.downloadsPageViewConfigurationEntity)!=null?g:{})[_.Yr])==null?void 0:b.downloadsUpsellBannerVisibility)!=null?z:{},w;g=(w=_.H(X,XzL))!=null?w:{};w=_.iC(S);f=_.OA(f);this.set("renderableData",oz1(B,S,G,g,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,
this.isOnline,w,f))};
k4.prototype.downloadsToRenderChanged=k4.prototype.downloadsToRenderChanged;_.N([_.r(_.Ek),_.Z("design:type",Object)],k4.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],k4.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],k4.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],k4.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],k4.prototype,"renderableData",void 0);_.N([_.n({selector:_.hGV}),_.Z("design:type",Object)],k4.prototype,"allVideosCount",void 0);_.N([_.n({selector:CNK}),_.Z("design:type",Object)],k4.prototype,"allPlaylistCount",void 0);_.N([_.n({selector:nJ}),_.Z("design:type",Object)],k4.prototype,"isOnline",void 0);_.N([_.n({selector:_.Kks}),_.Z("design:type",Object)],k4.prototype,"shouldRenderDownloadsBanner",void 0);
_.N([_.n({selector:function(f){var S,B,G,g=(G=(B=((S=f.entities.downloadsPageViewConfigurationEntity)!=null?S:{})[_.Yr])==null?void 0:B.downloadsUpsellBannerVisibility)!=null?G:{};return nJ(f)?!!g.visibleWithConnection:!!g.visibleWithoutConnection}}),
_.Z("design:type",Object)],k4.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.N([_.n({selector:_.dGM}),_.Z("design:type",Object)],k4.prototype,"hasOptedIntoSmartDownloads",void 0);_.N([_.n({selector:_.iWx}),_.Z("design:type",Object)],k4.prototype,"areAllSmartDownloadsDeleted",void 0);_.N([_.n({selector:HWM}),_.Z("design:type",Object)],k4.prototype,"smartDownloadsCompleted",void 0);
_.N([_.HF("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","allPlaylistCount"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],k4.prototype,"downloadsToRenderChanged",null);_.N([_.C({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],k4);
_.p(k4,"ytd-offline-item-section-renderer",function(){if(ha8!==void 0)return ha8;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return ha8=f},
{mode:1});var F3o;var V_X;var nw=function(){return _.I.apply(this,arguments)||this};
_.q(nw,_.I);
nw.prototype.onDataChanged=function(){if(this.JSC$14597_lastData){var f=this.getFilterClass(this.JSC$14597_lastData.status);f&&this.hostElement.classList.remove(f)}var S;(f=this.getFilterClass((S=this.data)==null?void 0:S.status))&&this.hostElement.classList.add(f);f==="selected"?_.m9(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.m9(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");f==="disabled"?_.m9(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.m9(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$14597_lastData=this.data};
nw.prototype.getFilterClass=function(f){switch(f){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
nw.prototype.onDataChanged=nw.prototype.onDataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],nw.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],nw.prototype,"data",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nw.prototype,"onDataChanged",null);_.N([_.C({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],nw);
_.p(nw,"ytd-search-filter-renderer",function(){if(V_X!==void 0)return V_X;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return V_X=f},{mode:_.X_("kevlar_poly_si_batch_j075")?1:2});var sm=function(){return _.I.apply(this,arguments)||this};
_.q(sm,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],sm.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],sm.prototype,"data",void 0);_.N([_.C({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],sm);
_.p(sm,"ytd-search-filter-group-renderer",function(){if(F3o!==void 0)return F3o;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return F3o=f},{mode:_.X_("kevlar_poly_si_batch_j075")?1:2});var JNm;var Di=function(){return _.I.apply(this,arguments)||this};
_.q(Di,_.I);Di.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.Tw());this.isCollapsed=!this.isCollapsed};
Di.prototype.navigateToAboutTheseResultsPage=function(){var f=vo("https://www.youtube.com/howyoutubeworks/product-features/search/");f?_.LC(window,f,"_blank"):_.Dt(Error("Rh"))};
Di.prototype.dataChanged=function(){this.isCollapsed=!0};
Di.prototype.computeShowBottomBorder=function(){var f,S,B;return!!((f=this.data)==null?0:(S=f.button)==null?0:S.toggleButtonRenderer)||!((B=this.data)==null||!B.aboutTheseResultsButton)};
Di.prototype.dataChanged=Di.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Di.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Di.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.Z("design:type",Boolean)],Di.prototype,"showBottomBorder",void 0);_.N([_.n(),_.Z("design:type",Boolean)],Di.prototype,"renderCollapsibleMenu",void 0);
_.N([_.n(),_.Z("design:type",Boolean)],Di.prototype,"isCollapsed",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Di.prototype,"dataChanged",null);_.N([_.C({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],Di);
_.p(Di,"ytd-search-sub-menu-renderer",function(){if(JNm!==void 0)return JNm;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return JNm=f},{mode:1});var PAj;var viN=new _.Sn("SECTION_LIST_RENDERER_TOKEN");var K3m;var Ib=function(){return _.I.apply(this,arguments)||this};
_.q(Ib,_.I);Ib.prototype.computeStyle=function(f){return f?f.toLowerCase().replace(/_/g,"-"):""};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Ib.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Ib.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Z("design:type",String)],Ib.prototype,"headerStyle",void 0);_.N([_.C({is:"ytd-text-header-renderer",disableElementRegistration:!0})],Ib);
_.p(Ib,"ytd-text-header-renderer",function(){if(K3m!==void 0)return K3m;var f=document.createElement("template");_.Y(f,"\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");f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return K3m=f},{mode:1});var d0o;var Um=function(){return _.I.apply(this,arguments)||this};
_.q(Um,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Um.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Um.prototype,"data",void 0);_.N([_.C({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],Um);
_.p(Um,"ytd-minor-moment-header-renderer",function(){if(d0o!==void 0)return d0o;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return d0o=f},{mode:1});var iKm;var Cw=function(){return _.I.apply(this,arguments)||this};
_.q(Cw,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Cw.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Cw.prototype,"data",void 0);_.N([_.C({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],Cw);
_.p(Cw,"ytd-minor-moment-setting-alert-renderer",function(){if(iKm!==void 0)return iKm;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return iKm=f},{mode:1});var HK1;var qxL;var pw=function(){var f=_.I.apply(this,arguments)||this;f.booleanSettingById=!1;f.smartDownloadsEnabledVE=_.Eo(128287);f.smartDownloadsDisabledVE=_.Eo(128286);f.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return f};
_.q(pw,_.I);_.e=pw.prototype;_.e.attachSmartDownloadsSettingVes=function(){var f;this.activeVeForLogging||((f=this.data)==null?void 0:f.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.Xo(_.ik(),this.smartDownloadsEnabledVE),_.Xo(_.ik(),this.smartDownloadsDisabledVE))};
_.e.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.ew(this.hostElement,"yt-settings-switch-ready")};
_.e.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.e.onSwitchChange=function(f){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(f=_.lt(f).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.K("kevlar_settings_switch_resolve_command_killswitch")?_.oy().resolve(_.S7).resolveCommand(f,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(f)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.e.handleUpdateSettingsSwitch=function(f){(f=_.H(f,lIo))&&this.data&&this.data.id===f.id&&this.set("data.enabled",!!f.enabled)};
_.e.onToggleSettingsSwitch=function(f,S){this.data&&this.data.id===f&&this.set("data.enabled",S!=null?S:!this.data.enabled)};
_.e.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.fD.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.e.maybeLogSmartDownloadsSettingVisibility=function(){var f=_.xc(),S;f&&((S=this.data)==null?void 0:S.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.Zu(f,[this.smartDownloadsEnabledVE]),_.tf(f,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.Zu(f,[this.smartDownloadsDisabledVE]),_.tf(f,[this.smartDownloadsEnabledVE])))};
_.e.maybeLogSmartDownloadsSettingClick=function(){var f;((f=this.data)==null?void 0:f.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.h0(_.ik(),this.activeVeForLogging)};
_.e.updateDataEnabledFromBinding=function(f){this.set("data.enabled",f.detail.value)};
_.y3.Object.defineProperties(pw.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var f=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!f&&(f=this.ytRendererBehavior.getSimpleString(this.data.title));return f}}});
pw.prototype.dataChanged=pw.prototype.dataChanged;_.N([_.r(_.Ek),_.Z("design:type",Object)],pw.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],pw.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],pw.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],pw.prototype,"ytComponentBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],pw.prototype,"data",void 0);_.N([_.n({selector:function(f,S){if(Object.keys(f==null?void 0:f.entities).length)switch(S){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return S2j(f.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.Z("design:type",Object)],pw.prototype,"booleanSettingById",void 0);_.N([_.n(),_.Z("design:type",_.je)],pw.prototype,"activeVeForLogging",void 0);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],pw.prototype,"toggleAriaLabel",null);_.N([_.HF("data"),_.HF("booleanSettingById"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pw.prototype,"dataChanged",null);
_.N([_.C({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],pw);
_.p(pw,"ytd-settings-switch-renderer",function(){if(qxL!==void 0)return qxL;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return qxL=f},{mode:1});var A4=function(){return _.I.apply(this,arguments)||this};
_.q(A4,_.I);A4.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}}}}};
_.y3.Object.defineProperties(A4.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var f=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(f+=" remove-left-margin");this.data.extraBottomSpace&&(f+=" extra-bottom-space");return f}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],A4.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],A4.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],A4.prototype,"data",void 0);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],A4.prototype,"contentsClassName",null);_.N([_.C({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],A4);
_.p(A4,"ytd-minor-moment-setting-section-renderer",function(){if(HK1!==void 0)return HK1;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return HK1=f},{mode:1});var $0o;var NT=function(){return _.I.apply(this,arguments)||this};
_.q(NT,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],NT.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],NT.prototype,"componentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],NT.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],NT);
_.p(NT,"ytd-empty-product-details-renderer",function(){if($0o!==void 0)return $0o;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return $0o=f},{mode:1});var QL1;var YxN;var MT=function(){var f=_.I.apply(this,arguments)||this;f.expanded=!0;return f};
_.q(MT,_.I);MT.prototype.getBadgeRowClass=function(f,S,B){for(var G=_.m(this.hostElement.querySelectorAll("yt-img-shadow")),g=G.next();!g.done;g=G.next())g.value.onShow();f=f.selected;return B?f!==-1?f===S?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(f!==void 0?f:0)===S?"badge-line":"badge-hidden"};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],MT.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],MT.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],MT.prototype,"expanded",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],MT);
_.p(MT,"ytd-sponsorships-loyalty-badges-renderer",function(){if(YxN!==void 0)return YxN;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return YxN=f},{mode:1});var rNm;var Zi=function(){var f=_.I.apply(this,arguments)||this;f.expanded=!0;return f};
_.q(Zi,_.I);Zi.prototype.getContainerClasses=function(f,S){f=f?"expanded":"collapsed";S&&(f+=" item");return f};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Zi.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Zi.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],Zi.prototype,"expanded",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],Zi);
_.p(Zi,"ytd-sponsorships-perk-renderer",function(){if(rNm!==void 0)return rNm;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return rNm=f},{mode:1});var jL$;var t4=function(){var f=_.I.apply(this,arguments)||this;f.expanded=!0;return f};
_.q(t4,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],t4.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],t4.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],t4.prototype,"expanded",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],t4);
_.p(t4,"ytd-sponsorships-perks-renderer",function(){if(jL$!==void 0)return jL$;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return jL$=f},{mode:1});var uR=function(){var f=_.I.apply(this,arguments)||this;f.isCollapsed=!1;return f};
_.q(uR,_.I);uR.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
uR.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
uR.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var f;this.expandCollapseButton=_.H((f=this.data)==null?void 0:f.expandButton,_.IR)}else{var S;this.expandCollapseButton=_.H((S=this.data)==null?void 0:S.collapseButton,_.IR)}};
uR.prototype.updateExpandCollapseButton=uR.prototype.updateExpandCollapseButton;uR.prototype.onDataChanged=uR.prototype.onDataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],uR.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],uR.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],uR.prototype,"isCollapsed",void 0);_.N([_.n(),_.Z("design:type",Object)],uR.prototype,"expandCollapseButton",void 0);
_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],uR.prototype,"onDataChanged",null);_.N([_.HF("data","isCollapsed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],uR.prototype,"updateExpandCollapseButton",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],uR);
_.p(uR,"ytd-sponsorships-expandable-perks-renderer",function(){if(QL1!==void 0)return QL1;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return QL1=f},{mode:1});var OKi;var ab=function(){return _.I.apply(this,arguments)||this};
_.q(ab,_.I);ab.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],ab.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],ab.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],ab.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],ab);
_.p(ab,"ytd-sponsorships-actionable-message-renderer",function(){if(OKi!==void 0)return OKi;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return OKi=f},{mode:1});var x0g;var yL=function(){return _.I.apply(this,arguments)||this};
_.q(yL,_.I);_.e=yL.prototype;_.e.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.e.getExpansionIcon=function(f){return f?"COLLAPSE":"EXPAND"};
_.e.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.e.computeMessageContainerStyle=function(f){var S=f.expandableItems?" style-clickable":"";return f.messageContainerStyle?f.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+S:"style-unspecified"+S};
_.e.isSinglePerk=function(f){return!!f.messageContainerStyle&&(f.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||f.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.e.onExpandedChanged=function(){var f=this;if(this.expanded)for(var S=_.m(this.hostElement.querySelectorAll("yt-img-shadow")),B=S.next();!B.done;B=S.next())B.value.onShow();_.ui(this,function(){_.ew(f.hostElement,"yt-refit")})};
_.e.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
yL.prototype.onDataChanged=yL.prototype.onDataChanged;yL.prototype.onExpandedChanged=yL.prototype.onExpandedChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],yL.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],yL.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],yL.prototype,"data",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],yL.prototype,"expanded",void 0);
_.N([_.JO("expanded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],yL.prototype,"onExpandedChanged",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],yL.prototype,"onDataChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],yL);
_.p(yL,"ytd-sponsorships-expandable-message-renderer",function(){if(x0g!==void 0)return x0g;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return x0g=f},{mode:_.X_("kevlar_poly_si_batch_j028")?1:2});var Ei7;var WC=function(){return _.I.apply(this,arguments)||this};
_.q(WC,_.I);WC.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"}}}}};
WC.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.H(this.data.endButton,_.IR).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
WC.prototype.onDataChanged=WC.prototype.onDataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],WC.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],WC.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],WC.prototype,"data",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],WC.prototype,"onDataChanged",null);
_.N([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],WC);
_.p(WC,"ytd-sponsorships-heading-renderer",function(){if(Ei7!==void 0)return Ei7;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Ei7=f},{mode:1});var L3m;var cC=function(){return _.I.apply(this,arguments)||this};
_.q(cC,_.I);_.N([_.n(),_.Z("design:type",Object)],cC.prototype,"data",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],cC.prototype,"ytRendererBehavior",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],cC);
_.p(cC,"ytd-sponsorships-links-renderer",function(){if(L3m!==void 0)return L3m;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return L3m=f},{mode:1});var kQ8;var lR=function(){return _.I.apply(this,arguments)||this};
_.q(lR,_.I);_.e=lR.prototype;_.e.onDataChanged=function(){if(this.data&&this.data.expandableItems){var f;(f=_.m9(this.hostElement).querySelector("tp-yt-paper-button"))==null||f.setAttribute("role","button")}else{var S;(S=_.m9(this.hostElement).querySelector("tp-yt-paper-button"))==null||S.removeAttribute("role")}};
_.e.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.e.getExpansionIcon=function(f){return f?"COLLAPSE":"EXPAND"};
_.e.getTileClasses=function(f){return f?"tile expandable-tile":"tile"};
_.e.getButtonDisabled=function(f){return f?void 0:""};
lR.prototype.onDataChanged=lR.prototype.onDataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],lR.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],lR.prototype,"data",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],lR.prototype,"expanded",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],lR.prototype,"onDataChanged",null);
_.N([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],lR);
_.p(lR,"ytd-sponsorships-list-tile-renderer",function(){if(kQ8!==void 0)return kQ8;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return kQ8=f},{mode:1});var nii;var sLo;var f3=function(){return _.I.apply(this,arguments)||this};
_.q(f3,_.I);f3.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],f3.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],f3.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],f3.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],f3);
_.p(f3,"ytd-sponsorships-promotion-renderer",function(){if(sLo!==void 0)return sLo;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return sLo=f},{mode:1});var D0N;var o2=function(){return _.I.apply(this,arguments)||this};
_.q(o2,_.I);o2.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],o2.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],o2.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],o2.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],o2);
_.p(o2,"ytd-sponsorships-purchase-option-renderer",function(){if(D0N!==void 0)return D0N;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return D0N=f},{mode:1});var I11;var U07;var CAo=function(){return _.I.apply(this,arguments)||this};
_.q(CAo,_.I);_.N([_.n(),_.Z("design:type",Object)],CAo.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],CAo);
_.p(CAo,"ytd-ypc-offer-promo-renderer",function(){if(U07!==void 0)return U07;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return U07=f},{mode:1});var S5=function(){return _.I.apply(this,arguments)||this};
_.q(S5,_.I);_.e=S5.prototype;
_.e.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"}}}}};
_.e.expansionCTA=function(f,S){return f&&(S?f.collapseCallToAction:f.expansionCallToAction)};
_.e.getExpansionIcon=function(f){return f?"COLLAPSE":"EXPAND"};
_.e.expansionCallToActionTap=function(){var f=this;this.expanded=!this.expanded;_.ui(this,function(){_.ew(f.hostElement,"yt-refit")})};
_.e.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var f,S=(f=this.data)==null?void 0:f.onVisible;S&&this.ytComponentBehavior.resolveCommand(S)};
_.e.computeDisplayTitle=function(f){return!(!f||this.titledisplaystatus!=="show")};
_.e.computeDisplaySeparator=function(){return!1};
_.e.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
S5.prototype.onDataChanged=S5.prototype.onDataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],S5.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],S5.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],S5.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],S5.prototype,"data",void 0);
_.N([_.n({value:!1}),_.Z("design:type",Boolean)],S5.prototype,"expanded",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],S5.prototype,"purchaseButtonClicked",void 0);_.N([_.n({reflectToAttribute:!0,value:"show"}),_.Z("design:type",String)],S5.prototype,"titledisplaystatus",void 0);_.N([_.n({computed:"computeDisplayTitle(data.title)"}),_.Z("design:type",Boolean)],S5.prototype,"displayTitle",void 0);
_.N([_.n({computed:"computeDisplaySeparator(data)"}),_.Z("design:type",Boolean)],S5.prototype,"displaySeparator",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],S5.prototype,"onDataChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],S5);
_.p(S5,"ytd-sponsorships-tier-renderer",function(){if(I11!==void 0)return I11;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return I11=f},{mode:2});var B5=function(){return _.I.apply(this,arguments)||this};
_.q(B5,_.I);
B5.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"}}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],B5.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],B5.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],B5.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],B5);
_.p(B5,"ytd-sponsorships-management-renderer",function(){if(nii!==void 0)return nii;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return nii=f},{mode:1});var p6j;var Gy=function(){return _.I.apply(this,arguments)||this};
_.q(Gy,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Gy.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Gy.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],Gy);
_.p(Gy,"ytd-open-in-native-app-view-model",function(){if(p6j!==void 0)return p6j;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return p6j=f},{mode:_.X_("kevlar_poly_si_batch_j028")?1:2});var ANg;var NBL;var M_8=_.f4(["top-"]),ZK7=_.f4(["bottom-"]),t_L=_.f4(["left-"]),uyN=_.f4(["right-"]),a1m={},yNm=function(f,S,B){f.removeAttribute("top-"+B);f.removeAttribute("bottom-"+B);f.removeAttribute("left-"+B);f.removeAttribute("right-"+B);S&&(S.top&&_.AJ([_.fo(M_8)],f,"top-"+B,S.top),S.bottom&&_.AJ([_.fo(ZK7)],f,"bottom-"+B,S.bottom),S.left&&_.AJ([_.fo(t_L)],f,"left-"+B,S.left),S.right&&_.AJ([_.fo(uyN)],f,"right-"+B,S.right))};
a1m.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(f){var S,B=_.m9((S=this.hostElement)!=null?S:this),G;S=this.cardItemBoxBehaviorMarginTargetId&&B?B.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(G=this.hostElement)!=null?G:this;yNm(S,f,"margin")},
cardItemContainerPaddingChanged_:function(f){var S,B=_.m9((S=this.hostElement)!=null?S:this),G;S=this.cardItemBoxBehaviorPaddingTargetId&&B?B.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(G=this.hostElement)!=null?G:this;yNm(S,f,"padding")}}];var gd={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 W37;var cNo;var e5=function(){return _.I.apply(this,arguments)||this};
_.q(e5,_.I);e5.prototype.textColorChanged_=function(){this.hostElement.style.color=gd[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
e5.prototype.textColorChanged_=e5.prototype.textColorChanged_;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],e5.prototype,"ytRendererBehavior",void 0);_.N([_.r(a1m.YtCardItemBoxBehavior),_.Z("design:type",Object)],e5.prototype,"ytCardItemBoxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],e5.prototype,"data",void 0);_.N([_.JO("data.textColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],e5.prototype,"textColorChanged_",null);
_.N([_.nP({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],e5);
_.p(e5,"yt-card-item-text-renderer",function(){if(cNo===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;W37===void 0&&(W37=document.createElement("template"));var G=W37;B.call(S,G.content.cloneNode(!0),f.content.firstChild);cNo=f}f=cNo;return f},{mode:2});var l1X;var fk8;var b7=function(){return _.I.apply(this,arguments)||this};
_.q(b7,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],b7.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],b7.prototype,"data",void 0);_.N([_.nP({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],b7);
_.p(b7,"yt-card-item-badge-renderer",function(){if(fk8===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;l1X===void 0&&(l1X=document.createElement("template"));var G=l1X;B.call(S,G.content.cloneNode(!0),f.content.firstChild);fk8=f}f=fk8;return f},{mode:2});var ouX;var SY8;var mq=function(){return _.I.apply(this,arguments)||this};
_.q(mq,_.I);mq.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],mq.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],mq.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],mq.prototype,"data",void 0);_.N([_.nP({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],mq);
_.p(mq,"yt-card-item-text-collection-renderer",function(){if(SY8===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;ouX===void 0&&(ouX=document.createElement("template"));var G=ouX;B.call(S,G.content.cloneNode(!0),f.content.firstChild);SY8=f}f=SY8;return f},{mode:2});var BqN;var Gxi;var zy=function(){return _.I.apply(this,arguments)||this};
_.q(zy,_.I);zy.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]]"}}}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],zy.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],zy.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],zy.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Number)],zy.prototype,"iconSize",void 0);_.N([_.nP({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],zy);
_.p(zy,"yt-card-item-text-with-button-renderer",function(){if(Gxi===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;BqN===void 0&&(BqN=document.createElement("template"));var G=BqN;B.call(S,G.content.cloneNode(!0),f.content.firstChild);Gxi=f}f=Gxi;return f},{mode:2});var R2=function(){return _.I.apply(this,arguments)||this};
_.q(R2,_.I);R2.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"}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],R2.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],R2.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],R2.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],R2.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],R2);
_.p(R2,"ytd-commerce-cart-summary-line-item-renderer",function(){if(NBL!==void 0)return NBL;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return NBL=f},{mode:1});_.Dd("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var XN=function(){var f=_.I.apply(this,arguments)||this;f.hidden=!1;return f};
_.q(XN,_.I);_.e=XN.prototype;_.e.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"}}}}};
_.e.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.e.updateSummary=function(){var f=this.commerceCartCheckoutButtonEntity,S;if(((S=this.data)==null?0:S.cartButton)&&f.checkoutSummaryText){var B,G=Ap((B=this.data)==null?void 0:B.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+G+".cardItemTextRenderer.text",NV(f.checkoutSummaryText));if(f.checkoutDetailText){var g;B=Ap((g=this.data)==null?void 0:g.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+B+".cardItemTextRenderer.text",NV(f.checkoutDetailText))}if(f.checkoutAdditionalMetadataText){var b;
g=Ap((b=this.data)==null?void 0:b.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+g+".cardItemTextRenderer.text",NV(f.checkoutAdditionalMetadataText))}}else f.estimatedTotalPrice&&(b=Ap((G=this.data)==null?void 0:G.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+b+".cardItemTextRenderer.text",NV(f.estimatedTotalPrice)))};
_.e.updateIsHidden=function(){var f,S=(f=this.commerceCartCheckoutButtonEntity)==null?void 0:f.isHidden;S!==void 0&&(this.hidden=S)};
_.e.updateCheckoutButton=function(){var f,S=(f=this.commerceCartCheckoutButtonEntity)==null?void 0:f.isDisabled;S!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",S);var B;f=(B=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:B.innertubeCommand;f!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",f);var G;B=(G=this.commerceCartCheckoutButtonEntity)==null?void 0:G.checkoutButtonText;B!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:B})};
XN.prototype.entityChanged=XN.prototype.entityChanged;_.N([_.r(_.Ek),_.Z("design:type",Object)],XN.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],XN.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],XN.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],XN.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],XN.prototype,"fullWidth",void 0);_.N([_.n(),_.Z("design:type",Object)],XN.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],XN.prototype,"compact",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],XN.prototype,"hidden",void 0);
_.N([_.n({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:KL9}),_.Z("design:type",Object)],XN.prototype,"commerceCartCheckoutButtonEntity",void 0);_.N([_.JO("commerceCartCheckoutButtonEntity","data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],XN.prototype,"entityChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],XN);
_.p(XN,"ytd-commerce-cart-checkout-button-renderer",function(){if(ANg!==void 0)return ANg;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return ANg=f},{mode:2});var gug;_.e88={};
_.e88.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",_.Fc(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.Fc(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(f){!this.tappableItemBehaviorTapEnabled||f.keyCode!==13&&f.keyCode!==32||f.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var f=this.data.onTap;f.ypcGetCartEndpoint?(_.RD(this.hostElement,[f]),this.tappableItemBehaviorTapEnabled=!1):f.ypcOffersEndpoint?_.RD(this.hostElement,[f]):_.Xh(this.hostElement,[f],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(f){this.tappableItemBehaviorTapEnabled=!!f},
tappableItemBehaviorOnTapEnabledChanged_:function(){var f=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(f.setAttribute("tabIndex",0),f.setAttribute("role","button")):(f.removeAttribute("tabIndex"),f.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(f){f.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var bhv;var mPX;var wd=function(){return _.I.apply(this,arguments)||this};
_.q(wd,_.I);wd.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.Ia("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.Ia("sharingToggleButtonAndDefaultButton")}}};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],wd.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],wd.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],wd.prototype,"data",void 0);_.N([_.nP({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],wd);
_.p(wd,"yt-card-item-actions-renderer",function(){if(mPX===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;bhv===void 0&&(bhv=document.createElement("template"));var G=bhv;B.call(S,G.content.cloneNode(!0),f.content.firstChild);mPX=f}f=mPX;return f},{mode:2});var z8X;var R8g;var X$X;var w$o;var h8j;var Tq7;var hw=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return f};
_.q(hw,_.I);hw.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
hw.prototype.handleDarkModeToggledAction_=function(f){this.isDarkTheme_=f};
hw.prototype.computeThemeImage_=function(f,S){if(!f||!f.imageLight)return!1;this.isCircular_=f.isCircular;f.imageWidth&&(this.hostElement.style.width=f.imageWidth+"px");f.imageHeight&&(this.hostElement.style.height=f.imageHeight+"px");f.borderWidth&&(this.image.style.borderWidth=f.borderWidth+"px",this.image.style.borderStyle="solid");f.borderColor&&(this.image.style.borderColor=_.AK(f.borderColor));return S&&f.imageDark?f.imageDark:f.imageLight};
hw.prototype.computeThemeIcon_=function(f){var S,B;if(!(f==null?0:(S=f.themedIcon)==null?0:(B=S.icon)==null?0:B.iconType))return!1;this.icon.style.color=gd[f.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(f.imageWidth||18)+"px";this.icon.style.height=(f.imageHeight||18)+"px";return _.F_(f.themedIcon.icon.iconType)};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],hw.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],hw.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(a1m.YtCardItemBoxBehavior),_.Z("design:type",Object)],hw.prototype,"ytCardItemBoxBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],hw.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],hw.prototype,"data",void 0);
_.N([_.n({value:!1}),_.Z("design:type",Boolean)],hw.prototype,"fit",void 0);_.N([_.n(),_.Z("design:type",Boolean)],hw.prototype,"isDarkTheme_",void 0);_.N([_.n({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.Z("design:type",Object)],hw.prototype,"themeImage_",void 0);_.N([_.n({computed:"computeThemeIcon_(data)"}),_.Z("design:type",Object)],hw.prototype,"themeIcon_",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Object)],hw.prototype,"isCircular_",void 0);
_.N([_.vF("#image"),_.Z("design:type",Object)],hw.prototype,"image",void 0);_.N([_.vF("#icon"),_.Z("design:type",Object)],hw.prototype,"icon",void 0);_.N([_.nP({is:"yt-themed-image-renderer",disableElementRegistration:!0})],hw);
_.p(hw,"yt-themed-image-renderer",function(){if(Tq7===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;h8j===void 0&&(h8j=document.createElement("template"));var G=h8j;B.call(S,G.content.cloneNode(!0),f.content.firstChild);Tq7=f}f=Tq7;return f},{mode:2});var Ty=function(){return _.I.apply(this,arguments)||this};
_.q(Ty,_.I);Ty.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"}}}}};
Ty.prototype.computeImagePlacement_=function(f){return f||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Ty.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Ty.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Ty.prototype,"data",void 0);_.N([_.n({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.Z("design:type",String)],Ty.prototype,"imagePlacement",void 0);
_.N([_.nP({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],Ty);
_.p(Ty,"yt-card-item-text-with-image-renderer",function(){if(w$o===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;X$X===void 0&&(X$X=document.createElement("template"));var G=X$X;B.call(S,G.content.cloneNode(!0),f.content.firstChild);w$o=f}f=w$o;return f},{mode:2});var FN=function(){return _.I.apply(this,arguments)||this};
_.q(FN,_.I);FN.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"}}}}};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],FN.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],FN.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],FN.prototype,"data",void 0);_.N([_.nP({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],FN);
_.p(FN,"yt-card-item-error-renderer",function(){if(R8g===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;z8X===void 0&&(z8X=document.createElement("template"));var G=z8X;B.call(S,G.content.cloneNode(!0),f.content.firstChild);R8g=f}f=R8g;return f},{mode:2});var FM8;var Vk8;_.Dd("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var Vv=function(){return _.I.apply(this,arguments)||this};
_.q(Vv,_.I);_.e=Vv.prototype;
_.e.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"}}}}};
_.e.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.e.backgroundColorChanged_=function(){var f,S=(f=this.data)==null?void 0:f.backgroundColor;f=gd[S||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.m9(this.hostElement).querySelector("#main-content").style.backgroundColor=f};
_.e.headerPromoBackgroundColorChanged_=function(){var f,S=(f=this.data)==null?void 0:f.headerPromoBackgroundColor;f=gd[S||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.m9(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=f};
_.e.errorRendererVisibilityChanged_=function(){var f=this.isExpanded_,S;this.isErrorRendererVisible_=!((S=this.data)==null||!S.errorRenderer)&&!f};
_.e.onYtToggleButton_=function(f,S){this.isExpanded_=S.toggled};
Vv.prototype.onYtToggleButton_=Vv.prototype.onYtToggleButton_;Vv.prototype.errorRendererVisibilityChanged_=Vv.prototype.errorRendererVisibilityChanged_;Vv.prototype.headerPromoBackgroundColorChanged_=Vv.prototype.headerPromoBackgroundColorChanged_;Vv.prototype.backgroundColorChanged_=Vv.prototype.backgroundColorChanged_;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Vv.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Vv.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(a1m.YtCardItemBoxBehavior),_.Z("design:type",Object)],Vv.prototype,"ytCardItemBoxBehavior",void 0);_.N([_.r(_.e88.YtTappableItemBehavior),_.Z("design:type",Object)],Vv.prototype,"ytTappableItemBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Vv.prototype,"data",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],Vv.prototype,"isExpanded_",void 0);
_.N([_.n({value:!1}),_.Z("design:type",Boolean)],Vv.prototype,"isErrorRendererVisible_",void 0);_.N([_.JO("data.backgroundColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Vv.prototype,"backgroundColorChanged_",null);_.N([_.JO("data.headerPromoBackgroundColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Vv.prototype,"headerPromoBackgroundColorChanged_",null);
_.N([_.JO("data.errorRenderer","isExpanded_"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Vv.prototype,"errorRendererVisibilityChanged_",null);_.N([_.Vg("yt-toggle-button"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event,Object]),_.Z("design:returntype")],Vv.prototype,"onYtToggleButton_",null);_.N([_.nP({is:"yt-card-item-renderer",disableElementRegistration:!0})],Vv);
_.p(Vv,"yt-card-item-renderer",function(){if(Vk8===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;FM8===void 0&&(FM8=document.createElement("template"));var G=FM8;B.call(S,G.content.cloneNode(!0),f.content.firstChild);Vk8=f}f=Vk8;return f},{mode:2});_.Dd("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var Jw=function(){var f=_.I.apply(this,arguments)||this;f.hidden=!1;return f};
_.q(Jw,_.I);_.e=Jw.prototype;_.e.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.e.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.e.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var f,S=(f=this.commerceCartHeaderEntity)==null?void 0:f.isHidden;S!==void 0&&(this.hidden=S)}};
_.e.updateTitle=function(){var f=this.commerceCartHeaderEntity.isDisabled,S,B,G=(B=_.H((S=this.data)==null?void 0:S.item,mwN))==null?void 0:B.headingRenderer;G&&(S=Ap(G,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+S+".0.cardItemTextRenderer.textColor",f?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.e.updateSummaryText=function(){var f=this.commerceCartHeaderEntity;if(this.compact){var S,B,G=(B=_.H((S=this.data)==null?void 0:S.item,mwN))==null?void 0:B.headingRenderer;G&&(S=Ap(G,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+S+".1.cardItemTextRenderer.text",f.shortHeaderSummaryText?NV(f.shortHeaderSummaryText):f.headerSummaryText?NV(f.headerSummaryText):""))}else{var g;if(S=(g=_.H((G=this.data)==null?void 0:G.item,mwN))==null?void 0:g.additionalInfoRenderer)S=Ap(S,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+S+".text",f.headerSummaryText?NV(f.headerSummaryText):"")}};
_.e.updateCheckoutButton=function(){var f=this.commerceCartHeaderEntity,S,B,G=(B=_.H((S=this.data)==null?void 0:S.item,mwN))==null?void 0:B.additionalInfoRenderer;S=Ap(G,"buttonRenderer");var g;B=(g=this.commerceCartHeaderEntity)==null?void 0:g.isButtonDisabled;var b;g=(b=this.commerceCartHeaderEntity)==null?void 0:b.isButtonHidden;B!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+S+".buttonRenderer.isDisabled",B);g!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
g);var z;f=(z=f.checkoutButtonCommand)==null?void 0:z.innertubeCommand;f!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+S+".buttonRenderer.command",f)};
Jw.prototype.entityChanged=Jw.prototype.entityChanged;_.N([_.r(_.Ek),_.Z("design:type",Object)],Jw.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Jw.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Jw.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Jw.prototype,"data",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Jw.prototype,"compact",void 0);_.N([_.n({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(f,S){return _.w9(f.entities,"commerceCartHeaderEntity",S)}}),
_.Z("design:type",Object)],Jw.prototype,"commerceCartHeaderEntity",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Jw.prototype,"hidden",void 0);_.N([_.JO("commerceCartHeaderEntity","data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Jw.prototype,"entityChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],Jw);
_.p(Jw,"ytd-commerce-cart-header-renderer",function(){if(gug!==void 0)return gug;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return gug=f},{mode:1});var JBi;var PZL=_.Hq(function(f,S){var B;return(B=f.onChangeCallback)==null?void 0:B.call(f,S)},1E3),vuj=_.oS(function(f){var S=f.data;
var B=f.iconMinus;f=f.iconPlus;var G=function(){return!!S().disabled},g=_.m(_.hj(0,void 0,"r56zNb")),b=g.next().value,z=g.next().value;
g={};g=_.Pw("yt-spec-quantity-incrementer-shape__icon",(g["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return G()||b()===(S().onRemoveCommand?0:1)},g));
var X={};X=_.Pw("yt-spec-quantity-incrementer-shape__icon",(X["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return b()>=S().maxValue||G()},X));
var w={};w=_.Pw("yt-spec-quantity-incrementer-shape__text",(w["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return b()>S().maxValue},w["yt-spec-quantity-incrementer-shape__text--text-disabled"]=G,w));
var F=_.iF(function(){if(b()===1){var J,P;(P=(J=S()).onRemoveCommand)==null||P.call(J)}J=b()>S().maxValue?S().maxValue:b()-1;z(J);PZL(S(),J);return!1}),V=_.iF(function(){if(b()===S().maxValue)return!1;
var J=b()+1;z(J);PZL(S(),J);return!1});
_.Y5(function(){z(S().value)});
return _.T("quantity-incrementer-shape",null,_.T("div",{class:"yt-spec-quantity-incrementer-shape"},_.T("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return b()===(S().onRemoveCommand?0:1)||G()},
"aria-label":function(){return b()!==1?S().minusLabel:S().minimumReachedLabel},
"on:click":F},_.T(_.Oo,{model:{circular:!0}}),_.T("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.T("div",{class:g},B()))),_.T("div",{class:w},b),_.T("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return b()>=S().maxValue||G()},
"aria-label":function(){return b()!==S().maxValue?S().plusLabel:S().maximumReachedLabel},
"on:click":V},_.T(_.Oo,{model:{circular:!0}}),_.T("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.T("div",{class:X},f())))))},"Qd");_.eq(_.oS(function(f){function S(){B().onRemoveCommand&&_.MB(B().onRemoveCommand)}
var B=f.data;var G=_.v8(jdK,function(){return B().quantityIncrementerEntityKey});
return _.T("yt-quantity-incrementer-view-model",null,_.T(vuj,{data:function(){var g=B(),b;var z=G()?!((b=G())==null||!b.disabled):!1;var X;b=G()?(X=G())==null?void 0:X.quantity:B().quantity;return GP1(g,z,S,b)},
iconMinus:function(){return _.T(_.Y8,{icon:"BAR_HORIZONTAL",className:_.K9("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.T(_.Y8,{icon:"ADD",className:_.K9("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"Rd"),"yt-quantity-incrementer-view-model",{props:{data:_.W4}});var P5=function(){var f=_.I.apply(this,arguments)||this;f.compact=!1;f.hasQuantityIncrementer=!1;return f};
_.q(P5,_.I);P5.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"}}}};
P5.prototype.computeHasQuantityIncrementer=function(){var f;return!!_.H((f=this.data)==null?void 0:f.picker,wnX)};
P5.prototype.onLabelClick=function(){var f;(f=this.dropdownEl)==null||f.open()};
_.N([_.vF("ytd-dropdown-renderer"),_.Z("design:type",Object)],P5.prototype,"dropdownEl",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],P5.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],P5.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],P5.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",String)],P5.prototype,"quantityColor",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],P5.prototype,"compact",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.Z("design:type",Object)],P5.prototype,"hasQuantityIncrementer",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],P5);
_.p(P5,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(JBi!==void 0)return JBi;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return JBi=f},{mode:1});var KM8;var dPm;var v5=function(){return _.I.apply(this,arguments)||this};
_.q(v5,_.I);v5.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
v5.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
v5.prototype.updateTitle=function(){var f=this.disabledCartItemEntity;f.disableActionName&&this.set("data.title",NV(f.disableActionName))};
v5.prototype.updateButton=function(){var f,S=(f=this.disabledCartItemEntity.undoCommand)==null?void 0:f.innertubeCommand;S!==void 0&&(this.set("data.actionButton.buttonRenderer.command",S),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
v5.prototype.entityChanged=v5.prototype.entityChanged;_.N([_.r(_.Ek),_.Z("design:type",Object)],v5.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],v5.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],v5.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(f,S){return _.w9(f.entities,"disabledCartItemEntity",S)}}),
_.Z("design:type",Object)],v5.prototype,"disabledCartItemEntity",void 0);_.N([_.n(),_.Z("design:type",Object)],v5.prototype,"data",void 0);_.N([_.JO("disabledCartItemEntity","data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],v5.prototype,"entityChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],v5);
_.p(v5,"ytd-disabled-cart-item-renderer",function(){if(dPm!==void 0)return dPm;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return dPm=f},{mode:1});_.Dd("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var K3=function(){var f=_.I.apply(this,arguments)||this;f.compact=!1;f.hidden=!1;f.errorHidden=!1;f.noOnTap=!1;return f};
_.q(K3,_.I);_.e=K3.prototype;
_.e.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"}}}};
_.e.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.e.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var f=this.firstButtonElement;f.alignByText=!0;f.iconAlignByText=!0}};
_.e.computeNoOnTap=function(f){return!f};
_.e.updateQuantityColor=function(){if(this.pickerElement){var f,S=(f=this.commerceCartItemEntity)==null?void 0:f.quantityColor;this.pickerElement.quantityColor=S}};
_.e.updateTotalPriceColor=function(){var f,S=(f=this.commerceCartItemEntity)==null?void 0:f.totalPriceColor;if(S){var B;f=_.H((B=this.data)==null?void 0:B.quantityPicker,Rfg);if(B=_.H(f==null?void 0:f.price,zf1))B.textColor=S}};
_.e.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var f,S=(f=this.commerceCartItemEntity)==null?void 0:f.isHidden;S!==void 0&&(this.hidden=S)}};
_.e.updateHideErrorMessage=function(){var f,S=(f=this.commerceCartItemEntity)==null?void 0:f.hideErrorMessage;S!==void 0&&(this.errorHidden=S)};
_.e.updateQuantity=function(){var f=this,S,B=(S=this.commerceCartItemEntity)==null?void 0:S.quantity,G;S=(G=this.commerceCartItemEntity)==null?void 0:G.totalPrice;if(B){this.updateTotalPriceColor();this.updateQuantityColor();var g;G=_.H((g=this.data)==null?void 0:g.quantityPicker,Rfg);if(g=_.H(G==null?void 0:G.price,zf1))g.text=S?{simpleText:S.content}:void 0;if(S=_.H(G==null?void 0:G.picker,wnX))S.quantity=B;var b;if(g=(b=_.H(G==null?void 0:G.picker,Fwm))==null?void 0:b.entries){b=!1;S=void 0;g=
_.m(g);for(G=g.next();!G.done;G=g.next())G=G.value,G.dropdownItemRenderer&&(S||(S=G.dropdownItemRenderer),G.dropdownItemRenderer.isSelected=!1,B===G.dropdownItemRenderer.int32Value&&(b=!0,G.dropdownItemRenderer.isSelected=!0));!b&&S&&(S.isSelected=!0)}_.ui(this,function(){var z;f.set("data.quantityPicker",_.$v.unsafeClone((z=f.data)==null?void 0:z.quantityPicker))})}};
K3.prototype.onYtRendererstamperFinished=K3.prototype.onYtRendererstamperFinished;K3.prototype.entityChanged=K3.prototype.entityChanged;_.N([_.n(),_.Z("design:type",Object)],K3.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],K3.prototype,"compact",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],K3.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],K3.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],K3.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],K3.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(f,S){return _.w9(f.entities,"commerceCartItemEntity",S)}}),
_.Z("design:type",Object)],K3.prototype,"commerceCartItemEntity",void 0);_.N([_.n(),_.Z("design:type",Object)],K3.prototype,"quantityPicker",void 0);_.N([_.n(),_.Z("design:type",Object)],K3.prototype,"compactQuantityPicker",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],K3.prototype,"hidden",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],K3.prototype,"errorHidden",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.Z("design:type",Object)],K3.prototype,"noOnTap",void 0);_.N([_.vF("ytd-commerce-cart-item-quantity-picker-renderer"),_.Z("design:type",Object)],K3.prototype,"pickerElement",void 0);_.N([_.vF("yt-button-renderer"),_.Z("design:type",Element)],K3.prototype,"firstButtonElement",void 0);
_.N([_.JO("commerceCartItemEntity","data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],K3.prototype,"entityChanged",null);_.N([_.Vg("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],K3.prototype,"onYtRendererstamperFinished",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],K3);
_.p(K3,"ytd-commerce-cart-item-renderer",function(){if(KM8!==void 0)return KM8;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return KM8=f},{mode:_.X_("kevlar_poly_si_batch_j028")?1:2});var ihg;var Hh8;var dd=function(){return _.I.apply(this,arguments)||this};
_.q(dd,_.I);dd.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}}}}}};
dd.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
dd.prototype.updateCheckoutLineItems=function(){var f,S=(f=this.commerceCartCheckoutButtonEntity)==null?void 0:f.checkoutLineItems;S&&(f=S.map(function(B){a:{var G=B.price,g=B.description;switch(B.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":B={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:NV(g),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:NV(G),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:B={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:NV(g),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:NV(G),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 B}),this.set("data.summaryLineItems",f))};
dd.prototype.updateIsHidden=function(){var f,S=(f=this.commerceCartCheckoutButtonEntity)==null?void 0:f.isHidden;S!==void 0&&(this.hostElement.hidden=S)};
dd.prototype.entityChanged=dd.prototype.entityChanged;_.N([_.r(_.Ek),_.Z("design:type",Object)],dd.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],dd.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],dd.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],dd.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],dd.prototype,"data",void 0);_.N([_.n({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:KL9}),_.Z("design:type",Object)],dd.prototype,"commerceCartCheckoutButtonEntity",void 0);_.N([_.JO("commerceCartCheckoutButtonEntity","data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],dd.prototype,"entityChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],dd);
_.p(dd,"ytd-commerce-cart-summary-renderer",function(){if(Hh8!==void 0)return Hh8;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return Hh8=f},{mode:1});var qY6={};qY6.InjectBehavior=[MGx.InjectBehavior];var $PN;var Q3v;var i7=function(){return _.I.apply(this,arguments)||this};
_.q(i7,_.I);
i7.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:_.Ia("menuRenderer")}}};
i7.prototype.onMenuTap=function(f){f.stopPropagation()};
_.y3.Object.defineProperties(i7.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 f,S;return!(((f=this.data)==null||!f.sectionHeading)&&((S=this.data)==null?void 0:S.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var f,S;return!(((f=this.data)==null||!f.image)&&((S=this.data)==null?void 0:S.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var f,S;return!(((f=this.data)==null||!f.menu)&&((S=this.data)==null?void 0:S.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],i7.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],i7.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.e88.YtTappableItemBehavior),_.Z("design:type",Object)],i7.prototype,"ytTappableItemBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],i7.prototype,"data",void 0);
_.N([_.n({reflectToAttribute:!0}),_.k("data.accessibilityData"),_.Z("design:type",String),_.Z("design:paramtypes",[])],i7.prototype,"ariaLabel",null);_.N([_.k("data.sectionHeading","data.layout"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],i7.prototype,"sectionHeadingVisible",null);_.N([_.k("data.image","data.layout"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],i7.prototype,"imageVisible",null);
_.N([_.k("data.menu","data.layout"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],i7.prototype,"menuVisible",null);_.N([_.nP({is:"yt-activity-item-renderer",disableElementRegistration:!0})],i7);
_.p(i7,"yt-activity-item-renderer",function(){if(Q3v===void 0){var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;$PN===void 0&&($PN=document.createElement("template"));var G=$PN;B.call(S,G.content.cloneNode(!0),f.content.firstChild);Q3v=f}f=Q3v;return f},{mode:2});var YYN;var rBN;var j3N;var OhN;var H5=function(){return _.I.apply(this,arguments)||this};
_.q(H5,_.I);
H5.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"}}}}};
H5.prototype.backgroundColorChanged_=function(){var f,S=(f=this.data)==null?void 0:f.backgroundColor;this.hostElement.style.backgroundColor=gd[S||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
H5.prototype.backgroundColorChanged_=H5.prototype.backgroundColorChanged_;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],H5.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],H5.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],H5.prototype,"data",void 0);
_.N([_.JO("data.backgroundColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],H5.prototype,"backgroundColorChanged_",null);_.N([_.nP({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],H5);
_.p(H5,"yt-offer-item-upsell-renderer",function(){if(OhN===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;j3N===void 0&&(j3N=document.createElement("template"));var G=j3N;B.call(S,G.content.cloneNode(!0),f.content.firstChild);OhN=f}f=OhN;return f},{mode:2});_.Dd("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var qt=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};f.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return f};
_.q(qt,_.I);_.e=qt.prototype;
_.e.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:_.Ia("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.e.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.e.computeContainerStyle_=function(f){return f};
_.e.computeContainerIsHidden_=function(f){return f&&!!f.isHidden};
_.e.computeShowSpinner_=function(f,S){return f&&S==="in-progress"};
_.e.computeShowMoreContentsButton_=function(f,S,B,G,g){return!(!(G&&G.length||g&&g.length&&B)||!f||S)};
_.e.onToggleButton_=function(f){var S=this;f.stopPropagation();this.isExpanded_=f.detail&&f.detail.toggled;var B,G;this.isExpanded_&&!this.data.continuationSection.length&&((B=this.data)==null?0:(G=B.continuation)==null?0:G.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.ew(this.hostElement,"yt-load-next-continuation",function(g){return S.getContinuationUrl_(S.data.continuation.onClickContinuationData,g)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.RD(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.e.onShowMoreContentsButtonClicked_=function(f){var S=this;f.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.ew(this.hostElement,"yt-load-next-continuation",function(B){return S.getContinuationUrl_(S.data.continuations[0].nextContinuationData,B)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.RD(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.e.getContinuationUrl_=function(f,S){var B=f.continuation;f=f.clickTrackingParams;var G=_.xc();f&&G&&_.uW(G,_.Ye(f));return _.tA(S,{continuation:B})};
_.e.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var f=_.m9(this.hostElement).querySelector("#continuation-section");f&&(f=f.querySelectorAll("ytmusic-item-section-renderer"))&&f.forEach(function(S){return S.classList.add("memberships-and-purchases")})};
_.e.dataChanged_=function(){var f;this.isExpanded_=!((f=this.data)==null||!f.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.e.updateCardOnClickCommand_=function(f){f=_.H(f,frg);var S,B;this.data&&((S=this.data)==null?0:S.targetId)&&f&&f.targetId===((B=this.data)==null?void 0:B.targetId)&&f.onClickCommand&&(this.data.onClickCommand=f.onClickCommand,this.isOnClickCommand_=!0)};
_.e.backgroundColorChanged_=function(){var f,S=(f=this.data)==null?void 0:f.backgroundColor;this.hostElement.style.backgroundColor=gd[S||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
qt.prototype.backgroundColorChanged_=qt.prototype.backgroundColorChanged_;qt.prototype.dataChanged_=qt.prototype.dataChanged_;qt.prototype.nextContinuationDataUpdated_=qt.prototype.nextContinuationDataUpdated_;qt.prototype.onToggleButton_=qt.prototype.onToggleButton_;_.N([_.r(_.Ak),_.Z("design:type",Object)],qt.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],qt.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],qt.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Ny.YtNextContinuationBehavior),_.Z("design:type",Object)],qt.prototype,"ytNextContinuationBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],qt.prototype,"ytRendererBehavior",void 0);_.N([_.r(qY6.InjectBehavior),_.Z("design:type",Object)],qt.prototype,"injectBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],qt.prototype,"data",void 0);
_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],qt.prototype,"compact",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],qt.prototype,"isExpanded_",void 0);_.N([_.n({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.Z("design:type",String)],qt.prototype,"containerStyle_",void 0);_.N([_.n({value:"not-started"}),_.Z("design:type",String)],qt.prototype,"continuationStatus_",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.Z("design:type",Boolean)],qt.prototype,"showSpinner_",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],qt.prototype,"isOnClickCommand_",void 0);_.N([_.n({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.Z("design:type",Boolean)],qt.prototype,"showMoreContentsButton_",void 0);
_.N([_.n({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(f,S){return!S||f.entities?null:_.w9(f.entities,"cardItemContainerEntity",S)}}),
_.Z("design:type",Object)],qt.prototype,"cardItemContainerEntity_",void 0);_.N([_.Vg("yt-toggle-button"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],qt.prototype,"onToggleButton_",null);_.N([_.Vg("yt-next-continuation-data-updated"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qt.prototype,"nextContinuationDataUpdated_",null);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qt.prototype,"dataChanged_",null);_.N([_.JO("data.backgroundColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qt.prototype,"backgroundColorChanged_",null);_.N([_.nP({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],qt);
_.p(qt,"yt-card-item-container-renderer",function(){if(rBN===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;YYN===void 0&&(YYN=document.createElement("template"));var G=YYN;B.call(S,G.content.cloneNode(!0),f.content.firstChild);rBN=f}f=rBN;return f},{mode:2});var $C=function(){return _.I.apply(this,arguments)||this};
_.q($C,_.I);$C.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"}}}};
$C.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
$C.prototype.computeLoadingHidden=function(){var f;return!((f=this.commerceCartPageStateEntity)==null?0:f.cartActionInProgress)};
$C.prototype.updateNotification=function(){var f,S=(f=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:f.summaryText;S&&this.set("data.cartNotification",NV(S))};
$C.prototype.notificationEntityChanged=$C.prototype.notificationEntityChanged;_.N([_.r(_.Ek),_.Z("design:type",Object)],$C.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],$C.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],$C.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],$C.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],$C.prototype,"data",void 0);_.N([_.n({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(f,S){return _.w9(f.entities,"commerceCartExpandableNotificationEntity",S)}}),
_.Z("design:type",Object)],$C.prototype,"commerceCartExpandableNotificationEntity",void 0);_.N([_.n({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(f,S){return _.w9(f.entities,"commerceCartPageStateEntity",S)}}),
_.Z("design:type",Object)],$C.prototype,"commerceCartPageStateEntity",void 0);_.N([_.vF("#spinner"),_.Z("design:type",HTMLElement)],$C.prototype,"spinner",void 0);_.N([_.JO("commerceCartExpandableNotificationEntity","data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$C.prototype,"notificationEntityChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],$C);
_.p($C,"ytd-commerce-cart-renderer",function(){if(ihg!==void 0)return ihg;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return ihg=f},{mode:1});var xPX;var Qv=function(){var f=_.I.apply(this,arguments)||this;f.bigImage=!1;return f};
_.q(Qv,_.I);_.y3.Object.defineProperties(Qv.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.placeholderImageUrl}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Qv.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Qv.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Qv.prototype,"bigImage",void 0);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Qv.prototype,"placeholderImageUrl",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],Qv);
_.p(Qv,"ytd-empty-product-shelf-renderer",function(){if(xPX!==void 0)return xPX;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return xPX=f},{mode:1});var Eui;var YC=function(){var f=_.I.apply(this,arguments)||this;f.itemStyle="link-item";f.watchMetadataRefresh=!1;f.skinnyMode=!1;f.metaPanel=!1;f.inStructuredDescription=!1;f.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};f.updateOnResizeDebouncer=null;return f};
_.q(YC,_.I);_.e=YC.prototype;_.e.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.e.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"}}}}};
_.e.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.e.attachVEs=function(f){f.trackingParams&&_.ik().graftServerVe(f.trackingParams)};
_.e.handleUpdateMerchShelfAction=function(f){var S=this,B=_.H(f.updateMerchandiseShelfAction.merchandiseShelf,_.n_$);B&&(B.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){S.attachVEs(B);S.data=B},Number(B.renderDelayMs))):(this.attachVEs(B),this.data=B))};
_.e.updateOnResize=function(){if(this.JSC$14765_scrollContainer!==void 0&&this.JSC$14765_scrollContainer.clientWidth!==0&&this.items!==void 0){var f=this.JSC$14765_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-f));this.ytdHorizontalListBehavior.reposition_();var S;switch((S=this.data)==null?void 0:S.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var B,
G;((B=this.data)==null?void 0:(G=B.items)==null?void 0:G.length)===1?this.itemStyle="cta-item":this.itemStyle=f>=740?"large-item":"small-item"}}};
_.e.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.zw(this.updateOnResizeDebouncer,_.Wy.after(100),this.updateOnResize)};
YC.prototype.debouncedUpdateOnResize=YC.prototype.debouncedUpdateOnResize;YC.prototype.dataChanged=YC.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],YC.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],YC.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.o_.YtdHorizontalListBehavior),_.Z("design:type",Object)],YC.prototype,"ytdHorizontalListBehavior",void 0);
_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],YC.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],YC.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],YC.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],YC.prototype,"itemStyle",void 0);_.N([_.n({value:6}),_.Z("design:type",Number)],YC.prototype,"initialCount",void 0);
_.N([_.n({value:"data.items"}),_.Z("design:type",String)],YC.prototype,"itemsPath",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],YC.prototype,"watchMetadataRefresh",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],YC.prototype,"skinnyMode",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],YC.prototype,"metaPanel",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],YC.prototype,"inStructuredDescription",void 0);
_.N([_.vF("#items"),_.Z("design:type",HTMLDivElement)],YC.prototype,"items",void 0);_.N([_.vF("#scroll-container"),_.Z("design:type",HTMLDivElement)],YC.prototype,"JSC$14765_scrollContainer",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],YC.prototype,"dataChanged",null);_.N([_.Vg("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],YC.prototype,"debouncedUpdateOnResize",null);
_.N([_.C({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],YC);
_.p(YC,"ytd-merch-shelf-renderer",function(){if(Eui!==void 0)return Eui;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Eui=f},{mode:2});var LM8;var rd=function(){var f=_.I.apply(this,arguments)||this;f.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 f};
_.q(rd,_.I);_.e=rd.prototype;
_.e.addBackstagePostAction=function(f){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(f=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",f))&&(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:f}):this.set("data.contents",[{backstagePostThreadRenderer:f}]))};
_.e.addBackstageCommentAction=function(f){var S=this.get("addBackstageCommentAction.parentId",f);f=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",f);if(S&&f){S=this.postIdToIndices(S);for(var B=0;B<S.length;B++){var G=S[B];if(G<0)break;G="data.contents."+G+".backstagePostThreadRenderer.comments";this.get(G)&&(this.get(G+".backstageCommentsRenderer.contents")&&this.push(G+".backstageCommentsRenderer.contents",{commentThreadRenderer:f}),this.get(G+".backstageCommentsRenderer.teaserContents")?
this.push(G+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:f}):this.set(G+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:f}]))}}};
_.e.addBackstageReplyAction=function(f){var S=this.get("addBackstageReplyAction.parentId",f);f=this.get("addBackstageReplyAction.renderer.commentRenderer",f);S&&f&&this.setCreatorReply(S,f)};
_.e.banAuthorAction=function(f){var S=this.get("banAuthorAction.commentId",f);S&&(f=this.get("banAuthorAction.parentCommentId",f)||this.getParentPostId(S),this.removeFromStream(S,f))};
_.e.hideReportedCommentAction=function(f){var S=this.get("hideReportedCommentAction.commentId",f);S&&((f=this.get("hideReportedCommentAction.parentCommentId",f))||(f=this.getParentPostId(S)),this.removeFromStream(S,f))};
_.e.replaceBackstageCommentAction=function(f){var S=this.get("replaceBackstageCommentAction.commentId",f),B=this.get("replaceBackstageCommentAction.parentId",f);f=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",f);if(S&&B&&f){B=this.postIdToIndices(B);for(var G=0;G<B.length;G++){var g=B[G];if(g<0)break;var b=this.commentIdToIndex(S,g,!1);if(b>=0){var z=this.get("data.contents."+g+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+b+".commentThreadRenderer.replies.commentRepliesRenderer");
z&&(f.replies={commentRepliesRenderer:z});this.splice("data.contents."+g+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",b,1,{commentThreadRenderer:f})}b=this.commentIdToIndex(S,g,!0);if(b>=0){if(z=this.get("data.contents."+g+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(b+".commentThreadRenderer.replies.commentRepliesRenderer")))f.replies={commentRepliesRenderer:z};this.splice("data.contents."+g+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
b,1,{commentThreadRenderer:f})}}}};
_.e.replaceBackstagePostAction=function(f){var S=this.get("replaceBackstagePostAction.itemId",f);if(S){S=this.postIdToIndices(S);for(var B=0;B<S.length;B++){var G=S[B];if(G<0)break;var g=this.getPostRendererType(G),b=this.get("replaceBackstagePostAction.renderer."+g,f);if(!b&&g!=="sharedPostRenderer")break;var z=!1;b||(z=!0,b=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",f));if(!b)break;var X={};z?(_.nH(X,pY7,b),this.set("data.contents."+G+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
X)):(_.nH(X,new _.u(g),b),this.set("data.contents."+G+".backstagePostThreadRenderer.post",X))}}};
_.e.replaceBackstageReplyAction=function(f){var S=this.get("replaceBackstageReplyAction.replyId",f),B=this.get("replaceBackstageReplyAction.parentId",f);f=this.get("replaceBackstageReplyAction.renderer.commentRenderer",f);S&&f&&B&&this.setCreatorReply(B,f)};
_.e.removeCommentAction=function(f){var S=this.get("removeCommentAction.commentId",f);if(S){var B=this.get("removeCommentAction.parentCommentId",f);B&&this.get("removeCommentAction.isCreatorReply",f)?this.setCreatorReply(B,void 0):(B||(B=this.getParentPostId(S)),this.removeFromStream(S,B))}};
_.e.setCreatorReply=function(f,S){var B=this.getParentPostId(f);if(B){B=this.postIdToIndices(B);for(var G=0;G<B.length;G++){var g=B[G];if(g<0)break;var b=this.commentIdToIndex(f,g,!1);if(b>=0){var z="data.contents."+g+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+b;b=z+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";z+=".commentThreadRenderer.replies";S==void 0?(this.set(z,{}),this.set(b,!1)):(this.set(z,{commentRepliesRenderer:{teaserContents:[{commentRenderer:S}]}}),
this.set(z+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(b,!0))}b=this.commentIdToIndex(f,g,!0);b>=0&&(b="data.contents."+g+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+b,g=b+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",b+=".commentThreadRenderer.replies",S==void 0?(this.set(b,{}),this.set(g,!1)):(this.set(b,{commentRepliesRenderer:{teaserContents:[{commentRenderer:S}]}}),this.set(g,!0)))}}};
_.e.removeFromStream=function(f,S){if(S){S=this.postIdToIndices(S);for(var B=0;B<S.length;B++){var G=S[B];if(G<0)break;var g=this.commentIdToIndex(f,G,!1);g>=0&&this.splice("data.contents."+G+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",g,1);g=this.commentIdToIndex(f,G,!0);g>=0&&this.splice("data.contents."+G+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",g,1);G="data.contents."+G+".backstagePostThreadRenderer.post.backstagePostRenderer";
g=G+".backstageAttachment.pollRenderer.votedCommentId";this.get(g)===f&&(this.set(g,null),this.set(G+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(S=this.postIdToIndices(f).reverse(),B=0;B<S.length;B++){G=S[B];if(G<0)break;g=this.getPostRendererType(G);var b=this.get("backstagePostThreadRenderer.post."+g,this.data.contents[G]);b.postId===f?this.splice("data.contents",G,1):g==="sharedPostRenderer"&&this.set("data.contents."+G+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);b.scheduledPublishTimeSec&&_.bW(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.e.postIdToIndices=function(f){for(var S=[],B=0;B<this.data.contents.length;B++){var G=this.getPostRendererType(B);this.get("backstagePostThreadRenderer.post."+G+".postId",this.data.contents[B])===f&&S.push(B);if(G==="sharedPostRenderer"){var g=this.get("backstagePostThreadRenderer.post."+G+".originalPost.backstagePostRenderer.postId",this.data.contents[B]);G=this.get("backstagePostThreadRenderer.post."+G+".originalPost.postRenderer.postId",this.data.contents[B]);g!==f&&G!==f||S.push(B)}}return S};
_.e.commentIdToIndex=function(f,S,B){if(S<0)return-1;var G,g,b,z,X=_.H((G=this.data)==null?void 0:(g=G.contents)==null?void 0:(b=g[S])==null?void 0:(z=b.backstagePostThreadRenderer)==null?void 0:z.comments,U_m);return(S=B?X==null?void 0:X.teaserContents:X==null?void 0:X.contents)&&S.length?S.findIndex(function(w){return _.H(w,Tpo).comment.commentRenderer.commentId===f}):-1};
_.e.getParentPostId=function(f){f=f.split(".");if(f[1])return f[0]};
_.e.getPostRendererType=function(f){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[f])?"sharedPostRenderer":"backstagePostRenderer"};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],rd.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],rd.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],rd.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-backstage-items"})],rd);
_.p(rd,"ytd-backstage-items",function(){if(LM8!==void 0)return LM8;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return LM8=
f},{mode:1});var kxL;var nuv={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},s3i=function(){};
_.e=s3i.prototype;_.e.getPlayerListenerKey_=function(){};
_.e.getPlayerListener_=function(){};
_.e.savePlayerListener_=function(){};
_.e.listenToPlayerEvent=function(){};
_.e.listenToPlayerEvents=function(){};
_.e.unlistenFromPlayerEvent=function(){};
_.e.unlistenFromPlayerEvents=function(){};
_.e.computeHref_=function(){};
_.e.computeOptionalHref_=function(){};
_.e.computeNofollow_=function(){};
_.e.computeIcon_=function(){};
_.e.resolveCommand=function(){};
_.e.initVisibilityObserver_=function(){};
_.e.configureVisibilityObserver_=function(){};
_.e.unobserve_=function(){};
_.e.markDirtyVisibilityObserver=function(){};
_.e.getVisibilityObserverForChild=function(){};
_.e.visibilityCallback=function(){};
_.e.onPrescanVisible=function(){};
_.e.onVisible=function(){};
_.e.onHidden=function(){};
_.e.getVisibilityLogger=function(){};
_.e.shouldSkipLogging=function(){};
_.e.registerRenderer=function(){};
_.e.unregisterRenderer_=function(){};
_.e.getParentRenderer=function(){};
_.e.ytRendererBehaviorDataObserver_=function(){};
_.e.ytRendererBehaviorTargetIdObserver_=function(){};
_.e.onScroll=function(){};
_.e.markDirty=function(){};
_.e.getScreenLayer=function(){};
_.e.invalidate=function(){};
_.e.getNodes=function(){};
_.e.impressionLog=function(){};
_.e.sendImpression=function(){};
_.e.logExplicitClick=function(){};
_.e.registerActionMap=function(){};
_.e.unregisterActionMap=function(){};
s3i=_.OW({is:"ytd-comments",_template:function(){if(kxL!==void 0)return kxL;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return kxL=f},
behaviors:[_.uSM.YtHostElementBehavior,_.Nr.YtPlayerListenerBehavior,_.c.YtRendererBehavior,_.b3.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.initCommentsCsi_()},
contentsChanged_:function(f){f&&f.value&&f.path==="data.contents"&&this.tickForCommentsTimer_("cml")},
headerChanged_:function(f){f&&this.tickForCommentsTimer_("cmhl")},
initCommentsCsi_:function(){_.L2("wn_comments");var f=_.xc();f&&_.EL({clientScreenNonce:f},"wn_comments");this.tickForCommentsTimer_("cmi")},
createCommentAction_:function(f){f=_.$v.unsafeClone(f);var S,B,G;if(f=(S=f)==null?void 0:(B=S.createCommentAction)==null?void 0:(G=B.contents)==null?void 0:G.commentThreadRenderer){var g,b,z,X,w,F;!this.isBackstage&&((g=this.data)==null?0:(b=g.header)==null?0:(z=b.commentsHeaderRenderer)==null?0:(X=z.createRenderer)==null?0:(w=X.commentSimpleboxRenderer)==null?0:(F=w.zeroStep)==null?0:F.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",
{});var V,J,P,d;this.isBackstage&&((V=this.data)==null?0:(J=V.header)==null?0:(P=J.commentsHeaderRenderer)==null?0:(d=P.zeroStateMessage)==null?0:d.backstageZeroStateRenderer)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(f)}},
doReplyInsert_:function(f,S,B,G){G?this.splice(f,G,0,S):this.push(f,S)},
getRepliesPath_:function(f){return"data.contents."+f+".commentThreadRenderer.replies"},
getRepliesContentsPath_:function(f,S){f=this.getRepliesPath_(f);return S?f+".commentRepliesRenderer.teaserContents":f+".commentRepliesRenderer.contents"},
createCommentReplyAction_:function(f){f=_.$v.unsafeClone(f);var S,B,G=(S=f)==null?void 0:(B=S.createCommentReplyAction)==null?void 0:B.parentCommentId,g,b;if(S=(g=f)==null?void 0:(b=g.createCommentReplyAction)==null?void 0:b.contents)if(G=this.commentIdToIndex_(G),!(G<0))if(g=this.getRepliesPath_(G),this.get(g)){var z,X;f=(z=f)==null?void 0:(X=z.createCommentReplyAction)==null?void 0:X.replyToCommentId;z=this.getRepliesContentsPath_(G,!1);this.get(z)&&(X=this.get(z).length,g=z+"."+(X-1)+".continuationItemRenderer",
this.get(g+".button")?(g=this.replyIdToIndex_(f,G,!1),this.doReplyInsert_(z,S,g,X-1)):this.get(g)||(X=this.replyIdToIndex_(f,G,!1),this.doReplyInsert_(z,S,X,null)));z=this.getRepliesContentsPath_(G,!0);this.get(z)?(G=this.replyIdToIndex_(f,G,!0),(!f||G>=0)&&this.doReplyInsert_(z,S,G,null)):this.set(z,[S])}else this.set(g,{commentRepliesRenderer:{teaserContents:[S]}})},
hideReportedCommentAction_:function(f){var S,B=f==null?void 0:(S=f.hideReportedCommentAction)==null?void 0:S.commentId;if(B){var G;f=f==null?void 0:(G=f.hideReportedCommentAction)==null?void 0:G.parentCommentId;B=B.replace("#",".");f||(f=this.getParentCommentId_(B));this.remove_(B,f)}},
getParentCommentId_:function(f){f=f.split(".");if(f[1])return f[0]},
removeCommentAction_:function(f){var S,B=f==null?void 0:(S=f.removeCommentAction)==null?void 0:S.commentId;if(B){var G;f=f==null?void 0:(G=f.removeCommentAction)==null?void 0:G.parentCommentId;B=B.replace("#",".");f||(f=this.getParentCommentId_(B));this.remove_(B,f)}},
pinCommentAction_:function(f){f=_.$v.unsafeClone(f);var S,B,G=(S=f)==null?void 0:(B=S.pinCommentAction)==null?void 0:B.commentId;G&&(f=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",f))&&(this.remove_(G),this.insert_(f,!0))},
unpinCommentAction_:function(f){f=_.$v.unsafeClone(f);var S,B,G=(S=f)==null?void 0:(B=S.unpinCommentAction)==null?void 0:B.commentId;if(G){var g,b,z;if(f=(g=f.unpinCommentAction)==null?void 0:(b=g.actionResult)==null?void 0:(z=b.update)==null?void 0:z.commentThreadRenderer)this.remove_(G),this.insert_(f)}},
banAuthorAction_:function(f){var S,B=f==null?void 0:(S=f.banAuthorAction)==null?void 0:S.commentId;if(B){var G;f=f==null?void 0:(G=f.banAuthorAction)==null?void 0:G.parentCommentId;B=B.replace("#",".");f||(f=this.getParentCommentId_(B));this.remove_(B,f)}},
commentIdToIndex_:function(f){var S;return f&&(S=this.data)!=null&&S.contents?this.data.contents.findIndex(function(B){var G,g;return f===((B==null?void 0:(G=B.commentThreadRenderer)==null?void 0:G.commentViewModel)&&((g=_.H(B.commentThreadRenderer.commentViewModel,vWv))==null?void 0:g.commentId))}):-1},
insert_:function(f,S){var B,G;if((B=this.data)==null?0:(G=B.contents)==null?0:G.some(function(b){return!(b==null||!b.commentThreadRenderer)}))for(B=0,G=this.data.contents.length;B<G;B++){var g=this.data.contents[B].commentThreadRenderer;
if(nuv[f.renderingPriority]>=nuv[g.renderingPriority]){S&&nuv[f.renderingPriority]==nuv[g.renderingPriority]?this.splice("data.contents",B,1,{commentThreadRenderer:f}):this.splice("data.contents",B,0,{commentThreadRenderer:f});break}}else this.set("data.contents",[{commentThreadRenderer:f}])},
doReplyRemove_:function(f,S,B){f=this.replyIdToIndex_(f,S,B);f<0||(S=this.getRepliesContentsPath_(S,B),this.splice(S,f,1))},
remove_:function(f,S){S=this.commentIdToIndex_(S);S<0?(S=this.commentIdToIndex_(f),S<0||this.splice("data.contents",S,1)):(this.doReplyRemove_(f,S,!1),this.doReplyRemove_(f,S,!0))},
replyIdToIndex_:function(f,S,B){if(S<0)return-1;S=this.getRepliesContentsPath_(S,B);S=this.get(S);if(!S||!S.length)return-1;B=0;for(var G=S.length;B<G;B++){var g=void 0,b=void 0;if(((g=S[B])==null?void 0:(b=g.commentViewModel)==null?void 0:b.commentId)===f)return B}return-1},
computeIsBackstage_:function(f){return!!f},
tickForCommentsTimer_:function(f){_.n2(f,void 0,"wn_comments")},
reloadComments_:function(f){f=_.H(f,J$m);var S;(f==null?0:(S=f.command)==null?0:S.continuationCommand)&&_.RD(this,[f.command])}});var j5=function(){return _.dv.apply(this,arguments)||this};
_.q(j5,_.dv);_.e=j5.prototype;_.e.bindIf=function(f,S,B){return f?S:B};
_.e.bindIfDefined=function(f,S){return f!==void 0?f:S};
_.e.booleanString=function(f){return(!!f).toString()};
_.e.equals=function(){for(var f=_.qb.apply(0,arguments),S=f[0],B=1;B<f.length;B++)if(S!=f[B])return!1;return!0};
_.e.isGreaterThan=function(f,S){return f>S};
_.e.isLessThan=function(f,S){return f<S};
_.e.logicalAND=function(){for(var f=_.qb.apply(0,arguments),S=!!f[0],B=1;B<f.length;B++)S=S&&!!f[B];return S};
_.e.logicalOR=function(){for(var f=_.qb.apply(0,arguments),S=!!f[0],B=1;B<f.length;B++)S=S||!!f[B];return S};
_.e.toBool=function(f){return!!f};
j5.prototype.toBool=j5.prototype.toBool;j5.prototype.logicalOR=j5.prototype.logicalOR;j5.prototype.logicalAND=j5.prototype.logicalAND;j5.prototype.isLessThan=j5.prototype.isLessThan;j5.prototype.isGreaterThan=j5.prototype.isGreaterThan;j5.prototype.equals=j5.prototype.equals;j5.prototype.booleanString=j5.prototype.booleanString;j5.prototype.bindIfDefined=j5.prototype.bindIfDefined;j5.prototype.bindIf=j5.prototype.bindIf;_.N([_.iu()],j5);_.DPv=[j5.prototype];var IkX;var UP7;var ON=function(){return _.I.apply(this,arguments)||this};
_.q(ON,_.I);ON.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
ON.prototype.onBackIconTap_=function(){window.history.back()};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],ON.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],ON.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],ON.prototype,"data",void 0);_.N([_.nP({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],ON);
_.p(ON,"yt-header-with-back-renderer",function(){if(UP7===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;IkX===void 0&&(IkX=document.createElement("template"));var G=IkX;B.call(S,G.content.cloneNode(!0),f.content.firstChild);UP7=f}f=UP7;return f},{mode:2});var CZL;var p$m;var xC=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return f};
_.q(xC,_.I);_.e=xC.prototype;_.e.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.e.onDarkModeToggledAction=function(f){f!==this.isDarkTheme&&(this.isDarkTheme=f,this.setUrl())};
_.e.dataChanged=function(){var f=this;if(this.data){var S=this.setUrl();S&&_.Bq({destination:window,iframe:this.iframe,origin:_.EXL(S.toString()),channelName:"yt-iframe",onMessage:function(B){(B=f.getCommunicationCommand(B.data))&&f.ytComponentBehavior.resolveCommand(B)},
onEstablished:function(){}})}};
_.e.setUrl=function(){if(this.data&&this.data.iframeUrl){var f=_.E4(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(f)return _.x6(this.iframe,f),f}};
_.e.getCommunicationCommand=function(f){var S;if((S=this.data)!=null&&S.onCommunicationCommandsMap){S=this.data.onCommunicationCommandsMap.find(function(g){return g.key===f});
if(S==null?0:S.value)return S==null?void 0:S.value;try{var B=MRi(_.Rg(f)),G=this.data.onCommunicationCommandsMap.find(function(g){return g.key===(B==null?void 0:_.n4(B,1))});
if(G==null?0:G.value)return G==null?void 0:G.value}catch(g){}}};
xC.prototype.dataChanged=xC.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],xC.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],xC.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],xC.prototype,"actionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],xC.prototype,"data",void 0);
_.N([_.n({value:!1}),_.Z("design:type",Boolean)],xC.prototype,"isDarkTheme",void 0);_.N([_.vF("#iframe"),_.Z("design:type",HTMLIFrameElement)],xC.prototype,"iframe",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xC.prototype,"dataChanged",null);_.N([_.nP({is:"yt-iframe-renderer",disableElementRegistration:!0})],xC);
_.p(xC,"yt-iframe-renderer",function(){if(p$m===void 0){var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;CZL===void 0&&(CZL=document.createElement("template"));var G=CZL;B.call(S,G.content.cloneNode(!0),f.content.firstChild);p$m=f}f=p$m;return f},{mode:2});_.EN=function(f){_.qR.call(this);this.callback=f;this.bezier=new doo(0,0,.4,0,.2,1,1,1);this.delay=new _.li(this.next,window,this);this.JSC$14797_animating=!1;_.ha(this,this.delay)};
_.q(_.EN,_.qR);_.EN.prototype.isAnimating=function(){return this.JSC$14797_animating};
_.EN.prototype.start=function(f,S,B){this.config={from:f,to:S,duration:B,startTime:(0,_.fO)()};this.JSC$14797_animating=!0;this.next()};
_.EN.prototype.stop=function(){this.delay.stop();this.JSC$14797_animating=!1;this.config=void 0};
_.EN.prototype.next=function(){if(this.config){var f=this.config,S=f.from,B=f.to,G=f.duration;f=f.startTime;var g=(0,_.fO)()-f;f=this.bezier;G=HnN(f,g/G);if(G==0)f=f.y0;else if(G==1)f=f.y3;else{g=$U(f.y0,f.y1,G);var b=$U(f.y1,f.y2,G);f=$U(f.y2,f.y3,G);g=$U(g,b,G);b=$U(b,f,G);f=$U(g,b,G)}f=_.Uy(f,0,1);this.callback(S+(B-S)*f);f<1?this.delay.start():this.JSC$14797_animating=!1}};_.L3=new _.Sn("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var ABo={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},Mkj=function(f,S,B,G){_.qR.call(this);this.JSC$14805_miniAppId=f;this.localReleaseId=S;this.derivedDeviceInterface=B;this.isForeground=G;this.JSC$14805_playNonceResolver=new _.w3;this.playPingTimerId=NaN;this.playPingIntervalMs=_.Gt("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.Gt("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.K("enable_displaying_ppn");this.JSC$14805_miniAppClientDataProvider=_.oy().resolve(_.L3);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;Nqg(this);var g=setTimeout(function(){_.Lg(new _.dO("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$14805_playNonceResolver.promise.then(function(){clearTimeout(g)})};
_.q(Mkj,_.qR);var tkv=function(f,S){f.JSC$14805_playNonceResolver.resolve(S!=null?S:ri(8));f.enableDisplayingPpn&&Zhi(f).then(function(B){f.JSC$14805_miniAppClientDataProvider.clientData.set("post_play_nonce",B)})},Zhi=function(f){return _.R(function(S){return S.nextAddress==1?_.h(S,f.JSC$14805_playNonceResolver.promise,2):S.return(S.yieldResult)})},Nqg=function(f){var S,B;
_.R(function(G){if(G.nextAddress==1)return _.h(G,f.JSC$14805_playNonceResolver.promise,2);S=G.yieldResult;B={miniAppInfo:{externalPostId:f.JSC$14805_miniAppId,localReleaseId:f.localReleaseId,postPlayNonce:S,derivedDeviceInterface:f.derivedDeviceInterface}};_.EL(B);_.TT(G)})},akN=function(f){f.state!==0?_.Lg(new _.dO("[MiniAppPlayLogger] recordPlayStart failed with state "+ABo[f.state])):(f.state=1,kC(f,"ma_cl"),n3(f,"PLAY_EVENT_TYPE_PLAY_START"),uM7(f))},yB$=function(f){f.isForeground=!1;
n3(f,"PLAY_EVENT_TYPE_PLAY_PAUSE")},WM7=function(f){f.state!==1&&f.state!==2?_.Lg(new _.dO("[MiniAppPlayLogger] recordPlayEnd failed with state "+ABo[f.state])):(f.state=3,window.clearInterval(f.playPingTimerId),f.playPingTimerId=NaN,cVW(),n3(f,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},cBN=function(f,S){f.state===2&&f.gameReady&&(f.firstClickRecorded?Date.now()-f.clickRecordedMs<f.playClickIntervalMs||(f.clickRecordedMs=Date.now(),n3(f,"PLAY_EVENT_TYPE_PLAY_CLICK")):S&&(kC(f,"ma_fua"),n3(f,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),f.firstClickRecorded=!0,f.clickRecordedMs=Date.now()))};
Mkj.prototype.logError=function(f){var S=this,B;_.R(function(G){if(G.nextAddress==1)return f.metadata.externalPostId=S.JSC$14805_miniAppId,B=f.metadata,_.h(G,Promise.race([S.JSC$14805_playNonceResolver.promise,new Promise(function(g){setTimeout(function(){g("")},3E4)})]),2);
B.postPlayNonce=G.yieldResult;f.metadata.localReleaseId=S.localReleaseId;f.loggingError.level="WARNING";_.xH(f.loggingError,f.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:f.metadata});_.TT(G)})};
var lkX=function(f,S,B,G){var g,b,z,X,w,F;_.R(function(V){if(V.nextAddress==1)return _.h(V,f.JSC$14805_playNonceResolver.promise,2);g=V.yieldResult;b={externalPostId:f.JSC$14805_miniAppId,localReleaseId:f.localReleaseId,postPlayNonce:g,sdkVersion:B,api:S};G!==void 0&&(b.networkRequestsMeasurement={networkRequests:_.Bv(G,1),cachedRequests:_.Bv(G,2),transferredBytes:_.Bv(G,3)},(z=G)==null?0:_.qa(z,fW,6))&&(b.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((X=_.BU(G,
fW,6))==null?void 0:DI(X,1))||"0",cacheHits:((w=_.BU(G,fW,6))==null?void 0:DI(w,2))||"0",cachedBytes:((F=_.BU(G,fW,6))==null?void 0:DI(F,3))||"0"});_.jD("miniAppSdkUsage",b);_.TT(V)})},oE1=function(f,S,B){var G,g,b,z,X,w,F,V,J,P,d,Q,x,E,U,A;
_.R(function(t){if(t.nextAddress==1)return _.h(t,f.JSC$14805_playNonceResolver.promise,2);G=t.yieldResult;g={externalPostId:f.JSC$14805_miniAppId,localReleaseId:f.localReleaseId,postPlayNonce:G,sdkVersion:B,measurementWindow:{startTimestampMs:String(L4(S,1)),endTimestampMs:String(L4(S,2))},frameRate:{averageFrameTimeDeltaMs:kW(S,3),averageFrameIdleTimeMs:kW(S,4)}};_.qa(S,oR,5)&&(g.networkRequests={networkRequests:(b=mk(S))==null?void 0:_.Bv(b,1),cachedRequests:(z=mk(S))==null?void 0:_.Bv(z,2),transferredBytes:(X=
mk(S))==null?void 0:_.Bv(X,3),sameOriginStatusCodeToCounts:fh7((w=mk(S))==null?void 0:o$1(w,4)),crossOriginStatusCodeToCounts:fh7((F=mk(S))==null?void 0:o$1(F,5))},(V=mk(S))==null?0:_.qa(V,fW,6))&&(g.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((J=mk(S))==null?void 0:(P=_.BU(J,fW,6))==null?void 0:DI(P,1))||"0",cacheHits:((d=mk(S))==null?void 0:(Q=_.BU(d,fW,6))==null?void 0:DI(Q,2))||"0",cachedBytes:((x=mk(S))==null?void 0:(E=_.BU(x,fW,6))==null?void 0:DI(E,3))||"0"});_.qa(S,
sYm,7)&&(g.gameCapture={averageFrameTimeDeltaMs:(U=_.BU(S,sYm,7))==null?void 0:kW(U,1),averageFrameIdleTimeMs:(A=_.BU(S,sYm,7))==null?void 0:kW(A,2)});_.jD("miniAppPerformanceMetrics",g);_.TT(t)})},SgX=function(f,S,B){var G,g;
return _.R(function(b){if(b.nextAddress==1)return _.h(b,f.JSC$14805_playNonceResolver.promise,2);G=b.yieldResult;g={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:f.JSC$14805_miniAppId,postPlayNonce:G,miniAppReleaseId:f.localReleaseId},derivedDeviceInterface:f.derivedDeviceInterface,adTriggerType:S};g.rejectedReason=B||"MINI_APP_AD_REJECTED_REASON_UNSPECIFIED";_.jD("miniAppAdEvent",g);_.TT(b)})};
Mkj.prototype.disposeInternal=function(){_.qR.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var n3=function(f,S,B,G){B=B===void 0?{}:B;G=G===void 0?!1:G;var g,b,z,X;_.R(function(w){if(w.nextAddress==1)return g=f.isForeground,b=f.beforeReady,_.h(w,f.JSC$14805_playNonceResolver.promise,2);z=w.yieldResult;X={externalPostId:f.JSC$14805_miniAppId,localReleaseId:f.localReleaseId,derivedDeviceInterface:f.derivedDeviceInterface,postPlayNonce:z,type:S};B.sequenceGroup=z;X.playState=b?"PLAY_STATE_NOT_READY":g?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.jD("miniAppPlayEvent",X,B);
G&&_.OU();_.TT(w)})},kC=function(f,S){var B;
_.R(function(G){if(G.nextAddress==1)return B=(0,_.fO)(),_.h(G,f.JSC$14805_playNonceResolver.promise,2);_.kT(S,B);_.TT(G)})},uM7=function(f){isNaN(f.playPingTimerId)&&(f.playPingTimerId=_.zt(function(){f.state!==1&&f.state!==2?_.Lg(new _.dO("[MiniAppPlayLogger] reportPlayPing failed with state "+ABo[f.state])):n3(f,"PLAY_EVENT_TYPE_PLAY_PING")},f.playPingIntervalMs))},fh7=function(f){return Array.from(f.entries()).map(function(S){var B=_.m(S);
S=B.next().value;B=B.next().value;return{key:S,value:B}})};var Blv=_.Gt("show_mini_app_ad_frequency_cap_ms",0),GLi=function(){this.showAdIntervalMs=Blv;this.isRateLimited=!0},gE8=function(f,S){setTimeout(function(){return f.isRateLimited=!1},f.showAdIntervalMs);
f.showMiniAppAdCommand=S.showMiniAppAdCommand;f.isEmbeddedInWebview=S.isEmbeddedInWebview;f.playLogger=S.playLogger},bqm=function(f,S){var B;
return _.R(function(G){if(G.nextAddress==1){if(!f.showMiniAppAdCommand||!f.isEmbeddedInWebview)return G.return(ep7(f,S,"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"));if(f.isRateLimited)return G.return(ep7(f,S,"MINI_APP_AD_REJECTED_REASON_RATE_LIMITED"));f.adResolver=new _.w3;B=BXi(new LW,S);Zp(f.showMiniAppAdCommand,GhN(B));f.isRateLimited=!0;setTimeout(function(){return f.isRateLimited=!1},f.showAdIntervalMs);
return _.h(G,f.adResolver.promise,2)}return G.return(G.yieldResult)})};
GLi.prototype.onAdFinished=function(f){f=T5$(f);var S;(S=this.adResolver)==null||S.resolve(f)};
var ep7=function(f,S,B){var G;return _.R(function(g){if(g.nextAddress==1)g=_.h(g,(G=f.playLogger)==null?void 0:SgX(G,RON(S),B),2);else{var b=g.return;var z=new hoo;z=_.GV(z,1,2);g=b.call(g,z)}return g})};var m$6=new _.Sn("INNERTUBE_MANAGER_TOKEN");var zp1=function(){this.callbacks={}};
zp1.prototype.initialize=function(f){var S=this;this.callbacks=f;window.youtubewebview?window.youtubewebview.onmessage=function(B){Rpm(S,B)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(B){Rpm(S,B)})};
var Rpm=function(f,S){if(S.data)try{var B=MRi(S.data);if(_.CY(_.H_(B,1))!=null){var G=WRm(_.n4(B,2));switch(_.n4(B,1)){case "yt-mini-app-load-audio-state":var g,b;(b=(g=f.callbacks).onAudioStateLoaded)==null||b.call(g,_.EH(G,Kg(G,E2,1)));break;case "yt-mute-mini-app":var z,X;(X=(z=f.callbacks).onMuteMiniApp)==null||X.call(z);break;case "yt-unmute-mini-app":var w,F;(F=(w=f.callbacks).onUnmuteMiniApp)==null||F.call(w);break;case "yt-playable-exit":var V,J;(J=(V=f.callbacks).onExit)==null||J.call(V);
break;case "yt-post-play-nonce":var P,d;(d=(P=f.callbacks).onPostPlayNonceReceived)==null||d.call(P,Im(G,2,E2));break;case "yt-confirm-exit-mini-app":var Q,x;(x=(Q=f.callbacks).confirmExitMiniApp)==null||x.call(Q);break;case "yt-confirm-exit-mini-app-edu":var E,U;(U=(E=f.callbacks).confirmExitMiniAppEdu)==null||U.call(E);break;case "yt-benchmarking-response":var A,t;(t=(A=f.callbacks).onNativeBenchmarkingMessageReceived)==null||t.call(A,Im(G,2,E2));break;case "yt-mini-app-load-3p-consent-state":var M,
a;(a=(M=f.callbacks).multiplayer3pAckStateLoaded)==null||a.call(M,_.EH(G,Kg(G,E2,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var l,mx;(mx=(l=f.callbacks).exitMiniAppSeenStateLoaded)==null||mx.call(l,_.EH(G,Kg(G,E2,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var zj,VN;(VN=(zj=f.callbacks).onNavigateToNewMiniApp)==null||VN.call(zj);break;case "yt-game-data-available":var $Q,OV;(OV=($Q=f.callbacks).onGameDataAvailable)==null||OV.call($Q,Im(G,2,E2));break;case "yt-pause-mini-app":var rW,
MA;(MA=(rW=f.callbacks).onPauseMiniApp)==null||MA.call(rW);break;case "yt-resume-mini-app":var UV,W7;(W7=(UV=f.callbacks).onResumeMiniApp)==null||W7.call(UV);break;case "yt-playable-ad-finished":var c7,Q$;(Q$=(c7=f.callbacks).onAdFinished)==null||Q$.call(c7,Im(G,2,E2))}}else _.Lg(Error("Sh"))}catch(To){_.xH(Error("Th"))}else _.Lg(Error("Uh"))};var wR1=function(f){this.rpcErrorCode=f};var sN=function(f,S,B){this.intervalMs=f;this.apiFunc=S;this.type=B;this.schedulerReady=!0};
sN.prototype.call=function(f){var S=this,B;return _.R(function(G){if(G.nextAddress==1){if(S.type!==1&&f===S.cachedValue)return G.return();S.pendingApiRequestResolver||(S.pendingApiRequestResolver=new _.w3);B=S.pendingApiRequestResolver.promise;S.cachedValue=f;return _.h(G,Xko(S),2)}return G.return(B)})};
sN.prototype.flush=function(f){f=f===void 0?!1:f;var S=this;return _.R(function(B){return S.cachedValue===void 0?B.return():_.h(B,S.apiFunc(S.cachedValue,f),0)})};
var Xko=function(f){var S,B,G;return _.R(function(g){switch(g.nextAddress){case 1:if(!f.schedulerReady||!f.pendingApiRequestResolver)return g.return();f.schedulerReady=!1;S=f.pendingApiRequestResolver;f.pendingApiRequestResolver=void 0;_.zT(g,2);if(f.cachedValue===void 0){g.jumpTo(4);break}return _.h(g,f.apiFunc(f.cachedValue),5);case 5:B=g.yieldResult,S.resolve(B);case 4:_.CN(g,3);break;case 2:G=_.hm(g),S.reject(G);case 3:setTimeout(function(){return _.R(function(b){f.schedulerReady=!0;return _.h(b,
Xko(f),0)})},f.intervalMs),_.TT(g)}})};var FhA=window.location.origin+"/miniapp_cloudsaves",hOM=[400,401],wki=_.Gt("cloud_save_game_data_rate_limit_ms",3E3),Fco=function(f){var S=this;this.JSC$14849_miniAppId=f;this.loadAttempts=0;this.cloudSaveIntervalMs=wki;this.initialDownloadDataSucceeded=!1;this.JSC$14849_playNonceResolver=new _.w3;this.scottyUploadRateLimiter=new sN(this.cloudSaveIntervalMs,function(B,G){return hp6(S,B,G)},2);
this.downloadDataPromise=Tl1(this);this.downloadDataPromise.then(function(){S.initialDownloadDataSucceeded=!0}).catch(function(){})},VF6=function(f,S){S.then(function(B){return f.JSC$14849_playNonceResolver.resolve(B)})},Jt$=function(f){return _.R(function(S){return f.cachedData===void 0?S.return(f.downloadDataPromise):S.return(f.cachedData)})},Ppv=function(f,S){return _.R(function(B){f.cachedData=S;
if(!f.initialDownloadDataSucceeded)throw Error("Vh");return _.h(B,f.scottyUploadRateLimiter.call(S),0)})},vEL=function(){return new Promise(function(f){setTimeout(f,1E3,"")})},KcL=function(f,S){var B,G;
return _.R(function(g){if(g.nextAddress==1)return B=f.JSC$14849_miniAppId,_.h(g,Promise.race([f.JSC$14849_playNonceResolver.promise,vEL()]),2);G={"X-YouTube-MiniAppId":B,"X-YouTube-PostPlayNonce":g.yieldResult};"DELEGATED_SESSION_ID"in _.LL&&xCK(S,G);return g.return(G)})},hp6=function(f,S,B){B=B===void 0?!1:B;
return _.R(function(G){return XRx()?_.K("enable_cloud_save_error_popup_after_retry")?G.return(new Promise(function(g,b){var z,X,w,F,V;return _.R(function(J){switch(J.nextAddress){case 1:z=0,X=!0,F=w=null;case 2:if(!(X&&z++<2)){J.jumpTo(4);break}_.zT(J,5);return _.h(J,d$6(f,S,B),7);case 7:w=J.yieldResult;X=w.ok?!1:!hOM.includes(w.status);_.CN(J,2);break;case 5:F=V=_.hm(J);X=TTW(F);J.jumpTo(2);break;case 4:w?w.ok?(Dl(f,wki),g()):(Dl(f,f.cloudSaveIntervalMs*2),b(Error("Wh`"+String(w.status),{cause:{rpcErrorCode:w.status}}))):
(Dl(f,f.cloudSaveIntervalMs*2),b(F||Error("Xh"))),_.TT(J)}})})):G.return(new Promise(function(g,b){var z,X;
return _.R(function(w){if(w.nextAddress==1){if(f.JSC$14849_miniAppId==="")return b(Error("Yh")),w.return();_.zT(w,2);return _.h(w,d$6(f,S,B),4)}if(w.nextAddress!=2)return z=w.yieldResult,z.ok?(Dl(f,wki),g()):(Dl(f,f.cloudSaveIntervalMs*2),b(Error("Wh`"+String(z.status),{cause:{rpcErrorCode:z.status}}))),_.CN(w,0);X=_.hm(w);Dl(f,f.cloudSaveIntervalMs*2);b(X);_.TT(w)})})):G.return()})},d$6=function(f,S,B){B=B===void 0?!1:B;
var G,g,b;return _.R(function(z){if(z.nextAddress==1)return G=_.oO((new TextEncoder).encode(S)),g=Vij(),_.h(z,KcL(f,g),2);b=z.yieldResult;return z.return(fetch(g,{method:"POST",body:new Blob([G]),headers:b,keepalive:B}))})},Tl1=function(f){var S,B;
return _.R(function(G){if(G.nextAddress==1){if(!XRx())return G.return("");if(f.JSC$14849_miniAppId==="")throw Error("Yh");if(f.loadAttempts>2)return G.return(f.downloadDataPromise);_.zT(G,2);return _.h(G,iqi(f),4)}if(G.nextAddress!=2)return S=G.yieldResult,G.return(S);B=_.hm(G);if(TTW(B)&&++f.loadAttempts<2)return G.return(Tl1(f));throw B;})},iqi=function(f){var S,B,G,g,b;
return _.R(function(z){switch(z.nextAddress){case 1:return _.zT(z,2),S=Vij(),_.h(z,KcL(f,S),4);case 4:return B=z.yieldResult,_.h(z,fetch(S,{method:"GET",headers:B}),5);case 5:return G=z.yieldResult,G.ok?_.h(z,G.text(),6):z.return(Promise.reject(Error("Zh`"+String(G.status),{cause:new wR1(G.status)})));case 6:return g=z.yieldResult,z.return((new TextDecoder).decode(_.Rg(g)));case 2:return b=_.hm(z),z.return(Promise.reject(b))}})},Dl=function(f,S){f.cloudSaveIntervalMs=S;
f.scottyUploadRateLimiter.intervalMs=f.cloudSaveIntervalMs};
Fco.prototype.flush=function(){var f=this;return _.R(function(S){return f.initialDownloadDataSucceeded?_.h(S,f.scottyUploadRateLimiter.flush(!0),0):S.return()})};var HqL=eR(gU(1),B1(1)),qg8=eR(gU(1),B1(3)),I2=function(f){this.callbacks=f};
_.e=I2.prototype;_.e.onAudioToggled=function(f,S){(S===void 0||S)&&_.Xw("yt-mini-app-is-audio-enabled",f,2592E3)};
_.e.onPause=function(){this.onAudioToggled(!1,!1)};
_.e.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.e.returnNativeBenchmarkingMessage=function(){};
_.e.sendGameData=function(){};
_.e.sendStartGameFrameCapture=function(){};
var JTK=function(f,S,B){this.callbacks=f;var G=this;this.sdkVersion=new _.w3;this.channel=new sp1(_.Bq({destination:window,iframe:S,origin:(new URL(B.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var g=UN;var b=gU(5);var z=new Hym;z=_.C4(z,1,1E4);b=_.Bo(b,4,xV1,z);g(G,b);G.onAudioToggled(G.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){G.sdkVersion.resolve("")},1E4)};
_.q(JTK,I2);_.e=JTK.prototype;_.e.onAudioToggled=function(f,S){I2.prototype.onAudioToggled.call(this,f,S===void 0?!0:S);S=UN;var B=gU(2),G=new dV6;f=_.b5(G,1,f);f=_.Bo(B,3,xV1,f);S(this,f)};
_.e.onPause=function(){I2.prototype.onPause.call(this);UN(this,gU(3))};
_.e.onResume=function(){I2.prototype.onResume.call(this);UN(this,gU(4))};
_.e.returnNativeBenchmarkingMessage=function(f){var S=UN,B=gU(6);var G=B1(_.qa(f,ym,1)?1:2);f=_.qa(f,ym,1)?f:null;G=_.Bo(G,5,G9,f);S(this,eR(B,G))};
_.e.sendGameData=function(f){var S=UN,B=gU(7);f=_.Bo(B,5,xV1,f);S(this,f)};
_.e.sendStartGameFrameCapture=function(){UN(this,gU(9))};
var C3=function(f,S,B){var G,g,b;return _.R(function(z){if(z.nextAddress==1)return G=f.callbacks,g=G.onSdkCalled,b=S,_.h(z,f.sdkVersion.promise,2);g.call(G,b,z.yieldResult,B);_.TT(z)})};
JTK.prototype.onMessage=function(){var f=this;return UOs(z9,function(S){var B,G,g,b,z,X,w,F,V,J,P,d,Q,x,E,U,A,t,M,a,l,mx,zj,VN,$Q,OV,rW,MA,UV,W7,c7,Q$,To,Ci,VM,Go,Io,uz,RT,P7,O8,ao,H7,um,CQ,t1;return _.R(function(em){switch(em.nextAddress){case 1:if(!C17(S.data))return _.Lg(Error("$h")),em.return();B=_.sH(S.data,1);_.K("enable_iframe_message_get_type_via_fields")&&(G=S.data,B=g=_.sH(G,1));switch(B){case 8:if(S.data.hasMetadata()){var Ig=f.sdkVersion,vO=Ig.resolve;var v7=S.data.getMetadata();v7=_.n4(v7,
1);vO.call(Ig,v7);clearTimeout(f.sdkVersionTimeoutId)}break;case 6:return em.jumpTo(2);case 16:if(!_.$W(S.data,kN$,14,RR))return em.return();b=_.UH(S.data,kN$,14,RR);(X=(z=f.callbacks).onGameFrameReceived)==null||X.call(z,b);return em.return();case 17:if(!_.$W(S.data,Lvj,15,RR))return em.return();(F=(w=f.callbacks).onGameAudioReceived)==null||F.call(w,_.UH(S.data,Lvj,15,RR));return em.return();case 1:if(Ig=_.UH(S.data,QYj,2,RR))switch(_.sH(Ig,1)){case 1:f.callbacks.onFirstFrameReady();if(_.K("enable_network_request_logging_on_game_events")&&
_.qa(Ig,oR,4)){C3(f,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.BU(Ig,oR,4));break}C3(f,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(v7=(vO=f.callbacks).onGameReady)==null||v7.call(vO);if(_.K("enable_network_request_logging_on_game_events")&&_.qa(Ig,oR,4)){C3(f,"MINI_APP_SDK_API_GAME_READY",_.BU(Ig,oR,4));break}C3(f,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.$W(Ig,SR,3,YC8))f.callbacks.onResourceLoaded(_.UH(Ig,SR,3,YC8))}return em.return();case 3:return em.jumpTo(3);case 4:return em.jumpTo(4);
case 2:return em.jumpTo(5);case 9:return em.jumpTo(6);case 10:return f.callbacks.onClick(),em.return();case 5:return em.jumpTo(7);case 11:if(!_.$W(S.data,cu,9,RR))return em.return();V=_.UH(S.data,cu,9,RR);(P=(J=f.callbacks).onBenchmarkingMessageReceived)==null||P.call(J,V);Ig=S.reply;vO=gU(1);v7=B1(1);var YX=new cu;var we=new Uint8Array(eV1(V,Kg(V,V3$,6))|0);YX=FX(YX,5,V3$,_.ni(we,!1));v7=_.Bo(v7,5,G9,YX);Ig.call(S,eR(vO,v7));return em.return();case 12:return em.jumpTo(8);case 13:return em.jumpTo(9);
case 15:if(!_.K("enable_open_yt_content"))return S.reply(qg8),em.return();if(!_.$W(S.data,EVo,12,RR))return S.reply(eR(gU(1),B1(2))),em.return();Ig=_.UH(S.data,EVo,12,RR);d=_.n4(Ig,1);f.callbacks.onOpenYTContent(d);S.reply(HqL);return em.return();case 14:return em.jumpTo(10);default:return em.return()}em.jumpTo(0);break;case 2:if(!_.$W(S.data,be,5,RR))return em.return();vO=S.data;Ig=Kg(vO,RR,5);vO=vO.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(Ig=rI(vO,vO[_.dN]|0,be,Ig))||(Ig=be[N2])||
(Ig=new be,$X(Ig.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),Ig=be[N2]=Ig);Q=Ig;Ig=_.oK(Q,lH,1,_.SI());x=_.m(Ig);E=x.next();case 12:if(E.done){em.jumpTo(14);break}U=E.value;A=new _.dO;A.level=_.sH(U,2)===1?"WARNING":"ERROR";t=vzK(U.getSource());return _.h(em,f.sdkVersion.promise,15);case 15:M={source:t,sdkVersion:em.yieldResult};_.iz(_.H_(U,6))!=null?(A.message=U.getMessage(),A.stack=_.n4(U,5),M.sdkErrorType=KhQ(_.sH(U,6)),_.iz(_.H_(U,7))!=null&&(M.sdkApi=dQ9(_.sH(U,7)))):A.stack=void 0;
l=a=void 0;(l=(a=f.callbacks).onError)==null||l.call(a,{loggingError:A,metadata:M});E=x.next();em.jumpTo(12);break;case 14:return em.return();case 3:return _.zT(em,16),Ig=f.callbacks,vO=Ig.onSave,v7=_.UH(S.data,iyN,4,RR),v7=_.n4(v7,1),_.h(em,vO.call(Ig,v7),18);case 18:S.reply(HqL);_.CN(em,17);break;case 16:return mx=_.hm(em),zj=tp,VN=mx,$Q=f.callbacks,OV="MINI_APP_SDK_API_SAVE_DATA",_.h(em,f.sdkVersion.promise,19);case 19:zj(VN,$Q,OV,em.yieldResult),S.reply(qg8);case 17:return _.h(em,C3(f,"MINI_APP_SDK_API_SAVE_DATA"),
20);case 20:return em.return();case 4:return _.zT(em,21),_.h(em,f.callbacks.onLoad(),23);case 23:rW=em.yieldResult;Ig=S.reply;vO=gU(1);v7=B1(1);YX=new iyN;YX=_.Jx(YX,1,rW);v7=_.Bo(v7,3,G9,YX);Ig.call(S,eR(vO,v7));_.CN(em,22);break;case 21:return MA=_.hm(em),UV=tp,W7=MA,c7=f.callbacks,Q$="MINI_APP_SDK_API_LOAD_DATA",_.h(em,f.sdkVersion.promise,24);case 24:UV(W7,c7,Q$,em.yieldResult),S.reply(qg8);case 22:return _.h(em,C3(f,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return em.return();case 5:_.zT(em,
26);f.callbacks.onSendHighScore(LS(_.UH(S.data,Ipg,3,RR).getValue()));S.reply(eR(gU(1),B1(1)));_.CN(em,27);break;case 26:return To=_.hm(em),Ci=tp,VM=To,Go=f.callbacks,Io="MINI_APP_SDK_API_SEND_SCORE",_.h(em,f.sdkVersion.promise,28);case 28:Ci(VM,Go,Io,em.yieldResult),S.reply(qg8);case 27:return _.h(em,C3(f,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return em.return();case 6:if(!_.$W(S.data,UVg,8,RR)){em.jumpTo(30);break}Ig=_.UH(S.data,UVg,8,RR);Ig=_.sH(Ig,1);return _.h(em,C3(f,dQ9(Ig)),30);case 30:return em.return();
case 7:return Ig=S.reply,vO=gU(1),v7=B1(1),YX=f.callbacks.getLanguage(),v7=FX(v7,4,G9,DZ(YX)),Ig.call(S,eR(vO,v7)),_.h(em,C3(f,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return em.return();case 8:if(!_.$W(S.data,DVN,10,RR))return em.return();uz=_.UH(S.data,DVN,10,RR);RT=f.callbacks;P7=RT.onSdkPerformanceUpdate;return _.h(em,f.sdkVersion.promise,33);case 33:return P7.call(RT,uz,em.yieldResult),em.return();case 9:Ig=S.data;vO=Kg(Ig,RR,11);if(_.CY(_.H_(Ig,vO))==null)return S.reply(eR(gU(1),B1(2))),
em.return();O8=Im(S.data,11,RR);f.callbacks.onShareInviteCode(O8);S.reply(HqL);return _.h(em,C3(f,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return em.return();case 10:if(_.$W(S.data,Kvm,13,RR)){em.jumpTo(35);break}return _.h(em,f.callbacks.onShowMiniAppAd(2),36);case 36:return ao=em.yieldResult,S.reply(eR(gU(1),jYv(ao))),_.h(em,C3(f,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return em.return();case 35:Ig=_.UH(S.data,Kvm,13,RR);a:switch(_.sH(Ig,1)){case 1:Ig={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:Ig={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:Ig={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}H7=Ig;um=H7.adType;CQ=H7.sdkApi;Ig=f.callbacks;vO=Ig.onShowMiniAppAd;v7=_.UH(S.data,Kvm,13,RR);v7=_.n4(v7,2);return _.h(em,vO.call(Ig,um,v7||void 0),38);case 38:return t1=em.yieldResult,S.reply(eR(gU(1),jYv(t1))),_.h(em,C3(f,CQ),39);case 39:return em.return()}})})};
var UN=function(f,S){_.R(function(B){f.channel.send(S);_.TT(B)})},u1=function(f,S,B){this.callbacks=f;
var G=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;f=eDj(S,(new URL(B.toString())).origin);this.gameSnacks=new lbx(f);this.gameSnacks.page.onReady(function(){G.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){G.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var g,b;(b=(g=G.callbacks).onGameReady)==null||b.call(g)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(g,b){try{G.callbacks.onSendHighScore(b)}catch(z){tp(z,G.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(g,b){var z;return _.R(function(X){if(X.nextAddress==1)return _.zT(X,2),_.h(X,G.callbacks.onSave(G.decoder.decode(b)),4);if(X.nextAddress!=2)return _.CN(X,0);z=_.hm(X);tp(z,G.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return X.return()})});
this.gameSnacks.storage.onLoad(function(){var g,b;return _.R(function(z){if(z.nextAddress==1)return _.zT(z,2),_.h(z,G.callbacks.onLoad(),4);if(z.nextAddress!=2)return g=z.yieldResult,z.return(G.encoder.encode(g));b=_.hm(z);tp(b,G.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return z.return(G.encoder.encode(""))})});
this.gameSnacks.init()};
_.q(u1,I2);u1.prototype.onAudioToggled=function(f,S){I2.prototype.onAudioToggled.call(this,f,S===void 0?!0:S);var B;(B=this.gameSnacks)==null||B.audio.update(f)};
u1.prototype.onPause=function(){I2.prototype.onPause.call(this);var f;(f=this.gameSnacks)==null||f.game.pause()};
u1.prototype.onResume=function(){I2.prototype.onResume.call(this);var f;(f=this.gameSnacks)==null||f.game.resume()};var $$X=iaW,QX6=_.oS(function(f){var S=f.data;var B=f.loadingProgress;f=_.m(_.hj("",void 0,"LYYTdd"));var G=f.next().value,g=f.next().value;f=_.m(_.hj(!1,void 0,"K0waae"));var b=f.next().value,z=f.next().value,X=[],w=function(){return"transform: scaleX("+(_.Ev(B)||0)+")"},F=null,V=function(){var Q;
return(Q=S()&&F)!=null?Q:F=S().showAnniversaryAnimation?6:$$X()};
_.jp(function(){var Q;if(S().timeOutMessages&&((Q=S().timeOutMessages)==null?0:Q.length)){F=null;Q=_.m(X);for(var x=Q.next();!x.done;x=Q.next())clearTimeout(x.value);X.length=0;HaK(S().timeOutMessages,X,g,z)}},"hrKvCe");
var J=function(){return!!S().persistentErrorMessageTitle},P=function(){return B!==void 0},d=function(){return S().title};
return _.T("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.T("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.T("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.T("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var Q,x=(Q=S().backgroundImage)==null?void 0:Q.sources,E;return(x==null?0:x.length)?"background-image: url("+((E=x[0])==null?void 0:E.url)+")":
""}}),_.T("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.T(_.v,{cond:function(){return!J()},
then:function(){var Q={};return _.T("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.T("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.T(_.vw,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+V()},
data:function(){var x="loading_animation_"+V();return{animationConfig:{name:x,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+x+".json",loop:!0,autoplay:!0}}}})),_.T("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.T(_.v,{cond:d,
then:function(){return _.T("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},d)}}),_.T("p",{class:_.Pw("mini-app-splash-screen-view-model-wiz__timeout-message",(Q["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return b()},Q)),
"aria-live":"polite"},G),_.T(_.v,{cond:P,then:function(){return _.T("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.T("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:w}))}})))}}),_.T(_.v,{cond:J,
then:function(){return _.T("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.T("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return S().persistentErrorMessageTitle}),_.T(_.v,{cond:function(){return!!S().persistentErrorMessageDescription},
then:function(){return _.T("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return S().persistentErrorMessageDescription})}}))}})))},"Sd");var Yg$=new _.Sn("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var rtm=WW;WW=function(f){function S(B){if(B){var G,g;(G=B.__spec)==null||(g=G.didUnmount)==null||g.call(G);for(G=0;G<B.childNodes.length;G++)S(B.childNodes[G])}}
rtm==null||rtm(f);En(function(){for(var B=0;B<f.length;B++)S(f[B])})};var jXg=_.oS(function(f){var S=f.data;var B=f.score;var G=f.formattedScore;var g=f.onScoreChanged;var b=f.isEmbeddedInWebview;var z=_.us("yt-mini-app-score-button-view-model"),X=function(){var d;return _.H(S==null?void 0:(d=S())==null?void 0:d.buttonViewModel,_.Q5)},w=function(){var d;
return(B==null?void 0:B())||Number(S==null?void 0:(d=S())==null?void 0:d.lastScore)||0},F=function(){var d;
return(G==null?void 0:G())||((d=X())==null?void 0:d.title)||""},V,J=1;
if(f=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))f=Number(f),J=isNaN(f)?1:f/100;_.jp(function(){g==null||g(w());var d;var Q=_.CH((d=X())==null?void 0:d.onTap);if(Q){d=_.H(Q,zG7);var x,E,U;d=_.H(d==null?void 0:(x=d.panelLoadingStrategy)==null?void 0:(E=x.inlineContent)==null?void 0:(U=E.dialogViewModel)==null?void 0:U.customContent,goL)}else d=void 0;if(x=d)x.score=F()},"KZFi5e");
f=_.iF(function(){var d,Q,x=S==null?void 0:(d=S())==null?void 0:(Q=d.loggingDirectives)==null?void 0:Q.trackingParams;x&&_.TE(_.oy().resolve(_.Qz),x);return!1});
_.j9(function(){if(z.value){var d=z.value.querySelector("button"),Q=X();d&&Q&&qzG(d,Q);ls("yt-share-playable-with-high-score",function(){var x=w().toString(),E=S==null?void 0:S().onShareHighScoreCommand,U=S==null?void 0:S().highScoreShareClientParamIdentifier,A=b==null?void 0:b();E&&(A?(U=new Wpm,x=_.Jx(U,2,x),Zp(E,x.JSC$10328_serializeBinary())):U&&(_.oy().resolve(Yg$).clientParams.set(U,{miniAppClientParams:{highScore:x}}),bax(E,!1)))})}});
var P=function(){var d=X();d&&(B==null?0:B())&&d.accessibilityText&&(d.accessibilityText=d.accessibilityText.replace(V,F()));V=F();return{numberValue:w(),numberText:F(),heightPx:36,fontSizeMultiplier:J,shouldAnimate:!(B==null||!B())&&!0}};
return _.T("yt-mini-app-score-button-view-model",{class:function(){var d={};return _.K9("mini-app-score-button-view-model-wiz",(d["mini-app-score-button-view-model-wiz--is-visible"]=w()!==0,d))},
el:z,"on:click":f},Wv(!1,function(){return _.T("span",{style:"display:none;"},w)}),_.T(_.xK,{data:function(){var d;
return S==null?void 0:(d=S())==null?void 0:d.buttonViewModel}},{buttonViewModel:function(d){return _.T(_.I8,{data:d.data,
animatedTextProps:P})}}))},"Td");var kLg=_.oS(function(f){var S,B=(S=_.wQ("yt-mini-app-is-theater-mode-enabled"))!=null?S:!1,G=_.K("enable_playable_container_save_button"),g=_.K("enable_play_next_destination_page_in_toolbar");S={};return _.T("ytm-mini-app-top-bar-view-model",null,_.T("div",{class:_.Pw("yt-mini-app-top-bar-view-model",(S["yt-mini-app-top-bar-view-model--mobile"]=!1,S["yt-mini-app-top-bar-view-model--desktop"]=!0,S))},_.T("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.T(_.v,{cond:function(){var b;
return!!f.data().backButtonEdu&&!((b=f.isExitMiniAppSeen)==null?0:b.call(f))},
then:function(){return _.T(_.xK,{data:function(){return f.data().backButtonEdu}},{buttonViewModel:_.I8})},
else:function(){return _.T(_.xK,{data:function(){return f.data().backButton}},{buttonViewModel:_.I8})}}),_.T(_.v,{cond:function(){return f.data().viewAllButton&&!0},
then:function(){return _.T(_.xK,{data:function(){return f.data().viewAllButton}},{buttonViewModel:_.I8})}}),_.T(_.v,{cond:function(){return f.data().title&&!0},
then:function(){return _.T("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return f.data().title})}})),_.T("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.T(_.v,{cond:function(){var b;
return(b=f.isDesktopPlayPage)==null?void 0:b.call(f)},
then:function(){return _.T(_.gg,null,_.T(Oqm,{highScoreButton:function(){return f.data().highScoreButton},
score:f.score,formattedScore:f.formattedScore,onScoreChanged:f.onScoreChanged,isEmbeddedInWebview:f.isEmbeddedInWebview}),_.T(x$7,{enableSaveButton:function(){return _.Ev(G)},
saveButton:function(){return f.data().saveButton},
isSaved:f.isSaved,onSaveToggled:function(){return f.onSaveToggled}}),_.T(EE7,{menuButton:function(){return f.data().menuButton}}))},
else:function(){return _.T(_.v,{cond:function(){return!1},
then:function(){return _.T(_.xK,{data:function(){return f.data().playPageButton}},{buttonViewModel:function(b){return _.T(_.I8,{data:b.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.T(Oqm,{highScoreButton:function(){return f.data().highScoreButton},
score:f.score,formattedScore:f.formattedScore,onScoreChanged:f.onScoreChanged,isEmbeddedInWebview:f.isEmbeddedInWebview})}})}})),_.T("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.T(_.xK,{data:function(){return f.data().muteButton}},{toggleButtonViewModel:function(b){var z=b.data;
return _.T(_.ER,{data:function(){var X,w;return Object.assign({},z(),{isToggled:(w=(X=f.isAudioEnabled)==null?void 0:X.call(f))!=null?w:!0})},
onToggle:f.onAudioToggled,useOutlinedIcon:!0})}}),_.T(_.xK,{data:function(){return f.data().theatreModeButton}},{toggleButtonViewModel:function(b){var z=b.data;
return _.T("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.T(_.ER,{data:function(){return Object.assign({},z(),{isToggled:B})},
useOutlinedIcon:!0}))}}),_.T(Lci,{fullscreenButton:function(){return f.data().fullscreenButton}}),_.T(_.v,{cond:function(){return _.Ev(g)&&f.data().viewAllButton&&!1},
then:function(){return _.T(_.xK,{data:function(){return f.data().viewAllButton}},{buttonViewModel:_.I8})}}),_.T(_.v,{cond:function(){var b;
return!((b=f.isDesktopPlayPage)==null?0:b.call(f))},
then:function(){return _.T(_.gg,null,_.T(x$7,{enableSaveButton:function(){return _.Ev(G)},
saveButton:function(){return f.data().saveButton},
isSaved:f.isSaved,onSaveToggled:function(){return f.onSaveToggled}}),_.T(EE7,{menuButton:function(){return f.data().menuButton}}))}}))))},"Ud");
kLg.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var EE7=_.oS(function(f){return _.T(_.xK,{data:f.menuButton},{buttonViewModel:_.I8})},"Vd"),x$7=_.oS(function(f){var S=f.enableSaveButton;
var B=f.saveButton;var G=f.isSaved;var g=f.onSaveToggled;return _.T(_.v,{cond:function(){return S()&&!(B==null||!B())},
then:function(){return _.T(_.xK,{data:function(){var b=_.H(B==null?void 0:B(),_.YK),z;return{toggleButtonViewModel:Object.assign({},b,{isToggled:(z=G==null?void 0:G())!=null?z:!(b==null||!b.isToggled)})}}},{toggleButtonViewModel:function(b){return _.T(_.ER,{data:b.data,
onToggle:g})}})}})},"Wd"),Oqm=_.oS(function(f){var S=f.highScoreButton;
var B=f.score;var G=f.formattedScore;var g=f.onScoreChanged;var b=f.isEmbeddedInWebview;return _.T(_.xK,{data:S},{miniAppScoreButtonViewModel:function(z){return _.T(jXg,{data:z.data,score:B,formattedScore:G,onScoreChanged:g,isEmbeddedInWebview:b})}})},"Xd"),Lci=_.oS(function(f){f=f.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.T(_.gg,null):_.T(_.xK,{data:f},{buttonViewModel:_.I8})},"Yd");_.nE8=new _.Sn("DESKTOP_CURRENT_PAGE");var pkL=_.oS(function(f){var S=f.data;var B=_.K("force_active_time_logging_webview"),G=!1,g=new zp1,b=void 0,z=void 0,X=_.oy().resolve(m$6),w=new GLi,F=void 0,V=void 0,J=[],P=void 0,d=void 0,Q=!1,x=!1,E=!1,U=!1,A=new _.w3,t=_.oy().resolve(Yg$),M=_.oy().resolve(_.L3),a=_.oy().resolve(_.fN(T5)),l,mx=(l=_.oy().resolve(_.fN(_.nE8)))==null?void 0:l.getCurrentPage(),zj=!1,VN=0,$Q=function(NA){NA.preventDefault();return NA.returnValue=""},OV;
f=_.m(_.hj(!((OV=_.wQ("yt-mini-app-is-audio-enabled"))!=null&&!OV),void 0,"cGaEvf"));var rW=f.next().value,MA=f.next().value,UV;OV=_.m(_.hj(!((UV=_.wQ("exit-mini-app-seen-state"))==null||!UV),void 0,"DctXGe"));var W7=OV.next().value,c7=OV.next().value;UV=_.m(_.hj(!1,void 0,"pU1jdd"));var Q$=UV.next().value,To=UV.next().value;UV=_.m(_.hj(void 0,void 0,"ldLqDf"));var Ci=UV.next().value,VM=UV.next().value;UV=_.m(_.hj(void 0,void 0,"mdofE"));var Go=UV.next().value,Io=UV.next().value;UV=_.m(_.hj(!0,void 0,
"T1gxCf"));var uz=UV.next().value,RT=UV.next().value;UV=_.m(_.hj(!1,void 0,"gxt7wf"));var P7=UV.next().value,O8=UV.next().value;UV=_.m(_.hj(void 0,void 0,"yqLV6d"));var ao=UV.next().value,H7=UV.next().value;UV=_.m(_.hj(0,void 0,"l6CrGf"));var um=UV.next().value,CQ=UV.next().value,t1=_.tE("mini-app-container-view-model"),em=function(){return S().isEmbeddedInWebview},Ig=function(){return S().hasPlayNextShelf};
ls("yt-page-type-changed",function(NA){if(_.K("enable_is_mini_app_page_active_bugfix"))NA.detail.newPageSubtype==="mini_app"&&NA.detail.newPageType==="ytd-browse"||!uz()||YX();else if(NA=_.b69()==="mini_app",NA!==uz())if(RT(NA),NA){var BO;NA=(BO=S().playableId)==null?void 0:BO.toString();NA!==void 0&&window.location.href.includes(NA)&&!x&&(U=!0,vO(),wN.value&&TX(wN.value))}else NA||YX()});
ls("yt-action",function(NA){NA.detail.actionName==="yt-engagement-panel-visible-changed"&&NA.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&NA.detail.args[2]==="PAmini_app_panel"&&YX();_.K("enable_is_mini_app_page_active_bugfix")?NA.detail.actionName==="yt-history-load"&&!uz()&&(mx==null?0:mx.active)?(RT(!0),vO(),wN.value&&TX(wN.value)):NA.detail.actionName==="yt-history-load"&&uz()&&!S().isEmbeddedInWebview&&KQ():uz()&&NA.detail.actionName==="yt-history-load"&&(U?U=!1:S().isEmbeddedInWebview||
KQ())});
_.Ov(function(){v7()});
_.jp(function(){vO()},"PiwKsd");
var vO=function(){var NA=S().playableId,BO=S().localReleaseId,Uu=S().derivedDeviceInterface;if(x)_.Lg(new _.dO("[MiniAppContainerViewModel] onEnter was called more than once"));else{x=!0;b=new Mkj(NA,BO,Uu,document.visibilityState==="visible");akN(b);z=new Fco(NA);sX8(X,NA);gE8(w,{showMiniAppAdCommand:S().showMiniAppAdCommand,isEmbeddedInWebview:S().isEmbeddedInWebview,playLogger:b});J2V()&&(d=document.body.style.backgroundColor,_.IF(document.body,"background-color","black"));vv();J1();A=new _.w3;
if(S().isEmbeddedInWebview){if(NA=(new URLSearchParams(window.location.search)).get("postPlayNonce"))tkv(b,NA),zj=!0;g.initialize({onAudioStateLoaded:function(lz){bz(lz)},
onMuteMiniApp:function(){bz(!1)},
onUnmuteMiniApp:function(){bz(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(lz){zj||(tkv(b,lz),zj=!0)},
confirmExitMiniApp:function(){var lz,gz,Mb;return _.R(function(FT){if(FT.nextAddress==1)return S().confirmExitMiniAppCommand?_.h(FT,Promise.race([A.promise,Promise.resolve(!1)]),2):FT.return();(lz=FT.yieldResult)?!S().confirmExitMiniAppCommandEdu||(Mb=(gz=W7)==null?void 0:gz())!=null&&Mb?dz(S().confirmExitMiniAppCommand):(dz(S().confirmExitMiniAppCommandEdu),_.Xw("exit-mini-app-seen-state","true",2592E6)):dz(S().closeMiniAppCommand);_.TT(FT)})},
onNativeBenchmarkingMessageReceived:function(lz){lz=P1m(_.gIQ(lz));if(_.$W(lz,_.MV,3,Fvm)){var gz=_.UH(lz,_.MV,3,Fvm),Mb=mQx();var FT=LS(Mb.getSeconds())-LS(gz.getSeconds());gz=_.Bv(Mb,2)-_.Bv(gz,2);FT<0&&gz>0?(FT+=1,gz-=1E9):FT>0&&gz<0&&(--FT,gz+=1E9);FT=(new ym).setSeconds(FT);FT=_.$g(FT,2,_.HO(gz),0);_.SZ(lz,1,FT)}var c2;(c2=V)==null||c2.returnNativeBenchmarkingMessage(lz)},
multiplayer3pAckStateLoaded:function(lz){KQ(lz)},
exitMiniAppSeenStateLoaded:function(lz){S().confirmExitMiniAppCommandEdu&&c7(lz)},
onNavigateToNewMiniApp:function(){dz(S().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(lz){lz=new URLSearchParams(lz);var gz=void 0;lz.has("invite_code")&&(gz=new $Vj,lz=lz.get("invite_code"),gz=_.Jx(gz,1,lz));if(lz=gz){var Mb;(Mb=V)==null||Mb.sendGameData(lz)}},
onPauseMiniApp:function(){G=!0;we()},
onResumeMiniApp:function(){G=!0;bo()},
onAdFinished:function(lz){w.onAdFinished(lz)}});
S().showMultiplayer3pConsentDialogCommand||A.resolve(!0);dz(S().onContainerReadyCommand)}else tkv(b),A.resolve(!0);VF6(z,Zhi(b));Zhi(b).then(function(lz){lz={miniAppPlayData:{postPlayNonce:lz}};var gz,Mb=(gz=S().loggingDirectives)==null?void 0:gz.trackingParams;Mb&&_.ik().stateChanged(Mb,lz)});
NA=S().showSignInDialogCommand;!XRx()&&NA&&(_.Xw("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),dz(NA));S().confirmExitMiniAppCommand&&a&&(NA=gz1(S().confirmExitMiniAppCommand))&&(a.customConfirmationCommand=NA)}},v7=function(){d&&_.IF(document.body,"background-color",d);
Q=!1;P&&P.release();z.flush().catch(function(NA){_.Lg(NA)});
X.flush().catch(function(NA){_.Lg(NA)});
WM7(b);kg();V=void 0;D$N(t)},YX=function(){RT(!1);
v7();To(!1);H7(void 0);VM(void 0);Io(void 0);VN=0;CQ(0);x=!1},we=function(){var NA;
(NA=V)==null||NA.onPause();P&&P.release();z.flush().catch(function(BO){_.Lg(BO)});
X.flush().catch(function(BO){_.Lg(BO)});
yB$(b)},bo=function(){var NA;
(NA=V)==null||NA.onResume();J1();NA=b;NA.isForeground=!0;n3(NA,"PLAY_EVENT_TYPE_PLAY_RESUME")},bz=function(NA){var BO;
(BO=V)==null||BO.onAudioToggled(NA);MA(NA)},KQ=function(NA){S().showMultiplayer3pConsentDialogCommand&&(S().isEmbeddedInWebview&&NA!==void 0&&A.resolve(NA),!NA&&_.b69()==="mini_app"&&dz(S().showMultiplayer3pConsentDialogCommand))},pk=function(){var NA,BO,Uu,lz;
return _.R(function(gz){if(gz.nextAddress==1){!S().isLivestream||S().disableVideoCapture||(NA=V)!=null&&NA.sendStartGameFrameCapture();BO=(new URL(window.location.href)).searchParams;if(BO.has("invite_code")){var Mb=new $Vj,FT=BO.get("invite_code");Uu=_.Jx(Mb,1,FT);(lz=V)==null||lz.sendGameData(Uu)}Q$()||(To(!0),Mb=b,Mb.state!==1?_.Lg(new _.dO("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+ABo[Mb.state])):(_.e7("mini_app_ids_without_game_ready").includes(Mb.JSC$14805_miniAppId)&&(Mb.gameReady=
!0),Mb.state=2,Mb.beforeReady=!1,kC(Mb,"ma_ffr"),n3(Mb,"PLAY_EVENT_TYPE_PLAY_READY")));return _.h(gz,A.promise,2)}dz(S().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();S().isEmbeddedInWebview||KQ();_.TT(gz)})},pi=function(){var NA=b;
NA.gameReady=!0;kC(NA,"ma_gr")},Y$=function(NA){var BO;
return _.R(function(Uu){if(Uu.nextAddress==1)return _.zT(Uu,2),_.h(Uu,Ppv(z,NA),4);if(Uu.nextAddress!=2)return _.CN(Uu,0);BO=_.hm(Uu);dz(S().showSavingErrorPopupCommand);throw BO;})},fX=function(){var NA,BO;
return _.R(function(Uu){if(Uu.nextAddress==1)return _.zT(Uu,2),_.h(Uu,Jt$(z),4);if(Uu.nextAddress!=2)return NA=Uu.yieldResult,Uu.return(NA);BO=_.hm(Uu);dz(S().showLoadingErrorDialogCommand);throw BO;})},RO=function(NA){b.logError(NA)},m8=function(NA,BO,Uu){lkX(b,NA,BO,Uu)},wu=function(NA,BO){oE1(b,NA,BO)},z1=function(){!B&&S().isEmbeddedInWebview||_.fg();
cBN(b,!0);Q||(window.addEventListener("beforeunload",$Q,{capture:!0}),Q=!0)},cf=function(NA){var BO,Uu,lz,gz,Mb,FT,c2;
return _.R(function(Ey){if(Ey.nextAddress==1)return X&&(!F||F<NA)&&NA>0?_.h(Ey,Ih6(X,NA),3):Ey.jumpTo(0);BO=Ey.yieldResult;Uu=_.m(BO);lz=Uu.next().value;gz=Uu.next().value;Mb=lz;FT=gz;((c2=Mb)==null?0:c2.displayString)&&FT&&(VM(FT),Io(Mb.displayString));_.TT(Ey)})},ye=function(NA){var BO=S().onBenchmarkingMessageReceivedCommand;
if(BO){var Uu=mQx();_.Bo(NA,3,Fvm,Uu);Zp(BO,vVX(NA))}},GM=function(NA){var BO=S().onGameFrameReceivedCommand;
if(BO){var Uu=new LW;var lz=new l$m;var gz=L4(NA,1);lz=_.is(lz,1,gz);NA=_.n4(NA,2);NA=_.Jx(lz,2,NA);Uu=_.SZ(Uu,2,NA);Zp(BO,GhN(Uu))}},iK=function(NA){var BO=S().onGameAudioDataReceivedCommand;
if(BO){var Uu=new LW;var lz=new oom;NA=_.n4(NA,1);lz=_.Jx(lz,1,NA);Uu=_.SZ(Uu,4,lz);Zp(BO,GhN(Uu))}},nM=function(){var NA=new URLSearchParams(window.location.search);
if(S().isEmbeddedInWebview&&NA&&NA.get("override_hl")==="true"&&NA.get("hl"))return NA.get("hl");NA=document.documentElement.lang;return NA!==""?NA:_.CJ},pM=function(NA){var BO=S().onShareInviteCodeCommand;
if(BO)if(S().isEmbeddedInWebview){var Uu=new Wpm;NA=_.Jx(Uu,1,NA);Zp(BO,l6g(NA))}else Uu=S().inviteCodeShareClientParamIdentifier,t.clientParams.set(Uu,{miniAppClientParams:{inviteCode:NA}}),dz(BO)},FL=function(NA){var BO,Uu,lz;
return _.R(function(gz){if(gz.nextAddress==1)return BO=S().onMiniAppOpenYtContentRequested,X&&_.K("enable_open_yt_content")&&BO?_.h(gz,U$m(X,NA),3):gz.jumpTo(0);Uu=gz.yieldResult;if(Uu==="OK")if(S().isEmbeddedInWebview){var Mb=new a$N;lz=FX(Mb,2,E2,DZ(NA));Zp(BO,ceo(lz))}else M.clientData.set("video_id",NA),dz(BO);_.TT(gz)})},e2=function(NA){VN+=_.Bv(NA,3);
NA=Math.min(Math.log(1+VN/15E6*9)/Math.log(10),.99);CQ(NA);j0(NA)},j0=_.Hq(function(NA){var BO=S().updateLoadingProgressCommand;
if(BO){var Uu=new a$N;NA=FX(Uu,3,E2,_.zn(NA));Zp(BO,ceo(NA))}},100),hX=function(NA){return bqm(w,NA)},J1=function(){var NA,BO;
((NA=_.k_s())==null?void 0:(BO=NA.wakeLock)==null?void 0:BO.request)!=null&&_.k_s().wakeLock.request("screen").then(function(Uu){P=Uu}).catch(function(){})},wN=_.us("iframe");
_.jp(function(){S().isSupportedCountry&&(XRx()||_.K("enable_sign_in_promo")||!S().showSignInDialogCommand?wN.value&&TX(wN.value):dz(S().onMiniAppReadyCommand))},"XK60ib");
var KY=function(){return _.T("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return Q$()?0:-1},
el:wN})},TX=function(NA,BO){BO=BO===void 0?!1:BO;
var Uu=bm();Uu&&(BO||Uu.toString()!==NA.getAttribute("src"))&&(V=PUs(S().source,{isAudioEnabled:rW,onFirstFrameReady:pk,onGameReady:pi,onSave:Y$,onLoad:fX,onError:RO,onSdkCalled:m8,onSdkPerformanceUpdate:wu,onClick:z1,onSendHighScore:cf,onBenchmarkingMessageReceived:ye,getLanguage:nM,onShareInviteCode:pM,onResourceLoaded:e2,onOpenYTContent:FL,onShowMiniAppAd:hX,onGameFrameReceived:GM,onGameAudioReceived:iK},NA,Uu),$e(NA,"load",function(){kC(b,"ma_il");$e(NA,"load",function(){TX(NA,!0)})}),_.x6(NA,
Uu))},bm=function(){var NA=S().url;
if(NA&&(NA=_.E4(NA),NA!==null)){if(S().source&&S().source==="MINI_APP_SOURCE_GAMESNACKS")NA=_.Bd(NA,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.K("enable_origin_query_parameter_bugfix")){var BO=_.Lz(_.fnN(NA.toString()));BO=new URLSearchParams(BO||"");BO.set("origin",window.location.origin);BO=BO.toString();NA=_.RP(NA).toString();NA=_.zC(rs8.exec(NA)[0]+(BO.trim()?"#"+BO:""))}return NA}},JJ=function(){var NA={};
NA=_.Pw("yt-mini-app-container-view-model__loading-screen",(NA["yt-mini-app-container-view-model__loading-screen--fade-out"]=Q$,NA));var BO=function(){return Q$()?1:um()};
return _.T("div",{class:NA},_.T(_.xK,{data:function(){return S().splashScreen}},{miniAppSplashScreenViewModel:function(Uu){return _.T(QX6,{data:Uu.data,
loadingProgress:BO})}}))},vv=function(){J=[];
J.push(_.jP(window,"visibilitychange",function(){E||G&&em()||(document.visibilityState==="visible"?bo():we())}));
J.push(_.jP(window,"pagehide",function(){v7()}));
J.push(_.jP(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&t1.value.dispatchEvent(new Event("tap"))},0)}));
J.push(_.jP(t1.value,"pointerdown",function(){cBN(b,!1)},!0));
J.push(_.jP(t1.value,"pause",function(){E=!0;we()}));
J.push(_.jP(t1.value,"play",function(){E=!1;bo()}));
J.push(_.jP(t1.value,"exit",function(){v7()}));
var NA=navigator.keyboard,BO=NA&&NA.lock;J.push(_.jP(window,UE8,function(){O8(pKN());pKN()?(S().hasPlayNextShelf&&xj("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),NH("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),BO&&NA.lock(["Escape"])):(S().hasPlayNextShelf&&NH("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),xj("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),BO&&NA.unlock())}));
S().showMultiplayer3pConsentDialogCommand&&J.push(_.jP(window,"yt-playables-ack-3p-data-usage",function(){Cpj(X)}));
S().confirmExitMiniAppCommandEdu&&J.push(_.jP(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.Xw("exit-mini-app-seen-state","true",2592E6)}));
S().onGameAudioDataReceivedCommand&&J.push(_.jP(window,"message",function(Uu){Uu=Uu.event_;var lz,gz=(lz=wN.value)==null?void 0:lz.src;if(gz&&Uu.origin===(new URL(gz)).origin&&Uu.data&&Uu.data.type==="GAME_AUDIO"&&Uu.data.audio&&Uu.data.audio.length>0){var Mb=new FileReader;Mb.onload=function(){var FT=new LW;var c2=new oom;c2=_.Jx(c2,1,Mb.result);FT=_.SZ(FT,4,c2);Zp(S().onGameAudioDataReceivedCommand,GhN(FT))};
Mb.readAsDataURL(new Blob([Uu.data.audio]))}}))},kg=function(){J.forEach(function(NA){QU(NA)});
window.removeEventListener("beforeunload",$Q,{capture:!0})},dz=function(NA){NA&&bax(NA,S().isEmbeddedInWebview||!1)},NH=function(NA,BO){NA=_.m(t1.value.getElementsByClassName(NA));
for(var Uu=NA.next();!Uu.done;Uu=NA.next())Uu.value.classList.add(BO)},xj=function(NA,BO){NA=_.m(t1.value.getElementsByClassName(NA));
for(var Uu=NA.next();!Uu.done;Uu=NA.next())Uu.value.classList.remove(BO)};
return function(){var NA={};NA=_.Pw("yt-mini-app-container-view-model",(NA["yt-mini-app-container-view-model--desktop"]=!0,NA["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return S().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},NA["yt-mini-app-container-view-model--ios-web-view"]=J2V(),NA["yt-mini-app-container-view-model--no-top-bar"]=function(){return!S().topBar},NA["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return S().hasPlayNextShelf},NA["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return S().hasPlayNextShelf},NA["yt-mini-app-container-view-model--show-peek-below"]=function(){return!P7()&&S().hasPlayNextShelf},NA));
var BO={};BO=_.Pw("yt-mini-app-container-view-model__content",(BO["yt-mini-app-container-view-model__content--desktop-content"]=!0,BO["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return S().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},BO["yt-mini-app-container-view-model--desktop-play-page"]=function(){return S().hasPlayNextShelf},BO));
return _.T("mini-app-container-view-model",{el:t1},_.T("div",{class:NA},_.T(_.v,{cond:function(){return S().topBar&&!P7()},
then:function(){return _.T(_.xK,{data:function(){return S().topBar}},{miniAppTopBarViewModel:function(Uu){return _.T(kLg,{data:Uu.data,
isAudioEnabled:rW,onAudioToggled:function(lz){bz(lz)},
score:Ci,formattedScore:Go,onScoreChanged:function(lz){F=lz},
isEmbeddedInWebview:em,isSaved:ao,onSaveToggled:function(lz){H7(lz)},
isExitMiniAppSeen:W7,isDesktopPlayPage:Ig})}})}}),_.T("div",{class:BO},_.T(_.v,{cond:uz,
then:function(){return KY()}}),_.T(_.v,{cond:function(){return!S().isEmbeddedInWebview},
then:function(){return JJ()}}))))}()},"Zd");
pkL.idomCompat=!0;_.eq(pkL,"mini-app-container-view-model",{props:{data:_.W4}});var Atj=_.oS(function(f){var S=f.data;return _.T("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.T("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.iF(function(){var B=S().onTap;B&&_.MB(B)})},_.T(_.v,{cond:function(){return S().icon},
then:function(B){return _.T(_.Y8,{icon:function(){return B().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.T("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return S().title})))},"$d");
Atj.idomCompat=!0;var NlL=_.oS(function(f){var S=_.tE("div"),B=_.m(_.hj(void 0,void 0,"kFCJ0c")),G=B.next().value,g=B.next().value;B=_.m(_.hj(void 0,void 0,"PIPgWd"));var b=B.next().value,z=B.next().value;B=_.m(_.hj(void 0,void 0,"rV66ob"));var X=B.next().value,w=B.next().value,F=function(){var U=G();return U!==void 0?Math.abs(U):void 0},V=function(){var U=F();
return U===void 0||U<=3},J=function(){var U=F();
var A=b(),t=X();U=U!==void 0&&A!==void 0&&t!==void 0?A-t-U:void 0;return U===void 0||U<=3},P=function(U){S.value&&S.value.scrollBy({top:0,
left:(_.nL("HTML_DIR")==="rtl"?-1:1)*U*S.value.clientWidth,behavior:"smooth"})},d=function(){var U;
g((U=S.value)==null?void 0:U.scrollLeft);var A;z((A=S.value)==null?void 0:A.scrollWidth);var t;w((t=S.value)==null?void 0:t.clientWidth)},Q=function(){P(-.5)},x=function(){P(.5)};
B=_.iF(function(){d()});
_.Y5(function(){d();if(S.value){var U=new ResizeObserver(d);U.observe(S.value);_.Ov(function(){U.disconnect()})}});
var E={};return _.T("yt-sponsorships-scrollable-shelf",{class:_.Pw("ytdSponsorshipsScrollableShelfHost",f.className)},_.T("div",{class:_.Pw("ytdSponsorshipsScrollableShelfContent",(E.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return f.data().previousButton&&f.data().nextButton&&!V()&&!J()},E.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return f.data().previousButton&&!V()&&J()},E.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return f.data().nextButton&&
V()&&!J()},E)),
el:S,"on:scroll":B},f.children),_.T(_.v,{cond:function(){return!V()},
then:function(){return _.T(_.xK,{data:function(){return f.data().previousButton}},{buttonViewModel:function(U){return _.T(_.I8,{data:U.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:Q})}})}}),_.T(_.v,{cond:function(){return!J()},
then:function(){return _.T(_.xK,{data:function(){return f.data().nextButton}},{buttonViewModel:function(U){return _.T(_.I8,{data:U.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:x})}})}}))},"ae");
NlL.idomCompat=!0;var Zq6=_.oS(function(f){var S=f.data;f={};return _.T("yt-sponsorships-hub",{class:_.Pw("ytdSponsorshipsHubHost",(f.ytdSponsorshipsHubHostIndented=function(){return S().indented},f))},_.T("div",{class:"ytdSponsorshipsHubHeader"},_.T("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.T("div",{class:"ytdSponsorshipsHubAvatar"},_.T(_.xK,{data:function(){return S().avatar}},{avatarViewModel:_.Ya})),_.T(_.v,{cond:function(){return S().badgeImage},
then:function(B){return _.T("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.T("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.T("div",{class:"ytdSponsorshipsHubBadge"},_.T(_.f9,{data:B,targetWidth:24,targetHeight:24,alt:""}))))}})),_.T("div",{class:"ytdSponsorshipsHubDetails"},_.T("div",{class:"ytdSponsorshipsHubTierName"},function(){return S().tierName}),_.T("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return S().membershipType}),_.T("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return S().membershipDurationOrExpiry})),_.T("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.T(_.xK,{data:function(){return S().manageButton}},{buttonViewModel:function(B){return _.T(_.I8,{data:B.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.T(_.xK,{data:function(){return S().actionMenuButton}},{buttonViewModel:function(B){return _.T(_.I8,{data:B.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.T("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return S().perksTitle}),_.T(NlL,{data:function(){return{previousButton:S().previousPerkButton,
nextButton:S().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.T("div",{class:"ytdSponsorshipsHubPerkCards"},_.T(_.xK,{data:function(){return S().perkCards}},{sponsorshipsHubPerkCardViewModel:Atj}),_.T(_.v,{cond:function(){return S().viewAllPerksButton},
then:function(B){return _.T(MFm,{data:B})}}))))},"be");
Zq6.idomCompat=!0;var MFm=_.oS(function(f){var S=f.data;return _.T("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.T(_.xK,{data:function(){return S().button}},{buttonViewModel:_.I8}),_.T("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.T("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return S().title}),_.T("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return S().subtitle})))},"ce");
MFm.idomCompat=!0;_.eq(Zq6,"yt-sponsorships-hub",{props:{data:_.W4}});_.tFm=_.oS(function(f){var S=f.data;return _.T("yt-dual-avatar-view-model",{class:_.Pw("ytDualAvatarViewModelHost",f.className),style:_.Qj({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var B;return((B=S().badgeCutoutRadius)!=null?B:14)+"px"}})},_.T("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.T(_.xK,{data:function(){return S().startAvatar}},{avatarViewModel:_.Ya}),_.T(_.xK,{data:function(){return S().endAvatar}},{avatarViewModel:_.Ya})),_.T(_.xK,{data:function(){return S().badge}},
{contentPreviewImageViewModel:function(B){return _.T("div",{class:"ytDualAvatarViewModelBadge"},_.T(_.oC,{data:B.data}))}}))},"de");
_.tFm.idomCompat=!0;var ahX=_.oS(function(f){var S=f.data;var B,G=!((B=_.oy().resolve(_.fN(_.yU)))==null||!B());f=_.vW(function(){var V,J,P=G?(V=S().header)==null?void 0:V.backgroundColorDarkMode:(J=S().header)==null?void 0:J.backgroundColorLightMode;if(P!==void 0)return _.AK(P)},void 0,"UX2G6c");
B=_.vW(function(){var V,J;return G?(V=S().header)==null?void 0:V.backgroundImagePart1Dark:(J=S().header)==null?void 0:J.backgroundImagePart1Light},void 0,"GPAi1d");
var g=_.vW(function(){var V,J;return G?(V=S().header)==null?void 0:V.backgroundImagePart2Dark:(J=S().header)==null?void 0:J.backgroundImagePart2Light},void 0,"nboJld"),b=_.vW(function(){return _.nL("HTML_DIR")==="rtl"},void 0,"LGJceb"),z=_.tE("yt-sponsorships-perks-list"),X=!1,w=function(){var V=z.value;
if(V&&!X){var J,P=(J=V.parentElement)==null?void 0:J.parentElement;if(P)for(V=V.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),J=0;J<V.length;++J){var d=V[J];if(d instanceof HTMLElement){P.scrollTo({top:d.offsetTop+d.clientHeight/2-P.clientHeight/2,behavior:"smooth"});X=!0;break}}}};
_.j9(function(){var V=z.value;if(V){var J=new ResizeObserver(w);J.observe(V);_.Ov(function(){J.disconnect()})}});
var F={};return _.T("yt-sponsorships-perks-list",{el:z,class:_.Pw("ytdSponsorshipsPerksListHost",(F.ytdSponsorshipsPerksListHorizontalPadding=function(){return S().horizontalPaddingEnabled},F))},_.T("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.T("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.Qj({"background-color":f})},_.T("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.T(_.v,{cond:B,then:function(V){var J={};return _.T("div",{class:_.Pw((J.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=G,J.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!G,J.ytdSponsorshipsPerksListFlipped=b,J))},_.T(_.f9,{data:V,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.T("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.T(_.v,{cond:g,
then:function(V){var J={};return _.T("div",{class:_.Pw((J.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=G,J.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!G,J.ytdSponsorshipsPerksListFlipped=b,J))},_.T(_.f9,{data:V,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.T("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.T(_.xK,{data:function(){var V;
return(V=S().header)==null?void 0:V.dualAvatar}},{dualAvatarViewModel:_.tFm})))),_.T("div",{class:"ytdSponsorshipsPerksListBody"},_.T("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return S().title}),_.T(_.v,{cond:function(){return S().perks},
then:function(V){return _.T(_.dg,{each:V},function(J,P){var d={};return _.T("div",{class:_.Pw("ytdSponsorshipsPerksListPerkContainer",(d.ytdSponsorshipsPerksListSelectedPerk=function(){var Q=P(),x=S().selectedPerkIndex;return Q===x},d))},_.T(_.v,{cond:function(){return P()>0},
then:function(){return _.T("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.T("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.T(_.v,{cond:function(){return J.icon},
then:function(Q){return _.T(_.Y8,{icon:function(){return Q().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.T("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.T("div",{class:"ytdSponsorshipsPerksListPerkTitle"},J.title),_.T("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.T(_.oY,{text:J.description})),_.T(_.v,{cond:function(){return J.instructions},
then:function(){var Q,x;return _.T("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.T("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(Q=J.instructions)==null?void 0:Q.title),_.T("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.T(_.oY,{text:(x=J.instructions)==null?void 0:x.text})))}}))),_.T(_.v,{cond:function(){return J.emoji},
then:function(Q){return _.T("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.T(_.dg,{each:function(){return Q()}},function(x){return _.T(_.f9,{data:x,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.T(uJN,{data:J}))})}})))},"ee");
ahX.idomCompat=!0;var uJN=_.oS(function(f){var S=f.data;var B=function(z,X){return z===X},G=function(){var z=S();
z=_.H(z==null?void 0:z.badgesShelf,BUN);return z!==void 0&&z!==null?z:{previousButton:{},nextButton:{}}},g=_.us("div"),b=function(){var z=g.value;
if(z){var X=z.parentElement;if(X){z=z.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var w=0;w<z.length;++w){var F=z[w];if(F instanceof HTMLElement){X.scrollTo({left:F.offsetLeft+F.clientWidth/2-X.clientWidth/2,behavior:"instant"});break}}}}};
_.j9(function(){var z=g.value;if(z){var X=new ResizeObserver(b);X.observe(z);_.Ov(function(){X.disconnect()})}});
return _.T("div",null,_.T(_.v,{cond:function(){return S().badges},
then:function(z){return _.T(NlL,{data:G},_.T("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:g},_.T(_.dg,{each:function(){return z()}},function(X,w){var F={},V={},J={};
return _.T("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.T(_.v,{cond:function(){return w()>0},
then:function(){return _.T("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.T("div",{class:_.Pw("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(F.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return B(w(),S().currentBadgeIndex)},F.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!B(w(),S().currentBadgeIndex)},F))},_.T("div",{class:_.Pw("ytdSponsorshipsPerksListLoyaltyBadge",(V.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return B(w(),
S().currentBadgeIndex)},V.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!B(w(),S().currentBadgeIndex)},V))},_.T(_.v,{cond:function(){return X.image},
then:function(P){var d={};return _.T("div",{class:_.Pw((d.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return B(w(),S().currentBadgeIndex)},d.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!B(w(),S().currentBadgeIndex)},d))},_.T(_.f9,{data:P,
alt:""}))}})),_.T("div",{class:_.Pw("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(J.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return B(w(),S().currentBadgeIndex)},J))},X.title)))})))}}))},"fe");
uJN.idomCompat=!0;_.eq(ahX,"yt-sponsorships-perks-list",{props:{data:_.W4}});_.eq(_.oS(function(f){return _.T("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.T(_.v,{cond:function(){return f.data().image},
then:function(S){return _.T(_.f9,{className:"ytwFantasyEmptyStateViewModelImage",data:S,ariaHidden:!0,alt:""})}}),_.T(_.oY,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return f.data().title}}),_.T(_.oY,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return f.data().subtitle}}),_.T(_.xK,{data:function(){return f.data().primaryButton}},{buttonViewModel:function(S){return _.T(_.I8,{data:S.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"ge"),"ytw-fantasy-empty-state-view-model",{props:{data:_.W4}});var ytL;var $QK=_.$K({buttonRenderer:_.Nu});_.Su(QiQ);_.TD(QiQ,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var p3=function(){var f=_.I.apply(this,arguments)||this;f.hideJoinButtonBeforeSubscribed=_.K("hide_join_button_before_subscribed");f.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return f};
_.q(p3,_.I);_.e=p3.prototype;_.e.hasShowDialogCommand=function(f){return!!_.H(f,zG7)};
_.e.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"}}}};
_.e.updateJoinButtonOverrides=function(){var f,S;(f=_.m9(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(S=f.polymerController)==null||S.set("overrides",this.joinButtonOverrides);if(f=_.m9(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))f.overrides=this.joinButtonOverrides};
_.e.handleButtonRefreshAction=function(f){if(f=_.H(f,QQ1))this.set("data.membershipButton",f.membershipButton),this.notifyPath("data.membershipButton")};
_.e.onYtServiceRequestError=function(f){_.g5(this.hostElement,f.detail.error.message)};
_.e.onTap=function(){var f;(f=this.data)!=null&&f.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)};
_.e.handleUnsubscribeAction=function(){var f,S,B;((f=this.data)==null?void 0:(S=f.membershipButton)==null?void 0:(B=S.buttonRenderer)==null?void 0:B.style)==="STYLE_PRIMARY"&&_.m9(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.y3.Object.defineProperties(p3.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.subscriptionStateEntity)==null||!f.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var f,S=(f=this.data)==null?void 0:f.membershipButton,B;f=(S==null?void 0:S.buttonRenderer)||_.H(S==null?void 0:(B=S.timedAnimationButtonRenderer)==null?void 0:B.buttonRenderer,_.IR);return(f==null?void 0:f.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(f==null?void 0:f.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(f==null?void 0:f.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var f;if(this.hasShowDialogCommand((f=this.data)==null?void 0:f.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var f;if(this.hasShowDialogCommand((f=this.data)==null?void 0:f.navigationEndpoint))return"button"}}});
p3.prototype.onTap=p3.prototype.onTap;p3.prototype.onYtServiceRequestError=p3.prototype.onYtServiceRequestError;p3.prototype.updateJoinButtonOverrides=p3.prototype.updateJoinButtonOverrides;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],p3.prototype,"actionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],p3.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],p3.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],p3.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],p3.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.nd),_.Z("design:type",Object)],p3.prototype,"ironButtonState",void 0);_.N([_.n(),_.Z("design:type",Object)],p3.prototype,"data",void 0);
_.N([_.k("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],p3.prototype,"hideJoin",null);_.N([_.n(),_.Z("design:type",String)],p3.prototype,"subscribeKey",void 0);_.N([_.n({selectorArgs:["subscribeKey"],selector:FL1}),_.Z("design:type",Object)],p3.prototype,"subscriptionStateEntity",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],p3.prototype,"hideJoinButtonBeforeSubscribed",void 0);
_.N([_.k("subscriptionStateEntity"),_.n({reflectToAttribute:!0}),_.Z("design:type",Object),_.Z("design:paramtypes",[])],p3.prototype,"subscribed",null);_.N([_.k("subscribed","data.membershipButton"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],p3.prototype,"joinButtonOverrides",null);_.N([_.k("data.navigationEndpoint"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],p3.prototype,"channelNameTabIndex",null);
_.N([_.k("data.navigationEndpoint"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],p3.prototype,"channelNameRole",null);_.N([_.JO("joinButtonOverrides"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],p3.prototype,"updateJoinButtonOverrides",null);_.N([_.Vg("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],p3.prototype,"onYtServiceRequestError",null);
_.N([_.Vg("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],p3.prototype,"onTap",null);_.N([_.C({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],p3);
var WcN=_.RS()(p3,"ytd-video-owner-renderer",function(){if(ytL===void 0){var f=document.createElement("template");_.Y(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" 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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);ytL=f}f=ytL;return f},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.eq(_.oS(function(f){var S=f.data;var B;f=_.m(_.hj(!((B=_.wQ("yt-mini-app-is-theater-mode-enabled"))==null||!B),void 0,"LUeOgf"));var G=f.next().value,g=f.next().value,b;B=(b=_.oy().resolve(_.fN(viN)))!=null?b:function(){return _.T("div",null)};
_.Z0("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){g(!0);_.Xw("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.Z0("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){g(!1);_.Xw("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
b={};f={};var z={};return _.T("mini-app-play-page-renderer",{class:_.Pw("miniAppPlayPageRendererHost",(b.miniAppPlayPageRendererHostDetailsView=function(){return!G()},b))},_.T("div",{class:_.Pw("miniAppPlayPageRendererGameContainer",(f.miniAppPlayPageRendererGameContainerDetailsView=function(){return!G()},f))},_.T(_.xK,{data:function(){return S().containerViewModel}},{miniAppContainerViewModel:pkL}),_.T(_.v,{cond:function(){return S().channel&&S().subscribeButton},
then:function(){return _.T("div",{class:"miniAppPlayPageRendererChannelContainer"},_.T(_.xK,{data:function(){return S().channel}},{videoOwnerRenderer:function(X){return _.T(WcN,{data:X.data})}}),_.T(_.xK,{data:function(){return S().subscribeButton}},{subscribeButtonViewModel:function(X){return _.T(_.$q,{data:X.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.T(_.v,{cond:function(){return!G()&&S().description},
then:function(){return _.T("div",{class:"miniAppPlayPageRendererMiniAppDescriptionWrapper"},_.T("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return S().description}))}})),_.T("div",{class:_.Pw("miniAppPlayPageRendererPlayNextContainer",(z.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!G()},z))},_.T(_.xK,{data:function(){return S().sectionList}},{sectionListRenderer:B})))},"he"),"mini-app-play-page-renderer",{props:{data:_.W4}});var Aw=function(){var f=_.I.apply(this,arguments)||this;f.isSearch=!1;f.isConstrainedList=!1;f.hasChipsBar=!1;f.inReplyPanel=!1;f.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"}};f.monitorScroll=!0;f.SCROLL_ANIMATION_DURATION_MS=300;f.nextContinuation={continuationType:"sectionListContinuation"};return f};
_.q(Aw,_.I);_.e=Aw.prototype;
_.e.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(f){switch(f.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:_.K("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.K("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.e.created=function(){var f=this;this.JSC$14943_scrollAnimation=new _.EN(function(S){f.hostElement.scrollTop=S})};
_.e.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.e.getItemsPath=function(){return"data.contents"};
_.e.replacePrimaryContent=function(f){this.set("data.contents",f)};
_.e.computeHasSortFilter=function(f){return!!f&&!!f.sortFilterSubMenuRenderer};
_.e.computeShouldScrollInPanel=function(f){var S;return!!(f==null?0:(S=f.scrollPaneStyle)==null?0:S.scrollable)};
_.e.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.Rl(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.e.scrollToTop=function(){this.hostElement.scrollTop=0};
_.e.scrollToItemSection=function(f){if(f=this.getItemByIdentifier(f))f=this.getScrollPositionForItem(f),this.hostElement.scrollTop!==f&&this.JSC$14943_scrollAnimation.start(this.hostElement.scrollTop,f,this.SCROLL_ANIMATION_DURATION_MS)};
_.e.getItemByIdentifier=function(f){var S=this.contents.querySelectorAll("ytd-item-section-renderer");if(S&&S.length!==0){var B=Array.from(S).findIndex(function(G){return G.sectionIdentifier===f});
return S[B===-1?0:B]}};
_.e.getScrollPositionForItem=function(f){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===f)return 0;f=_.EI(f).y+this.hostElement.scrollTop-_.EI(this.hostElement).y;return Math.min(f,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.y3.Object.defineProperties(Aw.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.targetId)==="browse-feedFEclips"}}});
Aw.prototype.onScroll=Aw.prototype.onScroll;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Aw.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Aw.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.ff.YtLazyListBehavior),_.Z("design:type",Object)],Aw.prototype,"ytLazyListBehavior",void 0);_.N([_.r(_.Ny.YtNextContinuationBehavior),_.Z("design:type",Object)],Aw.prototype,"ytNextContinuationBehavior",void 0);
_.N([_.r(_.DPv),_.Z("design:type",Object)],Aw.prototype,"ytBooleanLogicBehavior",void 0);_.N([_.r(_.Ak),_.Z("design:type",Object)],Aw.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Aw.prototype,"data",void 0);_.N([_.n({value:2}),_.Z("design:type",Number)],Aw.prototype,"initialCount",void 0);_.N([_.n({value:!0}),_.Z("design:type",Boolean)],Aw.prototype,"autoFill",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.Z("design:type",Boolean)],Aw.prototype,"hasSortFilter",void 0);_.N([_.n({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.Z("design:type",Boolean)],Aw.prototype,"hideBottomSeparator",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.Z("design:type",Boolean)],Aw.prototype,"shouldScrollInPanel",void 0);
_.N([_.n(),_.Z("design:type",Object)],Aw.prototype,"isSearch",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Aw.prototype,"isConstrainedList",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",String)],Aw.prototype,"responsiveSizing",void 0);_.N([_.n(),_.Z("design:type",Object)],Aw.prototype,"hasChipsBar",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",String)],Aw.prototype,"pageSubtype",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Aw.prototype,"engagementPanel",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Aw.prototype,"liveChatEngagementPanel",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Aw.prototype,"inReplyPanel",void 0);_.N([_.vF("#action-button"),_.Z("design:type",HTMLElement)],Aw.prototype,"actionButton",void 0);_.N([_.n(),_.Z("design:type",Object)],Aw.prototype,"scrollUpButtonData",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Aw.prototype,"engagementPanelDropdown",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Aw.prototype,"engagementPanelDialog",void 0);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Aw.prototype,"isClipList",null);_.N([_.vF("#contents"),_.Z("design:type",HTMLElement)],Aw.prototype,"monitorScrollElement",void 0);_.N([_.vF("#contents"),_.Z("design:type",HTMLElement)],Aw.prototype,"contents",void 0);
_.N([_.Vg("scroll"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Aw.prototype,"onScroll",null);_.N([_.C({is:"ytd-section-list-renderer",disableElementRegistration:!0})],Aw);
var ct7=_.RS()(Aw,"ytd-section-list-renderer",function(){if(PAj===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);PAj=f}f=PAj;return f},{mode:1});var lhN;var fAi;var o7L;var Ss7;var Nt=function(){return _.I.apply(this,arguments)||this};
_.q(Nt,_.I);Nt.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
Nt.prototype.onLikeButtonClick=function(f){f.stopPropagation();f.preventDefault()};
_.y3.Object.defineProperties(Nt.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)!=null&&f.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)})}}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Nt.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Nt.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],Nt.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Nt.prototype,"ytRendererStamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Nt.prototype,"data",void 0);
_.N([_.n({selectorArgs:["data.likeStatusEntityKey"],selector:C9}),_.Z("design:type",Object)],Nt.prototype,"likeStatusEntity",void 0);_.N([_.k("data","likeStatusEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Nt.prototype,"likeButtonRenderer",null);_.N([_.C({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],Nt);
_.p(Nt,"ytd-slim-metadata-toggle-button-renderer",function(){if(Ss7!==void 0)return Ss7;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);
return Ss7=f},{mode:1});var Mt=function(){var f=_.I.apply(this,arguments)||this;f.minimizePipBreakages=_.K("web_pip_minimize_breakages");f.showEqualizer=_.K("web_enable_playlist_video_lockup_equalizer");f.watchColorUpdate=_.K("kevlar_watch_color_update");f.actionMap={};return f};
_.q(Mt,_.I);_.e=Mt.prototype;_.e.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"}}}};
_.e.computeEditableClass=function(f){return f&&f.menu?"editable":""};
_.e.computeSelected=function(f){return!(f==null||!f.selected)};
_.e.computeUseColorPalette=function(f){return!!((f==null?0:f.lightColorPalette)&&(f==null?0:f.darkColorPalette))};
_.e.computeLargerPlaylistThumbs=function(f,S){return _.K("web_enable_playlist_bigger_thumbnails")&&!S};
_.e.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.e.onYtServiceRequestSent=function(f,S){S.endpoint&&this.isHideEnclosingAction(S.endpoint)&&!this.selected&&rgm(_.A0(),this.data.videoId)};
_.e.isHideEnclosingAction=function(f){var S=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",f);f=this.get("likeEndpoint.status",f)==="INDIFFERENT";return S||f};
_.e.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.e.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.y3.Object.defineProperties(Mt.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.K("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 f;return!!(this.withinMiniplayer&&((f=this.data)==null?0:f.actionButtons))}}});
Mt.prototype.onYtServiceRequestSent=Mt.prototype.onYtServiceRequestSent;Mt.prototype.canReorderChanged=Mt.prototype.canReorderChanged;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Mt.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],Mt.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Mt.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.pR),_.Z("design:type",Object)],Mt.prototype,"ytdLockupBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Mt.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Mt.prototype,"withinMiniplayer",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Mt.prototype,"minimizePipBreakages",void 0);_.N([_.n({computed:"computeSelected(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],Mt.prototype,"selected",void 0);
_.N([_.n({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],Mt.prototype,"useColorPalette",void 0);_.N([_.n({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],Mt.prototype,"largerPlaylistThumbs",void 0);_.N([_.n(),_.Z("design:type",Object)],Mt.prototype,"showEqualizer",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Mt.prototype,"canReorder",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Mt.prototype,"touchPersistentDragHandle",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Mt.prototype,"handleIsHovered",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Mt.prototype,"watchColorUpdate",void 0);_.N([_.n(),_.Z("design:type",String),_.Z("design:paramtypes",[])],Mt.prototype,"reorderIcon",null);
_.N([_.k("largerPlaylistThumbs"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],Mt.prototype,"thumbnailWidth",null);_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Mt.prototype,"showActionButtons",null);_.N([_.HF("canReorder"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Mt.prototype,"canReorderChanged",null);
_.N([_.Vg("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.N1]),_.Z("design:returntype")],Mt.prototype,"onYtServiceRequestSent",null);_.N([_.C({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],Mt);
_.p(Mt,"ytd-playlist-panel-video-renderer",function(){if(o7L!==void 0)return o7L;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return o7L=f},{mode:2});var Zl=function(){return _.I.apply(this,arguments)||this};
_.q(Zl,_.I);Zl.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Zl.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Zl.prototype,"data",void 0);_.N([_.C({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],Zl);
_.p(Zl,"ytd-playlist-panel-supported-items",function(){if(fAi!==void 0)return fAi;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return fAi=
f},{mode:1});CCj=!0;Bm$("\\P{N}");var YzA;var B4m=_.Jf("END_OF_PLAYLIST",void 0,"End of playlist"),Grv=_.Jf("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),tw=function(){var f=_.I.apply(this,arguments)||this;f.minimizePipBreakages=_.K("web_pip_minimize_breakages");f.updatedCoursePanel=_.K("move_three_dot_menu_to_playlist_panel_header_for_courses");f.hideHeaderText=!1;f.useColorPalette=!1;f.collapsed=!1;f.collapsedPreServerOverride="not_tracked";f.isHovered=!1;f.modernPanels=_.K("kevlar_watch_modern_panels");
f.expandLabel=_.Jf("MINIPLAYER_EXPAND_LABEL");f.collapseLabel=_.Jf("MINIPLAYER_COLLAPSE_LABEL");f.isFloating=!1;f.metaPanel=!1;f.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};f.currentIndex=void 0;return f};
_.q(tw,_.I);_.e=tw.prototype;
_.e.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"}}}};
_.e.created=function(){this.scrollThrottle=new _.S3(this.onThrottledScroll,1E3,this)};
_.e.onMouseEnter=function(){this.isHovered=!0};
_.e.onMouseLeave=function(){this.isHovered=!1};
_.e.computeOverflowMenuData=function(f){return f&&f.menu?f.menu:null};
_.e.computeCollapsible=function(f){return!f};
_.e.computeHasPlaylistButtons=function(f){return!(!f||!f.playlistButtons)};
_.e.computeHasSeparateSaveButton=function(f){return!(!f||!f.saveButton)};
_.e.computeHasToolbarButton=function(f,S){return!(!f||!(S||f.saveButton||f.menu))};
_.e.computePlaylistType=function(f){if(f&&f.playlistId)return f.playlistId.substring(0,4)};
_.e.computeCanReorder=function(f){return f?f.playlistId&&f.playlistId.startsWith("TLPQ")?!0:!!f.isEditable&&!f.isInfinite:!1};
_.e.attached=function(){var f=this;try{_.oy().resolve(_.Dr).setPlaylistComponent(this.hostElement)}catch(S){if(_.K("kevlar_park_on_playlist_token_killswitch"))throw S;_.UX().parkOrScheduleJob(function(){_.oy().resolve(_.Dr).setPlaylistComponent(f.hostElement)},2,"ci")}_.GZ(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.e.detached=function(){_.gh(this.hostElement)};
_.e.computeTrailingIcon=function(f,S,B){return B?S?"yt-icons:collapse":"yt-icons:close":S?"yt-icons:expand":_.K("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.e.computeIndexMessage=function(f,S){return OaM(f+1)+" / "+OaM(S)};
_.e.onRenderStamperFinished=function(){if(this.scrollForStampDom){var f=!0;this.isHovered&&(f=!1);if(this.collapsed||this.hidden)f=!1;f&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.e.collapseChanged=function(){var f=this;this.collapsed||(_.OR(this.ytTaskEmitterBehavior.getTaskManager(),function(){f.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.e.hiddenChanged=function(){var f=this;this.hidden||_.OR(this.ytTaskEmitterBehavior.getTaskManager(),function(){f.scrollToCurrentVideo()})};
_.e.setupReordering=function(){var f=_.m9(this.hostElement).querySelector("#items");eR7?_.WB$(this.ytReorderableBehavior,f,f,"playlist-drag-handle"):_.WB$(this.ytReorderableBehavior,f,f)};
_.e.scrollToCurrentVideo=function(){var f=this;_.xJ.addJob(function(){var S=_.m9(f.hostElement).querySelector("#items");if(S){S.style.setProperty("padding-bottom","");var B=_.m9(f.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(B){S=B.parentElement||_.r8(document);var G=S||_.r8(document);var g=_.EI(B),b=_.EI(G),z=_.vX$(G);if(G==_.r8(document)){var X=g.x-G.scrollLeft;g=g.y-G.scrollTop}else X=g.x-b.x-z.left,g=g.y-b.y-z.top;B=F6L(B);b=G.clientHeight-
B.height;z=G.scrollLeft;var w=G.scrollTop;z+=X-(G.clientWidth-B.width)/2;G=new _.ru(z,w+(g-b/2));S.scrollLeft=G.x;S.scrollTop=G.y}}},8)};
_.e.dataChanged=function(){var f=this;_.yF7(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.ui(this,function(){_.q6(f.ytTaskEmitterBehavior.getTaskManager(),function(){f.ytRendererBehavior.markDirty();f.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.e.onFullBleedPlayerChanged=function(){_.K("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.e.onFullscreenChanged=function(){_.K("web_watch_imax_theater_mode")||_.K("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.e.updateNowPlayingOverlay=function(){_.K("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.e.onPlaylistLockupNowPlaying=function(f,S){S&&(this.activeNowPlayingRenderer=S);this.updateNowPlayingOverlay()};
_.e.onScroll=function(){this.scrollThrottle.fire()};
_.e.onThrottledScroll=function(){var f=this;_.q6(this.ytTaskEmitterBehavior.getTaskManager(),function(){f.ytRendererBehavior.markDirty()})};
_.e.onToggleExpanded=function(f){!this.collapsible||f&&(_.lt(f).tagName==="A"||_.lF(_.ct(f),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.e.setCollapsed=function(f){this.collapsible&&(this.collapsed=f,_.mU(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.e.handleCollapsedFromData=function(f){if(f){var S=f.playlistPanelCollapseState;S==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||S==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),S=S==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==S&&this.setCollapsed(S)):this.currentPlaylistId!==f.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(S=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==S&&this.setCollapsed(S),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=f.playlistId}};
_.e.handleDrop=function(f){var S=f.currDragItem;f=S.data.playlistSetVideoId;var B=_.CM(S.parentNode.childNodes,S),G=void 0;B>0&&(G=S.parentNode.childNodes[B-1].data.playlistSetVideoId);S=_.A0();if(S.responsePlaylistData&&S.responsePlaylistData.contents){var g=pnK(f,S.responsePlaylistData);S.responsePlaylistData=(0,_.$v.unsafeClone)(S.responsePlaylistData);HMM(S.responsePlaylistData.contents,g,B);S.queueProxy?G5L(S.queueProxy,g,B,f,G):S.playlistProxy&&G5L(S.playlistProxy,g,B,f,G);_.Nw(S,_.Mw(S,S.response?
S.response.autoplayRenderer:void 0))}};
_.e.handleDarkModeChange=function(f){f!==this.isDarkTheme&&(this.isDarkTheme=f)};
_.e.colorPaletteChanged=function(){var f,S=((f=this.data)==null?void 0:f.contents)||[],B;f=_.m(S);for(S=f.next();!S.done;S=f.next()){S=S.value;var G=void 0;if((G=S.playlistPanelVideoRenderer)==null?0:G.selected){f=S.playlistPanelVideoRenderer;G=S=void 0;(B=this.isDarkTheme?(S=f)==null?void 0:S.darkColorPalette:(G=f)==null?void 0:G.lightColorPalette)&&_.n9(this.hostElement,B);break}}this.useColorPalette=!!B};
_.y3.Object.defineProperties(tw.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var f,S;return!((f=this.data)==null||!f.playlistId)&&!((S=this.data)==null||!S.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var f=_.oy().resolve(_.fN(_.Dr)),S;if(((S=this.data)==null?0:S.contents)&&(f==null?0:f.hasAutoplayData())){var B;if(((B=this.playlistLoopStateEntity)==null?void 0:B.state)==="PLAYLIST_LOOP_STATE_ONE"){if(f=this.data.currentIndex,f!==void 0){var G,g;var b=(G=this.data.contents[f])==null?void 0:(g=G.playlistPanelVideoRenderer)==null?void 0:g.title}}else{var z,X=(z=_.H(f.getAutoplayEndpoint(),_.t2))==null?void 0:z.videoId,w,F;b=(w=this.data.contents.find(function(V){var J;
return((J=V.playlistPanelVideoRenderer)==null?void 0:J.videoId)===X}))==null?void 0:(F=w.playlistPanelVideoRenderer)==null?void 0:F.title}return b}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)!=null&&f.nextVideoLabel?this.nextVideoTitle?_.ac(this.data.nextVideoLabel)+":":B4m:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var f;if(((f=this.data)==null?0:f.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN")return _.uC(Grv);var S;return(S=this.data)==null?void 0:S.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var f,S,B,G=(f=this.data)==null?void 0:(S=f.playlistButtons)==null?void 0:(B=S.menuRenderer)==null?void 0:B.topLevelButtons;if(G)for(f=_.m(G),S=f.next();!S.done;S=f.next())if(S=S.value,S.playlistLoopButtonRenderer)return S.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var f;return!!(this.collapsed&&((f=this.data)==null?0:f.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.K("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
tw.prototype.colorPaletteChanged=tw.prototype.colorPaletteChanged;tw.prototype.onPlaylistLockupNowPlaying=tw.prototype.onPlaylistLockupNowPlaying;tw.prototype.updateNowPlayingOverlay=tw.prototype.updateNowPlayingOverlay;tw.prototype.onFullscreenChanged=tw.prototype.onFullscreenChanged;tw.prototype.onFullBleedPlayerChanged=tw.prototype.onFullBleedPlayerChanged;tw.prototype.dataChanged=tw.prototype.dataChanged;tw.prototype.hiddenChanged=tw.prototype.hiddenChanged;tw.prototype.collapseChanged=tw.prototype.collapseChanged;
tw.prototype.onRenderStamperFinished=tw.prototype.onRenderStamperFinished;tw.prototype.onMouseLeave=tw.prototype.onMouseLeave;tw.prototype.onMouseEnter=tw.prototype.onMouseEnter;_.N([_.r(_.Ld),_.Z("design:type",Object)],tw.prototype,"ironResizableBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],tw.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],tw.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.r(uIL.YtPlaylistPanelBehavior),_.Z("design:type",Object)],tw.prototype,"ytPlaylistPanelBehavior",void 0);_.N([_.r(_.Sy.YtTaskEmitterBehavior),_.Z("design:type",Object)],tw.prototype,"ytTaskEmitterBehavior",void 0);_.N([_.r(_.cF7),_.Z("design:type",Object)],tw.prototype,"ytReorderableBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],tw.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],tw.prototype,"ytdReduxBehavior",void 0);
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],tw.prototype,"actionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],tw.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],tw.prototype,"autoplayData",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],tw.prototype,"withinMiniplayer",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],tw.prototype,"minimizePipBreakages",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],tw.prototype,"updatedCoursePanel",void 0);_.N([_.n({computed:"setMenuData_(data)"}),_.Z("design:type",Object)],tw.prototype,"menuRendererData",void 0);_.N([_.n({computed:"computeOverflowMenuData(data)"}),_.Z("design:type",Object)],tw.prototype,"overflowMenuDataTopRow",void 0);_.N([_.n({computed:"computeOverflowMenuData(data)"}),_.Z("design:type",Object)],tw.prototype,"overflowMenuData",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],tw.prototype,"hideHeaderText",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],tw.prototype,"useColorPalette",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.Z("design:type",Boolean)],tw.prototype,"collapsible",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],tw.prototype,"collapsed",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],tw.prototype,"hidden",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.Z("design:type",Boolean)],tw.prototype,"hasPlaylistButtons",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.Z("design:type",Boolean)],tw.prototype,"hasSeparateSaveButton",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.Z("design:type",Boolean)],tw.prototype,"hasToolbar",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.Z("design:type",String)],tw.prototype,"playlistType",void 0);_.N([_.n(),_.Z("design:type",Object)],tw.prototype,"isHovered",void 0);_.N([_.n({selectorArgs:["playlistLoopStateEntityKey"],selector:_.dW1}),_.Z("design:type",Object)],tw.prototype,"playlistLoopStateEntity",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],tw.prototype,"modernPanels",void 0);_.N([_.n({value:56}),_.Z("design:type",Number)],tw.prototype,"scrollMargin",void 0);_.N([_.n({computed:"computeCanReorder(data)"}),_.Z("design:type",Boolean)],tw.prototype,"canReorder",void 0);_.N([_.n(),_.Z("design:type",Object)],tw.prototype,"expandLabel",void 0);_.N([_.n(),_.Z("design:type",Object)],tw.prototype,"collapseLabel",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],tw.prototype,"isFloating",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],tw.prototype,"metaPanel",void 0);_.N([_.n({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.Z("design:type",String)],tw.prototype,"trailingIcon",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],tw.prototype,"isDarkTheme",void 0);
_.N([_.n({selector:_.LJ}),_.Z("design:type",Boolean)],tw.prototype,"miniplayerIsActive",void 0);_.N([_.n({selector:function(f){return f.watch.playerState}}),
_.Z("design:type",Number)],tw.prototype,"playerState",void 0);_.N([_.n({selector:_.pF}),_.Z("design:type",Boolean)],tw.prototype,"isFullscreen",void 0);_.N([_.n({selector:_.CF}),_.Z("design:type",Boolean)],tw.prototype,"isTheaterMode",void 0);_.N([_.n(),_.Z("design:type",Object)],tw.prototype,"activeNowPlayingRenderer",void 0);_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],tw.prototype,"moveThreeDotMenuToTopRow",null);
_.N([_.k("data","autoplayData","playlistLoopStateEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],tw.prototype,"nextVideoTitle",null);_.N([_.k("data","nextVideoTitle"),_.Z("design:type",String),_.Z("design:paramtypes",[])],tw.prototype,"nextVideoLabel",null);_.N([_.k("collapsed"),_.Z("design:type",String),_.Z("design:paramtypes",[])],tw.prototype,"buttonAriaLabel",null);
_.N([_.k("data","playlistId","longBylineText"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],tw.prototype,"mixLongByLine",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],tw.prototype,"playlistLoopStateEntityKey",null);_.N([_.Vg("mouseenter"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tw.prototype,"onMouseEnter",null);
_.N([_.Vg("mouseleave"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tw.prototype,"onMouseLeave",null);_.N([_.n({reflectToAttribute:!0}),_.k("data","collapsed"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],tw.prototype,"showNextVideoHeader",null);_.N([_.Vg("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tw.prototype,"onRenderStamperFinished",null);
_.N([_.JO("collapsed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tw.prototype,"collapseChanged",null);_.N([_.JO("hidden"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tw.prototype,"hiddenChanged",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tw.prototype,"dataChanged",null);
_.N([_.k("isTheaterMode","isFullscreen"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],tw.prototype,"isFullBleedPlayer",null);_.N([_.JO("isTheaterMode","isFullscreen"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tw.prototype,"onFullBleedPlayerChanged",null);_.N([_.JO("isFullscreen"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tw.prototype,"onFullscreenChanged",null);
_.N([_.JO("playerState","miniplayerIsActive"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tw.prototype,"updateNowPlayingOverlay",null);_.N([_.Vg("yt-playlist-lockup-now-playing-active"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],tw.prototype,"onPlaylistLockupNowPlaying",null);
_.N([_.JO("data","isDarkTheme"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tw.prototype,"colorPaletteChanged",null);_.N([_.C({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],tw);
_.g7m=_.RS()(tw,"ytd-playlist-panel-renderer",function(){if(lhN===void 0){var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);lhN=f}f=lhN;return f},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var eVm;var u7=function(){var f=_.I.apply(this,arguments)||this;f.modern=_.K("web_button_rework");return f};
_.q(u7,_.I);u7.prototype.computeShouldButtonBeVertical=function(f,S){return f||S};
u7.prototype.onYtServiceRequestSent=function(f,S){(f=_.H(S.endpoint,_.aY))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.KF("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:f.status})):this.handleLikeEndpoint(f))};
u7.prototype.computelikeStatusEntityKey=function(f){return f==null?void 0:f.likeStatusEntityKey};
u7.prototype.handleLikeEndpoint=function(f){f.status==="LIKE"?this.JSC$14968_ytdDislikeToggleButtonRenderer.toggle(!1):f.status==="DISLIKE"?this.JSC$14968_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$14968_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$14968_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.y3.Object.defineProperties(u7.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var f;return kPW(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(f=this.likeStatusEntity)==null?void 0:f.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var f;if(this.data&&((f=this.data)==null||!f.hideDislikeButton)){var S;return kPW(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(S=this.likeStatusEntity)==null?void 0:S.likeStatus)}}}});
u7.prototype.onYtServiceRequestSent=u7.prototype.onYtServiceRequestSent;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],u7.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],u7.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],u7.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],u7.prototype,"vertical",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",String)],u7.prototype,"textTransform",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],u7.prototype,"useShortsIcon",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],u7.prototype,"underIconLabel",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],u7.prototype,"modern",void 0);_.N([_.n({value:"left"}),_.Z("design:type",String)],u7.prototype,"buttonTooltipPosition",void 0);
_.N([_.n(),_.Z("design:type",Object)],u7.prototype,"overrides",void 0);_.N([_.vF("#like-button"),_.Z("design:type",Object)],u7.prototype,"JSC$14968_ytdLikeToggleButtonRenderer",void 0);_.N([_.vF("#dislike-button"),_.Z("design:type",Object)],u7.prototype,"JSC$14968_ytdDislikeToggleButtonRenderer",void 0);_.N([_.k("data","likeStatusEntity.likeStatus"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],u7.prototype,"likeButton",null);
_.N([_.k("data","likeStatusEntity.likeStatus"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],u7.prototype,"dislikeButton",null);_.N([_.n({computed:"computelikeStatusEntityKey(data)"}),_.Z("design:type",String)],u7.prototype,"likeStatusEntityKey",void 0);_.N([_.n({selectorArgs:["likeStatusEntityKey"],selector:C9}),_.Z("design:type",Object)],u7.prototype,"likeStatusEntity",void 0);
_.N([_.Vg("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.N1]),_.Z("design:returntype")],u7.prototype,"onYtServiceRequestSent",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],u7);
var bZ8=_.RS()(u7,"ytd-like-button-renderer",function(){if(eVm===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);eVm=f}f=eVm;return f},{mode:1});_.mY8={};
_.mY8.YtConditionalRendererBehavior=[_.c.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(f,S){var B=this,G,g;return _.R(function(b){switch(b.nextAddress){case 1:if(!S)return B.hidden=!0,B.showSpinner=!1,b.return();if((G=f)==null?0:(g=G.visibilityCondition)==null?0:g.mode)switch(f.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return b.jumpTo(5);default:return b.jumpTo(6)}B.showSpinner=
!1;B.hidden=!0;return _.h(b,B.shouldShow_(f),4);case 4:B.hidden=!b.yieldResult;b.jumpTo(0);break;case 5:return _.h(b,B.shouldShow_(f),8);case 8:B.showSpinner=b.yieldResult;B.hidden=!1;b.jumpTo(0);break;case 6:return B.showSpinner=!1,_.h(b,B.shouldShow_(f),9);case 9:B.hidden=!b.yieldResult,_.TT(b)}})},
shouldShow_:function(f){return f&&f.supportedDatas&&f.supportedDatas.rendererVisibilityConditionData&&f.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(f.supportedDatas.rendererVisibilityConditionData.showIf):f&&f.visibilityCondition&&f.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(f.visibilityCondition.showIf):f&&f.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(f.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(f){switch(f){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(f){switch(f){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var f=_.bW(this.hostElement,"yt-get-mdx-status");return f.length==1&&f[0].connected},
isLocationPermissionGranted_:function(){var f;return _.R(function(S){return S.nextAddress==1?navigator.permissions?_.h(S,navigator.permissions.query({name:"geolocation"}),3):S.jumpTo(2):S.nextAddress!=2?(f=S.yieldResult,S.return(Promise.resolve(f.state==="granted"))):S.return(Promise.resolve(!1))})}}];var zVN=function(f,S){S=S===void 0?{}:S;return function(B){var G=document.createElement(f),g;var b=(g=G.polymerController)!=null?g:G;kuK(G,b,B,S);return G}}("yt-icon"),RV6=_.K("web_bypass_polymer_yt_icon")&&_.K("kevlar_use_wil_icons")?_.oS(function(f){var S=f.icon;
var B=f.active;var G=f.className;var g=f.style;var b=f.dataSelected;var z=f.dataDisabled;var X=f.role;var w=f.themeOverride;var F=f.animateIcon;var V=f.ariaHidden;var J=f.ariaExpanded;var P=f.ariaLabel;var d=f.tabindex;var Q=f.id;var x=f.iconFilter;var E=function(){var t=S==null?void 0:S(),M=null,a=void 0;t&&(t=gY7(t),t=RtG(t),t.length&&(M=t[1],a=t[0]));return{iconName:M,iconSetName:a}},U=function(){return eZi(E().iconName,B==null?void 0:B(),void 0,void 0,E().iconSetName,_.oy().resolve(_.VU))},A=
function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:x==null?void 0:x()}};
return _.T(_.v,{cond:F,then:function(){return _.T(zVN,{icon:S,active:B,className:G,style:g,dataSelected:b,dataDisabled:z,role:X,themeOverride:w,ariaHidden:V,ariaExpanded:J,ariaLabel:P,tabindex:d,id:Q,iconFilter:x})},
else:function(){return _.T(_.v,{cond:U,then:function(t){return _.T("span",{class:_.Pw("ytIconWrapperHost",G),role:X,"aria-label":P,"aria-hidden":V,tabindex:function(){return isNaN(Number(d==null?void 0:d()))?void 0:Number(d==null?void 0:d())},
id:Q,style:g},_.T(ECK,{data:t,options:A}))}})}})},"ie"):zVN;var Xh6=function(f){var S=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];UoA();_.WL("ytglobal.ytUtilActivityCallback_",function(){_.mU(f,"yt-user-activity")});
new lP(function(){return S.JSC$14983_onMouseMove});
document.addEventListener("scroll",function(){return S.onScroll});
window.addEventListener("resize",function(){return S.onResize})},whm=function(f,S,B){S in f.eventJobIds||(B=_.kj().addLowPriorityJob(function(){_.fg();
delete f.eventJobIds[S]},B),f.eventJobIds[S]=B)};
Xh6.prototype.onScroll=function(f){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):f.target===document&&whm(this,"scroll",200)};
Xh6.prototype.onResize=function(){whm(this,"resize",200)};
Xh6.prototype.JSC$14983_onMouseMove=function(){whm(this,"mousemove",100)};
_.WX=function(f){f.scrollEventsToIgnore+=1;f.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){f.scrollEventsToIgnore--},500))};var hVg=function(f){this.element=f;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
hVg.prototype.showFeedbackDialog=function(f,S,B,G){var g=T4X();if(!g)return!1;var b=ZaW();b.productId=g;S&&(b.flow="submit",b.report={description:S});B&&(T4X()==="59"?b.callback=_.Ij(function(){_.jD("userFeedbackEvent",{});B()}):b.callback=_.Ij(B));
b.bucket=G||_.nL("GOOGLE_FEEDBACK_BUCKET","Other");FJ8(b);f=VXX(this,"GFEEDBACK",f);try{_.FZv(b,f)}catch(z){return _.Dt(z),!1}return!0};
hVg.prototype.showHelpDialog=function(f,S,B){var G=this,g=T4X();if(!g)return!1;var b={helpCenterPath:"/youtube",productData:VXX(this,"GUIDED_HELP",B)};FJ8(b);var z=ZaW();z.context=f||b.productData.context||"default";z.defaultHelpArticleId=S;z.enableSendFeedback=!0;(_.U6("gapi.load")||function(X,w){return w()})("client",function(){try{var X=WrL(g,b);
if(_.K("web_always_load_chat_support")&&!G.chatSupportLoaded)try{X.JSC$8020_loadChatSupport(z),G.chatSupportLoaded=!0}catch(w){}X.startHelp(z)}catch(w){_.Dt(w)}})};
var T4X=function(){var f=_.nL("GOOGLE_FEEDBACK_PRODUCT_ID");f||_.Dt(Error("di"));return f},FJ8=function(f){f&&(f.locale=_.K("kevlar_help_use_locale")?_.nL("INNERTUBE_CONTEXT_HL","en"):_.nL("HTML_LANG","en"))},VXX=function(f,S,B){var G=f.productData;
delete G.origin;G.device=_.Js();var g;a:{if(g=document.createElement("canvas")){var b=g.getContext("experimental-webgl",{stencil:!0});if(b){var z=b.getExtension("WEBGL_debug_renderer_info");if(z){g=b.getParameter(z.UNMASKED_RENDERER_WEBGL);break a}}if(b=g.getContext("webgl")){g=b.getParameter(b.RENDERER);break a}}g=null}G.gpu=g;G.isSDC=!!_.nL("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(g=_.nL("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.$v.extend(G,g);_.NTM(S,G);_.MiA(G);(f=_.mU(f.element,"yt-get-autonav-pause-debug-state"))&&
f.length&&(G.autonav_pause_state=f[0]);f=_.TW();G.browser_resolution=f.width+"\u00d7"+f.height+"@"+(window.devicePixelRatio||1)+"x";B&&_.$v.extend(G,B);return G};
hVg.prototype.resetProductData=function(){this.productData={}};var Jdo=function(f){this.feedbackManager=new hVg(f)};
Jdo.prototype.showFeedbackDialog=function(f,S,B,G){return this.feedbackManager.showFeedbackDialog(f,S,B,G)};
Jdo.prototype.showHelpDialog=function(f,S,B){return this.feedbackManager.showHelpDialog(f,S,B)};var P2i=function(){this.baseUrl="";this.aTag=document.createElement("a")},oCX=function(f,S,B){B=B===void 0?{}:B;
B.pbj||(B.pbj=1);B=_.qns(S,B);f.baseUrl&&B&&!_.u0(B)[1]&&!_.aj(B)&&(S=f.baseUrl,e1(S,"/")&&(S=S.slice(0,-1)),_.Gj(B,"/")&&(B=B.slice(1)),B=S+"/"+B);Y6(f.aTag,vo(B||""));return f.aTag.href};
P2i.prototype.fetchData=function(f){return _.DQ1(f)};
P2i.prototype.postData=function(f,S){var B={method:"POST"};if(S){for(var G=_.m(Object.keys(S)),g=G.next();!g.done;g=G.next()){g=g.value;var b=S[g];_.og(b)&&(S[g]=JSON.stringify(b))}B.postParams=S}return _.DQ1(f,B)};
_.SNm=function(f,S,B,G,g){f=oCX(f,S,B);if(!f)throw G=Error("ei"),Object.assign(G,{params:S}),G;return _.DQ1(f,g,G)};
P2i.prototype.requestDataForServiceEndpoint=function(f,S){if(_.H(f,_.zMQ))return this.fetchData("/getAccountSwitcherEndpoint");S=S||{};var B=_.H(f,Ye1);B?S.se=B.base64EncodedServiceEndpoint:S.sej=JSON.stringify(f);(B=_.xc())&&_.K("enable_service_ajax_csn")&&(S.csn=B);S.theme=_.xG();_.H(f,b0K)&&_.nL("DELEGATION_CONTEXT")&&(S.delegation_context=JSON.stringify(_.nL("DELEGATION_CONTEXT")));B=null;for(var G in f)if(e1(G,"Endpoint")||e1(G,"Command")){B=G;break}if(!B){var g=Error("fi");Object.assign(g,{params:f});
_.dBG(g,"WARNING");return new _.TM(function(z,X){X(g)})}G={name:B};
var b;(B=(b=_.H(f,_.Fh))==null?void 0:b.signal)&&(G.signal=B);(b=_.Mp(window.location.href))&&b.internalcountrycode&&(G.internalcountrycode=b.internalcountrycode);b="/service_ajax";_.K("debug_forward_web_query_parameters")&&(b=_.n2V(b,window.location.search));b=_.tA(b,G);f.clickTrackingParams&&_.WZ(b,{itct:f.clickTrackingParams});return this.postData(b,S)};_.v7m=new _.Sn("GFEEDBACK_TOKEN");var KJm;var dYj;var iZm;var HZL;var a2=function(){var f=_.I.apply(this,arguments)||this;f.compact=!1;return f};
_.q(a2,_.I);a2.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
a2.prototype.computeHasIcon_=function(f){return!!f};
a2.prototype.isSignInIcon_=function(f){return f=="yt-icons:prompted_sign_in"};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],a2.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],a2.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.mY8.YtConditionalRendererBehavior),_.Z("design:type",Object)],a2.prototype,"ytConditionalRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],a2.prototype,"data",void 0);
_.N([_.n({computed:"computeIcon_(data.icon)"}),_.Z("design:type",Object)],a2.prototype,"icon_",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.Z("design:type",Boolean)],a2.prototype,"hasIcon_",void 0);_.N([_.n({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.Z("design:type",Boolean)],a2.prototype,"signInIcon_",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],a2.prototype,"compact",void 0);
_.N([_.nP({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],a2);
_.p(a2,"yt-player-error-message-renderer",function(){if(HZL===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;iZm===void 0&&(iZm=document.createElement("template"));var G=iZm;B.call(S,G.content.cloneNode(!0),f.content.firstChild);HZL=f}f=HZL;return f},{mode:2});var qsm;var $Y$;var yv=function(){return _.I.apply(this,arguments)||this};
_.q(yv,_.I);yv.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
yv.prototype.computeIcon_=function(f){return f?"yt-icons:"+f.iconType.toLowerCase():"error_outline"};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],yv.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],yv.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],yv.prototype,"data",void 0);_.N([_.n({computed:"computeIcon_(data.icon)"}),_.Z("design:type",Object)],yv.prototype,"icon_",void 0);_.N([_.nP({is:"yt-player-kav-renderer",disableElementRegistration:!0})],yv);
_.p(yv,"yt-player-kav-renderer",function(){if($Y$===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;qsm===void 0&&(qsm=document.createElement("template"));var G=qsm;B.call(S,G.content.cloneNode(!0),f.content.firstChild);$Y$=f}f=$Y$;return f},{mode:2});_.eq(_.oS(function(f){var S=_.tE("div"),B=_.m(_.hj(0,void 0,"gCmSbf")),G=B.next().value,g=B.next().value;B=_.m(_.hj(null,void 0,"Rj9zMe"));var b=B.next().value,z=B.next().value;_.j9(function(){a4N(S.value,g,z);S.value.scrollIntoView()});
B=yTQ.bind(null,f.data,G);ls("resize",function(){var X=b();if(G()===1&&X!==null){var w;(w=window.grecaptcha)==null||w.reset(X)}});
return _.T("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.T("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.T("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var X,w;return(X=f.data().accessibility)==null?void 0:(w=X.accessibilityData)==null?void 0:w.label}),_.T(_.oY,{text:B,
className:_.Pw("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.T("div",{el:S,class:"ytwPlayerCaptchaViewModelGridItem"})))},"je"),"yt-player-captcha-view-model",{props:{data:_.gm}});var Wh9=!1;_.QWj=_.oS(function(f){var S=f.data;return _.T("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.T(_.v,{cond:function(){return S().icon},
then:function(B){return _.T("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.T(_.f9,{data:B,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.T(_.v,{cond:function(){return S().title},
then:function(B){return _.T("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.T(_.oY,{text:B}))}}),_.T(_.v,{cond:function(){return S().description},
then:function(B){return _.T("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.T(_.oY,{text:B}))}}),_.T(_.xK,{data:function(){return S().primaryButton}},{buttonViewModel:function(B){return _.T(_.I8,{data:B.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.T(_.xK,{data:function(){return S().secondaryButton}},{buttonViewModel:function(B){return _.T(_.I8,{data:B.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"ke");
_.QWj.idomCompat=!0;var Ysj=_.oS(function(f){var S=f.data;_.l1();return _.T("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.T("div",{class:"player-interstitial-renderer-wiz__scrim"},_.T(_.xK,{data:function(){return S().content}},{interstitialViewModel:_.QWj})))},"le");
Ysj.idomCompat=!0;_.eq(Ysj,"yt-player-interstitial-renderer",{props:{data:_.W4}});var W5=function(){var f=_.I.apply(this,arguments)||this;f.noBackground=!1;f.compact=!1;f.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return f};
_.q(W5,_.I);W5.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"}}}};
W5.prototype.onUpdatePlayerErrorMessageCommand_=function(f){if(_.H(f,pyi)){var S;if(f=(S=_.H(f,pyi))==null?void 0:S.newPlayerErrorMessageRenderer)this.data=f}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],W5.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],W5.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],W5.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],W5.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],W5.prototype,"status",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],W5.prototype,"noBackground",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],W5.prototype,"compact",void 0);_.N([_.nP({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],W5);
var rdN=_.RS()(W5,"yt-playability-error-supported-renderers",function(){if(dYj===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;KJm===void 0&&(KJm=document.createElement("template"));var G=KJm;B.call(S,G.content.cloneNode(!0),f.content.firstChild);dYj=f}f=dYj;return f},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var cTQ=void 0,fsV=void 0;var BsM=new ndj;var jW6=function(f){this.store=f;this.vj7=new _.IEj},FMV=function(f,S,B){var G,g;
if(!(g=((G=S.playabilityStatus)==null?void 0:G.status)!=="OK")){f=f.store;var b;g=S.offlineState&&((b=S.videoDetails)==null?0:b.videoId)?_.K("enable_pl_r_c_cd")?Kps(f.getState().entities,S.videoDetails.videoId):!!uYK(f.getState().entities,S.videoDetails.videoId):!1}if(g)return!0;g=mgG(S);if(g===1){if(_.K("ab_v_vid_sig")){var z,X=(z=S.videoDetails)==null?void 0:z.videoId;if(!X||!B||X!==B){var w;S=new _.dO("282054944_vid",{tIh:B,i0m:(w=S.videoDetails)==null?void 0:w.videoId});_.xH(S)}}return!0}H5K=
0;var F,V;w=(X=S.auxiliaryUi)==null?void 0:(F=X.messageRenderers)==null?void 0:(V=F.bkaEnforcementMessageViewModel)==null?void 0:V.displayType;if(g!==3&&(w==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||w==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;w={reason:_.B2(_.Jf("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.K("ks_something_wrong_learn_more")?QZG("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.B2(_.Jf("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:_.B2("282054944")};OZ$(S,{playerErrorMessageRenderer:w});return!1},VkV=function(f,S){if(C_N(S)){_.VW(1,!0);
var B=(B=C_N(S))&&_.l4N()?B:void 0;B?(OZ$(S,{enforcementMessageViewModel:B}),f.vj7.increment("IN_PLAYER"),_.VW(5)):(f.vj7.increment("SKIP_DISPLAY"),_.VW(2))}},OZ$=function(f,S){f.playabilityStatus=Object.assign({},f.playabilityStatus,{status:"ERROR",
errorScreen:S});f.videoDetails=void 0};
jW6.prototype.handleResponse=function(f,S){if(f.playabilityStatus){var B,G,g,b=(S==null?void 0:(B=S.innerTubeRequest)==null?void 0:B.videoId)||(S==null?void 0:(G=S.innerTubeRequest)==null?void 0:(g=G.playerRequest)==null?void 0:g.videoId);FMV(this,f,b)&&VkV(this,f)}};
jW6[oN]=[Tq];var h81=new _.Sn("ADBLOCK_DETECTION_SERVICE_TOKEN");var BY=function(f){this.eG4=f};
BY.prototype.bindInnertubeChallengeFetcher=function(f){this.eG4.bicf(f)};
BY.prototype.registerChallengeFetchedCallback=function(f){this.eG4.bcr(f)};
BY.prototype.getLatestChallengeResponse=function(){return this.eG4.blc()};var kr7;_.c5=function(f,S,B){var G=this;this.network=f;this.options=S;this.networkStatusManager=B;this.ek=null;if(S.useBotguardEverywhere){var g=new _.w3;this.ek=g.promise;_.S1.ytAtRC&&_.H8(_.xJ,function(){var b,z;return _.R(function(X){if(X.nextAddress==1){if(!_.S1.ytAtRC)return X.return();b=xYo(null);return _.h(X,G.hy(b),2)}z=X.yieldResult;_.S1.ytAtRC&&_.S1.ytAtRC(JSON.stringify(z));_.TT(X)})});
hNM().then(function(b){var z,X,w,F;return _.R(function(V){if(V.nextAddress==1)return b.bindInnertubeChallengeFetcher(function(J){return G.hy(xYo(J))}),_.h(V,ra1(),2);
z=V.yieldResult;X=b.getLatestChallengeResponse();w=X.challenge;if(!w)throw Error("gi");F={challenge:w,ha:SO(w),oy:z,bgChallenge:new fz};g.resolve(F);b.registerChallengeFetchedCallback(function(J){J=J.challenge;if(!J)throw Error("hi");J={challenge:J,ha:SO(J),oy:z,bgChallenge:new fz};G.ek=Promise.resolve(J)});
_.TT(V)})})}else S.preload&&E7g(this,new Promise(function(b){_.q6(_.xJ,function(){b(LJj(G))},0)}))};
kr7=function(f){var S={preload:!0,useBotguardEverywhere:!0},B=!1;if(typeof S==="boolean")var G={preload:S};else typeof S==="undefined"?G={preload:!0}:(G=S,B=!!S.u3D);S=B?void 0:new _.N7;_.c5.instance=new _.c5(f,G,S);return _.c5.instance};
_.c5.prototype.cUb=function(){var f=this;return _.R(function(S){return S.nextAddress==1?_.h(S,Promise.race([f.ek,null]),2):S.return(!!S.yieldResult)})};
_.c5.prototype.bVV=function(f,S,B){var G=this,g,b,z;return _.R(function(X){G.ek===null&&E7g(G,LJj(G));g=!1;b={};z=function(){var w,F,V;return _.R(function(J){switch(J.nextAddress){case 1:return _.h(J,G.ek,2);case 2:w=J.yieldResult;b.challenge=w.challenge;if(!w.oy){"c1a"in w.ha&&(b.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");J.jumpTo(3);break}F=Object.assign({},{c:w.challenge,e:f},S);_.zT(J,4);g=!0;return _.h(J,w.oy.snapshot({rU:F}),6);case 6:(V=J.yieldResult)?b.webResponse=V:b.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.CN(J,3);break;case 4:_.hm(J),b.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(f==="ENGAGEMENT_TYPE_PLAYBACK"){var P=w.ha,d={};if(P.c6a){var Q=Number(_.nL("DCLKSTAT",0));d.reportingStatus=String(Number(P.c)^(isNaN(Q)?0:Q))}P.c6b&&(d.broadSpectrumDetectionResult=String(Number(P.c)^Number(_.nL("CATSTAT",0))));b.adblockReporting=d}return J.return(b)}})};
return X.return(Promise.race([z(),n76(B,function(){var w=Object.assign({},b);g&&(w.error="ATTESTATION_ERROR_VM_TIMEOUT");return w})]))})};
var xYo=function(f){var S={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};f&&(S.interpreterHash=f);return S},LJj=function(f,S){S=S===void 0?0:S;
var B,G,g,b,z,X,w,F,V,J,P,d;return _.R(function(Q){switch(Q.nextAddress){case 1:B=xYo(IaX().wrW);if(_.K("att_fet_ks"))return _.zT(Q,7),_.h(Q,f.hy(B),9);_.zT(Q,4);return _.h(Q,sWo(f,B),6);case 6:z=Q.yieldResult;g=z.o8h;b=z.p1P;G=z;_.CN(Q,3);break;case 4:return _.hm(Q),_.Lg(Error("ii`"+S)),DYN(f,864E5),Q.return({challenge:"",ha:{},oy:void 0,bgChallenge:void 0});case 9:G=Q.yieldResult;if(!G)throw Error("ji");if(!G.challenge)throw Error("ki");g=G.challenge;b=SO(g);if("c1a"in b&&(!G.bgChallenge||!G.bgChallenge.program))throw Error("li");
_.CN(Q,3);break;case 7:X=_.hm(Q);_.Lg(X);S++;if(S>=5)return _.Lg(Error("ii`"+S)),DYN(f,864E5),Q.return({challenge:"",ha:{},oy:void 0,bgChallenge:void 0});w=1E3*Math.pow(2,S-1)+Math.random()*1E3;return Q.return(new Promise(function(x){_.q6(_.xJ,function(){x(LJj(f,S))},w)}));
case 3:F=wPN(b);DYN(f,F*1E3);V=void 0;if(!("c1a"in b&&G.bgChallenge)){Q.jumpTo(10);break}J=XPs(G.bgChallenge);_.zT(Q,11);return _.h(Q,Co1(IaX(),J),13);case 13:_.CN(Q,12);break;case 11:return P=_.hm(Q),_.Lg(P),Q.return({challenge:g,ha:b,oy:V,bgChallenge:J});case 12:return _.zT(Q,14),V=new _.D2({challenge:J,lF:{oB:"aGIf"}}),_.h(Q,V.rO9,16);case 16:_.CN(Q,10);break;case 14:d=_.hm(Q),_.Lg(d),V=void 0;case 10:return Q.return({challenge:g,ha:b,oy:V,bgChallenge:J})}})};
_.c5.prototype.hy=function(f){var S=this,B;return _.R(function(G){B=S.networkStatusManager;if(!B||B.isNetworkAvailable())return G.return(S.network.hy(f));_.sL("att_pna",void 0,"attestation_challenge_fetch");return G.return(new Promise(function(g){B.listenOnce("publicytnetworkstatus-online",function(){S.network.hy(f).then(g)})}))})};
var IAL=function(f){if(!f)throw Error("ji");if(!f.challenge)throw Error("ki");var S=f.challenge,B=SO(S);if("c1a"in B&&(!f.bgChallenge||!f.bgChallenge.program))throw Error("li");return Object.assign({},f,{o8h:S,p1P:B})},sWo=function(f,S){var B,G,g,b,z;
return _.R(function(X){switch(X.nextAddress){case 1:B=void 0,G=0,g={};case 2:if(!(G<5)){X.jumpTo(4);break}if(!(G>0)){X.jumpTo(5);break}g.aeF=1E3*Math.pow(2,G-1)+Math.random()*1E3;return _.h(X,new Promise(function(w){return function(F){_.q6(_.xJ,function(){F(void 0)},w.aeF)}}(g)),5);
case 5:return _.zT(X,7),_.h(X,f.hy(S),9);case 9:return b=X.yieldResult,X.return(IAL(b));case 7:B=z=_.hm(X),z instanceof Error&&_.Lg(z);case 8:G++;g={aeF:void 0};X.jumpTo(2);break;case 4:throw B;}})},E7g=function(f,S){f.ek=S},UYL=function(f){var S,B,G;
return _.R(function(g){if(g.nextAddress==1)return _.h(g,Promise.race([f.ek,null]),2);S=g.yieldResult;var b=LJj(f);f.ek=b;(B=S)==null||(G=B.oy)==null||G.dispose();_.TT(g)})},DYN=function(f,S){var B=Date.now()+S,G=function(){var g;
return _.R(function(b){g=B-Date.now();return g<1E3?_.h(b,UYL(f),0):(_.q6(_.xJ,G,Math.min(g,6E4)),b.jumpTo(0))})};
G()},n76=function(f,S){return new Promise(function(B){_.q6(_.xJ,function(){B(S())},f)})};var C2v=function(){};
C2v.prototype.processContext=function(f){var S=_.c5.instance;if(!S)return _.ue();var B=PIT(f);return B?new tv(S.bVV(B,VMK(f),500).then(function(G){var g;(f==null?0:(g=f.innerTubeRequest)==null?0:g.context)||(f.innerTubeRequest.context={});g=f.innerTubeRequest.context;g.request||(g.request={});g.request.attestationResponseData=G})):_.ue()};var phi=function(f){this.innertubeTransportService=f};
phi.prototype.hy=function(f){_.sL("att_fsr",void 0,"attestation_challenge_fetch");return _.sX(this.innertubeTransportService,f,_.lC(_.pnm)).then(function(S){_.sL("att_frr",void 0,"attestation_challenge_fetch");return S})};_.Adm=function(f){this.innertubeTransportService=f};var N4L=new _.Sn("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var MX6=function(){},tXm=function(f,S,B,G,g){var b=_.nL("YPC_MB_URL");
_.fqV(b).then(function(){ZZN(b,f,S,B,G,g)})},ZZN=function(f,S,B,G,g,b){try{var z=payments.business.integration,X=payments.business.integration.Style.create().withMaterialDesignStyle(),w=z.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.K("enable_window_constrained_buy_flow_dialog")&&(w=w.usingPopupStyle("windowConstrained"));b&&(w=w.usingCloseCallback(b));var F=B?B:_.nL("YPC_GB_LANGUAGE"),V=_.nL("SESSION_INDEX");z.bootstrap.fromPaymentsUrl(f);z.bootstrap.asMashupMode(w).usingGaiaIndex(V).usingLocale(F).usingStyle(X).usingDefaultActivityStatusChangeHandler().inStandaloneContext(z.standaloneContextAuthId.forGaia()).purchaseManager(S,function(J){G&&G(J)}).load(void 0,g)}catch(J){throw g&&g(J),_.xH(J),J;
}};var uOX=new _.Sn("PURCHASE_MANAGER_TOKEN");var aA8=function(){var f=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return f.videos},
getContinuationsPresent:function(){return f.continuationsPresent},
setVideos:function(S){f.videos=S},
getRecommendedVideos:function(){return f.recommendedVideos},
setRecommendedVideos:function(S){f.recommendedVideos=S}}};
aA8.prototype.addVideos=function(f){f&&(this.videos=f.filter(function(S){return!!_.KPV(S)}).map(function(S){var B=_.KPV(S);
a:{var G;if(S.playlistVideoRenderer&&((G=S.playlistVideoRenderer)==null?0:G.voteSortTiebreaker))var g=S.playlistVideoRenderer.voteSortTiebreaker;else{if(_.H(S,gL)){var b;if(G=(g=_.H(S,gL))==null?void 0:(b=g.playlistItemData)==null?void 0:b.voteSortTiebreaker){g=G;break a}}g=""}}return{itemId:B,videoId:_.H7N(S),voteCount:_.q_Q(S),voteSortTiebreaker:g}}),this.continuationsPresent=!!_.H(f[f.length-1],_.zq))};
var ydo=function(f,S){return f.videos.findIndex(function(B){return B.itemId===S})},WJ6=function(f,S){return f.recommendedVideos.findIndex(function(B){return B.itemId===S})},cdm=function(f){f={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:f}}}}};_.oy().resolve(_.S7).resolveCommand(f)};var lAi=function(){aA8.apply(this,arguments)};
_.q(lAi,aA8);
var Dgg=function(f,S,B,G){if(!f.parentElem)throw Error("qi");var g=ydo(f,S);g===-1&&(g=WJ6(f,S),g=g!==-1?g+f.videos.length:-1);if(g===-1)throw Error("ri");var b=g>=f.videos.length?f.recommendedVideos[g-f.videos.length]:f.videos[g];b.voteCount=B;b.voteSortTiebreaker=Date.now().toString();g>=f.videos.length?f.recommendedVideos.splice(g-f.videos.length,1):f.videos.splice(g,1);var z=f.videos;for(var X=0,w=z.length-1;X<=w;){var F=Math.floor((X+w)/2);if(z[F].voteCount<b.voteCount)w=F-1;else if(z[F].voteCount>b.voteCount)X=
F+1;else{a:{var V=b.voteSortTiebreaker;var J=z[F].voteSortTiebreaker;if(V.length!==J.length)V=V.length>J.length;else{for(var P=0;P<V.length;P++){var d=V.charCodeAt(P),Q=J.charCodeAt(P);if(d>Q){V=!0;break a}if(d<Q)break}V=!1}}V?w=F-1:X=F+1}}z=X;if(z===-1)throw Error("si");f.videos.splice(z,0,b);g!==z&&fb8(f,g,z,S,B,G)},fb8=function(f,S,B,G,g,b){var z,X=(z=f.parentElem)==null?void 0:z.children,w=Math.min(S,B),F=Math.max(S,B);
if(X)for(z=w;z<=F;z++)X[z].style.viewTransitionName="item-"+String(z);document.startViewTransition(function(){if(f.parentElem){var V=f.parentElem.children;if(!(!V||S<0||S>=V.length||B<0||B>=V.length)){var J=V[S];if(J){J.remove();f.showRefreshPill=B>=f.videos.length-1&&f.continuationsPresent;if(!f.showRefreshPill){V=V[B]||null;var P;(P=f.parentElem)==null||P.insertBefore(J,V)}_.ew(f.parentElem,"yt-update-video-data-voting-animation",{toIdx:B,itemId:G,newVoteCount:g,voteStatus:b,hideItem:f.showRefreshPill})}}}}).finished.then(function(){if(X)for(var V=
w;V<=F;V++)X[V].style.viewTransitionName="";
if(f.showRefreshPill)cdm(_.Jf("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var J;if(J=V=(J=f.parentElem)==null?void 0:J.children[B])J=V.getBoundingClientRect(),V=J.bottom,J=!(J.top>=0&&V<=f.clientHeight);J&&(J=_.PK(S>B?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(S-B)),cdm(J))}})};var B2$=function(f,S){var B=this;f?this.innertubeTransportServicePromise=Promise.resolve(f):S&&(this.innertubeTransportServicePromise=S(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new sN(3E3,function(G){return o1$(B,G)},0);
this.validateMiniAppVideoIdRateLimiter=new sN(3E3,function(G){return SOX(B,G)},1)},sX8=function(f,S){f.JSC$15095_miniAppId=S;
f.reportMiniAppValueRateLimiter=new sN(3E3,function(B){return o1$(f,B)},0);
f.validateMiniAppVideoIdRateLimiter=new sN(3E3,function(B){return SOX(f,B)},1)},Ih6=function(f,S){var B;
return _.R(function(G){if(G.nextAddress==1)return _.h(G,f.reportMiniAppValueRateLimiter.call(S),2);B=G.yieldResult;return G.return([B,S])})},o1$=function(f,S){var B,G,g,b,z,X,w;
return _.R(function(F){switch(F.nextAddress){case 1:return _.h(F,f.innertubeTransportServicePromise,2);case 2:return B=F.yieldResult,G=_.lC(aC$),g=Date.now(),b={externalPostId:f.JSC$15095_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(g/1E3),nanos:Math.round(g%1E3*1E6)},intValue:""+S}},_.zT(F,3),_.h(F,_.sX(B,b,G),5);case 5:z=F.yieldResult;_.CN(F,4);break;case 3:throw X=_.hm(F),X;case 4:if(z){if("error"in z&&z.error)throw z.error;if(z.errorMetadata)throw Error("ti`"+
z.errorMetadata.status);if(w=z.userStatResult)return F.return(w);throw Error("ui");}throw Error("vi");}})},Cpj=function(f){var S,B,G,g,b;
_.R(function(z){switch(z.nextAddress){case 1:return _.h(z,f.innertubeTransportServicePromise,2);case 2:return S=z.yieldResult,B=_.lC(aC$),G={externalPostId:f.JSC$15095_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.zT(z,3),_.h(z,_.sX(S,G,B),5);case 5:g=z.yieldResult;_.CN(z,4);break;case 3:throw b=_.hm(z),b;case 4:if(g==null)throw Error("vi");if("error"in g&&g.error)throw g.error;if(g.errorMetadata)throw Error("ti`"+g.errorMetadata.status);_.TT(z)}})};
B2$.prototype.flush=function(){var f=this;return _.R(function(S){return S.nextAddress==1?_.h(S,f.reportMiniAppValueRateLimiter.flush(),2):_.h(S,f.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var U$m=function(f,S){return _.R(function(B){return B.nextAddress==1?_.h(B,f.validateMiniAppVideoIdRateLimiter.call(S),2):B.return(B.yieldResult)})},SOX=function(f,S){var B,G,g,b,z,X;
return _.R(function(w){switch(w.nextAddress){case 1:return _.h(w,f.innertubeTransportServicePromise,2);case 2:return B=w.yieldResult,G=_.lC(C_v),g={videoId:S},_.zT(w,3),_.h(w,_.sX(B,g,G),5);case 5:b=w.yieldResult;_.CN(w,4);break;case 3:throw z=_.hm(w),z;case 4:if(b){if("error"in b&&b.error)throw b.error;if(b.errorMetadata)throw Error("ti`"+b.errorMetadata.status);if(X=b.playabilityStatus)return w.return(X.status);throw Error("wi");}throw Error("vi");}})};
B2$[oN]=[_.fN(_.DU),_.fN(vqi)];var GKi=function(){this.clientData=new Map};
GKi.prototype.getData=function(f){return this.clientData.get(f)};var g1v=function(f){this.store=f};
g1v.prototype.handleResponse=function(f){(f=_.H(f.frameworkUpdates,Ww))&&_.JR(f,this.store)};
g1v[oN]=[_.C5];var ewi=new _.Sn("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var bBm={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_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 mOi=new _.Sn("ICON_SET_TOKEN"),zwj=new _.Sn("ICON_URL_PROVIDER_TOKEN"),RwN=new _.Sn("PREFETCH_ICONS_TOKEN"),XAj=new _.Sn("ICON_MAP_FN_TOKEN");var l7={},wAN=(l7.ACCESS_TIME="clock",l7.ACCOUNT_BOX="person_account",l7.ACCOUNT_BOX_CAIRO="person_account_cairo",l7.ACCOUNT_CIRCLE="person_circle",l7.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",l7.ACCOUNT_LINKED="account_link_success",l7.ACCOUNT_UNLINKED="account_link",l7.ADD_FRIEND="people",l7.ADD_MODERATOR="shield_add",l7.ADD_TO_LIBRARY=bG("add"),l7.ADD_TO_PLAYLIST="add",l7.ADD_TO_QUEUE_TAIL="list_queue",l7.ADD_TO_REMOTE_QUEUE="list_music",l7.ADD_TO_WATCH_LATER="clock",l7.ADD_VIDEO_LINK="film_strip_add",
l7.ALERT_WARN_RED="alert_triangle",l7.ARROW_BACK="arrow_left",l7.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",l7.ARROW_DROP_DOWN="chevron_down",l7.ARROW_DROP_UP="chevron_up",l7.ARROW_FORWARD="arrow_right",l7.AUDIOTRACK="audio",l7.AUTO_AWESOME="sparkle",l7.AVATAR_ANONYMOUS="person_circle",l7.AVATAR_LOGGED_OUT="person_circle",l7.BACK="arrow_left",l7.BAR_CHART="bar_graph",l7.BLOCK="slash_circle_left",l7.BLOCK_USER="slash_circle_left",l7.BOOKMARK_BORDER="bookmark",l7.BREAKING_NEWS_ALT_1="article_alert",
l7.BROADCAST_CAIRO="podcast_cairo",l7.BUG_REPORT="bug",l7.CAMERA_ALT="camera",l7.CAMPAIGN="megaphone",l7.CANCEL="x_circle",l7.CAPTIONS="closed_caption",l7.CAST_OUTLINE="chromecast",l7.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",l7.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",l7.CHAT="message_bubble_left",l7.CHAT_BUBBLE="message_bubble_empty",l7.CHAT_SPARK="spark_message_bubble_left",l7.CHECK_BOX_OUTLINE_BLANK="box_empty",l7.CHECK_CIRCLE_OUTLINE="check_circle",l7.CHECK_CIRCLE_THICK="check_circle",l7.CLARIFY=
"article_clarify",l7.CLOSED_CAPTION_SELECTED="closed_caption",l7.CLOSE="x_mark",l7.CLOUD_UPLOAD="cloud_arrow_up",l7.COLLAPSE="chevron_up",l7.COLLAPSE_CAIRO="chevron_up_cairo",l7.COLLECTION="layers",l7.COLOR_LENS="palette",l7.COMMENT="message_bubble_right",l7.CONSENT_SHIELD="person_shield",l7.CONTENT_CUT="scissors",l7.CONTENT_CUT_CAIRO="scissors_cairo",l7.COURSE=_.K("web_enable_course_icon_update")?"creator_academy":"lightbulb",l7.COURSE_CAIRO=_.K("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",l7.CREATION_LIVE="radar_live",l7.CREATION_POST="box_pencil",l7.CREATION_UPLOAD="my_videos",l7.CREATION_UPLOAD_RED="upload",l7.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",l7.CREATOR_STUDIO="youtube_studio",l7.DASHBOARD="grid_asymmetrical",l7.DELETE="trash_can",l7.DELETE_SWEEP="trash_can",l7.DESKTOP="laptop",l7.DISLIKE="thumb_down",l7.DISLIKE_SELECTED="thumb_down",l7.DISMISSAL="x_mark",l7.DISMISS_QUEUE="list_remove",l7.DONE_ALL="check_double",l7.DOWN_ARROW="arrow_down",l7.DO_NOT_DISTURB=
"slash_circle_left",l7.DRAFT="paper_corner_folded",l7.DRAG_HANDLE="bars_2",l7.EDIT="pencil",l7.EMOJI="face_very_happy",l7.EMOJI_FLAGS="flag",l7.EMOJI_OBJECTS="lightbulb",l7.EMOJI_PEOPLE="face_very_happy",l7.EMOJI_RECENT="clock",l7.EMPTY_HEART="heart",l7.EMPTY_LIKE="thumb_up",l7.ERROR_BLACK="alert_circle",l7.ERROR_OUTLINE="alert_circle",l7.EXIT_APP="arrow_in",l7.EXIT_TO_APP="arrow_in",l7.EXPAND="chevron_down",l7.EXPAND_ALL="chevron_expand",l7.EXPAND_CAIRO="chevron_down_cairo",l7.EXPAND_LESS="chevron_up",
l7.EXPAND_MORE="chevron_down",l7.EXPLORE="compass",l7.EXPLORE_DESTINATION="compass",l7.EXTERNAL_LINK="open_new",l7.FAB_UPLOAD="upload",l7.FACE_HAPPY_OUTLINE="face_happy",l7.FACT_CHECK="article_check",l7.FASHION_LOGO="fashion",l7.FASHION_LOGO_CAIRO="fashion_cairo",l7.FAVORITE="heart",l7.FEEDBACK="message_bubble_alert",l7.FEEDBACK_CAIRO="message_bubble_alert_cairo",l7.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",l7.FILL_ARROW_SOLID_UP_16="arrow_solid_up",l7.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
l7.FILTER="menu_filter",l7.FIRST_PAGE="chevron_first",l7.FLAG="flag",l7.FULL_HEART="heart",l7.GAME_CONSOLE_DPAD="game_console_dpad",l7.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",l7.GAMING_LOGO="gaming",l7.GAMING_LOGO_CAIRO="gaming_cairo",l7.GO_TO_PAGE="arrow_right",l7.GROUPS="people_group",l7.HAPPY="face_happy",l7.HEALTH_AND_SAFETY="shield_plus",l7.HELP="question_circle",l7.HELP_CAIRO="question_circle_cairo",l7.HELP_OUTLINE="question_circle",l7.HIDE="slash_circle_left",l7.IMAGE="image",
l7.INFINITY_ICON="infinity",l7.INFO="info_circle",l7.INFO_OUTLINE="info_circle",l7.INSERT_CHART_OUTLINED="bar_graph_box_vertical",l7.INSERT_PHOTO="image",l7.KEEP="pin",l7.KEEP_OFF="pin_off",l7.KEYBOARD="keyboard",l7.KEYBOARD_ARROW_DOWN="chevron_down",l7.KEYBOARD_ARROW_UP="chevron_up",l7.KIDS_BLOCK="slash_circle_left",l7.LANGUAGE="globe",l7.LAST_PAGE="chevron_last",l7.LAUNCH="open_new",l7.LEARNING="lightbulb",l7.LEARNING_CAIRO="lightbulb_cairo",l7.LIBRARY_ADD=bG("library_add"),l7.LIBRARY_OUTLINE="library",
l7.LIBRARY_REMOVE=bG(),l7.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",l7.LIKES_PLAYLIST="thumb_up",l7.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",l7.LIKE="thumb_up",l7.LIKE_SELECTED="thumb_up",l7.LIVE="radar_live",l7.LIVE_CAIRO="radar_live_cairo",l7.LIVE_UNLISTED="link",l7.LOCATION_ON="location_point",l7.LOCATION_PIN="location_point",l7.LOOP="arrow_repeat",l7.LOOP_ACTIVE="arrow_repeat",l7.LOOP_ONE="arrow_repeat_1",l7.LOOP_ONE_ACTIVE="arrow_repeat_1",l7.MEH="face_meh",l7.MEMBERS_ONLY_MODE_OFF="message_bubble_left",
l7.MESSAGE="message_bubble_left",l7.MICROPHONE_ON="mic",l7.MIX="youtube_mix",l7.MONETIZATION_ON="dollar_sign_circle",l7.MONEY_FILL="dollar_sign_container",l7.MONEY_FILL_JPY="yen_sign_container",l7.MONEY_HEART="dollar_sign_heart",l7.MORE_HORIZ="overflow_horizontal",l7.MORE_VERT="overflow_vertical",l7.MUSIC="audio",l7.MUSIC_CAIRO="audio_cairo",l7.MUSIC_NOTE_SYMBOL="music",l7.MUSIC_SHUFFLE="arrow_shuffle",l7.MY_CHANNEL="person_circle",l7.MY_LOCATION="location_point",l7.NEWS_STORY="news",l7.NEXT="chevron_right",
l7.NOTIFICATIONS="bell",l7.NOTIFICATIONS_ACTIVE="bell_on",l7.NOTIFICATIONS_CAIRO="bell_cairo",l7.NOTIFICATIONS_DONE_CHECKMARK="check",l7.NOTIFICATIONS_INBOX="bell",l7.NOTIFICATIONS_NONE="bell",l7.NOTIFICATIONS_OFF="bell_off",l7.NOT_INTERESTED="slash_circle_left",l7.OFFICIAL_ARTIST_BADGE="audio",l7.OFFLINE_CLOUD="cloud_off",l7.OFFLINE_DOWNLOAD="download",l7.OFFLINE_DOWNLOAD_CAIRO="download_cairo",l7.OFFLINE_PAUSE="pause",l7.OPEN_IN_NEW="open_new",l7.OUTLINE_ADJUST="adjust",l7.OUTLINE_ARROW_SOLID_DOWN_16=
"arrow_solid_down",l7.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",l7.OUTLINE_BAG="bag",l7.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",l7.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",l7.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",l7.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",l7.PAID="dollar_sign",l7.PAUSE_OUTLINED="pause",l7.PAYMENT="credit_card",l7.PERSON_RADAR_FILLED="person_radar",l7.PHONE_DOWNLOAD="mobile_download",l7.PLAYABLES_LOGO="tic_tac_toe",l7.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",
l7.PLAYLISTS="list_play_arrow",l7.PLAYLISTS_CAIRO="list_play_arrow_cairo",l7.PLAYLIST_ADD=bG("list_add"),l7.PLAYLIST_ADD_CHECK=bG("list_check"),l7.PLAYLIST_PLAY="list_play_arrow",l7.PLAY_ALL="play_arrow",l7.PLAY_CIRCLE="play_arrow_circle",l7.PLAY_OUTLINED="play_arrow_circle",l7.PRIVACY_INFO="shield",l7.PRIVACY_PRIVATE="lock",l7.PRIVACY_PUBLIC="earth",l7.PRIVACY_UNLISTED="link",l7.PROMOTE="megaphone",l7.PURCHASES="price_tag",l7.PURCHASE_SUPER_CHAT="super_chat",l7.PURCHASE_SUPER_STICKER="super_sticker",
l7.QUESTION_ANSWER="message_bubble_question",l7.QUEUE_PLAY_LAST="list_queue_last",l7.QUEUE_PLAY_NEXT="list_play_arrow",l7.REMIX_FILLED="youtube_shorts_remix",l7.REMOVE="bar_circle",l7.REMOVE_CIRCLE="bar_circle",l7.REMOVE_CIRCLE_OUTLINE="bar_circle",l7.REMOVE_DONE="check_double_off",l7.REMOVE_FROM_HISTORY="bar_circle",l7.REMOVE_FROM_PLAYLIST="bar_circle",l7.REMOVE_MODERATOR="shield_off",l7.REPLAY="arrow_circle",l7.REPLAY_10="skip_back_10",l7.REPORT_PROBLEM="alert_triangle",l7.SAD="face_sad",l7.SAVE_PLAYLIST=
bG("library_add"),l7.SCHEDULE="clock",l7.SCHOOL="creator_academy",l7.SCREEN_FULLSCREEN="screen_full",l7.SEARCH_HISTORY="arrow_time",l7.SELL="price_tag",l7.SETTINGS="gear",l7.SETTINGS_CAIRO="gear_cairo",l7.SETTINGS_LIGHT="gear",l7.SETTINGS_MATERIAL="gear",l7.SHARE_ARROW="share",l7.SHIELD_WITH_AVATAR="person_shield",l7.SHOPPING_BAG="bag",l7.SHOPPING_BAG_CAIRO="bag_cairo",l7.SHOPPING_CART="cart",l7.SHORTS_COMMENT="youtube_shorts_message_bubble_right",l7.SHORTS_DISLIKE="youtube_shorts_thumb_down",l7.SHORTS_LIKE=
"youtube_shorts_thumb_up",l7.SHORTS_SHARE="youtube_shorts_share",l7.SHUFFLE="arrow_shuffle",l7.SLOW_MODE_OFF="message_bubble_left",l7.SOCIAL="people",l7.SORT="menu_sort",l7.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",l7.SPEED_1X="1x",l7.SPEED_1_POINT_2X="1_point_2x",l7.SPEED_1_POINT_5X="1_point_5x",l7.SPEED_1_POINT_8X="1_point_8x",l7.SPEED_2X="2x",l7.SPEED_POINT_2X="point_2x",l7.SPEED_POINT_8X="point_8x",l7.SPONSORSHIP_STAR=_.K("web_sponsorship_star_icon_killswitch")?"memberships":"star_circle",l7.STAFF_PICK=
"spotlight",l7.START_DVR="add",l7.STAR_BORDER="star",l7.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",l7.STICKER_EMOTICON="face_happy",l7.STOP_DVR="stop",l7.SUBSCRIBE="youtube_logo_icon",l7.SUBSCRIBE_PLUS="add_cairo",l7.SUBSCRIPTION_MANAGER="gear",l7.SUPERVISOR_ACCOUNT="people",l7.SUPER_CHAT_FOR_GOOD="hands_heart",l7.SWAP_HORIZ="arrow_swap_horizontal",l7.SWITCH_ACCOUNTS="person_account",l7.TAB_ACCOUNT="person",l7.TAB_ACTIVITY="bell",l7.TAB_BOOKMARK="bookmark",l7.TAB_EXPLORE="compass",l7.TAB_HOME=
"home",l7.TAB_HOME_CAIRO="home_cairo",l7.TAB_INBOX="mail",l7.TAB_LIKED="thumb_up",l7.TAB_MUSIC_PREMIUM="youtube_music",l7.TAB_SHORTS="youtube_shorts",l7.TAB_SHORTS_CAIRO="youtube_shorts_cairo",l7.TAB_SUBSCRIPTIONS="subscriptions",l7.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",l7.TAB_TRENDING="fire",l7.TIMER="stopwatch",l7.TRAILER="youtube_originals",l7.TRENDING="fire",l7.TRENDING_CAIRO="fire_cairo",l7.TRENDING_UP="rating_up",l7.TROPHY="trophy",l7.TROPHY_CELEBRATIONS="fireworks",l7.TUNE="adjust",
l7.UNBLOCK_USER="bar_circle",l7.UNLIMITED="youtube_logo_icon",l7.UNPLUGGED_LIVE_GUIDE="radar_live",l7.UNPLUGGED_SPORTS="eye_off",l7.UPLOADS="library",l7.UP_ARROW="arrow_up",l7.VERTICAL_ALIGN_BOTTOM="download",l7.VERY_HAPPY="face_very_happy",l7.VERY_SAD="face_very_sad",l7.VIDEOGAME_ASSET="gaming",l7.VIDEOS="play_arrow_circle",l7.VIDEO_CALL="video_camera_add",l7.VIDEO_LIBRARY_WHITE="library",l7.VIDEO_YOUTUBE="youtube_logo_icon",l7.VIEW_LIST="list_view",l7.VIEW_LIST_CAIRO="list_view_cairo",l7.VISIBILITY=
"eye",l7.VISIBILITY_OFF="eye_off",l7.VOLUME_MUTE="volume_off",l7.VOLUME_UP="volume_on",l7.WALLPAPER="image",l7.WARNING="alert_triangle",l7.WATCH_HISTORY="arrow_time",l7.WATCH_HISTORY_CAIRO="arrow_time_cairo",l7.WATCH_LATER="clock",l7.WATCH_LATER_CAIRO="clock_cairo",l7.WATCH_RELATED_MIX="youtube_mix",l7.WHAT_TO_WATCH="home",l7.YOUTUBE_MUSIC_MONOCHROME="youtube_music",l7.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",l7.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",l7.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16=
"youtube_shorts_no_triangle",l7.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",l7.YT_OUTLINE_MUSIC_24="music",l7);var fl={},hw8=(fl.ACCESS_TIME="clock",fl.ACCOUNT_BOX="person_square",fl.ACCOUNT_BOX_CAIRO="person_square",fl.ACCOUNT_CIRCLE="person_circle",fl.ACCOUNT_CIRCLE_CAIRO="person_circle",fl.ACCOUNT_LINKED="account_link",fl.ACCOUNT_UNLINKED="account_link",fl.ADD_CIRCLE="add_circle",fl.ADD_FRIEND="person_child",fl.ADD_TO_LIBRARY="bookmark",fl.ADD_TO_PLAYLIST="add",fl.ADD_TO_QUEUE_TAIL="queue",fl.ADD_TO_REMOTE_QUEUE="playlist_audio",fl.ADD_TO_WATCH_LATER="clock",fl.ADD_VIDEO_LINK="film_strip_add",fl.ADMIN_PANEL_SETTINGS=
"gear",fl.ALERT_WARN_RED="alert_triangle",fl.ALIGN_LEFT="text_align_left",fl.ARROWS_ALERT="arrow_split_alert",fl.ARROW_BACK="arrow_left",fl.ARROW_CIRCLE="arrow_counterclockwise",fl.ARROW_CIRCLE_PLAY="replay",fl.ARROW_CIRCLE_RIGHT="arrow_clockwise",fl.ARROW_DIAGONAL="arrow_up_left",fl.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",fl.ARROW_DROP_DOWN="triangle_down",fl.ARROW_DROP_UP="triangle_up",fl.ARROW_FORWARD="arrow_right",fl.ARROW_PAUSE="pause_history",fl.ARROW_UNDO="undo",fl.ARTICLE="text_page",fl.ARTICLE_ALERT=
"text_page_alert",fl.ARTICLE_CHECK="text_page_check",fl.ARTICLE_CLARIFY="text_page_info",fl.AUDIOTRACK="audio",fl.AUDIO_BADGE="audio_badge",fl.AUDIO_SURROUND="surround_sound",fl.AVATAR_ANONYMOUS="person_circle",fl.AVATAR_LOGGED_OUT="person_circle",fl.BACK="arrow_left",fl.BAR_CHART="chart_bar",fl.BAR_CIRCLE="minus_circle",fl.BAR_HORIZONTAL="minus",fl.BLOCK="circle_slash",fl.BLOCK_USER="circle_slash",fl.BOOKMARK_BORDER="bookmark",fl.BOX_OPEN_CHECK="quiz",fl.BOX_PENCIL="square_pencil",fl.BREAKING_NEWS_ALT_1=
"text_page_alert",fl.BROADCAST="podcast",fl.BROADCAST_CAIRO="podcast",fl.BUG_REPORT="bug",fl.CAMERA_ALT="camera",fl.CAMPAIGN="megaphone",fl.CANCEL="x_circle",fl.CAPTIONS="closed_captions",fl.CAST_ICON="chromecast",fl.CAST_OUTLINE="chromecast",fl.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",fl.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",fl.CHAT="text_bubble",fl.CHAT_BUBBLE="bubble",fl.CHECK_BOX="check_square",fl.CHECK_BOX_OUTLINE_BLANK="square",fl.CHECK_CIRCLE_FILLED="check_circle",fl.CHECK_CIRCLE_OUTLINE=
"check_circle",fl.CHECK_CIRCLE_THICK="check_circle",fl.CHECK_DOUBLE="check_done",fl.CHECK_DOUBLE_OFF="check_done_slash",fl.CHEVRON_LEFT="chevron_left",fl.CHEVRON_RIGHT="chevron_right",fl.CHEVRON_RIGHT_CAIRO="chevron_right",fl.CIRCLES_OVERLAP="account_link",fl.CLAPPERBOARD_CAIRO="clapperboard",fl.CLARIFY="text_page_info",fl.CLOCK_ARROWS="clock_split",fl.CLOCK_ARROWS_ALERT="clock_split_alert",fl.CLOSED_CAPTION="closed_captions",fl.CLOSED_CAPTION_SELECTED="closed_captions",fl.CLOSE="x",fl.CLOUD_UPLOAD=
"cloud_arrow_up",fl.COLLAPSE="chevron_up",fl.COLLAPSE_CAIRO="chevron_up",fl.COLLECTION="square3d_stack",fl.COLOR_LENS="paint_palette",fl.COMMENT="text_bubble",fl.CONSENT_SHIELD="person_shield",fl.CONTENT_CUT="scissors",fl.CONTENT_CUT_CAIRO="scissors",fl.COURSE="graduation_cap",fl.COURSE_CAIRO="graduation_cap",fl.CREATION_LIVE="live",fl.CREATION_POST="square_pencil",fl.CREATION_UPLOAD="video",fl.CREATION_UPLOAD_RED="upload",fl.CREATOR_ACADEMY="graduation_cap",fl.CREATOR_STUDIO="youtube_studio",fl.DARK_THEME=
"theme",fl.DELETE="trash_can",fl.DELETE_SWEEP="trash_can",fl.DESKTOP="laptop",fl.DISLIKE="thumb_down",fl.DISLIKE_SELECTED="thumb_down",fl.DISMISSAL="x",fl.DISMISS_QUEUE="playlist_x",fl.DOGFOOD="pawprint",fl.DOLLAR_SIGN="dollar_sign_circle",fl.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",fl.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",fl.DOWN_ARROW="arrow_down",fl.DO_NOT_DISTURB="circle_slash",fl.DRAFT="document",fl.EARTH="globe",fl.EDIT="pencil",fl.EMOJI="face_very_happy",fl.EMOJI_FLAGS="flag",fl.EMOJI_OBJECTS=
"lightbulb",fl.EMOJI_PEOPLE="face_very_happy",fl.EMOJI_RECENT="clock",fl.EMPTY_HEART="heart",fl.EMPTY_LIKE="thumb_up",fl.ERROR_BLACK="alert_circle",fl.ERROR_OUTLINE="alert_circle",fl.ERROR_WHITE="alert_circle",fl.EXIT_APP="arrow_in",fl.EXIT_TO_APP="arrow_in",fl.EXPAND="chevron_down",fl.EXPAND_ALL="chevron_expand",fl.EXPAND_CAIRO="chevron_down",fl.EXPAND_LESS="chevron_up",fl.EXPAND_MORE="chevron_down",fl.EXPLORE="compass",fl.EXPLORE_DESTINATION="compass",fl.EXTERNAL_LINK="arrow_up_right",fl.EYE_OFF=
"eye_slash",fl.FAB_UPLOAD="upload",fl.FACE_HAPPY_OUTLINE="face_happy",fl.FACE_MEH="face_neutral",fl.FACT_CHECK="text_page_check",fl.FASHION_LOGO="fashion",fl.FASHION_LOGO_CAIRO="fashion",fl.FAVORITE="thumb_up",fl.FEEDBACK="alert_bubble",fl.FEEDBACK_CAIRO="alert_bubble",fl.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",fl.FILL_ARROW_SOLID_UP_16="arrow_solid_up",fl.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",fl.FLAG_CAIRO="flag",fl.FLASH_OFF="flash_slash",fl.FLASH_ON="flash",fl.FULL_HEART="heart",fl.GAMING_LOGO=
"gaming",fl.GAMING_LOGO_CAIRO="gaming",fl.GO_TO_PAGE="arrow_right",fl.GROUPS="person3",fl.HAND_SWIPE_LEFT="gesture_swipe_left",fl.HAND_SWIPE_RIGHT="gesture_swipe_right",fl.HAPPY="face_happy",fl.HEALTH_AND_SAFETY="shield_health",fl.HEART_BOX="heart_cube",fl.HELP="help_circle",fl.HELP_CAIRO="help_circle",fl.HELP_OUTLINE="help_circle",fl.HIDE="circle_slash",fl.INCOGNITO_CAIRO="incognito",fl.INFINITY_ICON="infinity",fl.INFO="info_circle",fl.INFO_OUTLINE="info_circle",fl.INSERT_CHART_OUTLINED="chart_bar_square",
fl.INSERT_PHOTO="image",fl.KEEP="pin",fl.KEEP_OFF="pin_slash",fl.KEYBOARD="keyboard",fl.KEYBOARD_ARROW_DOWN="chevron_down",fl.KEYBOARD_ARROW_UP="chevron_up",fl.KIDS_BLOCK="circle_slash",fl.LANGUAGE="globe",fl.LAUNCH="arrow_up_right",fl.LEARNING="lightbulb",fl.LEARNING_CAIRO="lightbulb",fl.LIBRARY_ADD="bookmark",fl.LIBRARY_IMAGE="image_stack",fl.LIBRARY_MUSIC="audio_square_stack",fl.LIBRARY_OUTLINE="play_square_stack",fl.LIBRARY_REMOVE="bookmark",fl.LIBRARY_SAVED="check_square_stack",fl.LIKES_PLAYLIST=
"thumb_up",fl.LIKES_PLAYLIST_CAIRO="thumb_up",fl.LIKE="thumb_up",fl.LIKE_SELECTED="thumb_up",fl.LIST_QUEUE="queue",fl.LIVE_CAIRO="live",fl.LIVE_UNLISTED="link",fl.LOCATION_ON="location_pin",fl.LOCATION_PIN="location_pin",fl.LOCATION_POINT="location_pin",fl.LOOP="repeat",fl.LOOP_ACTIVE="repeat",fl.LOOP_ONE="repeat1",fl.LOOP_ONE_ACTIVE="repeat1",fl.MEET="google_meet",fl.MEH="face_neutral",fl.MEMBERSHIPS="memberships",fl.MEMBERS_ONLY_MODE_OFF="text_bubble",fl.MENU_FILTER="filter",fl.MESSAGE="text_bubble",
fl.MESSAGE_BUBBLE_GEAR="bubble_gear",fl.MESSAGE_BUBBLE_LEFT="text_bubble",fl.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",fl.MESSAGE_BUBBLE_OVERLAP="bubble_stack",fl.MESSAGE_BUBBLE_QUESTION="help_bubble",fl.MICROPHONE_ON="mic",fl.MONETIZATION_ON="dollar_sign_circle",fl.MONEY_FILL="dollar_sign_rectangle",fl.MONEY_FILL_JPY="yen_sign_rectangle",fl.MONEY_HAND="dollar_sign_circle_hand",fl.MONEY_HEART="dollar_sign_heart",fl.MOON_Z="sleep_timer",fl.MORE_HORIZ="overflow_horizontal",fl.MORE_VERT="overflow_vertical",
fl.MUSIC="audio",fl.MUSIC_CAIRO="audio",fl.MUSIC_EXPLICIT_BADGE="explicit",fl.MUSIC_NEW_RELEASE="audio_badge",fl.MUSIC_NOTE_SYMBOL="audio",fl.MUSIC_SCISSORS="audio_scissors",fl.MUSIC_SHUFFLE="shuffle",fl.MY_CHANNEL="person_circle",fl.MY_LOCATION="location_pin",fl.MY_VIDEOS="video",fl.MY_VIDEOS_CAIRO="video",fl.NEWS_CAIRO="news",fl.NEWS_STORY="news",fl.NEXT="chevron_right",fl.NOTE_ADD="bubble_pencil",fl.NOTIFICATIONS="bell",fl.NOTIFICATIONS_ACTIVE="bell_waves",fl.NOTIFICATIONS_CAIRO="bell",fl.NOTIFICATIONS_DONE_CHECKMARK=
"check",fl.NOTIFICATIONS_INBOX="bell",fl.NOTIFICATIONS_NONE="bell",fl.NOTIFICATIONS_OFF="bell_slash",fl.NOT_INTERESTED="circle_slash",fl.OFFICIAL_ARTIST_BADGE="audio",fl.OFFLINE_CLOUD="cloud_slash",fl.OFFLINE_DOWNLOAD="download",fl.OFFLINE_DOWNLOAD_CAIRO="download",fl.OFFLINE_PAUSE="pause",fl.OPEN_IN_NEW="arrow_up_right",fl.OUTLINE_ADJUST="adjust",fl.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",fl.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",fl.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",fl.OUTLINE_ARROW_SOLID_UP_16=
"arrow_solid_up",fl.OUTLINE_BAG="bag",fl.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",fl.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",fl.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",fl.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",fl.PAID="dollar_sign_circle",fl.PAUSE_OUTLINED="pause",fl.PAYMENT="credit_card",fl.PEOPLE="person_child",fl.PEOPLE_2="person2_rectangle",fl.PEOPLE_GROUP="person3",fl.PEOPLE_NOTE="bubble_asterisk",fl.PERSON_2="person2",fl.PERSON_ACCOUNT="person_square_stack",fl.PERSON_MINUS=
"person_x",fl.PERSON_MUSIC="person_audio",fl.PERSON_RADAR="person_waves",fl.PERSON_RADAR_FILLED="person_waves",fl.PERSON_SETTING="person_gear",fl.PHONE="phone",fl.PHONE_DOWNLOAD="mobile_arrow_down",fl.PICTURE_IN_PICTURE="picture_in_picture",fl.PLAYABLES_LOGO="playables",fl.PLAYABLES_LOGO_CAIRO="playables",fl.PLAYLISTS="playlist",fl.PLAYLISTS_CAIRO="playlist",fl.PLAYLIST_ADD_CHECK="bookmark",fl.PLAY_ALL="play",fl.PLAY_ARROW="play",fl.PLAY_ARROW_CIRCLE="play_circle",fl.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",
fl.PLAY_CIRCLE="play_circle",fl.PLAY_OUTLINED="play_circle",fl.PODCAST_ADD="podcast_add",fl.PODCAST_CHECK="podcast_check",fl.PRIVACY_INFO="shield_x",fl.PRIVACY_PRIVATE="lock",fl.PRIVACY_PUBLIC="globe",fl.PRIVACY_UNLISTED="link",fl.PROMOTE="megaphone",fl.PURCHASES="price_tag",fl.PURCHASE_SUPER_CHAT="super_chat",fl.PURCHASE_SUPER_STICKER="super_sticker",fl.QUESTION_ANSWER="help_bubble",fl.QUESTION_CIRCLE="help_circle",fl.QUEUE_PLAY_LAST="queue_last",fl.QUEUE_PLAY_NEXT="playlist",fl.QUOTATION_MARK="quote",
fl.RADAR_LIVE="live",fl.REMOVE="minus_circle",fl.REMOVE_CIRCLE="minus_circle",fl.REMOVE_CIRCLE_OUTLINE="minus_circle",fl.REMOVE_FROM_HISTORY="minus_circle",fl.REMOVE_FROM_PLAYLIST="minus_circle",fl.REPLAY="arrow_counterclockwise",fl.REPLAY_10="skip10_back",fl.REPLAY_ARROW="replay",fl.REPORT_PROBLEM="alert_triangle",fl.RSS_OFF="rss_slash",fl.SAD="face_sad",fl.SAVE_PLAYLIST="bookmark",fl.SCHEDULE="clock",fl.SCHOOL="graduation_cap",fl.SCREEN_DEFAULT="player_default",fl.SCREEN_FULLSCREEN="player_full_enter",
fl.SCREEN_LIGHT="ambient_mode",fl.SCREEN_ROTATION="rotate_portrait",fl.SCREEN_SWITCH="player_switch",fl.SEARCH_CAIRO="search",fl.SEARCH_HISTORY="history",fl.SELL="price_tag",fl.SETTINGS="gear",fl.SETTINGS_CAIRO="gear",fl.SETTINGS_LIGHT="gear",fl.SETTINGS_MATERIAL="gear",fl.SETTINGS_REMOTE="remote_waves",fl.SHARE="share",fl.SHARE_ARROW="share",fl.SHARE_CAIRO="share",fl.SHIELD="shield_x",fl.SHIELD_OFF="shield_slash",fl.SHIELD_WITH_AVATAR="person_shield",fl.SHOPPING_BAG="bag",fl.SHOPPING_BAG_CAIRO="bag",
fl.SHOPPING_CART="cart",fl.SHORTS_COMMENT="text_bubble",fl.SHORTS_DISLIKE="thumb_down",fl.SHORTS_LIKE="thumb_up",fl.SHORTS_SHARE="share",fl.SKIP_FORWARD_30="skip30_forward",fl.SLASH_CIRCLE_RIGHT="circle_slash",fl.SLOW_MODE_OFF="text_bubble",fl.SOCIAL="person_child",fl.SPARKLE="sparkles",fl.SPARK_IMAGE="image_spark",fl.SPARK_RADAR="spark_waves",fl.SPARK_VIDEO="video_spark",fl.SPEAKER_GROUP="speaker_stack",fl.SPEAKER_OFF="speaker_slash",fl.SPEED_1X="n1x",fl.SPEED_1_POINT_2X="n1point2x",fl.SPEED_1_POINT_5X=
"n1point5x",fl.SPEED_1_POINT_8X="n1point8x",fl.SPEED_2X="n2x",fl.SPONSORSHIP_STAR="memberships",fl.SPORTS="basketball",fl.SPOTLIGHT="spotlight",fl.STAFF_PICK="spotlight",fl.START_DVR="add",fl.STAR_BORDER="star",fl.STAR_HALF="star_half_filled",fl.STAR_SHOOTING="hype",fl.STICKER="sticker",fl.STICKER_EMOTICON="face_happy",fl.STOP_DVR="stop",fl.SUBSCRIBE="youtube",fl.SUBSCRIBE_PLUS="add",fl.SUBSCRIPTION_MANAGER="gear",fl.SUPERSTAR="super_star",fl.SUPERVISOR_ACCOUNT="person_child",fl.SWAP_HORIZ="arrow_swap_horizontal",
fl.SWITCH_ACCOUNTS="person_square_stack",fl.TAB_ACCOUNT="person",fl.TAB_ACTIVITY="bell",fl.TAB_BOOKMARK="bookmark",fl.TAB_EXPLORE="compass",fl.TAB_HOME="home",fl.TAB_HOME_CAIRO="home",fl.TAB_INBOX="mail",fl.TAB_LIKED="thumb_up",fl.TAB_MUSIC_PREMIUM="youtube_music",fl.TAB_SHORTS="shorts",fl.TAB_SHORTS_CAIRO="shorts",fl.TAB_SUBSCRIPTIONS="subscriptions",fl.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",fl.TAB_TRENDING="trending",fl.TARGET="target",fl.TARGET_ADD="target_add",fl.TEMPLATE_ADD="template_add",
fl.TEXT="font",fl.TIMER="stopwatch",fl.TRENDING_CAIRO="trending",fl.TRENDING_UP="arrow_trend_up",fl.TROPHY_CAIRO="trophy",fl.TROPHY_CELEBRATIONS="fireworks",fl.TROPHY_STAR="star_trophy",fl.TUNE="adjust",fl.TV_OFF="tv_slash",fl.UNBLOCK_USER="minus_circle",fl.UNFAVORITE="thumb_down",fl.UNLIMITED="youtube",fl.UNPLUGGED_LIVE_GUIDE="live",fl.UNPLUGGED_SPORTS="eye_slash",fl.UPLOADS="play_square_stack",fl.UP_ARROW="arrow_up",fl.VERTICAL_ALIGN_BOTTOM="chevron_down_end",fl.VERTICAL_ALIGN_TOP="chevron_up_end",
fl.VERY_HAPPY="face_very_happy",fl.VERY_SAD="face_very_sad",fl.VIDEOS="play_circle",fl.VIDEO_CALL="video_camera_add",fl.VIDEO_LIBRARY_WHITE="play_square_stack",fl.VIDEO_QUALITY_4K="n4k",fl.VIDEO_QUALITY_8K="n8k",fl.VIDEO_YOUTUBE="youtube",fl.VIEW_LIST_CAIRO="view_list",fl.VIEW_MODULE="view_column3_row2",fl.VISIBILITY="eye",fl.VISIBILITY_OFF="eye_slash",fl.VOLUME_DOWN="volume_min",fl.VOLUME_MUTE="volume_mute",fl.VOLUME_OFF="volume_mute",fl.VOLUME_STABLE="stable_volume",fl.VOLUME_UP="volume_max",fl.WALLPAPER=
"image",fl.WARNING="alert_triangle",fl.WATCH_HISTORY="history",fl.WATCH_HISTORY_CAIRO="history",fl.WATCH_LATER="clock",fl.WATCH_LATER_CAIRO="clock",fl.WATCH_RELATED_MIX="mix",fl.WHAT_TO_WATCH="home",fl.YOUTUBE_LINKED_TV="tv_mobile",fl.YOUTUBE_MUSIC_MONOCHROME="youtube_music",fl.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",fl.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",fl.YOUTUBE_SHORTS_ARROW_UP="arrow_up",fl.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",fl.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16=
"shorts_empty",fl.YOUTUBE_SHORTS_OUTLINE_24="shorts",fl);var T2N={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,2,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:[[0,3,24],[1,3,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]],person_waveform:[[1,2,24]],phone:[[0,2,24],[1,2,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,6,12],[0,6,24],[1,6,16],[1,6,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,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,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,11,24],[1,11,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_check:[[1,
1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,
1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,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]],waveform_spark:[[1,2,24]],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 FH8={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,6,24],[1,6,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,
2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,2,24],[1,2,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,6,24],[1,6,24]],pin_slash:[[0,1,24],[1,1,24]],play:[[0,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_alt:[[1,1,24]],player_full_enter_portrait:[[1,1,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,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,12,24],[1,12,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,3,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]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[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,2,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 VgN={LIKE_DELHI_PLAYER:"LIKE",DISLIKE_DELHI_PLAYER:"DISLIKE",SHARE_DELHI_PLAYER:"SHARE",COMMENT_DELHI_PLAYER:"COMMENT",MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER:"MESSAGE_BUBBLE_OVERLAP",VOLUME_UP_DELHI_PLAYER_FILLED:"VOLUME_MAX",VOLUME_OFF_DELHI_PLAYER:"VOLUME_MUTE",VOLUME_DOWN_DELHI_PLAYER_FILLED:"VOLUME_MIN",CLOSED_CAPTION_DELHI_PLAYER:"CAPTIONS",CLOSED_CAPTION_DELHI_PLAYER_FILLED:"CAPTIONS",PLAYER_FULL_ENTER_ALT:"PLAYER_FULL_ENTER_ALT",PLAYER_FULL_EXIT_ALT:"PLAYER_FULL_EXIT_ALT",PAUSE_DELHI_PLAYER_FILLED:"PAUSE",
PLAY_ARROW_DELHI_PLAYER_FILLED:"PLAY_ARROW"},oB=function(f){this.iconUrlProvider=f};
oB.prototype.resolveIcon=function(f,S){var B=VgN[f.iconName.toUpperCase()];B&&(f.iconName=B);var G=f.iconName;G=G.replace(/-/g,"_");f=Object.assign({},f,{iconName:this.mapIconTypeToStandardName(G,!!B)||G.toLowerCase()});if(_.K("enable_web_delhi_icons")||B){var g;return Q9j(FH8,f,((g=this.iconUrlProvider)==null?void 0:g.getYtStandardUrl)||j9T,S)}var b;return Q9j(T2N,f,((b=this.iconUrlProvider)==null?void 0:b.getYtStandardUrl)||rbA,S)};
oB.prototype.mapIconTypeToStandardName=function(f,S){return _.K("enable_web_delhi_icons")||S?hw8[f.toUpperCase()]:wAN[f.toUpperCase()]};
oB[oN]=[_.fN(zwj)];var JQv=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),P9m=function(f){this.urlProvider=this.iconUrlProvider=f};
_.q(P9m,oB);
P9m.prototype.resolveIcon=function(f,S){f.iconName==="youtube_logo"&&(f.iconName="yt-logo-updated");if(f.iconName==="youtube_premium_logo"||f.iconName==="youtube_red_logo")f.iconName="yt-logo-red-updated";var B=Object.assign({},f);f.iconName==="menu"&&(_.K("enable_web_delhi_icons")||(B.iconName="bars_3"),B.iconStyle="youtube_outline");f.iconSetName==="socialNetworksRound"&&(f.iconName==="mail"&&(B.iconName="email"),f.iconName==="embed"&&(B.iconSize=60));f.iconName==="more"&&(B.iconName="overflow_horizontal");
f.iconName==="fullscreen"&&(B.iconName="screen_full");f.iconName==="premium_standalone"&&(B.iconName="premium_standalone_cairo");_.K("enable_connect_icon_update_web")&&f.iconName==="account_linked"&&(B.iconName="circles_overlap_check",B.iconStyle="youtube_fill");_.K("enable_connect_icon_update_web")&&f.iconName==="account_unlinked"&&(B.iconName="circles_overlap",B.iconStyle="youtube_outline");JQv.has(f.iconName)&&(B.iconStyle="youtube_fill");_.K("enable_web_delhi_icons")&&f.iconName==="playlist_add"&&
(B.iconName="bookmark");f=Object.assign({},B,{iconName:(oB.prototype.mapIconTypeToStandardName.call(this,B.iconName)||B.iconName).toLowerCase()});var G;return(f=Q9j(bBm,f,((G=this.urlProvider)==null?void 0:G.getUrl)||O7N,S))?f:oB.prototype.resolveIcon.call(this,B,S)};
P9m[oN]=[_.fN(zwj)];_.v16=1;var SK=function(){};
_.q(SK,IC);SK.prototype.resolveCommand=function(f){var S,B;return _.R(function(G){S=_.H(f,YyN);if(!S)return G.return();B=Number(S.enableDelayedPacfLoggingTvMs);if(isNaN(B)){var g=Xf();N76(g,S,0)}else N76(Xf(),S,B);_.TT(G)})};_.BM=function(){};
_.q(_.BM,IC);
_.BM.prototype.resolveCommand=function(f,S){var B=this,G,g,b,z,X,w,F;return _.R(function(V){G=_.H(f,r96);b=(g=S.form)==null?void 0:g.element;X=(z=b)==null?void 0:z.closest("ytd-enforcement-message-view-model");if(!G||!X)return V.return();B.allowAdsAction||(w=G.fundingChoiceInstructionPageUrl,B.allowAdsAction=new lMm(window,_.E4(w)));var J=B.allowAdsAction;J.wallElement=X;J.allowAdsPopup.style.setProperty("display","flex","important");var P=J.scrollManager;P.originalBodyOverflow=P.JSC$8044_domHelper.JSC$7371_document_.body.style.overflow;P.JSC$8044_domHelper.JSC$7371_document_.body.style.overflow=
"hidden";J.wallElement.style.setProperty("display","none","important");XdX(J.accessibilityManager,J.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((F=B.allowAdsAction.allowAdsPopup)&&F instanceof HTMLElement)for(J=_.m(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),P=J.next();!P.done;P=J.next()){var d=_.m(P.value);P=d.next().value;d=d.next().value;F.style.setProperty(P,d)}_.TT(V)})};
_.BM.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var GU=function(){};
_.q(GU,IC);GU.prototype.resolveCommand=function(f){var S;return _.R(function(B){S=_.H(f,CHL);if(!S)return B.return();J6W(f);_.TT(B)})};var go=function(f){this.JSC$15135_commandHandler=f};
_.q(go,IC);
go.prototype.resolveCommand=function(f){var S=this,B,G,g,b,z,X,w,F;return _.R(function(V){if(V.nextAddress==1){B=_.H(f,wyL);if((G=B)==null||!G.text||!navigator.clipboard)return V.return();_.zT(V,2);return _.h(V,navigator.clipboard.writeText(B.text),4)}if(V.nextAddress!=2){if(!B.successActions||B.successActions.length===0)return V.return();g=_.m(B.successActions);for(b=g.next();!b.done;b=g.next())z=b.value,S.JSC$15135_commandHandler.resolveCommand(z);return _.CN(V,0)}_.hm(V);if(!B.failureActions||B.failureActions.length===
0)return V.return();X=_.m(B.failureActions);for(w=X.next();!w.done;w=X.next())F=w.value,S.JSC$15135_commandHandler.resolveCommand(F);_.TT(V)})};
go[oN]=[_.S7];var eK=function(f){this.JSC$15139_commandHandler=f};
_.q(eK,IC);
eK.prototype.resolveCommand=function(f,S){var B=this,G,g,b,z,X,w,F,V,J,P;return _.R(function(d){switch(d.nextAddress){case 1:G=_.H(f,uYm);if(!G)return d.return();_.zT(d,2);if(!G.imageBytes&&!G.imageUrl)throw Error("xi");if(!G.imageUrl){if(G.imageBytes){b=G.imageBytes;z=b.replace(/-/g,"+").replace(/_/g,"/");var Q=LP9(z);g=_.Ho(Q)}d.jumpTo(4);break}return _.h(d,fetch(G.imageUrl),5);case 5:return X=d.yieldResult,_.h(d,X.blob(),6);case 6:w=d.yieldResult,g=_.Ho(w);case 4:J=(F=S)==null?void 0:(V=F.form)==
null?void 0:V.element;P=document.createElement("a");Y6(P,g);J.appendChild(P);P.download="";P.click();J.removeChild(P);URL.revokeObjectURL(_.Ve(g));G.successCommand&&B.JSC$15139_commandHandler.resolveCommand(G.successCommand);_.CN(d,0);break;case 2:_.hm(d),G.errorCommand&&B.JSC$15139_commandHandler.resolveCommand(G.errorCommand),_.TT(d)}})};
eK[oN]=[_.S7];var bj=function(f){this.store=f};
_.q(bj,IC);bj.prototype.resolveCommand=function(f){var S=this,B,G,g;return _.R(function(b){G=(B=_.H(f,_.$FX))==null?void 0:B.entityBatchUpdate;if(!G)return b.jumpTo(0);g=Object.assign({},G,{mutations:[].concat(_.$d(G.mutations||[]))});return _.h(b,_.JR(g,S.store),0)})};var KH6=function(f){this.JSC$15146_commandHandler=f;this.feedbackDialogMap=new Map};
KH6.prototype.openDialog=function(f,S){(f=this.feedbackDialogMap.get(f))&&this.JSC$15146_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:f}},S)};
KH6[oN]=[_.S7];var mt=new _.Sn("FEEDBACK_CONTROLLER_TOKEN");var zU=new _.Sn("APP_STORE_TOKEN");var RB=function(f,S){this.store=f;this.controller=S};
_.q(RB,IC);RB.prototype.resolveCommand=function(f,S){var B=this,G,g,b,z,X,w,F,V,J,P,d,Q,x,E,U,A,t;return _.R(function(M){if(M.nextAddress==1){G=_.H(f,_.IQ);if(b=(g=G)==null?void 0:g.contentId)for(X=_.m(((z=G)==null?void 0:z.actions)||[]),w=X.next();!w.done;w=X.next())F=w.value,dO$(B,F,b);P=(V=S)==null?void 0:(J=V.form)==null?void 0:J.element;return _.h(M,_.RD(P,[f]).catch(function(){}),2)}d=M.yieldResult;
((Q=d)==null?0:(x=Q.data)==null?0:(E=x.feedbackResponses)==null?0:E.length)&&(A=(U=d.data.feedbackResponses[0])==null?void 0:U.followUpDialog)&&b&&(t=B.controller)!=null&&t.feedbackDialogMap.set(b,A);_.TT(M)})};
var dO$=function(f,S,B){var G=_.H(S,_.hf);if(G){G=_.m(G.commands||[]);for(var g=G.next();!g.done;g=G.next())dO$(f,g.value,B)}_.H(S,_.$f)&&f.store.dispatch(_.KF("commandEntity",Exs(B),{key:B,command:S}));_.H(S,$_j)&&f.store.dispatch(_.KF("commandEntity",Exs(B),{key:B,command:S}))};
RB[oN]=[zU,mt];var Xp=function(f){this.controller=f};
_.q(Xp,IC);Xp.prototype.resolveCommand=function(f,S){var B=this,G,g,b,z;return _.R(function(X){G=_.H(f,_.UU);b=(g=G)==null?void 0:g.targetId;if(((z=G)==null?void 0:z.signal)!=="TELL_US_WHY"||!b)return X.return();B.controller.openDialog(b,S);_.TT(X)})};
Xp[oN]=[mt];var wo=function(f){this.store=f};
_.q(wo,IC);wo.prototype.resolveCommand=function(f,S){var B=this,G,g,b,z,X,w,F;return _.R(function(V){G=_.H(f,BBM);b=(g=G)==null?void 0:g.contentId;w=(z=S)==null?void 0:(X=z.form)==null?void 0:X.element;F=_.RD(w,[f]);b&&B.undo(b);return _.h(V,F,0)})};
wo.prototype.undo=function(f){this.store.dispatch(_.KF("commandEntity",Exs(f),{key:f,command:void 0}))};
wo[oN]=[zU];var hU=function(f){this.JSC$15161_commandHandler=f};
_.q(hU,IC);hU.prototype.resolveCommand=function(f){var S=this,B,G,g,b,z,X,w,F;return _.R(function(V){B=_.H(f,pqi);G=B.flowStateKey;g=B.validationFailureCommand;b=B.submitValidFormCommand;z=yg(_.eO,[G||""]);X=_.H(z,N87);((w=X)==null?0:w.isValid)&&b&&S.JSC$15161_commandHandler.resolveCommand(b);((F=X)==null?0:F.isValid)||!g||S.JSC$15161_commandHandler.resolveCommand(g);_.TT(V)})};
hU[oN]=[_.S7];var TU=function(f){this.innertubeTransportService=f};
_.q(TU,IC);TU.prototype.resolveCommand=function(f,S){var B=this,G;return _.R(function(g){return _.h(g,_.uF(B.innertubeTransportService,f,(G=S)==null?void 0:G.form).then(function(b){var z,X;S==null||(z=S.commandController)==null||(X=z.onSuccess)==null||X.call(z,f,b)},function(b){var z,X;
S==null||(z=S.commandController)==null||(X=z.onServerError)==null||X.call(z,f,b)}),0)})};
TU[oN]=[_.DU];var Fp=function(){};
_.q(Fp,IC);Fp.prototype.resolveCommand=function(f){var S,B,G,g;return _.R(function(b){if(S=_.H(f,_.lS1)){if(B=S.gtmId)G=_.nL("GL",""),_.Oj(B,G);(g=S.gtmData)&&_.xk(g)}_.TT(b)})};var Vc=function(f,S){this.innertubeTransportService=f;this.JSC$15172_actionRouter=S};
_.q(Vc,IC);Vc.prototype.resolveCommand=function(f){var S=this,B,G;return _.R(function(g){B=_.H(f,aWN);if(!B)return g.return();G=B.command;if(!G)return g.return();S.JSC$15172_actionRouter.triggerAction("yt-insert-rich-section-action",B);return _.h(g,_.uF(S.innertubeTransportService,G,{disableCache:!0}),0)})};
Vc[oN]=[_.DU,le];nI1.bind(null,Uw);var iB6=nI1.bind(null,b67);DgT.bind(null,Uw);var HB8=DgT.bind(null,b67);UgQ.bind(null,Uw);var qON=UgQ.bind(null,b67);var JU=function(){};
_.q(JU,IC);
JU.prototype.resolveCommand=function(f){var S,B,G,g,b,z,X,w,F,V;return _.R(function(J){S=_.H(f,$aN);if(!S)return J.return();G=((B=S.operations)==null?void 0:B.operations)||[];g=_.m(G);for(b=g.next();!b.done;b=g.next())if(z=b.value,z.insertItemSectionContent){var P=z.insertItemSectionContent,d=P.contents||[];P.insertByPositionInSection?iB6(P.insertByPositionInSection.sectionTargetId,d,P.insertByPositionInSection.position):P.insertByRelativePositionInSection&&P.insertByRelativePositionInSection.sectionTargetId&&P.insertByRelativePositionInSection.itemTargetId&&
HB8(P.insertByRelativePositionInSection.sectionTargetId,P.insertByRelativePositionInSection.itemTargetId,d,P.insertByRelativePositionInSection.relativePosition)}else z.replaceSection?(P=z.replaceSection,d={},P.replaceByTargetId?d=P.replaceByTargetId:P.replaceByGroupId&&(d={targetId:P.replaceByGroupId.groupId,newContent:P.replaceByGroupId.newContent,undoKey:""}),d.newContent&&RTL(d.targetId,{continuationItems:[d.newContent]})):z.removeItem?(P=z.removeItem,P.removeByTargetId&&P.sectionTargetId&&qON(P.sectionTargetId,
P.removeByTargetId.targetIds||[])):z.removeSection&&(z.removeSection.removeByTargetId?(X=void 0,$O7(((X=z.removeSection)==null?void 0:X.removeByTargetId.targetIds)||[])):z.removeSection.removeByGroupId&&(w=void 0,$O7(((w=z.removeSection)==null?void 0:w.removeByGroupId.groupIds)||[])));V=((F=S.operations)==null?void 0:F.scrollConfig)||{};Qpm(V);_.TT(J)})};
var $O7=function(f){f=_.m(f);for(var S=f.next();!S.done;S=f.next())RTL(S.value,{continuationItems:[]})},Qpm=function(f){if(f.scrollToItem){var S=f.scrollToItem.item||{},B=S.itemTargetId;
S=S.sectionTargetId;if(B&&S){var G=document.querySelector("[data-target-id="+S+"]"),g=G==null?void 0:G.querySelector("[data-target-id="+B+"]");G&&g&&setTimeout(function(){var b=g.offsetTop-G.offsetTop,z;if(((z=f.scrollToItem)==null?void 0:z.scrollPosition)==="SCROLL_POSITION_CENTER")b-=G.offsetHeight/2,b+=g.offsetHeight/2;else{var X;((X=f.scrollToItem)==null?void 0:X.scrollPosition)==="SCROLL_POSITION_END"&&(b-=G.offsetHeight,b+=g.offsetHeight)}G.scroll({top:b,behavior:"smooth"})},100)}}};var PM=new _.Sn("CLIENT_NAME_TOKEN");var YOm=new _.Sn("DEFAULT_STORE_EXPIRATION_TOKEN");var Tq9=new _.Sn("CLIENT_LOCATION_SERVICE_TOKEN");var vM=function(f,S,B){this.clientName=f||_.nL("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=S||_.kG.getInstance();this.JSC$15200_commandHandler=B||_.JZ.instance};
_.q(vM,IC);vM.prototype.resolveCommand=function(f){var S=this,B,G;return _.R(function(g){G=(B=_.H(f,L56))==null?void 0:B.onComplete;S.clientLocationService.clearLocationPlayabilityToken(S.clientName);G&&S.JSC$15200_commandHandler.resolveCommand(G);_.TT(g)})};
vM[oN]=[PM,Tq9,_.S7];var Kl=function(f){this.innertubeTransportService=f};
_.q(Kl,IC);Kl.prototype.resolveCommand=function(f,S){var B=this,G,g,b,z;return _.R(function(X){b=(G=S)==null?void 0:(g=G.form)==null?void 0:g.element;return _.h(X,_.uF(B.innertubeTransportService,f,(z=S)==null?void 0:z.form).then(function(w){$hG(b,new CustomEvent("yt-service-request-completed"),{data:w},_.nL("openPopupConfig"))}),0)})};
Kl[oN]=[_.DU];var ij=function(){};
_.q(ij,IC);ij.prototype.resolveCommand=function(f){var S,B;return _.R(function(G){S=_.H(f,uam);B=document.querySelector("mini-app-container-view-model");if(!S||!B)return G.return();S.isPlaying?B.dispatchEvent(new Event("play")):B.dispatchEvent(new Event("pause"));_.TT(G)})};var HM=function(){};
_.q(HM,IC);HM.prototype.resolveCommand=function(f){var S,B,G,g,b,z,X;return _.R(function(w){S=_.H(f,tRo);if((B=S)==null||!B.paramKeys)return w.return();G=S.paramKeys;g=_.NR(window.location.href);b=_.m(G);for(z=b.next();!z.done;z=b.next())X=z.value,g.JSC$8076_queryData_.remove(X);window.history.replaceState(window.history.state,document.title,g.toString());_.TT(w)})};var rQm=function(){this.dropdownMap=new Map};_.jp1=new _.Sn("DROPDOWN_CONTROLLER_TOKEN");var qh=function(f){this.controller=f};
_.q(qh,IC);qh.prototype.resolveCommand=function(f){var S=this,B,G,g,b;return _.R(function(z){B=_.H(f,QRj);if(!B)return z.return();G=B;g=G.dropdownId;b=G.selectedOptionIndex;if(g===void 0||b===void 0)return z.return();var X=S.controller.dropdownMap.get(g);X&&X(b);_.TT(z)})};
qh[oN]=[_.jp1];var $s=function(f){this.controller=f};
_.q($s,IC);$s.prototype.resolveCommand=function(f){var S=this,B;return _.R(function(G){return(B=_.H(f,pEg))?_.h(G,S.controller.closeDialog(),0):G.return()})};
$s[oN]=[_.qj];var Qc=function(f){this.controller=f};
_.q(Qc,IC);Qc.prototype.resolveCommand=function(f){var S=this,B,G;return _.R(function(g){B=_.H(f,qEm);if(!B)return g.return();var b,z=B.panelIdentifier||((b=B.identifier)==null?void 0:b.tag);if(!z)throw Error("yi");return(G=z)?_.h(g,S.controller.hidePanel(G),0):g.jumpTo(0)})};
Qc[oN]=[_.ir];var Ys=function(f,S){this.innertubeTransportService=f;this.controller=S};
_.q(Ys,IC);Ys.prototype.resolveCommand=function(f){var S=this,B,G,g,b;return _.R(function(z){if(z.nextAddress==1)return B=_.H(f,$im),(G=B)!=null&&G.panelId?_.h(z,S.controller.getReloadContinuation(B.panelId),2):z.return();if(z.nextAddress!=3)return(g=z.yieldResult)?_.h(z,_.uF(S.innertubeTransportService,f,{continuation:g}),3):z.return();b=z.yieldResult;return _.h(z,S.controller.updatePanel(B.panelId,b.content,!1),0)})};
Ys[oN]=[_.DU,_.ir];var ro=function(f,S,B){this.innertubeTransportService=f;this.JSC$15236_screenManager=S;this.JSC$15236_commandHandler=B};
_.q(ro,IC);
ro.prototype.resolveCommand=function(f){var S=this,B,G,g,b,z,X;return _.R(function(w){if(w.nextAddress==1){B=_.H(f,_.Fn7);if(!B)return w.return();if(B.commands)for(G=_.m(B.commands),g=G.next();!g.done;g=G.next())b=g.value,S.JSC$15236_commandHandler.resolveCommand(b,{disableClickTracking:!0});z=_.Ye(f.clickTrackingParams);_.Rh(S.JSC$15236_screenManager,21760,z,{layer:7,parentLayer:0});return _.h(w,_.uF(S.innertubeTransportService,f),2)}X=w.yieldResult;if(!X)return w.return();S.JSC$15236_screenManager.graftServerVe(X.trackingParams,z,
7);_.TT(w)})};
ro[oN]=[_.DU,_.Qz,_.S7];var jK=new _.Sn("PANEL_LOADING_STRATEGY_TOKEN");var OB=function(f,S){this.controller=f;this.panelLoadingStrategy=S};
_.q(OB,IC);
OB.prototype.resolveCommand=function(f,S){var B=this,G,g,b;return _.R(function(z){G=_.H(f,zG7);if((g=G)==null||!g.panelLoadingStrategy)return z.return();b=function(X){var w,F,V,J,P,d,Q,x,E;return _.R(function(U){F=_.H((w=X.dialogViewModel)==null?void 0:w.header,Y26);V={viewModel:X.dialogViewModel};J={};if(Q=_.K("web_enable_dialog_header_label")?(P=F)==null?void 0:(d=P.headline)==null?void 0:d.content:void 0)J.ariaLabel=Q;G.dismissOnBackgroundTap===!1&&(J.isModal=!0);return X.dialogViewModel?_.h(U,
B.controller.openDialog(V,(x=S)==null?void 0:(E=x.form)==null?void 0:E.element,J),0):U.return()})};
return _.h(z,B.panelLoadingStrategy.execute({command:f,data:G.panelLoadingStrategy,renderFn:b,createScreenConfig:{layer:4}}),0)})};
OB[oN]=[_.qj,jK];var xs=function(f,S,B){this.innertubeTransportService=f;this.controller=S;this.JSC$15256_screenManager=B};
_.q(xs,IC);
xs.prototype.resolveCommand=function(f,S){var B=this,G,g,b,z,X,w,F,V,J,P,d,Q;return _.R(function(x){switch(x.nextAddress){case 1:G=_.H(f,_.DW);if(!G)return x.return();var E,U=G.panelIdentifier||((E=G.identifier)==null?void 0:E.tag);if(!U)throw Error("yi");g=U;return _.h(x,B.controller.isVisible(g,!0),2);case 2:if((b=x.yieldResult)&&G.blockIfPanelOpen)return x.return();w=(X=(z=B.controller).getPanelContent)==null?void 0:X.call(z,g);if(!(E=w))if(G){var A;E=((A=G.globalConfiguration)==null?void 0:A.initialState)||
G.engagementPanel;if(A=!E)A=!!(G==null?0:(U=G.engagementPanelPresentationConfigs)==null?0:U.engagementPanelPopupPresentationConfig);A&&(E=_.CI9(G.panelIdentifier,G.identifier))}else E=void 0;F=E;V=G.engagementPanelPresentationConfigs;J=G.engagementPanelExtras;return _.h(x,B.controller.showPanel(g,F,V,J,(P=S)==null?void 0:(d=P.form)==null?void 0:d.element),3);case 3:if(!G.globalConfiguration){x.jumpTo(0);break}_.Rh(B.JSC$15256_screenManager,32633);return _.h(x,_.uF(B.innertubeTransportService,f),5);
case 5:return Q=x.yieldResult,B.JSC$15256_screenManager.graftServerVe(Q.trackingParams),_.h(x,B.controller.updatePanel(g,Q.content,!0,J,void 0,Q.updatePanelContinuationData),0)}})};
xs[oN]=[_.DU,_.ir,_.Qz];var EB=function(f,S){this.controller=f;this.panelLoadingStrategy=S};
_.q(EB,IC);EB.prototype.resolveCommand=function(f,S){var B=this,G,g,b,z,X,w;return _.R(function(F){G=_.H(f,_.db);if((g=G)==null||!g.panelLoadingStrategy)return F.return();X=OBj(B.controller,(b=S)==null?void 0:(z=b.form)==null?void 0:z.element);w=function(V){return _.R(function(J){return V.sheetViewModel?_.h(J,B.controller.openSheet({viewModel:V.sheetViewModel},X),0):J.return()})};
return _.h(F,B.panelLoadingStrategy.execute({command:f,data:G.panelLoadingStrategy,renderFn:w,createScreenConfig:{layer:0}}),0)})};
EB[oN]=[_.H0,jK];var Ll=function(f,S){this.controller=f;this.JSC$15264_commandHandler=S};
_.q(Ll,IC);Ll.prototype.resolveCommand=function(f,S){var B=this,G,g,b;return _.R(function(z){if(z.nextAddress==1){G=_.H(f,jI$);var X=_.H(G.showCommand,_.DW),w,F,V=(F=X==null?void 0:X.panelIdentifier)!=null?F:X==null?void 0:(w=X.identifier)==null?void 0:w.tag;if(!V)throw Error("zi");g=V;return _.h(z,B.controller.isVisible(g),2)}return(b=z.yieldResult)?_.h(z,B.controller.hidePanel(g),0):_.h(z,B.JSC$15264_commandHandler.resolveCommand(G.showCommand,S),0)})};
Ll[oN]=[_.ir,_.S7];var ks=function(f,S,B){this.innertubeTransportService=f;this.controller=S;this.JSC$15267_screenManager=B};
_.q(ks,IC);
ks.prototype.resolveCommand=function(f){var S=this,B,G,g,b,z,X,w,F,V,J,P,d,Q,x,E,U,A,t,M,a,l,mx;return _.R(function(zj){switch(zj.nextAddress){case 1:return G=B=_.H(f,OTo),g=G.targetPanelIdentifier,b=G.contentSourcePanelIdentifier,z=G.globalConfiguration,((X=g)==null?0:X.tag)&&((w=b)==null?0:w.tag)?z?_.h(zj,S.controller.showPanel(g.tag,_.CI9(g.tag,g),void 0,void 0,void 0),5):_.h(zj,(P=(J=S.controller).getPanel)==null?void 0:P.call(J,b.tag),4):zj.return();case 4:d=zj.yieldResult;F=(Q=d)==null?void 0:
(E=(x=Q).getPanelContent)==null?void 0:E.call(x);zj.jumpTo(3);break;case 5:return _.h(zj,_.uF(S.innertubeTransportService,f),6);case 6:U=zj.yieldResult,((A=U)==null?0:A.trackingParams)&&S.JSC$15267_screenManager.graftServerVe(U.trackingParams),F=(t=U)==null?void 0:t.content,V=(M=U)==null?void 0:M.updatePanelContinuationData;case 3:if(l=(a=F)==null?void 0:a.engagementPanelSectionListRenderer)return _.h(zj,S.controller.showPanel(g.tag,void 0,void 0,void 0,void 0,{content:l.content,secondaryHeaderContent:(mx=
l.header)!=null?mx:{},targetId:l.targetId},V),0);zj.jumpTo(0)}})};
ks[oN]=[_.DU,_.ir,_.Qz];var nl=function(f){this.JSC$15274_commandHandler=f};
_.q(nl,IC);
nl.prototype.resolveCommand=function(f){var S=this,B,G,g,b,z,X;return _.R(function(w){if(w.nextAddress==1)return(B=_.H(f,UM8))?_.h(w,_.wb(),2):w.return();G=w.yieldResult;if(!G)return w.return();var F=G,V=(g=B)==null?void 0:g.languageCode,J=(b=B)==null?void 0:b.isAutoTranslated;F.getVideoData&&_.Abx(F).length&&((V=MMW(F,V,J))?F.setOption("captions","track",V):(F.setOption("captions","stickyLoading",{}),F.setOption("captions","track",{})));z=G.isSubtitlesOn()?_.Jf("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.Jf("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");X=_.oe(z);S.JSC$15274_commandHandler.resolveCommand(X);_.TT(w)})};
nl[oN]=[_.S7];var sB=function(f,S){this.shortsPlayerPromise=f;this.JSC$15278_commandHandler=S};
_.q(sB,IC);
sB.prototype.resolveCommand=function(f){var S=this,B,G,g,b,z,X,w,F;return _.R(function(V){if(V.nextAddress==1)return(B=_.H(f,BFi))?_.h(V,S.shortsPlayerPromise,2):V.return();G=V.yieldResult;var J=Z71(G);J!=null&&J.length||(G.loadModule("captions"),J=Z71(G));g=J;if((b=g)==null||!b.length)return z=_.Jf("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),X=_.oe(z),S.JSC$15278_commandHandler.resolveCommand(X),V.return();G.toggleSubtitles();w=G.isSubtitlesOn()?_.Jf("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.Jf("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");F=_.oe(w);S.JSC$15278_commandHandler.resolveCommand(F);_.TT(V)})};
sB[oN]=[_.Al7,_.S7];var D_=function(f){this.JSC$15281_playerPromise=f};
_.q(D_,IC);D_.prototype.resolveCommand=function(f){var S=this,B,G,g,b;return _.R(function(z){if(z.nextAddress==1)return(B=_.H(f,YE$))?_.h(z,S.JSC$15281_playerPromise,2):z.return();G=z.yieldResult;g=G.getVideoData().video_id;B.videoId===g&&(b=Number(B.offsetFromVideoStartMilliseconds),b>=0&&G.seekTo(b/1E3));_.TT(z)})};
D_[oN]=[_.ms];var xO1=_.XV("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),IB=function(f){this.store=f};
_.q(IB,IC);
var E1$=function(f){var S,B,G,g;return _.R(function(b){if(b.nextAddress==1)return S=_.nL("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,B=_.nL("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,G=S||B,f.mainAppPlayer=new ZV(G),_.h(b,f.mainAppPlayer.api,2);g=b.yieldResult;g.addEventListener("onStateChange",f.JSC$15285_playerStateChangeListener.bind(f));document.addEventListener("yt-page-data-updated",f.pauseOnNavigation.bind(f));window.addEventListener("state-navigatestart",
f.pauseOnNavigation.bind(f));_.TT(b)})};
IB.prototype.JSC$15285_playerStateChangeListener=function(f){switch(f){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"}LHN(this)};
var LHN=function(f){f.store.dispatch(_.KF("sfvAudioItemCurrentlyPlayingEntity",xO1,{key:xO1,externalVideoId:f.externalVideoId,sfvAudioItemPlaybackState:f.playbackState,nowPlayingEntityValue:f.nowPlayingEntityValue}))};
IB.prototype.pauseOnNavigation=function(){var f=this,S,B,G,g;return _.R(function(b){if(b.nextAddress==1){if(!f.mainAppPlayer){var z=new _.dO("Error: mainAppPlayer is unavailable",f.mainAppPlayer);_.xH(z);return b.return()}return _.h(b,f.mainAppPlayer.api,2)}S=b.yieldResult;G=(B=S)==null?void 0:B.getPlayerState();G!==1||(g=S)!=null&&g.pauseVideo();_.TT(b)})};
IB.prototype.playVideo=function(f,S,B){var G=this,g,b;return _.R(function(z){if(z.nextAddress==1)return _.h(z,(g=G.mainAppPlayer)==null?void 0:g.api,2);b=z.yieldResult;if(!G.mainAppPlayer||!b){var X=new _.dO("Error: mainAppPlayer is unavailable",G.mainAppPlayer);_.xH(X);return z.return()}return _.h(z,G.mainAppPlayer.loadVideoWithPlayerVars({videoId:G.externalVideoId,audio_only:"1",start:f/1E3,end:f/1E3+S,player_params:B}),0)})};
IB.prototype.pauseVideo=function(){var f=this,S,B;return _.R(function(G){if(G.nextAddress==1){if(!f.mainAppPlayer){var g=new _.dO("Error: mainAppPlayer is unavailable",f.mainAppPlayer);_.xH(g);return G.return()}return _.h(G,f.mainAppPlayer.api,2)}S=G.yieldResult;(B=S)==null||B.pauseVideo();_.TT(G)})};
IB.prototype.resolveCommand=function(f){var S=this,B,G,g,b,z,X,w,F,V,J,P,d,Q,x,E,U,A,t,M;return _.R(function(a){if(a.nextAddress==1)return B=_.H(f,l7N),g=(G=B)==null?void 0:G.nowPlayingEntityValue,z=(b=B)==null?void 0:b.externalVideoId,J=Number((V=(X=B)==null?void 0:(w=X.defaultStartPoints)==null?void 0:(F=w[0])==null?void 0:F.offsetMs)!=null?V:"0"),U=Number((E=(P=B)==null?void 0:(d=P.defaultStartPoints)==null?void 0:(Q=d[0])==null?void 0:(x=Q.duration)==null?void 0:x.seconds)!=null?E:"15"),M=(t=
(A=B)==null?void 0:A.playerParams)!=null?t:"",g&&z?S.mainAppPlayer?a.jumpTo(2):_.h(a,E1$(S),2):a.return();if(a.nextAddress!=6){if(S.nowPlayingEntityValue&&g===S.nowPlayingEntityValue)return S.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?_.h(a,S.pauseVideo(),0):_.h(a,S.playVideo(J,U,M),0);S.externalVideoId=z;S.nowPlayingEntityValue=g;S.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return _.h(a,S.playVideo(J,U,M),6)}LHN(S);return a.jumpTo(0)})};
IB[oN]=[Tq];var UB=function(f){this.JSC$15305_commandHandler=f};
_.q(UB,IC);UB.prototype.resolveCommand=function(f,S){var B=this,G,g,b,z,X;return _.R(function(w){if(w.nextAddress==1)return(G=_.H(f,CXL))?_.h(w,_.wb(),2):w.return();g=w.yieldResult;if(!g)return w.return();(b=WPT(g))?B.JSC$15305_commandHandler.resolveCommand(b,S):(z=_.Jf("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),X=_.oe(z),B.JSC$15305_commandHandler.resolveCommand(X));_.TT(w)})};
UB[oN]=[_.S7];var Cl=function(f){this.JSC$15308_playerPromise=f};
_.q(Cl,IC);Cl.prototype.resolveCommand=function(f){var S=this,B,G,g,b,z;return _.R(function(X){if(X.nextAddress==1){B=_.H(f,rV8);if(!B)return X.return();G=B.overlayRenderer;return G?(g=_.H(G,p1N))?_.h(X,S.JSC$15308_playerPromise,3):X.jumpTo(0):X.return()}b=X.yieldResult;b.renderChapterSeekingAnimation(1,_.ac(g.text),(z=g.icon)==null?void 0:z.iconType);_.TT(X)})};
Cl[oN]=[_.ms];var pl=function(f){this.store=f};
_.q(pl,IC);
pl.prototype.resolveCommand=function(f){var S=this,B,G,g;return _.R(function(b){if(b.nextAddress==1){B=_.H(f,Np$);if(!B)return b.return();G="";(g=S.store.getState().collabInviteLink)&&B.id===g.playlistId?G=g.inviteLinkURL:B.shortUrl&&(G=B.shortUrl);return G?_.h(b,navigator.clipboard.writeText(G),3):b.jumpTo(0)}var z={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Jf("COPY_LINK_SUCCESS_TOAST")}}}}};_.oy().resolve(_.S7).resolveCommand(z);_.TT(b)})};
pl[oN]=[zU];var AU=function(f,S){this.innertubeTransportService=f;this.JSC$15318_commandHandler=S};
_.q(AU,IC);AU.prototype.resolveCommand=function(f,S){var B=this,G,g,b,z,X,w,F,V,J,P;return _.R(function(d){if(d.nextAddress==1)return(G=_.H(f,_.pW))?_.h(d,_.uF(B.innertubeTransportService,f,(g=S)==null?void 0:g.form),2):d.return();(b=d.yieldResult)&&b.errorMetadata&&(z=b,X=_.oe(z.error.message),B.JSC$15318_commandHandler.resolveCommand(X));w=b;if((F=w)==null?0:F.actions)for(V=_.m(w.actions),J=V.next();!J.done;J=V.next())P=J.value,B.JSC$15318_commandHandler.resolveCommand(P);_.TT(d)})};
AU[oN]=[_.DU,_.S7];var Nh=function(){};
_.q(Nh,IC);Nh.prototype.resolveCommand=function(f){var S;return _.R(function(B){S=_.H(f,kdm);if(!S)return B.return();(new Nn1(S)).show();_.TT(B)})};_.Mh=new _.Sn("PLAYLIST_EDIT_CONTROLLER_TOKEN");var Z_=function(f,S,B,G){this.store=f;this.innertubeTransportService=S;this.controller=B;this.JSC$15326_commandHandler=G};
_.q(Z_,IC);
Z_.prototype.resolveCommand=function(f,S){var B=this,G,g,b,z,X,w,F,V,J,P,d,Q,x,E,U,A,t,M,a,l,mx,zj,VN,$Q,OV,rW;return _.R(function(MA){if(MA.nextAddress==1){G=_.H(f,_.nW);if(!G)return MA.return();if(G.clientActions){g=_.m(G.clientActions);for(b=g.next();!b.done;b=g.next())z=b.value,B.JSC$15326_commandHandler.resolveCommand(z);var UV,W7=S==null?void 0:(UV=S.form)==null?void 0:UV.element;W7&&_.ew(W7,"yt-dismissible-item-action",G.clientActions)}return _.h(MA,_.uF(B.innertubeTransportService,f,(X=S)==
null?void 0:X.form),2)}if(w=MA.yieldResult)w.errorMetadata?(F=w,V=_.oe(F.error.message),B.JSC$15326_commandHandler.resolveCommand(V),"error"in w&&((J=S)==null?0:(P=J.commandController)==null?0:P.onServerError)&&((d=S)==null||(Q=d.commandController)==null||Q.onServerError(f,w))):(x=S)==null||(E=x.commandController)==null||(A=(U=E).onSuccess)==null||A.call(U,f,w);t=w;((M=t)==null?0:M.collaborationInviteLink)&&G.playlistId&&(_.K("web_enable_invite_collaborators_link")||_.K("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
B.store.dispatch(_.ef({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:G.playlistId,inviteLinkUrl:t.collaborationInviteLink}}));((a=t)==null?0:a.redirectEndpoint)&&B.JSC$15326_commandHandler.resolveCommand(t.redirectEndpoint);((l=t)==null?0:(mx=l.newHeader)==null?0:mx.playlistHeaderRenderer)?kKm(B.controller,t.newHeader.playlistHeaderRenderer):((zj=t)==null?0:(VN=zj.newHeader)==null?0:VN.musicEditablePlaylistDetailHeaderRenderer)&&kKm(B.controller,t.newHeader.musicEditablePlaylistDetailHeaderRenderer);
B.controller.playlistVideoListElement&&(($Q=t)==null?0:(OV=$Q.playlistEditResults)==null?0:(rW=OV[0])==null?0:rW.playlistEditVideoAddedResultData)&&((W7=B.controller.playlistVideoListElement)==null||W7.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:t.playlistEditResults[0].playlistEditVideoAddedResultData})));_.TT(MA)})};
Z_[oN]=[zU,_.DU,_.Mh,_.S7];var tU=function(f,S){this.controller=f;this.JSC$15336_commandHandler=S};
_.q(tU,IC);tU.prototype.resolveCommand=function(f,S){var B=this,G,g,b;return _.R(function(z){G=_.H(f,MTm);B.controller.showRefreshPill&&((g=G)==null?0:g.command)&&(B.JSC$15336_commandHandler.resolveCommand((b=G)==null?void 0:b.command,S),B.controller.showRefreshPill=!1);_.TT(z)})};
tU[oN]=[_.ob,_.S7];var uj=function(f,S){this.store=f;this.JSC$15340_commandHandler=S||_.JZ.instance};
_.q(uj,IC);uj.prototype.resolveCommand=function(f,S){var B=this,G,g,b,z,X,w,F,V,J,P;return _.R(function(d){G=_.H(f,G46);g=B.store.getState().radioButtonGroup;if((b=G)==null?0:b.command)B.JSC$15340_commandHandler.resolveCommand((z=G)==null?void 0:z.command,S);else if(g&&((X=G)==null?void 0:X.formId)===g.currentFormId)for(w=Object.values(g.commandsMap),F=_.m(w),V=F.next();!V.done;V=F.next())J=V.value,(P=_.CH(J))&&B.JSC$15340_commandHandler.resolveCommand(P,S);_.TT(d)})};
uj[oN]=[_.C5];var aB=new _.Sn("USER_PREFS");var yc=function(f){this.JSC$15345_prefCookie=f};
_.q(yc,IC);yc.prototype.resolveCommand=function(f){var S=this,B;return _.R(function(G){(B=_.H(f,Qmj))&&typeof B.useListView==="boolean"&&(_.dh(0,155,B.useListView),S.JSC$15345_prefCookie.save());_.TT(G)})};
yc[oN]=[aB];var WM=function(f){this.JSC$15349_prefCookie=f};
_.q(WM,IC);WM.prototype.resolveCommand=function(f){var S=this,B,G,g,b,z;return _.R(function(X){B=_.H(f,smm);if((G=B)==null||!G.gl)return X.return();g=B.gl;b={persist_gl:"1",gl:g};S.JSC$15349_prefCookie.set("gl",g);S.JSC$15349_prefCookie.save();z=UNL(b);_.tK(z);_.TT(X)})};
WM[oN]=[aB];var cM=function(f){this.JSC$15353_prefCookie=f};
_.q(cM,IC);cM.prototype.resolveCommand=function(f){var S=this,B,G;return _.R(function(g){B=_.H(f,tT8);if(!B)return g.return();G=!1;B.flagNum&&typeof B.value==="boolean"?(_.dh(0,B.flagNum,B.value),G=!0):B.key&&typeof B.stringValue==="string"&&(S.JSC$15353_prefCookie.set(B.key,B.stringValue),G=!0);G&&S.JSC$15353_prefCookie.save();_.TT(g)})};
cM[oN]=[aB];var lj=new _.Sn("PREF_STORAGE_PROMISE_TOKEN");var f0=function(f){this.JSC$15357_prefStoragePromise=f};
_.q(f0,IC);f0.prototype.resolveCommand=function(f){var S=this,B,G;return _.R(function(g){if(g.nextAddress==1)return(B=_.H(f,aI7))?_.h(g,S.JSC$15357_prefStoragePromise,2):g.return();G=g.yieldResult;return G===void 0||B.key===void 0||B.value===void 0?g.return():_.h(g,G.set(B.key,B.value),0)})};
f0[oN]=[lj];var n17=function(f){this.innertubeTransportService=f};
_.q(n17,IC);n17.prototype.resolveCommand=function(f,S){var B=this,G,g;return _.R(function(b){(G=_.H(f,_.is7))&&G&&G.isFirstRequest&&(_.L2("search_overview_answer"),_.kT("so_rq",void 0,"search_overview_answer"));return _.h(b,_.uF(B.innertubeTransportService,f,(g=S)==null?void 0:g.form),0)})};
n17[oN]=[_.DU];var spm=function(){};
_.q(spm,IC);
spm.prototype.resolveCommand=function(f){var S,B,G,g,b,z,X,w,F;return _.R(function(V){S=_.H(f,QI6);if((B=S)==null?0:B.sectionIdentifier){if(S.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(g=(G=document.getElementsByTagName(S.sectionIdentifier))==null?void 0:G.item(0))g.scrollIntoView({behavior:"smooth"}),(b=xox(g))&&b.focus({preventScroll:!0});return V.return()}z=document.querySelector("[section-identifier="+S.sectionIdentifier+"]");X=document.querySelector("[section-identifier="+S.referenceSectionIdentifier+
"]");if(!z)return V.return();w=S.verticalScrollOffsetDp?S.verticalScrollOffsetDp:0;X&&(w-=X.offsetTop);window.scrollTo({top:z.offsetTop+w,behavior:"smooth"});(F=xox(z))&&F.focus({preventScroll:!0})}_.TT(V)})};var ox=function(){};
_.q(ox,IC);
ox.prototype.resolveCommand=function(f){var S,B,G,g,b,z,X;return _.R(function(w){if(w.nextAddress==1){S=_.H(f,a68);if(!S||!S.imageBytes||!navigator.clipboard)return w.return();if(S.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.xH(Error("Bi")),w.return();_.zT(w,2);G=(B=S)==null?void 0:B.imageBytes;g=G.replace(/-/g,"+").replace(/_/g,"/");b=LP9(g);z={};X=[new ClipboardItem((z[b.type]=b,z))];return _.h(w,navigator.clipboard.write(X),4)}if(w.nextAddress!=2)return _.CN(w,0);
_.hm(w);_.TT(w)})};var SB=function(f,S){this.innertubeTransportService=f;this.JSC$15372_commandHandler=S};
_.q(SB,IC);SB.prototype.resolveCommand=function(f,S){var B=this,G,g,b,z,X;return _.R(function(w){if(w.nextAddress==1)return(G=_.H(f,y5i))?_.h(w,_.uF(B.innertubeTransportService,f,(g=S)==null?void 0:g.form),2):w.return();(b=w.yieldResult)&&b.errorMetadata&&G.onFailureCommand&&B.JSC$15372_commandHandler.resolveCommand(G.onFailureCommand);z=b;((X=z)==null?0:X.shareCommand)&&B.JSC$15372_commandHandler.resolveCommand(z.shareCommand,S);_.TT(w)})};
SB[oN]=[_.DU,_.S7];var BN=function(){};
_.q(BN,IC);BN.prototype.resolveCommand=function(f){var S,B;return _.R(function(G){S=_.H(f,A$N);if(!S||!navigator.share)return G.return();B={url:S.url};try{return G.return(navigator.share(B))}catch(g){}_.TT(G)})};var Gz=function(){};
_.q(Gz,IC);Gz.prototype.resolveCommand=function(){return _.R(function(f){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.TT(f)})};var g_=function(f){this.JSC$15382_navigationConfirmationService=f};
_.q(g_,IC);g_.prototype.resolveCommand=function(){var f=this;return _.R(function(S){f.JSC$15382_navigationConfirmationService.cancelPendingNavigation();_.TT(S)})};
g_[oN]=[T5];var eB=function(f){this.JSC$15385_screenManager=f};
_.q(eB,IC);eB.prototype.resolveCommand=function(f,S){var B=this,G,g,b,z,X,w,F;return _.R(function(V){g=(G=S.form)==null?void 0:G.event;z=(b=S.form)==null?void 0:b.element;if(!g)throw new _.dO("Event not passed in when resolving command");X=_.m(g.composedPath());for(w=X.next();!w.done;w=X.next())if(F=w.value,F.tagName==="YT-COPY-LINK-RENDERER")return F.copyUrlToClipboard(),z&&_.M1(B.JSC$15385_screenManager,z),V.return();_.TT(V)})};
eB[oN]=[_.Qz];var bf=function(){this.JSC$15389_miniAppClientDataProvider=_.oy().resolve(_.L3)};
_.q(bf,IC);bf.prototype.resolveCommand=function(){var f=this,S,B;return _.R(function(G){if(f.JSC$15389_miniAppClientDataProvider.clientData.has("video_id")){var g=f.JSC$15389_miniAppClientDataProvider,b=g.clientData.get("video_id");b&&g.clientData.delete("video_id");S="https://youtube.com/watch?v="+b;B=vo(S);if(B===void 0)throw Error("Ci`"+S);_.LC(window,B)}_.TT(G)})};var mB=function(){};
_.q(mB,IC);mB.prototype.resolveCommand=function(){return _.R(function(f){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.TT(f)})};var zz=function(){};
_.q(zz,IC);zz.prototype.resolveCommand=function(){var f;return _.R(function(S){if(S.nextAddress==1)return _.h(S,_.BHG(window.document.documentElement),2);(f=document.querySelector("mini-app-container-view-model iframe"))&&f.focus();_.TT(S)})};var Rx=function(f){this.JSC$15396_navigationConfirmationService=f};
_.q(Rx,IC);
Rx.prototype.resolveCommand=function(){var f=this;return _.R(function(S){var B=f.JSC$15396_navigationConfirmationService,G=_.oy().resolve(_.$k),g;if(((g=B.navigateParams)==null?void 0:g.data)!==void 0){var b;_.MSj(G,B.navigateParams.endpoint,B.navigateParams.data,(b=B.navigateParams.navigationType)!=null?b:1,B.navigateParams.tempData,B.navigateParams.isMiniplayer,void 0,!0);B.navigateParams=void 0;B.customConfirmationCommand=void 0}else B.navigateParams&&(G.navigate(B.navigateParams.endpoint,B.navigateParams.reload,
B.navigateParams.params,B.navigateParams.tempData,B.navigateParams.requestType,B.navigateParams.createScreenConfig,!0),B.navigateParams=void 0,B.customConfirmationCommand=void 0);_.TT(S)})};
Rx[oN]=[T5];var XI=function(){};
_.q(XI,IC);XI.prototype.resolveCommand=function(){return _.R(function(f){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.TT(f)})};var w_=function(f){this.JSC$15401_prefStorage=f};
_.q(w_,IC);w_.prototype.resolveCommand=function(){var f=this,S,B;return _.R(function(G){switch(G.nextAddress){case 1:return _.h(G,f.JSC$15401_prefStorage,2);case 2:return(S=G.yieldResult)?_.h(G,S.set("sfvle",!1),3):G.return();case 3:return _.h(G,S.set("sfvles",!0),4);case 4:B=_.K2(),_.dh(0,203,!1),_.dh(0,204,!0),B.save(),_.TT(G)}})};
w_[oN]=[lj];var hF=function(f){this.JSC$15404_prefStorage=f};
_.q(hF,IC);hF.prototype.resolveCommand=function(){var f=this,S,B;return _.R(function(G){switch(G.nextAddress){case 1:return _.h(G,f.JSC$15404_prefStorage,2);case 2:return(S=G.yieldResult)?_.h(G,S.set("sfvle",!0),3):G.return();case 3:return _.h(G,S.set("sfvles",!0),4);case 4:B=_.K2(),_.dh(0,203,!0),_.dh(0,204,!0),B.save(),_.TT(G)}})};
hF[oN]=[lj];_.DON=new _.Sn("SNACKBAR_CONTROLLER_TOKEN");var Tz=function(f){this.controller=f};
_.q(Tz,IC);Tz.prototype.resolveCommand=function(f){var S=this,B;return _.R(function(G){B=_.H(f,mG7);if(!B)return G.return();var g=S.controller;g.closeSnackbarFn&&g.closeSnackbarFn();_.TT(G)})};
Tz[oN]=[_.DON];var FI=function(f){this.controller=f};
_.q(FI,IC);FI.prototype.resolveCommand=function(f){var S=this,B,G,g;return _.R(function(b){B=_.H(f,RGm);if(!B)return b.return();G=_.H(B.content,iW6);if(!G)return b.return();var z=S.controller,X=G,w=(g=B.animationStyle)!=null?g:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(z.showSnackbarFn)z.showSnackbarFn({snackbarViewModel:X,animationStyle:w,durationMs:B.durationSeconds*1E3});else throw Error("lj");_.TT(b)})};
FI[oN]=[_.DON];var V7=function(){};
_.q(V7,IC);V7.prototype.resolveCommand=function(f){var S;return _.R(function(B){S=_.H(f,uxg);if(!S||typeof S.key!=="string"||typeof S.value!=="string")return B.return();window.localStorage.setItem(S.key,S.value);_.TT(B)})};var JF=function(f){this.store=f};
_.q(JF,IC);JF.prototype.resolveCommand=function(f){var S=this,B;return _.R(function(G){B=_.H(f,SxA);if(!B||!B.stepId||!B.token)return G.return();S.store.dispatch(Mtv({stepId:B.stepId,token:B.token,isSelected:!1}));_.TT(G)})};
JF[oN]=[zU];var PN=function(f,S,B){this.innertubeTransportService=f;this.store=S;this.JSC$15423_screenManager=B};
_.q(PN,IC);
PN.prototype.resolveCommand=function(f){var S=this,B,G,g,b,z,X,w,F,V,J,P,d,Q,x,E,U,A,t,M,a,l,mx,zj;return _.R(function(VN){B=_.H(f,y9i);if(!B||(G=B.stepIds)==null||!G.length)return VN.return();g=S.store.getState().talkToRecs;b=[];z=[];X=_.m(B.stepIds);for(w=X.next();!w.done;w=X.next())for(F=w.value,V=void 0,(J=(V=g.stepStates[F])==null?void 0:V.userQuery)&&z.push({userQuery:J.userQuery,userQueryToken:J.token}),P=void 0,d=(P=g.stepStates[F])==null?void 0:P.selectionStates,Q=_.m(Object.entries(d)),x=
Q.next();!x.done;x=Q.next())E=x.value,U=_.m(E),A=U.next().value,t=U.next().value,M=A,a=t,a.isSelected&&b.push(M);l={selectedChipTokens:b,userQueries:z,submittedStepIds:B.stepIds};mx={browseTalk2recsFormData:l};B.browseEndpoint?(zj=f,_.nH(zj,_.d3,B.browseEndpoint)):B.command&&(zj=B.command);return zj?_.h(VN,_.uF(S.innertubeTransportService,zj,{formData:mx,disableCache:!0}).then(function($Q){($Q==null?0:$Q.trackingParams)&&S.JSC$15423_screenManager.graftServerVe($Q==null?void 0:$Q.trackingParams)}),
0):VN.return()})};
PN[oN]=[_.DU,zU,_.Qz];var vN=function(f){this.store=f};
_.q(vN,IC);vN.prototype.resolveCommand=function(f){var S=this,B;return _.R(function(G){B=_.H(f,oiK);if(!B||!B.stepId||!B.token)return G.return();S.store.dispatch(Mtv({stepId:B.stepId,token:B.token,isSelected:!0}));_.TT(G)})};
vN[oN]=[zU];var K0=function(f){this.store=f};
_.q(K0,IC);K0.prototype.resolveCommand=function(f,S){var B=this,G,g,b,z,X;return _.R(function(w){G=_.H(f,WZj);if(!G||!G.stepId||!G.userQueryToken)return w.return();X=(z=(g=S)==null?void 0:(b=g.form)==null?void 0:b.userQuery)!=null?z:"";B.store.dispatch(_.ef({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:G.stepId,userQueryToken:G.userQueryToken,userQuery:X}}));_.TT(w)})};
K0[oN]=[zU];_.Ibi=new _.Sn("TIMELY_ACTIONS_CONTROLLER_TOKEN");var d_=function(f){this.controller=f};
_.q(d_,IC);d_.prototype.resolveCommand=function(f){var S=this,B,G,g,b;return _.R(function(z){B=_.H(f,Huo);if(!B)return z.return();G=B;g=G.id;b=G.isVisible;if(g===void 0||b===void 0)return z.return();var X;(X=S.controller.timelyActionsMap.get(g))==null||X(g,b);_.TT(z)})};
d_[oN]=[_.Ibi];var UO1=function(){this.timelyActionsMap=new Map};var HN=function(f){this.JSC$15450_commandHandler=f};
_.q(HN,IC);HN.prototype.resolveCommand=function(f){var S=this,B,G,g,b,z;return _.R(function(X){B=_.H(f,_.qG);if(!B)return X.return();b=(G=B.item)==null?void 0:(g=G.notificationTextRenderer)==null?void 0:g.successResponseText;if(!b)return X.return();z=_.fn(b);S.JSC$15450_commandHandler.resolveCommand(z);_.TT(X)})};
HN[oN]=[_.S7];var qn=function(f,S){this.innertubeTransportService=f;this.JSC$15455_playerApiPromise=S};
_.q(qn,IC);
qn.prototype.resolveCommand=function(f){var S=this,B,G,g,b,z,X,w,F,V;return _.R(function(J){if(J.nextAddress==1)return _.h(J,S.JSC$15455_playerApiPromise,2);B=J.yieldResult;G=B.getOption("captions","track");g=Object.assign({},_.H(f,_.FRN));(z=(b=B.getVideoData())==null?void 0:b.video_id)?g.externalVideoId=z:_.CL(Error("Di"));if((X=G)==null?0:X.languageCode)g.languageCode=G.languageCode;if((w=G)==null?0:w.kind)g.kind=G.kind;if((F=G)==null?0:F.name)g.name=G.name;V=Object.assign({},f,{getTranscriptEndpoint:g});return _.h(J,
_.uF(S.innertubeTransportService,V),0)})};
qn[oN]=[_.DU,_.ms];var E3=function(){};
_.q(E3,IC);E3.prototype.resolveCommand=function(f){var S,B,G,g,b,z,X,w;return _.R(function(F){S=_.H(f,B8N);if((B=S)==null||!B.paramKeyValuePairs)return F.return();G=window.location.href;g=_.m(S.paramKeyValuePairs);for(b=g.next();!b.done;b=g.next())z=b.value,z.key&&z.value&&(X={},G=_.Zt(G,(X[z.key]=z.value,X)));w=_.oy().resolve(_.XS);_.R_(w,G);_.TT(F)})};var L0=function(f,S){this.JSC$15462_commandHandler=f;this.innertubeTransportService=S};
_.q(L0,IC);
L0.prototype.resolveCommand=function(f,S){var B=this,G,g,b,z,X,w,F,V,J,P,d,Q,x,E,U,A,t;return _.R(function(M){switch(M.nextAddress){case 1:return(b=(G=S)==null?void 0:(g=G.form)==null?void 0:g.element)&&_.We(b),z=_.K2().get("hl"),X="",_.zT(M,2),_.h(M,oBW(z),4);case 4:X=M.yieldResult;_.CN(M,3);break;case 2:return _.hm(M),b&&_.ce(b),_.xH(Error("Fi"),"ERROR"),M.return();case 3:w=_.H(f,yv6);if(!w)return b&&_.ce(b),M.return();(J=(F=w.commerceActionConfig)==null?void 0:(V=F.commandLifeCycleConfig)==null?
void 0:V.onStartCommand)&&B.JSC$15462_commandHandler.resolveCommand(J);return _.h(M,_.uF(B.innertubeTransportService,f,{client_data:{paymentsClientToken:{token:X}}}),5);case 5:(P=M.yieldResult)?(b&&_.ce(b),((E=P)==null?0:E.command)&&B.JSC$15462_commandHandler.resolveCommand(P.command),(t=(U=w.commerceActionConfig)==null?void 0:(A=U.commandLifeCycleConfig)==null?void 0:A.onSuccessCommand)&&B.JSC$15462_commandHandler.resolveCommand(t)):(b&&_.ce(b),_.xH(Error("Gi")),(x=(d=w.commerceActionConfig)==null?
void 0:(Q=d.commandLifeCycleConfig)==null?void 0:Q.onFailureCommand)&&B.JSC$15462_commandHandler.resolveCommand(x)),_.TT(M)}})};
L0[oN]=[_.S7,_.DU];var kO=function(f,S,B){this.store=f;this.JSC$15478_commandHandler=S;this.innertubeTransportService=B};
_.q(kO,IC);
kO.prototype.resolveCommand=function(f,S){var B=this,G,g,b,z,X,w,F,V,J;return _.R(function(P){G=_.H(f,Wki);g=G.googlePaymentPayload;G.onStartCommand&&B.JSC$15478_commandHandler.resolveCommand(G.onStartCommand);b=g.encryptedPurchaseParams;z=g.ypcLogWalletAnalyticDataEndpoint;X=G.serializedTransactionFlowLoggingParams;w=g.serializedPaymentsClientParams;F=G.ypcCujContext;J=G_W(B.innertubeTransportService,(V=S)==null?void 0:V.form,b,z,X,w,F);return P.return(J.then(function(d){S9j(S==null?void 0:S.form,
!1);var Q=B.store,x=B.JSC$15478_commandHandler,E=d.integratorData;E==null||E===""||d.error!=null?(String(d.error)==="-1"&&G.onDismissCommand?x.resolveCommand(G.onDismissCommand):String(d.error)!=="-1"&&G.onFailureCommand&&x.resolveCommand(G.onFailureCommand),String(d.error)!=="-1"&&String(d.error)!=="132"&&_.xH(Error("Hi"),"ERROR")):(G.googlePaymentEntityKey&&Q.dispatch(_.KF("commerceAcquisitionClientPayloadEntity",G.googlePaymentEntityKey,{key:G.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:E,
fundsGuaranteeCallbackClientData:d.integratorClientCallbackData}}})),G.onSuccessCommand&&x.resolveCommand(G.onSuccessCommand));_.wh()},function(d){S9j(S==null?void 0:S.form,!1);
_.xH(d,"ERROR");G.onFailureCommand&&B.JSC$15478_commandHandler.resolveCommand(G.onFailureCommand)}))})};
kO[oN]=[Tq,_.S7,_.DU];var n0=function(f,S){this.JSC$15482_commandHandler=f;this.purchaseManager=S};
_.q(n0,IC);
n0.prototype.resolveCommand=function(f){var S=this,B,G,g,b,z,X,w,F,V;return _.R(function(J){B=_.H(f,cvL);((G=B)==null?0:(g=G.commandLifeCycleConfig)==null?0:g.onStartCommand)&&S.JSC$15482_commandHandler.resolveCommand(B.commandLifeCycleConfig.onStartCommand);if(!((b=B)==null?0:(z=b.googlePaymentPurchaseManagerPayload)==null?0:z.securePayloadBytes))return _.xH(Error("Ii"),"ERROR"),J.return();X=Th1(_.Rg(B.googlePaymentPurchaseManagerPayload.securePayloadBytes));w=_.K2().get("hl");F=_.aa();tXm(X.serialize(),
w,function(P){F.resolve(P)},function(P){F.reject(P)},F.resolve);
V=F.promise;return J.return(V.then(function(P){if(P)if(P==null?0:P.errorCode){_.xH(Error("Ji`"+P.errorCode),"ERROR");var d,Q;((d=B)==null?0:(Q=d.commandLifeCycleConfig)==null?0:Q.onFailureCommand)&&S.JSC$15482_commandHandler.resolveCommand(B.commandLifeCycleConfig.onFailureCommand)}else if(P==null?0:P.isCancelled){var x,E;((x=B)==null?0:(E=x.commandLifeCycleConfig)==null?0:E.onCancelCommand)&&S.JSC$15482_commandHandler.resolveCommand(B.commandLifeCycleConfig.onCancelCommand)}else{var U,A;((U=B)==
null?0:(A=U.commandLifeCycleConfig)==null?0:A.onSuccessCommand)&&S.JSC$15482_commandHandler.resolveCommand(B.commandLifeCycleConfig.onSuccessCommand)}},function(P){_.xH(P,"ERROR");
var d,Q;((d=B)==null?0:(Q=d.commandLifeCycleConfig)==null?0:Q.onFailureCommand)&&S.JSC$15482_commandHandler.resolveCommand(B.commandLifeCycleConfig.onFailureCommand)}))})};
n0[oN]=[_.S7,uOX];var C9m=function(f,S){this.JSC$15490_commandHandler=f;this.commandAllowlistOverride=S;var B;this.commandAllowlist=(B=this.commandAllowlistOverride)!=null?B:yj};
C9m.prototype.handleResponse=function(f,S,B){var G,g=S==null?void 0:(G=S.config)==null?void 0:G.command;if(!g||this.commandAllowlist.some(function(b){return!!_.H(g,b)})){S=void 0;
B!==void 0&&(S={form:{element:B}});f.onResponseReceivedCommand&&this.JSC$15490_commandHandler.resolveCommand(f.onResponseReceivedCommand,S);f.onResponseReceivedAction&&this.JSC$15490_commandHandler.resolveCommand(f.onResponseReceivedAction,S);f.onResponseReceivedEndpoint&&this.JSC$15490_commandHandler.resolveCommand(f.onResponseReceivedEndpoint,S);f.command&&this.JSC$15490_commandHandler.resolveCommand(f.command,S);if(f.onResponseReceivedCommands)for(B=_.m(f.onResponseReceivedCommands),G=B.next();!G.done;G=
B.next())this.JSC$15490_commandHandler.resolveCommand(G.value,S);if(f.onResponseReceivedActions)for(B=_.m(f.onResponseReceivedActions),G=B.next();!G.done;G=B.next())this.JSC$15490_commandHandler.resolveCommand(G.value,S);if(f.onResponseReceivedEndpoints)for(B=_.m(f.onResponseReceivedEndpoints),G=B.next();!G.done;G=B.next())this.JSC$15490_commandHandler.resolveCommand(G.value,S);if(f.actions)for(f=_.m(f.actions),B=f.next();!B.done;B=f.next())this.JSC$15490_commandHandler.resolveCommand(B.value,S)}};
C9m[oN]=[_.S7,_.fN(hMA)];var pAi=new _.Sn("INNERTUBE_TOKEN_SERVICE");var AQ1=new _.Sn("SCHEDULER_TOKEN");var N26=function(f){this.scheduler=f;f={};this.tokenMap=(f.app={},f.user={},f)};
N26.prototype.handleResponse=function(f,S){if(!S)throw Error("Ki");var B;if(f=(B=f.responseContext)==null?void 0:B.innertubeTokenJar){if(f.appTokens){var G,g,b;B=(G=S.innerTubeRequest.context)==null?void 0:(g=G.request)==null?void 0:(b=g.innertubeTokenJar)==null?void 0:b.appTokens;Mgj(this,f.appTokens,this.tokenMap.app,B)}if(f.userTokens){var z,X,w;S=(z=S.innerTubeRequest.context)==null?void 0:(X=z.request)==null?void 0:(w=X.innertubeTokenJar)==null?void 0:w.userTokens;Mgj(this,f.userTokens,this.tokenMap.user,
S)}}};
N26.prototype.processContext=function(f){f.request||(f.request={});var S=Object.keys(this.tokenMap.app).length,B=Object.keys(this.tokenMap.user).length;if(S||B)f.request.innertubeTokenJar={},S&&(f.request.innertubeTokenJar.appTokens=[].concat(_.$d(Object.values(this.tokenMap.app).flat()))),B&&(f.request.innertubeTokenJar.userTokens=[].concat(_.$d(Object.values(this.tokenMap.user).flat())))};
var Mgj=function(f,S,B,G){S=_.m(S);for(var g=S.next(),b={};!g.done;b={token$jscomp$138:void 0},g=S.next()){b.token$jscomp$138=g.value;if(b.token$jscomp$138.type===void 0)throw new _.dO("InnerTube token has no type",b.token$jscomp$138);if(b.token$jscomp$138.clearTokens)B[b.token$jscomp$138.type]=[];else if(b.token$jscomp$138.value!==void 0){B[b.token$jscomp$138.type]||(B[b.token$jscomp$138.type]=[]);if(G!==void 0&&G.length){g=_.m(G);for(var z=g.next(),X={};!z.done;X={requestToken:void 0},z=g.next())X.requestToken=
z.value,z=B[b.token$jscomp$138.type].findIndex(function(w){return function(F){return F===w.requestToken||(0,_.$v.equals)(F,w.requestToken)}}(X)),z>-1&&B[b.token$jscomp$138.type].splice(z,1)}B[b.token$jscomp$138.type].push(b.token$jscomp$138);
b.token$jscomp$138.maxAgeSeconds&&Number(b.token$jscomp$138.maxAgeSeconds)>0&&f.scheduler.addLowPriorityJob(function(w){return function(){var F=B[w.token$jscomp$138.type].indexOf(w.token$jscomp$138);F>-1&&B[w.token$jscomp$138.type].splice(F,1)}}(b),Number(b.token$jscomp$138.maxAgeSeconds)*1E3)}else throw new _.dO("InnerTube token has no value",b.token$jscomp$138);
}};
N26[oN]=[AQ1];var ZB$=new _.Sn("LOCAL_INNERTUBE_ROUTER_TOKEN"),tgL=new _.Sn("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var s3=function(f){this.serviceMap=f};
s3.prototype.shouldPreferLocalResponse=function(f,S){return(f=uFX(this,f))?f.shouldPreferLocalResponse(S):!1};
s3.prototype.localInnertubeResponse=function(f,S){var B=this,G;return _.R(function(g){return(G=uFX(B,f))?g.return(G.localInnertubeResponse(S)):g.return(Promise.reject(Error("Li")))})};
s3.prototype.canProvideFallbackResponse=function(f,S){return(f=uFX(this,f))?f.canProvideFallbackResponse(S):!1};
s3.prototype.localFallbackInnertubeResponse=function(f,S){var B=this,G;return _.R(function(g){return(G=uFX(B,f))?g.return(G.localFallbackInnertubeResponse(S)):g.return(Promise.reject(Error("Li")))})};
var uFX=function(f,S){S=_.Xl(S);return S?(f=f.serviceMap[S])?f:null:null};
s3[oN]=[tgL];var Yj=function(){};
Yj.prototype.shouldPreferLocalResponse=function(){return!1};
Yj.prototype.localInnertubeResponse=function(){return _.R(function(f){return f.return(Promise.reject(Error("Mi")))})};
Yj.prototype.canProvideFallbackResponse=function(){return!0};
Yj.prototype.localFallbackInnertubeResponse=function(){var f,S,B;return _.R(function(G){f=xV("CLOSE_POPUP");S={openPopupAction:eqN()};B={actions:[f,S]};return G.return(B)})};var ZvG=function(f,S){this.JSC$15540_upliftPromise=f;this.store=S};
_.e=ZvG.prototype;_.e.shouldPreferLocalResponse=function(f){var S=f.videoId,B;if(B=S)B=Kps(this.store.getState().entities,f.videoId);return B&&dxA(this.store.getState().entities,S)?mK1(this.store.getState().entities,f.playlistId):!1};
_.e.localInnertubeResponse=function(f){var S=this,B;return _.R(function(G){return(B=S.getPlayerResponse(f))?G.return(Promise.resolve(B)):G.return(Promise.reject(Error("Ni")))})};
_.e.canProvideFallbackResponse=function(f){return!!f.videoId};
_.e.localFallbackInnertubeResponse=function(f){var S=this,B;return _.R(function(G){if(G.nextAddress==1)return _.h(G,S.JSC$15540_upliftPromise,2);B=S.getPlayerResponse(f);var g;B?g=G.return(Promise.resolve(B)):g=qz(S.store.getState().entities,f.videoId)?G.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.B2(_.Jf("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:YD9()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
G.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.B2(_.Jf("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:QZG()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return g})};
_.e.getPlayerResponse=function(f){return uYK(this.store.getState().entities,f.videoId)};var QG=function(f,S){this.localPlayerService=f;this.localWatchNextService=S};
QG.prototype.shouldPreferLocalResponse=function(f){var S=f.playerRequest;f=f.watchNextRequest;return!!(S&&this.localPlayerService.shouldPreferLocalResponse(S)&&f&&this.localWatchNextService.shouldPreferLocalResponse(f))};
QG.prototype.localInnertubeResponse=function(f){var S=this,B,G,g,b;return _.R(function(z){if(z.nextAddress==1){B=f.playerRequest;G=f.watchNextRequest;if(!B||!G)throw new _.dO("Missing streaming request",f);return _.h(z,S.localPlayerService.localInnertubeResponse(B),2)}if(z.nextAddress!=3)return g=z.yieldResult,_.h(z,S.localWatchNextService.localInnertubeResponse(G),3);b=z.yieldResult;return z.return({playerResponse:g,watchNextResponse:b})})};
QG.prototype.canProvideFallbackResponse=function(f){var S=f.playerRequest;f=f.watchNextRequest;return!!(S&&this.localPlayerService.canProvideFallbackResponse(S)&&f&&this.localWatchNextService.canProvideFallbackResponse(f))};
QG.prototype.localFallbackInnertubeResponse=function(f){var S=this,B,G,g,b;return _.R(function(z){if(z.nextAddress==1)return B=f.playerRequest,G=f.watchNextRequest,B&&G?_.h(z,S.localPlayerService.localFallbackInnertubeResponse(B),2):z.return(Promise.reject(new _.dO("Missing streaming request",f)));if(z.nextAddress!=3)return g=z.yieldResult,_.h(z,S.localWatchNextService.localFallbackInnertubeResponse(G),3);b=z.yieldResult;return z.return({playerResponse:g,watchNextResponse:b})})};var iG=function(f){this.JSC$15550_persistentStorePromiseAccessor=f};
iG.prototype.shouldPreferLocalResponse=function(){return!1};
iG.prototype.localInnertubeResponse=function(){return _.R(function(f){return f.return(Promise.reject(Error("Oi")))})};
iG.prototype.canProvideFallbackResponse=function(){return!0};
iG.prototype.localFallbackInnertubeResponse=function(){var f=this,S,B;return _.R(function(G){return G.nextAddress==1?_.h(G,f.JSC$15550_persistentStorePromiseAccessor(),2):G.nextAddress!=3?(S=G.yieldResult)?_.h(G,S.get("service:guide:fallback"),3):G.return(Promise.reject(Error("Pi"))):(B=G.yieldResult)&&_.wL(B)?G.return(zqV(_.wL(B))):G.return(Promise.reject(Error("Qi")))})};var rL=function(){};
rL.prototype.shouldPreferLocalResponse=function(){return!1};
rL.prototype.localInnertubeResponse=function(){return _.R(function(f){return f.return(Promise.reject(Error("Ri")))})};
rL.prototype.canProvideFallbackResponse=function(){return!0};
rL.prototype.localFallbackInnertubeResponse=function(){var f,S,B;return _.R(function(G){f=xV("CLOSE_POPUP");S={openPopupAction:eqN()};B={actions:[f,S]};return G.return(B)})};var dL=function(){this.urlMap=ab6;this.fallbackCommand=_.vn};
dL.prototype.shouldPreferLocalResponse=function(f){return(f=f.url)?!!yQv(this,f):!1};
dL.prototype.localInnertubeResponse=function(f){var S=this,B;return _.R(function(G){return(B=f.url)?G.return(WH6(f,yQv(S,B))):G.return(Promise.reject(Error("Si")))})};
dL.prototype.canProvideFallbackResponse=function(){return!0};
dL.prototype.localFallbackInnertubeResponse=function(f){var S=this,B,G,g,b,z,X,w;return _.R(function(F){B=f.url;if(!B)return F.return(WH6(f,S.fallbackCommand));if(G=yQv(S,B))return F.return(WH6(f,G));g=void 0;b=_.Xl(B);b==="/watch"&&(z=_.pS(B,"v"))&&(w=(X=_.pS(B,"list"))!=null?X:void 0,g=_.Sf(z,w));g||(g=S.fallbackCommand);return F.return(WH6(f,g))})};
var yQv=function(f,S){if(S)return f.urlMap[_.Ck(S)]},WH6=function(f,S){S&&f.parentTrackingParams&&(S.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:f.parentTrackingParams}},S.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:S})};var HY=function(f,S,B){this.JSC$15560_upliftPromise=f;this.store=S;this.JSC$15560_persistentStorePromiseAccessor=B};
HY.prototype.shouldPreferLocalResponse=function(){return!1};
HY.prototype.localInnertubeResponse=function(){return _.R(function(f){return f.return(Promise.reject(Error("Ti")))})};
HY.prototype.canProvideFallbackResponse=function(){return!0};
HY.prototype.localFallbackInnertubeResponse=function(){var f=this;return _.R(function(S){return S.return(cQL(f))})};
var cQL=function(f){var S,B;return _.R(function(G){if(G.nextAddress==1)return _.h(G,Xg(f.JSC$15560_upliftPromise,f.store),2);S=G.yieldResult;B={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[b1j(S)]}}}};return G.return(lb6(f,B))})},lb6=function(f,S){var B,G;
return _.R(function(g){if(g.nextAddress==1)return _.h(g,f.JSC$15560_persistentStorePromiseAccessor(),2);if(g.nextAddress!=3)return B=g.yieldResult,_.h(g,h9(B),3);G=g.yieldResult;return g.return({responseContext:{},contents:S,topbar:G})})};var vY=function(f,S,B){this.JSC$15567_upliftPromise=f;this.store=S;this.JSC$15567_persistentStorePromiseAccessor=B};
vY.prototype.shouldPreferLocalResponse=function(f){var S=f.videoId;return S&&Kps(this.store.getState().entities,S)&&dxA(this.store.getState().entities,S)?mK1(this.store.getState().entities,f.playlistId):!1};
vY.prototype.localInnertubeResponse=function(f){var S=this,B,G;return _.R(function(g){if(g.nextAddress==1)return(B=f.videoId)?_.h(g,S.JSC$15567_upliftPromise,2):g.return(Promise.reject(Error("Ui")));if(g.nextAddress!=3)return _.h(g,fmm(S,f,B),3);G=g.yieldResult;return g.return(oLg(S,G,B))})};
vY.prototype.canProvideFallbackResponse=function(f){return f.videoId?!0:!1};
vY.prototype.localFallbackInnertubeResponse=function(f){var S=this,B,G,g,b;return _.R(function(z){switch(z.nextAddress){case 1:return(B=f.videoId)?_.h(z,S.JSC$15567_upliftPromise,2):z.return(Promise.reject(Error("Ui")));case 2:return _.h(z,fmm(S,f,B),3);case 3:G=z.yieldResult;if(qz(S.store.getState().entities,B)){z.jumpTo(4);break}return _.h(z,Xg(S.JSC$15567_upliftPromise,S.store),5);case 5:return g=z.yieldResult,z.return(S5X(G,g));case 4:return Kps(S.store.getState().entities,B)&&dxA(S.store.getState().entities,
B)?z.return(oLg(S,G,B)):(b={title:_.B2(_.Jf("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:YD9()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},z.return(S5X(G,b)))}})};
var fmm=function(f,S,B){var G,g,b,z,X;return _.R(function(w){if(w.nextAddress==1)return G=S.playlistId,g=_.Sf(B,G),_.h(w,f.JSC$15567_persistentStorePromiseAccessor(),2);if(w.nextAddress!=3)return b=w.yieldResult,_.h(w,h9(b),3);z=w.yieldResult;X={responseContext:{},currentVideoEndpoint:g,topbar:z};return w.return(X)})},oLg=function(f,S,B){if(f=qz(f.store.getState().entities,B)){var G;
B=f.videoEntity;var g,b={title:Gc(B.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.g9((G=B.localizedStrings)==null?void 0:G.viewCount),viewCount:_.g9((g=B.localizedStrings)==null?void 0:g.viewCount)}}};B.publishedTimestampMillis&&(b.dateText=_.g9(LkT(new Date(Number(B.publishedTimestampMillis)))));G={videoPrimaryInfoRenderer:b};g=f.videoEntity;f=f.channelEntity;f={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:Gc(_.Jf("SHOW_MORE",void 0,"Show more")),
showLessText:Gc(_.Jf("SHOW_LESS",void 0,"Show less")),description:g.formattedDescription,owner:{videoOwnerRenderer:{title:Gc(f.title),thumbnail:f.avatar}}}};S.contents={twoColumnWatchNextResults:{results:{results:{contents:[G,f]}}}}}return S},S5X=function(f,S){f.contents={singleColumnWatchNextResults:{results:{results:{contents:[b1j(S)]}}}};
return f};var q_=function(f,S,B){this.JSC$15572_upliftPromise=f;this.store=S;this.JSC$15572_persistentStorePromiseAccessor=B};
q_.prototype.shouldPreferLocalResponse=function(){return!1};
q_.prototype.localInnertubeResponse=function(){return _.R(function(f){return f.return(Promise.reject(Error("Vi")))})};
q_.prototype.canProvideFallbackResponse=function(){return!0};
q_.prototype.localFallbackInnertubeResponse=function(){var f=this,S,B,G,g;return _.R(function(b){switch(b.nextAddress){case 1:return _.h(b,f.JSC$15572_persistentStorePromiseAccessor(),2);case 2:return S=b.yieldResult,_.h(b,h9(S),3);case 3:return B=b.yieldResult,G={responseContext:{},topbar:B},_.h(b,f.JSC$15572_upliftPromise,4);case 4:return _.h(b,Xg(f.JSC$15572_upliftPromise,f.store),5);case 5:return g=b.yieldResult,G.watchStatus={backgroundPromoRenderer:g},b.return(G)}})};var BGj=new _.Sn("ENDPOINT_MAP");var GBo=function(){var f=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return f.sequenceMap}}},CR1=function(f,S,B){var G,g=(G=S.config)==null?void 0:G.sequenceStrategy;
if(!g)return B();f.sequenceMap.has(g.sequenceKey)||f.sequenceMap.set(g.sequenceKey,[]);f=f.sequenceMap.get(g.sequenceKey);switch(g.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return gL7(f,S,B);case "REQUEST_SEQUENCE_TYPE_REPLACE":return eUm(f,S,B);default:throw new _.dO("Request could not be sequenced",S);}},gL7=function(f,S,B){var G,g,b;
return _.R(function(z){f.length>0?(g=f[f.length-1],G=g.responsePromise.then(function(){return B()})):G=B();
b={request:S,responsePromise:G};f.push(b);bAg(f,b);return z.return(b.responsePromise)})},eUm=function(f,S,B){B=B();
if(f.length>0)for(var G=_.m(f),g=G.next();!g.done;g=G.next())g.value.responsePromise=B;var b={request:S,responsePromise:B};f.push(b);bAg(f,b);return Promise.resolve().then(function(){return f.indexOf(b)>0?b.responsePromise.then(function(z){return Object.assign({},z,{sequenceMetaData:{skipProcessing:!0}})}):b.responsePromise})},bAg=function(f,S){S.responsePromise.then(function(){var B=f.indexOf(S);
B>-1&&f.splice(B,1)})};var mXo=new _.Sn("REQUEST_SEQUENCING");var D5=function(){};
_.q(D5,Rv);D5.prototype.getApiPaths=function(){return[]};
D5.prototype.getExtension=function(f){return _.H(f,J9o)};
D5.prototype.JSC$11056_buildRequest=function(f,S){f.recaptchaToken=S.recaptchaToken};
D5.prototype.getApiUrl=function(){return"/das_captcha"};var Ix=function(){};
_.q(Ix,Rv);Ix.prototype.getApiPaths=function(){return arm};
Ix.prototype.getExtension=function(f){return _.H(f,MON)};
Ix.prototype.JSC$11056_buildRequest=function(f,S,B){B=B===void 0?{}:B;S.createBackstagePostParams&&(f.createBackstagePostParams=S.createBackstagePostParams);B.comment_text&&(f.commentText=B.comment_text);if(B.attached_video_id)f.videoAttachment={videoId:B.attached_video_id};else if(B.image_poll_options)f.pollAttachmentData={options:B.image_poll_options};else if(B.poll_options)f.pollAttachment={choices:B.poll_options};else if(B.quiz_options)f.quizAttachmentData={options:B.quiz_options};else if(B.image_blob_id)f.imageAttachment=
{encryptedBlobId:B.image_blob_id},B.source_video_id&&(f.imageAttachment.sourceExternalVideoId=B.source_video_id),B.image_preview_coordinates&&(f.imageAttachment.previewCoordinates=JSON.parse(B.image_preview_coordinates));else if(B.images_data)f.imagesAttachment={imagesData:B.images_data};else if(B.clip_external_video_id!==void 0||B.clip_offset_ms!==void 0||B.clip_duration_ms!==void 0){var G,g,b,z,X;f.clipAttachment={externalVideoId:(b=B.clip_external_video_id)!=null?b:"",offsetMs:(z=(G=B.clip_offset_ms)==
null?void 0:G.toString())!=null?z:"",durationMs:(X=(g=B.clip_duration_ms)==null?void 0:g.toString())!=null?X:""}}else B.shared_post_id&&(f.sharedPostAttachment={postId:B.shared_post_id});B.tagged_video_id&&(f.postCreationData={taggedVideoId:B.tagged_video_id});B.access_restrictions&&(typeof B.access_restrictions==="number"&&(S=B.access_restrictions,f.accessRestrictions={restriction:S!==1&&S===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof B.access_restrictions==="string"&&
(f.accessRestrictionsParams=B.access_restrictions));B.scheduled_publish_time_sec&&(f.scheduledPublishTimeSec=B.scheduled_publish_time_sec.toString())};var U3=function(){};
_.q(U3,Rv);U3.prototype.getApiPaths=function(){return Sjm};
U3.prototype.getExtension=function(f){return _.H(f,Wn8)};
U3.prototype.JSC$11056_buildRequest=function(f,S,B){B=B===void 0?{}:B;S.decorateMessageParams&&(f.params=S.decorateMessageParams);B.text&&(f.text=B.text)};var C0=function(){};
_.q(C0,Rv);C0.prototype.getApiPaths=function(){return i5L};
C0.prototype.getExtension=function(f){return _.H(f,ZzN)};
C0.prototype.JSC$11056_buildRequest=function(f,S,B){B=B===void 0?{}:B;B.video_id&&(f.videoId=B.video_id)};var p0=function(){};
_.q(p0,Rv);p0.prototype.getApiPaths=function(){return rio};
p0.prototype.getExtension=function(f){return _.H(f,_.Fh)};
p0.prototype.JSC$11056_buildRequest=function(f,S,B){B.suggestions_query&&(f.input=B.suggestions_query)};var AF=function(){};
_.q(AF,Rv);AF.prototype.getApiPaths=function(){return bVN};
AF.prototype.getExtension=function(f){return _.H(f,tO7)};
AF.prototype.JSC$11056_buildRequest=function(f,S,B){B.comment_text!==void 0&&(f.commentText=B.comment_text);B.scheduled_publish_time_sec&&(f.scheduledPublishTimeSec=B.scheduled_publish_time_sec.toString());f.updateBackstagePostParams=S.updateBackstagePostParams};var Nn=function(){};
_.q(Nn,Rv);Nn.prototype.getApiPaths=function(){return Gq};
Nn.prototype.getExtension=function(f){return _.H(f,_.p9)};
Nn.prototype.JSC$11056_buildRequest=function(f,S,B){B.formData&&(f.formData=B.formData);S.token?f.continuation=S.token:S.continuationTokenKey&&(B=_.W2().getState(),S=_.w9(B.entities,"continuationTokenEntity",S.continuationTokenKey))&&(f.continuation=String(S.continuationToken))};
var zUL=function(){};
_.q(zUL,Rv);_.e=zUL.prototype;_.e.getApiPaths=function(){return Gq};
_.e.getExtension=function(f){return _.H(f,_.d3)};
_.e.isNavigationCommand=function(){return!0};
_.e.JSC$11063_getStoreKey=function(f){if((f=this.getExtension(f))&&f.browseId){var S={browseId:f.browseId};f.browseEndpointContextSupportedConfigs&&(S.browseEndpointContextSupportedConfigs=JSON.stringify(f.browseEndpointContextSupportedConfigs));f.params&&(S.params=f.params);f.query&&(S.query=f.query);return _.ZT("browse",S)}};
_.e.JSC$11056_buildRequest=function(f,S,B){S.browseId&&(f.browseId=S.browseId);S.params&&(f.params=S.params);S.query&&(f.query=S.query);B.formData?f.formData=B.formData:S.formData&&(f.formData=S.formData);S.browseId==="FEsubscriptions"&&_.K2().getFlag(155)&&(f.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");S.browseId==="SPaccount_playback"&&(B=_.K2(),f.formData||(f.formData={}),f.formData.accountSettingsFormData={flagCaptionsDefaultOff:B.getFlag(65),flagAutoCaptionsDefaultOn:B.getFlag(66),
flagDisableInlinePreview:B.getFlag(186),flagAudioDescriptionDefaultOn:B.getFlag(198)});if(S.browseId==="FEwhat_to_watch"){B=_.K2();var G=B.getFlag(196);B.getFlag(197)&&(f.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:G}}})}S.browseId==="FEwhat_to_watch"&&(S=_.K2().getFlag(186),f.inlineSettingStatus=S?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.e.getRequestConfig=function(f,S){S=S===void 0?{}:S;var B={};if(f=this.JSC$11063_getStoreKey(f,S))B.storeStrategy={storeKey:f,disableCache:S.disableCache};_.K("web_log_browse_ticks_ks")||(B.requestTick="br_s",B.responseTick="br_r");return B};var Mn=function(){};
_.q(Mn,Rv);Mn.prototype.getApiPaths=function(){return A0$};
Mn.prototype.getExtension=function(f){return _.H(f,wqm)};
Mn.prototype.JSC$11056_buildRequest=function(f,S,B){f.legacyYoutubeChannelUsername=B.legacyYouTubeChannelUsername||"";f.legacyYoutubeChannelPassword=B.legacyYouTubeChannelPassword||""};var Z5=function(){};
_.q(Z5,Rv);Z5.prototype.getApiPaths=function(){return WQv};
Z5.prototype.getExtension=function(f){return _.H(f,oWX)};
Z5.prototype.JSC$11056_buildRequest=function(f,S,B){B.recaptcha_response_token&&(f.recaptchaResponseToken=B.recaptcha_response_token);B.channel_id&&(f.channelId=B.channel_id)};var tF=function(){};
_.q(tF,Rv);tF.prototype.getApiPaths=function(){return mf6};
tF.prototype.getExtension=function(f){return _.H(f,b4i)};
tF.prototype.JSC$11056_buildRequest=function(f,S,B){S.externalChannelId&&(f.externalChannelId=S.externalChannelId);B.handle&&(f.handleUpdate={handle:B.handle},S.handleEditSource&&(f.handleUpdate.handleEditSource=S.handleEditSource))};var uf=function(){};
_.q(uf,Rv);uf.prototype.getApiPaths=function(){return wlj};
uf.prototype.getExtension=function(f){return _.H(f,i4m)};
uf.prototype.JSC$11056_buildRequest=function(f,S,B){S.request&&(f.channelId=S.request.channelId);var G;if(B==null?0:(G=B.uploadDefaults)==null?0:G.emojiReactionSet)f.uploadDefaultsRequest||(f.uploadDefaultsRequest={}),f.uploadDefaultsRequest.emojiReactionSet=B.uploadDefaults.emojiReactionSet};var ax=function(){};
_.q(ax,Rv);ax.prototype.getApiPaths=function(){return F$m};
ax.prototype.getExtension=function(f){return _.H(f,SHN)};
ax.prototype.JSC$11056_buildRequest=function(f,S,B){S.externalChannelId&&(f.externalChannelId=S.externalChannelId);S.channelHandleEntityKey&&(f.channelHandleEntityKey=S.channelHandleEntityKey);S.handleEditSource&&(f.handleEditSource=S.handleEditSource);B.handle?f.handle=B.handle:B.name&&(f.name=B.name)};var y7=function(){};
_.q(y7,Rv);y7.prototype.getApiPaths=function(){return ZDj};
y7.prototype.getExtension=function(f){return _.H(f,Os1)};
y7.prototype.JSC$11056_buildRequest=function(f,S){S.actions?f.actions=S.actions:S.action&&(f.actions=[S.action])};var WN=function(){};
_.q(WN,Rv);WN.prototype.getApiPaths=function(){return tEm};
WN.prototype.getExtension=function(f){return _.H(f,_.p9)};
WN.prototype.JSC$11056_buildRequest=function(f,S){S.token&&(f.continuation=S.token)};var cN=function(){};
_.q(cN,Rv);cN.prototype.getApiPaths=function(){return KQX};
cN.prototype.getExtension=function(f){return _.H(f,_.p9)};
cN.prototype.JSC$11056_buildRequest=function(f,S){f.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";S.token&&(f.fetchCommentsParams={continuation:S.token})};var lf=function(){};
_.q(lf,Rv);lf.prototype.getApiPaths=function(){return c0o};
lf.prototype.getExtension=function(f){return _.H(f,jH1)};
lf.prototype.JSC$11056_buildRequest=function(f,S,B){B=B===void 0?{}:B;S.createReplyParams&&(f.createReplyParams=S.createReplyParams);S.commentText&&(f.commentText=_.ac(S.commentText));B.comment_text&&(f.commentText=B.comment_text);B.image_blob_id&&(f.imageAttachment={encryptedBlobId:B.image_blob_id});B.botguard_response&&(f.botguardResponse=B.botguard_response)};
_.y3.Object.defineProperties(lf.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var fr=function(){};
_.q(fr,Rv);fr.prototype.getApiPaths=function(){return lrX};
fr.prototype.getExtension=function(f){return _.H(f,_.roN)};
fr.prototype.JSC$11056_buildRequest=function(f,S,B){B=B===void 0?{}:B;S.createCommentParams&&(f.createCommentParams=S.createCommentParams);S.commentText&&(f.commentText=_.ac(S.commentText));S.videoPositionMention&&(f.videoPositionMention=S.videoPositionMention);S.sources&&(f.sources=S.sources);B.comment_text&&(f.commentText=B.comment_text);B.attached_video_id?f.videoAttachment={videoId:B.attached_video_id}:B.poll_options?f.pollAttachment={choices:B.poll_options}:B.image_blob_id?f.imageAttachment=
{encryptedBlobId:B.image_blob_id}:B.shared_post_id&&(f.sharedPostAttachment={postId:B.shared_post_id});B.access_restrictions&&typeof B.access_restrictions==="number"&&(S=B.access_restrictions,f.accessRestrictions={restriction:S!==1&&S===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});B.botguard_response&&(f.botguardResponse=B.botguard_response)};
_.y3.Object.defineProperties(fr.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ow=function(){};
_.q(ow,Rv);ow.prototype.getApiPaths=function(){return zkm};
ow.prototype.getExtension=function(f){return _.H(f,sV7)};
ow.prototype.JSC$11056_buildRequest=function(f,S,B){S.commentText&&(f.replyText=_.ac(S.commentText));B.comment_text&&(f.replyText=B.comment_text);f.updateReplyParams=S.updateReplyParams};
_.y3.Object.defineProperties(ow.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var SS=function(){};
_.q(SS,Rv);SS.prototype.getApiPaths=function(){return Rk7};
SS.prototype.getExtension=function(f){return _.H(f,xI7)};
SS.prototype.JSC$11056_buildRequest=function(f,S,B){S.commentText&&(f.commentText=_.ac(S.commentText));B.comment_text&&(f.commentText=B.comment_text);f.updateCommentParams=S.updateCommentParams};
_.y3.Object.defineProperties(SS.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Bc=function(){};
_.q(Bc,Rv);Bc.prototype.getApiPaths=function(){return Xl8};
Bc.prototype.getExtension=function(f){return _.H(f,Ph$)};
Bc.prototype.JSC$11056_buildRequest=function(f,S){S.settings&&(f.settings=S.settings)};var G2=function(){};
_.q(G2,Rv);G2.prototype.getApiPaths=function(){return hH6};
G2.prototype.getExtension=function(f){return _.H(f,Bpi)};
G2.prototype.JSC$11056_buildRequest=function(f,S){S.channelCreationToken&&(f.channelCreationToken=S.channelCreationToken);S.source&&(f.source=S.source)};var gw=function(){};
_.q(gw,Rv);gw.prototype.getApiPaths=function(){return Wi7};
gw.prototype.getExtension=function(f){return _.H(f,ehN)};
gw.prototype.JSC$11056_buildRequest=function(f,S,B){B=B===void 0?{}:B;if(B.name&&(B.given_name||B.family_name))f=new _.dO("channel creation cannot set both GAIA and YouTube names",S),_.xH(f);else{if(S.zeroStepChannelCreationParams){if(!B.comment_text){f=new _.dO("zero_step_create_comment_params but no zero_step_texts",S);_.xH(f);return}f.zeroStepChannelCreationParams=S.zeroStepChannelCreationParams;f.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(f.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
B.comment_text,B.botguard_response&&(f.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=B.botguard_response))}f.channelCreationToken=S.channelCreationToken;B.given_name&&(f.givenName=B.given_name);B.family_name&&(f.familyName=B.family_name);S.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(f.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(B.name||B.handle||B.avatar_url||B.encryptedBlobId||B.isNameChanged!==void 0||B.isHandleChanged!==void 0||B.isDefaultProfilePhoto!==
void 0||B.obakeImageSource)f.overrideChannelCreationParams={},B.name&&(f.overrideChannelCreationParams.name=B.name),B.handle&&(f.overrideChannelCreationParams.handle=B.handle),B.avatar_url&&(f.overrideChannelCreationParams.avatarUrl=B.avatar_url),B.encryptedBlobId&&(f.overrideChannelCreationParams.blobEncryptionId=B.encryptedBlobId),B.enableIdentityForAllChannelCreationDialog&&(B.encryptedBlobId?f.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
B.isDefaultProfilePhoto!==void 0&&(f.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=B.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),B.isNameChanged!==void 0&&(f.overrideChannelCreationParams.identityForAllChannelCreationNameTag=B.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),B.isHandleChanged!==
void 0&&(f.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=B.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),B.obakeImageSource&&(f.overrideChannelCreationParams.obakeImageSourceType=B.obakeImageSource))}};var eS=function(){};
_.q(eS,Rv);eS.prototype.getApiPaths=function(f){return(f=this.getExtension(f))&&f.status==="DISLIKE"?eHL:f&&f.status==="INDIFFERENT"?Z5g:LQX};
eS.prototype.getExtension=function(f){return _.H(f,_.aY)};
eS.prototype.JSC$11056_buildRequest=function(f,S){S.target&&(f.target=S.target);if(S=this.getParams(S))f.params=S};
eS.prototype.getParams=function(f){switch(f==null?void 0:f.status){case "DISLIKE":return f.dislikeParams;case "INDIFFERENT":return f.removeLikeParams;default:return f==null?void 0:f.likeParams}};var bS=function(){};
_.q(bS,Rv);bS.prototype.getApiPaths=function(){return S08};
bS.prototype.getExtension=function(f){return _.H(f,A5m)};
bS.prototype.JSC$11056_buildRequest=function(f,S){S.settingItemId&&(f.settingItemId=S.settingItemId);S.stringValue!=null&&S.stringValue!==void 0?f.newValue={stringValue:S.stringValue}:S.intValue?f.newValue={intValue:S.intValue}:S.boolValue!==null&&S.boolValue!==void 0?f.newValue={boolValue:S.boolValue}:(f=new _.dO("Unknown value type for SetSettingEndpoint.",S),_.xH(f))};var mL=function(){};
_.q(mL,Rv);mL.prototype.getApiPaths=function(){return G7m};
mL.prototype.getExtension=function(f){return _.H(f,eGm)||void 0};
mL.prototype.JSC$11056_buildRequest=function(f,S,B){B=B===void 0?{}:B;S.channelIds&&(f.channelIds=S.channelIds);S.siloName&&(f.siloName=S.siloName);S.params&&(f.params=S.params);B.botguardResponse&&(f.botguardResponse=B.botguardResponse);B.feature&&(f.clientFeature=B.feature)};
_.y3.Object.defineProperties(mL.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var z2=function(){};
_.q(z2,Rv);z2.prototype.getApiPaths=function(){return eki};
z2.prototype.getExtension=function(f){return _.H(f,Nxm)||void 0};
z2.prototype.JSC$11056_buildRequest=function(f,S){S.channelIds&&(f.channelIds=S.channelIds);S.siloName&&(f.siloName=S.siloName);S.params&&(f.params=S.params)};
_.y3.Object.defineProperties(z2.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Rw=function(f){this.shareClientParamsProvider=f};
_.q(Rw,Rv);Rw.prototype.getApiPaths=function(){return qjL};
Rw.prototype.getExtension=function(f){return _.H(f,TFN)||_.H(f,_.Fn7)||_.H(f,hCm)};
Rw.prototype.JSC$11056_buildRequest=function(f,S){S.serializedShareEntity&&(f.serializedSharedEntity=S.serializedShareEntity);if(S.clientParamIdentifier){var B;if((B=this.shareClientParamsProvider)==null?0:B.clientParams.has(S.clientParamIdentifier)){B=this.shareClientParamsProvider;S=S.clientParamIdentifier;var G=B.clientParams.get(S);G&&B.clientParams.delete(S);f.clientParams=G}}};
Rw[oN]=[Yg$];var ww=function(){};
_.q(ww,Rv);ww.prototype.getApiPaths=function(){return Uwo};
ww.prototype.getExtension=function(f){return _.H(f,ibm)};
ww.prototype.JSC$11056_buildRequest=function(f,S){S.params&&(f.params=S.params)};var hu=function(){};
_.q(hu,Rv);hu.prototype.getApiPaths=function(){return b5i};
hu.prototype.getExtension=function(f){return _.H(f,vUv)};
hu.prototype.JSC$11056_buildRequest=function(f,S){S.dismissal&&(f.items=[S.dismissal])};
_.y3.Object.defineProperties(hu.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var T2=function(){};
_.q(T2,Rv);T2.prototype.getApiPaths=function(){return xmX};
T2.prototype.getExtension=function(f){return _.H(f,_.IQ)||void 0};
T2.prototype.JSC$11056_buildRequest=function(f,S,B){f.feedbackTokens=[];S.feedbackToken&&f.feedbackTokens.push(S.feedbackToken);if(S=S.cpn||B.cpn)f.feedbackContext={cpn:S};f.isFeedbackTokenUnencrypted=!!B.is_feedback_token_unencrypted;f.shouldMerge=!1;B.extra_feedback_tokens&&(f.shouldMerge=!0,f.feedbackTokens=f.feedbackTokens.concat(B.extra_feedback_tokens))};
_.y3.Object.defineProperties(T2.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var FR=function(){};
_.q(FR,Rv);FR.prototype.getApiPaths=function(){return xmX};
FR.prototype.getExtension=function(f){return _.H(f,_.Fh)};
FR.prototype.JSC$11056_buildRequest=function(f,S,B){B.feedback_tokens&&(f.feedbackTokens=B.feedback_tokens,f.shouldMerge=!0)};
_.y3.Object.defineProperties(FR.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var V8=function(){};
_.q(V8,Rv);V8.prototype.getApiPaths=function(){return xmX};
V8.prototype.getExtension=function(f){return _.H(f,BBM)};
V8.prototype.JSC$11056_buildRequest=function(f,S){S.undoToken&&(f.feedbackTokens=[S.undoToken]);S.isUndoTokenUnencrypted&&(f.isFeedbackTokenUnencrypted=S.isUndoTokenUnencrypted)};
_.y3.Object.defineProperties(V8.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ju=function(){};
_.q(Ju,Rv);Ju.prototype.getApiPaths=function(){return Vym};
Ju.prototype.getExtension=function(f){return _.H(f,Vsg)};
Ju.prototype.JSC$11056_buildRequest=function(f,S){S.nextEndpoint&&_.H(S.nextEndpoint,_.pg)?f.nextEndpoint={urlEndpoint:_.H(S.nextEndpoint,_.pg)}:S.nextEndpoint&&_.H(S.nextEndpoint,_.t2)&&(f.nextEndpoint={watchEndpoint:_.H(S.nextEndpoint,_.t2)});S.setRacy&&(f.setRacy=S.setRacy);S.setControvercy&&(f.setControvercy=S.setControvercy)};var Pc=function(f){this.JSC$15753_storeWithEntities=f};
_.q(Pc,Rv);Pc.prototype.getApiPaths=function(){return zH1};
Pc.prototype.getExtension=function(f){return _.H(f,C48)};
Pc.prototype.JSC$11056_buildRequest=function(f,S){S.flowId&&(f.flowId=S.flowId);S.targetId&&(f.targetId=S.targetId);S.continuation&&(f.continuation=S.continuation);var B=S.flowStateEntityKey;if(S.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&B&&this.JSC$15753_storeWithEntities){var G;if(S=(G=this.JSC$15753_storeWithEntities.getState())==null?void 0:G.entities)if(G=_.mW(B).entityType,G=_.w9(S,G,B))f.flowState=G,f.flowStateEntityKey=B}};
_.y3.Object.defineProperties(Pc.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
Pc[oN]=[Tq];var RU1=function(){};
_.q(RU1,Rv);_.e=RU1.prototype;_.e.getApiPaths=function(){return O5i};
_.e.JSC$11063_getStoreKey=function(){return _.ZT("guide")};
_.e.getRequestConfig=function(){var f=this.JSC$11063_getStoreKey(),S;f&&(S={storeStrategy:{storeKey:f}});return S};
_.e.isNavigationCommand=function(){return!0};
_.e.getExtension=function(f){return _.H(f,_.Fh)};
_.e.JSC$11056_buildRequest=function(f){f.fetchLiveState=!0};var vc=function(){};
_.q(vc,Rv);vc.prototype.getApiPaths=function(){return NYX};
vc.prototype.getExtension=function(f){return _.H(f,$Ij)};
vc.prototype.JSC$11056_buildRequest=function(){};var Kr=function(){};
_.q(Kr,Rv);Kr.prototype.getApiPaths=function(){return ME8};
Kr.prototype.getExtension=function(f){return _.H(f,QHL)};
Kr.prototype.JSC$11056_buildRequest=function(){};var dw=function(){};
_.q(dw,Rv);dw.prototype.getApiPaths=function(){return Iro};
dw.prototype.getExtension=function(f){return _.H(f,_.p9)};
dw.prototype.JSC$11056_buildRequest=function(f,S){S.token&&(f.continuation=S.token);var B,G;f==null||(B=f.context)==null||(G=B.user)==null||delete G.onBehalfOfUser};
dw.prototype.getRequestConfig=function(f){var S={},B;if(((B=this.getExtension(f))==null?void 0:B.sessionIndex)!==void 0){var G;S={authStrategy:{sessionIndex:(G=this.getExtension(f))==null?void 0:G.sessionIndex}}}return S};var iS=function(){};
_.q(iS,Rv);iS.prototype.JSC$11056_getRequest=function(f){var S=this.getExtension(f),B=f="";if(S==null?0:S.popup)f="true";if(S==null?0:S.disableSignout)B="true";S={};return{input:"/getAccountSwitcherEndpoint",requestShell:M5("/getAccountSwitcherEndpoint","GET",(S["X-YouTube-Delegation-Context"]=_.nL("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),S["X-YouTube-Account-Switcher-Popup"]=f,S["X-YouTube-Account-Switcher-Disable-Signout"]=B,S)),innerTubeRequest:{}}};
iS.prototype.getApiPaths=function(){return[]};
iS.prototype.getExtension=function(f){return _.H(f,_.zMQ)};
iS.prototype.JSC$11056_buildRequest=function(){};var Hc=function(){};
_.q(Hc,Rv);Hc.prototype.JSC$11056_getRequest=function(f){var S="/cross_account_channel_transfer";(f=this.getExtension(f))&&(S=hY9(S,{target_session:f.targetSessionIndex,source_rapt:f.sourceRapt,rapt:f.targetRapt}));return{input:S,requestShell:M5(S,"GET"),innerTubeRequest:{}}};
Hc.prototype.getApiPaths=function(){return[]};
Hc.prototype.getExtension=function(f){return _.H(f,Hz1)};
Hc.prototype.JSC$11056_buildRequest=function(){};var qW=function(){};
_.q(qW,Rv);qW.prototype.getApiPaths=function(){return RH1};
qW.prototype.isNavigationCommand=function(){return!0};
qW.prototype.getExtension=function(f){return _.H(f,_.Fh)};
qW.prototype.JSC$11056_buildRequest=function(f){var S=_.K2().get("gsml","");S&&(f.safetyModeLockerObfuscatedGaiaId=S);f.userInterfaceTheme=_.xG(!0);_.Et()?f.deviceTheme="DEVICE_THEME_SELECTED":_.ekM()?f.deviceTheme="DEVICE_THEME_SUPPORTED":f.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var $l=function(){};
_.q($l,Rv);$l.prototype.getApiPaths=function(){return Iro};
$l.prototype.getExtension=function(f){return _.H(f,qy$)};
$l.prototype.JSC$11056_buildRequest=function(f,S){if(S&&S.requestType&&(f.requestType=S.requestType,S.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||S.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var B=S.nextUrl;B&&(_.FIN(B)||Wf(B))&&(f.nextNavendpoint={urlEndpoint:{url:B}})}S&&S.channelSwitcherQuery&&(f.channelSwitcherQuery=S.channelSwitcherQuery);S&&S.triggerChannelCreation&&(f.triggerChannelCreation=S.triggerChannelCreation);var G;if(S==null?0:(G=S.contentOwnerConfig)==
null?0:G.externalContentOwnerId)f.contentOwnerConfig=S.contentOwnerConfig;f.callCircumstance=S&&S.requestType&&S.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var g,b;S=f==null?void 0:(g=f.context)==null?void 0:(b=g.user)==null?void 0:b.onBehalfOfUser;if(S!==void 0){f.obfuscatedSelectedGaiaId=S;var z,X;f==null||(z=f.context)==null||(X=z.user)==null||delete X.onBehalfOfUser}var w,F;if(g=f==null?void 0:(w=f.context)==null?void 0:(F=w.user)==null?
void 0:F.serializedDelegationContext)f.selectedSerializedDelegationContext=g};var Q8=function(){};
_.q(Q8,Rv);Q8.prototype.getApiPaths=function(){return H5m};
Q8.prototype.getExtension=function(f){return _.H(f,vj8)};
Q8.prototype.JSC$11056_buildRequest=function(f,S){S.profileOwnerExternalChannelId&&(f.profileOwnerExternalChannelId=S.profileOwnerExternalChannelId);S.profileCardContext&&(f.profileCardContext=S.profileCardContext)};var Yl=function(){};
_.q(Yl,Rv);Yl.prototype.getApiPaths=function(){return CO$};
Yl.prototype.getExtension=function(f){return _.H(f,VnN)};
Yl.prototype.JSC$11056_buildRequest=function(f,S){S.params&&(f.params=S.params)};var rw=function(){};
_.q(rw,Rv);rw.prototype.getApiPaths=function(){return y0L};
rw.prototype.getExtension=function(f){return _.H(f,_.OuN)};
rw.prototype.JSC$11056_buildRequest=function(f,S){if(S=S.createBroadcastRequest)f.useMasks=S.useMasks,f.broadcastType=S.broadcastType,f.broadcastSource=S.broadcastSource,f.broadcastMetadata=S.broadcastMetadata,f.broadcastMetadataMask=S.broadcastMetadataMask,f.videoMetadata=S.videoMetadata,f.videoMetadataMask=S.videoMetadataMask,f.liveChatSettingsUpdate=S.liveChatSettingsUpdate,f.liveChatSettingsUpdateMask=S.liveChatSettingsUpdateMask,f.cloneVideoId=S.cloneVideoId,f.cloneWithOverrides=S.cloneWithOverrides,
f.targetEntity=S.targetEntity,f.scheduledRedirectMetadata=S.scheduledRedirectMetadata};var jS=function(){};
_.q(jS,Rv);jS.prototype.getApiPaths=function(){return fC8};
jS.prototype.getExtension=function(f){return _.H(f,rq7)};
jS.prototype.JSC$11056_buildRequest=function(f,S,B){B=B===void 0?{}:B;S.params&&(f.params=S.params);B.questionText&&(f.questionText=B.questionText);B.optionText&&B.optionText.length>0&&(f.optionText=B.optionText)};var Op=function(){};
_.q(Op,Rv);Op.prototype.getApiPaths=function(){return BQ8};
Op.prototype.getExtension=function(f){return _.H(f,Qto)};
Op.prototype.JSC$11056_buildRequest=function(f,S){S.params&&(f.params=S.params)};var xl=function(){};
_.q(xl,Rv);xl.prototype.getApiPaths=function(){return FQo};
xl.prototype.getExtension=function(f){return _.H(f,i8m)};
xl.prototype.JSC$11056_buildRequest=function(f,S){S.params&&(f.params=S.params)};var Ep=function(){};
_.q(Ep,Rv);Ep.prototype.getApiPaths=function(){return Ji7};
Ep.prototype.getExtension=function(f){return _.H(f,H8N)};
Ep.prototype.JSC$11056_buildRequest=function(f,S,B){S.params&&(f.params=S.params);S.continuation&&(f.continuation=S.continuation);B.currentPlayerState&&B.currentPlayerState.playerOffsetMs&&(f.currentPlayerState={playerOffsetMs:B.currentPlayerState.playerOffsetMs.toString()})};var Lr=function(){};
_.q(Lr,Rv);Lr.prototype.getApiPaths=function(){return P_1};
Lr.prototype.getExtension=function(f){return _.H(f,dMi)};
Lr.prototype.JSC$11056_buildRequest=function(f,S,B){S.params&&(f.params=S.params);B.continuation&&(f.continuation=B.continuation);"hidden"in B&&(f.webClientInfo={isDocumentHidden:B.hidden});B.isInvalidationTimeoutRequest&&(f.isInvalidationTimeoutRequest=B.isInvalidationTimeoutRequest);B.invalidationPayload&&(S=K5m(_.Rg(l0(B.invalidationPayload))),f.invalidationPayloadLastPublishAtUsec=DI(S,2));B.reloadActionPanel&&(f.reloadActionPanel=B.reloadActionPanel);B.fullReload&&(f.fullReload=B.fullReload);
B.currentPlayerState&&(f.currentPlayerState=B.currentPlayerState)};var kl=function(){};
_.q(kl,Rv);kl.prototype.getApiPaths=function(){return kbi};
kl.prototype.getExtension=function(f){return _.H(f,YTm)};
kl.prototype.JSC$11056_buildRequest=function(f,S){f.params=S.params};var nr=function(){};
_.q(nr,Rv);nr.prototype.getApiPaths=function(){return Vji};
nr.prototype.getExtension=function(f){return _.H(f,E9o)};
nr.prototype.JSC$11056_buildRequest=function(f,S){S.params&&(f.params=S.params)};var sp=function(){};
_.q(sp,Rv);sp.prototype.getApiPaths=function(){return vk8};
sp.prototype.getExtension=function(f){return _.H(f,LnN)};
sp.prototype.JSC$11056_buildRequest=function(f,S){S.params&&(f.params=S.params)};var Dn=function(){};
_.q(Dn,Rv);Dn.prototype.getApiPaths=function(){return nkN};
Dn.prototype.getExtension=function(f){return _.H(f,jtN)};
Dn.prototype.JSC$11056_buildRequest=function(f,S){S.params&&(f.params=S.params)};var Iw=function(){};
_.q(Iw,Rv);Iw.prototype.getApiPaths=function(){return Dmg};
Iw.prototype.getExtension=function(f){return _.H(f,O8j)};
Iw.prototype.JSC$11056_buildRequest=function(f,S){S.params&&(f.params=S.params)};var Up=function(){};
_.q(Up,Rv);Up.prototype.getApiPaths=function(){return tjm};
Up.prototype.getExtension=function(f){return _.H(f,v9X)};
Up.prototype.JSC$11056_buildRequest=function(f,S){S.params&&(f.params=S.params)};var Cr=function(){};
_.q(Cr,Rv);Cr.prototype.getApiPaths=function(){return ffm};
Cr.prototype.getExtension=function(f){return _.H(f,_.xMm)};
Cr.prototype.JSC$11056_buildRequest=function(f,S,B){B=B===void 0?{}:B;S.params&&(f.params=S.params);B.client_message_id&&(f.clientMessageId=B.client_message_id);B.recaptcha_token&&(f.recaptchaToken=B.recaptcha_token);B.rich_message&&B.rich_message.text_segments?(S=B.rich_message.text_segments.map(function(G){var g={};G.text&&(g.text=G.text);G.emoji_id&&(g.emojiId=G.emoji_id);return g}),f.richMessage={textSegments:S}):B.message&&(f.message=B.message);
B.currentPlayerState&&(f.currentPlayerState=B.currentPlayerState)};var pr=function(){};
_.q(pr,Rv);pr.prototype.getApiPaths=function(){return oNN};
pr.prototype.getExtension=function(f){return _.H(f,EoN)};
pr.prototype.JSC$11056_buildRequest=function(f,S){S.params&&(f.params=S.params)};var Au=function(){};
_.q(Au,Rv);Au.prototype.getApiPaths=function(){return gNN};
Au.prototype.getExtension=function(f){return _.H(f,kh6)};
Au.prototype.JSC$11056_buildRequest=function(f,S,B){S.isUserInitiated&&(f.isUserInitiated=S.isUserInitiated);S.initiationSource&&(f.initiationSource=S.initiationSource);B.locationInfo&&(f.context.client.locationInfo=B.locationInfo)};var NW=function(){};
_.q(NW,Rv);NW.prototype.getApiPaths=function(){return svX};
NW.prototype.getExtension=function(f){return _.H(f,xij)};
NW.prototype.JSC$11056_buildRequest=function(f,S,B){S.metadataUpdateRequest&&(S=S.metadataUpdateRequest,f.encryptedVideoId=S.encryptedVideoId,S.liveChat&&(S=S.liveChat,f.liveChat||(f.liveChat={}),S.performAsExternalChannelId&&(f.liveChat.performAsExternalChannelId=S.performAsExternalChannelId),S.source&&(f.liveChat.source=S.source)));var G;if(B==null?0:(G=B.liveChat)==null?0:G.liveChatSettings)f.liveChat||(f.liveChat={}),B=B.liveChat.liveChatSettings,f.liveChat.newLiveChatSettings=B,f.liveChat.newLiveChatSettingsMask||
(f.liveChat.newLiveChatSettingsMask={}),B.emojiReactionSet&&(f.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var MW=function(){};
_.q(MW,Rv);MW.prototype.getApiPaths=function(){return TPm};
MW.prototype.getExtension=function(f){return _.H(f,_.Mx6)};
MW.prototype.JSC$11056_buildRequest=function(f,S,B){B.continuation?f.continuation=B.continuation:S.videoId&&(f.videoId=S.videoId);B.clientParams&&(f.clientParams=B.clientParams)};var Zn=function(){};
_.q(Zn,Rv);Zn.prototype.getApiPaths=function(){return KQX};
Zn.prototype.getExtension=function(f){return _.H(f,_.kf)};
Zn.prototype.JSC$11056_buildRequest=function(f,S){f.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";f.fetchCommentsParams={};S.videoId&&(f.fetchCommentsParams.encryptedVideoId=S.videoId);S.postId&&(f.fetchCommentsParams.postId=S.postId);S.externalChannelId&&(f.fetchCommentsParams.externalChannelId=S.externalChannelId);S.linkedCommentId&&(f.fetchCommentsParams.linkedCommentId=S.linkedCommentId);(0,_.$v.isEmpty)(f.fetchCommentsParams)&&delete f.fetchCommentsParams};var tu=function(){};
_.q(tu,Rv);tu.prototype.getApiPaths=function(){return Gq};
tu.prototype.JSC$11056_buildRequest=function(f){f.browseId="FEnotifications_inbox"};
tu.prototype.getExtension=function(f){return _.H(f,_.Fh)};var uS=function(){};
_.q(uS,Rv);uS.prototype.getApiPaths=function(){return KQX};
uS.prototype.JSC$11056_buildRequest=function(f,S){S.signal==="GET_NOTIFICATIONS_MENU"&&(f.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");S.ctoken&&(f.ctoken=S.ctoken)};
var Xrg=function(){};
_.q(Xrg,uS);Xrg.prototype.getExtension=function(f){return _.H(f,_.Fh)};
var wr6=function(){};
_.q(wr6,uS);wr6.prototype.getExtension=function(f){return _.H(f,h26)};var aw=function(){};
_.q(aw,Rv);aw.prototype.getApiPaths=function(){return Yj7};
aw.prototype.getExtension=function(f){return _.H(f,_.Fh)};
aw.prototype.JSC$11056_buildRequest=function(){};var y8=function(){};
_.q(y8,Rv);y8.prototype.getApiPaths=function(){return ICL};
y8.prototype.getExtension=function(f){return _.H(f,Ux$)||void 0};
y8.prototype.JSC$11056_buildRequest=function(f,S){S.params&&(f.params=S.params);S.secondaryParams&&(f.secondaryParams=S.secondaryParams)};var Wc=function(){};
_.q(Wc,Rv);Wc.prototype.getApiPaths=function(){return Umm};
Wc.prototype.getExtension=function(f){return _.H(f,J_X)};
Wc.prototype.JSC$11056_buildRequest=function(f,S){S.undo&&(f.undo=S.undo);S.serializedOptOut&&(f.serializedOptOut=S.serializedOptOut);S.serializedRecordInteractionsRequest&&(f.serializedRecordInteractionsRequest=S.serializedRecordInteractionsRequest)};var cc=function(){};
_.q(cc,Rv);cc.prototype.getApiPaths=function(){return AiN};
cc.prototype.getExtension=function(f){return _.H(f,P66)};
cc.prototype.JSC$11056_buildRequest=function(f,S){S.serializedInteractionsRequest&&(f.serializedRecordNotificationInteractionsRequest=S.serializedInteractionsRequest)};var lS=function(){};
_.q(lS,Rv);lS.prototype.getApiPaths=function(){return JbK};
lS.prototype.getExtension=function(f){return _.H(f,JF9)};
lS.prototype.JSC$11056_buildRequest=function(f,S,B){S=S===void 0?{}:S;B=B===void 0?{}:B;S.videoId?f.videoId=S.videoId:S.playlistId&&(f.playlistId=S.playlistId);var G,g=(G=S.offlineWebClientEligibility)!=null?G:B.offlineWebClientEligibility;g&&(f.offlineWebClientEligibility=g);var b;if(G=(b=S.preferredFormatType)!=null?b:B.preferredFormatType)f.preferredFormatType=G;var z;if(b=(z=S.lastOfflineQualitySettingsSavedMs)!=null?z:B.lastOfflineQualitySettingsSavedMs)f.lastOfflineQualitySettingsSavedMs=b;
S.params&&(f.params=S.params)};var fm=function(){};
_.q(fm,Rv);fm.prototype.getApiPaths=function(){return c1};
fm.prototype.getExtension=function(f){return _.H(f,_.p9)};
fm.prototype.JSC$11056_buildRequest=function(f,S,B){B=B===void 0?{}:B;S.token&&(f.continuation=S.token);B.formData&&(f.formData=B.formData)};var oU=function(){};
_.q(oU,Rv);oU.prototype.getApiPaths=function(){return c1};
oU.prototype.getExtension=function(f){return _.H(f,$im)};
oU.prototype.JSC$11056_buildRequest=function(f,S,B){B=B===void 0?{}:B;f.continuation=B.continuation};var Sl=function(){};
_.q(Sl,Rv);Sl.prototype.getApiPaths=function(){return c1};
Sl.prototype.getExtension=function(f){return _.H(f,_.DW)};
Sl.prototype.JSC$11056_buildRequest=function(f,S){var B,G=S.panelIdentifier||((B=S.identifier)==null?void 0:B.tag);G&&(f.panelId=G);var g;if((g=S.globalConfiguration)==null?0:g.params){var b;f.params=(b=S.globalConfiguration)==null?void 0:b.params}};
_.y3.Object.defineProperties(Sl.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Bg=function(){};
_.q(Bg,Rv);Bg.prototype.getApiPaths=function(){return c1};
Bg.prototype.getExtension=function(f){return _.H(f,zG7)};
Bg.prototype.JSC$11056_buildRequest=function(f,S){S.panelLoadingStrategy&&hqG(f,S.panelLoadingStrategy)};var Gp=function(){};
_.q(Gp,Rv);Gp.prototype.getApiPaths=function(){return c1};
Gp.prototype.getExtension=function(f){return _.H(f,jN$)};
Gp.prototype.JSC$11056_buildRequest=function(f,S){S.loadingStrategy&&hqG(f,S.loadingStrategy)};var g6=function(){};
_.q(g6,Rv);g6.prototype.getApiPaths=function(){return c1};
g6.prototype.getExtension=function(f){return _.H(f,_.db)};
g6.prototype.JSC$11056_buildRequest=function(f,S){S.panelLoadingStrategy&&hqG(f,S.panelLoadingStrategy)};var el=function(){};
_.q(el,Rv);el.prototype.getApiPaths=function(){return c1};
el.prototype.getExtension=function(f){return _.H(f,OTo)};
el.prototype.JSC$11056_buildRequest=function(f,S){var B,G=(B=S.contentSourcePanelIdentifier)==null?void 0:B.tag;G&&(f.panelId=G);var g;if((g=S.globalConfiguration)==null?0:g.params){var b;f.params=(b=S.globalConfiguration)==null?void 0:b.params}};var bV=function(){};
_.q(bV,Rv);bV.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
bV.prototype.getExtension=function(f){return _.H(f,xsL)};
bV.prototype.JSC$11056_buildRequest=function(f,S){S.params&&(f.params=S.params)};var mf=function(){};
_.q(mf,Rv);mf.prototype.getApiPaths=function(){return hkX};
mf.prototype.getExtension=function(f){return _.H(f,k68)};
mf.prototype.JSC$11056_buildRequest=function(f,S){S.externalChannelId&&(f.externalChannelId=S.externalChannelId);S.superChatAction&&(f.superChatAction=S.superChatAction);S.superStickersAction&&(f.superStickersAction=S.superStickersAction)};var zp=function(){};
_.q(zp,Rv);zp.prototype.getApiPaths=function(){return X47};
zp.prototype.getExtension=function(f){return _.H(f,qeN)||_.H(f,vOQ)};
zp.prototype.JSC$11056_buildRequest=function(f,S){S.videoIds?f.videoIds=S.videoIds:S.videoId&&(f.videoIds=[S.videoId]);S.playlistId&&(f.playlistId=S.playlistId);S.params&&(f.params=S.params);f.excludeWatchLater=!1};var RU=function(){};
_.q(RU,Rv);RU.prototype.getApiPaths=function(){return okX};
RU.prototype.getExtension=function(f){return _.H(f,_.pW)};
RU.prototype.JSC$11056_buildRequest=function(f,S,B){B.create_playlist_title?f.title=B.create_playlist_title:S.title&&(f.title=S.title);if(B.create_playlist_privacy_status&&typeof B.create_playlist_privacy_status==="number"){a:{var G=B.create_playlist_privacy_status;if(G!==0){if(G===1){G="PUBLIC";break a}if(G===2){G="UNLISTED";break a}}G="PRIVATE"}f.privacyStatus=G}else S.privacyStatus&&(f.privacyStatus=S.privacyStatus);B.create_playlist_description&&(f.description=B.create_playlist_description);S.videoIds&&
(f.videoIds=S.videoIds);S.params&&(f.params=S.params);S.sourcePlaylistId&&(f.sourcePlaylistId=S.sourcePlaylistId)};var Xi=function(){};
_.q(Xi,Rv);Xi.prototype.getApiPaths=function(){return Gb1};
Xi.prototype.getExtension=function(f){return _.H(f,Dx6)};
Xi.prototype.JSC$11056_buildRequest=function(f,S){f.playlistId=S.playlistId};var w6=function(){};
_.q(w6,Rv);w6.prototype.getApiPaths=function(){return dmL};
w6.prototype.getExtension=function(f){return _.H(f,Xym)};
w6.prototype.JSC$11056_buildRequest=function(f,S){S.playlistId&&(f.playlistId=S.playlistId);S.params&&(f.params=S.params)};var hM=function(){};
_.q(hM,Rv);hM.prototype.getApiPaths=function(){return p41};
hM.prototype.getExtension=function(f){return _.H(f,_.nW)||void 0};
hM.prototype.JSC$11056_buildRequest=function(f,S){S.actions&&(f.actions=S.actions);S.params&&(f.params=S.params);S.playlistId&&(f.playlistId=S.playlistId)};var Tp=function(){};
_.q(Tp,Rv);_.e=Tp.prototype;_.e.getApiPaths=function(){return NQ1};
_.e.getExtension=function(f){return _.H(f,_.QW)};
_.e.JSC$11056_buildRequest=function(f,S){S.videoId&&(f.playerRequest={videoId:S.videoId},S.playerParams&&(f.playerRequest.params=S.playerParams),S.racyCheckOk&&(f.playerRequest.racyCheckOk=!!S.racyCheckOk),S.contentCheckOk&&(f.playerRequest.contentCheckOk=!!S.contentCheckOk));S.params&&(f.params=S.params);S.inputType&&(f.inputType=S.inputType);f.disablePlayerResponse=!0};
_.e.getRequestConfig=function(f){var S;(f=this.JSC$11063_getStoreKey(f))&&(S={storeStrategy:{storeKey:f}});_.K("web_log_reels_ticks")&&(S=S||{},S.requestTick="r_wrs",S.responseTick="r_wrr");return S};
_.e.JSC$11063_getStoreKey=function(f){f=this.getExtension(f);if(_.K("shorts_controller_retrieve_seedless_sequence_v2")){if((f==null?void 0:f.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.ZT("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if((_.K("web_prefetch_riw_for_next_video")||_.K("web_shorts_prefetch_service_enabled"))&&f!=null&&f.videoId){var S={videoId:f.videoId};f.params&&(S.params=f.params);return _.ZT("reel_item_watch",S)}};var Fi=function(){};
_.q(Fi,Rv);_.e=Fi.prototype;_.e.getApiPaths=function(){return Mj7};
_.e.getExtension=function(f){return _.H(f,_.QW)};
_.e.JSC$11056_buildRequest=function(f,S,B){B=B===void 0?{}:B;f.sequenceParams=S.sequenceParams;var G;((G=B)==null?0:G.contentPlaybackContext)&&_.K("web_shorts_prefetch_service_enabled")&&(f.playbackContext={contentPlaybackContext:B.contentPlaybackContext})};
_.e.JSC$11063_getStoreKey=function(f){if(_.K("shorts_controller_retrieve_seedless_sequence_v2")&&(f=this.getExtension(f),f==null?0:f.sequenceParams))return _.ZT("reel_watch_sequence",{sequenceParams:f.sequenceParams})};
_.e.getRequestConfig=function(f){f=this.JSC$11063_getStoreKey(f);var S;f&&(S={storeStrategy:{storeKey:f}});_.K("reel_watch_sequence_request_log_ticks")&&(S=S||{},S.requestTick="r_wsrs",S.responseTick="r_wsrr",S.processorTick="r_wsrp");return S};
var VX=function(){};
_.q(VX,Rv);VX.prototype.getApiPaths=function(){return Mj7};
VX.prototype.getExtension=function(f){return _.H(f,_.p9)};
VX.prototype.JSC$11056_buildRequest=function(f,S,B){B=B===void 0?{}:B;S.token&&(f.continuation=S.token);var G;((G=B)==null?0:G.contentPlaybackContext)&&_.K("web_shorts_prefetch_service_enabled")&&(f.playbackContext={contentPlaybackContext:B.contentPlaybackContext})};
VX.prototype.getRequestConfig=function(f){f=this.JSC$11063_getStoreKey(f);var S;f&&(S={storeStrategy:{storeKey:f}});_.K("reel_watch_sequence_request_log_ticks")&&(S=S||{},S.requestTick="r_wsrs",S.responseTick="r_wsrr",S.processorTick="r_wsrp");return S};var JM=function(){};
_.q(JM,Rv);JM.prototype.getApiPaths=function(){return mmm};
JM.prototype.getExtension=function(f){return _.H(f,_.UFL)};
JM.prototype.JSC$11056_buildRequest=function(f,S,B){B=B===void 0?{}:B;S.flagAction&&(f.action=S.flagAction);S.flagRequestType&&(f.flagRequestType=S.flagRequestType);S.additionalDetailCheckboxChecked&&(f.additionalDetailCheckboxChecked=S.additionalDetailCheckboxChecked);S.legalCheckboxChecked&&(f.legalCheckboxChecked=S.legalCheckboxChecked);S={};B.flag_issue_type!==void 0&&(S.issue=B.flag_issue_type);B.flag_affiliation!==void 0&&(S.affiliation=B.flag_affiliation);B.flag_full_name&&(S.fullName=B.flag_full_name);
Object.keys(S).length&&(f.legalReportDetails=S);if(B.flag_description||B.text)f.userComments=B.flag_description||B.text;S={};B.minutes!==void 0&&B.seconds!==void 0&&(S.minutes=B.minutes,S.seconds=B.seconds);B.vss_id&&(S.vssId=B.vss_id);Object.keys(S).length&&(f.videoReportDetails=S);S={};B.video_ids&&(S.videoIds=B.video_ids);B.impersonated_channel_url&&(S.impersonatedChannelUrl=B.impersonated_channel_url);Object.keys(S).length&&(f.channelAbuseReportDetails=S)};
_.y3.Object.defineProperties(JM.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Pg=function(){};
_.q(Pg,Rv);Pg.prototype.getApiPaths=function(){return TQj};
Pg.prototype.getExtension=function(f){return _.H(f,wEj)};
Pg.prototype.JSC$11056_buildRequest=function(f,S){S.blockedForKidsContent&&(f.blockedForKidsContent=S.blockedForKidsContent)};var vg=function(){};
_.q(vg,Rv);vg.prototype.getApiPaths=function(){return uwj};
vg.prototype.getExtension=function(f){return _.H(f,PfQ)};
vg.prototype.JSC$11056_buildRequest=function(f,S,B){f.params=S.params;B.impersonated_channel_url&&(f.impersonatedChannelUrl=B.impersonated_channel_url)};var Km=function(){};
_.q(Km,Rv);Km.prototype.getApiPaths=function(){return Eki};
Km.prototype.getExtension=function(f){return _.H(f,_.hrX)};
Km.prototype.JSC$11056_buildRequest=function(f,S){S.items&&(f.items=S.items);S.kidGaiaId&&(f.kidGaiaId=S.kidGaiaId)};var d6=function(){};
_.q(d6,Rv);d6.prototype.getApiPaths=function(){return w4N};
d6.prototype.getExtension=function(f){return _.H(f,_.is7)};
d6.prototype.JSC$11056_buildRequest=function(f,S){S.params&&(f.params=S.params);S.targetId&&(f.targetId=S.targetId)};var iV=function(){};
_.q(iV,Rv);iV.prototype.getApiPaths=function(){return cim};
iV.prototype.getExtension=function(f){return _.H(f,T8L)};
iV.prototype.JSC$11056_buildRequest=function(f,S){S.externalVideoId&&(f.externalVideoId=S.externalVideoId);S.query&&(f.query=S.query);S.sourceTimelines&&(f.sourceTimelines=S.sourceTimelines)};var Hg=function(){};
_.q(Hg,Rv);Hg.prototype.getApiPaths=function(){return lCm};
Hg.prototype.getExtension=function(f){return _.H(f,_.p9)||void 0};
Hg.prototype.JSC$11056_buildRequest=function(f,S){S.token&&(f.continuation=S.token)};
_.hUN=function(){};
_.q(_.hUN,Rv);_.e=_.hUN.prototype;_.e.getApiPaths=function(){return lCm};
_.e.getExtension=function(f){return _.H(f,_.Ht)||void 0};
_.e.isNavigationCommand=function(){return!0};
_.e.JSC$11063_getStoreKey=function(f,S){S=S===void 0?{}:S;if(!S.disableCache&&(f=this.getExtension(f))&&f.query)return S={query:f.query},f.params&&(S.params=f.params),_.ZT("search",S)};
_.e.JSC$11056_buildRequest=function(f,S,B){S.query&&(f.query=S.query);S.params&&(f.params=S.params);if(!_.K("web_forward_suggest_stats_killswitch")){var G=_.H(S,G6X);G&&(f.suggestStats=G)}var g;!_.K("kevlar_searchbox_stats_killswitch")&&((g=B.tempData)==null?0:g.gs_l)&&!_.H(S,G6X)&&(f.webSearchboxStatsUrl="/search?oq="+(B.tempData.oq||"")+"&gs_l="+B.tempData.gs_l);var b;if((b=B.tempData)==null?0:b.entityMid)S=f.suggestionSearchParams||{},S.entityMid=B.tempData.entityMid,f.suggestionSearchParams=S;
_.K("enable_desktop_vdcbg_components")&&(B=_.K2().getFlag(186),f.inlineSettingStatus=B?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.e.getRequestConfig=function(f,S){S=S===void 0?{}:S;f=this.JSC$11063_getStoreKey(f,S);var B;f&&(B={storeStrategy:{storeKey:f}});_.K("web_log_search_ticks_ks")||(B=B||{},B.requestTick="sr_s",B.responseTick="sr_r");return B};var q8=function(){};
_.q(q8,Rv);q8.prototype.getApiPaths=function(){return $mv};
q8.prototype.getExtension=function(f){return _.H(f,y5i)};
q8.prototype.JSC$11056_buildRequest=function(f,S){S.serializedGetSharingProviderDataParams&&(f.serializedGetSharingProviderDataParams=S.serializedGetSharingProviderDataParams)};var $3=function(){};
_.q($3,Rv);$3.prototype.getApiPaths=function(){return Qv1};
$3.prototype.getExtension=function(f){return _.H(f,k4X)};
$3.prototype.JSC$11056_buildRequest=function(f,S){S.endpoint&&(f.endpoint=S.endpoint);S.action&&(f.action=S.action)};var QX=function(){};
_.q(QX,Rv);QX.prototype.getApiPaths=function(){return gkj};
QX.prototype.getExtension=function(f){return _.H(f,I67)};
QX.prototype.JSC$11056_buildRequest=function(f,S){f.videoId=S.videoId;S.scheduledRedirectMetadataSourceVideoId&&(f.scheduledRedirectMetadata={sourceVideoId:S.scheduledRedirectMetadataSourceVideoId})};var Y3=function(){};
_.q(Y3,Rv);Y3.prototype.getApiPaths=function(){return BP6};
Y3.prototype.getExtension=function(f){return _.H(f,_.xG$)};
Y3.prototype.JSC$11056_buildRequest=function(f,S){f.params=S.params;f.correctionText=S.correctionText};var r6=function(){};
_.q(r6,Rv);r6.prototype.getApiPaths=function(){return FP9};
r6.prototype.getExtension=function(f){return _.H(f,_.FRN)};
r6.prototype.JSC$11056_buildRequest=function(f,S){S.params&&(f.params=S.params);f.searchQuery=S.searchQuery;f.languageCode=S.languageCode;f.kind=S.kind;f.name=S.name;f.externalVideoId=S.externalVideoId};var jl=function(){};
_.q(jl,Rv);jl.prototype.getApiPaths=function(){return P3v};
jl.prototype.getExtension=function(f){return _.H(f,ZW6)};
jl.prototype.JSC$11056_buildRequest=function(f,S){S.params&&(f.params=S.params)};var Oh=function(f){this.JSC$16028_storeWithEntities=f};
_.q(Oh,Rv);Oh.prototype.getApiPaths=function(){return uo7};
Oh.prototype.getExtension=function(f){return _.H(f,u1N)||_.H(f,yv6)};
Oh.prototype.JSC$11056_buildRequest=function(f,S,B){B.client_data&&(f.clientData=B.client_data);if(S.commerceActionConfig){var G=S.commerceActionConfig;S=G.actionId;G=G.commerceActionParams;S&&(f.actionId=S);G&&(f.commerceActionParams=G)}else{var g=S.actionId,b=S.commerceActionParams;B=S.entityKeys;g&&(f.actionId=g);b&&(f.commerceActionParams=b);var z;S=(G=this.JSC$16028_storeWithEntities)==null?void 0:(z=G.getState())==null?void 0:z.entities;if(B&&S){G=[];z=_.m(B);for(B=z.next();!B.done;B=z.next())if(g=
B.value,B=_.mW(g).entityType,g=_.w9(S,B,g))b={},G.push((b[B]=g,b));f.entityMutationPayloads=G}}};
Oh.prototype.getRequestConfig=function(f){var S,B=(S=_.H(f,u1N))==null?void 0:S.requestSequenceType;if(B&&f.clickTrackingParams&&B!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:f.clickTrackingParams,sequenceType:B}}};
Oh[oN]=[Tq];var x3=function(){};
_.q(x3,Rv);x3.prototype.getApiPaths=function(){return vNi};
x3.prototype.getExtension=function(f){return _.H(f,_.TY1)};
x3.prototype.JSC$11056_buildRequest=function(f,S){S.feedbackData&&(f.feedbackData=S.feedbackData);S.params&&(f.itemParams=S.params)};
_.y3.Object.defineProperties(x3.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Eh=function(){};
_.q(Eh,Rv);Eh.prototype.getApiPaths=function(){return K$$};
Eh.prototype.getExtension=function(f){return _.H(f,Fi$)};
Eh.prototype.JSC$11056_buildRequest=function(f,S,B){B.payments_payload&&(f.paymentsPayload=B.payments_payload);B.offer_params&&(f.offerParams=B.offer_params);S.transactionParams&&(f.transactionParams=S.transactionParams)};var Lm=function(){};
_.q(Lm,Rv);Lm.prototype.getApiPaths=function(){return dfX};
Lm.prototype.getExtension=function(f){return _.H(f,_.VEX)};
Lm.prototype.JSC$11056_buildRequest=function(f,S,B){B=B===void 0?{}:B;S.buybucketParams&&(f.buybucketData={params:S.buybucketParams},S.stickerParams?f.buybucketData.stickerParams=S.stickerParams:(B.rich_chat_message?f.buybucketData.richChatMessage=B.rich_chat_message:B.chat_message_text&&(f.buybucketData.chatMessageText=B.chat_message_text),B.purchase_price_micros&&(f.buybucketData.purchasePriceMicros=B.purchase_price_micros.toString())));S.donationAmountMicros&&(f.tipAmountMicros=S.donationAmountMicros,
S.tipParams&&(f.tipParams=S.tipParams));S.offerParams&&(f.offerParams=S.offerParams);S.productData&&(f.productData=S.productData);S.transactionParams&&(f.transactionParams=S.transactionParams)};var k3=function(){};
_.q(k3,Rv);k3.prototype.getApiPaths=function(){return iVX};
k3.prototype.getExtension=function(f){return _.H(f,vZj)};
k3.prototype.JSC$11056_buildRequest=function(f,S){S.updateFopParams&&(f.updateFopParams=S.updateFopParams)};var nm=function(){};
_.q(nm,Rv);nm.prototype.getApiPaths=function(){return HVm};
nm.prototype.getExtension=function(f){return _.H(f,_.mv)};
nm.prototype.JSC$11056_buildRequest=function(f,S){S.couponCode&&(f.couponCode=S.couponCode);S.params&&(f.itemParams=S.params)};var sh=function(){};
_.q(sh,Rv);sh.prototype.getApiPaths=function(){return q0o};
sh.prototype.getExtension=function(f){return _.H(f,_.aSj)};
sh.prototype.JSC$11056_buildRequest=function(f,S,B){B=B===void 0?{}:B;S.params&&(f.params=S.params);B.ctk&&(f.clientToken=B.ctk)};var DB=function(f){this.JSC$16063_storeWithEntities=f};
_.q(DB,Rv);DB.prototype.getApiPaths=function(){return $f1};
DB.prototype.getExtension=function(f){return _.H(f,_.NG)};
DB.prototype.JSC$11056_buildRequest=function(f,S,B){B.purchase_price_micros&&(f.productData={pdgData:{purchasePriceMicros:B.purchase_price_micros.toString()}},B.rich_chat_message&&(f.productData.pdgData.richChatMessage=B.rich_chat_message),B.currency_code&&(f.productData.pdgData.currencyCode=B.currency_code));S.transactionParams&&(f.transactionParams=S.transactionParams);S.clientLocationContext&&(f.clientLocationContext=S.clientLocationContext);B.payments_payload&&(f.paymentsPayload=B.payments_payload);
B.funds_guarantee_callback_client_data&&(f.fundsGuaranteeCallbackClientData=B.funds_guarantee_callback_client_data);var G,g;B=(G=this.JSC$16063_storeWithEntities)==null?void 0:(g=G.getState())==null?void 0:g.entities;if(S.entityKeys&&B){G=[];S=_.m(S.entityKeys);for(g=S.next();!g.done;g=S.next()){var b=g.value;g=_.mW(b).entityType;if(b=_.w9(B,g,b)){var z={};G.push((z[g]=b,z))}}f.entityMutationPayloads=G}};
DB[oN]=[Tq];var IU=function(){};
_.q(IU,Rv);IU.prototype.getApiPaths=function(){return Q5N};
IU.prototype.getExtension=function(f){return _.H(f,J0g)};
IU.prototype.JSC$11056_buildRequest=function(f,S,B){B=B===void 0?{}:B;B.backend_analytics&&(f.serializedBackendAnalyticsEvent=B.backend_analytics);S.offerParams&&(f.offerParams=S.offerParams)};var Uh=function(){};
_.q(Uh,Rv);Uh.prototype.getApiPaths=function(){return HVm};
Uh.prototype.getExtension=function(f){return _.H(f,eTG)};
Uh.prototype.JSC$11056_buildRequest=function(f,S){S.params&&(f.itemParams=S.params)};var Cm=function(){};
_.q(Cm,Rv);Cm.prototype.getApiPaths=function(){return Y0m};
Cm.prototype.getExtension=function(f){return _.H(f,_.oZL)};
Cm.prototype.JSC$11056_buildRequest=function(f,S,B){B.resume_time_ms&&(f.resumeTimeMs=B.resume_time_ms);S.pauseParams&&(f.pauseParams=S.pauseParams)};var pm=function(){};
_.q(pm,Rv);pm.prototype.getApiPaths=function(){return rW6};
pm.prototype.getExtension=function(f){return _.H(f,_.POi)};
pm.prototype.JSC$11056_buildRequest=function(f,S,B){B=B===void 0?{}:B;B.c&&(f.redeemCode=B.c);B.rd&&(f.riskData=B.rd);B.ctk&&(f.clientToken=B.ctk)};var AM=function(){};
_.q(AM,Rv);AM.prototype.getApiPaths=function(){return j5N};
AM.prototype.getExtension=function(f){return _.H(f,_.SX8)};
AM.prototype.JSC$11056_buildRequest=function(f,S){S.resumeParams&&(f.resumeParams=S.resumeParams)};var N8=function(f,S){this.clientName=f;this.defaultExpirationDelayMs=S};
N8.prototype.put=function(f,S){var B=this,G;return _.R(function(g){G=Object.assign({},S.data);G.key=f;G.clientName=B.clientName;G.expireTimestampMs===void 0&&(G.expireTimestampMs=(Math.round((0,_.fO)())+B.defaultExpirationDelayMs).toString());return g.return(B.putInternal(f,G))})};
N8[oN]=[PM,YOm];var TGL=function(){N8.apply(this,arguments);this.JSC$16093_responseStore=new Map};
_.q(TGL,N8);_.e=TGL.prototype;_.e.get=function(f){var S=this;return _.R(function(B){return B.return(mX(S,f))})};
_.e.putInternal=function(f,S){var B=this,G,g,b;return _.R(function(z){G=B.defaultExpirationDelayMs;S.expireTimestampMs&&(G=Number(S.expireTimestampMs)-Math.round((0,_.fO)()),g=_.Gt("mweb_override_response_store_expiration_ms"),g>0&&g<G&&(G=g));b=setTimeout(function(){B.remove(f)},G);
B.JSC$16093_responseStore.set(f,{entryData:S,timer:b});_.TT(z)})};
_.e.remove=function(f){var S=this;return _.R(function(B){FKg(S,f);_.TT(B)})};
_.e.removeAll=function(){var f=this;return _.R(function(S){f.JSC$16093_responseStore.forEach(function(B){clearTimeout(B.timer)});
f.JSC$16093_responseStore.clear();_.TT(S)})};
_.e.has=function(f){return!!this.JSC$16093_responseStore.get(f)};
_.e.getKeys=function(){return this.JSC$16093_responseStore.keys()};
var mX=function(f,S){if(f=f.JSC$16093_responseStore.get(S))return new _.br(f.entryData)},FKg=function(f,S){var B=f.JSC$16093_responseStore.get(S);
B&&(clearTimeout(B.timer),f.JSC$16093_responseStore.delete(S))};var TkV;var Jcj=function(f,S,B){N8.call(this,f,S);this.token=B};
_.q(Jcj,N8);_.e=Jcj.prototype;_.e.get=function(f){var S=this,B,G;return _.R(function(g){return g.nextAddress==1?_.h(g,VUx(S.token),2):g.nextAddress!=3?(B=g.yieldResult,_.h(g,B.get("ResponseStore",[f,S.clientName]),3)):(G=g.yieldResult)?g.return(new _.br(G)):g.return(void 0)})};
_.e.putInternal=function(f,S){var B=this,G;return _.R(function(g){if(g.nextAddress==1)return _.h(g,VUx(B.token),2);G=g.yieldResult;return _.h(g,G.put("ResponseStore",S),0)})};
_.e.remove=function(f){var S=this,B;return _.R(function(G){if(G.nextAddress==1)return _.h(G,VUx(S.token),2);B=G.yieldResult;return G.return(B.delete("ResponseStore",[f,S.clientName]))})};
_.e.removeAll=function(){var f=this,S;return _.R(function(B){if(B.nextAddress==1)return _.h(B,VUx(f.token),2);S=B.yieldResult;return _.h(B,TZ$(S,IDBKeyRange.only(f.clientName)),0)})};
_.e.has=function(){throw Error("Wi");};_.M8=new _.Sn("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var VJN=function(f){var S;this.stateTagsData=(S=f.responseContext)==null?void 0:S.stateTags},JhN=function(f){var S;
return((S=f.stateTagsData)==null?void 0:S.stateTagsModified)||[]};var Pyg;Pyg=function(f){this.JSC$16106_responseStore=f};
_.uG=function(f,S,B){if(!_.K("state_tags_killswitch")){var G=new VJN(S);if(JhN(G).length>0){var g=f.JSC$16106_responseStore.getKeys();g=_.m(g);for(var b=g.next();!b.done;b=g.next()){b=b.value;var z=mX(f.JSC$16106_responseStore,b);if(z){var X=_.wL(z);a:{var w=void 0;z=JhN(G);X=((w=(new VJN(X)).stateTagsData)==null?void 0:w.relevantStateTags)||[];w=_.m(X);for(X=w.next();!X.done;X=w.next())if(X=X.value,X.stateTag!=null&&z.includes(X.stateTag)&&X.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){z=
!0;break a}z=!1}z&&FKg(f.JSC$16106_responseStore,b)}}}}var F;G=(F=S.responseContext)==null?void 0:F.maxAgeSeconds;_.K("web_prefetch_riw_for_next_video")&&!G&&S.status==="REEL_ITEM_WATCH_STATUS_SUCCEEDED"&&(G=3600);B&&G&&Number(G)>0&&(S=R8(S,G),f.JSC$16106_responseStore.put(B,new _.br(S)))};
Pyg.prototype.handleResponse=function(f,S){if(!S)throw Error("Xi");var B,G;S=(B=S.config)==null?void 0:(G=B.storeStrategy)==null?void 0:G.storeKey;_.uG(this,f,S)};
Pyg[oN]=[_.eG];_.R8T=new _.Sn("STORE_RESPONSE_PROCESSOR_TOKEN");var vL6=function(f){this.JSC$16109_responseStore=f};
vL6.prototype.handleResponse=function(f,S){if(S.input.match(_.lC(Mj7))){var B;if(f==null?0:(B=f.entries)==null?0:B.length)for(f=_.m(f.entries),S=f.next();!S.done;S=f.next()){B=S.value.command;var G=void 0;S=(G=_.H(B,_.QW))==null?void 0:G.unserializedPrefetchData;if(!B||!S)break;G=(new Tp).JSC$11063_getStoreKey(B);var g=_.H(S,ez8),b=void 0,z=void 0,X=void 0,w=_.Gt("web_shorts_prefetch_service_ttl_seconds")>0?_.Gt("web_shorts_prefetch_service_ttl_seconds"):Number((X=(b=g)==null?void 0:(z=b.responseContext)==
null?void 0:z.maxAgeSeconds)!=null?X:3600);G&&w>0&&(g=R8(g,w),this.JSC$16109_responseStore.put(G,new _.br(g)));B=(new Ji).JSC$11063_getStoreKey(B);S=_.H(S,NFm);b=g=G=void 0;z=_.Gt("web_shorts_prefetch_service_ttl_seconds")>0?_.Gt("web_shorts_prefetch_service_ttl_seconds"):Number((b=(G=S)==null?void 0:(g=G.responseContext)==null?void 0:g.maxAgeSeconds)!=null?b:3600);B&&z>0&&(S=R8(S,z),this.JSC$16109_responseStore.put(B,new _.br(S)))}}};
vL6[oN]=[_.eG];var KKi=function(f){this.innertubeTransportService=f};
KKi[oN]=[_.DU];var dXj=new _.Sn("SUBMIT_API_SERVICE_TOKEN");var ZB=function(){this.scheduler=_.kj()},iA8;
ZB.prototype.pause=function(){throw Error("Yi");};
ZB.prototype.resume=function(){throw Error("Yi");};
ZB.prototype.queue=function(f){var S=this,B=_.aa(),G=_.q6(this.scheduler,function(){try{var g;if(_.JZ.instance)var b=_.JZ.instance;else{var z=new _.dO("Error: Unexpected uninitialized CommandHandler.");_.xH(z);b=void 0}(g=b)==null||g.resolveCommand(f.command);B.resolve()}catch(X){B.reject(X)}});
B.promise.thenCatch(function(g){g instanceof _.y1&&S.scheduler.cancelJob(G)});
return B.promise};
ZB.prototype.queueAll=function(f){var S=new Map;f=_.m(f);for(var B=f.next();!B.done;B=f.next())B=B.value,S.set(B.id,this.queue(B));return S};var q5v=function(f,S){var B=this;this.taskModel=f;this.onTaskCancelledCallback=S;this.resolver=_.aa();f=f.proto.prefetchConfig;if(!f)throw Error("Zi");if(!f.prefetchAction)throw Error("$i");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(G){G instanceof _.y1&&(HAi(B,B.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),B.onTaskCancelledCallback(B.taskModel.id,B.jobId),B.tick("pcc"));
throw G;});
this.timerName=this.taskModel.id;_.L2(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)},$Xv=function(f){switch(f.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;
case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}},HAi=function(f,S){_.EL({prefetchInfo:{cancellationReason:S}},f.timerName)};
q5v.prototype.tick=function(f){_.kT(f,void 0,this.timerName)};var uV=function(){var f=this;this.scheduler=_.kj();this.maxInflightTasks=_.Gt("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.Gt("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new DoX;this.onTaskCancelled=function(S,B){B&&f.scheduler.cancelJob(B);Qko(f,S);tM(f,3)}},Y57=function(){uV.instance||(uV.instance=new uV);
return uV.instance};
uV.prototype.pause=function(){this.prefetchCoordinatorState=0};
uV.prototype.resume=function(){tM(this,0)};
uV.prototype.queue=function(f){f=rhj(this,f);tM(this,1);return f};
uV.prototype.queueAll=function(f){var S=new Map;f=_.m(f);for(var B=f.next();!B.done;B=f.next())B=B.value,S.set(B.id,rhj(this,B));tM(this,1);return S};
var rhj=function(f,S){var B=f.allPrefetchTasks.get(S.id);if(B)return B.cancellablePromise;try{var G=new q5v(S,f.onTaskCancelled)}catch(b){return _.xe(b)}B=G;B.tick("pcq");var g={prefetchInfo:{taskId:B.taskModel.id,isPrefetch:!0,fetchAction:B.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:B.taskModel.command.clickTrackingParams}};B.taskModel.csn&&(g.clientScreenNonce=B.taskModel.csn);_.EL(g,B.timerName);f.allPrefetchTasks.set(S.id,G);f.drainingHeap.insert(-$Xv(G),G);return G.cancellablePromise},
tM=function(f,S){f.prefetchCoordinatorState===S&&(f.prefetchCoordinatorState=2,jkL(f))},jkL=function(f){for(var S={};f.prefetchCoordinatorState!==0;S={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(f.inflightPrefetchTasks.size>=f.maxInflightTasks){f.prefetchCoordinatorState=3;break}S.prefetchTask$jscomp$1=f.drainingHeap.remove();if(!S.prefetchTask$jscomp$1){f.prefetchCoordinatorState=1;break}S.taskId$jscomp$3=S.prefetchTask$jscomp$1.taskModel.id;if(f.allPrefetchTasks.has(S.taskId$jscomp$3)){var B=-1;f.coordinatorTimeoutMs>0&&(B=_.q6(f.scheduler,function(G){return function(){aU(f,G.taskId$jscomp$3,Error("aj"))}}(S),f.coordinatorTimeoutMs));
f.inflightPrefetchTasks.set(S.taskId$jscomp$3,B);if(!f.JSC$16127_commandHandler){if(!_.JZ.instance){aU(f,S.taskId$jscomp$3,Error("bj"));continue}f.JSC$16127_commandHandler=_.JZ.instance}a:switch(S.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":B=1;break a;default:B=0}S.prefetchTask$jscomp$1.jobId=f.scheduler.addJob(function(G){return function(){G.prefetchTask$jscomp$1.tick("pcr");try{f.JSC$16127_commandHandler.resolveCommand(G.prefetchTask$jscomp$1.taskModel.command)||
aU(f,G.taskId$jscomp$3,Error("cj"))}catch(g){aU(f,G.taskId$jscomp$3,g)}}}(S),B,0)}}},OA$=function(f,S){(S=Qko(f,S))!=null&&(S.resolver.resolve(),S.tick("pce"));
tM(f,3)},aU=function(f,S,B){(S=Qko(f,S,B))!=null&&(S.resolver.reject(B),S.tick("pcc"),HAi(S,"CANCELLATION_REASON_ERROR"),Math.random()<=_.Gt("prefetch_coordinator_error_logging_sampling_rate")&&(B=new _.dO("Prefetch Command failed.",S.taskModel.id,B.message),_.xH(B)));
tM(f,3)},Qko=function(f,S,B){var G=f.allPrefetchTasks.get(S);
G?((B=f.inflightPrefetchTasks.get(S))&&B!==-1&&f.scheduler.cancelJob(B),f.inflightPrefetchTasks.delete(S),f.allPrefetchTasks.delete(S)):_.Lg(new _.dO("Unexpected missing prefetch task when deleting task.",S,B==null?void 0:B.message));return G};var xXg=function(f,S,B,G,g){this.id=f;this.triggerOn=S;this.cancelOn=B;this.command=G;this.proto=g};
_.y3.Object.defineProperties(xXg.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var ELL=function(){this.JSC$16132_prefetchCoordinator=Y57();iA8||(iA8=new ZB);this.defaultCoordinator=iA8},LKm;
ELL.getInstance=function(){LKm||(LKm=new ELL);return LKm};
ELL.prototype.get=function(f){switch(f){case 0:return this.JSC$16132_prefetchCoordinator;default:return this.defaultCoordinator}};var yX=function(){this.coordinatorSupplier=ELL.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},sk8=function(f){var S=_.xc()||void 0,B=Object.keys(kBL)[0];
if(B){var G=f.taskIdByTriggerId.get(B);if(G!=null){f.taskIdByTriggerId.delete(B);B=[];G=_.m(G);for(var g=G.next();!g.done;g=G.next())if(g=f.tasks.get(g.value))S!=="UNDEFINED_CSN"&&(g.csn=S),B.push(g);B=K11(B);S=[];B=_.m(B);for(G=B.next();!G.done;G=B.next()){g=_.m(G.value);G=g.next().value;g=g.next().value;G=f.coordinatorSupplier.get(G).queueAll(g);G=_.m(G);var b=G.next();for(g={};!b.done;g={taskId$jscomp$9:void 0},b=G.next()){var z=_.m(b.value);b=z.next().value;z=z.next().value;g.taskId$jscomp$9=
b;b=z;S.push(g.taskId$jscomp$9);f.queuedPromisesByTask.set(g.taskId$jscomp$9,_.jA(b,function(X){return function(){nL1(f,X.taskId$jscomp$9)}}(g)))}}}}else _.Lg(new _.dO("Unexpected malformed TriggerEvent."))};
yX.prototype.trigger=function(f,S){var B=this,G=this.tasks.get(f);if(!G||this.queuedPromisesByTask.has(f))return!1;DXX(this,f,G.triggerOn);S!=="UNDEFINED_CSN"&&(G.csn=S);S=this.coordinatorSupplier.get(G.taskType).queue(G);this.queuedPromisesByTask.set(f,_.jA(S,function(){nL1(B,f)}));
return!0};
yX.prototype.cancel=function(f){var S=this.queuedPromisesByTask.get(f);if(S)S.cancel();else return nL1(this,f)};
var nL1=function(f,S){f.queuedPromisesByTask.delete(S);var B=f.tasks.get(S);if(!B)return!1;f.tasks.delete(S);DXX(f,S,B.triggerOn);(B=vBQ(B.cancelOn))&&(f=f.taskIdByCancelId.get(B))&&f.delete(S);return!0},DXX=function(f,S,B){(B=Object.keys(B)[0])&&(f=f.taskIdByTriggerId.get(B))&&f.delete(S)};var kBL={taskRegistered:{}},Wg=function(){yX.instance||(yX.instance=new yX);this.JSC$16141_taskManager=yX.instance};
_.q(Wg,IC);
Wg.prototype.resolveCommand=function(f){var S=this,B,G;return _.R(function(g){B=_.H(f,bW7);if((G=B)==null||!G.tasks){var b=new _.dO("RegisterTasksCommand is missing tasks.");_.xH(b);return g.return()}b=S.JSC$16141_taskManager;for(var z=_.m(B.tasks),X=z.next();!X.done;X=z.next())if(X=X.value,X=X.id&&X.triggerOn&&X.cancelOn&&X.command?new xXg(X.id,X.triggerOn,X.cancelOn,X.command,X):void 0,X){var w=Object.keys(X.triggerOn)[0];if(w){var F=vBQ(X.cancelOn);F?(b.tasks.set(X.id,X),b.taskIdByTriggerId.has(w)||b.taskIdByTriggerId.set(w,
new Set),b.taskIdByTriggerId.get(w).add(X.id),b.taskIdByCancelId.has(F)||b.taskIdByCancelId.set(F,new Set),b.taskIdByCancelId.get(F).add(X.id)):_.Lg(new _.dO("Unexpected malformed cancelOn field."))}else _.Lg(new _.dO("Unexpected malformed triggerOn field."))}else _.Lg(new _.dO("Unexpected malformed Task proto."));sk8(S.JSC$16141_taskManager);_.TT(g)})};var ImN={},UX7=(ImN.rendered={priority:0,callback:function(){var f={};f.numCpu=navigator.hardwareConcurrency;var S={};S.ramGb=_.S1.navigator.deviceMemory;var B={staticContext:{}};S.ramGb&&dKj(S.ramGb)&&(B.staticContext.memoryTotalKbytes=(S.ramGb*1048576).toString());f.numCpu&&dKj(f.numCpu)&&(B.staticContext.cpuCores=f.numCpu);if(_.K("web_enable_adaptive_appl_signal")){f={};S=_.Du("rses_dpj");var G=_.Du("rsef_dpj");S&&S>0&&G&&G>0&&(S=Math.ceil(G-S),S>0&&(f.loadLatency=S));f.loadLatency&&dKj(f.loadLatency)&&
(B.appL=f.loadLatency.toString())}_.jD("applicationStarted",B)}},ImN);var Cy7=new _.Sn("WINDOW_ON_ERROR"),prm=new _.Sn("ERROR_WEIGHT_MAPS"),Ah$=new _.Sn("INIT_ERROR");var NG8={},MJN=(NG8.initialized={priority:10,callback:function(f){f.injector.resolve(Ah$)()}},NG8);var ZAL=function(){},tJ6=function(){var f=_.U6("meta_logger_impl");
f||(f=new ZAL,_.WL("meta_logger_impl",f));return f},uK1=function(){tJ6().csiSubscriptionKey=mzj("meta_logging_csi_event",function(f){var S=f.timerName;
if(f=f.timelineData){_.L2(S,{startTime:f.startTime},S);f.infos&&_.EL(f.infos,S);for(var B=_.m(Object.keys(f.ticks)),G=B.next();!G.done;G=B.next())G=G.value,_.kT(G,f.ticks[G],S)}})};
ZAL.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&X2W(this.csiSubscriptionKey)};var amN={},yh1=(amN.initialized={priority:10,callback:function(){uK1()}},amN);var WK8=function(f,S){this.innertubeClientName=f;this.JSC$16157_prefCookie=S};
WK8.prototype.record=function(){if(_.K("web_li_record_binary_eval_tick")){var f=_.Du("rsef_dpj");var S=_.Du("rses_dpj");f=f!==void 0&&S!==void 0?Math.round(f-S):void 0;if(f!==void 0&&f>0){S=_.wQ(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var B=this.poolSize;if(!(S.valuesSeen>=1E9)){if(S.valuesSample.length<B)S.valuesSample.push(f);else{var G=Math.floor(Math.random()*(S.valuesSeen+1));G<B&&(S.valuesSample[G]=f)}S.valuesSeen+=1}_.Xw(this.storagePrefix+"-"+this.innertubeClientName,
S,2592E3);f=S.valuesSample;S=i1s(f);f=f.length<5?void 0:S<400?1:S<1700?2:3;f!==void 0&&(this.JSC$16157_prefCookie.set(this.cookiePrefix+this.innertubeClientName,f),this.JSC$16157_prefCookie.save())}}else _.hi(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$16157_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$16157_prefCookie.save()};
WK8[oN]=[PM,aB];var ch1=function(){WK8.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.q(ch1,WK8);var lmm=new _.Sn("PAGE_LOAD_TIME_TOKEN");var fN$=function(f){this.signal=f;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;f.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.q6(_.xJ,this.disableLoggingAndSendPayload,1E4)};
fN$.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.xJ.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),oQ$(this))};
var oQ$=function(f){var S=_.Of();if(S){var B={webClientComponentsData:{components:Array.from(f.ids,function(G){return{id:G}})}};
f.ids.clear();_.ik().visualElementStateChanged(S,B)}};var SVZ=new _.Sn("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var cg=function(f,S){this.JSC$16186_storeWithEntities=f;this.JSC$16186_commandHandler=S;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
cg.prototype.start=function(){this.JSC$16186_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
cg.prototype.observeDownloadingEntities=function(){var f=_.I9Q(this.JSC$16186_storeWithEntities.getState().entities).map(function(G){return UI9(G)});
if(f.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var S={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:rzV()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.B2(_.Jf("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$16186_commandHandler.resolveCommand(S)}this.downloadingEntities=f}else if(this.downloadingEntities.length){var B=DIN(this.JSC$16186_storeWithEntities.getState().entities).map(function(G){return UI9(G)});
this.downloadingEntities.filter(function(G){return B.includes(G)}).length&&(f={openPopupAction:gBW()},this.JSC$16186_commandHandler.resolveCommand(f));
this.downloadingEntities=[]}};
cg[oN]=[Tq,_.S7];var BWM;_.lV=function(f,S,B,G,g,b,z,X){this.JSC$16189_playerApiPromise=f;this.JSC$16189_commandHandler=S;this.JSC$16189_screenManager=B;this.offlineWebClientEligibility=G;this.JSC$16189_prefStorage=g;this.JSC$16189_actionRouter=b;this.entityTypeMap=z;this.JSC$16189_persistentStorePromiseAccessor=X;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
BWM=function(){var f=_.oy().resolve(_.lV),S;_.R(function(B){if(B.nextAddress==1)return f.downloadFailureListenerBound?B.return():_.h(B,f.JSC$16189_playerApiPromise,2);S=B.yieldResult;S.addEventListener("onOfflineOperationFailure",function(G){if(G.failureReason&&G.entityKey&&G.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(G.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var g=_.mW(G.entityKey).entityId;g&&f.JSC$16189_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
g)}else if(_.K("kevlar_woffle")){g=f.JSC$16189_commandHandler;var b=g.resolveCommand;G=G.failureReason;var z=_.Jf("TRANSFER_FAILED",void 0,"Download failed");G==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(z=_.Jf("STORAGE_FULL",void 0,"Storage full"));b.call(g,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.B2(z),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
f.downloadFailureListenerBound=!0;_.TT(B)})};
_.lV.prototype.deleteVideo=function(f,S){var B=this,G,g,b;return _.R(function(z){if(z.nextAddress==1)return _.h(z,B.JSC$16189_playerApiPromise,2);G=z.yieldResult;b={offlineLoggingData:{offlineDeleteReason:(g=S)!=null?g:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return _.h(z,G.queueOfflineAction(f,B.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",b),0)})};
_.lV.prototype.pauseVideoDownload=function(f){var S=this,B;return _.R(function(G){if(G.nextAddress==1)return _.h(G,S.JSC$16189_playerApiPromise,2);B=G.yieldResult;B.pauseVideoDownload(f);_.TT(G)})};
_.lV.prototype.resumeVideoDownload=function(f){var S=this,B;return _.R(function(G){if(G.nextAddress==1)return _.h(G,S.JSC$16189_playerApiPromise,2);B=G.yieldResult;return _.h(G,B.resumeVideoDownload(f),0)})};
_.lV[oN]=[_.ms,_.S7,_.Qz,SVZ,lj,le,L47,Tb];var GjZ=new _.Sn("DOWNLOAD_STATE_STORE_TOKEN");var gQu=function(f,S){this.JSC$16209_persistentStorePromiseAccessor=f;this.store=S;this.upliftCompletionResolver=new _.w3},mAu=function(){var f=_.oy().resolve(e1o),S;
_.R(function(B){switch(B.nextAddress){case 1:if(f.upliftImplPromise)return B.return(f.upliftImplPromise);_.zT(B,2);f.upliftImplPromise=bMe(f);return _.h(B,f.upliftImplPromise,4);case 4:f.upliftCompletionResolver.resolve();_.CN(B,3);break;case 2:throw S=_.hm(B),f.upliftCompletionResolver.reject(S),S;case 3:return B.return(f.upliftImplPromise)}})},bMe=function(f){var S,B,G;
return _.R(function(g){switch(g.nextAddress){case 1:return _.s6("LOGGED_IN")?_.h(g,f.JSC$16209_persistentStorePromiseAccessor(),2):g.return();case 2:S=g.yieldResult;if(!S)return _.kT("vdeur"),g.return();_.kT("vdeus");_.zT(g,3);return _.h(g,z1Y(S),5);case 5:B=g.yieldResult;f.store.dispatch(HsG(B));S.observe(function(b){qeA(f.store,b)});
_.CN(g,4);break;case 3:throw G=_.hm(g),_.kT("vdeur"),G;case 4:_.kT("vdeuc"),_.TT(g)}})},z1Y=function(f){var S;
return _.R(function(B){if(B.nextAddress==1)return _.h(B,jG9(f),2);S=B.yieldResult;return B.return(S.reduce(function(G,g){if(!g.data||!g.key||!g.entityType)return G;G[g.entityType]||(G[g.entityType]={});G[g.entityType][g.key]=g.data;return G},{}))})};
gQu[oN]=[Tb,_.C5];var e1o;e1o=new _.Sn("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.fG=new _.Sn("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var od=function(f,S){this.JSC$16212_persistentStorePromiseAccessor=f;this.transportService=S};
od.prototype.refresh=function(){var f=this,S,B,G,g;return _.R(function(b){if(b.nextAddress==1)return _.s6("LOGGED_IN")?_.h(b,f.JSC$16212_persistentStorePromiseAccessor(),2):b.return();if(b.nextAddress!=3)return(S=b.yieldResult)?_.h(b,Xis(S),3):b.return();if((B=b.yieldResult)&&!(Number(B.data.refreshTimestampMs||0)<(0,_.fO)()))return b.return();G={browseId:"SPaccount_downloads"};g=_.lC(Gq);_.sX(f.transportService,G,g).then(function(z){var X;if(S&&(z==null?void 0:(X=z.responseContext)==null?void 0:
X.maxAgeSeconds)!==0){var w;X=(z==null?void 0:(w=z.responseContext)==null?void 0:w.maxAgeSeconds)||604800;w=String(Math.floor((0,_.fO)())+X*1E3);S.put("service:downloads_settings:fallback",new _.br({innertubeResponse:z,refreshTimestampMs:w}))}});
_.TT(b)})};
od[oN]=[_.M8,_.DU];var S8=function(f,S){this.JSC$16216_playerPromise=f;this.store=S;this.started=!1};
S8.prototype.start=function(){var f=this,S;return _.R(function(B){if(B.nextAddress==1)return f.started?B.return():_.h(B,f.JSC$16216_playerPromise,2);S=B.yieldResult;S.addEventListener("onOrchestrationBecameLeader",f.updateIsLeader.bind(f,!0));S.addEventListener("onOrchestrationLostLeader",f.updateIsLeader.bind(f,!1));if(S.isOrchestrationLeader)f.updateIsLeader(S.isOrchestrationLeader());else{var G=new _.dO("Function isOrchestrationLeader is undefined",{"player.isReady":S.isReady(),"player.playVideo":S.playVideo?
"defined":"undefined"});_.xH(G);f.updateIsLeader(!1)}f.started=!0;_.TT(B)})};
S8.prototype.updateIsLeader=function(f){this.store.dispatch(_.ef({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:f}}))};
S8[oN]=[_.ms,_.C5];var R1O=function(f,S){this.networkStatusManager=f;this.JSC$16219_prefStoragePromise=S;this.redirectsToPreload=["https://youtube.com"]},X92=function(){var f=_.oy().resolve(R1O),S,B,G,g,b,z;
_.R(function(X){switch(X.nextAddress){case 1:return _.h(X,f.JSC$16219_prefStoragePromise,2);case 2:S=X.yieldResult;if(!(B=S)){X.jumpTo(3);break}return _.h(X,S.get("yt-redirect-prefetch-id"),4);case 4:B=X.yieldResult;case 3:if(B||!f.networkStatusManager.isNetworkAvailable())return X.return();G={cache:"reload",redirect:"manual"};g=_.m(f.redirectsToPreload);b=g.next();case 5:if(b.done){if(!S){X.jumpTo(0);break}return _.h(X,S.set("yt-redirect-prefetch-id",!0,86400),0)}z=b.value;_.zT(X,8);return _.h(X,
_.S1.fetch(z,G),10);case 10:_.CN(X,6);break;case 8:_.hm(X);case 6:b=g.next(),X.jumpTo(5)}})};var Bp=function(f){f?(this.container=f,this.containerWasInjected=!0):this.containerWasInjected=!1};
Bp.prototype.openDialog=function(f,S,B){var G=this,g;return _.R(function(b){(g=G.container)==null||g.openDialog(f,S,B);_.TT(b)})};
Bp.prototype.closeDialog=function(){var f=this,S;return _.R(function(B){(S=f.container)==null||S.closeDialog();_.TT(B)})};
Bp.prototype.isDialogOpen=function(){var f=this,S,B;return _.R(function(G){return G.return((B=(S=f.container)==null?void 0:S.isDialogOpen())!=null?B:!1)})};
Bp[oN]=[_.fN(hg6)];_.w9M=new _.Sn("POPUP_CONTROLLER_TOKEN");var h1z=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
h1z.prototype.registerPanel=function(f,S){if(f){this.panelMap.set(f,S);var B=this.pendingPanelResolvers.get(f);B&&(B.resolve(S),this.pendingPanelResolvers.delete(f))}};
h1z.prototype.getPanel=function(f){var S=this,B;return _.R(function(G){return(B=S.panelMap.get(f))?G.return(B):G.return(TW$(S,f))})};
var TW$=function(f,S){var B,G;return _.R(function(g){if(B=f.pendingPanelResolvers.get(S))return g.return(B.promise);G=new _.w3;f.pendingPanelResolvers.set(S,G);return g.return(G.promise)})},FxZ=function(f){h1z.call(this);
var S=this;this.popupController=f;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return S.panelMap.size}}};
_.q(FxZ,h1z);_.e=FxZ.prototype;_.e.getReloadContinuation=function(f){var S=this,B;return _.R(function(G){if(G.nextAddress==1)return _.h(G,S.getPanel(f),2);B=G.yieldResult;return G.return(B.getReloadContinuation())})};
_.e.showPanel=function(f,S,B,G,g,b,z){var X=this,w,F,V,J;return _.R(function(P){if(P.nextAddress==1){z&&X.updatePanelContinuationDatas.set(f,z);if((w=B)==null?0:(F=w.engagementPanelPopupPresentationConfig)==null?0:F.popupType){V=B.engagementPanelPopupPresentationConfig.popupType;g===void 0&&(g=document.body);var d=P.return,Q=X.popupController,x=Q.openPopup;a:switch(V){case "PANEL_POPUP_TYPE_DIALOG":var E="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":E="DROPDOWN";break a;default:throw Error("ej`"+
V);}return d.call(P,x.call(Q,f,S,E,g))}return _.h(P,X.getPanel(f),2)}J=P.yieldResult;(S||b)&&J.updatePanel(S,!1,G,b);J.showPanel(G);_.TT(P)})};
_.e.hidePanel=function(f){var S=this,B;return _.R(function(G){if(G.nextAddress==1)return _.h(G,S.getPanel(f),2);B=G.yieldResult;B.hidePanel();S.popupController.closePopup(f);_.TT(G)})};
_.e.isVisible=function(f,S){var B=this,G;return _.R(function(g){if(g.nextAddress==1)return S&&!B.panelMap.has(f)?g.return(!1):_.h(g,B.getPanel(f),2);G=g.yieldResult;return g.return(G.isVisible())})};
_.e.updatePanel=function(f,S,B,G,g,b){B=B===void 0?!1:B;var z=this,X;return _.R(function(w){if(w.nextAddress==1){if(!S&&!g)return w.return();b&&z.updatePanelContinuationDatas.set(f,b);return _.h(w,z.getPanel(f),2)}X=w.yieldResult;X.updatePanel(S,B,G,g);_.TT(w)})};
_.e.registerPanelContent=function(f,S){f&&this.panelContentMap.set(f,S)};
_.e.getPanelContent=function(f){return this.panelContentMap.get(f)};
_.e.getUpdatePanelContinuationData=function(f){return this.updatePanelContinuationDatas.get(f)};
FxZ[oN]=[_.w9M];var GI=function(f,S){this.innertubeTransportService=f;this.JSC$16235_screenManager=S},V12=function(f){var S;
return!((S=f.panelLoadingStrategy)==null||!S.requestTemplate)};
GI.prototype.makeRequest=function(f){var S=this,B,G;return _.R(function(g){switch(g.nextAddress){case 1:if(!V12(S)){g.jumpTo(2);break}_.zT(g,3);return _.h(g,_.uF(S.innertubeTransportService,f),5);case 5:return B=g.yieldResult,B?g.return(B.content):(_.xH(Error("fj")),g.return(void 0));case 3:G=_.hm(g),_.xH(G);case 2:return g.return(void 0)}})};
GI.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
GI.prototype.execute=function(f){var S=this,B,G,g,b,z,X,w,F,V,J;return _.R(function(P){if(P.nextAddress==1){B=f;G=B.data;g=B.fallbackVe;b=B.parentVe;z=B.createScreenConfig;X=B.renderFn;w=B.command;S.panelLoadingStrategy=G;var d,Q,x=((d=S.panelLoadingStrategy)==null?0:d.screenVe)?(Q=S.panelLoadingStrategy)==null?void 0:Q.screenVe:g;x&&_.Rh(S.JSC$16235_screenManager,x,b,z);return(F=S.getContent())?_.h(P,X(F),2):P.jumpTo(2)}return P.nextAddress!=4?V12(S)?_.h(P,S.makeRequest(w),4):P.return():(J=V=P.yieldResult)?
_.h(P,X(J),0):P.return()})};
GI[oN]=[_.DU,_.Qz];var gV=function(){};
gV.prototype.getContainer=function(){return _.Sw()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
gV.prototype.openSheet=function(f,S){var B=this,G,g,b,z,X,w;return _.R(function(F){switch(F.nextAddress){case 1:return G={stack:[],error:void 0,hasError:!1},_.zT(F,2,3),g=cv,_.h(F,B.isSheetOpen(),5);case 5:b=F.yieldResult;uM9(G,dpN(g));if(b){if(S&&B.currentTarget===S)return(z=B.getContainer())==null||z.closeSheet(),F.return();B.pendingData={data:f,target:OBj(B,S)};return F.return()}f.viewModel&&(f={viewModel:f.viewModel});(X=B.getContainer())==null||X.openSheet(f,S);B.currentTarget=S;case 3:_.Rs(F);
akW(G);_.wz(F,0);break;case 2:w=_.hm(F),G.error=w,G.hasError=!0,F.jumpTo(3)}})};
gV.prototype.closeSheet=function(){var f=this,S;return _.R(function(B){if(B.nextAddress==1)return _.h(B,(S=f.getContainer())==null?void 0:S.closeSheet(),2);if(B.nextAddress!=4)return f.currentTarget=void 0,f.pendingData?_.h(B,f.openSheet(f.pendingData.data,f.pendingData.target),4):B.jumpTo(0);f.pendingData=void 0;_.TT(B)})};
gV.prototype.isSheetOpen=function(){var f=this,S,B;return _.R(function(G){return G.return((B=(S=f.getContainer())==null?void 0:S.isSheetOpen())!=null?B:!1)})};
var OBj=function(f,S){if(!_.K("web_parent_target_for_sheets"))return S;var B,G;return(G=(B=f.getContainer())==null?void 0:B.getParentTarget(S))!=null?G:S};var Fg=window.documentPictureInPicture;var pi9=_.f4(["dark"]),Ac9=_.f4(["system-icons"]),Nkx=_.f4(["typography"]),MUA=_.f4(["lang"]),Z1N=_.f4(["style"]),DKN=_.f4(["dir"]),IqN=_.f4(["rounded-container"]),UKK=_.f4(["style"]),uUA=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],e8=function(f){this.JSC$16247_clientRoot=f;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
e8.prototype.openWindow=function(f){var S=this,B,G;return _.R(function(g){if(g.nextAddress==1)return window.documentPictureInPicture&&_.xQ()&&!S.currentPipWindow?_.h(g,(B=Fg?Fg:null)==null?void 0:B.requestWindow(f),2):g.return(!1);if(g.nextAddress!=3){G=g.yieldResult;if(!G)return g.return(!1);G.addEventListener("pagehide",function(){JsM(S)});
G.addEventListener("resize",S.handlePipWindowResize);S.pipWindowResizeDelay=new _.li(function(){S.currentPipWindow&&_.bW(S.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.Xr(S.currentPipWindow.innerWidth,S.currentPipWindow.innerHeight)])},G);
tUG(G);ycQ(G);return _.h(g,sGs(G),3)}if(!L1j())return g.return(!1);S.currentPipWindow=G;S.JSC$16247_eventForwarder=aqQ(G,S.JSC$16247_clientRoot);S.pipWindowResizeDelay.start();return g.return(!0)})};
e8.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var JsM=function(f){if(f.currentPipWindow){var S,B;(S=Fg?Fg:null)==null||(B=S.window)==null||B.close();f.currentPipWindow.removeEventListener("resize",f.handlePipWindowResize);var G;(G=f.pipWindowResizeDelay)==null||G.dispose();f.pipWindowResizeDelay=void 0;var g;(g=f.JSC$16247_eventForwarder)==null||g.stop();f.JSC$16247_eventForwarder=void 0;S=_.m(f.onCloseCallbacks);for(B=S.next();!B.done;B=S.next())B=B.value,B();f.onCloseCallbacks=[];f.currentPipWindow=null}};
e8.prototype.getWindow=function(){return this.currentPipWindow};
var PK$=function(f,S){var B;(B=f.onCloseCallbacks)==null||B.push(S)};
e8.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.xQ()};
_.y3.Object.defineProperties(e8.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
e8[oN]=[LLX];var vQo=new _.Sn("PICTURE_IN_PICTURE_CONTROLLER");var W1s=function(f,S){this.lengthY=this.lengthX=0;this.lengthX=S.x-f.x;this.lengthY=S.y-f.y};var Kx2=function(){},kKm=function(f,S){var B;
(B=f.headerElement)==null||B.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:S}))};var dAu=function(){};
dAu.prototype.openPopup=function(f,S,B,G){var g=this,b;return _.R(function(z){if(!g.container)return z.return();b={openPopupAction:{popup:S,popupType:B,uniqueId:f}};return z.return(g.container.handleOpenPopupAction(b,G))})};
dAu.prototype.closePopup=function(f){this.container&&this.container.closePopup(f)};var iMz=function(){this.openTunnels=new Map},emx=function(f,S,B){if(B$K(B)){var G=_.pS(B,"gclid");
B={handleEvent:function(X){S&&!S.closed&&typeof S.postMessage==="function"&&X&&X.origin&&X.source===S&&X.data&&X.data.action==="gcl_setup"&&S.postMessage(Object.assign({},{action:"gcl_transfer"},G&&{gclid:G},{gadSource:2}),X.origin)}};
for(var g=_.m(f.openTunnels),b=g.next();!b.done;b=g.next()){var z=_.m(b.value);b=z.next().value;z=z.next().value;if(b.closed)try{window.removeEventListener("message",z),f.openTunnels.delete(b)}catch(X){_.xH(X)}}S&&f.openTunnels.size<15&&(f.openTunnels.set(S,B),window.addEventListener("message",B))}};var HMY=function(){this.clientParams=new Map},D$N=function(f){for(var S=_.m(f.clientParams.keys()),B=S.next();!B.done;B=S.next())B=B.value,B.startsWith("yt-mini-app-share")&&f.clientParams.delete(B)};var qVO=function(f,S){_.qR.call(this);var B=this;this.shortsController=f;this.storeWithShorts=S;f=_.KD(this.storeWithShorts,_.YSj,function(G){if(G){var g,b=(g=B.shortsController.getRoot())==null?void 0:g.getPlayer(),z;(g=(z=B.shortsController.alternativePlayerContainerElement)==null?void 0:z.getPlayerContainer())&&(b==null||b.appendTo(g))}else{var X;z=(X=B.shortsController.alternativePlayerContainerElement)==null?void 0:X.getPlayerContainer().querySelector("#player");g=B.shortsController.activeIndex;
(X=(b=B.shortsController.getRoot())==null?void 0:b.querySelector('ytd-reel-video-renderer[id="'+g+'"] #player-container'))&&(z==null||z.appendTo(X,void 0,!0))}});
this.addOnDisposeCallback(f)};
_.q(qVO,_.qR);var b$=function(f,S,B,G,g){var b=this;this.storeWithShorts=f;this.ephemeralResponseStore=S;this.store=B;this.innertubeTransportService=G;this.innertubeTransportLoader=g;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.Uo(_.Ky);this.isShortsPipActive=_.Uo(_.d5);this.nextReelVe=_.Eo(56921);this.prevReelVe=_.Eo(56922);this.backButtonVe=_.Eo(22156);this.TEST_ONLY={getActiveModules:function(){return b.activeModules}}},UuL,CQg,$AY;
b$.prototype.initOrDisposeActiveModules=function(f){f?this.activeModules.push(new qVO(this,this.storeWithShorts)):(_.lB(this.activeModules),this.activeModules.length=0)};
b$.prototype.getRoot=function(){return this.rootElement};
b$.prototype.setActiveIndex=function(f){this.activeIndex=f};
_.LYX=function(f,S){var B,G,g,b,z,X,w;return _.R(function(F){switch(F.nextAddress){case 1:return B=new Tp,(G=B.JSC$11063_getStoreKey(S))&&f.ephemeralResponseStore.has(G)?_.h(F,f.ephemeralResponseStore.get(G),7):_.h(F,$AY(f,S),4);case 4:g=F.yieldResult;if(!G){F.jumpTo(3);break}b=R8(g,3600);return _.h(F,f.ephemeralResponseStore.put(G,new _.br(b)),3);case 7:g=(z=F.yieldResult)==null?void 0:_.wL(z);case 3:return((X=g)==null?0:X.replacementEndpoint)&&(w=_.H(g.replacementEndpoint,_.QW))&&g.sequenceContinuation&&
(w.sequenceParams=g.sequenceContinuation),F.return(g)}})};
UuL=function(f,S){S=(new Fi).JSC$11063_getStoreKey(S);return!!S&&f.ephemeralResponseStore.has(S)};
CQg=function(f,S,B){var G,g,b,z,X;_.R(function(w){if(w.nextAddress==1){G=new Fi;g=G.JSC$11063_getStoreKey(S);if(!g)return w.return();if(B.reelWatchSequenceResponse)return b=R8(B.reelWatchSequenceResponse,3600),f.ephemeralResponseStore.put(g,new _.br(b)),w.jumpTo(0);if(!f.ephemeralResponseStore.has(g))return w.jumpTo(0);X=B;return _.h(w,f.ephemeralResponseStore.get(g),4)}X.reelWatchSequenceResponse=(z=w.yieldResult)==null?void 0:_.wL(z);_.TT(w)})};
$AY=function(f,S){var B=B===void 0?{}:B;var G,g,b;return _.R(function(z){switch(z.nextAddress){case 1:if(f.innertubeTransportService){G=f.innertubeTransportService;z.jumpTo(2);break}if(!f.innertubeTransportLoader){_.Dt(Error("hj"));z.jumpTo(2);break}return _.h(z,f.innertubeTransportLoader(),4);case 4:G=z.yieldResult;case 2:return _.h(z,(g=G)==null?void 0:_.uF(g,S,B),5);case 5:return b=z.yieldResult,z.return(b)}})};
_.y3.Object.defineProperties(b$.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
b$[oN]=[qr8,_.eG,Tq,_.fN(_.DU),_.fN(vqi)];_.QTu=new _.Sn("STORAGE_MANAGER_TOKEN");var bvN=["touchmove","scroll"];var XBV={onSpanEnd:function(f){if(f.parent==null){var S=f.name;_.L2(S);R3j(f,S)}}};var YVu=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},rsu;
YVu.prototype.enqueue=function(f,S){S===1?this.currentPersistentToast=f:this.queue.push(f);this.openToast()};
YVu.prototype.openToast=function(){var f;(f=this.currentToast)!=null&&f.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.m2=new _.Sn("TOAST_MANAGER_TOKEN");var jTu=new _.Sn("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");_.zI=new _.Sn("VIEW_TRANSITION_COORDINATOR_TOKEN");var OMM=function(f){this.config=f;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;f=_.m(f.transitionConfigs);for(var S=f.next();!S.done;S=f.next())S=_.m(S.value).next().value,this.transitionTasksMap.set(S,[])};
OMM.prototype.registerElement=function(f,S,B){B=B===void 0?!1:B;for(var G=_.m(Object.keys(S)),g=G.next(),b={};!g.done;b={viewTransitionName:void 0},g=G.next()){g=g.value;b.viewTransitionName=S[g];var z=this.elementTasksMap.get(f),X=void 0;if((X=z)==null?0:X.has(g)){_.EU(new _.dO("Element already registered for transition",f,g));break}z=z||new Map;z.set(g,{beforeTransition:function(w){return function(){f.style.viewTransitionName=w.viewTransitionName}}(b),
afterTransition:function(){f.style.viewTransitionName&&(f.style.viewTransitionName="")},
runOnce:B});this.elementTasksMap.set(f,z)}};
var M4x=function(f,S){var B=f.elementTasksMap.get(S);B&&(B.clear(),B.size===0&&f.elementTasksMap.delete(S))};
OMM[oN]=[jTu];var xAX;_.EQB=_.oS(function(f){return _.T("basic-content-view-model",{class:_.Pw("ytBasicContentViewModelHost",_.cF(f.className))},_.T(_.v,{cond:function(){return f.data().headline},
then:function(S){return _.T("div",{class:"ytBasicContentViewModelHeadline"},_.T(_.oY,{text:S}))}}),_.T(_.dg,{each:function(){return f.data().paragraphs||[]},
keyBy:"INDEX"},function(S){return _.T("div",{class:"ytBasicContentViewModelParagraph"},_.T(_.v,{cond:function(){var B=S();return!!(B.header||B.customHeader||B.headline)},
then:function(){return _.T(xAX,{paragraph:S})}}),_.T(_.v,{cond:function(){return S().asset||S().text},
then:function(){return _.T("div",{class:"ytBasicContentViewModelParagraphContent"},_.T(_.v,{cond:function(){return S().asset},
then:function(B){return _.T("div",{class:"ytBasicContentViewModelParagraphAsset"},_.T(_.xK,{data:B},{contentPreviewImageViewModel:_.oC}))}}),_.T(_.v,{cond:function(){return S().text},
then:function(B){return _.T("div",{class:"ytBasicContentViewModelParagraphText"},_.T(_.oY,{text:B}))}}))}}))}))},"me");
xAX=_.oS(function(f){var S=f.paragraph;return _.T(_.gg,null,_.T(_.v,{cond:function(){return S().headline},
then:function(B){return _.T(_.oY,{text:B,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.T(_.xK,{data:function(){return S().header||S().customHeader}},{sectionHeaderViewModel:function(B){return _.T(_.gt,{data:B.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"ne");var kjB=_.oS(function(f){var S=_.tE("yt-expandable-metadata-header-view-model"),B=_.iF(function(G){if(!_.ZP(_.Ml(G),S.value,["A".toString(),"BUTTON".toString()])){var g;(g=f.expandedCallback)==null||g.call(f,!1)}});
return _.T("yt-expandable-metadata-header-view-model",{el:S,class:"ytExpandableMetadataHeaderViewModelHost"},_.T(_.v,{cond:function(){return f.expanded()},
then:function(){return _.T("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":B},_.T("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.T(_.v,{cond:function(){return f.data().expandedTitleImage},
then:function(G){return _.T("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.T(_.f9,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:G}))}}),_.T("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.T("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.T(_.oY,{text:function(){return f.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.T(_.oY,{text:function(){return f.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.T(_.oY,{text:function(){return f.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.T("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.T(_.xK,{data:function(){return f.data().infoButton}},{buttonViewModel:_.I8}),_.T(_.xK,{data:function(){return f.data().collapseButton}},{buttonViewModel:function(G){return _.T(_.I8,{data:G.data,
onClick:function(){var g;(g=f.expandedCallback)==null||g.call(f,!1)}})}})))},
else:function(){return _.T(Lx2,Object.assign({},f))}}))},"oe"),nQu=_.oS(function(f){return _.T("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.T(_.v,{cond:function(){return f.data().collapsedLabelImage},
then:function(S){return _.T("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.T(_.f9,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:S,alt:""}))}}),_.T(_.oY,{text:function(){return f.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"pe"),Lx2=_.oS(function(f){return _.T("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.iF(function(){var S;return void((S=f.expandedCallback)==null?void 0:S.call(f,!0))})},_.T("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.T(_.v,{cond:function(){return f.data().collapsedImage},
then:function(S){return _.T("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.T(_.f9,{width:16,height:16,data:S,alt:""}))}}),_.T(_.v,{cond:function(){return f.data().showLeadingCollapsedLabel},
then:function(){return _.T(nQu,Object.assign({},f))}}),_.T("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.T(_.oY,{text:function(){return f.data().collapsedTitle}}))),_.T("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.T(_.v,{cond:function(){return!f.data().showLeadingCollapsedLabel},
then:function(){return _.T(nQu,Object.assign({},f))}}),_.T(_.xK,{data:function(){return f.data().infoButton}},{buttonViewModel:_.I8}),_.T(_.xK,{data:function(){return f.data().expandButton}},{buttonViewModel:function(S){return _.T(_.I8,{data:S.data,
onClick:function(){var B;(B=f.expandedCallback)==null||B.call(f,!0)}})}})))},"qe");_.sTn=_.oS(function(f){var S=_.m(_.$8(function(){return f.data().initiallyExpanded})),B=S.next().value,G=S.next().value,g,b=(g=_.oy().resolve(_.fN(_.yU)))==null?void 0:g(),z=function(){var X=f.data().colorData;
if(X)return b?X==null?void 0:X.darkColorPalette:X==null?void 0:X.lightColorPalette};
return _.T("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.Qj({"background-color":function(){var X=z();return(X==null?0:X.section2Color)?_.AK(X.section2Color):""}})},_.T(_.xK,{data:function(){return f.data().header}},{expandableMetadataHeaderViewModel:function(X){return _.T(kjB,{data:X.data,
expanded:function(){return!!B()},
expandedCallback:function(w){G(w)}})}}),_.T(_.v,{cond:function(){return B()},
then:function(){return _.T("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.T(_.xK,{data:function(){return f.data().expandedContent}},{horizontalShelfViewModel:function(X){return _.T(_.jh,{data:X.data,
includeMargin:!0,forceNarrowLayout:!0,palette:z})},
videoSummaryContentViewModel:function(X){return _.T(zIN,{data:X.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(X){return _.T(_.Gf,{data:X.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(X){return _.T(_.EQB,{data:X.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.T(_.xK,{data:function(){return f.data().expandedBottomButtons}},{buttonViewModel:function(X){return _.T("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.T(_.I8,{data:X.data}))}}))}}))},"re");var DAZ=_.oS(function(f){var S=f.text;var B=f.marqueeSpacing;var G=f.scrollDelay;var g=f.scrollDuration;var b=f.enableMarqueeScroll;f=f.large;var z=_.m(_.hj(!1,void 0,"kfNqfd")),X=z.next().value,w=z.next().value,F=_.m(_.hj(0,void 0,"bYgZbf"));z=F.next().value;var V=F.next().value,J=_.tE("marquee-scroll");F=_.tE("div");var P=_.tE("span"),d=_.oy().resolve(_.cs);_.jp(function(){if(b()){var E=P.value.getBoundingClientRect().width,U=J.value.getBoundingClientRect().width;if(E>U){var A=(d==="ltr"?-1:1)*
(E+(B?B():16));Promise.resolve().then(function(){w(!0);V(A)})}}},"giRlme");
var Q={},x={};return _.T("marquee-scroll",{class:_.Pw("ytMarqueeScrollHost",(Q.ytMarqueeScrollHostLarge=f,Q)),el:J},_.T("div",{id:"marquee-scroll-inner-container",class:_.Pw("ytMarqueeScrollInnerContainer",(x.ytMarqueeScrollAnimationEnabled=function(){return X()},x)),
el:F,style:_.Qj({gap:B?(0,_.$4)(B):"16px","animation-duration":g?fYL(g):"16s","animation-delay":G?fYL(G):"3s","--marquee-translate":(0,_.$4)(z)})},_.T("span",{el:P,dir:"auto"},_.T(_.oY,{text:S,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.T(_.v,{cond:X,then:function(){return _.T("span",{"aria-hidden":"true",dir:"auto"},_.T(_.oY,{text:S,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"se");_.INu=_.oS(function(f){var S=f.data;var B=f.overlayDensity;f=_.iF(function(){S().onTapCommand&&_.MB(S().onTapCommand);return!1});
var G=_.lQG(),g=function(){return(B==null?void 0:B())===1?22:16},b={};
return _.T("reel-sound-metadata-view-model",{class:_.Pw("ytReelSoundMetadataViewModelHost",(b.ytReelSoundMetadataViewModelHostLarge=function(){return(B==null?void 0:B())===1},b)),
"on:click":f,tabindex:0,role:"button","on:keydown":G},_.T("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.T(_.v,{cond:function(){return S().musicIcon},
then:function(z){return _.T(_.f9,{data:z,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:g})}}),_.T("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.T(DAZ,{text:function(){return S().soundMetadata},
enableMarqueeScroll:function(){return!!S().enableMarqueeScroll},
large:function(){return(B==null?void 0:B())===1}}))))},"te");var UAu,CK2,Rd,M1n,t12,NWu,ysz,aNO;UAu=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];CK2=_.Gt("wil_icon_max_concurrent_fetches",Infinity);
Rd=function(f,S,B){var G=this;this.iconSet=f;this.appDirection=S;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.S1.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.K("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.K("wil_icon_network_first");this.renderWhenIdle=_.K("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.K("wil_icon_load_immediately");this.isPurging=!1;f=function(){G.cacheStorageAvailable&&(G.cacheStorageAsync=_.S1.caches.open("yt-icons").then(function(b){return G.cacheStorageSync=b}).catch(function(){G.cacheStorageAvailable=!1}))};
B=(B==null?void 0:B())||{};B=_.m(Object.entries(B));for(S=B.next();!S.done;S=B.next()){var g=_.m(S.value);S=g.next().value;g=g.next().value;g=Fq(g);p9z(g);this.iconCache[S]=g.cloneNode(!0)}this.isPurging=As2(this);this.isPurging instanceof Promise?this.isPurging.then(f):f()};
_.O31=function(f,S){var B=f.resolveIcon(S);return B?f.renderingMode===1?NWu(f,B,f.renderingMode):(S=f.iconCache[B.url])?(S=S.cloneNode(!0),M1n(f,S),NWu(f,B,f.renderingMode,S)):_.ZMM(f,B).then(function(G){var g=G?0:1;M1n(f,G);return NWu(f,B,g,G)}):(_.EU(new _.dO("Icon not found",{iconShape:S})),function(){})};
M1n=function(f,S){if(S){f.counter+=1;f="_yt"+f.counter;S=[S].concat(_.$d(S.getElementsByTagName("*")));S=_.m(S);for(var B=S.next();!B.done;B=S.next())if(B=B.value,B.tagName==="style"&&B.textContent)B.textContent=t12(B.textContent,f,!0);else for(var G=_.m(B.attributes),g=G.next();!g.done;g=G.next()){g=g.value;g.name==="id"&&(g.value+=f);["mask","fill","clip-path"].includes(g.name)&&(g.value=t12(g.value,f));if(g.name==="style"){var b=B.style;try{b.cssText=t12(b.cssText,f,!0)}catch(V){var z=void 0,X=
void 0,w=void 0,F=void 0;XZ({error:((z=V)==null?void 0:(w=(X=z).toString)==null?void 0:w.call(X))||"",el:B.outerHTML,style:!!b,cssText:(F=b)==null?void 0:F.cssText})}}g.name==="xlink:href"&&(g.value=g.value.replace(/#(.*)/,"#$1"+f))}}};
t12=function(f,S,B){var G=/url\(["']?#(.*?)["']?\)/;(B===void 0?0:B)&&(G=/url\(["']?#(.*?)["']?\)/g);return f.replace(G,"url(#$1"+S+")")};
NWu=function(f,S,B,G){return function(g,b){var z=Object.assign({},{iconColor:"currentcolor",iconWidth:S.size+"px",iconHeight:S.size+"px",iconDisplay:"block"},b);b=_.Ja("DIV");var X=z.iconColor,w=z.iconFilter;z="width: "+z.iconWidth+"; height: "+z.iconHeight+"; display: "+z.iconDisplay+";";w&&(z+=" filter: "+w+";");B===0&&(z+=" fill: "+X+";");B===1&&(w=S.url,z+=" -webkit-mask: url("+w+") no-repeat center / cover; mask: url("+(w+") no-repeat center / cover; background-color: ")+X);S.allowMirroring&&
f.appDirection==="rtl"&&(z+=" transform: scale(-1, 1); transform-origin: center center;");b.setAttribute("style",z);B===0&&G&&b.appendChild(G);g.appendChild(b)}};
_.ZMM=function(f,S){var B,G,g;return _.R(function(b){B=function(z){return jZ(z)};
G=S.url;if(!uGn(G))throw Error("jj");g=aNO(f,G);return b.return(g.then(function(z){return z.clone().text()}).then(function(z){var X=B(z);
z=S.size;var w=_.Ja("DIV");_.pC(w,X);X=_.Pv(w.firstElementChild!==void 0?w.firstElementChild:_.aN7(w.firstChild,!0));z=p9z(X,z);f.iconCache[G]=z.cloneNode(!0);delete f.responsePromises[G];return z}).catch(function(){}))})};
ysz=function(f){var S,B=(S=f.requestAninmationFrameResolver)==null?void 0:S.promise;B||(f.requestAninmationFrameResolver=new _.w3,B=f.requestAninmationFrameResolver.promise,_.S1.requestAnimationFrame(function(){var G;(G=f.requestAninmationFrameResolver)==null||G.resolve();f.requestAninmationFrameResolver=null}));
return B};
aNO=function(f,S){var B,G;return _.R(function(g){if(g.nextAddress==1)return f.waitForAnimationFrame?_.h(g,ysz(f),2):g.jumpTo(2);B=f.responsePromises[S];B||(G=function(){var b,z,X;return _.R(function(w){switch(w.nextAddress){case 1:if(!f.cacheStorageAvailable){b=void 0;w.jumpTo(2);break}if(z=f.cacheStorageSync){w.jumpTo(3);break}return _.h(w,f.cacheStorageAsync,4);case 4:z=w.yieldResult;case 3:b=z;case 2:return X=b,f.isNetworkFirstStrategy?w.return(f.fetchAndUpdateCache(S,X).catch(f.getCacheStorageResponse.bind(f,
S,X))):w.return(f.getCacheStorageResponse(S,X).catch(f.fetchAndUpdateCache.bind(f,S,X)))}})},B=f.renderWhenIdle?new Promise(function(b,z){_.q6(_.xJ,function(){G().then(b).catch(z)},10)}):G(),f.responsePromises[S]=B);
return g.return(B.catch(function(b){delete f.responsePromises[S];XZ({error:(b==null?0:b.toString)?b.toString():"",url:S});throw b;}))})};
Rd.prototype.fetchAndUpdateCache=function(f,S){var B=this;return _.R(function(G){return G.return(Wxu(B,f).then(function(g){cse(B,f,g,S);return g}))})};
var Wxu=function(f,S){var B;return _.R(function(G){if(f.numFetches<CK2)return f.numFetches+=1,G.return(lNz(f,S).finally(function(){--f.numFetches;if(Object.keys(f.queuedResponseResolvers).length){var g=Object.keys(f.queuedResponseResolvers)[0],b=f.queuedResponseResolvers[g];delete f.queuedResponseResolvers[g];b.resolve(Wxu(f,g))}}));
B=new _.w3;f.queuedResponseResolvers[S]=B;return G.return(B.promise)})},lNz=function(f,S,B){B=B===void 0?2:B;
var G;return _.R(function(g){G={credentials:"same-origin",priority:"low"};return g.return(_.S1.fetch(S,G).then(function(b){return b.ok?b:Promise.reject(Error("kj`"+b.status+"`"+b.statusText))}).catch(function(b){if(B>0)return lNz(f,S,B-1);
throw b;}))})},cse=function(f,S,B,G){_.R(function(g){return G?g.return(new Promise(function(b){_.q6(_.xJ,function(){var z,X;
return _.R(function(w){switch(w.nextAddress){case 1:if(!f.isNetworkFirstStrategy){z=void 0;w.jumpTo(2);break}return _.h(w,G.match(S).catch(function(){}),3);
case 3:z=w.yieldResult;case 2:if(X=z){w.jumpTo(4);break}return _.h(w,G.put(S,B.clone()).catch(function(F){XZ({error:(F==null?0:F.toString)?F.toString():"",url:S})}),4);
case 4:b(),_.TT(w)}})},50)})):g.return()})};
Rd.prototype.getCacheStorageResponse=function(f,S){return _.R(function(B){return S?B.return(S.match(f).then(function(G){return G&&G.ok?G:Promise.reject()})):B.return(Promise.reject())})};
var p9z=function(f,S){S===void 0||f.getAttribute("viewBox")||f.setAttribute("viewBox","0 0 "+S+" "+S);f.setAttribute("focusable","false");f.setAttribute("aria-hidden","true");try{f.style.pointerEvents="none",f.style.display="inherit",f.style.width="100%",f.style.height="100%"}catch(g){var B;XZ({error:((B=g)==null?0:B.toString)?g.toString():""});try{f.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(b){var G;XZ({error:((G=b)==null?0:G.toString)?b.toString():
""})}}return f},uGn=function(f){for(var S=_.m(UAu),B=S.next();!B.done;B=S.next())if(f.startsWith(B.value)&&f.endsWith(".svg"))return!0;
return!1};
Rd.prototype.resolveIcon=function(f){return this.iconSet.resolveIcon(f)};
var XZ=function(f){_.Lg(new _.dO("Error in IconManager",f))},As2=function(f){if(_.K("wil_icons_cache_purge_killswitch"))return!1;
try{var S=_.S1.localStorage}catch(b){return!1}if(!S||!f.cacheStorageAvailable)return!1;var B=function(b){try{var z;(z=S)==null||z.setItem("yt-icons-last-purged",b.toString())}catch(w){var X;XZ({error:((X=w)==null?0:X.toString)?w.toString():""})}},G=Number(S.getItem("yt-icons-last-purged"));
if(!G)return G=new Date,G=G.setDate(G.getDate()-Math.floor(Math.random()*90+1)),B(G),!1;if(function(b,z){b=new Date(b);z=new Date(z);return z.getMonth()-b.getMonth()+12*(z.getFullYear()-b.getFullYear())}(G,Date.now())<3)return!1;
try{return _.S1.caches.delete("yt-icons").then(function(b){b&&B(Date.now());return b}).catch(function(){return!1}).finally(function(){f.isPurging=!1})}catch(b){var g;
XZ({error:((g=b)==null?0:g.toString)?b.toString():""});return!1}};
Rd[oN]=[mOi,_.cs,_.fN(XAj)];_.wV=function(f,S){this.iconManager=f;this.iconsToFetch=S};
_.wV[oN]=[_.VU,_.fN(RwN)];var fvX=function(){};var oXu=function(f,S,B){this.requestKey=f;this.zFO=S;this.tft=B;this.bxf=function(){return new XMLHttpRequest};
this.yTt=void 0;this.rWW=[]};
oXu.prototype.getLatestChallengeResponse=function(){return this.tft};
var fE6=function(f,S,B){var G,g,b,z;return _.R(function(X){if(X.nextAddress==1){_.L2("attestation_challenge_fetch");_.kT("att_fs",void 0,"attestation_challenge_fetch");if(!f.yTt)throw new _.xo(9,"Missing fetcher");return _.h(X,f.yTt(S,B),2)}G=X.yieldResult;b=(g=G)==null?void 0:g.bgChallenge;if(!b)throw new _.xo(15,"Missing field");f.tft=G;f.rWW.forEach(function(w){w(G)});
z=XPs(b);_.kT("att_fc",void 0,"attestation_challenge_fetch");Wb1("attestation_challenge_fetch");return X.return(z)})},HQ8=function(f,S){var B,G,g,b,z;
return _.R(function(X){switch(X.nextAddress){case 1:B=new zS(100,3E5,.25,2),G=void 0;case 2:if(!(B.currBackoffCount_<10)){X.jumpTo(4);break}_.zT(X,5);if(!(B.currBackoffCount_>0)){X.jumpTo(7);break}return _.h(X,h3N(B.getValue()),7);case 7:return _.h(X,S82(f,S),9);case 9:return g=X.yieldResult,X.return(g);case 5:b=_.hm(X);b instanceof _.xo?G=b:(z=b instanceof Error?b.message:"Unknown",G=new _.xo(9,z));RD$(B);X.jumpTo(2);break;case 4:if(G)throw G;throw new _.xo(9,"Unknown error");}})},S82=function(f,
S){S=AJ1(Ncj(new poN,S),f.requestKey);
var B=new _.w3,G=f.bxf();G.open("POST",f.zFO);G.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");G.setRequestHeader("Content-Type","application/json+protobuf");G.onload=function(){if(_.YlV(G)){var g=lEo(G.responseText);B.resolve(g)}else B.reject(new _.xo(_.X9(_.ba(G)),G.statusText))};
G.onerror=function(){B.reject(new _.xo(_.X9(_.ba(G)),G.statusText))};
G.send(S.serialize());return B.promise};var GoB=function(f){this.networkStatusManager=f;this.isDownloaded=wiQ===void 0?function(){return!1}:wiQ;
this.isReady=!1;this.uEz=BNn(this)},BNn=function(f){var S;
return _.R(function(B){if(B.nextAddress==1)return _.h(B,ra1(),2);if(B.nextAddress!=3)return S=B.yieldResult,_.h(B,wO7(S),3);f.iT=B.yieldResult;FAV(f.iT).then(function(){f.isReady=!0});
return B.return(f.iT)})},gX2=function(f,S,B){f.iT?(f=f.iT.tQ({rU:B,
sPt:!0,dCy:!0}),S.serviceIntegrityDimensions={poToken:f}):_.xH(Error("mj"))};
GoB.prototype.processContext=function(f){var S=this;if(!f.input.match(_.lC(C_v)))return _.ue();var B=f.innerTubeRequest,G=B.videoId;return!G||this.isDownloaded(B)||this.networkStatusManager&&!this.iT&&!this.networkStatusManager.isNetworkAvailable()?_.ue():this.iT?this.isReady?(gX2(this,B,G),_.ue()):new tv(FAV(this.iT).then(function(){gX2(S,B,G)})):new tv(this.uEz.then(function(g){return _.R(function(b){if(b.nextAddress==1)return _.h(b,FAV(g),2);
gX2(S,B,G);_.TT(b)})}))};var eju=new _.Sn("WEB_PO_CONTEXT_PROCESSOR");var bi2=function(f,S){var B=this;this.l4H=0;var G;this.bCV=(G=S==null?void 0:S.bCV)!=null?G:window;this.networkStatusManagerPromise=S==null?void 0:S.networkStatusManagerPromise;var g;this.requestKey=(g=S==null?void 0:S.requestKey)!=null?g:_.gO("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var b;this.pcq=(b=S==null?void 0:S.pcq)!=null?b:function(w){return new It(w)};
var z;G=(z=S==null?void 0:S.vJ5)!=null?z:function(w,F,V){return new oXu(w,F,V)};
this.bgChallenge=XPs(f.bgChallenge);this.ttlSeconds=wPN(SO(f.challenge||""));this.hb=G(this.requestKey,_.K("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.S1.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",f);T$j(this.hb);var X;this.qFP=(X=S==null?void 0:S.qFP)!=null?X:function(w){_.jP(B.bCV.document,"visibilitychange",function(){B.bCV.document.visibilityState===
"visible"&&w()})}},zjZ=function(f){if(!f.oy){var S={maxAttempts:5,
rKq:f.ttlSeconds*1E3};VvM(f.bCV);f.oy=f.pcq({hb:f.hb,lF:{disable:_.K("html5_web_po_disable_remote_logging"),oB:"aGIf",omw:i_j("html5_web_po_experiment_ids"),bFI:_.K("wpo_dis_lfdms")?0:1E3,lCV:_.K("wpo_gel_strz")?function(G){var g=Uj8.get(G);g||(g=new I3N(G),g=new TS(g),Uj8.set(G,g));return g}:void 0},
bRF:S,eFT:f.bgChallenge,oH6:J8N});f.l4H=Date.now();aam(f.oy,function(){f.l4H=Date.now()});
EAT(f.oy,function(){return _.R(function(G){return G.return(mNe(f))})});
var B=f.t7l.bind(f);f.networkStatusManagerPromise&&f.ttlSeconds>0&&f.networkStatusManagerPromise.then(function(G){G.listen("publicytnetworkstatus-online",B)});
f.qFP(B)}};
bi2.prototype.t7l=function(){if(Date.now()>this.l4H+this.ttlSeconds*1E3){var f;(f=this.oy)==null||u66(f)}};
var mNe=function(f){if(f.qQH)return f.qQH;if(!f.oy)throw Error("nj");f.qQH=new Aq({oy:f.oy,hb:f.hb,zPn:!0,onError:J8N});return f.qQH},vDN=function(f,S){f=new bi2(f,S);
zjZ(f);mNe(f)};var hG=function(f,S){this.store=f;this.queue=[];S==null||S.addEventListener("yt-navigate-start",this.reset.bind(this))};
hG.prototype.enqueue=function(f){var S=f.command,B=f.durationMs,G=f.elementToFocus;var g=f.label;var b=f.elementToFocus;f.command?g=_.Jf("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:g,shortcut:_.Jf("SHIFT_PLUS_ENTER")}):b&&(f=g+". "+_.Jf("SHIFT_PLUS_ENTER")+" for more information.",g=_.Jf("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:g,shortcut:_.Jf("SHIFT_PLUS_ENTER")},f));B={announcement:g,durationMs:B!=null?B:8E3};S?B.command=S:G&&(G.classList.add("ephemeral-action-focusable-element"),B.selector=G.tagName+
".ephemeral-action-focusable-element");this.queue.push(B);Rj2(this)};
hG.prototype.activate=function(f){var S=_.QG9(this.store.getState());if(S){if(S==null?0:S.command)_.pH(S.command),this.store.dispatch(nPm(null));if(S==null?0:S.selector)S=document.querySelector(S.selector),_.ZjG(S);f.preventDefault()}};
var Rj2=function(f){if(!_.QG9(f.store.getState())&&f.queue.length){var S=f.queue.shift();S&&(f.previousAnnouncement===S.announcement&&(S.announcement+="\u00a0"),f.store.dispatch(nPm(S)),f.previousAnnouncement=S.announcement,f.timeoutId=setTimeout(function(){if(S.selector){var B;(B=document.querySelector(S.selector))==null||B.classList.remove("ephemeral-action-focusable-element")}f.store.dispatch(nPm(null));Rj2(f)},S.durationMs))}};
hG.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(nPm(null));this.queue.length=0;this.timeoutId=void 0};
hG[oN]=[_.C5,_.$k];_.TI=new _.Sn("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var X7u=window.AbortController||XKX;var w7e=new _.Sn("AUTH_SERVICE_TOKEN");var ivN=_.f4(["about:blank"]),deK;var hjY=new _.Sn("API_IFRAME_TOKEN"),TNo=new _.Sn("FETCH_FN_TOKEN"),F6u=new _.Sn("PARSE_FN_TOKEN"),VmY=new _.Sn("WINDOW_REQUEST_TOKEN");var ovi;ovi=new _.Sn("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.J1O=new _.Sn("MISC_UI_SHARED_FLAGS_TOKEN");var Pm2=function(){};
Pm2.prototype.getFlag=function(f){if(f.configType!==2)throw Error("oj");return vXM(f)};
var vXM=function(f){switch(f.flagType){case "bool":return _.K(f.flagName);case "int":return _.Zv(_.Gt(f.flagName));case "double":return _.Gt(f.flagName);case "string":return _.gO(f.flagName);case "int32_list":return i_j(f.flagName);case "int64_list":return i_j(f.flagName).map(function(S){return _.Zv(S)});
case "string_list":return _.e7(f.flagName);default:throw Error("pj");}};var FZ=function(f,S,B){S=S===void 0?{}:S;k9.call(this,B===void 0?"uninitialized":B);this.env=f;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}];S.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=S.shouldWaitOnAsyncImmediate)};
_.q(FZ,k9);FZ.prototype.init=function(f){var S=this,B;return _.R(function(G){if(G.nextAddress==1)return S.processPluginOptions.shouldWaitOnAsyncImmediate?_.h(G,f(S.env),2):(f(S.env),G.jumpTo(2));if(G.nextAddress!=4)return S.jobSet?_.h(G,S.jobSet.completedResolver.promise,4):G.jumpTo(4);B=_.UX();B.parkOrScheduleJob(function(){S.transition("rendering")},10,"ci");
_.TT(G)})};
FZ.prototype.initialRender=function(f){var S=this,B;return _.R(function(G){if(G.nextAddress==1)return S.processPluginOptions.shouldWaitOnAsyncImmediate?_.h(G,f(S.env),2):(f(S.env),G.jumpTo(2));if(G.nextAddress!=4)return S.jobSet?_.h(G,S.jobSet.completedResolver.promise,4):G.jumpTo(4);B=_.UX();B.parkOrScheduleJob(function(){S.transition("rendered")},10,"cr");
_.TT(G)})};
FZ.prototype.afterRenderImmediate=function(f){var S=this,B;return _.R(function(G){if(G.nextAddress==1)return S.processPluginOptions.shouldWaitOnAsyncImmediate?_.h(G,f(S.env),2):(f(S.env),G.jumpTo(2));if(G.nextAddress!=4)return S.jobSet?_.h(G,S.jobSet.completedResolver.promise,4):G.jumpTo(4);B=_.UX();B.parkOrScheduleJob(function(){S.transition("after-render-deferred")},10,"carml");
_.TT(G)})};
FZ.prototype.afterRenderDeferred=function(f){var S=this;return _.R(function(B){f(S.env);_.TT(B)})};var K6u={},dNu=(K6u.rendered={priority:0,callback:function(f){kVL(f.injector.resolve($H))}},K6u);var iiz=!1,xeW=0,YF1=null,OvN=null;var Hiu=new _.Sn("NETWORK_SLI_TOKEN");var q8o=function(f,S,B,G){this.networkSli=f;this.fetchFn=S;this.parseFn=B;this.requestFn=G};
q8o.prototype.fetch=function(f,S,B){var G=this,g,b,z;return _.R(function(X){g=$NM(G,f,S);z=(b=G.fetchFn)!=null?b:fetch;return X.return(z(g).then(function(w){return G.handleResponse(w,B)}).catch(function(w){_.Lg(w);
if((B==null?0:B.expectJsonStrict)&&w instanceof i_&&w.errorType===1)return Promise.reject(w)}))})};
var UT8=function(f,S,B,G){var g,b,z,X,w,F,V;return _.R(function(J){switch(J.nextAddress){case 1:return g=$NM(f,S,B),_.zT(J,2),_.h(J,fetch(g),4);case 4:b=J.yieldResult;_.CN(J,3);break;case 2:throw _.hm(J),new i_(2,"Failed to parse streaming response",g.url);case 3:if(!b.redirected&&!b.ok)throw(z=f.networkSli)==null||z.failure(),new _.dO("Streaming fetch request not ok",g.url);if(!b.body)throw new _.dO("No response body in streaming response",g.url);X={};if(_.K("web_streaming_fast"))return w=b.body.getReader(),
J.return(Qg2(f,w,X,G));F=b.body.pipeThrough(new TextDecoderStream).getReader();V=new _.mp;return J.return(Y8$(f,F,V,cUj,X,G))}})},$NM=function(f,S,B){if(f.networkSli){var G=_.Xl(_.cZ(S,"key"))||"/UNKNOWN_PATH";
f.networkSli.start(G)}G=B;_.K("wug_networking_gzip_request")&&(G=nrT(B));var g;return new ((g=f.requestFn)!=null?g:window.Request)(S,G)},Qg2=function(f,S,B,G){var g,b,z,X,w,F,V,J,P,d,Q;
return _.R(function(x){switch(x.nextAddress){case 1:g=new TextDecoder("utf-8"),b="",z=function(E){E=E.trim();E.length!==0&&E!=="]"&&E!=="["?(E.startsWith("[")&&(E=E.substring(1)),E.endsWith("]")&&(E=E.slice(0,-1)),E.endsWith(",")&&(E=E.slice(0,-1)),E=E.trim()):E=void 0;if(E)try{var U=JSON.parse(E);cUj(B,U);G==null||G(B,U)}catch(A){throw new i_(1,"Failed to parse streaming response",E);}},_.zT(x,2,3);
case 5:return _.h(x,S.read(),8);case 8:X=x.yieldResult;w=X.value;if(F=X.done)return b.length>0&&z(b),V=void 0,(V=f.networkSli)==null||V.success(),x.return(B);b+=g.decode(w,{stream:!0});J=b.split("\n");b=J.pop()||"";P=_.m(J);for(d=P.next();!d.done;d=P.next())Q=d.value,z(Q);x.jumpTo(5);break;case 3:_.Rs(x);S.releaseLock();_.wz(x,0);break;case 2:throw _.hm(x),new i_(1,"Failed to parse streaming response");}})},Y8$=function(f,S,B,G,g,b){var z,X,w,F,V,J,P,d,Q;
return _.R(function(x){if(x.nextAddress==1)return _.h(x,S.read(),2);z=x.yieldResult;X=z.value;if(w=z.done)return(F=f.networkSli)==null||F.success(),x.return(g);try{V=B.parse(X)}catch(E){throw new i_(1,"Failed to parse streaming response",X);}if(V!=null)for(J=_.m(V),P=J.next();!P.done;P=J.next())d=P.value,G(g,d),Q=void 0,(Q=b)==null||Q(g,d);return x.return(Y8$(f,S,B,G,g,b))})};
q8o.prototype.handleResponse=function(f,S){var B,G=(B=this.parseFn)!=null?B:JSON.parse;B=f.text().then(function(g){if((S==null?0:S.jspbResponseCtor)&&f.ok)return S7N(S.jspbResponseCtor,g);g=g.replace(")]}'","");if((S==null?0:S.expectJsonStrict)&&g)try{var b=G(g)}catch(X){throw new i_(1,"JSON parsing failed after fetch");}var z;return(z=b)!=null?z:G(g)});
f.redirected||f.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),B=B.then(function(g){_.Lg(new _.dO("Error: API fetch failed",f.status,f.url,g));return Object.assign({},g,{errorMetadata:{status:f.status}})}));
return B};
q8o[oN]=[_.fN(Hiu),_.fN(TNo),_.fN(F6u),_.fN(VmY)];var r1e=new _.Sn("NETWORK_MANAGER_TOKEN");var jgu=[1,2,4,8,16,30],xNY=function(f){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=f.maxTimeMs;this.maxFrameCount=f.maxFrameCount===void 0?Math.ceil(60*f.maxTimeMs/1E3):f.maxFrameCount;f=_.m(jgu);for(var S=f.next();!S.done;S=f.next())this.brokenFrameSummarizers.push(new Oiz(S.value/60*1E3))},EXu=function(f){var S=f.frameCountInternal>=f.maxFrameCount;
return f.elapsedTimeMs>=f.maxTimeMs||S},L6B=function(f){for(var S=[],B=_.m(f.brokenFrameSummarizers),G=B.next();!G.done;G=B.next())G=G.value,G=G.brokenFrameCount!==0?{severityMs:Math.round(G.targetFrameTimeMs),
eventCount:G.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(G.averageDurationBetweenEventsMs)}:void 0,G&&S.push(G);return{summaries:S,monitoringDurationMs:Math.round(f.elapsedTimeMs)}};
_.y3.Object.defineProperties(xNY.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 Oiz=function(f){this.targetFrameTimeMs=f;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.y3.Object.defineProperties(Oiz.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var koe=function(){};
koe.prototype.start=function(f,S){var B=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var G=new xNY({maxTimeMs:f});this.monitor=G;this.lastSummaryInternal=void 0;this.metadataToLog=S;return new Promise(function(g){var b=function(z){if(z===void 0)B.stop(),g(void 0);else if(B.monitor!==G)z=Object.assign({},L6B(G),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),g(z);else{var X=B.monitor;if(!EXu(X)){X.frameCountInternal++;if(X.prevTime===void 0)X.startTime=
z;else for(var w=z-X.prevTime,F=_.m(X.brokenFrameSummarizers),V=F.next();!V.done;V=F.next()){V=V.value;var J=V.currTimeMs;V.currTimeMs+=w;w>V.targetFrameTimeMs+2&&(V.brokenFrameCount++,V.timeOfFirstBrokenFrameMs===void 0&&(V.timeOfFirstBrokenFrameMs=J),V.timeOfLastBrokenFrameMs=J)}X.prevTime=z}EXu(B.monitor)?g(B.stop()):_.xJ.addJob(b,5,0)}};
_.xJ.addJob(b,5,0)})};
koe.prototype.stop=function(f){if(!this.monitor)return this.lastSummaryInternal;var S=Object.assign({},L6B(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(S.monitoringDurationMs){f=f!=null?f:this.metadataToLog;var B={droppedFramesSummary:S,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};f&&(B[f.type]=f.data);_.jD("manualSmoothnessMeasurement",B)}this.monitor=void 0;this.lastSummaryInternal=S;this.metadataToLog=void 0;return S};_.nXo=new _.Sn("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var sgu;sgu=function(f){this.JSC$16389_expiringStorage=new HL(f)};
_.DNZ=function(f){if(_.EDN()&&(f=_.XZK(_.vL()+"::"+f)))return new sgu(f)};
sgu.prototype.set=function(f,S,B){B=B!==void 0?Date.now()+B:void 0;this.JSC$16389_expiringStorage.set(f,S,B)};
sgu.prototype.get=function(f){return this.JSC$16389_expiringStorage.get(f)};
sgu.prototype.remove=function(f){this.JSC$16389_expiringStorage.remove(f)};var Ivu=new _.Sn("SESSION_STORAGE");_.VA=function(){};
_.VA.getInstance=function(){var f=_.U6("ytglobal.storage_");f||(f=new _.VA,_.WL("ytglobal.storage_",f));return f};
_.VA.prototype.estimate=function(){var f,S,B;return _.R(function(G){f=navigator;return((S=f.storage)==null?0:S.estimate)?G.return(f.storage.estimate()):((B=f.webkitTemporaryStorage)==null?0:B.queryUsageAndQuota)?G.return(LA9()):G.return()})};
_.WL("ytglobal.storageClass_",_.VA);var Dej=!!(eT[1]>>14&1);var s1W=!1;var UNu=_.f4(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),Cm2=_.f4(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var ab6={"/":_.vn,"/?feature=ytca":_.vn,"/feed/downloads":_.qDx};var Kz=function(f,S,B){this.JSC$16401_upliftPromise=f;this.store=S;this.JSC$16401_persistentStorePromiseAccessor=B};
Kz.prototype.shouldPreferLocalResponse=function(f){return f.browseId==="FEdownloads"||f.browseId==="FEsmart_downloads"&&_.K("kevlar_modern_downloads_page")?!0:!1};
Kz.prototype.localInnertubeResponse=function(f){var S=this;return _.R(function(B){return f.browseId==="FEdownloads"?_.K("kevlar_modern_downloads_page")?B.return(p7$(S)):B.return(A1Z(S)):f.browseId==="FEsmart_downloads"&&_.K("kevlar_modern_downloads_page")?B.return(NNu(S)):B.return(Promise.reject(Error("rj")))})};
Kz.prototype.canProvideFallbackResponse=function(){return!0};
Kz.prototype.localFallbackInnertubeResponse=function(f){var S=this,B,G,g;return _.R(function(b){switch(b.nextAddress){case 1:return _.h(b,S.JSC$16401_persistentStorePromiseAccessor(),2);case 2:B=b.yieldResult;if(f.browseId!=="SPaccount_downloads"||!B){b.jumpTo(3);break}return _.h(b,Xis(B),4);case 4:if(G=b.yieldResult)return b.return(_.wL(G));case 3:return f.browseId==="FEwhat_to_watch"?b.return(Mmo(S)):(g=_.K("web_offline_continuation_automatic_retry")||_.K("web_offline_continuation_retry_button"))&&
f.continuation?b.return(Ziz(S)):b.return(tmB(S))}})};
var Mmo=function(f){var S;return _.R(function(B){if(B.nextAddress==1)return _.h(B,f.JSC$16401_upliftPromise,2);S=_.txN(f.store.getState().entities);return S.length?B.return(uL$(f,S)):B.return(tmB(f))})},A1Z=function(f){var S,B;
return _.R(function(G){if(G.nextAddress==1)return _.h(G,f.JSC$16401_upliftPromise,2);if(G.nextAddress!=3)return S=avO([{offlineItemSectionRenderer:{}}]),_.h(G,y1u(f,S),3);B=G.yieldResult;B.onResponseReceivedActions=[xV("REFRESH_DOWNLOADS")];return G.return(B)})},p7$=function(f){var S,B,G,g,b,z,X,w,F,V,J,P,d;
return _.R(function(Q){if(Q.nextAddress==1)return _.h(Q,f.JSC$16401_upliftPromise,2);if(Q.nextAddress!=3)return S=f.store.getState(),B=S.entities,G=_.r9(B),g=_.jf(B),b=_.dGM(S),z=_.Kks(S),X=_.iWx(S),w=_.y5M(B),F=_.iC(G),V=_.OA(B),J={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.kOA(G,g,w,b,z,F,V,X),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},P=_.Jf("DOWNLOADS",void 0,"Downloads"),_.h(Q,W6Y(f,J,P),3);d=Q.yieldResult;
d.onResponseReceivedActions=[xV("REFRESH_DOWNLOADS")];return Q.return(d)})},NNu=function(f){var S,B,G,g,b,z,X,w,F;
return _.R(function(V){if(V.nextAddress==1)return _.h(V,f.JSC$16401_upliftPromise,2);if(V.nextAddress!=3)return S=f.store.getState(),B=S.entities,G=_.r9(B),g=_.iC(G),b=_.OA(B),z={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.sZK(G),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},X=_.Jf("SMART_DOWNLOADS",void 0,"Smart downloads"),w=ESN(g,b),_.h(V,W6Y(f,z,X,w),3);F=V.yieldResult;F.onResponseReceivedActions=[xV("REFRESH_DOWNLOADS")];
return V.return(F)})},tmB=function(f){var S,B;
return _.R(function(G){if(G.nextAddress==1)return _.h(G,Xg(f.JSC$16401_upliftPromise,f.store),2);S=G.yieldResult;B=avO([b1j(S)]);return G.return(y1u(f,B))})},Ziz=function(f){var S,B,G,g;
return _.R(function(b){if(b.nextAddress==1)return S={},B=f.store.getState().continuation.continuationCommand,_.nH(S,_.p9,B),_.h(b,Xg(f.JSC$16401_upliftPromise,f.store,S,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);G=b.yieldResult;g={};_.nH(g,_.H4i,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:G}}}],targetId:"browse-feedFEwhat_to_watch"});return b.return({responseContext:{},onResponseReceivedActions:[g]})})},avO=function(f){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:f}}}}]}}},uL$=function(f,S){var B,G;
return _.R(function(g){var b={contents:EC(S)};B=b&&b.contents?b:{};_.K("kevlar_modern_downloads_page")&&(B=Object.assign({},_.DZT(S),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));G={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:B}}}]}};return g.return(y1u(f,G))})},y1u=function(f,S){var B,G;
return _.R(function(g){if(g.nextAddress==1)return _.h(g,f.JSC$16401_persistentStorePromiseAccessor(),2);if(g.nextAddress!=3)return B=g.yieldResult,_.h(g,h9(B),3);G=g.yieldResult;return g.return({responseContext:{},contents:S,topbar:G})})},W6Y=function(f,S,B,G){var g,b;
return _.R(function(z){if(z.nextAddress==1)return _.h(z,f.JSC$16401_persistentStorePromiseAccessor(),2);if(z.nextAddress!=3)return g=z.yieldResult,_.h(z,h9(g),3);b=z.yieldResult;var X=z.return;var w=G;w=w===void 0?"":w;w={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:B}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.Jf("SETTINGS",void 0,"Settings"),accessibilityText:_.Jf("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:oc("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:w}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:B};
return X.call(z,{responseContext:{},contents:S,topbar:b,header:{pageHeaderRenderer:w}})})};var c1o=function(){this.moduleRegistry={};this.fetchCount=0};
c1o.prototype.isFetching=function(){return this.fetchCount>0};
var M_=function(f,S){f.moduleRegistry[S.toString()]={asyncId:S,isFetching:!1};return f};
c1o.prototype.JSC$16412_loadModules=function(){for(var f=this,S=new Map,B=[],G=_.m(_.qb.apply(0,arguments)),g=G.next();!g.done;g=G.next()){g=g.value;var b=this.moduleRegistry[g];b?b.resolver?S.set(g,b.resolver):(b.resolver=new _.w3,S.set(g,b.resolver),B.push(b.asyncId),b.isFetching=!0):(b=new _.w3,S.set(g,b),b.resolve(void 0))}B.length&&(this.fetchCount+=1,_.jA(_.b_.getMultipleAsync.apply(_.b_,_.$d(B)).then(function(z){for(var X=0;X<B.length;X++){var w=z[X],F=f.moduleRegistry[B[X].toString()];F.isFetching=
!1;F.resolver.resolve(w)}}).catch(function(z){for(var X=_.m(B),w=X.next();!w.done;w=X.next()){w=w.value;
var F=f.moduleRegistry[w.toString()];F.resolver=void 0;F.isFetching=!1;S.get(w.toString()).reject(z)}}),function(){--f.fetchCount}));
return Promise.all([].concat(_.$d(S.values())).map(function(z){return z.promise}))};_.ZW=new _.Sn("MODULE_REGISTRY_TOKEN");var lvu={},fZn=(lvu.rendered={priority:0,callback:function(f){a:{var S=void 0;try{var B;b:{if(_.tyQ()){var G=_.RST(_.vL()+"::pom");if(G){var g=new rQ(G);break b}}g=void 0}var b=(B=g)==null?void 0:B.get("role_text");if(!b)break a;S={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:b}]}}}}}}catch(w){}S&&f.injector.resolve(_.S7).resolveCommand(S)}try{var z=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(z){var X=JSON.parse(z);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
X&&f.injector.resolve(_.S7).resolveCommand(X)}}catch(w){}}},lvu);var o$2,Suz={},Beu=(Suz.initialized={priority:10,callback:function(){o$2=Oy()}},Suz.rendering={callback:function(f){var S;
return _.R(function(B){if(B.nextAddress==1)return _.h(B,o$2,2);S=B.yieldResult;if(!S.endpoint)throw Error("tj`"+_.S1.location.href);sy(f,S);_.TT(B)})}},Suz);var Gnu={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(_.$d(_.K("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(f){var S=f.stack;if(S.includes("chrome://")||S.includes("chrome-extension://")||f.message.includes("chrome-extension://")||S.includes("moz-extension://")||S.includes("local.adguard.org")||S.includes("auctioneer3.50million.club")||S.includes("youtubedownloader")||S.includes("youtube_home_page")||S.includes("is_youtube_video_no_longer_available")||
S.includes("switchScreenSizeHack")||S.includes("yt_main_big_banner.js")||S.includes("YouTubeCenter.js")||S.includes("/mytube.js")||S.includes("JSON.parseWrapper")||S.includes("/inj_js/common.js")||S.includes("firebug-lite")||S.includes(".repl.co/")||S.includes("linkfix")||S.includes("playAfterAd")||f.message.includes("Access is denied for this document")&&S.includes("<anonymous>")||f.fileName==="user-script"||f.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
S.includes("<anonymous>"))return!0;if(S.includes("https://www.youtube.com"))return!1;f=S.split("\n");if(!f.length)return!1;if(f.length<=3&&S.includes("s.onloadeddata"))return!0;S=0;for(var B=_.m(f),G=B.next();!G.done;G=B.next())G=G.value,(G.includes("https://")||G.includes("http://"))&&S++;return S/f.length>.95},
weight:0},{callback:function(f){return f.message==="Unknown Error"&&f.name.indexOf("NS_")===0},
weight:100},{callback:function(f){if(!_.Td)return!1;var S=f.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||f.message.includes("available to complete this operation"),B=f.stack.includes("webcomponents")&&f.message==="Object doesn't support this action";f=f.message.includes("object that does not implement interface Element");return S||B||f},
weight:0},{callback:function(f){return f.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(f){return f.message==="Operation is not supported"&&(f.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(f){return f.stack.includes("eval code (eval (code:1:1)")||f.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(f){return f.message.includes("Permission denied")&&f.stack.includes("this.domHandler")?!0:f.name.includes("TypeError")&&f.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(f){if(!f.stack)return!1;var S=f.stack.trim().split("\n");S.length&&S[0].endsWith("Error: "+f.message)&&S.shift();S.length&&S[S.length-1].includes("at window.onerror (")&&S.pop();if(!S.length)return!0;if(f.message==="Script error.")return S[0].includes("www.youtube.com")||S.length>=2&&S[0].startsWith("at new")&&S[1].startsWith("at window.onerror");if(f.message==="Unexpected token")return!0;f=_.m(S);for(S=f.next();!S.done;S=f.next())if(S=S.value,!(S.includes("<anonymous>")||
S.startsWith("load@")||S.startsWith("global code@")||S.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(f){return f.message==="Cannot read property 'experiments'"&&f.stack.includes("/s/player/")},
weight:500},{callback:function(f){return f.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(f){return f.stack.includes("/embed.js")?(f.params&&f.params&&(f.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.K("use_error_suppression"))var f=_.nL("SUPPRESS_CLIENT_ERRORS",!1);else{if(f=_.v_)f=/Chrome\/(\d+)/.exec(_.Js()),f=(f?parseFloat(f[1]):NaN)>=66;f=!(f||_.P_&&_.J$(65)||_.k0&&_.J$(12.1)||ay&&_.J$(79))}return f},
weight:500}]};var g$u={},eBY=(g$u.initialized={priority:10,callback:function(f){f.injector.addProvider({provide:LLX,useValue:f.root});f.injector.addProvider({provide:Cy7,useValue:bHs});f.injector.addProvider({provide:prm,useValue:Gnu});var S={};f.injector.addProvider((S.provide=Ah$,S.useFactory=function(B,G){return function(){$KQ(B,G)}},S[oN]=[Cy7,
prm],S));f.injector.addProvider({provide:wE,useClass:wE})}},g$u);var bYe={},m22=(bYe.initialized={priority:3,callback:function(){var f;if(f=BiW()){f=f.replace("/",".");var S=_.K2();S.set("tz",f);S.save();f=!0}else f=!1;f||(f=_.K2(),f.set("utco",-Math.floor((new Date).getTimezoneOffset())),f.save())}},bYe);var zBY={},RBn=(zBY.initialized={priority:10,callback:function(f){f.injector.resolve(wE).start();f=_.ut();var S=_.s6("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.s6("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.s6("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.s6("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.J9(_.rq9(),{mainAppWeb:Object.assign({},f,{pageType:S})});_.J9(O81(),{mainAppWeb:Object.assign({},f,{pageType:S})});
_.J9(xM1(),{mainAppWeb:f});_.J9(EoA(),{mainAppWeb:f});t76(function(){_.PY(xM1(),"FAILURE");_.PY(EoA(),"FAILURE")});
lYG();f1x();s51()}},zBY);var XOn={},wOO=(XOn.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.kT("dl"),_.UX().processSignal("pcl");else{var f=function(){_.kT("dl");_.UX().processSignal("pcl");window.removeEventListener("load",f)};
window.addEventListener("load",f)}}},XOn);var hBu={},Ten=(hBu.rendering={priority:0,callback:function(){var f=_.UX();f.parkOrScheduleJob(function(){f.processSignal("eocs")},10,"eor",5E3)}},hBu);var FuB=function(){};
_.q(FuB,IC);
FuB.prototype.resolveCommand=function(f,S){var B,G,g,b,z,X,w,F;return _.R(function(V){g=(B=_.H(f,_.bT8))==null?void 0:(G=B.dialog)==null?void 0:G.commentReplyDialogRenderer;if(!g)throw new _.dO("No dialog in createCommentReplyDialogEndpoint");z=(b=S.form)==null?void 0:b.event;if(!z)throw new _.dO("Event not passed in when resolving command");X=_.m(z.composedPath());for(w=X.next();!w.done;w=X.next())if(F=w.value,F.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||F.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return F.showReplyDialog(g),V.return();
_.TT(V)})};var JG=function(f){this.pageRequestService=f;this.JSC$16427_prefetchCoordinator=Y57()};
_.q(JG,IC);JG.prototype.resolveCommand=function(f){var S=this,B,G,g,b;return _.R(function(z){if(z.nextAddress==1){B=_.H(f,C6m);if((G=B)==null||!G.taskId)throw Error("uj");g=B.taskId;_.zT(z,2);return _.h(z,_.DuL(S.pageRequestService,f,{},"").then(function(X){if(!X)throw Error("vj");},function(X){throw Error("wj`"+X);
}),4)}if(z.nextAddress!=2)return OA$(S.JSC$16427_prefetchCoordinator,g),_.CN(z,0);
b=_.hm(z);aU(S.JSC$16427_prefetchCoordinator,g,b);_.TT(z)})};
JG[oN]=[jO];var Pp=function(f){this.innertubeTransportService=f};
_.q(Pp,IC);Pp.prototype.resolveCommand=function(f){var S=this,B,G;return _.R(function(g){B=_.H(f,A5m);if(B.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||B.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")G=B.boolValue?2:1,_.fD.getInstance().setState(G,!0,!0);return _.h(g,_.uF(S.innertubeTransportService,f),0)})};
Pp[oN]=[_.DU];var vp={},V2z=(vp.addToPlaylistEndpoint=lW(Kl),vp.addToToastAction=lW(HN),vp.adsControlFlowOpportunityReceivedCommand=lW(SK),vp.captionLanguageSelectActionCommand=lW(nl),vp.captionPickerEndpoint=lW(sB),vp.changeMiniAppPlayStateCommand=lW(ij),vp.changeTimelyActionVisibilityCommand=lW(d_),vp.channelCreationFormEndpoint=lW(TU),vp.clearLocationCommand=lW(vM),vp.clearUrlParamCommand=lW(HM),vp.copyLinkCommand=lW(pl),vp.copyTextEndpoint=lW(go),vp.createCommentReplyDialogEndpoint=xsG(FuB),vp.createPlaylistServiceEndpoint=
lW(AU),vp.dismissDialogEndpoint=lW($s),vp.entityUpdateCommand=lW(bj),vp.feedbackEndpoint=lW(RB),vp.getAnswerCommand=lW(n17),vp.getPaymentsClientTokenCommand=lW(L0),vp.getTranscriptEndpoint=lW(qn),vp.googlePaymentBillingCommand=lW(kO),vp.googlePaymentPurchaseManagerCommand=lW(n0),vp.hideEngagementPanelEndpoint=lW(Qc),vp.hideSnackbarCommand=lW(Tz),vp.insertRichSectionCommand=lW(Vc),vp.listMutationCommand=lW(JU),vp.logGtmCommand=lW(Fp),vp.notifyDropdownOptionSelectedCommand=lW(qh),vp.openAdAllowlistInstructionCommand=
lW(_.BM),vp.openOnePickAddVideoModalCommand=lW(Nh),vp.persistSubscriptionsDisplayPreferencesCommand=lW(yc),vp.pingingEndpoint=lW(GU),vp.playlistEditEndpoint=lW(Z_),vp.playlistVotingRefreshPopupCommand=lW(tU),vp.refreshPanelEndpoint=lW(Ys),vp.saveImageToDeviceEndpoint=lW(eK),vp.scrollToSectionEndpoint=xsG(spm),vp.seekToVideoTimestampCommand=lW(D_),vp.selectCountryCommand=lW(WM),vp.setCookieCommand=lW(cM),vp.setLocalStorageCommand=lW(V7),vp.setPrefStorageEntryCommand=lW(f0),vp.setSettingEndpoint=lW(Pp),
vp.sfvAudioItemPlaybackCommand=lW(IB),vp.shareImageCommand=lW(ox),vp.sharingProviderDataCommand=lW(SB),vp.showCaptionLanguageSelectActionCommand=lW(UB),vp.showDialogCommand=lW(OB),vp.showEngagementPanelEndpoint=lW(xs),vp.showSheetCommand=lW(EB),vp.showSnackbarCommand=lW(FI),vp.showTransientPlayerScrimOverlayCommand=lW(Cl),vp.submitFormWithValidationFlowCommand=lW(hU),vp.talkToRecsDeselectCommand=lW(JF),vp.talkToRecsNextCommand=lW(PN),vp.talkToRecsSelectCommand=lW(vN),vp.talkToRecsUpdateTextCommand=
lW(K0),vp.toggleEngagementPanelCommand=lW(Ll),vp.undoFeedbackEndpoint=lW(wo),vp.updateEngagementPanelContentCommand=lW(ks),vp.updateUrlParamCommand=lW(E3),vp.verifyCommand=lW(TU),vp.webNativeShareCommand=lW(BN),vp.webSubmitFormCommand=lW(uj),vp.ACK_PLAYABLES_3P_DATA_CONSENT=lW(Gz),vp.CANCEL_NAVIGATION=lW(g_),vp.COPY_SHARE_URL=lW(eB),vp.MINI_APP_EXIT_DIALOG_SEEN=lW(mB),vp.MINI_APP_OPEN_URL=lW(bf),vp.REQUEST_MINI_APP_FULLSCREEN=lW(zz),vp.RESUME_NAVIGATION=lW(Rx),vp.SHARE_PLAYABLE_WITH_HIGH_SCORE=lW(XI),
vp.TELL_US_WHY=lW(Xp),vp);_.K("web_enable_prefetching_videos_on_home")&&(V2z.prefetchWatchCommand=lW(JG),V2z.registerTasksCommand=lW(Wg));_.K("enable_share_panel_navigation_logging_fix_on_web")&&(V2z.shareEntityServiceEndpoint=lW(ro));var Mym=Object.assign({},V2z);var JXu={},Pzu=(JXu.initialized={priority:10,callback:giM},JXu);var v$u={},KuM=(v$u.initialized={callback:function(f){var S={},B={};Z0V().install((S.document_disposed={callback:function(){_.K("finalize_all_timelines")?cVW():xT();r8M("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.BwT();var G=f.injector.resolve(wE);G.intervalId!==void 0&&(G.intervalId&&_.xJ.cancelJob(G.intervalId),G.intervalId=void 0,--G.currentPartitionIndex,G=dWj(G),G>0&&ODm({mainAppWeb:_.ut(),survivalSli:{partitionMinute:G,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));dwi(MG);ZS!=null&&
ZS.flush();bt&&bt.snapshotAndFlush();G=_.m(Uj8.values());for(var g=G.next();!g.done;g=G.next())g.value.snapshotAndFlush()}},S),(B.flush_logs={callback:function(){_.OU()}},B))}},v$u);var d2u={},iYO=(d2u.rendered={priority:0,callback:function(){var f=new Lrv;f.increment("STARTED");if(_.nL("LOGGED_IN")&&_.nL("SERVER_VERSION")!=="test"&&_.nL("SERVER_VERSION")!=="dev"&&!X9m()&&!R17()){f.increment("EXECUTING");var S=document.createElement("iframe");S.style.display="none";_.Pd9(S,2,_.io("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.nL("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(S);f.increment("DONE")}}},d2u);var HYz={},quM=(HYz.rendered={callback:function(){Y57().resume()}},HYz);var $2X={acknowledgeChannelTouStrikeCommand:YG(ww),addToPlaylistServiceEndpoint:YG(zp),addToPlaylistEndpoint:YG(zp),addUpcomingEventReminderEndpoint:YG(Yl),browseEndpoint:YG(zUL),channelCreationFormEndpoint:YG(G2),channelCreationServiceEndpoint:YG(gw),claimLegacyYoutubeChannelEndpoint:YG(Mn),clearSearchHistoryEndpoint:YG(vc),clearWatchHistoryEndpoint:YG(Kr),commerceActionCommand:r3(Oh),createBackstagePostEndpoint:YG(Ix),createBroadcastCommand:YG(rw),createCommentEndpoint:YG(fr),createCommentReplyEndpoint:YG(lf),
createLiveChatPollEndpoint:YG(jS),createPlaylistServiceEndpoint:YG(RU),crossAccountChannelTransferEndpoint:YG(Hc),deleteLiveChatMessageCommand:YG(Op),deletePlaylistEndpoint:YG(Xi),deleteVideoEndpoint:YG(QX),dismissalEndpoint:YG(hu),feedbackEndpoint:YG(T2),flagEndpoint:YG(JM),getAccountSwitcherEndpoint:YG(iS),verifyCommand:YG(D5),getAccountsListInnertubeEndpoint:YG($l),getCommentsFromInboxCommand:YG(Zn),getDownloadActionCommand:YG(lS),getFlowCommand:r3(Pc),getKidsBlocklistPickerCommand:YG(Pg),getNotificationMenuEndpoint:YG(wr6),
getPaymentInstrumentsParamsCommand:YG(sh),getPaymentsClientTokenCommand:r3(Oh),getPdgBuyFlowCommand:YG(bV),getReportFormEndpoint:YG(vg),getSearchInVideoCommand:YG(iV),getAnswerCommand:YG(d6),getSurveyCommand:YG($3),getTranscriptEndpoint:YG(r6),getPostVideoPreviewEndpoint:YG(C0),decorateMessageEndpoint:YG(U3),likeEndpoint:YG(eS),liveChatActionEndpoint:YG(kl),liveChatEndpoint:YG(Lr),liveChatItemContextMenuEndpoint:YG(xl),liveChatPurchaseMessageEndpoint:YG(nr),liveChatReplayEndpoint:YG(Ep),manageLiveChatUserEndpoint:YG(Dn),
metadataUpdateCommand:YG(NW),moderateLiveChatEndpoint:YG(Iw),modifyChannelNotificationPreferenceEndpoint:YG(y8),notificationOptOutEndpoint:YG(Wc),openSuperStickerBuyFlowCommand:YG(sp),performCommentActionEndpoint:YG(y7),playlistEditEndpoint:YG(hM),playlistEditorEndpoint:YG(w6),profileCardCommand:YG(Q8),recordNotificationInteractionsEndpoint:YG(cc),reelWatchEndpoint:YG(Tp),refreshPanelEndpoint:YG(oU),removeUpcomingEventReminderEndpoint:YG(Up),resolveLocationCommand:YG(Au),revealBusinessEmailCommand:YG(Z5),
searchEndpoint:YG(_.hUN),sendLiveChatMessageEndpoint:YG(Cr),sendLiveChatVoteEndpoint:YG(pr),setSettingEndpoint:YG(bS),shareEntityServiceEndpoint:r3(Rw),sharingProviderDataCommand:YG(q8),showEngagementPanelEndpoint:YG(Sl),showMoreDrawerCommand:YG(Gp),showSheetCommand:YG(g6),showDialogCommand:YG(Bg),subscribeEndpoint:YG(mL),transcriptSubmitCaptionCorrectionCommand:YG(Y3),undoFeedbackEndpoint:YG(V8),unsubscribeEndpoint:YG(z2),updateBackstagePostEndpoint:YG(AF),updateCommentEndpoint:YG(SS),updateCommentReplyEndpoint:YG(ow),
updateCommentsSettingsEndpoint:YG(Bc),updateCreatorChannelInnertubeCommand:YG(uf),updateKidsBlacklistEndpoint:YG(Km),updateEngagementPanelContentCommand:YG(el),updatePdgFeatureEnablementCommand:YG(mf),updatedMetadataEndpoint:YG(MW),validateChannelHandleCommand:YG(ax),updateChannelPageSettingsEndpoint:YG(tF),verifyAgeEndpoint:YG(Ju),watchEndpoint:r3(Ji),whitelistEditEndpoint:YG(jl),ypcCancelRecurrenceEndpoint:YG(x3),ypcCompleteTransactionEndpoint:YG(Eh),ypcFixInstrumentEndpoint:YG(k3),ypcGetCartEndpoint:YG(Lm),
ypcGetOffersEndpoint:YG(nm),ypcHandleTransactionEndpoint:r3(DB),ypcLogWalletAnalyticDataEndpoint:YG(IU),ypcOffersEndpoint:YG(Uh),ypcPauseSubscriptionCommand:YG(Cm),ypcRedeemCodeEndpoint:YG(pm),ypcResumeSubscriptionCommand:YG(AM),ypcUpdateFopEndpoint:YG(k3)},KG={},QoB=(KG.GET_ACCOUNT_MENU=YG(qW),KG.GET_NOTIFICATIONS_MENU=YG(Xrg),KG.GET_NOTIFICATIONS_INBOX=YG(tu),KG.GET_UNSEEN_NOTIFICATION_COUNT=YG(aw),KG.GET_USER_MENTION_SUGGESTIONS=YG(p0),KG.LOAD_GUIDE=YG(RU1),KG.SUBMIT_FEEDBACK=YG(FR),KG),dV={},
Yuu=(dV.CONTINUATION_REQUEST_TYPE_BROWSE=YG(Nn),dV.CONTINUATION_REQUEST_TYPE_SEARCH=YG(Hg),dV.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=YG(v4),dV.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=YG(dw),dV.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=YG(cN),dV.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=YG(WN),dV.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=YG(VX),dV.CONTINUATION_REQUEST_TYPE_GET_PANEL=YG(fm),dV),rXo={player:r3(Ji),watchNext:YG(P4)},joX={player:r3(Ji),reelItemWatch:YG(Tp),reelWatchSequence:YG(Fi)},
OYM={watchEndpoint:r3(K5)},x2u={commandEndpointMap:$2X,signalEndpointMap:QoB,continuationEndpointMap:Yuu,watchEndpointMap:rXo,reelWatchEndpointMap:joX,streamingEndpointMap:OYM};var E$B,LuZ,kne,n$B={disableAllTransitions:(LuZ=(E$B=window).matchMedia)==null?void 0:(kne=LuZ.call(E$B,"(prefers-reduced-motion: reduce)"))==null?void 0:kne.matches,transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["zoom",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["learning-journey",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:600}}]])};var ea1={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 m01=["videoPrimaryInfoRenderer","title"],zas=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var son;son=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.D2O=_.oS(function(f){f=_.lu(f,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var S=f.data,B=f.playlistData,G=f.expanded,g=f.onExpandClick,b=f.isReadyToResume,z=function(){var V;return!((V=B())==null||!V.contents)},X=function(){var V=B();
return V&&V.totalVideos&&V.currentIndex!==void 0?V.currentIndex+1+" / "+V.totalVideos:""};
f=_.iF(function(){_.i$(_.oy().resolve(_.N_));return!1});
var w=_.iF(function(){z()&&g&&g()}),F={};
return _.T("ytd-miniplayer-info-bar",{class:_.Pw("ytdMiniplayerInfoBarHost",(F.ytdMiniplayerInfoBarHasPlaylistData=z,F)),"on:click":w},_.T("div",{class:"ytdMiniplayerInfoBarContent"},_.T("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":f},_.T(_.oY,{text:function(){var V=S();var J=B();if(J==null?0:J.contents){var P;V=(P=_.MEV(J))==null?void 0:P.title}else V=V==null?void 0:V.miniplayerTitle;return X61(V)},
noEndpoints:!0,ellipsisTruncate:!0})),_.T("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.T(_.v,{cond:b,then:function(){return _.T(kpN,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:son})}}),_.T("h1",null,_.T(_.oY,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var V=S();var J=B();V=b()?{simpleText:_.Jf("CONTINUE_WATCHING",void 0,"Continue watching")}:(J==null?0:J.contents)?J.titleText:V==null?void 0:V.miniplayerSubtitle;return X61(V)},
noEndpoints:!0,ellipsisTruncate:!0})),_.T(_.v,{cond:function(){return!!X()&&!b()},
then:function(){return _.T("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.T("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.T("span",null,X))}}))),_.T(_.v,{cond:z,
then:function(){return _.T("div",{class:"ytdMiniplayerInfoBarExpand"},_.T(Be,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(V){g&&(g(),V.stopPropagation())}}},
iconName:function(){return G()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"ue");var IZn;IZn=_.oS(function(f){return _.T("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.T(Be,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:f.onTap}},
iconName:"yt-icons:close"}))},"ve");
_.U22=_.oS(function(f){f=_.lu(f,{playabilityStatus:void 0,isDisabled:!1});var S=f.size,B=f.playabilityStatus,G=f.isDisabled,g=_.tE("div");f=_.m(_.hj(void 0,void 0,"bJr0Se"));var b=f.next().value,z=f.next().value;f=_.Uo(_.d5);var X=!1,w=function(){return S().height<=0};
_.jp(function(){var P=S(),d=w(),Q=b();Q&&!d&&Q.setInternalSize(P.width,P.height)},"OUOyKb");
_.Y5(function(){var P,d,Q;return _.R(function(x){if(x.nextAddress==1){P=_.oy().resolve(_.N_);d=P.getPlayerElement();if(!P.isMiniplayerActive()||!d||!g.value)return x.return();d.appendTo(g.value);return _.h(x,d.getPlayerPromise(),2)}Q=x.yieldResult;Q.setSizeStyle(!1,!0);z(Q);_.TT(x)})});
_.Ov(function(){F()});
_.jp(function(){var P=b();if(P)if(G()){var d=P.getPlayerState();(X=d===-1||d===1||d===3)&&P.pauseVideo()}else F()},"KKHe5");
var F=function(){if(X){X=!1;var P;(P=b())==null||P.playVideo()}},V=_.iF(function(){_.i$(_.oy().resolve(_.N_))}),J={};
return _.T("ytd-miniplayer-player-container",{class:_.Pw("ytdMiniplayerPlayerContainerHost",(J.ytdMiniplayerPlayerContainerHidden=w,J.ytdMiniplayerPlayerContainerHostShortsPip=f,J)),style:_.Qj({width:function(){return S().width+"px"},
height:function(){return S().height+"px"}})},_.T("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:g}),_.T(_.v,{cond:function(){return!!B()&&!_.fYG(B())},
then:function(){return _.T(rdN,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var P;return((P=B())==null?void 0:P.errorScreen)||null},
status:function(){var P;return((P=B())==null?void 0:P.status)||null}})}}),_.T(_.v,{cond:G,
then:function(){return _.T("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":V},_.T(IZn,{onTap:function(){_.oy().resolve(_.N_).close()}}))}}))},"we");_.CzO=_.oS(function(f){var S=f.toastData;var B=_.tE("ytd-miniplayer-toast");f=_.m(_.$8(function(){return!!S()}));
var G=f.next().value,g=f.next().value;f=_.m(_.hj(!1,void 0,"xkrBze"));var b=f.next().value,z=f.next().value,X=function(){var V;return _.ac((V=S())==null?void 0:V.data.title)};
_.j9(function(){_.A5.requestAvailability();S()&&g(!1)});
var w,F;_.jp(function(){G()&&(_.ew(B.value,"iron-announce",{text:S().label+" "+X()}),w&&_.xJ.cancelJob(w),w=_.xJ.addLowPriorityJob(function(){z(!0)},2500))},"OTdL1e");
_.jp(function(){b()&&(F&&_.xJ.cancelJob(F),F=_.xJ.addLowPriorityJob(function(){g(!1);z(!1)},300))},"yybqib");
f={};return _.T("ytd-miniplayer-toast",{el:B,class:_.Pw("ytdMiniplayerToastHost",(f.ytdMiniplayerToastOpening=function(){return G()},f.ytdMiniplayerToastClosing=function(){return b()},f))},_.T(_.v,{cond:function(){var V;
return(V=S())==null?void 0:V.data},
then:function(V){return _.T(pp6,{className:"ytdMiniplayerToastThumbnail",data:V,width:78})}}),_.T("div",{class:"ytdMiniplayerToastInfo"},_.T("div",{class:"ytdMiniplayerToastLabel"},function(){var V;
return(V=S())==null?void 0:V.label}),_.T("div",{class:"ytdMiniplayerToastTitle"},X)))},"xe");var d0j;var qxG=null;var AXz=_.oS(function(f){var S=f.progressState;var B=f.multiMarkersPlayerBarRenderer;var G=f.progressBarWidth;var g=function(){return rNK(B())},b=function(){return x0T(S())},z=function(){return G()*(S().playedTime/S().videoDuration)};
return _.T("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.T(_.dg,{each:g},function(X,w){return _.T(pO2,{modifiedProps:b,chapters:g,index:w,playedProgressWidth:z,backgroundGradientPosition:function(){var F=b(),V=g(),J=w(),P=z();return(F.playedTime-pz(_.H(V[J],Cz)))/F.playedTime*P}})}))},"ye"),pO2=_.oS(function(f){var S=f.modifiedProps;
var B=f.chapters;var G=f.index;var g=f.playedProgressWidth;var b=f.backgroundGradientPosition;f={};f=_.Pw("ytChapteredProgressBarChapteredPlayerBarChapter",(f.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return z().isScrubbing},f.ytChapteredProgressBarHoveredMacroMarker=function(){return z().scrubberHovering},f.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return z().videoPosition==="seen"},f));
var z=function(){return Ei9(S(),B(),G())},X=function(){var w=S();
var F=B(),V=G();if(Ei9(w,F,V).videoPosition!=="active")w=0;else{var J=pz(_.H(F[V],Cz));w=(w.playedTime-J)/((pz(_.H(F[V+1],Cz))||w.videoDuration)-J)}return w};
return _.T("div",{class:f,style:_.Qj({width:function(){var w=S(),F=B(),V=G(),J=_.H(F[V],Cz);F=_.H(F[V+1],Cz);return(F?pz(F)-pz(J):w.videoDuration-pz(J))/w.videoDuration*100+"%"},
"background-color":function(){a:{var w=z();switch(w.videoPosition){case "pending":w=w.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":w=w.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:w=""}}return w},
"background-size":function(){return(L3K(z())?g():"")+"px"},
"background-position-x":function(){return(L3K(z())?b():"")+"px"}})},_.T("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var w=S(),F=B(),V=G();if(Ei9(w,F,V).videoPosition==="seen")var J=0;else J=pz(_.H(F[V],Cz)),F=pz(_.H(F[V+1],Cz))||w.videoDuration,w=w.videoDuration*w.percentLoaded,J=F<=w?1:J>=w?0:(w-J)/(F-J);return"width: "+J*100+"%"}}),_.T("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.Qj({width:function(){return X()*100+"%"},
"background-size":function(){return(L3K(z(),X())?g():"")+"px"},
"background-position-x":function(){return(L3K(z(),X())?b():"")+"px"}})}))},"ze");var Ne$=function(f,S){S=S===void 0?Sn$:S;var B,G=[],g,b=!1;return function(){var z=_.qb.apply(0,arguments);if(b&&B===this&&S(z,G))return g;g=f.apply(this,z);b=!0;B=this;G=z;return g}}(function(f){var S=f.heatMarkers,B=f.minHeightDp===void 0?0:f.minHeightDp,G=f.maxHeightDp===void 0?60:f.maxHeightDp;
var g=g===void 0?!1:g;var b=1E3/S.length;f=[];f.push({x:0,y:100});for(var z=0;z<S.length;z++){var X=void 0,w=((X=_.H(S[z],Cem))==null?void 0:X.heatMarkerIntensityScoreNormalized)||0;X=(z+.5)*b;w=100-_.Uy(w*100,B/321*100,G/321*100);z!==0||g||f.push({x:0,y:w});f.push({x:X,y:w});z===S.length-1&&f.push({x:1E3,y:w})}f.push({x:1E3,y:100});S="";for(B=0;B<f.length;B++)g=f[B],B===0?g="M "+g.x.toFixed(1)+","+g.y.toFixed(1):(G=cc9(f[B-1],f[B-2],g),b=cc9(g,f[B-1],f[B+1],!0),g=" C "+(G.x.toFixed(1)+","+G.y.toFixed(1)+
" "+b.x.toFixed(1)+","+b.y.toFixed(1)+" "+g.x.toFixed(1)+","+g.y.toFixed(1))),S+=g;return S});var M2u=_.oS(function(f){var S=f.progressBarProps;var B=f.config;var G={};f=_.Pw("ytHeatSeekerHost",(G.ytHeatSeekerHighContrast=f.highContrast,G));var g=function(){return V_Q(B().chapterData)};
return _.T("yt-progress-bar-heatseeker",{class:f,style:function(){var b;return"height: 320px; display: "+(S().isDragging&&((b=g())==null?0:b.heatMarkers)?"block":"none")}},_.T(_.v,{cond:g,
then:function(b){return _.T(_.v,{cond:function(){return b().heatMarkers},
then:function(){return _.T("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.T("path",{d:function(){return Ne$(b())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Ae");var ZYo=_.oS(function(f){var S=f.progressBarProps;var B=f.config;f={};f=_.Pw("ytProgressBarLineProgressBarLine",(f.ytProgressBarLineProgressBarLineRounded=function(){return B().rounded},f.ytProgressBarLineProgressBarLineBottomInset=function(){return B().position===2},f));
return _.T("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.T("div",{class:f},_.T("div",{class:"ytProgressBarLineProgressBarBackground"}),_.T("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+S().percentLoaded*100+"%"}}),_.T("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var G=S();return"width: "+(G.videoDuration?_.Uy(G.hoveredTime/G.videoDuration,0,1):0)*100+"%"}}),_.T("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+haV(S())*100+"%"}})))},"Be");
ZYo.idomCompat=!0;var t2u=_.oS(function(f){var S=f.progressBarProps;var B=f.playheadData;var G=f.interpolateDotPosition;var g=f.hidePlayhead;f={};var b=_.Pw("ytProgressBarPlayheadProgressBarPlayheadDot",(f.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return S().isDragging},f.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!S().isDragging&&g()},f));
return _.T("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.Qj({"margin-left":function(){return TBK(S())*100+"%"},
transform:function(){return"translateX(-"+(G()?TBK(S())*12:6)+"px)"}})},_.T(_.v,{cond:function(){var z;
return(z=_.cF(B)())==null?void 0:z.playheadImage},
then:function(z){var X={};return _.T("div",{class:_.Pw("ytProgressBarPlayheadProgressBarPlayheadCustom",(X.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return S().isDragging},X.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!S().isDragging&&g()},X)),
style:_.Qj({"transform-origin":function(){return(G()?TBK(S())*20:10)+"px center"}})},_.T(_.f9,{data:z,
alt:"","aria-hidden":"true"}))},
else:function(){return _.T("div",{class:b,style:_.Qj({"transform-origin":function(){return(G()?TBK(S())*12:6)+"px center"}})})}}))},"Ce");
t2u.idomCompat=!0;var Hp=function(f,S,B,G,g,b){this.getProgressBarRect=f;this.updateProgressBarRect=S;this.getFilmstripYPosition=B;this.setFineScrubbingDraggedTime=G;this.updateFilmStripDraggedYDistance=g;this.resetFilmStripYOffset=b;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.S3(this.onThrottledSeek,100,this)},uun=function(f,S,B){return function(G){f.handleClick(G,S(),B())}},WuO=function(f,S){return function(B){aZz(f,
B,yXB(B),S())}},cXo=function(f,S){return function(B){aZz(f,B,{x:B.clientX,
y:B.clientY},S())}},fgO=function(f,S,B){return function(G){var g=S(),b=B();
lZX(f,G,yXB(G),g,b,!0);if(b.onTouchMove)b.onTouchMove(g)}},S7M=function(f,S,B){return function(G){og$(f,G,S(),B())}},BIM=function(f,S){return function(){f.handleMouseLeave(S())}},GX2=function(f,S,B){return function(){var G=S(),g=B();
q4(f,G,g);if(g.onTouchEnd)g.onTouchEnd(G)}},ggZ=function(f,S,B){return function(){var G=S(),g=B();
q4(f,G,g);if(g.onTouchEnd)g.onTouchEnd(G)}},eDn=function(f,S,B){return function(){q4(f,S(),B())}},bXY=function(f){return function(S){if(S.keyCode===39||S.keyCode===38){var B,G;
(B=f())==null||(G=B.playerApi)==null||G.seekBy(5,void 0,void 0,72)}else if(S.keyCode===37||S.keyCode===40){var g,b;(g=f())==null||(b=g.playerApi)==null||b.seekBy(-5,void 0,void 0,71)}}},mku=function(f,S,B){return function(G){!B().disableScrubbing&&f.startPosition&&og$(f,G,S(),B())}},zDO=function(f,S,B){return function(){if(!B().disableScrubbing)if(f.startPosition){var G=S(),g=B();
q4(f,S(),B());if(g.onTouchEnd)g.onTouchEnd(G)}else S().setState({isDragging:!1})}},yXB=function(f){f=f.touches[0];
return{x:f.clientX,y:f.clientY}},og$=function(f,S,B,G){if(S.buttons!==1){if(S.movementX||S.movementY)S.preventDefault(),S.stopPropagation(),f=RDM(f,B,S.clientX),B.setState({isHovering:!0,
hoveredTime:f*B.videoDuration})}else XQz(B),lZX(f,S,{x:S.clientX,y:S.clientY},B,G,!1)};
Hp.prototype.handleMouseLeave=function(f){XQz(f)};
var XQz=function(f){f.isHovering&&f.setState({isHovering:!1,hoveredTime:0})},aZz=function(f,S,B,G){f.startPosition||(f.startPosition=B,f.updateProgressBarRect(),f.controlsWereVisibleBeforeDragging=G.controlsVisible,S.stopPropagation(),_.K("medium_progress_bar_modification")||S.preventDefault())},lZX=function(f,S,B,G,g,b){if(f.startPosition)if(b&&g.isInlinePlayback&&f.startPosition&&!f.hasDraggedTheMinimumDistance&&Math.abs(B.y-f.startPosition.y)>Math.abs(B.x-f.startPosition.x))q4(f,G,g);
else if(S.preventDefault(),S.stopPropagation(),G.videoDuration&&(f.startPosition&&!f.hasDraggedTheMinimumDistance&&(f.hasDraggedTheMinimumDistance=Math.abs(B.x-f.startPosition.x)>=1),g.enableFineScrubbing&&(f.startPosition&&(f.isDraggedForFineScrubbing=-(B.y-f.startPosition.y)>=60),!f.startPosition||B.y>=f.startPosition.y||(G.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:kQV(G.draggedTime,G,g.chapterData)}),f.setFineScrubbingDraggedTime(G.draggedTime),f.updateFilmStripDraggedYDistance(f.startPosition.y,
B.y,G))),f.hasDraggedTheMinimumDistance)){S=RDM(f,G,B.x);if(f.isDraggedForFineScrubbing){var z;(z=G.playerApi)==null||z.pauseVideo();G.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:G.draggedTime,filmStripXDistance:kQV(S*G.videoDuration,G,g.chapterData)})}g.enableFineScrubbing&&(!g.enableFineScrubbing||f.getFilmstripYPosition(G)<68)||G.setState({draggedTime:S*G.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:f.controlsWereVisibleBeforeDragging});var X;(X=
g.cancelAutohideControlsFn)==null||X.call(g)}},q4=function(f,S,B){var G=B.enableFineScrubbing&&S.fineScrubbingActiveState!=="off";
if(S.isDragging||G){G={isDragging:!1,playedTime:S.draggedTime,controlsVisible:f.controlsWereVisibleBeforeDragging};B.enableFineScrubbing&&S.fineScrubbingActiveState!=="on"&&(f.resetFilmStripYOffset(),G.fineScrubbingActiveState="off");var g=g===void 0?qxG:g;var b=_.xc(0);b&&g&&_.aD(b,g,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:Math.round(S.playedTime*1E3),endMediaTimeMs:Math.round(S.draggedTime*1E3),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}});S.setState(G);
f.seekThrottle.fire(S.draggedTime,S,7);_.K("mweb_new_progress_bar_play_on_seek")&&f.resumeVideo(S);B.unmuteOnSeek&&(B=S.playerApi,S.volumeMuted&&(B==null||B.unMute()))}else S.setState({controlsVisible:!S.controlsVisible}),(b=B.triggerAutohideControlsAfterDelayFn)==null||b.call(B);f.startPosition=null;f.hasDraggedTheMinimumDistance=!1;f.isDraggedForFineScrubbing=!1;f.controlsWereVisibleBeforeDragging=!1};
Hp.prototype.handleClick=function(f,S,B){this.updateProgressBarRect();f.stopPropagation();f=RDM(this,S,f.clientX)*S.videoDuration;S.setState({playedTime:f});if(S.playerState!==2){var G;(G=B.triggerAutohideControlsAfterDelayFn)==null||G.call(B)}this.seekThrottle.fire(f,S,7)};
var RDM=function(f,S,B){f=f.getProgressBarRect(S);return _.Uy(0,(B-f.left)/f.width,1)};
Hp.prototype.resumeVideo=function(f){if(f.draggedTime<f.videoDuration){var S;(S=f.playerApi)==null||S.playVideo()}};
Hp.prototype.onThrottledSeek=function(f,S,B){if(S=S.playerApi){var G;if((G=S.getVideoData())==null?0:G.isLive)G=this.getProgressState(S),f+=(G==null?void 0:G.seekableStart)||0;S.seekTo(f,void 0,void 0,void 0,B)}};
Hp.prototype.getProgressState=function(f){var S=f==null?void 0:f.getPresentingPlayerType();return f==null?void 0:f.getProgressState(S)};var TIu,hDZ,Fze,Jru,wQe,PdO,vgu,Kzo,dkY;TIu=_.oS(function(f){var S=f.progressBarProps;var B=f.config;var G=f.progressBarWidthPx;var g=f.chapterData;var b=U09(S,function(){return B().isShortsPage}),z=function(){return!S().isHovering&&!B().isShortsPage};
f={};var X=_.Pw("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(f.ytPlayerStoryboardHostMwebShorts=function(){return B().isShortsPage&&!1},f));
return _.T("yt-player-storyboard",null,_.T(_.v,{cond:function(){return S().isDragging||S().isHovering},
then:function(){return _.T(_.v,{cond:b,then:function(w){return _.T(_.v,{cond:z,then:function(){return _.T("div",{class:X,"aria-hidden":"true"},_.T(wQe,{props:S,config:B,isBigboard:!0,chapterData:g}))},
else:function(){return _.T(hDZ,{props:S,frame:w,config:B,progressBarWidthPx:G,chapterData:g})}})}})}}))},"De");
_.V02=_.oS(function(f){var S=f.progressBarProps;var B=U09(S,f.isShortsPage);return _.T("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.T(_.v,{cond:function(){return S().isDragging||S().isHovering},
then:function(){return _.T(_.v,{cond:B,then:function(G){return _.T(Fze,{frame:G,props:S,isBigboard:!0})}})}}))},"Ee");
hDZ=_.oS(function(f){var S=f.props;var B=f.frame;var G=f.config;var g=f.progressBarWidthPx;f=f.chapterData;var b={};b=_.Pw("ytPlayerStoryboardHost",(b.ytPlayerStoryboardHostMwebShorts=function(){return G().isShortsPage&&!1},b.ytPlayerStoryboardHostInlinePlayer=function(){return G().isInlinePlayer},b.ytPlayerStoryboardHostFadeIn=function(){return G().useFadeInAnimation},b));
return _.T("div",{class:b,"aria-hidden":"true",style:function(){var z=S(),X=niM(B()),w=g();z=sLj(z)/z.videoDuration;var F=w*z,V=X/2+6;X=w-(X/2+6);return"left: "+(F<=V?V/w*100:F>=X?X/w*100:z*100)+"%"}},_.T(_.v,{cond:function(){var z=S();
return!(G().isShortsPage&&z.videoDuration<15)},
then:function(){return _.T(Fze,{frame:B,props:S,isBigboard:!1})}}),_.T(wQe,{props:S,
config:G,isBigboard:!1,chapterData:f}))},"Fe");
Fze=_.oS(function(f){var S=f.frame;var B=f.props;var G=f.isBigboard;var g=function(){var X,w;return(w=(X=B().playerApi)==null?void 0:X.getVideoContentRect())!=null?w:{width:0,height:0}},b=function(){return niM(S())},z=function(){var X=S();
return X?X.height/X.rows:0};
f={};f=_.Pw((f.ytPlayerStoryboardBigboardImageWrapper=G,f.ytPlayerStoryboardStoryboardImageWrapper=function(){return!G()},f));
return _.T("div",{class:f,style:function(){return"width: "+(G()?g().width:b())+"px; height: "+(G()?g().height:z())+"px;"}},_.T(Jru,{frame:S,
storyboardWidth:b,storyboardHeight:z,storyboardScale:function(){return(G()?g().width:b())/b()}}))},"Ge");
Jru=_.oS(function(f){var S=f.frame;var B=f.storyboardWidth;var G=f.storyboardHeight;var g=f.storyboardScale;var b=function(){var z=S().row,X=S().column,w=B(),F=G(),V=g();return{left:-X*w*V,top:-z*F*V}};
return _.T("img",{src:function(){return S().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+b().left+"px; top: "+b().top+"px; width: "+S().width*g()+"px; height: "+S().height*g()+"px;"}})},"He");
wQe=_.oS(function(f){var S=f.props;var B=f.config;var G=f.isBigboard;var g=f.chapterData;f={};f=_.Pw("ytPlayerStoryboardMetadata",(f.ytPlayerStoryboardMetadataBigboard=G,f));return _.T("div",{class:f},_.T(_.v,{cond:G,then:function(){return _.T(_.gg,null,_.T(PdO,{props:S,config:B}),_.T(_.v,{cond:function(){a:{var b=S();var z=B(),X=g(),w;if((z==null?0:z.activeChapter)&&((w=_.H(z==null?void 0:z.activeChapter,Cz))==null?0:w.title))b=!0;else{z=_.m(JNK(X));for(z=z.next();!z.done;z=z.next()){b=(z=_.H(z.value,
Av$))&&D0W(b,z);break a}b=!1}}return b},
then:function(){return _.T(vgu,{props:S,config:B,isBigboard:!0,chapterData:g})}}))},
else:function(){return _.T(_.gg,null,_.T(vgu,{props:S,config:B,isBigboard:!0,chapterData:g}),_.T(PdO,{props:S,config:B}))}}))},"Ie");
PdO=_.oS(function(f){var S=f.props;var B=f.config;f={};f=_.Pw("ytPlayerStoryboardTimestamp",(f.ytPlayerStoryboardTimestampShorts=function(){return B().isShortsPage},f.ytPlayerStoryboardTimestampIsHovering=function(){return S().isHovering||B().isShortsPage&&!0},f));
return _.T("div",{class:f},_.T(_.gg,null,function(){return _.I1s(sLj(S()))}))},"Je");
vgu=_.oS(function(f){var S=f.props;var B=f.config;var G=f.isBigboard;var g=f.chapterData;f={};G=_.Pw("ytPlayerStoryboardTitle",(f.ytPlayerStoryboardTitleBigboard=G,f));return _.T("div",{class:G},_.T(_.v,{cond:function(){return!B().isShortsPage},
then:function(){return _.T(Kzo,{props:S,activeChapter:function(){return B().activeChapter},
chapterData:g})}}))},"Ke");
Kzo=_.oS(function(f){var S=f.props;var B=f.activeChapter;var G=f.chapterData;return _.T(_.gg,null,_.T(_.dg,{each:function(){return JNK(G())},
keyBy:"INDEX"},function(g){return _.T(_.gg,null,_.T(_.v,{cond:function(){return _.H(g(),Av$)&&D0W(S(),_.H(g(),Av$))},
then:function(){return _.T(dkY,{timedMarker:function(){return _.H(g(),Av$)}})}}))}),_.T(_.v,{cond:function(){var g;
return B()&&((g=_.H(B(),Cz))==null?void 0:g.title)},
then:function(g){return _.T(_.oY,{text:g,noPreWrap:!0})}}))},"Le");
dkY=_.oS(function(f){var S=f.timedMarker;return _.T(_.gg,null,_.T("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.T(_.Y8,{icon:function(){return S().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.T(_.oY,{text:function(){return S().label},
noPreWrap:!0}))},"Me");_.iXu=_.oS(function(f){var S=f.progressBarProps;var B=f.playheadData;var G=f.config;f=_.tE("yt-progress-bar");var g=_.tE("div"),b=_.tE("div"),z=_.m(_.hj({width:0,left:0},void 0,"NcXsUb")),X=z.next().value,w=z.next().value,F=function(){b.value&&w(b.value.getBoundingClientRect())},V=function(){X().width<=0&&F();
return X()};
ls("resize",F);var J=new Hp(V,function(){},function(){return 0},function(){},function(){},function(){}),P=function(){return S()};
z=_.m(_.hj(!1,void 0,"ZsF6Xc"));var d=z.next().value,Q=z.next().value;z=_.iF(function(){Q(!0);G().position===2?setTimeout(function(){F()},100):F()});
var x=_.iF(function(){Q(!1);BIM(J,P)()}),E=_.iF(function(UV){G().doSeekOnClick&&uun(J,P,G)(UV);
return!1}),U=_.iF(function(UV){WuO(J,P)(UV);
return!1}),A=_.iF(function(UV){cXo(J,P)(UV);
return!1}),t=_.iF(function(UV){fgO(J,P,G)(UV);
return!1}),M=_.iF(function(UV){S7M(J,P,G)(UV);
return!1}),a=_.iF(function(){GX2(J,P,G)();
return!1}),l=_.iF(function(){ggZ(J,P,G)();
return!1}),mx=_.iF(function(){eDn(J,P,G)();
return!1}),zj=_.iF(function(UV){bXY(P)(UV);
return!1});
ls("mousemove",mku(J,P,G));ls("mouseup",zDO(J,P,G));_.j9(function(){$0j(g.value);Q(!1);F();zDO(J,P,G)()});
var VN={};VN=_.Pw("ytPlayerProgressBarHost",function(){return G().className},(VN.ytPlayerProgressBarHostReadOnly=function(){return G().disableScrubbing},VN.ytPlayerProgressBarHostHidden=function(){return G().hideProgressBar&&!d()},VN.ytPlayerProgressBarHostLowerPlayer=function(){return G().position===0},VN.ytPlayerProgressBarHostBottomEdge=function(){return G().position===1},VN.ytPlayerProgressBarHostBottomInset=function(){return G().position===2},VN.ytPlayerProgressBarHostCustom=function(){return G().position===
3},VN));
var $Q={},OV=_.Pw("ytPlayerProgressBarBackground",($Q.ytPlayerProgressBarBackgroundHide=function(){return G().position===2&&!d()&&!S().isDragging},$Q));
$Q={};$Q=_.Pw("ytPlayerProgressBarDragContainer",($Q.ytPlayerProgressBarDragContainerBottomEdge=function(){return G().position===1},$Q));
var rW={};rW=_.Pw("ytPlayerProgressBarProgressBar",(rW.ytPlayerProgressBarProgressBarInset=function(){return G().position===2},rW.ytPlayerProgressBarProgressBarInsetMinimized=function(){return G().position===2&&!d()&&!S().isDragging},rW));
var MA=function(){return Math.floor(haV(S())*100)};
return _.T("yt-progress-bar",{el:f,class:VN},_.T(_.v,{cond:function(){return G().position===2},
then:function(){return _.T("div",{class:OV})}}),_.T("div",{el:g,
"on:click":E,"on:touchstart":U,"on:touchmove":t,"on:mouseenter":z,"on:mousedown":A,"on:mouseleave":x,"on:mousemove":M,"on:mouseup":l,"on:touchend":a,"on:touchcancel":mx,"on:keydown":zj,class:$Q,role:"slider","aria-valuenow":MA,"aria-valuetext":function(){return MA()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return S().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.Jf("SEEK_SLIDER")},_.T("div",{el:b,class:rW},_.T(M2u,{progressBarProps:S,config:G,highContrast:function(){return!!G().isInlinePlayback}}),_.T(_.v,{cond:function(){return G().chapterData&&PA1(G().chapterData)},
then:function(){return _.T(AXz,{progressState:S,multiMarkersPlayerBarRenderer:function(){return G().chapterData},
progressBarWidth:function(){return X().width}})},
else:function(){return _.T(ZYo,{progressBarProps:S,config:G})}}),_.T(t2u,{progressBarProps:S,
playheadData:B,interpolateDotPosition:function(){return G().position!==2},
hidePlayhead:function(){return G().playheadDotBehavior===1&&!d()}}))),_.T(TIu,{progressBarProps:S,
config:function(){return{activeChapter:OKM(S(),G().chapterData),getProgressBarWidthPx:function(){return V().width},
isShortsPage:!!G().isShortsPage,isInlinePlayer:!!G().isInlinePlayback,useFadeInAnimation:!!G().isInlinePlayback}},
progressBarWidthPx:function(){return X().width},
chapterData:function(){return G().chapterData}}))},"Ne");
_.iXu.idomCompat=!0;Object.assign({},_.viW(),{setState:function(){},
domMeasurements:{},appApi:_.w6M(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var HX$;
_.q7n=_.oS(function(){var f,S=(f=_.A9(CAj().playerApi))!=null?f:void 0;f=_.m(_.hj(!1,void 0,"HLFBmb"));var B=f.next().value,G=f.next().value;f=_.m(_.hj(!1,void 0,"lHH9bc"));var g=f.next().value,b=f.next().value;f=_.m(_.hj(!1,void 0,"zsY7yd"));var z=f.next().value,X=f.next().value;f=_.m(_.hj(!1,void 0,"KeHQgc"));var w=f.next().value,F=f.next().value;f=_.m(_.hj(0,void 0,"gLLCj"));var V=f.next().value,J=f.next().value;f=_.m(_.hj(0,void 0,"s3RYkf"));var P=f.next().value,d=f.next().value;f=_.m(_.hj(!1,void 0,
"Dn608e"));var Q=f.next().value,x=f.next().value;f=_.m(_.hj(0,void 0,"AnkH1b"));var E=f.next().value,U=f.next().value;f=_.m(_.hj(0,void 0,"QYNL0b"));var A=f.next().value,t=f.next().value;f=_.m(_.hj("",void 0,"Yzw45d"));var M=f.next().value,a=f.next().value;f=_.m(_.hj(-1,void 0,"iiVI0c"));var l=f.next().value,mx=f.next().value,zj=_.vW(function(){var VN={controlsVisible:B(),isOverlayHidden:g(),shouldWaitToHideControls:z(),isDragging:w(),isHovering:Q(),videoDuration:E(),playedTime:A(),videoId:M(),draggedTime:P(),
hoveredTime:V(),playerState:l()};return Object.assign({},_.viW(),VN,{domMeasurements:{},setState:function($Q){$Q.controlsVisible!==void 0&&G($Q.controlsVisible);$Q.isOverlayHidden!==void 0&&b($Q.isOverlayHidden);$Q.shouldWaitToHideControls!==void 0&&X($Q.shouldWaitToHideControls);$Q.isDragging!==void 0&&F($Q.isDragging);$Q.isHovering!==void 0&&x($Q.isHovering);$Q.draggedTime!==void 0&&d($Q.draggedTime);$Q.hoveredTime!==void 0&&J($Q.hoveredTime);$Q.videoDuration!==void 0&&U($Q.videoDuration);$Q.playedTime!==
void 0&&t($Q.playedTime);$Q.videoId!==void 0&&a($Q.videoId);$Q.playerState!==void 0&&mx($Q.playerState)},
appApi:_.w6M(),playerApi:S})},void 0,"ZW7y9");
_.Y5(function(){S==null||S.addEventListener("onVideoProgress",HKs(zj));S==null||S.addEventListener("onVideoDataChange",iK1(zj));S==null||S.addEventListener("onStateChange",K31(zj))});
_.Ov(function(){if(S==null?0:S.isReady())S==null||S.removeEventListener("onVideoProgress",HKs(zj)),S==null||S.removeEventListener("onVideoDataChange",iK1(zj)),S==null||S.removeEventListener("onStateChange",K31(zj))});
return _.T("desktop-shorts-player-controls",null,_.T(HX$,{playerControlsProps:zj}))},"Oe");
HX$=_.oS(function(f){var S=f.playerControlsProps;return _.T("div",{class:"desktopShortsPlayerControlsWizHost"},_.T(_.iXu,{progressBarProps:S,config:function(){return{isShortsPage:!0,hideProgressBar:S().videoDuration<30&&S().playerState!==2&&!S().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"Pe");_.$kn=_.oS(function(f){function S(VN){VN!==0||J()?VN>50&&(J()||!d())?(P(!1),Q(!0)):VN<=50&&(J()||d())&&(P(!1),Q(!1)):P(!0)}
function B(VN,$Q){var OV;return _.R(function(rW){if(rW.nextAddress==1)return _.h(rW,_.wb(),2);OV=rW.yieldResult;$Q&&OV?(OV.unMute(!0),VN&&(ANT(VN,OV.getVolume()),E(OV.getVolume()))):OV&&(OV.mute(!0),VN&&ANT(VN,0));_.TT(rW)})}
function G(VN){var $Q,OV;return _.R(function(rW){if(rW.nextAddress==1)return _.h(rW,_.wb(),2);$Q=rW.yieldResult;OV=50;$Q&&(OV=$Q.getVolume(),$Q.isMuted()?ANT(VN,0):ANT(VN,OV));E(OV);_.TT(rW)})}
var g=f.orientation;f=_.tE("desktop-shorts-volume-controls");var b=_.tE("button"),z=_.us("input"),X=_.m(_.hj(!1,void 0,"F6vt0d")),w=X.next().value,F=X.next().value,V=_.m(_.hj(!1,void 0,"S5PCqb"));X=V.next().value;V=V.next().value;var J=X,P=V;V=_.m(_.hj(!0,void 0,"Tgy4e"));X=V.next().value;V=V.next().value;var d=X,Q=V;X=_.m(_.hj(50,void 0,"Dq3efd"));var x=X.next().value,E=X.next().value;X=_.vW(function(){var VN=J();return _.K("web_shorts_keyboard_enable_mute_shortcut")?VN?_.Jf("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.Jf("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):VN?_.Jf("UNMUTE_VOLUME",void 0,"Unmute"):_.Jf("MUTE_VOLUME",void 0,"Mute")},void 0,"zjOD8c");
V=_.vW(function(){var VN=J(),$Q=d();return{sources:[{clientResource:{imageName:VN?_.K("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":$Q?_.K("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.K("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"bIZ5A");
var U=_.vW(function(){var VN=x();return J()?VN+"% volume muted":VN+"% volume"},void 0,"kvkmyc"),A=_.vW(function(){return g()==="vertical_down"},void 0,"zaNsZ");
_.j9(function(){function VN(){F(!0)}
function $Q(){F(!1)}
z&&z.value&&(z.value.addEventListener("focus",VN),z.value.addEventListener("focusout",$Q),G(z.value).then(function(){S(Number(NBG(z.value)))}));
b&&b.value&&(b.value.addEventListener("focus",VN),b.value.addEventListener("focusout",$Q));_.Ov(function(){var OV;z==null||(OV=z.value)==null||OV.removeEventListener("focus",VN);var rW;z==null||(rW=z.value)==null||rW.removeEventListener("focusout",$Q);var MA;b==null||(MA=b.value)==null||MA.removeEventListener("focus",VN);var UV;b==null||(UV=b.value)==null||UV.removeEventListener("focusout",$Q)})});
var t=_.iF(function(){if(z&&z.value){var VN=Number(NBG(z.value));p61(VN);E(VN);z.value.style.setProperty("--gradient-percent",VN+"%");S(VN)}return!1}),M=_.iF(function(){F(!0)}),a=_.iF(function(){z&&z.value&&(B(z.value,J()),P(!J()));
return!1}),l={},mx={},zj={};
return _.T("desktop-shorts-volume-controls",{"on:pointerleave":_.iF(function(){F(!1)}),
class:_.Pw("ytdDesktopShortsVolumeControlsHost",(l.ytdDesktopShortsVolumeControlsHostVertical=A,l.ytdDesktopShortsVolumeControlsHostExpanded=w,l)),el:f},_.T(_.v,{cond:function(){return!A()},
then:function(){var VN={};return _.T("div",{class:_.Pw("ytdDesktopShortsVolumeControlsBackgroundScrim",(VN.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=w,VN))})}}),_.T("div",{class:_.Pw((mx.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=A,mx))},_.T("button",{"aria-label":X,
title:X,el:b,"on:click":a,"on:pointerenter":M,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},V?_.T(_.f9,{data:V,alt:X,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.T("div",{class:_.Pw("ytdDesktopShortsVolumeControlsSliderContainer",(zj.ytdDesktopShortsVolumeControlsSliderContainerExpanded=w,zj.ytdDesktopShortsVolumeControlsSliderContainerVertical=A,zj.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=A,zj.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=
function(){return w()&&A()},zj))},_.T("input",{"aria-label":_.Jf("VOLUME"),
title:_.Jf("VOLUME"),el:z,"on:input":t,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":x,"aria-valuetext":U,"aria-valuemin":0,"aria-valuemax":100})))},"Qe");_.QOz=_.oS(function(f){var S=f.data;return _.T("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.T(_.XD,{command:function(){return S().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.T(_.v,{cond:function(){return S().iconName},
then:function(B){return _.T(_.Y8,{icon:B})}}),_.T("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return S().text}),_.T(_.v,{cond:function(){return S().showEndChevron},
then:function(){return _.T(_.Y8,{icon:"CHEVRON_RIGHT"})}})))},"Re");var Y72=_.oS(function(f){var S=f.data;var B=f.overlayDensity;f={};return _.T("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.T(_.xK,{data:function(){return S().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(G){var g=G.data;
return _.T(_.rn,{data:function(){return(B==null?void 0:B())===1?Object.assign({},g(),{avatar:{avatarViewModel:Object.assign({},_.H(g().avatar,_.y5),{avatarImageSize:"AVATAR_SIZE_48"})}}):g()}})}}),_.T(_.xK,{data:function(){return S().avatarStackViewModel}},{avatarStackViewModel:function(G){return _.T(_.jL,{data:G.data})}}),_.T(_.oY,{className:_.Pw("ytReelChannelBarViewModelChannelName",(f.ytReelChannelBarViewModelChannelNameLarge=function(){return(B==null?void 0:B())===1},f)),
text:function(){return S().channelName},
linkInheritColor:!0,userInput:!0}),_.T("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.T(_.xK,{data:function(){return S().subscribeButtonViewModel}},{subscribeButtonViewModel:function(G){var g=G.data;
return _.T(_.$q,{data:function(){return(B==null?void 0:B())===1?Object.assign({},g(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},g().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):g()},
isOverlay:!1})},
buttonViewModel:_.I8})),_.T("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.T(_.xK,{data:function(){var G,g;return(g=_.H((G=S())==null?void 0:G.sponsorButtonViewModel,gRo))==null?void 0:g.sponsorButton}},{buttonViewModel:function(G){return _.T(_.I8,{data:G.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"Se");var rrO=_.oS(function(f){var S=function(){var G;return(f==null?void 0:(G=f.overlayDensity)==null?void 0:G.call(f))===1?22:16},B={};
return _.T("yt-reel-multi-format-link-view-model",{class:_.Pw("ytReelMultiFormatLinkViewModelHost",(B.ytReelMultiFormatLinkViewModelHostTall=!0,B.ytReelMultiFormatLinkViewModelHostLarge=function(){var G;return((G=f.overlayDensity)==null?void 0:G.call(f))===1},B))},_.T(_.XD,{ariaLabel:function(){return f.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return _.CH(f.data().command)},
dangerousStopPropagation:!1},_.T("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.T(_.v,{cond:function(){return f.data().icon},
then:function(G){return _.T(_.f9,{data:G,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:S})}}),_.T(_.oY,{text:function(){return f.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Te");
rrO.idomCompat=!0;var jOX=_.oS(function(f){var S=f.data;var B=f.overlayDensity;var G=_.tE("yt-shorts-suggested-action-view-model");f=_.m(_.hj(!1,void 0,"xDqzhe"));var g=f.next().value,b=f.next().value;f=_.m(_.hj(!1,void 0,"LI9CFd"));var z=f.next().value,X=f.next().value,w=function(){return S().isMultiLineSa},F=_.v8(P7V,function(){var t,M;
return(M=(t=S().toggleableContent)==null?void 0:t.entityKey)!=null?M:""}),V=function(){var t,M,a;
return(a=S().toggleableContent)!=null&&a.entityKey?(M=(t=F())==null?void 0:t.value)!=null?M:!1:!1},J=function(){var t,M,a,l,mx,zj,VN,$Q,OV,rW,MA;
return S().toggleableContent?V()?(t=S().toggleableContent)==null?void 0:t.toggledData:(M=S().toggleableContent)==null?void 0:M.untoggledData:{primaryText:($Q=(a=S().defaultContent)==null?void 0:a.primaryText)!=null?$Q:S().text,secondaryText:(l=S().defaultContent)==null?void 0:l.secondaryText,onTapCommand:(OV=(mx=S().defaultContent)==null?void 0:mx.onTapCommand)!=null?OV:S().onTapCommand,icon:(rW=(zj=S().defaultContent)==null?void 0:zj.icon)!=null?rW:S().icon,image:(MA=(VN=S().defaultContent)==null?
void 0:VN.image)!=null?MA:S().image}},P=function(){return w()?S().trailingTapTarget:void 0};
f=function(t,M){return function(){return g()?M:t}};
var d={leadingSection:f("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),secondaryText:f("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:f("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:f("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")};f={};f=_.Pw((f.ytShortsSuggestedActionViewModelStaticHost=function(){return!w()},f.ytShortsSuggestedActionViewModelDynamicHost=w,f.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return w()&&z()},f.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return w()&&!z()},f));
_.j9(function(){if(w()){var t=0,M;if((M=S().animationParams)==null?0:M.shouldExpand){var a,l;t=((l=(a=S().animationParams)==null?void 0:a.expansionDelaySecs)!=null?l:0)*1E3}var mx,zj=((mx=S().animationParams)==null?0:mx.shouldExpand)?setTimeout(function(){b(!0)},t):void 0,VN,$Q;
t=((VN=S().animationParams)==null?0:VN.visibilityDelaySecs)?(($Q=S().animationParams)==null?NaN:$Q.visibilityDelaySecs)*1E3:0;var OV=setTimeout(function(){X(!0)},t);
_.Ov(function(){zj&&clearTimeout(zj);clearTimeout(OV)})}});
var Q=function(t){_.MB(t,Object.assign({},{form:{element:G.value}}))},x=_.iF(function(){var t,M=(t=J())==null?void 0:t.onTapCommand;
M&&Q(M)}),E=_.iF(function(){var t,M;
if(t=(M=P())==null?void 0:M.onTapCommand)return Q(t),!1}),U=_.Qj({"vertical-align":"bottom",
"border-radius":function(){var t;return w()?((t=S().defaultContent)==null?0:t.isCircleImage)?"50%":"4px":"0px"},
width:function(){var t,M,a;return w()&&((t=S().defaultContent)==null?0:t.imageSize)?((a=(M=S().defaultContent)==null?void 0:M.imageSize)!=null?a:24)+"px":null},
height:function(){var t,M,a;return w()&&((t=S().defaultContent)==null?0:t.imageSize)?((a=(M=S().defaultContent)==null?void 0:M.imageSize)!=null?a:24)+"px":null}}),A={};
return _.T("yt-shorts-suggested-action-view-model",{class:f,el:G},_.T("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.T("button",{class:_.Pw(function(){return w()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var t;
return(t=S().useFullRoundedBorder)!=null&&t?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!P()&&w()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":w()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var t;
return(t=S().disableFixedHeight)!=null&&t?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(A.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(B==null?void 0:B())===1},A)),
"on:click":x},_.T(_.Oo,{model:{color:4}}),_.T("div",{class:_.Pw(function(){return w()?d.leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.T(_.v,{cond:function(){var t;
return(t=J())==null?void 0:t.image},
then:function(t){return _.T(_.f9,{data:t,alt:"",className:function(){return w()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:U})}}),_.T(_.v,{cond:function(){var t,M;
return(t=J())==null?void 0:(M=t.icon)==null?void 0:M.iconType},
then:function(t){return _.T(_.Y8,{icon:t,active:V,className:function(){return w()?g()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.T("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.T(_.v,{cond:function(){var t;
return(t=J())==null?void 0:t.primaryText},
then:function(t){return _.T("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.T(_.oY,{text:t}))}}),_.T(_.v,{cond:function(){var t;
return(t=J())==null?void 0:t.secondaryText},
then:function(t){return _.T("div",{class:d.secondaryText},_.T(_.oY,{text:t}))}}))),_.T(_.v,{cond:P,
then:function(t){return _.T("div",{class:d.trailingSection,"aria-label":function(){var M;return(M=t().a11yLabel)!=null?M:""},
"on:click":E,role:"button",tabindex:0},_.T(_.Oo,{model:{color:4}}),_.T(_.Y8,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"Ue");var OX$=_.oS(function(f){var S=f.data;var B=f.overlayDensity;var G=_.tE("yt-shorts-video-title-view-model");f=_.iF(function(z){if(_.ZP(_.Ml(z),G.value,["A".toString()]))return!1;(z=S().truncatedTextOnTapCommand)&&_.MB(z);return!1});
var g={},b={};return _.T("yt-shorts-video-title-view-model",{el:G,class:_.Pw("ytShortsVideoTitleViewModelHost",(g.ytShortsVideoTitleViewModelHostClickable=function(){return!!S().truncatedTextOnTapCommand},g)),
"on:click":f},_.T("h2",{class:_.Pw("ytShortsVideoTitleViewModelShortsVideoTitle",(b.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(B==null?void 0:B())===1},b))},_.T(_.oY,{text:function(){return S().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"Ve");_.xkY=_.oS(function(f){var S=f.data;var B=f.overlayDensity;return _.T("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.T(_.xK,{data:function(){return S().metadataItems}},{badgeViewModel:function(G){return _.T("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.T(_.fp,{data:G.data}))},
playerDisclosureViewModel:function(G){return _.T("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.T(_.QOz,{data:G.data}))},
shortsSuggestedActionViewModel:function(G){return _.T("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.T(jOX,{data:G.data,overlayDensity:B}))},
reelChannelBarViewModel:function(G){return _.T("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.T(Y72,{data:G.data,overlayDensity:B}))},
reelMultiFormatLinkViewModel:function(G){return _.T("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.T(rrO,{data:G.data,overlayDensity:B}))},
shortsVideoTitleViewModel:function(G){return _.T("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.T(OX$,{data:G.data,overlayDensity:B}))},
reelSoundMetadataViewModel:function(G){return _.T("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.T(_.INu,{data:G.data,overlayDensity:B}))},
toggleButtonViewModel:function(G){return _.T("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.T(_.ER,{data:G.data}))}}))},"We");var Egn=_.oS(function(f){var S=_.lu(f,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),B=S.size,G=S.onTap,g=S.disabled,b=S.tooltipText;return _.T("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.T(Be,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:B(),disabled:g(),tooltipText:b(),onTap:G}},
iconName:f.iconType}))},"Xe"),Lz2=_.oS(function(f){function S(V){V.stopPropagation();
V.code==="ArrowUp"?(V.preventDefault(),t_G(X.value)):V.code==="ArrowDown"?(V.preventDefault(),uyA(X.value)):V.code==="KeyM"?M_V():(V.code==="KeyK"||V.code==="Space")&&ZK9(w())}
var B=_.lu(f,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});f=B.previousButtonDisabled;var G=B.nextButtonDisabled,g=B.data,b=B.playabilityStatus,z=B.previewThumbnail,X=_.tE("ytd-shorts-miniplayer-overlay"),w=_.Uo(_.zG9),F;_.Y5(function(){(F=_.OI(X.value))&&F.addEventListener("keydown",S)});
_.Ov(function(){var V;(V=F)==null||V.removeEventListener("keydown",S)});
B=function(){var V,J,P;return(V=g())==null?void 0:(J=V.reelPlayerOverlayRenderer)==null?void 0:(P=J.likeButton)==null?void 0:P.likeButtonRenderer};
return _.T("ytd-shorts-miniplayer-overlay",{el:X,class:"ytdShortsMiniplayerOverlayHost"},_.T("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.Qj({"background-image":function(){var V=z();return V?'url("'+_.my(V.thumbnails)+'")':""}})}),_.T("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.T("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.T(Egn,{iconType:function(){var V=w();
return V===2||V===-1||V===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){ZK9(w())},
tooltipText:function(){var V=w();return V===1||V===3?_.Jf("PLAYER_LABEL_PAUSE"):_.Jf("PLAYER_LABEL_PLAY")}}),_.T(_.$kn,{orientation:"horizontal_right"})),_.T("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.T(Egn,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:f,onTap:function(){t_G(X.value)},
tooltipText:_.Jf("PREVIOUS_VIDEO_LABEL")}),_.T(Egn,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:G,onTap:function(){uyA(X.value)},
tooltipText:_.Jf("NEXT_VIDEO_LABEL")}),_.K("web_shorts_pip_like_button")?_.T("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.T(bZ8,{buttonTooltipPosition:"left",data:B,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.T("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.T(_.v,{cond:function(){var V,J;return _.H((V=g())==null?void 0:(J=V.reelPlayerOverlayRenderer)==null?void 0:J.metapanel,
_.oRi)},
then:function(V){return _.T("div",{class:_.Pw("ytdShortsMiniplayerOverlayInteractive")},_.T(_.xkY,{data:V}))}})),_.T("div",{class:_.Pw("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var V;return!((V=g())==null||!V.adsOverlay)||b()&&!lqM(b())}},_.T("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.T(_.q7n,null)))),_.T(_.v,{cond:function(){var V=g(),J,P;
V=_.H(V==null?void 0:(J=V.adsOverlay)==null?void 0:(P=J.fulfillmentContent)==null?void 0:P.fulfilledLayout,Ej7);return _.H(V==null?void 0:V.renderingContent,D_8)},
then:function(V){return _.T("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.T(el$,{data:V}))}}))},"Ye");var a11=_.oS(function(){var f=_.m(_.hj(new _.Xr(NaN,NaN),void 0,"HSMFk")),S=f.next().value,B=f.next().value;f=_.m(_.hj(!1,void 0,"uaAxwf"));var G=f.next().value,g=f.next().value,b=_.m(_.hj(!1,void 0,"nVSwef"));f=b.next().value;var z=b.next().value,X=_.oy().resolve(_.N_).miniplayerPropSignalMap[0],w=X.data,F=X.shortsData,V=X.nextButtonDisabled,J=X.shortsPreviewThumbnail,P=X.previousButtonDisabled,d=X.externalPlaylistData;b=X.toastData;var Q=X.playabilityStatus,x=X.isDisabled,E=X.playerVe,U=X.closeVe;
X=_.Uo(_.d5);_.Z0("yt-pip-window-resized",function(a){B(a)});
_.Z0("yt-activate-pip-miniplayer",function(){return _.R(function(a){z(!0);_.TT(a)})});
var A=function(){var a;return!((a=d())==null||!a.contents)&&G()},t=function(){var a=S(),l=!!w(),mx=A();
a=a.clone();l&&(a.height-=76);mx&&(a.height-=285);return a},M=function(){g(!G())};
_.jp(function(){var a=E(),l=_.xc(11),mx=_.Of(11);l&&mx&&a&&(_.Af(l,mx,a),mx=U())&&(_.NE(l,a,[mx]),_.Zu(l,[mx]))},"HPkp0c");
return _.T("ytd-pip-container",{class:"ytdPipContainerHost"},_.T(_.v,{cond:f,then:function(){return _.T(_.U22,{isDisabled:x,playabilityStatus:Q,size:t})}}),_.T(_.v,{cond:w,
then:function(){return _.T(_.D2O,{data:w,expanded:G,onExpandClick:M,playlistData:d})}}),_.T(_.v,{cond:A,
then:function(){return _.T("div",{class:"ytdPipContainerPlaylistPanel"},_.T(_.g7m,{data:d,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.T(_.v,{cond:X,
then:function(){return _.T(Lz2,{data:F,nextButtonDisabled:V,previousButtonDisabled:P,playabilityStatus:Q,previewThumbnail:J})}}),_.T("div",{class:"ytdPipContainerToast"},_.T(_.CzO,{toastData:b})))},"Ze");var $y=function(f,S){var B=this;this.pipController=f;this.JSC$16559_clientRoot=S;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=bK9();this.watchPipEnabled=_.K("web_watch_pip");this.shortsPipEnabled=_.K("web_shorts_pip");this.JSC$16559_watchWhileEnabled=_.K("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;_.KD(_.W2(),_.gf9,function(G){B.isSingleOptionSurveyActive=G});
this.JSC$16559_onPlayerPlayVideo=this.JSC$16559_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);_.N6(_.AE.getInstance(),this.miniplayerServiceActionMap,this.JSC$16559_clientRoot);f.pictureInPictureSupported()&&_.jD("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},swN,NIM,Uke,M0Z,ZXu,UgX;
$y.prototype.handleMediaSessionPipActivation=function(){var f=this,S;return _.R(function(B){_.Pn().mediaSessionPipActivation=!0;S=_.oy().resolve(_.o8);return S.isOnWatch()&&f.watchPipEnabled?(_.Pn().watchPipActivation=!0,_.kXO(f,S.data),B.jumpTo(0)):S.isOnShorts()&&f.shortsPipEnabled?(_.Pn().shortsPipActivation=!0,_.ngu(f),B.jumpTo(0)):f.isMiniplayerActive()&&f.watchPipEnabled&&!f.watchWhileMode?_.h(B,sOB(f),0):B.jumpTo(0)})};
var sOB=function(f){var S,B,G,g;return _.R(function(b){if(b.nextAddress==1)return S=!f.miniplayerToPipMode,B=f.playerElement,G=f.miniplayerData,g=f.watchResponse,_.h(b,f.deactivate(),2);if(b.nextAddress!=3)return S?(_.Pn().mediaSessionPipActivation=!0,_.Pn().watchPipActivation=!0):_.Pn().miniplayerButtonActivation=!0,_.h(b,f.activate(B,G,g),3);f.miniplayerToPipMode=S;_.TT(b)})};
$y.prototype.onDownloadedVideoDeleted=function(f){var S,B=_.H((S=this.miniplayerData)==null?void 0:S.watchEndpoint,_.t2),G,g;B&&((G=this.watchResponse)==null?void 0:(g=G.playerResponse)==null?void 0:g.offlineState)!==void 0&&(S=B.videoId)&&f&&S===f&&this.close()};
$y.prototype.onShowMiniplayerCommand=function(f){var S=this,B,G,g,b,z,X,w,F,V,J,P,d,Q;return _.R(function(x){switch(x.nextAddress){case 1:return B=_.H(f,NXL),g=(G=B)==null?void 0:G.miniplayerCommand,b=_.H(g,_.t2),g&&b&&!S.active?_.h(x,_.YZ.getInstance(),2):x.return();case 2:return z=x.yieldResult,_.h(x,(X=z)==null?void 0:X.get("yt-miniplayer-shown-video-id"),3);case 3:w=x.yieldResult;F=b.videoId;if(!F||w===F)return x.return();V=_.oy().resolve(_.o8);if(V.isOnWatch())return _.Lg(Error("Fj")),x.return();
J={channelItem:{externalId:btoa(F)}};S.readyToResumeVe=_.Eo(121253,void 0,void 0,J);_.Pn().showMiniplayerCommandActivation=!0;return _.h(x,_.CI7(S,g,!0),4);case 4:return S.active?(_.QA(S,{readyToResumeVe:S.readyToResumeVe,continueWatching:!0,premiumBranding:!((P=B)==null||!P.showPremiumBranding)}),_.K("ytd_miniplayer_to_wiz")&&_.QA(S,{isReadyToResume:!0}),S.isReadyToResume=!0):_.QA(S,{continueWatching:!0,premiumBranding:!((d=B)==null||!d.showPremiumBranding)}),_.h(x,(Q=z)==null?void 0:Q.set("yt-miniplayer-shown-video-id",
b.videoId),5);case 5:S.readyToResumeVe=void 0,_.TT(x)}})};
$y.prototype.init=function(f){this.miniplayerEl?_.Lg(new _.dO("MiniplayerService already initialized.")):this.miniplayerEl=f};
$y.prototype.isInitialized=function(){var f=!!this.miniplayerEl;f||_.Lg(new _.dO("MiniplayerService used before initialized."));return f};
_.kXO=function(f,S){if(f.isInitialized()){var B=_.Rax(S.response,S.playerResponse),G=_.oy().resolve(_.o8).getPlayerFromWatch();_.Pn().currentEndpoint=B.watchEndpoint||null;f.activate(G,B,S)}};
_.ngu=function(f){if(f.isInitialized()){var S=_.oy().resolve(_.o8).getPlayerFromShorts();f.activate(S)}};
swN=function(f,S){var B;(B=!f.isInitialized())||(B=_.oy().resolve(_.o8).isOnWatch()&&f.watchPipMode,B=!(f.isMiniplayerActive()&&(_.Pn().userActivation||_.Pn().lockupActivation||B)));if(B)return!1;DkO(f,S)?_.i$(f):UgX(f,S);return f.watchPipMode?!_.oy().resolve(_.o8).isOnWatch():!0};
$y.prototype.isMiniplayerActive=function(){return this.active};
var DkO=function(f,S){var B;S=(B=_.H(S,_.t2))==null?void 0:B.videoId;var G,g;f=(g=_.H((G=f.miniplayerData)==null?void 0:G.watchEndpoint,_.t2))==null?void 0:g.videoId;return S!=null&&S===f};
$y.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.ew(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.bW(this.miniplayerEl,"yt-navigate-home-action"))};
_.CI7=function(f,S,B,G){B=B===void 0?!1:B;var g,b,z;return _.R(function(X){switch(X.nextAddress){case 1:if(f.active){X.jumpTo(2);break}g=_.oy().resolve(_.o8);if(z=(b=f.playerElement)!=null?b:g.getPlayerFromWatch()){X.jumpTo(3);break}return _.h(X,_.oy().resolve(_.ms),4);case 4:z=g.getPlayerFromWatch();case 3:if(!z){_.Lg(Error("Hj"));X.jumpTo(2);break}return _.h(X,f.activate(z,G),2);case 2:return f.active?_.h(X,UgX(f,S,B),0):X.return()}})};
$y.prototype.activate=function(f,S,B){var G=this,g,b,z,X,w,F,V,J,P;return _.R(function(d){switch(d.nextAddress){case 1:if(!G.isInitialized())return d.return();if(!f)return _.Lg(Error("Hj")),d.return();if(_.fVj()||G.isMiniplayerActive())var Q=!0;else Q=_.Pn().watchPipActivation||_.Pn().watchWhileActivation,_.oy().resolve(_.o8).isOnWatch()&&!Q?(_.Lg(new _.dO("miniplayer activated on watch page")),Q=!0):Q=_.Pn().watchWhileActivation?G.userDeactivatedWatchWhile||!!document.pictureInPictureElement||L1j():
!1;if(Q)return lfX(),d.return();g=_.Pn().mediaSessionPipActivation;b=_.Pn().shortsPipActivation;z=_.Pn().watchPipActivation;w=(X=_.Pn().watchWhileActivation)||z;F=z||b;if(!G.pictureInPictureEnabled()||!F){d.jumpTo(2);break}return _.h(d,IgZ(G,g),3);case 3:if(!d.yieldResult)return _.Lg(Error("Gj")),lfX(),d.return();case 2:return G.setActive(!0),G.watchResponse=B,G.playerElement=f,G.updateMiniplayerData(S),_.h(d,Uke(G,f),4);case 4:if(!G.active)return _.Lg(new _.dO("miniplayer deactivated during activation")),
G.removePlayerListeners(),d.return();Q=_.oy().resolve(_.Dr);Q.addEventListener("yt-navigate",_.Fc(G,G.onPlaylistNavigate));Q.addEventListener("yt-playlist-data-updated",_.Fc(G,G.JSC$16559_onPlaylistDataUpdated));G.JSC$16559_onPlaylistDataUpdated();lfX();G.JSC$16559_watchWhileEnabled&&_.CdM(G,X);G.pictureInPictureEnabled()&&G.shortsPipEnabled&&(G.shortsPipMode=b,_.W2().dispatch(Ur8(G.shortsPipMode)));G.pictureInPictureEnabled()&&G.watchPipEnabled&&(G.watchPipMode=z,_.nBT(G.handleMediaSessionPipActivation));
G.player&&(V=G.player.getPlayerState(),J=V===1,_.W2().dispatch(us6(V)),_.mU(G.miniplayerEl,"yt-miniplayer-play-state-changed",[J]),_.Pn().isVideoPlaying=J);_.mU(G.miniplayerEl,"yt-miniplayer-endpoint-changed");pQM(G);_.Arn(G);return G.shortsPipMode||G.watchPipMode?_.h(d,_.zZ(G.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.K("ytd_miniplayer_to_wiz")?_.h(d,_.zZ(G.miniplayerEl,"yt-activate-miniplayer",[w]),6):_.h(d,_.zZ(G.miniplayerEl,"yt-activate-miniplayer-action",[f,w]),6);case 6:if(G.watchResponse&&
!_.K("miniplayer_copy_screen_on_activation_killswitch")){Q=G.getScreenLayer();var x=_.xc(0),E=TX1(0);x&&E&&(_.Lk(x,E,Q),Q===0&&wE1(void 0,0))}NIM(G);M0Z(G,!0);(P=G.getPlayerElement())==null||P.focusOnPlayer();_.TT(d)}})};
$y.prototype.updateMiniplayerData=function(f){this.miniplayerData=f;_.QA(this,{data:f})};
_.Arn=function(f){var S,B,G=((S=f.miniplayerData)==null?void 0:(B=S.miniplayerRenderer)==null?void 0:B.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";S=f.watchWhileMode||f.watchPipMode?G&&!_.oy().resolve(_.o8).isOnWatch():G;_.QA(f,{isDisabled:S});var g,b;B=_.H((g=f.miniplayerData)==null?void 0:(b=g.miniplayerRenderer)==null?void 0:b.minimizedEndpoint,_.jR);S&&B&&_.oy().resolve(_.H0).openSheet({openPopupActionCommand:{openPopupAction:B}},f.miniplayerEl)};
NIM=function(f){if(f.watchResponse&&!ZXu(f)){var S,B=(S=f.watchResponse.playerResponse)==null?void 0:S.trackingParams;B&&(_.QA(f,{expandVe:_.Eo(35989),closeVe:_.Eo(34699),readyToResumeCloseVe:_.Eo(131070),repositionVe:_.Eo(226204),resizeVe:_.Eo(226205)}),_.QA(f,{playerVe:_.Ye(B)}))}};
Uke=function(f,S){return _.R(function(B){if(B.nextAddress==1)return S.preparePlayer(),_.h(B,S.getPlayerPromise(),2);f.player=B.yieldResult;f.player&&(f.player.addEventListener("onPlayVideo",f.JSC$16559_onPlayerPlayVideo),f.player.addEventListener("onCloseMiniplayer",f.onPlayerCloseMiniplayer),f.player.addEventListener("onExpandMiniplayer",f.onPlayerExpandMiniplayer),f.player.addEventListener("onStateChange",f.onPlayerStateChange));_.TT(B)})};
_.e=$y.prototype;_.e.JSC$16559_onPlayerPlayVideo=function(f){var S=f.sessionData&&"autonav"in f.sessionData,B;f.sessionData&&f.sessionData.itct&&(B=f.sessionData.itct);var G=f.watchEndpoint;S=G&&S?_.jxx(G,B):_.Sf(f.videoId,f.listId||void 0,B);f.sessionData&&_.WZ(_.H(S.commandMetadata,_.oD).url,f.sessionData);UgX(this,S)};
_.e.onPlayerExpandMiniplayer=function(){_.i$(this)};
_.e.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.e.onPlayerStateChange=function(){if(this.player){var f=this.player.getPlayerState(),S=f===1;_.W2().dispatch(us6(f));_.W2().dispatch(_.W4m(f));_.mU(this.miniplayerEl,"yt-miniplayer-play-state-changed",[S]);_.Pn().isVideoPlaying=S;if(f===0){S=!_.fD.getInstance().isAutoplaySetExplicitly();var B,G,g,b,z,X,w=(B=this.watchResponse.response)==null?void 0:(G=B.contents)==null?void 0:(g=G.twoColumnWatchNextResults)==null?void 0:(b=g.autoplay)==null?void 0:(z=b.autoplay)==null?void 0:(X=z.autoplayExplicitChoiceDialogRenderer)==
null?void 0:X.confirmDialogRenderer;S&&w&&this.player.setAutonavState(1)}f===0&&this.watchWhileMode&&this.deactivate()}};
_.e.onPlaylistNavigate=function(f,S){var B=this,G,g,b,z,X,w,F;return _.R(function(V){if(V.nextAddress==1){if(!_.H(S.endpoint,_.t2))return V.return();_.Pn().currentEndpoint=S.endpoint;_.mU(B.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.oy().resolve(_.o8).isOnWatch()&&(B.watchWhileMode||B.watchPipMode))return V.return();f.stopPropagation();(b=(g=_.H((G=S.endpoint)==null?void 0:G.commandMetadata,_.oD))==null?void 0:g.url)&&S.tempData&&!_.$v.isEmpty(S.tempData)&&_.WZ(b,S.tempData);z={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};X=new l3X(function(){return B.getPlayerElement()},z,{layer:B.getScreenLayer()});
w=function(J){X.processChunk({endpoint:S.endpoint,data:J})};
t0u(B);B.miniplayerFetchRequest=uTX(B,S.endpoint,w);_.zT(V,2);return _.h(V,B.miniplayerFetchRequest,4)}if(V.nextAddress!=2)return F=V.yieldResult,ag$(B,F),_.CN(V,0);_.hm(V);_.TT(V)})};
_.e.JSC$16559_onPlaylistDataUpdated=function(){var f=_.oy().resolve(_.Dr).getPlaylistData();this.hasPlaylistData=!!f;_.QA(this,{externalPlaylistData:f||{}})};
_.e.close=function(f){if(this.isInitialized())if(f){if(!((this.watchWhileMode||this.watchPipMode)&&_.oy().resolve(_.o8).isOnWatch()||this.shortsPipMode)){var S;(S=this.getPlayerElement())==null||S.stop()}this.deactivate()}else _.A0().closeMiniplayer(this.miniplayerEl)};
_.e.deactivate=function(f){var S=this,B,G,g,b;return _.R(function(z){if(z.nextAddress==1){if(!S.isInitialized()||!S.active)return z.return();S.setActive(!1);t0u(S);(B=!!f&&DkO(S,f))&&S.isSingleOptionSurveyActive&&_.bW(S.miniplayerEl,"yt-show-watch-page-survey",[S.isSingleOptionSurveyActive]);return _.h(z,yru(S),2)}if(z.nextAddress!=3){M0Z(S,!1);S.isReadyToResume=!1;S.watchResponse=void 0;S.updateMiniplayerData(void 0);S.shortsPipMode&&(S.shortsPipMode=!1,_.W2().dispatch(Ur8(S.shortsPipMode)),JsM(S.pipController),
(G=S.player)==null||G.setInternalSize(NaN,NaN));S.watchPipMode&&(S.watchPipMode=!1,JsM(S.pipController));(g=S.watchWhileMode)&&_.CdM(S,!1);S.removePlayerListeners();var X=_.oy().resolve(_.Dr);X.removeEventListener("yt-navigate",_.Fc(S,S.onPlaylistNavigate));X.removeEventListener("yt-playlist-data-updated",_.Fc(S,S.JSC$16559_onPlaylistDataUpdated));_.Pn().currentEndpoint=null;_.mU(S.miniplayerEl,"yt-miniplayer-endpoint-changed");S.playerElement=null;lfX();return S.shortsPipMode||S.watchPipMode?z.jumpTo(3):
_.h(z,_.zZ(S.miniplayerEl,_.K("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[B,g]),3)}(b=S.player)==null||b.setInternalSize(NaN,NaN);S.player=null;_.TT(z)})};
var yru=function(f){var S;return _.R(function(B){S=_.oy().resolve(_.o8);return f.shortsPipMode?_.h(B,S.movePlayerToShorts(f.playerElement),0):_.h(B,S.movePlayerToWatch(f.playerElement),0)})};
$y.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$16559_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
$y.prototype.setActive=function(f){this.active=f;this.isSingleOptionSurveyActive?_.bW(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.bW(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.W2().dispatch(_.ef({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.CdM=function(f,S){f.watchWhileMode=S;_.QA(f,{watchWhile:S})};
M0Z=function(f,S){if(!ZXu(f))if(f.shortsPipMode||f.watchPipMode){var B;(B=f.player)==null||B.setDocumentPictureInPicture(S)}else{var G;(G=f.player)==null||G.setMinimized(S)}};
ZXu=function(f){return f.watchWhileMode&&_.K("kevlar_watch_while_counterfactual")};
_.i$=function(f){var S;return _.R(function(B){switch(B.nextAddress){case 1:if(!f.isInitialized())return B.return();_.zT(B,2);return _.h(B,f.miniplayerFetchRequest,4);case 4:_.CN(B,3);break;case 2:_.hm(B);case 3:f.watchResponse&&f.miniplayerData&&f.miniplayerData.watchEndpoint?(S={url:f.watchResponse.url,endpoint:f.miniplayerData.watchEndpoint,data:f.watchResponse,miniplayer:!0},_.ew(f.miniplayerEl,"yt-navigate-cache",S)):f.miniplayerData&&f.miniplayerData.watchEndpoint&&_.ew(f.miniplayerEl,"yt-navigate",
{endpoint:f.miniplayerData.watchEndpoint}),_.TT(B)}})};
UgX=function(f,S,B){var G,g,b,z;return _.R(function(X){if(X.nextAddress==1){if(DkO(f,S))return X.return();_.Pn().currentEndpoint=S;_.mU(f.miniplayerEl,"yt-miniplayer-endpoint-changed");_.mU(f.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.Pn().isVideoPlaying=!1;G={clientParams:{miniplayer:!0,autoSaveToQueue:!B}};g=new l3X(function(){return f.getPlayerElement()},G,{layer:f.getScreenLayer(),
parentLayer:0},void 0,f.readyToResumeVe);b=function(w){var F,V,J=Object.assign({},(F=w.playerResponse)==null?void 0:(V=F.playerConfig)==null?void 0:V.playbackStartConfig,{startPaused:!0}),P;B&&((P=w.playerResponse)==null?0:P.playerConfig)&&(w.playerResponse.playerConfig.playbackStartConfig=J);g.processChunk({endpoint:S,data:w})};
t0u(f);f.miniplayerFetchRequest=uTX(f,S,b);_.zT(X,2);return _.h(X,f.miniplayerFetchRequest,4)}if(X.nextAddress!=2)return z=X.yieldResult,ag$(f,z),_.CN(X,0);_.hm(X);_.TT(X)})};
$y.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var t0u=function(f){f.miniplayerFetchRequest&&(f.miniplayerFetchRequest.cancel&&f.miniplayerFetchRequest.cancel("Active request obsolete"),f.miniplayerFetchRequest=null)},uTX=function(f,S,B){var G=_.H4.instance,g,b=(g=_.H(S.commandMetadata,_.oD))==null?void 0:g.url,z;
g=!b||_.K("disable_miniplayer_tempdata")?{}:(z=fRQ(b))!=null?z:{};return t9(G,S,g,window.location.href,"watch",function(X,w){B(w)},function(X){return X!==f.miniplayerFetchRequest})},ag$=function(f,S){var B;
_.R(function(G){if(!S)return G.return();f.watchResponse=S;NIM(f);pQM(f);B=_.Rax(S.response,S.playerResponse);if(f.isMiniplayerActive()){S.response&&(f.playerElement.watchNextData=S.response);var g=_.$v.getValueByKeys.apply(_.$v,[S].concat(_.$d(zig)));_.$v.getValueByKeys.apply(_.$v,[S].concat(_.$d(TEX)))&&g&&_.oy().resolve(_.Dr).setAutoplayRenderer(g);if(g)if(_.K("kevlar_is_pupi_enabled")){var b,z,X,w,F,V=((b=S.response)==null?0:(z=b.playerOverlays)==null?0:(X=z.playerOverlayRenderer)==null?0:(w=X.autonavToggle)==
null?0:(F=w.autoplaySwitchButtonRenderer)==null?0:F.enabled)?2:1;_.fD.getInstance().setState(V,!1,!1)}else b=hcj()?2:1,(V=f.player)==null||V.setAutonavState(b);f.updateMiniplayerData(B);_.Arn(f)}_.TT(G)})},pQM=function(f){var S,B,G=(S=f.watchResponse)==null?void 0:(B=S.playerResponse)==null?void 0:B.playabilityStatus,g;
S=G==null?void 0:(g=G.miniplayer)==null?void 0:g.miniplayerRenderer;(S==null?void 0:S.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&S.minimizedEndpoint&&_.RD(f.miniplayerEl,[S.minimizedEndpoint]);_.QA(f,{miniplayerRenderer:S,playabilityStatus:G})};
$y.prototype.openToast=function(f,S){_.QA(this,{toastData:{data:f,label:S}})};
_.QA=function(f,S){var B=f.miniplayerEl,G;for(G in S)B[G]=S[G];(0,f.miniplayerPropSignalMap[1])(S)};
$y.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var f;return this.playerElement?this.playerElement:(f=_.m9(this.miniplayerEl).querySelector("#player-container"))==null?void 0:f.firstElementChild};
$y.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var IgZ=function(f,S){S=S===void 0?!1:S;var B,G,g,b,z,X,w;return _.R(function(F){if(F.nextAddress==1){B=navigator.userActivation.isActive||S;if(!B||!f.pictureInPictureSupported())return F.return(!1);G=Wzn(f);g=G.width;b=G.height;return _.h(F,f.pipController.openWindow({width:g,height:b}),2)}z=F.yieldResult;X=f.pipController.getWindow();if(!X||!z)return F.return(!1);X.document.body.style.overflow="hidden";w=yN1(X);PK$(f.pipController,function(){cru(f);w()});
return F.return(!0)})},Wzn=function(f){var S=_.Pn().shortsPipActivation,B,G;
f=S?.5625:(G=(B=f.player)==null?void 0:B.getVideoAspectRatio())!=null?G:16/9;B=Math.min(window.innerWidth,window.innerHeight)/2;S=S?0:76;return f>1?new _.Xr(B,S+B/f):new _.Xr(B*f,S+B)},cru=function(f){var S;
_.R(function(B){S=_.oy().resolve(_.o8);return S.isOnWatch()&&f.watchPipMode||S.isOnShorts()&&f.shortsPipMode?_.h(B,f.deactivate(),0):f.miniplayerToPipMode?_.h(B,sOB(f),0):f.watchPipMode?_.h(B,_.i$(f),0):B.jumpTo(0)})};
$y.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.y3.Object.defineProperties($y.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
$y[oN]=[vQo,LLX];var lgn="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(" "),
faX="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(" "),o6u="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
SQB="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var BcZ=null;var GC$={},g62=(GC$.initialized={priority:10,callback:function(f){var S=_.oy();S.addProvider({provide:ovi,useClass:Pm2});S.addProvider({provide:_.J1O,useFactory:function(){return new SI7}});
S.addProvider({provide:PM,useValue:_.nL("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});S.addProvider({provide:YOm,useValue:5184E6});S.addProvider({provide:AQ1,useValue:_.kj()});S.addProvider({provide:lmm,useClass:sz6});S.addProvider({provide:Cp,useClass:Cp});S.addProvider({provide:_.ms,useFactory:function(){return CEj.promise}});
S.addProvider({provide:_.Al7,useFactory:function(){return _.pXN.promise}});
S.addProvider({provide:QwA,useValue:function(){var w;return((w=_.B8())==null?void 0:w.getPlayer())||null}});
var B={};S.addProvider((B.provide=_.M8,B.useFactory=function(w,F){return function(){return PqG(w,F)}},B[oN]=[PM,
YOm],B));B={};S.addProvider((B.provide=_.eG,B.useClass=TGL,B[oN]=[PM,YOm],B));B={};S.addProvider((B.provide=_.R8T,B.useClass=Pyg,B[oN]=[_.eG],B));S.addProvider({provide:zU,useFactory:_.W2});S.addProvider({provide:Tq,useFactory:_.W2});S.addProvider({provide:GjZ,useFactory:_.W2});S.addProvider({provide:qr8,useFactory:_.W2});S.addProvider({provide:_.C5,useFactory:_.W2});S.addProvider({provide:Tb,useValue:_.FV});S.addProvider({provide:w7e,useClass:FUN});S.addProvider({provide:ewi,useClass:g1v});S.addProvider({provide:Oh,
useClass:Oh});S.addProvider({provide:Ji,useClass:Ji});S.addProvider({provide:P4,useClass:P4});S.addProvider({provide:K5,useClass:K5});S.addProvider({provide:DB,useClass:DB});S.addProvider({provide:Pc,useClass:Pc});S.addProvider({provide:Rw,useClass:Rw});S.addProvider({provide:BGj,useValue:x2u});S.addProvider({provide:_.Qz,useFactory:_.ik});S.addProvider({provide:aB,useFactory:_.K2});B={};S.addProvider((B.provide=y8V,B.useFactory=function(w){return function(F){var V=V===void 0?{}:V;var J,P,d=(P=_.H((J=
F.endpoint)==null?void 0:J.commandMetadata,_.oD))==null?void 0:P.rootVe;if(d){var Q,x;if(J=F.previousCsn||((x=_.H((Q=F.endpoint)==null?void 0:Q.commandMetadata,Kw8))==null?void 0:x.parentCsn)){var E=E===void 0?{}:E;if(J!==_.xc(E.layer)||d!==TX1(E.layer))voN(J,E.cttAuthInfo,E.layer||0),wE1(J,E.layer||0),Q=E.layer||0,_.k5(hrQ(Q===void 0?0:Q),d);V.parentCsn=J}F.endpoint&&J?Df6(w,F.endpoint,V):_.Rh(w,d,void 0,V);var U;((U=F.response)==null?0:U.trackingParams)&&w.graftServerVe(F.response.trackingParams);
var A;((A=F.playerResponse)==null?0:A.trackingParams)&&w.graftServerVe(F.playerResponse.trackingParams);var t;((t=F.reelWatchSequenceResponse)==null?0:t.trackingParams)&&w.graftServerVe(F.reelWatchSequenceResponse.trackingParams)}}},B[oN]=[_.Qz],B));
B={};S.addProvider((B.provide=e1o,B.useClass=gQu,B[oN]=[Tb,_.C5],B));B={};S.addProvider((B.provide=S8,B.useClass=S8,B[oN]=[_.ms,_.C5],B));B={};S.addProvider((B.provide=cg,B.useClass=cg,B[oN]=[Tq,_.S7],B));S.addProvider({provide:_.w9M,useClass:dAu});B={};S.addProvider((B.provide=_.ir,B.useClass=FxZ,B[oN]=[_.w9M],B));S.addProvider({provide:_.H0,useClass:gV});S.addProvider({provide:_.DON,useClass:fvX});S.addProvider({provide:_.qj,useClass:Bp});B={};S.addProvider((B.provide=_.Mh,B.useClass=Kx2,B[oN]=
[_.Mh],B));S.addProvider({provide:_.ob,useClass:lAi});S.addProvider({provide:TU,useClass:TU});S.addProvider({provide:Kl,useClass:Kl});S.addProvider({provide:jK,useClass:GI});B={};S.addProvider((B.provide=EB,B.useClass=EB,B[oN]=[_.H0,jK],B));_.K("web_enable_feedback_endpoint_resolver")&&(B={},S.addProvider((B.provide=RB,B.useClass=RB,B[oN]=[zU,mt],B)),S.addProvider({provide:mt,useClass:KH6}));_.K("web_enable_feedback_endpoint_resolver_batch_2")&&(B={},S.addProvider((B.provide=wo,B.useClass=wo,B[oN]=
[zU],B)),B={},S.addProvider((B.provide=Xp,B.useClass=Xp,B[oN]=[mt],B)));B={};S.addProvider((B.provide=OB,B.useClass=OB,B[oN]=[_.qj,jK],B));B={};S.addProvider((B.provide=$s,B.useClass=$s,B[oN]=[_.qj],B));B={};S.addProvider((B.provide=xs,B.useClass=xs,B[oN]=[_.DU,_.ir],B));B={};S.addProvider((B.provide=ro,B.useClass=ro,B[oN]=[_.DU,_.Qz],B));S.addProvider({provide:ox,useClass:ox});B={};S.addProvider((B.provide=uj,B.useClass=uj,B[oN]=[zU],B));S.addProvider({provide:FI,useClass:FI});S.addProvider({provide:Tz,
useClass:Tz});B={};S.addProvider((B.provide=JF,B.useClass=JF,B[oN]=[zU],B));B={};S.addProvider((B.provide=PN,B.useClass=PN,B[oN]=[_.DU,zU],B));B={};S.addProvider((B.provide=vN,B.useClass=vN,B[oN]=[zU],B));B={};S.addProvider((B.provide=K0,B.useClass=K0,B[oN]=[zU],B));B={};S.addProvider((B.provide=Qc,B.useClass=Qc,B[oN]=[_.ir],B));B={};S.addProvider((B.provide=eB,B.useClass=eB,B[oN]=[_.Qz],B));B={};S.addProvider((B.provide=w_,B.useClass=w_,B[oN]=[lj],B));B={};S.addProvider((B.provide=hF,B.useClass=
hF,B[oN]=[lj],B));S.addProvider({provide:zz,useClass:zz});S.addProvider({provide:Rx,useClass:Rx});S.addProvider({provide:g_,useClass:g_});B={};S.addProvider((B.provide=Ll,B.useClass=Ll,B[oN]=[_.ir,_.S7],B));S.addProvider({provide:JU,useClass:JU});B={};S.addProvider((B.provide=Ys,B.useClass=Ys,B[oN]=[_.DU,_.ir],B));S.addProvider({provide:ij,useClass:ij});B={};S.addProvider((B.provide=Z_,B.useClass=Z_,B[oN]=[zU,_.DU,_.Mh],B));B={};S.addProvider((B.provide=AU,B.useClass=AU,B[oN]=[_.DU,_.S7],B));S.addProvider({provide:iEg,
useValue:EIV});S.addProvider({provide:YMm,useValue:uBs});S.addProvider({provide:Nh,useClass:Nh});B={};S.addProvider((B.provide=pl,B.useClass=pl,B[oN]=[zU],B));B={};S.addProvider((B.provide=tU,B.useClass=tU,B[oN]=[_.ob,_.S7],B));B={};S.addProvider((B.provide=hU,B.useClass=hU,B[oN]=[_.S7],B));S.addProvider({provide:bj,useFactory:function(){return new bj(_.W2())}});
S.addProvider({provide:Tq9,useFactory:_.kG.getInstance});B={};S.addProvider((B.provide=vM,B.useClass=vM,B[oN]=[PM,Tq9,_.S7],B));S.addProvider({provide:Fp,useClass:Fp});S.addProvider({provide:SK,useClass:SK});S.addProvider({provide:GU,useClass:GU});S.addProvider({provide:_.BM,useClass:_.BM});S.addProvider({provide:qn,useClass:qn});B={};S.addProvider((B.provide=IB,B.useClass=IB,B[oN]=[Tq],B));B={};S.addProvider((B.provide=UB,B.useClass=UB,B[oN]=[_.S7],B));_.K("web_enable_prefetching_videos_on_home")&&
(S.addProvider({provide:Wg,useClass:Wg}),S.addProvider({provide:JG,useClass:JG}));B={};S.addProvider((B.provide=HN,B.useClass=HN,B[oN]=[_.S7],B));S.addProvider({provide:go,useClass:go});B={};S.addProvider((B.provide=SB,B.useClass=SB,B[oN]=[_.DU,_.S7],B));B={};S.addProvider((B.provide=eK,B.useClass=eK,B[oN]=[_.S7],B));S.addProvider({provide:Pp,useClass:Pp});S.addProvider({provide:sB,useClass:sB});B={};S.addProvider((B.provide=nl,B.useClass=nl,B[oN]=[Tq,_.S7],B));B={};S.addProvider((B.provide=kO,B.useClass=
kO,B[oN]=[Tq,_.S7,_.DU],B));B={};S.addProvider((B.provide=n0,B.useClass=n0,B[oN]=[_.S7],B));B={};S.addProvider((B.provide=L0,B.useClass=L0,B[oN]=[_.S7,_.DU],B));B={};S.addProvider((B.provide=Cl,B.useClass=Cl,B[oN]=[_.ms],B));B={};S.addProvider((B.provide=D_,B.useClass=D_,B[oN]=[_.ms],B));S.addProvider({provide:cM,useClass:cM});S.addProvider({provide:f0,useClass:f0});S.addProvider({provide:V7,useClass:V7});S.addProvider({provide:BN,useClass:BN});S.addProvider({provide:WM,useClass:WM});S.addProvider({provide:HM,
useClass:HM});S.addProvider({provide:yc,useClass:yc});_.K("kevlar_enable_mss_lazy_load")&&S.addProvider({provide:_.ZW,useClass:c1o});S.addProvider({provide:_.dQ,useClass:b$});S.addProvider({provide:le,useFactory:function(){return _.AE.getInstance()}});
S.addProvider({provide:SVZ,useFactory:EBT});S.addProvider({provide:lj,useFactory:function(){return _.YZ.getInstance()}});
S.addProvider({provide:L47,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});B={};S.addProvider((B.provide=_.lV,B.useClass=_.lV,B[oN]=[_.ms,_.S7,_.Qz,SVZ,lj,le,L47,Tb],B));S.addProvider({provide:_.XS,useClass:Jum});S.addProvider({provide:_.jp1,useClass:rQm});B={};S.addProvider((B.provide=qh,B.useClass=qh,B[oN]=[_.jp1],B));B={};S.addProvider((B.provide=_.fG,B.useFactory=function(w){return w.upliftCompletionResolver.promise},B[oN]=[e1o],B));
B=_.s6("IS_SHELL_LOAD")?"aa":"eocs";var G=_.s6("IS_SHELL_LOAD")?3:2;_.UX().parkOrScheduleJob(function(){mAu()},G,B);
_.UX().parkOrScheduleJob(function(){_.oy().resolve(S8).start()},2,"eocs");
_.UX().parkOrScheduleJob(function(){BWM()},2,"eocs");
_.UX().parkOrScheduleJob(function(){_.oy().resolve(cg).start()},2,"eocs");
_.K("kevlar_debug_data_app_registration_ks")||cF9();S.addProvider({provide:_.k8,useValue:new Xh6(f.root)});S.addProvider({provide:Cg,useValue:new LTj});S.addProvider({provide:_.v7m,useValue:new Jdo(f.root)});S.addProvider({provide:_.st,useValue:new P2i});S.addProvider({provide:_.$k,useClass:FS});S.addProvider({provide:vQo,useClass:e8});_.K("kevlar_network_sli_killswitch")||S.addProvider({provide:Hiu,useValue:Hp1});S.addProvider({provide:hjY,useFactory:HvN});_.K("web_bind_fetch")&&(B={},S.addProvider((B.provide=
TNo,B.useFactory=qFA,B[oN]=[_.fN(hjY)],B)));_.K("web_bind_parse")&&(B={},S.addProvider((B.provide=F6u,B.useFactory=$e1,B[oN]=[_.fN(hjY)],B)));_.K("web_bind_window_request")&&(B={},S.addProvider((B.provide=VmY,B.useFactory=Q1V,B[oN]=[_.fN(hjY)],B)));B={};S.addProvider((B.provide=tgL,B.useFactory=tvs,B[oN]=[_.fG,zU,_.M8],B));B={};S.addProvider((B.provide=ZB$,B.useClass=s3,B[oN]=[tgL],B));S.addProvider({provide:mXo,useClass:GBo});S.addProvider({provide:pAi,useClass:N26});B=[].concat(_.$d(yj));_.K("web_continuation_response_processing")&&
B.push(_.p9);B.push(u1N);_.K("enable_share_panel_navigation_logging_fix_on_web")&&B.push(_.Fn7);S.addProvider({provide:hMA,useValue:B});S.addProvider({provide:JBM,useClass:C9m});S.addProvider({provide:r1e,useClass:q8o});B={};S.addProvider((B.provide=h81,B.useClass=jW6,B[oN]=[Tq],B));_.xJ.addLowPriorityJob(function(){S_9()});
B={};S.addProvider((B.provide=YrN,B.useFactory=function(w){return function(F){var V,J=(V=_.H(F.commandMetadata,_.oD))==null?void 0:V.url;if(!J)throw new _.dO("No URL for PBJ Command",F);J=hY9(J,{pbj:"1"});V=xCK(J,{})||{};V=Object.assign({},V,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.nL("STS").toString()});F=_.hY({command:JSON.stringify(F),session_token:_.nL("XSRF_TOKEN")});return w.fetch(J,{method:"POST",headers:V,body:F})}},B[oN]=[r1e],B));
B=[];B.push(S.resolve(pAi));G={};G=(G.client_location=_.kG.getInstance(),G.consistency=_.Rk9(),G.entities=S.resolve(ewi),G.response_received_commands=S.resolve(JBM),G.store=S.resolve(_.R8T),G.tokens=S.resolve(pAi),G);if(_.K("web_shorts_prefetch_service_enabled")){var g=new vL6(S.resolve(_.eG));G.shorts_prefetch=g}G.adblock_detection=S.resolve(h81);S.addProvider({provide:_.N7,useClass:_.N7});g=S.resolve(BGj);var b=[];_.K("PremiumClientSharedConfig__enable_att_context_processor")&&(S.addProvider({provide:N4L,
useClass:C2v}),b.push(S.resolve(N4L)));if(_.K("owl_pl_await")){var z={};S.addProvider((z.provide=eju,z.useFactory=function(w){return new GoB(w)},z[oN]=[_.N7],z));
b.push(S.resolve(eju))}n4i(g,S.resolve(r1e),S.resolve(w7e),G,S.resolve(_.eG),B,b,S.resolve(ZB$),S.resolve(mXo));S.addProvider({provide:_.DU,useValue:_.Zd.instance});_.K("start_client_gcf")&&S.addProvider({provide:$H,useValue:x7i()});S.addProvider({provide:R1O,useFactory:function(){return new R1O(_.oy().resolve(_.N7),_.YZ.getInstance())}});
_.UX().parkOrScheduleJob(function(){X92()},1,"eocs");
B={};S.addProvider((B.provide=od,B.useClass=od,B[oN]=[_.M8,_.DU],B));S.addProvider({provide:_.QTu,useFactory:_.VA.getInstance});_.UX().parkOrScheduleJob(function(){_.oy().resolve(od).refresh()},0,"eocs");
rH1(x2u.watchEndpointMap||{},g.reelWatchEndpointMap||{},f.injector.resolve(_.DU));S.addProvider({provide:jO,useValue:_.H4.instance});_.K("kevlar_signal_collection_killswitch")||(B={},S.addProvider((B.provide=ch1,B.useClass=ch1,B[oN]=[PM,aB],B)),_.UX().parkOrScheduleJob(function(){_.oy().resolve(ch1).record()},1,"eocs"));
_.K("web_debug_handler_registration_killswitch")||_.UX().parkOrScheduleJob(function(){yF9("DOWNLOAD_PES",xKN);_.K("offline_client_state_export_ks")||yF9("OFFLINE_CLIENT_STATE",rcQ)},0,"eocs");
_.K("kevlar_prevent_polymer_dynamic_font_load")&&_.UX().parkOrScheduleJob(function(){var w=[_.Sr(UNu),_.Sr(Cm2)];w=_.m(w);for(var F=w.next();!F.done;F=w.next()){F=F.value;var V=document.createElement("link");_.Nb(V,F,"stylesheet");document.head.appendChild(V)}},1,"eocs");
B=f.injector.resolve(_.DU);_.Adm.instance=new _.Adm(B);TsM(kr7(new phi(B)));B={};f.injector.addProvider((B.provide=f_,B.useFactory=function(w){(w=w==null?void 0:w.getCurrentPage())?w=w.visibilityObserver:(BcZ||(BcZ=Vy1()),w=BcZ);return w},B[oN]=[_.fN(_.o8)],B.skipCache=!0,B));
S.addProvider({provide:_.N_,useClass:$y});S.addProvider({provide:T5,useClass:qpg});f.injector.addProvider({provide:ixN,useValue:RV6});S.addProvider({provide:bEv,useValue:xQV});S.addProvider({provide:_.yU,useValue:AT9});f=S.addProvider;rsu||(rsu=new YVu);f.call(S,{provide:_.m2,useValue:rsu});S.addProvider({provide:_.cs,useValue:_.nL("HTML_DIR")==="rtl"?"rtl":"ltr"});S.addProvider({provide:mOi,useClass:P9m});S.addProvider({provide:_.VU,useClass:Rd});_.oy().addProvider({provide:RwN,useValue:_.K("enable_web_delhi_icons")?
faX.concat(SQB):lgn.concat(o6u)});S.addProvider({provide:_.wV,useClass:_.wV});S.addProvider({provide:_.nXo,useValue:new koe});S.addProvider({provide:m$6,useClass:B2$});S.addProvider({provide:Gz,useClass:Gz});S.addProvider({provide:bf,useClass:bf});f={};S.addProvider((f.provide=ks,f.useClass=ks,f[oN]=[_.DU,_.ir],f));S.addProvider({provide:E3,useClass:E3});S.addProvider({provide:Yg$,useClass:HMY});S.addProvider({provide:XI,useClass:XI});S.addProvider({provide:S_7,useValue:CUX});S.addProvider({provide:_.L3,
useClass:GKi});_.K("enable_payments_purchase_manager")&&S.addProvider({provide:uOX,useClass:MX6});S.addProvider({provide:Ivu,useFactory:function(){return function(w){return _.DNZ(w)}}});
S.addProvider({provide:_.Ibi,useClass:UO1});f={};S.addProvider((f.provide=d_,f.useClass=d_,f[oN]=[_.Ibi],f));S.addProvider({provide:mB,useClass:mB});S.addProvider({provide:viN,useValue:ct7});S.addProvider({provide:nF6,useValue:_.sTn});S.addProvider({provide:br1,useClass:iMz});S.addProvider({provide:jTu,useValue:n$B});f={};S.addProvider((f.provide=_.zI,f.useClass=OMM,f[oN]=[jTu],f));_.K("web_ephemeral_actions")&&(f={},S.addProvider((f.provide=_.TI,f.useClass=hG,f[oN]=[_.C5,_.$k],f)));if(_.K("web_explore_hub_on_hover")||
_.K("web_client_explore_hub_on_hover"))f={},S.addProvider((f.provide=Vc,f.useClass=Vc,f[oN]=[_.DU,le],f));if(_.K("web_enable_renderer_logger")){var X=new X7u;window.addEventListener("yt-navigate-start",function(){X.abort()},{once:!0});
S.addProvider({provide:GIT,useValue:new fN$(X.signal)})}S.addProvider({provide:j29,useValue:i39});f={};S.addProvider((f.provide=dXj,f.useClass=KKi,f[oN]=[_.DU],f))}},GC$);var eXO={},bC2=(eXO.initialized={priority:10,callback:function(){if(!iiz){UoA();r8M("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.zt(_.vK(r8M,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.K("log_heartbeat_with_lifecycles")){var f={};au.instance||(au.instance=new au);au.instance.install((f.document_visible={callback:j1s,priority:10},f.document_hidden={callback:j1s,priority:10},f))}else _.cU(document,"visibilitychange",j1s);iiz=!0}(f=_.xc())&&f!=="UNDEFINED_CSN"&&Rrs(f)}},eXO);var mbB={},zXu=(mbB.initialized={callback:function(f){var S=_.Eo(232091),B=f.injector.resolve(_.Qz);_.Xo(B,S);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?W39()&&_.h0(B,S):(f=f.injector.resolve(Ivu)("refresh_detector"))&&(f.get("first_tab_load")?_.h0(B,S):f.set("first_tab_load","1"))}},mbB);var RXe={},Xon=(RXe.initialized={priority:10,callback:guT},RXe);var woe={},hXu=(woe.initialized={priority:0,callback:function(){var f=new Ed1,S="other";_.v_?S="chrome":_.P_?S="firefox":_.k0?S="safari":ay&&(S="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(B){f.increment(_.PL(),B,S)}).catch(function(){f.increment(_.PL(),!1,S)}):f.increment(_.PL(),!1,S)}},woe);var TcX={},Fgn=(TcX.rendering={priority:8,callback:e8V},TcX);var VZX={},JJZ=(VZX.rendering={priority:10,callback:vu1},VZX.rendered={callback:PZG},VZX),Pou={},v6u=(Pou.rendering={callback:vu1},Pou.rendered={callback:PZG},Pou);var Kgz=!1,dbu={},iCe=(dbu.initialized={priority:10,callback:function(){Kgz||(h_K({didPatch:function(f){f.el&&JGK(f.el,f.props)},
didUnmount:function(f){F29(f.el)}}),Kgz=!0)}},dbu);var HC$=/^\/shorts\/?$/;_.k5("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(_.K("kevlar_enable_mss")){_.axN(new FIv);var qQM=!0,$bO,Yy;qQM=qQM===void 0?!1:qQM;$bO=$bO===void 0?!1:$bO;Yy=Yy===void 0?{}:Yy;var QPu=Yy.cssRowKey||"",YQM=Yy.combinedSignature||"";!QPu&&window&&window._F_cssRowKey&&(QPu=window._F_cssRowKey,!YQM&&window._F_combinedSignature&&(YQM=window._F_combinedSignature));if(QPu&&typeof window._F_installCss!=="function")throw Error("vd");var rJn=Yy.loaderClass||_.pT,rV=n5N("base-js"),jPo,OCB=Dpj("",rV);jPo=_.zC(OCB);var j8=new rJn(jPo,QPu,YQM,qQM,$bO),xbM=
Yy.useCors||rV&&rV.hasAttribute("crossorigin"),E6X=Yy.corsMode||rV&&rV.getAttribute("crossorigin");xbM&&(j8.useCors_=xbM);E6X&&(j8.corsMode_=E6X);Yy.urlMaxLength&&(j8.urlMaxLength=Yy.urlMaxLength);Yy.fetchPriority&&(j8.fetchPriority=Yy.fetchPriority);var Lgu=Ob();Lgu.JSC$8098_loader_=j8;Lgu.setBatchModeEnabled(!0)}
(function(){var f=document.querySelector("ytd-app");if(!f)throw Error("Ij");f=new FZ({root:f,injector:_.oy()});f.install(bC2);var S={};f.install((S.initialized={priority:10,callback:bRV},S));_.K("wp_lat_b")&&(S={},f.install((S.initialized={priority:10,callback:function(){KAA()}},S)));
S={};f.install((S.rendered={priority:0,callback:GJA},S));S={};f.install((S.rendered={priority:0,callback:function(){_.xJ.addLowPriorityJob(function(){_.v16>1&&(W$N(),SkM())},4E4)}},S));
f.install(wOO);f.install(zXu);f.install(iCe);pBK();f.install(KuM);f.install(eBY);f.install(RBn);f.install(MJN);f.install(yh1);f.install(Pzu);f.install(g62);_.K("kevlar_enable_mss_lazy_load")&&f.install(Xon);f.install(m22);f.install(hXu);if(!_.s6("IS_SHELL_LOAD")||_.K("kevlar_fetch_initial_data_promise_client")||_.K("sw_nav_preload_pbj")){var B=_.Xl(window.location.href);S=B&&B==="/watch";B=B&&B.match(HC$);S?f.install(v6u):B?f.install(Fgn):f.install(JJZ)}else f.install(Beu);f.install(Ten);_.K("web_enable_prefetching_videos_on_home")&&
f.install(quM);_.K("start_client_gcf")&&f.install(dNu);f.install(UX7);(new Lrv).increment("INSTALLED");f.install(iYO);f.install(fZn);f.transition("initialized");wBK()})();
_.X2=[[["d3l0b25oNTk4a2luZCNweTg=","bzN5eWg2dmFsdWUjMTJrYmFp"],"M3M1bzhiaG5pNHI4QURfUExBQ0VNRU5UX0tJTkRfTEFZT1VUX0lEX0VOVEVSRUQj"]];_.Re=["cDgybGdsb2JhbENhbGxiYWNrcyNxbXY2NHBrdA==","YWxpdHlEZXRlY3RlZCNiZjBmYTR2aDM0ZnBvbkFibm9ybQ==","ZFNraXAjeGRtMHl2NHoyZnhnb25B","cGxheWVyX3Jlc3BvbnNlI2RuaDBnbWpmMWVqZHJhd18=","UmVuZGVyZXIjc3dkcG8zYWdvc20zYWRzRW5nYWdlbWVudFBhbmVs"];_.Zr="cDgybGdsb2JhbENhbGxiYWNrcyNxbXY2NHBrdA== YWxpdHlEZXRlY3RlZCNiZjBmYTR2aDM0ZnBvbkFibm9ybQ== ZFNraXAjeGRtMHl2NHoyZnhnb25B cGxheWVyX3Jlc3BvbnNlI2RuaDBnbWpmMWVqZHJhd18= M2ZqNDZsZTk5M2d3ZWJfcGxheWxpc3RfcXVldWVfbXVsdGlwbGVfc2tpcHNfa3MjYQ== c2FfZWYjaTU1N2Nub2pydnp2YWJf UmVuZGVyZXIjc3dkcG8zYWdvc20zYWRzRW5nYWdlbWVudFBhbmVs".split(" ");
_._ModuleManager_initialize=function(f,S){if(!_.rj){if(!_.jI)return;_.axN(_.jI())}_.rj.setAllModuleInfoString(f,S)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5/sy6:2,3/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syd:2/syc: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','sy3','sy8','syd','sya','sy6','syi','syh','sye','syc','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{
_.LG=function(f,S,B,G,g){var b={};S&&(b[S]=B);G?b.errorType=G:g&&(b.errorReason=g);_.jD(f,b);_.OU()};
_.ky=function(f){var S=_.UX();return _.djN(S,f,1)};
_.OW({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 f=this.query;f&&(this.full||f[0]==="("||(f="("+f+")"),this._mq=window.matchMedia(f),this._add(),this.queryHandler(this._mq))},
queryHandler:function(f){this._setQueryMatches(f.matches)}});var NcB;var MZZ;var ZCu=function(){};
_.e=ZCu.prototype;_.e.addOwnKeyBinding=function(){};
_.e.removeOwnKeyBindings=function(){};
_.e.keyboardEventMatchesKeys=function(){};
_.e._collectKeyBindings=function(){};
_.e._prepKeyBindings=function(){};
_.e._addKeyBinding=function(){};
_.e._resetKeyEventListeners=function(){};
_.e._listenKeyEventListeners=function(){};
_.e._unlistenKeyEventListeners=function(){};
_.e._onKeyBindingEvent=function(){};
_.e._triggerKeyHandler=function(){};
_.e._tapHandler=function(){};
_.e._focusChanged=function(){};
_.e._detectKeyboardFocus=function(){};
_.e._userActivate=function(){};
_.e._upHandler=function(){};
_.e._spaceKeyDownHandler=function(){};
_.e._spaceKeyUpHandler=function(){};
_.e._asyncClick=function(){};
_.e._pressedChanged=function(){};
_.e._ariaActiveAttributeChanged=function(){};
_.e._activeChanged=function(){};
_.e._controlStateChanged=function(){};
_.e._changedButtonState=function(){};
_.e._focusBlurHandler=function(){};
_.e._disabledChanged=function(){};
_.e._changedControlState=function(){};
_.e._downHandler=function(){};
_.e.ensureRipple=function(){};
_.e.getRipple=function(){};
_.e.hasRipple=function(){};
_.e._noinkChanged=function(){};
_.e._focusedChanged=function(){};
_.e._createRipple=function(){};
_.e.registered=function(){};
_.e._invalidChanged=function(){};
_.e.hasValidator=function(){};
_.e.validate=function(){};
_.e._getValidity=function(){};
_.e._requiredChanged=function(){};
_.e._valueChanged=function(){};
_.e._checkedChanged=function(){};
_.e._buttonStateChanged=function(){};
_.e._setPressed=function(){};
_.e._setPointerDown=function(){};
_.e._setReceivedFocusFromKeyboard=function(){};
_.e._setFocused=function(){};
ZCu=_.OW({is:"tp-yt-paper-radio-button",_template:function(){if(MZZ!==void 0)return MZZ;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;NcB===void 0&&(NcB=document.createElement("template"));var G=NcB;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return MZZ=f},
behaviors:[_.BbL],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(){_.ui(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var f=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),S=Math.floor(3*f);S%2!==f%2&&S++;this.updateStyles({"--paper-radio-button-ink-size":S+"px"})}})}});var tZB;var u6u;_.OW({_template:function(){if(u6u!==void 0)return u6u;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;tZB===void 0&&(tZB=document.createElement("template"));var G=tZB;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return u6u=f},
is:"tp-yt-paper-radio-group",behaviors:[_.VPm],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(f){var S=this._valueToItem(f);if(!S||!S.hasAttribute("disabled")){if(this.selected){S=this._valueToItem(this.selected);if(this.selected==f)if(this.allowEmptySelection)f="";else{S&&(S.checked=!0);return}S&&
(S.checked=!1)}_.Ze.select.apply(this,[f]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(f){this._focusPrevious();f.preventDefault();this._activateFocusedItem()},
_onDownKey:function(f){this._focusNext();f.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(f){_.FTi._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(f){_.FTi._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.Ze._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.Ed._resetTabindices.apply(this,arguments);this.items.forEach(function(f){f.removeAttribute("aria-selected")},this)}});var aaz;_.Dd("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var nG=function(){return _.I.apply(this,arguments)||this};
_.q(nG,_.I);_.e=nG.prototype;_.e.computeHasPrimaryIcon=function(f){return!(!f.icon&&!f.thumbnail)};
_.e.computeHasSecondary=function(f){return!(!f.secondaryIcon&&!f.secondaryNotificationText)};
_.e.computeHideSecondaryString=function(f){return!_.K("disable_hide_empty_secondary_string")&&!f.secondaryNotificationText};
_.e.computeCompactLinkStyle=function(f){return f?f.toLowerCase().replace(/_/g,"-"):""};
_.e.computeHasFitHeight=function(f){return f==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.e.isActiveEndpoint=function(f){return(f=this.get("commandMetadata.webCommandMetadata.url",f))?_.Xl(window.location.href)!=="/account_transfer_channel"&&_.Xl(window.location.href)!=="/gaia_link"&&_.Xl(window.location.href)!=="/channel_switcher"||f!=="/account"?_.Xl(window.location.href)===f:!0:!1};
_.e.onTap=function(){var f;((f=this.data)==null?0:f.serviceEndpoint)&&_.RD(this.hostElement,[this.data.serviceEndpoint])};
nG.prototype.onTap=nG.prototype.onTap;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],nG.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],nG.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.Z("design:type",Boolean)],nG.prototype,"active",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.Z("design:type",String)],nG.prototype,"compactLinkStyle",void 0);
_.N([_.n({computed:"computeIcon_(data.icon)"}),_.Z("design:type",Object)],nG.prototype,"icon",void 0);_.N([_.n({computed:"computeIcon_(data.secondaryIcon)"}),_.Z("design:type",Object)],nG.prototype,"secondaryIcon",void 0);_.N([_.n({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],nG.prototype,"hasSecondary",void 0);_.N([_.n({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],nG.prototype,"hideSecondaryString",void 0);
_.N([_.Vg("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nG.prototype,"onTap",null);_.N([_.C({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],nG);
_.p(nG,"ytd-compact-link-renderer",function(){if(aaz!==void 0)return aaz;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return aaz=f},{mode:1});var yJu;_.Dd("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var s1=function(){var f=_.I.apply(this,arguments)||this;f.role="link";f.tabindex="0";f.actionMap=_.K("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 f};
_.q(s1,_.I);_.e=s1.prototype;_.e.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.xG()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.e.getCurrentTheme=function(){return _.Et()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.xG()};
_.e.onThemeSelected=function(f,S){var B=f||S?f:_.Ot(),G=(B&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!B&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.bVA(_.Xl(window.location.href));_.dh(0,165,f);_.dh(0,174,S);this.prefs.save();G&&_.bW(this.hostElement,"yt-dark-mode-toggled-action",[B]);_.bW(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.e.onTap=function(){this.data.serviceEndpoint&&_.RD(this.hostElement,[this.data.serviceEndpoint])};
_.e.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.e.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.e.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
s1.prototype.onTap=s1.prototype.onTap;s1.prototype.dataChanged=s1.prototype.dataChanged;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],s1.prototype,"actionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],s1.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Wu),_.Z("design:type",Object)],s1.prototype,"paperItemBehaviors",void 0);_.N([_.n(),_.Z("design:type",Object)],s1.prototype,"data",void 0);_.N([_.n({value:function(){return _.K2()}}),
_.Z("design:type",_.G6)],s1.prototype,"prefs",void 0);_.N([_.n(),_.Z("design:type",Object)],s1.prototype,"label",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],s1.prototype,"role",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],s1.prototype,"tabindex",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],s1.prototype,"dataChanged",null);
_.N([_.Vg("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],s1.prototype,"onTap",null);_.N([_.C({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],s1);
_.p(s1,"ytd-toggle-theme-compact-link-renderer",function(){if(yJu!==void 0)return yJu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return yJu=f},{mode:1});
}catch(e){_._DumpException(e)}
try{
var cJO,lau;_.DQ=function(f){return!!f.getOptions("captions")};
_.Wg$=function(f){return(f=f.getOption("captions","track"))?!!f.displayName:!1};
_.Id=function(f,S){_.Dp(S,f,function(){return cJO[S]},function(B){cJO[S]=B;
if(!_.K("mweb_player_ve_show_ks")){var G=_.xc(0);G&&B&&_.ME(G,B)}})};
_.U1=function(f){(f=cJO[f])&&_.h0(_.ik(),f)};
cJO={};var fEu;/*

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
*/
_.OW({_template:function(){if(fEu!==void 0)return fEu;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;lau===void 0&&(lau=document.createElement("template"));var G=lau;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return fEu=f},
is:"tp-yt-paper-checkbox",behaviors:[_.BbL],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.ui(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var f=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),S="px",B=f.match(/[A-Za-z]+$/);B!==null&&(S=B[0]);f=parseFloat(f);B=8/3*f;S==="px"&&(B=Math.floor(B),B%2!==f%2&&B++);this.updateStyles({"--paper-checkbox-ink-size":B+
S})}})},
_computeCheckboxClass:function(f,S){var B="";f&&(B+="checked ");S&&(B+="invalid");return B},
_computeCheckmarkClass:function(f){return f?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.oKN._createRipple.call(this)}});var odO=new _.u("radioButtonSurveyOptionRenderer"),SKo=new _.u("checkboxSurveyOptionRenderer");var BzX;var GTu;var gdY=0,CG=function(){var f=_.I.call(this)||this;f.selected=!1;f.isOverlay=!1;f.inputId="toggle-option-"+gdY;gdY++;return f};
_.q(CG,_.I);CG.prototype.onTap=function(){_.ew(this.hostElement,"ytd-toggle-option-clicked")};
_.N([_.n(),_.Z("design:type",String)],CG.prototype,"label",void 0);_.N([_.n(),_.Z("design:type",String)],CG.prototype,"inputId",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],CG.prototype,"selected",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],CG.prototype,"isOverlay",void 0);_.N([_.C({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.Z("design:paramtypes",[])],CG);
_.p(CG,"ytd-toggle-option-renderer",function(){if(GTu!==void 0)return GTu;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return GTu=f},{mode:1});var pG=function(){var f=_.I.apply(this,arguments)||this;f.isToggleOption=!1;f.isOverlay=!1;return f};
_.q(pG,_.I);pG.prototype.onTap=function(f){f.preventDefault();this.data&&(f=!this.data.checked,this.set("data.checked",f),_.ew(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:f,value:this.data.value}))};
_.y3.Object.defineProperties(pG.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
pG.prototype.onTap=pG.prototype.onTap;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],pG.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],pG.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],pG.prototype,"isToggleOption",void 0);_.N([_.n(),_.Z("design:type",Object)],pG.prototype,"isOverlay",void 0);_.N([_.k("data.responseText"),_.Z("design:type",String),_.Z("design:paramtypes",[])],pG.prototype,"label",null);
_.N([_.Vg("ytd-toggle-option-clicked"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],pG.prototype,"onTap",null);_.N([_.C({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],pG);
_.p(pG,"ytd-checkbox-survey-option-renderer",function(){if(BzX!==void 0)return BzX;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return BzX=f},{mode:1});var eKB;var bQ2;var AG=function(){var f=_.I.apply(this,arguments)||this;f.checked=!1;f.isToggleOption=!1;return f};
_.q(AG,_.I);AG.prototype.onTap=function(){this.data&&(this.checked?_.bW(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.bW(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
AG.prototype.onTap=AG.prototype.onTap;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],AG.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],AG.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],AG.prototype,"checked",void 0);_.N([_.n(),_.Z("design:type",Object)],AG.prototype,"isToggleOption",void 0);_.N([_.Vg("ytd-toggle-option-clicked"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],AG.prototype,"onTap",null);
_.N([_.C({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],AG);
_.p(AG,"ytd-radio-button-survey-option-renderer",function(){if(bQ2!==void 0)return bQ2;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return bQ2=f},{mode:1});var N4=function(){var f=_.I.apply(this,arguments)||this;f.disableAnimation=!1;f.isToggleOption=!0;f.followUpSurveyCommand=null;f.selectedRatingEndpoint=null;f.isSlimlineSurveyFollowUp=!1;f.isShortsStyle=!1;f.styleOverrideAttribute=!0;f.isDarkMode=!1;f.isSubmitted=!1;f.roundedContainer=!0;f.improveShortsResponseRate=_.K("web_improve_shorts_response_rate");f.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 f};
_.q(N4,_.I);_.e=N4.prototype;
_.e.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"}}}}};
_.e.attached=function(){var f=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(B){var G;if((G=B[0])!=null&&G.isIntersecting){_.KH().reportShown(f.hostElement);var g;(g=f.intersectionObserver)==null||g.unobserve(f.hostElement)}},{rootMargin:"0px",
threshold:.6});var S;(S=this.intersectionObserver)==null||S.observe(this.hostElement)};
_.e.onDarkModeToggledAction=function(f){this.isDarkMode=f};
_.e.dataChanged=function(){var f;if(((f=this.data)==null?void 0:f.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var S;((S=this.data)==null?void 0:S.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var B,G,g,b;this.darkColorPalette=(B=this.data)==null?void 0:(G=B.inlineContent)==null?void 0:(g=G.compactVideoRenderer)==null?void 0:(b=g.thumbnail)==null?
void 0:b.darkColorPalette;var z,X,w,F;this.lightColorPalette=(z=this.data)==null?void 0:(X=z.inlineContent)==null?void 0:(w=X.compactVideoRenderer)==null?void 0:(F=w.thumbnail)==null?void 0:F.lightColorPalette;var V,J;if(((V=this.data)==null?0:(J=V.inlineContent)==null?0:J.compactVideoRenderer)&&this.isShortsStyle){var P,d,Q,x;f=_.my((P=this.data)==null?void 0:(d=P.inlineContent)==null?void 0:(Q=d.compactVideoRenderer)==null?void 0:(x=Q.thumbnail)==null?void 0:x.thumbnails);_.hO(this.hostElement,
{"--yt-background-url":"url("+f+")"})}};
_.e.handleRequestCompletion=function(){this.hostElement.hidden&&_.ew(this.hostElement,"yt-dismissible-item-dismissed")};
_.e.onPopupClosed=function(f){var S;((S=f.detail)==null?void 0:S.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.bW(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.e.handleInlineSurveyRatingSelect=function(f,S){var B=this;this.selectedRatingEndpoint=f;this.followUpSurveyCommand=S;this.expanded=!!f;this.getOptionRenderers().forEach(function(G,g){B.notifyPath("followUpSurveyCommand.followUpOptions."+g+".checkboxSurveyOptionRenderer.checked");B.set("followUpSurveyCommand.followUpOptions."+g+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),f=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.bW(this.hostElement,"yt-reel-non-video-content-dismissal-command",[f]))};
_.e.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.bW(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var f,S=(f=this.data)==null?void 0:f.dismissalEndpoint;S&&this.ytComponentBehavior.resolveCommand(S)}};
_.e.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.bW(this.hostElement,"yt-close-popup-action"))};
_.e.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var f=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{f=this.getOptionRenderers().filter(function(G){return G.checked});
if(f.length===0)return;f=f.map(function(G){return G.responseEndpoint})}var S=[];
f.forEach(function(G,g){g!==0&&(G=_.H(G,_.IQ))&&G.feedbackToken&&S.push(G.feedbackToken)});
if(f=f[0]){var B={};S.length>0&&(B.extra_feedback_tokens=S);this.ytComponentBehavior.resolveCommand(f,{form:B})}}};
_.e.getOptionRenderers=function(){var f=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(S){f.isSingleSelect=!!_.H(S,odO);return f.isSingleSelect?_.H(S,odO):_.H(S,SKo)}):[]};
_.e.handleInlineSurveyOptionSelect=function(f){f=this.optionSelector.indexOf(f);f!==-1&&this.optionSelector.selectIndex(f)};
_.e.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.e.maybeGetBackgroundColor=function(f){return this.isDarkMode?f.section2Color:f.section3Color};
_.e.colorPaletteChanged=function(){var f=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;f=f&&this.maybeGetBackgroundColor(f);this.dismissibleEl.style.backgroundColor=!f||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.pn(f)};
_.y3.Object.defineProperties(N4.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
N4.prototype.colorPaletteChanged=N4.prototype.colorPaletteChanged;N4.prototype.onPopupClosed=N4.prototype.onPopupClosed;N4.prototype.handleRequestCompletion=N4.prototype.handleRequestCompletion;N4.prototype.dataChanged=N4.prototype.dataChanged;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],N4.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],N4.prototype,"actionHandlerBehavior",void 0);
_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],N4.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],N4.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.kP),_.Z("design:type",Object)],N4.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.vF("#follow-up-survey-options"),_.Z("design:type",Object)],N4.prototype,"optionSelector",void 0);_.N([_.n(),_.Z("design:type",Object)],N4.prototype,"data",void 0);
_.N([_.n(),_.Z("design:type",Object)],N4.prototype,"disableAnimation",void 0);_.N([_.n(),_.Z("design:type",Object)],N4.prototype,"isToggleOption",void 0);_.N([_.n(),_.Z("design:type",Object)],N4.prototype,"followUpSurveyCommand",void 0);_.N([_.n(),_.Z("design:type",Object)],N4.prototype,"selectedRatingEndpoint",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],N4.prototype,"expanded",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],N4.prototype,"isSlimlineSurveyFollowUp",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],N4.prototype,"isShortsStyle",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],N4.prototype,"styleOverrideAttribute",void 0);_.N([_.n(),_.Z("design:type",Boolean)],N4.prototype,"isSingleSelect",void 0);_.N([_.n(),_.Z("design:type",Object)],N4.prototype,"isDarkMode",void 0);
_.N([_.n(),_.Z("design:type",Object)],N4.prototype,"lightColorPalette",void 0);_.N([_.n(),_.Z("design:type",Object)],N4.prototype,"darkColorPalette",void 0);_.N([_.k("selectedRatingEndpoint","isShortsStyle"),_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],N4.prototype,"isOptionSelected",null);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],N4.prototype,"roundedContainer",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],N4.prototype,"improveShortsResponseRate",void 0);_.N([_.vF("#dismissible"),_.Z("design:type",HTMLElement)],N4.prototype,"dismissibleEl",void 0);_.N([_.vF("#dismiss-button yt-icon-button"),_.Z("design:type",HTMLElement)],N4.prototype,"dismissButtonEl",void 0);_.N([_.vF("#inline-survey-header yt-icon-button"),_.Z("design:type",HTMLElement)],N4.prototype,"inlineHeaderDismissButtonEl",void 0);
_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],N4.prototype,"dataChanged",null);_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],N4.prototype,"handleRequestCompletion",null);_.N([_.Vg("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],N4.prototype,"onPopupClosed",null);
_.N([_.JO("darkColorPalette","lightColorPalette","isDarkMode"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],N4.prototype,"colorPaletteChanged",null);_.N([_.C({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],N4);
_.p(N4,"ytd-inline-survey-renderer",function(){if(eKB!==void 0)return eKB;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return eKB=f},{mode:1});var mce=["en-CA","en","es-MX","fr-CA"];_.zKn=_.oS(function(f){var S=_.lu(f,{isOverlay:!1,isModern:!1}),B=S.captionIconType,G=S.onClick;f=S.ariaLabel;var g=S.ariaPressed,b=S.isOverlay,z=S.isModern;S=_.tE("button",function(F){_.Id(F,127299)});
var X=_.iF(function(F){_.U1(127299);G==null||G(F);return!1}),w={};
return _.T("ytm-closed-captioning-button",{class:_.Pw("ytmClosedCaptioningButtonHost",(w.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return B()===-1&&b()},w.ytmClosedCaptioningButtonIconDisabled=function(){return B()===-1&&!b()},w))},_.T("button",{el:S,
class:"ytmClosedCaptioningButtonButton",title:f,"aria-label":f,"aria-pressed":g,"on:click":X},_.T(_.Y8,{icon:function(){var F="";var V=z()?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";var J=_.K2().get("hl");V=!J||mce.includes(J)?V:"SUBTITLES";J=B();switch(J){case -1:case 0:F=V;break;case 1:F=V+"_FILLED";break;default:_.mu(J)}return F}})))},"$e");
_.zKn.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.WT=function(f){return function(S,B){var G=f||B.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(S,B,{get:function(){var g;return this.$?this.$[G]:(g=_.PF(this))==null?void 0:g.querySelector("#"+G)},
enumerable:!0,configurable:!0})}};_.cT=function(f){f=f===void 0?!1:f;_.qR.call(this);this.pubSub_=new _.Tt(f);_.ha(this,this.pubSub_)};
_.Rm(_.cT,_.qR);_.cT.prototype.subscribe=function(f,S,B){return this.isDisposed()?0:this.pubSub_.subscribe(f,S,B)};
_.cT.prototype.unsubscribe=function(f,S,B){return this.isDisposed()?!1:this.pubSub_.unsubscribe(f,S,B)};
_.cT.prototype.unsubscribeByKey=function(f){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(f)};
_.cT.prototype.publish=function(f,S){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var sw2=function(){_.LG("ypcRedeemFlowStarted")},TQ=function(f){_.LG("ypcRedeemFlowFailed",void 0,void 0,void 0,f)},DWn=function(f,S,B){S&&B&&(f.videos.forEach(function(G){G.videoId===S&&(G.itemId=B)}),f.recommendedVideos.forEach(function(G){G.videoId===S&&(G.itemId=B)}))};var Ino;var UWu;/*

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
*/
_.OW({_template:function(){if(UWu!==void 0)return UWu;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;Ino===void 0&&(Ino=document.createElement("template"));var G=Ino;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return UWu=f},
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(f,S){var B=this._resolveSrc(f);B!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",f===""||S?this._setLoading(!1):(this._resolvedSrc=B,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 f=this.$.sizedImgDiv.style,S=this.$.placeholder.style;f.backgroundSize=S.backgroundSize=this.sizing;f.backgroundPosition=S.backgroundPosition=this.sizing?this.position:"";f.backgroundRepeat=S.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(f){f=_.g0(f,this.$.baseURIAnchor.href);f.length>=2&&f[0]==="/"&&f[1]!=="/"&&(f=(location.origin||location.protocol+"//"+location.host)+f);return f}});var CSM;var pce;_.OW({_template:function(){if(pce!==void 0)return pce;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;CSM===void 0&&(CSM=document.createElement("template"));var G=CSM;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return pce=f},
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(f){return f?"false":"true"},
_headingChanged:function(f){var S=this.getAttribute("heading"),B=this.getAttribute("aria-label");typeof B==="string"&&B!==S||this.setAttribute("aria-label",f)},
_computeHeadingClass:function(f){return f?" over-image":""},
_computeAnimated:function(f){return f}});var Auu=new _.u("addRendererToItemSectionAction");var NwM;var Fy=function(){return _.I.apply(this,arguments)||this};
_.q(Fy,_.I);Fy.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Fy.prototype,"rendererBehavior",void 0);_.N([_.r(_.kP),_.Z("design:type",Object)],Fy.prototype,"dismissibleItemBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Fy.prototype,"rendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Fy.prototype,"data",void 0);_.N([_.C({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],Fy);
_.p(Fy,"ytd-comment-history-entry-renderer",function(){if(NwM!==void 0)return NwM;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return NwM=f},{mode:1});var MSB;_.Dd("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.Dd("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var VZ=function(){return _.I.apply(this,arguments)||this};
_.q(VZ,_.I);_.e=VZ.prototype;_.e.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.e.onKeyUp=function(f){if(f.keyCode===13)this.onTap()};
_.e.onTap=function(){this.data.recordClickEndpoint&&_.oy().resolve(_.S7).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var f=this.data.navigationEndpoint;f&&_.H(f,_.kf)&&_.oy().resolve(_.S7).resolveCommand(f,{form:{element:this.hostElement}})};
_.e.readChanged=function(){var f;_.Rl(this.hostElement,"unread",!((f=this.data)==null?0:f.read))};
_.e.dataChanged=function(){this.data&&_.Rl(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.e.computeThumbnailSize=function(){var f;return((f=this.data)==null?0:f.highPriorityNotification)?32:48};
_.e.getEndpointURL=function(f){return f&&!_.H(f,_.kf)?this.componentBehavior.computeHref_(f):null};
_.e.getEndpointData=function(f){return f&&!_.H(f,_.kf)?f:null};
VZ.prototype.computeThumbnailSize=VZ.prototype.computeThumbnailSize;VZ.prototype.dataChanged=VZ.prototype.dataChanged;VZ.prototype.readChanged=VZ.prototype.readChanged;VZ.prototype.onKeyUp=VZ.prototype.onKeyUp;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],VZ.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],VZ.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],VZ.prototype,"componentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],VZ.prototype,"data",void 0);_.N([_.n({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.Z("design:type",Number)],VZ.prototype,"thumbnailSize",void 0);_.N([_.Vg("keyup"),_.Z("design:type",Function),_.Z("design:paramtypes",[KeyboardEvent]),_.Z("design:returntype")],VZ.prototype,"onKeyUp",null);
_.N([_.JO("data.read"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],VZ.prototype,"readChanged",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],VZ.prototype,"dataChanged",null);_.N([_.JO("data.highPriorityNotification"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],VZ.prototype,"computeThumbnailSize",null);
_.N([_.C({is:"ytd-notification-renderer",disableElementRegistration:!0})],VZ);
_.p(VZ,"ytd-notification-renderer",function(){if(MSB!==void 0)return MSB;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return MSB=f},{mode:1});var Zru;var JN=function(){return _.I.apply(this,arguments)||this};
_.q(JN,_.I);JN.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"}}}};
JN.prototype.computeActionButtonClass=function(f){return!f.actionButtons||f.actionButtons.length<=1?"single-button":f.description?"vertical-buttons":"horizontal-buttons"};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],JN.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],JN.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],JN.prototype,"data",void 0);_.N([_.C({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],JN);
_.p(JN,"ytd-playlist-show-metadata-renderer",function(){if(Zru!==void 0)return Zru;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return Zru=f},{mode:1});var tS$;_.Dd("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var P6=function(){return _.I.apply(this,arguments)||this};
_.q(P6,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],P6.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],P6.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],P6.prototype,"data",void 0);_.N([_.C({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],P6);
_.p(P6,"ytd-purchase-item-renderer",function(){if(tS$!==void 0)return tS$;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return tS$=f},{mode:1});var uRe;var an2={};an2.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(f){if(f)return f.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(f){if(f==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.Dd("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var v6=function(){return _.I.apply(this,arguments)||this};
_.q(v6,_.I);v6.prototype.onYtNavigate=function(f){var S=this.openPopupBehavior.getNavigationEndpointPopupAction(f.detail.endpoint);S&&(f.stopPropagation(),this.openPopupBehavior.openPopup(S))};
v6.prototype.onYtNavigate=v6.prototype.onYtNavigate;_.N([_.r(an2.YtSimpleTextSectionBehavior),_.Z("design:type",Object)],v6.prototype,"ytSimpleTextSectionBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],v6.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.a5),_.Z("design:type",Object)],v6.prototype,"openPopupBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],v6.prototype,"data",void 0);
_.N([_.Vg("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],v6.prototype,"onYtNavigate",null);_.N([_.C({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],v6);
_.p(v6,"ytd-simple-text-section-renderer",function(){if(uRe!==void 0)return uRe;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return uRe=f},{mode:1});var yuX;_.Dd("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var KK=function(){return _.I.apply(this,arguments)||this};
_.q(KK,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],KK.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],KK.prototype,"data",void 0);_.N([_.C({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],KK);
_.p(KK,"ytd-unlimited-page-feature-info-renderer",function(){if(yuX!==void 0)return yuX;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return yuX=f},{mode:1});var WLe;var cuz;var dB=function(){return _.I.apply(this,arguments)||this};
_.q(dB,_.I);dB.prototype.dataChanged=function(){if(this.data){var f=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);f&&(f=_.bF(f,screen.width),this.hostElement.style.backgroundImage="url("+f+")")}};
dB.prototype.dataChanged=dB.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],dB.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],dB.prototype,"data",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],dB.prototype,"dataChanged",null);_.N([_.C({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],dB);
_.p(dB,"ytd-post-redemption-section-renderer",function(){if(cuz!==void 0)return cuz;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return cuz=f},{mode:1});var lnY;var iA=function(){return _.I.apply(this,arguments)||this};
_.q(iA,_.I);iA.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],iA.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],iA.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],iA.prototype,"data",void 0);_.N([_.C({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],iA);
_.p(iA,"ytd-ypc-post-redemption-renderer",function(){if(lnY!==void 0)return lnY;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return lnY=f},{mode:1});_.Dd("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var H6=function(){var f=_.I.apply(this,arguments)||this;f.MIN_CODE_LENGTH=12;f.MAX_CODE_LENGTH=24;return f};
_.q(H6,_.I);_.e=H6.prototype;_.e.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.e.created=function(){this.riskService=new _.cb9;this.loadPaymentThenable=_.fqV(_.nL("YPC_MB_URL"))};
_.e.ready=function(){var f=this;this.code.addEventListener("keypress",function(S){f.onCodeInputKeypress(S)})};
_.e.dataChanged=function(){var f=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(S){S=_.m(S);for(var B=S.next();!B.done;B=S.next())B=B.value,B.type==="attributes"&&B.attributeName==="dark"&&f.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.e.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var f=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+f+")")}};
_.e.computeRedeemButton=function(f){(f=this.get("redeemButton.buttonRenderer",f))&&(f=Object.assign({},f,{serviceEndpoint:void 0}));return f};
_.e.onRedeemButtonTap=function(f){f.stopPropagation();sw2();this.redeemCode()};
_.e.redeemCode=function(){var f=this;this.isLoading=!0;var S=this.riskService.init();_.rX([S,this.loadPaymentThenable]).then(function(){var B=f.data.redeemButton.buttonRenderer.serviceEndpoint,G=_.lsM(),g=payments.business.integration.ClientTokenFactory.createClientToken(_.H(B,_.POi).countryCode,G);G={c:f.code.value.trim(),rd:window.btoa(G),ctk:g};B&&_.oy().resolve(_.S7).resolveCommand(B,{form:Object.assign({},G,{element:f.hostElement})})},function(){f.showGenericError();
TQ("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.Dt(Error("Vl"))})};
_.e.onYtServiceRequestCompleted=function(f){f.stopPropagation();this.isLoading=!1;var S,B;this.errorMessage=(S=f.detail)==null?void 0:(B=S.data)==null?void 0:B.errorMessage;var G,g;this.postRedemptionRenderer=(G=f.detail)==null?void 0:(g=G.data)==null?void 0:g.renderer;var b,z;if(f=(b=f.detail)==null?void 0:(z=b.data)==null?void 0:z.redirectEndpoint)this.isLoading=!0,_.ew(this.hostElement,"yt-navigate",{endpoint:f});this.errorMessage?TQ("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
f)&&_.LG("ypcRedeemFlowSucceeded")};
_.e.onYtServiceRequestError=function(f){f.stopPropagation();this.isLoading=!1;if(f=this.get("detail.error.message",f))this.errorMessage=_.uC(f);TQ("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.e.onInvokeInstrumentManagerActionCompleted=function(f){f.stopPropagation();this.redeemCode()};
_.e.onInvokeInstrumentManagerActionError=function(f){f.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",f)){case "instrumentManagerLoadError":this.showGenericError();TQ("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();TQ("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.LG("ypcRedeemFlowCancelled")}};
_.e.onInput=function(){var f=this;_.NJ(this,"onInput",function(){var S=f.code.value.trim();f.redeemButtonDisabled=S.length<f.MIN_CODE_LENGTH||S.length>f.MAX_CODE_LENGTH},200)};
_.e.onCodeInputKeypress=function(f){f.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(sw2(),this.redeemCode())};
_.e.computeImageUrl=function(f){return f?_.bF(f.thumbnails,600):null};
_.e.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
H6.prototype.onInvokeInstrumentManagerActionError=H6.prototype.onInvokeInstrumentManagerActionError;H6.prototype.onInvokeInstrumentManagerActionCompleted=H6.prototype.onInvokeInstrumentManagerActionCompleted;H6.prototype.onYtServiceRequestError=H6.prototype.onYtServiceRequestError;H6.prototype.onYtServiceRequestCompleted=H6.prototype.onYtServiceRequestCompleted;H6.prototype.dataChanged=H6.prototype.dataChanged;
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],H6.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],H6.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],H6.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],H6.prototype,"isLoading",void 0);_.N([_.n(),_.Z("design:type",Boolean)],H6.prototype,"redeemButtonDisabled",void 0);
_.N([_.n(),_.Z("design:type",Object)],H6.prototype,"errorMessage",void 0);_.N([_.n(),_.Z("design:type",Object)],H6.prototype,"postRedemptionRenderer",void 0);_.N([_.n(),_.Z("design:type",Object)],H6.prototype,"observer",void 0);_.N([_.vF("#code"),_.Z("design:type",HTMLInputElement)],H6.prototype,"code",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],H6.prototype,"dataChanged",null);
_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],H6.prototype,"onYtServiceRequestCompleted",null);_.N([_.Vg("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],H6.prototype,"onYtServiceRequestError",null);
_.N([_.Vg("yt-invoke-instrument-manager-action-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],H6.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.N([_.Vg("yt-invoke-instrument-manager-action-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],H6.prototype,"onInvokeInstrumentManagerActionError",null);_.N([_.C({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],H6);
_.p(H6,"ytd-redeem-code-renderer",function(){if(WLe!==void 0)return WLe;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return WLe=f},{mode:1});var fB2;_.Dd("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var q0=function(){var f=_.I.apply(this,arguments)||this;f.businessEmailDisplayState="HIDE_SECTION";return f};
_.q(q0,_.I);_.e=q0.prototype;_.e.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}}}}}};
_.e.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"};
_.e.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.e.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.I4("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA"))};
_.e.onYtServiceRequestCompleted=function(f){var S;if((S=f.detail.data)==null?0:S.businessEmail)this.businessEmail=f.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var B;if((B=f.detail.data)==null?0:B.errorMessage)this.businessEmailErrorMessage=f.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.e.computeEmailHref=function(f){return"mailto:"+f};
_.e.computeSafeUrl=function(f){if(f)return _.io(f)};
_.e.onBusinessEmailCaptchaSubmit=function(){var f;(f=this.data)!=null&&f.onBusinessEmailRevealClickCommand&&(f=this.JSC$19162_captchaTextarea.value)&&(f={recaptcha_response_token:f,channel_id:this.data.channelId},_.oy().resolve(_.S7).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},f,{element:this.hostElement})}))};
_.e.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.y3.Object.defineProperties(q0.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 f,S;return!((f=this.data)==null||!f.primaryLinks)&&!((S=this.data)==null?0:S.links)&&this.data.primaryLinks.every(function(B){return B.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var f,S;return!((f=this.data)==null||!f.primaryLinks)&&!((S=this.data)==null?0:S.links)&&!this.shouldShowNewLinks}}});
q0.prototype.onYtServiceRequestCompleted=q0.prototype.onYtServiceRequestCompleted;q0.prototype.dataChanged=q0.prototype.dataChanged;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],q0.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],q0.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],q0.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.vF("#g-recaptcha-response"),_.Z("design:type",HTMLTextAreaElement)],q0.prototype,"JSC$19162_captchaTextarea",void 0);_.N([_.n(),_.Z("design:type",Object)],q0.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",String)],q0.prototype,"businessEmailDisplayState",void 0);_.N([_.n(),_.Z("design:type",String)],q0.prototype,"businessEmail",void 0);_.N([_.n(),_.Z("design:type",String)],q0.prototype,"businessEmailErrorMessage",void 0);
_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],q0.prototype,"hideDetailsSection",null);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],q0.prototype,"dataChanged",null);_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],q0.prototype,"shouldShowNewLinks",null);_.N([_.k("data","shouldShowLinks"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],q0.prototype,"shouldShowLegacyLinks",null);
_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],q0.prototype,"onYtServiceRequestCompleted",null);_.N([_.C({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],q0);
_.p(q0,"ytd-channel-about-metadata-renderer",function(){if(fB2!==void 0)return fB2;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return fB2=f},{mode:1});var o3n;_.Dd("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var $i=function(){return _.I.apply(this,arguments)||this};
_.q($i,_.I);$i.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"}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],$i.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],$i.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],$i.prototype,"data",void 0);_.N([_.C({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],$i);
_.p($i,"ytd-channel-featured-content-renderer",function(){if(o3n!==void 0)return o3n;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return o3n=f},{mode:1});var Sh2;_.Dd("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var QZ=function(){var f=_.I.apply(this,arguments)||this;f.roundContainer=!0;f.amsterdamEnabled=_.K("enable_desktop_amsterdam_info_panels");return f};
_.q(QZ,_.I);_.e=QZ.prototype;_.e.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.e.dataChanged=function(){this.imageWidth=this.imageHeight=24;var f=this.data;f.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!f.style&&f.image&&f.image.thumbnails.length&&(f=f.image.thumbnails[0],this.imageWidth=f.width||0,this.imageHeight=f.height||0)};
_.e.computeSource=function(f){return f.secondarySource?_.ac(f.secondarySource):_.ac(f.source)};
_.e.computeClarifyStyle=function(f){return f?f.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.e.isLargeStyle=function(f){return f==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.e.computeBackgroundStyle=function(f){return f?f.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.e.computeHasActionButton=function(f){return!!f.actionButton};
_.e.computeHasBottomSection=function(f){return!!f.ctaHasBottomSection};
_.e.computeIsSourceMissing=function(f){return f.ctaHasBottomSection===!1?!0:f&&this.computeSource(f)?!1:!0};
_.e.computeSecondaryEndpoint=function(f){return f.secondaryEndpoint||f.endpoint};
QZ.prototype.dataChanged=QZ.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],QZ.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],QZ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],QZ.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Number)],QZ.prototype,"imageWidth",void 0);_.N([_.n(),_.Z("design:type",Number)],QZ.prototype,"imageHeight",void 0);
_.N([_.n({computed:"computeSecondaryEndpoint(data)"}),_.Z("design:type",Object)],QZ.prototype,"secondaryEndpoint",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.Z("design:type",Boolean)],QZ.prototype,"hasActionButton",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.Z("design:type",Boolean)],QZ.prototype,"hasBottomSection",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.Z("design:type",Boolean)],QZ.prototype,"missingSource",void 0);_.N([_.n({computed:"computeIcon_(data.icon)"}),_.Z("design:type",String)],QZ.prototype,"icon",void 0);_.N([_.n({computed:"computeIcon_(data.secondaryIcon)"}),_.Z("design:type",String)],QZ.prototype,"secondaryIcon",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.Z("design:type",String)],QZ.prototype,"clarifyStyle",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.Z("design:type",String)],QZ.prototype,"backgroundStyle",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],QZ.prototype,"roundContainer",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],QZ.prototype,"amsterdamEnabled",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],QZ.prototype,"dataChanged",null);
_.N([_.C({is:"ytd-clarification-renderer",disableElementRegistration:!0})],QZ);
_.p(QZ,"ytd-clarification-renderer",function(){if(Sh2!==void 0)return Sh2;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Sh2=f},{mode:1});var B6u;var Gpn;var Yi=function(){var f=_.I.apply(this,arguments)||this;f.amsterdamEnabled=_.K("enable_desktop_amsterdam_info_panels");return f};
_.q(Yi,_.I);_.e=Yi.prototype;_.e.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.e.computeIcon=function(f){return f?"yt-icons:"+f.toLowerCase():null};
_.e.computeUseContacts=function(f){return!!f.contacts&&f.contacts.length>0};
_.e.computePhoneContact=function(f){var S,B;return(S=f.contacts)==null?void 0:(B=S.find(function(G){var g;return(G==null?void 0:(g=G.icon)==null?void 0:g.iconType)==="PHONE"}))==null?void 0:B.actionText};
_.e.computeSmsContact=function(f){var S,B;return(S=f.contacts)==null?void 0:(B=S.find(function(G){var g;return(G==null?void 0:(g=G.icon)==null?void 0:g.iconType)==="SMS"}))==null?void 0:B.actionText};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Yi.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Yi.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Yi.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Yi.prototype,"amsterdamEnabled",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.Z("design:type",Boolean)],Yi.prototype,"useContacts",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.Z("design:type",String)],Yi.prototype,"phoneContact",void 0);_.N([_.C({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],Yi);
_.p(Yi,"ytd-single-action-emergency-support-renderer",function(){if(Gpn!==void 0)return Gpn;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return Gpn=f},{mode:1});_.Dd("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var rB=function(){var f=_.I.apply(this,arguments)||this;f.roundedContainer=!0;f.amsterdamEnabled=_.K("enable_desktop_amsterdam_info_panels");return f};
_.q(rB,_.I);rB.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"}}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],rB.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],rB.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],rB.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],rB.prototype,"roundedContainer",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],rB.prototype,"amsterdamEnabled",void 0);
_.N([_.C({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],rB);
_.p(rB,"ytd-emergency-onebox-renderer",function(){if(B6u!==void 0)return B6u;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return B6u=f},{mode:1});var g32;_.Dd("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var j_=function(){return _.I.apply(this,arguments)||this};
_.q(j_,_.I);j_.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"}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],j_.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],j_.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],j_.prototype,"data",void 0);_.N([_.C({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],j_);
_.p(j_,"ytd-exploratory-results-renderer",function(){if(g32!==void 0)return g32;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return g32=f},{mode:1});var egZ;_.Dd("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var Ox=function(){var f=_.I.apply(this,arguments)||this;f.messageData=null;return f};
_.q(Ox,_.I);_.e=Ox.prototype;_.e.onServiceRequestCompleted=function(f,S){f=S.actions||[];S=0;for(var B=f.length;S<B;S++){var G=f[S],g=void 0,b=void 0;if((g=_.H(G,_.$f))==null?0:(b=g.item)==null?0:b.messageRenderer)this.messageData=_.H(G,_.$f).item.messageRenderer}};
_.e.dataChanged=function(){var f=this.data;this.hostElement.hidden=!1;_.Rl(this.hostElement,"is-channel",f&&!f.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.e.computeThumbnailWidth=function(f){return f?126:56};
_.e.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.e.onSubmitTap=function(){var f=this.data,S=this.selectedResponseIndex;f!==void 0&&S!==void 0&&(f=f.responses[S],f.responseData&&_.oy().resolve(_.S7).resolveCommand(f.responseData,{form:{element:this.hostElement}}))};
_.e.onDismissTap=function(){this.hostElement.hidden=!0;var f=this.data;f!==void 0&&f.dismissalEndpoint&&_.oy().resolve(_.S7).resolveCommand(f.dismissalEndpoint,{form:{element:this.hostElement}})};
_.e.updateSelectedResponseIndexFromBinding=function(f){this.selectedResponseIndex=f.detail.value};
Ox.prototype.onSelectedResponseIndexChange=Ox.prototype.onSelectedResponseIndexChange;Ox.prototype.dataChanged=Ox.prototype.dataChanged;Ox.prototype.onServiceRequestCompleted=Ox.prototype.onServiceRequestCompleted;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Ox.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Ox.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],Ox.prototype,"messageData",void 0);
_.N([_.n(),_.Z("design:type",Number)],Ox.prototype,"selectedResponseIndex",void 0);_.N([_.vF("#submit-button"),_.Z("design:type",HTMLButtonElement)],Ox.prototype,"submitButton",void 0);_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.cw]),_.Z("design:returntype")],Ox.prototype,"onServiceRequestCompleted",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ox.prototype,"dataChanged",null);
_.N([_.JO("selectedResponseIndex"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ox.prototype,"onSelectedResponseIndexChange",null);_.N([_.C({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],Ox);
_.p(Ox,"ytd-feedback-elicitation-single-question-renderer",function(){if(egZ!==void 0)return egZ;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return egZ=f},{mode:1});var bmu;var xi=function(){return _.I.apply(this,arguments)||this};
_.q(xi,_.I);xi.prototype.computeThumbnailWidth=function(f){return f?602:428};
xi.prototype.updateWideFromBinding=function(f){this.wide=f.detail.value};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],xi.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],xi.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Boolean)],xi.prototype,"wide",void 0);_.N([_.C({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],xi);
_.p(xi,"ytd-newspaper-hero-video-renderer",function(){if(bmu!==void 0)return bmu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return bmu=f},{mode:1});var m8Y;var Ex=function(){return _.I.apply(this,arguments)||this};
_.q(Ex,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Ex.prototype,"rendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Ex.prototype,"data",void 0);_.N([_.C({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],Ex);
_.p(Ex,"ytd-newspaper-mini-video-renderer",function(){if(m8Y!==void 0)return m8Y;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return m8Y=f},{mode:1});var zg$;_.Dd("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var LK=function(){return _.I.apply(this,arguments)||this};
_.q(LK,_.I);LK.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"}}}};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],LK.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],LK.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],LK.prototype,"data",void 0);_.N([_.C({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],LK);
_.p(LK,"ytd-newspaper-renderer",function(){if(zg$!==void 0)return zg$;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return zg$=f},{mode:1});var Rg2;_.Dd("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var ki=function(){var f=_.I.apply(this,arguments)||this;f.isSegment=!1;f.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};f.nextContinuation={continuationType:"playlistVideoListContinuation"};return f};
_.q(ki,_.I);_.e=ki.prototype;_.e.attached=function(){_.oy();var f;(f=_.oy().resolve(_.fN(_.Mh)))!=null&&(f.playlistVideoListElement=this.hostElement)};
_.e.detached=function(){var f;(f=_.oy().resolve(_.fN(_.Mh)))!=null&&(f.playlistVideoListElement=void 0);f=_.oy().resolve(_.fN(_.ob));_.K("web_enable_voting_animation")&&f&&(f.parentElem=void 0,f.videos=[],f.continuationsPresent=!1,f.showRefreshPill=!1)};
_.e.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"}}}}}};
_.e.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.e.dataChanged=function(){var f=_.oy().resolve(_.fN(_.ob));if(_.K("web_enable_voting_animation")&&this.data&&f){var S=_.m9(this.hostElement).querySelector("#contents");S&&(f.parentElem=S);f.addVideos(this.data.contents)}_.yF7(this.ytReorderableBehavior)};
_.e.onRendererstamperFinished=function(){this.canReorder&&_.WB$(this.ytReorderableBehavior,_.m9(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.e.onPlaylistReloading=function(){this.isReloading=!0};
_.e.onUpdateSetVideoId=function(f){if(f.detail&&this.data&&this.data.contents){var S=f.detail;f=this.data.contents.findIndex(function(g){var b;return((b=g.playlistVideoRenderer)==null?void 0:b.videoId)===S.videoId});
if(!(f<0)&&S.setVideoId&&(this.set("data.contents."+f+".playlistVideoRenderer.setVideoId",S.setVideoId),_.K("web_enable_voting_animation"))){var B;if(f=_.H((B=this.data.contents[f].playlistVideoRenderer)==null?void 0:B.engagementBar,_.dgV)){var G;(G=f.actions)==null||G.forEach(function(g){if(g=_.H(g,_.i7T))g.itemId=S.setVideoId})}(B=_.oy().resolve(_.fN(_.ob)))&&DWn(B,S.videoId,S.setVideoId)}}};
_.e.computeContentsClass=function(f){return f?"reloading":""};
_.e.computeIsSortable=function(f,S){return f&&S>0&&!this.isSegment&&!_.K("shorts_in_playlists_web")};
_.e.computeIsEditable=function(f){return f};
_.e.computeCanReorder=function(f){return f};
_.e.handlePlaylistRemoveVideosAction=function(f){if(this.get("playlistRemoveVideosAction.setVideoIds",f)&&this.data&&this.data.contents){f=_.H(f,_.YHN).setVideoIds;for(var S=this.data.contents.length-1;S>=0;){var B=this.data.contents[S].playlistVideoRenderer;B&&B.setVideoId&&f.includes(B.setVideoId)&&this.splice("data.contents",S,1);S--}_.bW(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.e.updateIndices=function(){if(this.data&&this.data.contents)for(var f=0;f<this.data.contents.length;f++)this.set("data.contents."+f+".playlistVideoRenderer.index",_.uC(String(f+1)))};
_.e.handleDrop=function(f){f=f.currDragItem;var S=_.CM(f.parentNode.childNodes,f),B=this.data.contents.splice(Number(_.ac(f.data.index))-1,1)[0];this.data.contents.splice(S,0,B);S=S?this.get("contents."+(S-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();f=this.buildReorderServiceEndpoint(f.data.setVideoId,S);this.ytComponentBehavior.resolveCommand(f)};
_.e.buildReorderServiceEndpoint=function(f,S){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",f),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",S),this.data.onReorderEndpoint):null};
_.e.handleUpdatePlaylistAction=function(f){var S;(f=_.H((S=_.H(f,_.r$m))==null?void 0:S.updatedRenderer,_.ZTm))&&this.canReorder!==f.canReorder&&this.set("data.canReorder",f.canReorder);f&&f.contents&&(this.set("data.contents",f.contents),this.isReloading=!1);f&&f.continuations&&this.set("data.continuations",f.continuations)};
_.e.handleAddRendererToItemSectionAction=function(f){var S,B=(S=_.H(f,Auu))==null?void 0:S.renderer,G;B&&((G=_.H(f,Auu))==null?void 0:G.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,B),f=_.oy().resolve(_.fN(_.ob)),_.K("web_enable_voting_animation")&&f&&(B&&(S=_.KPV(B))&&f.recommendedVideos.push({itemId:S,videoId:_.H7N(B),voteCount:_.q_Q(B),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.e.isVotingEnabledOnPlaylist=function(f){if(!f)return!1;f=_.m(f);for(f=f.next();!f.done;f=f.next()){var S=void 0;return!!_.H((S=f.value.playlistVideoRenderer)==null?void 0:S.engagementBar,_.dgV)}return!1};
_.e.onAppendContinuationItemsActionFinished=function(){var f;this.isVotingEnabledOnPlaylist((f=this.data)==null?void 0:f.contents)&&(this.updateIndices(),f=_.oy().resolve(_.fN(_.ob)),_.K("web_enable_voting_animation")&&f&&this.data&&f.addVideos(this.data.contents))};
_.e.updateVideoData=function(f){if(f.detail&&this.data&&this.data.contents){var S=f.detail;f=S.toIdx;var B=S.itemId,G=S.newVoteCount,g=S.voteStatus;S=S.hideItem;var b,z,X=(b=this.data)==null?void 0:(z=b.contents)==null?void 0:z.findIndex(function(J){return _.KPV(J)===B});
if(!(X<0)){b=this.data.contents[X];var w;if((w=b.playlistVideoRenderer)==null?0:w.voteCount)b.playlistVideoRenderer.voteCount=G;var F;if(w=_.H((F=b.playlistVideoRenderer)==null?void 0:F.engagementBar,_.dgV)){var V;(V=w.actions)==null||V.forEach(function(J){(J=_.H(J,_.i7T))&&J.initialState&&(J.initialState.votes=G,J.initialState.status=g)})}this.data.contents.splice(X,1);
S||this.data.contents.splice(f,0,b);this.updateIndices()}}};
ki.prototype.updateVideoData=ki.prototype.updateVideoData;ki.prototype.onAppendContinuationItemsActionFinished=ki.prototype.onAppendContinuationItemsActionFinished;ki.prototype.onUpdateSetVideoId=ki.prototype.onUpdateSetVideoId;ki.prototype.onPlaylistReloading=ki.prototype.onPlaylistReloading;ki.prototype.onRendererstamperFinished=ki.prototype.onRendererstamperFinished;ki.prototype.dataChanged=ki.prototype.dataChanged;
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],ki.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],ki.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],ki.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.Ny.YtNextContinuationBehavior),_.Z("design:type",Object)],ki.prototype,"ytNextContinuationBehavior",void 0);
_.N([_.r(_.cF7),_.Z("design:type",Object)],ki.prototype,"ytReorderableBehavior",void 0);_.N([_.r(_.Ak),_.Z("design:type",Object)],ki.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],ki.prototype,"ytComponentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],ki.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Boolean)],ki.prototype,"isReloading",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],ki.prototype,"isSegment",void 0);_.N([_.n({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.Z("design:type",Boolean)],ki.prototype,"isSortable",void 0);_.N([_.n({computed:"computeIsEditable(data.isEditable)"}),_.Z("design:type",Boolean)],ki.prototype,"isEditable",void 0);_.N([_.n({computed:"computeCanReorder(data.canReorder)"}),_.Z("design:type",Boolean)],ki.prototype,"canReorder",void 0);
_.N([_.n({value:101}),_.Z("design:type",Number)],ki.prototype,"scrollMargin",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ki.prototype,"dataChanged",null);_.N([_.Vg("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ki.prototype,"onRendererstamperFinished",null);
_.N([_.Vg("yt-playlist-reloading"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ki.prototype,"onPlaylistReloading",null);_.N([_.Vg("yt-update-set-video-id"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],ki.prototype,"onUpdateSetVideoId",null);
_.N([_.Vg("yt-append-continuation-items-action-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ki.prototype,"onAppendContinuationItemsActionFinished",null);_.N([_.Vg("yt-update-video-data-voting-animation"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],ki.prototype,"updateVideoData",null);_.N([_.C({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],ki);
_.p(ki,"ytd-playlist-video-list-renderer",function(){if(Rg2!==void 0)return Rg2;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return Rg2=f},{mode:_.X_("kevlar_poly_si_batch_j047")?1:2});var Xgu;var nK=function(){return _.I.apply(this,arguments)||this};
_.q(nK,_.I);nK.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"}}}}};
nK.prototype.onTextWrapperTap=function(f){var S=this.data&&this.data.navigationEndpoint;S&&!_.lF(_.ct(f),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.ew(this.hostElement,"yt-navigate",{endpoint:S})};
nK.prototype.dataChanged=function(){var f=this.get("data.offerButton.buttonRenderer.serviceEndpoint");f&&f.commandMetadata&&_.H(f.commandMetadata,_.O2)&&_.H(f.commandMetadata,_.O2).fireAutomatically&&_.oy().resolve(_.S7).resolveCommand(f,{form:{element:this.hostElement}})};
nK.prototype.dataChanged=nK.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],nK.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],nK.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.pR),_.Z("design:type",Object)],nK.prototype,"ytdLockupBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],nK.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,value:function(){return _.K("enable_desktop_search_bigger_thumbs")}}),
_.Z("design:type",Boolean)],nK.prototype,"useBiggerThumbs",void 0);_.N([_.n({reflectToAttribute:!0,value:function(){return _.gO("desktop_search_bigger_thumbs_style")}}),
_.Z("design:type",String)],nK.prototype,"biggerThumbsStyle",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],nK.prototype,"leftAligned",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nK.prototype,"dataChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-movie-renderer"})],nK);
_.p(nK,"ytd-movie-renderer",function(){if(Xgu!==void 0)return Xgu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Xgu=f},{mode:1});var wgB;var sx=function(){var f=_.I.apply(this,arguments)||this;f.rounded=!0;f.pageAttachedTo=void 0;f.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return f};
_.q(sx,_.I);sx.prototype.attached=function(){this.pageAttachedTo=_.oy().resolve(_.o8).getCurrentPage();_.ew(this.hostElement,"yt-player-attached",this.player)};
sx.prototype.detached=function(){var f;if((f=this.pageAttachedTo)==null?0:f.hostElement)_.ew(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
sx.prototype.dataChanged=function(){var f;if((f=this.data)==null?0:f.videoId)f={video_id:this.data.videoId,autoplay:!0},!_.K("miniplayer_stop_channel_video_autoplay_killswitch")&&_.oy().resolve(_.N_).isMiniplayerActive()&&(f.pause_at_start=!0,f.autoplay=!1),this.player.loadVideoWithPlayerVars(f)};
sx.prototype.handleSignalActionPausePlayer=function(){_.GG().pause()};
sx.prototype.dataChanged=sx.prototype.dataChanged;_.N([_.n(),_.Z("design:type",Object)],sx.prototype,"data",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],sx.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],sx.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],sx.prototype,"rounded",void 0);_.N([_.vF("#player"),_.Z("design:type",Object)],sx.prototype,"player",void 0);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],sx.prototype,"dataChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],sx);
_.p(sx,"ytd-channel-video-player-renderer",function(){if(wgB!==void 0)return wgB;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return wgB=f},{mode:1});var hgu;var T6Z;var Ffo;var D1=function(){var f=_.I.apply(this,arguments)||this;f.playing=!1;f.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.Sm(f);f.active=!1;return f};
_.q(D1,_.I);_.e=D1.prototype;_.e.detached=function(){this.stop()};
_.e.play=function(){var f=this,S,B,G,g,b;return _.R(function(z){if(z.nextAddress==1)return f.active=!0,S=f.get("data.inlinePlaybackEndpoint.watchEndpoint"),B=S.videoId||f.data.videoId,G=S.startTimeSeconds||0,g=S.playerParams||null,_.K("kevlar_player_update_killswitch")?_.h(z,f.playerEl.update({args:{video_id:B,startSeconds:G,player_params:g}}),2):(f.playerEl.loadVideoWithPlayerVars({video_id:B,startSeconds:G,player_params:g,autoplay:!0}),z.jumpTo(2));if(z.nextAddress!=4)return _.h(z,f.playerEl.getPlayerPromise(),
4);b=z.yieldResult;b.unloadModule("annotations_module");b.addEventListener("onStateChange",function(X){f.onPlayerStateChange(X)});
_.TT(z)})};
_.e.onPlayerStateChange=function(f){if(this.active)switch(this.playing=f===1,f){case 1:_.ew(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.ew(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.e.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.e.resize=function(){var f=this,S;return _.R(function(B){if(B.nextAddress==1)return _.h(B,f.playerEl.getPlayerPromise(),2);S=B.yieldResult;S.setSize(NaN,NaN);_.TT(B)})};
_.N([_.n(),_.Z("design:type",Object)],D1.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],D1.prototype,"playing",void 0);_.N([_.n(),_.Z("design:type",Object)],D1.prototype,"playerId",void 0);_.N([_.vF("#player"),_.Z("design:type",Object)],D1.prototype,"playerEl",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],D1);
_.p(D1,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(Ffo!==void 0)return Ffo;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return Ffo=f},{mode:1});var Vl2;var JM$;var IL=function(){var f=_.I.apply(this,arguments)||this;f.width=0;return f};
_.q(IL,_.I);_.e=IL.prototype;_.e.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.Fc(this,this.onEnded));this.mp4El.addEventListener("error",_.Fc(this,this.onError))};
_.e.detached=function(){this.videoEl.removeEventListener("ended",_.Fc(this,this.onEnded));this.mp4El.removeEventListener("error",_.Fc(this,this.onError))};
_.e.play=function(){var f=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var S=this.videoEl.play();S?S.then(function(){f.handleVideoStartPlaying()}).catch(function(){_.ew(f.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.ew(this.hostElement,"yt-video-thumbnail-not-playing")};
_.e.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.e.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.e.dataChanged=function(){var f;if((f=this.data)==null?0:f.thumbnailPlaceholder)f=_.bF(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+f+")";this.stop();this.autoplay&&this.play()};
_.e.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.e.onEnded=function(){this.stop();_.ew(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.e.onError=function(){_.ew(this.hostElement,"yt-video-thumbnail-error")};
_.e.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.e.getVideoThumbnail=function(f){if(f&&f.length)return f[0]};
IL.prototype.dataChanged=IL.prototype.dataChanged;_.N([_.n(),_.Z("design:type",Object)],IL.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],IL.prototype,"animatePlaceholderOnEntrance",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],IL.prototype,"autoplay",void 0);_.N([_.n({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.Z("design:type",Object)],IL.prototype,"videoThumbnail",void 0);
_.N([_.n(),_.Z("design:type",Boolean)],IL.prototype,"loop",void 0);_.N([_.n(),_.Z("design:type",Boolean)],IL.prototype,"isVideoPlaying",void 0);_.N([_.n(),_.Z("design:type",Object)],IL.prototype,"width",void 0);_.N([_.vF("#mp4"),_.Z("design:type",HTMLElement)],IL.prototype,"mp4El",void 0);_.N([_.vF("#placeholder"),_.Z("design:type",HTMLElement)],IL.prototype,"placeholderEl",void 0);_.N([_.vF("#video"),_.Z("design:type",HTMLVideoElement)],IL.prototype,"videoEl",void 0);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],IL.prototype,"dataChanged",null);_.N([_.nP({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],IL);
_.p(IL,"yt-video-as-thumbnail-details",function(){if(JM$===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;Vl2===void 0&&(Vl2=document.createElement("template"));var G=Vl2;B.call(S,G.content.cloneNode(!0),f.content.firstChild);JM$=f}f=JM$;return f},{mode:2});var Ux=function(){var f=_.I.apply(this,arguments)||this;f.disableGridStateAware=!1;f.animationEnabled=_.K("enable_web_ketchup_hero_animation");f.transitioningOut=!1;f.narrow=!1;f.narrower=!1;f.isCarouselInFeed=!1;f.videoTimeoutJobId=0;f.panelTimeoutJobId=0;f.panelTimeoutJobStartMs=0;f.actionMap={"yt-window-resized":"onWindowResized"};return f};
_.q(Ux,_.I);_.e=Ux.prototype;_.e.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.e.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.e.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var f;this.player&&((f=this.data)==null?0:f.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.e.attached=function(){this.onWindowResized()};
_.e.detached=function(){this.clearTimeouts()};
_.e.onWindowResized=function(){this.updateSize()};
_.e.computePanelLayout=function(f){return f&&f.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.e.playVideo=function(){var f;this.video&&((f=this.data)==null?0:f.videoThumbnail)&&this.video.play();var S;this.player&&((S=this.data)==null?0:S.inlinePlaybackRenderer)&&this.player.play()};
_.e.stopVideo=function(){var f;this.video&&((f=this.data)==null?0:f.videoThumbnail)&&this.video.stop();var S;this.player&&((S=this.data)==null?0:S.inlinePlaybackRenderer)&&this.player.stop()};
_.e.transitionOut=function(){var f=this;this.transitioningOut=!0;return new Promise(function(S){var B=function(){_.m9(f.hostElement).querySelector("#action-button").removeEventListener("animationend",B);_.xJ.cancelJob(G);S();f.transitioningOut=!1};
var G=_.q6(_.xJ,B,1E3);_.m9(f.hostElement).querySelector("#action-button").addEventListener("animationend",B);f.player&&(f.player.playing=!1)})};
_.e.computeMetadataOrder=function(f){return f&&f.metadataOrder&&f.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?f.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.e.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.e.computeAvatarSize=function(f){return f&&f.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.e.onContentClick=function(f){if(!_.lF(_.ct(f),this.hostElement,["A".toString(),"BUTTON".toString()])){var S;if((S=this.data)==null?0:S.navigationEndpoint){var B;this.componentBehavior.resolveCommand((B=this.data)==null?void 0:B.navigationEndpoint)}}};
_.e.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.e.setBackgroundImage=function(f){if(f=this.getBackgroundImageUrl(f))_.m9(this.hostElement).querySelector("#hero").style.backgroundImage="url("+f+")"};
_.e.setScrimLayer=function(f){var S=this.getScrimLayerColorStops(f);f=((f==null?void 0:f.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(f=180);_.nL("HTML_DIR")==="rtl"&&(f=-f);S&&(_.m9(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+f+"deg, "+S+")")};
_.e.isNarrower=function(){return this.hostElement.clientWidth<Ux.NARROW_VERSION_SIZE};
_.e.getScrimLayerColorStops=function(){var f,S=(f=this.data)==null?void 0:f.scrimColorValues;if(!S)return null;if(S.length===1)return f=_.AK(S[0]),f+" 0%, "+f+" 100%";if(S.length===3){var B=[0,72,98];return S.map(function(G,g){return _.AK(G)+" "+B[g]+"%"}).join(",")}return null};
_.e.getBackgroundImageUrl=function(f){return f&&f.largeFormFactorBackgroundThumbnail?_.bF((f.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||f.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.e.onPlaying=function(){this.startVideoTimeout()};
_.e.onEnded=function(){this.rotate()};
_.e.startPanelTimeout=function(){var f=this;if(!this.panelTimeoutJobId){var S=this.get("data.minPanelDisplayDurationMs");S&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.q6(_.xJ,function(){f.rotate()},S))}};
_.e.startVideoTimeout=function(){var f=this;if(!this.videoTimeoutJobId){_.xJ.cancelJob(this.panelTimeoutJobId);var S=Date.now()-this.panelTimeoutJobStartMs;S=Math.max(0,this.get("data.minPanelDisplayDurationMs")-S);S=Math.max(this.get("data.minVideoPlayDurationMs")||0,S);this.videoTimeoutJobId=_.q6(_.xJ,function(){f.rotate()},S)}};
_.e.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.xJ.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.xJ.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.e.rotate=function(){this.clearTimeouts();_.ew(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.y3.Object.defineProperties(Ux.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.m9(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.m9(this.hostElement).querySelector("#video")}}});
_.y3.Object.defineProperties(Ux,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
Ux.prototype.onEnded=Ux.prototype.onEnded;Ux.prototype.onPlaying=Ux.prototype.onPlaying;Ux.prototype.dataChanged=Ux.prototype.dataChanged;_.N([_.r(_.sk),_.Z("design:type",Object)],Ux.prototype,"ytdGridStateAwareBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Ux.prototype,"componentBehavior",void 0);_.N([_.r(_.Iu.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],Ux.prototype,"ytdGuideStateAwareBehavior",void 0);
_.N([_.r(_.DPv),_.Z("design:type",Object)],Ux.prototype,"ytBooleanLogicBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],Ux.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Ux.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Ux.prototype,"ytRendererBehavior",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Ux.prototype,"disableGridStateAware",void 0);_.N([_.n(),_.Z("design:type",Object)],Ux.prototype,"data",void 0);_.N([_.n({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.Z("design:type",String)],Ux.prototype,"panelLayout",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Ux.prototype,"animationEnabled",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Ux.prototype,"transitioningOut",void 0);
_.N([_.n({computed:"computeMetadataOrder(data)"}),_.Z("design:type",Boolean)],Ux.prototype,"metadataOrder",void 0);_.N([_.n({computed:"computeByline(data)"}),_.Z("design:type",Object)],Ux.prototype,"byline",void 0);_.N([_.n({computed:"computeAvatarSize(data)"}),_.Z("design:type",Number)],Ux.prototype,"avatarSize",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Ux.prototype,"narrow",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Ux.prototype,"narrower",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Ux.prototype,"layoutStyle",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Ux.prototype,"isCarouselInFeed",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ux.prototype,"dataChanged",null);_.N([_.Vg("yt-default-promo-panel-renderer-playing"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ux.prototype,"onPlaying",null);
_.N([_.Vg("yt-default-promo-panel-renderer-ended"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ux.prototype,"onEnded",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],Ux);
_.p(Ux,"ytd-default-promo-panel-renderer",function(){if(T6Z!==void 0)return T6Z;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return T6Z=f},{mode:1});_.Dd("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var CK=function(){var f=_.I.apply(this,arguments)||this;f.narrower=!1;f.dotMenuVisible=!1;f.paginationThumbnailsVisible=!1;f.active=!0;f.disableGridStateAware=!1;f.actionMap={"yt-window-resized":"onWindowResized"};return f};
_.q(CK,_.I);_.e=CK.prototype;_.e.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]]"}}}}}};
_.e.attached=function(){document.addEventListener("yt-page-type-changed",_.Fc(this,this.onPageTypeChange));this.currentPageSubtype=_.JK(location.pathname);this.onWindowResized()};
_.e.detached=function(){this.jobId&&_.xJ.cancelJob(this.jobId);this.updateSizeJobId&&_.xJ.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.Fc(this,this.onPageTypeChange))};
_.e.onPageTypeChange=function(f){this.active=f.detail.newPageSubtype===this.currentPageSubtype};
_.e.onWindowResized=function(){this.updateSize()};
_.e.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.e.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.e.setCarouselItem=function(f){f>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.xJ.cancelJob(this.jobId);var S=this.getCurrentPanelElement();S&&S.stopVideo();this.currentItemIndex=f%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(S||(S=this.getCurrentPanelElement()),S.playVideo()):this.startRotationJob()};
_.e.scrollThumbnails=function(f){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var S=this.getCurrentPaginationElement();if(S){var B=_.m9(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?B.style.transform="translateX(0)":(S=S.offsetWidth+8,B.style.transform="translateX(-"+S*(f-Math.ceil(Math.floor(this.overlay.offsetWidth/S)/2)+1)+"px)")}}};
_.e.onDataChanged=function(){var f=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.OR(_.xJ,function(){f.getCurrentPanelElement().updateSize();f.updateSize()}))};
_.e.getCurrentPanelElement=function(){return _.m9(_.m9(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.e.getCurrentPaginationElement=function(){return _.m9(_.m9(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.e.getNavigationClass=function(f,S){return f===S?"selected":""};
_.e.getNavigationDurationStyle=function(f){return"animation-duration:"+(this.get("data.carouselItems."+f+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.e.onNavigationTap=function(f){var S=this,B=f.model.index;B!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){S.setCarouselItem(B)}),this.autorotateActive=!1)};
_.e.onVideoThumbnailEnded=function(){var f=this;if(this.shouldRotate()){var S=this.getCurrentPaginationElement();S&&(S.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){S.classList.remove("finished");f.setNextCarouselItem()}))}};
_.e.onVideoThumbnailError=function(){this.startRotationJob()};
_.e.onVideoNotPlaying=function(){this.startRotationJob()};
_.e.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.e.startRotationJob=function(){var f=this;_.xJ.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.xJ.addLowPriorityJob(function(){f.getCurrentPanelElement().transitionOut().then(function(){f.setNextCarouselItem()})},this.rotationTimeout))};
_.e.computeDotMenuVisible=function(f,S){return!!f&&!!f.carouselItems&&f.carouselItems.length>1&&!f.paginationThumbnails||!!S};
_.e.computePaginationThumbnailsVisible=function(f,S){var B,G;return((G=f==null?void 0:(B=f.paginationThumbnails)==null?void 0:B.length)!=null?G:0)>1&&!S};
_.e.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.e.computePaginatorAlignment=function(f){return(f==null?void 0:f.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.e.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.e.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.e.isNarrower=function(f){return(f!=null?f:0)<Ux.NARROW_VERSION_SIZE};
CK.prototype.activeChanged=CK.prototype.activeChanged;CK.prototype.onVideoNotPlaying=CK.prototype.onVideoNotPlaying;CK.prototype.onVideoThumbnailError=CK.prototype.onVideoThumbnailError;CK.prototype.onVideoThumbnailEnded=CK.prototype.onVideoThumbnailEnded;CK.prototype.onDataChanged=CK.prototype.onDataChanged;_.N([_.r(_.sk),_.Z("design:type",Object)],CK.prototype,"ytdGridStateAwareBehavior",void 0);
_.N([_.r(_.Iu.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],CK.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],CK.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],CK.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],CK.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],CK.prototype,"currentItem",void 0);
_.N([_.n(),_.Z("design:type",Number)],CK.prototype,"currentItemIndex",void 0);_.N([_.n(),_.Z("design:type",Number)],CK.prototype,"rotationTimeout",void 0);_.N([_.n(),_.Z("design:type",Number)],CK.prototype,"loopCount",void 0);_.N([_.n({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.Z("design:type",String)],CK.prototype,"paginatorAlignment",void 0);_.N([_.n(),_.Z("design:type",Number)],CK.prototype,"jobId",void 0);
_.N([_.n(),_.Z("design:type",Number)],CK.prototype,"updateSizeJobId",void 0);_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],CK.prototype,"isCarouselInFeed",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],CK.prototype,"narrower",void 0);_.N([_.n({computed:"computeDotMenuVisible(data, narrower)"}),_.Z("design:type",Object)],CK.prototype,"dotMenuVisible",void 0);
_.N([_.n({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.Z("design:type",Object)],CK.prototype,"paginationThumbnailsVisible",void 0);_.N([_.n({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.Z("design:type",String)],CK.prototype,"layoutType",void 0);_.N([_.n({value:!0,reflectToAttribute:!0}),_.Z("design:type",Boolean)],CK.prototype,"autorotateActive",void 0);_.N([_.n(),_.Z("design:type",Object)],CK.prototype,"active",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],CK.prototype,"disableGridStateAware",void 0);_.N([_.vF("#overlay"),_.Z("design:type",HTMLElement)],CK.prototype,"overlay",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],CK.prototype,"onDataChanged",null);
_.N([_.Vg("yt-video-thumbnail-ended"),_.Vg("yt-default-promo-panel-renderer-rotate"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],CK.prototype,"onVideoThumbnailEnded",null);_.N([_.Vg("yt-video-thumbnail-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],CK.prototype,"onVideoThumbnailError",null);
_.N([_.Vg("yt-video-thumbnail-not-playing"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],CK.prototype,"onVideoNotPlaying",null);_.N([_.HF("active"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],CK.prototype,"activeChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],CK);
_.p(CK,"ytd-carousel-item-renderer",function(){if(hgu!==void 0)return hgu;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return hgu=f},{mode:2});var PVu;var v3X;var KfB;var d8X;var pK=function(){var f=_.I.apply(this,arguments)||this;f.originalQuery=null;f.originalEndpoint=null;return f};
_.q(pK,_.I);pK.prototype.computeShowOriginalQueryWithoutEndpoint_=function(f,S){return!(!f||S)};
_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],pK.prototype,"ytComponentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],pK.prototype,"correctedText",void 0);_.N([_.n(),_.Z("design:type",Object)],pK.prototype,"correctedQuery",void 0);_.N([_.n(),_.Z("design:type",Object)],pK.prototype,"correctedEndpoint",void 0);_.N([_.n(),_.Z("design:type",Object)],pK.prototype,"originalText",void 0);_.N([_.n(),_.Z("design:type",Object)],pK.prototype,"originalQuery",void 0);
_.N([_.n(),_.Z("design:type",Object)],pK.prototype,"originalEndpoint",void 0);_.N([_.n({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.Z("design:type",Boolean)],pK.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.N([_.nP({is:"yt-search-query-correction",disableElementRegistration:!0})],pK);
_.p(pK,"yt-search-query-correction",function(){if(d8X===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;KfB===void 0&&(KfB=document.createElement("template"));var G=KfB;B.call(S,G.content.cloneNode(!0),f.content.firstChild);d8X=f}f=d8X;return f},{mode:2});_.Dd("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var AN=function(){return _.I.apply(this,arguments)||this};
_.q(AN,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],AN.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],AN.prototype,"data",void 0);_.N([_.nP({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],AN);
_.p(AN,"yt-did-you-mean-renderer",function(){if(v3X===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;PVu===void 0&&(PVu=document.createElement("template"));var G=PVu;B.call(S,G.content.cloneNode(!0),f.content.firstChild);v3X=f}f=v3X;return f},{mode:2});var ime;var Hmu;_.Dd("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var N0=function(){return _.I.apply(this,arguments)||this};
_.q(N0,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],N0.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],N0.prototype,"data",void 0);_.N([_.nP({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],N0);
_.p(N0,"yt-including-results-for-renderer",function(){if(Hmu===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;ime===void 0&&(ime=document.createElement("template"));var G=ime;B.call(S,G.content.cloneNode(!0),f.content.firstChild);Hmu=f}f=Hmu;return f},{mode:2});var qhu;var $8z;_.Dd("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var M0=function(){return _.I.apply(this,arguments)||this};
_.q(M0,_.I);M0.prototype.computeExtraClasses_=function(f,S){var B="";f&&(B+=" "+f.toLowerCase().replace(/_/g,"-"));S&&(B+=" "+S.toLowerCase().replace(/_/g,"-"));return B};
M0.prototype.computeUrlImg_=function(){var f=this.data;f.image&&(_.m9(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.bF(f.image.thumbnails,Number.MAX_VALUE)+")")};
M0.prototype.computeUrlImg_=M0.prototype.computeUrlImg_;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],M0.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],M0.prototype,"data",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],M0.prototype,"computeUrlImg_",null);_.N([_.nP({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],M0);
_.p(M0,"yt-music-pass-feature-info-renderer",function(){if($8z===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;qhu===void 0&&(qhu=document.createElement("template"));var G=qhu;B.call(S,G.content.cloneNode(!0),f.content.firstChild);$8z=f}f=$8z;return f},{mode:2});var QUO;var Yh2;_.Dd("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var Z1=function(){return _.I.apply(this,arguments)||this};
_.q(Z1,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Z1.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Z1.prototype,"data",void 0);_.N([_.nP({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],Z1);
_.p(Z1,"yt-no-results-found-showing-results-for-renderer",function(){if(Yh2===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;QUO===void 0&&(QUO=document.createElement("template"));var G=QUO;B.call(S,G.content.cloneNode(!0),f.content.firstChild);Yh2=f}f=Yh2;return f},{mode:2});var rMZ;var jU2;_.Dd("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var tN=function(){return _.I.apply(this,arguments)||this};
_.q(tN,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],tN.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],tN.prototype,"data",void 0);_.N([_.nP({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],tN);
_.p(tN,"yt-results-without-quotes-renderer",function(){if(jU2===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;rMZ===void 0&&(rMZ=document.createElement("template"));var G=rMZ;B.call(S,G.content.cloneNode(!0),f.content.firstChild);jU2=f}f=jU2;return f},{mode:2});var Om$;var x8M;_.Dd("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var uA=function(){return _.I.apply(this,arguments)||this};
_.q(uA,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],uA.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],uA.prototype,"data",void 0);_.N([_.nP({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],uA);
_.p(uA,"yt-search-no-results-renderer",function(){if(x8M===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;Om$===void 0&&(Om$=document.createElement("template"));var G=Om$;B.call(S,G.content.cloneNode(!0),f.content.firstChild);x8M=f}f=x8M;return f},{mode:2});var E3Y;var Lfz;_.Dd("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var aL=function(){return _.I.apply(this,arguments)||this};
_.q(aL,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],aL.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],aL.prototype,"data",void 0);_.N([_.nP({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],aL);
_.p(aL,"yt-showing-results-for-renderer",function(){if(Lfz===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;E3Y===void 0&&(E3Y=document.createElement("template"));var G=E3Y;B.call(S,G.content.cloneNode(!0),f.content.firstChild);Lfz=f}f=Lfz;return f},{mode:2});var kp2;var n3$;var sUu;var D8$;var yZ=function(){var f=_.I.apply(this,arguments)||this;f.answerExpanded=!1;return f};
_.q(yZ,_.I);yZ.prototype.toggleAnswer_=function(f){var S=_.lt(f);S&&S.classList.contains("yt-simple-endpoint")||(f.preventDefault(),f.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
yZ.prototype.toggleAnswer_=yZ.prototype.toggleAnswer_;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],yZ.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],yZ.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],yZ.prototype,"answerExpanded",void 0);_.N([_.Vg("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],yZ.prototype,"toggleAnswer_",null);
_.N([_.nP({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],yZ);
_.p(yZ,"yt-generic-faq-question-renderer",function(){if(D8$===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;sUu===void 0&&(sUu=document.createElement("template"));var G=sUu;B.call(S,G.content.cloneNode(!0),f.content.firstChild);D8$=f}f=D8$;return f},{mode:2});_.Dd("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var W6=function(){return _.I.apply(this,arguments)||this};
_.q(W6,_.I);W6.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],W6.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],W6.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],W6.prototype,"data",void 0);_.N([_.nP({is:"yt-faq-section-renderer",disableElementRegistration:!0})],W6);
_.p(W6,"yt-faq-section-renderer",function(){if(n3$===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;kp2===void 0&&(kp2=document.createElement("template"));var G=kp2;B.call(S,G.content.cloneNode(!0),f.content.firstChild);n3$=f}f=n3$;return f},{mode:2});var IB2;var U8O;_.Dd("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var c6=function(){return _.I.apply(this,arguments)||this};
_.q(c6,_.I);
c6.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"}}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],c6.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],c6.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],c6.prototype,"data",void 0);_.N([_.nP({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],c6);
_.p(c6,"yt-offer-item-expanded-renderer",function(){if(U8O===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;IB2===void 0&&(IB2=document.createElement("template"));var G=IB2;B.call(S,G.content.cloneNode(!0),f.content.firstChild);U8O=f}f=U8O;return f},{mode:2});var CVO;var pgo;_.Dd("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var lA=function(){return _.I.apply(this,arguments)||this};
_.q(lA,_.I);
lA.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"}}}}};
lA.prototype.computeFullWidthMode=function(f){return!(!f||!f.fullWidthMode)};
lA.prototype.computeBorderlessMode=function(f){return!(!f||!f.borderlessMode)};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],lA.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],lA.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],lA.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.Z("design:type",Boolean)],lA.prototype,"fullWidthMode",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.Z("design:type",Boolean)],lA.prototype,"borderlessMode",void 0);_.N([_.nP({is:"yt-offer-item-renderer",disableElementRegistration:!0})],lA);
_.p(lA,"yt-offer-item-renderer",function(){if(pgo===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;CVO===void 0&&(CVO=document.createElement("template"));var G=CVO;B.call(S,G.content.cloneNode(!0),f.content.firstChild);pgo=f}f=pgo;return f},{mode:2});var AMz;var N6u;_.Dd("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var fh=function(){return _.I.apply(this,arguments)||this};
_.q(fh,_.I);fh.prototype.computeAriaLevel_=function(f){return this.getLevelID_(f)};
fh.prototype.getLevelID_=function(f){return(f=f.match(/[0-9]+$/))&&f.length==1?f[0]:"1"};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],fh.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],fh.prototype,"data",void 0);_.N([_.n({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.Z("design:type",String)],fh.prototype,"ariaLevel",void 0);_.N([_.n({value:"heading",reflectToAttribute:!0}),_.Z("design:type",String)],fh.prototype,"role",void 0);
_.N([_.n({value:-1,reflectToAttribute:!0}),_.Z("design:type",Number)],fh.prototype,"tabindex",void 0);_.N([_.nP({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],fh);
_.p(fh,"yt-subscription-product-header-renderer",function(){if(N6u===void 0){var f=document.createElement("template");_.Y(f,"\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");f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;AMz===void 0&&(AMz=document.createElement("template"));var G=AMz;B.call(S,G.content.cloneNode(!0),f.content.firstChild);N6u=f}f=N6u;return f},{mode:2});var Mlu;var Zmu;_.Dd("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var o3=function(){return _.I.apply(this,arguments)||this};
_.q(o3,_.I);o3.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:_.Ia("menuRenderer"),events:!0}}};
o3.prototype.onStampFinished_=function(){_.m9(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
o3.prototype.onStampFinished_=o3.prototype.onStampFinished_;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],o3.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],o3.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],o3.prototype,"data",void 0);_.N([_.Vg("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],o3.prototype,"onStampFinished_",null);
_.N([_.nP({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],o3);
_.p(o3,"yt-subscription-product-renderer",function(){if(Zmu===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;Mlu===void 0&&(Mlu=document.createElement("template"));var G=Mlu;B.call(S,G.content.cloneNode(!0),f.content.firstChild);Zmu=f}f=Zmu;return f},{mode:2});var tlZ;var uiM;_.Dd("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var Sk=function(){return _.I.apply(this,arguments)||this};
_.q(Sk,_.I);Sk.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Sk.prototype.imageScrimColorValuesChanged_=function(){var f,S=(f=this.data)==null?void 0:f.imageScrimColorValues;_.m9(this.hostElement).querySelector("#scrim").style.backgroundColor=S?_.AK(S[0]):"transparent"};
Sk.prototype.imageScrimColorValuesChanged_=Sk.prototype.imageScrimColorValuesChanged_;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Sk.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Sk.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Sk.prototype,"data",void 0);
_.N([_.JO("data.imageScrimColorValues"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Sk.prototype,"imageScrimColorValuesChanged_",null);_.N([_.nP({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],Sk);
_.p(Sk,"yt-subscription-product-upsell-offer-renderer",function(){if(uiM===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;tlZ===void 0&&(tlZ=document.createElement("template"));var G=tlZ;B.call(S,G.content.cloneNode(!0),f.content.firstChild);uiM=f}f=uiM;return f},{mode:2});var aBu;var yMu;var Wfu;var cMZ;var lBe;var fQu;var B$=function(){return _.I.apply(this,arguments)||this};
_.q(B$,_.I);B$.prototype.onYtServiceRequestError_=function(f){_.g5(this.hostElement,f.detail.error.message)};
B$.prototype.onYtServiceRequestError_=B$.prototype.onYtServiceRequestError_;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],B$.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],B$.prototype,"data",void 0);_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],B$.prototype,"collapsible",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],B$.prototype,"isManageRed",void 0);
_.N([_.Vg("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],B$.prototype,"onYtServiceRequestError_",null);_.N([_.nP({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],B$);
_.p(B$,"yt-single-ypc-offer-renderer",function(){if(fQu===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;lBe===void 0&&(lBe=document.createElement("template"));var G=lBe;B.call(S,G.content.cloneNode(!0),f.content.firstChild);fQu=f}f=fQu;return f},{mode:2});var Gx=function(){return _.I.apply(this,arguments)||this};
_.q(Gx,_.I);Gx.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Gx.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Gx.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Gx.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],Gx.prototype,"isManageRed",void 0);_.N([_.nP({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],Gx);
_.p(Gx,"yt-single-ypc-offer-list-renderer",function(){if(cMZ===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;Wfu===void 0&&(Wfu=document.createElement("template"));var G=Wfu;B.call(S,G.content.cloneNode(!0),f.content.firstChild);cMZ=f}f=cMZ;return f},{mode:2});var oyu;var S1B;_.Dd("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var gq=function(){return _.I.apply(this,arguments)||this};
_.q(gq,_.I);gq.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],gq.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],gq.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],gq.prototype,"data",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],gq.prototype,"isManageRed",void 0);_.N([_.nP({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],gq);
_.p(gq,"yt-ypc-offers-list-renderer",function(){if(S1B===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;oyu===void 0&&(oyu=document.createElement("template"));var G=oyu;B.call(S,G.content.cloneNode(!0),f.content.firstChild);S1B=f}f=S1B;return f},{mode:2});_.Dd("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var ek=function(){return _.I.apply(this,arguments)||this};
_.q(ek,_.I);
ek.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}}}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],ek.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],ek.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],ek.prototype,"data",void 0);_.N([_.nP({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],ek);
_.p(ek,"yt-unlimited-manage-subscription-page-renderer",function(){if(yMu===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;aBu===void 0&&(aBu=document.createElement("template"));var G=aBu;B.call(S,G.content.cloneNode(!0),f.content.firstChild);yMu=f}f=yMu;return f},{mode:2});var BV2;var GIo;var bZ=function(){return _.I.apply(this,arguments)||this};
_.q(bZ,_.I);_.e=bZ.prototype;_.e.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.e.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.e.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.e.onKeypress_=function(f){f.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.e.handleHeaderTap_=function(f){f.preventDefault();f.stopPropagation();this.expandOffers_()};
_.e.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.e.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
bZ.prototype.dataChanged_=bZ.prototype.dataChanged_;_.N([_.r(_.qx),_.Z("design:type",Object)],bZ.prototype,"ironA11yKeysBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],bZ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],bZ.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],bZ.prototype,"data",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],bZ.prototype,"offersVisible_",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],bZ.prototype,"dataChanged_",null);_.N([_.nP({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],bZ);
_.p(bZ,"yt-collapsible-ypc-offer-renderer",function(){if(GIo===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;BV2===void 0&&(BV2=document.createElement("template"));var G=BV2;B.call(S,G.content.cloneNode(!0),f.content.firstChild);GIo=f}f=GIo;return f},{mode:2});var gyZ;var eAO;_.Dd("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var mM=function(){return _.I.apply(this,arguments)||this};
_.q(mM,_.I);_.e=mM.prototype;_.e.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.e.dataChanged_=function(){if(this.data.backgroundImage){var f=_.bF(this.data.backgroundImage.thumbnails,screen.width),S=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=S?"linear-gradient(180deg, "+S+"), url("+f+")":"url("+f+")";this.data.gtmId&&_.Oj(this.data.gtmId,_.nL("GL",""))}};
_.e.onYtServiceRequestError_=function(f){_.g5(this.hostElement,f.detail.error.message)};
_.e.getScrimLayerColorStops_=function(){var f,S,B=(f=this.data.unlimitedHeaderV2Data)==null?void 0:(S=f.unlimitedHeaderV2Data)==null?void 0:S.scrimLayerColors;if(!B)return null;var G=100/B.length;return B.map(function(g,b){b*=G;return _.AK(g)+" "+b+"%"}).join(",")};
_.e.computeLogoWithPadding=function(f){var S,B,G;return(f=(S=f.unlimitedLogoImage)==null?void 0:(B=S.thumbnails)==null?void 0:(G=B[0])==null?void 0:G.height)&&f%31===0?!0:!1};
mM.prototype.onYtServiceRequestError_=mM.prototype.onYtServiceRequestError_;mM.prototype.dataChanged_=mM.prototype.dataChanged_;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],mM.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],mM.prototype,"ytRendererBehavior",void 0);_.N([_.n({computed:"computeLogoWithPadding(data)"}),_.Z("design:type",Boolean)],mM.prototype,"logoWithPadding",void 0);
_.N([_.n(),_.Z("design:type",Object)],mM.prototype,"data",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mM.prototype,"dataChanged_",null);_.N([_.Vg("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],mM.prototype,"onYtServiceRequestError_",null);_.N([_.nP({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],mM);
_.p(mM,"yt-unlimited-page-header-renderer",function(){if(eAO===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;gyZ===void 0&&(gyZ=document.createElement("template"));var G=gyZ;B.call(S,G.content.cloneNode(!0),f.content.firstChild);eAO=f}f=eAO;return f},{mode:2});var bGo;var m4O;_.Dd("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var zx=function(){return _.I.apply(this,arguments)||this};
_.q(zx,_.I);zx.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],zx.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],zx.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],zx.prototype,"data",void 0);_.N([_.nP({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],zx);
_.p(zx,"yt-unlimited-user-notification-renderer",function(){if(m4O===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;bGo===void 0&&(bGo=document.createElement("template"));var G=bGo;B.call(S,G.content.cloneNode(!0),f.content.firstChild);m4O=f}f=m4O;return f},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.KEu=_.oS(function(f){var S=_.lu(f,{numberOfChips:5}).numberOfChips;return _.T("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.T(_.dg,{each:function(){return Array(S==null?void 0:S())}},function(){return _.T("div",{class:"ytGhostChipShelfChip"})}))},"mg");_.dHM=_.oS(function(f){var S=_.TG(),B=_.oy().resolve(_.cs);_.Y5(function(){requestAnimationFrame(function(){var g;(g=S.lottieEl)==null||g.addEventListener("DOMLoaded",function(){var b;(b=f.onLottieLoaded)==null||b.call(f)})})});
var G={};return _.T("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var g;return((g=f.data)==null?void 0:g.call(f).targetId)||""}},_.T(_.vw,{className:_.Pw((G.ytChatLoadingViewModelRtl=B==="rtl",G)),
animationName:"YOUCHAT_LOADER",data:function(){var g;return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:((g=f.data)==null?void 0:g.call(f).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"}}},
animationRef:S}))},"ng");
}catch(e){_._DumpException(e)}
try{
var CJX,pVB,AmY,Nze,MN2,ZQY,tNM,aEu,BuM,BT,SIO,cmn,ovY,fMZ,lEn,Wru,GWn,gvu,eQM,bou,Gv,mvM,zQu,wdZ,bM,RQ2,mF,gJ,zv,Xd$,e4,hQz,TuZ,FaB,Vru,Jxn,PBu,Ka$,qIu,YIZ,rx$,j$z,xv2,Laz,nv$,s$$,DvX,IM$,CBu,pdu,Ax2,Nuo,Mr2,Zou,tro,aM2,lM2,cxB,yxu,fLB,Wau,oAY,gA2,GSu,SbZ,Bj2,XP,eeo,bSu,zez,Foz,VIM,JaX,P5z,vAM,Ko2,dRM,iSX,HSo,qbo,QKz,Yb$,ra2,wvu;
_.o7=function(f){var S=new _.dO("Error accessing DB");return _.dfQ().then(function(B){return new Promise(function(G,g){try{var b=B.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(f);b.onsuccess=function(){var z=b.result;G(z?z.value:null)};
b.onerror=function(){S.params={key:f,source:"onerror"};g(S)}}catch(z){S.params={key:f,
thrownError:String(z)},g(S)}})},function(){return null})};
_.UcX=function(f,S){var B=_.FzW(S);B!=="javascript:"&&B!=="data:"&&f.setAttribute("href",S)};
CJX=function(f,S){return _.w9(f.entities,"flowStateEntity",S)};
pVB=function(f){return _.DN(f,function(S){return S.languageCode==="en"})};
AmY=function(f){var S=S4;if(_.Wg$(f))f.setOption("captions","stickyLoading",{}),f.setOption("captions","track",{});else{var B=_.DN(_.Abx(f),function(G){return G.displayName===S});
f.setOption("captions","track",B)}};
Nze=function(f){if(!f)return 0;var S=f.getPresentingPlayerType(),B=f.getVideoData();return B&&B.isLive?(f=f.getProgressState(S),f.seekableEnd-f.seekableStart):f.getDuration(S)};
MN2=function(f,S){for(var B=_.m(Object.keys(f)),G=B.next();!G.done;G=B.next())if(G=G.value,f[G]!==S[G])return!1;return!0};
ZQY=function(){return document.getElementById("player-control-overlay")};
tNM=function(f){f!==-1&&!_.K("player_controls_log_creation_killswitch")&&ZQY()&&(_.kT("pcu_cs",f),_.kT("pcu_ce"))};
aEu=function(f){return _.T("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(f.subscribeButton?[f.subscribeButton,f.channelAccess]:[f.channelAccess]).map(function(S){return _.T("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.T("div",{class:"yt-profile-identity-info-view-model-wiz--button"},uzz(S)))}))};
_.ym2=function(f){var S=f.data;f=f.hideDivider;var B={};B=(B["yt-profile-identity-info-view-model-wiz__frame"]=!0,B["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!S.channelBanner,B);B={class:_.K9(B)};var G,g={imageBannerViewModel:{image:(G=S.channelBanner)==null?void 0:G.image,style:"IMAGE_BANNER_STYLE_INSET"}};G=_.T("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},S.channelBanner?_.T("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
uzz(g,{imageBannerViewModel:{isPositionRelative:!0}})):null);g=_.T("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},uzz(S.avatar));var b;var z=_.T("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.T("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},S.channelDisplayName),S.verifiedOrOacBadge?_.T("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.T(_.f9,{data:{thumbnails:[{url:(b=S.verifiedOrOacBadge)==null?void 0:b.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);b=_.T("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},z,uzz(S.threeDotMenu));z=_.T("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.T("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.T("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},S.channelHandle),S.channelPronouns&&S.channelHandle?_.T("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.T("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},S.channelPronouns)),_.T("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.T("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},S.leftOfBulletInfo),S.leftOfBulletInfo&&S.rightOfBulletInfo?_.T("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.T("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},S.rightOfBulletInfo)));b=_.T("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},b,z);return _.T("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.T("div",B,G,_.T("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},g,b),S.channelDescription?_.T("div",{class:"yt-profile-identity-info-view-model-wiz__channel-description"},S.channelDescription):
null,aEu(S),f?null:_.T("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
BuM=function(f,S){var B=_.cF(f,{}),G=Wru("top",S),g=Wru("bottom",S),b=Wru("left",S),z=Wru("right",S);return _.Qj({top:function(){return BT(B().position,G)},
bottom:function(){return BT(B().position,g)},
left:function(){return BT(B().position,b)},
right:function(){return BT(B().position,z)},
position:function(){return BT(B().positionType,cmn)},
height:function(){return BT(B().height,Gv)},
width:function(){return BT(B().width,Gv)},
"min-width":function(){return BT(B().minWidth,Gv)},
"min-height":function(){return BT(B().minHeight,Gv)},
"max-width":function(){return BT(B().maxWidth,Gv)},
"max-height":function(){return BT(B().maxHeight,Gv)},
"aspect-ratio":function(){return BT(B().aspectRatio,String)},
"margin-top":function(){return BT(B().margin,G)},
"margin-bottom":function(){return BT(B().margin,g)},
"margin-left":function(){return BT(B().margin,b)},
"margin-right":function(){return BT(B().margin,z)},
"padding-top":function(){return BT(B().padding,G)},
"padding-bottom":function(){return BT(B().padding,g)},
"padding-left":function(){return BT(B().padding,b)},
"padding-right":function(){return BT(B().padding,z)},
"flex-direction":function(){return BT(B().flexDirection,lEn)},
"justify-content":function(){return BT(B().justifyContent,fMZ)},
"align-items":function(){return BT(B().alignItems,ovY)},
"flex-grow":function(){return BT(B().flexGrow,String)},
"flex-shrink":function(){return BT(B().flexShrink,String)},
"flex-basis":function(){return BT(B().flexBasis,Gv)},
"align-self":function(){return BT(B().alignSelf,ovY)},
"flex-wrap":function(){return BT(B().flexWrap,SIO)},
"align-content":function(){return BT(B().alignContent,ovY)}})};
BT=function(f,S){return f!==void 0?S(f):void 0};
SIO=function(f){switch(f){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
cmn=function(f){switch(f){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
ovY=function(f){switch(f){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"}};
fMZ=function(f){switch(f){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"}};
lEn=function(f){switch(f){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"}};
Wru=function(f,S){var B=S==="rtl";switch(f){case "top":var G=GWn;break;case "bottom":G=gvu;break;case "left":G=eQM;break;default:G=bou}return function(g){return BT(G(g,B),Gv)}};
GWn=function(f){var S=f.top;var B=f.vertical;f=f.all;var G;return(G=S!=null?S:B)!=null?G:f};
gvu=function(f){var S=f.bottom;var B=f.vertical;f=f.all;var G;return(G=S!=null?S:B)!=null?G:f};
eQM=function(f,S){var B=f.left;var G=f.end;var g=f.start;var b=f.horizontal;f=f.all;var z,X;return(X=(z=B!=null?B:S?G:g)!=null?z:b)!=null?X:f};
bou=function(f,S){var B=f.right;var G=f.end;var g=f.start;var b=f.horizontal;f=f.all;var z,X;return(X=(z=B!=null?B:S?g:G)!=null?z:b)!=null?X:f};
Gv=function(f){var S=f.value;switch(f.unit){case "YPC_DIMENSION_UNIT_POINT":return S+"px";case "YPC_DIMENSION_UNIT_FRACTION":return S+"%";default:return""+S}};
mvM=function(f){switch(f){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"}};
zQu=function(f){var S=f!=null?f:{};f=S.fontRole;var B=S.fontSize;S=S.fontWeight;if(f!==null&&B!==null)switch(f){case "YPC_FONT_ROLE_DISPLAY":switch(B){case "YPC_FONT_SIZE_L":return S==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return S==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return S==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return S==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(B){case "YPC_FONT_SIZE_L":return S==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return S==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return S===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return S==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(B){case "YPC_FONT_SIZE_XL":return S==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return S==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return S==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return S==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return S==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
wdZ=function(f,S,B){function G(V){return Object.values(V).map(function(J){var P=J.productId;J=J.pricingOptionIndex;return gJ(g(P).pricingOptions,J).pricingOptionId})}
function g(V){return X().get(V)}
function b(V){V=G(V);B(V)}
var z=e4([f,S],function(V,J){var P=V==null?void 0:V.selectedPricingOptions;V={};var d=!0;if(P&&J.length)for(var Q=_.m(J),x=Q.next();!x.done;x=Q.next()){x=x.value;var E=RQ2(x.pricingOptions,function(t){a:{t=t.pricingOptionId;for(var M=_.m(P),a=M.next();!a.done;a=M.next())if(a.value===t){t=!0;break a}t=!1}return t});
if(E>=0){d=!1;var U=gJ(x.pricingOptions,E),A=void 0;V[x.groupId]={productId:x.productId,pricingOptionIndex:E,pricingGroupAttributes:(A=U)==null?void 0:A.pricingGroupAttributes}}}d&&J.length&&(d=gJ(J[0].pricingOptions,0),V[J[0].groupId]={productId:J[0].productId,pricingOptionIndex:0,pricingGroupAttributes:d==null?void 0:d.pricingGroupAttributes});return V}),X=e4([S],function(V){return new Map(V.map(function(J){return[J.productId,
J]}))}),w=e4([S],function(V){var J=new Map;
V=_.m(V);for(var P=V.next();!P.done;P=V.next()){var d=P.value;P=d.groupId;var Q=d.productId;d=_.m(bM(d.pricingOptions));for(var x=d.next();!x.done;x=d.next()){var E=_.m(x.value);x=E.next().value;E=E.next().value;J.set(E.pricingOptionId,{groupId:P,productId:Q,index:x,pricingOption:E,pricingGroupAttributes:E.pricingGroupAttributes})}}return J}),F=e4([S],function(V){var J=new Map;
V=_.m(V);for(var P=V.next();!P.done;P=V.next()){var d=P.value;P=d.groupId;var Q=d.productId,x=void 0;d=_.m(bM((x=d.pricingGroups)!=null?x:[]));for(x=d.next();!x.done;x=d.next()){var E=_.m(x.value);x=E.next().value;E=E.next().value;J.set(E.pricingGroupId,{groupId:P,productId:Q,index:x,pricingGroup:E,pricingGroupAttributes:E.pricingGroupAttributes})}}return J});
return{getProductById:g,isProductSelected:function(V){var J=g(V);if(!J)return!1;var P;return((P=z()[J.groupId])==null?void 0:P.productId)===V},
getSelectedPricingOptions:function(){return Object.values(z()).map(function(V){var J=V.productId;V=V.pricingOptionIndex;return gJ(g(J).pricingOptions,V)})},
getSelectedPricingGroupAttributesByGroupId:function(V){var J;return(V=(J=z()[V])==null?void 0:J.pricingGroupAttributes)?Array.from(V):void 0},
getSelectedProductByGroupId:function(V){var J;return(V=(J=z()[V])==null?void 0:J.productId)?g(V):void 0},
onProductSelected:function(V){var J=g(V);if(J){var P=z(),d;if(((d=P[J.groupId])==null?void 0:d.productId)!==V){var Q,x;d=(x=(Q=P[J.groupId])==null?void 0:Q.pricingOptionIndex)!=null?x:0;mF(J.pricingOptions)<=d&&(d=0);Q=gJ(J.pricingOptions,d);var E;x={};b(Object.assign({},P,(x[J.groupId]={productId:V,pricingOptionIndex:d,pricingGroupAttributes:(E=Q==null?void 0:Q.pricingGroupAttributes)!=null?E:[]},x)))}}},
onPricingOptionSelected:function(V){var J=w().get(V);if(J){V=J.groupId;var P=J.productId;J=J.index;var d=z(),Q,x;if(((Q=d[V])==null?void 0:Q.productId)!==P||((x=d[V])==null?void 0:x.pricingOptionIndex)!==J){var E,U;Q={};b(Object.assign({},d,(Q[V]={productId:P,pricingOptionIndex:J,pricingGroupAttributes:(U=(E=d[V])==null?void 0:E.pricingGroupAttributes)!=null?U:[]},Q)))}}},
onPricingGroupSelected:function(V){var J=F().get(V);if(J){V=J.groupId;var P=J.productId,d=J.pricingGroup.pricingGroupAttributes,Q=g(P);if(Q){J=z();var x=J[V].pricingGroupAttributes,E;if(((E=J[V])==null?void 0:E.productId)!==P||!zv(Xd$(x,mF(d)),d)){E=Array.from(d);for(d=mF(d);d<mF(x);d++){var U="",A=!1,t=Array.from(E);t.push(gJ(x,d));for(var M=_.m(Q.pricingGroups),a=M.next();!a.done;a=M.next())if(a=a.value,zv(a.pricingGroupAttributes,t)){E.push(gJ(x,d));A=!0;break}else U===""&&mF(a.pricingGroupAttributes)===
t.length&&zv(Xd$(a.pricingGroupAttributes,E.length),E)&&(U=gJ(a.pricingGroupAttributes,d));A||E.push(U)}U=J[V].pricingOptionIndex;d=[];A=new Map;t=0;Q=_.m(bM(Q.pricingOptions));for(M=Q.next();!M.done;M=Q.next())a=_.m(M.value),M=a.next().value,a=a.next().value,zv(a.pricingGroupAttributes,E)&&d.push(M),zv(a.pricingGroupAttributes,x)&&A.set(M,t++);d.length===0?x=0:(x=A.get(U),x=x!==void 0&&x<d.length?d[x]:d[0]);Q={};b(Object.assign({},J,(Q[V]={productId:P,pricingOptionIndex:x,pricingGroupAttributes:E},
Q)))}}}},
onClearGroupSelected:function(V){var J=z();J[V]&&(J=Object.fromEntries(Object.entries(J).filter(function(P){return _.m(P).next().value!==V})),b(J))}}};
bM=function(f){return function B(){var G,g,b,z,X;return _.GkA(B,function(w){switch(w.nextAddress){case 1:_.Xz(w,2),G=0,g=_.m(f),b=g.next();case 4:if(b.done){w.jumpTo(2);break}z=b.value;X=_.gDK;return _.h(w,[G++,z],7);case 7:X(w.yieldResult);b=g.next();w.jumpTo(4);break;case 2:_.Rs(w),_.wz(w,0)}})}()};
RQ2=function(f,S){f=_.m(bM(f));for(var B=f.next();!B.done;B=f.next()){var G=_.m(B.value);B=G.next().value;G=G.next().value;if(S(G))return B}return-1};
mF=function(f){var S=0;for(f=f[Symbol.iterator]();!f.next().done;)++S;return S};
gJ=function(f,S){f=_.m(bM(f));for(var B=f.next();!B.done;B=f.next()){var G=_.m(B.value);B=G.next().value;G=G.next().value;if(B===S)return G}};
zv=function(f,S){if(!f&&!S)return!0;if(!f||!S)return!1;f=Array.from(f);S=Array.from(S);if(f.length!==S.length)return!1;for(var B=0;B<f.length;B++)if(f[B]!==S[B])return!1;return!0};
Xd$=function(f,S){S=S===void 0?Infinity:S;var B=[];f=_.m(bM(f));for(var G=f.next();!G.done;G=f.next()){var g=_.m(G.value);G=g.next().value;g=g.next().value;if(G>=S)break;G>=0&&B.push(g)}return B};
e4=function(f,S){var B,G;return function(){for(var g=f.map(function(z){return z()}),b=0;b<g.length;b++)if(!B||g[b]!==B[b]){B=g;
G=S.apply(null,_.$d(g));break}return G}};
hQz=function(f,S,B){var G=[];f=_.m(f);for(var g=f.next();!g.done;g=f.next()){g=g.value;var b=void 0;((b=S)==null?0:b.length)&&!zv(g.pricingGroupAttributes,S)||G.push({pricingOption:g,isSelected:B.includes(g.pricingOptionId)})}return G};
TuZ=function(f,S){return _.w9(f.entities,"pdpStateEntity",S)};
FaB=function(f){var S,B;return!!(f.productId&&f.groupId&&((S=f.pricingOptions)==null?0:S.length)&&f.pricingOptions.every(function(G){return G.pricingOptionId})&&((B=f.pricingGroups)==null||!B.length||Array.isArray(f.pricingGroups)&&f.pricingGroups.every(function(G){return G.pricingGroupId&&G.pricingGroupAttributes&&G.pricingGroupAttributes.length>0})))};
Vru=function(f,S,B){return wdZ(f,e4([S],function(G){return G.filter(FaB)}),B)};
Jxn=function(f,S){return S.length===0?[f]:[f.slice(0,S[0]),f.slice(S[0])].filter(function(B){return B.length>0})};
PBu=function(f){switch(f){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""}};
Ka$=function(f,S,B,G){G=Object.assign({},G);_.nH(G,vvX,{selectedOptionId:f,primaryButtonOverride:B});_.al().dispatch(_.KF("flowStateEntity",S,G))};
_.Hou=function(){if(!dv2){var f=_.m(_.hj(new Map,void 0,"UJImUe"));dv2=f.next().value;ioB=f.next().value}return dv2};
qIu=function(f){if(f)return _.Hou()().get(f)};
_.$vZ=function(f,S){if(f&&S){var B=_.Hou();B().set(f,S);f=B();ioB(new Map(f))}};
_.Q$$=function(f){return{onSubmit:function(){var S;(S=qIu(f()))==null||S.onSubmit()},
isValid:function(){var S=qIu(f());return S?S.isValid():!0},
isSubmitting:function(){var S,B;return!!((S=qIu(f()))==null?0:(B=S.isSubmitting)==null?0:B.call(S))}}};
YIZ=function(f,S){return _.w9(f.entities,"contextNoteFeedEntityPayload",S)};
rx$=function(f){f.style.height="auto";f.style.height=f.scrollHeight+"px"};
j$z=function(f){return[f.syncStep,f.asyncStep].filter(function(S){return S!==void 0})};
xv2=function(f){var S,B,G;if(f=(S=f.structuredContextNoteFormSchema)==null?void 0:(B=S.fieldSchemas)==null?void 0:(G=B.noteBody)==null?void 0:G.validationSchema)for(S=_.m(j$z(f)),B=S.next();!B.done;B=S.next()){B=B.value.rules;if(!B)break;B=_.m(B);for(B=B.next();!B.done;B=B.next())return _.H(B.value,_.Ooo)}};
Laz=function(f){if(f){f=_.m(j$z(f));for(var S=f.next();!S.done;S=f.next()){S=S.value.rules;if(!S)break;S=_.m(S);for(S=S.next();!S.done;S=S.next())return _.H(S.value,Evo)}}};
nv$=function(f){if(f){f=_.m(j$z(f));for(var S=f.next();!S.done;S=f.next()){S=S.value.rules;if(!S)break;S=_.m(S);for(S=S.next();!S.done;S=S.next())return _.H(S.value,kWZ)}}};
s$$=function(f){f=/^https?:\/\//.test(f)?f:"http://"+f;try{var S=_.NR(f)}catch(B){return!1}if(S.toString()!==f)return!1;f=S.JSC$8076_domain_.split(".");return f.length>1&&f.every(function(B){return!!B})};
DvX=function(f,S,B,G){var g;G=(g=G.structuredContextNoteData)==null?void 0:g.createCommentEndpoint;if(g=_.H(G,_.roN))return g.commentText=_.uC(f),g.videoPositionMention=S,g.sources=B,G};
IM$=function(f){return f==null?void 0:f.stringValue};
CBu=function(f,S,B){f=f.map(function(G,g){return{listItemViewModel:{title:G.title,subtitle:G.subtitle,leadingImage:G.leadingImage,trailingImage:g===S?Uv$:void 0,rendererContext:{commandContext:{onTap:G.onTap}}}}});
return Object.assign({},B&&{header:{panelHeaderViewModel:{title:B}}},{content:{listViewModel:{listItems:f}}})};
pdu=function(f,S){if(f&&S)switch(S){case "SELECTION_TYPE_BOOL":return f.boolValue;case "SELECTION_TYPE_INT":return f.intValue;case "SELECTION_TYPE_STRING":return f.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return f.privacyStatusValue}};
Ax2=function(f){var S;f=(S=f.options)==null?void 0:S.findIndex(function(B){return B.isSelected});
return f===void 0?-1:f};
Nuo=function(f,S,B){var G=function(){return f().label},g={},b=_.Pw("ytDropdownViewModelLabel",(g.ytDropdownViewModelLabelError=S,g));
return _.T(_.v,{cond:function(){return f().label&&!(B()===-1&&f().label&&!f().placeholderText)},
then:function(){return _.T("div",{class:b},_.T(_.oY,{text:G}))}})};
Mr2=function(f,S){var B={};B=_.Pw("ytDropdownViewModelTitle",(B.ytDropdownViewModelTitlePlaceholder=function(){return S()===-1},B));
return _.T("div",{class:B},_.T(_.oY,{text:function(){var G=f();var g=S();if(g===-1)G=G.placeholderText?G.placeholderText:G.label;else{var b,z;G=(b=G.options)==null?void 0:(z=b[g])==null?void 0:z.title}return G}}))};
Zou=function(f,S){var B=function(){return f().hint};
return _.T(_.gg,null,_.T(_.v,{cond:function(){return B()&&!S()},
then:function(){return _.T("div",{class:_.Pw("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.T(_.oY,{text:B,className:"ytDropdownViewModelSupportText"}))}}),_.T(_.v,{cond:S,
then:function(){return _.T("div",{id:"dropdown-view-model-error",role:"alert",class:_.Pw("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.T(_.Y8,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.T(_.oY,{text:S,className:"ytDropdownViewModelSupportText"}))}}))};
tro=function(f,S){var B=_.oy().resolve(_.jp1);_.j9(function(){var G=f().id;G&&B!=null&&B.dropdownMap.set(G,S)})};
aM2=function(f){f=_.H(f.scheduleButton,urM);f=_.H(f==null?void 0:f.primaryButton,_.Q5);f=_.H(f==null?void 0:f.onTap,_.Un);var S,B,G=((B=_.H(f,_.hf))==null?void 0:B.commands)||[f];B=_.m(G);for(f=B.next();!f.done&&!(S=_.H(f.value,_.OuN));f=B.next());var g;S=(g=S)==null?void 0:g.createBroadcastRequest;if(!S)throw Error("Lj");return S};
lM2=function(f,S,B){B=B===void 0?{}:B;var G,g;return _.R(function(b){if(G=yxu(S))return b.return(G);(g=Wau(f,S,B))&&cxB(S,g);return b.return(g)})};
cxB=function(f,S){var B=fLB(f);B&&S.then(function(G){_.oy().resolve(_.eG).put(B,new _.br({innertubeResponse:G}))})};
yxu=function(f){if(f=fLB(f)){var S=_.oy().resolve(_.eG);if(S.has(f))return S.get(f).then(function(B){return B==null?void 0:_.wL(B)})}return null};
fLB=function(f){var S=_.H(f.endpoint,_.t2);if(S!=null&&S.videoId)return S={videoId:S.videoId},_.K("web_imp_player_mute_params")&&(S.mutedAtStart=f.startPlaybackInMutedState),_.ZT("inline_playback",S)};
Wau=function(f,S,B){f=_.uF(f,S.endpoint,oAY(S,B)).then(function(G){return G});
return Promise.resolve(f)};
oAY=function(f,S){S=_.K("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!f.startPlaybackInMutedState},S):Object.assign({},{vis:5,autonav:"1"},S);var B;S={contentPlaybackContext:_.ja(S,(B=_.H(f.endpoint.commandMetadata,_.oD))==null?void 0:B.url,window.location.href)};_.K("web_imp_player_mute_params")&&(S.overrideMutedAtStart=!f.startPlaybackInMutedState);return S};
gA2=function(f,S){var B=window.MutationObserver;B&&(R7=new B(function(G,g){G=_.m(G);for(var b=G.next();!b.done;b=G.next()){b=b.value;var z;if(z=b.type==="childList"&&b.target)a:{z=f;b=SbZ(b.target);z=SbZ(z);for(var X=null,w=0;w<b.length;w++)if(z.includes(b[w])){if(w===0){z=!1;break a}X=b[w];break}X?(b=Bj2(b,X),z=Bj2(z,X),z=b<z):z=!1}if(z){S();g.disconnect();break}}}),(B=GSu())&&R7.observe(B,{childList:!0,
subtree:!0}))};
GSu=function(){var f=document.getElementsByTagName("ytd-rich-grid-renderer");if(f.length>0)return f[0];f=document.getElementsByTagName("ytd-section-list-renderer");return f.length>0?f[0]:null};
SbZ=function(f){for(var S=[];f;)S.push(f),f=f.parentElement;return S};
Bj2=function(f,S){var B=Array.from(S.children);S=f.indexOf(S);return S>0?B.indexOf(f[S-1]):-1};
XP=function(f,S,B){B=B===void 0?{}:B;return _.Jf(f,B,S)};
eeo=function(f){switch(f){case "MUSIC":return!0;default:return!1}};
bSu=function(f){return f==null?void 0:f.filter(function(S){return S.premiereTrailerBadgeRenderer})};
zez=function(f){var S,B=f==null?void 0:(S=f.find(function(J){return J.thumbnailOverlayTimeStatusRenderer}))==null?void 0:S.thumbnailOverlayTimeStatusRenderer,G,g;
if((B==null?0:(G=B.icon)==null?0:G.iconType)&&eeo(B==null?void 0:(g=B.icon)==null?void 0:g.iconType)){var b;return{icon:B==null?void 0:(b=B.icon)==null?void 0:b.iconType}}var z,X;var w=(f=(z=f==null?void 0:(w=f.find(function(J){return J.thumbnailBottomOverlayViewModel}))==null?void 0:w.thumbnailBottomOverlayViewModel)==null?void 0:(X=z.badges)==null?void 0:X.find(function(J){var P,d;
return((P=_.H(J,mRe))==null?void 0:(d=P.inlinePlaybackBadgeData)==null?void 0:d.replicateAsTimestamp)===!0}))?_.H(f,mRe):void 0;
if(w==null?0:w.icon){var F,V;if((w=(F=_.Sm1(w==null?void 0:w.icon))==null?void 0:(V=F.clientResource)==null?void 0:V.imageName)&&eeo(w))return{icon:w}}return{}};
Foz=function(f,S){var B=Reu,G=_.m(_.hj(XvB(new wvu(function(){},B,S)),void 0,"PAnyd")),g=G.next().value,b=G.next().value,z=new wvu(function(X){b(X)},B,S);
_.jp(function(){Promise.resolve().then(function(){var X,w=(X=f())!=null?X:{};z.playerControlsData=w;_.K("player_controls_skip_double_signal_old")&&(z.lastSeenPlayerApi=_.A9(w.playerApi));_.K("player_controls_skip_double_signal_old")||(z.lastSeenPlayerApi=_.A9(w.playerApi));heo(z)});
_.Ov(function(){Tjo(z)})},"HikUP");
_.Ov(function(){Tjo(z)});
return function(){return g()}};
VIM=function(f){return function(S){var B=f(),G={playerState:S};if(S===1){var g;(g=B.playerApi)==null||g.loadModule("captions")}if(S===0){var b;(b=B.playerApi)==null||b.unloadModule("captions")}(S!==-1||_.K("web_imp_controls_set_player_state_killswitch"))&&B.setState(G)}};
JaX=function(f){return function(S){f().setState({playbackRate:S})}};
P5z=function(f){return function(S){var B=f(),G=B.playerApi,g=G==null?void 0:G.getVideoData(),b=(g==null?void 0:g.isLive)||!1;g=g==null?void 0:g.video_id;b={videoDuration:Nze(G||void 0),isLive:b,videoId:g};b.videoId!==B.videoId&&(b=Object.assign({},_.viW(G),b));if(S==null?0:S.playertype)b.playerType=S.playertype;if(G){b.captionsAvailable=_.DQ(G);S=b;var z;g=(z=G.getStoryboardLevel(G.getNumberOfStoryboardLevels()-1))==null?void 0:z.intervalMs;S.storyboardInterval=g?g/1E3:void 0;b.captionsAvailable&&
(b.captionsEnabled=_.Wg$(G))}b.volumeMuted=!(G==null||!G.isMuted());B.setState(b)}};
vAM=function(f){return function(S){var B=f(),G=B.playerApi;if(G){var g=G.getPresentingPlayerType();S={playedTime:S||0,percentLoaded:G.getVideoLoadedFraction(),playerType:g};B.playerState===0&&(S.playedTime=B.videoDuration);B.isLive&&(g=G.getProgressState(g),S.playedTime-=g.seekableStart,S.videoDuration=Nze(G));if(B.playerType===1)G=!1;else{var b;if((b=B.uxConfig)==null?0:b.showCuedOverlay){var z;G=!((z=B.playerApi)==null?0:z.getPlayerStateObject(B.playerType).isDomPaused)}else G=!0}G&&delete S.playedTime;
B.setState(S)}}};
Ko2=function(f){return function(){var S=f(),B,G,g,b={volume:(g=(B=S.playerApi)==null?void 0:B.getVolume())!=null?g:0,volumeMuted:!((G=S.playerApi)==null||!G.isMuted())};S.setState(b)}};
dRM=function(f){return function(){var S=f(),B=S.playerApi;if(B){var G={captionsAvailable:_.DQ(B)};G.captionsAvailable&&(G.captionsEnabled=_.Wg$(B));S.setState(G)}}};
iSX=function(f){return function(){var S=f();if(S.playerApi&&!(S.volumeMuted||S.controlsVisible&&S.isProbablyAScreenreaderUser)){S.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var B;(B=document.querySelector(".player-control-play-pause-icon"))==null||B.focus()}}};
HSo=function(f){return{appApi:Object.assign({},_.w6M(),{showCaptionsToggleToast:function(S){var B,G;(G=(B=f()).showCaptionsToggleToast)==null||G.call(B,S)},
openInMiniplayer:function(){var S,B;(B=(S=f()).openInMiniplayer)==null||B.call(S)}})}};
qbo=function(f,S){var B,G,g;return!!(f==null?0:(B=f.playerResponse)==null?0:(G=B.playerConfig)==null?0:(g=G.inlinePlaybackConfig)==null?0:g.showScrubbingControls)&&!(S==null?0:S.hideScrubbingControls)};
_.$RX=function(f){var S=!f.miniplayerIsActive;return[5,2,0].includes(f.miniplayerPlaybackState)||S};
QKz={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};Yb$=function(f,S){var B,G,g,b,z;_.R(function(X){if(!S.length)return X.return([]);B=[];G=_.m(S);for(g=G.next();!g.done;g=G.next())b=g.value,(z=f.resolveIcon(b))&&!f.iconCache[z.url]&&B.push(_.ZMM(f,z).then(function(){}).catch(function(){}));
return X.return(Promise.all(B))})};
ra2=function(f,S){var B=[];S=(new Set(S)).values();S=_.m(S);for(var G=S.next();!G.done;G=S.next()){G=G.value;for(var g=_.m(Object.values(QKz)),b=g.next();!b.done;b=g.next())B.push({iconName:G,iconStyle:b.value})}Yb$(f.iconManager,B)};
_.jKZ=function(f,S,B){var G=B!=null?B:f.iconsToFetch;G!=null&&G.length?S!==void 0&&S>=0?_.q6(_.xJ,function(){ra2(f,G)},S):ra2(f,G):Promise.resolve()};
wvu=function(f,S,B){var G=this;this.renderFn=f;this.listeners=S;this.context=B;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var g;this.lastSeenPlayerApi=_.A9((g=this.playerControlsData)==null?void 0:g.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.viW(),void 0);_.K("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){XvB(G).setState({playerState:-1});G.resetRecentlyNavigatedJobId&&_.xJ.cancelJob(G.resetRecentlyNavigatedJobId);
G.recentlyNavigated=!0;G.resetRecentlyNavigatedJobId=_.xJ.addJob(function(){G.recentlyNavigated=!1},8,1E4)})};
wvu.prototype.setState=function(f){if(!_.K("mweb_player_skip_no_op_state_changes")||!MN2(f,this.state))if(this.state=Object.assign({},this.state,f),!_.K("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)f=-1,_.K("player_controls_log_creation_killswitch")||ZQY()||(f=(0,_.fO)()),_.kT("pcu_s"),_.kT("pcu_se"),_.kT("pcu_rs"),this.renderFn(XvB(this)),_.kT("pcu_re"),tNM(f),_.xJ.addJob(function(){_.kT("pcu_ap")},8)};
var XvB=function(f){var S;var B=_.A9((S=f.playerControlsData)==null?void 0:S.playerApi);return Object.assign({},f.state,{setState:f.boundSetState,domMeasurements:{progressBarLineRect:f.progressBarLineRect},playerApi:B,appApi:f.context.appApi,playerContainer:f.context.playerContainer,playerControlContainer:f.context.playerControlContainer,uxConfig:f.context.uxConfig})},heo=function(f){f.listeners.forEach(function(S){f.eventListenerCleanupFunctions.push(S.register(function(){return XvB(f)},function(){return f.getData()}))})},
Tjo=function(f){f.eventListenerCleanupFunctions.forEach(function(S){S()});
f.eventListenerCleanupFunctions.length=0};
wvu.prototype.getData=function(){return this.playerControlsData};
var wJ=new _.u("abuseReportFlowState");var OSu=new _.u("feedbackFormFlowState");var xRu=new _.u("inputBoxViewModel");var EAo=new _.u("flowNextStepCommand");var Lou=new _.u("flowPrevStepCommand");var kSM=new _.u("updateFlowCommand");_.nAz=new _.u("flowStepRenderer");_.Ooo=new _.u("lengthValidationRule");var Evo=new _.u("regexValidationRule");var kWZ=new _.u("selectedValidationRule");var sKX=new _.u("talkToRecsViewModel");var DRO=new _.u("creatorGoalSetUpFlowDropdownItemViewModel");var IL2=new _.u("creatorGoalSetUpFlowDropdownViewModel");var mRe=new _.u("thumbnailBadgeViewModel");_.URO=new _.u("radioButtonGroupViewModel");var urM=new _.u("panelFooterViewModel");var C5e=new _.u("ypcCancelRecurrenceCommand");var pv2=new _.u("cancellationFlowState");var vvX=new _.u("premiumPurchaseFlowState");var Aa$=new _.u("surveyAnswerCardRenderer");var NjY=new _.u("showMoreButtonRenderer");var MIz;var ZSn,tIY=function(){if(ZSn!==void 0)return ZSn;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;MIz===void 0&&(MIz=document.createElement("template"));var G=MIz;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return ZSn=f};var hP=function(){var f=_.I.apply(this,arguments)||this;f.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";f.goalDescription="";f.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";f.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";f.startButtonId="start-button";f.exampleButtonId="example-button";return f};
_.q(hP,_.I);_.e=hP.prototype;_.e.getGoalDropdownItems=function(){var f,S;return(S=_.H((f=this.data)==null?void 0:f.purchaseTargetDropdown,IL2))==null?void 0:S.dropdownItems};
_.e.getTimerDropdownItems=function(){var f,S;return(S=_.H((f=this.data)==null?void 0:f.timerDropdown,IL2))==null?void 0:S.dropdownItems};
_.e.getColorDropdownItems=function(){var f,S;return(S=_.H((f=this.data)==null?void 0:f.colorDropdown,IL2))==null?void 0:S.dropdownItems};
_.e.getDropdownItemText=function(f){var S;return(S=_.H(f,DRO))==null?void 0:S.itemLabel};
_.e.getDropdownItemValue=function(f){f=_.H(f,DRO);return(f==null?void 0:f.timeLimit)||(f==null?void 0:f.purchaseTarget)||(f==null?void 0:f.eligiblePurchaseType)};
_.e.updateFlowState=function(f){_.bW(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:f}])};
_.e.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.e.updateGoalValue=function(f){this.goal=f.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.e.onTextValueChanged=function(f){this.goalDescription=f.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.e.updateTimerValue=function(f){this.timer=f.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.e.updateTierValue=function(f){this.tier=f.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.e.getButtonViewModel=function(f){f=(f==null?void 0:f.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var S,B=_.H((S=this.data)==null?void 0:S.startGoalButton,_.Q5);return Object.assign({},B,{state:f})};
_.y3.Object.defineProperties(hP,{template:{configurable:!0,enumerable:!0,get:function(){return tIY()}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],hP.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],hP.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],hP.prototype,"goal",void 0);_.N([_.n(),_.Z("design:type",Object)],hP.prototype,"goalDescription",void 0);_.N([_.n(),_.Z("design:type",Object)],hP.prototype,"timer",void 0);_.N([_.n(),_.Z("design:type",Object)],hP.prototype,"tier",void 0);
_.N([_.n(),_.Z("design:type",Object)],hP.prototype,"startButtonId",void 0);_.N([_.n(),_.Z("design:type",Object)],hP.prototype,"exampleButtonId",void 0);_.N([_.nP({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],hP);_.p(hP,"yt-creator-goal-set-up-flow-view-model",function(){return tIY()},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var u92;var aLu;var yaM;var Wou=function(){return _.I.apply(this,arguments)||this};
_.q(Wou,_.I);_.N([_.n(),_.Z("design:type",Object)],Wou.prototype,"data",void 0);_.N([_.nP({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],Wou);
_.p(Wou,"yt-survey-answer-card-renderer",function(){if(yaM===void 0){var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;aLu===void 0&&(aLu=document.createElement("template"));var G=aLu;B.call(S,G.content.cloneNode(!0),f.content.firstChild);yaM=f}f=yaM;return f},{mode:2});var caY;var lLu;var Tv=function(){return _.I.apply(this,arguments)||this};
_.q(Tv,_.I);_.e=Tv.prototype;_.e.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.e.selectedItemChanged=function(f){_.bW(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[f.feedbackToken||""]}])};
_.e.surveyAnswerCardRendererClicked=function(f){if(f.target&&_.H(f.model.item,Aa$)){var S=f.target;f=_.H(f.model.item,Aa$);f.onTapCommand?_.Xh(S,[f.onTapCommand],S):this.data.onTapCommand&&_.Xh(S,[this.data.onTapCommand],S);this.selectedItemChanged(f)}};
_.e.checkIsCancellationStyle=function(f){return f==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.e.updateSelectedItemFromBinding=function(f){this.selectedItem=f.detail.value};
Tv.prototype.onSelectedItemChanged=Tv.prototype.onSelectedItemChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Tv.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Tv.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],Tv.prototype,"selectedItem",void 0);_.N([_.n({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],Tv.prototype,"isCancellationStyle",void 0);
_.N([_.JO("selectedItem"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Tv.prototype,"onSelectedItemChanged",null);_.N([_.nP({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],Tv);
_.p(Tv,"yt-survey-flow-step-renderer",function(){if(lLu===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;caY===void 0&&(caY=document.createElement("template"));var G=caY;B.call(S,G.content.cloneNode(!0),f.content.firstChild);lLu=f}f=lLu;return f},{mode:2});var FP=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return f};
_.q(FP,_.I);FP.prototype.handleSurveyFlowStepOptionChanged=function(f){this.ytdReduxBehavior.dispatch(_.ef({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:f}));_.bW(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:f}}])};
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],FP.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],FP.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],FP.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],FP);
_.p(FP,"ytd-survey-flow-step-renderer",function(){if(u92!==void 0)return u92;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return u92=f},{mode:1});var uzz;uzz=_.$K({avatarViewModel:_.Ya,buttonViewModel:_.I8,subscribeButtonViewModel:_.$q,imageBannerViewModel:_.Mv6});_.fxu=_.dm(_.ym2);_.Su(_.ym2);var op2;var Vu=function(){return _.I.apply(this,arguments)||this};
_.q(Vu,_.I);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Vu.prototype,"ytComponentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Vu.prototype,"data",void 0);_.N([_.C({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],Vu);
_.p(Vu,"ytd-channel-history-renderer",function(){if(op2!==void 0)return op2;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return op2=f},{mode:1});var SvO;var BA2=function(){return _.I.apply(this,arguments)||this};
_.q(BA2,_.I);_.N([_.n(),_.Z("design:type",Object)],BA2.prototype,"data",void 0);_.N([_.C({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],BA2);
_.p(BA2,"ytd-feature-enablement-info-renderer",function(){if(SvO!==void 0)return SvO;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return SvO=f},{mode:1});var G1u;var gpu;var JP=function(){var f=_.I.apply(this,arguments)||this;f.textBoxMaxLength=_.K("enable_tvod_campaign_code_integration")?15:12;return f};
_.q(JP,_.I);_.e=JP.prototype;_.e.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.e.onSubmit=function(){var f=this.data.serviceEndpoint,S=_.H(f,_.mv);S&&f&&(S.couponCode=this.userInput,_.oy().resolve(_.S7).resolveCommand(f,{form:{element:this.hostElement}}))};
_.e.validate=function(){var f=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=f&&!this.data.errorMessage;this.showErrorMessage=f&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.K("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.e.computeStyle=function(f){return f};
_.e.computeShowValidationBelowInput=function(f){return f!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.e.updateUserInputFromBinding=function(f){this.userInput=f.currentTarget.value};
_.e.updateShowErrorMessageFromBinding=function(f){this.showErrorMessage=f.detail.value};
_.y3.Object.defineProperties(JP.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
JP.prototype.dataChanged=JP.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],JP.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],JP.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",String)],JP.prototype,"userInput",void 0);_.N([_.n(),_.Z("design:type",Boolean)],JP.prototype,"disableApplyButton",void 0);_.N([_.n(),_.Z("design:type",Boolean)],JP.prototype,"hideApplyButton",void 0);
_.N([_.n(),_.Z("design:type",Boolean)],JP.prototype,"hideErrorMessage",void 0);_.N([_.n(),_.Z("design:type",Boolean)],JP.prototype,"showTick",void 0);_.N([_.n(),_.Z("design:type",Boolean)],JP.prototype,"showErrorMessage",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Z("design:type",String)],JP.prototype,"couponStyle",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.Z("design:type",Boolean)],JP.prototype,"showValidationBelowInput",void 0);_.N([_.n(),_.Z("design:type",Object)],JP.prototype,"textBoxMaxLength",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],JP.prototype,"dataChanged",null);
_.N([_.k("showTick","showErrorMessage","userInput"),_.Z("design:type",String),_.Z("design:paramtypes",[])],JP.prototype,"validationState",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],JP);
_.p(JP,"ytd-ypc-coupon-renderer",function(){if(gpu!==void 0)return gpu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return gpu=f},{mode:1});var PT=function(){return _.I.apply(this,arguments)||this};
_.q(PT,_.I);PT.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"}}}};
PT.prototype.computeStyle=function(f){return f};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],PT.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],PT.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],PT.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Z("design:type",String)],PT.prototype,"buttonStyle",void 0);_.N([_.C({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],PT);
_.p(PT,"ytd-flow-bottom-bar-renderer",function(){if(G1u!==void 0)return G1u;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return G1u=f},{mode:1});var evY;var bje;var m9z;var vT=function(){return _.I.apply(this,arguments)||this};
_.q(vT,_.I);vT.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
vT.prototype.focus=function(f){this.title&&_.ty(this.title,f)};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],vT.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],vT.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],vT.prototype,"data",void 0);_.N([_.vF("#title"),_.Z("design:type",HTMLElement)],vT.prototype,"title",void 0);_.N([_.C({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],vT);
_.p(vT,"ytd-flow-top-bar-renderer",function(){if(m9z!==void 0)return m9z;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return m9z=f},{mode:1});var zv$;var RvO;var XWM;var KE=function(){return _.I.apply(this,arguments)||this};
_.q(KE,_.I);KE.prototype.freeTextValueChanged=function(){_.bW(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
KE.prototype.updateFreeTextValueFromBinding=function(f){this.freeTextValue=f.detail.value};
_.y3.Object.defineProperties(KE.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var f,S,B=(S=(f=this.data)==null?void 0:f.responseMaxLength)!=null?S:500,G;return((G=this.freeTextValue)!=null?G:"").length>=B?"maxed-out":""}}});
KE.prototype.freeTextValueChanged=KE.prototype.freeTextValueChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],KE.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],KE.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",String)],KE.prototype,"freeTextValue",void 0);_.N([_.vF("#user-input"),_.Z("design:type",HTMLTextAreaElement)],KE.prototype,"input",void 0);
_.N([_.k("freeTextValue"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],KE.prototype,"characterLimitClass",null);_.N([_.JO("freeTextValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],KE.prototype,"freeTextValueChanged",null);_.N([_.nP({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],KE);
_.p(KE,"yt-free-text-input-flow-step-renderer",function(){if(XWM===void 0){var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;RvO===void 0&&(RvO=document.createElement("template"));var G=RvO;B.call(S,G.content.cloneNode(!0),f.content.firstChild);XWM=f}f=XWM;return f},{mode:2});var dJ=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return f};
_.q(dJ,_.I);dJ.prototype.handleFreeTextFlowStepInputChanged=function(f){_.bW(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:f}}])};
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],dJ.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],dJ.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],dJ.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],dJ);
_.p(dJ,"ytd-free-text-input-flow-step-renderer",function(){if(zv$!==void 0)return zv$;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return zv$=f},{mode:1});var wWM;var hve;var TAZ=function(){return _.I.apply(this,arguments)||this};
_.q(TAZ,_.I);_.N([_.n(),_.Z("design:type",Object)],TAZ.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],TAZ);
_.p(TAZ,"ytd-metadata-line-renderer",function(){if(hve!==void 0)return hve;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return hve=f},{mode:1});var iM=function(){return _.I.apply(this,arguments)||this};
_.q(iM,_.I);iM.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],iM.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],iM.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],iM.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],iM.prototype,"isMasthead",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],iM);
_.p(iM,"ytd-media-product-renderer",function(){if(wWM!==void 0)return wWM;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return wWM=f},{mode:1});var F82;var HT=function(){return _.I.apply(this,arguments)||this};
_.q(HT,_.I);HT.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
HT.prototype.onBillboardImageLoaded=function(){_.ew(this.hostElement,"yt-refit")};
HT.prototype.onBillboardImageLoaded=HT.prototype.onBillboardImageLoaded;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],HT.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],HT.prototype,"data",void 0);_.N([_.vF("#billboardImage"),_.Z("design:type",Object)],HT.prototype,"billboardImage",void 0);_.N([_.Vg("yt-img-shadow-loaded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],HT.prototype,"onBillboardImageLoaded",null);
_.N([_.C({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],HT);
_.p(HT,"ytd-billboard-masthead-renderer",function(){if(F82!==void 0)return F82;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return F82=f},{mode:1});var Vpo;var q3=function(){var f=_.I.apply(this,arguments)||this;f.smallSize=!1;return f};
_.q(q3,_.I);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],q3.prototype,"ytComponentBehaviorType",void 0);_.N([_.n(),_.Z("design:type",Object)],q3.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],q3.prototype,"smallSize",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],q3);
_.p(q3,"ytd-bullet-formatted-string",function(){if(Vpo!==void 0)return Vpo;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Vpo=f},{mode:1});var Jj$;var $F=function(){return _.I.apply(this,arguments)||this};
_.q($F,_.I);$F.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],$F.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],$F.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],$F.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],$F);
_.p($F,"ytd-offer-detail-renderer",function(){if(Jj$!==void 0)return Jj$;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Jj$=f},{mode:1});var PvB;var Qu=function(){return _.I.apply(this,arguments)||this};
_.q(Qu,_.I);Qu.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"}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Qu.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Qu.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Qu.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],Qu);
_.p(Qu,"ytd-offer-detail-step-renderer",function(){if(PvB!==void 0)return PvB;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return PvB=f},{mode:1});var vpM;var YF=function(){var f=_.I.apply(this,arguments)||this;f.isInOfferModule=!1;return f};
_.q(YF,_.I);_.e=YF.prototype;_.e.computeHasEndpoint=function(){var f;return!((f=this.data)==null||!f.onClickCommand)};
_.e.dataChanged=function(){var f;if((f=this.data)==null?0:f.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")};
_.e.detached=function(){var f;if((f=this.data)==null?0:f.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.e.handleClickEvent=function(){var f;if((f=this.data)==null?0:f.onClickCommand){var S;this.componentBehavior.resolveCommand((S=this.data)==null?void 0:S.onClickCommand)}};
_.e.onContentKeyDown=function(f){f.key==="Enter"?this.handleClickEvent(f):f.key===" "&&f.preventDefault()};
_.e.onContentKeyUp=function(f){f.key===" "&&this.handleClickEvent(f)};
YF.prototype.dataChanged=YF.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],YF.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],YF.prototype,"componentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],YF.prototype,"data",void 0);_.N([_.n({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],YF.prototype,"hasEndpoint",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],YF.prototype,"isInOfferModule",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],YF.prototype,"dataChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],YF);
_.p(YF,"ytd-channel-masthead-renderer",function(){if(vpM!==void 0)return vpM;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return vpM=f},{mode:1});var K8u;var rJ=function(){var f=_.I.apply(this,arguments)||this;f.thumbnailObjectFit="CONTAIN";f.thumbnailObjectPosition="LEFT";f.isExpanded=!1;return f};
_.q(rJ,_.I);_.e=rJ.prototype;_.e.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.e.dataChanged=function(){this.resetStates()};
_.e.computeisTapOnOfferInfoContainerEnabled=function(){var f;return((f=this.data)==null?void 0:f.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.e.onExpandBtnClick=function(){var f,S=_.H((f=this.data)==null?void 0:f.showMoreButtonRenderer,NjY);S&&_.TE(_.ik(),S.trackingParams);this.isExpanded=!this.isExpanded};
_.e.onOfferInfoClick=function(f){this.isTapOnOfferInfoContainerEnabled&&(_.lF(_.ct(f)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.fF(_.ct(f)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.e.onBottomBarClick=function(){this.executeTapCommand()};
_.e.executeTapCommand=function(){var f,S=(f=this.data)==null?void 0:f.tapCommand;S&&this.ytComponentBehavior.resolveCommand(S)};
_.e.resetStates=function(){this.isExpanded=!1};
_.y3.Object.defineProperties(rJ.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var f=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),S,B,G;return((S=this.data)==null?void 0:S.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&f&&!!((B=this.data)==null?0:(G=B.benefits)==null?0:G.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var f,S,B;return((S=_.H((f=this.data)==null?void 0:f.showMoreButtonRenderer,NjY))==null?void 0:S.showMoreButtonTitle)||((B=this.data)==null?void 0:B.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var f,S,B;return((S=_.H((f=this.data)==null?void 0:f.showMoreButtonRenderer,NjY))==null?void 0:S.showLessButtonTitle)||((B=this.data)==null?void 0:B.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var f;return(f=this.showLessButtonTitle)!=null?f:""}var S;return(S=this.showMoreButtonTitle)!=null?S:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var f,S,B;return((f=this.data)==null?void 0:f.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((S=this.data)==null?0:S.footerTitle)||((B=this.data)==null?0:B.footerSubtitle))}}});
rJ.prototype.dataChanged=rJ.prototype.dataChanged;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],rJ.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],rJ.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],rJ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",String)],rJ.prototype,"thumbnailObjectFit",void 0);
_.N([_.n(),_.Z("design:type",String)],rJ.prototype,"thumbnailObjectPosition",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.Z("design:type",Boolean)],rJ.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.N([_.n(),_.Z("design:type",Object)],rJ.prototype,"isExpanded",void 0);_.N([_.n(),_.Z("design:type",Object)],rJ.prototype,"data",void 0);_.N([_.n({computed:"computeIcon_(data.footerIcon)"}),_.Z("design:type",String)],rJ.prototype,"icon",void 0);
_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],rJ.prototype,"dataChanged",null);_.N([_.k("data.thumbnail"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],rJ.prototype,"hasThumbnail",null);_.N([_.k("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],rJ.prototype,"enableExpandButton",null);
_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],rJ.prototype,"enableOfferContentIcon",null);_.N([_.k("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],rJ.prototype,"showMoreButtonTitle",null);_.N([_.k("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],rJ.prototype,"showLessButtonTitle",null);
_.N([_.k("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.Z("design:type",String),_.Z("design:paramtypes",[])],rJ.prototype,"expandedBtnText",null);_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],rJ.prototype,"enableBottomBar",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],rJ);
_.p(rJ,"ytd-offer-card-renderer",function(){if(K8u!==void 0)return K8u;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return K8u=f},{mode:1});var d9Y;var j4=function(){return _.I.apply(this,arguments)||this};
_.q(j4,_.I);j4.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"}}}};
j4.prototype.onClick=function(f){if(!_.lF(f.composedPath()||[],this.hostElement,["A".toString()])){var S,B;if((f=(B=_.H((S=this.data)==null?void 0:S.actionButton,_.IR))==null?void 0:B.command)&&!this.ytComponentBehavior.resolveCommand(f)){var G;(G=_.ik())==null||G.clickCommand(f);_.oy().resolve(_.S7).resolveCommand(f,{form:{element:this.hostElement}})}}};
_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],j4.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],j4.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],j4.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],j4.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],j4);
_.p(j4,"ytd-offer-content-renderer",function(){if(d9Y!==void 0)return d9Y;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return d9Y=f},{mode:1});var ijo;var OM=function(){return _.I.apply(this,arguments)||this};
_.q(OM,_.I);OM.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.y3.Object.defineProperties(OM.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var f,S;return!((f=this.data)==null||!f.title)||!((S=this.data)==null||!S.description)}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],OM.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],OM.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],OM.prototype,"data",void 0);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],OM.prototype,"hasHeaderData",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],OM);
_.p(OM,"ytd-offer-section-renderer",function(){if(ijo!==void 0)return ijo;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return ijo=f},{mode:1});var HjX;var xF=function(){return _.I.apply(this,arguments)||this};
_.q(xF,_.I);
xF.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"}}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],xF.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],xF.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],xF.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],xF);
_.p(xF,"ytd-offer-selection-step-renderer",function(){if(HjX!==void 0)return HjX;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return HjX=f},{mode:1});var qvo;var EM=function(){return _.I.apply(this,arguments)||this};
_.q(EM,_.I);EM.prototype.computeStyle=function(f){return f};
EM.prototype.computeImageWidth=function(f){return f==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.N([_.n({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.Z("design:type",String)],EM.prototype,"containerStyle",void 0);_.N([_.n({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.Z("design:type",String)],EM.prototype,"imageWidth",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],EM.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],EM.prototype,"data",void 0);
_.N([_.C({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],EM);
_.p(EM,"ytd-confirmation-masthead-renderer",function(){if(qvo!==void 0)return qvo;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return qvo=f},{mode:1});var $9M;var LE=function(){return _.I.apply(this,arguments)||this};
_.q(LE,_.I);LE.prototype.computeStyle=function(f){return f};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],LE.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],LE.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.Z("design:type",String)],LE.prototype,"containerStyle",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],LE);
_.p(LE,"ytd-purchase-complete-detail-renderer",function(){if($9M!==void 0)return $9M;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return $9M=f},{mode:1});var Q0u;var kF=function(){var f=_.I.apply(this,arguments)||this;f.scriptsAppended=!1;return f};
_.q(kF,_.I);kF.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"}}}};
kF.prototype.onDataChanged=function(){var f=this.get("data.gtmId");f&&(_.Oj(f,_.nL("GL","")),this.setupConversionTracking())};
kF.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var f=document.createElement("noscript");f.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(f);this.scriptsAppended=!0}};
kF.prototype.onDataChanged=kF.prototype.onDataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],kF.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],kF.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],kF.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],kF.prototype,"scriptsAppended",void 0);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],kF.prototype,"onDataChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],kF);
_.p(kF,"ytd-purchase-complete-step-renderer",function(){if(Q0u!==void 0)return Q0u;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Q0u=f},{mode:1});var YvY;var nE=function(){var f=_.I.apply(this,arguments)||this;f.darkerDarkTheme=_.K("web_darker_dark_theme");return f};
_.q(nE,_.I);nE.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],nE.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],nE.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],nE.prototype,"darkerDarkTheme",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],nE);
_.p(nE,"ytd-ypc-transaction-error-message-renderer",function(){if(YvY!==void 0)return YvY;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return YvY=f},{mode:1});var rjM;var j0z;var sM=function(){var f=_.I.apply(this,arguments)||this;f.handlePhoneVerificationSuccess=function(S){if(f.isValidPhoneVerificationCompletionMessageEvent(S)){var B;((B=f.data)==null?0:B.nextStepCommand)&&f.ytComponentBehavior.resolveCommand(f.data.nextStepCommand)}};
return f};
_.q(sM,_.I);sM.prototype.isValidPhoneVerificationCompletionMessageEvent=function(f){if(f.data!=="yt-phone-verification-complete")return!1;f=_.aj(f.origin);return f!==null&&f.includes("youtube.com")};
sM.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
sM.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],sM.prototype,"ytComponentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],sM.prototype,"data",void 0);_.N([_.nP({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],sM);
_.p(sM,"yt-feature-enablement-soft-entry-renderer",function(){if(j0z===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;rjM===void 0&&(rjM=document.createElement("template"));var G=rjM;B.call(S,G.content.cloneNode(!0),f.content.firstChild);j0z=f}f=j0z;return f},{mode:1});var OjX;var x9M;var EpB;var L8$;var k1X=function(){return _.I.apply(this,arguments)||this};
_.q(k1X,_.I);_.N([_.n(),_.Z("design:type",Object)],k1X.prototype,"data",void 0);_.N([_.nP({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],k1X);
_.p(k1X,"yt-benefits-item-renderer",function(){if(L8$===void 0){var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;EpB===void 0&&(EpB=document.createElement("template"));var G=EpB;B.call(S,G.content.cloneNode(!0),f.content.firstChild);L8$=f}f=L8$;return f},{mode:2});var np$;var s0e;var Dj=function(){return _.I.apply(this,arguments)||this};
_.q(Dj,_.I);Dj.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
Dj.prototype.computeisWithoutPadding=function(){var f;return((f=this.data)==null?void 0:f.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Dj.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Dj.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.Z("design:type",Boolean)],Dj.prototype,"isWithoutPadding",void 0);_.N([_.nP({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],Dj);
_.p(Dj,"yt-benefits-section-renderer",function(){if(s0e===void 0){var f=document.createElement("template");_.Y(f,'\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>');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;np$===void 0&&(np$=document.createElement("template"));var G=np$;B.call(S,G.content.cloneNode(!0),f.content.firstChild);s0e=f}f=s0e;return f},{mode:2});var I7=function(){return _.I.apply(this,arguments)||this};
_.q(I7,_.I);I7.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
I7.prototype.computeisUsingLargeWidth=function(){var f;return((f=this.data)==null?void 0:f.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],I7.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],I7.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.Z("design:type",Boolean)],I7.prototype,"isUsingLargeWidth",void 0);_.N([_.nP({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],I7);
_.p(I7,"yt-benefits-flow-step-renderer",function(){if(x9M===void 0){var f=document.createElement("template");_.Y(f,'\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>');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;OjX===void 0&&(OjX=document.createElement("template"));var G=OjX;B.call(S,G.content.cloneNode(!0),f.content.firstChild);x9M=f}f=x9M;return f},{mode:2});var D9u;var Ix$;var UM=function(){return _.I.apply(this,arguments)||this};
_.q(UM,_.I);UM.prototype.checkIsUsingLargeWidth=function(){var f;return((f=this.data)==null?void 0:f.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.N([_.n(),_.Z("design:type",Object)],UM.prototype,"data",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],UM.prototype,"ytRendererBehavior",void 0);_.N([_.n({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.Z("design:type",Boolean)],UM.prototype,"isUsingLargeWidth",void 0);_.N([_.nP({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],UM);
_.p(UM,"yt-confirmation-flow-step-renderer",function(){if(Ix$===void 0){var f=document.createElement("template");_.Y(f,'\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>');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;D9u===void 0&&(D9u=document.createElement("template"));var G=D9u;B.call(S,G.content.cloneNode(!0),f.content.firstChild);Ix$=f}f=Ix$;return f},{mode:2});var U9u;var Cvz;var pWB=function(){return _.I.apply(this,arguments)||this};
_.q(pWB,_.I);_.N([_.n(),_.Z("design:type",Object)],pWB.prototype,"data",void 0);_.N([_.nP({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],pWB);
_.p(pWB,"yt-info-flow-step-renderer",function(){if(Cvz===void 0){var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;U9u===void 0&&(U9u=document.createElement("template"));var G=U9u;B.call(S,G.content.cloneNode(!0),f.content.firstChild);Cvz=f}f=Cvz;return f},{mode:2});var AjB;var NA$;var Mpo=function(){return _.I.apply(this,arguments)||this};
_.q(Mpo,_.I);_.N([_.n(),_.Z("design:type",Object)],Mpo.prototype,"data",void 0);_.N([_.nP({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],Mpo);
_.p(Mpo,"yt-info-list-flow-step-renderer",function(){if(NA$===void 0){var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;AjB===void 0&&(AjB=document.createElement("template"));var G=AjB;B.call(S,G.content.cloneNode(!0),f.content.firstChild);NA$=f}f=NA$;return f},{mode:2});var Zju=_.oS(function(f){var S=f.data;return _.T("styled-text-view-model",{class:_.Pw("ytStyledTextViewModelHost",function(){return zQu(S().fontAttributes)},function(){return mvM(S().color)})},_.T(_.oY,{text:function(){return S().text},
ariaLabel:function(){var B,G,g;return(g=(B=S().accessibility)==null?void 0:(G=B.accessibilityData)==null?void 0:G.label)!=null?g:""}}))},"af");
Zju.idomCompat=!0;var tpn=_.oS(function(f){var S=function(){var g,b,z,X;return(X=(z=(g=f.alt)==null?void 0:g.call(f))!=null?z:(b=f.data().accessibilityData)==null?void 0:b.label)!=null?X:""},B=function(){return f.data().imageWidth},G=function(){return f.data().imageHeight};
return _.T("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.T(_.v,{cond:function(){var g=f.data();if(g){var b,z,X;var w=((b=_.oy().resolve(_.fN(_.yU)))==null?0:b())?(z=g.imageDark)!=null?z:g.imageLight:(X=g.imageLight)!=null?X:g.imageDark}else w=void 0;return w},
then:function(g){return _.T(_.f9,Object.assign({},f,{data:g,alt:S,targetWidth:B,targetHeight:G,preserveHeight:!0,preserveWidth:!0}))}}))},"bf");
tpn.idomCompat=!0;var CE=_.oS(function(f){var S=f.data;f=_.cF(function(){return S().slots},[]);
var B=_.cF(function(){return S().layoutProperties},{}),G=_.oy().resolve(_.cs);
return _.T("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:BuM(B,G)},_.T(_.dg,{each:f,keyBy:"INDEX"},function(g){return _.T("div",{class:"ytContainerLayoutViewModelSlot",style:BuM(function(){return g().layoutProperties},G)},_.T(_.xK,{data:function(){return g().contents}},{containerLayoutViewModel:CE,
badgeViewModel:_.fp,buttonViewModel:_.I8,styledTextViewModel:Zju,contentPreviewImageViewModel:function(b){return _.T(_.oC,{data:b.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(b){return _.T(tpn,{data:b.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"cf");
CE.idomCompat=!0;var uEu=_.oS(function(f){var S=f.data;var B=f.stateFns;var G=function(){var F=S(),V=F.productId;return!(!F.clearGroupId&&!V)},g=function(){var F=S(),V=F.clearGroupId;
return(F=F.productId)?B().isProductSelected(F):V?B().getSelectedProductByGroupId(V)==null:!1},b=function(){var F=S(),V=F.clearGroupId;
if(F=F.productId)B().onProductSelected(F);else if(V)B().onClearGroupSelected(V)},z=function(){var F=S(),V=F.clearGroupId;
if(F=F.productId){var J;return"group:"+(((J=B().getProductById(F))==null?void 0:J.groupId)||"")}return V?"group:"+V:""},X=_.cF(function(){return S().header},[]),w=_.cF(function(){return S().body},[]);
return _.T("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.T(_.v,{cond:function(){return X().length>0||G()},
then:function(){return _.T("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.T("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.T(_.xK,{data:X},{containerLayoutViewModel:function(F){return _.T("div",{class:"ytPdpCardSectionViewModelContentItem"},_.T(CE,{data:F.data}))},
styledTextViewModel:function(F){return _.T("div",{class:"ytPdpCardSectionViewModelContentItem"},_.T(Zju,{data:F.data}))}})),_.T(_.v,{cond:G,
then:function(){return _.T("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.T(_.QL,{checked:g,name:z,onChange:b}))}}))}}),_.T(_.v,{cond:function(){return w().length>0},
then:function(){return _.T("div",null,_.T(_.xK,{data:w},{containerLayoutViewModel:function(F){return _.T("div",{class:"ytPdpCardSectionViewModelContentItem"},_.T(CE,{data:F.data}))}}))}}))},"df");
uEu.idomCompat=!0;var axM=_.oS(function(f){var S=f.data;var B=f.stateFns;return _.T("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.T(_.v,{cond:function(){return S().banner},
then:function(G){return _.T("div",{class:"ytPdpCardViewModelBanner"},_.T(_.oY,{text:G}))}}),_.T(_.xK,{data:function(){return S().sections}},{pdpCardSectionViewModel:function(G){G=G.data;
var g={};return _.T("div",{class:_.Pw("ytPdpCardViewModelSectionContainer",(g.ytPdpCardViewModelShowDividers=function(){return S().showDividers},g))},_.T(uEu,{data:G,
stateFns:B}))}}))},"ef");
axM.idomCompat=!0;var yjM=_.oS(function(f){var S=f.data;var B=f.isOverlay;f={};return _.T("pdp-masthead-view-model",{class:_.Pw("ytPdpMastheadViewModelHost",(f.ytPdpMastheadViewModelIsOverlay=B,f))},_.T(_.xK,{data:function(){return S().image}},{contentPreviewImageViewModel:_.oC,
themedImageViewModel:function(G){return _.T(tpn,{data:G.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.T(_.v,{cond:function(){return S().title},
then:function(G){return _.T("h1",{class:"ytPdpMastheadViewModelHeading"},_.T(_.oY,{text:G,isOverlay:B}))}}),_.T(_.dg,{each:function(){var G;
return(G=S().finePrint)!=null?G:[]}},function(G){return _.T("div",{class:"ytPdpMastheadViewModelFinePrint"},_.T(_.oY,{text:G,
isOverlay:B}))}))},"ff");
yjM.idomCompat=!0;var W8e=_.oS(function(f){var S=f.data;var B=f.stateFns;var G=function(){return"pdp-pricing-group-selector-"+S().pricingGroupAttributeIds},g=_.cF(function(){return S().pricingGroupSelectorSectionHeader});
return _.T("pdp-pricing-group-selector-view-model",null,_.T(_.v,{cond:function(){return!!g()},
then:function(){return _.T(_.xK,{data:g},{sectionHeaderViewModel:function(b){b=b.data;var z={};return _.T("div",{class:_.Pw("ytPdpPricingGroupSelectorViewModelSectionHeader",(z.ytPdpPricingGroupSelectorViewModelFullBleed=!0,z.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,z))},_.T(_.gt,{data:b}))}})}}),_.T("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.T(_.dg,{each:function(){var b=B().getSelectedProductByGroupId(S().groupId);
if(!b)return _.EU(Error("Jj`"+S().groupId)),[];var z,X=(z=S().pricingGroupAttributeIds)!=null?z:[],w;if((w=b.pricingGroups)==null||!w.length||!X.length)return[];z=b.pricingGroups.filter(function(P){return X.length?P.pricingGroupAttributes.every(function(d){return X.includes(d)}):!1});
b=[];if(X.length>0){z=[].concat(_.$d(z));w=_.m(X);for(var F=w.next(),V={};!F.done;V={targetAttrId:void 0},F=w.next())V.targetAttrId=F.value,F=z.findIndex(function(P){return function(d){return d.pricingGroupAttributes.includes(P.targetAttrId)}}(V)),F!==-1&&(b.push(z[F]),z.splice(F,1))}var J=B().getSelectedPricingGroupAttributesByGroupId(S().groupId);
return b.map(function(P){var d=!1;J&&P.pricingGroupAttributes&&(d=zv(P.pricingGroupAttributes,J));return{pricingGroup:P,isSelected:d}})},
keyBy:function(b){return b.pricingGroup.pricingGroupId}},function(b){return _.T("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.T("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.T(_.xK,{data:function(){return b().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:CE})),_.T("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.T(_.QL,{checked:function(){return b().isSelected},
name:G,onClick:function(){B().onPricingGroupSelected(b().pricingGroup.pricingGroupId)}})))})))},"gf");
W8e.idomCompat=!0;var cjz=_.oS(function(f){var S=f.data;var B=f.stateFns;var G=function(){var z=B().getSelectedPricingOptions().map(function(F){return F.pricingOptionId}),X=B().getSelectedProductByGroupId(S().groupId);
if(!X)return _.EU(Error("Kj`"+S().groupId)),[];var w=B().getSelectedPricingGroupAttributesByGroupId(S().groupId);return hQz(X.pricingOptions,w,z)},g=_.cF(function(){return S().pricingOptionSelectorSectionHeader}),b=function(){return G().length>1};
return _.T("pdp-pricing-option-selector-view-model",null,_.T(_.v,{cond:function(){return!!g()&&b()},
then:function(){return _.T(_.xK,{data:g},{sectionHeaderViewModel:function(z){z=z.data;var X={};return _.T("div",{class:_.Pw("ytPdpPricingOptionSelectorViewModelSectionHeader",(X.ytPdpPricingOptionSelectorViewModelFullBleed=!0,X.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,X))},_.T(_.gt,{data:z}))}})}}),_.T(_.v,{cond:b,
then:function(){return _.T("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.T(_.dg,{each:G,keyBy:"INDEX"},function(z){return _.T("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.T("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.T(_.xK,{data:function(){return z().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:CE})),_.T("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.T(_.QL,{checked:function(){return z().isSelected},
onClick:function(){B().onPricingOptionSelected(z().pricingOption.pricingOptionId);var X=z().pricingOption.onSelectPricingOption;if(X=_.CH(X)){var w;(w=_.oy().resolve(_.S7))==null||w.resolveCommand(X)}}})))}))}}))},"hf");
cjz.idomCompat=!0;var lxM=_.oS(function(f){var S=f.data;var B=f.stateFns;return _.T("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.T(_.xK,{data:function(){var G,g;return(g=(G=B().getSelectedPricingOptions()[0])==null?void 0:G.primaryButton)!=null?g:S().emptyStateButton}},{buttonViewModel:_.I8}))},"jf");
lxM.idomCompat=!0;var ftO=_.oS(function(f){var S=f.stateFns;return _.T("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.T(_.xK,{data:function(){return S().getSelectedPricingOptions().flatMap(function(B){return B.summaryLines}).filter(function(B){return!!B})}},{containerLayoutViewModel:function(B){return _.T("div",{class:"ytPdpSummaryViewModelLineItem"},_.T(CE,{data:B.data}))}}))},"kf");
ftO.idomCompat=!0;var o5u=_.oS(function(f){function S(E){var U=z();_.WF(_.LF("pdpStateEntity",U,{key:U,selectedPricingOptions:E}))}
var B=f.data;var G=f.internalScrolling;var g=f.stateFnsForTesting;var b=_.cF(function(){return B().allProducts},[]),z=_.cF(function(){return B().pdpStateEntityKey},""),X=_.v8(TuZ,z),w=_.vW(function(){_.Ev(!0);
var E;return(E=g==null?void 0:g())!=null?E:Vru(X,b,S)},void 0,"pjJzrd"),F=_.cF(function(){return B().body},[]),V=_.cF(function(){return B().columnBreakHints},[]),J=function(){return B().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},P=function(){return J()||B().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},d=_.vW(function(){var E=_.fy(B().background),U;
if(E==null?0:(U=E.sources)==null?0:U.length){var A=A===void 0?!0:A;E=_.g4N(void 0,E.sources,void 0,A,A?1E3:void 0,A?void 0:1E3)}else E=null;return E},void 0,"GO4GAe");
f=_.Qj({"--pdp-view-model-background":function(){return d()?"url("+d()+")":void 0}});
var Q={};G=_.Pw("ytPdpViewModelHost",(Q.ytPdpViewModelHasBackground=function(){return P()||!!d()},Q.ytPdpViewModelHasDarkBackground=P,Q.ytPdpViewModelHasScrim=J,Q.ytPdpViewModelInternalScrolling=_.cF(G,!1),Q));
var x=function(E){var U={};return _.Pw("ytPdpViewModelItem",(U.ytPdpViewModelFullBleed=function(){return _.U89(E())==="dividerViewModel"||_.U89(E())==="sectionHeaderViewModel"},U.ytPdpViewModelNoVerticalPadding=function(){return _.U89(E())==="sectionHeaderViewModel"},U))};
_.j9(function(){var E=B().onStartCommand;if(E&&(E=_.CH(E))){var U;(U=_.oy().resolve(_.S7))==null||U.resolveCommand(E)}});
return _.T("pdp-view-model",{class:G,style:f},_.T("div",{class:"ytPdpViewModelColumnContainer"},_.T(_.dg,{each:function(){return Jxn(F(),V())},
keyBy:"INDEX"},function(E){return _.T("div",{class:"ytPdpViewModelColumn"},_.T(_.xK,{data:E},{containerLayoutViewModel:function(U,A){U=U.data;return _.T("div",{class:x(function(){return E()[A()]})},_.T(CE,{data:U}))},
dividerViewModel:function(U,A){U=U.data;return _.T("div",{class:x(function(){return E()[A()]})},_.T(_.cc7,{data:U}))},
pdpCardViewModel:function(U,A){U=U.data;return _.T("div",{class:x(function(){return E()[A()]})},_.T(axM,{data:U,
stateFns:w}))},
pdpMastheadViewModel:function(U,A){U=U.data;return _.T("div",{class:x(function(){return E()[A()]})},_.T(yjM,{data:U,
isOverlay:P}))},
pdpPricingGroupSelectorViewModel:function(U,A){U=U.data;return _.T("div",{class:x(function(){return E()[A()]})},_.T(W8e,{data:U,
stateFns:w}))},
pdpPricingOptionSelectorViewModel:function(U,A){U=U.data;return _.T("div",{class:x(function(){return E()[A()]})},_.T(cjz,{data:U,
stateFns:w}))},
pdpPrimaryButtonViewModel:function(U,A){U=U.data;return _.T("div",{class:x(function(){return E()[A()]})},_.T(lxM,{data:U,
stateFns:w}))},
pdpSummaryViewModel:function(U,A){U=U.data;return _.T("div",{class:x(function(){return E()[A()]})},_.T(ftO,{data:U,
stateFns:w}))},
sectionHeaderViewModel:function(U,A){U=U.data;return _.T("div",{class:x(function(){return E()[A()]})},_.T(_.gt,{data:U}))}}))})))},"lf");
o5u.idomCompat=!0;_.eq(o5u,"pdp-view-model",{props:{data:_.W4,stateFnsForTesting:_.gm,internalScrolling:_.gm}});var S62=_.oS(function(f){var S=f.data;var B=f.className;var G=_.v8(_.eO,function(){return S().flowStateEntityKey});
return _.T("ytm-premium-purchase-button-renderer",{class:_.Pw("yt-premium-purchase-button-renderer",B)},_.T(_.xK,{data:function(){var g;return(g=_.H(G(),vvX))==null?void 0:g.primaryButtonOverride}},{buttonRenderer:function(g){return _.T(_.Nu,{data:g.data,
className:B})},
buttonViewModel:function(g){return _.T(_.I8,{data:g.data,className:B})}}))},"mf");
S62.idomCompat=!0;var Bge=_.oS(function(f){var S=f.data;f=f.className;var B=function(){return PBu(S().style)},G=_.Pw("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",B),g=_.Pw("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",B);
return _.T("yt-flow-bottom-bar-renderer",{class:_.Pw("yt-flow-bottom-bar-renderer",f,B)},_.T(_.xK,{data:function(){return S().secondaryButton}},{buttonRenderer:function(b){return _.T(_.Nu,{data:b.data,
className:g})},
buttonViewModel:function(b){return _.T(_.I8,{data:b.data,className:g})},
premiumPurchaseButtonRenderer:function(b){return _.T(S62,{data:b.data,className:g})}}),_.T(_.xK,{data:function(){return S().primaryButton}},{buttonRenderer:function(b){return _.T(_.Nu,{data:b.data,
className:G})},
buttonViewModel:function(b){return _.T(_.I8,{data:b.data,className:G})},
premiumPurchaseButtonRenderer:function(b){return _.T(S62,{data:b.data,className:G})}}))},"nf");
Bge.idomCompat=!0;_.eq(Bge,"yt-flow-bottom-bar-renderer",{props:{data:_.W4,className:_.W4}});var G8u=_.oS(function(f){var S=_.Pw(f.className,"ytOfferSummaryRendererHost");return _.T("yt-offer-summary-renderer",{class:S},_.T("div",{class:"ytOfferSummaryRendererTextContainer"},_.T("div",{class:"ytOfferSummaryRendererEyebrowText"},_.T(_.oY,{text:function(){return f.data().eyebrowText}})),_.T("div",{class:"ytOfferSummaryRendererTitle"},_.T(_.oY,{text:function(){return f.data().title}})),_.T("div",{class:"ytOfferSummaryRendererSubtitle"},_.T(_.oY,{text:function(){return f.data().subtitle}})),
_.T("div",{class:"ytOfferSummaryRendererFeatureListData"},_.T(_.dg,{each:function(){var B;
return(B=f.data().featureListData)!=null?B:[]}},function(B){var G;
return _.T("div",{class:"ytOfferSummaryRendererFeatureList"},_.T(_.Y8,{icon:(G=B.icon)==null?void 0:G.iconType,active:function(){return B.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(B.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOfferSummaryRendererFeatureListIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOfferSummaryRendererFeatureListIconSmall";default:return"ytOfferSummaryRendererFeatureListIconDefault"}}}),_.T("div",{class:"ytOfferSummaryRendererFeatureListText"},_.T(_.oY,{text:B.text,
className:function(){return B.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.T("div",{class:"ytOfferSummaryRendererDescription"},_.T(_.oY,{text:function(){return f.data().description}}))))},"of");_.eq(_.oS(function(f){var S={};S=_.Pw("ytOfferSummaryFlowStepRendererHost",(S.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=f.shouldDisableHeaderTopMargin,S));return _.T("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:S},_.T("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.T("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.T(_.oY,{text:function(){return f.data().header}})),_.T("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.T(_.oY,{text:function(){return f.data().subtitle}}))),_.T("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.T(_.xK,{data:function(){return f.data().offerSummary}},{offerSummaryRenderer:function(B){return _.T(G8u,{data:B.data,
className:f.flowClassName})}})))},"pf"),"yt-offer-summary-flow-step-renderer",{props:{data:_.gm,
flowClassName:_.gm,flowStateEntityKey:_.gm,shouldDisableHeaderTopMargin:_.gm}});var g5u=_.oS(function(f){var S=f.data;var B=f.className;var G=f.flowStateEntityKey;var g=f.selectionStepStyle;f=_.iF(function(w){var F=S(),V=G==null?void 0:G();w.target&&(w.stopPropagation(),w=V||"",V=_.eO(_.al().getState(),w),F=Object.assign({},V,{premiumPurchaseFlowState:{selectedOptionId:F.optionId,primaryButtonOverride:F.primaryButtonOverride}}),_.al().dispatch(_.KF("flowStateEntity",w,F)));return!1});
var b=function(){return(G==null?void 0:G())||""},z=_.v8(_.eO,b);
_.j9(function(){var w=S(),F=b(),V=z();w.defaultSelected&&F!==""&&w.primaryButtonOverride&&Ka$(w.optionId||"",F,w.primaryButtonOverride,V)});
var X={};return _.T("ytm-option-item-renderer",{"on:click":f,class:_.Pw(B,"ytm-option-item-renderer",(X["ytm-option-item-renderer--lp2-style"]=function(){return(g==null?void 0:g())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},X))},_.T("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.T("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var w=S(),F=b(),V=z();V=_.H(V,vvX);return(V?(V==null?void 0:V.selectedOptionId)||"":w.defaultSelected&&F!==""?(w==null?void 0:w.optionId)||"":"")===S().optionId},
name:("input"+_.nu(_.qT)).toString()})),_.T("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.T(_.v,{cond:function(){return S().eyebrowText},
then:function(){return _.T("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.T(_.oY,{text:function(){return S().eyebrowText}}))}}),_.T("div",{class:"ytm-option-item-renderer__option-item-title"},_.T(_.oY,{text:function(){return S().title}})),_.T("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.T(_.oY,{text:function(){return S().subtitle}})),_.T(_.v,{cond:function(){return S().featureListData},
then:function(){return _.T("div",{class:"ytm-option-item-renderer__feature-list-data"},_.T(_.dg,{each:function(){return S().featureListData||[]}},function(w){var F,V=(F=w.icon)==null?void 0:F.iconType;
a:switch(w.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":F="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":F="ytm-option-item-renderer__feature-list-icon-small";break a;default:F="ytm-option-item-renderer__feature-list-icon-default"}return _.T("div",{class:"ytm-option-item-renderer__feature-list"},_.T(_.Y8,{icon:V,className:F,active:function(){return w.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.T("div",{class:"ytm-option-item-renderer__feature-list-text"},_.T(_.oY,{text:w.text,
className:function(){return w.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.T("div",{class:"ytm-option-item-renderer__option-item-description"},_.T(_.oY,{text:function(){return S().description}}))))},"qf");var enX=_.oS(function(f){var S=f.data;var B=f.flowClassName;var G=f.flowStateEntityKey;var g=f.selectionStepStyle;return _.T("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.T("div",{class:"yt-option-section-renderer__option-section-header-section"},_.T("div",{class:"yt-option-section-renderer__option-section-header"},_.T(_.oY,{text:function(){return S().title}}),_.T(_.xK,{data:function(){return S().titleBadge}},{badgeViewModel:function(b){return _.T(_.fp,
{data:b.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.T(_.v,{cond:function(){return S().subtitle},
then:function(){return _.T("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.T(_.oY,{text:function(){return S().subtitle}}))}}),_.T(_.v,{cond:function(){return S().featureListData},
then:function(b){return _.T("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.T(_.dg,{each:b},function(z){var X;return _.T("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.T(_.Y8,{icon:(X=z.icon)==null?void 0:X.iconType,active:function(){return z.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(z.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"yt-option-section-renderer__option-section-feature-item-icon-green";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"yt-option-section-renderer__option-section-feature-item-icon-small";default:return"yt-option-section-renderer__option-section-feature-item-icon-default"}}}),_.T("div",{class:"yt-option-section-renderer__option-section-feature-item-text"},_.T(_.oY,{text:z.text,
className:function(){return z.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"yt-option-section-renderer__option-section-feature-item-text-secondary":""}})))}))}}),_.T(_.v,{cond:function(){return S().secondaryTitle},
then:function(){return _.T("div",{class:"yt-option-section-renderer__option-section-secondary-title"},_.T(_.oY,{text:function(){return S().secondaryTitle}}))}}),_.T(_.dg,{each:function(){return S().sectionDisclaimers||[]}},function(b){return _.T("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.T(_.oY,{text:b}))})),_.T(_.xK,{data:function(){return S().optionItems}},{optionItemRenderer:function(b){return _.T("div",{class:"yt-option-section-renderer__option-item"},_.T(g5u,{data:b.data,
className:B,flowStateEntityKey:G,selectionStepStyle:g}))}}),_.T(_.v,{cond:function(){return S().offerText},
then:function(){return _.T("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.T(_.oY,{text:function(){return S().offerText}}))}}))},"rf");
enX.idomCompat=!0;var bLu=_.oS(function(f){var S=f.data;var B=f.flowClassName;var G=f.flowStateEntityKey;f=f.isDesktop;var g=function(){var F;return(F=S().flowStateEntityKey)!=null?F:G==null?void 0:G()},b=function(){return(g==null?void 0:g())||""},z=function(){return S().style},X=_.v8(_.eO,b);
_.j9(function(){var F=S(),V=b(),J=X();!_.H(J,vvX)&&F.noPreselect&&V!==""&&F.defaultButtonOverride&&Ka$("default",V,F.defaultButtonOverride,J)});
var w={};return _.T("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.Pw("ytm-option-selection-flow-step-renderer",(w["ytm-option-selection-flow-step-renderer--desktop"]=f,w["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return S().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},w))},_.T("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"},
_.T("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.T(_.oY,{text:function(){return S().header}})),_.T("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.T(_.oY,{text:function(){return S().subtitle}}))),_.T(_.xK,{data:function(){return S().optionItems||[]}},{optionItemRenderer:function(F){return _.T("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.T(g5u,{data:F.data,
className:B,flowStateEntityKey:g,selectionStepStyle:z}))},
optionSectionRenderer:function(F){return _.T("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.T(enX,{data:F.data,flowClassName:B,flowStateEntityKey:g,selectionStepStyle:z}))}}))},"sf");
bLu.idomCompat=!0;_.eq(bLu,"yt-option-selection-flow-step-renderer",{props:{data:_.W4,flowClassName:_.W4,flowStateEntityKey:_.W4,isDesktop:_.W4}});var dv2,ioB;_.pE=_.oS(function(f){var S=_.lu(f,{type:1,disablePadding:!1,disablePrimaryButton:!1}),B=S.data,G=S.type;f=S.disablePadding;var g=S.disablePrimaryButton,b=S.onClickPrimaryButton,z=function(){return B().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},X=function(){return{disabled:g(),
state:g()?"disabled":"active"}},w=function(){return B().leadingLabel||B().trailingLabel};
S={};return _.T("yt-panel-footer-view-model",{class:_.Pw("yt-panel-footer-view-model-wiz",(S["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return B().shouldHideDivider},S["yt-panel-footer-view-model-wiz--disable-padding"]=f,S))},_.T(_.v,{cond:w,
then:function(){var F={},V={};return _.T("div",{class:_.Pw("yt-panel-footer-view-model-wiz__text-row",(F["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var J=B();return!(!J.leadingLabel&&!J.trailingLabel||!J.primaryButton&&!J.secondaryButton)},F))},_.T(_.oY,{text:function(){return B().leadingLabel},
className:_.Pw((V["yt-panel-footer-view-model-wiz--text-padding"]=w,V))}),_.T(_.oY,{text:function(){return B().trailingLabel}}))}}),_.T(_.v,{cond:z,
then:function(){var F={};return _.T("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.T("div",{class:_.Pw("yt-panel-footer-view-model-wiz__primary-button",(F["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return B().secondaryButton},F))},_.T(_.xK,{data:function(){return B().primaryButton}},{buttonViewModel:function(V){return _.T(_.I8,{data:V.data,
buttonOverrides:X,onClick:b})}})),_.T(_.xK,{data:function(){return B().secondaryButton}},{buttonViewModel:_.I8}))}}),_.T(_.v,{cond:function(){return!z()},
then:function(){var F={},V={},J={};return _.T("div",{class:_.Pw("yt-panel-footer-view-model-wiz__button-row",(F["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===G()},F))},_.T("div",{class:_.Pw("yt-panel-footer-view-model-wiz__button-row--left-button",(V["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===G()},V["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!B().secondaryButton||0===G()},V["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===G()},V))},_.T(_.xK,{data:function(){return B().secondaryButton}},{buttonViewModel:_.I8})),_.T("div",{class:_.Pw("yt-panel-footer-view-model-wiz__primary-button",(J["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===G()||1===G()},J["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===G()},J))},_.T(_.xK,{data:function(){return B().primaryButton}},{buttonViewModel:function(P){return _.T(_.I8,{data:P.data,
buttonOverrides:X,onClick:b})}})))}}))},"tf");
_.pE.idomCompat=!0;_.mpM=_.oS(function(f){f=_.lu(f,{disablePadding:!1});var S=f.data,B=f.disablePadding;f=_.Q$$(function(){return S().formId});
var G=f.onSubmit,g=f.isValid,b=f.isSubmitting;return _.T("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.T(_.xK,{data:function(){return S().panelFooter}},{panelFooterViewModel:function(z){return _.T(_.pE,{data:z.data,
onClickPrimaryButton:function(){G()},
disablePrimaryButton:function(){return!g()||b()},
disablePadding:B})}}))},"uf");_.eq(_.mpM,"yt-form-footer-view-model",{props:{data:_.W4,disablePadding:_.W4}});_.eq(_.oS(function(f){return _.T("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.T("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.T(_.v,{cond:function(){var S;return(S=f.data())==null?void 0:S.image},
then:function(S){return _.T(_.f9,{data:S,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.T("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.T(_.oY,{text:function(){var S;
return(S=f.data())==null?void 0:S.title}})),_.T("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.T(_.oY,{text:function(){var S;
return(S=f.data())==null?void 0:S.subtitle}})),_.T("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.T(_.xK,{data:function(){var S;
return(S=f.data())==null?void 0:S.viewTipsButton}},{buttonViewModel:_.I8}))))},"vf"),"yt-contributor-zero-state-view-model",{props:{data:_.W4}});var znY=_.oS(function(f){var S=_.v8(YIZ,_.cF(function(){var B;return(B=f.data())==null?void 0:B.noteFeedEntityKey},""));
return _.T("yt-note-view-model",{class:"ytNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.T("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.T("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.T(_.v,{cond:function(){var B,G;return(B=f.data())==null?void 0:(G=B.noteData)==null?void 0:G.isPinned},
then:function(){return _.T(_.Y8,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.T(_.v,{cond:function(){var B,G;return(B=f.data())==null?void 0:(G=B.noteData)==null?void 0:G.isPublished},
then:function(){return _.T(_.Y8,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.T(_.oY,{text:function(){var B,G;
return(B=f.data())==null?void 0:(G=B.noteData)==null?void 0:G.headerText}}),_.T("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},_.T(_.oY,{text:function(){var B,G;
return(B=f.data())==null?void 0:(G=B.noteData)==null?void 0:G.delimiter}})),_.T(_.oY,{text:function(){var B,G;
return(B=S())==null?void 0:(G=B.contributorNote)==null?void 0:G.publishedTimeText}})),_.T(_.xK,{data:function(){var B,G,g,b=(B=f.data())==null?void 0:B.noteData;
B=(G=S())==null?void 0:(g=G.contributorNote)==null?void 0:g.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:b.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:b.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:b.deleteDialogTitle}]},dialogMessages:[{runs:[{text:b.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:b.deleteActionText}]},command:{performCommentActionEndpoint:{action:B}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:b.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}}},
{buttonViewModel:function(B){return _.T(_.I8,{data:B.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.T("div",{class:"ytNoteViewModelNoteContent"},_.T(_.oY,{text:function(){var B,G;
return(B=S())==null?void 0:(G=B.contributorNote)==null?void 0:G.text}})))},"wf");
znY.idomCompat=!0;_.eq(znY,"yt-note-view-model",{props:{data:_.W4}});var AP=_.oS(function(f){var S=_.lu(f,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),B=S.label,G=S.text,g=S.placeholder,b=S.hint;f=S.rows;var z=S.overflowStyle,X=S.outline,w=S.disabled,F=S.disableNewLines,V=S.characterLimit,J=S.validation,P=S.onInput,d=_.tE("textarea");S=_.m(_.$8(function(){return G()}));
var Q=S.next().value,x=S.next().value;S=_.m(_.hj(!1,void 0,"fXvinf"));var E=S.next().value,U=S.next().value,A=function(){U(!0)},t=function(){U(!1)};
_.j9(function(){var MA=d.value,UV=z(),W7=Q();UV==="expand-vertically"&&W7&&rx$(MA);d.value.addEventListener("focusin",A);d.value.addEventListener("focusout",t)});
_.Ov(function(){d.value.removeEventListener("focusin",A);d.value.removeEventListener("focusout",t)});
var M=function(){var MA;return(MA=J())==null?void 0:MA.validate(Q())},a=function(){return V()&&!M()&&Q().length>V().maxChars},l=function(){return!!M()||a()};
S=_.iF(function(MA){if(!MA.currentTarget)return!1;MA=MA.currentTarget;x(MA.value);z()==="expand-vertically"&&rx$(MA);P==null||P(MA.value);return!0});
var mx=_.iF(function(MA){F()&&MA.key==="Enter"&&MA.preventDefault();return!1}),zj=_.iF(function(){d.value.focus()}),VN=function(){return g()||B()},$Q={},OV={},rW={};
return _.T("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.T("div",{class:_.Pw("ytStandardsTextareaShapeTextareaContainer",($Q.ytStandardsTextareaShapeTextareaContainerOutline=X,$Q.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=w,$Q.ytStandardsTextareaShapeTextareaContainerOutlineError=l,$Q)),"on:click":zj},_.T("label",{class:_.Pw("ytStandardsTextareaShapeLabel",(OV.ytStandardsTextareaShapeLabelFocused=E,OV.ytStandardsTextareaShapeLabelDisabled=w,OV.ytStandardsTextareaShapeLabelError=
function(){return l()&&!w()},OV.ytStandardsTextareaShapeLabelHidden=function(){return!E()&&!Q()&&!!VN()},OV))},B),_.T("div",{class:_.Pw("ytStandardsTextareaShapePlaceholder",(rW.ytStandardsTextareaShapePlaceholderVisible=function(){return!E()&&!Q()},rW)),
"aria-hidden":"true"},VN),_.T("textarea",{el:d,class:"ytStandardsTextareaShapeTextarea",rows:f,disabled:w,placeholder:VN,"on:input":S,"on:keydown":mx},Q)),_.T(_.v,{cond:function(){return b()&&!l()},
then:function(){var MA={};return _.T("div",{class:_.Pw("ytStandardsTextareaShapeHint",(MA.ytStandardsTextareaShapeHintDisabled=w,MA))},_.T("div",{class:"ytStandardsTextareaShapeHintHintMessage"},b))}}),_.T(_.v,{cond:M,
then:function(){return _.T(RnX,{disabled:w},_.T("div",{class:"ytStandardsTextareaShapeErrorMessage"},M))}}),_.T(_.v,{cond:V,
then:function(MA){return _.T(_.v,{cond:a,then:function(){return _.T(RnX,{disabled:w},_.T("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return MA().errorMessage}),_.T("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return Q().length+"/"+MA().maxChars}))}})}}))},"xf");
AP.idomCompat={callbacks:{onInput:!0}};var RnX=_.oS(function(f){var S={};return _.T("div",{class:_.Pw("ytStandardsTextareaShapeError",(S.ytStandardsTextareaShapeErrorDisabled=f.disabled,S)),role:"alert"},_.T(_.Y8,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),f.children)},"yf");_.Xfu=_.oS(function(f){var S=f.data;return _.T("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.T(AP,{text:f.text,label:function(){var B;return(B=S().contentProperties)==null?void 0:B.labelText},
placeholder:function(){var B;return(B=S().contentProperties)==null?void 0:B.placeholderText},
hint:function(){var B;return(B=S().contentProperties)==null?void 0:B.hintText},
outline:function(){var B;return!((B=S().displayProperties)==null?0:B.hideBorder)},
overflowStyle:function(){var B;return((B=S().displayProperties)==null?0:B.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:f.disabled,disableNewLines:function(){var B;return(B=S().displayProperties)==null?void 0:B.disableNewLines},
onInput:f.onInput,characterLimit:f.characterLimit,validation:f.validation,rows:function(){var B;return(B=S().displayProperties)==null?void 0:B.rows}}))},"zf");_.wf$=_.oS(function(f){var S=f.data;return _.T("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.T(AP,{text:f.text,label:function(){var B;return(B=S().contentProperties)==null?void 0:B.labelText},
placeholder:function(){var B;return(B=S().contentProperties)==null?void 0:B.placeholderText},
hint:function(){var B;return(B=S().contentProperties)==null?void 0:B.hintText},
outline:function(){var B;return!((B=S().displayProperties)==null?0:B.hideBorder)},
overflowStyle:function(){var B;return((B=S().displayProperties)==null?0:B.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var B;return(B=S().displayProperties)==null?void 0:B.disableNewLines},
onInput:f.onInput,characterLimit:f.characterLimit,validation:f.validation,rows:function(){var B;return(B=S().displayProperties)==null?void 0:B.rows}}))},"Af");var hn2=_.oS(function(f){var S=_.m(_.$8(function(){var VN,$Q;return((VN=f.data().structuredContextNoteFormSchema)==null?0:($Q=VN.initialValues)==null?0:$Q.noteBody)?f.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),B=S.next().value,G=S.next().value;
S=_.m(_.$8(function(){f.data();return!1}));
var g=S.next().value,b=S.next().value;S=_.m(_.$8(function(){f.data();return!1}));
var z=S.next().value,X=S.next().value;S=_.m(_.$8(function(){var VN,$Q;return((VN=f.data().structuredContextNoteFormSchema)==null?0:($Q=VN.initialValues)==null?0:$Q.timestamp)?f.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var w=S.next().value,F=S.next().value;S=_.m(_.$8(function(){f.data();return!1}));
var V=S.next().value,J=S.next().value;S=_.m(_.$8(function(){var VN,$Q;return((VN=f.data().structuredContextNoteFormSchema)==null?0:($Q=VN.initialValues)==null?0:$Q.sources)?[f.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var P=S.next().value,d=S.next().value;S=_.m(_.$8(function(){f.data();return!1}));
var Q=S.next().value,x=S.next().value;S=_.m(_.$8(function(){return!1}));
var E=S.next().value,U=S.next().value;_.j9(function(){var VN;_.$vZ((VN=f.data().structuredContextNoteFormSchema)==null?void 0:VN.id,{isSubmitting:E,onSubmit:function(){U(!0);var $Q=DvX(B(),w(),P(),f.data()),OV=_.oy().resolve(_.S7);$Q&&OV&&OV.resolveCommand($Q,{commandController:{onSuccess:function(){U(!1)}}})},
isValid:function(){return g()&&!z()&&!V()&&!Q()}})});
var A=function(VN){if(VN!==void 0&&(G(VN),!g()&&VN.length>0&&b(!0),g())){var $Q=xv2(f.data());if($Q){var OV=$Q.minLength;$Q=$Q.maxLength;OV&&VN.length<OV?X(!0):$Q&&VN.length>$Q?X(!0):X(!1)}}},t=function(VN){if(VN!==void 0){F(VN);
if(VN.length>0){var $Q,OV,rW,MA,UV=Laz(($Q=f.data())==null?void 0:(OV=$Q.structuredContextNoteFormSchema)==null?void 0:(rW=OV.fieldSchemas)==null?void 0:(MA=rW.timestamp)==null?void 0:MA.validationSchema);if(UV&&($Q=UV.regex)&&!(new RegExp($Q)).test(VN)){J(!0);return}}J(!1)}},M=function(VN){if(VN!==void 0){var $Q=VN.split(/[ \n]/).map(function(OV){return OV.trim()});
d($Q);if(VN.length>0)for(VN=_.m($Q),$Q=VN.next();!$Q.done;$Q=VN.next())if(!s$$($Q.value)){x(!0);return}x(!1)}},a=function(){return{validate:function(VN){if(g()){var $Q=xv2(f.data());
if($Q){var OV=$Q.minLength;$Q=$Q.translations;if(OV&&VN.length<OV)return $Q==null?void 0:$Q.minLengthErrorMessage}}}}},l=function(){var VN=xv2(f.data()),$Q=VN==null?void 0:VN.maxLength,OV;
VN=VN==null?void 0:(OV=VN.translations)==null?void 0:OV.maxLengthErrorMessage;if($Q&&VN)return{maxChars:$Q,errorMessage:VN}},mx=function(){return{validate:function(VN){if(VN){var $Q,OV,rW,MA,UV=Laz(($Q=f.data())==null?void 0:(OV=$Q.structuredContextNoteFormSchema)==null?void 0:(rW=OV.fieldSchemas)==null?void 0:(MA=rW.timestamp)==null?void 0:MA.validationSchema);
if(UV&&($Q=UV.regex,UV=UV.translations,$Q&&!(new RegExp($Q)).test(VN)))return UV==null?void 0:UV.regexErrorMessage}}}},zj=function(){return{validate:function(VN){if(VN){var $Q,OV,rW,MA,UV=nv$(($Q=f.data())==null?void 0:(OV=$Q.structuredContextNoteFormSchema)==null?void 0:(rW=OV.fieldSchemas)==null?void 0:(MA=rW.sources)==null?void 0:MA.validationSchema);
if(UV&&($Q=UV.translations,$Q==null?0:$Q.selectedErrorMessage))for(VN=VN.split(/[ \n]/).map(function(W7){return W7.trim()}),VN=_.m(VN),OV=VN.next();!OV.done;OV=VN.next())if(!s$$(OV.value))return VN=void 0,(VN=$Q)==null?void 0:VN.selectedErrorMessage}}}};
return _.T("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.T("div",{class:"ytStructuredContextNoteViewModelTextField"},_.T(_.xK,{data:function(){var VN;return(VN=f.data())==null?void 0:VN.noteContents}},{textFormFieldViewModel:function(VN){return _.T(_.wf$,{data:VN.data,
onInput:A,validation:a,characterLimit:l})},
textFieldViewModel:function(VN){return _.T(_.Xfu,{data:VN.data,onInput:A,validation:a,characterLimit:l})}})),_.T("div",{class:"ytStructuredContextNoteViewModelTextField"},_.T(_.xK,{data:function(){var VN;
return(VN=f.data())==null?void 0:VN.noteTimestamp}},{textFormFieldViewModel:function(VN){return _.T(_.wf$,{data:VN.data,
onInput:t,validation:mx})},
textFieldViewModel:function(VN){return _.T(_.Xfu,{data:VN.data,onInput:t,validation:mx})}})),_.T("div",{class:"ytStructuredContextNoteViewModelTextField"},_.T(_.xK,{data:function(){var VN;
return(VN=f.data())==null?void 0:VN.noteSources}},{textFormFieldViewModel:function(VN){return _.T(_.wf$,{data:VN.data,
onInput:M,validation:zj})},
textFieldViewModel:function(VN){return _.T(_.Xfu,{data:VN.data,onInput:M,validation:zj})}})))},"Bf");
hn2.idomCompat=!0;_.eq(hn2,"yt-structured-context-note-view-model",{props:{data:_.W4}});var TgX=_.oS(function(f){var S=_.m(_.$8(function(){var b;if((b=f.controlled)==null?0:b.call(f))return[];var z;return(((z=f.data())==null?void 0:z.chips)||[]).map(function(X){X=_.H(X,_.Av);if(X==null?0:X.selected)return IM$(X.chipValue)}).filter(function(X){return X!==void 0})})),B=S.next().value,G=S.next().value,g=function(b){var z=IM$(b.chipValue);
if(z!==void 0){var X;if((X=f.controlled)==null?0:X.call(f))return void f.controlled().onTap(z);b=B().includes(z)?[].concat(_.$d(B().filter(function(F){return F!==z}))):[].concat(_.$d(B()),[z]);
G(b);var w;if((w=f.uncontrolled)==null?0:w.call(f))f.uncontrolled().onUpdate(b)}};
return _.T("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.T(_.dg,{each:function(){return f.data().chips||[]}},function(b){return _.T("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.T(_.ycX,{data:function(){return _.H(b,_.Av)},
selected:function(){var z;if(z=_.H(b,_.Av)){var X=IM$(z.chipValue);if(X!==void 0){var w;z=((w=f.controlled)==null?0:w.call(f))?f.controlled().selectedValues.includes(X):B().includes(X)}else z=void 0}else z=!1;return z},
callback:g}))}))},"Cf");var FC2=_.oS(function(f){var S=f.data;var B=function(){var X;return((X=S())==null?void 0:X.flowStateKey)||""},G=_.v8(_.eO,B),g=function(){var X;
return(X=_.H(G(),OSu))==null?void 0:X.chips},b=function(X){if(X!==void 0){var w=g()||[];
w=w.find(function(F){return F===X})?w.filter(function(F){return F!==X}):[].concat(_.$d(w),[X]);
w=Object.assign({},G(),{feedbackFormFlowState:Object.assign({},_.H(G(),OSu),{chips:w})});_.WF(_.KF("flowStateEntity",B(),w))}},z=function(){var X;
return _.H((X=S())==null?void 0:X.inputBox,xRu)};
f=_.Hq(function(X){var w=z();w=!(w==null?0:w.maxChars)||X.length<=w.maxChars;X=Object.assign({},G(),{feedbackFormFlowState:Object.assign({},_.H(G(),OSu),{detail:X}),abuseReportFlowState:Object.assign({},_.H(G(),wJ),{navigationEnabled:w})});_.WF(_.KF("flowStateEntity",B(),X))},150);
return _.T("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.T("div",{class:"ytFeedbackFormViewModelChips"},_.T(_.xK,{data:function(){var X;return(X=S())==null?void 0:X.chipSelection}},{chipSelectionFormFieldViewModel:function(X){return _.T(TgX,{data:X.data,
controlled:function(){return{selectedValues:g()||[],onTap:b}}})}})),_.T("div",{class:"ytFeedbackFormViewModelInputBox"},_.T(AP,{text:function(){var X;
return(X=_.H(G(),OSu))==null?void 0:X.detail},
placeholder:function(){var X;return((X=z())==null?void 0:X.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var X=z();if(X&&X.maxChars)return{maxChars:X.maxChars,errorMessage:X.maxCharsExceededErrorMessage||""}},
onInput:f})),_.T("div",{class:"ytFeedbackFormViewModelFooterText"},_.T(_.oY,{text:function(){return S().footerText}})))},"Df");
FC2.idomCompat=!0;_.eq(FC2,"yt-feedback-form-view-model",{props:{data:_.W4}});var V9X=_.oS(function(f){var S=f.data;var B=function(){return S().flowStateKey||""},G=_.v8(CJX,B),g=function(){return _.H(G(),wJ)},b=function(){if(_.K("enable_gff_accessibility_fix")){var z=!0,X;
if((X=g())==null?0:X.navigationEnabled){var w;_.MB((w=g())==null?void 0:w.navigationCommand);z=!1}X=Object.assign({},G(),{abuseReportFlowState:Object.assign({},g(),{isReportFormDirty:z})});_.WF(_.KF("flowStateEntity",B(),X))}else _.MB((z=g())==null?void 0:z.navigationCommand)};
return _.T("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.T("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.T(_.xK,{data:function(){return S().cancelButton}},{buttonViewModel:function(z){return _.T(_.I8,{data:z.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:b})}}),_.T(_.xK,{data:function(){var z;
if(S().navButton){var X=Object;var w=X.assign,F=_.H(S().navButton,_.Q5),V=((z=g())==null?0:z.navigationEnabled)||_.K("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",J,P;z=_.H((J=g())==null?void 0:J.navigationCommand,_.Un);J=(P=_.H(z,_.pg))==null?void 0:P.url;X={buttonViewModel:w.call(X,{},F,{state:V,iconName:J?"OPEN_IN_NEW":""})}}else X=void 0;return X}},{buttonViewModel:function(z){return _.T(_.I8,{data:z.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:b})}})))},"Ef");
V9X.idomCompat=!0;_.eq(V9X,"yt-report-form-bottom-bar-view-model",{props:{data:_.W4}});var JAu=_.oS(function(f){var S=f.nextStep;return _.T("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.T("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.T(_.Y8,{icon:function(){return S().iconName||""}})),_.T("div",null,_.T(_.oY,{text:function(){return S().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Ff"),P0Y=_.oS(function(f){var S=f.data;
var B,G=(B=_.oy().resolve(_.fN(_.yU)))==null?void 0:B(),g=_.v8(_.eO,function(){return S().flowStateKey||""});
return _.T("yt-report-form-confirmation-page-view-model",{class:function(){var b;return((b=_.H(g(),wJ))==null?void 0:b.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.T("div",{class:function(){var b;
return((b=_.H(g(),wJ))==null?void 0:b.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.T(_.f9,{data:function(){return G&&S().imageDark?S().imageDark:S().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.T("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.T("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return S().confirmationHeader}),_.T("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.T(_.oY,{text:function(){return S().confirmationText}})),_.T("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.T(_.oY,{text:function(){return S().lawEnforcementText}})),
_.T("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return S().whatToExpectHeader}),_.T(_.v,{cond:function(){return S().nextSteps},
then:function(b){return _.T("div",null,_.T(_.dg,{each:b},function(z){return _.T(JAu,{nextStep:z})}))}}),_.T(_.v,{cond:function(){return S().legalReportText},
then:function(b){return _.T("div",null,_.T(_.oY,{text:b,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Gf");
P0Y.idomCompat=!0;_.eq(P0Y,"yt-report-form-confirmation-page-view-model",{props:{data:_.W4}});var v52=_.oS(function(f){var S=f.data;var B=function(){var b;return((b=_.H(S().inputBox,xRu))==null?void 0:b.maxChars)||500},G=function(){return S().flowStateKey||""},g=_.v8(_.eO,G);
f=_.Hq(function(b){b=Object.assign({},g(),{flowFormState:{isValid:b.length<=B()},abuseReportFlowState:{userComments:b,navigationEnabled:!(b.length>B()),isReportFormDirty:!0}});_.al().dispatch(_.LF("flowStateEntity",G(),b))},150);
_.j9(function(){var b=Object.assign({},g(),{flowFormState:{isValid:!0}});_.al().dispatch(_.LF("flowStateEntity",G(),b))});
return _.T("yt-report-form-details-page-view-model",{class:function(){var b;return((b=_.H(g(),wJ))==null?void 0:b.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.T("h1",{class:function(){var b;
return((b=_.H(g(),wJ))==null?void 0:b.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return S().detailsPageHeader}),_.T("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.T(_.oY,{text:function(){return S().bodyText}})),_.T("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.T(AP,{label:function(){var b;
return((b=_.H(S().inputBox,xRu))==null?void 0:b.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var b;return{errorMessage:((b=_.H(S().inputBox,xRu))==null?void 0:b.maxCharsExceededErrorMessage)||"",maxChars:B()}},
onInput:f})))},"Hf");
v52.idomCompat=!0;_.eq(v52,"yt-report-form-details-page-view-model",{props:{data:_.W4}});var KCZ=_.oS(function(f){var S=f.data;var B=f.selectedKey;var G=f.onSelected;var g=f.groupName;var b=function(){return S().text},z=function(){return S().attributedText},X=function(){return S().subtext},w=function(){return S().attributedSubtext},F=_.T("div",{class:"ytRadioButtonItemViewModelLabel"},_.T(_.v,{cond:b,
then:function(){return _.T("div",null,b)}}),_.T(_.v,{cond:z,
then:function(){return _.T(_.oY,{text:z})}}),_.T(_.v,{cond:X,
then:function(){return _.T("div",{class:"ytRadioButtonItemViewModelSubText"},X)}}),_.T(_.v,{cond:w,
then:function(){return _.T("div",{class:"ytRadioButtonItemViewModelSubText"},_.T(_.oY,{text:w}))}})),V=function(){if(z()){var P;
return(P=z())==null?void 0:P.content}return b()},J=function(){if(w()){var P;
return(P=w())==null?void 0:P.content}return X()};
f={};return _.T("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.T(_.QL,{name:g,checked:function(){return!(B==null||!B()||S().key!==(B==null?void 0:B()))},
onChange:function(P){G==null||G(P.target,S(),g==null?void 0:g())},
labelRenderable:function(){return F},
ariaLabel:function(){return J()?V()+", "+J():V()},
className:_.Pw((f.ytRadioButtonItemViewModelSubTitle=function(){return!!S().subtext},f))}))},"If");_.dpM=_.oS(function(f){var S=f.data;var B=f.onSelected;var G=f.selectedKey;var g=f.groupName;var b=function(){return(g==null?void 0:g())||S().key};
return _.T("yt-radio-button-group-view-model",{class:"yt-radio-button-group-view-model",tabindex:0},_.T("fieldset",{class:"yt-radio-button-group-view-model__fieldset"},_.T(_.xK,{data:function(){return S().radioButtons}},{radioButtonItemViewModel:function(z){return _.T(KCZ,{data:z.data,
onSelected:B,selectedKey:G,groupName:b})}})))},"Jf");var iLz=_.oS(function(f){var S=f.data;var B=_.us("div"),G=function(){return S().flowStateKey||""},g=_.v8(_.eO,G),b=function(){return _.H(g(),wJ)};
_.jp(function(){var z,X;if(((z=b())==null?0:z.isReportFormDirty)&&((X=b())==null||!X.navigationEnabled)&&_.K("enable_gff_accessibility_fix")){var w;if(((w=b())==null?void 0:w.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var F;(F=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||F.scrollIntoView()}else{var V;(V=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||V.scrollIntoView()}}},"VvP2Ne");
return _.T("yt-report-form-reason-select-page-view-model",{class:function(){var z;return((z=b())==null?void 0:z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.T("h1",{class:function(){var z;
return((z=b())==null?void 0:z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return S().pageHeader}),_.T("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.T(_.oY,{text:function(){return S().bodyText}})),_.T("div",{class:function(){var z;
return((z=b())==null?void 0:z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.T(_.v,{cond:function(){var z,X;
return((z=b())==null?void 0:z.isReportFormDirty)&&!((X=b())==null?0:X.navigationEnabled)&&_.K("enable_gff_accessibility_fix")},
then:function(){return _.T("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:B},_.T(_.Y8,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.T("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return S().emptyReasonSelectErrorMessage}))}}),_.T(_.dpM,{data:function(){return _.H(S().radioButtonGroup,_.URO)},
onSelected:function(z,X){z=Object.assign({},g(),{abuseReportFlowState:Object.assign({},b(),{reasonKey:X.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:X.command})});_.WF(_.KF("flowStateEntity",G(),z))},
selectedKey:function(){var z;return(z=b())==null?void 0:z.reasonKey},
groupName:"report-form-reason-select-page"})))},"Kf");
iLz.idomCompat=!0;_.eq(iLz,"yt-report-form-reason-select-page-view-model",{props:{data:_.W4}});var HLu=_.oS(function(f){var S=f.data;var B,G=(B=_.oy().resolve(_.fN(_.yU)))==null?void 0:B();return _.T("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.T("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.T(_.f9,{data:function(){return G&&S().imageDark?S().imageDark:S().image},
alt:""})),_.T("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.T("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return S().header}),_.T(_.oY,{text:function(){return S().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"Lf");
HLu.idomCompat=!0;_.eq(HLu,"yt-report-form-sign-in-page-view-model",{props:{data:_.W4}});_.eq(_.oS(function(f){var S=f.data;var B=function(){return S().titleSuperscript},G=function(){var V;
return(V=S().textInputPlaceholder)==null?void 0:V.content},g=function(V){V=V.target.value.trim();
var J=S().onUpdateText;J&&_.MB(J,{form:{userQuery:V}});S().userQuery=V},b=_.Hq(function(V){g(V)},150),z=_.iF(function(V){b(V);
return!1}),X=_.iF(function(V){V.key==="Enter"&&(g(V),(V=S().onNextStepCommand)&&_.MB(V,{forceClickLogging:!0}));
return!1}),w=_.tE("yt-talk-to-recs-view-model"),F=function(){if(_.K("web_hide_explore_hub_until_user_navigates_back_to_home")){var V,J,P;
(P=(J=(V=w.value)==null?void 0:V.closest("ytd-flow-step-renderer"))==null?void 0:J.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||P.click()}};
return _.T("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:w},_.T("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.T(_.xK,{data:function(){return S().topCornerButton}},{buttonViewModel:_.I8})),_.T("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.T("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.T(_.oY,{text:function(){return S().title}}),_.T(_.v,{cond:B,
then:function(){return _.T("sup",{class:"ytwTalkToRecsSuperScript"},_.T(_.oY,{text:B}))}})),_.T("div",{class:"ytwTalkToRecsSubtitle"},_.T(_.oY,{text:function(){return S().subtitle}})),_.T("div",{class:"ytwTalkToRecsChipsShelf"},_.T(_.xK,{data:function(){return S().answersShelf}},{chipsShelfViewModel:function(V){return _.T("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.T(_.gDm,{data:V.data,
callback:F,enableSingleChipSelection:!0}))}})),_.T(_.v,{cond:function(){return S().showOpenTextInput&&!_.K("web_hide_explore_hub_until_user_navigates_back_to_home")},
then:function(){return _.T("div",{class:"ytwTalkToRecsUserInputBox"},_.T("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:G,value:function(){return S().userQuery},
"on:input":z,"on:keyup":X,maxlength:200}))}})))},"Mf"),"yt-talk-to-recs-view-model",{props:{data:_.W4}});var Uv$={sources:[{clientResource:{imageName:"CHECK"}}]};_.q6z=_.oS(function(f){var S=_.tE("div");f=_.lu(f,{error:void 0});var B=f.data,G=f.error,g=f.onSelected;f=_.m(_.$8(function(){return Ax2(B())}));
var b=f.next().value,z=f.next().value;tro(B,function(J){z(J);var P,d,Q=pdu((P=B().options)==null?void 0:(d=P[J])==null?void 0:d.value,B().type);g==null||g(Q);S.value.focus()});
f=_.iF(function(){if(!B().disabled){var J=B(),P=b(),d=S.value;J.options&&(J=CBu(J.options,P,J.label),_.oy().resolve(_.H0).openSheet({viewModel:J},d))}});
var X=_.fjG(),w=function(){return!!G()},F=function(){return!!B().disabled},V={};
V=_.Pw("ytDropdownViewModelDropdownContainer",(V.ytDropdownViewModelDropdownContainerErrorBorder=w,V.ytDropdownViewModelDropdownContainerDisabled=F,V));return _.T("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.T("div",{class:V,"on:click":f,el:S,role:"combobox",tabindex:0,"on:keydown":X,"aria-invalid":w,"aria-disabled":F,"aria-describedby":function(){return w()?"dropdown-view-model-error":void 0}},_.T("div",{class:"ytDropdownViewModelText"},Nuo(B,w,b),Mr2(B,b)),_.T("div",{class:"ytDropdownViewModelChevronDown"},
_.T(_.Y8,{icon:"CHEVRON_DOWN"}))),Zou(B,G))},"Nf");_.eq(_.oS(function(f){var S=f.data;var B=function(g){var b=aM2(S());b.videoMetadata||(b.videoMetadata={});b.videoMetadata.sponsorshipsMetadata||(b.videoMetadata.sponsorshipsMetadata={});b.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(g)},G=function(g){var b=aM2(S());
b.scheduledRedirectMetadata||(b.scheduledRedirectMetadata={});b.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(g)};
return _.T("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.T("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.T("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.T(_.oY,{text:function(){return S().title}}),_.T(_.Y8,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.T(_.oY,{text:function(){return S().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.T(_.xK,{data:function(){return S().tierChoices}},{dropdownViewModel:function(g){return _.T("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.T(_.q6z,{data:g.data,
onSelected:B}))}}),_.T(_.xK,{data:function(){return S().startTimeChoices}},{dropdownViewModel:function(g){return _.T("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.T(_.q6z,{data:g.data,
onSelected:G}))}}),_.T(_.oY,{text:function(){return S().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.T("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.T(_.xK,{data:function(){return S().scheduleButton}},{panelFooterViewModel:_.pE})))},"Of"),"ytfz-schedule-fanzone-view-model",{props:{data:_.W4}});_.eq(_.oS(function(f){var S=f.data;f=f.className===void 0?"":f.className;var B=_.v8(CJX,function(){return S().flowStateEntityKey||""}),G={};
G=_.Pw("ytFlowBottomBarViewModelFlowBottomBarButtons",(G.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return S().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||S().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},G));
var g={},b=_.Pw("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",G,(g.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return S().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},g.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return S().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},g));
g={};var z=_.Pw("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",G,(g.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return S().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},g.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return S().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},g));
G={};G=_.Pw("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(G.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return S().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},G.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return S().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},G.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return S().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
G));
f=_.Pw("ytFlowBottomBarViewModelHost",f);return _.T("yt-flow-bottom-bar-view-model",{class:f},_.T(_.v,{cond:function(){var X;return(X=S())==null?void 0:X.textSection},
then:function(X){return _.T("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.T(_.oY,{text:X}))}}),_.T("div",{class:G},_.T(_.xK,{data:function(){return S().secondaryButton}},{buttonViewModel:function(X){return _.T(_.I8,{data:X.data,
className:z})}}),_.T(_.xK,{data:function(){return S().primaryButton}},{buttonViewModel:function(X){return _.T(_.I8,{data:X.data,
className:b,buttonOverrides:function(){var w;return{disabled:!((w=B())==null||!w.primaryButtonDisabled)}}})}})))},"Pf"),"yt-flow-bottom-bar-view-model",{props:{data:_.W4,
className:_.gm}});var $pz="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),N3=function(){var f=_.I.apply(this,arguments)||this;f.enableScrollingFix=!0;f.bottomBar=!1;f.hideBottomBar=!1;f.fitContent=!1;return f};
_.q(N3,_.I);_.e=N3.prototype;_.e.ready=function(){_.K("enable_pdp_icon_prefetch")&&_.jKZ(_.oy().resolve(_.wV),0,$pz)};
_.e.focus=function(f){this.topBar?_.ty(this.topBar,f):this.paperDialog.focus(f)};
_.e.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$16924_scroller&&(this.JSC$16924_scroller.dialogElement=this.paperDialog,this.JSC$16924_scroller.attached&&typeof this.JSC$16924_scroller.attached==="function"&&this.JSC$16924_scroller.attached())};
_.e.onDataChanged=function(){var f;this.fitContent=!((f=this.data)==null||!f.fitContent);var S;this.bottomBar=!((S=this.data)==null||!S.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.e.onProgressChanged=function(){var f,S,B=((S=(f=this.data)==null?void 0:f.progress)!=null?S:0)*100;this.progressElement.style.width=B+"%"};
_.e.isProgressHidden=function(){var f;return!((f=this.data)==null?0:f.progress)};
_.e.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(f){return _.K("enable_wiz_next_lp2_msof")&&f&&!f.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.y3.Object.defineProperties(N3.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var f;return _.K("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.H((f=this.data)==null?void 0:f.content,sKX)}}});
N3.prototype.onProgressChanged=N3.prototype.onProgressChanged;N3.prototype.onDataChanged=N3.prototype.onDataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],N3.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],N3.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],N3.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],N3.prototype,"enableScrollingFix",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],N3.prototype,"bottomBar",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],N3.prototype,"hideBottomBar",void 0);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],N3.prototype,"containsExploreHub",null);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],N3.prototype,"fitContent",void 0);_.N([_.vF("#progress"),_.Z("design:type",HTMLElement)],N3.prototype,"progressElement",void 0);
_.N([_.vF("#scroller"),_.Z("design:type",Object)],N3.prototype,"JSC$16924_scroller",void 0);_.N([_.vF("ytd-flow-top-bar-renderer"),_.Z("design:type",HTMLElement)],N3.prototype,"topBar",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],N3.prototype,"onDataChanged",null);_.N([_.JO("data.progress"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],N3.prototype,"onProgressChanged",null);
_.N([_.C({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],N3);
_.p(N3,"ytd-flow-step-renderer",function(){if(bje!==void 0)return bje;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return bje=f},{mode:1});var QjO=function(f){this.resolveCommand=f;this.steps={}},Y6$=function(f,S){S=_.m(S||[]);
for(var B=S.next();!B.done;B=S.next()){B=B.value;var G=Object.values(B)[0],g=void 0;if((g=G)==null?0:g.stepId)f.steps[G.stepId]=B}},OLY=function(f,S){var B,G,g,b,z;
return _.R(function(X){if((B=f.state)==null||!B.currentStepId)return X.return(void 0);G=rAn(f);if(!G)return X.return(jjz(f));if(g=_.H(G,_.nAz)){var w;((w=g.screenLoggingData)==null?0:w.screenVeType)&&_.Rh(_.ik(),g.screenLoggingData.screenVeType);((b=g)==null?0:b.onStepStartCommand)&&f.resolveCommand((z=g)==null?void 0:z.onStepStartCommand,{})}if(g&&S){w=g;var F,V,J,P;((F=S.flowLoggingData)==null?0:F.eventNamespace)&&((V=w.flowEventData)==null?0:V.eventType)&&((J=w.flowEventData)==null?0:J.eventMetadata)&&
((P=S.flowLoggingData)==null?0:P.flowType)&&(F=_.hK(S.flowLoggingData.eventNamespace,w.flowEventData.eventType,w.flowEventData.eventMetadata),_.TF(_.F2(),F,S.flowLoggingData.flowType));S.steps&&!S.steps.includes(G)&&S.steps.push(G)}return X.return(G)})};
QjO.prototype.back=function(){var f;(f=this.state)!=null&&f.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
QjO.prototype.handleUpdateFlowCommand=function(f){f.steps&&Y6$(this,f.steps);f.entityUpdateCommand&&this.resolveCommand(f.entityUpdateCommand,{});f.flowContinuationCommand&&(f=f.flowContinuationCommand)&&(this.getFlowContinuationCommand=f);this.awaitFlowContinuation&&(this.awaitFlowContinuation(rAn(this)),this.awaitFlowContinuation=void 0)};
QjO.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var jjz=function(f){return _.R(function(S){return f.getFlowContinuationCommand?S.return(new Promise(function(B){f.awaitFlowContinuation=B;f.getFlowContinuationCommand&&f.resolveCommand(f.getFlowContinuationCommand,{flow_state:f.state})})):S.return(Promise.resolve(void 0))})},rAn=function(f){var S;
if((S=f.state)!=null&&S.currentStepId)return f.steps[f.state.currentStepId]};var M3=function(){var f=_.I.apply(this,arguments)||this;f.flowState=new QjO(function(S,B){B=B===void 0?{}:B;_.JZ.instance.resolveCommand(S,{form:{form:B,element:f.hostElement}})});
f.initialState=!0;f.isLoading=!1;f.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 f};
_.q(M3,_.I);_.e=M3.prototype;_.e.onPopupClosed=function(f){f&&this.hostElement!==f.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.e.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"}}}};
_.e.focus=function(f){var S=this;_.AO(function(){var B=_.m9(S.hostElement).querySelector("ytd-flow-step-renderer");(B==null?0:B.topBar)?B.focus(f):S.topBar&&_.ty(S.topBar,f)},1)};
_.e.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.e.computeTopBarHidden=function(f){var S;return!((S=_.H(f,_.nAz))==null||!S.topBarOverride)};
_.e.dataChanged=function(){var f=this,S,B;return _.R(function(G){if(G.nextAddress==1){((S=f.data)==null?0:S.steps)&&Y6$(f.flowState,f.data.steps);if((B=f.data)==null?0:B.flowContinuationCommand){var g=f.flowState,b=f.data.flowContinuationCommand;b&&(g.getFlowContinuationCommand=b)}return _.h(G,OLY(f.flowState,f.data),2)}f.currentFlowStep=G.yieldResult;_.TT(G)})};
_.e.flowChanged=function(){var f=this,S;return _.R(function(B){if(B.nextAddress==1){if(!f.flow)return B.return();f.flowState.state=f.flow;f.isLoading=!0;return _.h(B,OLY(f.flowState,f.data),2)}S=B.yieldResult;if(!S||f.flow.isLoading)return B.return();f.currentFlowStep=S;f.initialState=!1;f.isLoading=!1;f.autofocusAndRefit();_.TT(B)})};
_.e.autofocusAndRefit=function(){var f=this,S=_.oy().resolve(_.fN(_.R5)),B=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),G=document.querySelector("yt-report-form-confirmation-page-view-model"),g=document.querySelector("yt-report-form-details-page-view-model"),b=document.querySelector("yt-report-form-reason-select-page-view-model"),z=document.querySelector("yt-contributor-zero-state-view-model"),
X=document.querySelector("yt-structured-context-note-view-model"),w=document.querySelector("yt-note-view-model");(!B&&S&&S.isKeyBoardInUse()||G||!B&&g||!B&&b||z||X||w)&&_.uP(this.hostElement);_.ui(this,function(){_.ew(f.hostElement,"yt-refit")})};
_.e.handleUpdateFlowCommand=function(f){this.data&&(f=_.H(f,kSM),f.targetId===this.data.targetId&&(f.flowContinuationCommand&&(this.data.flowContinuationCommand=f.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(f),this.autofocusAndRefit()))};
_.e.handleFlowNextStepCommand=function(f){this.data&&this.flow&&this.flow.key&&(f=_.H(f,EAo),f.targetId===this.data.targetId&&(f=f.stepId||"",this.ytdReduxBehavior.dispatch(_.LF("flowStateEntity",this.flow.key,{currentStepId:f,stepIdStack:(this.flow.stepIdStack||[]).concat(f)}))))};
_.e.handleFlowPrevStepCommand=function(f){if(this.data&&this.flow&&this.flow.key&&(f=_.H(f,Lou),f.targetId===this.data.targetId)){var S=[].concat(_.$d(this.flow.stepIdStack||[]));S.length>1?(S.pop(),this.ytdReduxBehavior.dispatch(_.LF("flowStateEntity",this.flow.key,{currentStepId:S[S.length-1],stepIdStack:S}))):f.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(f.onFirstStepCommand)}};
_.e.handleYpcCancelRecurrenceCommand=function(f){if(this.data&&this.flow&&this.flow.key&&(f=_.H(f,C5e),f.targetId===this.data.targetId&&f.endpointCommand)){var S=_.H(this.flow,pv2);S&&_.H(f.endpointCommand,_.TY1)&&(_.H(f.endpointCommand,_.TY1).feedbackData=S.surveyFeedback);this.ytComponentBehavior.resolveCommand(f.endpointCommand)}};
_.e.handlePartialUpdateFlowStateEntity=function(f){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.LF("flowStateEntity",this.flow.key,f,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
M3.prototype.flowChanged=M3.prototype.flowChanged;M3.prototype.dataChanged=M3.prototype.dataChanged;M3.prototype.onPopupClosed=M3.prototype.onPopupClosed;_.N([_.r(_.Ek),_.Z("design:type",Object)],M3.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],M3.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],M3.prototype,"ytComponentBehavior",void 0);
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],M3.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],M3.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],M3.prototype,"initialState",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],M3.prototype,"isLoading",void 0);_.N([_.n(),_.Z("design:type",Object)],M3.prototype,"data",void 0);
_.N([_.n(),_.Z("design:type",Object)],M3.prototype,"currentFlowStep",void 0);_.N([_.Vg("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],M3.prototype,"onPopupClosed",null);_.N([_.n({selectorArgs:["data.flowStateEntityKey"],selector:CJX}),_.Z("design:type",Object)],M3.prototype,"flow",void 0);_.N([_.vF("ytd-flow-top-bar-renderer"),_.Z("design:type",HTMLElement)],M3.prototype,"topBar",void 0);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype",Promise)],M3.prototype,"dataChanged",null);_.N([_.HF("flow"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype",Promise)],M3.prototype,"flowChanged",null);_.N([_.C({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],M3);
_.xpu=_.RS()(M3,"ytd-flow-root-renderer",function(){if(evY!==void 0)return evY;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return evY=f},{mode:_.X_("kevlar_poly_si_batch_j025")?1:2});var E52;var R7=null;_.eq(_.oS(function(f){return _.T("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.T("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.T(_.oY,{text:function(){return f.data().text}}),_.T("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Qf"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.W4}});var LCu=_.oS(function(f){var S=f.playerControlsProps;var B=f.isShortsPage;return _.T("yt-bigboard",null,_.T(_.v,{cond:function(){return S().isDragging},
then:function(){return _.T("div",{class:"ytBigboardStoryboardHost"},_.T(_.V02,{progressBarProps:S,isShortsPage:B}))}}))},"Rf");
LCu.idomCompat=!0;_.Zj={ACCOUNT_LABEL:XP("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:XP("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:XP("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:XP("AD_BADGE_HINT"),AD_BADGE_TEXT:XP("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:XP("ALL_CHANNELS_LABEL"),AMBIENT_MODE:XP("AMBIENT_MODE"),AMBIENT_MODE_OFF:XP("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:XP("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:XP("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:XP("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:XP("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:XP("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:XP("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:XP("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:XP("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:XP("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:XP("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:XP("AUTO_ZOOM","Auto zoom"),BACK:XP("BACK"),CANCEL:XP("CANCEL"),CHANNEL_SWITCHER_LABEL:XP("CHANNEL_SWITCHER_LABEL"),CLOSE:XP("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:XP("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:XP("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:XP("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:XP("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:XP("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:XP("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:XP("COMMENT_MODAL_CONTENT"),CONFIRM_OK:XP("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:XP("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:XP("COPIED_TO_CLIPBOARD"),COPY:XP("COPY"),COPY_DEBUG_INFO:XP("COPY_DEBUG_INFO"),COPY_EMBED_CODE:XP("COPY_EMBED_CODE"),
COPY_LINK_LABEL:XP("COPY_LINK_LABEL"),COPY_VIDEO_URL:XP("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:XP("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:XP("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:XP("DELETE_FROM_DOWNLOADS"),DIALOG:XP("DIALOG"),DONE:XP("DONE"),DOWNLOAD:XP("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:XP("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:XP("FLAG_CONFIRM"),FLAG_CONTENT:XP("FLAG_CONTENT"),FLAG_LABEL:XP("FLAG_LABEL"),FLAG_TITLE:XP("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:XP("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:XP("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:XP("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:XP("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:XP("HIDE_SEARCH_FILTERS_LABEL"),HOME:XP("HOME","Home"),INVALID_RESPONSE_RECEIVED:XP("INVALID_RESPONSE_RECEIVED"),LIBRARY:XP("LIBRARY","Library"),LISTENING:XP("LISTENING"),LOADING:XP("LOADING"),LONG_PRESS_MIC_TO_SPEAK:XP("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:XP("LOOP"),MENU_DESKTOP:XP("MENU_DESKTOP"),
MENU_EXIT:XP("MENU_EXIT"),MENU_FEEDBACK:XP("MENU_FEEDBACK"),MENU_HELP:XP("MENU_HELP"),MENU_IMPRESSUM:XP("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:XP("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:XP("MENU_SETTINGS"),MENU_SIGN_IN:XP("MENU_SIGN_IN"),MENU_TITLE:XP("MENU_TITLE"),MENU_YOUR_DATA:XP("MENU_YOUR_DATA"),MORE_INFO:XP("MORE_INFO"),MORE_OPTIONS:XP("MORE_OPTIONS"),MUTE_VOLUME:XP("MUTE_VOLUME"),NEW_PLAYLIST:XP("NEW_PLAYLIST"),NEXT_VIDEO:XP("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:XP("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:XP("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:XP("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:XP("NOT_FOUND_TITLE"),NO_DOWNLOADS:XP("NO_DOWNLOADS"),NO_MIC_INPUT:XP("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:XP("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:XP("OOPS_MESSAGE"),OPEN_APP:XP("OPEN_APP"),OPEN_YOUTUBE:XP("OPEN_YOUTUBE"),PAUSE:XP("PAUSE"),PLAY:XP("PLAY"),PLAYER_CAPTION:XP("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:XP("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:XP("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:XP("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:XP("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:XP("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:XP("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:XP("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:XP("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:XP("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:XP("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:XP("PLAYER_MINIMIZE"),PLAYER_NEXT:XP("PLAYER_NEXT"),PLAYER_PAUSE:XP("PLAYER_PAUSE"),PLAYER_PLAY:XP("PLAYER_PLAY"),
PLAYER_PREVIOUS:XP("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:XP("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:XP("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:XP("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:XP("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:XP("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:XP("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:XP("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:XP("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:XP("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:XP("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:XP("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:XP("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:XP("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:XP("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:XP("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:XP("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:XP("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:XP("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:XP("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:XP("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:XP("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:XP("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:XP("PLAY_ALL"),PLEASE_FIX_ERRORS:XP("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:XP("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:XP("PREVIOUS_VIDEO"),PRIVACY_POLICY:XP("PRIVACY_POLICY"),RELOAD:XP("RELOAD"),REQUIRED_LABEL:XP("REQUIRED_LABEL"),SAVE_PLAYLIST:XP("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:XP("SCRUB_SLIDE_USER_EDU"),SEARCH:XP("SEARCH","Search"),
SEARCH_APPEND_LABEL:XP("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:XP("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:XP("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:XP("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:XP("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:XP("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:XP("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:XP("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:XP("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:XP("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:XP("SEEK_SLIDER"),SETTINGS_LABEL:XP("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:XP("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:XP("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:XP("SHOW_LESS"),SHOW_MORE:XP("SHOW_MORE"),SHOW_PLAYER_CONTROLS:XP("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:XP("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:XP("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:XP("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:XP("SIGN_IN_ON_WEB"),STABLE_VOLUME:XP("STABLE_VOLUME"),STABLE_VOLUME_OFF:XP("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:XP("STABLE_VOLUME_ON"),STATS_FOR_NERDS:XP("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:XP("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:XP("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:XP("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:XP("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:XP("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:XP("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:XP("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:XP("TIMESTAMP_SECONDS"),TOGGLE_OFF:XP("TOGGLE_OFF"),TOGGLE_ON:XP("TOGGLE_ON"),TRENDING:XP("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:XP("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:XP("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:XP("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:XP("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:XP("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:XP("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:XP("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:XP("VIDEO_LINK_LABEL")};var k82=_.oS(function(f){var S=f.playerApi;f=_.tE("button",function(G){_.Id(G,36843)});
var B=XP("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.T("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.T("button",{el:f,class:"ytPlayerControlsJumpForwardButtonButton",title:B,"aria-label":B,"on:click":_.iF(function(){_.U1(36843);S&&S().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.T("span",null,_.T(_.Y8,{icon:"FAST_FORWARD"}))))},"Sf");var n5M=_.oS(function(f){var S=f.appApi;f=_.tE("button",function(G){_.Id(G,62946)});
var B=XP("OPEN_IN_MINIPLAYER");return _.T("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.T("button",{el:f,class:"ytMiniplayerButtonButton",title:B,"aria-label":B,"on:click":_.iF(function(){_.U1(62946);var G,g;(g=(G=S()).openInMiniplayer)==null||g.call(G);return!1})},_.T(_.Y8,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Tf");var sju=_.oS(function(f){var S=f.playerApi;f=_.tE("button",function(b){_.Id(b,142812)});
var B=_.m(_.hj(!1,void 0,"I3VCyb")),G=B.next().value,g=B.next().value;B=function(){return XP("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(G()?1:2)})};
return _.T("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.T("button",{el:f,class:"ytPlaybackSpeedButtonButton",title:B,"aria-label":B,"on:click":_.iF(function(){_.U1(142812);if(S){var b=S(),z=G();b.setPlaybackRate(z?1:2);g(!G())}return!1})},_.T("span",null,_.T(_.Y8,{icon:function(){return G()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Uf");var Dpn=_.oS(function(f){var S=f.title;var B=f.ariaLabel;var G=f.icon;var g=f.command;var b=f.veType;f=_.tE("button",function(z){b&&_.Id(z,b())});
return _.T("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.T("button",{el:f,class:"ytdThumbnailOverlayButtonButton",title:S,"aria-label":B,"on:click":_.iF(function(){b&&_.U1(b());g&&_.oy().resolve(_.S7).resolveCommand(g())})},_.T(_.Y8,{icon:G})))},"Vf");var S4="";var It2=_.oS(function(f){var S=f.playerControlsProps,B=f.onClickFn;f=_.vW(function(){var b=S(),z=-1;b.captionsAvailable&&(z=b.captionsEnabled?1:0);return z},void 0,"WecR8e");
var G=_.vW(function(){var b=S();return b.captionsAvailable?_.Jf(b.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.Jf("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),g=_.vW(function(){var b=S();
b=b.captionsAvailable?b.captionsEnabled:void 0;return b},void 0,"Q17ly");
return _.T("yt-closed-captions-toggle-button",null,_.T(_.zKn,{captionIconType:f,ariaLabel:G,ariaPressed:g,onClick:function(b){var z=S();if(z.captionsAvailable){var X=z.playerApi;if(X){var w=z.playerApi;if(w){var F=S4;if(F){w=w.getOption("captions","track");var V;S4=(V=w?w.displayName:null)!=null?V:F}else _.DQ(w)?(F=_.Abx(w),S4=F.length?(V=pVB(F))?V.displayName:F[0].displayName:""):S4=""}AmY(X);_.K("mweb_disable_set_state_captions_killswitch")&&z.setState({captionsEnabled:!z.captionsEnabled})}}var J,
P;(P=(J=z.appApi).showCaptionsToggleToast)==null||P.call(J,z);B==null||B(b)},
isOverlay:!0}))},"Wf");var UpO=_.oS(function(f){var S=f.data;return _.T("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.T(_.xq,{data:function(){return{type:16,text:_.JzT(S().label)}}}))},"Xf");var C0z=_.oS(function(f){var S=_.Pw("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return f.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return f.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return f.size()==="small"?f.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
f.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.T("animated-seek-arrows",{class:_.Pw("ytPlayerControlsAnimatedSeekArrowsHost")},_.T("span",{class:S}),_.T("span",{class:S}),_.T("span",{class:S}))},"Yf");
C0z.idomCompat=!0;var pfo=_.oS(function(){var f=_.Jf("PLAYER_SECONDS",{seconds_placeholder:"30"}),S=_.m(_.hj(!1,void 0,"Yj8msb")),B=S.next().value,G=S.next().value,g=_.m(_.hj(!1,void 0,"r9Z50e"));S=g.next().value;var b=g.next().value;g={};var z=_.Pw("jumpForwardOverlayOverlay",(g.jumpForwardOverlayOverlayHidden=S,g));_.j9(function(){var X=null,w=null,F=function(){X!==null&&_.kj().cancelJob(X);w!==null&&_.kj().cancelJob(w);b(!0);G(!0);_.Xd(_.kj(),function(){b(!1)});
X=_.Xd(_.kj(),function(){b(!0);w=_.Xd(_.kj(),function(){G(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",F);_.Ov(function(){window.removeEventListener("jump-forward-clicked",F)})});
return _.T("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.T(_.v,{cond:B,then:function(){return _.T("div",{class:z},_.T(C0z,{direction:1,size:"large"}),_.T("div",null,f))}}))},"Zf");var AAu=_.Zj.MUTE_VOLUME,Ngu=_.Zj.UNMUTE_VOLUME,M9n=_.oS(function(f){var S=f.muteIconType;var B=f.onClick;var G=f.useOutlineIcon;var g=f.useDelhiIcons;f=_.tE("button",function(X){_.Id(X,28662)});
var b=function(){var X=S(),w=G==null?void 0:G(),F=g==null?void 0:g(),V="",J="";switch(X){case -1:case 0:V=w?"VOLUME_OFF":F?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";J=Ngu;break;case 1:V=w?"VOLUME_UP_OUTLINE":F?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";J=AAu;break;case 2:V=w?"VOLUME_DOWN_OUTLINE":F?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";J=AAu;break;default:_.mu(X)}return{iconName:V,ariaLabel:J}},z=function(){return b().ariaLabel};
return _.T("ytm-mute-button",{class:"ytmMuteButtonHost"},_.T("button",{el:f,class:"ytmMuteButtonButton",title:z,"aria-label":z,"on:click":_.iF(function(X){_.U1(28662);B==null||B(X);return!1})},_.T("span",null,_.T(_.Y8,{icon:function(){return b().iconName}}))))},"$f");var ZLe=_.oS(function(f){var S=f.volumeProps;var B=f.onClickFn;var G=f.useOutlineIcon;var g=f.useDelhiIcons;return _.T("yt-mute-toggle-button",null,_.T(M9n,{muteIconType:function(){var b=S();return b.volumeMuted||b.volume===0?0:b.volume>50?1:2},
onClick:function(b){var z=S().playerApi;z&&(z.isMuted()?z.unMute():z.mute(!1));B==null||B(b)},
useOutlineIcon:function(){return!(G==null||!G())},
useDelhiIcons:function(){return!(g==null||!g())}}))},"ag");
ZLe.idomCompat=!0;var t9u=_.oS(function(f){var S=f.data;var B=_.tE("ytm-paid-content-overlay-renderer");return _.T("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:B,"on:animationend":_.iF(function(){B.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.T(_.XD,{command:function(){return S().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.T(_.v,{cond:function(){var G;return(G=S().icon)==null?void 0:G.iconType},
then:function(){return _.T("span",null,_.T(_.Y8,{icon:function(){var G;return(G=S().icon)==null?void 0:G.iconType}}))}}),_.T("div",{class:"ytmPaidContentOverlayText"},_.T(_.oY,{text:function(){return S().text}})),_.T(_.v,{cond:function(){return S().navigationEndpoint},
then:function(){return _.T(_.Y8,{icon:"CHEVRON_RIGHT"})}})))},"bg");
t9u.idomCompat=!0;var Reu=[].concat(_.$d([{register:function(f){var S=Ko2(f),B;(B=f().playerApi)==null||B.addEventListener("onVolumeChange",S);return function(){}}},
{register:function(f){var S=dRM(f);f=f().playerApi;f==null||f.addEventListener("captionschanged",S);f==null||f.addEventListener("captionssettingschanged",S);f==null||f.addEventListener("onCaptionsTrackListChanged",S);return function(){}}},
{register:function(f){if(!_.K("mweb_screenreader_accessible_player"))return function(){};
var S=iSX(f),B=document.querySelector("video");B==null||B.addEventListener("touchend",S);return function(){B==null||B.removeEventListener("touchend",S)}}},
{register:function(f){if(!_.K("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var S=iSX(f),B=document.querySelector("video");B==null||B.addEventListener("focus",S);return function(){B==null||B.removeEventListener("focus",S)}}}]),[{register:function(f){var S=VIM(f),B;
(B=f().playerApi)==null||B.addEventListener("onStateChange",S);return function(){}}},
{register:function(f){var S=JaX(f),B;(B=f().playerApi)==null||B.addEventListener("onPlaybackRateChange",S);return function(){}}},
{register:function(f){var S=P5z(f),B;(B=f().playerApi)==null||B.addEventListener("onVideoDataChange",S);return function(){}}},
{register:function(f){var S=vAM(f),B,G;(B=f())==null||(G=B.playerApi)==null||G.addEventListener("onVideoProgress",S);return function(){}}}]);var uqY=_.oS(function(f){var S=f.data;var B=function(){return _.Jf("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+S().playbackRate})};
return _.T(_.v,{cond:function(){return S().playbackRate&&S().playbackRate!==1},
then:function(){return _.T("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.T("div",{class:"ytPlaybackRateOverlayOverlay"},_.T(C0z,{direction:1,size:"small"}),_.T("div",{class:"ytPlaybackRateOverlayLabel"},B)))}})},"cg");var atY=_.oS(function(f){var S=f.data;return _.T("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.T(_.v,{cond:function(){var B,G=(B=S())==null?void 0:B.playerResponse,g;return G==null?void 0:(g=G.paidContentOverlay)==null?void 0:g.paidContentOverlayRenderer},
then:function(B){return _.T(t9u,{data:B})}}))},"eg"),yAZ=_.oS(function(f){var S=f.props;
var B=f.data;var G=f.options;var g=function(){var F,V,J,P;return(F=B())==null?void 0:(V=F.playerResponse)==null?void 0:(J=V.playerConfig)==null?void 0:(P=J.inlinePlaybackConfig)==null?void 0:P.showAudioControls},b=function(){var F,V;
if(g()&&((F=G())==null?void 0:(V=F.additionalButton)==null?void 0:V.button)!==void 0){var J,P,d;F=(J=B())==null?void 0:(P=J.playerApi)==null?void 0:(d=P.getSize())==null?void 0:d.height;if(!(F===void 0||F<180)){var Q,x;return(Q=G())==null?void 0:(x=Q.additionalButton)==null?void 0:x.button}}},z=function(){var F,V;
return(F=G())==null?void 0:(V=F.additionalButton)==null?void 0:V.thumbnailOverlayButtonRenderers},X=function(){var F,V;
return(F=G())==null?void 0:(V=F.additionalButton)==null?void 0:V.thumbnailOverlayButtonViewModels},w=function(){var F=[_.T(ZLe,{volumeProps:S}),
_.T(It2,{playerControlsProps:S})];b()===1&&F.push(_.T(k82,{playerApi:function(){return S().playerApi}}));
b()===2&&F.push(_.T(n5M,{appApi:function(){return S().appApi}}));
b()===3&&F.push(_.T(sju,{playerApi:function(){return S().playerApi}}));
var V=z();if(b()===4&&V){V=_.m(V);for(var J=V.next(),P={};!J.done;P={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$52:void 0,command$jscomp$571:void 0},J=V.next()){J=J.value;P.tooltip$jscomp$2=J.tooltip;var d=void 0,Q=void 0;P.ariaLabel$jscomp$20=((d=J.accessibility)==null?void 0:(Q=d.accessibilityData)==null?void 0:Q.label)||P.tooltip$jscomp$2;d=void 0;P.icon$jscomp$52=(d=J.icon)==null?void 0:d.iconType;P.command$jscomp$571=J.command;P.tooltip$jscomp$2&&P.ariaLabel$jscomp$20&&P.icon$jscomp$52&&
F.push(_.T(Dpn,{title:function(x){return function(){return x.tooltip$jscomp$2}}(P),
ariaLabel:function(x){return function(){return x.ariaLabel$jscomp$20}}(P),
icon:function(x){return function(){return x.icon$jscomp$52}}(P),
command:function(x){return function(){return x.command$jscomp$571}}(P)}))}}V=X();
if(b()===4&&V)for(V=_.m(V),J=V.next(),P={};!J.done;P={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$53:void 0,command$jscomp$572:void 0},J=V.next())J=J.value,P.tooltip$jscomp$3=J.title,P.ariaLabel$jscomp$21=J.accessibilityText||P.tooltip$jscomp$3,P.icon$jscomp$53=J.iconName,P.command$jscomp$572=_.CH(J.onTap),P.tooltip$jscomp$3&&P.ariaLabel$jscomp$21&&P.icon$jscomp$53&&F.push(_.T(Dpn,{title:function(x){return function(){return x.tooltip$jscomp$3}}(P),
ariaLabel:function(x){return function(){return x.ariaLabel$jscomp$21}}(P),
icon:function(x){return function(){return x.icon$jscomp$53}}(P),
command:function(x){return function(){return x.command$jscomp$572}}(P)}));
return F};
return _.T(_.v,{cond:g,then:function(){return _.T("div",{class:"ytInlinePlayerControlsTopRightControls"},_.T(_.dg,{each:w},function(F){return _.T("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.T("div",{class:"ytInlinePlayerControlsButtonIcon"},F))}))}})},"fg"),ltn=_.oS(function(f){var S=f.props;
var B=f.data;var G=f.options;f={};f=_.Pw("ytInlinePlayerControlsBottomRightControls",(f.ytInlinePlayerControlsBottomRightControlsHidden=function(){var g;return qbo(B(),G())&&((g=G())==null?void 0:g.insetProgressBar)&&(S().isHovering||S().isDragging)},f));
return _.T("div",{class:f},_.T(WCZ,{data:B}),_.T(_.v,{cond:function(){var g;return!((g=G())==null?0:g.hideTimeDisplay)},
then:function(){return _.T(cA2,{props:S,data:B})}}))},"gg"),WCZ=_.oS(function(f){var S=f.data;
return _.T(_.xK,{data:function(){var B;return bSu((B=S())==null?void 0:B.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:UpO})},"hg"),cA2=_.oS(function(f){var S=f.props;
var B=f.data;return _.T(_.v,{cond:function(){return S().isLive},
then:function(){return _.T(fzo,null)},
else:function(){return _.T(o0X,{props:S,data:B})}})},"ig"),o0X=_.oS(function(f){var S=f.props;
var B=f.data;var G=_.vW(function(){var g;return zez((g=B())==null?void 0:g.thumbnailOverlays)},void 0,"kUmuA");
return _.T("div",{class:_.Pw("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.Zj.PLAYER_TIME_ELAPSED+" "+_.I1s(S().playedTime)}},_.T(_.xq,{data:function(){var g=_.I1s(S().videoDuration-S().playedTime);
return Object.assign({},{type:16,text:g},G())}}))},"jg"),fzo=_.oS(function(){var f=_.Pw("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge");
return _.T("div",{class:f},_.T(_.xq,{data:{type:17,text:_.Zj.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"kg"),SZu=_.oS(function(f){var S=f.props;
var B=f.data;var G=f.options;return _.T(_.iXu,{progressBarProps:S,config:function(){var g,b=_.H((g=B())==null?void 0:g.multiMarkersPlayerBar,_.UGg),z;g=((z=G())==null?0:z.insetProgressBar)?2:1;var X;z=(X=G())==null?void 0:X.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:g,chapterData:b,isInlinePlayback:!0,doSeekOnClick:z,playheadDotBehavior:z?1:0}}})},"lg");_.eq(_.oS(function(f){var S=f.data;var B=f.appApi;var G=f.options;var g=Foz(S,HSo(B));f={};B={};return _.T("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.T("div",{class:_.Pw("ytInlinePlayerControlsDarkenedOverlay",(f.ytInlinePlayerControlsDarkenedOverlayShow=function(){return g().isHovering},f))}),_.T(pfo,null),_.T(uqY,{data:g}),_.T(atY,{data:S}),_.T(LCu,{playerControlsProps:g,
isShortsPage:!1}),_.T("div",{class:_.Pw((B.ytInlinePlayerControlsControlsHidden=function(){return g().isDragging},B))},_.T(yAZ,{props:g,
data:S,options:G}),_.T(ltn,{props:g,data:S,options:G})),_.T(_.v,{cond:function(){return qbo(S(),G())},
then:function(){return _.T(SZu,{props:g,data:S,options:G})}}))},"dg"),"yt-inline-player-controls",{props:{data:_.W4,
appApi:_.gm,options:_.W4}});var tP=function(){var f=_.I.apply(this,arguments)||this;f.opts=null;f.playerControlsData=null;f.playerControlsAppApi={openInMiniplayer:function(){f.openInMiniplayer()}};
f.playerControlsOptions={};f.noAnimation=!1;f.playbackIntentTriggered=!1;f.positionData=null;f.hidden=!0;f.active=!1;f.playing=!1;f.videoPreviewDataIndex=0;f.JSC$16980_playerPromise=null;f.player=null;f.enableAudioControls=!1;f.hasBeenUnmuted=!1;f.captionsHaveBeenTurnedOff=!1;f.JSC$16980_playerEvents=new Map;f.videoPreviewFetchRequest=null;f.scheduledPreviewEndJobId=null;f.JSC$16980_preventProgressSaveTimer=null;f.watchEndpointStartTimeUpdaterInterval=null;f.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};f.windowOnBlurFn=function(){f.deactivate()};
return f};
_.q(tP,_.I);_.e=tP.prototype;
_.e.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.K("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"}}}};
_.e.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$16980_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$16980_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$16980_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$16980_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.Fc(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.Fc(this,this.onScroll))};
_.e.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.Fc(this,this.onScroll))};
_.e.onPageTypeChange=function(){this.deactivate()};
_.e.onWindowResized=function(){this.deactivate()};
_.e.onCaptionsChanged=function(f){f=!!f.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!f);this.setCaptionSize()};
_.e.setCaptionSize=function(){var f;if(this.active&&!this.captionsHaveBeenTurnedOff&&((f=this.player)==null?0:f.getCaptionWindowContainerId())){var S;(S=this.player)==null||S.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.e.currentPageAllowed=function(){return!this.isWatchPage};
_.e.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var f=this.positionData,S=f.initialTopPosition,B=f.initialHorizontalPosition;_.hO(this.hostElement,{"--ytd-video-preview-translate-left":f.finalHorizontalPosition-B+"px","--ytd-video-preview-translate-top":f.finalTopPosition-S+"px","--ytd-video-preview-original-top-position":S+"px","--ytd-video-preview-original-horizontal-position":B+"px",
"--ytd-video-preview-initial-scale":"scale("+f.initialScale+")","--ytd-video-preview-width":f.videoPreviewWidth+"px","--ytd-video-preview-height":f.videoPreviewHeight+"px"});return!0};
_.e.handleOpenVideoPreviewAction=function(f){var S=this,B;return _.R(function(G){if(!S.currentPageAllowed())return G.return(0);S.opts=f;return(B=S.alignVideoPreviewForAnimation(f.thumbnail))?G.return(S.activate()):G.return(0)})};
_.e.onMouseLeave=function(f){this.shouldDeactivateOnMouseLeave(f)&&this.deactivate()};
_.e.onScroll=function(){var f,S;((f=this.opts)==null?0:f.isAutoplay)&&((S=this.opts)==null?0:S.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.e.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.xJ.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.e.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.e.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",tP.JSC$16979_DEFAULT_CLICK_LOCATION_BEHAVIOR,tP.JSC$16979_CLICK_LOCATION_ID_MAP)};
_.e.shouldDeactivateOnMouseLeave=function(f){f=f.relatedTarget;if(!f)return!0;var S;return(S=this.opts)!=null&&S.mediaRenderer?!_.zY(this.opts.mediaRenderer).contains(f):!0};
_.e.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.e.onPlaybackStart=function(){var f=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$16980_preventProgressSaveTimer=
_.Xd(_.xJ,function(){f.resetPreventProgressSaveTimer()},1E4);
var S;if((S=this.opts)==null?0:S.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.Xd(_.xJ,function(){f.hasMultipleVideoPreviews()?f.startPlaybackForNextVideo():f.deactivate()},this.opts.videoPreviewDurationMs);
var B;this.player.setGlobalCrop(((B=this.opts)==null?0:B.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.e.getRoundedCornersSize=function(){var f;if((f=this.opts)==null?0:f.roundedCornersSize){var S;return(S=this.opts)==null?void 0:S.roundedCornersSize}var B;if((B=this.opts)==null?0:B.enableRounding){var G;if(((G=this.opts)==null?void 0:G.thumbnailSize)==="small")return 1;var g;if(((g=this.opts)==null?void 0:g.thumbnailSize)==="medium")return 2;var b;if(((b=this.opts)==null?void 0:b.thumbnailSize)==="large")return 3}return _.K("web_imp_inset_progress_bar")?3:0};
_.e.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.e.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.e.onMediaContainerClick=function(f){this.isShortcutClick(f)||(this.navigateToWatch(f),f.preventDefault(),f.stopPropagation())};
_.e.activate=function(){var f=this,S,B,G,g,b,z,X,w,F;return _.R(function(V){switch(V.nextAddress){case 1:if(!f.currentPageAllowed())return V.return(0);B=(S=f.videoPreviewData)==null?void 0:S.inlinePlaybackEndpoint;G=_.Zd.instance;if(!B||!G)return V.return(0);f.playbackIntentTriggered=!0;((g=f.opts)==null?0:g.mediaRenderer)&&((b=f.opts)==null||!b.isAutoplay)&&gA2(f.opts.mediaRenderer,function(){f.deactivate()});
_.ui(f,function(){f.revealPreviewUi()});
z={};_.K("enable_unknown_lact_fix_on_html5")&&(_.oy().resolve(_.k8),z.lact=_.or());f.videoPreviewFetchRequest=lM2(G,f.getInlinePlaybackRequestData(f.videoPreviewData),z);_.zT(V,2);return _.h(V,f.videoPreviewFetchRequest,4);case 4:X=V.yieldResult;if(((w=X)==null?void 0:(F=w.playabilityStatus)==null?void 0:F.status)==="OK")return V.return(f.handlePlayerResponse(X));throw Error("Mj");case 2:_.hm(V),f.deactivate();case 3:return V.return(1)}})};
_.e.getInlinePlaybackRequestData=function(f){var S,B=_.K("web_imp_player_mute_params")?((S=this.opts)==null?void 0:S.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:f.inlinePlaybackEndpoint,startPlaybackInMutedState:B}};
_.e.handlePlayerResponse=function(f){var S=this,B,G,g,b,z,X,w,F,V,J;return _.R(function(P){if(P.nextAddress==1){B=S.getInlinePlaybackVideoId();if(!(((G=f)==null?0:(g=G.videoDetails)==null?0:g.videoId)&&S.currentPageAllowed()&&S.playbackIntentTriggered&&S.opts&&B))return S.deactivate(),P.return(0);if(f.videoDetails.videoId!==B)return P.return(0);S.enableAudioControls=!!((b=f.playerConfig)==null?0:(z=b.inlinePlaybackConfig)==null?0:z.showAudioControls);f.trackingParams=S.getInlinePlaybackTrackingParams();
if(!S.inlinePlayer)return P.return(0);X={};if(F=_.H((w=S.videoPreviewData)==null?void 0:w.inlinePlaybackEndpoint,_.t2))X.watch_endpoint=F;if(S.videoPreviewData){var d,Q=(d=_.H(S.videoPreviewData.inlinePlaybackEndpoint,_.t2))==null?void 0:d.startTimeSeconds;Q!==void 0&&(f.playerConfig||(f.playerConfig={}),f.playerConfig.playbackStartConfig||(f.playerConfig.playbackStartConfig={}),f.playerConfig.playbackStartConfig.startPosition||(f.playerConfig.playbackStartConfig.startPosition={}),f.playerConfig.playbackStartConfig.startSeconds=
Q,f.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(Q*1E3))}S.inlinePlayer.loadVideoWithPlayerResponse(f,X);if(S.JSC$16980_playerPromise)return P.jumpTo(2);S.JSC$16980_playerPromise=S.inlinePlayer.getPlayerPromise();return _.h(P,S.JSC$16980_playerPromise,3)}P.nextAddress!=2&&(V=P.yieldResult,V.setInlinePreview(!0),V.setSizeStyle(!1,!0),S.ytPlayerListenerBehavior.listenToPlayerEvents(V,S.JSC$16980_playerEvents),S.player=V,_.ew(S.hostElement,"player-api-ready"));((J=S.opts)==
null?0:J.showPlayerControls)&&S.videoPreviewData&&S.player&&(S.playerControlsData={playerResponse:f,isInlinePlayback:!0,thumbnailOverlays:S.videoPreviewData.thumbnailOverlays,playerApi:S.player},S.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!S.unroundCornersForPlayback,additionalButton:S.getAdditionalButtonType(S.videoPreviewData.thumbnailOverlays)});return P.return(2)})};
_.e.revealPreviewUi=function(){var f=this;this.playbackIntentTriggered&&_.QY1(this,function(){f.hasThumbnailPositionChangedSinceTriggered()||(f.updateActiveState(!0),f.noAnimation=!1)})};
_.e.hasThumbnailPositionChangedSinceTriggered=function(){var f=this.positionData,S=this.getThumbnailPositionData();return(f==null?void 0:f.initialTopPosition)!==(S==null?void 0:S.initialTopPosition)||(f==null?void 0:f.initialHorizontalPosition)!==(S==null?void 0:S.initialHorizontalPosition)};
_.e.getThumbnailPositionData=function(){var f,S;if((S=this.opts)==null||!S.thumbnail)return null;S=this.opts.thumbnail;var B=((f=this.opts)==null?0:f.cropPlayerToFillThumbnailHorizontally)?!1:!0;var G=S.getBoundingClientRect();f=G.width;S=G.height;var g=G.top+window.scrollY;G=G.left+window.scrollX;var b=B?Math.ceil(f):f;B=B?Math.ceil(S):S;var z=f/b;f={initialScale:z,initialTopPosition:g-12*z,finalTopPosition:g-12-(B-S)/2,initialHorizontalPosition:G-(12+(b-f)/2),finalHorizontalPosition:G-12-(b-f)/
2,videoPreviewWidth:b,videoPreviewHeight:B};return f};
_.e.updateActiveState=function(f){this.active=f;this.ytdReduxBehavior.dispatch(_.ef({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:f}))};
_.e.stopPlayer=function(f){f=f.resetWatchEndpointStartTime===void 0?!1:f.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(f)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.xJ.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.e.deactivate=function(f){f=f===void 0?{}:f;f=f.resetWatchEndpointStartTime===void 0?!1:f.resetWatchEndpointStartTime;R7&&(R7.disconnect(),R7=null);this.stopPlayer({resetWatchEndpointStartTime:f});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.e.isValidThumbnailOverlayButton=function(f,S){f=f.thumbnailOverlayButtonRenderer;var B;return!!f&&!!f.tooltip&&!((B=f.icon)==null||!B.iconType)&&S.includes(f.icon.iconType)};
_.e.isValidThumbnailOverlayButtonViewModel=function(f,S){var B;f=_.H((B=f.thumbnailOverlayButtonViewModel)==null?void 0:B.overlayButton,_.Q5);return!!f&&!!f.title&&!!f.iconName&&S.includes(f.iconName)};
_.e.getAdditionalButtonType=function(f){var S=this;if(_.K("web_imp_fastforward_button"))return{button:1};if(_.K("web_imp_miniplayer_button"))return{button:2};if(_.K("web_imp_playback_speed_button"))return{button:3};var B=["BOX_STACK_3"],G=(f||[]).filter(function(b){return S.isValidThumbnailOverlayButton(b,B)}).map(function(b){return b.thumbnailOverlayButtonRenderer});
if(G.length)return{button:4,thumbnailOverlayButtonRenderers:G};var g=["BOX_STACK_3"];f=(f||[]).filter(function(b){return S.isValidThumbnailOverlayButtonViewModel(b,g)}).map(function(b){return _.H(b.thumbnailOverlayButtonViewModel.overlayButton,_.Q5)});
if(f.length)return{button:4,thumbnailOverlayButtonViewModels:f}};
_.e.allowCaptions=function(){var f;return!((f=this.opts)==null?0:f.forceCaptionsOff)};
_.e.allowUnmuting=function(){var f;return this.enableAudioControls&&!((f=this.opts)==null?0:f.forceMutedVolume)};
_.e.beginStartTimeUpdater=function(){var f=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.zt(function(){f.updateWatchEndpointStartTime()},1E3)};
_.e.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.e.resetPreventProgressSaveTimer=function(){this.JSC$16980_preventProgressSaveTimer!==null&&(_.xJ.cancelJob(this.JSC$16980_preventProgressSaveTimer),this.JSC$16980_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.e.updateWatchEndpointStartTime=function(f){var S=this.videoPreviewData;if(this.player&&S!=null&&S.inlinePlaybackEndpoint&&!this.JSC$16980_preventProgressSaveTimer){f=f?0:Math.floor(this.player.getCurrentTime());var B=_.H(S.navigationEndpoint,_.t2);B&&(B.startTimeSeconds=f);if(S=_.H(S.inlinePlaybackEndpoint,_.t2))S.startTimeSeconds=f}};
_.e.isShortcutClick=function(f){return!!f&&(f.ctrlKey||f.shiftKey||f.metaKey)};
_.e.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.e.openInMiniplayer=function(){var f=this,S,B;return _.R(function(G){if(G.nextAddress==1){B=(S=f.videoPreviewData)==null?void 0:S.navigationEndpoint;if(!B)return G.return();_.Pn().lockupActivation=!0;return _.h(G,_.CI7(_.oy().resolve(_.N_),B),2)}_.Pn().userActivation=!0;_.TT(G)})};
_.e.navigateToWatch=function(f){var S,B=(S=this.videoPreviewData)==null?void 0:S.navigationEndpoint;if(B){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(B,f,!0);else{if(_.K("web_thumbnail_to_watch_transition")){var G,g;(G=this.opts)==null||(g=G.onNavigateToWatchCallback)==null||g.call(G)}_.ew(this.hostElement,"yt-navigate",{endpoint:B})}this.deactivate()}};
_.e.getInlinePlaybackVideoId=function(){var f,S;return(S=_.H((f=this.videoPreviewData)==null?void 0:f.inlinePlaybackEndpoint,_.t2))==null?void 0:S.videoId};
_.e.getInlinePlaybackTrackingParams=function(){var f,S;return(f=this.videoPreviewData)==null?void 0:(S=f.inlinePlaybackEndpoint)==null?void 0:S.clickTrackingParams};
_.e.hasMultipleVideoPreviews=function(){var f;return!!(((f=this.opts)==null?0:f.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.e.startPlaybackForNextVideo=function(){var f;(f=this.opts)!=null&&f.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())};
_.y3.Object.defineProperties(tP.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.opts)==null?0:f.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.opts)==null||!f.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 f;if(Array.isArray((f=this.opts)==null?void 0:f.videoPreviewData)){var S;return(S=this.opts)==null?void 0:S.videoPreviewData[this.videoPreviewDataIndex]}var B;return(B=this.opts)==null?void 0:B.videoPreviewData}}});
tP.prototype.onIsAdsVideoChange=tP.prototype.onIsAdsVideoChange;tP.prototype.onInlinePreviewIsEnabledChange=tP.prototype.onInlinePreviewIsEnabledChange;tP.prototype.optsChanged=tP.prototype.optsChanged;tP.prototype.onMouseLeave=tP.prototype.onMouseLeave;tP.JSC$16979_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);tP.JSC$16979_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"}];
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],tP.prototype,"actionHandlerBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],tP.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Nr.YtPlayerListenerBehavior),_.Z("design:type",_.Mr)],tP.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],tP.prototype,"componentBehavior",void 0);
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],tP.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],tP.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.lE.YtSparklesClickLocationBehavior),_.Z("design:type",Object)],tP.prototype,"ytSparklesClickLocationBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],tP.prototype,"opts",void 0);_.N([_.n(),_.Z("design:type",Object)],tP.prototype,"playerControlsData",void 0);
_.N([_.n(),_.Z("design:type",Object)],tP.prototype,"playerControlsAppApi",void 0);_.N([_.n(),_.Z("design:type",Object)],tP.prototype,"playerControlsOptions",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],tP.prototype,"noAnimation",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],tP.prototype,"hidden",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],tP.prototype,"active",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],tP.prototype,"playing",void 0);_.N([_.n({selector:_.mG9}),_.Z("design:type",Boolean)],tP.prototype,"inlinePreviewIsEnabled",void 0);_.N([_.n(),_.Z("design:type",String)],tP.prototype,"pagePath",void 0);_.N([_.n({selector:_.kr}),_.Z("design:type",Boolean)],tP.prototype,"isWatchPage",void 0);_.N([_.k("videoPreviewData"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],tP.prototype,"thumbnailData",null);
_.N([_.k("opts","active"),_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],tP.prototype,"hidePlayerControls",null);_.N([_.k("opts"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],tP.prototype,"isAdsVideo",null);_.N([_.k("opts"),_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],tP.prototype,"roundedCornersSmall",null);
_.N([_.k("opts"),_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],tP.prototype,"roundedCornersMedium",null);_.N([_.k("opts"),_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],tP.prototype,"roundedCornersLarge",null);_.N([_.k("opts"),_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],tP.prototype,"unroundCornersForPlayback",null);
_.N([_.k("opts","videoPreviewDataIndex"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],tP.prototype,"videoPreviewData",null);_.N([_.n(),_.Z("design:type",Object)],tP.prototype,"videoPreviewDataIndex",void 0);_.N([_.vF("#inline-player"),_.Z("design:type",Object)],tP.prototype,"inlinePlayer",void 0);_.N([_.Vg("mouseleave"),_.Z("design:type",Function),_.Z("design:paramtypes",[MouseEvent]),_.Z("design:returntype")],tP.prototype,"onMouseLeave",null);
_.N([_.HF("opts"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tP.prototype,"optsChanged",null);_.N([_.HF("inlinePreviewIsEnabled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tP.prototype,"onInlinePreviewIsEnabledChange",null);_.N([_.JO("isAdsVideo"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tP.prototype,"onIsAdsVideoChange",null);
_.N([_.C({is:"ytd-video-preview",disableElementRegistration:!0})],tP);
_.p(tP,"ytd-video-preview",function(){if(E52!==void 0)return E52;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return E52=f},{mode:2});
}catch(e){_._DumpException(e)}
try{
var aFn,yIe,WVe;aFn=function(f){return _.K("kevlar_watch_cinematics_invisible")||f.fullscreen&&_.K("kevlar_watch_cinematics_invisible_in_fullscreen")||f.theater&&!f.fullscreen&&_.K("kevlar_watch_cinematics_invisible_in_theater")};
yIe=function(){var f=document.createElement("canvas"),S=f.getContext("2d");if(!S)throw Error("Zl");_.IF(f,{position:"absolute",width:"100%",height:"100%"});return{element:f,context:S}};
WVe=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.K("kevlar_watch_cinematics_css_blur")};
_.cIM=function(f,S,B){return Math.abs(f-S)<=(B||1E-6)};
_.lFM=function(f,S){return f==S?!0:f&&S?f.width==S.width&&f.height==S.height:!1};_.fO$=new _.u("notificationActionRenderer");var oSu=function(f){var S=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.w3;this.element.addEventListener("load",function(){S.loaded=!0;S.resolver.resolve(S.element)});
this.element.addEventListener("error",function(){S.failed=!0});
this.element.src=f};var SDu=function(f,S){this.image=f;this.frame=S};
SDu.prototype.drawToCanvas=function(f,S){var B=this.frame.width/this.frame.columns,G=this.frame.height/this.frame.rows,g=S.offsetX,b=S.offsetY;aFn(S)?(f.fillStyle=S.fullscreen?"#000":"#0f0f0f",f.fillRect(g,b,(S==null?void 0:S.width)||B,(S==null?void 0:S.height)||G)):f.drawImage(this.image,this.frame.column*B,this.frame.row*G,B,G,g,b,(S==null?void 0:S.width)||B,(S==null?void 0:S.height)||G)};
var Bf$=function(f){this.color=f};
Bf$.prototype.drawToCanvas=function(f,S){var B=S.offsetX,G=S.offsetY,g=S.width,b=S.height;f.fillStyle=aFn(S)?S.fullscreen?"#000":"#0f0f0f":this.color;f.fillRect(B,G,g,b)};var SX=function(f,S){_.cT.call(this);this.playerApi=S;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.Xr(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();GOn(this,f);gSu(this);this.update()};
_.q(SX,_.cT);SX.prototype.addEventListeners=function(){var f=this,S=function(){f.update()},B=function(g){f.paused||(g.type==="newdata"&&(f.mosaics.clear(),elM(f),Bh(f)),gSu(f),f.update())},G=function(){f.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",S);this.playerApi.addEventListener("onVideoDataChange",B);this.playerApi.addEventListener("onStateChange",G);this.addOnDisposeCallback(function(){f.playerApi.removeEventListener("onVideoProgress",S);f.playerApi.removeEventListener("onVideoDataChange",B);f.playerApi.removeEventListener("onStateChange",G)})};
var GOn=function(f,S){f.cinematicContainerRenderer!==S&&(f.cinematicContainerRenderer=S,elM(f),Bh(f),f.colorStoreUpdateJobId=_.xJ.addLowPriorityJob(function(){var B;if((B=f.cinematicContainerRenderer.colorStore)!=null&&B.sampledColors){B=Infinity;for(var G=_.m(f.cinematicContainerRenderer.colorStore.sampledColors),g=G.next();!g.done;g=G.next()){g=g.value;var b=Number(g.key);b!==0&&b<B&&(B=b);b=_.AK(g.value);f.colorStore.set(g.key,b)}f.colorStoreTimeInterval=B}}))},elM=function(f){f.colorStoreUpdateJobId&&
(_.xJ.cancelJob(f.colorStoreUpdateJobId),f.colorStoreUpdateJobId=void 0);
f.colorStore.clear();f.currentStoryboardColor=void 0},bU2=function(f,S){var B;
return(B=f.getStoryboardFrame(S))==null?void 0:B.url};
SX.prototype.onPlayerStateChange=function(){this.update()};
SX.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var gSu=function(f){var S=f.getStoryboardFrame(0);S&&(S=new _.Xr(S.width/S.columns,S.height/S.rows),_.lFM(f.currentStoryboardSize,S)||(f.currentStoryboardSize=S,f.publish("STORYBOARD_SIZE_CHANGED",f.currentStoryboardSize)))},mZn=function(f,S){f.currentStoryboardIndex=S;
f.pendingStoryboardIndex=NaN;S=f.getStoryboardFrame(f.currentStoryboardIndex);f.currentStoryboard=new SDu(f.mosaics.get(S.url).element,S);f.publish("STORYBOARD_CHANGED",f.currentStoryboard);f.lastUpdateTime=(0,_.fO)()};
SX.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var Bh=function(f){f.currentStoryboardIndex=NaN;f.pendingStoryboardIndex=NaN;f.currentStoryboard&&(f.currentStoryboard=void 0,f.publish("STORYBOARD_CHANGED",void 0));f.lastUpdateTime=NaN};
SX.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)Bh(this);else{var f=this.playerApi.getPlayerState(1);if(f===-1||f===5||f===0)Bh(this);else if(isNaN(this.lastUpdateTime)||!((0,_.fO)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(f=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){f=""+Math.round(f*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var S=this.colorStore.get(f);S?S!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=S,this.currentStoryboard=new Bf$(S),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.fO)()):(_.Lg(new _.dO("Could not find color for timestamp: "+f,this.cinematicContainerRenderer)),Bh(this))}else Bh(this);else zle(this,f)}};
var zle=function(f,S){var B=f.getStoryboardFrameIndex(S);if(B!==f.currentStoryboardIndex&&B!==f.pendingStoryboardIndex){S=bU2(f,B);var G=f.mosaics.get(S);G?G.loaded&&mZn(f,B):(f.pendingStoryboardIndex=B,B=new oSu(S),f.mosaics.set(S,B),B.resolver.promise.then(function(){if(!f.isDisposed()&&!f.paused&&!isNaN(f.pendingStoryboardIndex)){var g=bU2(f,f.pendingStoryboardIndex);if(g){var b;(b=f.mosaics.get(g))!=null&&b.loaded&&mZn(f,f.pendingStoryboardIndex)}else Bh(f)}}))}};
SX.prototype.getStoryboardFrameIndex=function(f){var S=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(f,S)};
SX.prototype.getStoryboardFrame=function(f){var S=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,B,G;return((G=(B=this.playerApi).getStoryboardFrame)==null?void 0:G.call(B,f,S))||null};
SX.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var g4=function(f,S,B,G){G=G===void 0?!1:G;_.qR.call(this);this.cinematicContainerRenderer=S;this.playerApi=B;this.theater=this.fullscreen=!1;var g;this.ambientLightThemeEnabled=!G&&!!(S==null?0:(g=S.config)==null?0:g.enableInLightTheme);this.ambientFullscreenEnabled=G&&_.K("web_cinematic_fullscreen");this.container=document.createElement("div");f.appendChild(this.container);var b;if(_.K("web_cinematic_theater_mode")||_.K("web_cinematic_fullscreen")||(S==null?0:(b=S.config)==null?0:b.enableInLightTheme))this.ambientV2Container=
document.createElement("div"),this.container.appendChild(this.ambientV2Container);RlX(this);f=this.ambientV2Container||this.container;this.backCanvas=yIe();this.frontCanvas=yIe();f.appendChild(this.backCanvas.element);f.appendChild(this.frontCanvas.element);this.storyboardManager=new SX(S,this.playerApi);_.ha(this,this.storyboardManager);this.addEventListeners();Xau(this)?wau(this,100+Gr(this)*3*2,100+Gr(this)*3*2):hlX(this);Tfo(this,this.storyboardManager.currentStoryboard)};
_.q(g4,_.qR);var RlX=function(f){f.ambientV2Container?Flz(f):(_.IF(f.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+VHz(f)+", "+Jzo(f)+")"}),WVe()&&_.IF(f.container,"filter","blur("+_.Gt("cinematic_watch_css_filter_blur_strength",40)+"px)"))},Flz=function(f){if(f.ambientV2Container){var S=f.playerApi.getVideoAspectRatio();
_.IF(f.container,{"aspect-ratio":""+S,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.IF(f.ambientV2Container,{"aspect-ratio":""+S,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+VHz(f)+", "+Jzo(f)+")"});WVe()&&_.IF(f.ambientV2Container,"filter","blur("+_.Gt("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
g4.prototype.setFullscreen=function(f,S){this.fullscreen=f;this.theater=!!S;RlX(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),f=this.storyboardManager.currentStoryboard,PN2(this),f&&vSY(this,f)};
g4.prototype.addEventListeners=function(){var f=this,S=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(g){Tfo(f,g)}),B=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){hlX(f)});
this.addOnDisposeCallback(function(){f.storyboardManager.unsubscribeByKey(S);f.storyboardManager.unsubscribeByKey(B)});
if(this.ambientV2Container){var G=function(){Flz(f)};
this.playerApi.addEventListener("onVideoDataChange",G);this.addOnDisposeCallback(function(){f.playerApi.removeEventListener("onVideoDataChange",G)})}};
var hlX=function(f){if(!Xau(f)){var S=f.storyboardManager.currentStoryboardSize;isNaN(S.width)||isNaN(S.height)||wau(f,Number(S.width)+Gr(f)*3*2,Number(S.height)+Gr(f)*3*2)}},wau=function(f,S,B){f.backCanvas.element.width=S;
f.backCanvas.element.height=B;f.frontCanvas.element.width=S;f.frontCanvas.element.height=B},Xau=function(f){return f.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},Tfo=function(f,S,B){B=B===void 0?!1:B;
var G=f.frontCanvas.element.getAnimations()[0];G?(G.pause(),f.backCanvas.context.globalAlpha=Number(getComputedStyle(f.frontCanvas.element).opacity),f.frontCanvas.element.style.opacity="0",G.finish()):f.backCanvas.context.globalAlpha=1;f.backCanvas.context.drawImage(f.frontCanvas.element,0,0,f.backCanvas.element.width,f.backCanvas.element.height);PN2(f);S&&vSY(f,S);S=S?f.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.Gt("cinematic_watch_fade_out_duration",500);G=_.Gt("cinematic_watch_transition_frame_rate")/
1E3;var g={};G&&(g={easing:"steps("+Math.round(S*G)+")"});(B===void 0?0:B)||f.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:S,iterations:1},g));f.frontCanvas.element.style.opacity="1"},PN2=function(f){var S=f.ambientLightThemeEnabled,B=f.ambientLightThemeEnabled||f.ambientFullscreenEnabled&&!_.K("web_cinematic_fullscreen_v2");
f.frontCanvas.context.fillStyle=f.theater&&S||f.fullscreen&&B?"#000":"#0f0f0f";WVe()||(f.frontCanvas.context.filter="blur(0)");f.frontCanvas.context.fillRect(0,0,f.frontCanvas.element.width,f.frontCanvas.element.height)},vSY=function(f,S){WVe()||(f.frontCanvas.context.filter="blur("+Gr(f)+"px)");
f.frontCanvas.context.globalAlpha=_.Gt("cinematic_watch_effect_opacity",.4);var B={offsetX:Gr(f)*3,offsetY:Gr(f)*3,theater:f.theater,fullscreen:f.fullscreen};Xau(f)&&(B.width=100,B.height=100);S.drawToCanvas(f.frontCanvas.context,B);f.frontCanvas.context.globalAlpha=1},Gr=function(f){var S;
return(S=f.cinematicContainerRenderer.config.blurStrength)!=null?S:5},VHz=function(f){var S,B;
if((f.fullscreen||f.theater)&&((S=f.cinematicContainerRenderer.config)==null?0:(B=S.watchFullscreenConfig)==null?0:B.colorSourceWidthMultiplier))return f.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var G;return(G=f.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?G:f.cinematicContainerRenderer.config.colorSourceSizeMultiplier},Jzo=function(f){var S,B;
if((f.fullscreen||f.theater)&&((S=f.cinematicContainerRenderer.config)==null?0:(B=S.watchFullscreenConfig)==null?0:B.colorSourceHeightMultiplier))return f.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var G;return(G=f.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?G:f.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
g4.prototype.disposeInternal=function(){_.qR.prototype.disposeInternal.call(this);this.container.remove()};
g4.prototype.clear=function(){Tfo(this,void 0,!0)};
g4.prototype.pause=function(){this.storyboardManager.pause()};var KlX;KlX=_.i4(function(){var f,S,B=!((S=(f=document.createElement("canvas")).getContext)==null||!S.call(f,"2d")),G;f=!((G=CSS)==null||!G.supports("filter: blur(0)"));G=!!Element.prototype.animate&&!!Element.prototype.getAnimations;S=_.K("web_cinematic_fullscreen")||_.K("web_cinematic_theater_mode")||_.K("web_cinematic_light_theme")||!1;var g;return B&&f&&G&&(!S||!((g=CSS)==null||!g.supports("aspect-ratio: 1 / 1")))});
_.eX=function(f,S){_.cT.call(this);this.container=f;this.playerApi=S;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=dZZ(this);this.update()};
_.q(_.eX,_.cT);_.iUY=function(f){var S=document.documentElement.hasAttribute("dark");f.isDarkModeEnabled=S;f.update()};
_.HUX=function(f,S){f.settingEnabled=S;f.update()};
_.eX.prototype.setFullscreen=function(f,S){this.fullscreen=f;this.theater=!!S;this.update()};
_.qDu=function(f,S){f.cinematicContainerRenderer=S;f.cinematicContainerRenderer&&(f.cinematicsVe=_.Eo(f.isShorts()?227858:159022),_.Xo(_.ik(),f.cinematicsVe),f.loggingClientData={watchCinematicContainerData:{presentationStyle:f.cinematicContainerRenderer.presentationStyle}});f.update()};
_.eX.prototype.isShorts=function(){var f,S;return((f=this.cinematicContainerRenderer)==null?void 0:(S=f.config)==null?void 0:S.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.eX.prototype.isAllowed=function(){var f;if(f=KlX()){var S,B,G;f=((B=this.cinematicContainerRenderer)==null?void 0:B.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((G=this.cinematicContainerRenderer)==null||!G.colorStore)||((S=this.cinematicContainerRenderer)==null?void 0:S.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(f)if(_.K("web_cinematics_pausing")){var g,b;f=this.isDarkModeEnabled||!!((g=this.cinematicContainerRenderer)==
null?0:(b=g.config)==null?0:b.enableInLightTheme)}else{var z,X;g=!!((z=this.cinematicContainerRenderer)==null?0:(X=z.config)==null?0:X.enableInLightTheme)&&(_.nL("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);f=this.isDarkModeEnabled||g}if(z=f){var w,F;z=!((F=(w=this.prefersReducedMotionQuery)==null?void 0:w.matches)!=null&&F)}return z};
_.$ZB=function(f){(f=f.currentCinematicEffect)!=null&&(f=f.storyboardManager,f.paused=!1,gSu(f),f.update())};
_.eX.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var dZZ=function(f){if(!_.K("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var S=window.matchMedia("(prefers-reduced-motion: reduce)"),B=function(){f.update()};
S.addListener(B);f.addOnDisposeCallback(function(){S.removeListener(B)});
return S}};
_.eX.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var f=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new g4(this.container,f,this.playerApi,this.isDarkModeEnabled),_.ha(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var S=this.currentCinematicEffect;S.cinematicContainerRenderer!==
f&&(S.cinematicContainerRenderer=f,GOn(S.storyboardManager,f),RlX(S));f=_.K2();_.dh(0,194,!0);f.save();f=_.xc();this.cinematicsVe&&f&&_.Zu(f,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(f=_.xc(),this.cinematicsVe&&f&&_.tf(f,[this.cinematicsVe],!1,this.loggingClientData),_.cd(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.y3.Object.defineProperties(_.eX.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var qSu;var $UB;_.OW({_template:function(){if($UB!==void 0)return $UB;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=
f.content,B=S.insertBefore;qSu===void 0&&(qSu=document.createElement("template"));var G=qSu;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return $UB=f},
is:"tp-yt-iron-pages",behaviors:[_.Ld,_.Ze],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var vFB;_.KFe=function(){if(_.K("kevlar_home_skeleton")&&!vFB){var f=document.querySelector("#home-page-skeleton");f&&(_.kT("hgcr"),_.Pv(f),vFB=!0)}};
vFB=!1;_.H$=new _.u("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var RAu,wpZ,hA2,TVu,F2O,V8u,JGz,P$o,K22,d4u,q12,Qdu,Y12,$42,iGM,HGY,OGz;_.zA$=function(f,S,B){S=S===void 0?5:S;if(S!==0){var G=typeof f==="function"?f():document.querySelector(f);G?(B==null?0:B.enableSmartFocus)?_.ZjG(G):G.focus():setTimeout(function(){_.zA$(f,S-1,B)},500)}};
RAu=function(f){return String.raw.apply(String,[{raw:f}].concat(_.$d(_.qb.apply(1,arguments).map(function(S){return S instanceof Array?S.join(""):S}))))};
wpZ=function(f){var S=_.qb.apply(1,arguments);if(!Array.isArray(f)||!Array.isArray(f.raw)||f.length!==f.raw.length||!_.hUA&&f===f.raw||!(_.hUA&&!_.TGG||_.X6(f))||S.length+1!==f.length)throw new TypeError("ea");return new Xpu(Object.freeze({strings:Object.freeze(f),args:Object.freeze(S)}))};
hA2=function(f){return _.ZVs(_.MyK(f&16777215))<.5};
TVu=function(f,S,B){var G=B.minimumRowsOfVideosBetweenSections===void 0?1:B.minimumRowsOfVideosBetweenSections;return f<(B.minimumRowsOfVideosAtStart===void 0?2:B.minimumRowsOfVideosAtStart)||S!==null&&f-S<=G?!1:!0};
F2O=function(f,S){var B=0,G=0;f=_.m(f);for(var g=f.next();!g.done;g=f.next()){var b=g.value;if(b.richItemRenderer)b.richItemRenderer.rowIndex=G,b.richItemRenderer.colIndex=B++,B===S&&(B=0,G++);else if(b.richGroupRenderer&&b.richGroupRenderer.numColumns!==void 0)b.richGroupRenderer.rowIndex=G,b.richGroupRenderer.colIndex=B,B+=b.richGroupRenderer.numColumns,B===S&&(B=0,G++);else if(b.richSectionRenderer){var z=g=void 0;if(b=_.H((g=b)==null?void 0:(z=g.richSectionRenderer)==null?void 0:z.content,_.mFN))b.rowIndex=
G++}}};
V8u=function(f,S){var B=S.contentElement;S=S.rendererToTagNameMap;if(B&&S&&S.size!==0){for(var G=new Map,g=_.m(B.children),b=g.next();!b.done;b=g.next()){b=b.value;var z=b.tagName.toLowerCase(),X=G.get(z);X||(X=[],G.set(z,X));X.push(b)}if(G.size!==0)for(g=Math.min(f.length,B.children.length),b=new Map,z=0;z<g;z++){X=Object.keys(f[z])[0];X=S.get(X);if(!X)break;var w=b.get(X);w===void 0&&(w=0,b.set(X,w));var F=G.get(X);if(!F||w>=F.length)break;b.set(X,w+1);X=F[w];w=B.children[z];w!==X&&(_.DTQ=!0,_.Iij.set(X,
!0),B.insertBefore(X,w),_.Iij.delete(X),_.DTQ=!1)}}};
JGz=function(f,S,B,G,g,b,z){G=G===void 0?{}:G;if(!f||!f.length)return[];f=f.slice();var X=[],w=[];g=null;for(var F=0,V=function(U){w.sort(function(M,a){return a.skippedOnRow-M.skippedOnRow});
for(var A,t=(A=w.shift())==null?void 0:A.content;t;)!t.richSectionRenderer&&U||X.push(t),A=void 0,t=(A=w.shift())==null?void 0:A.content},J=void 0;f.length>0||w.length>0;){for(var P=[],d=S;d>0;){var Q=void 0,x=void 0,E=(x=w[0]&&w[0].skippedOnRow<F?(Q=w.shift())==null?void 0:Q.content:void 0)!=null?x:f.shift();
if(!E)break;if(E.richItemRenderer)Q=E.richItemRenderer.targetId,x=void 0,Q&&((x=z)==null?0:x.has(Q))&&(Q=z.get(Q),!J||Q&&Q.timestamp>J.timestamp)&&(J=Q),P.push(E),d--;else if(E.richGroupRenderer&&E.richGroupRenderer.numColumns!==void 0)E.richGroupRenderer.numColumns<=d?(P.push(E),d-=E.richGroupRenderer.numColumns):d===S&&E.richGroupRenderer.numColumns>S?(P.push({richGroupRenderer:Object.assign({},E.richGroupRenderer,{numColumns:S})}),d=0):w.push({content:E,skippedOnRow:F});else if(E.richSectionRenderer)if(TVu(F,
g,G)&&d===S){X.push(E);g=F;F++;continue}else w.push({content:E,skippedOnRow:F});else if(E.continuationItemRenderer){V(!0);X.push(E);d=0;break}if(d===0)X.push.apply(X,_.$d(P));else if(!B&&f.length===0){V(!1);X.push.apply(X,_.$d(P));d=0;break}}F++;J&&(X.push(J.content),F++);J=void 0}F2O(X,S);b&&V8u(X,b);return X};
P$o=function(){return _.qb.apply(0,arguments).flat().filter(function(f){return f}).join(";")};
K22=function(){return wpZ(vyB,P$o.apply(null,_.$d(_.qb.apply(0,arguments))))};
d4u=function(f){return f.talkToRecs};
q12=function(f,S){if(S){var B=_.W2().getState().entities.flowStateEntity,G=iGM(f),g=[S];G&&G!==S&&g.push(G);var b=!0,z;if(B&&f.flowStateEntityKey&&((z=B[f.flowStateEntityKey])==null?void 0:z.primaryButtonDisabled)!==void 0){var X;b=!((X=B[f.flowStateEntityKey])==null||!X.primaryButtonDisabled)}HGY(f,G!=null?G:S,g,b)}};
Qdu=function(f){return _.KD(_.W2(),function(S){return S.entities.flowStateEntity},function(S,B){if(f.flowStateEntityKey){var G,g=S==null?void 0:(G=S[f.flowStateEntityKey])==null?void 0:G.currentStepId,b;
B=B==null?void 0:(b=B[f.flowStateEntityKey])==null?void 0:b.currentStepId;b=_.W2().getState().talkToRecs;if(g&&g!==B){var z;S=(S==null?void 0:(z=S[f.flowStateEntityKey])==null?void 0:z.stepIdStack)||Object.keys(b.stepStates);z=!$42(b==null?void 0:b.stepStates[g]);HGY(f,g,S,z)}}})};
Y12=function(f){return _.KD(_.W2(),d4u,function(S){var B=iGM(f);if(B){var G=Object.keys(S.stepStates);S=!$42(S==null?void 0:S.stepStates[B]);HGY(f,B,G,S)}})};
$42=function(f){var S=Object.keys((f==null?void 0:f.selectionStates)||{}).reduce(function(b,z){return b||(f==null?void 0:f.selectionStates[z].isSelected)},!1),B,G,g=!!(f==null?0:(B=f.userQuery)==null?0:(G=B.userQuery)==null?0:G.trim());
return S||g};
iGM=function(f){if(f.flowStateEntityKey){var S,B,G=(S=_.W2().getState().entities.flowStateEntity)==null?void 0:(B=S[f.flowStateEntityKey])==null?void 0:B.currentStepId;if(G)return G}};
HGY=function(f,S,B,G){_.W2().dispatch(_.KF("flowStateEntity",f.flowStateEntityKey,{currentStepId:S,stepIdStack:B,key:f.flowStateEntityKey,primaryButtonDisabled:G}))};
_.rG$=function(f,S){return _.w9(f.entities,"youchatPendingResponseEntity",S)};
_.jdz=function(f){return function(S){_.WF(_.KF("youchatPendingResponseEntity",f,{entityKey:f,isPendingResponse:S}))}};
OGz=function(f){f==null||f.addEventListener("DOMLoaded",function(){f.goToAndPlay(f.totalFrames-48,!0)})};
_.S9=function(f){this.__isSoyCss=!0;this.css=RAu.apply(null,[f.strings].concat(_.$d(f.args)))};
_.S9.prototype.toString=function(){return this.css};
var Xpu=function(){_.S9.apply(this,arguments)};
_.q(Xpu,_.S9);var vyB=_.f4(["",""]);var x4M;var Ey$;_.OW({_template:function(){if(Ey$!==void 0)return Ey$;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);
var S=f.content,B=S.insertBefore;x4M===void 0&&(x4M=document.createElement("template"));var G=x4M;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return Ey$=f},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var L2B=new _.u("talkToRecsFlowRenderer");var kIY=new _.u("flowRootRenderer");var nyu=new _.u("learningJourneyQuizViewModel");var sdX=new _.u("chipsShelfViewModel");var D4X=new _.u("responsiveContainerConfiguration");var IQZ=new _.u("horizontalShelfViewModel");_.U4z=new _.u("engagementPanelSectionListRenderer");var C$u=new _.u("conversationResourceViewModel");var ppu=function(){this.horizontal=!1},AGu=function(f,S){f.horizontal=S};
ppu.prototype.position=function(f,S,B,G){G=G===void 0?1:G;f=this.delta(f)*G+S;G=Math.max(S,B);return f>=Math.min(S,B)&&f<=G?f:B};
ppu.prototype.axis=function(f){f=this.direction(f);return f==="up"||f==="down"?"Y":"X"};var R3=function(f,S,B){S=S===void 0?_.Yk():S;this.target=f;this.manager=S;this.touchAction=B;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
R3.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(_.$d(this.events)));for(var f=_.m(this.events),S=f.next();!S.done;S=f.next())this.listen(S.value)}};
R3.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.$d(this.events)));for(var f=_.m(this.events),S=f.next();!S.done;S=f.next())this.unlisten(S.value)}};
R3.prototype.listen=function(f){this.eventMap[f]&&this.target.addEventListener(f,this.eventMap[f])};
R3.prototype.unlisten=function(f){this.eventMap[f]&&this.target.removeEventListener(f,this.eventMap[f])};var XM=function(){ppu.apply(this,arguments)};
_.q(XM,ppu);XM.prototype.direction=function(f){var S=f.detail;f=S.deltaY;S=S.deltaX;return f&&!this.horizontal?f>0?"down":"up":S&&this.horizontal?S>0?"right":"left":"none"};
XM.prototype.distance=function(f){return Math.abs(this.delta(f))};
XM.prototype.delta=function(f){var S=this.direction(f),B=f.detail;f=B.deltaX;B=B.deltaY;return S==="up"||S==="down"?B||0:f||0};
XM.prototype.velocity=function(f){var S=this.direction(f),B=f.detail;f=B.velocityX;B=B.velocityY;return Math.abs(S==="up"||S==="down"?B||0:f||0)};_.wq=function(f,S,B,G,g,b){g=g===void 0?new XM:g;b=b===void 0?_.Yk():b;R3.call(this,S,b,G);var z=this;this.element=f;this.target=S;this.config=B;this.input=g;this.manager=b;this.events=["panstart","panmove","panend"];this.onPanStart=function(){z.config.draggingClass&&z.element.classList.add(z.config.draggingClass);z.config.startAction&&z.config.startAction()};
this.onPanMove=function(X){var w=NVZ(z,X);if(w){z.move(X,w);w.fade&&z.fade(X,w);var F=z.input.direction(X);w.moveAction&&w.moveAction(M8u(z,X,w),F)}};
this.onPanEnd=function(X){var w,F,V,J,P,d;return _.R(function(Q){if(Q.nextAddress==1){z.animationRequestId&&cancelAnimationFrame(z.animationRequestId);z.animationRequestId=void 0;w=NVZ(z,X);if(!w)return Q.return();F=w;V=F.triggerAction;J=F.fade;P=F.disableFinish;d=F.translateBack;var x=z.input.velocity(X),E=z.input.distance(X),U=z.threshold(w);return x>.3&&E>10||E>U?P?Q.jumpTo(6):J?_.h(Q,ZGO(z,X),6):_.h(Q,t8u(z,X,w),6):d?_.h(Q,z.translateBack(X),3):Q.jumpTo(3)}Q.nextAddress!=3&&V&&V();z.config.draggingClass&&
z.element.classList.remove(z.config.draggingClass);z.reset();_.TT(Q)})};
f=Object.keys(B.triggers);this.directions=new Set(f);AGu(this.input,this.directions.has("right")||this.directions.has("left"))};
_.q(_.wq,R3);_.wq.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var NVZ=function(f,S){S=f.input.direction(S);return f.config.triggers[S]};
_.wq.prototype.move=function(f,S){var B=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var G=B.input.axis(f),g=B.input.position(f,B.config.startPosition,S.endPosition,S.moveRatio||1);B.element.style.transform="translate"+G+"("+g+"px)";B.animationRequestId=void 0}))};
var M8u=function(f,S,B){var G=B.moveRatio||1;B=Math.abs(f.config.startPosition-B.endPosition);return Math.min(f.input.distance(S)*G,B)/B};
_.wq.prototype.fade=function(f,S){var B=S.endOpacity;f=M8u(this,f,S);f>0&&(this.element.style.opacity=""+(((B||0)-1)*f+1))};
_.wq.prototype.threshold=function(f){return f.threshold?f.threshold:Math.abs(f.endPosition-this.config.startPosition)/3};
var t8u=function(f,S,B){var G,g,b,z,X,w,F;return _.R(function(V){if(V.nextAddress==1)return G=f.input.delta(S)+f.config.startPosition,g=f.input.axis(S),b=B,z=b.endPosition,X=b.transitionEndPosition,F=(w=X)!=null?w:z,_.h(V,f.element.animate([{transform:"translate"+g+"("+G+"px)"},{transform:"translate"+g+"("+F+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);f.element.style.transform="translate"+g+"("+F+"px)";_.TT(V)})};
_.wq.prototype.translateBack=function(f){var S=this,B,G;return _.R(function(g){if(g.nextAddress==1){if(!S.element.style.transform)return g.return();B=S.input.axis(f);G=S.config.startPosition;return _.h(g,S.element.animate([{transform:S.element.style.transform},{transform:"translate"+B+"("+G+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}S.element.style.transform="translate"+B+"("+G+"px)";_.TT(g)})};
var ZGO=function(f,S){var B,G,g,b;return _.R(function(z){if(z.nextAddress==1)return B=f.input.delta(S)+f.config.startPosition,G=f.input.axis(S),g=B+70,b=f.element.style.opacity===""?1:f.element.style.opacity,_.h(z,f.element.animate([{transform:"translate"+G+"("+B+"px)",opacity:b},{transform:"translate"+G+"("+g+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);f.element.style.transform="translate"+G+"("+g+"px)";f.element.style.opacity="0";_.TT(z)})};var hB=function(){var f=_.dv.apply(this,arguments)||this;f._noAccessors=!0;f.scrollRate=3;f.autoScrollAnimationStart=0;f.autoScrollPaused=!1;f.autoScrollRafId=0;return f};
_.q(hB,_.dv);_.e=hB.prototype;_.e.created=function(){var f=this;this.boundAutoScrollHandler=function(S){f.autoScroll(S)}};
_.e.detached=function(){this.hostElement.removeEventListener("mouseout",_.Fc(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.Fc(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.Fc(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.e.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.Fc(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.Fc(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.Fc(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.Fc(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.Fc(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.Fc(this,this.endAutoScroll)),this.endAutoScroll())};
_.e.autoScroll=function(f){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=f);var S;if(S=!this.autoScrollPaused&&this.scrollTarget)S=this.scrollTarget,S=S.scrollHeight-S.scrollTop!==S.clientHeight;S&&(S=1E3/this.scrollRate,f-=this.autoScrollAnimationStart,f>S&&(this.scrollTarget.scrollTop+=Math.ceil(f/S),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.e.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.e.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
hB.prototype.autoScrollEnabledChanged=hB.prototype.autoScrollEnabledChanged;_.N([_.n(),_.Z("design:type",Object)],hB.prototype,"scrollRate",void 0);_.N([_.n(),_.Z("design:type",Object)],hB.prototype,"scrollTarget",void 0);_.N([_.n(),_.Z("design:type",Boolean)],hB.prototype,"autoScrollEnabled",void 0);_.N([_.JO("autoScrollEnabled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hB.prototype,"autoScrollEnabledChanged",null);_.N([_.iu()],hB);_.uZn=[hB.prototype];var aQu;var Tx=function(){var f=_.I.apply(this,arguments)||this;f.buttonUpdate=_.K("web_button_rework");f.dismissButtonOverrides=_.K("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;f.forceDarkTheme=!1;f.forceLightTheme=!1;f.dynamicTextHeight=94;f.hasOverflowButton=!1;f.isInfeedModernization=!1;return f};
_.q(Tx,_.I);_.e=Tx.prototype;_.e.computeUrlImg=function(f){if(f)return _.my(f.thumbnails)};
_.e.getLogoHeight=function(f){return this.logoWithPadding(f)?"31":"24"};
_.e.getLogoClassName=function(f){return this.logoWithPadding(f)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.e.logoWithPadding=function(f){var S,B;return(f=(S=f.thumbnails)==null?void 0:(B=S[0])==null?void 0:B.height)&&f%31===0?!0:!1};
_.e.sendImpressionEndpoints=function(f){f.impressionEndpoints&&_.RD(this.hostElement,f.impressionEndpoints)};
_.e.observeBasicPalette=function(){var f,S,B=(f=this.data)==null?void 0:(S=f.colorData)==null?void 0:S.basicColorPaletteData;B?_.n9(this.hostElement,B):_.n9(this.hostElement,{})};
_.e.observeDataChanged=function(){var f;this.dynamicTextHeight=((f=this.data)==null?0:f.supplementalText)?74:94;var S;this.hasSupplementalText=!((S=this.data)==null||!S.supplementalText);if(_.K("web_button_rework")){var B,G,g,b;f=(B=this.data)==null?void 0:(G=B.actionButton)==null?void 0:(g=G.buttonRenderer)==null?void 0:(b=g.colorData)==null?void 0:b.basicColorPaletteData;var z,X,w;if(!((z=this.data)==null?0:(X=z.actionButton)==null?0:(w=X.buttonRenderer)==null?0:w.style)&&f){this.computeIsInfeedModernization(this.data)||
(f.borderColor=f.foregroundTitleColor);var F,V;this.set("data.actionButton.buttonRenderer",_.$v.unsafeClone((F=this.data)==null?void 0:(V=F.actionButton)==null?void 0:V.buttonRenderer))}}};
_.e.observeDataForCounterfactual=function(){if(_.K("kevlar_banner_cf_extra_logging")){var f;((f=this.data)==null?0:f.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.e.computeSupplementalStyle=function(){var f;if((f=this.data)!=null&&f.supplementalText){var S,B,G;if((S=this.data)==null?0:(B=S.colorData)==null?0:(G=B.basicColorPaletteData)==null?0:G.foregroundActivatedColor)return f=_.pn(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+f+"; --yt-endpoint-hover-color:"+f+"; --yt-endpoint-visited-color:"+f+"; --yt-formatted-string-bold-font-weight:700;"}};
_.e.computeForcedDarkTheme=function(){var f,S,B,G=(f=this.data)==null?void 0:(S=f.actionButton)==null?void 0:(B=S.buttonRenderer)==null?void 0:B.style,g,b,z;f=hA2(((g=this.data)==null?void 0:(b=g.colorData)==null?void 0:(z=b.basicColorPaletteData)==null?void 0:z.backgroundColor)||0);return G&&f};
_.e.computeForcedLightTheme=function(){var f,S,B,G=(f=this.data)==null?void 0:(S=f.actionButton)==null?void 0:(B=S.buttonRenderer)==null?void 0:B.style,g,b,z;f=!hA2(((g=this.data)==null?void 0:(b=g.colorData)==null?void 0:(z=b.basicColorPaletteData)==null?void 0:z.backgroundColor)||0);return G&&f};
_.e.computeHasOverflowButton=function(f){return!!f.overflowButton};
_.e.computeHasTitle=function(f){return!!f.title};
_.e.computeTitleMaxFontSize=function(f){return this.computeHasOverflowButton(f)?28:64};
_.e.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.e.computeIsInfeedModernization=function(){var f,S,B,G,g=(f=this.data)==null?void 0:(S=f.actionButton)==null?void 0:(B=S.buttonRenderer)==null?void 0:(G=B.colorData)==null?void 0:G.basicColorPaletteData;return(g==null?void 0:g.backgroundColor)===452984831||(g==null?void 0:g.backgroundColor)===218103808};
Tx.prototype.observeDataForCounterfactual=Tx.prototype.observeDataForCounterfactual;Tx.prototype.observeDataChanged=Tx.prototype.observeDataChanged;Tx.prototype.observeBasicPalette=Tx.prototype.observeBasicPalette;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Tx.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.kP),_.Z("design:type",Object)],Tx.prototype,"ytdDismissibleItemBehavior",void 0);
_.N([_.r(_.Iu.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],Tx.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Tx.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Tx.prototype,"buttonUpdate",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],Tx.prototype,"hasSupplementalText",void 0);_.N([_.n(),_.Z("design:type",Object)],Tx.prototype,"dismissButtonOverrides",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.Z("design:type",Boolean)],Tx.prototype,"hasTitle",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.Z("design:type",Object)],Tx.prototype,"forceDarkTheme",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.Z("design:type",Object)],Tx.prototype,"forceLightTheme",void 0);_.N([_.n(),_.Z("design:type",Object)],Tx.prototype,"dynamicTextHeight",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.Z("design:type",Object)],Tx.prototype,"hasOverflowButton",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.Z("design:type",Object)],Tx.prototype,"isInfeedModernization",void 0);_.N([_.JO("data.colorData.basicColorPaletteData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Tx.prototype,"observeBasicPalette",null);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Tx.prototype,"observeDataChanged",null);_.N([_.JO("data.isVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Tx.prototype,"observeDataForCounterfactual",null);_.N([_.C({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],Tx);
_.p(Tx,"ytd-banner-promo-renderer",function(){if(aQu!==void 0)return aQu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return aQu=f},{mode:1});var yGo;var W2u;var cGB;var FM=function(){return _.I.apply(this,arguments)||this};
_.q(FM,_.I);_.N([_.n(),_.Z("design:type",Object)],FM.prototype,"data",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],FM.prototype,"ytRendererBehavior",void 0);_.N([_.C({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],FM);
_.p(FM,"ytd-hashtag-grid-tile-renderer",function(){if(cGB!==void 0)return cGB;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return cGB=f},{mode:1});var VS=function(){return _.I.apply(this,arguments)||this};
_.q(VS,_.I);VS.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
VS.prototype.updateRichGridTrendingHashtagsVisibility=function(){var f,S;if(((f=this.data)==null||!f.isExpanded)&&(S=this.data)!=null&&S.tiles){f=this.data.tiles.length;S=f>this.richGridItemsPerRow?this.richGridItemsPerRow+1:f;var B=Math.ceil(f/S);this.fullyVisibleRows=f%S===1&&B===2?1:Math.min(B,2);this.isShowMoreVisible=this.fullyVisibleRows<B}};
VS.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
VS.prototype.updateRichGridTrendingHashtagsVisibility=VS.prototype.updateRichGridTrendingHashtagsVisibility;_.N([_.n(),_.Z("design:type",Object)],VS.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Number)],VS.prototype,"fullyVisibleRows",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],VS.prototype,"isShowMoreVisible",void 0);_.N([_.n({selector:_.EA,value:0}),_.Z("design:type",Number)],VS.prototype,"richGridItemsPerRow",void 0);
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],VS.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],VS.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],VS.prototype,"ytdReduxBehavior",void 0);_.N([_.JO("data","richGridItemsPerRow"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],VS.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.N([_.C({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],VS);
_.p(VS,"ytd-hashtag-grid-shelf-renderer",function(){if(W2u!==void 0)return W2u;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return W2u=f},{mode:1});var lQu;var fju;var JB=function(){var f=_.I.apply(this,arguments)||this;f.visibleVideos=[];f.hiddenVideos=[];f.modern=_.K("web_modern_buttons");f.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return f};
_.q(JB,_.I);_.e=JB.prototype;_.e.attached=function(){var f=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",f);this.onDarkModeToggledAction(f)};
_.e.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"}}}};
_.e.dataChanged=function(){var f=this;this.requestElementsPerRow();var S,B;this.currentColorPalette=this.isDarkTheme?(S=this.data)==null?void 0:S.darkColorData:(B=this.data)==null?void 0:B.lightColorData;var G;if((G=this.currentColorPalette)==null?0:G.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.ui(this,function(){f.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.e.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.e.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.e.computeIsFirstFeedItem=function(f){return f};
_.e.onDarkModeToggledAction=function(f){f!==this.isDarkTheme&&this.set("isDarkTheme",f);this.data&&(this.currentColorPalette=f?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.e.getCurrentLogo=function(f,S){if(f)return S?f.darkLogoImage:f.lightLogoImage};
_.e.computeTitleStyle=function(f){var S;if((S=this.data)!=null&&S.title&&f&&f.textPrimary!==void 0)return"color:"+_.pn(f.textPrimary)+";"};
_.e.computeSubtitleStyle=function(f){var S;if((S=this.data)!=null&&S.subtitle&&f&&f.textSecondary!==void 0)return"color:"+_.pn(f.textSecondary)+";"};
_.e.computeDismissIconStyle=function(f){if(this.data&&this.data.dismissButton&&f&&f.textPrimary!==void 0)return"--yt-button-color:"+_.pn(f.textPrimary)+";"};
_.e.computeOverflowButtonStyle=function(f){if(this.data&&this.data.overflowButton&&f&&f.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.pn(f.textPrimary)+";--yt-spec-icon-active-other:"+_.pn(f.textPrimary)+";"};
_.e.computeBackgroundStyle=function(f){if(f&&this.data){var S="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var B=_.my((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);B&&(S+='background-image:url("'+B+'");')}f.backgroundColor!==void 0&&(S+="background-color:"+_.AK(f.backgroundColor)+";");return S}};
_.e.computeButton=function(){var f,S=Object.assign({},_.H((f=this.data)==null?void 0:f.showMoreButton,_.IR));if(this.modern&&S){S.style="STYLE_MONO_OUTLINE";var B;if(f=(B=this.currentColorPalette)==null?void 0:B.textPrimary)S.colorData={basicColorPaletteData:{foregroundTitleColor:f,borderColor:f}}}return S};
_.e.shouldShowBottomButton=function(f,S){return!(f==null?0:f.header)&&!(f==null||!f.primaryButton)&&S<3};
_.e.checkExpanded=function(f){this.isExpanded=f&&f.content?this.hiddenVideos.length===0:!0};
_.e.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.e.getLogoHeight=function(f){return this.logoWithPadding(f)?"26":"20"};
_.e.getLogoImageId=function(f){return this.logoWithPadding(f)?"logo-image-with-padding":"logo-image"};
_.e.computeHasSectionHeader=function(f){return!!f.header};
_.e.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var f;if((f=this.data.primaryButton)==null?0:f.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 S;((S=this.data.dismissButton)==null?0:S.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var B,G;((B=this.data)==null?0:(G=B.primaryButton)==null?0:G.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.e.setVisibleVideos=function(f){if(this.data&&this.data.content)if(this.data.content.length){var S=this.data.content.length;this.data.header?f?(this.visibleVideos=this.data.content.slice(0,Math.min(S,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(S,this.slimItemsPerRow),S)):(this.visibleVideos=this.data.content.slice(0,Math.min(S,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(S,this.elementsPerRow),S)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(S,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(S,this.elementsPerRow),S)):(this.visibleVideos=this.data.content.slice(0,Math.min(S,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(S,this.elementsPerRow-1),S))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.e.setHasMovieRenderer=function(){var f;if((f=this.data)!=null&&f.content){var S;this.hasMovieRenderer=!!_.H((S=this.data)==null?void 0:S.content[0],_.Dim)}else this.hasMovieRenderer=!1};
_.e.requestElementsPerRow=function(){_.ew(this.hostElement,"yt-request-elements-per-row")};
_.e.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var f=_.m(this.hiddenMediaRenderers),S=f.next();!S.done;S=f.next())S.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(f=_.m9(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&f.focus()}};
_.e.updateTitleSpec=function(){var f;(f=this.data)!=null&&f.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.e.logoWithPadding=function(f){var S,B,G;return(f=(S=this.getCurrentLogo(f,this.isDarkTheme))==null?void 0:(B=S.thumbnails)==null?void 0:(G=B[0])==null?void 0:G.height)&&f%31===0?!0:!1};
_.e.onUpdateElementsPerRowAction=function(f,S,B){f&&this.elementsPerRow!==f&&(this.elementsPerRow=f);B&&this.slimItemsPerRow!==B&&(this.slimItemsPerRow=B)};
JB.prototype.slimItemsPerRowChanged=JB.prototype.slimItemsPerRowChanged;JB.prototype.elementsPerRowChanged=JB.prototype.elementsPerRowChanged;JB.prototype.dataChanged=JB.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],JB.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],JB.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.kP),_.Z("design:type",Object)],JB.prototype,"ytdDismissibleItemBehavior",void 0);
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],JB.prototype,"actionHandlerBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],JB.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],JB.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],JB.prototype,"currentColorPalette",void 0);_.N([_.n(),_.Z("design:type",Array)],JB.prototype,"visibleVideos",void 0);_.N([_.n(),_.Z("design:type",Array)],JB.prototype,"hiddenVideos",void 0);
_.N([_.n(),_.Z("design:type",Object)],JB.prototype,"primaryButton",void 0);_.N([_.n({reflectToAttribute:!0,value:3}),_.Z("design:type",Number)],JB.prototype,"elementsPerRow",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],JB.prototype,"isDarkTheme",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],JB.prototype,"isExpanded",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],JB.prototype,"largeTitle",void 0);
_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],JB.prototype,"hasMovieRenderer",void 0);_.N([_.n(),_.Z("design:type",Number)],JB.prototype,"slimItemsPerRow",void 0);_.N([_.n(),_.Z("design:type",Boolean)],JB.prototype,"showLightVideoMetadata",void 0);_.N([_.n(),_.Z("design:type",Boolean)],JB.prototype,"showDarkVideoMetadata",void 0);_.N([_.n(),_.Z("design:type",Number)],JB.prototype,"videoMetadataColor",void 0);
_.N([_.n({reflectToAttribute:!0,selector:_.xr}),_.Z("design:type",Boolean)],JB.prototype,"miniMode",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.Z("design:type",Boolean)],JB.prototype,"isFirstFeedItem",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.Z("design:type",Boolean)],JB.prototype,"hasSectionHeader",void 0);
_.N([_.n({reflectToAttribute:!0,value:!0}),_.Z("design:type",Boolean)],JB.prototype,"roundedContainer",void 0);_.N([_.KP("#visible-video-container ytd-rich-grid-media"),_.Z("design:type",Array)],JB.prototype,"visibleMediaRenderers",void 0);_.N([_.KP("#hidden-video-container ytd-rich-grid-media"),_.Z("design:type",Array)],JB.prototype,"hiddenMediaRenderers",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],JB.prototype,"modern",void 0);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],JB.prototype,"dataChanged",null);_.N([_.JO("elementsPerRow"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],JB.prototype,"elementsPerRowChanged",null);_.N([_.JO("slimItemsPerRow"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],JB.prototype,"slimItemsPerRowChanged",null);
_.N([_.C({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],JB);
_.p(JB,"ytd-brand-video-shelf-renderer",function(){if(fju!==void 0)return fju;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return fju=f},{mode:1});var oFO;var P$=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return f};
_.q(P$,_.I);_.e=P$.prototype;_.e.attached=function(){var f=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",f);this.onDarkModeToggledAction(f)};
_.e.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"}}}};
_.e.dataChanged=function(){this.requestElementsPerRow();var f,S;this.currentColorPalette=this.isDarkTheme?(f=this.data)==null?void 0:f.darkColorData:(S=this.data)==null?void 0:S.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.e.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.e.computeIsFirstFeedItem=function(f){return f};
_.e.onDarkModeToggledAction=function(f){f!==this.isDarkTheme&&this.set("isDarkTheme",f);this.data&&(this.currentColorPalette=f?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(f),this.updateButtonPalette())};
_.e.shouldShowThumbnailInMetadata=function(f){return f<=1};
_.e.computeVideoMetadataColor=function(){if(this.data){var f;if((f=this.currentColorPalette)==null?0:f.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.e.computeTitleStyle=function(f){var S;if((S=this.data)!=null&&S.title&&f&&f.textPrimary!==void 0)return"color:"+_.pn(f.textPrimary)+";"};
_.e.computeSubtitleStyle=function(f){var S;if((S=this.data)!=null&&S.subtitle&&f&&f.textSecondary!==void 0)return"color:"+_.pn(f.textSecondary)+";"};
_.e.computeOverflowButtonStyle=function(f){if(this.data&&this.data.overflowButton&&f.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.pn(f.textPrimary)+";--yt-spec-icon-active-other:"+_.pn(f.textPrimary)+";"};
_.e.computeBackgroundStyle=function(f){if(f&&this.data){var S="";f.backgroundColor!==void 0&&(S+="background-color:"+_.AK(f.backgroundColor)+";");return S}};
_.e.computeHasOverflowButton=function(f){return!!f.overflowButton};
_.e.updateButtonPalette=function(){if(this.data){var f;if((f=this.data.primaryButton)==null?0:f.buttonRenderer){var S;if((S=this.currentColorPalette)==null?0:S.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var B;((B=this.currentColorPalette)==null?0:B.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)})}}};
_.e.requestElementsPerRow=function(){_.ew(this.hostElement,"yt-request-elements-per-row")};
_.e.updateTitleSpec=function(){var f;(f=this.data)!=null&&f.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")};
_.e.onUpdateElementsPerRowAction=function(f){f&&this.elementsPerRow!==f&&(this.elementsPerRow=f)};
P$.prototype.elementsPerRowChanged=P$.prototype.elementsPerRowChanged;P$.prototype.dataChanged=P$.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],P$.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],P$.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.kP),_.Z("design:type",Object)],P$.prototype,"ytdDismissibleItemBehavior",void 0);
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],P$.prototype,"actionHandlerBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],P$.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],P$.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],P$.prototype,"currentColorPalette",void 0);_.N([_.n(),_.Z("design:type",Object)],P$.prototype,"primaryButton",void 0);
_.N([_.n({reflectToAttribute:!0,value:3}),_.Z("design:type",Number)],P$.prototype,"elementsPerRow",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],P$.prototype,"isDarkTheme",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",String)],P$.prototype,"titleSize",void 0);_.N([_.n(),_.Z("design:type",Number)],P$.prototype,"videoMetadataColor",void 0);_.N([_.n({reflectToAttribute:!0,selector:_.xr}),_.Z("design:type",Boolean)],P$.prototype,"miniMode",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.Z("design:type",Boolean)],P$.prototype,"isFirstFeedItem",void 0);_.N([_.n({reflectToAttribute:!0,value:!0}),_.Z("design:type",Boolean)],P$.prototype,"roundedContainer",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.Z("design:type",Boolean)],P$.prototype,"hasOverflowButton",void 0);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],P$.prototype,"dataChanged",null);_.N([_.JO("elementsPerRow"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],P$.prototype,"elementsPerRowChanged",null);_.N([_.C({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],P$);
_.p(P$,"ytd-brand-video-singleton-renderer",function(){if(oFO!==void 0)return oFO;var f=document.createElement("template");_.Y(f,'\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>');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return oFO=f},{mode:_.X_("kevlar_poly_si_batch_j070")?1:2});var SMu;var BJY=_.oS(function(f){var S=f.data;return _.T(_.f9,{data:function(){return S().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(S().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var B=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":B=88;break a;default:B=88}return B},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return S().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"si"),gFZ=_.oS(function(f){var S=f.metadataRow;
var B=f.delimiter;return _.T(_.dg,{each:function(){return S().textParts||[]},
keyBy:"INDEX"},function(G,g){return _.T(_.gg,null,_.T(_.oY,{text:G,noWrap:!0,userInput:!0}),_.T(Gv2,{delimiter:B,max:function(){return S().textParts.length},
index:g}))})},"ti"),Gv2=_.oS(function(f){var S=f.delimiter;
var B=f.max;var G=f.index;return _.T(_.v,{cond:function(){return(S==null?void 0:S())&&B()-1>G()},
then:function(){return _.T("span",null,S)}})},"ui"),esM=_.oS(function(f){var S=f.data;
f={};return _.T("yt-profile-page-header-information-view-model",{class:_.Pw("profile-page-header-information-view-model-wiz",(f["profile-page-header-information-view-model-wiz--mobile"]=!1,f))},_.T(_.v,{cond:function(){return S().onTap},
then:function(){return _.T(_.XD,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.CH(S().onTap)}},_.T(_.xK,{data:function(){return S().thumbnail}},{profilePageHeaderThumbnailViewModel:BJY}))},
else:function(){return _.T("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.T(_.xK,{data:function(){return S().thumbnail}},{profilePageHeaderThumbnailViewModel:BJY}))}}),_.T("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.T(_.v,{cond:function(){return S().onTap},
then:function(){return _.T(_.xK,{data:function(){return S().title}},{profilePageHeaderTitleViewModel:function(B){var G=B.data;
return _.T(_.XD,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.CH(G().onTap)}},_.T(_.oY,{text:function(){return G().title}}))}})},
else:function(){return _.T(_.xK,{data:function(){return S().title}},{profilePageHeaderTitleViewModel:function(B){var G=B.data;
return _.T(_.oY,{text:function(){return G().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.T(_.xK,{data:function(){return S().metadata}},{profilePageHeaderMetadataViewModel:function(B){var G=B.data;
return _.T(_.v,{cond:function(){return G().metadataRows},
then:function(g){return _.T("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.T(_.dg,{each:g,keyBy:"INDEX"},function(b,z){return _.T(_.gg,null,_.T(gFZ,{metadataRow:b,delimiter:" \u2022 "}),_.T(Gv2,{delimiter:" \u2022 ",max:function(){return g().length},
index:z}))}))}})}})))},"vi");
esM.idomCompat=!0;_.eq(esM,"yt-profile-page-header-information-view-model",{props:{data:_.W4}});var v$=function(){return _.I.apply(this,arguments)||this};
_.q(v$,_.I);v$.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],v$.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],v$.prototype,"data",void 0);_.N([_.C({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],v$);
_.p(v$,"ytd-effect-pivot-header-view-model",function(){if(SMu!==void 0)return SMu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return SMu=
f},{mode:1});var bEZ;var Kh=function(){return _.I.apply(this,arguments)||this};
_.q(Kh,_.I);Kh.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Kh.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Kh.prototype,"data",void 0);_.N([_.C({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],Kh);
_.p(Kh,"ytd-source-pivot-header-renderer",function(){if(bEZ!==void 0)return bEZ;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return bEZ=f},{mode:1});_.m3u=_.oS(function(f){var S=f.data;f=_.tE("content-list-item-view-model");_.a8(f,function(){return S().rendererContext});
var B=function(){var g;return _.ux((g=S())==null?void 0:g.rendererContext)},G={};
return _.T("content-list-item-view-model",{el:f,class:_.Pw("ytContentListItemViewModelHost",(G.ytContentListItemViewModelTappable=B,G)),role:function(){return B()?"listitem":void 0},
tabindex:function(){return B()?0:void 0}},_.T("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.T("div",{class:"ytContentListItemViewModelImageContainer"},_.T(_.v,{cond:function(){return S().image},
then:function(g){return _.T(_.f9,{data:g,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.T(_.xK,{data:function(){var g;
return(g=S())==null?void 0:g.avatar}},{avatarViewModel:_.Ya})),_.T("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.T("div",{class:_.Pw("ytContentListItemViewModelTitle",function(){a:{switch(S().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var g="ytContentListItemViewModelProminentTitle";
break a}g=void 0}return g})},_.T(_.oY,{text:function(){return S().title}})),_.T("div",{class:"ytContentListItemViewModelMetadata"},_.T(_.xK,{data:function(){return S().metadata}},{contentMetadataViewModel:function(g){return _.T(_.yP$,{data:g.data,
layout:1})}})))),_.T("div",{class:"ytContentListItemViewModelActionButton"},_.T(_.xK,{data:function(){var g;
return(g=S())==null?void 0:g.actionButton}},{buttonViewModel:_.I8,
toggleButtonViewModel:_.ER})))},"wi");_.eq(_.oS(function(f){var S={},B={},G={},g={};return _.T("yt-card-view-model",{class:_.Pw("ytCardViewModelHost",f.className,(S.ytCardViewModelOutline=function(){return f.data().cardStyle==="CARD_STYLE_OUTLINE"},S),(B.ytCardViewModelRaised=function(){return f.data().cardStyle==="CARD_STYLE_RAISED"||f.data().cardStyle==="CARD_STYLE_UNSPECIFIED"},B),(G.ytCardViewModelTonal=function(){return f.data().cardStyle==="CARD_STYLE_TONAL"},G),(g.ytCardViewModelInverted=function(){return f.data().cardStyle===
"CARD_STYLE_INVERSE"},g))},_.T(_.xK,{data:function(){return f.data().background}},{cinematicContainerViewModel:function(b){return _.T(_.Deo,{data:b.data})}}),_.T("div",{class:"ytCardViewModelContentWrapper"},_.T(_.xK,{data:function(){return f.data().topContent||f.data().content}},{contentListItemViewModel:function(b){return _.T(_.m3u,{data:b.data})}})),_.T(_.xK,{data:function(){return f.data().trailingAction||f.data().dismissAction}},{buttonViewModel:function(b){return _.T(_.I8,{data:b.data})}}))},
"xi"),"yt-card-view-model",{props:{data:_.W4,
className:_.W4}});_.eq(_.oS(function(f){var S=function(){return _.H(f.data().flowRoot,kIY)};
_.j9(function(){var B=S(),G=function(){},g=function(){};
if(B){var b,z,X,w=((X=_.H((b=S())==null?void 0:(z=b.steps)==null?void 0:z[0],_.nAz))==null?void 0:X.stepId)||"";q12(B,w);G=Qdu(B);g=Y12(B)}_.Ov(function(){var F=S();F&&_.W2().dispatch(_.KF("flowStateEntity",F.flowStateEntityKey));G();G=function(){};
g();g=function(){}})});
return _.T("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.T(_.fo1,{contentId:function(){return f.data().contentId}},function(){return _.T("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.T(_.v,{cond:S,
then:function(B){return _.T(_.xpu,{data:B})}}))}))},"yi"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.W4}});_.eq(_.oS(function(){return _.T("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.T("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.T("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.T(_.KEu,null)),_.T(_.oti,{data:{rows:1},isExploreHub:!0}))},"zi"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.eq(_.oS(function(f){var S=f.data;var B=f.standardUnitMinWidth;f=_.tE("ytd-chips-shelf-with-video-shelf-renderer");var G=_.m((0,_.gt$)(S)),g=G.next().value,b=G.next().value,z=function(){var w,F=(w=g())==null?void 0:w.contents;return F==null||F.length===0},X=function(){b(Object.assign({},g(),{contents:[]}))};
_.of(f,{showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var w=_.H(S().chipsShelf,sdX);if(w!=null&&w!=null&&w.autoselectChipOnVisible){var F,V,J=_.H(w==null?void 0:(F=w.contents)==null?void 0:F[(V=w.autoselectedChipIndex)!=null?V:0],_.Av);J&&J.tapCommand&&_.MB(J.tapCommand)}}});
return _.T("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:f},_.T(_.fo1,{contentId:function(){return S().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.T("div",null,_.T("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.T(_.xK,{data:function(){return S().header}},{sectionHeaderViewModel:function(w){return _.T(_.gt,{data:w.data,
disableHorizontalPadding:!0})}})),_.T("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.T(_.xK,{data:function(){return S().chipsShelf}},{chipsShelfViewModel:function(w){return _.T(_.gDm,{data:w.data,
callback:X,enableSingleChipSelection:!0})}})),_.T("div",null,_.T(_.v,{cond:z,
then:function(){return _.T("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.T(_.oti,{data:{rows:1},isExploreHub:!0}))}}),_.T(_.xK,{data:function(){var w;
return(w=g())==null?void 0:w.contents}},{richShelfRenderer:function(w){return _.T(_.gIX,{data:w.data,
isInnerShelf:!0,standardUnitMinWidth:B})}})))}))},"Ai"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.W4,
standardUnitMinWidth:_.W4}});var dq=function(){return _.I.apply(this,arguments)||this};
_.q(dq,_.I);
dq.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}}};
dq.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.N([_.r(_.Ek),_.Z("design:type",Object)],dq.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],dq.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Ak),_.Z("design:type",Object)],dq.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],dq.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],dq.prototype,"data",void 0);
_.N([_.n(),_.Z("design:type",Number)],dq.prototype,"standardUnitMinWidth",void 0);_.N([_.C({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],dq);
_.p(dq,"ytd-rich-section-renderer",function(){if(lQu!==void 0)return lQu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return lQu=f},{mode:_.X_("kevlar_poly_si_batch_j029")?
1:2});_.eq(_.fxu,"yt-profile-identity-info-view-model",{props:{data:_.W4,hideDivider:_.W4}});_.eq(_.tv1,"yt-page-header-view-model",{props:{data:_.W4,noPadding:_.W4,enableBanner:_.W4,cinematicContainerTopbarOffset:_.W4,allowCinematicContainerOverflow:_.W4,displayAsSidebar:_.W4,displayAsPanel:_.W4}});_.eq(_.oS(function(f){var S=f.data;var B=function(){var g;return(g=S().numColumns)!=null?g:2},G=function(){return B()>1?3:2};
f={};return _.T("ytd-rich-grid-group",{class:_.Pw("ytdRichGridGroupHost",(f.ytdRichGridGroupHostFirstColumn=function(){return S().colIndex===0},f)),
style:_.Qj({"--ytd-rich-grid-group-num-columns":B,"--ytd-rich-grid-items-per-group":G})},_.T("div",{class:"ytdRichGridGroupContents"},_.T(_.xK,{data:function(){var g;return(g=S().contents)==null?void 0:g.slice(0,G())}},{richItemRenderer:function(g){return _.T(_.Bsi,{data:g.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"Bi"),"ytd-rich-grid-group",{props:{data:_.W4}});var iZ=function(){var f=_.I.apply(this,arguments)||this;f.resizeOnObserverInit=!1;f.isInlinePreviewDisabled=_.K("web_disable_inline_preview");f.disableStickyFilterBar=!1;f.transparentBackgroundChipsBar=!1;f.hideChipsBar=!1;f.isWatchDefaultLayout=!0;f.continuationShowButton=!1;f.rowReducedHorizontalMargin=!1;f.useCompactList=!1;f.manualDownloadsPresent=!1;f.smartDownloadsPresent=!1;f.shouldRenderDownloadsBanner=!1;f.hasOptedIntoSmartDownloads=!1;f.elementsPerRow=4;f.typographyBump=!1;f.showGnomeContents=
!1;f.showExploreHubContents=!1;f.slimItemsPerRow=1;f.pageLoadingFromNavigation=!1;f.loggingRefactor=_.K("kevlar_rich_grid_logging_fix");f.resizeObserver=null;f.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"};f.rendererToTagNameMap=
new Map(Object.entries(f.contentMapping()).map(function(S){var B=_.m(S);S=B.next().value;B=B.next().value;return[S,B.component]}));
f.insertedContent=new Map;return f};
_.q(iZ,_.I);_.e=iZ.prototype;_.e.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var f=_.m(_.m9(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),S=f.next();!S.done;S=f.next())S.value.useCompactList=this.useCompactList};
_.e.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var f=_.m(_.m9(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),S=f.next();!S.done;S=f.next())S=S.value,S.sizing=this.sizing,S.typographyBump=this.typographyBump};
_.e.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.e.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]]"}}}};
_.e.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}}};
_.e.attached=function(){document.addEventListener("yt-page-type-changed",_.Fc(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$19353_throttledOnResize=new _.S3(this.resizeObserved,_.Gt("rich_grid_resize_delay_ms",50),this)};
_.e.detached=function(){var f;(f=this.resizeObserver)==null||f.disconnect();document.removeEventListener("yt-page-type-changed",_.Fc(this,this.onPageChange))};
_.e.insertRichSection=function(f){var S=f.richItemTargetId;f=f.richSectionRendererToInsert;S&&f&&(this.insertedContent.set(S,{content:f,timestamp:Date.now()}),this.reflowContent())};
_.e.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.e.computeIsInlinePreviewEnabled=function(f,S,B){return _.K("web_disable_inline_preview")?!1:!B&&_.$RX({miniplayerIsActive:f,miniplayerPlaybackState:S})};
_.e.computeSizing=function(){var f=_.gxM(this.data);if(f||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return f?this.useCompactList?"COMPACT":f:this.miniMode?"COMPACT":_.K("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.e.updateItemMinAndMaxWidth=function(){var f=_.Gt("rich_grid_max_item_width",500);f>0&&_.hO(this.hostElement,{"--ytd-rich-grid-item-max-width":f+"px"});var S;f=this.getRichItemMinWidth((S=this.hostElement)==null?void 0:S.clientWidth);f>0&&_.hO(this.hostElement,{"--ytd-rich-grid-item-min-width":f+"px"})};
_.e.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.e.resizeObserved=function(){_.mU(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.e.navigateBackToHome=function(){_.K("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.K("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var f=_.oy().resolve(_.o8).isOnWatch(),S,B=((S=_.JK(location.pathname))==null?void 0:S.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(B)||f)&&this.gnomeContents&&_.K("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);f&&this.exploreHubContents&&_.K("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.W2().dispatch(_.ef({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.e.onPageChange=function(){var f=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.K("disable_chip_select_on_nav")||_.mU(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.xJ.addJob(function(){f.pageLoadingFromNavigation=!1;_.K("disable_chip_select_on_nav")&&_.K("h5_reset_cache_and_filter_before_update_masthead")&&f.resetCacheAndIsFilteredFeed();f.setMasthead();f.maybeSetBigYoodle();f.forceRefreshAndLog();f.terminateVideoPreview();_.K("web_hide_gnome_until_user_navigates_back_to_home")&&
(f.dataChanged(),_.ui(f,function(){if(f.showGnomeContents){var S=Array.from(_.m9(f.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(G){G=_.m9(G).querySelector("ytd-rich-shelf-renderer");return!!G&&G.isGnomeShelf()});
if(S){S=S.offsetTop-f.contentsElement.offsetTop;var B=_.oy().resolve(_.o8).getCurrentPage();B&&B.getPageScrollingElement().scrollTo({top:S,behavior:"smooth"})}}}));
_.K("web_hide_explore_hub_until_user_navigates_back_to_home")&&(f.dataChanged(),_.ui(f,function(){if(f.showExploreHubContents&&!_.K("web_explore_hub_no_scroll")){var S=Array.from(_.m9(f.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(G){return!!G.querySelector("ytd-talk-to-recs-flow-renderer")});
if(S){S=S.offsetTop-f.contentsElement.offsetTop;var B=_.oy().resolve(_.o8).getCurrentPage();B&&B.getPageScrollingElement().scrollTo({top:S,behavior:"smooth"})}}}))},8)):((_.K("web_hide_gnome_until_user_navigates_back_to_home")||_.K("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.e.dataChanged=function(){var f=this,S=_.Gt("web_rich_grid_row_margin",0);S>0&&_.hO(this.hostElement,{"--ytd-rich-grid-row-margin":S+"px"});_.mU(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.ui(this,function(){f.updateRichItemGridPositions();f.contentsElement&&_.hO(f.hostElement,{"--ytd-rich-grid-content-offset-top":f.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.e.initResizeObserver=function(){var f=this;if(window.ResizeObserver){var S;(S=this.resizeObserver)==null||S.disconnect();var B=!1;this.resizeObserver=new ResizeObserver(function(){if(B){var G;(G=f.resizeObserver)==null||G.disconnect();var g;(g=f.JSC$19353_throttledOnResize)==null||g.fire();requestAnimationFrame(function(){var z;(z=f.JSC$19353_throttledOnResize)==null||z.fire();f.initResizeObserver()})}else if(B=!0,f.resizeOnObserverInit){var b;
(b=f.JSC$19353_throttledOnResize)==null||b.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.e.contentLengthChanged=function(){if(_.K("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.mU(this.hostElement,"ytd-rich-item-index-update-action")};
_.e.updateElementsPerRow=function(){_.mU(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.ef({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.ef({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.e.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.e.onRichShelfRendererCollapse=function(f){if(this.shownItems){var S=f.detail;f=this.shownItems.findIndex(function(G){var g,b;return((b=_.H(G==null?void 0:(g=G.richSectionRenderer)==null?void 0:g.content,_.mFN))==null?void 0:b.trackingParams)===S});
var B=f+1;f<0||B>=this.contentsElement.children.length||!this.shownItems[B].richItemRenderer||this.contentsElement.children[B].scrollIntoView({behavior:"smooth",block:"start"})}};
_.e.onSoftReloadPage=function(){this.scrollUpToTop()};
_.e.handleRerenderDownloadsData=function(){_.K("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.e.handlePlaylistRemoveVideosAction=function(f){var S;if(((S=_.H(f,_.YHN))==null?0:S.setVideoIds)&&this.data&&this.data.contents){f=_.H(f,_.YHN).setVideoIds;for(S=this.data.contents.length-1;S>=0;){var B=_.H(this.data.contents[S],_.xf);(B=B&&_.H(B.content,_.DS))&&B.setVideoId&&f.includes(B.setVideoId)&&this.splice("data.contents",S,1);S--}this.updateIndices()}};
_.e.updateIndices=function(){if(this.data&&this.data.contents)for(var f=0;f<this.data.contents.length;f++)this.set("data.contents."+f+".richItemRenderer.index",_.uC(String(f+1)))};
_.e.hasTopRowInlinePlayableVideoWithEndorsement=function(f){var S;return!((S=f.slice(0,this.getItemsPerRow()))==null||!S.some(function(B){var G;B=_.H(B==null?void 0:(G=B.richItemRenderer)==null?void 0:G.content,_.CW);var g;return(B==null?void 0:B.inlinePlaybackEndpoint)&&(B==null?void 0:(g=B.thumbnailOverlays)==null?void 0:g.some(function(b){return b.thumbnailOverlayEndorsementRenderer}))}))};
_.e.refreshGridLayoutNew=function(f,S,B,G){var g=G.postsPerRow;var b=G.slimItemsPerRow;var z=G.gameCardsPerRow;G=G.miniGameCardsPerRow;var X;if((X=this.data)==null||!X.contents||!this.containerWidth)return!1;var w;if((w=this.data.responsiveContainerConfiguration)==null?0:w.responsiveSize){var F=_.pa1(this.data.responsiveContainerConfiguration,this.containerWidth),V;X=_.lx(Object.assign({},F,{standardUnitMinWidth:(V=this.data)==null?void 0:V.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&F.isCompactList)}else X=_.lx({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(F=this.data)==null?void 0:F.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=X.typographyBump;V=!1;if(f||this.elementsPerRow!==X.numItems||this.postsPerRow!==g||this.slimItemsPerRow!==b||this.gameCardsPerRow!==
z||this.miniGameCardsPerRow!==G||this.gutter!==X.gutter)V=this.elementsPerRow!==X.numItems,this.elementsPerRow=X.numItems,this.postsPerRow=g,this.slimItemsPerRow=b,this.gameCardsPerRow=z,this.miniGameCardsPerRow=G,this.gutter=X.gutter,this.itemWidth=X.itemWidth,this.reflowContent(S),_.hO(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":X.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(B);this.ytdReduxBehavior.dispatch(_.ef({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:X.maxContainerWidth}));return V};
_.e.refreshGridLayout=function(f,S){var B,G=(B=this.hostElement)==null?void 0:B.clientWidth;this.containerWidth=this.adjustRichGridWidth(G,!0);var g;if((g=this.data)==null||!g.contents||!this.containerWidth)return f&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.K("rg_pending_reflow_ks")&&(f=!0,this.pendingForceReflow=!1);B=this.getRichItemMinWidth(G);var b=this.isShortsPanel?146:194,z=this.getMiniGameCardMinWidth(),X=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
G=B=this.calcElementsPerRow(B,X);(g=B<=3&&this.miniModeAllowed())&&(B=this.calcElementsPerRow(240,4));var w=this.calcMaxSlimElementsPerRow(B,X,this.isDefaultGrid);X=this.calcElementsPerRow(b,w);var F=this.calcElementsPerRow(this.isCompactGrid?b:154,w);b=this.calcElementsPerRow(this.isCompactGrid?b:z,w);z=!1;if(this.sizing)return this.refreshGridLayoutNew(f,S,g,{postsPerRow:G,slimItemsPerRow:X,gameCardsPerRow:F,miniGameCardsPerRow:b});if(f||this.elementsPerRow!==B||this.postsPerRow!==G||this.slimItemsPerRow!==
X||this.gameCardsPerRow!==F||this.miniGameCardsPerRow!==b)z=this.elementsPerRow!==B,this.elementsPerRow=B,this.postsPerRow=G,this.slimItemsPerRow=X,this.gameCardsPerRow=F,this.miniGameCardsPerRow=b,this.reflowContent(S),this.updateElementsPerRow(),_.hO(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)&&_.hO(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(g);_.mU(this.hostElement,"yt-rich-grid-layout-refreshed");return z};
_.e.getRichItemMinWidth=function(f){var S=_.Gt("rich_grid_min_item_width",310);if(!_.K("kevlar_disable_min_width_override")){var B,G;S=(G=(B=this.data)==null?void 0:B.minItemWidth)!=null?G:S}return S+_.cPj(f)};
_.e.calcMaxSlimElementsPerRow=function(f,S,B){return(B===void 0?0:B)?f===1?2:f%2===0?_.K("web_shorts_2_by_3_reduce_items_per_row")&&f>=4?f/2*3-1:f/2*3:_.K("web_shorts_2_by_3_reduce_items_per_row")&&f>=3?f+1:f+2:S*2};
_.e.adjustRichGridWidth=function(f,S){var B=_.K("disable_rich_grid_guide_compensation");if(!this.isWatch&&!B){B=_.oy().resolve(_.fN(_.DV));var G=B==null?void 0:B.guideElement;if(!(!B||B.getData()||G!=null&&G.opened||B.getMiniGuideVisible()))if(B.canFitPersistentGuide(f)&&B.getGuideExpandsAutomatically()){var g,b,z=Number((g=window.getComputedStyle(this.hostElement))==null?void 0:(b=g.getPropertyValue("--app-drawer-width"))==null?void 0:b.replace("px",""));f-=z||0}else if(B.canFitMiniGuide(f)){var X;
g=Number((z=window.getComputedStyle(this.hostElement))==null?void 0:(X=z.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:X.replace("px",""));f-=g||0}}f>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(f-=S?32:48));return f};
_.e.calcElementsPerRow=function(f,S){var B=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),G=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((B+G)/(f+G))||1,S)};
_.e.reflowContent=function(f){var S=this;if(!this.isReflowing){this.isReflowing=!0;var B,G,g=!!((B=this.data)==null?0:(G=B.contents)==null?0:G.some(function(d){return _.H(d,_.zq)}));
B=this.getItemsPerRow();var b;G=(b=this.data)==null?void 0:b.reflowOptions;f&&(_.kT("rgr_s"),_.ui(this,function(){_.kT("rgr_nrf")}));
f={};(b=_.m9(this.hostElement).querySelector("#contents"))&&(f={contentElement:b,rendererToTagNameMap:this.rendererToTagNameMap});b=(b=this.data.contents)?b.slice():[];var z=(_.K("web_hide_gnome_behind_feed_filter_chip")||_.K("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,X=_.K("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,w=-1,F=-1;if(this.isHomePage&&X){for(X=0;X<b.length;X++){var V=void 0,J=void 0;_.H((V=b[X])==null?void 0:
(J=V.richSectionRenderer)==null?void 0:J.content,L2B)&&(F=X)}F>-1&&(this.exploreHubContents=b.splice(F,1))}if(this.isHomePage&&z){for(F=0;F<b.length;F++)J=V=void 0,(X=_.H((V=b[F])==null?void 0:(J=V.richSectionRenderer)==null?void 0:J.content,_.mFN))&&z&&(J=V=void 0,X=_.H((V=X)==null?void 0:(J=V.contents)==null?void 0:J[0],_.xf),V=void 0,_.H((V=X)==null?void 0:V.content,_.zrL)&&(w=F));w>-1&&(this.gnomeContents=b.splice(w,1))}var P=JGz(b,B,g,G,this.getRichGridStyle(),f,this.insertedContent);g=function(){S.shownItems=
P;S.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(P),_.ui(this,g)):g()}};
_.e.getFirstRowItems=function(f){for(var S=[],B=0;B<f.length;B++){var G=void 0,g=void 0,b=void 0,z=void 0,X=void 0,w=void 0;if(((G=f[B])==null?void 0:(g=G.richItemRenderer)==null?void 0:g.rowIndex)===0||((b=f[B])==null?void 0:(z=b.richGroupRenderer)==null?void 0:z.rowIndex)===0||((X=f[B])==null?void 0:(w=X.richSectionRenderer)==null?void 0:w.rowIndex)===0)S.push(f[B]);else break}return S};
_.e.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.e.handleChipCloudChipSelectAction=function(f,S){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.K("web_hide_gnome_behind_feed_filter_chip")&&(S?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.e.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.K("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.e.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.K("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.e.terminateVideoPreview=function(){_.mU(this.hostElement,"yt-terminate-video-preview-action")};
_.e.updateRichItemGridPositions=function(){var f={gridData:{gridColumnCount:this.elementsPerRow}},S;if((S=this.data)==null?0:S.trackingParams)this.loggingRefactor?_.ik().stateChanged(this.data.trackingParams,f):(S=_.xc())&&_.yp(S,_.Ye(this.data.trackingParams),f);_.mU(this.hostElement,"ytd-rich-item-index-update-action")};
_.e.miniModeAllowed=function(){return _.K("disable_channels_mini_mode")?!1:this.isChannelPage};
_.e.getMiniGameCardMinWidth=function(){return 154};
_.e.updateMiniMode=function(f){this.miniMode=this.miniModeAllowed()&&f;this.ytdReduxBehavior.dispatch(_.ef({type:"SET_RICH_GRID_MINI_MODE",payload:f}))};
_.e.isCurrentPage=function(){return location.pathname===this.pagePath};
_.e.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var f=_.oy().resolve(_.o8).getCurrentPage();f&&f.setScrollTop(0)}};
_.e.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.e.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.e.maybeSetBigYoodle=function(){var f,S=(f=this.data)==null?void 0:f.bigYoodle;this.bigYoodleData!==S&&(this.bigYoodleData=S)};
_.e.setMasthead=function(){var f;((f=this.data)==null?0:f.masthead)?this.mastheadData=this.data.masthead:_.K("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.e.getRichGridStyle=function(){var f,S;return(S=(f=this.data)==null?void 0:f.style)!=null?S:"RICH_GRID_STYLE_UNKNOWN"};
_.e.onIsShortsGridChange=function(){var f=this.ytdReduxBehavior,S=f.dispatch,B=this.getRichGridStyle();S.call(f,_.ef({type:"SET_RICH_GRID_STYLE",payload:B}))};
_.y3.Object.defineProperties(iZ.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var f;return(((f=this.data)==null?void 0:f.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var f;return(((f=this.data)==null?void 0:f.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var f=_.oy().resolve(_.o8).getCurrentPage(),S,B,G;return(((S=this.data)==null?void 0:S.targetId)==="browse-feedFEsfv_audio_pivot"||_.K("web_enable_channel_pivot_panel")&&((B=this.data)==null?void 0:B.targetId)==="browse-feedFEsfv_channel_pivot"||_.K("web_enable_effect_pivot_panel")&&((G=this.data)==null?void 0:G.targetId)==="browse-feedFEsfv_effect_pivot")&&(f==null?void 0:f.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.K("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 f;return!((f=this.data)==null?0:f.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var f;return((f=_.oy().resolve(_.o8).getCurrentPage())==null?void 0:f.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var f;return((f=_.oy().resolve(_.o8).getCurrentPage())==null?void 0:f.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 f;return this.hideChipsBar||(((f=this.data)==null?void 0:f.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.K("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var f;return(((f=this.data)==null?void 0:f.targetId)||"")==="watch-next-feed"&&!_.K("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var f,S,B;return((f=this.data)==null?0:f.enableContentSpecificAspectRatio)||((S=this.data)==null?0:(B=S.responsiveContainerConfiguration)==null?0:B.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.Gt("web_continuation_handler_margin",0):0}}});
iZ.prototype.onIsShortsGridChange=iZ.prototype.onIsShortsGridChange;iZ.prototype.onReloadContinuationFinish=iZ.prototype.onReloadContinuationFinish;iZ.prototype.reflowContent=iZ.prototype.reflowContent;iZ.prototype.handleRerenderDownloadsData=iZ.prototype.handleRerenderDownloadsData;iZ.prototype.onRichShelfRendererCollapse=iZ.prototype.onRichShelfRendererCollapse;iZ.prototype.onRequestElementsPerRow=iZ.prototype.onRequestElementsPerRow;iZ.prototype.contentLengthChanged=iZ.prototype.contentLengthChanged;
iZ.prototype.dataChanged=iZ.prototype.dataChanged;iZ.prototype.onSizingChange=iZ.prototype.onSizingChange;iZ.prototype.onUseCompactListChange=iZ.prototype.onUseCompactListChange;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],iZ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],iZ.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Ld),_.Z("design:type",Object)],iZ.prototype,"ironResizableBehavior",void 0);
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],iZ.prototype,"actionHandlerBehavior",void 0);_.N([_.r(_.Ak),_.Z("design:type",Object)],iZ.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],iZ.prototype,"componentBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],iZ.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],iZ.prototype,"data",void 0);
_.N([_.n({reflectToAttribute:!0,selector:_.xr}),_.Z("design:type",Boolean)],iZ.prototype,"miniMode",void 0);_.N([_.n({value:[]}),_.Z("design:type",Array)],iZ.prototype,"shownItems",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],iZ.prototype,"isReflowing",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],iZ.prototype,"isFilteredFeed",void 0);_.N([_.n({selector:_.G9V}),_.Z("design:type",Boolean)],iZ.prototype,"guideIsExpanded",void 0);
_.N([_.n({selectorArgs:["entitySelectorType"],selector:function(f,S){if(_.K("kevlar_modern_downloads_page")&&S&&S!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(S){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":var B=f.entities;S=_.r9(B);var G=_.jf(B),g=_.dGM(f),b=_.Kks(f);f=_.iWx(f);var z=_.y5M(B),X=_.iC(S);B=_.OA(B);return _.kOA(S,G,z,g,b,X,B,f);case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return S=_.r9(f.entities),_.sZK(S);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return S=
_.txN(f.entities),_.DZT(S);default:_.Lg(new _.dO("Error: entitySelectorType defined but not matched in selector.",f,S))}}}),
_.Z("design:type",Object)],iZ.prototype,"entityDrivenRichGridData",void 0);_.N([_.n(),_.Z("design:type",Object)],iZ.prototype,"resizeOnObserverInit",void 0);_.N([_.n(),_.Z("design:type",Object)],iZ.prototype,"bigYoodleData",void 0);_.N([_.n(),_.Z("design:type",Object)],iZ.prototype,"mastheadData",void 0);_.N([_.n(),_.Z("design:type",Boolean)],iZ.prototype,"isInlinePreviewDisabled",void 0);_.N([_.n(),_.Z("design:type",Object)],iZ.prototype,"disableStickyFilterBar",void 0);
_.N([_.n(),_.Z("design:type",Object)],iZ.prototype,"transparentBackgroundChipsBar",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],iZ.prototype,"hideChipsBar",void 0);_.N([_.n(),_.Z("design:type",Object)],iZ.prototype,"isWatchDefaultLayout",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],iZ.prototype,"continuationShowButton",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],iZ.prototype,"rowReducedHorizontalMargin",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],iZ.prototype,"useCompactList",void 0);_.N([_.n({selector:function(f){return _.jf(f.entities).length>0}}),
_.Z("design:type",Object)],iZ.prototype,"manualDownloadsPresent",void 0);_.N([_.n({selector:function(f){return _.r9(f.entities).length>0}}),
_.Z("design:type",Object)],iZ.prototype,"smartDownloadsPresent",void 0);_.N([_.n({selector:_.Kks}),_.Z("design:type",Object)],iZ.prototype,"shouldRenderDownloadsBanner",void 0);_.N([_.n({selector:_.dGM}),_.Z("design:type",Object)],iZ.prototype,"hasOptedIntoSmartDownloads",void 0);_.N([_.JO("useCompactList"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],iZ.prototype,"onUseCompactListChange",null);
_.N([_.JO("sizing","typographyBump"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],iZ.prototype,"onSizingChange",null);_.N([_.n({selector:_.zG9}),_.Z("design:type",Number)],iZ.prototype,"miniplayerPlaybackState",void 0);_.N([_.n({selector:_.LJ}),_.Z("design:type",Boolean)],iZ.prototype,"miniplayerIsActive",void 0);
_.N([_.n({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.Z("design:type",Boolean)],iZ.prototype,"isInlinePreviewEnabled",void 0);_.N([_.n({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.Z("design:type",String)],iZ.prototype,"sizing",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],iZ.prototype,"elementsPerRow",void 0);
_.N([_.n(),_.Z("design:type",Object)],iZ.prototype,"typographyBump",void 0);_.N([_.n(),_.Z("design:type",Number)],iZ.prototype,"itemWidth",void 0);_.N([_.vF("#header"),_.Z("design:type",HTMLElement)],iZ.prototype,"headerElement",void 0);_.N([_.vF("#contents"),_.Z("design:type",HTMLElement)],iZ.prototype,"contentsElement",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],iZ.prototype,"dataChanged",null);
_.N([_.HF("data.contents.length"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],iZ.prototype,"contentLengthChanged",null);_.N([_.Vg("yt-request-elements-per-row"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],iZ.prototype,"onRequestElementsPerRow",null);
_.N([_.Vg("yt-rich-shelf-renderer-collapse"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],iZ.prototype,"onRichShelfRendererCollapse",null);_.N([_.HF("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],iZ.prototype,"handleRerenderDownloadsData",null);
_.N([_.k("data"),_.Z("design:type",String),_.Z("design:paramtypes",[])],iZ.prototype,"entitySelectorType",null);_.N([_.n({reflectToAttribute:!0}),_.k("data.targetId"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],iZ.prototype,"isSub",null);_.N([_.n({reflectToAttribute:!0}),_.k("data.targetId"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],iZ.prototype,"isWatch",null);
_.N([_.n({reflectToAttribute:!0}),_.k("data.targetId"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],iZ.prototype,"isShortsPanel",null);_.N([_.n({reflectToAttribute:!0}),_.k("isWatch"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],iZ.prototype,"reducedTopMargin",null);_.N([_.n({reflectToAttribute:!0}),_.k("data","isWatch","isWatchDefaultLayout"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],iZ.prototype,"noTopMargin",null);
_.N([_.n({reflectToAttribute:!0}),_.k("isInlinePreviewEnabled","shownItems"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],iZ.prototype,"topRowEndorsement",null);_.N([_.k("data.header"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],iZ.prototype,"hideHeader",null);_.N([_.Vg("yt-rich-grid-reflow"),_.Z("design:type",Function),_.Z("design:paramtypes",[Boolean]),_.Z("design:returntype")],iZ.prototype,"reflowContent",null);
_.N([_.Vg("yt-reload-continuation-finish"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],iZ.prototype,"onReloadContinuationFinish",null);_.N([_.k("data"),_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],iZ.prototype,"isSlimGrid",null);_.N([_.k("data"),_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],iZ.prototype,"isShortsGrid",null);
_.N([_.k("data","isSlimGrid","isShortsGrid"),_.n(),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],iZ.prototype,"noRichItemGutterMargins",null);_.N([_.k("data"),_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],iZ.prototype,"isShortsGridSlim",null);_.N([_.k("data"),_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],iZ.prototype,"isCompactGrid",null);
_.N([_.k("data"),_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],iZ.prototype,"isDefaultGrid",null);_.N([_.k("data.targetId"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],iZ.prototype,"hideChipsBarOnHome",null);_.N([_.k("data.targetId"),_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],iZ.prototype,"hideChipsBarOnWatch",null);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],iZ.prototype,"onIsShortsGridChange",null);_.N([_.k("data.enableContentSpecificAspectRatio"),_.n(),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],iZ.prototype,"force16By9ThumbnailAspectRatio",null);_.N([_.k("data"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],iZ.prototype,"continuationTriggerOffset",null);_.N([_.C({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],iZ);
_.p(iZ,"ytd-rich-grid-renderer",function(){if(yGo!==void 0)return yGo;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return yGo=f},{mode:2});var zsZ=_.oS(function(f){var S=f.thumbsUp,B=f.thumbsDown,G=f.rightAlignThumbs;f=_.m(_.hj(!1,void 0,"FjNDrf"));var g=f.next().value,b=f.next().value;f=_.m(_.hj(!1,void 0,"Tphjfb"));var z=f.next().value,X=f.next().value;f={};return _.T("div",{class:_.Pw("ytwThumbsUpDownThumbs",(f.ytwThumbsUpDownRightAlign=function(){return G==null?void 0:G()},f))},_.T(_.ER,{data:S,
onToggle:function(w){b(w);z()&&X(!1)},
buttonShapeOverrides:function(){return{toggled:g()}}}),_.T(_.ER,{data:B,
onToggle:function(w){X(w);g()&&b(!1)},
buttonShapeOverrides:function(){return{toggled:z()}}}))},"Ci");
zsZ.idomCompat=!0;var XT$=_.oS(function(f){var S=function(){return f.data().pendingStateEntityKey||""},B=_.v8(_.rG$,S),G=function(){var X;
if(!(X=f.disabled())){var w;X=!((w=B())==null||!w.isPendingResponse)}return X},g=_.m(_.hj(K22(""),void 0,"aC8eBe")),b=g.next().value,z=g.next().value;
_.Y5(function(){requestAnimationFrame(function(){var X=f.data().onShowAnimationMs||0;X=X>0?K22("--chip-animation-duration: "+X+"ms;"):K22("");z(X)})});
return _.T("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:b},_.T(_.dg,{each:function(){return f.data().chipData||[]},
keyBy:"REFERENCE"},function(X){return _.T(Rsz,{data:X,disabled:G,pendingStateKey:S,onError:f.onError})}))},"Di"),Rsz=_.oS(function(f){var S=_.us("button"),B=_.m(_.hj(!0,void 0,"NaMiCd")),G=B.next().value,g=B.next().value,b=function(){return f.data().text.content},z=_.iF(function(X){var w,F,V,J,P,d,Q,x;
return _.R(function(E){switch(E.nextAddress){case 1:X.stopPropagation();if(f.disabled())return E.return();F=String(Math.floor(((w=_.hD())==null?void 0:w.getCurrentTime())||0)*1E3);V="youchat-"+Date.now();J=function(){_.pH(f.data().onClick||{});var U={continuationCommand:{token:f.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},A={inputComposerFormData:{clientMessageId:V,playerOffsetMs:F}};return new Promise(function(t,M){_.pH(U,{form:{formData:A},commandController:{onSuccess:function(a,
l){t(l)},
onServerError:function(a,l){M(l.error)}}})})};
P=_.jdz(f.pendingStateKey());P(!0);_.zA$("#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");g(!1);_.zT(E,2);return _.h(E,J(),4);case 4:_.CN(E,3);break;case 2:d=_.hm(E),(x=(Q=f).onError)==null||x.call(Q,d);case 3:P(!1),_.TT(E)}})});
return _.T(_.v,{cond:G,then:function(){return _.T("div",{class:"ytwYouChatChipsDataChipWrapper"},_.T("button",{el:S,class:"ytwYouChatChipsDataChip","data-disabled":f.disabled,"on:click":z,tabindex:0},b))}})},"Ei");var wTz=_.oS(function(f){var S=f.data;return _.T("yt-conversation-resource-view-model",{class:_.Pw("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.T(_.xK,{data:function(){var B,G;return((B=S().conversationResourceData)==null?void 0:(G=B.learningGuideData)==null?void 0:G.sections)||[]}},{expandableMetadataViewModel:function(B){return _.T(_.sTn,{data:B.data})}}))},"Fi");
wTz.idomCompat=!0;var hsu=_.oS(function(f){var S=function(){var M;return(M=f.data().text)==null?void 0:M.content},B=function(){var M,a;
return(M=f.data().webData)==null?void 0:(a=M.textResult)==null?void 0:a.content},G=_.oy().resolve(_.cs),g=_.TG(),b=function(){return f.data().chatResponseStyle},z=function(){return!f.data().transparentBackground},X=function(){return f.data().rightAlignThumbs},w=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:"12 0 48 48"},name:"YOUCHAT_ICON",path:f.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},F=function(){var M;
return f.data().webData||((M=f.data().text)==null?void 0:M.content)||f.data().videoResultsData||f.data().conversationResourceViewModel||f.data().quiz},V=function(){var M;
return(M=f.data().videoResultsData)==null?void 0:M.videoShelf},J=function(){var M;
return _.H(((M=f.data().videoResultsData)==null?void 0:M.videoShelf)||{},IQZ)},P=function(){var M;
return(M=f.data().webData)==null?void 0:M.sourcesShelf},d=function(){var M;
return _.H(((M=f.data().webData)==null?void 0:M.sourcesShelf)||{},IQZ)},Q=function(){return _.H(f.data().conversationResourceViewModel||{},C$u)},x=function(){return _.H(f.data().quiz||{},nyu)},E=function(){return b()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||b()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:f.data().thumbsDownViewModel&&f.data().thumbsUpViewModel},U=function(){return _.H(f.data().thumbsUpViewModel,_.YK)},A=function(){return _.H(f.data().thumbsDownViewModel,_.YK)};
_.Y5(function(){requestAnimationFrame(function(){var M;(M=f.shouldAnimateIcon)!=null&&M.call(f)&&OGz(g.lottieEl)})});
var t={};return _.T("you-chat-item-view-model",{class:_.Pw("ytwYouChatItemViewModelYouChatItemViewModel",(t.ytwYouChatItemViewModelHostNoPadding=function(){return!1},t)),
"data-target-id":function(){return f.data().id||""}},_.T(_.v,{cond:function(){return f.data().removeIcon?!1:F()},
then:function(){var M={};return _.T("div",{"aria-hidden":"true"},_.T(_.vw,{className:_.Pw("ytwYouChatItemViewModelIcon",(M.ytwYouChatItemViewModelRtl=G==="rtl",M.ytwYouChatItemViewModelHidden=function(){return!(f.data().hideIcon||b()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||b()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:F())},M)),
animationName:"YOUCHAT_ICON",data:w,animationRef:g}))}}),_.T(_.v,{cond:F,
then:function(){var M={};return _.T("div",{class:_.Pw("ytwYouChatItemViewModelHost",(M.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return b()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},M.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return b()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},M.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return b()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},M.ytwYouChatItemViewModelGradientBackground=z,M)),
role:"alert"},_.T(_.v,{cond:S,then:function(a){return _.T(_.x4,{text:a})}}),_.T(_.v,{cond:B,
then:function(a){return _.T(_.x4,{text:a})}}),_.T(_.v,{cond:V,
then:function(){return _.T("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.T(_.jh,{data:J,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.T(_.v,{cond:P,
then:function(){return _.T("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.T(_.jh,{data:d,hasPeek:!0,disableArrows:!1}))}}),_.T(_.v,{cond:Q,
then:function(){return _.T(wTz,{data:Q})}}),_.T(_.v,{cond:x,
then:function(){return _.T(_.r8i,{data:x})}}),_.T(_.v,{cond:E,
then:function(){return _.T(zsZ,{thumbsUp:U,thumbsDown:A,rightAlignThumbs:X})}}))}}),_.T(_.v,{cond:function(){return f.data().chipsData},
then:function(M){return _.T(XT$,{data:M,disabled:f.pending,onError:f.onError})}}))},"Gi");
hsu.idomCompat={callbacks:{onError:!0,onSend:!0}};var TJn=_.oS(function(f){var S=function(){return f.data().choiceSelectedText};
return _.T("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.T(_.v,{cond:S,then:function(){return _.T("div",{class:"ytYouChatUserTurnChoiceSelected"},_.T(_.oY,{text:S}))}}),_.T("div",{class:"ytYouChatUserTurnUserMessage"},function(){return f.data().text}))},"Hi");var FF2=_.oS(function(f){var S=_.m((0,_.mU8)(f.data)).next().value;return _.T("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return f.data().targetId||""}},_.T(_.xK,{data:function(){return f.data().header}},{chipBarViewModel:_.W11}),_.T(_.xK,{data:function(){return S().contents}},{accordionViewModel:_.xeN,
alertBannerViewModel:_.GkN,chatLoadingViewModel:_.dHM,chatUserTurnViewModel:TJn,learningJourneyLoaderViewModel:_.YFm,lockupViewModel:function(B){return _.T(_.Gf,{data:B.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:f.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
youChatItemViewModel:function(B){return _.T(hsu,{data:B.data,pending:!1})}}))},"Ii");_.eq(_.oS(function(f){var S=_.m((0,_.mU8)(f.data)).next().value,B=_.tE("yt-section-list-renderer"),G=_.m(_.hj(void 0,void 0,"rQpPgc")),g=G.next().value,b=G.next().value,z=function(){var X;return _.H((X=f.data().sectionListLayoutConfiguration)==null?void 0:X.layoutConfiguration,D4X)};
_.j9(function(){var X,w=(X=B.value)==null?void 0:X.clientWidth;if(z()){X=z();var F=X.responsiveSize;w=w<528?"CONTAINER_SIZE_NARROW":w<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var V=_.m(X.responsiveMap||[]);for(var J=V.next();!J.done;J=V.next())if(J=J.value,J.containerSize===w){V=J.containerType;break b}V=void 0}if(V&&F){b:{if(V==="CONTAINER_TYPE_VERTICAL_LIST")if(F==="RESPONSIVE_SIZE_STANDARD"){if(w!=="CONTAINER_SIZE_NARROW"){J="50%";break b}}else{J=w==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}J=void 0}X={responsiveSize:F,containerSize:w,containerType:V,force16By9ThumbnailAspectRatio:!X.enableContentSpecificAspectRatio,contentPreviewWidth:J,fullbleed:(V==="CONTAINER_TYPE_VERTICAL_LIST"||V==="CONTAINER_TYPE_GRID")&&w==="CONTAINER_SIZE_NARROW"&&!1}}else X=void 0}else X=void 0;b(X)});
return _.T("yt-section-list-renderer",{class:_.Pw("ytSectionListRendererHost",f.className),el:B,"data-target-id":function(){return f.data().targetId||""}},_.T(_.xK,{data:function(){return S().contents}},{itemSectionRenderer:function(X){return _.T(FF2,{data:X.data,
containerLayoutConfig:g})}}))},"Ji"),"yt-section-list-renderer",{props:{data:_.W4,
className:_.gm}});var V42;var JPB;var PMM=function(){return _.I.apply(this,arguments)||this};
_.q(PMM,_.I);_.N([_.n(),_.Z("design:type",Object)],PMM.prototype,"data",void 0);_.N([_.nP({is:"yt-alert-renderer",disableElementRegistration:!0})],PMM);
_.p(PMM,"yt-alert-renderer",function(){if(JPB===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;V42===void 0&&(V42=document.createElement("template"));var G=V42;B.call(S,G.content.cloneNode(!0),f.content.firstChild);JPB=f}f=JPB;return f},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.Ia$=function(f,S){var B,G;S=S===void 0?{}:S;var g,b,z,X,w,F,V,J,P,d,Q,x;return _.R(function(E){switch(E.nextAddress){case 1:g=S;b=g.shouldWrap===void 0?!0:g.shouldWrap;z=g.skipTransitionTimeoutMs===void 0?300:g.skipTransitionTimeoutMs;X=g.beforeTransition;w=g.afterTransition;if(!b||!document.startViewTransition||document.visibilityState==="hidden")return E.return(f());B=window.innerWidth;G=window.innerHeight;F=!1;(V=X)==null||V();_.zT(E,2);J=document.startViewTransition(f);P=setTimeout(function(){J.skipTransition();
F=!0},z);
return _.h(E,J.ready,4);case 4:return clearTimeout(P),_.h(E,J.finished,5);case 5:clearTimeout(P);(d=w)==null||d();_.CN(E,0);break;case 2:Q=_.hm(E),(x=w)==null||x(),Q&&!F&&document.visibilityState!=="hidden"&&B===window.innerWidth&&G===window.innerHeight&&_.xH(Q),_.TT(E)}})};
_.O1=function(){for(var f=Array(36),S=0,B,G=0;G<36;G++)G==8||G==13||G==18||G==23?f[G]="-":G==14?f[G]="4":(S<=2&&(S=33554432+Math.random()*16777216|0),B=S&15,S>>=4,f[G]=_.qn1[G==19?B&3|8:B]);return f.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 Ubu=_.f4(['<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>']),
CoX=_.RSg(Ubu);CoX.setAttribute("style","display: none;");document.head.appendChild(CoX.content);_.xy=_.Tgs(function(f){var S=_.Ja("DIV");f&&(S.className=f);S.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";f=_.Ja("DIV");_.w7N(f,"200px","200px");S.appendChild(f);document.body.appendChild(S);f=S.offsetWidth-S.clientWidth;_.Pv(S);return f});var po2;var AJX;var E1=function(){var f=_.I.apply(this,arguments)||this;f.icon=null;return f};
_.q(E1,_.I);E1.prototype.dismiss=function(){_.ew(this.hostElement,"yt-live-chat-error-message-dismiss")};
E1.prototype.computeIcon=function(f){return f&&f.iconType?"yt-icons:"+f.iconType.toLowerCase():"yt-icons:close"};
_.N([_.n(),_.Z("design:type",Object)],E1.prototype,"data",void 0);_.N([_.n({computed:"computeIcon(data.icon)"}),_.Z("design:type",Object)],E1.prototype,"icon",void 0);_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],E1);
_.p(E1,"yt-live-chat-error-message-renderer",function(){if(AJX===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;po2===void 0&&(po2=document.createElement("template"));var G=po2;B.call(S,G.content.cloneNode(!0),f.content.firstChild);AJX=f}f=AJX;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var QqB,YPB,rCu,jqO,nh2,sq2,Ddu,I8M,Udo,r4,CDe,pjO,jX,AC2,Nru,MVu,Z$X,tVB,umY,a8$,yCu,WOB,cCu,l8Y,f4$,ozB,SzB,BTY,GPB,gzB,eOe,bau,Os,mQu,zOu,ROZ,hOY,TTe,Fh2,Vin,JTz,PUX,XRu,wRB,Kh$,dQO,iae,Haz,qzu,vzz,Qi$;QqB=function(f,S){return _.w9(f.entities,"timedMarkersListSyncEntity",S)};
YPB=function(f,S){return _.w9(f.entities,"liveReactionsDataEntity",S)};
rCu=function(f,S){f=_.w9(f.entities,"booleanEntity",S);return!(!f||!f.value)};
jqO=function(f,S){var B=_.xc();B&&f&&_.Af(B,_.Ye(f),S)};
_.O$2=function(){_.K("web_watch_log_theater_mode")&&_.U4K("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.xdu=function(f,S,B){if(!f.includes("START_TIME_PLACEHOLDER")||!f.includes("END_TIME_PLACEHOLDER"))return f;var G=new Date(0),g=new Date(0);G.setUTCMilliseconds(S);g.setUTCMilliseconds(B);return f.replace("START_TIME_PLACEHOLDER",_.Nz(G,7)).replace("END_TIME_PLACEHOLDER",_.Nz(g,7))};
_.EhB=function(f){return f.watch.isWatchActive};
_.LO2=function(f){return _.CF(f)||_.pF(f)||_.NVN(f)};
_.kgn=function(f){return!_.LO2(f)};
_.Y7=function(f){return f.watch.watchScrollTop};
nh2=function(f){return f.watch.isLiveChatCollapsed};
sq2=function(f){return f.watch.openEngagementPanels};
Ddu=function(f,S){return _.w9(f.entities,"booleanEntity",S)};
I8M=function(){return function(f){_.WF(_.KF("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:f}))}};
Udo=function(f){switch(f){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}};
r4=function(f,S,B){var G=_.CH(B);f&&S&&G&&f.getPlayerPromise().then(function(g){_.TwA(G)&&_.OU();(new _.$M(g)).executeCommand(G,S);_.K("continue_playback_on_desktop_companion_click")||g.pauseVideo()})};
CDe=function(f){var S=_.B8(),B;if(B=_.U6("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var G;B=(G=B())==null?void 0:G.layoutId}else B=null;r4(S,B,f)};
pjO=function(f){var S=_.B8(),B;if(B=_.U6("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var G;B=(G=B())==null?void 0:G.layoutId}else B=null;r4(S,B,f)};
jX=function(f,S){var B=f<0?"-":"";f=Math.abs(f);var G=Math.floor(f/3600),g=Math.floor(f)%3600,b=Math.floor(g/60);g=Math.floor(g)%60;var z="";(S===void 0?0:S)&&(z="."+Math.round((f-Math.floor(f))*10));return G>0?B+G+":"+(b<10?"0"+b:""+b)+":"+(g<10?"0"+g:""+g)+z:B+b+":"+(g<10?"0"+g:""+g)+z};
AC2=function(f){var S=f.match(/[^0-9:\.]/g);if(S&&S.length>0)return null;f=f.split(":");if(f.length===0||f.length>3)return null;S=1;for(var B=0;f.length>0;){var G=f.pop();if(G===void 0)break;var g=Number(G);if(G===""||isNaN(g))return null;B+=g*S;S*=60}return B};
Nru=function(f,S,B,G){f=Math.max(B,f);S=Math.min(S,G-B);f+S>G?(B=G,f=B-S):B=f+S;return{start:f,end:B}};
MVu=function(f,S,B,G,g,b){f<B?f=B:f+g>G&&(f=G-g);S>G&&(S=G);S=Math.min(f+b,Math.max(f+g,S));return{start:f,end:S}};
Z$X=function(f,S,B,G,g,b){S>G?S=G:S-g<B&&(S=B+g);f<B&&(f=B);f=Math.min(S-g,Math.max(S-b,f));return{start:f,end:S}};
tVB=function(f){return _.K("web_transcript_cue_id_killswitch")?String(f):"ytd-transcript-renderer_"+f};
umY=function(f){return _.K("web_transcript_cue_id_killswitch")?!0:f.startsWith("ytd-transcript-renderer")};
a8$=function(f){var S=_.B8(),B;if(B=_.U6("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var G;B=(G=B())==null?void 0:G.layoutId}else B=null;r4(S,B,f)};
yCu=function(f){f.style.height="auto";f.style.height=Math.min(f.scrollHeight||20,80)+"px"};
WOB=function(f,S){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:S}}],insertByPositionInSection:{sectionTargetId:f,position:"INSERTION_POSITION_LAST"}}}]}}}};
cCu=function(f){var S=_.B8(),B;B=(B=_.U6("yt.www.ads.eventcache.getLastCompanionData"))?(B=B())&&B.layoutId:null;r4(S,B,f)};
l8Y=function(f){var S=_.B8(),B;B=(B=_.U6("yt.www.ads.eventcache.getLastCompanionData"))?(B=B())&&B.layoutId:null;r4(S,B,f)};
f4$=function(f,S){S=S===void 0?!1:S;if(f.simpleText)f=[{text:f.simpleText}];else{var B;f=((B=f.runs)!=null?B:[]).map(function(G){return Object.assign({},G)})}if(S)for(S=_.m(f),B=S.next();!B.done;B=S.next())B.value.bold=!0;
return f};
ozB=function(f){var S=f.startEndTimeTemplate,B=f.startTimeUtcMillis;f=f.endTimeUtcMillis;if(S&&B&&f)return _.uC(_.xdu(_.ac(S),Number(B),Number(f)))};
SzB=function(f,S){var B,G,g=f==null?void 0:(B=f.viewCount)==null?void 0:(G=B.videoViewCountRenderer)==null?void 0:G.shortViewCount;if(!S&&g)return g;var b,z;return f==null?void 0:(b=f.viewCount)==null?void 0:(z=b.videoViewCountRenderer)==null?void 0:z.viewCount};
BTY=function(f,S){var B=f==null?void 0:f.relativeDateText;return!S&&B?[B,!0]:[f==null?void 0:f.dateText,!1]};
GPB=function(f,S,B,G,g){G=G===void 0?!0:G;g=g===void 0?"":g;var b=SzB(f,S),z=_.m(BTY(f,S)),X=z.next().value;z=z.next().value;S=S?f==null?void 0:f.sponsorsOnlyFirstTimeLongText:f==null?void 0:f.sponsorsOnlyFirstTimeShortText;var w=[];B&&b&&w.push(b);!B&&z||!X||w.push(X);f=[].concat(_.$d(w),[S,f==null?void 0:f.stationName,f==null?void 0:f.rating,f?ozB(f):void 0,f==null?void 0:f.upNextProgramText,f==null?void 0:f.superTitleLink]).filter(function(F){return!!F});
B={runs:[]};for(b=0;b<f.length;b++)B.runs.push.apply(B.runs,_.$d(f4$(f[b],G))),b<f.length-1&&B.runs.push({text:" "+g+" ",bold:G});return B};
gzB=function(f){if(f)return{runs:[{text:f,bold:!0}]}};
eOe=function(f){var S,B,G,g;if(f=f==null?void 0:(S=f.contents)==null?void 0:(B=S.twoColumnWatchNextResults)==null?void 0:(G=B.results)==null?void 0:(g=G.results)==null?void 0:g.contents){var b,z;return(z=(b=f.find(function(X){return!!X.videoPrimaryInfoRenderer}))==null?void 0:b.videoPrimaryInfoRenderer)==null?void 0:z.updatedMetadataEndpoint}};
bau=function(f,S){var B;return(B=f.sourceConfigs)==null?void 0:B.find(function(G){return G.videoId===S})};
Os=function(f){return f==="End of video"||f==="End of playlist"};
mQu=function(f){var S,B,G,g;return(S=f.getWatchNextResponse())==null?void 0:(B=S.contents)==null?void 0:(G=B.twoColumnWatchNextResults)==null?void 0:(g=G.playlist)==null?void 0:g.playlist};
zOu=function(f){var S,B,G,g,b,z;return(S=mQu(f))==null?void 0:(B=S.playlistButtons)==null?void 0:(G=B.menuRenderer)==null?void 0:(g=G.topLevelButtons)==null?void 0:(b=g[0])==null?void 0:(z=b.playlistLoopButtonRenderer)==null?void 0:z.playlistLoopStateEntityKey};
ROZ=function(f){var S=_.oy().resolve(_.Dr),B;return(S=(B=_.H(S.getAutoplayEndpoint(),_.t2))==null?void 0:B.playlistId)&&S===f};
hOY=function(f,S,B,G,g){function b(){_.xJ.cancelJob(x7);var z=XRu(S,B/f.getPlaybackRate()),X=z.hours,w=z.minutes;z=(z.seconds*1E3||6E4)/f.getPlaybackRate();f.setVideoTimeLeft(wRB(X,w));G&&f.getPlayerState()!==0&&f.setSleepTimerTimeLeft(wRB(X,w,!0));(X>0||w>0)&&!g&&(x7=_.H8(_.xJ,b,z))}
_.xJ.cancelJob(x7);x7=_.H8(_.xJ,b)};
TTe=function(f,S,B){function G(){_.xJ.cancelJob(Es);var g=XRu(S,B),b=g.hours;g=g.minutes;var z=6E4/f.getPlaybackRate();if(b>0||g>0)f.setSleepTimerTimeLeft(wRB(b,g,!0)),Es=_.H8(_.xJ,G,z)}
_.xJ.cancelJob(Es);Es=_.H8(_.xJ,G)};
Fh2=function(f,S){var B=f.getVolume()/(S/500),G=function(g){_.xJ.cancelJob(LZ);var b=Math.floor(g-B);f.setVolume(b,!1);b>0&&(LZ=_.H8(_.xJ,function(){G(b)},500))};
_.xJ.cancelJob(LZ);LZ=_.H8(_.xJ,function(){G(f.getVolume())})};
Vin=function(f,S){_.xJ.cancelJob(LZ);S&&f.syncVolume()};
JTz=function(){var f={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Jf("SLEEP_TIMER_DISRUPTED")}}}}};_.oy().resolve(_.S7).resolveCommand(f)};
PUX=function(f){return(f.getDuration()-f.getProgressState().current)*1E3};
XRu=function(f,S){f=f+S-(0,_.fO)();if(f<=0)return{hours:0,minutes:0,seconds:0};var B=new vzz(0,0,0,0,0,0,f);f=B.getHours();S=B.getMinutes();B=B.getSeconds();B!==0&&S++;S!==0&&S%60===0&&(f++,S=0);return{hours:f,minutes:S,seconds:B}};
wRB=function(f,S,B){return f>0&&S>0?B?_.Jf("TIME_LEFT_HOURS_MINUTES",{hours:f.toString(),minutes:S.toString()}):_.Jf("TIME_HOURS_MINUTES",{hours:f.toString(),minutes:S.toString()}):f>0?B?_.PK("TIME_LEFT_HOURS",f):_.PK("TIME_HOURS",f):B?_.Jf("TIME_LEFT_MINUTES",{minutes:S.toString()}):_.Jf("TIME_MINUTES",{minutes:S.toString()})};
Kh$=function(f,S){if(f.timelyActions)return f.timelyActions.find(function(B){var G;return((G=_.H(B,k7))==null?void 0:G.cueRangeId)===S})};
dQO=function(f){var S=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.wH(f);f.keyMap_.forEach(function(B,G){_.As(S,G)||this.remove(G)},f)};
iae=function(f,S){f.reloadContinuationItemsCommandMatcher=S};
_.nZ=function(f,S){f.insertBefore(S,f.childNodes[0]||null)};
Haz=function(f){if(f>=48&&f<=57||f>=96&&f<=106||f>=65&&f<=90||_.V9&&f==0)return!0;switch(f){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 _.Fx;default:return!1}};
qzu=function(f){if(f.altKey&&!f.ctrlKey||f.metaKey||f.keyCode>=112&&f.keyCode<=123)return!1;if(Haz(f.keyCode))return!0;switch(f.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!_.Fx;default:return f.keyCode<166||f.keyCode>183}};
vzz=function(f,S,B,G,g,b,z){this.date=typeof f==="number"?new Date(f,S||0,B||1,G||0,g||0,b||0,z||0):new Date(f&&f.getTime?f.getTime():_.zd())};
_.Rm(vzz,_.$R);_.e=vzz.prototype;_.e.getHours=function(){return this.date.getHours()};
_.e.getMinutes=function(){return this.date.getMinutes()};
_.e.getSeconds=function(){return this.date.getSeconds()};
_.e.getMilliseconds=function(){return this.date.getMilliseconds()};
_.e.getUTCDay=function(){return this.date.getUTCDay()};
_.e.getUTCHours=function(){return this.date.getUTCHours()};
_.e.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.e.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.e.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.e.setHours=function(f){this.date.setHours(f)};
_.e.setMinutes=function(f){this.date.setMinutes(f)};
_.e.setSeconds=function(f){this.date.setSeconds(f)};
_.e.setMilliseconds=function(f){this.date.setMilliseconds(f)};
_.e.setUTCHours=function(f){this.date.setUTCHours(f)};
_.e.setUTCMinutes=function(f){this.date.setUTCMinutes(f)};
_.e.setUTCSeconds=function(f){this.date.setUTCSeconds(f)};
_.e.setUTCMilliseconds=function(f){this.date.setUTCMilliseconds(f)};
_.e.add=function(f){_.$R.prototype.add.call(this,f);f.hours&&this.setUTCHours(this.date.getUTCHours()+f.hours);f.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+f.minutes);f.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+f.seconds)};
_.e.JSC$9289_toIsoString=function(f){var S=_.$R.prototype.JSC$9289_toIsoString.call(this,f);return f?S+"T"+_.es(this.getHours(),2)+":"+_.es(this.getMinutes(),2)+":"+_.es(this.getSeconds(),2):S+"T"+_.es(this.getHours(),2)+_.es(this.getMinutes(),2)+_.es(this.getSeconds(),2)};
_.e.equals=function(f){return this.getTime()==f.getTime()};
_.e.toString=function(){return this.JSC$9289_toIsoString()};
_.e.clone=function(){var f=new vzz(this.date);f.firstDayOfWeek_=this.firstDayOfWeek_;f.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return f};
_.$Qz=function(f){return _.ef({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:f}})};
Qi$=new _.u("imageTileRenderer");var Yz2=new _.u("adGridCardCollectionViewModel");var rTM=new _.u("carouselTitleViewModel");var ji2=new _.u("ctaCarouselItemViewModel");var OaY=new _.u("textFieldViewModel");_.xQu=new _.u("engagementPanelHeaderShowNavigationButtonCommand");var EzX=new _.u("hideEngagementPanelScrimAction");var LhY=new _.u("setActivePanelItemAction");var kPe=new _.u("showEngagementPanelScrimAction");var nzn=new _.u("updateEngagementPanelAction");var sie=new _.u("updateSearchInVideoResultsAction");var DQB=new _.u("transcriptCueGroupRenderer");var I4u=new _.u("transcriptCueRenderer");var UQ2=new _.u("transcriptFooterRenderer");var CU$=new _.u("engagementPanelAdSubtitleRenderer");var pRY=new _.u("videoDescriptionFantasySectionViewModel");var ATO=new _.u("deleteClipEngagementPanelCommand");var NTY=new _.u("loopCommand");var Mi2=new _.u("changeCreatorEndscreenVisibilityCommand");var Zae=new _.u("liveChatCallForQuestionsRenderer");var tiu=new _.u("updateTimedMarkersSyncObserverCommand");var k7=new _.u("timelyActionViewModel");var ueo=new _.u("timelyActionsOverlayViewModel");var a4M=new _.u("repeatChapterCommand");var yT$=new _.u("watchPlayerOverflowMenuCommand");var WhO=new _.u("compositeVideoOverlayRenderer");var cT$=new _.u("sortFilterSubMenuRenderer");var l4M=new _.u("switchListItemViewModel");var fsu=new _.u("inputComposerViewModel");var oIz=new _.u("transcriptEditSegmentCommand");var S_O=new _.u("transcriptUpdateSegmentTextCommand");var BsY=new _.u("transcriptSearchBoxRenderer");var GmM=new _.u("transcriptSegmentListRenderer");var gI$=new _.u("transcriptSegmentRenderer");_.eNY=new _.u("updateDateTextAction");var b72=new _.u("updateTitleAction");var mgu=new _.u("updateViewershipAction");var zNn=new _.u("carouselLockupRenderer");var RNn=new _.u("expandableVideoDescriptionBodyRenderer");var XPX=new _.u("videoDescriptionYouchatSectionViewModel");_.ss=_.Gt("kevlar_watch_page_horizontal_margin",24);_.wPZ=_.Gt("kevlar_watch_page_columns_top_padding",24);_.hNY=426+_.ss*2;_.DA=_.Gt("kevlar_watch_two_column_width_threshold",1E3);_.TsY=_.ss*2;_.FPO=_.Gt("kevlar_watch_secondary_width",402);_.VMz=_.Gt("kevlar_watch_max_player_width",1280);_.Jbz=_.Gt("kevlar_watch_flexy_metadata_height",136);_.PIo=_.TsY+310+_.ss;_.vIn=_.TsY+360+_.ss;var KPu={PAUSE_CHAT:18};var dgu;var i7o;var IW=function(){return _.I.apply(this,arguments)||this};
_.q(IW,_.I);IW.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
IW.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var f=_.H(this.data.button,_.Q5);f&&(f.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.y3.Object.defineProperties(IW,{template:{configurable:!0,enumerable:!0,get:function(){if(i7o===void 0){var f=document.createElement("template");_.Y(f,'\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>');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;dgu===void 0&&(dgu=document.createElement("template"));var G=dgu;B.call(S,G.content.cloneNode(!0),f.content.firstChild);i7o=f}f=i7o;return f}}});
_.N([_.r(_.p5),_.Z("design:type",Object)],IW.prototype,"ytLiveChatReduxBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],IW.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n({selectorArgs:["data.enabledEntityKey"],selector:rCu,observer:"onEnabledChange"}),_.Z("design:type",Boolean)],IW.prototype,"enabled",void 0);_.N([_.n(),_.Z("design:type",Object)],IW.prototype,"data",void 0);_.N([_.nP({is:"yt-disableable-button-view-model",noInjection:!0})],IW);var H7M;var q_$;var $go=["transVert01","transVert02","transVert03"],Q9n="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),Us=function(){var f=_.I.apply(this,arguments)||this;f.emojiManager=_.I5;f.isDarkTheme=document.documentElement.hasAttribute("dark");f.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};f.reactionBuckets=[];f.noEmojiIdentifier="NO_EMOJI";return f};
_.q(Us,_.I);_.e=Us.prototype;_.e.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.e.desktopFountainEmojiSizePxChanged=function(){_.hO(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.e.createUserReactionAnimation=function(f){this.createEmojiAnimation(f,!0)};
_.e.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var f;((f=this.data)==null?0:f.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.KF("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.$d(this.emojiContainer.children)).forEach(function(S){S.remove()})};
_.e.detached=function(){this.cleanupFountain()};
_.e.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var f;this.reactionBuckets=_.$v.unsafeClone((f=this.emojiFountainData)==null?void 0:f.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.e.processEmojiBucket=function(f){var S=this;if(this.reactionBuckets&&!(f>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var B=this.reactionBuckets[f];this.generateEmojiAnimations(B);if(f<this.reactionBuckets.length-1){var G;if(B==null?0:(G=B.duration)==null?0:G.seconds)this.emojiBucketTimerId=setTimeout(function(){S.processEmojiBucket(f+1)},Number(B.duration.seconds)*1E3)}}};
_.e.generateEmojiAnimations=function(f){var S=this,B=this.getRandomEmojiIdFromBucketWithOverride(f);if(B&&B!==this.noEmojiIdentifier){var G=0;f.targetEps?(G=this.linearInterpolateBounded(1,20,100,12,f.emojiSizeIndex||0),this.createEmojiAnimation(B,!1,f.emojiAnimationMs,G),G=this.getEmojiDelayMsFromTargetEps(f.targetEps)):(this.createEmojiAnimation(B),G=this.getEmojiDelayMsFromDistribution(f.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){S.generateEmojiAnimations(f)},G)}};
_.e.getRandomEmojiIdFromBucketWithOverride=function(f){if(!(f&&f.reactionsData&&f.reactionsData.length&&f.totalReactions))return this.noEmojiIdentifier;for(var S=f.totalReactions,B=1,G=_.m(f.reactionsData),g=G.next();!g.done;g=G.next())g=g.value,(g.reactionWeightOverride||g.reactionWeightOverride===0)&&g.reactionCount&&(S-=g.reactionCount,B-=g.reactionWeightOverride);G=!0;B<0&&(G=!1,S=f.totalReactions,B=1);if(G&&B>0&&S===0)if(B===1){g=0;for(var b=_.m(f.reactionsData),z=b.next();!z.done;z=b.next())z=
z.value,z.reactionCount&&z.reactionCount>0&&g++;g=1/g;b=_.m(f.reactionsData);for(z=b.next();!z.done;z=b.next())z.value.reactionWeightOverride=g}else for(g=1/(1-B),b=_.m(f.reactionsData),z=b.next();!z.done;z=b.next())z=z.value,z.reactionWeightOverride&&(z.reactionWeightOverride*=g);g=Math.random();b=0;z=_.m(f.reactionsData);for(var X=z.next();!X.done;X=z.next())if(X=X.value,X.reactionCount&&(b=(X.reactionWeightOverride||X.reactionWeightOverride===0)&&G?b+X.reactionWeightOverride:b+B*X.reactionCount/
S,b>g&&(X.reactionCount--,f.totalReactions--,X=this.reactionItemToEmojiString(X),X!==this.noEmojiIdentifier)))return X;return this.noEmojiIdentifier};
_.e.reactionItemToEmojiString=function(f){if(f.unicodeEmojiId)return f.unicodeEmojiId;if(f.emoteId)return f.emoteId;if(f.videoReactionType)switch(f.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.e.createEmojiAnimation=function(f,S,B,G){S=S===void 0?!1:S;this.lastEmojiRequestedForTesting=f;var g=f.startsWith("yt-icons:"),b=_.s0(this.emojiManager,f);if(b||g){var z=document.createElement("emoji");z.classList.add("yt-emoji-fountain-view-model");z.classList.add($go[Math.floor(Math.random()*$go.length)]);var X=document.createElement("div");X.classList.add("yt-emoji-fountain-view-model");X.classList.add("horizontal-container");X.classList.add(Q9n[Math.floor(Math.random()*Q9n.length)]);S?(B=document.createElement("div"),
B.classList.add("user-reaction-bubble"),B.classList.add("yt-emoji-fountain-view-model"),X.appendChild(B)):(B&&(z.style.animationDuration=B+"ms",X.style.animationDuration=B+"ms"),G&&(z.style.width=G+"px",z.style.height=G+"px"));g?(g=document.createElement("yt-icon"),g.polymerController.icon=f,G&&(g.style.width=G+"px",g.style.height=G+"px"),f=g):f=this.emojiManager.createEmoji(b,!1);f.classList.add("yt-emoji-fountain-view-model");X.appendChild(f);z.appendChild(X);this.emojiContainer.appendChild(z);
z.addEventListener("animationend",function(){z.remove()});
var w,F;if((w=this.data)==null?0:(F=w.loggingDirectives)==null?0:F.trackingParams)S=S?_.Eo(183501):_.Eo(183500),jqO(this.data.loggingDirectives.trackingParams,S),_.dh9(S);setTimeout(function(){z&&z.remove()},2E3)}};
_.e.getEmojiDelayMsFromDistribution=function(f){return Math.random()*(f||1)*1E3};
_.e.getEmojiDelayMsFromTargetEps=function(f){return Math.random()*2*(1/f)*1E3};
_.e.linearInterpolateBounded=function(f,S,B,G,g){g=Math.min(Math.max(g,f),B);return(S*(B-g)+G*(g-f))/(B-f)};
Us.prototype.onEmojiFountainDataEntityUpdate=Us.prototype.onEmojiFountainDataEntityUpdate;Us.prototype.desktopFountainEmojiSizePxChanged=Us.prototype.desktopFountainEmojiSizePxChanged;Us.prototype.isActiveChanged=Us.prototype.isActiveChanged;_.N([_.n(),_.Z("design:type",_.nV)],Us.prototype,"emojiManager",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Us.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.p5),_.Z("design:type",Object)],Us.prototype,"ytLiveChatReduxBehavior",void 0);
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],Us.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Us.prototype,"data",void 0);_.N([_.n({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(f,S){return _.w9(f.entities,"emojiFountainDataEntity",S)}}),
_.Z("design:type",Object)],Us.prototype,"emojiFountainData",void 0);_.N([_.n(),_.Z("design:type",Boolean)],Us.prototype,"isActive",void 0);_.N([_.JO("isActive"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Us.prototype,"isActiveChanged",null);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Us.prototype,"isDarkTheme",void 0);_.N([_.n(),_.Z("design:type",String)],Us.prototype,"lastEmojiRequestedForTesting",void 0);
_.N([_.n({value:function(){return _.Gt("desktop_fountain_emoji_size_px",20)}}),
_.Z("design:type",Number)],Us.prototype,"desktopFountainEmojiSizePx",void 0);_.N([_.JO("desktopFountainEmojiSizePx"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Us.prototype,"desktopFountainEmojiSizePxChanged",null);_.N([_.vF("#emoji-container"),_.Z("design:type",HTMLElement)],Us.prototype,"emojiContainer",void 0);
_.N([_.JO("emojiFountainData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Us.prototype,"onEmojiFountainDataEntityUpdate",null);_.N([_.nP({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],Us);
_.p(Us,"yt-emoji-fountain-view-model",function(){if(q_$===void 0){var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;H7M===void 0&&(H7M=document.createElement("template"));var G=H7M;B.call(S,G.content.cloneNode(!0),f.content.firstChild);q_$=f}f=q_$;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var Y_e;var rb2;var CZ=function(){return _.I.apply(this,arguments)||this};
_.q(CZ,_.I);CZ.prototype.onChoiceChanged=function(){this.data&&_.hO(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
CZ.prototype.onChoiceChanged=CZ.prototype.onChoiceChanged;_.N([_.n(),_.Z("design:type",Object)],CZ.prototype,"data",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],CZ.prototype,"onChoiceChanged",null);_.N([_.C({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],CZ);
_.p(CZ,"yt-live-chat-banner-poll-choice",function(){if(rb2===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;Y_e===void 0&&(Y_e=document.createElement("template"));var G=Y_e;B.call(S,G.content.cloneNode(!0),f.content.firstChild);rb2=f}f=rb2;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var j9o;var O7Z;var pZ=function(){var f=_.I.apply(this,arguments)||this;f.modern=_.K("web_button_rework_with_live");f.small=!1;return f};
_.q(pZ,_.I);pZ.prototype.computeIsSmall=function(){var f;return((f=this.buttonOverrides)==null?void 0:f.size)==="S"};
pZ.prototype.computeId=function(){return this.data&&this.data.targetId};
_.N([_.r(_.Ai.YtLiveChatTooltipTargetingBehavior),_.Z("design:type",Object)],pZ.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.N([_.n({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Z("design:type",String)],pZ.prototype,"id",void 0);_.N([_.n(),_.Z("design:type",Object)],pZ.prototype,"buttonOverrides",void 0);_.N([_.n(),_.Z("design:type",Object)],pZ.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],pZ.prototype,"modern",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.Z("design:type",Object)],pZ.prototype,"small",void 0);_.N([_.C({disableElementRegistration:!0,is:"yt-live-chat-button"})],pZ);
_.p(pZ,"yt-live-chat-button",function(){if(O7Z===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;j9o===void 0&&(j9o=document.createElement("template"));var G=j9o;B.call(S,G.content.cloneNode(!0),f.content.firstChild);O7Z=f}f=O7Z;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var xgO;var EIu;var Ad=function(){var f=_.I.apply(this,arguments)||this;f.inCollapsedBanner=!1;f.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};f.questionButtonOverrides={style:"mono",type:"filled"};return f};
_.q(Ad,_.I);_.e=Ad.prototype;_.e.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]]"}}}}}};
_.e.onContextMenuButtonClick=function(f){this.ytLiveChatItemBehavior.showContextMenu(f)};
_.e.onYtRendererstamperFinished=function(){this.menuButton=_.m9(this.hostElement).querySelector("#menu-button")};
_.e.dataChanged=function(){var f,S;if((S=_.H((f=this.data)==null?void 0:f.overflowMenuButton,_.IR))==null?0:S.command)this.data.contextMenuEndpoint=_.H(this.data.overflowMenuButton,_.IR).command};
_.e.onButtonClick=function(){var f,S=_.H((f=this.data)==null?void 0:f.askQuestionButton,_.IR);if(S){if(S.trackingParams&&(f=_.Ye(S.trackingParams))){var B=_.xc();B&&_.uW(B,f)}_.ew(this.hostElement,"innertube-command",S.command)}};
Ad.prototype.onYtRendererstamperFinished=Ad.prototype.onYtRendererstamperFinished;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Ad.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.p5),_.Z("design:type",Object)],Ad.prototype,"ytLiveChatReduxBehavior",void 0);_.N([_.r(_.U0.YtLiveChatItemBehavior),_.Z("design:type",_.CV)],Ad.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.n({observer:"dataChanged"}),_.Z("design:type",Object)],Ad.prototype,"data",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Ad.prototype,"inCollapsedBanner",void 0);_.N([_.n(),_.Z("design:type",Object)],Ad.prototype,"buttonOverrides",void 0);_.N([_.n(),_.Z("design:type",Object)],Ad.prototype,"questionButtonOverrides",void 0);_.N([_.Vg("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ad.prototype,"onYtRendererstamperFinished",null);
_.N([_.C({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],Ad);
_.p(Ad,"yt-live-chat-call-for-questions-renderer",function(){if(EIu===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;xgO===void 0&&(xgO=document.createElement("template"));var G=xgO;B.call(S,G.content.cloneNode(!0),f.content.firstChild);EIu=f}f=EIu;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var LPO={};LPO.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 f=this;window.requestAnimationFrame(function(){f.restoreFocusNode_||(f.restoreFocusNode_=document.activeElement);var S=_.n8X(f.hostElement);S.length&&S[S.length-1].focus()})},
isAttachedChanged_:function(f,S){f?this.focusChild_():S&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(f){this.hidden||_.ct(f).indexOf(this.hostElement)!==-1||(f.stopPropagation(),this.focusChild_())}};var kmM;var nI2;var NY=function(){return _.I.apply(this,arguments)||this};
_.q(NY,_.I);NY.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
NY.prototype.onClick=function(f){f.target!==this.confirmButton&&f.target!==this.cancelButton&&(this.hidden=!0)};
_.N([_.vF("#confirm_button"),_.Z("design:type",Object)],NY.prototype,"confirmButton",void 0);_.N([_.vF("#cancel_button"),_.Z("design:type",Object)],NY.prototype,"cancelButton",void 0);_.N([_.n(),_.Z("design:type",s9o)],NY.prototype,"data",void 0);_.N([_.n({value:!0,reflectToAttribute:!0}),_.Z("design:type",Boolean)],NY.prototype,"hidden",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],NY.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.r(LPO.YtLiveChatDialogBehavior),_.Z("design:type",Object)],NY.prototype,"ytLiveChatDialogBehavior",void 0);_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],NY);
var s9o=_.p(NY,"yt-live-chat-dialog-renderer",function(){if(nI2===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;kmM===void 0&&(kmM=document.createElement("template"));var G=kmM;B.call(S,G.content.cloneNode(!0),f.content.firstChild);nI2=f}f=nI2;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var Dgo;var Ise,Ug$=function(){if(Ise!==void 0)return Ise;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;Dgo===void 0&&(Dgo=document.createElement("template"));var G=Dgo;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return Ise=f};var CIO;var pPM;var MY=function(){var f=_.I.apply(this,arguments)||this;f.tooltip=null;f.data=null;f.id="";f.active=!1;f.icon="";f.disabled=!1;f.showTooltip=!1;f.useToggledActiveState=!0;f.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return f};
_.q(MY,_.I);_.e=MY.prototype;
_.e.dataChanged=function(){var f;((f=this.data)==null?0:f.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,_.wv)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var S;if((S=this.data)==null?0:S.disabled)this.disabled=!0};
_.e.computeId=function(f){return f};
_.e.computeIcon=function(f,S){if(!f)return"";if(this.useToggledActiveState)return"yt-icons:"+f.toLowerCase();var B,G;return S&&((B=this.data)==null?0:(G=B.toggledIcon)==null?0:G.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+f.toLowerCase()};
_.e.logPDGEntryPoint=function(){_.NQs(_.hK("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")};
_.e.immediatelyShowTooltip=function(){var f=_.m9(this.hostElement).querySelector("#tooltip");f.animationDelay=0;f.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};f.show()};
_.e.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.e.onClick=function(f){var S;((S=this.data)==null?0:S.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(),f.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.ew(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.e.computeShowTooltip=function(f,S){return!!(f&&f.tooltip&&S)};
_.e.maybeUpdateTooltipText=function(){var f=this,S;if((S=this.data)==null?0:S.tooltip){var B=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.wv)(f.tooltip).textContent=B},250)}};
_.e.handleLiveChatActions=function(f){var S=this;f.length&&(this.id!=="creator"&&this.id!=="product-picker"||f.forEach(function(B){(B=S.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",B))&&B.durationSec===B.fullDurationSec&&S.startBubble(S.colorFromDecimal(B.startBackgroundColor))}))};
_.e.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.e.startBubble=function(f){_.hO(this.hostElement,{"--yt-live-chat-monetization-button-glow":f});this.hostElement.setAttribute("bubble","")};
_.e.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.e.colorFromDecimal=function(f){typeof f==="string"&&(f=Number(f));return"rgba("+[f>>16&255,f>>8&255,f&255,(f>>24&255)/255].join()+")"};
MY.prototype.onAnimationEnd=MY.prototype.onAnimationEnd;MY.prototype.disabledChanged=MY.prototype.disabledChanged;MY.prototype.dataChanged=MY.prototype.dataChanged;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],MY.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],MY.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.Ai.YtLiveChatTooltipTargetingBehavior),_.Z("design:type",Object)],MY.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],MY.prototype,"data",void 0);_.N([_.n({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Z("design:type",Object)],MY.prototype,"id",void 0);_.N([_.n({notify:!0,reflectToAttribute:!0}),_.Z("design:type",Object)],MY.prototype,"active",void 0);
_.N([_.n({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.Z("design:type",Object)],MY.prototype,"icon",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],MY.prototype,"disabled",void 0);_.N([_.n({computed:"computeShowTooltip(data, disabled)"}),_.Z("design:type",Object)],MY.prototype,"showTooltip",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],MY.prototype,"useToggledActiveState",void 0);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],MY.prototype,"dataChanged",null);_.N([_.JO("disabled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],MY.prototype,"disabledChanged",null);_.N([_.Vg("animationend"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],MY.prototype,"onAnimationEnd",null);
_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],MY);
_.p(MY,"yt-live-chat-icon-toggle-button-renderer",function(){if(pPM===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;CIO===void 0&&(CIO=document.createElement("template"));var G=CIO;B.call(S,G.content.cloneNode(!0),f.content.firstChild);pPM=f}f=pPM;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var Abu;var Nsn;var ZA=function(){return _.I.apply(this,arguments)||this};
_.q(ZA,_.I);ZA.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.N([_.n(),_.Z("design:type",Object)],ZA.prototype,"data",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],ZA.prototype,"ytRendererstamperBehavior",void 0);_.N([_.C({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],ZA);
_.p(ZA,"yt-live-chat-message-input-prompt-header-renderer",function(){if(Nsn===void 0){var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;Abu===void 0&&(Abu=document.createElement("template"));var G=Abu;B.call(S,G.content.cloneNode(!0),f.content.firstChild);Nsn=f}f=Nsn;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var MMe;var Z72;var tMu;var uku;var asO;var ybu;var WPo=function(){return _.I.apply(this,arguments)||this};
_.q(WPo,_.I);_.N([_.n(),_.Z("design:type",Object)],WPo.prototype,"data",void 0);_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],WPo);
_.p(WPo,"yt-live-chat-message-subtext-renderer",function(){if(ybu===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;asO===void 0&&(asO=document.createElement("template"));var G=asO;B.call(S,G.content.cloneNode(!0),f.content.firstChild);ybu=f}f=ybu;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var td=function(){var f=_.I.apply(this,arguments)||this;f.subtextOnBottom=!1;f.buttonOverrides={style:"mono",type:"tonal"};return f};
_.q(td,_.I);td.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"}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],td.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],td.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],td.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],td.prototype,"subtextOnBottom",void 0);_.N([_.n(),_.Z("design:type",Object)],td.prototype,"buttonOverrides",void 0);
_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],td);
_.p(td,"yt-live-chat-message-renderer",function(){if(uku===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;tMu===void 0&&(tMu=document.createElement("template"));var G=tMu;B.call(S,G.content.cloneNode(!0),f.content.firstChild);uku=f}f=uku;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var cbO;var lsY;var u2=function(){var f=_.I.apply(this,arguments)||this;f.isRemovable=!1;f.hasPrefilledText=!1;f.isInputDirty=!1;f.overCharacterLimit=!1;f.underCharacterLimit=!1;f.showErrorMessage=!1;return f};
_.q(u2,_.I);_.e=u2.prototype;_.e.computeId=function(){return this.data.id};
_.e.computeInputData=function(){return this.data.inputData};
_.e.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.e.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.e.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.e.getLiveChatRichMessageInput=function(){return _.m9(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.e.clearInput=function(){_.m9(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.e.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.e.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.e.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.e.handleTextInputCharCountChanged=function(f){f=f.detail&&f.detail.characterCount;f!==void 0&&(this.characterCount=f,f!==0&&(this.isInputDirty=!0))};
_.e.onInputFocusOut=function(){this.isInputDirty=!0};
_.e.onClickCloseButton=function(){_.ew(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
u2.prototype.handleTextInputCharCountChanged=u2.prototype.handleTextInputCharCountChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],u2.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],u2.prototype,"data",void 0);_.N([_.n({computed:"computeId(data.id)"}),_.Z("design:type",String)],u2.prototype,"id",void 0);_.N([_.n({computed:"computeInputData(data.inputData)"}),_.Z("design:type",Object)],u2.prototype,"inputData",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.Z("design:type",Object)],u2.prototype,"isRemovable",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.Z("design:type",Object)],u2.prototype,"hasPrefilledText",void 0);_.N([_.n({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.Z("design:type",Number)],u2.prototype,"charactersRemaining",void 0);
_.N([_.n(),_.Z("design:type",Number)],u2.prototype,"characterCount",void 0);_.N([_.n(),_.Z("design:type",Object)],u2.prototype,"isInputDirty",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.Z("design:type",Object)],u2.prototype,"overCharacterLimit",void 0);_.N([_.n({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.Z("design:type",Object)],u2.prototype,"underCharacterLimit",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.Z("design:type",Object)],u2.prototype,"showErrorMessage",void 0);_.N([_.Vg("yt-live-chat-text-input-field-renderer-character-count-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],u2.prototype,"handleTextInputCharCountChanged",null);
_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],u2);
_.p(u2,"yt-live-chat-poll-editor-input",function(){if(lsY===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;cbO===void 0&&(cbO=document.createElement("template"));var G=cbO;B.call(S,G.content.cloneNode(!0),f.content.firstChild);lsY=f}f=lsY;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var fqu;var oBe;var S9n={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},aW=function(){var f=_.I.apply(this,arguments)||this;f.modern=_.K("web_button_rework_with_live");f.closeButtonOverrides={iconPosition:"icon-only"};f.startButtonOverrides={style:"mono",type:"filled"};f.addOptionButtonOverrides={style:"mono",type:"text"};return f};
_.q(aW,_.I);_.e=aW.prototype;
_.e.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"}}}}};
_.e.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var f;_.H((f=this.data)==null?void 0:f.startButton,_.IR)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.e.computeId=function(){return this.data&&this.data.id||""};
_.e.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.e.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.e.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.e.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.e.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var f=0;f<this.pollEditorInfoWithDefaults.minPollOptions;f++)this.addPollOptionData()};
_.e.getIsValidPoll=function(){var f=this;if(!this.pollEditorInfoWithDefaults)return!1;var S=this.pollEditorInfoWithDefaults,B=S.minPollOptionChars,G=S.maxPollOptionChars,g=S.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>S.maxPollQuestionChars)return!1;S=_.m9(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(S).every(function(b,z){b=b.characterCount;!b&&g[z]&&(b=f.ytRendererBehavior.getSimpleString(g[z]).length);return b!==void 0&&b>=B&&b<=G})};
_.e.isValidPollChanged=function(){var f;_.H((f=this.data)==null?void 0:f.startButton,_.IR)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.e.addPollOptionData=function(){var f=this.pollEditorInfoWithDefaults,S=f.maxPollOptionChars,B=f.optionPlaceholderText,G=f.customOptionPlaceholderText,g=f.pollOptionData;this.currentNumPollOptions>=f.maxPollOptions||(f={liveChatPollOptionInput:{inputData:{placeholder:G[this.currentNumPollOptions]||B,maxCharacterLimit:S},maxCharacterLimit:S,minCharacterLimit:f.minPollOptionChars,hasPrefilledText:!!G[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=f.minPollOptions}},g.charCountErrorText&&
(f.liveChatPollOptionInput.charCountErrorText=g.charCountErrorText),g.charsRemainingAltLabel&&(f.liveChatPollOptionInput.charsRemainingAltLabel=g.charsRemainingAltLabel),g.removeOptionAltText&&(f.liveChatPollOptionInput.removeOptionAltText=g.removeOptionAltText),this.push("pollOptionsData",f),g=Array.from(_.m9(_.m9(this.hostElement).querySelector("#poll-options")).children),g.forEach(function(b,z){b.polymerController.set("data.id",z)}),_.m9(g[g.length-1]).querySelector("#input").focus())};
_.e.getPollOptionInputValues=function(){var f=this,S=[],B=_.m9(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),G=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(B).forEach(function(g,b){var z=null;g=g.getLiveChatRichMessageInput();var X;(g==null?0:(X=g.textSegments)==null?0:X.length)?z=_.A3(g):G[b]&&(z=f.formattedStringToLiveChatRichMessageInput(G[b]));S.push(z)});
return S};
_.e.requestCreateAndStartPoll=function(f){var S=this.getPollOptionInputValues();if(!S.some(function(G){return!G})){S={optionText:S};
var B=_.m9(_.m9(this.hostElement).querySelector("#poll-question")).firstChild;B&&B.liveChatRichMessageInput&&(S.questionText=_.A3(B.liveChatRichMessageInput));_.RD(this.hostElement,[f,S])}};
_.e.selectedChanged=function(){if(this.selected){var f=_.m9(_.m9(this.hostElement).querySelector("#start-button")).firstElementChild;if(f){var S;(S=_.m9(f).querySelector("#button")||_.zY(f).querySelector("button"))==null||S.focus()}}};
_.e.handleTextInputChanged=function(f){var S;((S=f.target)==null?void 0:S.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=f.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.e.handleStartButtonAction=function(f){f.detail.actionName==="yt-service-request"&&(f.stopPropagation(),(f=f.detail.args[1])&&this.requestCreateAndStartPoll(f))};
_.e.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.e.handleServiceRequestCompleted=function(f){this.createPollRequestInFlight=!1;(f=f.detail&&f.detail.data)&&f.success&&(_.ew(this.hostElement,"picker-cancelled"),_.bW(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.e.onCloseClick=function(){_.ew(this.hostElement,"picker-cancelled");_.bW(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.e.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.e.handlePollEditorInputClosed=function(f){var S=this.pollOptionsData.findIndex(function(B){return B.liveChatPollOptionInput.id===f.detail.id});
this.splice("pollOptionsData",S,1);this.isValidPoll=this.getIsValidPoll()};
_.e.onPickerCancelled=function(){this.reset()};
_.e.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var f=_.m9(_.m9(this.hostElement).querySelector("#poll-question")).firstChild;f&&f.setLiveChatRichMessageInput(null);if(f=_.m9(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){f=_.m(Array.from(f));for(var S=f.next();!S.done;S=f.next())S.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.e.formattedStringToLiveChatRichMessageInput=function(f){return f.simpleText?{text_segments:[f.simpleText]}:{text_segments:f.runs}};
_.y3.Object.defineProperties(aW.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(S9n,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
aW.prototype.onPickerCancelled=aW.prototype.onPickerCancelled;aW.prototype.handlePollEditorInputClosed=aW.prototype.handlePollEditorInputClosed;aW.prototype.handleServiceRequestCompleted=aW.prototype.handleServiceRequestCompleted;aW.prototype.handleServiceRequestSent=aW.prototype.handleServiceRequestSent;aW.prototype.handleTextInputChanged=aW.prototype.handleTextInputChanged;aW.prototype.selectedChanged=aW.prototype.selectedChanged;aW.prototype.isValidPollChanged=aW.prototype.isValidPollChanged;
aW.prototype.shouldInitializePollChanged=aW.prototype.shouldInitializePollChanged;aW.prototype.dataChanged=aW.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],aW.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],aW.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],aW.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],aW.prototype,"modern",void 0);
_.N([_.n(),_.Z("design:type",Object)],aW.prototype,"closeButtonOverrides",void 0);_.N([_.n(),_.Z("design:type",Object)],aW.prototype,"startButtonOverrides",void 0);_.N([_.n(),_.Z("design:type",Object)],aW.prototype,"addOptionButtonOverrides",void 0);_.N([_.n({computed:"computeId(data.id)",reflectToAttribute:!0}),_.Z("design:type",String)],aW.prototype,"id",void 0);_.N([_.n({value:function(){return[]}}),
_.Z("design:type",Array)],aW.prototype,"pollOptionsData",void 0);_.N([_.k("pollEditorInfoWithDefaults"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],aW.prototype,"pollQuestionData",null);_.N([_.n({value:0}),_.Z("design:type",Number)],aW.prototype,"pollQuestionCharacterCount",void 0);_.N([_.k("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],aW.prototype,"pollQuestionCharactersRemaining",null);
_.N([_.n({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.Z("design:type",Boolean)],aW.prototype,"overQuestionCharacterLimit",void 0);_.N([_.k("data.pollEditorInfo"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],aW.prototype,"pollEditorInfoWithDefaults",null);_.N([_.n({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.Z("design:type",Number)],aW.prototype,"currentNumPollOptions",void 0);
_.N([_.n({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],aW.prototype,"hasMaxNumPollOptions",void 0);_.N([_.k("pollEditorInfoWithDefaults","pollOptionsData"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],aW.prototype,"shouldInitializePoll",null);_.N([_.n(),_.Z("design:type",Object)],aW.prototype,"isValidPoll",void 0);
_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],aW.prototype,"createPollRequestInFlight",void 0);_.N([_.n(),_.Z("design:type",Object)],aW.prototype,"selected",void 0);_.N([_.n({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.Z("design:type",Boolean)],aW.prototype,"showQuestionErrorMessage",void 0);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],aW.prototype,"dataChanged",null);_.N([_.JO("shouldInitializePoll"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],aW.prototype,"shouldInitializePollChanged",null);_.N([_.JO("isValidPoll"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],aW.prototype,"isValidPollChanged",null);
_.N([_.JO("selected"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],aW.prototype,"selectedChanged",null);_.N([_.Vg("yt-live-chat-text-input-field-renderer-character-count-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],aW.prototype,"handleTextInputChanged",null);
_.N([_.Vg("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],aW.prototype,"handleServiceRequestSent",null);_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],aW.prototype,"handleServiceRequestCompleted",null);
_.N([_.Vg("yt-live-chat-poll-editor-input-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],aW.prototype,"handlePollEditorInputClosed",null);_.N([_.Vg("picker-cancelled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],aW.prototype,"onPickerCancelled",null);_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],aW);
_.p(aW,"yt-live-chat-poll-editor-panel-renderer",function(){if(oBe===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;fqu===void 0&&(fqu=document.createElement("template"));var G=fqu;B.call(S,G.content.cloneNode(!0),f.content.firstChild);oBe=f}f=oBe;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var Bku;var G_e;var yx=function(){return _.I.apply(this,arguments)||this};
_.q(yx,_.I);yx.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
yx.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.y3.Object.defineProperties(yx.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var f,S;return(f=this.data)==null?void 0:(S=f.title)==null?void 0:S.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var f;return _.CH((f=this.data)==null?void 0:f.onTapCommand)}}});
_.N([_.r(_.Pl.YtEndpointBehavior),_.Z("design:type",Object)],yx.prototype,"ytEndpointBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],yx.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],yx.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],yx.prototype,"itemId",null);
_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],yx.prototype,"hasPromotion",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],yx.prototype,"innertubeCommand",null);_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],yx);
_.p(yx,"yt-live-chat-product-picker-panel-item-view-model",function(){if(G_e===void 0){var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;Bku===void 0&&(Bku=document.createElement("template"));var G=Bku;B.call(S,G.content.cloneNode(!0),f.content.firstChild);G_e=f}f=G_e;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var gBe;var eqZ;var Wh=function(){var f=_.I.apply(this,arguments)||this;f.id="product-picker";f.selected=!1;f.closeButtonId="close-button";f.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return f};
_.q(Wh,_.I);_.e=Wh.prototype;_.e.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.e.observeSelected=function(){this.selected&&this.hostElement.focus();var f=_.m9(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");f.length&&f[0].focus()};
_.e.onCloseBuyFlow=function(){_.ew(this.hostElement,"picker-cancelled")};
_.e.onCloseClick=function(){_.ew(this.hostElement,"picker-cancelled");var f;((f=this.data)==null?0:f.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.H(this.data.closeButton,_.Q5))};
_.e.onCloseEngageWithAudienceEditorPanels=function(){_.ew(this.hostElement,"picker-cancelled")};
Wh.prototype.observeSelected=Wh.prototype.observeSelected;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],Wh.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Wh.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Wh.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Wh.prototype,"data",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Wh.prototype,"id",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Wh.prototype,"selected",void 0);_.N([_.n(),_.Z("design:type",Object)],Wh.prototype,"closeButtonId",void 0);_.N([_.JO("selected"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Wh.prototype,"observeSelected",null);
_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],Wh);
_.p(Wh,"yt-live-chat-product-picker-panel-view-model",function(){if(eqZ===void 0){var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;gBe===void 0&&(gBe=document.createElement("template"));var G=gBe;B.call(S,G.content.cloneNode(!0),f.content.firstChild);eqZ=f}f=eqZ;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var b1n;var mKB;var ch=function(){var f=_.I.apply(this,arguments)||this;f.iconId="";f.icon="";f.disabled=!1;f.systemIcons=_.K("kevlar_system_icons");return f};
_.q(ch,_.I);_.e=ch.prototype;_.e.attached=function(){_.K("live_chat_compute_product_button_aria_label")||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1"))};
_.e.computeIconId=function(f){return f&&f.icon&&f.icon.iconType?f.icon.iconType.toLowerCase():""};
_.e.computeIcon=function(f){return f&&f.icon&&f.icon.iconType?(f=f.icon.iconType.toLowerCase(),(f.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+f):""};
_.e.computeDisabled=function(f){return!!f};
_.e.computeCommand=function(f,S){return S?void 0:f};
_.e.computeTooltip=function(f,S){return S&&f?f:""};
_.e.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.y3.Object.defineProperties(ch.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){if(!_.K("live_chat_compute_product_button_aria_label"))return"";var f="",S,B,G;if((S=this.data)==null?0:(B=S.text)==null?0:(G=B.runs)==null?0:G.length)f=this.data.text.runs[0].text||"";else{var g,b;if((g=this.data)==null?0:(b=g.text)==null?0:b.simpleText)f=this.data.text.simpleText}var z,X,w;if((z=this.data)==null?0:(X=z.subtext)==null?0:(w=X.runs)==null?0:w.length)f&&(f+=". "),f+=this.data.subtext.runs[0].text||
"";else{var F,V;if((F=this.data)==null?0:(V=F.subtext)==null?0:V.simpleText)f&&(f+=". "),f+=this.data.subtext.simpleText}return f}}});
_.N([_.r(_.Pl.YtEndpointBehavior),_.Z("design:type",Object)],ch.prototype,"ytEndpointBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],ch.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],ch.prototype,"data",void 0);_.N([_.n({computed:"computeIconId(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],ch.prototype,"iconId",void 0);
_.N([_.n({computed:"computeIcon(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],ch.prototype,"icon",void 0);_.N([_.n({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.Z("design:type",Object)],ch.prototype,"disabled",void 0);_.N([_.n({computed:"computeCommand(data.command, disabled)"}),_.Z("design:type",Object)],ch.prototype,"command",void 0);_.N([_.n({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.Z("design:type",String)],ch.prototype,"tooltip",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],ch.prototype,"systemIcons",void 0);_.N([_.k("data.text","data.subtext"),_.n(),_.Z("design:type",String),_.Z("design:paramtypes",[])],ch.prototype,"ariaLabel",null);_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],ch);
_.p(ch,"yt-live-chat-product-button-renderer",function(){if(mKB===void 0){var f=document.createElement("template");_.Y(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_button_renderer.yt.live.chat.product.button.renderer.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-button-renderer" data="[[command]]" title$="[[tooltip]]">\n  <tp-yt-paper-item id="container" aria-label$="[[ariaLabel]]" disabled$="[[disabled]]" role="menuitem" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;b1n===void 0&&(b1n=document.createElement("template"));var G=b1n;B.call(S,G.content.cloneNode(!0),f.content.firstChild);mKB=f}f=mKB;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var zqu;var Rq$;var l2=function(){var f=_.I.apply(this,arguments)||this;f.selected=!1;f.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels","yt-signal-action-close-engage-with-audience-editor-panel":"onCloseEngageWithAudienceEditorPanels"};return f};
_.q(l2,_.I);_.e=l2.prototype;_.e.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"}}}};
_.e.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.e.computeId=function(f){return f.id||""};
_.e.onCloseClick=function(){_.ew(this.hostElement,"picker-cancelled")};
_.e.observeSelected=function(){this.selected&&this.hostElement.focus();var f=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");f.length&&f[0].focus()};
_.e.onCloseBuyFlow=function(){_.ew(this.hostElement,"picker-cancelled")};
_.e.onCloseEngageWithAudienceEditorPanels=function(){_.ew(this.hostElement,"picker-cancelled")};
l2.prototype.observeSelected=l2.prototype.observeSelected;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],l2.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],l2.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],l2.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],l2.prototype,"data",void 0);
_.N([_.n({computed:"computeId(data)",reflectToAttribute:!0}),_.Z("design:type",String)],l2.prototype,"id",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],l2.prototype,"selected",void 0);_.N([_.JO("selected"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],l2.prototype,"observeSelected",null);_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],l2);
_.p(l2,"yt-live-chat-product-picker-renderer",function(){if(Rq$===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;zqu===void 0&&(zqu=document.createElement("template"));var G=zqu;B.call(S,G.content.cloneNode(!0),f.content.firstChild);Rq$=f}f=Rq$;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var XiX;var wi$;var hqu;var Tku;var fB=function(){return _.I.apply(this,arguments)||this};
_.q(fB,_.I);fB.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()};
fB.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
fB.prototype.created=function(){this.ids={background:_.O1(),maskOne:_.O1(),maskTwo:_.O1(),gradient:_.O1(),largeBackground:_.O1(),largeGradientOne:_.O1(),largeGradientTwo:_.O1(),largeGradientPath:_.O1()}};
fB.prototype.maybeLoadAnimationBackground=fB.prototype.maybeLoadAnimationBackground;_.N([_.n({value:!1}),_.Z("design:type",Boolean)],fB.prototype,"useLargeBackground",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],fB.prototype,"useAnimationBackground",void 0);_.N([_.n({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.Z("design:type",Boolean)],fB.prototype,"useRegularBackground",void 0);
_.N([_.n(),_.Z("design:type",Object)],fB.prototype,"ids",void 0);_.N([_.n(),_.Z("design:type",Object)],fB.prototype,"lottieAnimation",void 0);_.N([_.vF("#animation-background"),_.Z("design:type",HTMLDivElement)],fB.prototype,"animationBackground",void 0);_.N([_.JO("useAnimationBackground"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],fB.prototype,"maybeLoadAnimationBackground",null);
_.N([_.nP({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],fB);
_.p(fB,"yt-live-interactivity-component-background",function(){if(Tku===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;hqu===void 0&&(hqu=document.createElement("template"));var G=hqu;B.call(S,G.content.cloneNode(!0),f.content.firstChild);Tku=f}f=Tku;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var op=function(){var f=_.I.apply(this,arguments)||this;f.characterCount=0;f.showInputErrorMessage=!1;f.startQnaRequestInFlight=!1;f.modern=_.K("web_button_rework_with_live");f.buttonOverrides={style:"mono",type:"filled"};f.closeButtonOverrides={iconPosition:"icon-only"};f.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return f};
_.q(op,_.I);_.e=op.prototype;
_.e.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]]"}}}}}};
_.e.onCharacterCountChanged=function(f){var S,B,G,g,b=(B=_.H(this==null?void 0:(S=this.data)==null?void 0:S.creatorCallForQuestions,Zae))==null?void 0:(G=B.inputField)==null?void 0:(g=G.liveChatTextInputFieldRenderer)==null?void 0:g.maxCharacterLimit,z,X;b!=null&&(f==null?void 0:(z=f.detail)==null?void 0:z.characterCount)!=null&&_.H(this==null?void 0:(X=this.data)==null?void 0:X.startButton,_.IR)&&(S=f.detail.characterCount>b,this.set("data.startButton.buttonRenderer.isDisabled",f.detail.characterCount===
0||S),this.showInputErrorMessage=S)};
_.e.onCloseClick=function(){_.ew(this.hostElement,"picker-cancelled");_.bW(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.e.onPickerCancelled=function(){var f=_.m9(this.hostElement).querySelector("#qna-creator-text-input-field");f&&f.setLiveChatRichMessageInput(null)};
_.e.handleOpenQnaStartPanel=function(){var f=_.m9(this.hostElement).querySelector("#qna-creator-text-input-field");f&&f.focus()};
_.e.handleStartButtonAction=function(f){var S=this;if(f.detail.actionName==="yt-service-request"&&(f.stopPropagation(),f=f.detail.args[1])){var B=_.m9(this.hostElement).querySelector("#qna-creator-text-input-field"),G;(B==null?0:(G=B.liveChatRichMessageInput)==null?0:G.textSegments)&&B.liveChatRichMessageInput.textSegments.length!==0&&(G={rich_message:_.A3(B.liveChatRichMessageInput)},_.RD(this.hostElement,[f,G]).then(function(){_.ew(S.hostElement,"picker-cancelled")}))}};
_.e.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.e.handleServiceRequestCompleted=function(f){var S;f=f==null?void 0:(S=f.detail)==null?void 0:S.data;(f==null?0:f.actions)&&f.actions.length>0?this.startQnaRequestInFlight=!1:_.bW(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.e.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
op.prototype.handleServiceRequestError=op.prototype.handleServiceRequestError;op.prototype.handleServiceRequestCompleted=op.prototype.handleServiceRequestCompleted;op.prototype.handleServiceRequestSent=op.prototype.handleServiceRequestSent;op.prototype.onPickerCancelled=op.prototype.onPickerCancelled;op.prototype.onCharacterCountChanged=op.prototype.onCharacterCountChanged;_.N([_.n(),_.Z("design:type",Object)],op.prototype,"characterCount",void 0);
_.N([_.n(),_.Z("design:type",Object)],op.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],op.prototype,"showInputErrorMessage",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],op.prototype,"startQnaRequestInFlight",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],op.prototype,"modern",void 0);_.N([_.n(),_.Z("design:type",Object)],op.prototype,"buttonOverrides",void 0);
_.N([_.n(),_.Z("design:type",Object)],op.prototype,"closeButtonOverrides",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],op.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.p5),_.Z("design:type",Object)],op.prototype,"ytLiveChatReduxBehavior",void 0);_.N([_.r(_.U0.YtLiveChatItemBehavior),_.Z("design:type",_.CV)],op.prototype,"ytLiveChatItemBehavior",void 0);
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],op.prototype,"ytActionHandlerBehavior",void 0);_.N([_.Vg("yt-live-chat-text-input-field-renderer-character-count-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],op.prototype,"onCharacterCountChanged",null);_.N([_.Vg("picker-cancelled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],op.prototype,"onPickerCancelled",null);
_.N([_.Vg("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],op.prototype,"handleServiceRequestSent",null);_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],op.prototype,"handleServiceRequestCompleted",null);
_.N([_.Vg("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],op.prototype,"handleServiceRequestError",null);_.N([_.C({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],op);
_.p(op,"yt-live-chat-qna-start-panel-renderer",function(){if(wi$===void 0){var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;XiX===void 0&&(XiX=document.createElement("template"));var G=XiX;B.call(S,G.content.cloneNode(!0),f.content.firstChild);wi$=f}f=wi$;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var F1u;var VUu;var Sg=function(){return _.I.apply(this,arguments)||this};
_.q(Sg,_.I);Sg.prototype.dismiss=function(){_.ew(this.hostElement,"yt-live-chat-error-message-dismiss")};
Sg.prototype.edit=function(){_.ew(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.N([_.n(),_.Z("design:type",Object)],Sg.prototype,"data",void 0);_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],Sg);
_.p(Sg,"yt-live-chat-text-actions-error-message-renderer",function(){if(VUu===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;F1u===void 0&&(F1u=document.createElement("template"));var G=F1u;B.call(S,G.content.cloneNode(!0),f.content.firstChild);VUu=f}f=VUu;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var Jcn;var Pqu;var vB$;var K12;var BA=function(){var f=_.I.apply(this,arguments)||this;f.isDarkTheme=document.documentElement.hasAttribute("dark");f.newnessDotEligible=!1;return f};
_.q(BA,_.I);BA.prototype.sendReaction=function(){var f,S,B=((f=this.data)==null?void 0:f.emojiId)||((S=this.data)==null?void 0:S.emoteId),G;B&&((G=this.data)==null?0:G.shouldTriggerAnimation)&&_.bW(this.hostElement,"yt-create-user-reaction-animation",[B]);var g;(f=_.CH((g=this.data)==null?void 0:g.onTap))&&_.Ps(f,this.hostElement);this.showNewnessDot&&_.bW(this.hostElement,"yt-hide-newness-dot")};
BA.prototype.onClick=function(f){(!f||f.clientX||f.clientY)&&this.sendReaction()};
BA.prototype.onKeyDown=function(f){f.key!=="Enter"&&f.key!==" "||f.repeat||this.sendReaction()};
_.y3.Object.defineProperties(BA.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var f,S;return!!(((f=this.data)==null?0:f.emojiId)||((S=this.data)==null?0:S.emoteId))}}});
_.N([_.n(),_.Z("design:type",Object)],BA.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],BA.prototype,"isDarkTheme",void 0);_.N([_.n(),_.Z("design:type",Object)],BA.prototype,"newnessDotEligible",void 0);_.N([_.k("data.maybeShowNewnessDot"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],BA.prototype,"showNewnessDot",null);_.N([_.k("data.emojiId","data.emoteId"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],BA.prototype,"useYtImage",null);
_.N([_.nP({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],BA);
_.p(BA,"yt-reaction-control-panel-button-view-model",function(){if(K12===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;vB$===void 0&&(vB$=document.createElement("template"));var G=vB$;B.call(S,G.content.cloneNode(!0),f.content.firstChild);K12=f}f=K12;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var dKn;var i1X;var GK=function(){var f=_.I.apply(this,arguments)||this;f.reactionControlPanelExpanded=!1;f.isDarkTheme=document.documentElement.hasAttribute("dark");f.newnessDotEligible=!1;return f};
_.q(GK,_.I);_.e=GK.prototype;_.e.expandedButtonsChanged=function(){var f,S;_.hO(this.hostElement,{"--expanded-buttons-height":((S=(f=this.expandedButtonsData)==null?void 0:f.length)!=null?S:0)*36+"px"})};
_.e.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}}};
_.e.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.e.onMouseLeave=function(){var f=this;this.collapseTimer=setTimeout(function(){f.reactionControlPanelExpanded=!1},500)};
_.e.onFocusIn=function(){this.onMouseEnter()};
_.e.onFocusOut=function(){this.onMouseLeave()};
_.e.onCollapsedButtonFocusIn=function(){var f=this;setTimeout(function(){var S;(S=f.expandedButtons.querySelector("button"))==null||S.focus()},100)};
_.e.onCollapsedButtonFocusOut=function(f){f.stopPropagation()};
_.y3.Object.defineProperties(GK.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var f,S;return _.$v.unsafeClone((f=this.liveReactionsData)==null?void 0:f.emojiButtonData)||((S=this.data)==null?void 0:S.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var f;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((f=this.data)==null||!f.maybeShowNewnessDot)}}});
GK.prototype.expandedButtonsChanged=GK.prototype.expandedButtonsChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],GK.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],GK.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.p5),_.Z("design:type",Object)],GK.prototype,"ytLiveChatReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],GK.prototype,"data",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],GK.prototype,"reactionControlPanelExpanded",void 0);_.N([_.n({selectorArgs:["data.liveReactionsDataEntityKey"],selector:YPB}),_.Z("design:type",Object)],GK.prototype,"liveReactionsData",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],GK.prototype,"isDarkTheme",void 0);_.N([_.n(),_.Z("design:type",Object)],GK.prototype,"newnessDotEligible",void 0);
_.N([_.k("liveReactionsData","data.expandedButtons"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],GK.prototype,"expandedButtonsData",null);_.N([_.k("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.n({reflectToAttribute:!0}),_.Z("design:type",Object),_.Z("design:paramtypes",[])],GK.prototype,"showNewnessDot",null);_.N([_.vF("#expanded-buttons"),_.Z("design:type",HTMLElement)],GK.prototype,"expandedButtons",void 0);
_.N([_.JO("expandedButtonsData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],GK.prototype,"expandedButtonsChanged",null);_.N([_.nP({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],GK);
_.p(GK,"yt-reaction-control-panel-view-model",function(){if(i1X===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;dKn===void 0&&(dKn=document.createElement("template"));var G=dKn;B.call(S,G.content.cloneNode(!0),f.content.firstChild);i1X=f}f=i1X;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var g2=new _.s4("yt-live-chat"),H1o=Date.parse("2024-7-24"),eg=function(){var f=_.I.apply(this,arguments)||this;f.emojiManager=_.I5;f.newnessDotEligible=!1;f.newnessDotImpressionCounted=!1;f.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return f};
_.q(eg,_.I);_.e=eg.prototype;_.e.emojiCustomizationEnabledChanged=function(){var f;((f=this.data)==null?0:f.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((f=g2.getCreationTime("emoji-customization-count"))&&f<H1o&&g2.set("emoji-customization-count","0"),f=Number(g2.get("emoji-customization-count"))||0,f<3&&(this.newnessDotEligible=!0,g2.set("emoji-customization-count",(f+1).toString())),this.newnessDotImpressionCounted=!0)};
_.e.hideNewnessDot=function(){this.newnessDotEligible=!1;g2.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.e.handleReactionsMute=function(f){var S=_.xc(),B=_.Eo(206221),G={checkboxData:{state:f?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};S&&_.uW(S,B,G);this.reactionsMuted=f};
_.e.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.e.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}}};
_.y3.Object.defineProperties(eg.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var f;return(!((f=this.liveReactionsData)==null||!f.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
eg.prototype.liveReactionsSettingChanged=eg.prototype.liveReactionsSettingChanged;eg.prototype.emojiCustomizationEnabledChanged=eg.prototype.emojiCustomizationEnabledChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],eg.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],eg.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.p5),_.Z("design:type",Object)],eg.prototype,"ytLiveChatReduxBehavior",void 0);
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],eg.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],eg.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",_.nV)],eg.prototype,"emojiManager",void 0);_.N([_.n(),_.Z("design:type",Object)],eg.prototype,"newnessDotEligible",void 0);_.N([_.n(),_.Z("design:type",Object)],eg.prototype,"newnessDotImpressionCounted",void 0);
_.N([_.n({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:rCu}),_.Z("design:type",Boolean)],eg.prototype,"liveReactionsSetting",void 0);_.N([_.n({selectorArgs:["data.liveReactionsDataEntityKey"],selector:YPB}),_.Z("design:type",Object)],eg.prototype,"liveReactionsData",void 0);_.N([_.n({value:function(){var f=_.K("enable_lwe_web_mute"),S=g2.get("allow-reactions");return S===void 0?!1:!S&&f}}),
_.Z("design:type",Boolean)],eg.prototype,"reactionsMuted",void 0);_.N([_.n({reflectToAttribute:!0}),_.k("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],eg.prototype,"liveReactionsEnabled",null);_.N([_.JO("data.emojiCustomizationEnabled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],eg.prototype,"emojiCustomizationEnabledChanged",null);
_.N([_.JO("liveReactionsEnabled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],eg.prototype,"liveReactionsSettingChanged",null);_.N([_.nP({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],eg);
_.p(eg,"yt-reaction-control-panel-overlay-view-model",function(){if(Pqu===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;Jcn===void 0&&(Jcn=document.createElement("template"));var G=Jcn;B.call(S,G.content.cloneNode(!0),f.content.firstChild);Pqu=f}f=Pqu;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var q9Z={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(f){var S=this.$.pickers.selected;if(S){_.m9(this.hostElement).removeAttribute(S+"-open");var B="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(B="#picker-buttons",S==="emoji"&&_.m9(this.hostElement).querySelector("#emoji-picker-button")&&(B="#emoji-picker-button"));if(B=_.m9(this.hostElement).querySelector(B).querySelector("#"+S))B.active=!1}B=f;S==f&&(B=null);S!=
f&&_.m9(this.hostElement).setAttribute(f+"-open","");this.$.pickers.selected=B;_.bW(this.hostElement,"yt-live-chat-picker-changed",[B])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var b9=function(){var f=_.I.apply(this,arguments)||this;f.numSentMessages=0;f.timeoutDurationMs=0;f.timeoutMs=0;f.lastTimeoutTimeMs=0;f.pendingMessageId="";f.hasFiredInitialFocusActions=!1;f.isBeforeFocusEnabled=!0;f.id="";f.characterCount=0;f.maxCharacterLimit=0;f.remainingCharacterCount=0;f.inputExpanded=!1;f.buttonOverrides={iconPosition:"icon-only"};f.inReplyPanel=!1;f.countdownRatio=0;f.isTooltipVisible=!1;f.tooltipTimeout=1E4;f.systemIcons=_.K("kevlar_system_icons");f.tallerEmojiPicker=_.K("live_chat_taller_emoji_picker");
f.sendReplyMessageInFlight=!1;f.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"};f.onResize=function(){f.maybeToggleCharacterCount()};
return f};
_.q(b9,_.I);_.e=b9.prototype;
_.e.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"}}}};
_.e.attached=function(){window.addEventListener("resize",this.onResize)};
_.e.detached=function(){window.removeEventListener("resize",this.onResize)};
_.e.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.e.sendMessage=function(){var f=this,S,B,G,g;return _.R(function(b){if(f.sendDisabled)return b.return();f.isTooltipVisible&&_.bW(f.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(f.data.sendButton&&f.data.sendButton.buttonRenderer){f.input.completeEmojis();S=f.data.sendButton.buttonRenderer.serviceEndpoint;if(!S)return b.return();G=((B=_.H(S,_.xMm))==null?void 0:B.clientIdPrefix)||"";g={client_message_id:G+String(f.numSentMessages++),rich_message:_.A3(f.input.liveChatRichMessageInput)};
f.pendingMessageId=g.client_message_id;f.inReplyPanel&&(f.sendReplyMessageInFlight=!0);_.RD(f.hostElement,[S,g]);f.input.setLiveChatRichMessageInput(null)}_.TT(b)})};
_.e.handleSendButtonAction=function(f){f.detail.actionName==="yt-service-request"&&(f.stopPropagation(),this.sendMessage())};
_.e.onSendCompleted=function(f,S){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(f=this.get("timeoutDurationUsec",S.data))&&this.handleTimeout(Number(f)/1E3);this.errorMessage=this.get("errorMessage",S.data);this.pendingMessageId=""};
_.e.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.bW(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.e.handlePickerButtonToggle=function(f){f=f.detail.targetId;this.ytPickerBehavior.togglePicker_(f);if(f==="emoji")this.input.focus();else if(f==="qna-start-panel"){var S,B;(S=_.m9(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(B=S.querySelector("#qna-creator-text-input-field"))==null||B.focus()}};
_.e.onComponentReplaced=function(f){var S,B;f.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((S=f.replacement.liveChatMessageInputRenderer)==null?0:(B=S.headerRenderer)==null?0:B.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.e.onEmojiSelect=function(f){this.input.focus();this.input.insertEmoji(f.detail)};
_.e.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.e.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.bW(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.bW(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.e.onOpenPopupAction=function(f,S){var B=this;S===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.bW(B.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.e.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.e.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.e.focusChanged=function(){this.maybeToggleCharacterCount()};
_.e.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var f=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",f>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.e.computeId=function(){return this.data&&this.data.targetId||""};
_.e.computeSendDisabled=function(f,S,B,G){f=!!(!f||S&&f>S||G);(S=_.m9(this.hostElement).querySelector("#send-button"))&&S.children.length&&(S.children[0].disabled=f);return f};
_.e.handleTimeout=function(f){this.timeoutDurationMs=this.timeoutMs=f;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.e.updateTimeout=function(f){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(f-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=f,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.e.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.e.onErrorMessageEdit=function(f){this.input.setLiveChatRichMessageInput(f.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.e.errorMessageChanged=function(){var f=this;_.AO(function(){_.bW(f.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.e.computeAuthorNameColor=function(f){var S;if(_.K("live_chat_author_name_color_usernames")&&(f==null?0:(S=f.authorName)==null?0:S.simpleText))return _.mDG(_.ztK(f.authorName.simpleText));if(_.K("live_chat_seed_color_usernames")&&(f==null?0:f.authorSeedColorArgb))return _.mDG(_.hZ(f.authorSeedColorArgb));if(_.K("live_chat_colored_usernames"))return"#cc0000";var B;return _.K("live_chat_simple_color_usernames")&&(f==null?0:(B=f.authorName)==null?0:B.simpleText)&&(f==null?0:f.authorUsernameColorLight)&&
(f==null?0:f.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.hZ(f.authorUsernameColorDark):_.hZ(f.authorUsernameColorLight):""};
_.e.onIsTooltipVisibleChanged=function(){var f=_.m9(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){f.hidden=!1;f.setAttribute("role","alert")},0):(f.hidden=!0,f.removeAttribute("role"))};
_.e.onFocusedChanged=function(f){this.inputFocused=f.detail.value};
_.y3.Object.defineProperties(b9.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 f;return!((f=this.data)==null||!f.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var f,S;return((f=this.data)==null?void 0:(S=f.pickers)==null?void 0:S.find(function(B){return B.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var f=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return f?this.ytRendererBehavior.getSimpleString(f):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
b9.prototype.onIsTooltipVisibleChanged=b9.prototype.onIsTooltipVisibleChanged;b9.prototype.errorMessageChanged=b9.prototype.errorMessageChanged;b9.prototype.onErrorMessageEdit=b9.prototype.onErrorMessageEdit;b9.prototype.onErrorMessageDismiss=b9.prototype.onErrorMessageDismiss;b9.prototype.focusChanged=b9.prototype.focusChanged;b9.prototype.characterCountChanged=b9.prototype.characterCountChanged;b9.prototype.onEmojiSelect=b9.prototype.onEmojiSelect;b9.prototype.handlePickerButtonToggle=b9.prototype.handlePickerButtonToggle;
b9.prototype.onSendError=b9.prototype.onSendError;b9.prototype.onSendCompleted=b9.prototype.onSendCompleted;b9.prototype.sendMessage=b9.prototype.sendMessage;b9.prototype.dataChanged=b9.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],b9.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],b9.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.r(q9Z.YtPickerBehavior),_.Z("design:type",Object)],b9.prototype,"ytPickerBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],b9.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Ai.YtLiveChatTooltipTargetingBehavior),_.Z("design:type",Object)],b9.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],b9.prototype,"hasFiredInitialFocusActions",void 0);
_.N([_.n(),_.Z("design:type",Object)],b9.prototype,"isBeforeFocusEnabled",void 0);_.N([_.n(),_.Z("design:type",Object)],b9.prototype,"data",void 0);_.N([_.n({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Z("design:type",Object)],b9.prototype,"id",void 0);_.N([_.n(),_.Z("design:type",Object)],b9.prototype,"characterCount",void 0);_.N([_.n(),_.Z("design:type",Object)],b9.prototype,"maxCharacterLimit",void 0);
_.N([_.n(),_.Z("design:type",Object)],b9.prototype,"remainingCharacterCount",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],b9.prototype,"inputExpanded",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],b9.prototype,"inputFocused",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],b9.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.N([_.n(),_.Z("design:type",_.Nf)],b9.prototype,"participantsManager",void 0);
_.N([_.n(),_.Z("design:type",Object)],b9.prototype,"buttonOverrides",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],b9.prototype,"inReplyPanel",void 0);_.N([_.k("characterCount, maxCharacterLimit, countdownActive"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],b9.prototype,"sendDisabled",null);_.N([_.n(),_.Z("design:type",Object)],b9.prototype,"countdownRatio",void 0);
_.N([_.k("countdownRatio"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],b9.prototype,"countdownStrokeDashOffset",null);_.N([_.k("countdownRatio"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],b9.prototype,"countdownActive",null);_.N([_.k("data.interactionMessage"),_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],b9.prototype,"hasInteractionMessage",null);
_.N([_.k("data.emojiPickerButton"),_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],b9.prototype,"hasEmojiPickerButton",null);_.N([_.k("data, characterCount"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],b9.prototype,"showAvatar",null);_.N([_.k("data.pickers"),_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],b9.prototype,"hasProductPickerPanelViewModel",null);
_.N([_.n(),_.Z("design:type",Object)],b9.prototype,"errorMessage",void 0);_.N([_.n(),_.Z("design:type",Object)],b9.prototype,"genericErrorMessage",void 0);_.N([_.n(),_.Z("design:type",Object)],b9.prototype,"isTooltipVisible",void 0);_.N([_.n(),_.Z("design:type",Object)],b9.prototype,"tooltipTimeout",void 0);_.N([_.k("data.onInitialFocusCommand"),_.Z("design:type",String),_.Z("design:paramtypes",[])],b9.prototype,"tooltipMessage",null);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],b9.prototype,"systemIcons",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],b9.prototype,"tallerEmojiPicker",void 0);_.N([_.k("data"),_.Z("design:type",String),_.Z("design:paramtypes",[])],b9.prototype,"authorNameColor",null);_.N([_.n(),_.Z("design:type",Object)],b9.prototype,"sendReplyMessageInFlight",void 0);_.N([_.vF("#input"),_.Z("design:type",_.X5L)],b9.prototype,"input",void 0);
_.N([_.vF("#count"),_.Z("design:type",HTMLElement)],b9.prototype,"count",void 0);_.N([_.vF("#input-container"),_.Z("design:type",HTMLElement)],b9.prototype,"inputContainer",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],b9.prototype,"dataChanged",null);_.N([_.Vg("yt-live-chat-send-message"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype",Promise)],b9.prototype,"sendMessage",null);
_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event,_.cw]),_.Z("design:returntype")],b9.prototype,"onSendCompleted",null);_.N([_.Vg("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],b9.prototype,"onSendError",null);
_.N([_.Vg("yt-live-chat-icon-toggle-button-renderer-toggle"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],b9.prototype,"handlePickerButtonToggle",null);_.N([_.Vg("yt-emoji-select"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],b9.prototype,"onEmojiSelect",null);
_.N([_.JO("characterCount"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],b9.prototype,"characterCountChanged",null);_.N([_.JO("inputFocused"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],b9.prototype,"focusChanged",null);_.N([_.Vg("yt-live-chat-error-message-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],b9.prototype,"onErrorMessageDismiss",null);
_.N([_.Vg("yt-live-chat-error-message-edit"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],b9.prototype,"onErrorMessageEdit",null);_.N([_.JO("errorMessage"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],b9.prototype,"errorMessageChanged",null);_.N([_.JO("isTooltipVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],b9.prototype,"onIsTooltipVisibleChanged",null);
_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],b9);
_.p(b9,"yt-live-chat-message-input-renderer",function(){if(Z72===void 0){var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;MMe===void 0&&(MMe=document.createElement("template"));var G=MMe;B.call(S,G.content.cloneNode(!0),f.content.firstChild);Z72=f}f=Z72;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var $K$;var QGO;var mH=function(){var f=_.I.apply(this,arguments)||this;f.systemIcons=_.K("kevlar_system_icons");f.firedOnClickCommand=!1;f.inReplyPanel=!1;return f};
_.q(mH,_.I);
mH.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"}}}};
mH.prototype.onButtonToggle=function(f){f.target.disabled||this.ytPickerBehavior.togglePicker_(f.detail.targetId)};
mH.prototype.onClick=function(){var f=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.bW(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return f.firedOnClickCommand=!1},5E3))};
_.y3.Object.defineProperties(mH.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var f,S;return((f=this.data)==null?void 0:(S=f.panels)==null?void 0:S.find(function(B){return B.liveChatProductPickerPanelViewModel}))!==void 0}}});
mH.prototype.onButtonToggle=mH.prototype.onButtonToggle;_.N([_.r(q9Z.YtPickerBehavior),_.Z("design:type",Object)],mH.prototype,"ytPickerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],mH.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],mH.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],mH.prototype,"data",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],mH.prototype,"systemIcons",void 0);_.N([_.n({reflectToAttribute:!1}),_.Z("design:type",Object)],mH.prototype,"firedOnClickCommand",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],mH.prototype,"inReplyPanel",void 0);_.N([_.k("data.pickers"),_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],mH.prototype,"hasProductPickerPanelViewModel",null);
_.N([_.Vg("yt-live-chat-icon-toggle-button-renderer-toggle"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],mH.prototype,"onButtonToggle",null);_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],mH);
_.p(mH,"yt-live-chat-restricted-participation-renderer",function(){if(QGO===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;$K$===void 0&&($K$=document.createElement("template"));var G=$K$;B.call(S,G.content.cloneNode(!0),f.content.firstChild);QGO=f}f=QGO;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var zK=function(){var f=_.I.apply(this,arguments)||this;f.genericErrorMessage=_.uC("Error, try again.");f.inReplyPanel=!1;f.hideBorder=!1;return f};
_.q(zK,_.I);zK.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}}}}}};
_.y3.Object.defineProperties(zK,{template:{configurable:!0,enumerable:!0,get:function(){return Ug$()}}});
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],zK.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],zK.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],zK.prototype,"genericErrorMessage",void 0);_.N([_.n(),_.Z("design:type",Object)],zK.prototype,"inReplyPanel",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],zK.prototype,"hideBorder",void 0);
_.N([_.nP({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],zK);_.p(zK,"yt-live-chat-engagement-panel-input-renderer",function(){return Ug$()},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var Y9u,rc$;Y9u=_.Eo(115994);rc$=_.Eo(115993);_.Rp=function(f,S,B){var G=this;var g=B.dragDownAction;this.layer=0;this.JSC$20002_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return G.dragDownAction()}}}};
this.JSC$20002_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return G.dragDownAction()}}}};
this.fullscreen=!1;var b=_.ik();_.wY(b,Y9u,this.layer);_.wY(b,rc$,this.layer);this.dragDownAction=function(){g();_.M1(b,{visualElement:G.fullscreen?Y9u:rc$})};
this.gesture=new _.wq(f,S,this.JSC$20002_watchConfig,"pandown");this.attach()};
_.Rp.prototype.attach=function(){this.gesture.attach()};
_.Rp.prototype.detach=function(){this.gesture.detach()};
_.Rp.prototype.update=function(f){this.fullscreen=f;this.gesture.config=f?this.JSC$20002_watchFullScreenConfig:this.JSC$20002_watchConfig};var jGO={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(f){if(f&&f.length==1&&Array.isArray(f[0].loggingUrls)){f=_.$v.unsafeClone(f[0]);var S=this.macros||{},B=this.getAdModuleClient_();if(!B)return _.wh();f.loggingUrls.forEach(function(G){if(G.baseUrl){var g=G.baseUrl;var b=S;b=b===void 0?{}:b;g=B.getOptions().includes("replaceUrlMacros")?_.QnL(B,"replaceUrlMacros",{url:g,additionalMapping:b}):g;G.baseUrl=g}},this);
f=[f]}return _.RD(this.hostElement,f)},
getAdModuleClient_:function(){var f=_.B8(this);return f?(f=f.getPlayer())?new _.$M(f):null:null}}]};var O1X;var XF=function(){var f=_.I.apply(this,arguments)||this;f.isCollapsed=!1;f.modernPanels=_.K("kevlar_watch_modern_panels");f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return f};
_.q(XF,_.I);_.e=XF.prototype;_.e.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.e.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.e.onDonateTap=function(){var f=this.get("data.donateButton.buttonRenderer.command");if(f){var S=_.xc(),B=this.get("data.donateButton.buttonRenderer.trackingParams");S&&B&&_.uW(S,_.Ye(B));this.ytOpenPopupBehavior.openPopup(f)}};
_.e.onShowMore=function(){this.isCollapsed=!1;var f=_.xc(),S=this.get("data.expandButton.buttonRenderer.trackingParams");f&&S&&_.uW(f,_.Ye(S))};
_.e.onShowLess=function(){this.isCollapsed=!0};
_.e.dataChanged=function(){_.hO(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.e.onDarkModeToggledAction=function(f){this.isDarkTheme=f};
_.e.handleUpdate=function(f){if(f=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",f))this.set("data.startLabel",f.startLabel),this.set("data.endLabel",f.endLabel),this.set("data.progress",f.progress),this.set("data.amountRaisedLabel",f.amountRaisedLabel),this.dataChanged()};
_.e.handleOpenPopupAction=function(f){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",f)&&_.bW(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.e.computeHeaderBackgroundUrl=function(f,S){if(f)return S?f.headerBackgroundDarkUrl:f.headerBackgroundUrl};
_.e.isProgressBarVisible=function(f){return!(!f||f.progress===void 0)};
_.e.headerBackgroundClass=function(){return _.nL("HTML_DIR")==="rtl"?"flip":""};
XF.prototype.dataChanged=XF.prototype.dataChanged;_.N([_.r(_.JW.YtOpenPopupBehavior),_.Z("design:type",Object)],XF.prototype,"ytOpenPopupBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],XF.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],XF.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],XF.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],XF.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],XF.prototype,"isCollapsed",void 0);_.N([_.n({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.Z("design:type",String)],XF.prototype,"headerBackgroundUrl",void 0);_.N([_.n(),_.Z("design:type",Boolean)],XF.prototype,"isDarkTheme",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],XF.prototype,"modernPanels",void 0);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],XF.prototype,"dataChanged",null);_.N([_.C({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],XF);
_.p(XF,"ytd-donation-shelf-renderer",function(){if(O1X!==void 0)return O1X;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return O1X=f},{mode:1});var xKZ;var EBo=function(){return _.I.apply(this,arguments)||this};
_.q(EBo,_.I);_.N([_.n(),_.Z("design:type",Object)],EBo.prototype,"data",void 0);_.N([_.C({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],EBo);
_.p(EBo,"ytd-donation-unavailable-renderer",function(){if(xKZ!==void 0)return xKZ;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return xKZ=f},{mode:1});var L1n;var w2=function(){return _.I.apply(this,arguments)||this};
_.q(w2,_.I);w2.prototype.computeIconType=function(f){return f?"yt-icons:"+f.toLowerCase():null};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],w2.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],w2.prototype,"data",void 0);_.N([_.C({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],w2);
_.p(w2,"ytd-limited-state-message-renderer",function(){if(L1n!==void 0)return L1n;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return L1n=f},{mode:1});var k_X;var hQ=function(){return _.I.apply(this,arguments)||this};
_.q(hQ,_.I);hQ.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
hQ.prototype.onTap=function(f){var S=this.data&&this.data.endpoint;S&&!_.lF(_.ct(f),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.ew(this.hostElement,"yt-navigate",{endpoint:S})};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],hQ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],hQ.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],hQ.prototype,"data",void 0);_.N([_.C({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],hQ);
_.p(hQ,"ytd-autotagging-metadata-renderer",function(){if(k_X!==void 0)return k_X;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return k_X=f},{mode:1});var nBo;var TK=function(){return _.I.apply(this,arguments)||this};
_.q(TK,_.I);TK.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],TK.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],TK.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],TK.prototype,"data",void 0);_.N([_.C({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],TK);
_.p(TK,"ytd-autotagging-metadata-row-renderer",function(){if(nBo!==void 0)return nBo;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return nBo=f},{mode:1});var sGX;var DKM;var FF=function(){var f=_.I.apply(this,arguments)||this;f.engagementPanelContent=!1;return f};
_.q(FF,_.I);FF.prototype.computeHasDividerLine=function(f,S){return f&&!S};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],FF.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],FF.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.Z("design:type",Boolean)],FF.prototype,"hasDividerLine",void 0);_.N([_.n(),_.Z("design:type",Object)],FF.prototype,"engagementPanelContent",void 0);
_.N([_.C({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],FF);
_.p(FF,"ytd-metadata-row-header-renderer",function(){if(DKM!==void 0)return DKM;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return DKM=f},{mode:1});var IqM;var Vl=function(){return _.I.apply(this,arguments)||this};
_.q(Vl,_.I);Vl.prototype.computeHasDividerLine=function(f){return f};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Vl.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Vl.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.Z("design:type",Boolean)],Vl.prototype,"hasDividerLine",void 0);_.N([_.C({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],Vl);
_.p(Vl,"ytd-metadata-row-renderer",function(){if(IqM!==void 0)return IqM;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return IqM=f},{mode:1});var UKz;var JQ=function(){return _.I.apply(this,arguments)||this};
_.q(JQ,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],JQ.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],JQ.prototype,"data",void 0);_.N([_.C({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],JQ);
_.p(JQ,"ytd-metadata-with-image-row-renderer",function(){if(UKz!==void 0)return UKz;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return UKz=f},{mode:1});var Cqu;var PA=function(){var f=_.I.apply(this,arguments)||this;f.rounded=!0;f.fixie=!1;f.fullWidth=!1;return f};
_.q(PA,_.I);_.e=PA.prototype;_.e.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.e.onDataChanged=function(){var f=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(S){f.onEndpointLinkKeyPress(S)}))};
_.e.onEndpointLinkKeyPress=function(f){f.target===this.endpointLink&&f.keyCode===13&&_.ew(this.hostElement,"click")};
_.e.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var f;if((f=this.data)==null?0:f.endpoint)_.Xh(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.e.onYtNavigate=function(f){this.endpointHref||(f.stopPropagation(),f.preventDefault())};
_.e.onInformationButtonContainerClick=function(f){f.target.id!=="information-button-container"&&(f.stopPropagation(),f.preventDefault())};
_.e.computeStyle=function(f){return f};
_.e.computeIsThumbnailStyle=function(f){return f==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.e.computeThumbnailWidth=function(f){switch(f){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}};
_.e.computeThumbnailObjectFit=function(f){switch(f){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.y3.Object.defineProperties(PA.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?0:f.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
PA.prototype.onYtNavigate=PA.prototype.onYtNavigate;PA.prototype.onClick=PA.prototype.onClick;PA.prototype.onDataChanged=PA.prototype.onDataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],PA.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],PA.prototype,"componentBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],PA.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],PA.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Z("design:type",String)],PA.prototype,"componentStyle",void 0);_.N([_.n({computed:"computeIsThumbnailStyle(data.style)"}),_.Z("design:type",Boolean)],PA.prototype,"isThumbnailStyle",void 0);_.N([_.n({computed:"computeThumbnailObjectFit(data.style)"}),_.Z("design:type",String)],PA.prototype,"thumbnailObjectFit",void 0);
_.N([_.n({computed:"computeThumbnailWidth(data.style)"}),_.Z("design:type",Number)],PA.prototype,"thumbnailWidth",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],PA.prototype,"rounded",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],PA.prototype,"fixie",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],PA.prototype,"fullWidth",void 0);_.N([_.vF("#endpoint-link"),_.Z("design:type",HTMLAnchorElement)],PA.prototype,"endpointLink",void 0);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],PA.prototype,"onDataChanged",null);_.N([_.k("data.endpoint"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],PA.prototype,"endpointHref",null);_.N([_.Vg("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],PA.prototype,"onClick",null);
_.N([_.Vg("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],PA.prototype,"onYtNavigate",null);_.N([_.C({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],PA);
_.p(PA,"ytd-rich-metadata-renderer",function(){if(Cqu!==void 0)return Cqu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Cqu=f},{mode:_.X_("kevlar_poly_si_batch_j075")?1:2});var piO;var vA=function(){var f=_.I.apply(this,arguments)||this;f.fixie=!1;f.fullWidth=!1;return f};
_.q(vA,_.I);vA.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
vA.prototype.computeHasDividerLine=function(f){return f};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],vA.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],vA.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.Z("design:type",Boolean)],vA.prototype,"hasDividerLine",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],vA.prototype,"fixie",void 0);_.N([_.n(),_.Z("design:type",Object)],vA.prototype,"fullWidth",void 0);
_.N([_.C({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],vA);
_.p(vA,"ytd-rich-metadata-row-renderer",function(){if(piO!==void 0)return piO;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return piO=f},{mode:1});var KB=function(){var f=_.I.apply(this,arguments)||this;f.engagementPanelContent=!1;f.fixie=!1;f.fullWidth=!1;return f};
_.q(KB,_.I);
KB.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"}}}};
KB.prototype.computeCollapsibleItems=function(f,S,B){return f===void 0||S===void 0||B===void 0||B?[]:f.slice(S)};
KB.prototype.computeAlwaysShownItems=function(f,S){return f&&f.length?f.slice(0,S):[]};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],KB.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],KB.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],KB.prototype,"data",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],KB.prototype,"collapsed",void 0);
_.N([_.n({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.Z("design:type",Array)],KB.prototype,"alwaysShownItems",void 0);_.N([_.n({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.Z("design:type",Array)],KB.prototype,"collapsibleItems",void 0);_.N([_.n(),_.Z("design:type",Object)],KB.prototype,"engagementPanelContent",void 0);_.N([_.n(),_.Z("design:type",Object)],KB.prototype,"fixie",void 0);
_.N([_.n(),_.Z("design:type",Object)],KB.prototype,"fullWidth",void 0);_.N([_.C({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],KB);
_.p(KB,"ytd-metadata-row-container-renderer",function(){if(sGX!==void 0)return sGX;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return sGX=f},{mode:1});var AcO;var d2=function(){var f=_.I.apply(this,arguments)||this;f.currentPageUrl="";f.baseUrl="";f.isHiddenByUser=null;f.hidden=!1;f.showAboveScrim=!1;f.watchNextGrid=_.K("kevlar_watch_grid");f.modernButtons=_.K("web_modern_buttons");f.roundedContainer=!0;f.noBorder=!1;f.roundBackground=!_.K("live_chat_round_background_killswitch");f.overflowHideChat=_.K("live_chat_overflow_hide_chat");f.forceDarkTheme=!1;f.theaterWatchWhile=!1;f.isListeningForPlayerProgress=!1;f.JSC$20038_playerEvents=new Map;f.isFrameReady=
!1;f.player=null;f.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 f};
_.q(d2,_.I);_.e=d2.prototype;_.e.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.mU(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.e.created=function(){var f=this;this.handleIframeEventListener=function(S){f.handleIframeEvent(S)};
this.handleKeyboardEventListener=function(S){f.handleKeyboardEvent(S)};
this.JSC$20038_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$20038_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20038_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$20038_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$20038_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.e.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()};
_.e.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};
_.e.computeBaseUrl=function(f){var S="/live_chat";this.isChatReplay()&&(S="/live_chat_replay");return _.bl(_.ez(_.gH(_.NR(f),S),null),"").toString()};
_.e.dataChanged=function(){_.K("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.e.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var f=this.url;if(this.isChatReplay()&&this.player){var S=Math.floor(this.player.getProgressState().current*1E3);f=_.ZL(_.NR(f),"playerOffsetMs",S.toString()).toString()}S=this.chatframe;try{var B=f==="about:blank"?_.FKT:_.io(f),G=S.contentDocument.location,g=_.Qe(B);g!==void 0&&G.replace(g)}catch(b){S.src=f}}};
_.e.collapsedChanged=function(){_.ew(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.e.handleIframeEvent=function(f){if(f&&this.baseUrl.startsWith(f.origin)&&f.source===this.chatframe.contentWindow&&_.og(f.data))if(f.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(f);else if(f.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(f.data["yt-show-feedback-dialog"]){var S=_.oy().resolve(_.fN(_.v7m));if(S){var B=f.ports,G;B&&B.length&&(G=function(){B[0].postMessage({})});
f=f.data["yt-show-feedback-dialog"];S.showFeedbackDialog(f.customProductData,f.feedbackContent,G,f.bucket)}}else if(f.data["yt-show-survey"])_.ew(this.hostElement,"yt-show-survey",f.data["yt-show-survey"]);else if(f.data["yt-purchase-membership"])_.oy().resolve(_.S7).resolveCommand(f.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(f.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(f.data["yt-tunnel-out-live-service-request"]);else if(f.data["yt-user-activity"])_.fg();
else if(f.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(f.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(f.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(f.data["yt-open-popup"]);else if(f.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(f.data["yt-log-flow-logging-event-command"]);else if(f.data["yt-hide-live-chat"])this.onShowHideChat();else f.data["yt-report-moderation-state-log"]&&
this.player&&(S={cpn:this.player.getVideoData().cpn},_.jD("liveChatBeingModerated",S))};
_.e.attachLiveChatResponseVeTrackingParams=function(f){f=_.Ye(f);var S=_.xc(),B=_.U6("liveChatRenderer.trackingParams",this.data);S&&B&&_.Af(S,_.Ye(B),f)};
_.e.handleBuyflowMessages=function(f){var S=f.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,B=f.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,G=f.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.BkV(_.RQ(_.Wt),S.replace(/-/g,"+").replace(/_/g,"/"),function(g){f.ports[0].postMessage({success:!0,buyFlowResponse:g})},void 0,function(g){f.ports[0].postMessage({success:!1,
error:g&&g.message||"Buyflow rejected without error."})},_.K2().get("hl"),void 0,function(){f.ports[0].postMessage({closed:!0})},B,G)};
_.e.setupPlayerProgressRelay=function(){var f=this;if(!this.isListeningForPlayerProgress){var S=_.GG();S!=null&&S.getPlayerPromise&&(S.getPlayerPromise().then(function(B){f.playerApiReady(B)}),this.isListeningForPlayerProgress=!0)}};
_.e.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.e.playerApiReady=function(f){this.setPlayer(f)};
_.e.playerProgressHandler=function(){if(this.player){var f=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":f.current})}};
_.e.playerAdStartHandler=function(f){this.postToContentWindow({"yt-player-ad-start":f})};
_.e.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.e.playerStateChangeHandler=function(f){this.postToContentWindow({"yt-player-state-change":f})};
_.e.setPlayer=function(f){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20038_playerEvents);f&&(this.player=f,this.ytPlayerListenerBehavior.listenToPlayerEvents(f,this.JSC$20038_playerEvents),_.ew(this.hostElement,"player-api-ready"))};
_.e.liveChatPageUrl=function(f,S,B,G){return!B||S?"about:blank":B.liveChatRenderer?(S=_.NR(this.currentPageUrl).JSC$8076_queryData_,dQO(S),f=_.NR(f),S.add("continuation",B.liveChatRenderer.continuations[0].reloadContinuationData.continuation),B=_.xG()==="USER_INTERFACE_THEME_DARK",(G||B)&&S.add("dark_theme","true"),_.ez(f,S),G=_.NR(f.toString()),B=G.JSC$8076_queryData_,"SESSION_INDEX"in _.LL&&(B.add("authuser",_.nL("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.LL&&B.add("pageId",_.nL("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.LL&&B.add("sdc",_.nL("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),G.toString()):""};
_.e.isCollapsed=function(f,S){return S!==null?S:this.isChatReplay()||f&&f.conversationBarRenderer&&f.conversationBarRenderer.availabilityMessage?!0:f?f.liveChatRenderer?f.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.K("live_chat_hide_premiere_replay_message")||f.conversationBarRenderer&&f.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.e.isHidden=function(f,S,B){var G=S&&S.conversationBarRenderer&&S.conversationBarRenderer.availabilityMessage,g=S&&S.liveChatRenderer&&S.liveChatRenderer.showHideButton,b=S&&S.liveChatRenderer&&S.liveChatRenderer.showButton;return B&&f&&!G&&!b||!B&&f&&!G&&!g?!0:S&&S.liveChatRenderer&&S.liveChatRenderer.initialDisplayState?S.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.e.computeButtonOverride=function(f,S){if(f&&S)return{type:"outline"}};
_.e.setCollapsedState=function(f){_.H(f,_.Jq7)&&(this.isHiddenByUser=!!_.H(f,_.Jq7).collapsed,!this.isHiddenByUser&&_.K("enable_teaser_framework_web_client")&&_.bW(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.e.forwardReduxActionToIframe=function(f){this.postToContentWindow({"yt-live-chat-forward-redux-action":f})};
_.e.onLoopRangeChange=function(f){this.showAboveScrim=!(f==null||!f.postId)};
_.e.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.e.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.e.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.e.sendDarkThemePostMessage=function(f){this.postToContentWindow({"yt-live-chat-set-dark-theme":f})};
_.e.onLiveChatBuyFlowCallback=function(f){this.postToContentWindow({"yt-live-chat-buy-flow-callback":f})};
_.e.handleKeyboardEvent=function(f){(0,_.$v.containsValue)(KPu,f.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:f.type,keyCode:f.keyCode}})};
_.e.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.e.postToContentWindow=function(f){if(this.isFrameReady)try{var S=window.location.protocol+"//"+window.location.host,B;(B=this.chatframe)!=null&&B.contentWindow?this.chatframe.contentWindow.postMessage(f,S):_.Lg(new _.dO("Tried posting a message to an iframe with no content window",f))}catch(G){_.xH(G)}};
_.e.shouldHideChatFrame=function(f){return f&&_.K("hide_live_chat_button_when_collapsed")};
_.y3.Object.defineProperties(d2.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.K("live_chat_overflow_hide_chat")||_.K("web_watch_chat_hide_button_killswitch"))return _.K("live_chat_overflow_hide_chat");var f,S,B,G;return!!((f=this.data)==null?0:(S=f.liveChatRenderer)==null?0:(B=S.header)==null?0:(G=B.liveChatHeaderRenderer)==null?0:G.collapseButton)}}});
d2.prototype.collapsedChanged=d2.prototype.collapsedChanged;d2.prototype.urlChanged=d2.prototype.urlChanged;d2.prototype.dataChanged=d2.prototype.dataChanged;d2.prototype.onShowHideChat=d2.prototype.onShowHideChat;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],d2.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],d2.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],d2.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.Nr.YtPlayerListenerBehavior),_.Z("design:type",_.Mr)],d2.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.r(_.JW.YtOpenPopupBehavior),_.Z("design:type",Object)],d2.prototype,"ytOpenPopupBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],d2.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],d2.prototype,"currentPageUrl",void 0);
_.N([_.n({computed:"computeBaseUrl(currentPageUrl,data)"}),_.Z("design:type",Object)],d2.prototype,"baseUrl",void 0);_.N([_.n({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.Z("design:type",String)],d2.prototype,"url",void 0);_.N([_.n(),_.Z("design:type",Object)],d2.prototype,"isHiddenByUser",void 0);_.N([_.n({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.Z("design:type",Object)],d2.prototype,"hidden",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.Z("design:type",Boolean)],d2.prototype,"collapsed",void 0);_.N([_.n({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.Z("design:type",Boolean)],d2.prototype,"hideChatFrame",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],d2.prototype,"showAboveScrim",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],d2.prototype,"watchNextGrid",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],d2.prototype,"modernButtons",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],d2.prototype,"roundedContainer",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],d2.prototype,"noBorder",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],d2.prototype,"roundBackground",void 0);
_.N([_.n({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.Z("design:type",Object)],d2.prototype,"toggleButtonOverride",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],d2.prototype,"overflowHideChat",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],d2.prototype,"forceDarkTheme",void 0);_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],d2.prototype,"enableShowWithoutHideChatButton",null);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],d2.prototype,"theaterWatchWhile",void 0);_.N([_.vF("#chatframe"),_.Z("design:type",HTMLIFrameElement)],d2.prototype,"chatframe",void 0);_.N([_.Vg("yt-toggle-button"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],d2.prototype,"onShowHideChat",null);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],d2.prototype,"dataChanged",null);
_.N([_.JO("url"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],d2.prototype,"urlChanged",null);_.N([_.JO("collapsed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],d2.prototype,"collapsedChanged",null);_.N([_.C({is:"ytd-live-chat-frame",disableElementRegistration:!0})],d2);
_.p(d2,"ytd-live-chat-frame",function(){if(AcO!==void 0)return AcO;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return AcO=f},{mode:1});var Nku;var i9=function(){var f=_.I.apply(this,arguments)||this;f.modern=_.K("web_modern_buttons");f.buttonOverrides={style:"call-to-action",type:"filled"};return f};
_.q(i9,_.I);i9.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=_.pn(this.data.backgroundColor)))};
i9.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var f=this.getFormattedStringLoggingDirectives(this.data.headline);f&&this.rendererBehavior.logExplicitClick(f)}};
i9.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var f=this.getFormattedStringLoggingDirectives(this.data.description);f&&this.rendererBehavior.logExplicitClick(f)}};
i9.prototype.getFormattedStringLoggingDirectives=function(f){return f&&f.runs&&f.runs.length>0&&f.runs[0]&&f.runs[0].loggingDirectives?f.runs[0].loggingDirectives:null};
i9.prototype.dataChanged=i9.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],i9.prototype,"rendererBehavior",void 0);_.N([_.r(jGO.YtMacroReplacementBehavior),_.Z("design:type",Object)],i9.prototype,"macroReplacementBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],i9.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],i9.prototype,"navigationEndpoint",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],i9.prototype,"enableColors",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],i9.prototype,"modern",void 0);_.N([_.n(),_.Z("design:type",Object)],i9.prototype,"buttonOverrides",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],i9.prototype,"dataChanged",null);_.N([_.C({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],i9);
_.p(i9,"ytd-action-basic-immersive-content-renderer",function(){if(Nku!==void 0)return Nku;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return Nku=f},{mode:1});var MU2;var Z1M;var HA=function(){return _.I.apply(this,arguments)||this};
_.q(HA,_.I);HA.prototype.dataChanged=function(){var f;((f=this.data)==null?void 0:f.backgroundColor)!==void 0&&_.hO(this.hostElement,{"--bgu-color":_.pn(this.data.backgroundColor)})};
HA.prototype.onImageTileClick=function(){var f;((f=this.data)==null?0:f.navigationEndpoint)&&_.ew(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var S;((S=this.data)==null?0:S.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.y3.Object.defineProperties(HA.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var f;if(((f=this.data)==null?void 0:f.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 f;return((f=this.data)==null?void 0:f.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var f,S,B;if(((f=this.data)==null?void 0:(S=f.detailsLine)==null?void 0:S.texts)!=null&&((B=this.data)==null?void 0:B.detailsLine.texts.length)>0){var G;return(G=this.data)==null?void 0:G.detailsLine.texts.map(function(g){return g.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var f,S,B;if(((f=this.data)==null?void 0:(S=f.optionalDetailsLine)==null?void 0:S.texts)!=null&&((B=this.data)==null?void 0:B.optionalDetailsLine.texts.length)>0){var G;return(G=this.data)==null?void 0:G.optionalDetailsLine.texts.map(function(g){return g.text}).join("")}return null}}});
HA.prototype.dataChanged=HA.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],HA.prototype,"rendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],HA.prototype,"componentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],HA.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.k("data.backgroundColor"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],HA.prototype,"hasBackgroundColor",null);
_.N([_.k("data.objectFit"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],HA.prototype,"getObjectFit",null);_.N([_.n({reflectToAttribute:!0}),_.k("data.tileRenderingStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],HA.prototype,"hasTileMetadata",null);_.N([_.k("data.detailsLine"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],HA.prototype,"getSecondaryDetails",null);
_.N([_.k("data.optionalDetailsLine"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],HA.prototype,"getOptionalDetails",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],HA.prototype,"dataChanged",null);_.N([_.C({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],HA);
_.p(HA,"ytd-image-tile-renderer",function(){if(Z1M!==void 0)return Z1M;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Z1M=f},{mode:1});var tUu;var qO=function(){return _.I.apply(this,arguments)||this};
_.q(qO,_.I);qO.prototype.getOpenLinkIcon=function(){return _.K("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
qO.prototype.onSitelinkTap=function(){_.ew(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.K("kevlar_command_handler_migration_killswitch"))_.Xh(this.hostElement,this.data.clickCommands,this.hostElement);else for(var f=_.m(this.data.clickCommands),S=f.next();!S.done;S=f.next())this.ytComponentBehavior.resolveCommand(S.value)};
_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],qO.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],qO.prototype,"rendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],qO.prototype,"data",void 0);_.N([_.C({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],qO);
_.p(qO,"ytd-sitelink-renderer",function(){if(tUu!==void 0)return tUu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return tUu=f},{mode:1});var $1=function(){var f=_.I.apply(this,arguments)||this;f.paddingFix=_.K("enable_ads_web_ep_buenos_aires_and_padding_fix");return f};
_.q($1,_.I);$1.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"}}}};
$1.prototype.dataChanged=function(){var f=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(S){S.clickTrackingParams&&delete S.clickTrackingParams;f.ytMacroReplacementBehavior.sendServiceRequestAction([S])})};
$1.prototype.shouldHideFooter=function(f){return!(f&&_.K("use_ads_engagement_panel_desktop_footer_cta"))};
_.y3.Object.defineProperties($1.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var f,S;return((f=this.data)==null?void 0:f.imageTileRenderers)===void 0||((S=this.data)==null?void 0:S.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(B){var G;return(G=_.H(B,Qi$))==null?void 0:G.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var f,S;return((f=this.data)==null?void 0:f.imageTileRenderers)===void 0||((S=this.data)==null?void 0:S.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(B){var G;return((G=_.H(B,Qi$))==null?void 0:G.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
$1.prototype.dataChanged=$1.prototype.dataChanged;_.N([_.r(jGO.YtMacroReplacementBehavior),_.Z("design:type",Object)],$1.prototype,"ytMacroReplacementBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],$1.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],$1.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],$1.prototype,"data",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],$1.prototype,"paddingFix",void 0);_.N([_.n({reflectToAttribute:!0}),_.k("data.imageTileRenderers"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],$1.prototype,"removeBorderFromImageTiles",null);_.N([_.n({reflectToAttribute:!0}),_.k("data.imageTileRenderers"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],$1.prototype,"useFooteredMetadataRenderingStyle",null);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$1.prototype,"dataChanged",null);_.N([_.C({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],$1);
_.p($1,"ytd-action-engagement-panel-content-renderer",function(){if(MU2!==void 0)return MU2;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return MU2=f},{mode:1});var uU2;var aq$=_.oS(function(f){var S=f.data;var B=f.customCommandResolver;f=_.tE("ad-grid-card-image-full-metadata-view-model");_.c8(f,function(){return S().interaction},B);
_.of(f,{visibilityCallback:function(G){var g,b=(g=S().interaction)==null?void 0:g.onFirstVisible;G&&b&&_.MB(b)},
showOption:_.Wx});return _.T("ad-grid-card-image-full-metadata-view-model",{class:function(){var G;return((G=S().interaction)==null?0:G.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:f,"aria-label":function(){var G,g;return(G=S().interaction)==null?void 0:(g=G.accessibility)==null?void 0:g.label}},_.T("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.T(_.xK,{data:function(){return S().adImage}},{adImageViewModel:function(G){return _.T(_.Tu,{data:G.data,
customCommandResolver:B})}})),_.T("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.T(_.v,{cond:function(){return S().headline},
then:function(G){return _.T(_.oY,{text:G,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.T(_.v,{cond:function(){return S().detailsLine},
then:function(G){return _.T("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.T(_.xK,{data:G},{adDetailsLineViewModel:function(g){return _.T(_.Bm,{data:g.data,customCommandResolver:B,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.T(_.v,{cond:function(){return S().secondaryDetailsLine},
then:function(G){return _.T("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.T(_.xK,{data:G},{adDetailsLineViewModel:function(g){return _.T(_.Bm,{data:g.data,customCommandResolver:B,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Si");var yc$=_.oS(function(f){var S=f.data;var B=f.customCommandResolver;f=_.tE("ad-grid-card-image-view-model");_.c8(f,function(){return S().interaction},B);
_.of(f,{visibilityCallback:function(G){var g,b=(g=S().interaction)==null?void 0:g.onFirstVisible;G&&b&&_.MB(b)},
showOption:_.Wx});return _.T("ad-grid-card-image-view-model",{class:function(){var G;return((G=S().interaction)==null?0:G.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:f,"aria-label":function(){var G,g;return(G=S().interaction)==null?void 0:(g=G.accessibility)==null?void 0:g.label}},_.T(_.xK,{data:function(){return S().adImage}},{adImageViewModel:function(G){return _.T(_.Tu,{data:G.data,
customCommandResolver:B})}}),_.T("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.T(_.xK,{data:function(){return S().adCardBadge}},{adCardBadgeViewModel:_.aFo})))},"Ti");var W1X=_.oS(function(f){var S=f.data;var B=f.customCommandResolver;f=_.tE("ad-grid-card-text-view-model");_.c8(f,function(){return S().interaction},B);
_.of(f,{visibilityCallback:function(G){var g,b=(g=S().interaction)==null?void 0:g.onFirstVisible;G&&b&&_.MB(b)},
showOption:_.Wx});return _.T("ad-grid-card-text-view-model",{class:function(){var G;return((G=S().interaction)==null?0:G.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:f,"aria-label":function(){var G,g;return(G=S().interaction)==null?void 0:(g=G.accessibility)==null?void 0:g.label}},_.T("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.T(_.v,{cond:function(){return S().title},
then:function(G){return _.T(_.oY,{text:G,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.T("div",{class:function(){return _.K("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.T(_.dg,{each:function(){var G;
return((G=S())==null?void 0:G.descriptions)||[]},
keyBy:"INDEX"},function(G){return _.T(_.oY,{text:G,className:function(){return _.K("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.T("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.T(_.xK,{data:function(){return S().moreInfoButton}},{adButtonViewModel:function(G){return _.T(_.lQ,{data:G.data,
customCommandResolver:B})}})))},"Ui");var ccO=_.oS(function(f){var S=f.data;var B=f.customCommandResolver;var G=f.adGridCardCollectionStyle;f=_.tE("ad-grid-card-collection-view-model");_.of(f,{visibilityCallback:function(g){var b,z=(b=S().interaction)==null?void 0:b.onFirstVisible;g&&z&&_.MB(z)},
showOption:_.Wx});return _.T("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:f,style:function(){return"grid-template-columns: repeat("+Udo(G?G():S().style)+", minmax(0, 1fr));"}},_.T(_.xK,{data:function(){var g;
return(g=S())==null?void 0:g.gridCards}},{adGridCardImageViewModel:function(g){return _.T(yc$,{data:g.data,
customCommandResolver:B})},
adGridCardImageFullMetadataViewModel:function(g){return _.T(aq$,{data:g.data,customCommandResolver:B})},
adGridCardTextViewModel:function(g){return _.T(W1X,{data:g.data,customCommandResolver:B})}}))},"Vi");_.eq(_.oS(function(f){var S=f.data;f=_.tE("panel-text-icon-image-tiles-button-layout-content-view-model");_.c8(f,function(){return S().interaction},CDe);
_.of(f,{visibilityCallback:function(B){var G,g=(G=S().interaction)==null?void 0:G.onFirstVisible;B&&g&&_.MB(g)},
showOption:_.Wx});return _.T("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:f},_.T("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.T(_.v,{cond:_.nh1("(min-width: "+((0,_.xy)()+_.DA)+"px)"),then:function(){return _.T(_.xK,{data:function(){return S().adGridCardCollection}},{adGridCardCollectionViewModel:function(B){return _.T(ccO,{data:B.data,
customCommandResolver:CDe})}})},
else:function(){return _.T(_.xK,{data:function(){return S().adGridCardCollection}},{adGridCardCollectionViewModel:function(B){return _.T(ccO,{data:B.data,
customCommandResolver:CDe,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.T("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.T(_.xK,{data:function(){return S().adButton}},{adButtonViewModel:function(B){return _.T(_.lQ,{data:B.data,
customCommandResolver:CDe})}})))},"Wi"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.W4}});_.eq(_.oS(function(f){var S=f.data;f=_.tE("panel-text-icon-text-grid-cards-sub-layout-content-view-model");_.c8(f,function(){return S().interaction},pjO);
_.of(f,{visibilityCallback:function(B){var G,g=(G=S().interaction)==null?void 0:G.onFirstVisible;B&&g&&_.MB(g)},
showOption:_.Wx});return _.T("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:f},_.T("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.T(_.xK,{data:function(){if(_.nh1("(min-width: "+((0,_.xy)()+_.DA)+"px)")())var B=S().adGridCardCollection;else{B=Object.assign({},_.H(S().adGridCardCollection,Yz2));var G;B.gridCards!==void 0&&((G=B.gridCards)==null?void 0:G.length)>1?B.style=
"AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":B.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";B={adGridCardCollectionViewModel:B}}return B}},{adGridCardCollectionViewModel:function(B){return _.T(ccO,{data:B.data,
customCommandResolver:pjO})}})),_.T("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.T(_.xK,{data:function(){return S().adButton}},{adButtonViewModel:function(B){return _.T(_.lQ,{data:B.data,
customCommandResolver:pjO})}})))},"Xi"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.W4}});var Ql=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return f};
_.q(Ql,_.I);_.e=Ql.prototype;_.e.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"}}}};
_.e.attached=function(){this.getDataFromPlayerAndRender()};
_.e.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.e.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.e.getDataFromPlayerAndRender=function(){var f=this,S=_.B8(this.hostElement);S&&S.getPlayerPromise().then(function(B){f.getCachedDataAndListen(B)})};
_.e.getCachedDataAndListen=function(f){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(f,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(f,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=f)};
_.e.resolveCachedActions=function(){var f=_.U6("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(f=f&&f())&&!_.$v.isEmpty(f)&&this.sendUpdateEngagementPanelAction(f);(f=(f=_.U6("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&f())&&!_.$v.isEmpty(f)&&this.sendChangeEngagementPanelVisibilityAction(f);(f=(f=_.U6("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&f())&&!_.$v.isEmpty(f)&&this.sendScrollToEngagementPanelCommand(f)};
_.e.sendUpdateEngagementPanelAction=function(f){var S;_.bW(this.hostElement,"yt-update-engagement-panel-action",[(S=_.$v.get(f,"action"))!=null?S:f])};
_.e.sendChangeEngagementPanelVisibilityAction=function(f){_.bW(this.hostElement,"yt-change-engagement-panel-visibility-action",[f])};
_.e.sendScrollToEngagementPanelCommand=function(f){_.bW(this.hostElement,"yt-scroll-to-engagement-panel-command",[f])};
_.e.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.K("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.Lg(Error("im"))};
Ql.prototype.dataChanged=Ql.prototype.dataChanged;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],Ql.prototype,"actionHandlerBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Ql.prototype,"componentBehavior",void 0);_.N([_.r(_.Nr.YtPlayerListenerBehavior),_.Z("design:type",_.Mr)],Ql.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Ql.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Ql.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Ql.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],Ql.prototype,"player",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ql.prototype,"dataChanged",null);_.N([_.C({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],Ql);
_.p(Ql,"ytd-ads-engagement-panel-content-renderer",function(){if(uU2!==void 0)return uU2;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);
return uU2=f},{mode:1});var lqY;var Y1=function(){var f=_.I.apply(this,arguments)||this;f.player=null;f.JSC$20075_playerEvents=new Map;f.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return f};
_.q(Y1,_.I);_.e=Y1.prototype;_.e.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]]"}}}}}};
_.e.created=function(){this.player=null;this.JSC$20075_playerEvents=new Map;this.JSC$20075_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$20075_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$20075_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20075_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.e.attached=function(){var f=this,S=_.B8();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));S&&S.getPlayerPromise().then(function(B){f.setPlayer(B);f.set("isPageLoad",!1)})};
_.e.setPlayer=function(f){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20075_playerEvents);this.set("player",f);f&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(f,this.JSC$20075_playerEvents),f.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.e.onLoopRangeChange=function(f){var S=_.oy().resolve(_.fN(_.o8));if((!S||S.isOnWatch())&&this.hostElement.clientHeight){var B;!f&&((B=this.data)==null?0:B.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.e.onVideoProgress=function(f){var S,B,G=((S=this.player)==null?void 0:(B=S.getPresentingPlayerType)==null?void 0:B.call(S))===2;this.isAdPlaying!==G&&this.set("isAdPlaying",G);var g;if(!G&&(g=this.player)!=null&&g.getLoopRange()){B=this.player.getLoopRange();S=B.startTimeMs;B=B.endTimeMs;G=this.player.getProgressState(1).seekableStart;var b;S<G*1E3&&((b=this.data)==null?0:b.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
f=B<f*1E3;var z;((z=this.player)==null?0:z.getLoopRange())&&f&&this.player.seekTo(S/1E3)}};
_.e.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.e.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.e.onYtDeleteClipEngagementPanelCommand=function(f){_.H(f,ATO).command&&this.ytComponentBehavior.resolveCommand(_.H(f,ATO).command)};
_.y3.Object.defineProperties(Y1.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.voteCount)||_.uC("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Y1.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Y1.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],Y1.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Y1.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.Nr.YtPlayerListenerBehavior),_.Z("design:type",_.Mr)],Y1.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Y1.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],Y1.prototype,"isAdPlaying",void 0);_.N([_.n({reflectToAttribute:!0,value:!0}),_.Z("design:type",Boolean)],Y1.prototype,"isPageLoad",void 0);_.N([_.n({reflectToAttribute:!0,value:!0}),_.Z("design:type",Boolean)],Y1.prototype,"isDarkTheme",void 0);
_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Y1.prototype,"voteCount",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Y1.prototype,"channelEndpoint",null);_.N([_.k("channelEndpoint"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Y1.prototype,"channelHref",null);_.N([_.C({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],Y1);
_.p(Y1,"ytd-clip-attribution-renderer",function(){if(lqY!==void 0)return lqY;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return lqY=f},{mode:1});var fYu;var r2=function(){var f=_.I.apply(this,arguments)||this;f.player=null;f.JSC$20080_playerEvents=new Map;return f};
_.q(r2,_.I);_.e=r2.prototype;_.e.created=function(){this.player=null;this.JSC$20080_playerEvents=new Map;this.JSC$20080_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$20080_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20080_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.e.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.e.attached=function(){var f=this,S=_.B8();S&&S.getPlayerPromise().then(function(B){f.setPlayer(B);f.set("isPageLoad",!1)})};
_.e.setPlayer=function(f){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20080_playerEvents);this.set("player",f);if(f){this.ytPlayerListenerBehavior.listenToPlayerEvents(f,this.JSC$20080_playerEvents);var S;(f==null?void 0:(S=f.getPresentingPlayerType)==null?void 0:S.call(f))===2&&this.playerAdStartHandler()}};
_.e.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.e.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.e.onVideoProgress=function(){var f,S,B=((f=this.player)==null?void 0:(S=f.getPresentingPlayerType)==null?void 0:S.call(f))===2;this.isAdPlaying!==B&&this.set("isAdPlaying",B)};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],r2.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],r2.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Nr.YtPlayerListenerBehavior),_.Z("design:type",_.Mr)],r2.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],r2.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],r2.prototype,"isAdPlaying",void 0);
_.N([_.n({reflectToAttribute:!0,value:!0}),_.Z("design:type",Boolean)],r2.prototype,"isPageLoad",void 0);_.N([_.C({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],r2);
_.p(r2,"ytd-clip-section-footer-renderer",function(){if(fYu!==void 0)return fYu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return fYu=f},{mode:1});var oDn;var SFZ;var jg=function(){return _.I.apply(this,arguments)||this};
_.q(jg,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],jg.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],jg.prototype,"data",void 0);_.N([_.C({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],jg);
_.p(jg,"ytd-clip-ad-state-renderer",function(){if(SFZ!==void 0)return SFZ;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return SFZ=f},{mode:1});var B$z;var OO=function(){var f=_.I.apply(this,arguments)||this;f.value="";f.valid=!1;f.userChangedValue=!1;f.disabled=!1;f.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return f};
_.q(OO,_.I);_.e=OO.prototype;_.e.detached=function(){this.userChangedValue=!1};
_.e.handleKeyDown=function(f){if(_.Fx)var S=13;else _.KcG&&_.V9?S=13:S=13;f.keyCode===S&&f.preventDefault()};
_.e.handleInput=function(){var f=_.m9(this.hostElement).querySelector("#title");if(f){var S=(f.value||"").replace(/\r|\n/g," ");this.set("value",S);f.value=S;this.valid=f.validate();this.userChangedValue=!0}};
_.e.handleBlur=function(){this.valid=_.m9(this.hostElement).querySelector("#title").validate()};
_.e.onValueChanged=function(){_.ew(this.hostElement,"title-changed",{title:this.value})};
_.e.onValidChanged=function(){_.ew(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.e.setInput=function(f,S){var B=_.m9(this.hostElement).querySelector("#title");B&&(B.value=f,this.handleInput(),S&&(B.invalid=!1,this.valid=!0))};
_.e.onClipCreationDisable=function(){this.set("disabled",!0)};
_.e.onClipCreationEnable=function(){this.set("disabled",!1)};
_.e.onClipCreationVisibilityChange=function(f){var S=this;f.visible?requestAnimationFrame(function(){var B;((B=_.m9(S.hostElement).querySelector("#title"))==null?void 0:B.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
OO.prototype.onValidChanged=OO.prototype.onValidChanged;OO.prototype.onValueChanged=OO.prototype.onValueChanged;OO.prototype.handleBlur=OO.prototype.handleBlur;OO.prototype.handleInput=OO.prototype.handleInput;OO.prototype.handleKeyDown=OO.prototype.handleKeyDown;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],OO.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],OO.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],OO.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],OO.prototype,"value",void 0);_.N([_.n(),_.Z("design:type",Object)],OO.prototype,"valid",void 0);_.N([_.n(),_.Z("design:type",Object)],OO.prototype,"userChangedValue",void 0);_.N([_.n(),_.Z("design:type",Object)],OO.prototype,"disabled",void 0);_.N([_.Vg("keydown"),_.Z("design:type",Function),_.Z("design:paramtypes",[KeyboardEvent]),_.Z("design:returntype")],OO.prototype,"handleKeyDown",null);
_.N([_.Vg("input"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],OO.prototype,"handleInput",null);_.N([_.Vg("blur"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],OO.prototype,"handleBlur",null);_.N([_.JO("value"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],OO.prototype,"onValueChanged",null);
_.N([_.JO("valid"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],OO.prototype,"onValidChanged",null);_.N([_.C({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],OO);
_.p(OO,"ytd-clip-creation-text-input-renderer",function(){if(B$z!==void 0)return B$z;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return B$z=f},{mode:1});var Gk2;var gDz;var e3e;var bvM;var me2;var x1=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};f.pendingStoryboardImages_={};f.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];f.tickLabelInterval=30;f.mediumTickInterval=5;f.largeTickInterval=15;f.aboveRulerHeight=32;f.rulerHeight=50;f.smallTickHeight=4;f.mediumTickHeight=8;f.largeTickHeight=16;f.mediaListeners_=
{};return f};
_.q(x1,_.I);_.e=x1.prototype;_.e.attached=function(){var f=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(S){S=_.m(["screen and (min-resolution: "+S+")","screen and (max-resolution: "+S+")"]);for(var B=S.next();!B.done;B=S.next()){B=B.value;var G=window.matchMedia(B);G&&(f.mediaListeners_[B]=f.updatePixelRatio_.bind(f),G.addEventListener?G.addEventListener("change",f.mediaListeners_[B]):G.addListener?G.addListener(f.mediaListeners_[B]):delete f.mediaListeners_[B])}})};
_.e.detached=function(){this.setPlayer(null);for(var f=_.m(Object.keys(this.mediaListeners_)),S=f.next();!S.done;S=f.next()){var B=S.value;S=this.mediaListeners_[B];(B=window.matchMedia(B))&&(B.removeEventListener?B.removeEventListener("change",S):B.removeListener&&B.removeListener(S))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.e.onVisibilityChangedAction_=function(f){var S=this;f.visible&&!this.player_&&(f=_.B8())&&f.getPlayerPromise().then(function(B){S.setPlayer(B)})};
_.e.setPlayer=function(f){f&&this.set("player_",f)};
_.e.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.e.setUpCanvas_=function(){var f=this.rulerWidth,S=this.devicePixelRatio_,B=this.visible;this.set("canvasReady_",!1);if(B&&S!==0){B=this.aboveRulerHeight+this.rulerHeight;var G=_.m9(this.hostElement).querySelector("#ticks");G.width=f*S;G.height=B*S;G.style.width=f+"px";G.style.height=B+"px";G.getContext("2d").scale(S,S);this.set("canvasReady_",!0)}};
_.e.drawRuler_=function(f,S,B,G,g,b,z,X,w,F,V,J){f&&B&&S&&(f=_.m9(this.hostElement).querySelector("#ticks"),S=f.getContext("2d"),S.clearRect(0,0,f.width,f.height),S.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),S.lineWidth=2,S.beginPath(),S.moveTo(0,this.aboveRulerHeight),S.lineTo(f.width,this.aboveRulerHeight),S.moveTo(0,f.height),S.lineTo(f.width,f.height),S.stroke(),this.drawRulerTicks_(f,b,g,G),this.drawStoryboardImages_(f,B,b,g,G),S.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
S.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(z-b,G,!1),this.rulerHeight),B=this.timeToPixels_(X-b,G,!1),S.fillRect(B,this.aboveRulerHeight,f.width-B,this.rulerHeight),this.drawSpeedLines_(f,b,J))};
_.e.drawRulerTicks_=function(f,S,B,G){var g=f.getContext("2d");g.save();g.lineWidth=1;for(var b=Math.floor(Math.max(0,S-this.tickLabelInterval));b<S+B;b++){g.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var z=(b-S)*G;g.beginPath();g.moveTo(z,f.height);var X=this.smallTickHeight;b%this.largeTickInterval===0?X=this.largeTickHeight:b%this.mediumTickInterval===0&&(X=this.mediumTickHeight);g.lineTo(z,f.height-X);g.stroke();b%this.tickLabelInterval===0&&(g.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),g.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),g.fillText(jX(b),z+4,12),g.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),g.moveTo(z,0),g.lineTo(z,this.aboveRulerHeight),g.stroke())}g.restore()};
_.e.percentToHex_=function(f){f=Math.round(f*255).toString(16);f.length<2&&(f="0"+f);return f};
_.e.drawSpeedLines_=function(f,S,B){var G=f.getContext("2d");G.save();var g=Math.min(25,Math.abs(B)-15)/25,b=f.width*.3*g,z=f.width*-.3,X=f.width*1.3,w=this.aboveRulerHeight;f=f.height;var F=Math.round(4*g),V=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");V.length<7&&(V="#"+V.substring(1,4).repeat(2));var J=this.percentToHex_(.5+g/2);J=V+J;V+="00";if(g>0)for(g=0;g<F;g++){var P=z+Math.random()*(X-z),d=w+Math.random()*(f-w),Q=b+S%b,x=G.createLinearGradient(P,d,P+Q,d);
B<0?(x.addColorStop(0,J),x.addColorStop(.4,J),x.addColorStop(.9,V)):(x.addColorStop(.1,V),x.addColorStop(.6,J),x.addColorStop(1,J));G.strokeStyle=x;G.lineWidth=1;G.beginPath();G.moveTo(P,d);G.lineTo(P+Q,d);G.stroke()}G.restore()};
_.e.getStoryboardForTime_=function(f,S,B){B===void 0&&(B=S.getNumberOfStoryboardLevels()-1);f=S.getStoryboardFrameIndex(f,B);return S.getStoryboardFrame(f,B)};
_.e.drawStoryboardImages_=function(f,S,B,G,g){if(!this.disabled){f=f.getContext("2d");var b=this.getStoryboardForTime_(0,S);if(b){var z=b.width/b.columns;b=b.height/b.rows;var X=z/b,w=this.rulerHeight*X;w=this.tickLabelInterval*(X<this.tickLabelInterval*g/this.rulerHeight?1/Math.floor(this.tickLabelInterval*g/w):Math.round(w/(this.tickLabelInterval*g)));var F=w*g,V=this.rulerHeight,J=F/this.rulerHeight,P=Math.floor(Math.max(0,B-w));for(P-=P%w;P<B+G;P+=w){var d=this.getStoryboardForTime_(P,S),Q=this.getPreloadedStoryboard_(d.url);
if(Q){var x=(P-B)*g,E=this.aboveRulerHeight,U=d.column*z,A=d.row*b;if(X<J){var t=V/(F/X);d=z;t*=b;A+=(b-t)/2}else d=F/(V*X)*z,t=b,U+=(z-d)/2;f.drawImage(Q,U,A,d,t,x,E,F,V)}else this.fetchStoryboardImage_(d)}}}};
_.e.getPreloadedStoryboard_=function(f){return this.storyboardImages_.find(function(S){if(S.src==f)return!0;var B=S.src.indexOf(f);return B!=-1&&B==S.src.length-f.length})};
_.e.fetchStoryboardImage_=function(f){var S=this,B=this.getPreloadedStoryboard_(f.url),G=this.pendingStoryboardImages_[f.url];B||G!==void 0||(B=new Promise(function(g){var b=new Image(f.width,f.height);b.src=f.url;b.onload=function(){g(b)};
b.onerror=function(){g(null)}}),this.pendingStoryboardImages_[f.url]=B,B.then(function(g){g&&S.push("storyboardImages_",g);
return g}).finally(function(){delete S.pendingStoryboardImages_[f.url]}))};
_.e.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.e.timeToPixels_=function(f,S,B){f*=S;return B===void 0||B?f+"px":f};
_.e.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
x1.prototype.drawRuler_=x1.prototype.drawRuler_;x1.prototype.setUpCanvas_=x1.prototype.setUpCanvas_;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],x1.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],x1.prototype,"ytRendererBehavior",void 0);_.N([_.n({value:0}),_.Z("design:type",Number)],x1.prototype,"start",void 0);_.N([_.n({value:30}),_.Z("design:type",Number)],x1.prototype,"end",void 0);
_.N([_.n({value:!1}),_.Z("design:type",Boolean)],x1.prototype,"visible",void 0);_.N([_.n(),_.Z("design:type",Object)],x1.prototype,"player_",void 0);_.N([_.n(),_.Z("design:type",Number)],x1.prototype,"tickSpacing",void 0);_.N([_.n(),_.Z("design:type",Number)],x1.prototype,"windowSizeSec",void 0);_.N([_.n({value:0}),_.Z("design:type",Number)],x1.prototype,"rulerWidth",void 0);_.N([_.n({value:0}),_.Z("design:type",Number)],x1.prototype,"rulerShift",void 0);
_.N([_.n({value:!1}),_.Z("design:type",Boolean)],x1.prototype,"canvasReady_",void 0);_.N([_.n({value:function(){return[]}}),
_.Z("design:type",Array)],x1.prototype,"storyboardImages_",void 0);_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],x1.prototype,"disabled",void 0);_.N([_.n({value:0}),_.Z("design:type",Number)],x1.prototype,"forceRender_",void 0);_.N([_.n({value:1}),_.Z("design:type",Number)],x1.prototype,"devicePixelRatio_",void 0);_.N([_.n({value:0}),_.Z("design:type",Number)],x1.prototype,"windowSpeed",void 0);
_.N([_.JO("visible","devicePixelRatio_","rulerWidth"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],x1.prototype,"setUpCanvas_",null);
_.N([_.JO("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.Z("design:type",Function),_.Z("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.Z("design:returntype")],x1.prototype,"drawRuler_",null);_.N([_.nP({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],x1);
_.p(x1,"yt-clip-creation-scrubber-canvas",function(){if(me2===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);me2=f}f=me2;return f},
{mode:2});var z3Y;var R3n;var EO=function(){var f=_.I.apply(this,arguments)||this;f.start=0;f.end=30;f.visible=!1;f.draggingLeft_=!1;f.draggingRight_=!1;f.draggingRuler_=!1;f.draggingWindow_=!1;f.seekableStart=0;f.seekableEnd=0;f.rulerWidth_=0;f.rulerShift_=0;f.windowSlideSpeed=0;f.disabled=!1;f.initialized=!1;f.durationAccessibilityLabel="";f.activeLoopRange_=!1;f.rulerDragMouseStart_=0;f.rulerDragRulerStart_=0;f.rulerDragStartTime_=0;f.rulerDragEndTime_=0;f.dragMouseLastX_=0;f.scrollInterval_=null;f.scrubberVe_=null;f.boundHandlers_=
{};f.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return f};
_.q(EO,_.I);_.e=EO.prototype;
_.e.created=function(){var f=this;this.JSC$20093_playerEvents=new Map;this.JSC$20093_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$20093_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$20093_playerEvents.set("onStateChange",this.onStateChange_);var S={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(S).forEach(function(B){f.boundHandlers_[B]=S[B].bind(f)})};
_.e.attached=function(){this.activeLoopRange_=!1;_.m9(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.m9(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.Eo(156731)};
_.e.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.m9(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.m9(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.e.onVisibilityChangedAction_=function(f){var S=this;f.visible&&!this.player_&&(f=_.B8())&&f.getPlayerPromise().then(function(B){S.setPlayer(B)})};
_.e.setPlayer=function(f){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20093_playerEvents);f&&(this.set("player_",f),this.ytPlayerListenerBehavior.listenToPlayerEvents(f,this.JSC$20093_playerEvents))};
_.e.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.e.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.e.beginHandleDrag_=function(f){this.disabled||(f.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=f.clientX,f.target===_.m9(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():f.target===_.m9(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.e.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.e.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.e.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.e.beginRulerDrag_=function(f){this.disabled||(f.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=f.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.e.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.e.beginWindowScroll_=function(){var f=this;this.scrollInterval_=setInterval(function(){var S=f.windowSlideSpeed;if(S=_.cIM(f.start,f.boundedRulerStartLimit_())?S-.1:_.cIM(f.end,f.boundedRulerEndLimit_())?S+.1:0){var B=f.capRulerOffset_(f.rulerShift_+S);B==f.rulerShift_?S=0:(f.set("rulerShift_",B),_.ew(f.hostElement,"set-fixed-length-range",{start:f.start+S,duration:f.end-f.start}))}f.set("windowSlideSpeed",S)},33)};
_.e.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.e.endDrag_=function(){this.logClick();var f=void 0;this.draggingRight_?f=this.end-1:this.draggingLeft_&&(f=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,f);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))};
_.e.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.e.updateRulerSize_=function(){this.set("rulerWidth_",_.m9(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.e.handleMouseDrag_=function(f){f.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(f):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(f):this.draggingWindow_&&this.handleWindowDrag_(f))};
_.e.handleRulerDrag_=function(f){f=this.pixelsToTime_(f.clientX-this.rulerDragMouseStart_);f=this.capRulerOffset_(this.rulerDragRulerStart_-f);this.set("rulerShift_",f);var S=this.rulerDragStartTime_-(this.rulerDragRulerStart_-f);_.ew(this.hostElement,"set-fixed-length-range",{start:S,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-f)-S})};
_.e.handleWindowDrag_=function(f){var S=f.clientX-this.dragMouseLastX_;this.dragMouseLastX_=f.clientX;f=this.pixelsToTime_(S);_.ew(this.hostElement,"set-fixed-length-range",{start:this.start+f,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.e.capRulerOffset_=function(f){var S=this.seekableStart-this.pixelsToTime_(16),B=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(S,f),B)};
_.e.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.e.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.e.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.e.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.e.handleWindowHandleDrag_=function(f){var S=f.clientX-this.dragMouseLastX_;this.dragMouseLastX_=f.clientX;f=this.pixelsToTime_(S);if(this.draggingLeft_){var B=this.start+f;var G=this.end}else this.draggingRight_&&(B=this.start,G=this.end+f);_.ew(this.hostElement,"set-range",{start:B,end:G,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.e.onVideoProgress_=function(f){this.disabled||(f=this.timeToPixels_(f-this.rulerShift_,this.tickSpacing_),_.m9(this.hostElement).querySelector("#playhead").style.transform="translateX("+f+")")};
_.e.onClipCreationDisable_=function(){this.endDrag_()};
_.e.timeToPixels_=function(f,S,B){f*=S;return B===void 0||B?f+"px":f};
_.e.pixelsToTime_=function(f){return f/this.tickSpacing_};
_.e.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.e.centerRuler_=function(f,S,B){this.set("rulerShift_",this.capRulerOffset_(f+(S-f)/2-B/2))};
_.e.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.e.updateLoopRange_=function(f,S,B,G,g,b,z){f&&(S&&G&&!B?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(f.pauseVideo(),f.seekTo(g,!1,void 0,void 0,50)):this.draggingRight_?(f.pauseVideo(),f.seekTo(b-.1,!1,void 0,void 0,50)):(z!==void 0?f.seekTo(z,!0,void 0,void 0,50):(S=f.getCurrentTime(),S<g||S>b?f.seekTo(g,!0,void 0,void 0,50):f.seekTo(S,!0,void 0,void 0,50)),f.playVideo()),f.setLoopRange({startTimeMs:g*1E3,endTimeMs:b*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(f.getCurrentTime())):
this.activeLoopRange_&&(f.setLoopRange(null),this.activeLoopRange_=!1))};
_.e.updateHandles_=function(){_.m9(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.m9(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.e.updateRuler_=function(){var f=this.end,S=this.start,B=this.draggableStartLimit_(),G=this.draggableEndLimit_();(S<B-.001||f>G+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.e.computeDurationLabel_=function(f,S){return f?f.replace("$clip_length",parseFloat(S).toFixed(1)):""};
_.e.computeDuration_=function(f,S){return this.isValidTime_(f)&&this.isValidTime_(S)&&f<S?S-f:0};
_.e.isValidTime_=function(f){return isNaN(parseFloat(f))||f<0?!1:this.player_?f>=this.seekableStart&&f<=this.seekableEnd:!0};
_.e.computeWindowSizeSec_=function(f,S,B){return Math.min((f||12E4)/1E3,B-S)};
_.e.computeTickSpacing_=function(f,S){return S?S/f:1};
_.e.onDragStateChanged_=function(){_.ew(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.e.centerRangeOnTime_=function(f){var S=this.duration;f=Nru(f-S/2,S,this.seekableStart,this.seekableEnd);_.ew(this.hostElement,"set-fixed-length-range",{start:f.start,duration:f.end-f.start})};
_.e.nearlyLessThan_=function(f,S,B){return f+(B===void 0?1E-6:B)<S};
_.e.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var f=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(f,this.start)||this.nearlyLessThan_(this.end,f))&&this.centerRangeOnTime_(f)}};
_.e.onStateChange_=function(f){this.visible&&!this.disabled&&f==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.e.computeDragState_=function(f,S,B,G){return f?"left":S?"right":B?"ruler":G?"window":"none"};
_.e.logClick=function(){var f=_.xc(),S=_.Of();f&&S&&this.scrubberVe_&&(_.K("combine_ve_grafts")?_.Xo(_.ik(),this.scrubberVe_,S):_.Af(f,S,this.scrubberVe_),_.uW(f,this.scrubberVe_))};
EO.prototype.onDragStateChanged_=EO.prototype.onDragStateChanged_;EO.prototype.updateRuler_=EO.prototype.updateRuler_;EO.prototype.updateHandles_=EO.prototype.updateHandles_;EO.prototype.onUpdateLoopRange=EO.prototype.onUpdateLoopRange;EO.prototype.onInitializedChanged_=EO.prototype.onInitializedChanged_;EO.prototype.onVisibleChanged_=EO.prototype.onVisibleChanged_;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],EO.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.r(_.Nr.YtPlayerListenerBehavior),_.Z("design:type",Object)],EO.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],EO.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],EO.prototype,"start",void 0);_.N([_.n(),_.Z("design:type",Object)],EO.prototype,"end",void 0);_.N([_.n({computed:"computeDuration_(start, end)"}),_.Z("design:type",Number)],EO.prototype,"duration",void 0);
_.N([_.n(),_.Z("design:type",String)],EO.prototype,"lengthTemplate",void 0);_.N([_.n({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.Z("design:type",String)],EO.prototype,"durationLabel",void 0);_.N([_.n(),_.Z("design:type",Object)],EO.prototype,"visible",void 0);_.N([_.n(),_.Z("design:type",Object)],EO.prototype,"player_",void 0);_.N([_.n(),_.Z("design:type",Object)],EO.prototype,"draggingLeft_",void 0);_.N([_.n(),_.Z("design:type",Object)],EO.prototype,"draggingRight_",void 0);
_.N([_.n(),_.Z("design:type",Object)],EO.prototype,"draggingRuler_",void 0);_.N([_.n({value:!1}),_.Z("design:type",Object)],EO.prototype,"draggingWindow_",void 0);_.N([_.n({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.Z("design:type",Number)],EO.prototype,"tickSpacing_",void 0);_.N([_.n(),_.Z("design:type",Object)],EO.prototype,"seekableStart",void 0);_.N([_.n(),_.Z("design:type",Object)],EO.prototype,"seekableEnd",void 0);
_.N([_.n(),_.Z("design:type",Number)],EO.prototype,"windowSizeMs",void 0);_.N([_.n({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.Z("design:type",Number)],EO.prototype,"windowSizeSec_",void 0);_.N([_.n(),_.Z("design:type",Object)],EO.prototype,"rulerWidth_",void 0);_.N([_.n(),_.Z("design:type",Object)],EO.prototype,"rulerShift_",void 0);_.N([_.n(),_.Z("design:type",Object)],EO.prototype,"windowSlideSpeed",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],EO.prototype,"disabled",void 0);_.N([_.n(),_.Z("design:type",Object)],EO.prototype,"initialized",void 0);_.N([_.n(),_.Z("design:type",Object)],EO.prototype,"durationAccessibilityLabel",void 0);_.N([_.n({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.Z("design:type",String)],EO.prototype,"dragState",void 0);
_.N([_.JO("visible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],EO.prototype,"onVisibleChanged_",null);_.N([_.JO("initialized"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],EO.prototype,"onInitializedChanged_",null);_.N([_.JO("player_","visible","disabled","initialized","start","end"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],EO.prototype,"onUpdateLoopRange",null);
_.N([_.JO("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],EO.prototype,"updateHandles_",null);_.N([_.JO("start","end"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],EO.prototype,"updateRuler_",null);
_.N([_.JO("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],EO.prototype,"onDragStateChanged_",null);_.N([_.nP({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],EO);
_.p(EO,"yt-clip-creation-scrubber-view",function(){if(R3n===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;z3Y===void 0&&(z3Y=document.createElement("template"));var G=z3Y;B.call(S,G.content.cloneNode(!0),f.content.firstChild);R3n=f}f=R3n;return f},{mode:2});var LB=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};f.startHighlightTimeout=0;f.endHighlightTimeout=0;return f};
_.q(LB,_.I);_.e=LB.prototype;_.e.attached=function(){var f=this;this.startInput.addEventListener("input",function(S){return f.handleStartInput_(S)});
this.endInput.addEventListener("input",function(S){return f.handleEndInput_(S)});
this.startInput.addEventListener("focusout",function(S){return f.handleStartBlur_(S)});
this.endInput.addEventListener("focusout",function(S){return f.handleEndBlur_(S)})};
_.e.setPlayer=function(f){this.set("player_",f)};
_.e.onSetFixedLengthRange_=function(f){var S=f.detail;f=S.start;var B=S.duration,G=S.startLimit;S=S.endLimit;G||(G=this.seekableStart_);S||(S=this.seekableEnd_);f=Nru(f,B,G,S);this.start=f.start;this.end=f.end};
_.e.onSetRange_=function(f){var S=f.detail;f=S.start;var B=S.end,G=S.startLimit;S=S.endLimit;G||(G=this.seekableStart_);S||(S=this.seekableEnd_);if(f=MVu(f,B,G,S,this.minLengthSec,this.maxLengthSec))this.start=f.start,this.end=f.end};
_.e.updateInputs_=function(){var f=this.end,S=this.start;this.startInput.focused||(this.startInput.value=jX(S,!0));this.endInput.focused||(this.endInput.value=jX(f,!0))};
_.e.handleStartInput_=function(f){f=AC2(f.target.value);if(f===null)this.set("startValid",!1);else{var S=this.end,B=MVu(f,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);B?(this.set("endWillUpdate",B.end!==S),this.set("startValid",B.start===f)):this.set("startValid",!1)}};
_.e.handleEndInput_=function(f){f=AC2(f.target.value);if(f===null)this.set("endValid",!1);else{var S=this.start,B=Z$X(this.start,f,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);B?(this.set("startWillUpdate",B.start!==S),this.set("endValid",B.end===f)):this.set("endValid",!1)}};
_.e.handleStartBlur_=function(f){f=AC2(f.target.value);f===null?this.startInput.value=jX(this.start,!0):this.forceUpdateInputs_(MVu(f,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.e.handleEndBlur_=function(f){f=AC2(f.target.value);f===null?this.endInput.value=jX(this.end,!0):this.forceUpdateInputs_(Z$X(this.start,f,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.e.forceUpdateInputs_=function(f){f&&(this.start=f.start,this.end=f.end);this.startInput.value=jX(this.start,!0);this.endInput.value=jX(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.e.initializeClipRange_=function(){var f=this.seekableEnd_,S=this.seekableStart_,B=this.visible_,G=this.player_;if(!G||!B||S===null||!f)this.set("initialized",!1);else if(!this.initialized){var g=G.getCurrentTime(),b=this.getDefaultLengthSec_();B=G.getVideoData();var z=G.getPlayerState()==1,X=B.isLive;b=Math.min(b,f-S);g=Math.max(0,g);f=X?Z$X(g-b,g,S,f,this.minLengthSec,this.maxLengthSec):z?Nru(g-b/2,b,S,f):Nru(g,b,S,f);this.start=f.start;this.end=f.end;this.set("initialized",!0);B.isLive&&G.seekTo(f.start);
this.startInput.value=jX(this.start,!0);this.endInput.value=jX(this.end,!0)}};
_.e.onStartChanged_=function(){var f=this;_.ew(this.hostElement,"start-changed",{start:this.start});var S;isNaN((S=this.oldStart)!=null?S:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){f.set("highlightStart",!1);f.startHighlightTimeout=0;f.oldStart=f.start},3E3))};
_.e.onEndChanged_=function(){var f=this;_.ew(this.hostElement,"end-changed",{end:this.end});var S;isNaN((S=this.oldEnd)!=null?S:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){f.set("highlightEnd",!1);f.endHighlightTimeout=0;f.oldEnd=f.end},3E3))};
_.e.onVisibilityChangedAction_=function(f){var S=this;this.set("visible_",f.visible);this.visible_&&!this.player_&&(f=_.B8())&&f.getPlayerPromise().then(function(B){S.setPlayer(B)})};
_.e.computeMinLengthSec_=function(f){return f/1E3||5};
_.e.computeMaxLengthSec_=function(f){return f/1E3||60};
_.e.computeDefaultLengthSec_=function(f){return f/1E3};
_.e.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.e.computeSeekableStart_=function(f,S){return f&&S?f.getProgressState(1).seekableStart:0};
_.e.computeSeekableEnd_=function(f,S){return f&&S?f.getProgressState(1).seekableEnd:0};
_.e.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.e.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.e.onDragState_=function(f){this.set("highlightStart",f.detail.startChanging);this.set("highlightEnd",f.detail.endChanging)};
LB.prototype.onDragState_=LB.prototype.onDragState_;LB.prototype.onEndChanged_=LB.prototype.onEndChanged_;LB.prototype.onStartChanged_=LB.prototype.onStartChanged_;LB.prototype.initializeClipRange_=LB.prototype.initializeClipRange_;LB.prototype.updateInputs_=LB.prototype.updateInputs_;LB.prototype.onSetRange_=LB.prototype.onSetRange_;LB.prototype.onSetFixedLengthRange_=LB.prototype.onSetFixedLengthRange_;
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],LB.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],LB.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],LB.prototype,"data",void 0);_.N([_.n({value:0}),_.Z("design:type",Number)],LB.prototype,"start",void 0);_.N([_.n({value:!0}),_.Z("design:type",Boolean)],LB.prototype,"startValid",void 0);
_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],LB.prototype,"startWillUpdate",void 0);_.N([_.n({value:30}),_.Z("design:type",Number)],LB.prototype,"end",void 0);_.N([_.n({value:!0}),_.Z("design:type",Boolean)],LB.prototype,"endValid",void 0);_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],LB.prototype,"endWillUpdate",void 0);_.N([_.n({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.Z("design:type",Number)],LB.prototype,"minLengthSec",void 0);
_.N([_.n({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.Z("design:type",Number)],LB.prototype,"maxLengthSec",void 0);_.N([_.n({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.Z("design:type",Number)],LB.prototype,"defaultLengthSec",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],LB.prototype,"visible_",void 0);_.N([_.n(),_.Z("design:type",Object)],LB.prototype,"player_",void 0);
_.N([_.n({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.Z("design:type",Number)],LB.prototype,"seekableStart_",void 0);_.N([_.n({computed:"computeSeekableEnd_(player_, visible_)"}),_.Z("design:type",Number)],LB.prototype,"seekableEnd_",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],LB.prototype,"initialized",void 0);_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],LB.prototype,"disabled",void 0);
_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],LB.prototype,"highlightStart",void 0);_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],LB.prototype,"highlightEnd",void 0);_.N([_.vF("#start"),_.Z("design:type",HTMLInputElement)],LB.prototype,"startInput",void 0);_.N([_.vF("#end"),_.Z("design:type",HTMLInputElement)],LB.prototype,"endInput",void 0);
_.N([_.Vg("set-fixed-length-range"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],LB.prototype,"onSetFixedLengthRange_",null);_.N([_.Vg("set-range"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],LB.prototype,"onSetRange_",null);_.N([_.JO("start","end"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],LB.prototype,"updateInputs_",null);
_.N([_.JO("player_","visible_","seekableStart_","seekableEnd_"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],LB.prototype,"initializeClipRange_",null);_.N([_.JO("start"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],LB.prototype,"onStartChanged_",null);_.N([_.JO("end"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],LB.prototype,"onEndChanged_",null);
_.N([_.Vg("clips-drag-state"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],LB.prototype,"onDragState_",null);_.N([_.nP({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],LB);
_.p(LB,"yt-clip-creation-scrubber-renderer",function(){if(bvM===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;e3e===void 0&&(e3e=document.createElement("template"));var G=e3e;B.call(S,G.content.cloneNode(!0),f.content.firstChild);bvM=f}f=bvM;return f},{mode:2});var k1=function(){var f=_.I.apply(this,arguments)||this;f.player_=null;f.JSC$20107_playerEvents=new Map;f.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return f};
_.q(k1,_.I);_.e=k1.prototype;_.e.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"}}}};
_.e.created=function(){this.JSC$20107_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$20107_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$20107_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$20107_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.e.detached=function(){this.setPlayer(null)};
_.e.onVisibilityChangedAction_=function(f){var S=this,B;if((B=this.data)==null?0:B.externalVideoId){var G;this.videoId=(G=this.data)==null?void 0:G.externalVideoId}this.getPlayer().then(function(g){if(f.visible)S.returnTime=g.getCurrentTime(),S.isAtLiveHead=g.getProgressState().isAtLiveHead;else{var b=S.returnTime;S.isAtLiveHead&&(b=Number.POSITIVE_INFINITY);g.seekTo(b,void 0,void 0,void 0,51)}})};
_.e.getPlayer=function(){var f=this;if(!this.player_){var S=_.B8();if(S)return S.getPlayerPromise().then(function(B){f.setPlayer(B);return B})}return Promise.resolve(this.player_)};
_.e.setPlayer=function(f){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20107_playerEvents);if(f){this.player_=f;var S;((S=this.data)==null?0:S.externalVideoId)||this.set("videoId",f.getVideoData().video_id||"");var B;(f==null?void 0:(B=f.getPresentingPlayerType)==null?void 0:B.call(f))===2&&(this.set("isAdPlaying",!0),_.bW(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(f,this.JSC$20107_playerEvents)}};
_.e.ready=function(){_.m9(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.e.onTitleChanged_=function(f){this.set("titleValue",f.detail.title)};
_.e.onStartChanged_=function(f){this.set("start",f.detail.start)};
_.e.onEndChanged_=function(f){this.set("end",f.detail.end)};
_.e.onTitleValidChanged_=function(f){this.set("titleValid",f.detail.valid)};
_.e.onStartValidChanged_=function(f){this.set("startValid",f.detail.valid)};
_.e.onEndValidChanged_=function(f){this.set("endValid",f.detail.valid)};
_.e.onVideoDataChange_=function(){var f;if((f=this.data)==null||!f.externalVideoId){var S;this.set("videoId",((S=this.player_)==null?void 0:S.getVideoData().video_id)||"")}};
_.e.computeFormValid_=function(f,S,B,G){return!!(f&&S&&B&&G)};
_.e.computeCancelButton_=function(f,S,B){return f&&_.H(f,_.IR)?{buttonRenderer:Object.assign({},_.H(f,_.IR),{isDisabled:S||B})}:null};
_.e.computeSubmitButton_=function(f,S,B){return f&&_.H(f,_.IR)?{buttonRenderer:Object.assign({},_.H(f,_.IR),{command:void 0,isDisabled:!this.formValid||S||B})}:null};
_.e.computeSubmitCommand_=function(f){return f||null};
_.e.onSubmit_=function(f){var S=this;f.stopPropagation();f.preventDefault();this.submitCommand_&&(f={},f.comment_text=this.titleValue,f.clip_external_video_id=this.videoId,f.clip_offset_ms=parseInt(this.start*1E3,10),f.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.RD(this.hostElement,[this.submitCommand_,f]).then(function(){S.set("isLoading_",!1)},function(){S.set("isLoading_",!1)}))};
_.e.playerAdStartHandler_=function(){_.bW(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.e.playerAdEndHandler_=function(){_.bW(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.e.onVideoProgress_=function(){var f=this;this.getPlayer().then(function(S){var B,G=(S==null?void 0:(B=S.getPresentingPlayerType)==null?void 0:B.call(S))===2;f.isAdPlaying!==G&&(G?f.playerAdStartHandler_():f.playerAdEndHandler_())})};
k1.prototype.onEndValidChanged_=k1.prototype.onEndValidChanged_;k1.prototype.onStartValidChanged_=k1.prototype.onStartValidChanged_;k1.prototype.onTitleValidChanged_=k1.prototype.onTitleValidChanged_;k1.prototype.onEndChanged_=k1.prototype.onEndChanged_;k1.prototype.onStartChanged_=k1.prototype.onStartChanged_;k1.prototype.onTitleChanged_=k1.prototype.onTitleChanged_;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],k1.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.r(_.Nr.YtPlayerListenerBehavior),_.Z("design:type",Object)],k1.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],k1.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],k1.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],k1.prototype,"data",void 0);_.N([_.n({value:""}),_.Z("design:type",String)],k1.prototype,"titleValue",void 0);
_.N([_.n({value:!1}),_.Z("design:type",Boolean)],k1.prototype,"titleValid",void 0);_.N([_.n({value:0}),_.Z("design:type",Number)],k1.prototype,"start",void 0);_.N([_.n({value:!0}),_.Z("design:type",Boolean)],k1.prototype,"startValid",void 0);_.N([_.n({value:0}),_.Z("design:type",Number)],k1.prototype,"end",void 0);_.N([_.n({value:!0}),_.Z("design:type",Boolean)],k1.prototype,"endValid",void 0);_.N([_.n({value:""}),_.Z("design:type",String)],k1.prototype,"videoId",void 0);
_.N([_.n({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.Z("design:type",Boolean)],k1.prototype,"formValid",void 0);_.N([_.n({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.Z("design:type",Object)],k1.prototype,"submitButton_",void 0);_.N([_.n({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.Z("design:type",Object)],k1.prototype,"submitCommand_",void 0);
_.N([_.n({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.Z("design:type",Object)],k1.prototype,"cancelButton_",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],k1.prototype,"isLoading_",void 0);_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],k1.prototype,"isAdPlaying",void 0);_.N([_.n({value:0}),_.Z("design:type",Number)],k1.prototype,"returnTime",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],k1.prototype,"isAtLiveHead",void 0);
_.N([_.Vg("title-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],k1.prototype,"onTitleChanged_",null);_.N([_.Vg("start-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],k1.prototype,"onStartChanged_",null);_.N([_.Vg("end-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],k1.prototype,"onEndChanged_",null);
_.N([_.Vg("title-valid-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],k1.prototype,"onTitleValidChanged_",null);_.N([_.Vg("start-valid-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],k1.prototype,"onStartValidChanged_",null);_.N([_.Vg("end-valid-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],k1.prototype,"onEndValidChanged_",null);
_.N([_.nP({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],k1);
_.p(k1,"yt-clip-creation-renderer",function(){if(gDz===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;Gk2===void 0&&(Gk2=document.createElement("template"));var G=Gk2;B.call(S,G.content.cloneNode(!0),f.content.firstChild);gDz=f}f=gDz;return f},{mode:2});var nB=function(){return _.I.apply(this,arguments)||this};
_.q(nB,_.I);nB.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"}}}};
nB.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(f){return f.hasOwnProperty("clipCreationRenderer")})&&_.bW(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
nB.prototype.onPanelContentVisibleChanged=nB.prototype.onPanelContentVisibleChanged;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],nB.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],nB.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ti.YtVisibilityBehavior),_.Z("design:type",Object)],nB.prototype,"ytVisibilityBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],nB.prototype,"ytdReduxBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],nB.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],nB.prototype,"panelContentVisible",void 0);_.N([_.JO("panelContentVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nB.prototype,"onPanelContentVisibleChanged",null);_.N([_.C({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],nB);
_.p(nB,"ytd-clip-section-renderer",function(){if(oDn!==void 0)return oDn;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return oDn=f},{mode:1});var XBu;var sO=function(){return _.I.apply(this,arguments)||this};
_.q(sO,_.I);_.e=sO.prototype;
_.e.onKeyDown=function(f){if(this.snippetElements.length!==0&&(f=f.keyCode,f===38||f===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);f===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.Uy(this.highlightedIndex,-1,this.snippetElements.length);f=this.snippetElements.length;var S=this.highlightedIndex%f;this.highlightedIndex=S*f<0?S+f:S;f=this.snippetElements[this.highlightedIndex];this.highlightSnippet(f);this.ensureVisible(f)}};
_.e.onKeyUp=function(f){var S=this;qzu(f)&&(f.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.xJ.cancelJob(this.inputTimerId),this.inputTimerId=_.xJ.addLowPriorityJob(function(){S.typedValue&&(S.fetchSnippets(S.typedValue),S.logInputGesture(S.data))},1E3))};
_.e.onClick=function(f){(f=_.mNN(f.target,null,"snippet-item"))&&this.selectSnippet(f)};
_.e.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.e.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.e.ready=function(){var f=this;this.inputElement.addEventListener("focus",function(){f.snippetsWrapper.style.removeProperty("display")})};
_.e.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.e.getSourceTimelines=function(){if(!this.data)return[];var f=[];if(this.data.searchInVideoSources)for(var S=_.m(this.data.searchInVideoSources),B=S.next();!B.done;B=S.next())B=B.value,B==="SEARCH_IN_VIDEO_SOURCE_ASR"?f.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):B==="SEARCH_IN_VIDEO_SOURCE_OCR"&&f.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return f};
_.e.fetchSnippets=function(f){var S=_.bW(this.hostElement,"yt-get-current-video-id-action")[0],B=this.getSourceTimelines();f={getSearchInVideoCommand:{externalVideoId:S,query:f!=null?f:"",sourceTimelines:B},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.oy().resolve(_.S7).resolveCommand(f,{form:{element:this.hostElement}})};
_.e.filterSnippets=function(f,S){var B=this;if(S){this.filteredSnippets=(0,_.$v.unsafeClone)(f);var G=RegExp(_.LGN(S),"i");this.filteredSnippets=this.filteredSnippets.filter(function(z){return G.test(B.ytRendererBehavior.getSimpleString(z.snippet))});
f=_.m(this.filteredSnippets);for(var g=f.next();!g.done;g=f.next()){g=g.value;var b=this.ytRendererBehavior.getSimpleString(g.snippet);g.snippet={runs:[{text:b.substring(0,b.toLowerCase().indexOf(S))},{text:b.substring(b.toLowerCase().indexOf(S),b.toLowerCase().indexOf(S)+S.length),bold:!0},{text:b.substring(b.toLowerCase().indexOf(S)+S.length,b.length)}]}}}else this.filteredSnippets=f};
_.e.onUpdateSearchInVideoResults=function(f){if(!(this.snippets.length>0)){var S,B,G;if((G=(S=_.H(f,sie))==null?void 0:(B=S.results)==null?void 0:B.length)!=null&&G){var g;this.filteredSnippets=this.snippets=((g=_.H(f,sie))==null?void 0:g.results).map(function(b){var z,X,w;return{startMs:b==null?void 0:(z=b.searchInVideoResultRenderer)==null?void 0:z.startMs,startTimeText:b==null?void 0:(X=b.searchInVideoResultRenderer)==null?void 0:X.startTimeText,snippet:b==null?void 0:(w=b.searchInVideoResultRenderer)==
null?void 0:w.snippet}})}}};
_.e.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};
_.e.highlightSnippet=function(f){f.classList.add("highlighted")};
_.e.removeSnippetHighlight=function(f){f.classList.remove("highlighted")};
_.e.selectSnippet=function(f){this.typedValue=String(f.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(f);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.e.ensureVisible=function(f){var S=this.snippetsWrapper.scrollTop,B=S+this.snippetsWrapper.clientHeight,G=f.offsetTop-this.snippetsWrapper.offsetTop;f=G+f.clientHeight;G<S?this.snippetsWrapper.scrollTop-=S-G:f>B&&(this.snippetsWrapper.scrollTop+=f-B)};
_.e.seekPlayer=function(f){var S,B;return _.R(function(G){if(G.nextAddress==1){if(!f)return G.jumpTo(0);S=Number(f.dataset.startOffset);return _.h(G,_.GG().getPlayerPromise(),3)}B=G.yieldResult;B.seekTo(S/1E3,!0);B.wakeUpControls();_.TT(G)})};
_.e.logInputGesture=function(f){var S=_.xc();S&&(f==null?0:f.trackingParams)&&_.aD(S,_.Ye(f.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.e.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AW("typed-value-changed",this.typedValue))};
_.e.updateTypedValueFromBinding=function(f){this.typedValue=f.currentTarget.value};
sO.prototype.typedValueChangedForBinding=sO.prototype.typedValueChangedForBinding;sO.prototype.dataChanged=sO.prototype.dataChanged;sO.prototype.panelContentVisibleChanged=sO.prototype.panelContentVisibleChanged;sO.prototype.onClick=sO.prototype.onClick;sO.prototype.onKeyUp=sO.prototype.onKeyUp;sO.prototype.onKeyDown=sO.prototype.onKeyDown;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],sO.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],sO.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],sO.prototype,"data",void 0);_.N([_.n({value:[]}),_.Z("design:type",Array)],sO.prototype,"snippets",void 0);_.N([_.n({value:[]}),_.Z("design:type",Array)],sO.prototype,"filteredSnippets",void 0);_.N([_.n({value:[]}),_.Z("design:type",Array)],sO.prototype,"snippetElements",void 0);
_.N([_.vF("#siv-input"),_.Z("design:type",HTMLElement)],sO.prototype,"inputElement",void 0);_.N([_.vF("#siv-snippets-wrapper"),_.Z("design:type",HTMLElement)],sO.prototype,"snippetsWrapper",void 0);_.N([_.n(),_.Z("design:type",String)],sO.prototype,"typedValue",void 0);_.N([_.n({value:-1}),_.Z("design:type",Number)],sO.prototype,"highlightedIndex",void 0);_.N([_.Vg("keydown"),_.Z("design:type",Function),_.Z("design:paramtypes",[_.dX]),_.Z("design:returntype")],sO.prototype,"onKeyDown",null);
_.N([_.Vg("keyup"),_.Z("design:type",Function),_.Z("design:paramtypes",[_.dX]),_.Z("design:returntype")],sO.prototype,"onKeyUp",null);_.N([_.Vg("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],sO.prototype,"onClick",null);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],sO.prototype,"panelContentVisible",void 0);
_.N([_.JO("panelContentVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],sO.prototype,"panelContentVisibleChanged",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],sO.prototype,"dataChanged",null);_.N([_.JO("typedValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],sO.prototype,"typedValueChangedForBinding",null);
_.N([_.C({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],sO);
_.p(sO,"ytd-search-in-video-renderer",function(){if(XBu!==void 0)return XBu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return XBu=f},{mode:1});var wBz;var Db=function(){return _.I.apply(this,arguments)||this};
_.q(Db,_.I);Db.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
Db.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]]"}}}}}};
Db.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var f,S,B,G,g=(S=_.H((f=this.data)==null?void 0:f.onClickCommand,_.qG))==null?void 0:(B=S.item)==null?void 0:(G=B.notificationTextRenderer)==null?void 0:G.successResponseText;g&&_.fFA(this.hostElement,g)}};
_.y3.Object.defineProperties(Db.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var f,S,B,G;return this.isProductPlaceholder&&((f=this.data)==null?void 0:(S=f.hiddenProductOptions)==null?void 0:S.showDropCountdown)&&!!((B=this.data)==null?0:(G=B.hiddenProductOptions)==null?0:G.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var f;return!this.isProductPlaceholder&&!((f=this.data)==null?0:f.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var f,S;return!((f=this.data)==null?0:f.priceReplacementText)&&!((S=this.data)==null||!S.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Db.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Db.prototype,"componentBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Db.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Db.prototype,"data",void 0);
_.N([_.n({reflectToAttribute:!0}),_.k("isProductPlaceholder"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Db.prototype,"useCenterLayoutContainer",null);_.N([_.n({computed:"computeButtonOverride(data)"}),_.Z("design:type",Object)],Db.prototype,"buttonOverride",void 0);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Db.prototype,"isProductPlaceholder",null);
_.N([_.k("isProductPlaceholder"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Db.prototype,"showDropCountdown",null);_.N([_.k("isProductPlaceholder","data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Db.prototype,"showBrandName",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Db.prototype,"showPriceReplacementText",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Db.prototype,"showPrice",null);
_.N([_.k("isProductPlaceholder"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Db.prototype,"showMetadata",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],Db);
_.p(Db,"ytd-product-list-item-renderer",function(){if(wBz!==void 0)return wBz;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return wBz=f},{mode:1});var h3M;var Ip=function(){return _.I.apply(this,arguments)||this};
_.q(Ip,_.I);Ip.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
Ip.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
Ip.prototype.panelContentVisibleChanged=function(){var f=this,S;return _.R(function(B){if(B.nextAddress==1)return f.playerApi?B.jumpTo(2):_.h(B,_.GG().getPlayerPromise(),3);B.nextAddress!=2&&(f.playerApi=B.yieldResult);(S=f.playerApi)==null||S.productsInVideoVisibilityUpdated(!!f.panelContentVisible);_.TT(B)})};
Ip.prototype.panelContentVisibleChanged=Ip.prototype.panelContentVisibleChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Ip.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Ip.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ip.prototype,"panelContentVisible",void 0);_.N([_.n(),_.Z("design:type",Object)],Ip.prototype,"data",void 0);
_.N([_.JO("panelContentVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype",Promise)],Ip.prototype,"panelContentVisibleChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],Ip);
_.p(Ip,"ytd-product-list-renderer",function(){if(h3M!==void 0)return h3M;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return h3M=f},{mode:1});var T$n;var UO=function(){var f=_.I.apply(this,arguments)||this;f.hideTimestamps=!!_.wQ("hide-transcript-timestamps");f.currentCueIndex=-1;f.flatCues=[];f.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};f.TEST_ONLY={getFlatCues:function(){return f.flatCues}};
return f};
_.q(UO,_.I);_.e=UO.prototype;_.e.hideTimestampsChanged=function(){_.Xw("hide-transcript-timestamps",this.hideTimestamps)};
_.e.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.e.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.e.dataChanged=function(){var f;if((f=this.data)!=null&&f.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;f=_.m(this.data.cueGroups);for(var S=f.next();!S.done;S=f.next()){S=_.m(_.H(S.value,DQB).cues);for(var B=S.next();!B.done;B=S.next())this.flatCues.push(Number(_.H(B.value,I4u).startOffsetMs))}}};
_.e.onYtPlayerTimeChanged=function(f){if(!(f<0)){for(var S=this.currentCueIndex,B=S;;){var G=B>=0?this.flatCues[B]/1E3:-1;if(f+.5<G)--B;else if(G=B+1<this.flatCues.length?this.flatCues[B+1]/1E3:Infinity,f+.5>G)B+=1;else break}B!==S&&(S>=0&&((f=this.getCueElement(S))&&f.classList.remove("active"),(S=this.getCueGroupElement(S))&&S.classList.remove("active")),(S=this.getCueElement(B))&&S.classList.add("active"),(S=this.getCueGroupElement(B))&&S.classList.add("active"),this.currentCueIndex=B,this.isHovered||
this.scrollElementToTop(B))}};
_.e.scrollElementToTop=function(f){f=this.getCueElement(f>=3?f-3:0);this.hostElement.scrollTop=Math.min(f.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.e.getCueElement=function(f){return _.m9(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[f]+'"]')};
_.e.getCueGroupElement=function(f){return(f=this.getCueElement(f))&&f.parentElement?f.parentElement.parentElement:null};
_.e.onTap=function(f){var S=_.lt(f);f.target.classList.contains("cue")&&this.seekCueElement(S)};
_.e.onKeyPress=function(f){f.keyCode==13&&(f=_.mNN(f.target,null,"cue"))&&this.seekCueElement(f)};
_.e.seekCueElement=function(f){f=Number(f.getAttribute("start-offset"));_.bW(this.hostElement,"yt-transcript-player-seek",[f/1E3])};
_.e.onMouseEnter=function(){this.isHovered=!0};
_.e.onMouseLeave=function(){this.isHovered=!1};
UO.prototype.onMouseLeave=UO.prototype.onMouseLeave;UO.prototype.onMouseEnter=UO.prototype.onMouseEnter;UO.prototype.onKeyPress=UO.prototype.onKeyPress;UO.prototype.onTap=UO.prototype.onTap;UO.prototype.dataChanged=UO.prototype.dataChanged;UO.prototype.hideTimestampsChanged=UO.prototype.hideTimestampsChanged;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],UO.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],UO.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],UO.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],UO.prototype,"hideTimestamps",void 0);_.N([_.n(),_.Z("design:type",Boolean)],UO.prototype,"isHovered",void 0);_.N([_.JO("hideTimestamps"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],UO.prototype,"hideTimestampsChanged",null);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],UO.prototype,"dataChanged",null);_.N([_.Vg("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],UO.prototype,"onTap",null);_.N([_.Vg("keypress"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],UO.prototype,"onKeyPress",null);
_.N([_.Vg("mouseenter"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],UO.prototype,"onMouseEnter",null);_.N([_.Vg("mouseleave"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],UO.prototype,"onMouseLeave",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],UO);
_.p(UO,"ytd-transcript-body-renderer",function(){if(T$n!==void 0)return T$n;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return T$n=f},{mode:1});var FAu;var CB=function(){var f=_.I.apply(this,arguments)||this;f.darkerPanels=_.K("web_watch_darker_panels");return f};
_.q(CB,_.I);CB.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],CB.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],CB.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],CB.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],CB.prototype,"darkerPanels",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],CB);
_.p(CB,"ytd-transcript-footer-renderer",function(){if(FAu!==void 0)return FAu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return FAu=f},{mode:1});var VvY;var J8M;var pB=function(){var f=_.I.apply(this,arguments)||this;f.systemIcons=_.K("kevlar_system_icons");f.showClearButton=!1;return f};
_.q(pB,_.I);_.e=pB.prototype;_.e.handleInput=function(f){var S=this;f.target.value.length?_.NJ(this,"ytdTranscriptSearchBoxSearch",function(){S.emitSearchEvent(f)},500):(_.F_1(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=f.target.value.length>0};
_.e.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.e.handleClick=function(){var f,S=(f=this.data)==null?void 0:f.trackingParams;S&&_.TE(_.ik(),S)};
_.e.handleClear=function(){_.F_1(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var f,S,B=(S=_.H((f=this.data)==null?void 0:f.clearButton,_.IR))==null?void 0:S.trackingParams;B&&_.TE(_.ik(),B);this.clear()};
_.e.emitSearchEvent=function(f){_.ew(this.hostElement,"yt-transcript-search-box-search",{query:f.target.value});var S,B;(f=(B=_.H((S=this.data)==null?void 0:S.searchButton,_.IR))==null?void 0:B.trackingParams)&&_.TE(_.ik(),f)};
_.e.emitClearEvent=function(){_.ew(this.hostElement,"yt-transcript-search-box-clear")};
_.y3.Object.defineProperties(pB.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.m9(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],pB.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],pB.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],pB.prototype,"systemIcons",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],pB);
_.p(pB,"ytd-transcript-search-box-renderer",function(){if(J8M!==void 0)return J8M;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return J8M=f},{mode:1});var PnZ;var vDZ;var AQ=function(){return _.I.apply(this,arguments)||this};
_.q(AQ,_.I);AQ.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var f,S;this.sectionHeaderAriaLabel=(f=this.data)==null?void 0:(S=f.accessibility)==null?void 0:S.accessibilityData.label}};
AQ.prototype.fireSelectedEvent=function(f){_.ew(this.hostElement,"ytd-transcript-section-header",{startMs:f})};
AQ.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
AQ.prototype.handleKeyPress=function(f){this.data&&f.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.y3.Object.defineProperties(AQ.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var f,S;return(S=(f=this.data)==null?void 0:f.enableTappableTranscriptHeader)!=null?S:!1}}});
AQ.prototype.dataChanged=AQ.prototype.dataChanged;_.N([_.n(),_.Z("design:type",Object)],AQ.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",String)],AQ.prototype,"sectionHeaderAriaLabel",void 0);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],AQ.prototype,"enableTappableTranscriptHeader",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],AQ.prototype,"dataChanged",null);
_.N([_.C({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],AQ);
_.p(AQ,"ytd-transcript-section-header-renderer",function(){if(vDZ!==void 0)return vDZ;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return vDZ=f},{mode:1});var KA2;var dez;var NO=function(){var f=_.I.apply(this,arguments)||this;f.isEditMode=!1;f.touchCaptionsEnabled=!1;f.deleteCaptionCorrectionPopupCommand=null;f.voteCaptionCorrectionPopupCommand=null;f.roundedContainer=!0;f.mouseOver=!1;f.textChanged=!1;f.messages={suggest_correction:_.Jf("suggest_correction",void 0,"Edit caption"),suggested_caption:_.Jf("suggested_caption",void 0,"Suggested caption"),submit_correction:_.Jf("submit_correction",void 0,"Submit for review"),cancel_correction:_.Jf("cancel_correction",
void 0,"Cancel"),replay_segment:_.Jf("replay_segment",void 0,"Re-play segment"),delete_correction:_.Jf("delete_correction",void 0,"Delete correction")};f.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return f};
_.q(NO,_.I);_.e=NO.prototype;_.e.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)};
_.e.handleDelete=function(f){if(this.deleteCaptionCorrectionPopupCommand){var S=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);S&&this.ytdOpenPopupBehavior.openPopup(S);f.stopPropagation()}};
_.e.handleSubmit=function(f){if(this.data&&this.data.submitCaptionCorrectionCommand&&(f.stopPropagation(),this.textChanged)){var S;f=(S=_.H(this.data.submitCaptionCorrectionCommand,_.xG$))==null?void 0:S.params;S=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:f,correctionText:String(this.ironTextAreaElement.value),originalText:_.ac(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(S);this.isEditMode=!1}};
_.e.handleUpdateSegmentText=function(f){(f=_.H(f,S_O))&&f.targetId&&this.data&&f.targetId===this.data.targetId&&(f.userCorrection&&(this.editedText=f.userCorrection),f.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.ac(this.data.snippet)),f.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=f.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=f.voteCaptionCorrectionPopupCommand?
f.voteCaptionCorrectionPopupCommand:null,f.accessibility&&(this.segmentAriaLabel=f.accessibility.accessibilityData.label))};
_.e.handleCancel=function(f){this.isEditMode=!1;f.stopPropagation();this.logClientVe(159409)};
_.e.handleEditSegmentCommand=function(f){(f=_.H(f,oIz))&&f.targetId&&this.data&&f.targetId===this.data.targetId&&this.handleEdit()};
_.e.handleEditButtonClick=function(f){this.data&&(this.handleEdit(),f.stopPropagation())};
_.e.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var f;(f=this.ironTextAreaElement.textarea)==null||f.focus();this.logClientVe(159407)}};
_.e.handleMouseEnter=function(){this.mouseOver=!0};
_.e.handleMouseLeave=function(){this.mouseOver=!1};
_.e.handleReplay=function(f){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),f.stopPropagation(),this.logClientVe(159408))};
_.e.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()))};
_.e.handleKeypress=function(f){this.data&&(this.isEditMode?f.stopPropagation():this.isEnterPress(f)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(f)&&this.logClientVe(138758))};
_.e.handleTextboxClick=function(f){f.stopPropagation()};
_.e.handleTextboxKeydown=function(f){this.isControlEnterPress(f)?this.handleSubmit(f):f.key==="Escape"&&this.handleCancel(f)};
_.e.handleTextboxKeyup=function(){this.textChanged=_.ac(this.latestText)!==String(this.ironTextAreaElement.value)};
_.e.fireSelectedEvent=function(f){_.ew(this.hostElement,"yt-transcript-segment-selected",{startMs:f})};
_.e.fireReplayEvent=function(f,S){_.ew(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(f-100,0),endMs:S})};
_.e.fireEditEvent=function(f,S){_.ew(this.hostElement,"yt-transcript-segment-edit",{startMs:f,endMs:S})};
_.e.isEnterPress=function(f){return f.key==="Enter"||f.code==="Enter"||f.code==="NumpadEnter"||f.keyCode===13?!0:!1};
_.e.isControlEnterPress=function(f){var S=f.key==="Enter"||f.code==="Enter"||f.code==="NumpadEnter"||f.keyCode===13;return(f.ctrlKey||f.metaKey)&&S};
_.e.isCopyPress=function(f){var S=f.ctrlKey;return f.key==="c"&&S};
_.e.logClick=function(){var f,S=(f=this.data)==null?void 0:f.trackingParams;S&&_.TE(_.ik(),S)};
_.e.logClientVe=function(f){_.h0(_.ik(),_.Eo(f))};
_.y3.Object.defineProperties(NO.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}}});
NO.prototype.handleMouseLeave=NO.prototype.handleMouseLeave;NO.prototype.handleMouseEnter=NO.prototype.handleMouseEnter;NO.prototype.dataChanged=NO.prototype.dataChanged;_.N([_.r(_.b3.YtActionHandlerBehavior),_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],NO.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.a5),_.Z("design:type",Object)],NO.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],NO.prototype,"ytRendererBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],NO.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],NO.prototype,"isEditMode",void 0);_.N([_.n(),_.Z("design:type",Object)],NO.prototype,"touchCaptionsEnabled",void 0);_.N([_.n(),_.Z("design:type",Object)],NO.prototype,"editedText",void 0);_.N([_.n(),_.Z("design:type",Object)],NO.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.N([_.n(),_.Z("design:type",Object)],NO.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.N([_.n(),_.Z("design:type",String)],NO.prototype,"segmentAriaLabel",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],NO.prototype,"roundedContainer",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],NO.prototype,"mouseOver",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],NO.prototype,"textChanged",void 0);_.N([_.n(),_.Z("design:type",Object)],NO.prototype,"messages",void 0);
_.N([_.vF("#suggestion"),_.Z("design:type",Object)],NO.prototype,"ironTextAreaElement",void 0);_.N([_.k("data","editedText"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],NO.prototype,"latestText",null);_.N([_.k("touchCaptionsEnabled","isEditMode"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],NO.prototype,"enableEditButton",null);
_.N([_.k("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],NO.prototype,"enableUndoButton",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NO.prototype,"dataChanged",null);_.N([_.Vg("mouseenter"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NO.prototype,"handleMouseEnter",null);
_.N([_.Vg("mouseleave"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NO.prototype,"handleMouseLeave",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],NO);
_.p(NO,"ytd-transcript-segment-renderer",function(){if(dez!==void 0)return dez;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return dez=f},{mode:1});var MO=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};f.isError=!1;f.darkerPanels=_.K("web_watch_darker_panels");f.useParentMaxHeight=_.K("web_watch_transscript_use_parent_max_height");f.segmentOffsets=[];f.segmentIndex=-1;return f};
_.q(MO,_.I);_.e=MO.prototype;_.e.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"}}}}};
_.e.segmentsChanged=function(){this.updateOffsets()};
_.e.onYtPlayerTimeChanged=function(f){for(var S=this.segmentIndex,B=S;;){if(B>=0){var G=this.segmentOffsets[B].start;var g=this.segmentOffsets[B].isAutoScrollable}else G=-1,g=!0;var b=f+.5;if(!g){G=B+1<this.segmentOffsets.length?this.segmentOffsets[B+1].start:Infinity;if(b>=G){B+=1;continue}B=-1;break}if(b<G)G=B-1>=0&&this.segmentOffsets[B-1].isAutoScrollable,g=B===0||G?1:2,B-=g;else if(g=B+1<this.segmentOffsets.length&&this.segmentOffsets[B+1].isAutoScrollable?1:2,G=B+g<this.segmentOffsets.length?
this.segmentOffsets[B+g].start:Infinity,b>G)B+=g;else{if(B<0)break;B<this.segmentOffsets.length&&b>this.segmentOffsets[B].end&&(B=-1);break}}if(S!==B){if(S>=0){var z;(z=this.getSegmentElement(S))==null||z.classList.remove("active")}this.segmentIndex=B;if(!(B<0)){var X;(X=this.getSegmentElement(B))==null||X.classList.add("active");this.isHovered||this.scrollElementToTop(B)}}};
_.e.handleSegmentEdit=function(f){f.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=f.target,_.bW(this.hostElement,"yt-transcript-player-edit",[f.detail.startMs/1E3,f.detail.endMs/1E3]))};
_.e.handleSegmentSelected=function(f){_.bW(this.hostElement,"yt-transcript-player-seek",[f.detail.startMs/1E3])};
_.e.handleSegmentReplay=function(f){_.bW(this.hostElement,"yt-transcript-player-replay",[f.detail.startMs/1E3,f.detail.endMs/1E3])};
_.e.handleSectionHeaderSelected=function(f){_.bW(this.hostElement,"yt-transcript-player-seek",[f.detail.startMs/1E3])};
_.e.onMouseEnter=function(){this.isHovered=!0};
_.e.onMouseLeave=function(){this.isHovered=!1};
_.e.onRetryButtonClick=function(){_.ew(this.hostElement,"transcript-retry-button-click")};
_.e.getSegmentElement=function(f){return _.m9(this.hostElement).querySelector(":nth-child("+(f+1)+")")};
_.e.scrollElementToTop=function(f){f=this.getSegmentElement(f>=2?f-2:0);this.hostElement.scrollTop=Math.min(f.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.e.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(f){var S,B=(S=f.transcriptSegmentRenderer)!=null?S:f.transcriptSectionHeaderRenderer;return{start:Number(B.startMs)/1E3,end:Number(B.endMs)/1E3,isAutoScrollable:f.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.e.clearHighlightedSegments=function(){var f=_.m9(this.hostElement);f=_.m(f.querySelectorAll("ytd-transcript-segment-renderer"));for(var S=f.next();!S.done;S=f.next())S.value.classList.remove("active")};
_.y3.Object.defineProperties(MO.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var f,S;return((f=this.data)==null?void 0:f.searchResultSegments)||((S=this.data)==null?void 0:S.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
MO.prototype.onMouseLeave=MO.prototype.onMouseLeave;MO.prototype.onMouseEnter=MO.prototype.onMouseEnter;MO.prototype.handleSectionHeaderSelected=MO.prototype.handleSectionHeaderSelected;MO.prototype.handleSegmentReplay=MO.prototype.handleSegmentReplay;MO.prototype.handleSegmentSelected=MO.prototype.handleSegmentSelected;MO.prototype.handleSegmentEdit=MO.prototype.handleSegmentEdit;MO.prototype.segmentsChanged=MO.prototype.segmentsChanged;
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],MO.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],MO.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],MO.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],MO.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],MO.prototype,"isError",void 0);
_.N([_.n(),_.Z("design:type",Object)],MO.prototype,"noResultLabel",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],MO.prototype,"darkerPanels",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],MO.prototype,"useParentMaxHeight",void 0);_.N([_.k("data"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],MO.prototype,"segments",null);
_.N([_.k("segments","noResultLabel"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],MO.prototype,"displayNoResults",null);_.N([_.JO("segments"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],MO.prototype,"segmentsChanged",null);_.N([_.Vg("yt-transcript-segment-edit"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],MO.prototype,"handleSegmentEdit",null);
_.N([_.Vg("yt-transcript-segment-selected"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],MO.prototype,"handleSegmentSelected",null);_.N([_.Vg("yt-transcript-segment-replay"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],MO.prototype,"handleSegmentReplay",null);
_.N([_.Vg("ytd-transcript-section-header"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],MO.prototype,"handleSectionHeaderSelected",null);_.N([_.Vg("mouseenter"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],MO.prototype,"onMouseEnter",null);_.N([_.Vg("mouseleave"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],MO.prototype,"onMouseLeave",null);
_.N([_.C({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],MO);
_.p(MO,"ytd-transcript-segment-list-renderer",function(){if(KA2!==void 0)return KA2;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return KA2=f},{mode:1});var Zb=function(){var f=_.I.apply(this,arguments)||this;f.hideTimestamps=!!_.wQ("hide-transcript-timestamps");f.isLoadingTranscripts=!1;f.darkerPanels=_.K("web_watch_darker_panels");f.isError=!1;f.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return f};
_.q(Zb,_.I);_.e=Zb.prototype;_.e.headerChanged=function(){var f,S;this.baseGetTranscriptsCommand=(S=_.H((f=this.data)==null?void 0:f.header,BsY))==null?void 0:S.onTextChangeCommand};
_.e.bodyChanged=function(){var f=this.getBodyRenderer();f&&(f.initialSegments&&(this.initialTranscriptsRenderer=f),f.noResultLabel&&(this.noResultLabel=f.noResultLabel),f.retryLabel&&(this.retryLabel=f.retryLabel))};
_.e.detached=function(){this.clearSearchBoxText()};
_.e.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.e.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"}}}};
_.e.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.e.fireSearch=function(f){var S=this;if(f){var B=f.detail.query;if(this.baseGetTranscriptsCommand){var G;f=(G=_.H(this.baseGetTranscriptsCommand,_.FRN))==null?void 0:G.params;var g;G=_.H((g=this.data)==null?void 0:g.footer,UQ2);var b;if((g=(b=_.H(G==null?void 0:G.languageMenu,cT$))==null?void 0:b.subMenuItems)&&g.length>0&&(b=g.find(function(w){return w.selected}))){var z,X;
f=(z=b.continuation)==null?void 0:(X=z.reloadContinuationData)==null?void 0:X.continuation}z=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:f,searchQuery:B}});this.ytComponentBehavior.resolveCommand(z,{commandController:{onServerError:function(){S.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});iae(this.ytContinuationHandlerBehavior,function(){return B===S.getCurrentSearchBoxText()})}}};
_.e.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.e.onRetryButtonClick=function(){this.isError=!1;var f={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:f}))};
_.e.hideTimestampsChanged=function(){_.Xw("hide-transcript-timestamps",this.hideTimestamps)};
_.e.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.e.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.e.handleSignalActionCopyTranscript=function(){var f=this,S=this.getBodyRenderer();S&&(S=((S==null?void 0:S.searchResultSegments)||(S==null?void 0:S.initialSegments)||[]).map(function(B){return _.H(B,gI$)}).filter(function(B){return!!B}).map(function(B){return{snippet:B.snippet||{runs:[{text:""}]},
startTimeText:B.startTimeText||{simpleText:""}}}).map(function(B){var G=(B.snippet.runs||[]).reduce(function(g,b){return g+b.text},"");
return f.hideTimestamps?G:B.startTimeText.simpleText+" "+G}).join("\n"),this.copyToClipboard(S))};
_.e.copyToClipboard=function(f){navigator.clipboard&&navigator.clipboard.writeText(f)};
_.e.getCurrentSearchBoxText=function(){var f;return(f=this.searchBox)==null?void 0:f.value};
_.e.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.e.getBodyRenderer=function(){var f;return _.H((f=this.data)==null?void 0:f.body,GmM)};
_.e.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.y3.Object.defineProperties(Zb.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.m9(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
Zb.prototype.hideTimestampsChanged=Zb.prototype.hideTimestampsChanged;Zb.prototype.searchCleared=Zb.prototype.searchCleared;Zb.prototype.fireSearch=Zb.prototype.fireSearch;Zb.prototype.onReloadContinuationFinish=Zb.prototype.onReloadContinuationFinish;Zb.prototype.bodyChanged=Zb.prototype.bodyChanged;Zb.prototype.headerChanged=Zb.prototype.headerChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Zb.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Zb.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Zb.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Ak),_.Z("design:type",Object)],Zb.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Zb.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Zb.prototype,"hideTimestamps",void 0);
_.N([_.n(),_.Z("design:type",Object)],Zb.prototype,"isLoadingTranscripts",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Zb.prototype,"darkerPanels",void 0);_.N([_.n(),_.Z("design:type",Object)],Zb.prototype,"isError",void 0);_.N([_.JO("data.header"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Zb.prototype,"headerChanged",null);
_.N([_.HF("data.body"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Zb.prototype,"bodyChanged",null);_.N([_.Vg("yt-reload-continuation-finish"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Zb.prototype,"onReloadContinuationFinish",null);_.N([_.Vg("yt-transcript-search-box-search"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],Zb.prototype,"fireSearch",null);
_.N([_.Vg("yt-transcript-search-box-clear"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Zb.prototype,"searchCleared",null);_.N([_.JO("hideTimestamps"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Zb.prototype,"hideTimestampsChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],Zb);
_.p(Zb,"ytd-transcript-search-panel-renderer",function(){if(PnZ!==void 0)return PnZ;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return PnZ=f},{mode:1});var tQ=function(){var f=_.I.apply(this,arguments)||this;f.player=null;f.playerPollJobId=0;return f};
_.q(tQ,_.I);_.e=tQ.prototype;_.e.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.e.onLoadReloadContinuation=function(f){_.K("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:f.target.data.continuation}}):(f={clickTrackingParams:f.target.data.clickTrackingParams,getTranscriptEndpoint:{params:f.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.oy().resolve(_.S7).resolveCommand(f,{form:{element:this.hostElement}}))};
_.e.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"}}}};
_.e.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.e.attached=function(){this.updatePlayerListening()};
_.e.detached=function(){this.updatePlayerListening()};
_.e.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.e.startPlayerListening=function(){var f=this,S;return _.R(function(B){if(B.nextAddress==1)return(S=_.B8())?_.h(B,S.getPlayerPromise(),2):B.return();f.player=B.yieldResult;f.playerPollJobId=_.xJ.addLowPriorityJob(function(){f.getPlayerVideoProgress()},1E3);
f.player.addEventListener("onCueRangeEnter",function(G){f.onCueRangeEnter(G)});
f.player.addEventListener("onCueRangeExit",function(G){f.onCueRangeExit(G)});
f.player.addEventListener("onStateChange",function(G){f.onPlayerStateChange(G)});
f.player.addEventListener("SEEK_TO",function(G){f.onPlayerSeek(G)});
_.TT(B)})};
_.e.getPlayerVideoProgress=function(){var f=this;_.xJ.cancelJob(this.playerPollJobId);if(this.player){var S=this.player.getCurrentTime();_.bW(this.hostElement,"yt-player-time-changed",[S])}this.playerPollJobId=_.xJ.addLowPriorityJob(function(){f.getPlayerVideoProgress()},1E3)};
_.e.stopPlayerListening=function(){this.player=null;_.xJ.cancelJob(this.playerPollJobId)};
_.e.onPlayerStateChange=function(f){f===2&&this.removePendingCue()};
_.e.onPlayerSeek=function(f){var S;if(S=this.pendingReplayCueId)S=this.pendingReplayCueId,S=f===(_.K("web_transcript_cue_id_killswitch")?Number(S):Number(S.split("_")[1]));S||this.removePendingCue()};
_.e.onCueRangeEnter=function(f){umY(f)&&(this.pendingReplayCueId=f)};
_.e.onCueRangeExit=function(f){umY(f)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.e.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.e.onYtTranscriptPlayerSeek=function(f){this.player&&this.player.seekTo(f,!0)};
_.e.onYtTranscriptPlayerReplay=function(f,S){this.player&&(this.player.addCueRange(tVB(f),f,S),this.player.seekTo(f,!0),this.player.playVideo())};
_.e.onYtTranscriptPlayerEdit=function(f,S){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(tVB(f),f,S),this.player.seekTo(f,!0))};
tQ.prototype.onLoadReloadContinuation=tQ.prototype.onLoadReloadContinuation;tQ.prototype.panelContentVisibleChanged=tQ.prototype.panelContentVisibleChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],tQ.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],tQ.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],tQ.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],tQ.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],tQ.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],tQ.prototype,"panelContentVisible",void 0);_.N([_.JO("panelContentVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tQ.prototype,"panelContentVisibleChanged",null);
_.N([_.Vg("yt-load-reload-continuation"),_.Z("design:type",Function),_.Z("design:paramtypes",[Object]),_.Z("design:returntype")],tQ.prototype,"onLoadReloadContinuation",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],tQ);
_.p(tQ,"ytd-transcript-renderer",function(){if(VvY!==void 0)return VvY;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return VvY=f},{mode:1});var ivZ;var HvZ;var u9=function(){return _.I.apply(this,arguments)||this};
_.q(u9,_.I);u9.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.ew(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.Xh(this.hostElement,[this.data.clickCommand],this.hostElement))};
u9.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.xy)()+_.DA)+"px)"};
u9.prototype.updateShouldHideFromBinding=function(f){this.shouldHide=f.detail.value};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],u9.prototype,"rendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],u9.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Boolean)],u9.prototype,"shouldHide",void 0);_.N([_.C({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],u9);
_.p(u9,"ytd-ad-engagement-panel-banner-renderer",function(){if(HvZ!==void 0)return HvZ;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return HvZ=f},{mode:_.X_("kevlar_poly_si_batch_j070")?1:2});var qF2;var ap=function(){var f=_.I.apply(this,arguments)||this;f.modernPanels=_.K("kevlar_watch_modern_panels");f.buttonUpdate=_.K("web_modern_buttons");f.adsSemanticText=_.K("enable_ads_web_ep_buenos_aires_and_padding_fix");return f};
_.q(ap,_.I);ap.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.N([_.n(),_.Z("design:type",Object)],ap.prototype,"data",void 0);_.N([_.n({computed:"computeHideDefaultAdBadge(data)"}),_.Z("design:type",Boolean)],ap.prototype,"hideDefaultAdBadge",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],ap.prototype,"modernPanels",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],ap.prototype,"buttonUpdate",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],ap.prototype,"adsSemanticText",void 0);
_.N([_.C({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],ap);
_.p(ap,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(qF2!==void 0)return qF2;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return qF2=f},{mode:1});var $e2;var yl=function(){var f=_.I.apply(this,arguments)||this;f.darkerPanels=_.K("web_watch_darker_panels");f.enableSqueezebackPanels=_.K("web_shorts_enable_squeezeback_panels");f.enableAnchoredPanel=_.K("desktop_shorts_v2_anchored_panel");f.modernPanels=_.K("kevlar_watch_modern_panels");f.headerClickListener=function(S){f.onHeaderClick(S)};
f.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return f};
_.q(yl,_.I);_.e=yl.prototype;_.e.computeAdsInfoButton=function(){if(_.K("web_modern_buttons")){var f,S;return(S=_.H((f=this.data)==null?void 0:f.subtitleComplex,CU$))==null?void 0:S.adInfoRenderer}};
_.e.updateHeaderClickListener=function(){var f,S,B;((f=this.data)==null?0:f.navigationEndpoint)||((S=this.data)==null?0:S.onClickCommand)||_.H((B=this.data)==null?void 0:B.visibilityButton,_.U2)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.e.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}}}}}};
_.e.collapsedChanged=function(){var f;(f=this.data)!=null&&f.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.K("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.e.focus=function(f){this.titleElement&&_.ty(this.titleElement,f)};
_.e.computeTitleAriaLabel=function(f){var S=[];if(f.title){var B,G;S.push(this.ytRendererBehavior.getSimpleString(f.title)||((B=f.title.accessibility)==null?void 0:(G=B.accessibilityData)==null?void 0:G.label))}f.contextualInfo&&S.push(this.ytRendererBehavior.getSimpleString(f.contextualInfo));return S.join(" ")};
_.e.onHeaderClick=function(f){this.shouldTriggerHeaderClick(f)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.ew(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.Xh(this.hostElement,[this.data.onClickCommand],this.hostElement)):(f=this.getVisibilityToggleButton())&&f.click())};
_.e.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var f=_.H(this.data.visibilityButton,_.IR)||_.H(this.data.visibilityButton,_.U2);f&&this.ytRendererBehavior.logExplicitClick(f)}};
_.e.getVisibilityToggleButton=function(){var f=_.m9(this.hostElement).querySelector("#visibility-button").firstElementChild;return(f==null?void 0:f.is)==="ytd-toggle-button-renderer"?f:null};
_.e.shouldTriggerHeaderClick=function(f){return!_.lF(_.ct(f),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.e.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(f){f=_.H(f,_.xQu);this.targetId&&(f==null?void 0:f.targetId)===this.targetId&&(f=f.navigationButton)&&this.set("data.navigationButton",f)};
_.y3.Object.defineProperties(yl.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.K("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var f;return!!(((f=this.entity)==null?0:f.isActionButtonHidden)||this.hideActionButton)}}});
yl.prototype.collapsedChanged=yl.prototype.collapsedChanged;yl.prototype.updateHeaderClickListener=yl.prototype.updateHeaderClickListener;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],yl.prototype,"actionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],yl.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],yl.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.r(_.Ek),_.Z("design:type",Object)],yl.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],yl.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",String)],yl.prototype,"targetId",void 0);_.N([_.n(),_.Z("design:type",Boolean)],yl.prototype,"collapsed",void 0);_.N([_.n(),_.Z("design:type",Boolean)],yl.prototype,"hideActionButton",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],yl.prototype,"shortsPanel",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],yl.prototype,"liveChatEngagementPanel",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],yl.prototype,"learningChatEngagementPanel",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],yl.prototype,"darkerPanels",void 0);_.N([_.vF("#title"),_.Z("design:type",HTMLElement)],yl.prototype,"titleElement",void 0);_.N([_.vF("#header"),_.Z("design:type",HTMLElement)],yl.prototype,"headerElement",void 0);
_.N([_.n({computed:"computeAdsInfoButton(data)"}),_.Z("design:type",Object)],yl.prototype,"adsInfoButton",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],yl.prototype,"enableSqueezebackPanels",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],yl.prototype,"enableAnchoredPanel",void 0);_.N([_.n({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(f,S){return _.w9(f.entities,"engagementPanelTitleHeaderEntity",S)}}),
_.Z("design:type",Object)],yl.prototype,"entity",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],yl.prototype,"modernPanels",void 0);_.N([_.n({reflectToAttribute:!0}),_.k("targetId"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],yl.prototype,"adsSemanticText",null);_.N([_.JO("data","data.navigationEndpoint","data.onClickCommand"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],yl.prototype,"updateHeaderClickListener",null);
_.N([_.HF("collapsed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],yl.prototype,"collapsedChanged",null);_.N([_.k("entity","hideActionButton"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],yl.prototype,"isActionButtonHidden",null);_.N([_.C({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],yl);
_.p(yl,"ytd-engagement-panel-title-header-renderer",function(){if($e2!==void 0)return $e2;var f=document.createElement("template");_.Y(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return $e2=f},{mode:1});var Q1u;var WA=function(){return _.I.apply(this,arguments)||this};
_.q(WA,_.I);WA.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],WA.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],WA.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],WA.prototype,"data",void 0);_.N([_.C({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],WA);
_.p(WA,"ytd-macro-markers-info-item-renderer",function(){if(Q1u!==void 0)return Q1u;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return Q1u=f},{mode:1});var YF2;var OvM=function(f,S,B,G,g,b){_.qR.call(this);var z=this;this.JSC$20209_containerElement=f;this.hostElement=S;this.supportedSyncItems=B;this.syncEntityKey=G;this.options=g;this.renderLazyListItems=b;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;r8Y(this);j1X(this);this.JSC$20209_scrollAnimation=new _.EN(function(X){f.scrollTop=X});
_.ha(this,this.JSC$20209_scrollAnimation);this.addOnDisposeCallback(function(){z.exitBrowsingMode(!1);z.activeItem&&z.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.q(OvM,_.qR);var r8Y=function(f){var S=_.KD(_.oy().resolve(_.C5),function(B){return B.entities.markersEngagementPanelSyncEntity||{}},function(B,G){var g;
B[f.syncEntityKey]!==G[f.syncEntityKey]&&((g=B[f.syncEntityKey])==null?void 0:g.activeItemIndex)!==void 0&&f.updatePanelActiveItem(B[f.syncEntityKey].activeItemIndex)});
f.unsubscribeFromTimedMarkersListSyncEntity=S;f.addOnDisposeCallback(S);xee(f)},xee=function(f){var S=_.oy().resolve(_.C5);
S=_.TdN(S.getState(),f.syncEntityKey);(S==null?void 0:S.activeItemIndex)!==void 0&&(S=f.getItemByIndex(S.activeItemIndex))&&f.setActiveItem(S)},j1X=function(f){var S=new _.S3(f.onScroll,50,f);
_.ha(f,S);var B=function(){S.fire()};
f.JSC$20209_containerElement.addEventListener("scroll",B);f.addOnDisposeCallback(function(){f.JSC$20209_containerElement.removeEventListener("scroll",B)})};
_.e=OvM.prototype;
_.e.updatePanelActiveItem=function(f){var S=this.getItemByIndex(f);if(S){if(this.setActiveItem(S),this.contentVisible)if(this.browsingMode){var B;((B=this.options)==null?void 0:B.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(f=EDM(this),S.offsetTop<this.JSC$20209_containerElement.clientHeight+this.JSC$20209_containerElement.scrollTop&&f&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));LAO(this)}else this.scrollToItem(S)}else _.Lg(new _.dO("Could not find "+this.supportedSyncItems+
" sync child to set active.",f,this.JSC$20209_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.e.getItemByIndex=function(f){var S;(S=this.renderLazyListItems)==null||S.call(this,f);S=this.JSC$20209_containerElement.querySelectorAll(this.supportedSyncItems);if(S.length>f)return S[f]};
_.e.setActiveItem=function(f){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));f.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=f};
_.e.scrollToItem=function(f){f=this.getScrollPositionForItem(f);this.JSC$20209_containerElement.scrollTop!==f&&this.JSC$20209_scrollAnimation.start(this.JSC$20209_containerElement.scrollTop,f,300)};
_.e.getScrollPositionForItem=function(f){if(this.JSC$20209_containerElement.querySelectorAll(this.supportedSyncItems)[0]===f)return 0;var S,B=((S=this.options)==null?0:S.percentOffset)?this.JSC$20209_containerElement.clientHeight*this.options.percentOffset:0;f=_.EI(f).y+this.JSC$20209_containerElement.scrollTop-(_.EI(this.JSC$20209_containerElement).y+B);return Math.max(0,Math.min(f,this.JSC$20209_containerElement.scrollHeight-this.JSC$20209_containerElement.offsetHeight))};
_.e.onScroll=function(){this.activeItemBelowSyncPosition=EDM(this);if(this.activeItem&&!this.JSC$20209_scrollAnimation.isAnimating()&&Math.abs(this.JSC$20209_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var f;switch((f=this.options)==null?void 0:f.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!kku(this));LAO(this);break;default:this.enterBrowsingMode(!0)}}};
_.e.enterBrowsingMode=function(f){var S=this,B,G;return _.R(function(g){if(g.nextAddress==1){if(S.browsingMode)return g.return();S.browsingMode=!0;f&&S.hostElement.classList.add("browsing-mode");S.playerExitBrowsingModeListener=function(){S.exitBrowsingMode(!1)};
return _.h(g,_.wb(),2)}B=g.yieldResult;(G=B)==null||G.addEventListener("SEEK_TO",S.playerExitBrowsingModeListener);_.TT(g)})};
_.e.exitBrowsingMode=function(f){f=f===void 0?!0:f;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),f&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.e.removePlayerSeekListener=function(){var f=this,S,B;return _.R(function(G){if(G.nextAddress==1)return f.playerExitBrowsingModeListener?_.h(G,_.wb(),3):G.jumpTo(0);S=G.yieldResult;(B=S)==null||B.removeEventListener("SEEK_TO",f.playerExitBrowsingModeListener);f.playerExitBrowsingModeListener=void 0;_.TT(G)})};
var LAO=function(f){var S;((S=f.options)==null?void 0:S.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(kku(f)?f.hostElement.classList.remove("browsing-mode"):f.activeItem&&f.hostElement.classList.add("browsing-mode"))},EDM=function(f){if(!f.activeItem)return!1;
var S,B=((S=f.options)==null?0:S.percentOffset)?f.JSC$20209_containerElement.clientHeight*f.options.percentOffset:0;return f.activeItem.offsetTop>=f.JSC$20209_containerElement.scrollTop+B},kku=function(f){if(!f.activeItem)return!1;
var S=f.activeItem.offsetTop+14<=f.JSC$20209_containerElement.scrollTop+f.JSC$20209_containerElement.clientHeight;return f.activeItem.offsetTop+f.activeItem.clientHeight-14>=f.JSC$20209_containerElement.scrollTop&&S};
OvM.prototype.panelContentVisibleChanged=function(f){(this.contentVisible=f)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var nDM=function(f,S){f.syncEntityKey=S;var B;(B=f.unsubscribeFromTimedMarkersListSyncEntity)==null||B.call(f);r8Y(f)},s1e=function(f,S){f.options=S};var cA=function(){var f=_.I.apply(this,arguments)||this;f.browsingMode=!1;f.modern=_.K("web_button_rework");f.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return f};
_.q(cA,_.I);_.e=cA.prototype;_.e.activeItemChanged=function(){if(!_.K("synced_panel_scrolling_controller")){var f;((f=this.syncEntity)==null?void 0:f.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.e.created=function(){var f=this;_.K("synced_panel_scrolling_controller")||(this.JSC$20213_scrollAnimation=new _.EN(function(S){f.contents.scrollTop=S}),this.boundExitBrowsingMode=function(){f.exitBrowsingMode(!1)})};
_.e.detached=function(){if(_.K("synced_panel_scrolling_controller")){var f;(f=this.scrollController)==null||f.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.e.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"}}}};
_.e.dataChanged=function(){var f=this;_.K("synced_panel_scrolling_controller")?_.ui(this,function(){if(f.scrollController){var S;(S=f.scrollController)==null||S.exitBrowsingMode(!1);var B,G,g;(G=f.scrollController)==null||nDM(G,(g=(B=f.data)==null?void 0:B.syncModelEntityKey)!=null?g:"default-macro-markers-list-renderer-entity-key");var b,z,X;(X=f.scrollController)==null||s1e(X,{percentOffset:(b=f.data)==null?void 0:b.selectedItemAlignmentPercentOffset,floatingPillType:(z=f.data)==null?void 0:z.floatingPillType})}else{var w,
F,V,J;f.scrollController=new OvM(f.contents,f.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(J=(w=f.data)==null?void 0:w.syncModelEntityKey)!=null?J:"default-macro-markers-list-renderer-entity-key",{percentOffset:(F=f.data)==null?void 0:F.selectedItemAlignmentPercentOffset,floatingPillType:(V=f.data)==null?void 0:V.floatingPillType},function(P){f.renderLazyListItems(P)})}f.scrollController.panelContentVisibleChanged(!!f.panelContentVisible)}):this.exitBrowsingMode()};
_.e.computeButtonShape=function(){var f=this;if(this.data&&this.data.syncButtonLabel&&this.modern)return{onTap:function(){f.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.e.computeSyncEnabled=function(f){return!(f==null||!f.syncButtonLabel)};
_.e.renderLazyListItems=function(f){for(var S=this.contents.children,B=0,G=0;G<S.length;G++){var g=void 0;(g=S[G].ytLazyListBehavior)==null||g.fillRemainingListItems();var b=void 0,z=void 0;g=_.H((b=this.data)==null?void 0:(z=b.contents)==null?void 0:z[G],_.Jov);z=b=void 0;if((b=g)==null?0:(z=b.contents)==null?0:z.length)B+=g.contents.length;if(B>=f)break}};
_.e.getItemByIndex=function(f){this.renderLazyListItems(f);var S=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(S.length>f)return S[f]};
_.e.setActiveItem=function(f){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);f.active!==void 0&&(f.active=!0);this.currentActiveItem=f};
_.e.handleSetActivePanelItemAction=function(f){if((f=_.H(f,LhY))&&this.panelTargetId===f.panelTargetId){f=f.itemIndex;if(_.K("synced_panel_scrolling_controller")){var S,B;var G=(B=(S=this.data)==null?void 0:S.syncModelEntityKey)!=null?B:"default-macro-markers-list-renderer-entity-key"}else{var g;G=(g=this.data)==null?void 0:g.syncModelEntityKey}if(G){var b;((b=this.syncEntity)==null?void 0:b.activeItemIndex)!==f&&this.ytdReduxBehavior.dispatch(_.KF("markersEngagementPanelSyncEntity",G,{key:G,activeItemIndex:f}))}else this.updatePanelActiveItem(f)}};
_.e.updatePanelActiveItem=function(f){var S=this.getItemByIndex(f);S?(this.setActiveItem(S),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(S)):_.Lg(new _.dO("Could not find ytd-macro-markers-list-renderer sync child to set active.",f,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.e.scrollToItem=function(f){f=this.getScrollPositionForItem(f);this.contents.scrollTop!==f&&this.JSC$20213_scrollAnimation.start(this.contents.scrollTop,f,300)};
_.e.getScrollPositionForItem=function(f){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===f)return 0;f=_.EI(f).y+this.contents.scrollTop-_.EI(this.contents).y-this.getStickyHeaderHeight(f);return Math.min(f,this.contents.scrollHeight-this.contents.offsetHeight)};
_.e.getStickyHeaderHeight=function(f){if(f.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var S,B,G;return(G=(S=f.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(B=S.header)==null?void 0:B.offsetHeight)!=null?G:0}return 0};
_.e.onScroll=function(){_.K("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$20213_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.e.enterBrowsingMode=function(){var f=this;return _.R(function(S){if(S.nextAddress==1){if(f.browsingMode)return S.return();f.browsingMode=!0;return _.h(S,_.GG().getPlayerPromise(),2)}f.player=S.yieldResult;f.player.addEventListener("SEEK_TO",f.boundExitBrowsingMode);_.TT(S)})};
_.e.exitBrowsingMode=function(f){this.browsingMode&&(this.browsingMode=!1,(f===void 0||f)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.e.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.e.onSyncClick=function(){if(_.K("synced_panel_scrolling_controller")){var f;(f=this.scrollController)==null||f.exitBrowsingMode()}else this.exitBrowsingMode()};
_.e.panelContentVisibleChanged=function(){if(_.K("synced_panel_scrolling_controller")){var f;(f=this.scrollController)==null||f.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
cA.prototype.panelContentVisibleChanged=cA.prototype.panelContentVisibleChanged;cA.prototype.dataChanged=cA.prototype.dataChanged;cA.prototype.activeItemChanged=cA.prototype.activeItemChanged;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],cA.prototype,"actionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],cA.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],cA.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],cA.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],cA.prototype,"data",void 0);_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],cA.prototype,"useCustomColors",void 0);_.N([_.n({computed:"computeSyncEnabled(data)"}),_.Z("design:type",Boolean)],cA.prototype,"syncEnabled",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",String)],cA.prototype,"panelTargetId",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],cA.prototype,"panelContentVisible",void 0);_.N([_.vF("#contents"),_.Z("design:type",HTMLElement)],cA.prototype,"contents",void 0);_.N([_.vF("#sync-container"),_.Z("design:type",HTMLElement)],cA.prototype,"syncContainer",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],cA.prototype,"browsingMode",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],cA.prototype,"modern",void 0);_.N([_.n({selectorArgs:["data.syncModelEntityKey"],selector:_.TdN}),_.Z("design:type",Object)],cA.prototype,"syncEntity",void 0);_.N([_.JO("syncEntity.activeItemIndex"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cA.prototype,"activeItemChanged",null);
_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cA.prototype,"dataChanged",null);_.N([_.JO("panelContentVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cA.prototype,"panelContentVisibleChanged",null);_.N([_.C({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],cA);
_.p(cA,"ytd-macro-markers-list-renderer",function(){if(YF2!==void 0)return YF2;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return YF2=f},{mode:1});var Den;var l9=function(){return _.I.apply(this,arguments)||this};
_.q(l9,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],l9.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],l9.prototype,"ytComponentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],l9.prototype,"data",void 0);_.N([_.C({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],l9);
_.p(l9,"ytd-error-corrections-section-item-renderer",function(){if(Den!==void 0)return Den;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return Den=f},{mode:1});var IYX;var fA=function(){return _.I.apply(this,arguments)||this};
_.q(fA,_.I);fA.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],fA.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],fA.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],fA.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],fA.prototype,"data",void 0);_.N([_.C({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],fA);
_.p(fA,"ytd-error-corrections-section-renderer",function(){if(IYX!==void 0)return IYX;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return IYX=f},{mode:1});var UeM;var ok=function(){return _.I.apply(this,arguments)||this};
_.q(ok,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],ok.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],ok.prototype,"componentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],ok.prototype,"data",void 0);_.N([_.C({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],ok);
_.p(ok,"ytd-topic-link-renderer",function(){if(UeM!==void 0)return UeM;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return UeM=f},{mode:1});var Cn2;var SJ=function(){var f=_.I.apply(this,arguments)||this;f.modern=_.K("kevlar_modern_sd_v2");f.modernLockupV2=_.K("modernize_structured_description_playlist_lockups_v2");f.modernTypography=_.K("web_modern_typography");return f};
_.q(SJ,_.I);SJ.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"}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],SJ.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],SJ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],SJ.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],SJ.prototype,"modern",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],SJ.prototype,"modernLockupV2",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],SJ.prototype,"modernTypography",void 0);_.N([_.C({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],SJ);
_.p(SJ,"ytd-video-description-course-section-renderer",function(){if(Cn2!==void 0)return Cn2;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Cn2=f},{mode:1});var pBz;var Br=function(){var f=_.I.apply(this,arguments)||this;f.modern=_.K("kevlar_modern_sd_v2");f.modernTypography=_.K("web_modern_typography");return f};
_.q(Br,_.I);Br.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"}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Br.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Br.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Br.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Br.prototype,"modern",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Br.prototype,"modernTypography",void 0);
_.N([_.C({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],Br);
_.p(Br,"ytd-video-description-files-section-renderer",function(){if(pBz!==void 0)return pBz;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return pBz=f},{mode:1});var A82;var GB=function(){return _.I.apply(this,arguments)||this};
_.q(GB,_.I);GB.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"}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],GB.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],GB.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],GB.prototype,"data",void 0);_.N([_.C({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],GB);
_.p(GB,"ytd-video-description-gaming-section-renderer",function(){if(A82!==void 0)return A82;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return A82=f},{mode:1});var N$u;var gG=function(){var f=_.I.apply(this,arguments)||this;f.isExpanded=!1;return f};
_.q(gG,_.I);gG.prototype.computeHasDefaultMetadataEndpoint=function(f){var S;f=f==null?void 0:(S=f.defaultMetadata)==null?void 0:S.runs;return!(!f||f.length!==1||!f[0].navigationEndpoint)};
gG.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.y3.Object.defineProperties(gG.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],gG.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],gG.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],gG.prototype,"isExpanded",void 0);_.N([_.n({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],gG.prototype,"hasDefaultMetadataEndpoint",void 0);
_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],gG.prototype,"isExpandable",null);_.N([_.k("data","isExpandable","isExpanded"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],gG.prototype,"showExpandedMetadata",null);_.N([_.C({is:"ytd-info-row-renderer",disableElementRegistration:!0})],gG);
_.p(gG,"ytd-info-row-renderer",function(){if(N$u!==void 0)return N$u;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return N$u=f},{mode:1});var Mvu;var eJ=function(){var f=_.I.apply(this,arguments)||this;f.currentIndex=0;f.supportComponentResize=!0;f.modern=_.K("kevlar_modern_sd_v2");f.JSC$20239_lastScrollContainerWidth=NaN;return f};
_.q(eJ,_.I);_.e=eJ.prototype;
_.e.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"}}}};
_.e.getItemsPath=function(){return"videoLockups"};
_.e.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.e.onIronResize=function(){this.updateVideoLockupStyles()};
_.e.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.e.updateVideoLockupStyles=function(){var f;this.JSC$20239_scrollContainer!==void 0&&(f=this.videoLockups)!=null&&f.length&&(f=this.JSC$20239_scrollContainer.clientWidth,f!==this.JSC$20239_lastScrollContainerWidth&&(this.JSC$20239_lastScrollContainerWidth=f,_.hO(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(f*.8,415)+"px"}),_.ew(this.hostElement,"iron-resize")))};
_.y3.Object.defineProperties(eJ.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var f=[],S;if((S=this.data)==null||!S.carouselLockups)return f;S=_.m(this.data.carouselLockups);for(var B=S.next();!B.done;B=S.next()){B=B.value;var G=void 0;((G=_.H(B,zNn))==null?0:G.videoLockup)&&f.push(_.H(B,zNn).videoLockup)}return f}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.videoLockups)==null||!f.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var f=[],S;if((S=this.data)==null||!S.carouselLockups)return f;var B;return(B=_.H(this.data.carouselLockups[this.scrollCount],zNn))==null?void 0:B.infoRows}}});
eJ.prototype.dataChanged=eJ.prototype.dataChanged;eJ.prototype.onIronResize=eJ.prototype.onIronResize;eJ.prototype.hiddenChanged=eJ.prototype.hiddenChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],eJ.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],eJ.prototype,"componentBehavior",void 0);_.N([_.r(_.o_.YtdHorizontalListBehavior),_.Z("design:type",Object)],eJ.prototype,"ytdHorizontalListBehavior",void 0);
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],eJ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],eJ.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],eJ.prototype,"inlineStructuredDescription",void 0);_.N([_.n({value:2}),_.Z("design:type",Number)],eJ.prototype,"initialCount",void 0);_.N([_.n(),_.Z("design:type",Object)],eJ.prototype,"currentIndex",void 0);
_.N([_.n(),_.Z("design:type",Number)],eJ.prototype,"scrollCount",void 0);_.N([_.n(),_.Z("design:type",Object)],eJ.prototype,"supportComponentResize",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],eJ.prototype,"contentHidden",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],eJ.prototype,"modern",void 0);_.N([_.vF("#scroll-container"),_.Z("design:type",HTMLDivElement)],eJ.prototype,"JSC$20239_scrollContainer",void 0);
_.N([_.JO("contentHidden"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],eJ.prototype,"hiddenChanged",null);_.N([_.k("data"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],eJ.prototype,"videoLockups",null);_.N([_.k("videoLockups"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],eJ.prototype,"hasVideoLockups",null);
_.N([_.Vg("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],eJ.prototype,"onIronResize",null);_.N([_.k("data","scrollCount"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],eJ.prototype,"infoRows",null);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],eJ.prototype,"dataChanged",null);_.N([_.C({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],eJ);
_.p(eJ,"ytd-video-description-music-section-renderer",function(){if(Mvu!==void 0)return Mvu;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return Mvu=f},{mode:_.X_("kevlar_poly_si_batch_j081")?1:2});var Zvu;var by=function(){var f=_.I.apply(this,arguments)||this;f.modern=_.K("kevlar_modern_sd_v2");f.modernTypography=_.K("web_modern_typography");return f};
_.q(by,_.I);by.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],by.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],by.prototype,"ytRendererBehavior",void 0);_.N([_.n({}),_.Z("design:type",Object)],by.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],by.prototype,"modern",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],by.prototype,"modernTypography",void 0);
_.N([_.C({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],by);
_.p(by,"ytd-video-description-transcript-section-renderer",function(){if(Zvu!==void 0)return Zvu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Zvu=f},{mode:1});var tvX;_.eq(_.oS(function(f){var S=_.v8(_.Qdx,function(){return f.data().firstProviderLinkStatusEntityKey}),B=_.v8(_.Qdx,function(){return f.data().secondProviderLinkStatusEntityKey}),G=function(){var g,b;
return((g=S())==null?void 0:g.linked)||((b=B())==null?void 0:b.linked)};
return _.T("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.T(_.oY,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return f.data().sectionTitle}}),_.T(_.oY,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return G()?f.data().connectedMessage:f.data().notConnectedMessage}}),_.T(_.v,{cond:G,
then:function(){return _.T(_.xK,{data:function(){return f.data().connectedButton}},{buttonViewModel:function(g){return _.T(_.I8,{data:g.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.T(_.v,{cond:function(){return!G()},
then:function(){return _.T(_.xK,{data:function(){return f.data().notConnectedButton}},{buttonViewModel:function(g){return _.T(_.I8,{data:g.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Yi"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.W4}});_.eq(_.oS(function(f){var S=f.data;return _.T("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.T("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.T(_.oY,{text:function(){return S().sectionTitle}})),_.T("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.T(_.oY,{text:function(){return S().bodyHeader}})),_.T("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.T(_.oY,{text:function(){return S().bodyText}})),_.T(_.v,
{cond:function(){return S().attributionText},
then:function(){return _.T("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.T(_.oY,{text:function(){return S().attributionText}}))}}))},"Zi"),"how-this-was-made-section-view-model",{props:{data:_.W4}});_.eq(_.oS(function(f){return _.T("yt-video-description-youchat-section-view-model",{class:_.Pw("ytVideoDescriptionYouchatSectionViewModelHost")},_.T("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.T(_.oY,{text:function(){return f.data().sectionTitle}})),_.T("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.T(_.oY,{text:function(){return f.data().subHeaderText}})),_.T("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.T(_.I8,{data:function(){return _.H(f.data().primaryButton,
_.Q5)}})))},"$i"),"yt-video-description-youchat-section-view-model",{props:{data:_.W4}});var mK=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return f};
_.q(mK,_.I);_.e=mK.prototype;
_.e.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}}}}}};
_.e.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.e.dataChanged=function(){var f,S;this.hasDescriptionOnly=!(((f=this.data)==null?void 0:(S=f.items)==null?void 0:S.length)!==1||!_.H(this.data.items[0],RNn))};
_.e.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.e.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.e.autoFocusDescription=function(){var f;((f=_.oy().resolve(_.fN(_.R5)))==null?0:f.isKeyBoardInUse())&&this.description&&_.uP(this.description)};
_.e.resize=function(){if(_.K("kevlar_disable_sd_resize"))this.JSC$20247_cardList&&_.ew(this.JSC$20247_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.ew(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.ew(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.e.scrollToSection=function(f){if(f=this.getSectionElement(f))_.bW(this.hostElement,"yt-scroll-to-watch-element",[f]),f.focus()};
_.e.getSectionElement=function(f){switch(f){case "infocards-item-section":var S;return(S=this.infocardsSection)!=null?S:null;case "transcript-item-section":var B;return(B=this.transcriptSection)!=null?B:null;case "how-this-was-made-section-item-section":var G;return(G=this.howThisWasMadeSection)!=null?G:null;case "files-item-section":var g;return(g=this.filesSection)!=null?g:null;default:return null}};
_.e.handleSetActiveItemAction=function(f){var S=_.H(f,LhY),B=S&&(S==null?void 0:S.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$20247_cardList;if(S&&B){f=this.currentActiveChapter;var G=this.currentActiveProblem;S=B==null?void 0:B.getItemByIndex(S.itemIndex);var g=B=!0;S&&(S.active=!0,S.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(B=f!==S,g=!1,this.currentActiveChapter=S):(S==null?void 0:S.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(B=!1,g=G!==S,this.currentActiveProblem=S));f&&B&&(f.active=!1);G&&g&&(G.active=!1)}};
_.y3.Object.defineProperties(mK.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.K("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
mK.prototype.onYtExpanderMoreTapped=mK.prototype.onYtExpanderMoreTapped;mK.prototype.onHiddenChanged=mK.prototype.onHiddenChanged;mK.prototype.dataChanged=mK.prototype.dataChanged;mK.prototype.panelContentVisibleChanged=mK.prototype.panelContentVisibleChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],mK.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],mK.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],mK.prototype,"actionHandlerBehavior",void 0);_.N([_.r(_.Ld),_.Z("design:type",Object)],mK.prototype,"ironResizableBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],mK.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Boolean)],mK.prototype,"panelContentVisible",void 0);_.N([_.n(),_.Z("design:type",Boolean)],mK.prototype,"hasDescriptionOnly",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],mK.prototype,"inlineStructuredDescription",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],mK.prototype,"hidden",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],mK.prototype,"shortsPanel",void 0);_.N([_.n(),_.Z("design:type",Object)],mK.prototype,"videoSummary",void 0);_.N([_.n(),_.Z("design:type",Object)],mK.prototype,"merchShelf",void 0);
_.N([_.k("videoSummary"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],mK.prototype,"showVideoSummary",null);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],mK.prototype,"engagementPanel",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],mK.prototype,"watchWhileSdp",void 0);_.N([_.vF("ytd-expandable-video-description-body-renderer"),_.Z("design:type",Object)],mK.prototype,"description",void 0);
_.N([_.vF("ytd-horizontal-card-list-renderer"),_.Z("design:type",Object)],mK.prototype,"JSC$20247_cardList",void 0);_.N([_.vF("ytd-horizontal-card-list-renderer[center-items]"),_.Z("design:type",Object)],mK.prototype,"problemWalkthroughCardList",void 0);_.N([_.vF("ytd-shelf-renderer"),_.Z("design:type",Object)],mK.prototype,"shelfSection",void 0);_.N([_.vF("ytd-video-description-music-section-renderer"),_.Z("design:type",Object)],mK.prototype,"musicMetadataSection",void 0);
_.N([_.vF("ytd-video-description-infocards-section-renderer"),_.Z("design:type",Object)],mK.prototype,"infocardsSection",void 0);_.N([_.vF("ytd-video-description-transcript-section-renderer"),_.Z("design:type",Object)],mK.prototype,"transcriptSection",void 0);_.N([_.vF("how-this-was-made-section-view-model"),_.Z("design:type",Object)],mK.prototype,"howThisWasMadeSection",void 0);_.N([_.vF("ytd-video-description-files-section-renderer"),_.Z("design:type",Object)],mK.prototype,"filesSection",void 0);
_.N([_.JO("panelContentVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mK.prototype,"panelContentVisibleChanged",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mK.prototype,"dataChanged",null);_.N([_.JO("hidden"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mK.prototype,"onHiddenChanged",null);
_.N([_.Vg("yt-expander-more-tapped"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mK.prototype,"onYtExpanderMoreTapped",null);_.N([_.C({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],mK);
_.p(mK,"ytd-structured-description-content-renderer",function(){if(tvX!==void 0)return tvX;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return tvX=f},{mode:2});var uWe;var aYz;var zB=function(){return _.I.apply(this,arguments)||this};
_.q(zB,_.I);zB.prototype.computeAriaLabel=function(f){var S,B;return(f==null?void 0:(S=f.accessibility)==null?void 0:(B=S.accessibilityData)==null?void 0:B.label)||_.Jf("LOADING",void 0,"Loading")};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],zB.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],zB.prototype,"data",void 0);_.N([_.n({computed:"computeAriaLabel(data)"}),_.Z("design:type",String)],zB.prototype,"ariaLabel",void 0);_.N([_.nP({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],zB);
_.p(zB,"yt-content-loading-renderer",function(){if(aYz===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;uWe===void 0&&(uWe=document.createElement("template"));var G=uWe;B.call(S,G.content.cloneNode(!0),f.content.firstChild);aYz=f}f=aYz;return f},{mode:_.X_("kevlar_poly_si_batch_j043")?1:2});_.eq(_.oS(function(f){var S=_.m(_.hj(!1,void 0,"WbYeXc")),B=S.next().value,G=S.next().value;S=_.m(_.hj(!1,void 0,"msXkzc"));var g=S.next().value,b=S.next().value;_.j9(function(){var w=_.H(f.data().collaboratePlaylistCollaborationSetting,l4M);w&&G(w.switchedOnByDefault);var F=_.H(f.data().allowNewCollaboratorsPlaylistCollaborationSetting,l4M);F&&b(F.switchedOnByDefault);if(!w&&!F||!w&&f.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")G(!0),b(!0)});
var z=function(w){G(w);b(w);var F=f.data().playlistCollaborationEntityKey||"";var V=_.al().getState();(V=_.w9(V.entities,"playlistCollaborationEntity",F))&&(V==null?void 0:V.isCollaborative)===w||_.al().dispatch(_.KF("playlistCollaborationEntity",F,Object.assign({},V,{isCollaborative:w})))},X=function(w){b(w)};
return _.T("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.T("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.T(_.xK,{data:function(){return f.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(w){return _.T(_.T$o,{data:w.data,
onSwitch:z})}})),_.T(_.v,{cond:B,
then:function(){return _.T("div",null,_.T("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.T(_.xK,{data:function(){return f.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(w){return _.T(_.T$o,{data:w.data,
onSwitch:X,overrideDisabled:!1})}})),_.T(_.v,{cond:g,
then:function(){return _.T("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.T(_.xK,{data:function(){return f.data().copyLinkButton}},{buttonViewModel:_.I8}))}}),_.T("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.T(_.xK,{data:function(){return f.data().playlistCollaborators}},{contentListItemViewModel:_.m3u})))}}))},"aj"),"playlist-collaboration-view-model",{props:{data:_.W4}});var y8u=_.oS(function(f){var S=f.data;var B=f.customCommandResolver;return _.T(_.gg,null,_.T("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.T(_.xK,{data:function(){return S().adAvatar}},{adAvatarViewModel:function(G){return _.T(_.oxL,{data:G.data,
customCommandResolver:B})}})),_.T("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.T(_.v,{cond:function(){return S().headline},
then:function(G){return _.T(_.oY,{text:G,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.T("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.T(_.xK,{data:function(){return S().adBadge}},{adBadgeViewModel:function(G){return _.T(_.Sc,{data:G.data,
hasDot:function(){return S().primaryDetailsLine!==void 0},
customCommandResolver:B,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.T(_.xK,{data:function(){return S().primaryDetailsLine}},{adDetailsLineViewModel:function(G){return _.T(_.Bm,{data:G.data,
customCommandResolver:B,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"bj"),WAn=_.oS(function(f){var S=f.data;
var B=f.customCommandResolver;f=_.tE("ad-avatar-lockup-view-model");_.c8(f,function(){return S().interaction},B);
_.of(f,{visibilityCallback:function(G){var g,b=(g=S().interaction)==null?void 0:g.onFirstVisible;G&&b&&_.MB(b)},
showOption:_.Wx});return _.T("ad-avatar-lockup-view-model",{class:function(){var G;return((G=S().interaction)==null?0:G.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:f,"aria-label":function(){var G,g;return(G=S().interaction)==null?void 0:(g=G.accessibility)==null?void 0:g.label}},_.T(_.qp,null,_.T(_.i0,{when:function(){return S().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.T(y8u,{data:S,
customCommandResolver:B})}),_.T(_.Hf,null,function(){return null})))},"cj");_.eq(_.oS(function(f){var S=f.data;var B=f.panelContentVisibility;f=_.tE("panel-ad-header-image-lockup-view-model");_.c8(f,function(){return S().interaction},a8$);
_.of(f,{visibilityCallback:function(g){var b,z=(b=S().interaction)==null?void 0:b.onFirstVisible;g&&z&&_.MB(z)},
showOption:_.Wx});_.Lj(function(){var g,b;if(b=_.U6("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var z;b=(z=b())==null?void 0:z.onLayoutVisibleCallback}else b=null;(g=b)==null||g()});
var G=function(){return B()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.T("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:f},_.T("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.T("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.T(_.v,{cond:_.nh1("(min-width: "+((0,_.xy)()+_.DA)+"px) or (max-width: 600px)"),then:function(){return _.T(_.xK,{data:function(){return S().adImage}},{adImageViewModel:function(g){return _.T(_.Tu,{data:g.data,
targetHeight:80,customCommandResolver:a8$})}})}})),_.T("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.T("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.T(_.xK,{data:function(){return S().adAvatarLockup}},{adAvatarLockupViewModel:function(g){return _.T(WAn,{data:g.data,
customCommandResolver:a8$})}})),_.T(_.v,{cond:G,
then:function(){return _.T(_.xK,{data:function(){return S().adButton}},{adButtonViewModel:function(g){return _.T(_.lQ,{data:g.data,
customCommandResolver:a8$})}})},
else:function(){return _.T(_.xK,{data:function(){return S().menu}},{buttonViewModel:_.I8})}}),_.T("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.T(_.xK,{data:function(){var g=_.H(S().toggleButton,_.YK);
return{toggleButtonViewModel:Object.assign({},g,{isTogglingDisabled:!0,isToggled:G()})}}},{toggleButtonViewModel:_.ER})))))},"dj"),"panel-ad-header-image-lockup-view-model",{props:{data:_.W4,
panelContentVisibility:_.W4}});_.eq(_.oS(function(f){var S=function(){return _.H(f.data().inputComposerViewModel,fsu)},B=function(){var Q;
return((Q=S())==null?void 0:Q.youchatPendingResponseEntityKey)||""},G=_.v8(_.rG$,B),g=function(){var Q;
return!((Q=G())==null||!Q.isPendingResponse)},b=_.m(_.hj(!0,void 0,"DR0q1d")),z=b.next().value,X=b.next().value,w=function(){return S().sectionTargetId||"youchat_messages_section"};
b=_.us("yt-chat-input-view-model");var F=_.tE("textarea"),V=_.v8(Ddu,"chat_input_view_model_state"),J=I8M(),P=function(){var Q;return!((Q=V())==null||!Q.value)};
_.j9(function(){var Q;if(!P()&&((Q=S())==null?0:Q.welcomeFeatureContinuation)){Q={continuationCommand:{token:S().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var x,E=String(Math.floor(((x=_.hD())==null?void 0:x.getCurrentTime())||0)*1E3);x={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:E}};_.pH(Q,{form:{formData:x}});J(!0)}var U=w(),A;(A=_.oy().resolve(_.fN(_.$k)))==null||A.addEventListener("yt-navigate-start",function(){_.rb.remove(U);J(!1)},
{once:!0})});
var d=function(){var Q,x,E,U,A,t,M,a,l;return _.R(function(mx){Q=F.value.value;F.value.value="";yCu(F.value);x=WOB(w(),Q);_.pH(x);E=_.jdz(B());_.MB(((U=S())==null?void 0:U.onSubmitCommand)||{});E(!0);t=String(Math.floor(((A=_.hD())==null?void 0:A.getCurrentTime())||0)*1E3);a={continuationCommand:{token:(M=S())==null?void 0:M.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};l={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:Q,playerOffsetMs:t}};_.pH(a,{form:{formData:l},
commandController:{onSuccess:function(){E(!1)},
onServerError:function(){var zj=w();_.pH({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:zj}}]}}});E(!1)}}});
_.TT(mx)})};
return _.T("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:b},_.T("div",{class:"chatInputViewModelChatInputWrapper"},_.T("form",{class:"chatInputViewModelChatInputForm"},_.T("textarea",{class:"chatInputViewModelChatInput",el:F,"on:keydown":_.iF(function(Q){var x=g()||!1;yCu(F.value);x||Q.key!=="Enter"||Q.shiftKey||(Q.preventDefault(),d());return!1}),
"on:keyup":_.iF(function(){X(F.value.value.length===0);return!1}),
placeholder:function(){var Q,x;var E=_.H((x=S())==null?void 0:x.inputFormField,OaY);return E==null?void 0:(Q=E.contentProperties)==null?void 0:Q.placeholderText},
rows:1}),_.T(_.I8,{data:function(){return _.H(f.data().sendButton,_.Q5)},
onClick:function(Q){Q.preventDefault();d();X(F.value.value.length===0)},
buttonOverrides:function(){return{disabled:z()||g()}}})),_.T(_.oY,{className:"chatInputViewModelChatDisclaimer",
text:function(){var Q;return(Q=_.H(f.data().disclaimer,_.P88))==null?void 0:Q.text}})))},"ej"),"yt-chat-input-view-model",{props:{data:_.W4}});var c8u=["engagement-panel-clip-create","engagement-panel-clip-view"],lYu=0,Rk=function(){var f=_.I.apply(this,arguments)||this;var S;f.headerData=(S=f.data)==null?void 0:S.header;f.darkerPanels=_.K("web_watch_darker_panels");f.matchContentTheme=_.K("web_watch_panel_content_match_theme");f.disableAutoFill=!1;f.isFullscreen=!1;f.isTheaterMode=!1;f.modernPanels=_.K("kevlar_watch_modern_panels");f.liveChatReplyPanel=!1;f.enableAnchoredPanel=_.K("desktop_shorts_v2_anchored_panel");f.disableBackdropFilter=
_.K("web_disable_backdrop_filter");f.trackEngagementPanelVisibility=_.K("web_watch_track_engagement_panel_visibility");f.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 f};
_.q(Rk,_.I);_.e=Rk.prototype;
_.e.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]",learningChatEngagementPanel:"[[learningChatEngagementPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},
"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(f){var S;return(f==null?void 0:(S=f.webComponentHint)==null?void 0:S.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"}}}};
_.e.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var f;if((f=this.hostElement.parentElement)==null?0:f.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.e.detached=function(){this.updateTheaterDisablement()};
_.e.showPanel=function(){var f=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.xJ.addJob(function(){f.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.e.maybeScrollToItemSection=function(f){var S=this,B,G=f==null?void 0:(B=f.sectionListEngagementPanelExtras)==null?void 0:B.scrollToItemSectionIdentifier;G&&_.xJ.addJob(function(){var g;(g=S.sectionListRendererElement)==null||g.scrollToItemSection(G)},8)};
_.e.hidePanel=function(){var f=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.xJ.addJob(function(){f.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.e.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.e.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.e.updatePanel=function(f,S,B,G){var g=this;if((f=f==null?void 0:f.engagementPanelSectionListRenderer)||G){if(f){G=f.header;var b=f.content,z=f.footer;(f=f.targetId)&&this.set("data.targetId",f);G&&this.set("data.header",G);b&&this.set("data.content",b);z&&this.set("data.footer",z)}else G&&(f=G.content,b=G.secondaryHeaderContent,(G=G.targetId)&&this.set("data.targetId",G),f&&this.set("data.content",f),b&&(this.secondaryHeaderData=b));this.updateChildVisibilityProperties();if(S){var X;_.K("kevlar_update_panel_focus_scroll_killswitch")||
(X={preventScroll:!0});this.focus(X)}_.ui(this,function(){_.ew(g.hostElement,"yt-refit");g.maybeScrollToItemSection(B)})}};
_.e.computeHeaderData=function(){var f,S=(0,_.$v.unsafeClone)((f=this.data)==null?void 0:f.header);if(S){f=new _.u(Object.keys(S)[0]);var B=_.H(S,f),G=_.H(this.secondaryHeaderData,f);G&&_.nH(S,f,Object.assign({},G,B))}return S};
_.e.getReloadContinuation=function(){var f,S,B,G=_.m(((f=this.data)==null?void 0:(S=f.content)==null?void 0:(B=S.sectionListRenderer)==null?void 0:B.continuations)||[]);for(f=G.next();!f.done;f=G.next())if(f=f.value,f.reloadContinuationData)return f.reloadContinuationData.continuation};
_.e.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var f;((f=this.data)==null?0:f.targetId)&&(f=this.contentElement.firstElementChild)&&f.setAttribute("panel-target-id",this.data.targetId)};
_.e.forwardPopupClosedToFlowRootRenderer=function(){var f=_.m9(this.hostElement).querySelector("ytd-flow-root-renderer");if(f)f.onPopupClosed()};
_.e.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var f;if(!c8u.includes((f=this.theaterDisablementPanelIdentifier)!=null?f:""))if(f=_.K("web_watch_imax_theater_mode")&&this.isTheaterMode,f=_.K("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||f,_.K("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||f){var S;this.visibility=(S=this.data)==null?void 0:S.visibility;var B;this.trackEngagementPanelVisibility&&((B=this.data)==null?void 0:B.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var G,g,b,z;this.contentEmpty=!!(((G=this.data)==null?0:(g=G.content)==null?0:g.structuredDescriptionContentRenderer)&&Object.keys((b=this.data)==null?void 0:(z=b.content)==null?void 0:
z.structuredDescriptionContentRenderer).length===0);(S=_.oy().resolve(_.ir))&&S.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.e.isTheaterModeChanged=function(){_.K("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.e.isFullscreenChanged=function(){_.K("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.e.focus=function(f){if(this.header)this.header.focus(f);else{var S;(S=_.m9(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||S.focus(f)}};
_.e.visibilityChanged=function(){if(!_.K("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var f=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",S=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",B=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",G=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",g=G||!this.lastVisibility,b,z,X=(b=this.data)==null?void 0:(z=b.identifier)==null?void 0:z.tag,
w;if(((w=this.data)==null?0:w.onShowCommands)&&f&&g)_.Xh(this.hostElement,this.data.onShowCommands,this.hostElement),X&&_.W2().dispatch(_.ef({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:X}}));else{var F;((F=this.data)==null?0:F.onHideCommands)&&S&&B&&(_.Xh(this.hostElement,this.data.onHideCommands,this.hostElement),X&&_.W2().dispatch(_.ef({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:X}})))}f&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*lYu++));_.K("kevlar_watch_focus_on_engagement_panels")&&
f&&G&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.e.notifyVisibilityChanged=function(f){var S;_.mU(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,f,(S=this.data)==null?void 0:S.targetId])};
_.e.updateTheaterDisablement=function(){if(!_.K("kevlar_watch_theater_disablement_killswitch")){var f=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&c8u.includes(f)&&!_.K("watch_next_grid_ignore_disallowed_panels")){var S=_.CF(_.W2().getState()),B=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";f!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():B?(this.originalTheaterState===void 0&&(this.originalTheaterState=S,this.theaterDisablementPanelIdentifier=
f),S&&_.bW(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.e.clearTheaterDisablement=function(){_.bW(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.e.updateChildVisibilityProperties=function(){this.hostElement||_.K("kevlar_panel_property_init_killswitch")||this._enableProperties();var f=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=f);var S,B=(S=this.headerElement)==null?void 0:S.firstElementChild;if(B&&!this.adHeaderImageLockupViewModel){S=f==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";B.collapsed=S;B=_.m9(B).querySelector("#visibility-button");if(!B)return;(B=B.firstElementChild)&&
B.polymerController.is==="ytd-toggle-button-renderer"&&B.polymerController.data.isToggled!==S&&B.polymerController.set("data.isToggled",S)}var G;if(S=(G=this.contentElement)==null?void 0:G.firstElementChild)if(f&&f!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")S.removeAttribute("panel-content-visible");else{S.setAttribute("panel-content-visible","");var g;(g=S.markDirty)==null||g.call(S)}};
_.e.onYtChangeEngagementPanelVisibilityAction=function(f){var S=this,B,G=(B=this.data)==null?void 0:B.targetId,g,b,z;B=((g=this.data)==null?void 0:(b=g.identifier)==null?void 0:b.tag)||((z=this.data)==null?void 0:z.panelIdentifier);var X=_.H(f,_.qHv),w;f=G&&(X==null?void 0:X.targetId)===G||B&&(X==null?void 0:(w=X.panelIdentifier)==null?void 0:w.tag)===B;this.dialog&&f&&(X==null?void 0:X.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(G==="engagement-panel-comments-section"?_.bW(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.bW(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",B]));!_.K("kevlar_use_engagement_panel_management_component")&&f&&(G=X.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!G?_.xJ.addJob(function(){S.visibility=X.visibility},2,this.hideDelayMs):this.visibility=X.visibility,X.visibility&&this.notifyVisibilityChanged(X.visibility))};
_.e.onYtScrollToEngagementPanelCommand=function(f){var S,B=(S=this.data)==null?void 0:S.targetId,G,g,b;S=((G=this.data)==null?void 0:(g=G.identifier)==null?void 0:g.tag)||((b=this.data)==null?void 0:b.panelIdentifier);f=_.H(f,_.nWX);var z;(B&&(f==null?void 0:f.targetId)===B||S&&(f==null?void 0:(z=f.panelIdentifier)==null?void 0:z.tag)===S)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.bW(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.e.attachVEs=function(f){var S,B;(f==null?0:(S=f.content)==null?0:(B=S.productListRenderer)==null?0:B.trackingParams)&&_.ik().graftServerVe(f.content.productListRenderer.trackingParams);var G,g;(f==null?0:(G=f.content)==null?0:(g=G.transcriptRenderer)==null?0:g.trackingParams)&&_.ik().graftServerVe(f.content.transcriptRenderer.trackingParams)};
_.e.onYtUpdateEngagementPanelAction=function(f){var S,B=(S=this.data)==null?void 0:S.targetId;f=_.H(f,nzn);B&&(f==null?void 0:f.targetId)===B&&(this.updatePanel({engagementPanelSectionListRenderer:{header:f==null?void 0:f.header,content:f==null?void 0:f.content}},!1),this.attachVEs(f))};
_.e.onYtShowEngagementPanelScrimAction=function(f){var S,B=(S=this.data)==null?void 0:S.targetId;f=_.H(f,kPe);B&&(f==null?void 0:f.engagementPanelTargetId)===B&&(this.scrimmed=!0)};
_.e.onYtHideEngagementPanelScrimAction=function(f){var S,B=(S=this.data)==null?void 0:S.targetId;f=_.H(f,EzX);B&&(f==null?void 0:f.engagementPanelTargetId)===B&&(this.scrimmed=!1)};
_.e.getIdentifier=function(){var f,S,B;return((f=this.data)==null?void 0:f.panelIdentifier)||((S=this.data)==null?void 0:(B=S.identifier)==null?void 0:B.tag)};
_.e.getSurface=function(){var f,S;return(f=this.data)==null?void 0:(S=f.identifier)==null?void 0:S.surface};
_.y3.Object.defineProperties(Rk.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var f=this.getIdentifier();return f==="engagement-panel-youchat"||f==="PAyouchat"}}});
Rk.prototype.visibilityChanged=Rk.prototype.visibilityChanged;Rk.prototype.isFullscreenChanged=Rk.prototype.isFullscreenChanged;Rk.prototype.isTheaterModeChanged=Rk.prototype.isTheaterModeChanged;Rk.prototype.dataChanged=Rk.prototype.dataChanged;Rk.prototype.forwardPopupClosedToFlowRootRenderer=Rk.prototype.forwardPopupClosedToFlowRootRenderer;Rk.prototype.onYtRendererstamperFinished=Rk.prototype.onYtRendererstamperFinished;
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],Rk.prototype,"actionHandlerBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Rk.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],Rk.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.Px.YtEventForwardingBehavior),_.Z("design:type",Object)],Rk.prototype,"ytEventForwardingBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Rk.prototype,"data",void 0);
_.N([_.n({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.Z("design:type",Object)],Rk.prototype,"headerData",void 0);_.N([_.n(),_.Z("design:type",Object)],Rk.prototype,"secondaryHeaderData",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Rk.prototype,"visibility",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Rk.prototype,"contentEmpty",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Rk.prototype,"scrimmed",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Rk.prototype,"dialog",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Rk.prototype,"dropdown",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Rk.prototype,"darkerPanels",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Rk.prototype,"matchContentTheme",void 0);_.N([_.n(),_.Z("design:type",Object)],Rk.prototype,"disableAutoFill",void 0);
_.N([_.n({reflectToAttribute:!0,value:_.K("optimal_reading_width_comments_ep")}),_.Z("design:type",Boolean)],Rk.prototype,"optimalReadingWidthComments",void 0);_.N([_.n(),_.Z("design:type",Number)],Rk.prototype,"hideDelayMs",void 0);_.N([_.n({selector:_.pF,reflectToAttribute:!0}),_.Z("design:type",Object)],Rk.prototype,"isFullscreen",void 0);_.N([_.n({selector:_.CF,reflectToAttribute:!0}),_.Z("design:type",Object)],Rk.prototype,"isTheaterMode",void 0);
_.N([_.n(),_.Z("design:type",Number)],Rk.prototype,"showDelayMs",void 0);_.N([_.n({reflectToAttribute:!0}),_.k("data.targetId"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Rk.prototype,"targetId",null);_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Rk.prototype,"webSize",null);_.N([_.n(),_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Rk.prototype,"hideFooterBorder",null);
_.N([_.n(),_.Z("design:type",Object)],Rk.prototype,"isWatch",void 0);_.N([_.n(),_.Z("design:type",Object)],Rk.prototype,"originalTheaterState",void 0);_.N([_.n(),_.Z("design:type",Object)],Rk.prototype,"theaterDisablementPanelIdentifier",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Rk.prototype,"modernPanels",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Rk.prototype,"isWatchWhilePanel",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Rk.prototype,"shortsPanel",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Rk.prototype,"liveChatEngagementPanel",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Rk.prototype,"learningChatEngagementPanel",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Rk.prototype,"liveChatReplyPanel",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Rk.prototype,"enableAnchoredPanel",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Rk.prototype,"disableBackdropFilter",void 0);_.N([_.n(),_.Z("design:type",Object)],Rk.prototype,"trackEngagementPanelVisibility",void 0);_.N([_.vF("#header"),_.Z("design:type",HTMLElement)],Rk.prototype,"headerElement",void 0);_.N([_.vF("#header > *"),_.Z("design:type",HTMLElement)],Rk.prototype,"header",void 0);
_.N([_.vF("ytd-section-list-renderer"),_.Z("design:type",Object)],Rk.prototype,"sectionListRendererElement",void 0);_.N([_.vF("panel-ad-header-image-lockup-view-model"),_.Z("design:type",HTMLElement)],Rk.prototype,"adHeaderImageLockupViewModel",void 0);_.N([_.vF("#content"),_.Z("design:type",HTMLElement)],Rk.prototype,"contentElement",void 0);
_.N([_.Vg("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Rk.prototype,"onYtRendererstamperFinished",null);_.N([_.Vg("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Rk.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.N([_.HF("data","isFullscreen","isTheaterMode"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Rk.prototype,"dataChanged",null);
_.N([_.JO("isTheaterMode"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Rk.prototype,"isTheaterModeChanged",null);_.N([_.JO("isFullscreen"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Rk.prototype,"isFullscreenChanged",null);_.N([_.JO("visibility"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Rk.prototype,"visibilityChanged",null);
_.N([_.C({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],Rk);
_.p(Rk,"ytd-engagement-panel-section-list-renderer",function(){if(ivZ!==void 0)return ivZ;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return ivZ=f},{mode:_.X_("kevlar_poly_si_batch_j028")?1:2});var f1u;var XK=function(){var f=_.I.apply(this,arguments)||this;f.lastRenderedPanelIds=new Set;f.visiblePanels=[];f.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return f};
_.q(XK,_.I);_.e=XK.prototype;_.e.dataChanged=function(){if(this.data){for(var f=[],S=_.m(this.data),B=S.next();!B.done;B=S.next()){B=B.value;var G=void 0,g=void 0,b=(G=B)==null?void 0:(g=G.engagementPanelSectionListRenderer)==null?void 0:g.visibility;g=G=void 0;((G=B)==null?0:(g=G.engagementPanelSectionListRenderer)==null?0:g.targetId)&&b!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&f.push(B)}this.visiblePanels=f}else this.visiblePanels=[]};
_.e.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}}};
_.e.withoutVisiblePanelById=function(f){return this.visiblePanels.filter(function(S){var B;return((B=S.engagementPanelSectionListRenderer)==null?void 0:B.targetId)!==f})};
_.e.onYtChangeEngagementPanelVisibilityAction=function(f){var S=this,B=_.H(f,_.qHv);if(this.data&&(B==null?0:B.targetId)&&(B==null?0:B.visibility)){var G,g=(G=this.data.find(function(z){var X;return((X=z.engagementPanelSectionListRenderer)==null?void 0:X.targetId)===B.targetId}))==null?void 0:G.engagementPanelSectionListRenderer;
if(g){var b=this.withoutVisiblePanelById(B.targetId);B.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(f=this.data.find(function(z){var X;return((X=z.engagementPanelSectionListRenderer)==null?void 0:X.targetId)===B.targetId}))&&(b=[f].concat(_.$d(b)));
this.hideDelayMs&&B.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&b.length===0?_.xJ.addJob(function(){g.visibility=B.visibility;S.visiblePanels=b},10,this.hideDelayMs):(g.visibility=B.visibility,this.visiblePanels=b);
_.mU(this.hostElement,"yt-engagement-panels-visible-changed",[b])}}};
_.e.onRendererstamperFinished=function(){var f=new Set(this.visiblePanels.map(function(S){var B;return(B=S.engagementPanelSectionListRenderer)==null?void 0:B.targetId}));
this.handlePanelVisibilityChange(f,this.lastRenderedPanelIds);this.lastRenderedPanelIds=f};
_.e.handlePanelVisibilityChange=function(f,S){f=f===void 0?new Set:f;S=S===void 0?new Set:S;if(this.data)for(var B=_.m(this.data),G=B.next();!G.done;G=B.next()){G=G.value;var g=void 0,b=void 0,z=(g=G)==null?void 0:(b=g.engagementPanelSectionListRenderer)==null?void 0:b.targetId;if(z&&(g=S.has(z),b=f.has(z),z=void 0,!g&&b?(b=g=void 0,z=(g=G)==null?void 0:(b=g.engagementPanelSectionListRenderer)==null?void 0:b.onShowCommands):g&&!b&&(b=g=void 0,z=(g=G)==null?void 0:(b=g.engagementPanelSectionListRenderer)==
null?void 0:b.onHideCommands),z))for(G=_.m(z),z=G.next();!z.done;z=G.next())this.ytComponentBehavior.resolveCommand(z.value)}};
XK.prototype.onRendererstamperFinished=XK.prototype.onRendererstamperFinished;XK.prototype.dataChanged=XK.prototype.dataChanged;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],XK.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],XK.prototype,"actionHandlerBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],XK.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],XK.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],XK.prototype,"lastRenderedPanelIds",void 0);_.N([_.n(),_.Z("design:type",Number)],XK.prototype,"hideDelayMs",void 0);_.N([_.n(),_.Z("design:type",Array)],XK.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Array)],XK.prototype,"visiblePanels",void 0);_.N([_.n(),_.Z("design:type",Boolean)],XK.prototype,"isWatchWhilePanel",void 0);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],XK.prototype,"dataChanged",null);_.N([_.Vg("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],XK.prototype,"onRendererstamperFinished",null);_.N([_.C({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],XK);
_.p(XK,"ytd-watch-engagement-panels",function(){if(f1u!==void 0)return f1u;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return f1u=f},{mode:1});var oiz;var wG=function(){return _.I.apply(this,arguments)||this};
_.q(wG,_.I);wG.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.pC(_.m9(this.hostElement).querySelector("#text"),_.iMm(_.$Ai,this.data.companionLegalText))};
wG.prototype.computeAutoScrollEnabled=function(f,S){return f&&!S};
wG.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
wG.prototype.onToggleTap=function(){this.expanded=!this.expanded};
wG.prototype.expandedChanged=wG.prototype.expandedChanged;wG.prototype.dataChanged=wG.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],wG.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.uZn),_.Z("design:type",Object)],wG.prototype,"ytdAutoScrollBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],wG.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],wG.prototype,"expanded",void 0);
_.N([_.n({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.Z("design:type",Boolean)],wG.prototype,"autoScrollEnabled",void 0);_.N([_.n(),_.Z("design:type",String)],wG.prototype,"expanderIcon",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],wG.prototype,"dataChanged",null);
_.N([_.JO("expanded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],wG.prototype,"expandedChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],wG);
_.p(wG,"ytd-companion-legal-text-renderer",function(){if(oiz!==void 0)return oiz;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return oiz=f},{mode:1});var Sx2;var hh=function(){var f=_.I.apply(this,arguments)||this;f.buttonUpdate=_.K("web_modern_buttons");f.kevlarWatchGrid=_.K("kevlar_watch_grid");f.centerAlignDescription=_.K("action_companion_center_align_description");f.truncateDomain=_.K("action_companion_truncate_domain");return f};
_.q(hh,_.I);_.e=hh.prototype;_.e.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.e.getOnLayoutVisibleCallback=function(){var f=_.U6("yt.www.ads.eventcache.getLastCompanionData");return f?(f=f())&&f.onLayoutVisibleCallback:null};
_.e.getLayoutId=function(){var f=_.U6("yt.www.ads.eventcache.getLastCompanionData");return f?(f=f())&&f.layoutId:null};
_.e.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",hh.JSC$20294_DEFAULT_AD_BADGE_RENDERER);var f=this.getOnLayoutVisibleCallback();f&&f()}};
_.e.getButtonRenderer=function(f){return f.actionButton&&_.H(f.actionButton,_.IR)?(delete _.H(f.actionButton,_.IR).navigationEndpoint,_.H(f.actionButton,_.IR)):{}};
_.e.onClick=function(f){var S=this;if((!_.K("web_modern_buttons")||!_.lF(_.ct(f),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){f=_.B8();var B=this.getLayoutId();f&&B&&_.K("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?f.getPlayerPromise().then(function(G){(new _.$M(G)).executeCommand(S.data.navigationEndpoint,B)}):_.K("kevlar_companion_resolve_command_killswitch")?_.ew(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.bW(this.hostElement,"yt-companion-ad-clicked",["action-companion",B])}};
_.y3.Object.defineProperties(hh.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var f,S,B;return((f=this.data)==null?0:(S=f.detailsLine)==null?0:(B=S.adRating)==null?0:B.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 f,S,B,G;return((f=this.data)==null?0:(S=f.detailsLine)==null?0:(B=S.adRating)==null?0:(G=B.ratingIcon)==null?0:G.iconType)?_.F_(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var f,S,B,G;return((f=this.data)==null?0:(S=f.detailsLine)==null?0:(B=S.texts)==null?0:(G=B[0])==null?0:G.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 f,S;return((f=this.data)==null?0:(S=f.description)==null?0:S.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var f=_.U6("yt.www.ads.eventcache.getLastCompanionData");return f?(f=f())&&f.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var f=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return f?f.indexOf("/default_banner")!==-1:!0}}});
hh.prototype.onClick=hh.prototype.onClick;hh.prototype.dataChanged=hh.prototype.dataChanged;hh.JSC$20294_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Jf("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],hh.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],hh.prototype,"rendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],hh.prototype,"data",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],hh.prototype,"buttonUpdate",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],hh.prototype,"kevlarWatchGrid",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],hh.prototype,"centerAlignDescription",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],hh.prototype,"truncateDomain",void 0);
_.N([_.n({computed:"computeButtonOverride(buttonUpdate)"}),_.Z("design:type",Object)],hh.prototype,"buttonOverride",void 0);_.N([_.k("data.detailsLine.adRating.ratingText"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],hh.prototype,"getRating",null);_.N([_.k("getRating"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],hh.prototype,"computeRatingHidden",null);
_.N([_.k("data.detailsLine.adRating.ratingIcon.iconType"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],hh.prototype,"iconType",null);_.N([_.k("data.detailsLine.texts.0.text"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],hh.prototype,"getDetailsLine",null);_.N([_.k("getDetailsLine"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],hh.prototype,"computeDetailsLineHidden",null);
_.N([_.k("data.description.text"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],hh.prototype,"getDescriptionText",null);_.N([_.k("getDescriptionText"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],hh.prototype,"computeDescriptionTextHidden",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],hh.prototype,"interactionLoggingClientData",null);
_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],hh.prototype,"hideBanner",null);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hh.prototype,"dataChanged",null);_.N([_.Vg("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],hh.prototype,"onClick",null);_.N([_.C({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],hh);
_.p(hh,"ytd-action-companion-ad-renderer",function(){if(Sx2!==void 0)return Sx2;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return Sx2=f},{mode:_.X_("kevlar_poly_si_batch_j067")?1:2});var BBY;var GQn;var TB=function(){var f=_.I.apply(this,arguments)||this;f.buttonUpdate=_.K("web_modern_buttons");f.hideLegacyBanner=_.K("enable_dsa_one_click_ata_translators_infeed_elements");f.adInfoButtonStyle="mono";f.adInfoButtonType="text";f.noDotAdBadge=!0;return f};
_.q(TB,_.I);_.e=TB.prototype;_.e.getOnLayoutVisibleCallback=function(){var f=_.U6("yt.www.ads.eventcache.getLastCompanionData");return f?(f=f())&&f.onLayoutVisibleCallback:null};
_.e.getLayoutId=function(){var f=_.U6("yt.www.ads.eventcache.getLastCompanionData");return f?(f=f())&&f.layoutId:null};
_.e.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 f=this.data.image.thumbnail.thumbnails[0];this.imageSrc=f.url?_.io(f.url):void 0;this.imageWidth=f.width||0;this.imageHeight=f.height||0}this.data.clickthroughEndpoint&&_.H(this.data.clickthroughEndpoint,_.pg)&&(f=_.H(this.data.clickthroughEndpoint,_.pg).url,_.K("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
f||"":f?(f=_.io(f),this.clickThroughUrl=_.Ve(f)):this.clickThroughUrl=void 0);(f=this.getOnLayoutVisibleCallback())&&f()}};
_.e.onClick=function(f){_.lF(_.ct(f),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(f)};
_.e.handleClick=function(){var f=this;this.data&&this.data.clickthroughEndpoint&&(_.ew(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(S){f.macroReplacementBehavior.sendServiceRequestAction([S])}),_.bW(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.e.onLoad=function(){_.mU(this.hostElement,"yt-refit-popups-action")};
_.y3.Object.defineProperties(TB.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var f=_.U6("yt.www.ads.eventcache.getLastCompanionData");return f?(f=f())&&f.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var f=_.U6("yt.www.ads.eventcache.getLastCompanionData");return f?(f=f())&&f.interactionLoggingClientData:null}}});
TB.prototype.onLoad=TB.prototype.onLoad;TB.prototype.onClick=TB.prototype.onClick;TB.prototype.dataChanged=TB.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],TB.prototype,"rendererBehavior",void 0);_.N([_.r(jGO.YtMacroReplacementBehavior),_.Z("design:type",Object)],TB.prototype,"macroReplacementBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],TB.prototype,"data",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],TB.prototype,"buttonUpdate",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],TB.prototype,"hideLegacyBanner",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],TB.prototype,"adInfoButtonStyle",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],TB.prototype,"adInfoButtonType",void 0);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],TB.prototype,"macros",null);
_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],TB.prototype,"interactionLoggingClientData",null);_.N([_.n(),_.Z("design:type",String)],TB.prototype,"clickThroughUrl",void 0);_.N([_.n(),_.Z("design:type",_.hJ)],TB.prototype,"imageSrc",void 0);_.N([_.n(),_.Z("design:type",Number)],TB.prototype,"imageWidth",void 0);_.N([_.n(),_.Z("design:type",Number)],TB.prototype,"imageHeight",void 0);_.N([_.n(),_.Z("design:type",Object)],TB.prototype,"noDotAdBadge",void 0);
_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],TB.prototype,"dataChanged",null);_.N([_.Vg("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],TB.prototype,"onClick",null);_.N([_.Vg("load"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],TB.prototype,"onLoad",null);_.N([_.C({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],TB);
_.p(TB,"ytd-image-companion-renderer",function(){if(GQn!==void 0)return GQn;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return GQn=f},{mode:_.X_("kevlar_poly_si_batch_j067")?1:2});var giY;var FK=function(){return _.I.apply(this,arguments)||this};
_.q(FK,_.I);_.e=FK.prototype;_.e.dataChanged=function(){this.set("data.adBadge",FK.JSC$20303_DEFAULT_AD_BADGE_RENDERER);if(this.data){var f=this.getOnLayoutVisibleCallback();f&&f()}};
_.e.getOnLayoutVisibleCallback=function(){var f=_.U6("yt.www.ads.eventcache.getLastCompanionData");return f?(f=f())&&f.onLayoutVisibleCallback:null};
_.e.getLayoutId=function(){var f=_.U6("yt.www.ads.eventcache.getLastCompanionData");return f?(f=f())&&f.layoutId:null};
_.e.onCompanionClicked=function(f){this.data&&(f.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.bW(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.e.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var f=_.B8(),S=this.getLayoutId(),B=this.data.clickToAdvSiteEndpoint;f&&S&&_.K("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?f.getPlayerPromise().then(function(G){(new _.$M(G)).executeCommand(B,S)}):_.ew(this.hostElement,"yt-navigate",{endpoint:B})}};
_.e.sendTrackingPings=function(f){if(f&&f.length!==0&&f[0].loggingUrls&&(f=f[0].loggingUrls.map(this.getBaseUrl)))for(var S=0;S<f.length;S++)_.pO(f[S])};
_.e.getBaseUrl=function(f){return f.baseUrl||""};
_.y3.Object.defineProperties(FK.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var f=_.U6("yt.www.ads.eventcache.getLastCompanionData");return f?(f=f())&&f.interactionLoggingClientData:null}}});
FK.prototype.onCompanionClicked=FK.prototype.onCompanionClicked;FK.prototype.dataChanged=FK.prototype.dataChanged;FK.JSC$20303_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Jf("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],FK.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],FK.prototype,"data",void 0);_.N([_.vF("#title"),_.Z("design:type",HTMLElement)],FK.prototype,"shopTitle",void 0);
_.N([_.HF("data.impressionEndpoints"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],FK.prototype,"dataChanged",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],FK.prototype,"interactionLoggingClientData",null);_.N([_.Vg("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],FK.prototype,"onCompanionClicked",null);
_.N([_.C({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],FK);
_.p(FK,"ytd-shopping-companion-renderer",function(){if(giY!==void 0)return giY;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return giY=f},{mode:1});_.eq(_.oS(function(f){var S=f.data;var B=_.tE("banner-image-layout-view-model");_.c8(B,function(){return S().interaction},cCu);
_.of(B,{visibilityCallback:function(G){var g,b=(g=S().interaction)==null?void 0:g.onFirstVisible;G&&b&&_.MB(b)},
showOption:_.Wx});_.Lj(function(){var G,g;g=(g=_.U6("yt.www.ads.eventcache.getLastCompanionData"))?(g=g())&&g.onLayoutVisibleCallback:null;(G=g)==null||G()});
return _.T("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.iF(function(){_.mU(B.value,"yt-refit-popups-action")}),
el:B,"aria-label":function(){var G,g;return(G=S().interaction)==null?void 0:(g=G.accessibility)==null?void 0:g.label}},_.T("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.T(_.xK,{data:function(){return S().adImage}},{adImageViewModel:function(G){return _.T(_.Tu,{data:G.data,
targetHeight:80,customCommandResolver:cCu})}})),_.T("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.T("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.T(_.xK,{data:function(){return S().adBadge}},{adBadgeViewModel:function(G){return _.T(_.Sc,{data:G.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.T("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.T(_.xK,{data:function(){return S().menu}},{buttonViewModel:_.I8}))))},"fj"),"banner-image-layout-view-model",{props:{data:_.W4}});_.eq(_.oS(function(f){var S=f.data;f=_.tE("top-banner-image-text-icon-buttoned-layout-view-model");_.c8(f,function(){return S().interaction},l8Y);
_.of(f,{visibilityCallback:function(B){var G,g=(G=S().interaction)==null?void 0:G.onFirstVisible;B&&g&&_.MB(g)},
showOption:_.Wx});_.Lj(function(){var B,G;G=(G=_.U6("yt.www.ads.eventcache.getLastCompanionData"))?(G=G())&&G.onLayoutVisibleCallback:null;(B=G)==null||B()});
return _.T("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:f},_.T("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.T(_.xK,{data:function(){return S().adImage}},{adImageViewModel:function(B){return _.T(_.Tu,{data:B.data,
targetHeight:80,customCommandResolver:l8Y})}})),_.T("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.T("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.T(_.xK,{data:function(){return S().adAvatarLockup}},{adAvatarLockupViewModel:function(B){return _.T(WAn,{data:B.data,
customCommandResolver:l8Y})}})),_.T(_.xK,{data:function(){return S().adButton}},{adButtonViewModel:function(B){return _.T(_.lQ,{data:B.data,
customCommandResolver:l8Y})}}),_.T("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.T(_.xK,{data:function(){return S().menu}},{buttonViewModel:_.I8}))))},"gj"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.W4}});var ea2={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"},Vy=function(){var f=_.I.apply(this,arguments)||this;f.updateCompanionDataJobId=0;f.contentVideoId=null;f.player=null;f.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return f};
_.q(Vy,_.I);_.e=Vy.prototype;_.e.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:ea2}}};
_.e.attached=function(){var f=this,S=_.B8();S&&S.getPlayerPromise().then(function(B){f.getCachedDataAndListen(B)})};
_.e.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.e.updateRendererStamper=function(){var f={};if(this.data)for(var S in ea2)if(this.data[S]){f[S]=this.data[S];break}if(this.oneofRenderer!=void 0||Object.keys(f).length)this.oneofRenderer=f};
_.e.getCachedDataAndListen=function(f){var S=this.retrieveCachedCompanionData();S&&Object.keys(S).length&&this.receiveCompanionData(S);this.ytPlayerListenerBehavior.listenToPlayerEvent(f,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=f};
_.e.retrieveCachedCompanionData=function(){return _.S1.yt&&_.S1.yt.www&&_.S1.yt.www.ads&&_.S1.yt.www.ads.eventcache&&_.S1.yt.www.ads.eventcache.getLastCompanionData?_.S1.yt.www.ads.eventcache.getLastCompanionData():null};
_.e.receiveCompanionData=function(f){f&&Object.keys(f).length?(this.contentVideoId=f.contentVideoId,this.setCompanionData(f)):this.setCompanionData(f)};
_.e.setCompanionData=function(f){this.cancelPendingCompanionAdJobs();if(f){this.updateCompanionDataJobId=0;for(var S in ea2)ea2.hasOwnProperty(S)&&(this.data[S]=void 0);f.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",f.shoppingCompanionCarouselRenderer):f.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",f.imageCompanionAdRenderer):f.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",f.actionCompanionAdRenderer),_.mU(this.hostElement,
"yt-hide-unlimited-offer-module"),_.mU(this.hostElement,"yt-hide-tvfilm-offer-module")):f.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",f.bannerImageLayoutViewModel):f.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",f.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.e.dataChanged=function(){var f=this,S=_.B8();S?S.getPlayerPromise().then(function(B){f.contentVideoId&&B.getVideoUrl().includes("v="+f.contentVideoId)||(f.cancelPendingCompanionAdJobs(),f.updateRendererStamper())}):_.CL(Error("jm"))};
_.e.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.xJ.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.e.handleCompanionAdClicked=function(f,S){this.player.onAdUxClicked(f,S);this.player.pauseVideo()};
Vy.prototype.dataChanged=Vy.prototype.dataChanged;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Vy.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],Vy.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Vy.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Vy.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.r(_.Nr.YtPlayerListenerBehavior),_.Z("design:type",_.Mr)],Vy.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Vy.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],Vy.prototype,"oneofRenderer",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Vy.prototype,"dataChanged",null);_.N([_.C({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],Vy);
_.p(Vy,"ytd-companion-slot-renderer",function(){if(BBY!==void 0)return BBY;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return BBY=f},{mode:_.X_("kevlar_poly_si_batch_j067")?
1:2});var bKO;var Jh=function(){return _.I.apply(this,arguments)||this};
_.q(Jh,_.I);Jh.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
Jh.prototype.dataChanged=Jh.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Jh.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Jh.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],Jh.prototype,"companionSlotData",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Jh.prototype,"dataChanged",null);
_.N([_.C({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],Jh);
_.p(Jh,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(bKO!==void 0)return bKO;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return bKO=f},{mode:1});var m0B;var Pr=function(){var f=_.I.apply(this,arguments)||this;f.skinnyMode=!1;f.COMPACT_EVENT_COUNT=4;f.onShelfToggleButtonTap=function(){f.logTap(f.data);f.showingMore=!f.showingMore};
f.onShelfToggleButtonFocus=function(){f.showingMore||(f.logTap(f.data),f.showingMore=!0,_.ui(f,function(){var S=f.COMPACT_EVENT_COUNT-1,B;(B=_.m9(f.hostElement).querySelector("#event-"+S))==null||B.focus()}))};
return f};
_.q(Pr,_.I);_.e=Pr.prototype;_.e.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.e.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.e.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.Fc(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.Fc(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.Fc(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.Fc(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.Fc(this.infoTooltip,this.infoTooltip.hide))};
_.e.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.Fc(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.Fc(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.Fc(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.Fc(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.Fc(this.infoTooltip,this.infoTooltip.hide))};
_.e.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)};
_.e.onShowingMoreChanged=function(){var f;this.showingMoreChanged((f=this.showingMore)!=null?f:!1)};
_.e.showingMoreChanged=function(f){var S=this.get("data.events")||[];this.set("restEvents",S.slice(1,f?S.length:this.COMPACT_EVENT_COUNT).map(function(B){return B.ticketEventRenderer}));
S.slice(0,f?S.length:this.COMPACT_EVENT_COUNT).forEach(function(B){var G=_.xc();B=B.ticketEventRenderer.trackingParams;_.Of()&&G&&B&&(B=_.Ye(B),G&&_.ME(G,B))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.e.computeAriaLabel=function(f){return f.subtitle1+", "+f.subtitle2};
_.e.logTap=function(f){_.Of()&&this.ytRendererBehavior.logExplicitClick(f)};
_.e.isKeyboardAction=function(f){return this.get("detail.x",f)===0&&this.get("detail.y",f)===0};
_.e.onFirstEventTap=function(f){f.target&&this.handleTap(f.target,this.firstEvent,this.isKeyboardAction(f))};
_.e.onTicketLinkTap=function(f){f.target&&this.handleTap(f.target,f.model.item,this.isKeyboardAction(f))};
_.e.handleTap=function(f,S,B){if(S.buttonCommand)if(S.hasMultipleOffers)Object.assign(_.H(S.buttonCommand,_.jR),{properties:{source:B?"keyboard":"tap"}}),this.logTap(S),this.popupPositionTarget=f,_.Xh(this.hostElement,[S.buttonCommand],this.hostElement);else{var G;if((G=_.H(S.buttonCommand,_.pg))==null?0:G.url)this.logTap(S),_.LC(window,_.H(S.buttonCommand,_.pg).url)}};
Pr.prototype.onShowingMoreChanged=Pr.prototype.onShowingMoreChanged;Pr.prototype.dataChanged=Pr.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Pr.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Pr.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],Pr.prototype,"firstEvent",void 0);_.N([_.n(),_.Z("design:type",Object)],Pr.prototype,"restEvents",void 0);_.N([_.n(),_.Z("design:type",String)],Pr.prototype,"imageUrl",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Pr.prototype,"showingMore",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Pr.prototype,"canShowMore",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Pr.prototype,"skinnyMode",void 0);_.N([_.n(),_.Z("design:type",HTMLElement)],Pr.prototype,"popupPositionTarget",void 0);_.N([_.vF("#banner-info-tooltip"),_.Z("design:type",Object)],Pr.prototype,"infoTooltip",void 0);
_.N([_.vF("#info-container"),_.Z("design:type",HTMLElement)],Pr.prototype,"infoContainer",void 0);_.N([_.vF("#shelf-toggler"),_.Z("design:type",HTMLElement)],Pr.prototype,"shelfToggleButton",void 0);_.N([_.vF("#separator"),_.Z("design:type",HTMLDivElement)],Pr.prototype,"separator",void 0);_.N([_.n(),_.Z("design:type",String)],Pr.prototype,"shelfTogglerLabelText",void 0);_.N([_.n(),_.Z("design:type",String)],Pr.prototype,"shelfTogglerIcon",void 0);
_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Pr.prototype,"dataChanged",null);_.N([_.HF("showingMore"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Pr.prototype,"onShowingMoreChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],Pr);
_.p(Pr,"ytd-ticket-shelf-renderer",function(){if(m0B!==void 0)return m0B;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return m0B=f},{mode:1});var zaX;var Rau;var vr=function(){return _.I.apply(this,arguments)||this};
_.q(vr,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],vr.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],vr.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],vr);
_.p(vr,"ytd-comments-entry-point-message-renderer",function(){if(Rau!==void 0)return Rau;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Rau=f},{mode:1});var X6B;var KA=function(){return _.I.apply(this,arguments)||this};
_.q(KA,_.I);_.y3.Object.defineProperties(KA.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.teaserAvatar)}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],KA.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],KA.prototype,"data",void 0);_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],KA.prototype,"hasAvatar",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],KA);
_.p(KA,"ytd-comments-entry-point-teaser-renderer",function(){if(X6B!==void 0)return X6B;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return X6B=f},{mode:1});var w6Y;var dG=function(){return _.I.apply(this,arguments)||this};
_.q(dG,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],dG.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],dG.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],dG);
_.p(dG,"ytd-comments-simplebox-renderer",function(){if(w6Y!==void 0)return w6Y;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return w6Y=f},{mode:1});var iy=function(){var f=_.I.apply(this,arguments)||this;f.fullHeight=!_.K("comment_teaser_full_height_kill_switch")&&_.K("kevlar_watch_grid");return f};
_.q(iy,_.I);iy.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"}}}};
iy.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
iy.prototype.onTap=function(){var f=this.tapCommand;f&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(f))};
iy.prototype.onKeyUp=function(f){if(f.keyCode===13)this.onTap()};
_.y3.Object.defineProperties(iy.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)==null?0:f.onTap)return this.data.onTap;var S,B;if(((S=this.data)==null?0:S.teaserContent)||((B=this.data)==null?0:B.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)!=null&&f.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
iy.prototype.onKeyUp=iy.prototype.onKeyUp;iy.prototype.onTap=iy.prototype.onTap;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],iy.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],iy.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],iy.prototype,"ytComponentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],iy.prototype,"data",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],iy.prototype,"fullHeight",void 0);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],iy.prototype,"tapCommand",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],iy.prototype,"simpleboxPlaceholder",null);_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],iy.prototype,"hasSimpleboxPlaceholder",null);
_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],iy.prototype,"simpleboxAvatar",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],iy.prototype,"teaserContent",null);_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],iy.prototype,"hasTeaserContent",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],iy.prototype,"teaserAvatar",null);
_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],iy.prototype,"hasTeaserAvatar",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],iy.prototype,"messageText",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],iy.prototype,"contentRenderer",null);_.N([_.k("data"),_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],iy.prototype,"hasContents",null);
_.N([_.k("data"),_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],iy.prototype,"hasContentRenderer",null);_.N([_.Vg("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],iy.prototype,"onTap",null);_.N([_.Vg("keypress"),_.Z("design:type",Function),_.Z("design:paramtypes",[_.dX]),_.Z("design:returntype")],iy.prototype,"onKeyUp",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],iy);
_.p(iy,"ytd-comments-entry-point-header-renderer",function(){if(zaX!==void 0)return zaX;var f=document.createElement("template");_.Y(f,'\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>');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return zaX=f},{mode:1});var hau;_.K("web_enable_sink_animated_rolling_character_and_number")?_.eq(_.K7N,"yt-animated-rolling-number",{props:{numberText:_.W4,numberValue:_.W4,heightPx:_.W4,fontSizeMultiplier:_.W4,shouldAnimate:_.W4,forceRollUp:_.W4}}):_.TD(_.mhV,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var TBz=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),F3n={numberText:"",heightPx:2*TBz,shouldAnimate:!1},Hr=function(){var f=_.I.apply(this,arguments)||this;f.usingAnimatedComponents=!0;f.wasDetailed=!1;f.JSC$20340_browserSupportsAnimation=_.K("web_supports_animations_api");f.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};f.detailed=!1;f.shouldAnimate=!1;f.viewCountProps=F3n;f.dateTextProps=
F3n;f.metadataBadgesInDescription=_.K("web_metadata_badges_in_description");return f};
_.q(Hr,_.I);_.e=Hr.prototype;_.e.resetAnimationState=function(){this.shouldAnimate=!1};
_.e.updateDynamicMetadata=function(){if(this.JSC$20340_browserSupportsAnimation){if(!this.detailed){var f,S,B,G;var g=(f=this.videoPrimaryInfoRenderer)==null?void 0:(S=f.viewCount)==null?void 0:(B=S.videoViewCountRenderer)==null?void 0:(G=B.extraShortViewCount)==null?void 0:G.simpleText;var b,z,X,w;var F=(b=this.videoPrimaryInfoRenderer)==null?void 0:(z=b.viewCount)==null?void 0:(X=z.videoViewCountRenderer)==null?void 0:(w=X.shortViewCount)==null?void 0:w.simpleText}if(!F){var V,J,P,d;g=(V=this.videoPrimaryInfoRenderer)==
null?void 0:(J=V.viewCount)==null?void 0:(P=J.videoViewCountRenderer)==null?void 0:(d=P.unlabeledViewCountValue)==null?void 0:d.simpleText;var Q,x,E,U;F=(Q=this.videoPrimaryInfoRenderer)==null?void 0:(x=Q.viewCount)==null?void 0:(E=x.videoViewCountRenderer)==null?void 0:(U=E.viewCount)==null?void 0:U.simpleText}var A,t,M;f=Number((A=this.videoPrimaryInfoRenderer)==null?void 0:(t=A.viewCount)==null?void 0:(M=t.videoViewCountRenderer)==null?void 0:M.originalViewCount);var a,l;A=(a=this.videoPrimaryInfoRenderer)==
null?void 0:(l=a.relativeDateText)==null?void 0:l.simpleText;var mx;a=!((mx=this.videoPrimaryInfoRenderer)==null||!mx.relativeDateText);if(g&&F&&f&&(A||!a)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;mx=F.split(new RegExp("("+g+")"));g=gzB(mx[0]);var zj;F={numberText:(zj=mx[1])!=null?zj:"",numberValue:f,heightPx:2*TBz,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var VN;zj=((VN=mx[2])!=null?VN:"")+"  ";this.setViewCount(F,g,gzB(zj));
if(!this.detailed&&a){g=A.split(/(\d+)/);VN=gzB(g[0]);var $Q;zj={numberText:($Q=g[1])!=null?$Q:"",heightPx:2*TBz,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var OV;$Q=((OV=g[2])!=null?OV:"")+"  ";this.setDateText(zj,VN,gzB($Q))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.e.setViewCount=function(f,S,B){_.ac(S)!==_.ac(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=S);this.viewCountProps.numberText!==(f==null?void 0:f.numberText)&&(this.viewCountProps=f||F3n);_.ac(B)!==_.ac(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=B)};
_.e.setDateText=function(f,S,B){_.ac(S)!==_.ac(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=S);this.dateTextProps.numberText!==(f==null?void 0:f.numberText)&&(this.dateTextProps=f||F3n);_.ac(B)!==_.ac(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=B)};
_.e.onYtUpdateViewershipAction=function(f){this.videoPrimaryInfoRenderer&&(_.H(f,mgu).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.H(f,mgu).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.H(f,mgu).viewCount)))};
_.e.onYtUpdateDateTextAction=function(f){if(this.videoPrimaryInfoRenderer){f=_.H(f,_.eNY).dateText;this.shouldAnimate=!0;var S;((S=this.videoPrimaryInfoRenderer)==null?0:S.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",f):this.set("videoPrimaryInfoRenderer.dateText",f)}};
_.y3.Object.defineProperties(Hr.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return GPB(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.ac(GPB(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.ac(this.viewCountPreNumberText),this.viewCountProps.numberText,_.ac(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.ac(this.dateTextPreNumberText),this.dateTextProps.numberText,_.ac(this.dateTextPostNumberText)].join("")}}});
Hr.prototype.updateDynamicMetadata=Hr.prototype.updateDynamicMetadata;Hr.prototype.resetAnimationState=Hr.prototype.resetAnimationState;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Hr.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Hr.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Hr.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],Hr.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Hr.prototype,"videoPrimaryInfoRenderer",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Hr.prototype,"detailed",void 0);_.N([_.n(),_.Z("design:type",Object)],Hr.prototype,"shouldAnimate",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Hr.prototype,"viewCountPreNumberText",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Hr.prototype,"viewCountProps",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Hr.prototype,"viewCountPostNumberText",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Hr.prototype,"dateTextPreNumberText",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Hr.prototype,"dateTextProps",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Hr.prototype,"dateTextPostNumberText",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Hr.prototype,"metadataBadgesInDescription",void 0);_.N([_.k("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Hr.prototype,"infoText",null);
_.N([_.k("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Hr.prototype,"descriptionInfoTooltipText",null);_.N([_.k("detailed"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Hr.prototype,"showDescriptionInfoTooltip",null);
_.N([_.k("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Hr.prototype,"animatedViewCountAccessibilityLabel",null);_.N([_.k("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Hr.prototype,"animatedDateTextAccessibilityLabel",null);
_.N([_.JO("videoPrimaryInfoRenderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Hr.prototype,"resetAnimationState",null);_.N([_.JO("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Hr.prototype,"updateDynamicMetadata",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-watch-info-text"})],Hr);
_.p(Hr,"ytd-watch-info-text",function(){if(hau!==void 0)return hau;var f=document.createElement("template");_.Y(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return hau=f},{mode:1});var V_$;var JNz=_.oS(function(f){var S=f.data;var B=f.setTapCommand;_.jp(function(){var G=_.CH(S().onTap);B(G)},"X4onJd");
return _.T("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.T(_.xK,{data:function(){return S().avatar}},{avatarViewModel:_.Ya}),_.T("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.T("span",null,function(){return S().simpleboxText})))},"hj");var PAB=_.oS(function(f){return _.T("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.T(_.v,{cond:function(){return _.H(f.data().avatar,_.y5)},
then:function(S){return _.T(_.Ya,{data:S,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.T("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.T(_.oY,{text:function(){return f.data().teaserText}})))},"ij");var vie=_.oS(function(f){var S=f.data;var B=f.setTapCommand;_.jp(function(){var G=_.CH(S().onTap);B(G)},"PmAol");
return _.T("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.T(_.xK,{data:function(){return S().teasers}},{commentsEntryPointTeaserViewModel:PAB}))},"jj");var K32=_.oS(function(f){var S=f.data;var B=f.setTapCommand;_.jp(function(){var G=_.CH(S().onTap);B(G)},"Nh3Hjd");
return _.T("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.T(_.oY,{text:function(){return S().messageText}}))},"kj");var d0n=_.oS(function(f){var S=f.data;var B=f.setTapCommand;var G=f.isDisabled;_.jp(function(){var g=(G==null?0:G())?void 0:_.CH(S().onTap);B(g)},"omeiWe");
return _.T("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.T(_.Y8,{icon:function(){return S().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.T(_.v,{cond:function(){return S().image},
then:function(g){return _.T(_.f9,{data:g,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.T(_.oY,{text:function(){return S().text},
className:function(){return S().image||S().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.T(_.xK,{data:function(){return S().button}},{buttonViewModel:function(g){return _.T(_.I8,{data:g.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:G==null?void 0:G()}}})}}))},"lj");var iK2=_.oS(function(f){var S=f.data;var B=f.itemIndex;var G=f.selectedIndex;var g=f.indexUpdatedCallback;var b=f.observer;f=f.title;var z=_.tE("yt-carousel-item-view-model",function(J){_.K("web_metadata_carousel_elref_bugfix")&&b&&b().observe(J)}),X=function(J){B()===G()&&g(J)},w=_.Uo(nh2),F=_.Uo(sq2),V=function(){var J,P,d;
return((J=S())==null?void 0:J.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!w()||((P=S())==null?void 0:P.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&F().includes("PAposts_by_host")||((d=S())==null?void 0:d.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&F().includes("PAyouchat")};
_.j9(function(){_.K("web_metadata_carousel_elref_bugfix")||b&&b().observe(z.value)});
return _.T("yt-carousel-item-view-model",{el:z,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":f},_.T(_.xK,{data:function(){var J,P;return(P=(J=_.H(S().carouselItem,ji2))==null?void 0:J.textCarousel)!=null?P:S().carouselItem}},{textCarouselItemViewModel:function(J){return _.T(d0n,{data:J.data,
setTapCommand:X,isDisabled:V})},
commentTeaserCarouselItemViewModel:function(J){return _.T(vie,{data:J.data,setTapCommand:X})},
commentInputBoxCarouselItemViewModel:function(J){return _.T(JNz,{data:J.data,setTapCommand:X})},
commentsEntryPointMessageViewModel:function(J){return _.T(K32,{data:J.data,setTapCommand:X})}}))},"mj");var HKX=_.oS(function(f){var S=f.numDots;var B=f.activeIndex;return _.T("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.T(_.dg,{each:function(){return Array.from({length:S()})},
keyBy:"INDEX"},function(G,g){return _.T("div",{class:function(){var b={};return _.K9("ytCarouselDotsShapeDot",(b.ytCarouselDotsShapeDotActive=g===B(),b))}})}))},"nj");var qxu=_.oS(function(f){var S=f.data;var B=f.handleCarouselNavigation;var G=f.numItems;var g=f.selectedIndex;var b=function(){return{disabled:g()===0}},z=function(){return{disabled:g()===G()-1}};
return _.T("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.T("div",null,_.T("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return S().title}),_.T(_.v,{cond:function(){return S().subtitle},
then:function(X){return _.T("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return S().subtitleAccessibilityText}},X)}})),_.T(_.v,{cond:function(){return G()>1},
then:function(){return _.T("div",{class:"ytCarouselTitleViewModelNavigation"},_.T(HKX,{numDots:G,activeIndex:g}),_.T(_.v,{cond:function(){return S().previousButton},
then:function(X){return _.T(_.xK,{data:X},{buttonViewModel:function(w){return _.T(_.I8,{data:w.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return B(-1)},
buttonOverrides:b})}})}}),_.T(_.v,{cond:function(){return S().nextButton},
then:function(X){return _.T(_.xK,{data:X},{buttonViewModel:function(w){return _.T(_.I8,{data:w.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return B(1)},
buttonOverrides:z})}})}}))}}))},"oj");_.eq(_.oS(function(f){var S=f.data;var B,G=_.tE("yt-video-metadata-carousel-view-model"),g=_.tE("div",function(a){if(_.K("web_metadata_carousel_elref_bugfix")){var l=function(){var mx=a.offsetWidth*x(),zj=24*(x()-1);P(mx+zj)};
l();window.ResizeObserver&&(B=new ResizeObserver(l),B.observe(a))}}),b=_.nL("HTML_DIR")==="rtl",z=!1,X=0,w=0;
f=_.m(_.hj(0,void 0,"f4aYxe"));var F=f.next().value,V=f.next().value;f=_.m(_.hj(0,void 0,"kU9O9"));var J=f.next().value,P=f.next().value;f=_.m(_.hj(!1,void 0,"GqphDd"));var d=f.next().value,Q=f.next().value,x=function(){var a,l,mx;return(mx=(a=S())==null?void 0:(l=a.carouselTitles)==null?void 0:l.length)!=null?mx:0},E=function(){g.value&&g.value.scrollLeft!==X&&V((b?g.value.scrollLeft<X:g.value.scrollLeft>X)?Math.min(F()+1,x()-1):Math.max(F()-1,0))},U;
window.IntersectionObserver&&(U=new IntersectionObserver(function(a){a=_.m(a);for(var l=a.next();!l.done;l=a.next())if(l.value.isIntersecting){if(z){z=!1;break}E()}else V(w)},{threshold:.2}));
_.jp(function(){if(g.value){var a=(b?-1:1)*(J()/x()+12)*(d()&&U?w:F());typeof g.value.scrollTo==="function"?g.value.scrollTo({left:a,behavior:"smooth"}):g.value.scrollLeft=a;X=a;w=d()&&U?w:F()}},"ZP1VMb");
var A,t=function(a){A=a};
_.j9(function(){if(!_.K("web_metadata_carousel_elref_bugfix")){var a=function(){var mx=g.value.offsetWidth*x(),zj=24*(x()-1);P(mx+zj)};
a();if(window.ResizeObserver){var l=new ResizeObserver(a);l.observe(g.value);_.Ov(function(){l.disconnect();U&&U.disconnect()})}}});
_.Ov(function(){if(_.K("web_metadata_carousel_elref_bugfix")){var a;(a=B)==null||a.disconnect();var l;(l=U)==null||l.disconnect()}});
var M=function(a){a=F()+a;a>=0&&a<x()&&(z=!0,V(a))};
return _.T("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:G,"on:click":_.iF(function(a){if(_.ZP(_.Ml(a),G.value,["BUTTON".toString()])||!A)return!1;_.oy().resolve(_.S7).resolveCommand(A,{forceClickLogging:!0});return!1}),
"on:touchstart":_.iF(function(){Q(!0);return!1}),
"on:touchend":_.iF(function(){U||E();Q(!1);return!1}),
hidden:function(){var a,l;return!((a=S())==null?0:(l=a.carouselItems)==null?0:l.length)}},_.T("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.T(_.v,{cond:function(){return S().carouselTitles},
then:function(a){return _.T(_.xK,{data:function(){return a()[d()&&U?w:F()]}},{carouselTitleViewModel:function(l){return _.T(qxu,{data:l.data,
handleCarouselNavigation:M,numItems:x,selectedIndex:F})}})}})),_.T("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:g},_.T("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+J()+"px;"}},_.T(_.v,{cond:function(){return S().carouselItems},
then:function(a){return _.T(_.dg,{each:a},function(l,mx){return _.T(_.xK,{data:function(){return l}},{carouselItemViewModel:function(zj){return _.T(iK2,{data:zj.data,
itemIndex:mx,selectedIndex:F,indexUpdatedCallback:t,observer:U,title:function(){a:{var VN=mx();var $Q,OV=($Q=S())==null?void 0:$Q.carouselTitles;if(OV&&(VN=OV[VN])){var rW;VN=(rW=_.H(VN,rTM))==null?void 0:rW.title;break a}VN=void 0}return VN}})}})})}}))))},"pj"),"yt-video-metadata-carousel-view-model",{props:{data:_.W4}});var $0n=_.K("web_action_buttons_update_owner_width")?32:12,qX=function(){var f=_.I.apply(this,arguments)||this;f.metadataBadgesInDescription=_.K("web_metadata_badges_in_description");f.descriptionCollapsed=!0;f.useFadedScrimDescription=_.K("kevlar_enable_faded_scrim_on_description");f.skinnyMode=!1;f.playlist=!1;f.isDark=document.documentElement.hasAttribute("dark");f.disableVideoOwnerOnTap=_.K("swatchie_video_owner_on_tap_ks");f.swatcherooDelayLoad=_.K("swatcheroo_enable_ghost_cards");f.primaryMenuWidth=
0;f.videoId="";f.titleHeadlineXs=_.K("web_watch_typography_title_headline_xs");f.titleHeadlineS=_.K("web_watch_typography_title_headline_s");f.titleHeadlineM=_.K("web_watch_typography_title_headline_m");f.titleHashtagBlackLinkified=_.K("web_title_hashtag_black_linkified");f.titleHashtagGreyLinkified=_.K("web_title_hashtag_grey_linkified");f.actionButtonsUpdateOwnerWidth=_.K("web_action_buttons_update_owner_width");f.shouldForceIconOnly=!1;f.actionMap={"yt-update-title-action":"onYtUpdateTitleAction",
"yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};f.isFullscreen=!1;f.isTheaterMode=!1;return f};
_.q(qX,_.I);_.e=qX.prototype;_.e.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.e.updateOwnerAndDescriptionPosition=function(){_.K("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.nZ(this.bottomRowElement,this.ownerElement)):(_.nZ(this.bottomRowElement,this.descriptionElement),_.nZ(this.topRowElement,this.ownerElement)))};
_.e.titleOnTap=function(f){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.lF(_.ct(f)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var S;((S=window.getSelection())==null?0:S.toString().length)||this.handleExpandDescriptionCommands()}};
_.e.videoOwnerOnTap=function(f){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.lF(_.ct(f)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.e.detached=function(){var f=this,S;return _.R(function(B){(S=f.resizeObserver)==null||S.disconnect();_.TT(B)})};
_.e.maybeAttachResizeObserver=function(){var f=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.S3(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){f.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.e.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var f=this.hostElement.clientWidth,S=Math.max(this.largerItemWrap?400:350,f/2-$0n);if(_.K("web_action_buttons_update_owner_width")){var B;S=(((B=document.getElementById("owner"))==null?void 0:B.clientWidth)||0)+$0n}this.actionsOnSeparateLine=this.primaryMenuWidth>f-S?!0:!1}};
_.e.stripAttributedDescription=function(f){return{content:f.content.replace(/[\r\n]{2,}/g,"\n")}};
_.e.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.K("web_modern_buttons"),forceIconButton:!_.K("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:_.K("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"}}}};
_.e.videoPrimaryInfoRendererChanged=function(){var f;if((f=this.videoPrimaryInfoRenderer)==null?0:f.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.e.videoSecondaryInfoRendererChanged=function(){var f,S;(S=(f=this.descriptionInlineExpander).collapse)==null||S.call(f);this.descriptionExpandClientVe=_.Eo(110509);this.descriptionCollapseClientVe=_.Eo(110510);f=_.xc();S=_.Of();f&&S&&(_.K("combine_ve_grafts")?(_.Xo(_.ik(),this.descriptionExpandClientVe,S),_.Xo(_.ik(),this.descriptionCollapseClientVe,S)):_.NE(f,S,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.e.structuredDescriptionContentRendererChanged=function(){_.K("ytd-watch-metadata-manual-sd-updates-killswitch")||(this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer))};
_.e.updateTopLevelIconsOnly=function(){var f=this;_.K("top_level_update_killswitch")||this.menu&&_.xJ.addLowPriorityJob(function(){f.menu.topLevelIconsOnly=f.skinnyMode},_.Gt("swathceroo_delay_flexible_menu_update",100))};
_.e.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.K("web_action_buttons_minimize_subscribe")};
_.e.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.e.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.e.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.e.onYtTextInlineExpanderExpandedChanged=function(){if(!_.K("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var f,S;(S=(f=this.structuredDescriptionContentRendererElement).resize)==null||S.call(f)}};
_.e.onRenderStamperFinished=function(f){(f==null?void 0:f.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.e.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.e.onYtExpanderLessTapped=function(){var f,S=(f=this.videoSecondaryInfoRenderer)==null?void 0:f.showLessCommand;S&&this.ytComponentBehavior.resolveCommand(S)};
_.e.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.e.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.e.onDescriptionClick=function(f){if(!_.lF(_.ct(f)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var S;((S=window.getSelection())==null?0:S.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.K("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.e.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.e.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.e.logCollapseClick=function(){var f=_.xc();f&&this.descriptionCollapseClientVe&&_.uW(f,this.descriptionCollapseClientVe)};
_.e.logExpandClick=function(){var f=_.xc();f&&this.descriptionExpandClientVe&&_.uW(f,this.descriptionExpandClientVe)};
_.e.collapseDescription=function(){this.descriptionCollapsed=!0};
_.e.scrollToTopOfContainer=function(){_.bW(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.e.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.e.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRenderer&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.e.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.e.resize=function(){if(this.descriptionInlineExpander){var f,S;(S=(f=this.descriptionInlineExpander).resize)==null||S.call(f)}else _.Lg(new _.dO("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var B;(B=this.menu)==null||B.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.K("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.e.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var f,S,B,G,g=_.K("web_action_buttons_update_owner_width")?(B=(f=_.m9(this.menu).querySelector("#button-shape"))==null?void 0:f.clientWidth)!=null?B:0:(G=(S=_.m9(this.menu).querySelector("#button"))==null?void 0:S.clientWidth)!=null?G:0,b,z;f=((z=(b=_.m9(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:b.clientWidth)!=null?z:0)+8+g;var X,w;g=(w=(X=_.m9(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:X.children.length)!=null?w:2;f<=8*g||(this.primaryMenuWidth=f)}};
_.e.onYtUpdateTitleAction=function(f){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.H(f,b72).title)};
_.e.onYtUpdateDescriptionAction=function(f){if(f=_.H(f,_.sRm)){var S,B=!((S=this.videoSecondaryInfoRenderer)==null||!S.attributedDescription);f.isEmpty||!f.description&&!f.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):f.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",f.attributedDescription):f.description&&(B?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.sn(f.description)):this.set("videoSecondaryInfoRenderer.description",f.description))}};
_.e.onYtDarkModeToggledAction=function(f){this.isDark=f};
_.e.registerPanel=function(){if(!_.K("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var f=_.K("web_watch_imax_theater_mode")&&this.isTheaterMode;f=_.K("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||f;var S=_.oy().resolve(_.ir);S&&!f&&S.registerPanel("engagement-panel-structured-description",this)}};
_.e.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.e.showPanel=function(f){this.expandDescription();var S=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;S.resize();var B,G=f==null?void 0:(B=f.sectionListEngagementPanelExtras)==null?void 0:B.scrollToItemSectionIdentifier;G?_.xJ.addJob(function(){S==null||S.scrollToSection(G)},8):this.scrollToTopOfContainer()};
_.e.isVisible=function(){return!this.descriptionCollapsed};
_.e.getReloadContinuation=function(){};
_.e.hidePanel=function(){};
_.e.updatePanel=function(){};
_.y3.Object.defineProperties(qX.prototype,{productShelf:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.structuredDescriptionContentRenderer)!=null&&f.items){var S;f=_.m((S=this.structuredDescriptionContentRenderer)==null?void 0:S.items);for(S=f.next();!S.done;S=f.next())if(S=_.H(S.value,_.n_$))return S}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.videoPrimaryInfoRenderer)==null?0:f.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var f,S,B;return!!((f=this.videoSecondaryInfoRenderer)==null?0:(S=f.owner)==null?0:(B=S.videoOwnerRenderer)==null?0:B.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode&&!_.K("swatchie_sd_new_line_strip_ks")){var f,S;if((f=this.videoSecondaryInfoRenderer)==null?0:(S=f.attributedDescription)==null?0:S.content){var B,G;return(G=this.stripAttributedDescription((B=this.videoSecondaryInfoRenderer)==null?void 0:B.attributedDescription))!=null?G:{runs:[]}}}var g,b,z,X;return(X=(z=(g=this.videoSecondaryInfoRenderer)==null?void 0:g.description)!=null?z:(b=this.videoSecondaryInfoRenderer)==null?
void 0:b.attributedDescription)!=null?X:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var f,S;return(S=(f=this.videoSecondaryInfoRenderer)==null?void 0:f.headerRuns)!=null?S:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.commentsEntryPointHeaderRenderer)==null||!f.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.videoMetadataCarousel)==null||!f.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.Gt("swatchie_desc_lines",3):this.hasTeaserCarousel?_.Gt("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var f,S,B=Object.assign({},(f=this.videoSecondaryInfoRenderer)==null?void 0:(S=f.metadataRowContainer)==null?void 0:S.metadataRowContainerRenderer);if(B&&B.rows&&B.collapsedItemCount!==void 0&&!(B.rows.length<=B.collapsedItemCount))return B.rows=B.rows.slice(B.collapsedItemCount),B.collapsedItemCount=0,B}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var f,S,B=Object.assign({},(f=this.videoSecondaryInfoRenderer)==null?void 0:(S=f.metadataRowContainer)==null?void 0:S.metadataRowContainerRenderer);if(B&&B.rows&&B.collapsedItemCount!==void 0)return B.rows=B.rows.slice(0,B.collapsedItemCount),B.collapsedItemCount=B.rows.length,B}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var f,S;return!!((f=this.structuredDescriptionContentRenderer)==null?0:(S=f.items)==null?0:S.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 f;return(f=this.videoSecondaryInfoRenderer)==null?void 0:f.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var f,S,B;return((f=this.videoSecondaryInfoRenderer)==null?0:(S=f.owner)==null?0:(B=S.videoOwnerRenderer)==null?0:B.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var f,S,B,G;return!!((f=this.videoPrimaryInfoRenderer)==null?0:(S=f.videoActions)==null?0:(B=S.menuRenderer)==null?0:(G=B.flexibleItems)==null?0:G.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.Ws(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.Ws(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var f=this;if(_.K("web_title_hashtag_grey_delinkified")){var S,B=_.$v.unsafeClone((S=this.videoPrimaryInfoRenderer)==null?void 0:S.title);(S=B==null?void 0:B.runs)&&S.forEach(function(G){if(G==null?0:G.navigationEndpoint)G.textColor=4284506208,f.isDark&&(G.textColor=4289374890)});
return B}return(B=this.videoPrimaryInfoRenderer)==null?void 0:B.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.K("web_title_hashtag_black_delinkified")||_.K("web_title_hashtag_grey_delinkified")}}});
qX.prototype.resetDescriptionState=qX.prototype.resetDescriptionState;qX.prototype.registerPanel=qX.prototype.registerPanel;qX.prototype.onYtExpanderLessTapped=qX.prototype.onYtExpanderLessTapped;qX.prototype.onYtExpanderMoreTapped=qX.prototype.onYtExpanderMoreTapped;qX.prototype.onRenderStamperFinished=qX.prototype.onRenderStamperFinished;qX.prototype.onYtTextInlineExpanderExpandedChanged=qX.prototype.onYtTextInlineExpanderExpandedChanged;qX.prototype.onYtTextInlineExpanderCollapseClicked=qX.prototype.onYtTextInlineExpanderCollapseClicked;
qX.prototype.onYtTextInlineExpanderExpandClicked=qX.prototype.onYtTextInlineExpanderExpandClicked;qX.prototype.moveActionsElement=qX.prototype.moveActionsElement;qX.prototype.updateShouldForceIconOnly=qX.prototype.updateShouldForceIconOnly;qX.prototype.updateTopLevelIconsOnly=qX.prototype.updateTopLevelIconsOnly;qX.prototype.structuredDescriptionContentRendererChanged=qX.prototype.structuredDescriptionContentRendererChanged;qX.prototype.videoSecondaryInfoRendererChanged=qX.prototype.videoSecondaryInfoRendererChanged;
qX.prototype.videoPrimaryInfoRendererChanged=qX.prototype.videoPrimaryInfoRendererChanged;qX.prototype.maybeUpdateActionsOnSeparateLine=qX.prototype.maybeUpdateActionsOnSeparateLine;qX.prototype.updateOwnerAndDescriptionPosition=qX.prototype.updateOwnerAndDescriptionPosition;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],qX.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],qX.prototype,"ytComponentBehavior",void 0);
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],qX.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],qX.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],qX.prototype,"ytdReduxBehavior",void 0);_.N([_.vF("#above-the-fold"),_.Z("design:type",HTMLElement)],qX.prototype,"aboveTheFoldContainer",void 0);_.N([_.vF("#menu ytd-menu-renderer"),_.Z("design:type",Object)],qX.prototype,"menu",void 0);
_.N([_.vF("#description-inline-expander"),_.Z("design:type",Object)],qX.prototype,"descriptionInlineExpander",void 0);_.N([_.vF("#faded-structured-description"),_.Z("design:type",Object)],qX.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.N([_.vF("#structured-description"),_.Z("design:type",Object)],qX.prototype,"structuredDescriptionContentRendererElement",void 0);_.N([_.vF("#title"),_.Z("design:type",HTMLElement)],qX.prototype,"titleElement",void 0);
_.N([_.vF("#description"),_.Z("design:type",HTMLElement)],qX.prototype,"descriptionElement",void 0);_.N([_.vF("#description-interaction"),_.Z("design:type",Object)],qX.prototype,"descriptionInteraction",void 0);_.N([_.vF("#owner"),_.Z("design:type",HTMLElement)],qX.prototype,"ownerElement",void 0);_.N([_.vF("#top-row"),_.Z("design:type",HTMLElement)],qX.prototype,"topRowElement",void 0);_.N([_.vF("#bottom-row"),_.Z("design:type",HTMLElement)],qX.prototype,"bottomRowElement",void 0);
_.N([_.vF("#actions"),_.Z("design:type",HTMLElement)],qX.prototype,"actionsElement",void 0);_.N([_.vF("#bottom-actions"),_.Z("design:type",HTMLElement)],qX.prototype,"bottomActionsElement",void 0);_.N([_.vF("#ytd-watch-info-text"),_.Z("design:type",Object)],qX.prototype,"watchInfoTextElement",void 0);_.N([_.n(),_.Z("design:type",Object)],qX.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],qX.prototype,"videoPrimaryInfoRenderer",void 0);
_.N([_.n(),_.Z("design:type",Object)],qX.prototype,"videoSecondaryInfoRenderer",void 0);_.N([_.n(),_.Z("design:type",Object)],qX.prototype,"commentsEntryPointHeaderRenderer",void 0);_.N([_.n(),_.Z("design:type",Object)],qX.prototype,"videoMetadataCarousel",void 0);_.N([_.n(),_.Z("design:type",Object)],qX.prototype,"structuredDescriptionContentRenderer",void 0);_.N([_.n(),_.Z("design:type",Object)],qX.prototype,"videoSummary",void 0);
_.N([_.n(),_.Z("design:type",Object)],qX.prototype,"merchShelf",void 0);_.N([_.n(),_.Z("design:type",Object)],qX.prototype,"infoPanelBelowMetadata",void 0);_.N([_.k("structuredDescriptionContentRenderer"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],qX.prototype,"productShelf",null);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],qX.prototype,"metadataBadgesInDescription",void 0);
_.N([_.k("videoPrimaryInfoRenderer"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],qX.prototype,"shouldHideBadges",null);_.N([_.k("productShelf","descriptionCollapsed"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],qX.prototype,"shouldShowProductShelf",null);_.N([_.n(),_.Z("design:type",Boolean)],qX.prototype,"isWatchFlexy",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],qX.prototype,"descriptionCollapsed",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],qX.prototype,"useFadedScrimDescription",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],qX.prototype,"skinnyMode",void 0);_.N([_.n({reflectToAttribute:!0}),_.k("videoSecondaryInfoRenderer"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],qX.prototype,"largerItemWrap",null);_.N([_.n(),_.Z("design:type",Object)],qX.prototype,"playlist",void 0);_.N([_.n(),_.Z("design:type",Object)],qX.prototype,"clarifyBox",void 0);
_.N([_.n(),_.Z("design:type",Object)],qX.prototype,"playerAds",void 0);_.N([_.n(),_.Z("design:type",Boolean)],qX.prototype,"isDark",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],qX.prototype,"actionsOnSeparateLine",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],qX.prototype,"disableVideoOwnerOnTap",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],qX.prototype,"swatcherooDelayLoad",void 0);
_.N([_.n(),_.Z("design:type",Boolean)],qX.prototype,"suppressTopLevelMetadataRows",void 0);_.N([_.n(),_.Z("design:type",Object)],qX.prototype,"primaryMenuWidth",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],qX.prototype,"videoId",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],qX.prototype,"titleHeadlineXs",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],qX.prototype,"titleHeadlineS",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],qX.prototype,"titleHeadlineM",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],qX.prototype,"titleHashtagBlackLinkified",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],qX.prototype,"titleHashtagGreyLinkified",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],qX.prototype,"actionButtonsUpdateOwnerWidth",void 0);
_.N([_.n(),_.Z("design:type",Object)],qX.prototype,"shouldForceIconOnly",void 0);_.N([_.HF("skinnyMode"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qX.prototype,"updateOwnerAndDescriptionPosition",null);_.N([_.HF("skinnyMode"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qX.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.N([_.k("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],qX.prototype,"descriptionText",null);_.N([_.k("videoSecondaryInfoRenderer.headerRuns"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],qX.prototype,"headerRuns",null);_.N([_.n({value:!1}),_.k("commentsEntryPointHeaderRenderer"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],qX.prototype,"hasTeaser",null);
_.N([_.n({value:!1,reflectToAttribute:!0}),_.k("videoMetadataCarousel"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],qX.prototype,"hasTeaserCarousel",null);_.N([_.n({value:3}),_.k("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],qX.prototype,"descriptionMaxLines",null);_.N([_.k("videoSecondaryInfoRenderer.metadataRowContainer"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],qX.prototype,"collapsibleMetadataRows",null);
_.N([_.k("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],qX.prototype,"alwaysVisibleMetadataRows",null);_.N([_.k("videoSecondaryInfoRenderer","structuredDescriptionContentRenderer"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],qX.prototype,"hasInlineStructuredDescription",null);
_.N([_.k("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],qX.prototype,"showInlineStructuredDescription",null);_.N([_.k("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],qX.prototype,"descriptionExpandCommand",null);
_.N([_.k("videoSecondaryInfoRenderer.owner"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],qX.prototype,"videoOwnerCommand",null);_.N([_.n({reflectToAttribute:!0}),_.k("videoPrimaryInfoRenderer.videoActions"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],qX.prototype,"flexMenuEnabled",null);_.N([_.n({selector:_.pF,reflectToAttribute:!0}),_.Z("design:type",Object)],qX.prototype,"isFullscreen",void 0);
_.N([_.n({selector:_.CF,reflectToAttribute:!0}),_.Z("design:type",Object)],qX.prototype,"isTheaterMode",void 0);_.N([_.k("descriptionText","useFadedScrimDescription"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],qX.prototype,"showAttributedStringDescription",null);_.N([_.k("descriptionText","useFadedScrimDescription"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],qX.prototype,"showFormattedStringDescription",null);
_.N([_.k("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],qX.prototype,"showFadedStructuredDescription",null);_.N([_.HF("videoPrimaryInfoRenderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qX.prototype,"videoPrimaryInfoRendererChanged",null);_.N([_.k("videoPrimaryInfoRenderer.title"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],qX.prototype,"videoTitle",null);
_.N([_.k("videoPrimaryInfoRenderer"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],qX.prototype,"noEndpoints",null);_.N([_.HF("videoSecondaryInfoRenderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qX.prototype,"videoSecondaryInfoRendererChanged",null);
_.N([_.JO("videoPrimaryInfoRenderer","structuredDescriptionContentRenderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qX.prototype,"structuredDescriptionContentRendererChanged",null);_.N([_.JO("skinnyMode"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qX.prototype,"updateTopLevelIconsOnly",null);
_.N([_.JO("skinnyMode"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qX.prototype,"updateShouldForceIconOnly",null);_.N([_.JO("skinnyMode"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qX.prototype,"moveActionsElement",null);_.N([_.Vg("yt-text-inline-expander-expand-clicked"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qX.prototype,"onYtTextInlineExpanderExpandClicked",null);
_.N([_.Vg("yt-text-inline-expander-collapse-clicked"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qX.prototype,"onYtTextInlineExpanderCollapseClicked",null);_.N([_.Vg("yt-text-inline-expander-expanded-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qX.prototype,"onYtTextInlineExpanderExpandedChanged",null);
_.N([_.Vg("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],qX.prototype,"onRenderStamperFinished",null);_.N([_.Vg("yt-expander-more-tapped"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qX.prototype,"onYtExpanderMoreTapped",null);_.N([_.Vg("yt-expander-less-tapped"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qX.prototype,"onYtExpanderLessTapped",null);
_.N([_.JO("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qX.prototype,"registerPanel",null);_.N([_.JO("videoSecondaryInfoRenderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qX.prototype,"resetDescriptionState",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-watch-metadata"})],qX);
_.p(qX,"ytd-watch-metadata",function(){if(V_$!==void 0)return V_$;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return V_$=f},{mode:2});_.L3z=function(f){_.qR.call(this);this.JSC$20362_watchApi=f;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;QLX(this);Yxe(this);rNz(this);jLM(this);OKY(this);x0o(this);EiO(this)};
_.q(_.L3z,_.qR);var rNz=function(f){var S=function(){_.K("kevlar_is_pupi_enabled")||$L(f)};
f.JSC$20362_watchApi.getRoot().addEventListener("yt-player-updated",S);f.addOnDisposeCallback(function(){f.JSC$20362_watchApi.getRoot().removeEventListener("yt-player-updated",S)})},OKY=function(f){if(_.K("kevlar_endscreen_auto_theater_mode")){var S=f.JSC$20362_watchApi.subscribeToActiveChanged(function(){kQu(f)},!1);
f.addOnDisposeCallback(S)}},QLX=function(f){var S,B,G,g,b;
_.R(function(z){if(z.nextAddress==1)return _.h(z,f.JSC$20362_watchApi.playerApi,2);S=z.yieldResult;B=function(X){X=!!X;Qy(f)&&(X=X?2:1,_.fD.getInstance().setState(X,!0,!1))};
G=function(X){X&&_.kgn(_.W2().getState())&&(_.bW(f.JSC$20362_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),f.temporaryTheaterMode=!0)};
g=function(X){_.K("kevlar_player_update_autonav_on_new_data")&&X.type==="newdata"&&(_.K("kevlar_is_pupi_enabled")||$L(f))};
b=function(X){f.onPlayerStateChange(X)};
_.K("kevlar_endscreen_auto_theater_mode")&&S.addEventListener("onAutonavCancelled",G);S.addEventListener("onAutonavChangeRequest",B);S.addEventListener("onVideoDataChange",g);S.addEventListener("onStateChange",b);f.addOnDisposeCallback(function(){S.removeEventListener("onAutonavChangeRequest",B);S.removeEventListener("onVideoDataChange",g);S.removeEventListener("onStateChange",b);_.K("kevlar_endscreen_auto_theater_mode")&&S.removeEventListener("onAutonavCancelled",G)});
_.TT(z)})},Yxe=function(f){f.JSC$20362_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){f.autonavCancelledBySignal=!0;
_.K("kevlar_is_pupi_enabled")||$L(f)});
f.JSC$20362_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(S,B,G){B&&$L(f,G)});
f.JSC$20362_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){Qy(f)&&_.fD.getInstance().setState(2,!0,!0)});
f.JSC$20362_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){Qy(f)&&_.fD.getInstance().setState(1,!0,!0)});
f.addOnDisposeCallback(function(){f.JSC$20362_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");f.JSC$20362_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");f.JSC$20362_watchApi.unregisterActionHandler("yt-enable-autoplay-command");f.JSC$20362_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},jLM=function(f){var S=f.JSC$20362_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){EiO(f)}),B=f.JSC$20362_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){x0o(f)});
f.addOnDisposeCallback(function(){f.JSC$20362_watchApi.unsubscribeByKey(S);f.JSC$20362_watchApi.unsubscribeByKey(B)})},EiO=function(f){f.autonavCancelledBySignal=!1;
_.K("kevlar_is_pupi_enabled")||$L(f)},x0o=function(f){var S=f.JSC$20362_watchApi.getWatchNextResponse(),B,G;
var g=(S=(G=_.H(S==null?void 0:(g=S.playerOverlays)==null?void 0:(B=g.playerOverlayRenderer)==null?void 0:B.autonavToggle,_.ISX))==null?void 0:G.enabled)?2:1;_.K("kevlar_is_pupi_enabled")?_.fD.getInstance().setState(g,!1,!1):$L(f);_.K("web_persist_server_autonav_state_on_client")&&typeof S==="boolean"&&_.THN(g===2)},Qy=function(f){if(f.autonavCancelledBySignal)return!1;
var S,B,G,g;return!!((S=f.JSC$20362_watchApi.getWatchNextResponse())==null?0:(B=S.contents)==null?0:(G=B.twoColumnWatchNextResults)==null?0:(g=G.autoplay)==null?0:g.autoplay)};
_.L3z.prototype.onPlayerStateChange=function(f){if(f===0){f=!_.fD.getInstance().isAutoplaySetExplicitly();var S=this.JSC$20362_watchApi.getWatchNextResponse(),B,G,g,b;S=_.H(S==null?void 0:(B=S.contents)==null?void 0:(G=B.twoColumnWatchNextResults)==null?void 0:(g=G.autoplay)==null?void 0:(b=g.autoplay)==null?void 0:b.autoplayExplicitChoiceDialogRenderer,_.mIo);Qy(this)&&f&&S&&_.JZ.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:S},popupType:"DIALOG"}})}else kQu(this)};
var kQu=function(f){f.temporaryTheaterMode&&(f.temporaryTheaterMode=!1,_.bW(f.JSC$20362_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},$L=function(f,S){S=S===void 0?!1:S;
var B;_.R(function(G){if(G.nextAddress==1)return _.h(G,f.JSC$20362_watchApi.playerApi,2);B=G.yieldResult;Qy(f)?B.setAutonavState(_.fD.getInstance().getState(),S):B.setAutonavState(1,S);_.TT(G)})};var niY={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"};_.D0e=function(f){_.qR.call(this);var S=this;this.JSC$20367_watchApi=f;var B=this.JSC$20367_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){sLn(S)});
this.addOnDisposeCallback(function(){S.JSC$20367_watchApi.unsubscribeByKey(B)});
sLn(this)};
_.q(_.D0e,_.qR);var sLn=function(f){var S=f.JSC$20367_watchApi.getPlayerResponse(),B=f.JSC$20367_watchApi.getWatchNextResponse();if(!_.fYG(S==null?void 0:S.playabilityStatus,B==null?void 0:B.playerOverlays)){var G;var g=S==null?void 0:(G=S.playabilityStatus)==null?void 0:G.errorScreen}f.JSC$20367_watchApi.provideRenderingData("ERROR_SCREEN",g)};var I1X=_.oS(function(f){var S=f.data;var B=_.Uo(_.pF);f={};return _.T("yt-player-overlay-video-details-renderer",{class:"ytPlayerOverlayVideoDetailsRendererHost","on:click":_.iF(function(){var G=S().onTap;G&&_.oy().resolve(_.S7).resolveCommand(G)}),
role:"button"},_.T("h2",{class:_.Pw("ytPlayerOverlayVideoDetailsRendererTitle",(f.ytPlayerOverlayVideoDetailsRendererTitleCompact=function(){return!B()},f))},_.T(_.oY,{text:function(){return S().title}})),_.T("div",{class:"ytPlayerOverlayVideoDetailsRendererSubtitle"},_.T(_.oY,{text:function(){return S().subtitle}})))},"qj");var YL={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},U0O=_.oS(function(f){var S=f.data;var B=_.Uo(_.pF),G=_.K("web_watch_action_bar_resize_buttons"),g=_.K("delhi_modern_web_player_icons")&&!_.K("enable_web_delhi_icons"),b=function(){return G&&!B()?{size:"M"}:void 0};
f={};return _.T("yt-player-quick-action-buttons",{class:_.Pw("ytPlayerQuickActionButtonsHost",(f.ytPlayerQuickActionButtonsHostTheaterMode=function(){return!B()},f))},_.T(_.dg,{each:function(){if(g){var z=S();
z=JSON.parse(JSON.stringify(z));for(var X=_.m(z),w=X.next();!w.done;w=X.next()){var F=w.value,V=void 0;w=_.H((V=_.H(F,_.kK))==null?void 0:V.toggleButtonViewModel,_.YK);var J=void 0;V=_.H((J=_.H(F,_.nF))==null?void 0:J.toggleButtonViewModel,_.YK);J=_.H(F,_.Q5);F=_.H(F,_.YK);if(w)V=_.H(w.defaultButtonViewModel,_.Q5),w=_.H(w.toggledButtonViewModel,_.Q5),V&&V.iconName&&(V.iconName=YL[V.iconName]),w&&w.iconName&&(w.iconName=YL[w.iconName]);else if(V)w=_.H(V.defaultButtonViewModel,_.Q5),V=_.H(V.toggledButtonViewModel,
_.Q5),w&&w.iconName&&(w.iconName=YL[w.iconName]),V&&V.iconName&&(V.iconName=YL[V.iconName]);else if(J)J.iconName&&(J.iconName=YL[J.iconName]);else if(F){w=_.H(F.defaultButtonViewModel,_.Q5);V=_.H(F.toggledButtonViewModel,_.Q5);F=void 0;if((F=w)==null?0:F.iconName)w.iconName=YL[w.iconName];w=void 0;if((w=V)==null?0:w.iconName)V.iconName=YL[V.iconName]}}}else z=S();return z}},function(z){return _.T(_.xK,{data:function(){return z}},{buttonViewModel:function(X){return _.T(_.I8,{data:X.data,
buttonOverrides:b})},
likeButtonViewModel:function(X){return _.T(_.jG,{data:X.data,buttonShapeOverrideables:b,disableIconAnimation:!0})},
dislikeButtonViewModel:function(X){return _.T(_.rE,{data:X.data,buttonShapeOverrideables:b})},
toggleButtonViewModel:function(X){return _.T(_.ER,{data:X.data,buttonShapeOverrides:b})}})}))},"rj");_.p6B=function(f){_.qR.call(this);var S=this;this.JSC$20372_watchApi=f;f=_.m(_.hj({},void 0,"ufFdVc"));this.quickActionsViewModel=f.next().value;this.setQuickActionsViewModel=f.next().value;f=_.m(_.hj({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=f.next().value;this.setPlayerOverlayVideoDetailsRenderer=f.next().value;var B=this.JSC$20372_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){CAn(S)});
this.addOnDisposeCallback(function(){S.JSC$20372_watchApi.unsubscribeByKey(B)});
CAn(this)};
_.q(_.p6B,_.qR);
var CAn=function(f){var S,B,G,g,b,z,X,w,F,V,J,P,d,Q;_.R(function(x){if(x.nextAddress==1)return _.h(x,f.JSC$20372_watchApi.playerApi,2);S=x.yieldResult;B=f.JSC$20372_watchApi.getWatchNextResponse();b=(G=B)==null?void 0:(g=G.playerOverlays)==null?void 0:g.playerOverlayRenderer;X=_.H((z=b)==null?void 0:z.fullscreenQuickActionsBar,_.A_N);(F=(w=f).setQuickActionsViewModel)==null||F.call(w,X||{});X&&ANo(f,S);P=(V=b)==null?void 0:(J=V.videoDetails)==null?void 0:J.playerOverlayVideoDetailsRenderer;(Q=(d=
f).setPlayerOverlayVideoDetailsRenderer)==null||Q.call(d,P||{});P&&NBu(f,S);_.TT(x)})},ANo=function(f,S){if(!f.quickActionButtonsContainer){f.quickActionButtonsContainer=document.createElement("div");
S.setFullscreenQuickActions(f.quickActionButtonsContainer);var B=function(){return f.quickActionsViewModel().quickActionButtons||[]},G=_.QR(f.quickActionButtonsContainer,function(){return _.T(U0O,{data:B})});
f.addOnDisposeCallback(function(){S.setFullscreenQuickActions(void 0);G()})}},NBu=function(f,S){if(!f.playerOverlayVideoDetailsRendererContainer){f.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
S.setPlayerOverlayVideoDetailsRenderer(f.playerOverlayVideoDetailsRendererContainer);var B=_.QR(f.playerOverlayVideoDetailsRendererContainer,function(){return _.T(I1X,{data:f.playerOverlayVideoDetailsRenderer})});
f.addOnDisposeCallback(function(){S.setPlayerOverlayVideoDetailsRenderer(void 0);B()})}};_.rG=function(f){_.qR.call(this);var S=this;this.JSC$20377_watchApi=f;this.JSC$20377_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;f=_.KD(_.W2(),_.pF,function(B){S.onFullscreenChanged(B)});
this.addOnDisposeCallback(f);f=_.KD(_.W2(),_.Y7,function(B){S.onWatchScroll(B)});
this.addOnDisposeCallback(f);_.K("kevlar_watch_while_v2")&&(f=_.KD(_.W2(),_.LJ,function(B){M_u(S,B)}),this.addOnDisposeCallback(f));
ZKO(this);t_u(this);uy2();this.onWatchScroll(_.Y7(_.W2().getState()));_.s6("START_IN_FULL_WINDOW_MODE")&&this.JSC$20377_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.q(_.rG,_.qR);var ZKO=function(f){f.JSC$20377_watchApi.registerActionHandler("yt-fullscreen-change-action",function(S){var B=f.JSC$20377_watchApi.isActive();S&&!B||_.W2().dispatch(_.ef({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!S}}))});
f.addOnDisposeCallback(function(){f.JSC$20377_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},t_u=function(f){var S,B;
_.R(function(G){if(G.nextAddress==1)return _.h(G,f.JSC$20377_watchApi.playerApi,2);S=G.yieldResult;B=function(){f.onFullerscreenEduClicked()};
S.addEventListener("onFullerscreenEduClicked",B);f.addOnDisposeCallback(function(){S.removeEventListener("onFullerscreenEduClicked",B)});
_.TT(G)})};
_.rG.prototype.onFullscreenChanged=function(f){var S=this,B;return _.R(function(G){if(G.nextAddress==1)return S.isFullscreen=!!_.Sw(),_.h(G,S.JSC$20377_watchApi.playerApi,2);B=G.yieldResult;S.JSC$20377_miniplayerActive||B.setFauxFullscreen(S.isFullscreen);if(f&&(S.JSC$20377_watchApi.focusOnPlayer(),!S.fullerscreenEduButtonShownThisPlayback)){S.fullerscreenEduButtonShownThisPlayback=!0;var g=_.wQ("yt-fullerscreen-edu-button-shown-count")||0;_.Xw("yt-fullerscreen-edu-button-shown-count",g+1,31536E3);
S.updateFullerscreenEduButtonSubtleModeState()}_.TT(G)})};
var M_u=function(f,S){var B;_.R(function(G){if(G.nextAddress==1)return f.JSC$20377_miniplayerActive=S,_.h(G,f.JSC$20377_watchApi.playerApi,2);B=G.yieldResult;B.setFauxFullscreen(!f.JSC$20377_miniplayerActive&&f.isFullscreen);_.TT(G)})};
_.rG.prototype.onWatchScroll=function(f){var S=this,B,G;return _.R(function(g){if(g.nextAddress==1)return _.K("external_fullscreen_with_edu")?_.h(g,S.JSC$20377_watchApi.playerApi,2):g.return();B=g.yieldResult;G=f<=0;S.shouldShowFullerscreenEdu!==G&&(S.shouldShowFullerscreenEdu=G,B.updateFullerscreenEduButtonVisibility(!S.shouldShowFullerscreenEdu));_.TT(g)})};
_.rG.prototype.onFullerscreenEduClicked=function(){this.JSC$20377_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var f=_.wQ("yt-fullerscreen-edu-button-click-count")||0;_.Xw("yt-fullerscreen-edu-button-click-count",f+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.rG.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var f=this,S,B,G,g,b,z;return _.R(function(X){if(X.nextAddress==1)return S=_.wQ("yt-fullerscreen-edu-button-click-count")||0,B=_.wQ("yt-fullerscreen-edu-button-shown-count")||0,G=_.Gt("external_fullscreen_button_click_threshold"),g=_.Gt("external_fullscreen_button_shown_threshold"),b=S>=G||B>=g,_.h(X,f.JSC$20377_watchApi.playerApi,2);z=X.yieldResult;z.updateFullerscreenEduButtonSubtleModeState(b);_.TT(X)})};
_.rG.prototype.disposeInternal=function(){_.qR.prototype.disposeInternal.call(this);var f=_.Sw();_.K("kevlar_exit_fullscreen_leaving_watch")&&f&&_.BK(f)};
var uy2=function(){if(_.K("web_watch_add_viewport_meta_tag")){var f=document.querySelector("meta[name=viewport]"),S=document.head;S&&!f&&(f=document.createElement("meta"),f.name="viewport",f.content="width=device-width, initial-scale=1.0, viewport-fit=cover",S.appendChild(f))}};_.jJ=function(f){_.qR.call(this);var S=this;this.JSC$20381_watchApi=f;this.jobId=0;this.pendingRequestId=void 0;var B=this.JSC$20381_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a12(S)});
this.addOnDisposeCallback(function(){S.JSC$20381_watchApi.unsubscribeByKey(B)});
a12(this)};
_.q(_.jJ,_.qR);var yN2=function(f){_.xJ.cancelJob(f.jobId);f.pendingRequestId=void 0},a12=function(f){yN2(f);
var S=eOe(f.JSC$20381_watchApi.getWatchNextResponse());if(S){var B=250,G,g=(G=_.H(S,_.Mx6))==null?void 0:G.initialDelayMs;_.K("web_watch_updated_metadata_server_initial_delay")&&g&&(B=g);f.jobId=_.xJ.addLowPriorityJob(function(){return f.fetchUpdatedMetadata(S)},B)}};
_.jJ.prototype.fetchUpdatedMetadata=function(f,S){var B=this,G,g,b,z,X,w,F,V,J,P,d,Q,x,E,U;return _.R(function(A){switch(A.nextAddress){case 1:S&&(G={continuation:S});if(!_.K("web_get_updated_metadata_fantasy_panel_continuation_params")){A.jumpTo(2);break}g=_.oy().resolve(_.ir);b="PAsports_fantasy";return _.h(A,g.isVisible(b,!0),3);case 3:A.yieldResult&&(F=(X=(z=g).getUpdatePanelContinuationData)==null?void 0:(w=X.call(z,b))==null?void 0:w.updatePanelContinuationRequest)&&(G||(G={}),G.clientParams=
{panelContinuationParams:{panelContinuation:F}});case 2:V=_.oy().resolve(_.DU);if(!V)return _.xH(Error("km")),A.return();J={};B.pendingRequestId=J;return _.h(A,_.uF(V,f,G),4);case 4:P=A.yieldResult;if(J!==B.pendingRequestId)return A.return();x=(d=P)==null?void 0:(Q=d.continuation)==null?void 0:Q.timedContinuationData;((E=x)==null?0:E.continuation)&&((U=x)==null?0:U.timeoutMs)&&(B.jobId=_.xJ.addLowPriorityJob(function(){return B.fetchUpdatedMetadata(f,x.continuation)},x.timeoutMs));
_.TT(A)}})};
_.jJ.prototype.disposeInternal=function(){_.qR.prototype.disposeInternal.call(this);yN2(this)};var W3O=_.oS(function(f){var S=_.iF(function(){var G=f.data().videoId;if(f.active())G=_.Sf(G),_.oy().resolve(_.S7).resolveCommand(G);else{var g=f.playerApi(),b=g.getAvailableAudioTracks(),z,X,w=(z=f.sourceVideoConfig().audioTracks)==null?void 0:(X=z.find(function(F){return F.isDefaultForSource}))==null?void 0:X.id;
if(b=b.find(function(F){return F.getLanguageInfo().getId()===w}))g.setAudioTrack(b,!0),g.setCompositeParam({activeVideoId:G}),f.setActiveSourceId(G)}}),B={};
return _.T("ytw-composite-source-video-overlay",{class:_.Pw("ytwCompositeSourceVideoOverlayHost",(B.ytwCompositeSourceVideoOverlayActive=f.active,B.ytwCompositeSourceVideoOverlayInteracting=f.interacting,B)),style:_.Qj({left:function(){var G;return((G=f.data().topLeftCornerX)!=null?G:0)*100+"%"},
top:function(){var G;return((G=f.data().topLeftCornerY)!=null?G:0)*100+"%"},
width:function(){var G;return((G=f.data().width)!=null?G:0)*100+"%"},
height:function(){var G;return((G=f.data().height)!=null?G:0)*100+"%"}}),
"on:click":S},_.T("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"sj");var cNn=_.oS(function(f){var S=_.m(_.$8(function(){var z,X=(z=f.data().sources)==null?void 0:z.find(function(w){return w.isActive});
if(X)return X.videoId})),B=S.next().value,G=S.next().value;
S=_.m(_.hj(!1,void 0,"WI4BUb"));var g=S.next().value,b=S.next().value;return _.T("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.iF(function(){b(!0)}),
"on:mouseout":_.iF(function(){b(!1)})},_.T(_.v,{cond:function(){return f.data().sources},
then:function(z){return _.T(_.dg,{each:z},function(X){return _.T(W3O,{data:X,active:function(){return X.videoId===B()},
setActiveSourceId:G,interacting:g,playerApi:f.playerApi,sourceVideoConfig:function(){return bau(f.compositeVideoConfig(),X.videoId)}})})}}))},"tj");_.ou$=function(f){_.qR.call(this);this.JSC$20397_watchApi=f;f=_.m(_.hj({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=f.next().value;this.setCompositeVideoOverlayRenderer=f.next().value;f=_.m(_.hj({},void 0,"U5hcq"));this.compositeVideoConfig=f.next().value;this.setCompositeVideoConfig=f.next().value;l1$(this);fku(this)};
_.q(_.ou$,_.qR);var l1$=function(f){var S=f.JSC$20397_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){fku(f)});
f.addOnDisposeCallback(function(){f.JSC$20397_watchApi.unsubscribeByKey(S)})},SYu=function(f){var S;
return _.R(function(B){if(B.nextAddress==1)return _.h(B,f.JSC$20397_watchApi.playerApi,2);S=B.yieldResult;S.setCompositeVideoOverlayRendererComponent(f.container);_.TT(B)})},Bqe=function(f){var S;
return _.R(function(B){if(B.nextAddress==1)return _.h(B,f.JSC$20397_watchApi.playerApi,2);S=B.yieldResult;S.setCompositeVideoOverlayRendererComponent(void 0);_.TT(B)})},GxY=function(f){var S,B;
return _.R(function(G){if(G.nextAddress==1)return _.h(G,f.JSC$20397_watchApi.playerApi,2);S=G.yieldResult;f.container=document.createElement("div");B=_.QR(f.container,function(){return _.T(cNn,{data:f.compositeVideoOverlayRenderer,compositeVideoConfig:f.compositeVideoConfig,playerApi:S})});
f.addOnDisposeCallback(B);_.TT(G)})},fku=function(f){var S,B,G,g,b,z,X,w;
_.R(function(F){return F.nextAddress==1?(S=f.JSC$20397_watchApi.getPlayerResponse(),b=_.H((B=S)==null?void 0:(G=B.overlay)==null?void 0:(g=G.playerControlsOverlayRenderer)==null?void 0:g.compositeVideoOverlay,WhO),w=(z=S)==null?void 0:(X=z.playerConfig)==null?void 0:X.compositeVideoConfig,b&&f.setCompositeVideoOverlayRenderer(b),w&&f.setCompositeVideoConfig(w),b&&w?f.container?F.jumpTo(6):_.h(F,GxY(f),6):guo(f)?_.h(F,Bqe(f),0):F.jumpTo(0)):guo(f)?F.jumpTo(0):_.h(F,SYu(f),0)})},guo=function(f){var S;
return!((S=f.container)==null||!S.parentElement)};
_.ou$.prototype.disposeInternal=function(){guo(this)&&Bqe(this);_.qR.prototype.disposeInternal.call(this)};_.R8o=function(f){_.qR.call(this);var S=this;this.JSC$20403_watchApi=f;var B=this.JSC$20403_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var G=S.JSC$20403_watchApi.getPlayerResponse();if(G){var g,b;if(G=_.H((g=G.endscreen)==null?void 0:(b=g.endscreenRenderer)==null?void 0:b.hideButton,_.YK)){var z;(z=S.setEndscreenHideButton)==null||z.call(S,G);e8u(S)}}});
this.addOnDisposeCallback(function(){S.JSC$20403_watchApi.unsubscribeByKey(B)});
f=_.m(_.hj({},void 0,"PPHRb"));this.endscreenHideButton=f.next().value;this.setEndscreenHideButton=f.next().value;bhZ(this);mP$(this);z8$(this)};
_.q(_.R8o,_.qR);var e8u=function(f){var S,B;_.R(function(G){if(G.nextAddress==1)return f.creatorEndscreenHideButtonContainer?G.return():_.h(G,f.JSC$20403_watchApi.playerApi,2);S=G.yieldResult;f.creatorEndscreenHideButtonContainer=document.createElement("div");_.ta(f.creatorEndscreenHideButtonContainer,!1);S.setCreatorEndscreenHideButton(f.creatorEndscreenHideButtonContainer);B=_.QR(f.creatorEndscreenHideButtonContainer,function(){return _.T(_.ER,{data:f.endscreenHideButton,useOutlinedIcon:!0})});
f.addOnDisposeCallback(function(){B();var g;(g=S)==null||g.setCreatorEndscreenHideButton(void 0)});
_.TT(G)})},bhZ=function(f){var S,B;
_.R(function(G){if(G.nextAddress==1)return _.h(G,f.JSC$20403_watchApi.playerApi,2);S=G.yieldResult;B=function(){f.creatorEndscreenHideButtonContainer&&_.ta(f.creatorEndscreenHideButtonContainer,!0)};
S.addEventListener("endscreenelementshown",B);f.addOnDisposeCallback(function(){var g;(g=S)==null||g.removeEventListener("endscreenelementshown",B)});
_.TT(G)})},mP$=function(f){var S=function(){f.creatorEndscreenHideButtonContainer&&_.ta(f.creatorEndscreenHideButtonContainer,!1)},B=f.JSC$20403_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",S),G=f.JSC$20403_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",S);
f.addOnDisposeCallback(function(){f.JSC$20403_watchApi.unsubscribeByKey(B);f.JSC$20403_watchApi.unsubscribeByKey(G)})},z8$=function(f){f.JSC$20403_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(S){var B=_.H(S,Mi2);
f.JSC$20403_watchApi.playerApi.then(function(G){G==null||G.setCreatorEndscreenVisibility(!!B.hide)})});
f.addOnDisposeCallback(function(){f.JSC$20403_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.w$n=function(f){_.qR.call(this);this.JSC$20409_watchApi=f;X$$(this)};
_.q(_.w$n,_.qR);var X$$=function(f){var S,B;_.R(function(G){if(G.nextAddress==1)return _.h(G,f.JSC$20409_watchApi.playerApi,2);S=G.yieldResult;B=function(g){_.W2().dispatch(_.ef({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:g}}))};
S.addEventListener("onRetroModeChanged",B);f.addOnDisposeCallback(function(){S.removeEventListener("onRetroModeChanged",B)});
_.TT(G)})};var Es=0,x7=0,LZ=0;var h8B;h8B=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.O5=function(f){_.qR.call(this);this.JSC$20422_watchApi=f;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;TqO(this)};
_.q(_.O5,_.qR);
var TqO=function(f){var S,B,G;_.R(function(g){if(g.nextAddress==1)return _.h(g,f.JSC$20422_watchApi.playerApi,2);S=g.yieldResult;if(f.isDisposed())return g.return();f.sessionStorage=_.DNZ("yt-sleep-timer");f.sessionStorage||_.Lg(new _.dO("SessionStorage for Sleep Timer is undefined."));((B=f.sessionStorage)==null?void 0:B.get("yt-sleep-timer"))==="true"&&(JTz(),(G=f.sessionStorage)==null||G.remove("yt-sleep-timer"),S.syncVolume());FMu(f,S);Vku(f,S);JBY(f,S);_.TT(g)})},FMu=function(f,S){var B=function(F){f.onSleepTimerSettingsChanged(F,
S)},G=function(F){f.onPlayerStateChange(F,S)},g=function(){f.onLoopChange(S)},b=function(){f.onCloseMiniplayer(S)},z=function(){hOY(S,(0,_.fO)(),PUX(S),f.selectedOption==="End of video",S.getPlayerState()!==1)},X=function(){f.onSeekComplete(S)},w=function(){_.xJ.cancelJob(x7);
var F=S.getCurrentTime()>=S.getDuration(),V=f.selectedOption==="End of video"||f.selectedOption==="End of playlist"&&!ROZ(f.playlistId);F&&V&&PZu(f,S)};
S.addEventListener("onSleepTimerSettingsChanged",B);S.addEventListener("onLoopChange",g);S.addEventListener("onLoopRangeChange",g);S.addEventListener("onStateChange",G);S.addEventListener("onCloseMiniplayer",b);S.addEventListener("onSleepTimerFeatureAvailable",z);S.addEventListener("SEEK_COMPLETE",X);S.addEventListener("onAdStart",w);f.addOnDisposeCallback(function(){S.removeEventListener("onSleepTimerSettingsChanged",B);S.removeEventListener("onLoopChange",g);S.removeEventListener("onLoopRangeChange",
g);S.removeEventListener("onStateChange",G);S.removeEventListener("onCloseMiniplayer",b);S.removeEventListener("onSleepTimerFeatureAvailable",z);S.removeEventListener("SEEK_COMPLETE",X);S.removeEventListener("onAdStart",w)})},Vku=function(f,S){var B=f.JSC$20422_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var G=S.getVideoData().video_id,g,b=(g=mQu(f.JSC$20422_watchApi))==null?void 0:g.playlistId;
f.pauseAutonavPlayback&&(S.pauseVideo(),S.syncVolume(),f.pauseAutonavPlayback=!1);if(f.selectedOption==="End of video"&&G!==f.videoId)xL(f,S);else{if(f.selectedOption==="End of playlist"){g=ROZ(f.playlistId);if(b!==f.playlistId){xL(f,S);break a}g?g&&vuB(f,S):KMu(f,S)}f.videoId=G;f.playlistId=b}}});
f.addOnDisposeCallback(function(){f.JSC$20422_watchApi.unsubscribeByKey(B)})},JBY=function(f,S){var B=_.oy().resolve(_.C5),G=_.KD(B,_.eGK,function(b){b&&f.selectedOption!=="Off"&&xL(f,S)}),g=f.JSC$20422_watchApi.subscribeToActiveChanged(function(b){var z,X;
return _.R(function(w){if(w.nextAddress==1)return _.h(w,_.Pn().navigationFinishPromise,2);z=!_.fVj();X=_.oy().resolve(_.N_).isMiniplayerActive();b||!Os(f.selectedOption)||X||z||xL(f,S);_.TT(w)})},!1);
B=_.KD(B,function(b){return b.entities.playlistLoopStateEntity||{}},function(b){b=b===void 0?{}:b;
var z=zOu(f.JSC$20422_watchApi);if(z){var X;((X=b[z])==null?void 0:X.state)==="PLAYLIST_LOOP_STATE_ALL"&&Os(f.selectedOption)&&xL(f,S)}});
f.addOnDisposeCallback(G);f.addOnDisposeCallback(B);f.addOnDisposeCallback(g)};
_.O5.prototype.onSleepTimerSettingsChanged=function(f,S){switch(f){case "Off":this.selectedOption!=="Off"&&xL(this,S);break;case "End of video":case "End of playlist":dPz(this,f,S);break;default:dPz(this,f,S,h8B.get(f))}};
_.O5.prototype.onLoopChange=function(f){(f.getLoopVideo()||f.getLoopRange())&&Os(this.selectedOption)&&xL(this,f)};
_.O5.prototype.onCloseMiniplayer=function(f){Os(this.selectedOption)&&xL(this,f)};
var dPz=function(f,S,B,G){iho(f,B);f.selectedOption=S;f.videoId=B.getVideoData().video_id;f.playlistId="";var g;(g=f.sessionStorage)==null||g.set("yt-sleep-timer","true");f.adjustmentsCount++;hOY(B,(0,_.fO)(),PUX(B),f.selectedOption==="End of video");if(f.selectedOption==="End of video")KMu(f,B),Hhu(f,B);else if(f.selectedOption==="End of playlist"){Hhu(f,B);var b,z;f.playlistId=(z=(b=mQu(f.JSC$20422_watchApi))==null?void 0:b.playlistId)!=null?z:"";ROZ(f.playlistId)||KMu(f,B)}else G&&(f.presetFadeSchedulerId=
_.H8(_.xJ,function(){Fh2(B,15E3)},G-15E3),f.presetPauseSchedulerId=_.H8(_.xJ,function(){PZu(f,B)},G),TTe(B,(0,_.fO)(),G))},PZu=function(f,S){if(f.JSC$20422_watchApi.isActive()){var B={dismissDialogEndpoint:{}};
var G={commandExecutorCommand:{commands:[B,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};B={buttonViewModel:{title:_.Jf("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:B}}};G={buttonViewModel:{title:_.Jf("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:G}}};var g={dialogHeaderViewModel:{headline:{content:_.Jf("SLEEP_TIMER_ENDED_TITLE")}}},
b={basicContentViewModel:{paragraphs:[{text:{content:_.Jf("SLEEP_TIMER_ENDED_TEXT")}}]}};B={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:g,content:b,footer:{panelFooterViewModel:{primaryButton:B,secondaryButton:G,shouldHideDivider:!0}}}}}}};_.oy().resolve(_.S7).resolveCommand(B,{form:{element:f}})}else JTz();qYu(f,!1);$Pe(f,S);S.pauseVideo();_.fD.getInstance().getState()===2&&S.getPlayerState()===5&&(f.pauseAutonavPlayback=!0)},xL=function(f,S){qYu(f,!0);
$Pe(f,S);JTz()},$Pe=function(f,S){iho(f,S);
f.selectedOption="Off";f.videoId="";f.playlistId="";f.adjustmentsCount=0;var B;(B=f.sessionStorage)==null||B.remove("yt-sleep-timer");_.xJ.cancelJob(Es);S.resetSleepTimerMenuSettings()},qYu=function(f,S){S={timer_length_adjustment_times_during_session:f.adjustmentsCount-1,
is_session_cancelled:S};switch(f.selectedOption){case "Off":S.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":S.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":S.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:S.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",S.option_duration_in_minutes=h8B.get(f.selectedOption)/6E4}_.jD("sleepTimerSessionFinishEvent",S)};
_.O5.prototype.onPlayerStateChange=function(f,S){f===1?hOY(S,(0,_.fO)(),PUX(S),this.selectedOption==="End of video"):f===0?(_.xJ.cancelJob(x7),S.setVideoTimeLeft(wRB(0,0))):f===2&&_.xJ.cancelJob(x7);this.selectedOption==="End of video"?f===0?PZu(this,S):f===2&&Vin(S):this.selectedOption!=="End of playlist"||ROZ(this.playlistId)||(f===0?PZu(this,S):f===2&&Vin(S))};
_.O5.prototype.onSeekComplete=function(f){f.getPlayerState()===2&&hOY(f,(0,_.fO)(),PUX(f),this.selectedOption==="End of video",!0)};
_.O5.prototype.onCueRangeEnter=function(f,S){f==="sleep-timer-fade-audio"&&Fh2(S,(S.getDuration()-S.getProgressState().current)*1E3)};
_.O5.prototype.onCueRangeExit=function(f,S){f==="sleep-timer-fade-audio"&&S.getPlayerState()!==0&&Vin(S,!0)};
var KMu=function(f,S){S.addCueRange("sleep-timer-fade-audio",S.getDuration()-15,S.getDuration());S.addEventListener("onCueRangeEnter",function(B){f.onCueRangeEnter(B,S)});
S.addEventListener("onCueRangeExit",function(B){f.onCueRangeExit(B,S)})},vuB=function(f,S){S.removeCueRange("sleep-timer-fade-audio");
S.removeEventListener("onCueRangeEnter",function(B){f.onCueRangeEnter(B,S)});
S.removeEventListener("onCueRangeExit",function(B){f.onCueRangeExit(B,S)})},iho=function(f,S){Os(f.selectedOption)?vuB(f,S):(_.xJ.cancelJob(f.presetPauseSchedulerId),_.xJ.cancelJob(f.presetFadeSchedulerId),f.presetPauseSchedulerId=0,f.presetFadeSchedulerId=0);
Vin(S,!0)},Hhu=function(f,S){S.setLoop(!1);
S.setLoopVideo(!1);S.setLoopRange(null);(f=zOu(f.JSC$20422_watchApi))&&_.oy().resolve(_.C5).dispatch(_.KF("playlistLoopStateEntity",f,{key:f,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.j3e=function(f){_.qR.call(this);this.JSC$20425_watchApi=f;Q3Z(this);YYe(this);rBe(this);f=f.getRoot();if(f.is==="ytd-watch-flexy"||f.is==="ytd-watch-grid")f.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.O$2();_.K("web_watch_log_theater_mode_cookie_state")&&_.VP.get("wide","0")==="1"&&_.U4K("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.q(_.j3e,_.qR);var Q3Z=function(f){var S,B;_.R(function(G){if(G.nextAddress==1)return _.h(G,f.JSC$20425_watchApi.playerApi,2);S=G.yieldResult;B=function(g){Ohe(f,!!g)};
S.addEventListener("SIZE_CLICKED",B);f.addOnDisposeCallback(function(){S.removeEventListener("SIZE_CLICKED",B)});
_.TT(G)})},YYe=function(f){f.JSC$20425_watchApi.registerActionHandler("yt-toggle-theater-mode",function(S,B){Ohe(f,S,B===void 0?!0:B)});
f.addOnDisposeCallback(function(){f.JSC$20425_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.j3e.prototype.getState=function(){return _.CF(_.W2().getState())};
var Ohe=function(f,S,B){B=B===void 0?!0:B;var G,g,b,z=_.K("enable_player_resize_transition")&&!!f.JSC$20425_watchApi.getWatchNextResponse()&&!((G=f.JSC$20425_watchApi.getWatchNextResponse())==null?0:(g=G.contents)==null?0:(b=g.twoColumnWatchNextResults)==null?0:b.conversationBar);_.Ia$(function(){_.W2().dispatch(_.ef({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:S}}));_.K("theater_mode_scroll_to_top_killswitch")||f.JSC$20425_watchApi.scrollWatchTo(0,!1);_.Sw()&&_.K("external_fullscreen")&&_.BK(document.documentElement);
rBe(f);B&&_.JY("wide",S?"1":"0",-1);_.bW(f.JSC$20425_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);f.JSC$20425_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:S});S&&_.O$2()},{shouldWrap:z})},rBe=function(f){var S;
_.R(function(B){if(B.nextAddress==1)return _.h(B,f.JSC$20425_watchApi.playerApi,2);S=B.yieldResult;S.setSizeStyle(!0,f.getState());_.TT(B)})};var LMu=function(f){_.qR.call(this);var S=this;this.playerApi=f;this.timeToPanelSyncKeyMap={};var B;if(f==null?0:(B=f.isReady)==null?0:B.call(f)){B=_.KD(_.oy().resolve(_.C5),function(g){return g.entities.timedMarkersListSyncEntity||{}},function(g,b){g=g===void 0?{}:g;
b=b===void 0?{}:b;for(var z=_.m(Object.keys(b)),X=z.next();!X.done;X=z.next())X=X.value,g[X]!==b[X]&&xP$(S,b[X]);b=_.m(Object.keys(g));for(z=b.next();!z.done;z=b.next())z=z.value,X=g[z],S.timeToPanelSyncKeyMap[z]&&EuY(S,X)});
this.addOnDisposeCallback(B);var G=function(g){S.onCueRangeEnter(g)};
f.addEventListener("onCueRangeEnter",G);this.addOnDisposeCallback(function(){var g;(g=f.removeEventListener)==null||g.call(f,"onCueRangeEnter",G)})}};
_.q(LMu,_.qR);
var EuY=function(f,S){var B,G;if((B=f.playerApi)==null?0:(G=B.isReady)==null?0:G.call(B)){var g;if((B=S==null?void 0:(g=S.timedListData)==null?void 0:g.sections)&&S!=null&&S.key)for(g=_.m(B),B=g.next();!B.done;B=g.next())if(B=B.value,B.timedSyncDataList&&B.sectionId)for(G=0;G<B.timedSyncDataList.length;G++){var b=B.timedSyncDataList[G];b.syncItemId&&f.playerApi.addCueRange(B.sectionId+"_"+S.key+"_"+b.syncItemId,Number(b.videoTimeMs)/1E3,G===B.timedSyncDataList.length-1?0x8000000000000:Number(B.timedSyncDataList[G+
1].videoTimeMs)/1E3)}}},xP$=function(f,S){var B,G;
if((B=f.playerApi)==null?0:(G=B.isReady)==null?0:G.call(B)){var g;if((B=S==null?void 0:(g=S.timedListData)==null?void 0:g.sections)&&S!=null&&S.key)for(g=_.m(B),B=g.next();!B.done;B=g.next())if(B=B.value,B.timedSyncDataList&&B.sectionId){G=_.m(B.timedSyncDataList);for(var b=G.next();!b.done;b=G.next())b=b.value,b.syncItemId&&f.playerApi.removeCueRange(B.sectionId+"_"+S.key+"_"+b.syncItemId)}}};
LMu.prototype.onCueRangeEnter=function(f){for(var S=_.m(Object.keys(this.timeToPanelSyncKeyMap)),B=S.next();!B.done;B=S.next()){B=B.value;var G=_.m(f.split("_"+B+"_")),g=G.next().value;G=G.next().value;if(g&&G){f=_.oy().resolve(_.C5);S=this.timeToPanelSyncKeyMap[B];var b=_.TdN(f.getState(),S);B=kxu(B,g,G);if(B===-1)break;B={activeSyncId:G,activeItemIndex:B,activeSectionInfo:{sectionIdentifier:g}};b?f.dispatch(_.LF("markersEngagementPanelSyncEntity",S,B)):f.dispatch(_.KF("markersEngagementPanelSyncEntity",
S,Object.assign({},{key:S},B)));break}}};
var kxu=function(f,S,B){var G=_.oy().resolve(_.C5),g,b;f=(g=QqB(G.getState(),f))==null?void 0:(b=g.timedListData)==null?void 0:b.sections;if(!f)return-1;g=0;b=_.m(f);for(f=b.next();!f.done;f=b.next()){f=f.value;G=f.timedSyncDataList||[];if(f.sectionId===S)return S=G.findIndex(function(z){return z.syncItemId===B}),S===-1?S:g+S;
g+=G.length}return-1};_.DPZ=function(f){_.qR.call(this);var S=this;this.JSC$20437_watchApi=f;this.unresolvedCommands=[];this.JSC$20437_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(B){nuZ(S,B)});
this.addOnDisposeCallback(function(){S.JSC$20437_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
s3Y(this)};
_.q(_.DPZ,_.qR);var s3Y=function(f){var S;_.R(function(B){if(B.nextAddress==1)return _.h(B,f.JSC$20437_watchApi.playerApi,2);S=B.yieldResult;if(f.isDisposed())return B.return();f.timedSyncObserver=new LMu(S);f.unresolvedCommands.length&&(f.unresolvedCommands.forEach(function(G){return nuZ(f,G)}),f.unresolvedCommands=[]);
_.ha(f,f.timedSyncObserver);_.TT(B)})},nuZ=function(f,S){if(f.timedSyncObserver){var B=_.H(S,tiu);
if(B&&B.timedSyncEntityKey&&B.panelSyncEntityKey){f=f.timedSyncObserver;S=B.timedSyncEntityKey;var G=B.panelSyncEntityKey;B=!!B.isEnabled;B=B===void 0?!0:B;var g=_.oy().resolve(_.C5);g=QqB(g.getState(),S);B?f.timeToPanelSyncKeyMap[S]||(f.timeToPanelSyncKeyMap[S]=G,EuY(f,g)):(delete f.timeToPanelSyncKeyMap[S],xP$(f,g))}}else f.unresolvedCommands.push(S)};var Ik$=_.oS(function(f){var S=f.data,B=f.maybeLogSmartSkipClientData,G=_.tE("ytw-timely-action-view-model");_.a8(G,function(){return S().rendererContext},{onTap:function(V,J){J({disableClickTracking:!0})}});
var g=null,b=null,z=_.K("web_enable_auto_focus_for_timely_action_button"),X=function(){g=document.activeElement},w=function(){S().smartSkipMetadata&&(g=document.activeElement,_.zA$(function(){return b}))},F=function(V){if(S().smartSkipMetadata&&(!V||V.key!=="Enter")){g&&g.isConnected&&(_.zA$(function(){return g}),g=null);
var J;(J=b)==null||J.blur()}};
f=_.iF(function(){B==null||B(!0,S());return!1});
_.of(G,{visibilityCallback:function(V){if(z)V?b&&S().smartSkipMetadata&&(w(),document.addEventListener("focusin",X)):(document.removeEventListener("focusin",X),F());else if(V&&_.K("web_ephemeral_actions")){V=_.tD(S().rendererContext);var J=Number(S().maxVisibleDurationMilliseconds),P,d=(P=_.H(S().rendererContext,_.H1))==null?void 0:P.label;V&&J&&d&&(P={label:d,command:V,durationMs:J},_.oy().resolve(_.TI).enqueue(P))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}});_.Y5(function(){if(z){var V;if((b=(V=G.value)==null?void 0:V.querySelector("button"))&&S().smartSkipMetadata){var J;(J=G.value)==null||J.addEventListener("keydown",F)}}});
_.Ov(function(){z&&(b&&S().smartSkipMetadata&&b.removeEventListener("keydown",F),document.removeEventListener("focusin",X),F())});
return _.T("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:G,"on:click":f},_.T(_.xK,{data:function(){return S().content}},{buttonViewModel:_.I8}))},"uj");var UPO=_.oS(function(f){var S=f.data,B=f.playerApi,G=_.oy().resolve(_.Ibi);f=_.m(_.$8(function(){S()}));
var g=f.next().value,b=f.next().value,z=function(){return Kh$(S(),g())},X=function(F,V){var J,P,d=(J=_.H(V==null?void 0:V.rendererContext,_.Hs))==null?void 0:(P=J.loggingDirectives)==null?void 0:P.trackingParams;
if((V=V==null?void 0:V.smartSkipMetadata)&&V.loggingData&&(P=V.loggingData,V=P.algorithmId,J=P.startMilliseconds,P=P.endMilliseconds,V&&J!==void 0&&P!==void 0)){var Q,x;F={smartSkipData:Object.assign({},{versionName:V,startMediaTimeMs:J,endMediaTimeMs:P},F&&{userInteractionMediaTimeMs:(Math.floor(((Q=_.B8())==null?void 0:(x=Q.getPlayer())==null?void 0:x.getCurrentTime())||0)*1E3).toString()})};Q=_.xc();var E;d&&(E=_.Ye(d));Q&&E&&_.yp(Q,E,F)}},w=function(F,V){var J=Kh$(S(),F);
if(J){var P=_.H(J,k7),d;if(d=V)d=B(),J=_.H(J,k7),d=J!=null&&J.smartSkipMetadata?!(d==null?0:d.isSameMarkerTypeVisible((J==null?void 0:J.smartSkipMetadata.markerKey)||"")):!0;if(d){var Q,x;(P==null?0:(Q=P.smartSkipMetadata)==null?0:(x=Q.loggingData)==null?0:x.isCounterfactual)||(X(!1,P),b(F))}else V||g()!==F||b(void 0)}};
_.jp(function(){var F=S().timelyActions;if(F){F=_.m(F);for(var V=F.next();!V.done;V=F.next()){V=_.H(V.value,k7);var J=void 0;(J=V)!=null&&J.cueRangeId&&G.timelyActionsMap.set(V.cueRangeId,w)}_.Ov(function(){G.timelyActionsMap.clear()})}},"Z1Qwtc");
return _.T("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.T(_.xK,{data:z},{timelyActionViewModel:function(F){return _.T(Ik$,{data:F.data,maybeLogSmartSkipClientData:function(){X(!0,_.H(z(),k7))}})}}))},"vj");_.p$2=function(f){_.qR.call(this);this.JSC$20449_watchApi=f;f=_.m(_.hj({},void 0,"pLDp2"));this.timelyActionsOverlay=f.next().value;this.setTimelyActionsOverlay=f.next().value;CZu(this)};
_.q(_.p$2,_.qR);var CZu=function(f){var S,B,G,g;_.R(function(b){if(b.nextAddress==1)return ABn(f),Nqo(f),f.timelyActionsContainer=document.createElement("div"),_.h(b,f.JSC$20449_watchApi.playerApi,2);S=b.yieldResult;(G=(B=S).insertTimelyActionUi)==null||G.call(B,f.timelyActionsContainer);g=_.QR(f.timelyActionsContainer,function(){return _.T(UPO,{data:f.timelyActionsOverlay,playerApi:S})});
f.addOnDisposeCallback(g);_.TT(b)})},Nqo=function(f){var S=f.JSC$20449_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){ABn(f)});
f.addOnDisposeCallback(function(){f.JSC$20449_watchApi.unsubscribeByKey(S)})},ABn=function(f){var S=f.JSC$20449_watchApi.getWatchNextResponse();
if(S){var B,G;if(S=_.H((B=S.playerOverlays)==null?void 0:(G=B.playerOverlayRenderer)==null?void 0:G.timelyActionsOverlayViewModel,ueo)){var g;(g=f.setTimelyActionsOverlay)==null||g.call(f,S)}}};_.ZhY=function(f){_.qR.call(this);this.JSC$20453_watchApi=f;MkB(this)};
_.q(_.ZhY,_.qR);var MkB=function(f){var S,B;_.R(function(G){if(G.nextAddress==1)return _.h(G,f.JSC$20453_watchApi.playerApi,2);S=G.yieldResult;B=function(g){_.JZ.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.H(g,_.fO$)},popupType:"TOAST"}})};
S.addEventListener("onYtShowToast",B);f.addOnDisposeCallback(function(){S.removeEventListener("onYtShowToast",B)});
_.TT(G)})};var tkZ,yBM,uMO,ake,fhO,cB2,lk$,Sg$,BlZ;tkZ=!1;_.WMO=function(f){_.qR.call(this);this.JSC$20456_watchApi=f;this.fullscreen=this.theater=!1;uMO(this);ake(this);yBM(this)};
_.q(_.WMO,_.qR);yBM=function(f){var S,B,G;_.R(function(g){if(g.nextAddress==1)return _.h(g,f.JSC$20456_watchApi.playerApi,2);S=g.yieldResult;if(f.isDisposed())return g.return();B=f.JSC$20456_watchApi.getElement("CINEMATICS");if(!B)return g.return();f.JSC$20456_cinematicController=new _.eX(B,S);_.ha(f,f.JSC$20456_cinematicController);_.iUY(f.JSC$20456_cinematicController);cB2(f,_.BPx());G=f.JSC$20456_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(b){lk$(f,b)});
f.addOnDisposeCallback(function(){f.JSC$20456_watchApi.unsubscribeByKey(G)});
fhO(f);lk$(f,f.JSC$20456_cinematicController.isAllowed());_.oEX(f,f.fullscreen,f.theater);Sg$(f);_.TT(g)})};
uMO=function(f){var S=f.JSC$20456_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){fhO(f)});
f.addOnDisposeCallback(function(){f.JSC$20456_watchApi.unsubscribeByKey(S)})};
ake=function(f){var S,B;_.R(function(G){if(G.nextAddress==1)return _.h(G,f.JSC$20456_watchApi.playerApi,2);S=G.yieldResult;B=function(g){cB2(f,g)};
S.addEventListener("cinematicSettingsToggleChange",B);f.addOnDisposeCallback(function(){S.removeEventListener("cinematicSettingsToggleChange",B)});
_.TT(G)})};
fhO=function(f){var S=f.JSC$20456_watchApi.getWatchNextResponse(),B;S=_.H(S==null?void 0:(B=S.pageVisualEffects)==null?void 0:B[0],_.H$);var G;(G=f.JSC$20456_cinematicController)==null||_.qDu(G,S)};
cB2=function(f,S){var B;(B=f.JSC$20456_cinematicController)==null||_.HUX(B,S);BlZ(f)};
lk$=function(f,S){var B;_.R(function(G){if(G.nextAddress==1)return _.K("kevlar_watch_cinematics_invisible")&&(S=!1),_.h(G,f.JSC$20456_watchApi.playerApi,2);B=G.yieldResult;B.updateCinematicSettings(S);BlZ(f);_.TT(G)})};
Sg$=function(f){var S=_.K2();if(_.K("kevlar_measure_ambient_mode_idle")&&!S.getFlag(192)&&!tkZ){tkZ=!0;var B=_.q6(_.xJ,function(){_.oy().resolve(_.nXo).start(1E4)},5E3);
f.addOnDisposeCallback(function(){_.xJ.cancelJob(B);_.oy().resolve(_.nXo).stop()})}};
_.oEX=function(f,S,B){f.fullscreen=S;f.theater=B;var G;(G=f.JSC$20456_cinematicController)==null||G.setFullscreen(f.fullscreen,f.theater);if(_.K("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(f.theater||f.fullscreen){var g;(g=f.JSC$20456_cinematicController)==null||_.$ZB(g)}else if((f=f.JSC$20456_cinematicController)!=null){var b;(b=f.currentCinematicEffect)==null||b.pause()}};
BlZ=function(f){if(_.K("web_cinematic_theater_mode")||_.K("web_cinematic_fullscreen")){var S;f.JSC$20456_watchApi.getRoot().toggleCinematicsActive(!((S=f.JSC$20456_cinematicController)==null||!S.isEnabled()))}};_.bq2=function(f){_.qR.call(this);var S=this;this.JSC$20459_watchApi=f;this.commentsReady=!1;this.setCommentsJobId=0;f=_.KD(_.W2(),_.Y7,function(){GLY(S)});
this.addOnDisposeCallback(f);var B=this.JSC$20459_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){gEu(S)}),G=this.JSC$20459_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){gEu(S)});
this.addOnDisposeCallback(function(){S.JSC$20459_watchApi.unsubscribeByKey(B);S.JSC$20459_watchApi.unsubscribeByKey(G)});
var g=function(){_.K("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&epO(S,"false")};
this.JSC$20459_watchApi.getRoot().addEventListener("yt-page-data-will-update",g);this.addOnDisposeCallback(function(){S.JSC$20459_watchApi.getRoot().removeEventListener("yt-page-data-will-update",g)});
gEu(this)};
_.q(_.bq2,_.qR);var gEu=function(f){f.commentsReady=!1;_.xJ.cancelJob(f.setCommentsJobId);f.setCommentsJobId=_.q6(_.xJ,function(){GLY(f)},1E3)},GLY=function(f){if(!f.commentsReady){_.kT("cmi");
_.xJ.cancelJob(f.setCommentsJobId);var S,B,G,g,b=(S=f.JSC$20459_watchApi.getWatchNextResponse())==null?void 0:(B=S.contents)==null?void 0:(G=B.twoColumnWatchNextResults)==null?void 0:(g=G.results)==null?void 0:g.results.contents;S=void 0;if(b&&b.length)for(b=_.m(b),B=b.next();!B.done;B=b.next())if(B=B.value,g=G=void 0,((G=B)==null?void 0:(g=G.itemSectionRenderer)==null?void 0:g.sectionIdentifier)==="comment-item-section"){_.K("web_watch_provide_undefined_comments")?S=B.itemSectionRenderer:f.JSC$20459_watchApi.provideRenderingData("COMMENTS",
B.itemSectionRenderer);epO(f,"true");break}_.K("web_watch_provide_undefined_comments")&&f.JSC$20459_watchApi.provideRenderingData("COMMENTS",S);f.commentsReady=!0;f.JSC$20459_watchApi.dispatchEvent("yt-watch-comments-ready")}},epO=function(f,S){var B;
(B=f.JSC$20459_watchApi.getElement("COMMENTS"))==null||B.setAttribute("canScheduleJobs",S)};_.nA=function(f){_.qR.call(this);var S=this;this.JSC$20462_watchApi=f;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.K("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.K("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.K("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.Gt("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)m$u(this);
else{var B=this.JSC$20462_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){E5(S);LA(S)}),G=this.JSC$20462_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){kL(S);
LA(S)});
this.JSC$20462_watchApi.getRoot().is==="ytd-watch-grid"&&_.K("swatcheroo_pbs_load_grid")&&(zpX(this),Rp2(this));this.addOnDisposeCallback(function(){S.JSC$20462_watchApi.unsubscribeByKey(B);S.JSC$20462_watchApi.unsubscribeByKey(G);_.xJ.cancelJob(S.provideRichGridJobId)});
E5(this);kL(this)}};
_.q(_.nA,_.qR);var m$u=function(f){var S=f.JSC$20462_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){f.providePlayerJobId=_.OR(_.xJ,function(){E5(f);LA(f)},f.provideAllDataDelayMs)}),B=f.JSC$20462_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){f.provideWatchNextJobId=_.OR(_.xJ,function(){kL(f);
LA(f)},f.provideAllDataDelayMs)}),G=f.JSC$20462_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){f.provideWatchNextJobId=_.OR(_.xJ,function(){kL(f);
LA(f)},f.provideAllDataDelayMs)});
f.JSC$20462_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.q6(_.xJ,function(){E5(f);kL(f);LA(f)},100)});
f.JSC$20462_watchApi.addPageDisposeJob(function(){_.xJ.cancelJob(f.provideWatchNextJobId);_.xJ.cancelJob(f.providePlayerJobId)});
f.addOnDisposeCallback(function(){f.JSC$20462_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");f.JSC$20462_watchApi.unsubscribeByKey(S);f.JSC$20462_watchApi.unsubscribeByKey(B);f.JSC$20462_watchApi.unsubscribeByKey(G);_.xJ.cancelJob(f.providePlayerJobId);_.xJ.cancelJob(f.provideWatchNextJobId)});
E5(f);kL(f)},E5=function(f){var S=f.JSC$20462_watchApi.getPlayerResponse(),B,G,g=(G=S==null?void 0:(B=S.playabilityStatus)==null?void 0:B.messageRenderers)!=null?G:[],b,z;
S=(z=S==null?void 0:(b=S.playabilityStatus)==null?void 0:b.messages)!=null?z:[];b=_.m(S);for(z=b.next();!z.done;z=b.next())g.push({alertRenderer:{text:_.uC(z.value),type:"WARNING"}});f.JSC$20462_watchApi.provideRenderingData("ALERTS",g)},kL=function(f){var S=[],B,G,g,b=f.JSC$20462_watchApi.getWatchNextResponse(),z,X,w,F,V=b==null?void 0:(z=b.contents)==null?void 0:(X=z.twoColumnWatchNextResults)==null?void 0:(w=X.results)==null?void 0:(F=w.results)==null?void 0:F.contents;
if(V)for(z=_.m(V),X=z.next();!X.done;X=z.next())if(X=X.value,X.videoPrimaryInfoRenderer)var J=X;else if(X.videoSecondaryInfoRenderer){var P=X;F=w=void 0;X=Object.assign({},(w=X.videoSecondaryInfoRenderer)==null?void 0:(F=w.metadataRowContainer)==null?void 0:F.metadataRowContainerRenderer);if(X.rows&&X.collapsedItemCount!==void 0){X.rows=X.rows.slice(0,X.collapsedItemCount).filter(function(um){return!!um.richMetadataRowRenderer});
X.collapsedItemCount=X.rows.length;var d={metadataRowContainerRenderer:X}}}else if(X.merchandiseShelfRenderer)var Q=X;else if(X.ticketShelfRenderer)var x=X;else if(X.expandableMetadataRenderer)var E=X;else if(X.itemSectionRenderer)if(w=X.itemSectionRenderer.contents,F=void 0,f.directlyProvideComments&&((F=X.itemSectionRenderer)==null?void 0:F.sectionIdentifier)==="comment-item-section")_.kT("cmi"),f.JSC$20462_watchApi.provideRenderingData("COMMENTS",X.itemSectionRenderer);else if(w)for(X=_.m(w),w=
X.next();!w.done;w=X.next())if(w=w.value,w.commentsEntryPointHeaderRenderer)var U=w;else if(w.clarificationRenderer||w.infoPanelContainerRenderer||w.infoPanelContentRenderer||w.emergencyOneboxRenderer){S.push(w);var A=A||!!P}else w.limitedStateMessageRenderer?G=w:w.videoMetadataCarouselViewModel&&(g=w);if(_.K("web_watch_merch_in_sd_when_ticket_shelf_present")&&Q&&x){var t=Q;Q=void 0}if(f.provideWatchNextSecondaryResults){var M,a,l;f.JSC$20462_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
b==null?void 0:(M=b.contents)==null?void 0:(a=M.twoColumnWatchNextResults)==null?void 0:(l=a.secondaryResults)==null?void 0:l.secondaryResults)}if(f.JSC$20462_watchApi.getRoot().is==="ytd-watch-grid"){var mx,zj;f.JSC$20462_watchApi.provideRenderingData("LIVE_CHAT",b==null?void 0:(mx=b.contents)==null?void 0:(zj=mx.twoColumnWatchNextResults)==null?void 0:zj.conversationBar)}var VN,$Q,OV,rW;(M=b==null?void 0:(VN=b.contents)==null?void 0:($Q=VN.twoColumnWatchNextResults)==null?void 0:(OV=$Q.secondaryResults)==
null?void 0:(rW=OV.secondaryResults)==null?void 0:rW.offerModule)&&(M.donationShelfRenderer||M.donationUnavailableRenderer)&&f.JSC$20462_watchApi.getRoot().is!=="ytd-watch-grid"&&(B=M);VN=f.JSC$20462_watchApi.getPlayerResponse();if(!VN||!_.fYG(VN.playabilityStatus,b==null?void 0:b.playerOverlays)){var MA;if(b==null?0:(MA=b.contents)==null?0:MA.singleColumnWatchNextResults){var UV,W7;var c7=b==null?void 0:(UV=b.contents.singleColumnWatchNextResults.results)==null?void 0:(W7=UV.results)==null?void 0:
W7.contents}else{var Q$,To,Ci,VM;MA=!!(V==null?0:(Q$=V[0])==null?0:(To=Q$.itemSectionRenderer)==null?0:(Ci=To.contents)==null?0:(VM=Ci[0])==null?0:VM.backgroundPromoRenderer);var Go,Io;Q$=!!(b==null?0:(Go=b.contents)==null?0:(Io=Go.twoColumnWatchNextResults)==null?0:Io.secondaryResults);MA&&!Q$&&(c7=V)}}V=S[0];Go=S[1];A&&S.length===1&&(Go=V,V=void 0);f.JSC$20462_watchApi.provideRenderingData("PRIMARY_INFO",J);f.JSC$20462_watchApi.provideRenderingData("SECONDARY_INFO",P);f.JSC$20462_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
U);f.JSC$20462_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",g);f.JSC$20462_watchApi.provideRenderingData("CLARIFICATION",V);f.JSC$20462_watchApi.provideRenderingData("RICH_METADATA",d);f.JSC$20462_watchApi.provideRenderingData("MERCH_SHELF",Q);_.K("web_watch_merch_in_sd_when_ticket_shelf_present")&&f.JSC$20462_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",t);f.JSC$20462_watchApi.provideRenderingData("TICKET_SHELF",x);f.JSC$20462_watchApi.provideRenderingData("LIMITED_STATE",G);f.JSC$20462_watchApi.getRoot().is!==
"ytd-watch-grid"&&f.JSC$20462_watchApi.provideRenderingData("DONATION_SHELF",B);f.JSC$20462_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",c7);f.JSC$20462_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",Go);f.JSC$20462_watchApi.provideRenderingData("EXPANDABLE_METADATA",E);if(f.swatcherooProvideAllDataOnScheduledJob){var uz,RT,P7,O8,ao,H7;J=b==null?void 0:(uz=b.contents)==null?void 0:(RT=uz.twoColumnWatchNextResults)==null?void 0:(P7=RT.secondaryResults)==null?void 0:(O8=P7.secondaryResults)==
null?void 0:(ao=O8.results)==null?void 0:(H7=ao[0])==null?void 0:H7.richGridRenderer;f.JSC$20462_watchApi.provideRenderingData("RICH_GRID_RENDERER",J)}};
_.nA.prototype.hasCompanionAds=function(f){var S,B;return(B=f==null?void 0:(S=f.adPlacements)==null?void 0:S.some(function(G){var g,b,z,X;return(G==null?void 0:(g=G.adPlacementRenderer)==null?void 0:(b=g.renderer)==null?void 0:b.actionCompanionAdRenderer)||(G==null?void 0:(z=G.adPlacementRenderer)==null?void 0:(X=z.renderer)==null?void 0:X.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?B:!1};
var LA=function(f){if(!_.K("swaterdoo_ps_wn_handle_ks")){f.swatcherooProvideAllDataOnScheduledJob||Rp2(f,3E3);var S=f.JSC$20462_watchApi.getPlayerResponse(),B,G,g,b,z,X=(B=f.JSC$20462_watchApi.getWatchNextResponse())==null?void 0:(G=B.contents)==null?void 0:(g=G.twoColumnWatchNextResults)==null?void 0:(b=g.secondaryResults)==null?void 0:(z=b.secondaryResults)==null?void 0:z.offerModule;S=f.hasCompanionAds(S);var w,F;B=(X==null?void 0:(w=X.tvfilmOfferModuleRenderer)==null?void 0:w.clientShouldSuppressIfCompanionAdDisplayed)||
(X==null?void 0:(F=X.unlimitedOfferModuleRenderer)==null?void 0:F.suppressIfCompanionAds);w=S&&B;f.JSC$20462_watchApi.getRoot().is==="ytd-watch-grid"&&f.JSC$20462_watchApi.provideRenderingData("OFFER_MODULE",w?void 0:X)}},Rp2=function(f,S){_.K("swatcheroo_pbs_load_grid")&&(f.provideRichGridJobId&&_.xJ.cancelJob(f.provideRichGridJobId),f.provideRichGridJobId=_.OR(_.xJ,function(){f.provideRichGridJobId=0;
var B,G,g,b,z,X,w,F=(B=f.JSC$20462_watchApi.getWatchNextResponse())==null?void 0:(G=B.contents)==null?void 0:(g=G.twoColumnWatchNextResults)==null?void 0:(b=g.secondaryResults)==null?void 0:(z=b.secondaryResults)==null?void 0:(X=z.results)==null?void 0:(w=X[0])==null?void 0:w.richGridRenderer;F&&f.JSC$20462_watchApi.provideRenderingData("RICH_GRID_RENDERER",F)},S))},zpX=function(f){var S,B;
_.R(function(G){if(G.nextAddress==1)return _.h(G,f.JSC$20462_watchApi.playerApi,2);S=G.yieldResult;B=function(){f.onPlaybackStart()};
S.addEventListener("onPlaybackStartExternal",B);f.addOnDisposeCallback(function(){S.removeEventListener("onPlaybackStartExternal",B)});
_.TT(G)})};
_.nA.prototype.onPlaybackStart=function(){Rp2(this)};_.wkY=function(f){_.qR.call(this);var S=this;this.JSC$20472_watchApi=f;f.playerApi.then(function(B){S.player=B});
this.gestures=new _.Rp(this.JSC$20472_watchApi.getRoot(),f.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.EhB(_.W2().getState())&&_.Y7(_.W2().getState())<=0)if(_.pF(_.W2().getState())){var B;(B=S.player)==null||B.toggleFullscreen()}else _.bW(S.JSC$20472_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
Xkn(this)};
_.q(_.wkY,_.qR);var Xkn=function(f){var S=_.KD(_.W2(),_.pF,function(B){f.onFullscreenChanged(B)});
f.addOnDisposeCallback(S);S=_.KD(_.W2(),_.Y7,function(B){f.gestures&&(B>0?f.gestures.detach():f.gestures.attach())});
f.addOnDisposeCallback(S)};
_.wkY.prototype.onFullscreenChanged=function(f){this.gestures&&this.gestures.update(f)};_.TlX=function(f){_.qR.call(this);var S=this;this.JSC$20475_watchApi=f;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(f.subscribeToActiveChanged(function(B){S.onActiveChanged(B)}));
hpu(this)};
_.q(_.TlX,_.qR);var Fcn=function(f){if(_.K("swatcheroo_page_dispose_all_watch_data"))f.pageDisposalDataTypes=Object.values(niY).filter(function(B){return B!=="PLAYLIST"});
else if(_.K("swatcheroo_page_dispose_rich_grid")){var S;(S=f.pageDisposalDataTypes)==null||S.push("RICH_GRID_RENDERER")}},hpu=function(f){_.K("swatcheroo_enable_ghost_cards")&&(Fcn(f),f.JSC$20475_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.xJ.cancelJob(f.clearDataJobId);
f.clearDataJobId=0}),f.runPageDisposeJob=function(){var S=_.oy().resolve(_.o8).getDestinationPageType()==="watch";
f.clearDataJobId=_.OR(_.xJ,f.runClearDataJob,S?0:_.Gt("web_watch_delay_page_dispose_ms",1E4))},f.runClearDataJob=function(){VFu(f)},f.runOnYtNavigateAwayFinish=function(){f.clearDataJobId&&(_.xJ.cancelJob(f.clearDataJobId),f.clearDataJobId=0,VFu(f))},document.addEventListener("yt-navigate-finish",f.runOnYtNavigateAwayFinish),f.JSC$20475_watchApi.addPageDisposeJob(f.runPageDisposeJob),f.addOnDisposeCallback(function(){f.JSC$20475_watchApi.removePageDisposeJob(f.runPageDisposeJob);
f.JSC$20475_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",f.runOnYtNavigateAwayFinish)}))},VFu=function(f){f.pageDisposalDataTypes.forEach(function(S){f.JSC$20475_watchApi.provideRenderingData(S,void 0)});
f.clearDataJobId=0};
_.TlX.prototype.onActiveChanged=function(f){f&&((f=document.querySelector("#watch-page-skeleton"))&&_.Pv(f),JtM(this),document.body.removeAttribute("no-y-overflow"),_.s6("IS_SHELL_LOAD")&&_.KFe())};
var JtM=function(f){_.R(function(S){if(S.nextAddress==1)return _.h(S,f.JSC$20475_watchApi.playerApi,2);_.l1();_.TT(S)})};var PpZ;PpZ=_.K("kevlar_watch_while_counterfactual")?0:.25;_.s5=function(f){_.qR.call(this);this.JSC$20478_watchApi=f;this.JSC$20478_watchWhileEnabled=_.K("kevlar_watch_while_v2");this.pipEnabled=_.K("web_enable_pip_on_miniplayer");vEu(this);Kcu(this);d$u(this)};
_.q(_.s5,_.qR);var vEu=function(f){f.JSC$20478_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){iqY(f)});
f.addOnDisposeCallback(function(){f.JSC$20478_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},Kcu=function(f){var S,B;
_.R(function(G){if(G.nextAddress==1)return _.h(G,f.JSC$20478_watchApi.playerApi,2);S=G.yieldResult;B=function(){iqY(f)};
S.addEventListener("onCollapseMiniplayer",B);f.addOnDisposeCallback(function(){S.removeEventListener("onCollapseMiniplayer",B)});
_.TT(G)})},d$u=function(f){var S=f.JSC$20478_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&S&&f.JSC$20478_watchWhileEnabled&&(f.playerIntersectionObserver=new IntersectionObserver(function(B){f.handleIntersect(B)},{threshold:[PpZ]}),f.playerIntersectionObserver.observe(S),f.addOnDisposeCallback(function(){var B;
(B=f.playerIntersectionObserver)==null||B.disconnect()}))},iqY=function(f){var S,B,G;
_.R(function(g){if(g.nextAddress==1){S=_.oy().resolve(_.o8);B=S.data;G=_.Rax(B.response,B.playerResponse);_.Pn().miniplayerButtonActivation=!0;if(f.pipEnabled)return _.Pn().watchPipActivation=!0,g.jumpTo(2);_.oy().resolve(_.N_).collapse();return _.h(g,_.Pn().navigationFinishPromise,2)}if(g.nextAddress!=4)return _.Pn().currentEndpoint=G.watchEndpoint||null,_.h(g,_.oy().resolve(_.N_).activate(f.JSC$20478_watchApi.getElement("PLAYER"),G,B),4);_.Pn().userActivation=!0;_.TT(g)})};
_.s5.prototype.handleIntersect=function(f){Hqu(this,f[f.length-1])};
var Hqu=function(f,S){f.watchWhileJobId&&_.xJ.cancelJob(f.watchWhileJobId);f.watchWhileJobId=_.xJ.addLowPriorityJob(function(){var B,G;return _.R(function(g){if(g.nextAddress==1)return f.watchWhileJobId=void 0,B=_.oy().resolve(_.N_),S.intersectionRatio>PpZ?B.isMiniplayerActive()?_.h(g,B.deactivate(),0):g.jumpTo(0):(G=!B.isMiniplayerActive())?_.h(g,qgu(f),5):g.jumpTo(4);g.nextAddress!=4&&(G=g.yieldResult);if(!G)return g.jumpTo(0);_.Pn().watchWhileActivation=!0;return _.h(g,$$$(f),0)})},100)},qgu=function(f){return _.R(function(S){return S.nextAddress==
1?_.K("kevlar_watch_while_paused")?S.return(!0):_.h(S,f.isPlayerPlaying(),2):S.return(S.yieldResult)})};
_.s5.prototype.isPlayerPlaying=function(){var f=this,S;return _.R(function(B){if(B.nextAddress==1)return _.h(B,f.JSC$20478_watchApi.playerApi,2);S=B.yieldResult;return B.return(S.getPlayerStateObject().isPlaying)})};
var $$$=function(f){var S,B;return _.R(function(G){S=_.oy().resolve(_.o8).data;B=_.Rax(S.response,S.playerResponse);_.Pn().currentEndpoint=B.watchEndpoint||null;return _.h(G,_.oy().resolve(_.N_).activate(f.JSC$20478_watchApi.getElement("PLAYER"),B,S),0)})};_.rt2=function(f){_.qR.call(this);this.JSC$20482_watchApi=f;QXu(this);YgM(this)};
_.q(_.rt2,_.qR);var YgM=function(f){var S,B;_.R(function(G){if(G.nextAddress==1)return _.h(G,f.JSC$20482_watchApi.playerApi,2);S=G.yieldResult;B=function(g){var b;g.sessionData&&g.sessionData.itct&&(b=g.sessionData.itct);var z=g.watchEndpoint;if(z&&g.sessionData&&g.sessionData.autonav)z=_.jxx(z,b);else{var X;z=_.Sf(g.videoId,(X=g.listId)!=null?X:void 0,b)}b={endpoint:z};g.sessionData&&(b.tempData=g.sessionData);f.JSC$20482_watchApi.dispatchEvent("yt-navigate",b)};
S.addEventListener("onPlayVideo",B);f.addOnDisposeCallback(function(){S.removeEventListener("onPlayVideo",B)});
_.TT(G)})},QXu=function(f){var S=function(B){f.onYtNavigate(B)};
f.JSC$20482_watchApi.getRoot().addEventListener("yt-navigate",S);f.addOnDisposeCallback(function(){f.JSC$20482_watchApi.getRoot().removeEventListener("yt-navigate",S)})};
_.rt2.prototype.onYtNavigate=function(f){var S=this,B,G,g,b,z,X,w,F,V;return _.R(function(J){if(J.nextAddress==1){if(!((B=f.detail)==null?0:(G=B.endpoint)==null?0:G.watchEndpoint))return J.return();g=f.detail.endpoint.watchEndpoint;b=S.JSC$20482_watchApi.getWatchNextResponse();X=_.H((z=b)==null?void 0:z.currentVideoEndpoint,_.t2);if(!X)return J.return();if(g.videoId!==X.videoId||g.playlistId&&g.playlistId!==X.playlistId||typeof g.startTimeSeconds!=="number")return J.jumpTo(0);f.stopPropagation();
(w=_.K("kevlar_watch_while_v2")&&!_.K("kevlar_watch_while_counterfactual"))&&_.oy().resolve(_.N_).isMiniplayerActive()||S.JSC$20482_watchApi.scrollWatchTo(0,!0);return _.h(J,S.JSC$20482_watchApi.playerApi,3)}F=J.yieldResult;V=g.startTimeSeconds;F.seekTo(V,void 0,void 0,void 0,84);F.wakeUpControls();V<F.getDuration()&&F.playVideo();_.TT(J)})};_.Oqz=function(f){_.qR.call(this);var S=this;this.JSC$20485_watchApi=f;var B=this.JSC$20485_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){jXo(S)});
this.addOnDisposeCallback(function(){S.JSC$20485_watchApi.unsubscribeByKey(B)});
jXo(this)};
_.q(_.Oqz,_.qR);var jXo=function(f){var S=f.JSC$20485_watchApi.getWatchNextResponse();if(S){var B,G=[].concat(_.$d((B=S==null?void 0:S.engagementPanels)!=null?B:[]));G.unshift.apply(G,_.$d(x$O(S)));f.JSC$20485_watchApi.provideRenderingData("ENGAGEMENT_PANELS",G)}},EEO=function(f){var S,B,G,g=(S=f.engagementPanels)==null?void 0:(B=S.find(function(d){var Q;
return((Q=d.engagementPanelSectionListRenderer)==null?void 0:Q.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(G=B.engagementPanelSectionListRenderer.content)==null?void 0:G.structuredDescriptionContentRenderer,b;
if(_.H(g==null?void 0:(b=g.items)==null?void 0:b.find(function(d){return!!_.H(d,XPX)}),XPX))return!0;
var z,X,w,F;if(f=(((z=f.contents)==null?void 0:(X=z.twoColumnWatchNextResults)==null?void 0:(w=X.results)==null?void 0:(F=w.results)==null?void 0:F.contents)||[]).find(function(d){return d.videoPrimaryInfoRenderer})){var V,J,P;
return(((V=f.videoPrimaryInfoRenderer)==null?void 0:(J=V.videoActions)==null?void 0:(P=J.menuRenderer)==null?void 0:P.flexibleItems)||[]).some(function(d){d=_.H(d,_.Rz8);if(!d)return!1;var Q,x;d=(Q=d.topLevelButton)==null?void 0:(x=Q.buttonViewModel)==null?void 0:x.onTap;if(!d)return!1;Q=_.CH(d);if(!Q)return!1;var E;return((E=_.H(Q,_.DW))==null?void 0:E.panelIdentifier)==="PAyouchat"})}return!1},x$O=function(f){var S=[];
if(!_.K("web_watch_inject_placeholder_fantasy_panel_killswitch")){var B,G,g,b=(B=f.engagementPanels)==null?void 0:(G=B.find(function(X){var w;return((w=X.engagementPanelSectionListRenderer)==null?void 0:w.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(g=G.engagementPanelSectionListRenderer.content)==null?void 0:g.structuredDescriptionContentRenderer,z;
_.H(b==null?void 0:(z=b.items)==null?void 0:z.find(function(X){return!!_.H(X,pRY)}),pRY)&&(B=_.CI9("PAsports_fantasy"),B.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",S.push(B))}EEO(f)&&(f=_.CI9("PAyouchat"),f.engagementPanelSectionListRenderer.targetId="PAyouchat",f.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",S.push(f));
return S};_.kLo=function(f){_.qR.call(this);this.JSC$20488_watchApi=f;LcY(this)};
_.q(_.kLo,_.qR);var LcY=function(f){f.JSC$20488_watchApi.registerActionHandler("yt-loop-command",function(S){nEu(f,S)});
f.JSC$20488_watchApi.registerActionHandler("yt-repeat-chapter-command",function(S){sXu(f,S)});
f.addOnDisposeCallback(function(){f.JSC$20488_watchApi.unregisterActionHandler("yt-loop-command");f.JSC$20488_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},nEu=function(f,S){var B;
_.R(function(G){if(G.nextAddress==1)return _.h(G,f.JSC$20488_watchApi.playerApi,2);B=G.yieldResult;_.H(S,NTY).loop?(B.setLoopRange({startTimeMs:Number(_.H(S,NTY).startTimeMs),endTimeMs:Number(_.H(S,NTY).endTimeMs),postId:_.H(S,NTY).postId,type:"clips"}),B.playVideo()):B.setLoopRange(null);_.TT(G)})},sXu=function(f,S){var B,G;
_.R(function(g){if(g.nextAddress==1)return _.h(g,f.JSC$20488_watchApi.playerApi,2);B=g.yieldResult;G=_.H(S,a4M).repeat;G==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(B.setLoopRange({startTimeMs:Number(_.H(S,a4M).startTimeMs),endTimeMs:Number(_.H(S,a4M).endTimeMs),type:"repeatChapter"}),B.playVideo()):G==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&B.setLoopRange(null);_.TT(g)})};_.Ihu=function(f){_.qR.call(this);this.JSC$20493_watchApi=f;D$e(this)};
_.q(_.Ihu,_.qR);var D$e=function(f){f.JSC$20493_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(S){U$2(f,S)});
f.addOnDisposeCallback(function(){f.JSC$20493_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},U$2=function(f,S){var B,G,g,b,z,X,w,F,V,J,P;
_.R(function(d){if(d.nextAddress==1)return _.h(d,f.JSC$20493_watchApi.playerApi,2);B=d.yieldResult;if(b=(g=(G=_.H(S,yT$))==null?void 0:G.highlightedMenuItemKey)!=null?g:"")(X=(z=B).highlightSettingsMenuItem)==null||X.call(z,b);if(V=(F=(w=_.H(S,yT$))==null?void 0:w.openMenuItemKey)!=null?F:"")(P=(J=B).openSettingsMenuItem)==null||P.call(J,V);_.TT(d)})};var CpB=_.XV("/youtube/app/watch/player_state","playerStateEntity");_.AtB=function(f){_.qR.call(this);this.JSC$20496_watchApi=f;pku(this)};
_.q(_.AtB,_.qR);var Nlu=function(f){switch(f){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"}},pku=function(f){var S,B;
_.R(function(G){if(G.nextAddress==1)return _.h(G,f.JSC$20496_watchApi.playerApi,2);S=G.yieldResult;B=function(g){f.onPlayerStateChange(g)};
S.addEventListener("onStateChange",B);f.addOnDisposeCallback(function(){S.removeEventListener("onStateChange",B)});
_.TT(G)})};
_.AtB.prototype.onPlayerStateChange=function(f){var S=this,B,G;return _.R(function(g){if(g.nextAddress==1)return _.h(g,S.JSC$20496_watchApi.playerApi,2);B=g.yieldResult;G=B.getVideoData().video_id;_.al().dispatch(_.KF("playerStateEntity",CpB,{key:CpB,playerState:Nlu(f),videoId:G}));_.TT(g)})};_.Zqu=function(f){_.qR.call(this);var S=this;this.JSC$20500_watchApi=f;this.enableExternalPlaylistPanelInPlayer=_.K("delhi_web_player_use_external_playlist_panel");_.oy().resolve(_.Dr).setPlayer(this.JSC$20500_watchApi.getElement("PLAYER"));f=this.JSC$20500_watchApi.subscribeToActiveChanged(function(B){S.onActiveChanged(B)});
this.addOnDisposeCallback(f);MFz(this)};
_.q(_.Zqu,_.qR);var MFz=function(f){var S,B;_.R(function(G){if(G.nextAddress==1)return f.enableExternalPlaylistPanelInPlayer?_.h(G,f.JSC$20500_watchApi.playerApi,2):G.return();S=G.yieldResult;B=function(){if(f.playlistPanelElement)f.playlistPanelElement.onToggleExpanded()};
S.addEventListener("onToggleExternalPlaylistPanel",B);f.addOnDisposeCallback(function(){S.removeEventListener("onToggleExternalPlaylistPanel",B)});
_.TT(G)})};
_.Zqu.prototype.onActiveChanged=function(f){var S=this,B=_.oy().resolve(_.Dr),G=function(){tFz(S)};
f?(this.playlistPanelElement=this.JSC$20500_watchApi.getElement("PLAYLIST_PANEL"))?(B.setPlaylistComponent(this.playlistPanelElement),B.addEventListener("yt-playlist-data-updated",G),this.addOnDisposeCallback(function(){B.removeEventListener("yt-playlist-data-updated",G)}),tFz(this)):_.CL(Error("lm")):(B.removeEventListener("yt-playlist-data-updated",G),B.cancelVideoSkip())};
var tFz=function(f){var S=_.oy().resolve(_.Dr);f.JSC$20500_watchApi.provideRenderingData("PLAYLIST",S.getPlaylistData())};_.Dm=function(f){_.qR.call(this);var S=this;this.JSC$20503_watchApi=f;this.onPageScroll=function(){S.scrollThrottle.fire();S.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.S3(this.onThrottledScroll,200,this);_.ha(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.S3(this.onMastheadThrottledScroll,50,this);_.ha(this,this.mastheadScrollThrottle);this.animation=new _.EN(function(B){S.JSC$20503_watchApi.getRoot().setScrollTop(B)});
f=_.KD(_.W2(),_.pF,function(){S.onFullscreenChanged()});
this.addOnDisposeCallback(f);uJe(this);ah$(this);this.onThrottledScroll()};
_.q(_.Dm,_.qR);
_.Dm.prototype.onFullscreenChanged=function(){var f=this,S=this.JSC$20503_watchApi.getRoot();!this.pageScrollElement&&S.pageScrollElement?(this.pageScrollElement=S.pageScrollElement,S.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){f.pageScrollElement&&f.pageScrollElement.removeEventListener("scroll",f.onPageScroll)})):this.pageScrollElement&&!S.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var uJe=function(f){window.addEventListener("scroll",f.onPageScroll);f.addOnDisposeCallback(function(){window.removeEventListener("scroll",f.onPageScroll)})},ah$=function(f){f.JSC$20503_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(S){a:{var B;
if(B=f.JSC$20503_watchApi.getRoot().contains(S)&&!f.animation.isAnimating()){B=S.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var G,g,b=(S==null?void 0:(G=S.parentElement)==null?void 0:(g=G.parentElement)==null?void 0:g.id)==="fixed-secondary";B=!(B&&b)}if(B){if(_.K("kevlar_watch_scroll_manager_absolute_offset_killswitch"))G=S.offsetTop;else for(G=0,g=S;g!==null;)G+=g.offsetTop,G-=g.scrollTop,g=g.offsetParent;g=G;G=g-24;S=g+S.offsetHeight+24;g=f.JSC$20503_watchApi.getRoot().getPageScrollingElement();
B=f.JSC$20503_watchApi.getRoot().getScrollTop();b=B+g.clientHeight-56;if(G<B+56)S=G-56;else if(S>b)S-=g.clientHeight;else break a;f.scrollWatchTo(Math.max(0,S),!0)}}});
f.addOnDisposeCallback(function(){f.JSC$20503_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.Dm.prototype.onThrottledScroll=function(){var f=_.W2(),S=f.dispatch,B=this.JSC$20503_watchApi.getRoot().getScrollTop();S.call(f,_.ef({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:B}}))};
_.Dm.prototype.onMastheadThrottledScroll=function(){this.JSC$20503_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$20503_watchApi.getRoot().getScrollTop())};
_.Dm.prototype.scrollWatchTo=function(f,S){(S===void 0?0:S)?this.animation.start(this.JSC$20503_watchApi.getRoot().getScrollTop(),Math.max(0,f),500):this.JSC$20503_watchApi.getRoot().setScrollTop(f)};_.ctO=function(f){_.qR.call(this);var S=this;this.JSC$20506_watchApi=f;var B=this.JSC$20506_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){ytu(S)}),G=this.JSC$20506_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Wce(S)});
this.addOnDisposeCallback(function(){S.JSC$20506_watchApi.unsubscribeByKey(B);S.JSC$20506_watchApi.unsubscribeByKey(G)});
ytu(this);Wce(this)};
_.q(_.ctO,_.qR);
var ytu=function(f){var S,B,G,g=(G=(S=f.JSC$20506_watchApi.getPlayerResponse())==null?void 0:(B=S.videoDetails)==null?void 0:B.title)!=null?G:"";f.JSC$20506_watchApi.dispatchEvent("yt-update-title",g)},Wce=function(f){var S,B,G,g,b,z,X,w=(X=((z=(S=f.JSC$20506_watchApi.getWatchNextResponse())==null?void 0:(B=S.contents)==null?void 0:(G=B.twoColumnWatchNextResults)==null?void 0:(g=G.results)==null?void 0:(b=g.results)==null?void 0:b.contents)!=null?z:[]).find(function(F){return!!F.videoPrimaryInfoRenderer}))==null?
void 0:X.videoPrimaryInfoRenderer;
(S=_.ac(w==null?void 0:w.title))&&f.JSC$20506_watchApi.dispatchEvent("yt-update-title",S)};_.fAY=function(f){_.qR.call(this);this.JSC$20509_watchApi=f;lhe(this)};
_.q(_.fAY,_.qR);var lhe=function(f){var S,B;_.R(function(G){if(G.nextAddress==1)return _.h(G,f.JSC$20509_watchApi.playerApi,2);S=G.yieldResult;B=function(){f.onYpcContentRequest()};
S.addEventListener("onYpcContentRequest",B);f.addOnDisposeCallback(function(){S.removeEventListener("onYpcContentRequest",B)});
_.TT(G)})};
_.fAY.prototype.onYpcContentRequest=function(){var f,S,B,G,g,b=(f=this.JSC$20509_watchApi.getWatchNextResponse())==null?void 0:(S=f.contents)==null?void 0:(B=S.twoColumnWatchNextResults)==null?void 0:(G=B.secondaryResults)==null?void 0:(g=G.secondaryResults)==null?void 0:g.offerModule,z,X,w,F;f=(F=(w=(X=(z=b==null?void 0:b.episodeOfferModuleRenderer)!=null?z:b==null?void 0:b.movieOfferModuleRenderer)!=null?X:b==null?void 0:b.unlimitedOfferModuleRenderer)!=null?w:b==null?void 0:b.liveOfferModuleRenderer)!=
null?F:b==null?void 0:b.tvfilmOfferModuleRenderer;var V,J,P;b=(P=b==null?void 0:(V=b.tvfilmOfferModuleRenderer)==null?void 0:(J=V.actionButtons)==null?void 0:J.length)!=null?P:0;J=Math.max(b-1,0);var d,Q,x;V=(x=f==null?void 0:(d=f.offerButton)==null?void 0:d.buttonRenderer)!=null?x:f==null?void 0:(Q=f.actionButtons)==null?void 0:Q[J].buttonRenderer;var E,U;(d=(U=(E=V==null?void 0:V.navigationEndpoint)!=null?E:V==null?void 0:V.serviceEndpoint)!=null?U:V==null?void 0:V.command)&&_.JZ.instance.resolveCommand(d)};
}catch(e){_._DumpException(e)}
try{
var zP2,eP2,Gt2;_.g0u=function(){var f=_.$v.clone(BOe),S;return(new _.TM(function(B,G){f.onSuccess=function(g){_.YlV(g)?B(new Gt2(g)):G(new _.uM("Request failed, status="+_.ba(g),"net.badstatus",g))};
f.onError=function(g){G(new _.uM("Unknown request error","net.unknown",g))};
f.onTimeout=function(g){G(new _.uM("Request timed out","net.timeout",g))};
S=_.wO("//googleads.g.doubleclick.net/pagead/id",f)})).thenCatch(function(B){if(B instanceof _.y1){var G;
(G=S)==null||G.abort()}return _.xe(B)})};
_.bN2=function(f){a:{var S="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(S="EMBEDDED_PLAYER_MODE_PFL");var B=f.raw_embedded_player_response;if(!B&&(f=f.embedded_player_response))try{B=JSON.parse(f)}catch(g){break a}if(B)b:for(var G in eP2)if(eP2[G]==B.embeddedPlayerMode){S=eP2[G];break b}}return S==="EMBEDDED_PLAYER_MODE_PFL"};
_.mHZ=function(){if(_.K("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("of");if(!_.a2Q())return Error("pf");var f=_.nL("PLAYER_VARS",{});if(_.$v.get(f,"privembed",!1)=="1")return Error("qf");if(_.bN2(f))return Error("rf")};
zP2=function(f){switch(f){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:_.mu(f,"unknown result type")}};
_.RPX=function(f,S,B){S=_.p4s[S];B={detected:f===0,source:S.tZg,detectionResult:zP2(f),contentCpn:B};_.jD("biscottiBasedDetection",B);_.MG6.increment(S.tZg,f);S.oZ9!==void 0&&_.k5("CATSTAT",_.UmK(f,S))};
_.a7=function(f,S){var B={};B.key=f;B.value=S;return _.dfQ().then(function(G){return new Promise(function(g,b){try{var z=G.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(B);z.onsuccess=function(){g()};
z.onerror=function(){b()}}catch(X){b(X)}})})};
_.wL2=function(){var f=_.Gt("user_engagement_experiments_rate_limit_ms"),S=XLu.get("last-user-engagement-exp-trigger-timestamp");return!S||(0,_.fO)()>=S+f?(XLu.set("last-user-engagement-exp-trigger-timestamp",(0,_.fO)()),!0):!1};
_.yu=function(f,S,B,G,g){S=S===void 0?null:S;B=B===void 0?null:B;G=G===void 0?null:G;g=g===void 0?null:g;f={youThereEventType:f};B&&(f.lactThresholdMs=B.lactThresholdMs,f.mediaPosSec=B.promptDelaySec,f.lactServerRequestMs=B.lactServerRequestMs,f.triggerReason=B.triggerReason);g!=null&&(f.renderingMediaPosSec=Math.round(g));S||(S=_.xc());S&&(f.clientScreenNonce=S);G&&(f.clientPlaybackNonce=G);_.jD("youThere",f)};
eP2={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"};Gt2=function(f){this.xhr=f};
_.uM=function(f,S,B){_.fM.call(this,f+", errorCode="+S);this.errorCode=S;this.xhr=B;this.name="PromiseAjaxError"};
_.q(_.uM,_.fM);var BOe={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var XLu=new _.s4("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.IEB=function(f){return _.ef({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:f})};
}catch(e){_._DumpException(e)}
try{
var pA,Xhu,hVo,T4$,FJu,VX$,P2Y,QWB,YsB,rde,Jdn,wh2,iZz,dYB,xYn;_.RVu=function(){var f=window.location.hash;f.charAt(0)==="#"&&(f=f.charAt(1)==="!"?f.substring(2):f.substring(1));return _.Np(f)};
pA=function(f,S,B){var G;return _.R(function(g){if(g.nextAddress==1)return _.h(g,S(),2);G=g.yieldResult;B(G,f);_.TT(g)})};
Xhu=function(){return _.R(function(f){return f.nextAddress==1?_.h(f,(_.mHZ()!==void 0?_.xe(Error("sf")):_.g0u()).then(function(){return 1},function(S){if(S.message==="Biscotti id is disabled")return 3;
_.Lg("Failed fetching bid");return 0}),2):f.return(f.yieldResult)})};
hVo=function(){var f=_.Sa("LWVtYmVkLXBsYXllciNncGhwNXV4aDR1NHJ5dC1oYXZlbg=="),S=_.Sa("aTF2aWZyYW1lI2V0bzFjNG5zeg==");return document.querySelector(S+wh2+f)?0:1};
T4$=function(){return _.Qvs(_.Zr)};
FJu=function(){return _.Yj9()===0?0:_.rij()};
VX$=function(){return _.LQQ(_.arK([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
P2Y=function(){return _.P_s(Jdn)};
_.v72=function(f){_.R(function(S){switch(S.nextAddress){case 1:return _.h(S,pA("b.f_",Xhu,f),2);case 2:return _.h(S,pA("j.s_",_.VjM,f),3);case 3:return _.h(S,pA("r.s_",_.hHx,f),4);case 4:return _.h(S,pA("e.h_",P2Y,f),5);case 5:if(!_.K("ab_det_sc_inj")){S.jumpTo(6);break}return _.h(S,pA("s.i_",_.qjG,f),6);case 6:if(_.K("ab_deg_unex_thr")){S.jumpTo(8);break}return _.h(S,pA("a.o_",_.i5G,f),8);case 8:if(_.K("ks_get_o_pp")){S.jumpTo(10);break}return _.h(S,pA("g.o_",_.dmG,f),10);case 10:if(_.K("ks_det_gpbl")){S.jumpTo(12);
break}return _.h(S,pA("p.i_",_.KQQ,f),12);case 12:return _.h(S,pA("f.i_",_.Sj1,f),14);case 14:return _.h(S,pA("a.b_",_.X49,f),15);case 15:return _.h(S,pA("p.m_",_.gk1,f),16);case 16:if(!_.K("ab_det_el_h_v2")){S.jumpTo(17);break}return _.h(S,pA("n.h_",VX$,f),17);case 17:return _.h(S,pA("o.p_",T4$,f),19);case 19:return _.h(S,pA("e.i_",hVo,f),20);case 20:if(_.K("ab_det_apm"))return _.h(S,pA("o.a_",FJu,f),0);S.jumpTo(0)}})};
_.KJz=function(f,S){f={videoId:f};S&&(f.playlistId=S);return f};
_.HZu=function(){if(_.a2Q()){var f=_.nL("PLAYER_VARS",{});if(_.$v.get(f,"privembed",!1)!="1"&&!_.bN2(f)){var S=function(){dYB=!0;"google_ad_status"in window?_.k5("DCLKSTAT",1):_.k5("DCLKSTAT",2)};
try{_.I4("//static.doubleclick.net/instream/ad_status.js",S)}catch(B){}iZz.push(_.xJ.addLowPriorityJob(function(){if(!(dYB||"google_ad_status"in window)){try{_.CXG("//static.doubleclick.net/instream/ad_status.js",S)}catch(B){}dYB=!0;_.k5("DCLKSTAT",3)}},5E3))}}};
_.Ah=function(f,S,B){B=B===void 0?!1:B;var G=Math.max(f.width,_.hNY);if(_.K("kevlar_watch_feed_big_thumbs")&&f.width>=1550-_.xy()&&f.height>=800)G-=_.vIn;else if(f.width>=_.DA){var g=_.TsY+_.FPO+_.ss;_.K("kevlar_watch_feed_big_thumbs")&&(g=_.PIo);G-=g}else G-=_.TsY;G=Math.min(G,_.VMz);g=240;B&&(g=380);S<.5624||(!_.K("kevlar_watch_flexy_disable_small_window_sizing")&&(f.height<630&&f.width>=657||f.height>=630&&f.width>=_.DA&&f.width<1327)?g=360:!_.K("kevlar_watch_flexy_disable_large_window_sizing")&&
f.height>=630&&f.width>=1327&&(g=480));var b=Math.min(G*S,f.height-(56+_.wPZ+_.Jbz));b=Math.max(b,g);S<1?G=b/S:f.width>=_.DA&&(G=_.Ah(f,.5625,B).width);return new _.Xr(Math.round(G),Math.round(b))};
_.qs2=function(f){var S=0;f.indexOf("h")!=-1&&(f=f.split("h"),S=f[0]*60*60,f=f[1]);f.indexOf("m")!=-1&&(f=f.split("m"),S=f[0]*60+S,f=f[1]);f.indexOf("s")!=-1?(f=f.split("s"),S=f[0]*1+S):S=f*1+S;return S};
_.$YM=function(){_.Gt("service_worker_push_logged_out_prompt_watches")!=-1&&_.o7("WatchCount").then(function(f){f>=100||_.a7("WatchCount",f+1)})};
QWB=function(f){var S=f.externalVideoId||"";return S?f.isShortsEligible?"https://www.youtube.com/shorts/"+S:"https://www.youtube.com/watch?v="+S:""};
YsB=function(f){var S=[];f.viewCount&&S.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:f.viewCount});f.likeCount&&S.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:f.likeCount});return S};
rde=function(f){var S,B,G={"@context":"https://schema.org","@type":"VideoObject",description:_.ac(f.description),duration:"PT"+(f.lengthSeconds||"0")+"S",embedUrl:f.embed?f.embed.iframeUrl:"",name:_.ac(f.title),thumbnailUrl:((S=f.thumbnail)==null?void 0:(B=S.thumbnails)==null?void 0:B.map(function(V){return V&&V.url||""}))||[],
uploadDate:f.publishDate};_.K("mweb_video_schema_id_killswitch")||(G["@id"]=QWB(f));S=YsB(f);S.length&&(G.interactionStatistic=S);f.category&&(G.genre=f.category);f.ownerChannelName&&(G.author=f.ownerChannelName);f.liveBroadcastDetails&&(G.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:f.liveBroadcastDetails.startTimestamp,endDate:f.liveBroadcastDetails.endTimestamp}]);if(f.learningResource){f=f.learningResource;G["@type"]=["VideoObject","LearningResource"];var g;if((g=f.learningResourceType)==
null?0:g.length)G.learningResourceType=f.learningResourceType[0];var b;if((b=f.educationalAlignment)==null?0:b.length)G.educationalAlignment={"@type":"AlignmentObject",targetName:f.educationalAlignment[0]};var z;if((z=f.educationalLevel)==null?0:z.length){g=f.educationalLevel[0];var X;if((X=f.educationalLevelCountry)==null?0:X.length)g+=" ("+f.educationalLevelCountry+")";G.educationalLevel=g}var w,F;if(((w=f.learningResourceType)==null?0:w.length)&&f.learningResourceType[0]==="Problem walkthrough"&&
((F=f.problemDescriptions)==null?0:F.length))for(G.hasPart=[],X=_.m(f.problemDescriptions),w=X.next();!w.done;w=X.next())g=w.value,w=g.problemDescriptionText,F=g.startOffset,g=g.url,w&&F!==void 0&&g&&G.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:w,text:w,startOffset:F,url:g})}return G};
_.jWu=function(f){return _.ef({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:f}})};
Jdn=[[["cHJpbWFyeSNyMmg2ODB1amI2OTM=",null,null],[null,["ZG1iMW4waG5xeXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIjamI3","ZXEzZXRwMnBmdWowc3R5bGUtc2NvcGUj"],null],["cXRmdnozOW9hNXlubWFzdGhlYWQtYWQj",["cmlkLXJlbmRlcmVyI3FhdmR3ZXcwMmVqc3l0ZC1yaWNoLWc="],null],[null,["cmlkLXJlbmRlcmVyI3Z1dGRpMTF5cnF5ZHl0ZC1yaWNoLWc=","dDRjMGYxdGMxY211c3R5bGUtc2NvcGUj"],null],[null,["LXJlbmRlcmVyI3d0b3o0OW93cDdlZXl0ZC1iYW5uZXItcHJvbW8=","YWxmMXY4NTA3cm9qc3R5bGUtc2NvcGUj"],null],[null,["LXNsb3QtcmVuZGVyZXIjMW84aXRmd2xha24weXRkLWFk"],
null]],[["cyN5Z3MzZWgyMHpyYzZwbGF5ZXItYWQ=",null,null]]];wh2="#";iZz=[];dYB=!1;_.OZM=["engagement-panel-ads"];xYn=new _.u("updateSentimentBarStateCommand");_.E7o=new _.u("showSurveyCommand");_.NX=new _.u("changeMarkersVisibilityCommand");var krO,n7u,UYu,IAu,DYe,MX;_.LJB=function(f,S){this.playerProvider_=f;this.actionSenderElement_=S;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.LJB.prototype.reset=function(){krO(this);this.isUserPredictedAbsent_=!1};
krO=function(f,S){!f.youThereData_||f.showWarningJob_||S!==void 0&&S||(_.yu("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.xc(),f.youThereData_,f.clientPlaybackNonce_),_.OU());_.xJ.cancelJob(f.showWarningJob_);f.showWarningJob_=0;_.xJ.cancelJob(f.showBlockingWarningJob_);f.showBlockingWarningJob_=0;_.xJ.cancelJob(f.pausePlaybackJob_);f.pausePlaybackJob_=0;f.youThereData_=null;f.clientPlaybackNonce_=void 0;f.inYouThereFlow_=!1};
_.sWn=function(f,S){var B,G,g;_.R(function(b){if(b.nextAddress==1)return f.reset(),_.h(b,f.playerProvider_().getPlayerPromise(),2);B=b.yieldResult;f.clientPlaybackNonce_=B.getVideoData().cpn;f.youThereData_=S.configData.youThereData;if(!f.youThereData_)return b.return();if(f.youThereData_.triggerReason&&f.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.wL2())return _.yu("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.xc(),f.youThereData_,f.clientPlaybackNonce_),b.return();G=f.youThereData_.promptDelaySec;
g=B.getCurrentTime();f.showWarningJob_=_.xJ.addLowPriorityJob(function(){return _.R(function(z){f.showWarningJob_=0;return _.h(z,n7u(f),0)})},Math.max(G-g,0)*1E3);
_.TT(b)})};
n7u=function(f){var S,B,G,g,b,z;return _.R(function(X){if(X.nextAddress==1)return _.h(X,f.playerProvider_().getPlayerPromise(),2);if(X.nextAddress!=3)return S=X.yieldResult,B=S.getCurrentTime(),_.h(X,DYe(f),3);G=X.yieldResult;if(!G||!f.youThereData_)return X.return();if(_.K("check_user_lact_at_prompt_shown_time_on_web")&&(g=parseInt(f.youThereData_.lactThresholdMs,10),_.or()<g))return _.yu("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.xc(),f.youThereData_,f.clientPlaybackNonce_),X.return();if(f.youThereData_.playbackPauseDelayMs<=
0)return IAu(f),X.return();!_.K("external_fullscreen")&&(b=_.Sw())&&(f.ignoreFullscreenExitUserActivity_=!0,_.xJ.addLowPriorityJob(function(){f.ignoreFullscreenExitUserActivity_=!1},2E3),_.BK(b));
f.youThereData_.showToastWarningPrompt&&(MX(f,f.youThereData_.showWarningActions),f.inYouThereFlow_=!0,_.yu("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.xc(),f.youThereData_,f.clientPlaybackNonce_,B),_.yu("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.xc(),f.youThereData_,f.clientPlaybackNonce_,B));z=0;f.youThereData_.blockingPromptDelayMs&&(z=f.youThereData_.blockingPromptDelayMs);f.showBlockingWarningJob_=_.xJ.addLowPriorityJob(function(){return _.R(function(w){f.showBlockingWarningJob_=0;return _.h(w,
UYu(f),0)})},z);
_.TT(X)})};
UYu=function(f){var S,B,G;return _.R(function(g){if(g.nextAddress==1)return _.h(g,DYe(f),2);S=g.yieldResult;if(!f.youThereData_)return g.return();S&&(f.youThereData_.showBlockingWarningAction&&(_.yu("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.xc(),f.youThereData_,f.clientPlaybackNonce_),(B=_.H(f.youThereData_.showBlockingWarningAction,_.hf))?MX(f,B.commands):MX(f,[f.youThereData_.showBlockingWarningAction]),f.inYouThereFlow_=!0),G=f.youThereData_.playbackPauseDelayMs,f.pausePlaybackJob_=
_.xJ.addLowPriorityJob(function(){return _.R(function(b){f.pausePlaybackJob_=0;return _.h(b,IAu(f),0)})},G));
_.TT(g)})};
IAu=function(f){var S;return _.R(function(B){if(B.nextAddress==1)return _.h(B,DYe(f),2);S=B.yieldResult;if(!f.youThereData_)return B.return();S&&(_.yu("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.xc(),f.youThereData_,f.clientPlaybackNonce_),MX(f,f.youThereData_.showPausedActions),f.inYouThereFlow_=!0);_.TT(B)})};
_.LJB.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var f=_.H(this.youThereData_.userActiveDuringFlowAction,_.hf);f?MX(this,f.commands):MX(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.yu("YOU_THERE_EVENT_TYPE_LACT_RESET",_.xc(),this.youThereData_,this.clientPlaybackNonce_),_.OU());krO(this,!0)}_.C2Z(this,!1)};
_.phY=function(f){_.yu("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.xc(),f.youThereData_,f.clientPlaybackNonce_)};
DYe=function(f){var S,B;return _.R(function(G){if(G.nextAddress==1)return _.h(G,f.playerProvider_().getPlayerPromise(),2);S=G.yieldResult;B=S.getPlayerState();return G.return(B==-1||B==1||B==3)})};
_.C2Z=function(f,S){var B;_.R(function(G){if(G.nextAddress==1){if(f.isUserPredictedAbsent_==S)return G.jumpTo(0);f.isUserPredictedAbsent_=S;return _.h(G,f.playerProvider_().getPlayerPromise(),3)}B=G.yieldResult;B.setUserEngagement(S);S&&_.yu("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.xc(),f.youThereData_,f.clientPlaybackNonce_);_.TT(G)})};
MX=function(f,S){if(_.K("handle_service_request_actions")||_.K("kevlar_youthere_service_endpoint_actions_killswitch"))_.Xh(f.actionSenderElement_,S,f.actionSenderElement_);else{S=_.m(S);for(var B=S.next();!B.done;B=S.next())B=B.value,B.commandMetadata&&B.commandMetadata.webCommandMetadata&&B.commandMetadata.webCommandMetadata.sendPost?_.RD(f.actionSenderElement_,[B]):_.Xh(f.actionSenderElement_,[B],f.actionSenderElement_)}};var Ad2;var N4u;var Zm=function(){var f=_.I.apply(this,arguments)||this;f.systemIcons=_.K("kevlar_system_icons");f.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return f};
_.q(Zm,_.I);Zm.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var f=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(f=this.data.percentIfLiked||0,this.activated=!0):(f=this.data.percentIfIndifferent||0,this.activated=!1);_.m9(this.hostElement).querySelector("#like-bar").style.width=f+"%"}};
Zm.prototype.handleUpdateSentimentBarStateCommand=function(f){this.data&&this.set("data.likeStatus",_.H(f,xYn).likeStatus)};
Zm.prototype.observeLikeStatus=Zm.prototype.observeLikeStatus;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Zm.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],Zm.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Zm.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Zm.prototype,"activated",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Zm.prototype,"systemIcons",void 0);_.N([_.JO("data.likeStatus"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Zm.prototype,"observeLikeStatus",null);_.N([_.C({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],Zm);
_.p(Zm,"ytd-sentiment-bar-renderer",function(){if(N4u!==void 0)return N4u;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return N4u=f},{mode:1});var MXu;var th=function(){var f=_.I.apply(this,arguments)||this;f.small=!0;return f};
_.q(th,_.I);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],th.prototype,"ytComponentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],th.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],th.prototype,"small",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],th);
_.p(th,"ytd-video-view-count-renderer",function(){if(MXu!==void 0)return MXu;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return MXu=f},{mode:_.X_("kevlar_poly_si_batch_j080")?1:2});var uy=function(){var f=_.I.apply(this,arguments)||this;f.infoFormattedStrings=[];f.wrapVideoActions=_.K("kevar_watch_wrap_video_actions");f.hideSentimentBar=_.K("kevlar_watch_hide_sentiment_bar");f.actionMap={};return f};
_.q(uy,_.I);_.e=uy.prototype;_.e.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.K("web_modern_buttons"),forceIconButton:!_.K("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.e.dataChanged=function(){_.K("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.e.computeInfoFormattedStrings=function(f){if(!f)return[];var S=[];f.dateText&&S.push(f.dateText);f.stationName&&S.push(f.stationName);f.rating&&S.push(f.rating);f.startEndTimeTemplate&&f.startTimeUtcMillis&&f.endTimeUtcMillis&&S.push(_.uC(_.xdu(_.ac(f.startEndTimeTemplate),Number(f.startTimeUtcMillis),Number(f.endTimeUtcMillis))));f.upNextProgramText&&S.push(f.upNextProgramText);return S};
_.e.scheduleInitialUpdatedMetadataRequest=function(){var f,S=(f=this.data)==null?void 0:f.updatedMetadataEndpoint;if(S){var B;f=Number((B=_.H(S,_.Mx6))==null?void 0:B.initialDelayMs);B=isNaN(f)?250:f;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),B)}};
_.e.setSentimentBarWidth=function(){var f=this;_.ui(this,function(){var S=_.m9(f.hostElement).querySelector("ytd-menu-renderer");if(S){S=S.topLevelButtons;for(var B=0,G=0;G<S.length;G++){var g=S[G],b=f.get("toggleButtonSupportedData.toggleButtonIdData.id",g.data);if(b==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||b==="TOGGLE_BUTTON_ID_TYPE_LIKE")B+=g.clientWidth+8;else break}B&&(f.sentiment.style.width=B-8+" px")}})};
_.e.fetchUpdatedMetadata=function(f){var S;f&&(S={continuation:f});var B;(f=(B=this.data)==null?void 0:B.updatedMetadataEndpoint)&&_.oy().resolve(_.S7).resolveCommand(f,{form:Object.assign({},S,{element:this.hostElement})})};
_.e.onYtServiceRequestSent=function(f,S){S.endpoint&&_.H(S.endpoint,_.aY)&&(this.hasUpdateSentimentBarStateCommands()&&!_.K("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.H(S.endpoint,_.aY).status),this.setSentimentBarWidth())};
_.e.hasUpdateSentimentBarStateCommands=function(){var f,S,B,G,g=(G=(f=this.data)==null?void 0:(S=f.videoActions)==null?void 0:(B=S.menuRenderer)==null?void 0:B.topLevelButtons)!=null?G:[];f=_.m(g);for(S=f.next();!S.done;S=f.next()){S=S.value;g=G=B=void 0;var b=(B=S.toggleButtonRenderer)==null?void 0:(G=B.toggleButtonSupportedData)==null?void 0:(g=G.toggleButtonIdData)==null?void 0:g.id;if(b==="TOGGLE_BUTTON_ID_TYPE_LIKE"||b==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){G=B=void 0;S=(G=_.H((B=S.toggleButtonRenderer)==
null?void 0:B.defaultServiceEndpoint,_.hf))==null?void 0:G.commands;if(!S)break;S=_.m(S);for(B=S.next();!B.done;B=S.next())if(_.H(B.value,xYn))return!0}}return!1};
_.e.onYtServiceRequestCompleted=function(f,S){var B;(f=(B=S.data)==null?void 0:B.loggingDirectives)&&_.HGM(_.ik(),f);this.get("continuation.timedContinuationData",S.data)&&this.data&&this.data.updatedMetadataEndpoint&&(S=S.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,S.continuation),S.timeoutMs))};
_.e.computeHasDateText=function(f){return!!f&&!!f.dateText};
_.y3.Object.defineProperties(uy.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var f,S,B,G;return!((G=(f=this.data)==null?void 0:(S=f.videoActions)==null?void 0:(B=S.menuRenderer)==null?void 0:B.flexibleItems)==null||!G.length)}}});
uy.prototype.onYtServiceRequestCompleted=uy.prototype.onYtServiceRequestCompleted;uy.prototype.onYtServiceRequestSent=uy.prototype.onYtServiceRequestSent;uy.prototype.dataChanged=uy.prototype.dataChanged;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],uy.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],uy.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],uy.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Sy.YtTaskEmitterBehavior),_.Z("design:type",Object)],uy.prototype,"ytTaskEmitterBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],uy.prototype,"data",void 0);_.N([_.n({computed:"computeInfoFormattedStrings(data)"}),_.Z("design:type",Array)],uy.prototype,"infoFormattedStrings",void 0);
_.N([_.n({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],uy.prototype,"hasDateText",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],uy.prototype,"wrapVideoActions",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],uy.prototype,"hideSentimentBar",void 0);_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],uy.prototype,"flexMenuEnabled",null);
_.N([_.vF("#sentiment"),_.Z("design:type",Object)],uy.prototype,"sentiment",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],uy.prototype,"dataChanged",null);_.N([_.Vg("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.N1]),_.Z("design:returntype")],uy.prototype,"onYtServiceRequestSent",null);
_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.cw]),_.Z("design:returntype")],uy.prototype,"onYtServiceRequestCompleted",null);
_.p(uy,"ytd-video-primary-info-renderer",function(){if(Ad2===void 0){var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);Ad2=f}f=Ad2;return f},{mode:1});var ZZe;var ak=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return f};
_.q(ak,_.I);_.e=ak.prototype;_.e.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"}}}};
_.e.dataChanged=function(){var f;this.descriptionToggled=!((f=this.data)==null||!f.defaultExpanded);var S;this.collapsed=this.descriptionAlwaysCollapsed||!((S=this.data)==null?0:S.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.Eo(110509);this.showLessClientVe=_.Eo(110510);f=_.xc();S=_.Of();f&&S&&_.NE(f,S,[this.showMoreClientVe,this.showLessClientVe])};
_.e.onYtExpanderMoreTapped=function(){var f,S=(f=this.data)==null?void 0:f.showMoreCommand;S&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(S);(f=_.xc())&&this.showMoreClientVe&&_.uW(f,this.showMoreClientVe)};
_.e.onYtExpanderLessTapped=function(){var f=_.xc();f&&this.showLessClientVe&&_.uW(f,this.showLessClientVe);var S;(f=(S=this.data)==null?void 0:S.showLessCommand)&&this.componentBehavior.resolveCommand(f)};
_.e.handleUpdateDateTextAction=function(f){this.data&&this.data.dateText&&this.set("data.dateText",_.H(f,_.eNY).dateText)};
_.e.handleUpdateDescriptionAction=function(f){if(f=_.H(f,_.sRm))f.isEmpty||!f.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.sn(f.description)):this.set("data.description",f.description)};
_.e.onYtChangeEngagementPanelVisibilityAction=function(f){if(_.K("web_structured_description_show_more")||_.K("web_engagement_panel_open_description")){var S,B=(S=_.H(f,_.qHv))==null?void 0:S.targetId,G;f=((G=_.H(f,_.qHv))==null?void 0:G.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";B==="engagement-panel-structured-description"&&f&&(this.descriptionToggled=!0)}};
_.e.updateCollapsedFromBinding=function(f){this.collapsed=f.detail.value};
_.e.updateDescriptionToggledFromBinding=function(f){this.descriptionToggled=f.detail.value};
_.e.updateCanCollapseFromBinding=function(f){this.canCollapse=f.detail.value};
_.y3.Object.defineProperties(ak.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var f,S,B=(f=this.data)==null?void 0:(S=f.metadataRowContainer)==null?void 0:S.metadataRowContainerRenderer;return!!B&&!!B.rows&&B.rows.length>B.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.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}}});
ak.prototype.onYtExpanderLessTapped=ak.prototype.onYtExpanderLessTapped;ak.prototype.onYtExpanderMoreTapped=ak.prototype.onYtExpanderMoreTapped;ak.prototype.dataChanged=ak.prototype.dataChanged;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],ak.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],ak.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],ak.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],ak.prototype,"componentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],ak.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Boolean)],ak.prototype,"collapsed",void 0);_.N([_.n(),_.Z("design:type",Boolean)],ak.prototype,"descriptionToggled",void 0);
_.N([_.n(),_.Z("design:type",Boolean)],ak.prototype,"canCollapse",void 0);_.N([_.n(),_.Z("design:type",Object)],ak.prototype,"subscribeButtonData",void 0);_.N([_.n(),_.Z("design:type",Number)],ak.prototype,"descriptionCollapsedHeight",void 0);_.N([_.n(),_.Z("design:type",Object)],ak.prototype,"structuredDescriptionContentRenderer",void 0);_.N([_.n({value:function(){return _.K("web_watch_description_always_collapsed")}}),
_.Z("design:type",Boolean)],ak.prototype,"descriptionAlwaysCollapsed",void 0);_.N([_.vF("#description"),_.Z("design:type",HTMLDivElement)],ak.prototype,"description",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ak.prototype,"dataChanged",null);_.N([_.Vg("yt-expander-more-tapped"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ak.prototype,"onYtExpanderMoreTapped",null);
_.N([_.Vg("yt-expander-less-tapped"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ak.prototype,"onYtExpanderLessTapped",null);_.N([_.k("data.metadataRowContainer"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ak.prototype,"metadataCollapsible",null);_.N([_.k("data","structuredDescriptionContentRenderer"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ak.prototype,"hasInlineStructuredDescription",null);
_.N([_.k("data.attributedDescription"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ak.prototype,"hasAttributedDescription",null);_.N([_.k("hasInlineStructuredDescription","collapsed"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ak.prototype,"loadStructuredDescription",null);_.N([_.k("data","structuredDescriptionContentRenderer","collapsed"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ak.prototype,"showInlineStructuredDescription",null);
_.N([_.k("data","hasInlineStructuredDescription","metadataCollapsible"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ak.prototype,"descriptionAlwaysCollapsible",null);
_.p(ak,"ytd-video-secondary-info-renderer",function(){if(ZZe===void 0){var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);ZZe=f}f=ZZe;return f},{mode:2});var tX2;var yy=function(){return _.I.apply(this,arguments)||this};
_.q(yy,_.I);yy.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:_.K("web_modern_buttons"),forceIconButton:!_.K("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
yy.prototype.activate=function(f){f.appendTo(this.player);f.getPlayerPromise().then(function(S){S.setMinimized(!0)});
this.active=!0};
yy.prototype.deactivate=function(){var f=this.player.firstElementChild;f.getPlayerPromise().then(function(S){S.setMinimized(!1)});
this.active=!1;return f};
yy.prototype.onScrollUpTap=function(){var f=_.oy().resolve(_.o8).getCurrentPage();f&&f.setScrollTop(0)};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],yy.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],yy.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],yy.prototype,"componentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],yy.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],yy.prototype,"active",void 0);
_.N([_.n({reflectToAttribute:!0,value:function(){return _.K("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.Z("design:type",Boolean)],yy.prototype,"darkLaunch",void 0);_.N([_.vF("#player"),_.Z("design:type",HTMLDivElement)],yy.prototype,"player",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],yy);
_.p(yy,"ytd-miniplayer-bar-renderer",function(){if(tX2!==void 0)return tX2;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return tX2=f},{mode:1});_.eq(_.oS(function(f){var S=_.tE("script");_.jp(function(){var B;if(B=JSON)B=rde(f.data()),B=_.Da(JSON.stringify(B).replace(/</g,"\\u003C"));var G=f.data(),g=_.ac(G.title).trim().length===0,b=!G.publishDate||G.publishDate.trim().length===0,z,X,w,F,V=!((z=G.thumbnail)==null?0:(X=z.thumbnails)==null?0:X.length)||!((w=G.thumbnail)==null?0:w.thumbnails[0].url)||((F=G.thumbnail)==null?void 0:F.thumbnails[0].url.trim().length)===0;S.value&&B&&!(g||b||V)&&_.UQ(S.value,B)},"I9AhLd");
return _.T("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.T("script",{el:S,type:"application/ld+json"}))},"wj"),"player-microformat-renderer",{props:{data:_.gm}});
}catch(e){_._DumpException(e)}
try{
var bZu;_.o7u=function(f){return f.watch.watchWindowSize};
_.SsO=function(f){return _.ef({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:f}})};
bZu=function(f){_.qR.call(this);var S=this;this.JSC$20513_watchApi=f;f=_.KD(_.W2(),_.NVN,function(){B42(S)});
this.addOnDisposeCallback(f);f=_.KD(_.W2(),_.o7u,function(){B42(S)});
this.addOnDisposeCallback(f);GrZ(this);g7z(this);eV2()};
_.q(bZu,_.qR);var GrZ=function(f){var S=function(G){_.W2().dispatch(_.$Qz(G.matches))},B=window.matchMedia("(max-width: "+(999+_.xy())+"px)");
B.addListener(S);f.addOnDisposeCallback(function(){B.removeListener(S)});
S(B)},g7z=function(f){f.JSC$20513_watchApi.registerActionHandler("yt-window-resized",function(){eV2()});
f.addOnDisposeCallback(function(){f.JSC$20513_watchApi.unregisterActionHandler("yt-window-resized")})},eV2=function(){var f=_.$G();
_.W2().dispatch(_.ef({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:f.width,height:f.height}}}))},B42=function(f){var S;
_.R(function(B){if(B.nextAddress==1)return _.h(B,f.JSC$20513_watchApi.playerApi,2);S=B.yieldResult;S.setSize(NaN,NaN);_.TT(B)})};_.Ik=function(f){_.cT.call(this);var S=this;this.rootElement=f;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return S.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(B){S.initOrDisposeActiveModules(B)}));
this.onAttached()};
_.q(_.Ik,_.cT);_.e=_.Ik.prototype;_.e.getRoot=function(){return this.rootElement};
_.e.getElement=function(f){return this.rootElement.getElement(f)};
_.e.setPlayerResponse=function(f){this.playerResponse=f;this.publish("PLAYER_RESPONSE_UPDATED",f)};
_.e.getPlayerResponse=function(){return this.playerResponse};
_.e.setWatchNextResponse=function(f){this.watchNextResponse===f?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=f,this.publish("WATCH_NEXT_RESPONSE_UPDATED",f))};
_.e.getWatchNextResponse=function(){return this.watchNextResponse};
_.e.registerActionHandler=function(f,S){var B=this;if(_.K("web_watch_controller_reg_multiple_handlers_killswitch")){var G={};_.N6(_.AE.getInstance(),(G[f]=S,G),this.getRoot())}else this.actionHandlers.has(f)||(this.actionHandlers.set(f,[]),G={},_.N6(_.AE.getInstance(),(G[f]=function(){var g=_.qb.apply(0,arguments);return(B.actionHandlers.get(f)||[]).map(function(b){return b.apply(null,_.$d(g))})},G),this.getRoot())),this.actionHandlers.get(f).push(S)};
_.e.unregisterActionHandler=function(f){if(_.K("web_watch_controller_reg_multiple_handlers_killswitch")){var S={};_.M6(_.AE.getInstance(),(S[f]=!0,S),this.getRoot())}else(S=this.actionHandlers.get(f))?(S.pop(),S.length===0&&(S={},_.M6(_.AE.getInstance(),(S[f]=!0,S),this.getRoot()),this.actionHandlers.delete(f))):_.Lg(new _.dO("Attempted to unregister an action handler which is not registered.",f))};
_.e.addPageDisposeJob=function(f){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.ZN(this.rootElement.pageDisposeJobs,f)};
_.e.removePageDisposeJob=function(f){this.rootElement.pageDisposeJobs&&_.uK(this.rootElement.pageDisposeJobs,f)};
_.e.dispatchEvent=function(f,S){_.ew(this.rootElement,f,S)};
_.e.provideRenderingData=function(f,S){this.rootElement.provideRenderingData(f,S)};
_.e.scrollWatchTo=function(f,S){var B;(B=this.watchScrollManager)==null||B.scrollWatchTo(f,S)};
_.e.focusOnPlayer=function(){var f=this.getElement("PLAYER");_.ui(f,function(){if(f&&f.firstElementChild){var S=f.querySelector(".html5-video-player");S&&(_.WX(_.oy().resolve(_.k8)),S.focus())}else _.Lg(Error("mm"))})};
_.e.updateCinematicFullscreenConfig=function(){var f=!!this.rootElement.theater,S=!!this.rootElement.fullscreen,B;(B=this.watchCinematicManager)==null||_.oEX(B,S,f)};
_.e.subscribeToActiveChanged=function(f,S){S=S===void 0?!0:S;var B=_.KD(_.W2(),_.EhB,function(G){f(G)});
S&&f(_.EhB(_.W2().getState()));return B};
_.e.isActive=function(){return _.EhB(_.W2().getState())};
_.e.onAttached=function(){var f=_.K("external_fullscreen");_.K("use_unified_flag_accessor")&&(f=_.oy().resolve(_.J1O).retriever.getFlag(_.fMv));(f||_.s6("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var mYu=function(f){return f.getRoot().is==="ytd-watch-flexy"||f.getRoot().is==="ytd-watch-grid"},U5=function(f){return f.getRoot().is==="ytd-watch-fixie"};
_.Ik.prototype.initPersistentModules=function(){if(U5(this)||mYu(this)&&_.K("kevlar_watch_flexy_theater_manager")){var f=new _.j3e(this);_.ha(this,f)}f=new _.TlX(this);_.ha(this,f);f=new _.rG(this);_.ha(this,f);f=new _.nA(this);_.ha(this,f);f=new _.AtB(this);_.ha(this,f);f=new _.O5(this);_.ha(this,f);if(U5(this)||mYu(this)&&_.K("kevlar_watch_flexy_playlist_manager"))f=new _.Zqu(this),_.ha(this,f)};
_.Ik.prototype.initOrDisposeActiveModules=function(f){f?(this.watchScrollManager=new _.Dm(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.rt2(this)),this.activeModules.push(new _.L3z(this)),U5(this)&&this.activeModules.push(new bZu(this)),this.activeModules.push(new _.ctO(this)),this.activeModules.push(new _.s5(this)),(U5(this)||_.K("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new _.D0e(this)),this.activeModules.push(new _.kLo(this)),
(U5(this)||_.K("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.fAY(this)),(U5(this)||_.K("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.ZhY(this)),_.K("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.WMO(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.K("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.Ihu(this)),_.K("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.wkY(this)),
f=_.K("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.K("kevlar_watch_flexy_comments_manager")&&!f&&this.activeModules.push(new _.bq2(this)),_.K("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.jJ(this)),this.activeModules.push(new _.DPZ(this)),this.activeModules.push(new _.Oqz(this)),_.K("web_enable_timely_actions")&&this.activeModules.push(new _.p$2(this)),_.K("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.R8o(this)),
_.K("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.ou$(this)),_.K("web_fullscreen_components")&&this.activeModules.push(new _.p6B(this)),_.K("web_player_rtr_ctrls")&&this.activeModules.push(new _.w$n(this))):(_.lB(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.Ik.prototype.disposeInternal=function(){_.cT.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.y3.Object.defineProperties(_.Ik.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var iEo,$u,HEM,qMB,Q7$,YMz,$3z,rPu;iEo=function(){var f=_.iW();f.info||(f.info={});return f.info};
$u=function(f){return Math.round(_.Qp()+f)};
HEM=function(){var f;if(_.K("csi_use_performance_navigation_timing")){var S,B,G,g=_.$T==null?void 0:(f=_.$T.getEntriesByType)==null?void 0:(S=f.call(_.$T,"navigation"))==null?void 0:(B=S[0])==null?void 0:(G=B.toJSON)==null?void 0:G.call(B);g?(g.requestStart=$u(g.requestStart),g.responseEnd=$u(g.responseEnd),g.redirectStart=$u(g.redirectStart),g.redirectEnd=$u(g.redirectEnd),g.domainLookupEnd=$u(g.domainLookupEnd),g.connectStart=$u(g.connectStart),g.connectEnd=$u(g.connectEnd),g.responseStart=$u(g.responseStart),
g.secureConnectionStart=$u(g.secureConnectionStart),g.domainLookupStart=$u(g.domainLookupStart),g.isPerformanceNavigationTiming=!0,f=g):f=_.$T.timing}else f=_.K("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.$T.timing)):_.$T.timing;return f};
qMB=function(){if(_.$T.getEntriesByType){var f=_.$T.getEntriesByType("paint");if(f=_.DN(f,function(B){return B.name==="first-paint"}))return $u(f.startTime)}var S;
_.K("csi_use_performance_navigation_timing")?S=_.$T.getEntriesByType("first-paint")[0].startTime:S=_.$T.timing.msFirstPaint;return S?Math.max(0,S):0};
Q7$=function(){var f=window.location.protocol,S=_.$T.getEntriesByType("resource");S=_.wp(S,function(B){return B.name.indexOf(f+"//fonts.gstatic.com/s/")===0});
(S=$3z(S,function(B,G){return G.duration>B.duration?G:B}))&&S.startTime>0&&S.responseEnd>0&&(_.rh("wffs",$u(S.startTime)),_.rh("wffe",$u(S.responseEnd)))};
YMz=function(f,S){f=document.querySelector(f);if(!f)return!1;var B="",G=f.nodeName;G==="SCRIPT"?(B=f.src,B||(B=f.getAttribute("data-timing-href"))&&(B=window.location.protocol+B)):G==="LINK"&&(B=f.href);_.k6(document)&&f.setAttribute("nonce",_.k6(document));return B?(f=_.$T.getEntriesByName(B))&&f[0]&&(f=f[0],B=_.Qp(),_.rh("rsf_"+S,B+Math.round(f.fetchStart)),_.rh("rse_"+S,B+Math.round(f.responseEnd)),f.transferSize!==void 0&&f.transferSize===0)?!0:!1:!1};
_.QS=function(f,S){_.Ij(function(){_.qE("").info.actionType=f;S&&_.k5("TIMING_AFT_KEYS",S);_.k5("TIMING_ACTION",f);var B=_.UiV(_.nL("TIMING_INFO",{}));Object.keys(B).length>0&&_.jw(B);B={isNavigation:!0,actionType:_.QIx(_.nL("TIMING_ACTION"))};var G=_.nL("PREVIOUS_ACTION");G&&(B.previousAction=_.QIx(G));if(G=_.nL("CLIENT_PROTOCOL"))B.httpProtocol=G;if(G=_.nL("CLIENT_TRANSPORT"))B.transportProtocol=G;(G=_.xc())&&G!=="UNDEFINED_CSN"&&(B.clientScreenNonce=G);G=_.IRN();if(G===1||G===-1)B.isVisible=!0;
G=_.Plj().loadType==="cold";var g=iEo();G||(G=g.yt_lt==="cold");if(G){B.loadType="cold";G=iEo();g=HEM();var b=_.Qp(),z=_.nL("CSI_START_TIMESTAMP_MILLIS",0);z>0&&!_.K("embeds_web_enable_csi_start_override_killswitch")&&(b=z);b&&(_.rh("srt",g.responseStart),G.prerender!==1&&_.xi1(b));G=qMB();G>0&&_.rh("fpt",G);G=HEM();G.isPerformanceNavigationTiming&&_.jw({performanceNavigationTiming:!0},void 0);_.rh("nreqs",G.requestStart,void 0);_.rh("nress",G.responseStart,void 0);_.rh("nrese",G.responseEnd,void 0);
G.redirectEnd-G.redirectStart>0&&(_.rh("nrs",G.redirectStart,void 0),_.rh("nre",G.redirectEnd,void 0));G.domainLookupEnd-G.domainLookupStart>0&&(_.rh("ndnss",G.domainLookupStart,void 0),_.rh("ndnse",G.domainLookupEnd,void 0));G.connectEnd-G.connectStart>0&&(_.rh("ntcps",G.connectStart,void 0),_.rh("ntcpe",G.connectEnd,void 0));G.secureConnectionStart>=_.Qp()&&G.connectEnd-G.secureConnectionStart>0&&(_.rh("nstcps",G.secureConnectionStart,void 0),_.rh("ntcpe",G.connectEnd,void 0));_.$T&&"getEntriesByType"in
_.$T&&Q7$();G=[];if(document.querySelector&&_.$T&&_.$T.getEntriesByName)for(var X in rPu)rPu.hasOwnProperty(X)&&(g=rPu[X],YMz(X,g)&&G.push(g));if(G.length>0)for(B.resourceInfo=[],X=_.m(G),G=X.next();!G.done;G=X.next())B.resourceInfo.push({resourceCache:G.value})}_.jw(B);B=_.HK();B.preLoggedGelInfos||(B.preLoggedGelInfos=[]);X=B.preLoggedGelInfos;B=_.KbV();G=void 0;for(g=0;g<X.length;g++)if(b=X[g],b.loadType){G=b.loadType;break}if(_.Plj().loadType==="cold"&&(B.loadType==="cold"||G==="cold")){G=_.v_N();
g=_.HK();g=g.gelTicks?g.gelTicks:g.gelTicks={};for(var w in G)if(!(w in g))if(typeof G[w]==="number")_.rh(w,_.OL(w));else if(_.K("log_repeated_ytcsi_ticks"))for(b=_.m(G[w]),z=b.next();!z.done;z=b.next())z=z.value,_.rh(w.slice(1),z);w={};G=!1;X=_.m(X);for(g=X.next();!g.done;g=X.next())G=g.value,_.nk(B,G),_.nk(w,G),G=!0;G&&_.jw(w)}_.NHT(!0);w=_.nL("TIMING_ACTION");_.U6("ytglobal.timingready_")&&w&&_.f7K()&&_.AVj()&&_.sI1()})()};
$3z=function(f,S){return Array.prototype.reduce.call(f,S,{duration:0})};
rPu={'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 j7M={};j7M.YtVisibilityRootBehavior=[_.IH1.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.cd(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.nL("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var f=_.nL("INNERTUBE_CLIENT_NAME")!=="WEB";_.K("kevlar_use_vimio_behavior")&&f&&_.s5m()}}];_.Yu={};_.Yu.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(f){f.detail.contextProvider=this;f.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
j7M.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.aa();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(f){var S=this;this.pageCount+=1;_.K("kevlar_use_vimio_behavior")&&(_.nL("INNERTUBE_CLIENT_NAME")==="WEB"?_.xJ.addJob(function(){S.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(f)},
loadPage_:function(f){this.data=f},
ytPageBehaviorActiveObserver_:function(f){var S=this;_.K("kevlar_use_vimio_behavior")&&(f?_.nL("INNERTUBE_CLIENT_NAME")==="WEB"?_.xJ.addJob(function(){S.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(f){if(!this.setScrollTopJobId_){var S=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){S.setScrollTopJobId_=0;var B=_.oy().resolve(_.fN(_.k8));B&&_.WX(B);this.getPageScrollingElement().scrollTop=f}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.r8(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var d3M;var qP=function(){var f=_.I.apply(this,arguments)||this;f.playerListenerConfig=null;f.actionMap={"yt-show-watch-page-survey":"openSurvey"};return f};
_.q(qP,_.I);_.e=qP.prototype;_.e.dataChanged=function(){var f=this,S=_.B8();S&&S.getPlayerPromise().then(function(G){f.maybeRemovePlayerListeners(G)});
var B=this.data&&this.data.survey;B&&((B=(B=B.singleOptionSurveyRenderer||B.checkboxSurveyRenderer||B.multiStageSurveyRenderer)&&B.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(S,B):this.openSurvey())};
_.e.triggerWatchPageSurvey=function(f,S){var B=this,G,g,b,z,X,w,F,V,J;return _.R(function(P){if(P.nextAddress==1)return f?_.h(P,f.getPlayerPromise(),2):P.return();B.player=P.yieldResult;if(!B.player)return P.return();G={};g=_.m(S);for(b=g.next();!b.done;b=g.next())z=b.value,X=_.m(B.createEventListenerPair(z)),w=X.next().value,F=X.next().value,V=w,J=F,V&&J&&(G[V]=J,B.ytPlayerListenerBehavior.listenToPlayerEvent(B.player,V,J));B.playerListenerConfig=G;_.TT(P)})};
_.e.createEventListenerPair=function(f){var S=f.playbackEventTrigger;return S?this.handlePlaybackTrigger(S):(f=f.watchTimeTrigger)?this.handleWatchTimeTrigger(f):[void 0,void 0]};
_.e.handleWatchTimeTrigger=function(f){var S=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var B=f.videoWatchFraction,G=f.watchTimeSec;return G&&B?["onVideoProgress",function(){S.player&&S.isWatchTimeConditionMet(S.player,B,G)&&S.showSurvey()}]:[void 0,
void 0]};
_.e.isWatchTimeConditionMet=function(f,S,B){var G=f.getProgressState(),g=G.current-this.lastKnownPlaybackPosition;g<5&&(this.accumulatedMediaTime+=g);this.lastKnownPlaybackPosition=G.current;G=Math.round(this.accumulatedMediaTime/G.duration*1E3)/1E3;return f.getPresentingPlayerType&&f.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>B||G>S)};
_.e.handlePlaybackTrigger=function(f){var S=this;f=f.playbackEvent;if(f==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var B="onStateChange";var G=function(g){g===0&&S.showSurvey()}}else f==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(B="onVideoProgress",G=function(g){S.player&&S.player.getPresentingPlayerType&&S.player.getPresentingPlayerType()===1&&g&&S.showSurvey()}):f==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(B="onAdEnd",G=this.showSurvey);
return[B,G]};
_.e.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.e.openSurvey=function(){var f=this,S=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.IEB(!!S));_.xJ.addJob(function(){f.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:S}})},0,0)};
_.e.maybeRemovePlayerListeners=function(f){if(this.playerListenerConfig){for(var S=_.m(Object.keys(this.playerListenerConfig)),B=S.next();!B.done;B=S.next())B=B.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(f,B,this.playerListenerConfig[B]);this.playerListenerConfig=null}};
qP.prototype.dataChanged=qP.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],qP.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.a5),_.Z("design:type",Object)],qP.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.r(_.Nr.YtPlayerListenerBehavior),_.Z("design:type",_.Mr)],qP.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],qP.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.r(_.Ek),_.Z("design:type",Object)],qP.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],qP.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],qP.prototype,"playerListenerConfig",void 0);_.N([_.n({value:0}),_.Z("design:type",Number)],qP.prototype,"lastKnownPlaybackPosition",void 0);_.N([_.n({value:0}),_.Z("design:type",Number)],qP.prototype,"accumulatedMediaTime",void 0);_.N([_.n(),_.Z("design:type",Object)],qP.prototype,"player",void 0);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qP.prototype,"dataChanged",null);_.N([_.C({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],qP);
_.p(qP,"ytd-survey-trigger-renderer",function(){if(d3M!==void 0)return d3M;var f=document.createElement("template");_.Y(f,"\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");f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return d3M=f},{mode:1});
}catch(e){_._DumpException(e)}
try{
var Tru=new _.u("promotedSparklesWebRenderer");var FOY=new _.u("relatedChipCommand");var VVu;var JCu;var Ph=function(){return _.I.apply(this,arguments)||this};
_.q(Ph,_.I);Ph.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Ph.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Ph.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Ph.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],Ph);
_.p(Ph,"ytd-compact-tvfilm-entry-point-renderer",function(){if(JCu!==void 0)return JCu;var f=document.createElement("template");_.Y(f,'\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>');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return JCu=f},{mode:1});var PD2;var vhn;var KOO;var vh=function(){return _.I.apply(this,arguments)||this};
_.q(vh,_.I);vh.prototype.ready=function(){this.initializeDefs()};
vh.prototype.initializeDefs=function(){var f=this.meta.byKey("yt-icons"),S=_.m9(f).querySelector("#star"),B=_.m9(f).querySelector("#star_half");f=_.m9(f).querySelector("#star_border");S&&this.defs.appendChild(S.cloneNode(!0));B&&this.defs.appendChild(B.cloneNode(!0));f&&this.defs.appendChild(f.cloneNode(!0))};
vh.prototype.percentChanged=function(){for(var f=this.rating;f.firstChild;)f.removeChild(f.firstChild);var S=Math.round(this.percent/10);f=Math.floor(S/2);S%=2;var B=5-f-S;this.appendStars("star",f,0);this.appendStars("star_half",S,f);this.appendStars("star_border",B,f+S)};
vh.prototype.appendStars=function(f,S,B){for(var G=0;G<S;G++){var g=(18+this.spacing)*(G+B),b=document.createElementNS("http://www.w3.org/2000/svg","use");_.UcX(b,"#"+f);b.setAttribute("x",""+g);b.setAttribute("y","0");this.rating.appendChild(b)}};
vh.prototype.percentChanged=vh.prototype.percentChanged;_.N([_.vF("#defs"),_.Z("design:type",HTMLElement)],vh.prototype,"defs",void 0);_.N([_.vF("#rating"),_.Z("design:type",HTMLElement)],vh.prototype,"rating",void 0);_.N([_.n(),_.Z("design:type",Number)],vh.prototype,"percent",void 0);_.N([_.n({value:6}),_.Z("design:type",Number)],vh.prototype,"spacing",void 0);_.N([_.n({value:_.qI.create("iron-meta",{type:"iconset"})}),_.Z("design:type",_.jx)],vh.prototype,"meta",void 0);
_.N([_.JO("percent"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vh.prototype,"percentChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-ratings"})],vh);
_.p(vh,"ytd-ratings",function(){if(KOO!==void 0)return KOO;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return KOO=f},{mode:1});var KZ=function(){return _.I.apply(this,arguments)||this};
_.q(KZ,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],KZ.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],KZ.prototype,"data",void 0);_.N([_.C({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],KZ);
_.p(KZ,"ytd-offer-review-renderer",function(){if(vhn!==void 0)return vhn;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return vhn=f},{mode:1});var d4=function(){var f=_.I.apply(this,arguments)||this;f.badges=[{textBadge:{label:_.uC("CC")}}];return f};
_.q(d4,_.I);_.e=d4.prototype;_.e.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.e.dataChanged=function(){var f=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(f&&f.commandMetadata&&_.H(f.commandMetadata,_.O2)&&_.H(f.commandMetadata,_.O2).fireAutomatically)_.oy().resolve(_.S7).resolveCommand(f,{form:{element:this.hostElement}});else{var S;f&&((S=_.H(f,_.O2))==null?0:S.fireAutomatically)&&_.oy().resolve(_.S7).resolveCommand(f,{form:{element:this.hostElement}})}};
_.e.isEmptyContent=function(f){return this.isStorefrontEntryPointEmpty(f)&&this.shouldHideOfferModule(f)};
_.e.isStorefrontEntryPointEmpty=function(f){return!f||!f.storefrontEntryPoint};
_.e.shouldHideOfferModule=function(f){return!!f.hideVideoDetails};
_.e.isOfferModuleNavigationInactive=function(f){return!f.navigationEndpoint&&!f.serviceEndpoint};
_.e.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.oy().resolve(_.S7).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
d4.prototype.dataChanged=d4.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],d4.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],d4.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],d4.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.Z("design:type",Boolean)],d4.prototype,"hidden",void 0);
_.N([_.n(),_.Z("design:type",Object)],d4.prototype,"badges",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],d4.prototype,"dataChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],d4);
_.p(d4,"ytd-movie-offer-module-renderer",function(){if(PD2!==void 0)return PD2;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return PD2=f},{mode:1});var ddu;var i2=function(){return _.I.apply(this,arguments)||this};
_.q(i2,_.I);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],i2.prototype,"componentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],i2.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],i2);
_.p(i2,"ytd-media-masthead-renderer",function(){if(ddu!==void 0)return ddu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return ddu=f},{mode:1});var i$u;_.eq(_.pBm,"course-metadata-view-model",{props:{data:_.gm,isOverlay:_.gm}});var Hh=function(){var f=_.I.apply(this,arguments)||this;f.isMetadataVisible=!1;f.modernPanels=_.K("kevlar_watch_modern_panels");f.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return f};
_.q(Hh,_.I);_.e=Hh.prototype;
_.e.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"}}}}};
_.e.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.e.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.e.expanderChanged=function(){var f;if((f=this.data)==null?0:f.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.e.isExpandButtonToggled=function(){var f,S;return(S=_.H((f=this.data)==null?void 0:f.expandMetadataButton,_.YK))==null?void 0:S.isToggled};
_.e.onVisibilityButtonClick=function(){var f;if((f=this.data)==null?0:f.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.e.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
Hh.prototype.expanderChanged=Hh.prototype.expanderChanged;Hh.prototype.dataChanged=Hh.prototype.dataChanged;Hh.prototype.descriptionChanged=Hh.prototype.descriptionChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Hh.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Hh.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r([_.b3.YtActionHandlerBehavior]),_.Z("design:type",Object)],Hh.prototype,"actionHandlerBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],Hh.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],Hh.prototype,"isMetadataVisible",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Hh.prototype,"modernPanels",void 0);_.N([_.vF("#expander"),_.Z("design:type",Object)],Hh.prototype,"expander",void 0);_.N([_.JO("data.description"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Hh.prototype,"descriptionChanged",null);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Hh.prototype,"dataChanged",null);_.N([_.JO("isMetadataVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Hh.prototype,"expanderChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],Hh);
_.p(Hh,"ytd-tvfilm-offer-module-renderer",function(){if(i$u!==void 0)return i$u;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return i$u=f},{mode:2});var H$u;var qY=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return f};
_.q(qY,_.I);qY.prototype.dataChanged=function(){this.hostElement.hidden=!1};
qY.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
qY.prototype.onThumbnailTap=function(f){this.data&&this.data.serviceEndpoint&&(_.oy().resolve(_.S7).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),f.stopPropagation())};
qY.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
qY.prototype.dataChanged=qY.prototype.dataChanged;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],qY.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],qY.prototype,"rendererBehaviors",void 0);_.N([_.r([_.b3.YtActionHandlerBehavior]),_.Z("design:type",Object)],qY.prototype,"actionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],qY.prototype,"data",void 0);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qY.prototype,"dataChanged",null);_.N([_.C({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],qY);
_.p(qY,"ytd-unlimited-offer-module-renderer",function(){if(H$u!==void 0)return H$u;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return H$u=f},{mode:1});var qP2;var $d$;var $7=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return f};
_.q($7,_.I);$7.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
$7.prototype.handleRelatedChipCommand=function(f){f=_.H(f,FOY);var S=f.contents;S?_.mU(this.hostElement,"yt-item-section-replace-action",[S,f.targetSectionIdentifier]):_.mU(this.hostElement,"yt-item-section-continuation-action",[f.continuationData,f.targetSectionIdentifier])};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],$7.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],$7.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],$7.prototype,"actionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],$7.prototype,"data",void 0);_.N([_.nP({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],$7);
_.p($7,"yt-related-chip-cloud-renderer",function(){if($d$===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;qP2===void 0&&(qP2=document.createElement("template"));var G=qP2;B.call(S,G.content.cloneNode(!0),f.content.firstChild);$d$=f}f=$d$;return f},{mode:2});var Qx=function(){var f=_.I.apply(this,arguments)||this;f.isTwoColumns=!0;f.hideOfferModules=!1;f.watchFeedBigThumbs=_.K("kevlar_watch_feed_big_thumbs");f.watchNextGridHideChips=_.K("kevlar_watch_grid_hide_chips");f.eligibleToSwitchToGrid=_.K("web_watch_eligible_to_switch_to_grid");f.disableShortsShelfHeightOverride=_.K("web_shorts_wn_shelf_ratio_tuning");f.isWatchNextGrid=!1;f.reuseComponents=!_.K("kevlar_watch_grid");f.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return f};
_.q(Qx,_.I);_.e=Qx.prototype;
_.e.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:!_.K("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}}};
_.e.getItemsPath=function(){return"data.results"};
_.e.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.e.created=function(){this.ytLazyListBehavior.initialCount=1};
_.e.ready=function(){_.hO(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%"})};
_.e.resultsChanged=function(){if(this.data&&this.data.results){for(var f=this.data.results,S=null,B=null,G=0;G<f.length;G++)f[G].relatedChipCloudRenderer?S=f[G].relatedChipCloudRenderer:f[G].itemSectionRenderer&&(B=f[G].itemSectionRenderer);if(S&&B)for(this.set("data.continuations",[]),f=_.H(S.content,_.hz$).chips,S=0;S<f.length;S++)if(G=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",f[S]),G.loadCached||!G.contents){G.contents=B.contents;break}}};
_.e.dataChanged=function(){var f=this,S;if((S=this.data)!=null&&S.results&&this.hasAllowedInstreamAd(this.playerData)){if(S=this.data.results.filter(function(X){return!!X.promotedSparklesWebRenderer})){for(var B=0;B<S.length;B++){var G=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",S[B]);
if(G)for(var g=0;g<G.length;g++)G[g]&&G[g].baseUrl&&_.pO(G[g].baseUrl)}this.set("data.results",this.data.results.filter(function(X){return!X.promotedSparklesWebRenderer}))}if(S=this.data.results.filter(function(X){return!!f.getSparklesAd(X)})){S=_.m(S);
for(g=S.next();!g.done;g=S.next())if(G=B=void 0,g=(B=this.getSparklesAd(g.value))==null?void 0:(G=B.errorCommand)==null?void 0:G.loggingUrls)for(B=_.m(g),G=B.next();!G.done;G=B.next())(G=G.value)&&G.baseUrl&&_.pO(G.baseUrl);var b,z;this.set("data.results",(b=this.data)==null?void 0:(z=b.results)==null?void 0:z.filter(function(X){return!X.adSlotRenderer}))}}};
_.e.getSparklesAd=function(f){var S,B;f=_.H((S=f.adSlotRenderer)==null?void 0:(B=S.fulfillmentContent)==null?void 0:B.fulfilledLayout,_.x_g);return _.H(f==null?void 0:f.renderingContent,Tru)};
_.e.hasAllowedInstreamAd=function(f){f=this.get("adPlacements",f)||[];for(var S=0;S<f.length;S++){var B=this.get("adPlacementRenderer.config.adPlacementConfig",f[S]);if(B&&B.suppressDisplayAd)return!0}return!1};
_.e.computeHideUnlimitedOfferModule=function(f,S){return f&&f.offerModule&&S&&f.offerModule.unlimitedOfferModuleRenderer&&f.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(S)?!0:!1};
_.e.hideUnlimitedOfferModuleChanged=function(){var f=_.m9(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");f&&(f.hidden=this.hideUnlimitedOfferModule)};
_.e.updateLockupContainerTypes=function(f){if(this.eligibleToSwitchToGrid){var S;(S=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||S.forEach(function(B){B.containerType=f})}};
_.e.computeHideTvfilmOfferModule=function(f,S){var B,G;return!!((f==null?0:(B=f.offerModule)==null?0:(G=B.tvfilmOfferModuleRenderer)==null?0:G.clientShouldSuppressIfCompanionAdDisplayed)&&S&&this.hasCompanionAds(S))};
_.e.hideTvfilmOfferModuleChanged=function(){var f=_.m9(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");f&&(f.hidden=this.hideTvfilmOfferModule)};
_.e.hasCompanionAds=function(f){f=this.get("adPlacements",f)||[];for(var S=0;S<f.length;S++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",f[S]))return!0;var B=void 0,G=void 0,g=void 0;if(!_.K("web_watch_top_banner_companion_check_killswitch")&&((B=f[S])==null?0:(G=B.adPlacementRenderer)==null?0:(g=G.renderer)==null?0:g.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.e.hasSuppressedResults=function(f){return f==null?!0:f.filter(function(S){return!S.continuationItemRenderer&&!S.compactPromotedVideoRenderer&&!S.promotedSparklesWebRenderer}).length===0};
_.e.computeShowButton=function(f,S){return this.isWatchNextGrid?f:f||this.hasSuppressedResults(S)};
_.e.showButtonChanged=function(){if(this.isWatchNextGrid){var f=_.m9(this.hostElement).querySelector("ytd-rich-grid-renderer");f&&this.showButton!==null&&(f.continuationShowButton=this.showButton)}else{f=_.m9(this.hostElement).querySelector("yt-next-continuation");var S=_.m9(this.hostElement).querySelector("ytd-continuation-item-renderer"),B=_.m9(this.hostElement).querySelector("ytd-item-section-renderer");f&&(f.showButton=this.showButton);S&&(S.showButton=this.showButton);B&&(B.continuationShowButton=
this.showButton)}};
_.e.continuationTap=function(f){var S;if(((S=this.data)==null?void 0:S.continuations)!=null&&f.target.tagName==="TP-YT-PAPER-BUTTON")for(f=this.data.continuations,S=0;S<f.length;S++)f[S].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(f[S].nextContinuationData||{})};
_.e.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AW("shown-items-changed",this.shownItems))};
_.y3.Object.defineProperties(Qx.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.shownItems)==null||!f.some(function(S){return!!S.lockupViewModel||S.compactVideoRenderer}))}}});
Qx.prototype.shownItemsChangedForBinding=Qx.prototype.shownItemsChangedForBinding;Qx.prototype.showButtonChanged=Qx.prototype.showButtonChanged;Qx.prototype.hideTvfilmOfferModuleChanged=Qx.prototype.hideTvfilmOfferModuleChanged;Qx.prototype.updateLockupContainerTypes=Qx.prototype.updateLockupContainerTypes;Qx.prototype.hideUnlimitedOfferModuleChanged=Qx.prototype.hideUnlimitedOfferModuleChanged;Qx.prototype.dataChanged=Qx.prototype.dataChanged;Qx.prototype.resultsChanged=Qx.prototype.resultsChanged;
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Qx.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Qx.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.ff.YtLazyListBehavior),_.Z("design:type",Object)],Qx.prototype,"ytLazyListBehavior",void 0);_.N([_.r(_.Ny.YtNextContinuationBehavior),_.Z("design:type",Object)],Qx.prototype,"ytNextContinuationBehavior",void 0);
_.N([_.r(_.Ak),_.Z("design:type",Object)],Qx.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],Qx.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Qx.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],Qx.prototype,"playerData",void 0);_.N([_.n({value:!0}),_.Z("design:type",Boolean)],Qx.prototype,"autoFill",void 0);_.N([_.n({value:60}),_.Z("design:type",Number)],Qx.prototype,"targetFramerate",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Qx.prototype,"isTwoColumns",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Qx.prototype,"hideOfferModules",void 0);_.N([_.n(),_.Z("design:type",Object)],Qx.prototype,"shownItems",void 0);_.N([_.n({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.Z("design:type",Boolean)],Qx.prototype,"hideUnlimitedOfferModule",void 0);
_.N([_.n({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.Z("design:type",Boolean)],Qx.prototype,"hideTvfilmOfferModule",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Qx.prototype,"watchFeedBigThumbs",void 0);_.N([_.n(),_.Z("design:type",Object)],Qx.prototype,"watchNextGridHideChips",void 0);_.N([_.n(),_.Z("design:type",Object)],Qx.prototype,"eligibleToSwitchToGrid",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Qx.prototype,"disableShortsShelfHeightOverride",void 0);_.N([_.n({selector:_.AD,reflectToAttribute:!0}),_.Z("design:type",Object)],Qx.prototype,"isGridViewEnabled",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],Qx.prototype,"showMoreButton",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Qx.prototype,"isWatchNextGrid",void 0);
_.N([_.n({computed:"computeShowButton(showMoreButton, data.results)"}),_.Z("design:type",Boolean)],Qx.prototype,"showButton",void 0);_.N([_.HF("data.results.*"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Qx.prototype,"resultsChanged",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Qx.prototype,"dataChanged",null);
_.N([_.JO("hideUnlimitedOfferModule"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Qx.prototype,"hideUnlimitedOfferModuleChanged",null);_.N([_.k("isGridViewEnabled","containsLockups","data"),_.n({reflectToAttribute:!0}),_.Z("design:type",Number),_.Z("design:paramtypes",[])],Qx.prototype,"lockupContainerType",null);
_.N([_.JO("lockupContainerType","data"),_.Z("design:type",Function),_.Z("design:paramtypes",[Number]),_.Z("design:returntype")],Qx.prototype,"updateLockupContainerTypes",null);_.N([_.JO("hideTvfilmOfferModule"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Qx.prototype,"hideTvfilmOfferModuleChanged",null);_.N([_.JO("showButton"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Qx.prototype,"showButtonChanged",null);
_.N([_.JO("shownItems"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Qx.prototype,"shownItemsChangedForBinding",null);_.N([_.k("shownItems"),_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Qx.prototype,"containsLockups",null);
_.p(Qx,"ytd-watch-next-secondary-results-renderer",function(){if(VVu===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);VVu=f}f=VVu;return f},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.uO$={};
_.uO$.YtdWatchBehavior=[_.c.YtRendererBehavior,_.Nr.YtPlayerListenerBehavior,_.ey.YtRendererstamperBehavior,_.b3.YtActionHandlerBehavior,_.Yu.YtPageBehavior,_.Pl.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 _.s6("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.K("web_watch_provide_secondary_results_renderer")}},
enableFullBleedSingleColumnDefaultPlayer:{type:Boolean,value:function(){return _.K("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 _.s6("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 _.K("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.K("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,
computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},squeezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"squeezebackChanged",computed:"computeSqueezeback(engagementPanelExpanded,liveChatPresentAndExpanded, playlistPanelExpanded, fullscreen, theater)"},
richItemMinWidth:{type:Number,value:function(){return _.Gt("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.Gt("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!_.K("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.K("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 _.K("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.K("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("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 _.K("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.K("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.K("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("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 _.K("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("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 _.K("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 f={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:_.ky(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.ky(["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"||_.K("swa_prov_panels_ks")?f.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:(f.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}},f.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return f},
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 f=this;this.watchController=void 0;this.pageDisposeJobs=[function(){f.showMetadataPlaceholder_()},
function(){_.K("web_watch_dont_clear_comments")||f.clearComments_()},
function(){f.clearPlayerAds_()},
function(){f.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;_.K("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.K("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.LJB(function(){return _.SW(f)},this.hostElement);
this.pageDisposeJobs.push(function(){f.youThereManager_.reset()});
_.K("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){f.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.XY;this.playerEvents_.set("onFeedbackStartRequest",this.onPlayerFeedbackStartRequest_);this.playerEvents_.set("onFeedbackArticleRequest",this.onPlayerFeedbackArticleRequest_);this.playerEvents_.set("onYpcContentRequest",this.onPlayerYpcContentRequest_);this.playerEvents_.set("onAutonavPauseRequest",this.onPlayerAutonavPauseRequest_);this.playerEvents_.set("onAdStateChange",this.onAdStateChange_);this.playerEvents_.set("onStateChange",
this.onPlayerStateChange_);this.playerEvents_.set("SUBSCRIBE",this.onPlayerSubscribe_);this.playerEvents_.set("UNSUBSCRIBE",this.onPlayerUnsubscribe_);this.playerEvents_.set("onYtShowToast",this.onPlayerAdYtShowToast_);this.playerEvents_.set("onFullscreenChange",this.onPlayerFullscreenChange_);this.playerEvents_.set("onVideoDataChange",this.onPlayerPresentingVideoDataChange_);this.engagementPanelScrimOnClickCommands_=null;this.watchMetadata=void 0;_.K("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));_.K("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Fc(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(f){f&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:f}),f.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(f){_.K("kevlar_watch_flexy_theater_manager")&&(this.theater=f,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(f){!_.K("kevlar_watch_while_v2")&&!_.K("web_watch_pip")||f||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(f){this.active!==void 0&&(this.fullscreen=f,_.K("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(f){this.active!==void 0&&(_.ew(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.K("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.K("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(f>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(f){this.initCsi_();this.updatePageData_(f)},
updatePageData_:function(f){var S=this;if(f)if(this.data===f){this.onPageLoadWithSameData_();var B;(B=this.watchController)==null||B.setWatchNextResponse(this.data)}else this.data=f;this.playlist&&_.EL({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.kT("nw");this.loading=!1;_.q6(_.xJ,function(){S.initDclkstatus_();var G,g=((G=S.player)==null?void 0:G.getVideoData().cpn)||"";_.v72(function(b,z){_.RPX(b,z,g)})})},
onPageLoadWithSameData_:function(){_.K("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 f=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!f);this.set("loadingData.playlistLoading",f&&f!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),f=this.watchNextSkeletonEl_.firstElementChild;f;)f.classList.remove("hidden"),f=f.nextElementSibling;if(_.K("kevlar_watch_frame0_loading_state")){var S,B,G;f=(S=this.loadingData)==null?void 0:(B=S.endpoint)==null?void 0:(G=B.watchEndpoint)==null?void 0:G.videoId;var g;f&&(g="https://i.ytimg.com/vi/"+f+"/frame0.jpg");_.m9(this.hostElement).querySelector("#player").style.backgroundImage=g?"url("+g+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var f=_.m9(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&f&&(f.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var S,B;(B=(S=this.watchMetadata).updateSentimentBarWidth)==
null||B.call(S);var G,g;(g=(G=this.watchMetadata).resize)==null||g.call(G)}_.K("kevlar_watch_frame0_loading_state")&&(_.m9(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(f){var S=_.m9(this.hostElement).querySelector(f);S?_.GZ(S,!1):_.Lg(new _.dO("Overscroll monitor not found for component: ",f))},
removeSplitScrollMouseTrap:function(f){var S=_.m9(this.hostElement).querySelector(f);S?_.gh(S):_.Lg(new _.dO("Disposal component for  overscroll monitoring not found: ",f))},
onLoadingChanged_:function(f){f?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(f){var S=this;f?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.xJ.addLowPriorityJob(function(){S.onWindowResized_(_.$G(!0))})},
updateTheaterModeState_:function(f){if(!_.K("kevlar_watch_flexy_theater_manager")){f=f||this.fullWindowMode_;if(this.theater!==void 0||f)this.theater=f;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();f&&_.O$2()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation()},
updatePlayerLocation:function(){var f=this.theater||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer;_.K("external_fullscreen")&&this.fullscreen&&(f=!0);f=f?_.m9(this.hostElement).querySelector("#player-full-bleed-container"):_.m9(this.hostElement).querySelector("#player-container-inner");var S=this.getPlayerContainer(),B=_.K("kevlar_watch_while_v2")||_.K("web_watch_pip");S.parentElement!==f&&(B&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.SW(this).appendTo(f,
S),f.appendChild(_.m9(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var f=this;return _.R(function(S){if(S.nextAddress==1)return _.h(S,_.oy().resolve(_.N_).deactivate(),2);f.updatePlayerLocation();_.TT(S)})},
updateCinematicsLocation:function(){var f=this.getElement("CINEMATICS");if(f){var S=this.getCinematicsLocationContainer();f.parentElement!==S&&S.appendChild(f);var B;(B=this.watchController)==null||B.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.m9(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.m9(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(f,S){var B=document.documentElement.hasAttribute("dark"),G=B&&_.K("web_cinematic_theater_mode"),g=B&&_.K("web_cinematic_fullscreen");B=!B&&this.cinematicLightTheme;return f&&G||S&&g||(S||f)&&B},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var f=this,S;(S=this.watchController)==null||S.setWatchNextResponse(this.data);_.K("kevlar_watch_flexy_comments_manager")||this.initComments_();_.K("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.oy().resolve(_.Dr).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,_.K("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.xJ.addLowPriorityJob(function(){_.mU(f.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.K("web_watch_start_chat_in_theater_mode")){var B,G,g;if((B=this.data)==null?0:(G=B.contents)==null?0:(g=G.twoColumnWatchNextResults)==null?0:g.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var b,z;((b=this.data)==null?0:(z=b.contents)==null?0:z.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(f){var S;(S=this.watchController)==null||S.setPlayerResponse(this.playerData);f&&f.playabilityStatus&&(S=this.isVideoPlayable_(f.playabilityStatus,this.getPlayerOverlays_(this.data)),f=this.isLiveStreamOffline_(f.playabilityStatus),S&&!f||_.ui(this,function(){_.kT("pbu")}));
this.setPlayerAds_();_.mU(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(f,S){if((_.K("kevlar_watch_while_v2")||_.K("web_watch_pip"))&&this.playerData&&S)return this.playerData.videoDetails},
watchPageActiveChanged_:function(f){_.W2().dispatch(_.SsO(this.active));f?this.activate_():this.deactivate_()},
attached:function(){var f=this;this.watchController=new _.Ik(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);_.K("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var S=_.SW(this);_.K("kevlar_disable_prepare_player")||
S.preparePlayer();_.K("kevlar_watch_flexy_playlist_manager")||_.oy().resolve(_.Dr).setPlayer(S);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();S={"--ytd-watch-flexy-scrollbar-width":_.xy()+"px"};this.is==="ytd-watch-grid"&&(S["--ytd-watch-flexy-sidebar-width"]=_.FPO+"px",S["--ytd-watch-grid-horizontal-page-margins"]=_.ss+"px",S["--ytd-watch-grid-columns-top-margins"]=_.wPZ+"px",S["--ytd-watch-grid-min-player-height-medium"]="360px");!_.Gt("kv_pl_mx_sz_ks")&&
_.Gt("kevlar_watch_max_player_width")&&(S["--ytd-watch-flexy-max-player-width-wide-screen"]=_.VMz+"px");_.Gt("kevlar_watch_flexy_metadata_height")&&(S["--ytd-watch-flexy-space-below-player"]=_.Jbz+"px");this.safeUpdateStyles(S);_.K("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.Rp(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return f.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.m9(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var f=_.xy(),S=_.DA+f,B=S;this.fixedPanels&&(S+=_.FPO);var G=657+f;f=1327+f;_.m9(this.hostElement).querySelector("#two-column-query").query="(min-width: "+S+"px)";_.m9(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(G+"px), (min-height: 630px) and (min-width: ")+(S+"px) and (max-width: ")+(f+"px)");_.m9(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(f+"px)");
_.m9(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+B+"px)"},
calculateCurrentPlayerSize_:function(){var f=_.m9(this.hostElement).querySelector("#miniplayer-bar").firstChild,S=this.squeezeback&&!_.K("web_watch_squeezeback_player_size_killswitch");return f&&f.active||this.theater||_.K("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||S||!this.active||!this.windowSize_||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer?new _.Xr(NaN,NaN):_.Ah(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||
this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.Ah(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.cd(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var f=this;this.onWindowResized_(_.$G());_.K("browse_skeleton_removal_on_watch_killswitch")||_.s6("IS_SHELL_LOAD")&&_.KFe();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var S=_.SW(this);S.addEventListener("yt-player-updated",_.Fc(this,this.onPlayerUpdated_));S.getPlayerPromise().then(function(B){f.playerApiReady_(B)});
_.K("kevlar_watch_flexy_playlist_manager")||(S=_.oy().resolve(_.Dr),_.K("kevlar_watch_observe_playlist_navigations_killswitch")&&S.addEventListener("yt-navigate",_.Fc(this,this.onYtNavigate_)),S.setPlaylistComponent(_.m9(this.hostElement).querySelector("#playlist")),S.addEventListener("yt-playlist-data-updated",_.Fc(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.xJ.addLowPriorityJob(function(){_.ew(f.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.SW(this).removeEventListener("yt-player-updated",_.Fc(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.K("kevlar_watch_flexy_playlist_manager")){var f=_.oy().resolve(_.Dr);_.K("kevlar_watch_observe_playlist_navigations_killswitch")&&f.removeEventListener("yt-navigate",_.Fc(this,this.onYtNavigate_));
f.cancelVideoSkip();f.removeEventListener("yt-playlist-data-updated",_.Fc(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.K("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.ew(this.hostElement,"yt-autonav-pause-player",!1);f=_.Sw();_.K("kevlar_exit_fullscreen_leaving_watch")&&f&&_.BK(f)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(f){this.player&&this.player.updateVideoData({rvs:f.rvs})},
getPageContents:function(f){return f&&f.contents&&f.contents.twoColumnWatchNextResults&&f.contents.twoColumnWatchNextResults.results&&f.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(f){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",f)},
onRetrieveLocation_:function(f,S){S.hasComments?S.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):S.locationRetrieved("/related_ajax",void 0);f.stopPropagation()},
onSubscriptionChanged_:function(f,S){this.player&&(S?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.QS("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.m9(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.m9(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(f){this.player=f;this.setPlayerState(f.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.K("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.K("kevlar_unified_player")||_.K("kevlar_player_new_bootstrap_adoption"))&&_.l1()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(f,S){S=S===void 0?!0:S;_.Sw()&&_.K("external_fullscreen")&&_.BK(document.documentElement);this.theaterRequested_=f;S&&_.JY("wide",f?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.bW(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.ew(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(f){_.kH(f,typeof this.player),this.player&&_.kH(f,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var f;((f=this.player)==null?0:f.isFullscreen())?this.player.toggleFullscreen():_.bW(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(f,S){return this.loading?S:!!Object.keys(f).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(f){if(f){f=_.m(f);for(var S=f.next();!S.done;S=f.next())S=S.value,S.youThereRenderer&&_.sWn(this.youThereManager_,S.youThereRenderer)}},
setPlaylistData_:function(f){return f||{}},
userEngagementConfigDataChanged_:function(f){if(f)if(f.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var S=this.youThereManager_;_.or()<f.lowEngagementThresholdMs||_.C2Z(S,!0)}else f.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.bW(this.hostElement,"yt-autonav-pause-user-engagement",[f])},
isPlayerUnavailable_:function(f,S,B){return!!f&&!this.isVideoPlayable_(f,B)&&!S},
getPlayerOverlays_:function(f){return(f==null?void 0:f.playerOverlays)||null},
isVideoPlayable_:function(f,S){if(!f)return!1;var B=f.status==="OK"||f.status==="LIVE_STREAM_OFFLINE",G=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",f)||this.get("errorScreen.ypcTrailerRenderer",f);f=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",f);var g;S=S==null?void 0:(g=S.playerOverlayRenderer)==null?void 0:g.gatedActionsOverlayRenderer;return!!B||!!G||!!f||!!S},
hasWatchNextResponseErrorRenderer:function(f){var S=this.getPageContents(f),B,G,g,b,z;return!(f==null?0:(B=f.contents)==null?0:(G=B.twoColumnWatchNextResults)==null?0:G.secondaryResults)&&!!((g=S[0])==null?0:(b=g.itemSectionRenderer)==null?0:(z=b.contents[0])==null?0:z.backgroundPromoRenderer)},
isLiveStreamOffline_:function(f){return f?f.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(f,S,B){var G=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",S),g=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];g=_.K("web_no_skip_video_on_verification_checks")?(f==null?void 0:f.status)&&g.includes(f.status):f&&f.status==="AGE_CHECK_REQUIRED";var b=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",f);b==void 0&&(b=!0);!B||this.isVideoPlayable_(f,this.getPlayerOverlays_(S))||
G||g||!b||_.oy().resolve(_.Dr).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.$YM()},
onPlayerFeedbackStartRequest_:function(f){_.bW(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:f}])},
onPlayerFeedbackArticleRequest_:function(f){_.bW(this.hostElement,"yt-help-dialog-requested",[f])},
onPlayerYpcContentRequest_:function(){var f,S,B,G,g,b,z,X,w=((f=this.data)==null?NaN:(S=f.contents)==null?NaN:(B=S.twoColumnWatchNextResults)==null?NaN:(G=B.secondaryResults)==null?NaN:(g=G.secondaryResults)==null?NaN:(b=g.offerModule)==null?NaN:(z=b.tvfilmOfferModuleRenderer)==null?NaN:(X=z.actionButtons)==null?NaN:X.length)-1;f=[".offerButton.buttonRenderer.",".actionButtons."+(w>=0?w:0)+".buttonRenderer."];S=_.m(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(B=S.next();!B.done;B=S.next())for(B=B.value,G=_.m(f),g=G.next();!g.done;g=G.next())if(g="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+B+g.value,g=this.get(g+"navigationEndpoint",this.data)||this.get(g+"serviceEndpoint",this.data)||this.get(g+"command",this.data)){_.Ps(g,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(f){_.ew(this.hostElement,"yt-autonav-pause-player",f)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(f){f()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(f){switch(f){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(f){switch(f){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.ew(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(f)},
setPlayerState:function(f){_.W2().dispatch(_.W4m(f))},
onPlayerSubscribe_:function(f){_.bW(this.hostElement,"yt-player-subscribe",[f])},
onPlayerUnsubscribe_:function(f){_.bW(this.hostElement,"yt-player-unsubscribe",[f])},
onPlayerAdYtShowToast_:function(f){_.bW(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:f.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(f){if(f)return f},
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(f){return!_.K("web_watch_move_summary_to_sd")&&!!f},
computeWatchMetadataRefresh:function(){return _.K("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.K("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var f,S,B,G;this.watchNextSecondaryResults=(f=this.data)==null?void 0:(S=f.contents)==null?void 0:(B=S.twoColumnWatchNextResults)==null?void 0:(G=B.secondaryResults)==null?void 0:G.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.K("swatcheroo_pbs_load_grid")&&!_.K("swatcheroo_provide_all_data_on_scheduled_job")){_.xJ.cancelJob(this.setRichGridJobId_);var f,S,B,G,g,b,z;this.setRichGridRendererData((f=this.data)==null?void 0:(S=f.contents)==null?void 0:(B=S.twoColumnWatchNextResults)==null?void 0:(G=B.secondaryResults)==null?void 0:(g=G.secondaryResults)==null?void 0:(b=g.results)==null?void 0:(z=b[0])==null?
void 0:z.richGridRenderer)}},
setRichGridRendererData:function(f){this.richGridRendererData=f},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var f,S=(f=this.data)==null?void 0:f.engagementPanels;if(S==null?0:S.length){f=null;S=_.m(S);for(var B=S.next();!B.done;B=S.next()){B=B.value;var G=void 0;if(((G=B.engagementPanelSectionListRenderer)==null?void 0:G.targetId)==="engagement-panel-structured-description"){f=B;break}}var g,b,z;f=(g=f)==null?void 0:(b=g.engagementPanelSectionListRenderer)==null?void 0:(z=b.content)==null?void 0:z.structuredDescriptionContentRenderer;if(f==null?0:f.items){g=
[];b=_.m(f.items);for(z=b.next();!z.done;z=b.next()){z=z.value;if(!_.K("sd_horizontal_list_show_nav_killswitch")){var X=G=B=S=f=void 0,w=void 0,F=(f=z.horizontalCardListRenderer)==null?void 0:(S=f.header)==null?void 0:(B=S.richListHeaderRenderer)==null?void 0:(G=B.navigationButton)==null?void 0:(X=G.buttonRenderer)==null?void 0:(w=X.command)==null?void 0:w.commandExecutorCommand;F&&F.commands&&(F.commands=F.commands.filter(function(V){return!_.H(V,_.xQu)}))}z.expandableVideoDescriptionBodyRenderer||
z.videoDescriptionHeaderRenderer||g.push(z)}return{items:g}}}},
constructWarning_:function(f){return{text:_.uC(f),type:"WARNING"}},
isPlaShelfEnabled_:function(f){if((this.get("adPlacements",f)||[]).length)return!0;f=this.get("playerAds",f)||[];return!(!f.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",f[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var f=this;_.ew(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.K("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var S=this.getScrollTop()>0;this.gestures_&&(S?this.gestures_.detach():this.gestures_.attach());S!==this.showFullerscreenEdu_&&_.K("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=S,_.SW(this).getPlayerPromise().then(function(B){B.updateFullerscreenEduButtonVisibility(f.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.ew(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var f=this;this.commentsReady=!1;_.xJ.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.q6(_.xJ,function(){f.setComments_()},1E3)},
setComments_:function(){if(!_.K("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.kT("cmi");_.xJ.cancelJob(this.setCommentsJobId_);var f=this.getPageContents(this.data);if(f&&f.length){f=_.m(f);for(var S=f.next();!S.done;S=f.next())if(S=S.value,this.get("itemSectionRenderer.sectionIdentifier",S)==="comment-item-section"){this.comments=S.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.ew(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.K("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.K("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.kT("cmc")},
doRemoveComments_:function(){this.comments={};_.K("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.xJ.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.xJ.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(f,S){var B=_.H(S.endpoint,_.t2);B&&(!(S=this.get("data.currentVideoEndpoint.watchEndpoint"))||B.videoId!==S.videoId||B.playlistId&&B.playlistId!==S.playlistId||B.index!==void 0&&B.index!==S.index||typeof B.startTimeSeconds!=="number"||(f.stopPropagation(),this.setScrollTop(0),_.SW(this).getPlayerPromise().then(function(G){var g=B.startTimeSeconds;G.seekTo(g);G.wakeUpControls();g<G.getDuration()&&G.playVideo()})))},
updatePlayerStartTime_:function(){var f=_.RVu();"t"in f&&(f=_.qs2(f.t),this.player.seekTo(f,!0))},
updateTitleFromWatchNext:function(f){f=this.getPageContents(f);var S,B;(f=_.ac(f==null?void 0:(S=f[0])==null?void 0:(B=S.videoPrimaryInfoRenderer)==null?void 0:B.title))&&_.ew(this.hostElement,"yt-update-title",f)},
updateTitle_:function(f){f=this.get("videoDetails.title",f)||"";_.ew(this.hostElement,"yt-update-title",f)},
syncWithRemoteVideo_:function(f,S,B){if(this.active&&this.player){var G=this.player.getVideoData();if(G.video_id===B&&(B=G.list,_.K("polymer_enable_mdx_queue")&&B&&B.startsWith("RQ")&&(B=void 0),G.video_id!==f||B!=S)){var g;_.K("kevlar_player_watch_endpoint_navigation")?g=_.jxx(_.KJz(f,S)):g=this.buildWatchEndpoint_(f,S);_.ew(this.hostElement,"yt-navigate",{endpoint:g,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(f,S,B){return _.Sf(f,S,B)},
initDclkstatus_:function(){_.HZu()},
attachWatchPageSkeleton_:function(){var f=document.querySelector("#watch-page-skeleton");if(f){var S=f.querySelector("#primary-info"),B=f.querySelector("#secondary-info"),G=f.querySelector("#related");S&&_.m9(this.hostElement).querySelector("#info-skeleton").appendChild(S);B&&_.m9(this.hostElement).querySelector("#meta-skeleton").appendChild(B);G&&(_.m9(this.hostElement).querySelector("#related-skeleton").appendChild(G),this.watchNextSkeletonEl_=G);_.Pv(f)}},
handlePlayerUpdated_:function(){_.SW(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(f,S){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof S!=="undefined"){var B=this.watchNextSkeletonEl_.children,G=f&&f.indexSplices.length?f.indexSplices[0].index:0;f=Math.min(this.watchNextShownItems.length,B.length);S||(G=0,f=B.length);for(S=G;S<f;S++)B[S].classList.add("hidden")}},
onPlayerFullscreenChange_:function(f){_.K("external_fullscreen")||_.bW(this.hostElement,"yt-player-fullscreen",[f.fullscreen])},
onFullscreenChange_:function(f){this.fullscreen=f;this.gestures_&&this.gestures_.update(this.fullscreen);var S=_.SW(this);S.getPlayerPromise().then(function(B){B.setFauxFullscreen(!!_.Sw())});
this.updateFullBleedElementLocations();f&&(S.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(f,S){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!S},
computeIsDonationShelfCollapsed_:function(f){return f},
computeShouldShowMerchShelf:function(f,S){return S&&!!f},
computeResponseHasComments:function(f){var S,B,G,g,b;return!!(f==null?0:(S=f.contents)==null?0:(B=S.twoColumnWatchNextResults)==null?0:(G=B.results)==null?0:(g=G.results)==null?0:(b=g.contents)==null?0:b.some(function(z){var X;return(z==null?void 0:(X=z.itemSectionRenderer)==null?void 0:X.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(f,S,B,G){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&G?!1:!!f&&!!Object.keys(f).length&&!S},
identity:_.IT,onWindowResized_:function(f){this.windowSize_=f;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.K("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(f){var S=this;f&&f.type!=="dataloaded"&&f.type!=="dataupdated"||_.SW(this).getPlayerPromise().then(function(B){var G=B.getPlayerState();G!==5&&G!==0&&(B=1/B.getVideoAspectRatio(),S.videoHeightToWidthRatio_!==B&&(S.videoHeightToWidthRatio_=B))})},
schedulePlayerSizeUpdate_:function(f){var S=this,B=_.K("kevlar_watch_while_v2")||_.K("web_watch_pip"),G=function(){if(S.watchMetadata){var g,b;(b=(g=S.watchMetadata).resize)==null||b.call(g)}_.SW(S).getPlayerPromise().then(function(z){if(_.K("kevlar_set_internal_player_size")){if(!B||!S.isMiniplayerActive()){var X=S.calculateCurrentPlayerSize_();z.setInternalSize(X.width,X.height)}}else z.setSize(NaN,NaN);_.K("kevlar_watch_while")&&S.updateWatchWhileScrollThreshold_()})};
f?G():_.OR(_.xJ,G)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(f){this.set("data.survey",f.detail)},
onYtShowSurveyCommand_:function(f){this.set("data.survey",_.H(f,_.E7o).survey)},
onDownloadedVideoDeleted:function(f){var S=this,B,G;return _.R(function(g){if(g.nextAddress==1){if(!S.active||(B=S.playerData)==null||!B.offlineState||S.videoId!==f)return g.return();(G=S.player)==null||G.stopVideo();_.Pn().navigatingAwayFromWatchDeletedVideo=!0;_.Ps(_.qDx,S.hostElement);return _.h(g,_.Pn().navigationFinishPromise,2)}_.Pn().navigatingAwayFromWatchDeletedVideo=!1;_.TT(g)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var f;this.theater?f=_.Uy(.5625*this.windowSize_.width,480,this.windowSize_.height-185):f=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==f&&(this.watchWhileScrollThreshold_=f,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var f=_.m9(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&f){var S=this.windowSize_.height>=624,B=this.active?this.getScrollTop():0;!f.active&&S&&B>=this.watchWhileScrollThreshold_?(f.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):f.active&&(!S||B<this.watchWhileScrollThreshold_&&!_.Sw())&&(f.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var f=_.m9(this.hostElement).querySelector("#secondary-inner");if(f){var S=_.m9(this.hostElement).querySelector("#below"),B=_.m9(this.hostElement).querySelector("#secondary"),G=_.m9(this.hostElement).querySelector("#comments");G&&B&&S&&(this.defaultTwoColumnLayout?(f.appendChild(G),B.appendChild(f)):(S.appendChild(G),_.nZ(S,f)))}}},
isTwoColumnsChanged_:function(f,S){if(f!==!0||S!==void 0)if(this.enableFullBleedSingleColumnDefaultPlayer&&this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(f=_.m9(this.hostElement).querySelector("#secondary-inner"))){S=_.m9(this.hostElement).querySelector("#below");var B=_.m9(this.hostElement).querySelector("#secondary"),G=_.m9(this.hostElement).querySelector("#comments");G&&B&&S&&(this.isTwoColumns_?(f.appendChild(G),B.appendChild(f)):(S.appendChild(G),
_.nZ(S,f)))}}else{f=!_.K("web_watch_enable_fs_squeezeback_panels")||!(this.fullscreen||this.iMaxTheaterMode&&this.theater);S=_.m9(this.hostElement).querySelector("#panels");var g=_.m9(this.hostElement).querySelector("#alerts");B=_.m9(this.hostElement).querySelector("#playlist");G=_.m9(this.hostElement).querySelector("#related");var b=_.m9(this.hostElement).querySelector("#donation-shelf"),z=_.m9(this.hostElement).querySelector("#comments");this.isTwoColumns_?(g=_.m9(this.hostElement).querySelector("#secondary-inner"),
f&&(g.appendChild(S),g.appendChild(B)),g.appendChild(b),g.appendChild(G)):(f&&(_.Lb(S,g),_.Lb(B,g)),_.Lb(b,g),z&&_.Lb(G,z));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.K("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.K("web_watch_enable_fs_squeezeback_panels")&&_.K("web_watch_theater_chat")){var f=_.m9(this.hostElement).querySelector("#chat-container"),S=this.theater&&!this.fullscreen||_.K("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&S?(S=_.m9(this.hostElement).querySelector("#columns"),(f==null?void 0:f.parentElement)!==S&&S.append(f),this.fixedPanels=!0):(this.fixedPanels=
!1,S=_.m9(this.hostElement).querySelector("#playlist"),f&&S?_.kU(f,S):_.Lg(new _.dO("Missing element when updating chat location",{"chatContainer defined":!!f,"playlist defined":!!S})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(f,S){return _.K("sw_metadata_vis_toggle_ks")?!0:!!f||!!S},
computeForceDarkPanelTheme:function(f){return _.K("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&f:!1},
safeUpdateStyles:function(f){try{_.hO(this.hostElement,f)}catch(S){_.Lg(S)}},
videoHeightToWidthRatioChanged_:function(f,S){S&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(f){this.videoHeightToWidthRatio_=1/f},
computeIsVerticalVideo_:function(f){return f>=1},
computeIsFourThreeToSixteenNineVideo_:function(f){return f<=.7501&&f>=.5624},
computeIsExtraWideVideo_:function(f){return f<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.SW(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.SW(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.phY(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(f){var S=_.wQ(f)||0;_.Xw(f,S+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var f=_.wQ("yt-fullerscreen-edu-button-click-count")||0,S=_.wQ("yt-fullerscreen-edu-button-shown-count")||0,B=_.Gt("external_fullscreen_button_shown_threshold"),G=f>=_.Gt("external_fullscreen_button_click_threshold")||S>=B;_.SW(this).getPlayerPromise().then(function(g){g.updateFullerscreenEduButtonSubtleModeState(G)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(f,S){return S},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.oy().resolve(_.Dr).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var f=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.xJ.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.xJ.addLowPriorityJob(function(){f.fullHeightPanelPositionUpdateJobId=0;var S=_.m9(f.hostElement).querySelector("#secondary"),B=_.m9(f.hostElement).querySelector("#fixed-secondary");S=S.getBoundingClientRect();var G=S.width;f.swatcherooSqueezeback&&
(G+=_.ss);if(f.swatcherooSqueezeback){var g=_.m9(f.hostElement).querySelector("#squeezeback-constraining-container");g.style.width=G+"px";g.style.flex="0 0 "+G+"px"}B.style.width=G+"px";B.style.left=S.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var f=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.xJ.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.xJ.addLowPriorityJob(function(){f.panelMaxHeightUpdateJob_=0;var S;!f.isTwoColumns_||f.theater||f.fullscreen?S=460:S=f.calculateNormalPlayerSize_().height;var B=S+"px";_.K("live_chat_taller_height")&&!f.theater&&(B="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.K("live_chat_medium_height")&&!f.theater&&(B="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.K("live_chat_scaled_height")&&!f.theater&&(B="calc(100vh - var(--ytd-toolbar-height) - 238px)");f.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":S+"px","--ytd-watch-flexy-chat-max-height":B,"--ytd-watch-flexy-structured-description-max-height":S+"px","--ytd-watch-flexy-comments-panel-max-height":S+"px","--ytd-comments-engagement-panel-content-height":S+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(f){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",f)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Xh(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(f){var S=_.m9(this.hostElement).querySelector("#engagement-panel-scrim");f?S.addEventListener("tap",_.Fc(this,this.onEngagementPanelScrimClick_)):S.removeEventListener("tap",_.Fc(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(f){if(this.hostElement.contains(f)&&!this.scrollToAnimation_.isAnimating()){var S=f.offsetTop-24;f=f.offsetTop+f.offsetHeight+24;var B=this.getPageScrollingElement(),G=this.getScrollTop(),g=G+B.clientHeight-56;if(S<G+56)S-=56;else if(f>g)S=f-B.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,S),500)}},
onYtSignalActionScrollToComments:function(){var f=this.hostElement.querySelector("#comments");if(f&&!this.scrollToAnimation_.isAnimating()){f=f.offsetTop-56-24;if(_.K("kevlar_comment_teaser_scroll_to_midpoint")&&(f-=_.TW().height/3,f<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,f),500)}},
onYtEngagementPanelVisibleChanged:function(f,S,B){if(this.active&&this.trackEngagementPanelVisibility&&!_.OZM.includes(B)){if(S==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.mU(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var G=_.oy().resolve(_.ir);this.visiblePanelIdentifiers_.forEach(function(g){g!==B&&G.hidePanel(g)})}this.visiblePanelIdentifiers_.add(B)}S!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&S!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(B);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(f){return f?"":"watch-active-metadata"},
computeNewMetadataClass:function(f){return f?"watch-active-metadata":""},
computeFullBleedPlayer:function(f,S,B){return f||S||this.enableFullBleedSingleColumnDefaultPlayer&&!B},
computeDefaultLayout:function(f){return!f},
computeDefaultTwoColumnLayout:function(f,S){return!f&&S},
updatePanelsLocation:function(){if(_.K("web_watch_enable_fs_squeezeback_panels")){var f=_.m9(this.hostElement).querySelector("#below"),S=_.m9(this.hostElement).querySelector("#panels"),B=_.m9(this.hostElement).querySelector("#playlist"),G=_.m9(this.hostElement).querySelector("#chat-container"),g=_.m9(this.hostElement).querySelector("#panels-full-bleed-container"),b=_.m9(this.hostElement).querySelector("#secondary-inner"),z=this.fullscreen||this.theater&&this.iMaxTheaterMode,X=this.theater&&!this.iMaxTheaterMode&&
this.liveChatPresentAndExpanded;this.fixedPanels=!1;z?(g.appendChild(S),g.appendChild(G),g.appendChild(B)):this.isTwoColumns_?(X?(f=_.m9(this.hostElement).querySelector("#columns"),(G==null?void 0:G.parentElement)!==f&&f.append(G),this.fixedPanels=!0):_.nZ(b,G),_.nZ(b,S),_.nZ(b,B)):(f.appendChild(S),f.appendChild(G),f.appendChild(B))}},
swatcherooUpdatePanelsLocation:function(f,S,B,G,g,b){if(this.is==="ytd-watch-grid"){S=f&&!S;this.swatcherooSplitScroll&&(S?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));B=_.m9(this.hostElement).querySelector("#panels");var z=_.m9(this.hostElement).querySelector("#playlist"),X=_.m9(this.hostElement).querySelector("#fixed-secondary"),w=_.m9(this.hostElement).querySelector("#fixed-below"),
F=_.m9(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),V=_.m9(this.hostElement).querySelector("#chat-container");b&&(f?X.appendChild(B):w.appendChild(B));g?f?X.appendChild(V):w.appendChild(V):_.kU(V,F);G?f?X.appendChild(z):w.appendChild(z):_.kU(z,F);this.swatcherooSplitScroll&&(f=_.m9(this.hostElement).querySelector("#secondary"),G=_.m9(this.hostElement).querySelector("#columns"),g=_.m9(this.hostElement).querySelector("#fixed-columns-secondary"),S?
g.appendChild(f):G.appendChild(f))}},
computeMetadataSkinnyMode:function(f,S,B){return this.is!=="ytd-watch-grid"?!1:f?B:S},
computeWatchWhilePanelsActive:function(f,S){return f||S},
computeNoBorderOnChat:function(f){return _.K("web_watch_theater_chat_no_border")&&f},
computeLiveChatPresentAndExpanded:function(f,S){return f&&!S},
computePanelExpanded:function(f,S,B){return f||S||B},
computeSqueezeback:function(f,S,B,G){if(_.K("web_watch_enable_fs_squeezeback_panels")){var g=this.iMaxTheaterMode&&this.theater;return(f||S||B)&&(G||g)}},
computeSwatcherooSqueezeback:function(f,S,B){return this.is!=="ytd-watch-grid"||_.K("ww_squeezeback_killswitch")?!1:f&&S&&B},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(f){_.SW(this).getPlayerPromise().then(function(S){var B;(B=S.changeMarkerVisibility)==null||B.call(S,_.H(f,_.NX).isVisible||!1,_.H(f,_.NX).entityKeys||[],_.H(f,_.NX).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(f){this.liveChatCollapsed=f.detail;_.W2().dispatch(_.jWu(f.detail));if(!this.liveChatCollapsed&&this.squeezeback){var S=_.oy().resolve(_.ir);this.visiblePanelIdentifiers_.forEach(function(B){S.hidePanel(B)})}},
onSetPlaylistCollapsed:function(f){_.K("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!f)},
provideRenderingData:function(f,S){switch(f){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=S;break;case "PRIMARY_INFO":_.K("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=S);this.videoPrimaryInfoRendererValue=S==null?void 0:S.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.K("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=S);this.videoSecondaryInfoRendererValue=S==null?void 0:S.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
S;break;case "CLARIFICATION":this.clarifyBoxValue=S;break;case "LIVE_CHAT":this.conversationBar=S;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=S;break;case "PLAYLIST":this.externalPlaylistData_=S!=null?S:{};break;case "MERCH_SHELF":this.merchShelfValue=S==null?void 0:S.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=S;break;case "TICKET_SHELF":this.ticket=S;break;case "OFFER_MODULE":this.offerModule=S;break;case "LIMITED_STATE":this.limitedStateValue=
S;break;case "DONATION_SHELF":this.donation=S;break;case "ALERTS":this.alertsValue=S;break;case "COMMENTS":this.comments=S;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=S;break;case "ENGAGEMENT_PANELS":this.engagementPanels=S;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=S;break;case "RICH_GRID_RENDERER":this.richGridRendererData=S;break;case "EXPANDABLE_METADATA":this.expandableMetadata=S;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
S}},
toggleCinematicsActive:function(f){this.cinematicsActive=f},
isMiniplayerActive:function(){return _.oy().resolve(_.N_).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var hPM,V7u;_.TOu=function(f){var S=hPM;if(!(0,_.uJW)(f)){var B,G;S=(G=(B=typeof S==="function"?S():S)==null?void 0:B.concat("\n"))!=null?G:"";throw Error("H`"+S+"`"+String(f));}};
_.FEO=function(f){return f.shorts.isShortsActive};
_.JYn=function(f){return f.findIndex(function(S){return V7u.indexOf(S.tagName)>-1})>-1};
hPM=void 0;_.Paz=function(f){return _.ef({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:f}})};
_.v0Z=function(){var f=_.oy().resolve(_.dQ);_.OnM(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(f.isFullscreenEnabled()?_.BK(document.documentElement):_.BHG(document.documentElement))};
V7u=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.lM=new Map;_.lM.set(32,59972);_.lM.set(27,50765);_.lM.set(70,60102);_.lM.set(76,60221);_.lM.set(77,60222);_.lM.set(74,60223);_.lM.set(84,60224);_.lM.set(38,61941);_.lM.set(40,61942);_.lM.set(73,62521);_.lM.set(67,62522);_.lM.set(80,63390);_.lM.set(78,63397);_.lM.set(75,59972);_.lM.set(188,63385);_.lM.set(190,63384);_.lM.set(36,63387);
_.lM.set(35,63386);_.lM.set(37,63388);_.lM.set(39,63389);_.lM.set(79,63423);_.lM.set(87,63424);_.lM.set(107,63426);_.lM.set(109,63425);_.lM.set(65,63428);_.lM.set(83,63430);_.lM.set(68,63429);_.lM.set(221,63431);_.lM.set(219,63432);_.lM.set(97,63439);_.lM.set(98,63440);_.lM.set(99,63441);_.lM.set(100,63442);_.lM.set(101,63443);_.lM.set(102,63444);_.lM.set(103,63445);_.lM.set(104,63446);_.lM.set(105,63447);_.fe=new Map;_.fe.set(80,63390);_.fe.set(78,63397);_.fe.set(188,63400);_.fe.set(190,63401);
_.fe.set(191,60765);_.fe.set(13,247917);_.on=new Map;_.SY=new Map;
}catch(e){_._DumpException(e)}
try{
var Tze,Jmz,PJB,vdn;_.RKu=function(f){return f.ui.guideIsVisibleButNotPersistent};
_.XVZ=function(f){return f.ui.tabGesturesIsActive};
_.wVO=function(){var f=_.gO("service_worker_scope");try{return navigator.serviceWorker.getRegistration(f)}catch(S){return Promise.reject(S)}};
_.hKe=function(f){return!(!f||!f.pushManager)};
Tze=function(){return _.wVO().then(_.hKe).catch(function(){return!1})};
_.FrB=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?Tze():Promise.resolve(!1)};
_.VNO=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
Jmz=function(){var f,S,B;return _.R(function(G){switch(G.nextAddress){case 1:return _.h(G,_.YZ.getInstance(),2);case 2:f=G.yieldResult;if(!f){S=void 0;G.jumpTo(3);break}return _.h(G,f.get("lmqf"),4);case 4:S=G.yieldResult;case 3:switch((B=S)||(B="SD"),B){case "HD":return G.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return G.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return G.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return G.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return G.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
PJB=function(f){var S,B,G;return _.R(function(g){if(g.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.K("disable_av1_setting")){var b=window.localStorage["yt-player-av1-pref"];b=b==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":b==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else b="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(S=f===b)return g.jumpTo(2);G=B=f;return _.h(g,Jmz(),3)}g.nextAddress!=2&&(S=G===g.yieldResult);return g.return(S)})};var Krn;var dcY=_.Ym.IronButtonState,iQ$=(0,_.HG)(HTMLElement);
_.OW({_template:function(){if(Krn!==void 0)return Krn;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;vdn===void 0&&(vdn=document.createElement("template"));var G=vdn;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return Krn=f},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[dcY,_.$m,_.rx,_.xm],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(f){var S=(0,_.JL)(this);S.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:f});S.shadowRoot.appendChild(f);return iQ$.prototype._attachDom.call(this,f)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var f=this.contentElement;f&&f.selectedItem&&this._setSelectedItem(f.selectedItem)},
get contentElement(){for(var f=_.HZ(this.$.content).getDistributedNodes(),S=0,B=f.length;S<B;S++)if(f[S].nodeType===Node.ELEMENT_NODE)return f[S]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(f){this._setSelectedItem(f.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(f){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f)===this&&this.open()},
_selectedItemChanged:function(f){var S="";f?S=f.label||f.getAttribute("label")||f.textContent.trim():S="";this.value=S;this._setSelectedItemLabel(S)},
_computeMenuVerticalOffset:function(f,S){return S?S:f?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var f=this.opened?"true":"false",S=this.contentElement;S&&S.setAttribute("aria-expanded",f)}});_.M4=new _.u("navigateAction");var HQu=new _.u("formRenderer");var ZQ=function(){var f=_.dv.apply(this,arguments)||this;f.showInput=!1;return f};
_.q(ZQ,_.dv);_.e=ZQ.prototype;_.e.detached=function(){this.showInput&&window.removeEventListener("click",_.Fc(this,this.closeOnOutsideClick_))};
_.e.stopPropagation_=function(f){this.showInput&&f.stopPropagation()};
_.e.closeOnOutsideClick_=function(f){this.closeOnOutsideClickCondition(f)&&(this.showInput=!1,window.removeEventListener("click",_.Fc(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.e.closeOnOutsideClickCondition=function(){return!0};
_.e.closeOnOutsideClickHandler=function(){};
_.e.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.Fc(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.e.openOnClickHandler=function(){};
_.e.showInputChanged=function(){};
_.e.setShowInput=function(f){this.showInput=f};
ZQ.prototype.setShowInput=ZQ.prototype.setShowInput;ZQ.prototype.showInputChanged=ZQ.prototype.showInputChanged;ZQ.prototype.openOnClickHandler=ZQ.prototype.openOnClickHandler;ZQ.prototype.openOnClick_=ZQ.prototype.openOnClick_;ZQ.prototype.closeOnOutsideClickHandler=ZQ.prototype.closeOnOutsideClickHandler;ZQ.prototype.closeOnOutsideClickCondition=ZQ.prototype.closeOnOutsideClickCondition;ZQ.prototype.closeOnOutsideClick_=ZQ.prototype.closeOnOutsideClick_;ZQ.prototype.stopPropagation_=ZQ.prototype.stopPropagation_;
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],ZQ.prototype,"showInput",void 0);_.N([_.Vg("click"),_.Vg("keydown"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],ZQ.prototype,"stopPropagation_",null);_.N([_.JO("showInput"),_.Z("design:type",Function),_.Z("design:paramtypes",[Boolean]),_.Z("design:returntype")],ZQ.prototype,"showInputChanged",null);_.N([_.iu()],ZQ);_.qKu=[ZQ.prototype];var $cz;var Qsu;var tG=function(){return _.I.apply(this,arguments)||this};
_.q(tG,_.I);_.e=tG.prototype;_.e.computePreselectedOption=function(f,S){return S===this.itemSelected_?f:void 0};
_.e.dataChanged_=function(){var f=this;this.preselectedSubreason=this.itemSelected_=-1;var S;(S=this.data)!=null&&S.key&&_.ui(this,function(){var B,G=Number((B=f.data)==null?void 0:B.key);!Number.isNaN(G)&&(f.itemSelected_=G,B=(B=(f.data.items||[])[G])&&B.optionSelectableItemRenderer&&B.optionSelectableItemRenderer.preselectedIndex)&&(f.preselectedSubreason=B)})};
_.e.isSubReasonHidden_=function(f,S){return f!=S};
_.e.onTopItemSelected_=function(f,S){for(var B=_.m9(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),G=0,g=B.length;G<g;G++)B[G].select(0);_.bW(this.hostElement,"yt-report-form-update",[S.item.value]);f.stopPropagation()};
_.e.onItemSelected_=function(f,S){_.bW(this.hostElement,"yt-report-form-update",[S.item.value]);f.stopPropagation()};
_.e.getItem_=function(f){return f.serviceItem?f.serviceItem:f.navigationItem?f.navigationItem:f.optionSelectableItemRenderer?f.optionSelectableItemRenderer:null};
_.e.computeText_=function(f){return(f=this.getItem_(f))?this.ytRendererBehavior.getSimpleString(f.text):null};
_.e.validate=function(){return this.itemSelected_!==-1};
_.e.computeAriaLabel_=function(f){var S=_.ac(f.text);(f=f.accessibility&&f.accessibility.accessibilityData&&f.accessibility.accessibilityData.label)&&(S+=". "+f);return S};
_.e.computeItemSelected_=function(f){return f};
_.e.preventSelection_=function(f){f.stopPropagation();this.tooltipTapped=!0};
_.e.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.e.updateItemSelectedFromBinding=function(f){this.itemSelected_=f.detail.value};
_.e.save=function(){var f;this.validate()&&(f=this.data)!=null&&f.items&&(f=this.data.items[this.itemSelected_],f!=null&&f.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(f.optionSelectableItemRenderer.submitEndpoint)||_.RD(this.hostElement,[f.optionSelectableItemRenderer.submitEndpoint])))};
tG.prototype.onPaperRippleTransitionEnd_=tG.prototype.onPaperRippleTransitionEnd_;tG.prototype.dataChanged_=tG.prototype.dataChanged_;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],tG.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],tG.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],tG.prototype,"data",void 0);_.N([_.n({value:-1}),_.Z("design:type",Number)],tG.prototype,"itemSelected_",void 0);
_.N([_.n({computed:"computeItemSelected_(itemSelected_)"}),_.Z("design:type",Number)],tG.prototype,"value",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],tG.prototype,"restoreFocusOnClose",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],tG.prototype,"tooltipTapped",void 0);_.N([_.n({value:-1}),_.Z("design:type",Number)],tG.prototype,"preselectedSubreason",void 0);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tG.prototype,"dataChanged_",null);_.N([_.Vg("transitionend"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tG.prototype,"onPaperRippleTransitionEnd_",null);_.N([_.nP({is:"yt-options-renderer",disableElementRegistration:!0})],tG);
_.p(tG,"yt-options-renderer",function(){if(Qsu===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;$cz===void 0&&($cz=document.createElement("template"));var G=$cz;B.call(S,G.content.cloneNode(!0),f.content.firstChild);Qsu=f}f=Qsu;return f},{mode:2});var YKM;var rmB;var jsO;var OQo;var xcn;var EdX;var u$=function(){return _.I.apply(this,arguments)||this};
_.q(u$,_.I);u$.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
u$.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
u$.prototype.onTap=function(f){if(this.hostElement.classList.contains("selected")||_.zZ(this.hostElement,"yt-share-panel-can-select-contact-action"))f&&f.detail&&(f.detail.x||f.detail.y)&&_.m9(this.hostElement).querySelector("#target").blur(),(f=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),f={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:f?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.bW(this.hostElement,"yt-share-panel-select-contact-action",[f])};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],u$.prototype,"ytRendererBehavior",void 0);_.N([_.n({observer:"onDataChanged"}),_.Z("design:type",Object)],u$.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.Z("design:type",String)],u$.prototype,"componentTitle",void 0);_.N([_.vF("#thumbnail"),_.Z("design:type",Object)],u$.prototype,"thumbnail",void 0);_.N([_.nP({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],u$);
_.p(u$,"yt-enrolled-contact-renderer",function(){if(EdX===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;xcn===void 0&&(xcn=document.createElement("template"));var G=xcn;B.call(S,G.content.cloneNode(!0),f.content.firstChild);EdX=f}f=EdX;return f},{mode:2});var LrZ;var kTn;var ad=function(){return _.I.apply(this,arguments)||this};
_.q(ad,_.I);ad.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
ad.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
ad.prototype.onTap=function(f){if(this.hostElement.classList.contains("selected")||_.zZ(this.hostElement,"yt-share-panel-can-select-contact-action"))f&&f.detail&&(f.detail.x||f.detail.y)&&_.m9(this.hostElement).querySelector("#target").blur(),(f=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),f={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:f?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.bW(this.hostElement,"yt-share-panel-select-contact-action",[f])};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],ad.prototype,"ytRendererBehavior",void 0);_.N([_.n({observer:"onDataChanged"}),_.Z("design:type",Object)],ad.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.Z("design:type",String)],ad.prototype,"componentTitle",void 0);_.N([_.vF("#thumbnail"),_.Z("design:type",Object)],ad.prototype,"thumbnail",void 0);_.N([_.nP({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],ad);
_.p(ad,"yt-suggested-contact-renderer",function(){if(kTn===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;LrZ===void 0&&(LrZ=document.createElement("template"));var G=LrZ;B.call(S,G.content.cloneNode(!0),f.content.firstChild);kTn=f}f=kTn;return f},{mode:2});var yA=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-share-panel-reset-action":"onReset"};return f};
_.q(yA,_.I);yA.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"}}}}}};
yA.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.bW(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
yA.prototype.onReset=function(){for(var f=_.m9(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),S=f.length-1;S>=0;S--)f[S].classList.toggle("selected")};
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],yA.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],yA.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],yA.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n({observer:"onDataChanged"}),_.Z("design:type",Object)],yA.prototype,"data",void 0);
_.N([_.nP({is:"yt-contact-section-renderer",disableElementRegistration:!0})],yA);
_.p(yA,"yt-contact-section-renderer",function(){if(OQo===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;jsO===void 0&&(jsO=document.createElement("template"));var G=jsO;B.call(S,G.content.cloneNode(!0),f.content.firstChild);OQo=f}f=OQo;return f},{mode:2});var Wp=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return f};
_.q(Wp,_.I);_.e=Wp.prototype;_.e.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"}}}};
_.e.onYtRefreshFormCommand=function(f){var S;(f=_.H((S=_.H(f,_.LGv))==null?void 0:S.formRenderer,HQu))&&this.set("data",f)};
_.e.reset=function(){var f=_.m9(this.hostElement).querySelector("#fields").children;f=_.m(f);for(var S=f.next();!S.done;S=f.next())S=S.value,S.reset&&S.reset()};
_.e.getForm=function(){var f={},S=_.m9(this.hostElement).querySelector("#fields").children;S=_.m(S);for(var B=S.next();!B.done;B=S.next()){B=B.value;if(!B.validate())return null;f[B.data.key]=B.value}return f};
_.e.submitFormFields=function(){if(this.fields)for(var f=_.m(this.fields),S=f.next();!S.done;S=f.next())S=S.value,S.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?S.save():S.nodeName==="YT-OPTIONS-RENDERER"&&S.save()};
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],Wp.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Wp.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Wp.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Wp.prototype,"data",void 0);_.N([_.KP("#fields > *"),_.Z("design:type",Array)],Wp.prototype,"fields",void 0);
_.N([_.nP({is:"yt-form-renderer",disableElementRegistration:!0})],Wp);
_.p(Wp,"yt-form-renderer",function(){if(rmB===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;YKM===void 0&&(YKM=document.createElement("template"));var G=YKM;B.call(S,G.content.cloneNode(!0),f.content.firstChild);rmB=f}f=rmB;return f},{mode:2});var ndB;var cp=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return f};
_.q(cp,_.I);cp.prototype.onCheckboxChange=function(f){this.data&&(f=(this.checked=_.lt(f).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.oy().resolve(_.S7).resolveCommand(f,{form:{element:this.hostElement}})};
cp.prototype.handleUpdateCheckboxCommand=function(f){(f=_.H(f,_.y$$))&&this.data&&this.data.id===f.id&&(this.set("data.disabled",f.disabled),this.set("data.title",f.title))};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],cp.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],cp.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],cp.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Boolean)],cp.prototype,"checked",void 0);_.N([_.C({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],cp);
_.p(cp,"ytd-settings-checkbox-renderer",function(){if(ndB!==void 0)return ndB;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return ndB=f},{mode:1});var sso;var l$=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return f};
_.q(l$,_.I);l$.prototype.dataChanged=function(){var f=this,S;return _.R(function(B){if(B.nextAddress==1)return f.radio.removeAttribute("checked"),!f.data||!f.data.id||f.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.VNO()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(S=f.data&&f.data.id)?_.h(B,PJB(f.data.id),4):B.jumpTo(3):(f.set("data.hidden",!0),B.jumpTo(0));B.nextAddress!=3&&(S=B.yieldResult);S&&_.bW(f.hostElement,"yt-select-settings-radio-option",[f.data.id]);_.TT(B)})};
l$.prototype.onButtonChanged=function(f){_.lt(f).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.oy().resolve(_.S7).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.bW(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
l$.prototype.onSelectOption=function(f){this.data&&this.data.id&&(this.data.id===f?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
l$.prototype.dataChanged=l$.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],l$.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],l$.prototype,"ytActionHandlerBehavior",void 0);_.N([_.vF("#radio"),_.Z("design:type",Object)],l$.prototype,"radio",void 0);_.N([_.n(),_.Z("design:type",Object)],l$.prototype,"data",void 0);
_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype",Promise)],l$.prototype,"dataChanged",null);_.N([_.C({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],l$);
_.p(l$,"ytd-settings-radio-option-renderer",function(){if(sso!==void 0)return sso;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return sso=f},{mode:1});var DcZ;var fE=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return f};
_.q(fE,_.I);
fE.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"}}}};
fE.prototype.handleUpdateTextCommand=function(f){(f=_.H(f,_.WG1))&&this.data&&this.data.id===f.id&&this.set("data",f)};
fE.prototype.handleUpdateConnectedAppRendererCommand=function(f){if(_.H(f,_.f$N)&&this.data){var S,B;if(f=(S=_.H(f,_.f$N))==null?void 0:(B=S.newConnectedAppRenderer)==null?void 0:B.connectedAppRenderer)this.data=f}};
fE.prototype.computeConnectedAppStyle=function(f){return f.style?f.style.toLowerCase().replace(/_/g,"-"):""};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],fE.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],fE.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],fE.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],fE.prototype,"data",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.Z("design:type",String)],fE.prototype,"connectedAppStyle",void 0);_.N([_.C({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],fE);
_.p(fE,"ytd-connected-app-renderer",function(){if(DcZ!==void 0)return DcZ;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return DcZ=f},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.xA("iuT5Oc");

_.Eb();
}catch(e){_._DumpException(e)}
try{
_.xA("L3n37");
var o1M=function(f){return f.watch.isLearningJourneyActive},SO$=_.Eo(115994),B2M=_.Eo(115993),GKY=function(f,S,B){var G=this;
var g=B.dragDownAction;this.layer=0;this.JSC$20576_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return G.dragDownAction()}}}};
this.JSC$20576_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return G.dragDownAction()}}}};
this.fullscreen=!1;var b=_.ik();_.wY(b,SO$,this.layer);_.wY(b,B2M,this.layer);this.dragDownAction=function(){g();_.M1(b,{visualElement:G.fullscreen?SO$:B2M})};
this.gesture=new _.wq(f,S,this.JSC$20576_watchConfig,"pandown");this.attach()};
GKY.prototype.attach=function(){this.gesture.attach()};
GKY.prototype.detach=function(){this.gesture.detach()};
GKY.prototype.update=function(f){this.fullscreen=f;this.gesture.config=f?this.JSC$20576_watchFullScreenConfig:this.JSC$20576_watchConfig};var g1Z=function(f){_.cT.call(this);var S=this;this.rootElement=f;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return S.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(B){S.initOrDisposeActiveModules(B)}));
this.onAttached()};
_.q(g1Z,_.cT);_.e=g1Z.prototype;_.e.getRoot=function(){return this.rootElement};
_.e.getElement=function(f){return this.rootElement.getElement(f)};
_.e.setPlayerResponse=function(f){this.playerResponse=f;this.publish("PLAYER_RESPONSE_UPDATED",f)};
_.e.getPlayerResponse=function(){return this.playerResponse};
_.e.setWatchNextResponse=function(f){this.watchNextResponse===f?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=f,this.publish("WATCH_NEXT_RESPONSE_UPDATED",f))};
_.e.getWatchNextResponse=function(){return this.watchNextResponse};
_.e.registerActionHandler=function(f,S){var B=this;if(_.K("web_watch_controller_reg_multiple_handlers_killswitch")){var G={};_.N6(_.AE.getInstance(),(G[f]=S,G),this.getRoot())}else this.actionHandlers.has(f)||(this.actionHandlers.set(f,[]),G={},_.N6(_.AE.getInstance(),(G[f]=function(){var g=_.qb.apply(0,arguments);return(B.actionHandlers.get(f)||[]).map(function(b){return b.apply(null,_.$d(g))})},G),this.getRoot())),this.actionHandlers.get(f).push(S)};
_.e.unregisterActionHandler=function(f){if(_.K("web_watch_controller_reg_multiple_handlers_killswitch")){var S={};_.M6(_.AE.getInstance(),(S[f]=!0,S),this.getRoot())}else(S=this.actionHandlers.get(f))?(S.pop(),S.length===0&&(S={},_.M6(_.AE.getInstance(),(S[f]=!0,S),this.getRoot()),this.actionHandlers.delete(f))):_.Lg(new _.dO("Attempted to unregister an action handler which is not registered.",f))};
_.e.addPageDisposeJob=function(f){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.ZN(this.rootElement.pageDisposeJobs,f)};
_.e.removePageDisposeJob=function(f){this.rootElement.pageDisposeJobs&&_.uK(this.rootElement.pageDisposeJobs,f)};
_.e.dispatchEvent=function(f,S){_.ew(this.rootElement,f,S)};
_.e.provideRenderingData=function(f,S){this.rootElement.provideRenderingData(f,S)};
_.e.scrollWatchTo=function(f,S){var B;(B=this.watchScrollManager)==null||B.scrollWatchTo(f,S)};
_.e.focusOnPlayer=function(){var f=this.getElement("PLAYER");_.ui(f,function(){if(f&&f.firstElementChild){var S=f.querySelector(".html5-video-player");S&&(_.WX(_.oy().resolve(_.k8)),S.focus())}else _.Lg(Error("mm"))})};
_.e.updateCinematicFullscreenConfig=function(){var f=!!this.rootElement.theater,S=!!this.rootElement.fullscreen,B;(B=this.watchCinematicManager)==null||_.oEX(B,S,f)};
_.e.subscribeToActiveChanged=function(f,S){S=S===void 0?!0:S;var B=_.KD(_.W2(),o1M,function(G){f(G)});
S&&f(o1M(_.W2().getState()));return B};
_.e.isActive=function(){return o1M(_.W2().getState())};
_.e.onAttached=function(){var f=_.K("external_fullscreen");_.K("use_unified_flag_accessor")&&(f=_.oy().resolve(_.J1O).retriever.getFlag(_.fMv));(f||_.s6("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.e.initPersistentModules=function(){if(_.K("kevlar_watch_flexy_theater_manager")){var f=new _.j3e(this);_.ha(this,f)}f=new _.TlX(this);_.ha(this,f);f=new _.rG(this);_.ha(this,f);f=new _.nA(this);_.ha(this,f);f=new _.AtB(this);_.ha(this,f);f=new _.O5(this);_.ha(this,f);_.K("kevlar_watch_flexy_playlist_manager")&&(f=new _.Zqu(this),_.ha(this,f))};
_.e.initOrDisposeActiveModules=function(f){f?(this.watchScrollManager=new _.Dm(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.rt2(this)),this.activeModules.push(new _.L3z(this)),this.activeModules.push(new _.ctO(this)),this.activeModules.push(new _.s5(this)),_.K("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.D0e(this)),this.activeModules.push(new _.kLo(this)),_.K("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.fAY(this)),
_.K("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.ZhY(this)),_.K("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.WMO(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.K("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.Ihu(this)),_.K("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.wkY(this)),f=_.K("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.K("kevlar_watch_flexy_comments_manager")&&!f&&this.activeModules.push(new _.bq2(this)),_.K("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.jJ(this)),this.activeModules.push(new _.DPZ(this)),this.activeModules.push(new _.Oqz(this)),_.K("web_enable_timely_actions")&&this.activeModules.push(new _.p$2(this)),_.K("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.R8o(this)),_.K("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.ou$(this)),
_.K("web_fullscreen_components")&&this.activeModules.push(new _.p6B(this)),_.K("web_player_rtr_ctrls")&&this.activeModules.push(new _.w$n(this))):(_.lB(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.e.disposeInternal=function(){_.cT.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.y3.Object.defineProperties(g1Z.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var ewY={},bBz=["learning-journey-engagement-panel","PAlearning_chat"];
ewY.YtdLearningJourneyWatchBehavior=[_.c.YtRendererBehavior,_.Nr.YtPlayerListenerBehavior,_.ey.YtRendererstamperBehavior,_.b3.YtActionHandlerBehavior,_.Yu.YtPageBehavior,_.Pl.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 _.s6("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.K("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 _.s6("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 _.K("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.K("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 _.Gt("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.Gt("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!_.K("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.K("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 _.K("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("web_watch_rounded_player_large")||_.K("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 _.K("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.K("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("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 _.K("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);updateChatLocation(liveChatPresentAndExpanded);watchNextSecondaryResultsChanged(data)".split(";"),monitorScroll:!0,configureRendererStamper:function(){return{info:{id:"info-contents",
mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",
properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},
tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},
clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},
initialRenderPriority:3,waitForSignal:_.ky(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.ky(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0,learningChatEngagementPanel:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var f=this;this.watchController=void 0;this.pageDisposeJobs=[function(){f.showMetadataPlaceholder_()},
function(){_.K("web_watch_dont_clear_comments")||f.clearComments_()},
function(){f.clearPlayerAds_()},
function(){f.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;_.K("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.K("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.LJB(function(){return _.SW(f)},this.hostElement);
this.pageDisposeJobs.push(function(){f.youThereManager_.reset()});
_.K("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){f.resetFullerscreenEduButtonForNewPlayback_()}));
_.K("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.XY;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;_.K("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.K("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));_.K("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Fc(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(f){f&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:f}),f.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(f){_.K("kevlar_watch_flexy_theater_manager")&&(this.theater=f,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.K("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(f){!_.K("kevlar_watch_while_v2")&&!_.K("web_watch_pip")||f||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(f){this.active!==void 0&&(this.fullscreen=f,_.K("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(f){this.active!==void 0&&(_.ew(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.K("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.K("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(f>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(f){this.initCsi_();this.updatePageData_(f)},
updatePageData_:function(f){var S=this;if(f)if(this.data===f){this.onPageLoadWithSameData_();var B;(B=this.watchController)==null||B.setWatchNextResponse(this.data)}else this.data=f;this.playlist&&_.EL({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.kT("nw");this.loading=!1;_.q6(_.xJ,function(){S.initDclkstatus_();var G,g=((G=S.player)==null?void 0:G.getVideoData().cpn)||"";_.v72(function(b,z){_.RPX(b,z,g)})})},
onPageLoadWithSameData_:function(){_.K("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 f=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!f);this.set("loadingData.playlistLoading",f&&f!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),f=this.watchNextSkeletonEl_.firstElementChild;f;)f.classList.remove("hidden"),f=f.nextElementSibling;var S,B,G;f=(S=this.loadingData)==null?void 0:(B=S.endpoint)==null?void 0:(G=B.watchEndpoint)==null?void 0:G.videoId;var g;f&&(g="https://i.ytimg.com/vi/"+f+"/frame0.jpg");_.m9(this.hostElement).querySelector("#player").style.backgroundImage=g?"url("+g+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var f=_.m9(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&f&&(f.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var S,B;(B=(S=this.watchMetadata).updateSentimentBarWidth)==
null||B.call(S);var G,g;(g=(G=this.watchMetadata).resize)==null||g.call(G)}_.m9(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(f){var S=_.m9(this.hostElement).querySelector(f);S?_.GZ(S,!1):_.Lg(new _.dO("Overscroll monitor not found for component: ",f))},
removeSplitScrollMouseTrap:function(f){var S=_.m9(this.hostElement).querySelector(f);S?_.gh(S):_.Lg(new _.dO("Disposal component for  overscroll monitoring not found: ",f))},
onLoadingChanged_:function(f){f?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(f){var S=this;f?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.xJ.addLowPriorityJob(function(){S.onWindowResized_(_.$G(!0))})},
updateTheaterModeState_:function(f){if(!_.K("kevlar_watch_flexy_theater_manager")){f=f||this.fullWindowMode_;if(this.theater!==void 0||f)this.theater=f;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();f&&_.O$2()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var f=this.theater;_.K("external_fullscreen")&&this.fullscreen&&(f=!0);f=f?_.m9(this.hostElement).querySelector("#player-full-bleed-container"):_.m9(this.hostElement).querySelector("#player-container-inner");var S=this.getPlayerContainer(),B=_.K("kevlar_watch_while_v2")||_.K("web_watch_pip");S.parentElement!==f&&(B&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.SW(this).appendTo(f,S),f.appendChild(_.m9(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var f=this;return _.R(function(S){if(S.nextAddress==1)return _.h(S,_.oy().resolve(_.N_).deactivate(),2);f.updatePlayerLocation();_.TT(S)})},
updateCinematicsLocation:function(){var f=this.getElement("CINEMATICS");if(f){var S=this.getCinematicsLocationContainer();f.parentElement!==S&&S.appendChild(f);var B;(B=this.watchController)==null||B.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.m9(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.m9(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(f,S){var B=document.documentElement.hasAttribute("dark"),G=B&&_.K("web_cinematic_theater_mode"),g=B&&_.K("web_cinematic_fullscreen");B=!B&&this.cinematicLightTheme;return f&&G||S&&g||(S||f)&&B},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var f;(f=this.watchController)==null||f.setWatchNextResponse(this.data);_.K("kevlar_watch_flexy_comments_manager")||this.initComments_();_.K("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.oy().resolve(_.Dr).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.K("web_watch_start_chat_in_theater_mode")){var S,
B,G;if((S=this.data)==null?0:(B=S.contents)==null?0:(G=B.twoColumnWatchNextResults)==null?0:G.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var g,b;((g=this.data)==null?0:(b=g.contents)==null?0:b.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(f){var S;(S=this.watchController)==null||S.setPlayerResponse(this.playerData);f&&f.playabilityStatus&&(S=this.isVideoPlayable_(f.playabilityStatus,this.getPlayerOverlays_(this.data)),f=this.isLiveStreamOffline_(f.playabilityStatus),S&&!f||_.ui(this,function(){_.kT("pbu")}));
this.setPlayerAds_();_.mU(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(f){_.W2().dispatch(_.ef({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));f?this.activate_():this.deactivate_()},
attached:function(){var f=this;this.watchController=new g1Z(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.K("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var S=_.SW(this);_.K("kevlar_disable_prepare_player")||S.preparePlayer();_.K("kevlar_watch_flexy_playlist_manager")||_.oy().resolve(_.Dr).setPlayer(S);this.updatePageMediaQueries();S={"--ytd-watch-flexy-scrollbar-width":_.xy()+
"px"};!_.Gt("kv_pl_mx_sz_ks")&&_.Gt("kevlar_watch_max_player_width")&&(S["--ytd-watch-flexy-max-player-width-wide-screen"]=_.VMz+"px");_.Gt("kevlar_watch_flexy_metadata_height")&&(S["--ytd-watch-flexy-space-below-player"]=_.Jbz+"px");this.safeUpdateStyles(S);_.K("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new GKY(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return f.onPlayerTouchPanDown_()}}));
_.K("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.m9(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var f=_.xy(),S=_.DA+f,B=S;this.fixedPanels&&(S+=_.FPO);var G=657+f;f=1327+f;_.m9(this.hostElement).querySelector("#two-column-query").query="(min-width: "+S+"px)";_.m9(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(G+"px), (min-height: 630px) and (min-width: ")+(S+"px) and (max-width: ")+(f+"px)");_.m9(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(f+"px)");
_.m9(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+B+"px)"},
calculateCurrentPlayerSize_:function(){var f=_.m9(this.hostElement).querySelector("#miniplayer-bar").firstChild;return f&&f.active||this.theater||_.K("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.Xr(NaN,NaN):_.Ah(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.Ah(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.cd(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var f=this;this.onWindowResized_(_.$G());_.K("browse_skeleton_removal_on_watch_killswitch")||_.s6("IS_SHELL_LOAD")&&_.KFe();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var S=_.SW(this);S.addEventListener("yt-player-updated",_.Fc(this,this.onPlayerUpdated_));S.getPlayerPromise().then(function(B){f.playerApiReady_(B)});
_.K("kevlar_watch_flexy_playlist_manager")||(S=_.oy().resolve(_.Dr),_.K("kevlar_watch_observe_playlist_navigations_killswitch")&&S.addEventListener("yt-navigate",_.Fc(this,this.onYtNavigate_)),S.setPlaylistComponent(_.m9(this.hostElement).querySelector("#playlist")),S.addEventListener("yt-playlist-data-updated",_.Fc(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.xJ.addLowPriorityJob(function(){_.ew(f.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.SW(this).removeEventListener("yt-player-updated",_.Fc(this,this.onPlayerUpdated_));if(!_.K("kevlar_watch_flexy_playlist_manager")){var f=_.oy().resolve(_.Dr);_.K("kevlar_watch_observe_playlist_navigations_killswitch")&&f.removeEventListener("yt-navigate",_.Fc(this,this.onYtNavigate_));f.cancelVideoSkip();f.removeEventListener("yt-playlist-data-updated",_.Fc(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.K("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.ew(this.hostElement,"yt-autonav-pause-player",!1);f=_.Sw();_.K("kevlar_exit_fullscreen_leaving_watch")&&f&&_.BK(f)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(f){this.player&&this.player.updateVideoData({rvs:f.rvs})},
getPageContents:function(f){return f&&f.contents&&f.contents.twoColumnWatchNextResults&&f.contents.twoColumnWatchNextResults.results&&f.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(f){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",f)},
onRetrieveLocation_:function(f,S){S.hasComments?S.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):S.locationRetrieved("/related_ajax",void 0);f.stopPropagation()},
onSubscriptionChanged_:function(f,S){this.player&&(S?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.QS("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.m9(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.m9(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(f){this.player=f;this.setPlayerState(f.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.K("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.K("kevlar_unified_player")||_.K("kevlar_player_new_bootstrap_adoption"))&&_.l1()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(f,S){S=S===void 0?!0:S;_.Sw()&&_.K("external_fullscreen")&&_.BK(document.documentElement);this.theaterRequested_=f;S&&_.JY("wide",f?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.K("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.bW(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.ew(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(f){_.kH(f,typeof this.player),this.player&&_.kH(f,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var f;((f=this.player)==null?0:f.isFullscreen())?this.player.toggleFullscreen():_.bW(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(f,S){return this.loading?S:!!Object.keys(f).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(f){if(f){f=_.m(f);for(var S=f.next();!S.done;S=f.next())S=S.value,S.youThereRenderer&&_.sWn(this.youThereManager_,S.youThereRenderer)}},
setPlaylistData_:function(f){return f||{}},
userEngagementConfigDataChanged_:function(f){if(f)if(f.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var S=this.youThereManager_;_.or()<f.lowEngagementThresholdMs||_.C2Z(S,!0)}else f.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.bW(this.hostElement,"yt-autonav-pause-user-engagement",[f])},
isPlayerUnavailable_:function(f,S,B){return!!f&&!this.isVideoPlayable_(f,B)&&!S},
getPlayerOverlays_:function(f){return(f==null?void 0:f.playerOverlays)||null},
isVideoPlayable_:function(f,S){if(!f)return!1;var B=f.status==="OK"||f.status==="LIVE_STREAM_OFFLINE",G=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",f)||this.get("errorScreen.ypcTrailerRenderer",f);f=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",f);var g;S=S==null?void 0:(g=S.playerOverlayRenderer)==null?void 0:g.gatedActionsOverlayRenderer;return!!B||!!G||!!f||!!S},
hasWatchNextResponseErrorRenderer:function(f){var S=this.getPageContents(f),B,G,g,b,z;return!(f==null?0:(B=f.contents)==null?0:(G=B.twoColumnWatchNextResults)==null?0:G.secondaryResults)&&!!((g=S[0])==null?0:(b=g.itemSectionRenderer)==null?0:(z=b.contents[0])==null?0:z.backgroundPromoRenderer)},
isLiveStreamOffline_:function(f){return f?f.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(f,S,B){var G=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",S),g=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];g=_.K("web_no_skip_video_on_verification_checks")?(f==null?void 0:f.status)&&g.includes(f.status):f&&f.status==="AGE_CHECK_REQUIRED";var b=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",f);b==void 0&&(b=!0);!B||this.isVideoPlayable_(f,this.getPlayerOverlays_(S))||
G||g||!b||_.oy().resolve(_.Dr).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.$YM()},
onPlayerFeedbackStartRequest_:function(f){_.bW(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:f}])},
onPlayerFeedbackArticleRequest_:function(f){_.bW(this.hostElement,"yt-help-dialog-requested",[f])},
onPlayerYpcContentRequest_:function(){var f,S,B,G,g,b,z,X,w=((f=this.data)==null?NaN:(S=f.contents)==null?NaN:(B=S.twoColumnWatchNextResults)==null?NaN:(G=B.secondaryResults)==null?NaN:(g=G.secondaryResults)==null?NaN:(b=g.offerModule)==null?NaN:(z=b.tvfilmOfferModuleRenderer)==null?NaN:(X=z.actionButtons)==null?NaN:X.length)-1;f=[".offerButton.buttonRenderer.",".actionButtons."+(w>=0?w:0)+".buttonRenderer."];S=_.m(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(B=S.next();!B.done;B=S.next())for(B=B.value,G=_.m(f),g=G.next();!g.done;g=G.next())if(g="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+B+g.value,g=this.get(g+"navigationEndpoint",this.data)||this.get(g+"serviceEndpoint",this.data)||this.get(g+"command",this.data)){_.Ps(g,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(f){_.ew(this.hostElement,"yt-autonav-pause-player",f)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(f){f()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(f){switch(f){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(f){switch(f){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.ew(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(f)},
setPlayerState:function(f){_.W2().dispatch(_.W4m(f))},
onPlayerSubscribe_:function(f){_.bW(this.hostElement,"yt-player-subscribe",[f])},
onPlayerUnsubscribe_:function(f){_.bW(this.hostElement,"yt-player-unsubscribe",[f])},
onPlayerAdYtShowToast_:function(f){_.bW(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:f.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(f){if(f)return f},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(f){return!_.K("web_watch_move_summary_to_sd")&&!!f},
computeWatchMetadataRefresh:function(){return _.K("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var f,S,B,G;this.watchNextSecondaryResults=(f=this.data)==null?void 0:(S=f.contents)==null?void 0:(B=S.twoColumnWatchNextResults)==null?void 0:(G=B.secondaryResults)==null?void 0:G.secondaryResults}},
setRichGridRendererData:function(f){this.richGridRendererData=f},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var f,S=(f=this.data)==null?void 0:f.engagementPanels;if(S==null?0:S.length){f=null;S=_.m(S);for(var B=S.next();!B.done;B=S.next()){B=B.value;var G=void 0;if(((G=B.engagementPanelSectionListRenderer)==null?void 0:G.targetId)==="engagement-panel-structured-description"){f=B;break}}var g,b,z;f=(g=f)==null?void 0:(b=g.engagementPanelSectionListRenderer)==null?void 0:(z=b.content)==null?void 0:z.structuredDescriptionContentRenderer;if(f==null?0:f.items){g=
[];b=_.m(f.items);for(z=b.next();!z.done;z=b.next()){z=z.value;if(!_.K("sd_horizontal_list_show_nav_killswitch")){var X=G=B=S=f=void 0,w=void 0,F=(f=z.horizontalCardListRenderer)==null?void 0:(S=f.header)==null?void 0:(B=S.richListHeaderRenderer)==null?void 0:(G=B.navigationButton)==null?void 0:(X=G.buttonRenderer)==null?void 0:(w=X.command)==null?void 0:w.commandExecutorCommand;F&&F.commands&&(F.commands=F.commands.filter(function(V){return!_.H(V,_.xQu)}))}z.expandableVideoDescriptionBodyRenderer||
z.videoDescriptionHeaderRenderer||g.push(z)}return{items:g}}}},
constructWarning_:function(f){return{text:_.uC(f),type:"WARNING"}},
isPlaShelfEnabled_:function(f){if((this.get("adPlacements",f)||[]).length)return!0;f=this.get("playerAds",f)||[];return!(!f.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",f[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var f=this;_.ew(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.K("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var S=this.getScrollTop()>0;this.gestures_&&(S?this.gestures_.detach():this.gestures_.attach());S!==this.showFullerscreenEdu_&&_.K("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=S,_.SW(this).getPlayerPromise().then(function(B){B.updateFullerscreenEduButtonVisibility(f.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.ew(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var f=this;this.commentsReady=!1;_.xJ.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.q6(_.xJ,function(){f.setComments_()},1E3)},
setComments_:function(){if(!_.K("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.kT("cmi");_.xJ.cancelJob(this.setCommentsJobId_);var f=this.getPageContents(this.data);if(f&&f.length){f=_.m(f);for(var S=f.next();!S.done;S=f.next())if(S=S.value,this.get("itemSectionRenderer.sectionIdentifier",S)==="comment-item-section"){this.comments=S.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.ew(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.K("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.K("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.kT("cmc")},
doRemoveComments_:function(){this.comments={};_.K("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.xJ.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.xJ.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(f,S){var B=_.H(S.endpoint,_.t2);B&&(!(S=this.get("data.currentVideoEndpoint.watchEndpoint"))||B.videoId!==S.videoId||B.playlistId&&B.playlistId!==S.playlistId||B.index!==void 0&&B.index!==S.index||typeof B.startTimeSeconds!=="number"||(f.stopPropagation(),this.setScrollTop(0),_.SW(this).getPlayerPromise().then(function(G){var g=B.startTimeSeconds;G.seekTo(g);G.wakeUpControls();g<G.getDuration()&&G.playVideo()})))},
updatePlayerStartTime_:function(){var f=_.RVu();"t"in f&&(f=_.qs2(f.t),this.player.seekTo(f,!0))},
updateTitleFromWatchNext:function(f){f=this.getPageContents(f);var S,B;(f=_.ac(f==null?void 0:(S=f[0])==null?void 0:(B=S.videoPrimaryInfoRenderer)==null?void 0:B.title))&&_.ew(this.hostElement,"yt-update-title",f)},
updateTitle_:function(f){f=this.get("videoDetails.title",f)||"";_.ew(this.hostElement,"yt-update-title",f)},
syncWithRemoteVideo_:function(f,S,B){if(this.active&&this.player){var G=this.player.getVideoData();if(G.video_id===B&&(B=G.list,_.K("polymer_enable_mdx_queue")&&B&&B.startsWith("RQ")&&(B=void 0),G.video_id!==f||B!=S)){var g;_.K("kevlar_player_watch_endpoint_navigation")?g=_.jxx(_.KJz(f,S)):g=this.buildWatchEndpoint_(f,S);_.ew(this.hostElement,"yt-navigate",{endpoint:g,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(f,S,B){return _.Sf(f,S,B)},
initDclkstatus_:function(){_.HZu()},
attachWatchPageSkeleton_:function(){var f=document.querySelector("#watch-page-skeleton");if(f){var S=f.querySelector("#primary-info"),B=f.querySelector("#secondary-info"),G=f.querySelector("#related");S&&_.m9(this.hostElement).querySelector("#info-skeleton").appendChild(S);B&&_.m9(this.hostElement).querySelector("#meta-skeleton").appendChild(B);G&&(_.m9(this.hostElement).querySelector("#related-skeleton").appendChild(G),this.watchNextSkeletonEl_=G);_.Pv(f)}},
handlePlayerUpdated_:function(){_.SW(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(f,S){if(this.watchNextSkeletonEl_&&typeof S!=="undefined"){var B=this.watchNextSkeletonEl_.children,G=f&&f.indexSplices.length?f.indexSplices[0].index:0;f=Math.min(this.watchNextShownItems.length,B.length);S||(G=0,f=B.length);for(S=G;S<f;S++)B[S].classList.add("hidden")}},
onPlayerFullscreenChange_:function(f){_.K("external_fullscreen")||_.bW(this.hostElement,"yt-player-fullscreen",[f.fullscreen])},
onFullscreenChange_:function(f){this.fullscreen=f;this.gestures_&&this.gestures_.update(this.fullscreen);var S=_.SW(this);S.getPlayerPromise().then(function(B){B.setFauxFullscreen(!!_.Sw())});
this.updateFullBleedElementLocations();f&&(S.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(f,S){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!S},
computeIsDonationShelfCollapsed_:function(f){return f},
computeShouldShowMerchShelf:function(f,S){return S&&!!f},
computeResponseHasComments:function(f){var S,B,G,g,b;return!!(f==null?0:(S=f.contents)==null?0:(B=S.twoColumnWatchNextResults)==null?0:(G=B.results)==null?0:(g=G.results)==null?0:(b=g.contents)==null?0:b.some(function(z){var X;return(z==null?void 0:(X=z.itemSectionRenderer)==null?void 0:X.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(f,S){this.responseHasComments=this.computeResponseHasComments(this.data);return!!f&&!!Object.keys(f).length&&!S},
identity:_.IT,onWindowResized_:function(f){this.windowSize_=f;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.K("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.K("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(f){var S=this;f&&f.type!=="dataloaded"&&f.type!=="dataupdated"||_.SW(this).getPlayerPromise().then(function(B){var G=B.getPlayerState();G!==5&&G!==0&&(B=1/B.getVideoAspectRatio(),S.videoHeightToWidthRatio_!==B&&(S.videoHeightToWidthRatio_=B))})},
schedulePlayerSizeUpdate_:function(f){var S=this,B=_.K("kevlar_watch_while_v2")||_.K("web_watch_pip"),G=function(){if(S.watchMetadata){var g,b;(b=(g=S.watchMetadata).resize)==null||b.call(g)}_.SW(S).getPlayerPromise().then(function(z){if(_.K("kevlar_set_internal_player_size")){if(!B||!S.isMiniplayerActive()){var X=S.calculateCurrentPlayerSize_();z.setInternalSize(X.width,X.height)}}else z.setSize(NaN,NaN);_.K("kevlar_watch_while")&&S.updateWatchWhileScrollThreshold_()})};
f?G():_.OR(_.xJ,G)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(f){this.set("data.survey",f.detail)},
onYtShowSurveyCommand_:function(f){this.set("data.survey",_.H(f,_.E7o).survey)},
onDownloadedVideoDeleted:function(f){var S=this,B,G;return _.R(function(g){if(g.nextAddress==1){if(!S.active||(B=S.playerData)==null||!B.offlineState||S.videoId!==f)return g.return();(G=S.player)==null||G.stopVideo();_.Pn().navigatingAwayFromWatchDeletedVideo=!0;_.Ps(_.qDx,S.hostElement);return _.h(g,_.Pn().navigationFinishPromise,2)}_.Pn().navigatingAwayFromWatchDeletedVideo=!1;_.TT(g)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var f;this.theater?f=_.Uy(.5625*this.windowSize_.width,480,this.windowSize_.height-185):f=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==f&&(this.watchWhileScrollThreshold_=f,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var f=_.m9(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&f){var S=this.windowSize_.height>=624,B=this.active?this.getScrollTop():0;!f.active&&S&&B>=this.watchWhileScrollThreshold_?(f.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):f.active&&(!S||B<this.watchWhileScrollThreshold_&&!_.Sw())&&(f.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(f,S){if(f!==!0||S!==void 0){f=!_.K("live_chat_over_engagement_panels");S=_.m9(this.hostElement).querySelector("#chat-container");var B=_.m9(this.hostElement).querySelector("#plj-sidebar"),G=_.m9(this.hostElement).querySelector("#panels"),g=_.m9(this.hostElement).querySelector("#plj-panels"),b=_.m9(this.hostElement).querySelector("#plj-playlist"),z=_.m9(this.hostElement).querySelector("#alerts"),X=_.m9(this.hostElement).querySelector("#playlist"),w=_.m9(this.hostElement).querySelector("#related"),
F=_.m9(this.hostElement).querySelector("#donation-shelf"),V=_.m9(this.hostElement).querySelector("#comments");this.isTwoColumns_?(z=_.m9(this.hostElement).querySelector("#secondary-inner"),z.appendChild(B),B.appendChild(b),b.appendChild(X),B.appendChild(g),f&&z.appendChild(G),_.K("web_watch_theater_chat")||z.appendChild(S),f||z.appendChild(G),z.appendChild(F),z.appendChild(w)):(f&&_.Lb(G,z),_.Lb(X,z),_.K("web_watch_theater_chat")||_.Lb(S,z),f||_.Lb(G,z),_.Lb(F,z),V&&(g&&_.Lb(g,V),_.Lb(w,V)));_.K("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.K("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.K("web_watch_theater_chat")){var f=_.m9(this.hostElement).querySelector("#chat-container"),S=this.theater&&!this.fullscreen||_.K("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&S?_.K("web_watch_theater_chat_beside_player")?(S=_.m9(this.hostElement).querySelector("#panels-full-bleed-container"),(f==null?void 0:f.parentElement)!==S&&S.append(f),this.panelsBesidePlayer=!0):_.K("web_watch_theater_fixed_chat")&&
(S=_.m9(this.hostElement).querySelector("#columns"),(f==null?void 0:f.parentElement)!==S&&S.append(f),this.fixedPanels=!0):(_.K("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.K("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),S=_.m9(this.hostElement).querySelector("#playlist"),f&&S?_.kU(f,S):_.Lg(new _.dO("Missing element when updating chat location",{"chatContainer defined":!!f,"playlist defined":!!S})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(f,S){return _.K("sw_metadata_vis_toggle_ks")?!0:!!f||!!S},
computeForceDarkPanelTheme:function(f){return _.K("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&f:!1},
safeUpdateStyles:function(f){try{_.hO(this.hostElement,f)}catch(S){_.Lg(S)}},
videoHeightToWidthRatioChanged_:function(f,S){S&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.K("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(f){this.videoHeightToWidthRatio_=1/f},
computeIsVerticalVideo_:function(f){return f>=1},
computeIsFourThreeToSixteenNineVideo_:function(f){return f<=.7501&&f>=.5624},
computeIsExtraWideVideo_:function(f){return f<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.SW(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.SW(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.phY(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(f){var S=_.wQ(f)||0;_.Xw(f,S+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var f=_.wQ("yt-fullerscreen-edu-button-click-count")||0,S=_.wQ("yt-fullerscreen-edu-button-shown-count")||0,B=_.Gt("external_fullscreen_button_shown_threshold"),G=f>=_.Gt("external_fullscreen_button_click_threshold")||S>=B;_.SW(this).getPlayerPromise().then(function(g){g.updateFullerscreenEduButtonSubtleModeState(G)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(f,S){return S},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.oy().resolve(_.Dr).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var f=this;this.panelMaxHeightUpdateJob_&&_.xJ.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.xJ.addLowPriorityJob(function(){f.panelMaxHeightUpdateJob_=0;var S;!f.isTwoColumns_||f.theater||f.fullscreen?S=460:S=f.calculateNormalPlayerSize_().height;var B=S+"px";_.K("live_chat_taller_height")&&!f.theater&&(B="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.K("live_chat_medium_height")&&
!f.theater&&(B="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.K("live_chat_scaled_height")&&!f.theater&&(B="calc(100vh - var(--ytd-toolbar-height) - 238px)");f.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":S+"px","--ytd-watch-flexy-chat-max-height":B,"--ytd-watch-flexy-structured-description-max-height":S+"px","--ytd-watch-flexy-comments-panel-max-height":S+"px","--ytd-comments-engagement-panel-content-height":S+"px"})})},
onYtShowEngagementPanelScrimAction_:function(f){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",f)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Xh(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(f){var S=_.m9(this.hostElement).querySelector("#engagement-panel-scrim");f?S.addEventListener("tap",_.Fc(this,this.onEngagementPanelScrimClick_)):S.removeEventListener("tap",_.Fc(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(f){if(this.hostElement.contains(f)&&!this.scrollToAnimation_.isAnimating()){var S=f.offsetTop-24;f=f.offsetTop+f.offsetHeight+24;var B=this.getPageScrollingElement(),G=this.getScrollTop(),g=G+B.clientHeight-56;if(S<G+56)S-=56;else if(f>g)S=f-B.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,S),500)}},
onYtSignalActionScrollToComments:function(){var f=this.hostElement.querySelector("#comments");if(f&&!this.scrollToAnimation_.isAnimating()){f=f.offsetTop-56-24;if(_.K("kevlar_comment_teaser_scroll_to_midpoint")&&(f-=_.TW().height/3,f<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,f),500)}},
onYtEngagementPanelVisibleChanged:function(f,S,B){this.active&&this.trackEngagementPanelVisibility&&!_.OZM.includes(B)&&(S==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(B),S!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&S!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(B),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(f){return f?"":"watch-active-metadata"},
computeNewMetadataClass:function(f){return f?"watch-active-metadata":""},
computeFullBleedPlayer:function(f,S){return f||S},
computeDefaultLayout:function(f){return!f},
computeDefaultTwoColumnLayout:function(f,S){return!f&&S},
computeWatchWhilePanelsActive:function(f,S){return f||S},
computeNoBorderOnChat:function(f){return _.K("web_watch_theater_chat_no_border")&&f},
computeLiveChatPresentAndExpanded:function(f,S){return f&&!S},
computePanelExpanded:function(f,S,B){return f||S||B},
onChangeMarkersVisibility:function(f){_.SW(this).getPlayerPromise().then(function(S){var B;(B=S.changeMarkerVisibility)==null||B.call(S,_.H(f,_.NX).isVisible||!1,_.H(f,_.NX).entityKeys||[],_.H(f,_.NX).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(f){this.liveChatCollapsed=f.detail;_.W2().dispatch(_.jWu(f.detail))},
provideRenderingData:function(f,S){switch(f){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=S;break;case "PRIMARY_INFO":_.K("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=S);this.videoPrimaryInfoRendererValue=S==null?void 0:S.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.K("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=S);this.videoSecondaryInfoRendererValue=S==null?void 0:S.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
S;break;case "CLARIFICATION":this.clarifyBoxValue=S;break;case "LIVE_CHAT":this.conversationBar=S;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=S;break;case "PLAYLIST":this.externalPlaylistData_=S!=null?S:{};break;case "MERCH_SHELF":this.merchShelfValue=S==null?void 0:S.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=S;break;case "OFFER_MODULE":this.offerModule=S;break;case "LIMITED_STATE":this.limitedStateValue=S;break;case "DONATION_SHELF":this.donation=S;break;
case "ALERTS":this.alertsValue=S;break;case "COMMENTS":this.comments=S;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=S;break;case "ENGAGEMENT_PANELS":this.engagementPanels=S;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=S;break;case "RICH_GRID_RENDERER":this.richGridRendererData=S;break;case "EXPANDABLE_METADATA":this.expandableMetadata=S;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=S}},
toggleCinematicsActive:function(f){this.cinematicsActive=f},
isMiniplayerActive:function(){return _.oy().resolve(_.N_).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(f){return bBz.map(function(S){return f.find(function(B){var G;return(B==null?void 0:(G=B.engagementPanelSectionListRenderer)==null?void 0:G.targetId)===S})}).filter(function(S){return S!==void 0})},
getNonLearningJourneyEngagementPanels:function(f){return f.filter(function(S){var B;return!bBz.includes((S==null?void 0:(B=S.engagementPanelSectionListRenderer)==null?void 0:B.targetId)||"")})}}];var mOY;var ly=function(){var f=_.I.apply(this,arguments)||this;f.flexy=!0;f.learningJourney=!0;f.roundedInfoPanel=!0;f.viewTransitionEnabled=_.K("enable_player_resize_transition");f.smallerChatMinHeight=_.K("live_chat_smaller_min_height");f.cinematicTheaterMode=_.K("web_cinematic_theater_mode");f.transparentTheaterMode=_.K("web_transparent_theater_mode");f.cinematicFullscreen=_.K("web_cinematic_fullscreen");f.useLargerMaxPlayerValue=_.K("kevlar_flexy_use_larger_player_value");f.cinematicFullscreenV2=_.K("web_cinematic_fullscreen_v2");
f.isDarkTheme=document.documentElement.hasAttribute("dark");f.theaterLargerPlayer=_.K("web_watch_theater_larger_player");f.defaultCollapsePlaylist=_.K("web_watch_default_collapse_playlist");return f};
_.q(ly,_.I);_.e=ly.prototype;_.e.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.e.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.e.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.e.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.e.ready=function(){var f=this,S=function(){f.onColumnScroll()};
this.primary.addEventListener("scroll",S);this.secondary.addEventListener("scroll",S)};
_.e.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.e.updateIsTwoColumnsFromBinding=function(f){_.K("web_watch_update_narrow_width_killswitch")||_.W2().dispatch(_.$Qz(!f.detail.value));this.ytdWatchBehavior.isTwoColumns_=f.detail.value};
_.e.updateFlexySmallWindowFromBinding=function(f){this.ytdWatchBehavior.flexySmallWindow_=f.detail.value};
_.e.updateFlexyLargeWindowFromBinding=function(f){this.ytdWatchBehavior.flexyLargeWindow_=f.detail.value};
_.e.updateWatchWhileWindowSizeSufficientFromBinding=function(f){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=f.detail.value};
_.e.updateWatchNextCanShowMoreFromBinding=function(f){this.ytdWatchBehavior.watchNextCanShowMore=f.detail.value};
_.e.updateShownItemsFromBinding=function(f){f.detail.path?this.set(f.detail.path,f.detail.value):this.ytdWatchBehavior.watchNextShownItems=f.detail.value};
_.e.getElement=function(f){switch(f){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20585_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20585_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.y3.Object.defineProperties(ly.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)==null||!f.pageVisualEffects)return!1;for(var S=0;S<this.data.pageVisualEffects.length;S++)if(f=_.H(this.data.pageVisualEffects[S],_.H$))return S=void 0,(S=f.config)==null?void 0:S.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.learningJourneyEngagementPanels)==null?void 0:f.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var f,S=(f=this.learningJourneyEngagementPanels)==null?void 0:f.find(function(P){var d;return(P==null?void 0:(d=P.engagementPanelSectionListRenderer)==null?void 0:d.panelIdentifier)==="learning-journey-engagement-panel"});
if(S){var B,G,g,b,z,X,w,F,V;if(f=(F=((w=(z=((b=S==null?void 0:(B=S.engagementPanelSectionListRenderer)==null?void 0:(G=B.content)==null?void 0:(g=G.sectionListRenderer)==null?void 0:g.contents)!=null?b:[])[0])==null?void 0:(X=z.itemSectionRenderer)==null?void 0:X.contents)!=null?w:[])[0])==null?void 0:(V=F.accordionViewModel)==null?void 0:V.onTitleTap){var J=_.CH(f);if(J)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.JZ.instance.resolveCommand(J)}}}}}}});
_.y3.Object.defineProperties(ly,{template:{configurable:!0,enumerable:!0,get:function(){if(mOY===void 0){var f=document.createElement("template");_.Y(f,'\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]]" hidden="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n          </yt-button-shape></div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-learning-journey">\n        <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n          <div id="info" class="style-scope ytd-watch-learning-journey">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-learning-journey">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);mOY=f}f=mOY;return f}}});
ly.prototype.updateMiniplayerIsActiveValue=ly.prototype.updateMiniplayerIsActiveValue;ly.prototype.updateScrollTopValue=ly.prototype.updateScrollTopValue;ly.prototype.updateFullscreenValue=ly.prototype.updateFullscreenValue;ly.prototype.updateTheaterValue=ly.prototype.updateTheaterValue;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],ly.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],ly.prototype,"ytComponentBehavior",void 0);
_.N([_.r(ewY.YtdLearningJourneyWatchBehavior),_.Z("design:type",Object)],ly.prototype,"ytdWatchBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],ly.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],ly.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],ly.prototype,"playerData",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],ly.prototype,"flexy",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],ly.prototype,"learningJourney",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],ly.prototype,"roundedInfoPanel",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],ly.prototype,"viewTransitionEnabled",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],ly.prototype,"smallerChatMinHeight",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],ly.prototype,"cinematicTheaterMode",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],ly.prototype,"transparentTheaterMode",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],ly.prototype,"cinematicFullscreen",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],ly.prototype,"useLargerMaxPlayerValue",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],ly.prototype,"cinematicFullscreenV2",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],ly.prototype,"isDarkTheme",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],ly.prototype,"theaterLargerPlayer",void 0);_.N([_.n(),_.Z("design:type",Object)],ly.prototype,"defaultCollapsePlaylist",void 0);_.N([_.n({selector:_.CF}),_.Z("design:type",Object)],ly.prototype,"theaterValue",void 0);
_.N([_.n({selector:_.pF}),_.Z("design:type",Object)],ly.prototype,"fullscreenValue",void 0);_.N([_.n({selector:_.Y7}),_.Z("design:type",Object)],ly.prototype,"scrollTopValue",void 0);_.N([_.n({selector:_.LJ}),_.Z("design:type",Object)],ly.prototype,"miniplayerIsActiveValue",void 0);_.N([_.vF("#ytd-plj-player"),_.Z("design:type",HTMLElement)],ly.prototype,"ytdPlayer",void 0);_.N([_.vF("#playlist"),_.Z("design:type",HTMLElement)],ly.prototype,"JSC$20585_ytdPlaylistPanelRenderer",void 0);
_.N([_.WT("ytd-comments"),_.Z("design:type",HTMLElement)],ly.prototype,"ytdComments",void 0);_.N([_.vF("#primary"),_.Z("design:type",HTMLElement)],ly.prototype,"primary",void 0);_.N([_.vF("#secondary"),_.Z("design:type",HTMLElement)],ly.prototype,"secondary",void 0);_.N([_.vF("#player-container"),_.Z("design:type",HTMLElement)],ly.prototype,"playerContainer",void 0);_.N([_.vF("#cinematics"),_.Z("design:type",HTMLElement)],ly.prototype,"JSC$20585_cinematics",void 0);
_.N([_.JO("theaterValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ly.prototype,"updateTheaterValue",null);_.N([_.JO("fullscreenValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ly.prototype,"updateFullscreenValue",null);_.N([_.JO("scrollTopValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ly.prototype,"updateScrollTopValue",null);
_.N([_.JO("miniplayerIsActiveValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ly.prototype,"updateMiniplayerIsActiveValue",null);_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ly.prototype,"cinematicLightTheme",null);_.N([_.n({reflectToAttribute:!0}),_.k("learningJourneyEngagementPanels"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ly.prototype,"hasLearningJourneyPanels",null);
_.N([_.k("learningJourneyEngagementPanels"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ly.prototype,"backButtonData",null);_.N([_.C({is:"ytd-watch-learning-journey"})],ly);_.b_.registerService(_.GxM,ly);
_.Eb();
}catch(e){_._DumpException(e)}
try{
_.xA("Tm0L3c");
var ydn;var WJu;var cdz=function(){return _.I.apply(this,arguments)||this};
_.q(cdz,_.I);_.N([_.C({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],cdz);
_.p(cdz,"ytd-ghost-comments-renderer",function(){if(WJu===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);WJu=f}f=WJu;return f},{mode:1});var lAY;var fbu=function(){return _.I.apply(this,arguments)||this};
_.q(fbu,_.I);_.N([_.C({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],fbu);
_.p(fbu,"ytd-ghost-watch-metadata-renderer",function(){if(lAY===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);lAY=f}f=lAY;return f},{mode:1});var cr=function(){var f=_.I.apply(this,arguments)||this;f.ghostGridRenderer={rows:6};f.roundedInfoPanel=!0;f.hideOfferModules=!0;f.smallerChatMinHeight=_.K("live_chat_smaller_min_height");f.cinematicTheaterMode=_.K("web_cinematic_theater_mode");f.transparentTheaterMode=_.K("web_transparent_theater_mode");f.darkerPanels=_.K("web_watch_darker_panels");f.cinematicFullscreen=_.K("web_cinematic_fullscreen");f.cinematicFullscreenV2=_.K("web_cinematic_fullscreen_v2");f.isDarkTheme=document.documentElement.hasAttribute("dark");
return f};
_.q(cr,_.I);_.e=cr.prototype;_.e.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.e.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.e.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.e.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.e.ready=function(){var f=this,S=function(){f.onColumnScroll()};
this.primary.addEventListener("scroll",S);this.secondary.addEventListener("scroll",S)};
_.e.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.e.updateIsTwoColumnsFromBinding=function(f){this.ytdWatchBehavior.isTwoColumns_=f.detail.value};
_.e.updateFlexySmallWindowFromBinding=function(f){this.ytdWatchBehavior.flexySmallWindow_=f.detail.value};
_.e.updateFlexyLargeWindowFromBinding=function(f){this.ytdWatchBehavior.flexyLargeWindow_=f.detail.value};
_.e.updateWatchWhileWindowSizeSufficientFromBinding=function(f){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=f.detail.value};
_.e.updateWatchNextCanShowMoreFromBinding=function(f){this.ytdWatchBehavior.watchNextCanShowMore=f.detail.value};
_.e.updateShownItemsFromBinding=function(f){_.K("swatcheroo_direct_use_rich_grid")||(f.detail.path?this.set(f.detail.path,f.detail.value):this.ytdWatchBehavior.watchNextShownItems=f.detail.value)};
_.e.getElement=function(f){switch(f){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20573_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20573_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.y3.Object.defineProperties(cr.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)==null||!f.pageVisualEffects)return!1;for(var S=0;S<this.data.pageVisualEffects.length;S++)if(f=_.H(this.data.pageVisualEffects[S],_.H$))return S=void 0,(S=f.config)==null?void 0:S.enableInLightTheme;return!1}}});
cr.prototype.updateMiniplayerIsActiveValue=cr.prototype.updateMiniplayerIsActiveValue;cr.prototype.updateScrollTopValue=cr.prototype.updateScrollTopValue;cr.prototype.updateFullscreenValue=cr.prototype.updateFullscreenValue;cr.prototype.updateTheaterValue=cr.prototype.updateTheaterValue;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],cr.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],cr.prototype,"ytComponentBehavior",void 0);
_.N([_.r(_.uO$.YtdWatchBehavior),_.Z("design:type",Object)],cr.prototype,"ytdWatchBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],cr.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],cr.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],cr.prototype,"ghostGridRenderer",void 0);_.N([_.n(),_.Z("design:type",Object)],cr.prototype,"playerData",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],cr.prototype,"roundedInfoPanel",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],cr.prototype,"hideOfferModules",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],cr.prototype,"smallerChatMinHeight",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],cr.prototype,"cinematicTheaterMode",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],cr.prototype,"transparentTheaterMode",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],cr.prototype,"darkerPanels",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],cr.prototype,"cinematicFullscreen",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],cr.prototype,"cinematicFullscreenV2",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],cr.prototype,"isDarkTheme",void 0);_.N([_.n({selector:_.CF}),_.Z("design:type",Object)],cr.prototype,"theaterValue",void 0);
_.N([_.n({selector:_.pF}),_.Z("design:type",Object)],cr.prototype,"fullscreenValue",void 0);_.N([_.n({selector:_.Y7}),_.Z("design:type",Object)],cr.prototype,"scrollTopValue",void 0);_.N([_.n({selector:_.LJ}),_.Z("design:type",Object)],cr.prototype,"miniplayerIsActiveValue",void 0);_.N([_.vF("#ytd-player"),_.Z("design:type",HTMLElement)],cr.prototype,"ytdPlayer",void 0);_.N([_.vF("#playlist"),_.Z("design:type",HTMLElement)],cr.prototype,"JSC$20573_ytdPlaylistPanelRenderer",void 0);
_.N([_.vF("#ytd-comments"),_.Z("design:type",HTMLElement)],cr.prototype,"ytdComments",void 0);_.N([_.vF("#primary"),_.Z("design:type",HTMLElement)],cr.prototype,"primary",void 0);_.N([_.vF("#secondary"),_.Z("design:type",HTMLElement)],cr.prototype,"secondary",void 0);_.N([_.vF("#player-container"),_.Z("design:type",HTMLElement)],cr.prototype,"playerContainer",void 0);_.N([_.vF("#cinematics"),_.Z("design:type",HTMLElement)],cr.prototype,"JSC$20573_cinematics",void 0);
_.N([_.JO("theaterValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cr.prototype,"updateTheaterValue",null);_.N([_.JO("fullscreenValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cr.prototype,"updateFullscreenValue",null);_.N([_.JO("scrollTopValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cr.prototype,"updateScrollTopValue",null);
_.N([_.JO("miniplayerIsActiveValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cr.prototype,"updateMiniplayerIsActiveValue",null);_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],cr.prototype,"cinematicLightTheme",null);
_.p(cr,"ytd-watch-grid",function(){if(ydn===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);ydn=f}f=ydn;return f},{mode:2});_.b_.registerService(_.BqW,cr);
_.Eb();
}catch(e){_._DumpException(e)}
try{
_.xA("CF909");
var aAu;var Wr=function(){var f=_.I.apply(this,arguments)||this;f.flexy=!0;f.roundedInfoPanel=!0;f.viewTransitionEnabled=_.K("enable_player_resize_transition");f.smallerChatMinHeight=_.K("live_chat_smaller_min_height");f.cinematicTheaterMode=_.K("web_cinematic_theater_mode");f.transparentTheaterMode=_.K("web_transparent_theater_mode");f.cinematicFullscreen=_.K("web_cinematic_fullscreen");f.useLargerMaxPlayerValue=_.K("kevlar_flexy_use_larger_player_value");f.cinematicFullscreenV2=_.K("web_cinematic_fullscreen_v2");
f.isDarkTheme=document.documentElement.hasAttribute("dark");f.defaultCollapsePlaylist=_.K("web_watch_default_collapse_playlist");f.retroModeReduxValue=!1;return f};
_.q(Wr,_.I);_.e=Wr.prototype;_.e.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.e.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.e.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.e.updateRetroModeReduxValue=function(){_.K("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.e.ready=function(){var f=this,S=function(){f.onColumnScroll()};
this.primary.addEventListener("scroll",S);this.secondary.addEventListener("scroll",S)};
_.e.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.e.updateIsTwoColumnsFromBinding=function(f){_.K("web_watch_update_narrow_width_killswitch")||_.W2().dispatch(_.$Qz(!f.detail.value));this.ytdWatchBehavior.isTwoColumns_=f.detail.value};
_.e.updateFlexySmallWindowFromBinding=function(f){this.ytdWatchBehavior.flexySmallWindow_=f.detail.value};
_.e.updateFlexyLargeWindowFromBinding=function(f){this.ytdWatchBehavior.flexyLargeWindow_=f.detail.value};
_.e.updateWatchWhileWindowSizeSufficientFromBinding=function(f){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=f.detail.value};
_.e.updateWatchNextCanShowMoreFromBinding=function(f){this.ytdWatchBehavior.watchNextCanShowMore=f.detail.value};
_.e.updateShownItemsFromBinding=function(f){f.detail.path?this.set(f.detail.path,f.detail.value):this.ytdWatchBehavior.watchNextShownItems=f.detail.value};
_.e.getElement=function(f){switch(f){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20568_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20568_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.y3.Object.defineProperties(Wr.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)==null||!f.pageVisualEffects)return!1;for(var S=0;S<this.data.pageVisualEffects.length;S++)if(f=_.H(this.data.pageVisualEffects[S],_.H$))return S=void 0,(S=f.config)==null?void 0:S.enableInLightTheme;return!1}}});
_.y3.Object.defineProperties(Wr,{template:{configurable:!0,enumerable:!0,get:function(){if(aAu===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);aAu=f}f=aAu;return f}}});
Wr.prototype.updateRetroModeReduxValue=Wr.prototype.updateRetroModeReduxValue;Wr.prototype.updateScrollTopValue=Wr.prototype.updateScrollTopValue;Wr.prototype.updateFullscreenValue=Wr.prototype.updateFullscreenValue;Wr.prototype.updateTheaterValue=Wr.prototype.updateTheaterValue;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Wr.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Wr.prototype,"ytComponentBehavior",void 0);
_.N([_.r(_.uO$.YtdWatchBehavior),_.Z("design:type",Object)],Wr.prototype,"ytdWatchBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],Wr.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Wr.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],Wr.prototype,"playerData",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Wr.prototype,"flexy",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Wr.prototype,"roundedInfoPanel",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Wr.prototype,"viewTransitionEnabled",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Wr.prototype,"smallerChatMinHeight",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Wr.prototype,"cinematicTheaterMode",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Wr.prototype,"transparentTheaterMode",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Wr.prototype,"cinematicFullscreen",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Wr.prototype,"useLargerMaxPlayerValue",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Wr.prototype,"cinematicFullscreenV2",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Wr.prototype,"isDarkTheme",void 0);_.N([_.n(),_.Z("design:type",Object)],Wr.prototype,"defaultCollapsePlaylist",void 0);_.N([_.n({selector:_.CF}),_.Z("design:type",Object)],Wr.prototype,"theaterValue",void 0);_.N([_.n({selector:_.pF}),_.Z("design:type",Object)],Wr.prototype,"fullscreenValue",void 0);_.N([_.n({selector:_.Y7}),_.Z("design:type",Object)],Wr.prototype,"scrollTopValue",void 0);
_.N([_.n({selector:_.LJ}),_.Z("design:type",Object)],Wr.prototype,"miniplayerIsActive",void 0);_.N([_.n({selector:function(f){return f.watch.isWatchRetroMode}}),
_.Z("design:type",Object)],Wr.prototype,"retroModeReduxValue",void 0);_.N([_.WT("ytd-player"),_.Z("design:type",HTMLElement)],Wr.prototype,"ytdPlayer",void 0);_.N([_.vF("#playlist"),_.Z("design:type",HTMLElement)],Wr.prototype,"JSC$20568_ytdPlaylistPanelRenderer",void 0);_.N([_.WT("ytd-comments"),_.Z("design:type",HTMLElement)],Wr.prototype,"ytdComments",void 0);_.N([_.vF("#primary"),_.Z("design:type",HTMLElement)],Wr.prototype,"primary",void 0);
_.N([_.vF("#secondary"),_.Z("design:type",HTMLElement)],Wr.prototype,"secondary",void 0);_.N([_.vF("#player-container"),_.Z("design:type",HTMLElement)],Wr.prototype,"playerContainer",void 0);_.N([_.vF("#cinematics"),_.Z("design:type",HTMLElement)],Wr.prototype,"JSC$20568_cinematics",void 0);_.N([_.JO("theaterValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Wr.prototype,"updateTheaterValue",null);
_.N([_.JO("fullscreenValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Wr.prototype,"updateFullscreenValue",null);_.N([_.JO("scrollTopValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Wr.prototype,"updateScrollTopValue",null);_.N([_.JO("retroModeReduxValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Wr.prototype,"updateRetroModeReduxValue",null);
_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Wr.prototype,"cinematicLightTheme",null);_.N([_.C({is:"ytd-watch-flexy"})],Wr);_.b_.registerService(_.SYV,Wr);
_.Eb();
}catch(e){_._DumpException(e)}
try{
_.xA("nmfa2d");
var zV2;var CA=function(){var f=_.I.apply(this,arguments)||this;f.hidden=!1;f.errorScreen=null;f.playlistData={};return f};
_.q(CA,_.I);_.e=CA.prototype;_.e.getPlayer=function(){return this.ytdPlayer};
_.e.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:_.ky(["aa","eocs"])}}};
_.e.onActiveChanged=function(){_.W2().dispatch(_.SsO(this.ytPageBehavior.active))};
_.e.playerDataChanged=function(){var f;(f=this.watchController)==null||f.setPlayerResponse(this.playerData)};
_.e.dataChanged=function(){var f;(f=this.watchController)==null||f.setWatchNextResponse(this.data)};
_.e.sizeChanged=function(){var f,S;(S=(f=this.metadata).resize)==null||S.call(f)};
_.e.attached=function(){this.watchController=new _.Ik(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.e.detached=function(){_.cd(this.watchController);this.watchController=void 0};
_.e.getPlayerContainer=function(){return this.playerContainer};
_.e.getElement=function(f){switch(f){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20520_playlistPanel}};
_.e.provideRenderingData=function(f,S){switch(f){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=S;break;case "ERROR_SCREEN":this.errorScreen=S!=null?S:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=S;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=S;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=S;break;case "RICH_METADATA":this.richMetadataRowContainer=S;break;case "CLARIFICATION":this.clarificationData=S;break;case "PLAYLIST":this.playlistData=
S!=null?S:{};break;case "MERCH_SHELF":this.merchShelf=S;break;case "TICKET_SHELF":this.ticketShelf=S;break;case "LIMITED_STATE":this.limitedState=S;break;case "DONATION_SHELF":this.donationShelf=S;break;case "ALERTS":this.alerts=S}};
_.y3.Object.defineProperties(CA.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var f,S,B;return!this.hidden&&!!((f=this.data)==null?0:(S=f.contents)==null?0:(B=S.twoColumnWatchNextResults)==null?0:B.conversationBar)}}});
CA.prototype.sizeChanged=CA.prototype.sizeChanged;CA.prototype.dataChanged=CA.prototype.dataChanged;CA.prototype.playerDataChanged=CA.prototype.playerDataChanged;CA.prototype.onActiveChanged=CA.prototype.onActiveChanged;_.N([_.r(_.Yu.YtPageBehavior),_.Z("design:type",Object)],CA.prototype,"ytPageBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],CA.prototype,"ytComponentBehavior",void 0);
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],CA.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],CA.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],CA.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],CA.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],CA.prototype,"playerData",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],CA.prototype,"hidden",void 0);_.N([_.vF("#ytd-player"),_.Z("design:type",HTMLElement)],CA.prototype,"ytdPlayer",void 0);_.N([_.vF("#player-container"),_.Z("design:type",HTMLElement)],CA.prototype,"playerContainer",void 0);_.N([_.vF("#metadata"),_.Z("design:type",Object)],CA.prototype,"metadata",void 0);_.N([_.vF("#playlist"),_.Z("design:type",HTMLElement)],CA.prototype,"JSC$20520_playlistPanel",void 0);
_.N([_.n({selector:_.kgn,reflectToAttribute:!0}),_.Z("design:type",Object)],CA.prototype,"fixie",void 0);_.N([_.n({selector:_.LO2,reflectToAttribute:!0}),_.Z("design:type",Object)],CA.prototype,"singleColumn",void 0);_.N([_.n({selector:function(f){return _.CF(f)&&!_.pF(f)},
reflectToAttribute:!0}),_.Z("design:type",Object)],CA.prototype,"theater",void 0);_.N([_.n({selector:_.pF,reflectToAttribute:!0}),_.Z("design:type",Object)],CA.prototype,"fullscreen",void 0);_.N([_.n({selector:_.o7u}),_.Z("design:type",Object)],CA.prototype,"windowSize",void 0);_.N([_.n(),_.Z("design:type",Object)],CA.prototype,"singleColumnContents",void 0);_.N([_.n(),_.Z("design:type",Object)],CA.prototype,"errorScreen",void 0);_.N([_.n(),_.Z("design:type",Object)],CA.prototype,"playlistData",void 0);
_.N([_.n(),_.Z("design:type",Object)],CA.prototype,"videoPrimaryInfoRenderer",void 0);_.N([_.n(),_.Z("design:type",Object)],CA.prototype,"videoSecondaryInfoRenderer",void 0);_.N([_.n(),_.Z("design:type",Object)],CA.prototype,"richMetadataRowContainer",void 0);_.N([_.n(),_.Z("design:type",Object)],CA.prototype,"clarificationData",void 0);_.N([_.n(),_.Z("design:type",Object)],CA.prototype,"commentsEntryPointHeaderRenderer",void 0);_.N([_.n(),_.Z("design:type",Object)],CA.prototype,"ticketShelf",void 0);
_.N([_.n(),_.Z("design:type",Object)],CA.prototype,"merchShelf",void 0);_.N([_.n(),_.Z("design:type",Object)],CA.prototype,"donationShelf",void 0);_.N([_.n(),_.Z("design:type",Object)],CA.prototype,"limitedState",void 0);_.N([_.n(),_.Z("design:type",Object)],CA.prototype,"alerts",void 0);_.N([_.k("playlistData"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],CA.prototype,"hasPlaylistData",null);
_.N([_.k("data","hidden"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],CA.prototype,"hasChat",null);_.N([_.JO("active"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],CA.prototype,"onActiveChanged",null);_.N([_.JO("playerData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],CA.prototype,"playerDataChanged",null);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],CA.prototype,"dataChanged",null);_.N([_.JO("windowSize","singleColumn"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],CA.prototype,"sizeChanged",null);
_.p(CA,"ytd-watch-fixie",function(){if(zV2===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);zV2=f}f=zV2;return f},{mode:1});_.b_.registerService(_.ouQ,CA);
_.Eb();
}catch(e){_._DumpException(e)}
try{
_.xA("xwEKAe");
var QZu=function(f){var S=_.K2();if(S.getFlag(202))S=S.getFlag(201);else{var B;S=(f==null?void 0:(B=f.config)==null?void 0:B.settingOnByDefault)!==void 0?f.config.settingOnByDefault:!_.K("web_shorts_cinematics_disabled_by_default")}return S},YDO=function(f){var S=_.K2();
_.dh(0,201,f);_.dh(0,202,!0);S.save()},rzu=function(f){return(f=_.lGV(f))?_.o4x(f):0},jZM=function(f){return f.shorts.isSmallScreenSqueezeback},OUu=function(f){return f.shorts.isPlaybackStarted},Ll$=function(f){var S=_.KCN(2),B=new Set;
_.Ov(function(){return void B.forEach(function(G){return void G()})});
return function(G){var g=_.l5(S);try{var b=xZM(ESM(f),G);B.add(b);return function(){b();B.delete(b)}}finally{_.l5(g)}}},kO2=function(f){var S=f.children;
var B=f.root;_.Y5(function(){var G=Ll$(B)(S);_.Ov(G)});
return document.createTextNode("")},xZM=function(f,S){var B=nSe(f);
f=_.m(_.Xw1(S,!0));S=f.next().value;var G=f.next().value;B.append.apply(B,_.$d(S));return function(){G();B.remove()}},ESM=function(f){if(typeof f==="string")return f=document.querySelector(f),_.TOu(f),f;
if(_.b0(f)&&f.nodeType===Node.ELEMENT_NODE)return f;try{if(!f.__hasErrored){if(f.__count&&f.__count>1)throw _.$5.USE_ELEMENT_MULTIPLE_ASSIGNMENTS(_.ar);if(f.__value){if(_.ar!==_.ar){var S=f.__value.tagName.toLowerCase();if(S!==_.ar.toLowerCase())throw _.$5.USE_ELEMENT_UNEXPECTED_ELEMENT(_.ar,S);}}else throw _.$5.USE_ELEMENT_NOT_ASSIGNED(_.ar);}}catch(G){var B;(B=_.Sp.handleError)==null||B.call.apply(B,[_.Sp].concat(_.$d(_.nj(G,S))))}finally{f.__count=0}return f.value},nSe=function(f){var S=document.createElementNS(f.namespaceURI,
f.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return f.appendChild(S)},sZz=function(f,S,B,G){f=S-f;
B=G-B;return Math.sqrt(f*f+B*B)},DZo=function(f,S){f&&_.oy().resolve(_.S7).resolveCommand(f,{forceClickLogging:!0,
form:{element:S}})},IOu=function(f,S,B,G){f=S-f;
B=G-B;return Math.sqrt(f*f+B*B)},UZo=function(f,S){f&&_.oy().resolve(_.S7).resolveCommand(f,{forceClickLogging:!0,
form:{element:S}})},CNz=function(f){f.unsubscribeFromStore=_.KD(f.storeWithShorts,_.FEO,function(S){f.initOrDisposeActiveModules(S);
!S&&f.storeWithShorts.getState().shorts.isFullscreen&&(_.BK(document.documentElement),f.storeWithShorts.dispatch(_.Paz(!1)))});
f.initOrDisposeActiveModules(_.FEO(f.storeWithShorts.getState()))},paB=function(f){var S=_.oy().resolve(_.dQ);
S.rootElement=f;CNz(S)},Azu=function(){return _.oy().resolve(_.dQ).dismissedIndices},NfX=function(f){return _.ef({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:f}})},MHO=function(f){return _.ef({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:f}})},b2=function(f){return _.ef({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:f}})};var mJ=function(f,S){if(f instanceof mJ)this.array_=f.array_;else{var B;if(B=_.W9(f))a:{for(var G=B=0;G<f.length;G++){if(!_.W9(f[G])||B>0&&f[G].length!=B){B=!1;break a}for(var g=0;g<f[G].length;g++)if(typeof f[G][g]!=="number"){B=!1;break a}B==0&&(B=f[G].length)}B=B!=0}if(B)this.array_=_.aT(f);else if(f instanceof _.Xr)this.array_=ZUe(f.height,f.width);else if(typeof f==="number"&&typeof S==="number"&&f>0&&S>0)this.array_=ZUe(f,S);else throw Error("$l");}this.size_=new _.Xr(this.array_[0].length,
this.array_.length)},tHu=function(f,S,B){for(var G=0;G<f.getSize().height;G++)for(var g=0;g<f.getSize().width;g++)S.call(B,f.array_[G][g],G,g,f)},uAY=function(f,S){var B=new mJ(f.getSize());
tHu(f,function(G,g,b){B.array_[g][b]=S.call(void 0,G,g,b,f)});
return B},ZUe=function(f,S){for(var B=[],G=0;G<f;G++){B[G]=[];
for(var g=0;g<S;g++)B[G][g]=0}return B};
mJ.prototype.add=function(f){if(!_.lFM(this.size_,f.getSize()))throw Error("am");return uAY(this,function(S,B,G){return S+f.array_[B][G]})};
mJ.prototype.equals=function(f,S){if(this.size_.width!=f.size_.width||this.size_.height!=f.size_.height)return!1;S=S||0;for(var B=0;B<this.size_.height;B++)for(var G=0;G<this.size_.width;G++)if(!_.cIM(this.array_[B][G],f.array_[B][G],S))return!1;return!0};
mJ.prototype.getSize=function(){return this.size_};
var zr=function(f,S,B){return S>=0&&S<f.size_.height&&B>=0&&B<f.size_.width?f.array_[S][B]:null};
mJ.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var RW=function(f,S,B,G){if(!(S>=0&&S<f.size_.height&&B>=0&&B<f.size_.width))throw Error("bm`"+S+"`"+B+"`"+f.size_.height+"`"+f.size_.width);f.array_[S][B]=G};
mJ.prototype.multiply=function(f){if(f instanceof mJ){if(this.size_.width!=f.getSize().height)throw Error("cm");return aOZ(this,f)}if(typeof f==="number")return yzn(this,f);throw Error("dm");};
var aOZ=function(f,S){var B=new mJ(f.size_.height,S.getSize().width);tHu(B,function(G,g,b){for(var z=G=0;z<this.size_.width;z++)G+=zr(this,g,z)*zr(S,z,b);RW(B,g,b,G)},f);
return B},yzn=function(f,S){return uAY(f,function(B){return B*S})};var WlY=new _.u("inlineSurveyRenderer");var czz=new _.u("interstitialViewModel");var lOB=new _.u("reelNavigateCommand");var f8o=new _.u("reelNonVideoContentDismissalCommand");var ohn=new _.u("showReelsCommentsOverlayCommand");var SPB=new _.u("shortsSuggestedActionViewModel");var Bru=new _.u("videoInteractionPopUpRenderer");var GgB;var ghO;var e4u;var XO=function(){var f=_.I.apply(this,arguments)||this;f.ctaVisualElement=null;f.currentCsn=null;return f};
_.q(XO,_.I);_.e=XO.prototype;_.e.onDataChanged=function(){this.maybeLogShows()};
_.e.computeButtonShape=function(){var f=this;if(this.data)return{buttonText:_.ac(this.data.text),state:"active",onTap:function(){f.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.e.maybeCreateCtaVe=function(){var f;if((f=this.data)!=null&&f.badgeInteractionLogging){var S;if(f=(S=this.data.badgeInteractionLogging)==null?void 0:S.trackingParams)this.ctaVisualElement=_.Ye(f)}};
_.e.maybeLogClicks=function(){this.currentCsn=_.xc(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.uW(this.currentCsn,this.ctaVisualElement)};
_.e.maybeLogShows=function(){this.currentCsn=_.xc(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Zu(this.currentCsn,[this.ctaVisualElement])};
_.e.onTap=function(){var f;if((f=this.data)!=null&&f.onClickCommand){var S;this.ytComponentBehavior.resolveCommand((S=this.data)==null?void 0:S.onClickCommand);this.maybeLogClicks()}};
XO.prototype.onDataChanged=XO.prototype.onDataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],XO.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],XO.prototype,"ytComponentBehavior",void 0);_.N([_.n({}),_.Z("design:type",Object)],XO.prototype,"data",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],XO.prototype,"onDataChanged",null);
_.N([_.C({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],XO);
_.p(XO,"ytd-shopping-overlay-badge-renderer",function(){if(e4u!==void 0)return e4u;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return e4u=f},{mode:1});_.eq(_.INu,"reel-sound-metadata-view-model",{props:{data:_.gm,overlayDensity:_.gm}});_.eq(_.QOz,"player-disclosure-view-model",{props:{data:_.W4}});_.eq(_.fOX,"pivot-button-view-model",{props:{data:_.gm,className:_.gm}});_.eq(_.oSL,"reel-action-bar-view-model",{props:{data:_.W4,buttonShapeOverrideables:_.W4}});_.eq(_.oS(function(f){function S(){var zj,VN,$Q,OV,rW=(VN=_.H((zj=t())==null?void 0:zj.command,_.qG))==null?void 0:($Q=VN.item)==null?void 0:(OV=$Q.notificationTextRenderer)==null?void 0:OV.successResponseText;if(rW)_.bW(G.value,"yt-open-popup-action",[_.fn(rW),G.value]);else if(M())DZo(M(),Q.value);else{var MA;DZo((MA=t())==null?void 0:MA.command,Q.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var B=f.data;var G=_.tE("yt-player-overlay-video-interactions");f=_.m(_.hj("0px",void 0,"O1N7Ce"));var g=f.next().value,b=f.next().value;f=_.m(_.hj("0px",void 0,"tTDBdb"));var z=f.next().value,X=f.next().value;f=_.m(_.hj(0,void 0,"fh8Zkc"));var w=f.next().value,F=f.next().value;f=_.m(_.hj(0,void 0,"CUjqGd"));var V=f.next().value,J=f.next().value,P=function(){var zj;if(((zj=_.hD())==null?void 0:zj.getPlayerState())!==-1){G.value.style.display="inherit";var VN;(VN=_.hD())==null||VN.removeEventListener("onStateChange",
P)}d()},d=function(){var zj=document.querySelector("video");
if(zj){F(zj.getBoundingClientRect().width);J(zj.getBoundingClientRect().height);var VN;b((zj==null?void 0:(VN=zj.style)==null?void 0:VN.left)||"0px");var $Q;X((zj==null?void 0:($Q=zj.style)==null?void 0:$Q.top)||"0px")}};
_.jp(function(){var zj,VN,$Q;if(((zj=_.hD())==null?void 0:zj.getPlayerState())===-1&&Math.round((($Q=(VN=_.hD())==null?void 0:VN.getVideoAspectRatio())!=null?$Q:0)*100)!==Math.round(w()/V()*100)){G.value.style.display="none";var OV,rW;J(w()/((rW=(OV=_.hD())==null?void 0:OV.getVideoAspectRatio())!=null?rW:1))}},"VB5m5");
_.Y5(function(){var zj;(zj=_.hD())==null||zj.addEventListener("onStateChange",P);window.addEventListener("resize",d);d();var VN,$Q,OV;if((OV=(VN=B())==null?void 0:($Q=VN.regions)==null?void 0:$Q[0])==null||!OV.transformationMatrix)throw Error("hm");var rW;if((rW=B())==null?0:rW.trackingParams){var MA;_.ik().graftServerVe((MA=B().trackingParams)!=null?MA:"")}_.Ov(function(){var UV;(UV=_.hD())==null||UV.removeEventListener("onStateChange",P);window.removeEventListener("resize",d)})});
var Q=_.tE("svg"),x=_.m(_.hj(!1,void 0,"TPsTce"));f=x.next().value;var E=x.next().value,U=_.m(_.hj(!1,void 0,"Uz6CHf"));x=U.next().value;var A=U.next().value,t=function(){var zj;return _.H((zj=B())==null?void 0:zj.popUp,Bru)},M=function(){var zj;
return(zj=B())==null?void 0:zj.command},a=function(){return _.H(M(),_.db)!==void 0};
U=_.iF(function(){S();return!1});
var l={},mx={};return _.T("yt-player-overlay-video-interactions",{el:G},_.T("svg",{"on:mouseover":_.iF(function(){a()&&E(!0);A(!0);return!1}),
"on:mouseout":_.iF(function(){E(!1);A(!1);return!1}),
"on:keydown":_.iF(function(zj){zj.key==="Enter"&&S();return!1}),
"on:focus":_.iF(function(){a()&&E(!0);return!1}),
"on:blur":_.iF(function(){a()&&E(!1);return!1}),
el:Q,tabindex:0,"aria-label":function(){var zj;return(zj=B())==null?void 0:zj.a11yString},
id:"player-overlay-video-interaction-svg",class:_.Pw("yt-player-overlay-video-interactions__interactions-svg",(l["yt-player-overlay-video-interactions__interactions-svg-hover"]=f,l),(mx["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=x,mx)),role:"button",style:function(){var zj,VN,$Q,OV=($Q=(zj=B())==null?void 0:(VN=zj.regions)==null?void 0:VN[0].transformationMatrix)!=null?$Q:[];zj=w();VN=V();$Q=[];for(var rW=0,MA=-1;rW<OV.length;rW++)rW%3===0&&(MA++,$Q[MA]=[]),$Q[MA].push(OV[rW]);
OV=new mJ($Q);$Q=new mJ([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);$Q=OV.multiply($Q);OV=new mJ([[0,0],[0,0],[0,0],[0,0]]);for(rW=0;rW<$Q.getSize().width;rW++){MA=zr($Q,0,rW);var UV=zr($Q,1,rW);if(MA===null||UV===null)throw Error("gm`"+(rW+1).toString());RW(OV,rW,0,MA*zj);RW(OV,rW,1,UV*VN)}zj=zr(OV,0,0);rW=zr(OV,1,0);VN=zr(OV,0,1);MA=zr(OV,1,1);if(zj===null||rW===null||VN===null||MA===null)throw Error("em");$Q=sZz(zj,rW,VN,MA);UV=zr(OV,3,0);OV=zr(OV,3,1);if(UV===null||OV===null)throw Error("fm");OV=sZz(zj,
UV,VN,OV);MA=(Number((MA*-1).toFixed(2))-Number((VN*-1).toFixed(2)))/(Number(rW.toFixed(2))-Number(zj.toFixed(2)));UV=Math.atan(MA)*180/Math.PI;rW=MA===Number.POSITIVE_INFINITY?-90:MA===Number.NEGATIVE_INFINITY?90:Object.is(MA,-0)?180:MA===0?0:MA>0?UV*-1:zj<rW?UV*-1:Math.abs(UV)+180;return"left:calc("+zj+"px + "+g()+"); top:calc("+(VN+"px + "+z()+"); width:")+($Q+"px; height:")+(OV+"px; transform:rotate(")+(rW+"deg);")},
"on:click":U}))},"Ni"),"yt-player-overlay-video-interactions",{props:{data:_.W4}});_.eq(_.xkY,"yt-reel-metapanel-view-model",{props:{data:_.W4,overlayDensity:_.W4}});var b$o=_.oS(function(f){var S=f.children;var B=f.region;f=_.m(_.hj(void 0,void 0,"rwJZyc"));var G=f.next().value,g=f.next().value;f=_.m(_.hj("0px",void 0,"H14H5c"));var b=f.next().value,z=f.next().value;f=_.m(_.hj("0px",void 0,"Mn8Uvf"));var X=f.next().value,w=f.next().value;f=_.m(_.hj(0,void 0,"QQCIqc"));var F=f.next().value,V=f.next().value;f=_.m(_.hj(0,void 0,"HyEvh"));var J=f.next().value,P=f.next().value,d=function(){var t=G();if(t){var M;if(((M=_.hD())==null?void 0:M.getPlayerState())!==-1){t.style.display=
"inherit";var a;(a=_.hD())==null||a.removeEventListener("onStateChange",d)}x()}},Q=function(){var t=document.querySelectorAll("video");
return Array.from(t).find(function(M){return M==null?void 0:M.style})},x=function(){var t=Q();
if(t){V(t.getBoundingClientRect().width);P(t.getBoundingClientRect().height);var M;z((t==null?void 0:(M=t.style)==null?void 0:M.left)||"0px");var a;w((t==null?void 0:(a=t.style)==null?void 0:a.top)||"0px")}};
_.jp(function(){var t=G();if(t){var M,a,l;if(((M=_.hD())==null?void 0:M.getPlayerState())===-1&&Math.round(((l=(a=_.hD())==null?void 0:a.getVideoAspectRatio())!=null?l:0)*100)!==Math.round(F()/J()*100)){t.style.display="none";var mx,zj;P(F()/((zj=(mx=_.hD())==null?void 0:mx.getVideoAspectRatio())!=null?zj:1))}}},"RdGxIf");
var E=function(){x()},U;
_.Y5(function(){x();var t;if(!(B==null?0:(t=B())==null?0:t.transformationMatrix))throw Error("hm");var M;(M=_.hD())==null||M.addEventListener("onStateChange",d);if(window.ResizeObserver){if(t=Q())U=new ResizeObserver(E),U.observe(t)}else window.addEventListener("resize",x);_.Ov(function(){var a;(a=_.hD())==null||a.removeEventListener("onStateChange",d);U?U.disconnect():window.removeEventListener("resize",x)})});
var A=function(){var t,M,a=(M=B==null?void 0:(t=B())==null?void 0:t.transformationMatrix)!=null?M:[];t=F();M=J();for(var l=[],mx=0,zj=-1;mx<a.length;mx++)mx%3===0&&(zj++,l[zj]=[]),l[zj].push(a[mx]);a=new mJ(l);l=new mJ([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);l=a.multiply(l);a=new mJ([[0,0],[0,0],[0,0],[0,0]]);for(mx=0;mx<l.getSize().width;mx++){zj=zr(l,0,mx);var VN=zr(l,1,mx);if(zj===null||VN===null)throw Error("gm`"+(mx+1).toString());RW(a,mx,0,zj*t);RW(a,mx,1,VN*M)}t=zr(a,0,0);mx=zr(a,1,0);M=zr(a,0,1);
zj=zr(a,1,1);if(t===null||mx===null||M===null||zj===null)throw Error("em");l=IOu(t,mx,M,zj);VN=zr(a,3,0);a=zr(a,3,1);if(VN===null||a===null)throw Error("fm");a=IOu(t,VN,M,a);zj=(Number((zj*-1).toFixed(2))-Number((M*-1).toFixed(2)))/(Number(mx.toFixed(2))-Number(t.toFixed(2)));VN=Math.atan(zj)*180/Math.PI;mx=zj===Number.POSITIVE_INFINITY?-90:zj===Number.NEGATIVE_INFINITY?90:Object.is(zj,-0)?180:zj===0?0:zj>0?VN*-1:t<mx?VN*-1:Math.abs(VN)+180;return"left:calc("+t+"px + "+b()+"); top:calc("+(M+"px + "+
X()+"); width:")+(l+"px; height:")+(a+"px; transform:rotate(")+(mx+"deg);")};
return _.T(kO2,{root:"#sticker-layer"},function(){return _.T("yt-overlay-sticker",{el:_.Sq(g),style:A,class:"ytOverlayStickerHost"},S)})},"Oi");var mdu=_.oS(function(f){function S(){var d,Q,x,E,U=(Q=_.H((d=w())==null?void 0:d.command,_.qG))==null?void 0:(x=Q.item)==null?void 0:(E=x.notificationTextRenderer)==null?void 0:E.successResponseText;if(U)_.bW(G.value,"yt-open-popup-action",[_.fn(U),G.value]);else if(F())UZo(F(),G.value);else{var A;UZo((A=w())==null?void 0:A.command,G.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var B=f.data;var G=_.tE("svg"),g=_.m(_.hj(!1,void 0,"T9Bq7b"));f=g.next().value;var b=g.next().value,z=_.m(_.hj(!1,void 0,"iMHq9c"));g=z.next().value;var X=z.next().value,w=function(){var d;return _.H((d=B())==null?void 0:d.popUp,Bru)},F=function(){var d;
return(d=B())==null?void 0:d.command},V=function(){return _.H(F(),_.db)!==void 0};
z=_.iF(function(){S();return!1});
var J={},P={};return _.T("svg",{"on:mouseover":_.iF(function(){V()&&b(!0);X(!0);return!1}),
"on:mouseout":_.iF(function(){b(!1);X(!1);return!1}),
"on:keydown":_.iF(function(d){d.key==="Enter"&&S();return!1}),
"on:focus":_.iF(function(){V()&&b(!0);return!1}),
"on:blur":_.iF(function(){V()&&b(!1);return!1}),
el:G,tabindex:0,"aria-label":function(){var d;return(d=B())==null?void 0:d.a11yString},
id:"player-overlay-video-interaction-svg",class:_.Pw("ytPlayerOverlayInteractionInteractionsSvg",(J.ytPlayerOverlayInteractionInteractionsSvgHover=f,J),(P.ytPlayerOverlayInteractionInteractionsSvgHideOutline=g,P)),role:"button","on:click":z})},"Qi");_.eq(_.oS(function(f){var S=f.data;_.Y5(function(){var B;if((B=S())==null?0:B.trackingParams){var G;_.ik().graftServerVe((G=S().trackingParams)!=null?G:"")}});
return _.T("yt-player-overlay-interaction",null,_.T(b$o,{region:function(){var B,G;return(B=S())==null?void 0:(G=B.regions)==null?void 0:G[0]}},_.T(mdu,Object.assign({},f))))},"Pi"),"yt-player-overlay-interaction",{props:{data:_.W4}});var w4=function(){var f=_.I.apply(this,arguments)||this;f.showScrubber=!1;f.isWatchWhileMode=!1;f.enableRemixButton=_.K("web_enable_shorts_remix_handoff_ep");f.enableAnchoredPanel=_.K("desktop_shorts_v2_anchored_panel");f.enableNewStickers=_.K("use_shorts_sticker_overlay_web");f.anchoredPanelActive=!1;f.enableLivingroomLayout=_.K("reels_enable_livingroom_layout");f.enablePlayerMetadataContainer=_.K("reels_web_enable_metadata_container");f.enableSqueezebackPanels=_.K("web_shorts_enable_squeezeback_panels");
f.useAspectRatio=_.K("web_use_aspect_ratio");f.isSqueezebackActive=!1;f.smallScreenSqueezeback=!1;f.isPlayerStarted=!1;f.overlayDensity=0;f.isOverlay=!1;f.isImmersive=!1;f.isImmersiveHorizontal=!1;f.isFullscreen=!1;f.onWindowResized=function(){var S;f.set("isImmersive",((S=window.getComputedStyle(f.hostElement))==null?void 0:S.getPropertyValue("--immersive-mode-on"))==="1");f.set("isImmersiveHorizontal",f.isImmersive&&f.enableLivingroomLayout&&!f.isWatchWhileMode)};
return f};
_.q(w4,_.I);_.e=w4.prototype;_.e.updateIsOverlay=function(f){this.isOverlay=f.detail.value};
_.e.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.K("web_enable_flexible_overlay")||_.K("web_enable_format_first")||_.K("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.e.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.e.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.e.computeActionBarButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",iconPosition:"icon-with-label",size:"L"}};
_.e.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.e.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.e.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.e.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",_.gO("reels_metadata_justified_content")||"flex-start");this.hostElement.style.setProperty("--action-justify-content",_.gO("reels_action_justified_content")||"flex-start")};
_.e.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}}};
_.e.setFakeLoadingButtons=function(){this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.Jf("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.Jf("DISLIKE_LABEL",void 0,"Dislike")}}});this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.Jf("COMMENT_LABEL",void 0,"Comment")}}});this.set("data.shareButton",{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.Jf("SHARE_LABEL",
void 0,"Share")}}});_.K("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.Jf("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()};
_.e.setEmptyOverlayMetadata=function(){_.K("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}))};
_.y3.Object.defineProperties(w4.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.infoPanel)}}});
w4.prototype.onIsActiveChanged=w4.prototype.onIsActiveChanged;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],w4.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],w4.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],w4.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.Iu.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],w4.prototype,"ytdGuideStateAwareBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],w4.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Boolean)],w4.prototype,"isActive",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],w4.prototype,"hidden",void 0);_.N([_.n({value:!0}),_.Z("design:type",Boolean)],w4.prototype,"useShortsIcon",void 0);_.N([_.n({value:"left"}),_.Z("design:type",String)],w4.prototype,"buttonTooltipPosition",void 0);
_.N([_.n({value:_.K("reels_enable_livingroom_layout")?"top":"left"}),_.Z("design:type",String)],w4.prototype,"likeButtonTooltipPosition",void 0);_.N([_.n({value:"none"}),_.Z("design:type",String)],w4.prototype,"textTransform",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],w4.prototype,"showScrubber",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],w4.prototype,"isWatchWhileMode",void 0);
_.N([_.n({reflectToAttribute:!0}),_.k("data.infoPanel"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],w4.prototype,"hasInfoPanel",null);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],w4.prototype,"enableRemixButton",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],w4.prototype,"enableAnchoredPanel",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],w4.prototype,"enableNewStickers",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],w4.prototype,"anchoredPanelActive",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],w4.prototype,"enableLivingroomLayout",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],w4.prototype,"enablePlayerMetadataContainer",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],w4.prototype,"enableSqueezebackPanels",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],w4.prototype,"useAspectRatio",void 0);_.N([_.n({selector:_.YSj,reflectToAttribute:!0}),_.Z("design:type",Object)],w4.prototype,"isSqueezebackActive",void 0);_.N([_.n({selector:jZM,reflectToAttribute:!0}),_.Z("design:type",Object)],w4.prototype,"smallScreenSqueezeback",void 0);_.N([_.n({selector:OUu}),_.Z("design:type",Object)],w4.prototype,"isPlayerStarted",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],w4.prototype,"overlayDensity",void 0);_.N([_.n(),_.Z("design:type",Object)],w4.prototype,"isOverlay",void 0);_.N([_.n({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.Z("design:type",Boolean)],w4.prototype,"isShortsOverlay",void 0);_.N([_.n(),_.Z("design:type",Object)],w4.prototype,"isImmersive",void 0);_.N([_.n(),_.Z("design:type",Object)],w4.prototype,"isImmersiveHorizontal",void 0);
_.N([_.n({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.Z("design:type",Boolean)],w4.prototype,"isShortsImmersive",void 0);_.N([_.n({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.Z("design:type",Object)],w4.prototype,"buttonOverride",void 0);_.N([_.n({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.Z("design:type",Object)],w4.prototype,"actionBarButtonOverride",void 0);
_.N([_.n({selector:_.Ky,reflectToAttribute:!0}),_.Z("design:type",Object)],w4.prototype,"isFullscreen",void 0);_.N([_.JO("isActive"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],w4.prototype,"onIsActiveChanged",null);_.N([_.C({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],w4);
_.p(w4,"ytd-reel-player-overlay-renderer",function(){if(ghO!==void 0)return ghO;var f=document.createElement("template");_.Y(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[isShortsOverlay]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return ghO=f},{mode:1});var z4u;var hd=function(){var f=_.I.apply(this,arguments)||this;f.videoDuration=0;f.playedTime=0;f.isActive=!1;f.JSC$19781_playerEvents=new Map;return f};
_.q(hd,_.I);_.e=hd.prototype;_.e.created=function(){this.JSC$19781_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$19781_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.e.attached=function(){this.getPlayerAndInitializeListeners()};
_.e.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19781_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.Fc(this,this.onPageChanged))};
_.e.getPlayerAndInitializeListeners=function(){var f=this,S;return _.R(function(B){if(B.nextAddress==1)return S=_.B8(),S?_.h(B,S.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Fc(f,f.onPageChanged)),B.jumpTo(0));f.player=B.yieldResult;f.initializePlayerListeners();_.TT(B)})};
_.e.onPageChanged=function(f){var S=this;return _.R(function(B){if(B.nextAddress==1)return f.detail.newPageType!=="ytd-shorts"?B.return():_.h(B,_.GG().getPlayerPromise(),2);S.player=B.yieldResult;S.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Fc(S,S.onPageChanged));_.TT(B)})};
_.e.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19781_playerEvents)};
_.e.onVideoDataChange=function(f){var S=this;return _.R(function(B){if(!S.player||f.type!=="newdata")return B.return();S.videoDuration=_.K("web_shorts_use_progress_state_for_gapless")?S.player.getProgressState(f.playertype).seekableEnd:S.player.getDuration(f.playertype);S.playedTime=0;_.TT(B)})};
_.e.onVideoProgress=function(f){var S=this,B,G;return _.R(function(g){if(!S.player)return g.return();B=S.player.getPresentingPlayerType();G=S.player.getPlayerState();S.videoDuration=_.K("web_shorts_use_progress_state_for_gapless")?S.player.getProgressState(B).seekableEnd:S.player.getDuration(B);S.playedTime=G===0?S.videoDuration:f;_.TT(g)})};
_.e.getPercentPlayed=function(f,S){return f?_.Uy(S/f,0,1):0};
_.y3.Object.defineProperties(hd.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 f="";return f=this.videoDuration&&this.playedTime?f+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):f+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],hd.prototype,"componentBehavior",void 0);_.N([_.r(_.Nr.YtPlayerListenerBehavior),_.Z("design:type",_.Mr)],hd.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],hd.prototype,"player",void 0);_.N([_.n(),_.Z("design:type",Object)],hd.prototype,"videoDuration",void 0);_.N([_.n(),_.Z("design:type",Object)],hd.prototype,"playedTime",void 0);_.N([_.n(),_.Z("design:type",Object)],hd.prototype,"isActive",void 0);
_.N([_.k("videoDuration","playedTime"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],hd.prototype,"percentPlayed",null);_.N([_.k("videoDuration","playedTime"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],hd.prototype,"percentPlayedStyle",null);_.N([_.k("videoDuration","isActive"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],hd.prototype,"hideProgressBar",null);
_.p(hd,"ytd-progress-bar-line",function(){if(z4u===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);z4u=f}f=z4u;return f},{mode:_.X_("kevlar_poly_si_batch_j028")?1:2});var R42;_.eq(_.zKn,"ytm-closed-captioning-button",{props:{captionIconType:_.W4,onClick:_.gm,ariaLabel:_.W4,ariaPressed:_.W4,isOverlay:_.gm,isModern:_.gm}});_.eq(_.$kn,"desktop-shorts-volume-controls",{props:{orientation:_.W4}});var Tr=function(){var f=_.I.apply(this,arguments)||this;f.playerState=null;f.isMuted=!1;f.shortsModernControlsEnabled=_.K("web_shorts_modern_controls");f.volumeControlsOrientationState=_.K("web_shorts_modern_controls")?"vertical_down":"horizontal_right";f.isOverlay=!0;f.captionIconType=-1;f.ariaLabel="";f.overlayDensity=0;f.JSC$19784_playerEvents=new Map;f.onClosedCaptionsButtonClick=function(){f.player&&_.DQ(f.player)&&(f.player.toggleSubtitles(),f.updateCaptionIconType())};
return f};
_.q(Tr,_.I);_.e=Tr.prototype;_.e.created=function(){this.JSC$19784_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19784_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$19784_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.e.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.Eo(28662);this.playPauseButtonClientVE=_.Eo(36842);this.fullscreenButtonToggleOffClientVE=_.Eo(222256);this.fullscreenButtonToggleOnClientVE=_.Eo(222257);var f=_.xc(),S=_.Of();f&&S&&(_.K("combine_ve_grafts")?(_.Xo(_.ik(),this.muteButtonClientVE,S),_.Xo(_.ik(),this.playPauseButtonClientVE,S)):_.NE(f,S,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.e.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19784_playerEvents),this.player=null)};
_.e.updateCaptionIconType=function(){var f=-1,S=void 0,B=_.Jf("CLOSED_CAPTIONS_DISABLED");this.player&&_.DQ(this.player)&&(_.Wg$(this.player)?(S=!0,B=_.Jf("CLOSED_CAPTIONS_ON"),f=1):(S=!1,B=_.Jf("CLOSED_CAPTIONS_OFF"),f=0));this.captionIconType=f;this.ariaPressedState=S;this.ariaLabel=B};
_.e.getPlayerAndInitializeListeners=function(){var f=this,S;return _.R(function(B){if(B.nextAddress==1)return S=_.B8(),S?_.h(B,S.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Fc(f,f.onPageChanged)),B.jumpTo(0));f.player=B.yieldResult;f.initializePlayerListeners();_.TT(B)})};
_.e.onPageChanged=function(f){var S=this;return _.R(function(B){if(B.nextAddress==1)return f.detail.newPageType!=="ytd-shorts"?B.return():_.h(B,_.GG().getPlayerPromise(),2);S.player=B.yieldResult;S.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Fc(S,S.onPageChanged));_.TT(B)})};
_.e.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19784_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.e.onPlayerStateChange=function(f){this.playerState=f};
_.e.onPlayerVolumeChange=function(f){this.isMuted=f.muted};
_.e.onPlayPauseButtonClick=function(){var f=this,S,B;return _.R(function(G){if(G.nextAddress==1)return _.h(G,_.GG().getPlayerPromise(),2);S=G.yieldResult;(B=_.xc())&&f.playPauseButtonClientVE&&_.uW(B,f.playPauseButtonClientVE);S.getPlayerState()!==1?S.playVideo():S.pauseVideo();_.TT(G)})};
_.e.computePlayPauseIcon=function(f){return f===2||f===-1||f===5?_.K("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.K("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.K("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.e.computeFullscreenLabel=function(f){return f?_.Jf("FULLSCREEN_EXIT_LABEL"):_.Jf("FULLSCREEN_ENTER_LABEL")};
_.e.computePlayPauseLabel=function(f){return f===1||f===3?_.Jf("PLAYER_LABEL_PAUSE"):_.Jf("PLAYER_LABEL_PLAY")};
_.e.onMuteButtonClick=function(){var f=this,S,B;return _.R(function(G){if(G.nextAddress==1)return _.h(G,_.GG().getPlayerPromise(),2);S=G.yieldResult;(B=_.xc())&&f.muteButtonClientVE&&_.uW(B,f.muteButtonClientVE);S.isMuted()?S.unMute(!0):S.mute(!0);_.TT(G)})};
_.e.computeMuteIcon=function(f){return f?"miniplayer:volume-off":"miniplayer:volume-up"};
_.e.computeMuteLabel=function(f){return f?_.Jf("PLAYER_LABEL_UNMUTE"):_.Jf("PLAYER_LABEL_MUTE")};
_.e.onFullscreenButtonClick=function(){var f=_.xc();f&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.uW(f,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.uW(f,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.v0Z()};
_.y3.Object.defineProperties(Tr.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var f=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(){f.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?_.K("web_shorts_modern_controls")?"player_full_exit_alt":_.K("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.K("web_shorts_modern_controls")?"player_full_enter_alt":_.K("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Tr.prototype,"componentBehavior",void 0);_.N([_.r(_.Nr.YtPlayerListenerBehavior),_.Z("design:type",_.Mr)],Tr.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],Tr.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Tr.prototype,"player",void 0);_.N([_.n(),_.Z("design:type",Object)],Tr.prototype,"playerState",void 0);_.N([_.n(),_.Z("design:type",Object)],Tr.prototype,"isMuted",void 0);
_.N([_.n({computed:"computePlayPauseIcon(playerState)"}),_.Z("design:type",String)],Tr.prototype,"playPauseIcon",void 0);_.N([_.n({computed:"computeMuteIcon(isMuted)"}),_.Z("design:type",String)],Tr.prototype,"muteIcon",void 0);_.N([_.n({selector:_.Ky}),_.Z("design:type",Boolean)],Tr.prototype,"isFullscreen",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Tr.prototype,"shortsModernControlsEnabled",void 0);
_.N([_.n(),_.Z("design:type",Object)],Tr.prototype,"volumeControlsOrientationState",void 0);_.N([_.n(),_.Z("design:type",Object)],Tr.prototype,"isOverlay",void 0);_.N([_.n(),_.Z("design:type",Object)],Tr.prototype,"captionIconType",void 0);_.N([_.n(),_.Z("design:type",Object)],Tr.prototype,"ariaLabel",void 0);_.N([_.n(),_.Z("design:type",Object)],Tr.prototype,"ariaPressedState",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Tr.prototype,"overlayDensity",void 0);
_.N([_.k("playerState"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Tr.prototype,"playPauseButtonData",null);_.N([_.k("isFullscreen"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Tr.prototype,"fullscreenButtonData",null);_.N([_.n(),_.Z("design:type",Object)],Tr.prototype,"onClosedCaptionsButtonClick",void 0);_.N([_.k("isFullscreen"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Tr.prototype,"fullscreenIcon",null);
_.p(Tr,"ytd-shorts-player-controls",function(){if(R42===void 0){var f=document.createElement("template");_.Y(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n    <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n      <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-modern="[[shortsModernControlsEnabled]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n      </ytm-closed-captioning-button>\n    </div>\n    <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n  </div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);R42=f}f=R42;return f},{mode:1});var Xjz;_.eq(_.QWj,"yt-interstitial-view-model",{props:{data:_.W4}});var wjB=_.oS(function(f){var S=f.data;return _.T("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.T("h1",{class:"reelWatchBreakViewModelHostTitle"},_.T(_.oY,{text:function(){return S().title}})),_.T("h2",{class:"reelWatchBreakViewModelHostBody"},_.T(_.oY,{text:function(){return S().body},
isOverlay:!0})),_.T(_.xK,{data:function(){return S().buttons}},{buttonViewModel:function(B,G){return _.T("div",{class:function(){return G()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.T(_.I8,{data:B.data}))}}))},"Ri");
wjB.idomCompat=!0;_.eq(wjB,"reel-watch-break-view-model",{props:{data:_.W4}});var FO=function(){return _.I.apply(this,arguments)||this};
_.q(FO,_.I);FO.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}}};
_.y3.Object.defineProperties(FO.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var f;return!!_.H((f=this.data)==null?void 0:f.renderer,WlY)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var f;return!!_.H((f=this.data)==null?void 0:f.renderer,czz)}}});
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],FO.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],FO.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],FO.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],FO.prototype,"data",void 0);
_.N([_.n({reflectToAttribute:!0}),_.k("data.renderer"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],FO.prototype,"isSurvey",null);_.N([_.n({reflectToAttribute:!0}),_.k("data.renderer"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],FO.prototype,"isInterstitialViewModel",null);_.N([_.C({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],FO);
_.p(FO,"ytd-reel-non-video-content-renderer",function(){if(Xjz!==void 0)return Xjz;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);
return Xjz=f},{mode:_.X_("kevlar_poly_si_batch_j028")?1:2});var h4M;_.eq(_.q7n,"desktop-shorts-player-controls",{});var Vx=function(){var f=_.I.apply(this,arguments)||this;f.isPlayerPaused=!1;f.isPlayerStarted=!1;f.showPlayerControls=!1;f.showScrubber=!1;f.autoHideJobId=0;f.modern=_.K("web_button_rework");f.overlayType=_.gO("web_shorts_expanded_overlay_type");f.panelData=void 0;f.isWatchWhileMode=!1;f.hasError=!1;f.panelShowDelayMs=1;f.scrubberComponent={};f.isFullscreen=!1;f.shouldHideOverlay=!1;f.enableAnchoredPanel=_.K("desktop_shorts_v2_anchored_panel");f.enablePersistentAnchoredPanel=_.K("desktop_shorts_v2_persistent_anchored_panel");
f.hideWatchWhilePanel=_.K("web_shorts_hide_watch_while_panel");f.useAspectRatio=_.K("web_use_aspect_ratio");f.isPersistentPanelActive=!1;f.anchoredPanelActive=!1;f.isShortsPipActive=!1;f.smallScreenSqueezeback=!1;f.enableFlexibleOverlay=_.K("web_enable_flexible_overlay");f.overlayDensity=0;f.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};f.onWindowResized=function(){_.NJ(f,
"calculateOverlayDensity",function(){f.calculateOverlayDensity()},100)};
return f};
_.q(Vx,_.I);_.e=Vx.prototype;_.e.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.e.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.e.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var f=_.oy().resolve(_.ir);this.isWatchWhileMode&&(_.K("web_enable_shorts_new_carousel")?_.xJ.addJob(function(){f.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):f.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.e.handleShowReelsCommentsOverlayCommand=function(f){f=_.H(f,ohn);this.isActive&&(f==null?0:f.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))};
_.e.updateEngagementPanelVisibility=function(f,S){f&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:S?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:f}})};
_.e.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.e.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.oy().resolve(_.dQ).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.e.handleWatchWhilePanelScrimClick=function(){var f=_.oy().resolve(_.ir);this.activeWatchWhilePanel&&(f.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.e.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.e.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:_.K("web_enable_shorts_new_carousel")?0:void 0}}};
_.e.handlePlayerClick=function(f){var S=this,B,G;if((G=(B=window).matchMedia)!=null&&G.call(B,"(any-pointer: coarse)").matches||!f)this.showPlayerControls=!0,_.xJ.cancelJob(this.autoHideJobId),this.autoHideJobId=_.q6(_.xJ,function(){S.showPlayerControls=!1},4E3)};
_.e.isFirstReel=function(){return this.index===0};
_.e.handleMouseenter=function(){_.xJ.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.e.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.e.handleScrubberEnter=function(){this.showScrubber=!0};
_.e.handleScrubberLeave=function(){this.showScrubber=!1};
_.e.maybeLogNonDefaultAspectRatio=function(){var f;(f=this.data)!=null&&f.thumbnail&&this.isActive&&.5625!==rzu(this.data.thumbnail)&&_.U4K("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.e.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var f=document.querySelector("#shorts-container");if(f){f=f.offsetWidth/2-this.playerContainer.offsetWidth/2;f=f>=368?1:f>=72?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&f===1&&(f=0);this.isPersistentPanelActive&&(f=0);window.innerWidth<=599&&(f=2);this.overlayDensity=f;var S;(S=this.onOverlayDensityChanged)==null||S.call(this,this.index,this.overlayDensity)}}};
_.e.onOverlayDensityChange=function(){var f;(f=this.onOverlayDensityChanged)==null||f.call(this,this.index,this.overlayDensity);(f=_.m9(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&f.set("overlayDensity",this.overlayDensity);if(f=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))f.overlayDensity=this.overlayDensity};
_.e.isVideoContent=function(f){_.oy().resolve(_.dQ);return!!_.H(f,_.QW)};
_.e.isNonVideoContent=function(f){_.oy().resolve(_.dQ);return!!_.H(f,_.s2)};
_.e.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.y3.Object.defineProperties(Vx.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var f,S;return _.K("web_enable_format_first")||((f=this.data)==null?void 0:f.adsOverlay)&&_.K("web_enable_format_first_ads_only")||((S=this.data)==null?void 0:S.reelPlayerOverlayRenderer)&&_.K("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 f;return!this.isActive||!this.isPlayerStarted||(f=this.data)!=null&&f.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var f;if(((f=this.data)==null?0:f.command)&&this.isVideoContent(this.data.command)){var S,B;if(((S=this.data)==null?0:S.adsOverlay)&&Object.keys((B=this.data)==null?void 0:B.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var G,g;if(((G=this.data)==null?0:G.reelPlayerOverlayRenderer)&&Object.keys((g=this.data)==null?void 0:g.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
Vx.prototype.onOverlayDensityChange=Vx.prototype.onOverlayDensityChange;Vx.prototype.calculateOverlayDensity=Vx.prototype.calculateOverlayDensity;Vx.prototype.maybeLogNonDefaultAspectRatio=Vx.prototype.maybeLogNonDefaultAspectRatio;Vx.prototype.onEngagementPanelsChanged=Vx.prototype.onEngagementPanelsChanged;Vx.prototype.onScrubberDataChange=Vx.prototype.onScrubberDataChange;Vx.prototype.updateShouldHideOverlay=Vx.prototype.updateShouldHideOverlay;
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Vx.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Vx.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.Iu.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],Vx.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Vx.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Number)],Vx.prototype,"index",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Vx.prototype,"isActive",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Vx.prototype,"isHiddenInDom",void 0);_.N([_.n(),_.Z("design:type",Object)],Vx.prototype,"isPlayerPaused",void 0);_.N([_.n({selector:OUu}),_.Z("design:type",Object)],Vx.prototype,"isPlayerStarted",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Vx.prototype,"showPlayerControls",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Vx.prototype,"showScrubber",void 0);_.N([_.n(),_.Z("design:type",Object)],Vx.prototype,"autoHideJobId",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Vx.prototype,"modern",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Vx.prototype,"overlayType",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],Vx.prototype,"ytdReduxBehavior",void 0);
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],Vx.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Vx.prototype,"watchWhileEngagementPanels",void 0);_.N([_.n(),_.Z("design:type",Object)],Vx.prototype,"panelData",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Vx.prototype,"isWatchWhileMode",void 0);_.N([_.n(),_.Z("design:type",String)],Vx.prototype,"activeWatchWhilePanel",void 0);
_.N([_.n(),_.Z("design:type",Object)],Vx.prototype,"hasError",void 0);_.N([_.n(),_.Z("design:type",Object)],Vx.prototype,"panelShowDelayMs",void 0);_.N([_.n(),_.Z("design:type",Object)],Vx.prototype,"scrubberComponent",void 0);_.N([_.n({selector:_.Ky,reflectToAttribute:!0}),_.Z("design:type",Object)],Vx.prototype,"isFullscreen",void 0);_.N([_.n(),_.Z("design:type",Object)],Vx.prototype,"shouldHideOverlay",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Vx.prototype,"enableAnchoredPanel",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Vx.prototype,"enablePersistentAnchoredPanel",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Vx.prototype,"hideWatchWhilePanel",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Vx.prototype,"useAspectRatio",void 0);
_.N([_.n({selector:_.YSj,reflectToAttribute:!0}),_.Z("design:type",Object)],Vx.prototype,"isPersistentPanelActive",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Vx.prototype,"anchoredPanelActive",void 0);_.N([_.n({selector:_.d5,reflectToAttribute:!0}),_.Z("design:type",Object)],Vx.prototype,"isShortsPipActive",void 0);_.N([_.n({selector:jZM,reflectToAttribute:!0}),_.Z("design:type",Object)],Vx.prototype,"smallScreenSqueezeback",void 0);
_.N([_.n({reflectToAttribute:!0}),_.k("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Vx.prototype,"enableFormatFirst",null);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Vx.prototype,"enableFlexibleOverlay",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Vx.prototype,"overlayDensity",void 0);_.N([_.n(),_.Z("design:type",Function)],Vx.prototype,"onOverlayDensityChanged",void 0);
_.N([_.n(),_.k("isActive","hasError"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Vx.prototype,"shouldRenderPlayerElements",null);_.N([_.n(),_.k("isActive","isWatchWhileMode"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Vx.prototype,"watchWhileOrPersistentActive",null);_.N([_.JO("isActive","hasError","showingExpandedOverlay"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Vx.prototype,"updateShouldHideOverlay",null);
_.N([_.n({reflectToAttribute:!0}),_.k("isActive","isPlayerStarted","data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Vx.prototype,"shouldRenderScrubber",null);_.N([_.JO("shouldRenderScrubber"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Vx.prototype,"onScrubberDataChange",null);_.N([_.k("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Vx.prototype,"overlayComponent",null);
_.N([_.JO("watchWhileEngagementPanels"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Vx.prototype,"onEngagementPanelsChanged",null);_.N([_.vF("#player-container"),_.Z("design:type",HTMLElement)],Vx.prototype,"playerContainer",void 0);_.N([_.vF("#cinematic-container"),_.Z("design:type",HTMLElement)],Vx.prototype,"cinematicContainer",void 0);
_.N([_.JO("isPersistentPanelActive","data.thumbnail"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Vx.prototype,"maybeLogNonDefaultAspectRatio",null);_.N([_.JO("isPersistentPanelActive"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Vx.prototype,"calculateOverlayDensity",null);_.N([_.JO("overlayDensity"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Vx.prototype,"onOverlayDensityChange",null);
_.N([_.C({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],Vx);
_.p(Vx,"ytd-reel-video-renderer",function(){if(h4M!==void 0)return h4M;var f=document.createElement("template");_.Y(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return h4M=f},{mode:_.X_("kevlar_poly_si_batch_j028")?1:2});var Jd=function(){var f=_.I.apply(this,arguments)||this;f.isPreviousPageShorts=!1;f.index=0;f.delayedActiveIndex=0;f.playablePreviousIndex=null;f.isPlayerPaused=!1;f.isPlayerStarted=!1;f.intersectionObserverThreshold=.6;f.fitToVisibleBounds=!1;f.pageSubtype="shorts";f.enablePreviousContinuation=_.K("shorts_in_playlists_web");f.shortsPipEnabled=_.K("web_shorts_pip");f.isDark=document.documentElement.hasAttribute("dark");f.shortsViewTransitions=_.K("web_shorts_view_transitions");f.isFullscreen=!1;f.isShortsPipActive=
!1;f.buttonOverride={iconPosition:"icon-only",size:"XL"};f.anchoredPanelActive=!1;f.isActive=!1;f.smallScreenPersistentPanel=!1;f.isPersistentPanelActive=!1;f.smallScreenSqueezeBack=!1;f.enableScrollIntoViewCenter=_.K("web_scroll_into_view_center");f.formatFirst=_.K("web_enable_format_first")||_.K("web_enable_format_first_ads_only")||_.K("web_enable_format_first_organic_only");f.enableFlexibleOverlay=_.K("web_enable_flexible_overlay");f.useAspectRatio=_.K("web_use_aspect_ratio");f.isShortsInitialized=
!1;f.hidePreviousButtonImmediately=!1;f.showPreviousButtonImmediately=!1;f.endOfNextContinuation=!1;f.currentPlayerIndex=0;f.nextReelVe=_.Eo(56921);f.prevReelVe=_.Eo(56922);f.loopToggleOffVe=_.Eo(198013);f.loopToggleOnVe=_.Eo(198014);f.ambientModeToggleVe=_.Eo(227860);f.reelPlayerPausedStateRendererVe=_.Eo(141313);f.storedPlaybackSpeed=null;f.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"};f.onOverlayDensityChanged=function(S,B){var G;(G=f.getActiveReelVideo(S))==null||G.setAttribute("overlay-density",String(B))};
return f};
_.q(Jd,_.I);_.e=Jd.prototype;
_.e.deflateInactivePreviousSlides=function(){var f=_.Gt("web_shorts_deflate_inactive_slides_aggressive_distance");if(f>0&&this.shortsProcessedSequence&&this.activeIndex){f=this.activeIndex-f;for(var S=0;S<=f;S++){var B=void 0;((B=this.shortsProcessedSequence[S].reelPlayerOverlayRenderer)==null?0:B.metapanel)&&this.set("shortsProcessedSequence."+S+".reelPlayerOverlayRenderer",{});B=void 0;((B=this.shortsProcessedSequence[S].adsOverlay)==null?0:B.adSlotMetadata)&&this.set("shortsProcessedSequence."+S+
".adsOverlay",{})}}};
_.e.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.e.onResize=function(){var f=_.W2(),S=f.dispatch,B=this.calculateIsSmallWidth();S.call(f,_.ef({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:B}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.e.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:_.K("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}}};
_.e.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var f=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,S=f,B=0;f<250&&(S=f+this.shortsInnerContainer.clientWidth,B=24);_.hO(this.hostElement,{"--ytd-shorts-header-width":S+"px","--ytd-shorts-top-spacing":B+"px"})}};
_.e.isFirstShorts=function(f){return f?this.index===-f.length:this.index===0};
_.e.isActiveReel=function(f,S,B){B&&(S=this.calculatePrevIndex(S,B));return f===S};
_.e.onFullscreenChange=function(){if(_.K("web_fullscreen_shorts")){var f;(f=this.getActiveReelVideo(this.activeIndex))==null||f.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.oy().resolve(_.N_).close(!0)}};
_.e.engagementPanelsChanged=function(){var f;this.watchWhileEngagementPanels=(f=this.data)==null?void 0:f.engagementPanels};
_.e.unregisterPanels=function(){var f=_.oy().resolve(_.ir);if(this.watchWhileEngagementPanels)for(var S=_.m(this.watchWhileEngagementPanels),B=S.next();!B.done;B=S.next()){var G=void 0,g=void 0;B=(G=B.value.engagementPanelSectionListRenderer)==null?void 0:(g=G.identifier)==null?void 0:g.tag;f&&B&&f.panelMap.delete(B)}};
_.e.isVideoContent=function(f){return this.isVideoContentCommand(f==null?void 0:f.command)};
_.e.getActiveReelVideo=function(f){return _.m9(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+f+'"]')};
_.e.calculatePrevIndex=function(f,S){return S?f-((S==null?void 0:S.length)||0):-1};
_.e.onKeydown=function(f){var S=_.ct(f)||[];if(!_.JYn(S))if(f.code==="ArrowUp")f.preventDefault(),this.handlePrevButtonClick();else if(f.code==="ArrowDown")f.preventDefault(),this.handleNextButtonClick();else if(f.code==="KeyM")this.toggleMuteUnmuteVideo();else if(f.code==="KeyK"||f.code==="Space")this.togglePlayPauseVideo();else if((f.code==="KeyA"||f.code==="ArrowLeft")&&_.K("web_shorts_keyboard_enable_seek_shortcuts")){var B;(B=this.player)==null||B.seekBy(-5)}else if((f.code==="KeyD"||f.code===
"ArrowRight")&&_.K("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var G;(G=this.player)==null||G.seekBy(5)}};
_.e.onServiceRequestCompleted=function(f,S){f=S.data;f.continuationEndpoint&&f.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:f.entries,continuationEndpoint:f.continuationEndpoint}}):f.prevContinuationEndpoint&&f.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:f.prevEntries,prevContinuationEndpoint:f.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.e.handleEngagementPanelVisibilityChanged=function(f,S){var B=_.oy().resolve(_.ir);if(f&&B){var G,g=((G=f.identifier)==null?void 0:G.tag)||f.panelIdentifier||f.targetId;if(S==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==g){B.hidePanel(this.activePanel);var b;this.activePanel=((b=f.identifier)==null?void 0:b.tag)||f.panelIdentifier}else this.isPersistentPanelActive=!0,_.W2().dispatch(NfX(!0)),this.anchoredPanelActive=!0,this.activePanel=g;else S==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===g&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.W2().dispatch(NfX(!1)))}};
_.e.handlePanelScrimClick=function(){var f=_.oy().resolve(_.ir);this.activePanel&&(f.hidePanel(this.activePanel),_.W2().dispatch(NfX(!1)))};
_.e.getShortsLoopSetting=function(){var f,S,B,G,g;return _.R(function(b){switch(b.nextAddress){case 1:return _.K("kevlar_shorts_auto_advance")?_.h(b,_.YZ.getInstance(),2):b.return(!0);case 2:return(f=b.yieldResult)?_.h(b,f.get("sfvles"),3):b.return(!0);case 3:return B=(S=b.yieldResult)!=null?S:!1,_.h(b,f.get("sfvle"),4);case 4:return g=(G=b.yieldResult)!=null?G:!0,B?b.return(g):b.return(!0)}})};
_.e.handleSignalActionToggleLoopShortsOff=function(){var f=this,S,B,G;return _.R(function(g){switch(g.nextAddress){case 1:if(!f.player)return g.return();f.player.setLoopVideo(!1);S=_.ik();_.h0(S,f.loopToggleOffVe);return _.h(g,_.YZ.getInstance(),2);case 2:return(B=g.yieldResult)?_.h(g,B.set("sfvle",!1),3):g.return();case 3:return _.h(g,B.set("sfvles",!0),4);case 4:G=_.K2(),_.dh(0,203,!1),_.dh(0,204,!0),G.save(),_.TT(g)}})};
_.e.handleSignalActionToggleLoopShortsOn=function(){var f=this,S,B,G;return _.R(function(g){switch(g.nextAddress){case 1:if(!f.player)return g.return();f.player.setLoopVideo(!0);S=_.ik();_.h0(S,f.loopToggleOnVe);return _.h(g,_.YZ.getInstance(),2);case 2:return(B=g.yieldResult)?_.h(g,B.set("sfvle",!0),3):g.return();case 3:return _.h(g,B.set("sfvles",!0),4);case 4:G=_.K2(),_.dh(0,203,!0),_.dh(0,204,!0),G.save(),_.TT(g)}})};
_.e.handleSignalActionToggleCinematicShortsOn=function(){YDO(!0);var f;(f=this.JSC$19808_cinematicController)==null||_.HUX(f,!0);_.h0(_.ik(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.e.handleSignalActionToggleCinematicShortsOff=function(){YDO(!1);var f;(f=this.JSC$19808_cinematicController)==null||_.HUX(f,!1);_.h0(_.ik(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.e.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.e.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.e.unhideCurrentOverlay=function(){if(this.overlayContainer){var f=this.overlayContainer.querySelector("#experiment-overlay");f&&_.xJ.addLowPriorityJob(function(){f.style.display="unset"},100)}};
_.e.getCurrentShort=function(){if(this.currentEndpoint){var f=this.currentEndpoint;if(this.isNonVideoContentCommand(f)){var S=_.H(f,_.s2);return{reelNonVideoContentRenderer:_.H(S==null?void 0:S.renderer,_.Sev),command:f}}if(this.data){var B;S=(B=_.H(this.currentEndpoint,_.QW))==null?void 0:B.thumbnail;var G;B=(G=this.data.overlay)==null?void 0:G.reelPlayerOverlayRenderer;_.oy().resolve(_.dQ);f=this.data;var g,b;G=(g=f.overlay)==null?void 0:(b=g.shortsAdsRenderer)==null?void 0:b.adSlots;if(G!==void 0)G.length===
0?(_.GN("Shorts ads returned no ad slots."),f=void 0):(G.length>1&&_.GN("Shorts ads has more than one ad slots."),f=_.H(G[0],_.LZo));else{var z,X;f=_.H((z=f.overlay)==null?void 0:(X=z.shortsAdsRenderer)==null?void 0:X.overlay,_.LZo)}z=f;f=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.H(this.currentEndpoint,_.QW),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:B,thumbnail:S,command:f,adsOverlay:z}}}};
_.e.created=function(){var f=this;this.scrollToVideoThrottle=new _.S3(function(S){var B;(B=f.getActiveReelVideo(S))==null||B.scrollIntoView({behavior:"smooth",block:"nearest",inline:f.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.S3(function(S){var B;(B=f.getActiveReelVideo(S))==null||B.scrollIntoView({behavior:"auto",block:"nearest",inline:f.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.e.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.e.attached=function(){var f=this;paB(this);this.pageScrollElement=_.m9(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.Fc(this,this.processResetAction));_.K("web_reels_min_height_adjustment")&&this.hostElement.style.setProperty("--ytd-reels-min-height","460px");_.K("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var S=f.getActiveReelVideo(f.activeIndex);
f.maybeCreateIntersectionObserver();S==null||S.scrollIntoView({behavior:"instant",block:"nearest",inline:f.enableScrollIntoViewCenter?"center":"start"});f.shortsContainer.style.overflowY="scroll"}))};
_.e.calculateSqueezebackPanelSize=function(){var f=this,S=window.innerWidth-456-(window.innerHeight-106)*.5625;_.xJ.addLowPriorityJob(function(){S<360?_.W2().dispatch(MHO(!0)):(f.hostElement.style.setProperty("--anchored-panel-width",Math.min(S,480)+"px"),_.W2().dispatch(MHO(!1)))})};
_.e.detached=function(){var f=_.oy().resolve(_.dQ);f.rootElement=void 0;var S;(S=f.unsubscribeFromStore)==null||S.call(f);f.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.Fc(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.e.onResizeFinished=function(f,S){var B=this,G=new ResizeObserver(function(){B.shortsContainer.style.overflowY="hidden";_.xJ.addLowPriorityJob(function(){S()},100)});
G.observe(f);return G};
_.e.resetDocumentScrollTop=function(){var f,S;if((f=document)==null?0:(S=f.scrollingElement)==null?0:S.scrollTop)document.scrollingElement.scrollTop=0};
_.e.loadPage_=function(f){var S=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),f){var B;if((B=_.H(this.currentEndpoint,_.QW))==null?0:B.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=f;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){S.isPlayerStarted&&
(S.handleOnPlaybackCommand(),S.afterPlayerStarted=function(){})};
this.registerPanel(f)}};
_.e.afterPlayerStarted=function(){};
_.e.handleOnPlaybackCommand=function(){if(_.K("web_shorts_comment_stickers")&&this.isPlayerStarted){var f,S=(f=_.H(this.currentEndpoint,_.QW))==null?void 0:f.onPlaybackCommand;S&&this.ytComponentBehavior.resolveCommand(S)}};
_.e.maybeCreateIntersectionObserver=function(){var f=this,S=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==S){this.intersectionObserverThreshold=S;var B={rootMargin:"0px",threshold:S},G;(G=this.intersectionObserver)==null||G.disconnect();this.intersectionObserver=new IntersectionObserver(function(g){g=_.m(g);for(var b=g.next();!b.done;b=g.next())if(b=b.value,b.intersectionRatio>S){b=Number(b.target.id);if(isNaN(b))break;if(b===f.index)break;
_.yVM();f.loadVideo(b);_.sL("r_vtc")}},B);
this.observeShorts()}};
_.e.observeShorts=function(){var f=[].concat(_.$d(_.m9(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));f=_.m(f);for(var S=f.next();!S.done;S=f.next()){S=S.value;var B=void 0;(B=this.intersectionObserver)==null||B.observe(S)}};
_.e.initCsi=function(){_.QS("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var f={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"}},S,B;if((S=this.playerData)==null?0:(B=S.cacheMetadata)==null?0:B.isCacheHit)f.isCacheHit=!0;var G;if(S=(G=_.H(this.currentEndpoint,_.QW))==null?void 0:
G.prefetchTaskId)f.prefetchInfo={taskId:S};_.EL(f)};
_.e.isAd=function(){var f,S;return!!((f=_.H(this.currentEndpoint,_.QW))==null?0:(S=f.adClientParams)==null?0:S.isAd)};
_.e.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.e.getPlayerContainer=function(){var f;return(f=_.m9(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:f.playerContainer};
_.e.onPlayerStateChange=function(f){var S=this;this.isPlayerPaused=f===2;f!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?f===1&&this.index===0&&(this.isPlayerStarted||_.W2().dispatch(b2(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.W2().dispatch(b2(!0)));this.player&&!this.player.getLoopVideo()&&_.xJ.addLowPriorityJob(function(){S.getShortsLoopSetting().then(function(B){var G;(G=S.player)==null||G.setLoopVideo(B)})});
this.isPlayerPaused&&_.K("web_shorts_paused_state_logging")&&_.Zu(_.xc(),[this.reelPlayerPausedStateRendererVe])};
_.e.isInBackground=function(){var f=window.document.visibilityState;return!(!f||f==="visible")};
_.e.isShortPlayable=function(){if(_.K("kevlar_playable_short_killswitch"))return!0;var f;return(f=this.playerData)!=null&&f.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.e.setNormalPlaybackSpeed=function(){var f=this,S,B;return _.R(function(G){if(G.nextAddress==1)return _.h(G,f.getPlayer().getPlayerPromise(),2);S=G.yieldResult;B=S.getPlaybackRate();B!==1&&(f.storedPlaybackSpeed=B,S.setPlaybackRate(1));_.TT(G)})};
_.e.restorePlaybackSpeed=function(){var f=this,S;return _.R(function(B){if(B.nextAddress==1)return f.storedPlaybackSpeed===null?B.jumpTo(0):_.h(B,f.getPlayer().getPlayerPromise(),3);S=B.yieldResult;S.setPlaybackRate(f.storedPlaybackSpeed);f.storedPlaybackSpeed=null;_.TT(B)})};
_.e.playerDataChanged=function(){var f=this,S,B,G,g,b,z,X,w,F;return _.R(function(V){if(V.nextAddress==1){S=f.getPlayer();(B=f.intersectionObserver)==null||B.disconnect();if(f.playerData){if(((G=f.playerData.videoDetails)==null?void 0:G.videoId)!==((g=S.getPlayer())==null?void 0:g.getVideoData().video_id)){b={};if(z=_.H(f.currentEndpoint,_.QW))b.watch_endpoint=z,z.endTimeSeconds&&(b.end=z.endTimeSeconds);S.loadVideoWithPlayerResponse(f.playerData,b)}}else return V.return();return f.player?V.jumpTo(2):
_.h(V,S.getPlayerPromise(),3)}V.nextAddress!=2&&(f.player=V.yieldResult,f.JSC$19808_playerStateChangeListener=f.onPlayerStateChange.bind(f),f.player.addEventListener("onStateChange",f.JSC$19808_playerStateChangeListener),_.K("kevlar_client_enable_shorts_player_bootstrap")&&_.l1(),f.scrollToVideoThrottle.fire(f.index),f.movePlayerToVideo(f.index),_.xJ.addLowPriorityJob(function(){f.getShortsLoopSetting().then(function(J){var P;(P=f.player)==null||P.setLoopVideo(J)})}),_.pXN.resolve(f.player),f.player.syncVolume(),
f.getPlayer().focusOnPlayer());
_.xJ.addLowPriorityJob(function(){f.observeShorts()},100);
X=f.player.getPlayerState(f.player.getPresentingPlayerType());X!==1||f.isPlayerStarted||_.W2().dispatch(b2(!0));f.updateBackNavContainerWidth();w=_.H(f.currentEndpoint,_.QW);((F=w)==null?0:F.startTimeSeconds)&&f.player.seekTo(w.startTimeSeconds);if(f.JSC$19808_cinematicController||f.cinematicsInitializeJobId)return V.return();f.cinematicsInitializeJobId=_.xJ.addLowPriorityJob(function(){f.initCinematicController();f.cinematicsInitializeJobId=void 0});
_.TT(V)})};
_.e.onShortUndoDismiss=function(){var f=this,S=Azu().pop();S!==void 0&&(_.ui(this,function(){f.showCardWithIndex(S)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.e.onShortsDismiss=function(f){if(f=f.detail.reelDismissalActionRenderer)(f=_.H(f.onDismissalCompletionRenderer,_.fO$))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:f}}}),this.scrollAndDismissCard()};
_.e.processReelNonVideoContentDismissalCommand=function(f){var S=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);f=_.H(f,f8o);this.activeDimissalTimeout=setTimeout(function(){S.scrollAndDismissCard()},Number(f==null?void 0:f.delayMs))};
_.e.scrollAndDismissCard=function(){var f=this,S=this.index;Azu().push(S);_.ui(this,function(){var B=f.getPlayableNextIndex();B!==null&&(B=f.getActiveReelVideo(B),f.hideCardWithIndex(S),B==null||B.scrollIntoView({behavior:"smooth",block:"nearest",inline:f.enableScrollIntoViewCenter?"center":"start"}))})};
_.e.hideCardWithIndex=function(f){if(f=this.getActiveReelVideo(f))f.hidden=!0};
_.e.showCardWithIndex=function(f){if(f=this.getActiveReelVideo(f))f.hidden=!1};
_.e.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.e.activeChanged=function(f){_.W2().dispatch(_.ef({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:f}}));if(f)document.addEventListener("keydown",_.Fc(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var S;(S=this.player)==null||S.sendAbandonmentPing()}var B;(B=this.player)==null||B.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.Fc(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.e.graftClientVisualElements=function(){if(this.data){var f=_.ik();_.C3N(f,_.wh({response:this.reelWatchSequenceResponse}));_.Xo(f,this.nextReelVe);_.Xo(f,this.prevReelVe);_.K("kevlar_shorts_auto_advance")&&(_.Xo(f,this.loopToggleOffVe),_.Xo(f,this.loopToggleOnVe));_.Xo(f,this.ambientModeToggleVe);_.Zu(_.xc(),[this.nextReelVe,this.prevReelVe]);_.K("web_shorts_paused_state_logging")&&_.Xo(f,this.reelPlayerPausedStateRendererVe)}};
_.e.graftNvcRenderer=function(){var f,S,B,G,g=this.index<0?(f=this.shortsProcessedPrevSequence)==null?void 0:(S=f[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:S.command:(B=this.shortsProcessedSequence)==null?void 0:(G=B[this.index])==null?void 0:G.command;if(g&&this.isNonVideoContentCommand(g)){f=_.H(g,_.s2);var b,z;(f=(b=_.H(f==null?void 0:f.renderer,_.Sev))==null?void 0:(z=b.loggingDirectives)==null?void 0:z.trackingParams)&&_.ik().graftServerVe(f)}};
_.e.setActiveIndex=function(){_.oy().resolve(_.dQ).setActiveIndex(this.index)};
_.e.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.e.lazyUpdateMiniplayerData=function(){var f=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.xJ.addLowPriorityJob(function(){f.updateMiniplayerData();f.updateMiniplayerDataJobId=void 0}))};
_.e.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.xJ.cancelJob(this.updateMiniplayerDataJobId)};
_.e.updateMiniplayerData=function(){var f,S,B,G=_.oy().resolve(_.N_),g={shortsData:this.getCurrentShort(),previousButtonDisabled:!((f=this.prevButtonData)==null||!f.isDisabled),nextButtonDisabled:!((S=this.nextButtonData)==null||!S.isDisabled),playabilityStatus:(B=this.playerData)==null?void 0:B.playabilityStatus};_.QA(G,g)};
_.e.resetPlayerLocation=function(){var f=this.getPlayer();this.initialPlayerContainer&&f.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.e.movePlayerToVideo=function(f,S){var B=this;S=S===void 0?!0:S;var G=this.getActiveReelVideo(f),g=this.getPlayer();if(G){this.overlayContainer?G.appendChild(this.overlayContainer):(this.overlayContainer=_.m9(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,G.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||g.appendTo(this.overlayContainer.playerContainer,void 0,!0));var b;(b=this.player)==null||b.setSize(NaN,NaN);this.isActive||_.q6(_.xJ,function(){B.isActive=
!0});
g.style.visibility="visible";_.K("reels_web_disable_rtr_tick")||_.K("reels_web_use_pbs_first_shorts")&&f===0||_.kT("r_tr");this.currentPlayerIndex=f;G.appendChild(this.errorScreenContainer);var z;(z=this.JSC$19808_cinematicController)==null||_.$ZB(z)}else S?_.xJ.addLowPriorityJob(function(){B.movePlayerToVideo(B.index,!1)}):Math.random()<=_.Gt("web_shorts_error_logging_threshold")&&_.EU(new _.dO("Trying to movePlayerToVideo with undefined container.",{firstAttempt:S,
index:f}))};
_.e.enableFormatFirst=function(f){return _.K("web_enable_format_first")||f.adsOverlay&&_.K("web_enable_format_first_ads_only")||f.reelPlayerOverlayRenderer&&_.K("web_enable_format_first_organic_only")};
_.e.getAspectRatio=function(f){if(f!=null&&f.thumbnail&&this.enableFormatFirst(f))return"--ytd-shorts-player-ratio: "+rzu(f.thumbnail)};
_.e.getBackgroundImage=function(f){if(f!=null&&f.thumbnail)return(f=_.my(f.thumbnail.thumbnails))?'background-image:url("'+f+'");':"background-color:black;"};
_.e.onPersistentPanelActiveChanged=function(){var f=this.getCurrentShort();if(f&&this.enableFormatFirst(f)&&(f==null?0:f.thumbnail)&&rzu(f.thumbnail)!==.5625){var S;(S=this.player)==null||S.setSize(NaN,NaN)}};
_.e.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.e.moveCinematicsToVideo=function(){var f=_.m9(this.hostElement).querySelector("ytd-reel-video-renderer");(f==null?0:f.cinematicContainer)&&f.cinematicContainer!==this.shortsCinematicContainer.parentElement&&f.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.e.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.e.updatePrevButtonData=function(){var f=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(f){var S;this.prevButtonData=f=Object.assign({},f,{accessibility:{label:_.Jf("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:f.isDisabled||this.index===-(((S=this.shortsProcessedPrevSequence)==null?void 0:S.length)||0),tooltip:this.isUpArrowHidden?"":_.Jf("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=f=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.e.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.e.updateNextButtonData=function(){var f=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(f){var S;this.nextButtonData=f=Object.assign({},f,{accessibility:{label:_.Jf("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:f.isDisabled||this.index===((S=this.shortsProcessedSequence)==null?void 0:S.length),tooltip:_.Jf("NEXT_VIDEO_LABEL")||""})}};
_.e.getPlayablePreviousIndex=function(){for(var f,S=this.index-1;S>=-(((f=this.prevShortsSequence)==null?void 0:f.length)||0);S--)if(!Azu().includes(S))return S;return null};
_.e.getIndexInSequence=function(f,S){return f.findIndex(function(B){var G;return((G=_.H(B.command,_.QW))==null?void 0:G.videoId)===S})};
_.e.handlePrevButtonClick=function(f){var S=this,B,G;return _.R(function(g){B=S.getPlayablePreviousIndex();if(B===null)return g.return();S.gestureType=((G=f)==null?void 0:G.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";B===0&&(S.hidePreviousButtonImmediately=!0);if(S.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){S.transitionToVideoThrottle.fire(B)}),g.return();
S.scrollToVideoThrottle.fire(B);_.TT(g)})};
_.e.getPlayableNextIndex=function(){for(var f,S=this.index+1;S<(((f=this.shortsProcessedSequence)==null?void 0:f.length)||0);S++)if(!Azu().includes(S))return S;return null};
_.e.handleNextButtonClick=function(f,S){var B=this,G,g;return _.R(function(b){G=B.getPlayableNextIndex();if(G===null)return b.return();G===1&&(B.showPreviousButtonImmediately=!0);B.gestureType=((g=f)==null?void 0:g.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";S&&(B.gestureType=S);if(B.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){B.transitionToVideoThrottle.fire(G)}),b.return();
B.scrollToVideoThrottle.fire(G);_.TT(b)})};
_.e.handleReelNavigateCommand=function(f,S,B){(f=_.H(f,lOB))&&S&&f.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(B)};
_.e.loadVideo=function(f,S){S=S===void 0?!1:S;if(f!==this.currentPlayerIndex){_.W2().dispatch(b2(!1));if(this.isAd()&&!S){var B;(B=this.player)==null||B.notifyShortsAdSwipeEvent()}if((S=this.JSC$19808_cinematicController)!=null){var G;(G=S.currentCinematicEffect)==null||G.pause()}if((G=this.JSC$19808_cinematicController)!=null){var g;(g=G.currentCinematicEffect)==null||g.clear()}G=f>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(G));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var b,z,X,w;g=f<0?(b=this.shortsProcessedPrevSequence)==null?void 0:(z=b[this.shortsProcessedPrevSequence.length+f])==null?void 0:z.command:(X=this.shortsProcessedSequence)==null?void 0:(w=X[f])==null?void 0:w.command;this.index=f;this.gestureType||(this.gestureType=G?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
g&&this.isVideoContentCommand(g)&&(this.ytComponentBehavior.resolveCommand(g,{form:{createScreenConfig:{clickedVisualElement:G?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(g&&this.isNonVideoContentCommand(g)){this.currentEndpoint=g;this.data=void 0;b=_.ik();z=_.H(g,_.s2);var F,V;(z=(F=_.H(z==null?void 0:z.renderer,_.Sev))==null?void 0:(V=F.screenLoggingData)==null?void 0:V.screenVeType)&&_.Rh(b,z);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo();(F=this.getActiveReelVideo(f))&&F.appendChild(this.overlayContainer)}var J,P;if(((J=this.reelWatchSequenceResponse)==null?0:J.continuationEndpoint)&&((P=this.reelWatchSequenceResponse)==null?0:P.entries)&&f===this.reelWatchSequenceResponse.entries.length-1){var d,Q;J={contentPlaybackContext:_.ja({},(Q=_.H((d=this.currentEndpoint)==null?void 0:d.commandMetadata,_.oD))==null?void 0:Q.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:J})}var x,E,U;((x=this.reelWatchSequenceResponse)==null?0:x.prevContinuationEndpoint)&&f===-(((E=this.reelWatchSequenceResponse)==null?void 0:(U=E.prevEntries)==null?void 0:U.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.e.setMiniplayerPreview=function(f){f=(f===void 0?0:f)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var S,B,G=_.oy().resolve(_.N_),g={shortsData:void 0,shortsPreviewThumbnail:f?(S=this.shortsProcessedSequence)==null?void 0:(B=S[f])==null?void 0:B.thumbnail:void 0};_.QA(G,g)};
_.e.updateTitle=function(f){var S,B;f=(f==null?0:f.adSlots)?"":(B=f==null?void 0:(S=f.videoDetails)==null?void 0:S.title)!=null?B:"";_.ew(this.hostElement,"yt-update-title",f)};
_.e.registerPanel=function(f){var S=_.oy().resolve(_.ir);if(S){f=_.m(f.engagementPanels||[]);for(var B=f.next();!B.done;B=f.next()){B=B.value;var G=B.engagementPanelSectionListRenderer,g=void 0,b=void 0,z=void 0,X=void 0,w=((g=G)==null?void 0:g.targetId)||((b=G)==null?void 0:b.panelIdentifier)||((z=G)==null?void 0:(X=z.identifier)==null?void 0:X.tag);g=G=void 0;(g=(G=S).registerPanelContent)==null||g.call(G,w,B)}}};
_.e.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;_.W2().dispatch(b2(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();_.W2().dispatch(NfX(!1));var f=_.oy().resolve(_.dQ);f.dismissedIndices=[];f.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.oy().resolve(_.N_).close(!0)};
_.e.processAppendReelWatchSequenceContinuationEntriesAction=function(f){var S=this,B;(B=this.intersectionObserver)==null||B.disconnect();f=f.appendReelWatchSequenceContinuationEntriesAction;if(f==null?0:f.entries){var G;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.$d(((G=this.reelWatchSequenceResponse)==null?void 0:G.entries)||[]),_.$d(f.entries)),continuationEndpoint:f.continuationEndpoint})}else if(f==null?0:f.prevEntries){var g;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.$d(((g=this.reelWatchSequenceResponse)==null?void 0:g.prevEntries)||[]),_.$d(f.prevEntries)),prevContinuationEndpoint:f.prevContinuationEndpoint});_.xJ.addLowPriorityJob(function(){S.movePlayerToVideo(S.index);var b;(b=S.getActiveReelVideo(S.index))==null||b.scrollIntoView({block:"nearest",inline:S.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.xJ.addLowPriorityJob(function(){S.observeShorts()},100)};
_.e.processWatchSequence=function(f){var S=this;return f.map(function(B){B=B.command;if(S.isVideoContentCommand(B)){var G=_.H(B,_.QW);return{reelPlayerOverlayRenderer:_.H(G==null?void 0:G.overlay,_.B1X),thumbnail:G.thumbnail,command:B}}return S.isNonVideoContentCommand(B)?(G=_.H(B,_.s2),{reelNonVideoContentRenderer:_.H(G==null?void 0:G.renderer,_.Sev),command:B}):{command:B}})};
_.e.calculateIntersectionObserverThreshold=function(){var f=_.m9(this.hostElement).querySelector("ytd-reel-video-renderer"),S=1;(f==null?0:f.offsetHeight)&&(f==null?0:f.offsetWidth)&&(S=Math.min(f.offsetHeight,this.shortsContainer.offsetHeight)/f.offsetHeight*(Math.min(f.offsetWidth,this.shortsContainer.offsetWidth)/f.offsetWidth));return Math.round(S*.6*10)/10};
_.e.isVideoContentCommand=function(f){_.oy().resolve(_.dQ);return!!_.H(f,_.QW)};
_.e.isNonVideoContentCommand=function(f){_.oy().resolve(_.dQ);return!!_.H(f,_.s2)};
_.e.initCinematicController=function(){var f=this;if(this.player&&this.shortsCinematicContainer){this.JSC$19808_cinematicController=new _.eX(this.shortsCinematicContainer,this.player);var S,B=_.H((S=this.data)==null?void 0:S.background,_.H$);_.qDu(this.JSC$19808_cinematicController,B);_.HUX(this.JSC$19808_cinematicController,QZu(B));_.iUY(this.JSC$19808_cinematicController);_.xJ.addLowPriorityJob(function(){f.moveCinematicsToVideo()})}};
_.e.handleMiniplayerNavigateShorts=function(f){f==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():f==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.e.handleSignalActionToggleShortsPictureInPicture=function(){if(_.oy().resolve(_.N_).pictureInPictureSupported()){var f=_.oy().resolve(_.dQ);if(_.K("web_shorts_pip")){var S=_.oy().resolve(_.N_);f.isShortsPipActive()?S.deactivate():S.isMiniplayerActive()||(_.Pn().shortsPipActivation=!0,_.ngu(S))}}else(f=this.player)==null||f.togglePictureInPicture()};
_.y3.Object.defineProperties(Jd.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.reelWatchSequenceResponse)!=null&&f.prevEntries)return this.processWatchSequence([].concat(_.$d(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var f=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!f)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var S=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.$d(this.prevShortsSequence.slice(0,S)),[f],_.$d(this.prevShortsSequence.slice(S+
1)))}S=this.index+this.shortsProcessedPrevSequence.length;f.thumbnail=this.shortsProcessedPrevSequence[S].thumbnail;return[].concat(_.$d(this.shortsProcessedPrevSequence.slice(0,S)),[f],_.$d(this.shortsProcessedPrevSequence.slice(S+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.reelWatchSequenceResponse)!=null&&f.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var f=this.getCurrentShort();if(!f||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[f];if(f==null||!f.reelNonVideoContentRenderer){var S=this.getIndexInSequence(this.shortsSequence,_.H(this.currentEndpoint,_.QW).videoId);if(this.index===0&&S!==-1)return this.currentPlayerIndex=this.index=S,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.$d(this.shortsSequence.slice(0,this.index)),[f],_.$d(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){f.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var B,G,g,b;S=((G=_.H((B=this.shortsProcessedSequence[0])==null?void 0:B.command,_.QW))==null?void 0:G.videoId)===((b=_.H((g=this.shortsSequence[0])==null?void 0:g.command,_.QW))==null?void 0:b.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.$d(this.shortsProcessedSequence.slice(0,
this.index)),[f],_.$d(this.shortsSequence.slice(S)))}return[f].concat(_.$d(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var f=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;f&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(f)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 f,S;return this.index===((f=this.reelWatchSequenceResponse)==null?void 0:(S=f.entries)==null?void 0:S.length)}var B;return!((B=this.reelWatchSequenceResponse)==null?0:B.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var f;(f=this.delayedActiveIndexUpdateDebouncer)==null||f.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var f,S,B;return this.isShortPlayable()||((S=_.H((f=this.data)==null?void 0:f.watchStatus,_.wGv))==null?void 0:(B=S.style)==null?void 0:B.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var f=this,S=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),B;if((this.data||S)&&(((B=this.data)==null?0:B.engagementPanels)||this.isAd()||S)){S=!1;this.activePanel="shorts-comments-panel";var G;B=_.m(((G=this.data)==null?void 0:G.engagementPanels)||[]);for(G=B.next();!G.done;G=B.next()){G=G.value.engagementPanelSectionListRenderer;var g=void 0,b=void 0,z=void 0,X=void 0;if((((g=G)==null?void 0:(b=g.identifier)==
null?void 0:b.tag)||((z=G)==null?void 0:z.targetId)||((X=G)==null?void 0:X.panelIdentifier))===this.activePanel){S=!0;break}}if(this.isPersistentPanelActive){var w=_.oy().resolve(_.ir);_.q6(_.xJ,function(){w.showPanel(f.activePanel,void 0,void 0,void 0,null)},100)}var F;
B=[].concat(_.$d(Object.values(((F=this.data)==null?void 0:F.engagementPanels)||{})));if(_.K("enable_preview_panel_for_shorts_search_suggested_action")){var V,J,P,d,Q;((d=_.H((V=this.data)==null?void 0:(J=V.overlay)==null?void 0:(P=J.reelPlayerOverlayRenderer)==null?void 0:P.metapanel,_.oRi))==null?void 0:(Q=d.metadataItems)==null?void 0:Q.find(function(x){var E,U;return((E=_.H(x,SPB))==null?void 0:(U=E.icon)==null?void 0:U.iconType)==="SEARCH"}))!==void 0&&B.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}F=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);V=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return F===void 0&&V===void 0||(F==null?0:F.isDisabled)||(V==null?void 0:V.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!S?(S=B==null?void 0:B.findIndex(function(x){var E,
U;return((E=x.engagementPanelSectionListRenderer)==null?void 0:(U=E.identifier)==null?void 0:U.tag)==="shorts-comments-panel"}),S===-1||S===void 0||B!=null&&B.splice(S,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.Jf("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.Jf("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:_.Jf("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.Jf("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(_.$d(Object.values(B||
{})))):B}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.shortsProcessedSequence)==null?void 0:f[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var f=this,S,B,G;if((S=this.playerData)==null?0:(B=S.playabilityStatus)==null?0:(G=B.errorScreen)==null?0:G.playerInterstitialRenderer)return _.xJ.addLowPriorityJob(function(){f.movePlayerToVideo(f.index)}),this.playerData.playabilityStatus.errorScreen;
var g,b;return((g=this.data)==null?void 0:g.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((b=this.data)==null?0:b.watchStatus)&&_.H(this.data.watchStatus,_.XEo)?(_.xJ.addLowPriorityJob(function(){f.movePlayerToVideo(f.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.y3.Object.defineProperties(Jd,{template:{configurable:!0,enumerable:!0,get:function(){if(GgB===void 0){var f=document.createElement("template");_.Y(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n      <template class="style-scope ytd-shorts">\n        <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n          <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n          </div>\n        </div>\n      </template>\n    </dom-repeat>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);GgB=f}f=GgB;return f}}});
Jd.prototype.onNextButtonDataChange=Jd.prototype.onNextButtonDataChange;Jd.prototype.onPrevButtonDataChange=Jd.prototype.onPrevButtonDataChange;Jd.prototype.onPersistentPanelActiveChanged=Jd.prototype.onPersistentPanelActiveChanged;Jd.prototype.lazyUpdateMiniplayerData=Jd.prototype.lazyUpdateMiniplayerData;Jd.prototype.onShortsPipActiveChanged=Jd.prototype.onShortsPipActiveChanged;Jd.prototype.setActiveIndex=Jd.prototype.setActiveIndex;Jd.prototype.graftNvcRenderer=Jd.prototype.graftNvcRenderer;
Jd.prototype.graftClientVisualElements=Jd.prototype.graftClientVisualElements;Jd.prototype.onActiveChanged=Jd.prototype.onActiveChanged;Jd.prototype.onShortsDismiss=Jd.prototype.onShortsDismiss;Jd.prototype.onShortUndoDismiss=Jd.prototype.onShortUndoDismiss;Jd.prototype.playerDataChanged=Jd.prototype.playerDataChanged;Jd.prototype.afterPlayerStarted=Jd.prototype.afterPlayerStarted;Jd.prototype.unhideCurrentOverlay=Jd.prototype.unhideCurrentOverlay;Jd.prototype.onServiceRequestCompleted=Jd.prototype.onServiceRequestCompleted;
Jd.prototype.engagementPanelsChanged=Jd.prototype.engagementPanelsChanged;Jd.prototype.onFullscreenChange=Jd.prototype.onFullscreenChange;Jd.prototype.onResize=Jd.prototype.onResize;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Jd.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.Yu.YtPageBehavior),_.Z("design:type",Object)],Jd.prototype,"ytPageBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],Jd.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.r(_.Ld),_.Z("design:type",Object)],Jd.prototype,"ironResizableBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Jd.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.kP),_.Z("design:type",Object)],Jd.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.r(_.Iu.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],Jd.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],Jd.prototype,"ytdReduxBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],Jd.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],Jd.prototype,"playerData",void 0);_.N([_.n(),_.Z("design:type",Object)],Jd.prototype,"reelWatchSequenceResponse",void 0);_.N([_.n(),_.Z("design:type",Object)],Jd.prototype,"cachedReelWatchSequenceResponse",void 0);_.N([_.n(),_.Z("design:type",Object)],Jd.prototype,"currentEndpoint",void 0);_.N([_.n(),_.Z("design:type",Object)],Jd.prototype,"nextButtonData",void 0);
_.N([_.n(),_.Z("design:type",Object)],Jd.prototype,"prevButtonData",void 0);_.N([_.n(),_.Z("design:type",Object)],Jd.prototype,"isPreviousPageShorts",void 0);_.N([_.n(),_.Z("design:type",Object)],Jd.prototype,"index",void 0);_.N([_.n(),_.Z("design:type",Object)],Jd.prototype,"delayedActiveIndex",void 0);_.N([_.n(),_.Z("design:type",Object)],Jd.prototype,"playablePreviousIndex",void 0);_.N([_.n(),_.Z("design:type",Object)],Jd.prototype,"player",void 0);
_.N([_.n(),_.Z("design:type",Object)],Jd.prototype,"isPlayerPaused",void 0);_.N([_.n({selector:OUu}),_.Z("design:type",Object)],Jd.prototype,"isPlayerStarted",void 0);_.N([_.n(),_.Z("design:type",Object)],Jd.prototype,"intersectionObserver",void 0);_.N([_.n(),_.Z("design:type",Number)],Jd.prototype,"cinematicsInitializeJobId",void 0);_.N([_.n(),_.Z("design:type",Number)],Jd.prototype,"updateMiniplayerDataJobId",void 0);_.N([_.n(),_.Z("design:type",Object)],Jd.prototype,"fitToVisibleBounds",void 0);
_.N([_.n(),_.Z("design:type",Object)],Jd.prototype,"pageSubtype",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Jd.prototype,"enablePreviousContinuation",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Jd.prototype,"shortsPipEnabled",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Jd.prototype,"isDark",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Jd.prototype,"shortsViewTransitions",void 0);
_.N([_.n({selector:_.Ky,reflectToAttribute:!0}),_.Z("design:type",Object)],Jd.prototype,"isFullscreen",void 0);_.N([_.n({selector:_.d5,reflectToAttribute:!0}),_.Z("design:type",Object)],Jd.prototype,"isShortsPipActive",void 0);_.N([_.vF("#shorts-inner-container"),_.Z("design:type",HTMLElement)],Jd.prototype,"shortsInnerContainer",void 0);_.N([_.vF("#back-nav-button ytd-button-renderer"),_.Z("design:type",_.Wl)],Jd.prototype,"backNavButton",void 0);
_.N([_.vF("#shorts-container"),_.Z("design:type",HTMLElement)],Jd.prototype,"shortsContainer",void 0);_.N([_.WT("error-screen"),_.Z("design:type",HTMLElement)],Jd.prototype,"errorScreenContainer",void 0);_.N([_.WT("player"),_.Z("design:type",Object)],Jd.prototype,"playerElement",void 0);_.N([_.WT("shorts-cinematic-container"),_.Z("design:type",HTMLElement)],Jd.prototype,"shortsCinematicContainer",void 0);
_.N([_.WT("initial-player-container"),_.Z("design:type",HTMLElement)],Jd.prototype,"initialPlayerContainer",void 0);_.N([_.n(),_.Z("design:type",Object)],Jd.prototype,"buttonOverride",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Jd.prototype,"anchoredPanelActive",void 0);_.N([_.n(),_.Z("design:type",String)],Jd.prototype,"activePanel",void 0);_.N([_.n(),_.Z("design:type",Object)],Jd.prototype,"isActive",void 0);
_.N([_.n({selector:jZM,reflectToAttribute:!0}),_.Z("design:type",Object)],Jd.prototype,"smallScreenPersistentPanel",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Jd.prototype,"isPersistentPanelActive",void 0);_.N([_.n(),_.Z("design:type",Object)],Jd.prototype,"smallScreenSqueezeBack",void 0);_.N([_.n(),_.Z("design:type",Object)],Jd.prototype,"enableScrollIntoViewCenter",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Jd.prototype,"formatFirst",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Jd.prototype,"enableFlexibleOverlay",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Jd.prototype,"useAspectRatio",void 0);_.N([_.n(),_.Z("design:type",Object)],Jd.prototype,"panelContainer",void 0);_.N([_.n(),_.Z("design:type",Object)],Jd.prototype,"overlayContainer",void 0);_.N([_.n(),_.Z("design:type",Object)],Jd.prototype,"isShortsInitialized",void 0);
_.N([_.k("reelWatchSequenceResponse"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Jd.prototype,"prevShortsSequence",null);_.N([_.k("data","prevShortsSequence"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Jd.prototype,"shortsProcessedPrevSequence",null);_.N([_.k("reelWatchSequenceResponse"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Jd.prototype,"shortsSequence",null);
_.N([_.k("data","shortsSequence"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Jd.prototype,"shortsProcessedSequence",null);_.N([_.n({reflectToAttribute:!0}),_.k("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Jd.prototype,"isUpArrowHidden",null);
_.N([_.n({reflectToAttribute:!0}),_.k("reelWatchSequenceResponse","index","endOfNextContinuation"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Jd.prototype,"isDownArrowHidden",null);_.N([_.n(),_.k("index"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],Jd.prototype,"activeIndex",null);_.N([_.k("isShortPlayable","data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Jd.prototype,"shouldRenderOfflineContent",null);
_.N([_.Vg("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Jd.prototype,"onResize",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Jd.prototype,"anchoredEngagementPanels",null);_.N([_.n(),_.Z("design:type",Object)],Jd.prototype,"watchWhileEngagementPanels",void 0);_.N([_.JO("isFullscreen"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Jd.prototype,"onFullscreenChange",null);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Jd.prototype,"engagementPanelsChanged",null);_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.cw]),_.Z("design:returntype")],Jd.prototype,"onServiceRequestCompleted",null);_.N([_.k("data","shortsSequence","index"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Jd.prototype,"activeReel",null);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Jd.prototype,"unhideCurrentOverlay",null);_.N([_.JO("isPlayerStarted"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Jd.prototype,"afterPlayerStarted",null);_.N([_.k("playerData","reelWatchSequenceResponse","data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Jd.prototype,"errorScreen",null);
_.N([_.k("errorScreen"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Jd.prototype,"hasError",null);_.N([_.JO("playerData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype",Promise)],Jd.prototype,"playerDataChanged",null);_.N([_.Vg("yt-dismissible-item-undo-feedback"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Jd.prototype,"onShortUndoDismiss",null);
_.N([_.Vg("yt-disable-lockup-interaction"),_.Z("design:type",Function),_.Z("design:paramtypes",[Object]),_.Z("design:returntype")],Jd.prototype,"onShortsDismiss",null);_.N([_.HF("active"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Jd.prototype,"onActiveChanged",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Jd.prototype,"graftClientVisualElements",null);
_.N([_.JO("currentPlayerIndex"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Jd.prototype,"graftNvcRenderer",null);_.N([_.JO("index"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Jd.prototype,"setActiveIndex",null);_.N([_.JO("isShortsPipActive"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Jd.prototype,"onShortsPipActiveChanged",null);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Jd.prototype,"lazyUpdateMiniplayerData",null);_.N([_.n(),_.Z("design:type",Object)],Jd.prototype,"onOverlayDensityChanged",void 0);_.N([_.JO("isPersistentPanelActive"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Jd.prototype,"onPersistentPanelActiveChanged",null);
_.N([_.JO("index","data","isUpArrowHidden"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Jd.prototype,"onPrevButtonDataChange",null);_.N([_.JO("index","data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Jd.prototype,"onNextButtonDataChange",null);_.N([_.C({is:"ytd-shorts"})],Jd);_.b_.registerService(_.fkV,Jd);
_.Eb();
}catch(e){_._DumpException(e)}
try{
_.xA("JzFVk");
var YSn=function(f){return _.T("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},QEu(f.data.ctaButton,{buttonViewModel:{}}),_.T(_.oY,{text:f.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var rIZ;var jEY;var kE=function(){return _.I.apply(this,arguments)||this};
_.q(kE,_.I);kE.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
kE.prototype.computeBlueBottomLink=function(f){return f};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],kE.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],kE.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],kE.prototype,"data",void 0);_.N([_.n({computed:"computeIcon_(data.bottomIcon)"}),_.Z("design:type",String)],kE.prototype,"bottomIcon",void 0);
_.N([_.n({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],kE.prototype,"enableBlueBottomLink",void 0);_.N([_.C({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],kE);
_.p(kE,"ytd-web-answer-renderer",function(){if(jEY!==void 0)return jEY;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return jEY=f},{mode:_.X_("kevlar_poly_si_batch_j035")?1:2});var O6z;var nq=function(){var f=_.I.apply(this,arguments)||this;f.hasChipBar=!1;return f};
_.q(nq,_.I);nq.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}}};
nq.prototype.computeHasChipBar=function(f){return!(f==null||!f.chipBar)};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],nq.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],nq.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],nq.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.Z("design:type",Object)],nq.prototype,"hasChipBar",void 0);_.N([_.C({is:"ytd-search-header-renderer",disableElementRegistration:!0})],nq);
_.p(nq,"ytd-search-header-renderer",function(){if(O6z!==void 0)return O6z;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return O6z=f},{mode:1});var xUM;var sg=function(){return _.I.apply(this,arguments)||this};
_.q(sg,_.I);sg.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],sg.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],sg.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],sg.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-page-continuation"})],sg);
_.p(sg,"ytd-page-continuation",function(){if(xUM!==void 0)return xUM;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return xUM=f},{mode:1});var EtM;var LVu;var k3e;var Dh=function(){return _.I.apply(this,arguments)||this};
_.q(Dh,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Dh.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Dh.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],Dh);
_.p(Dh,"ytd-watch-card-one-vs-one-event",function(){if(k3e!==void 0)return k3e;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return k3e=f},{mode:1});var IX=function(){return _.I.apply(this,arguments)||this};
_.q(IX,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],IX.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],IX.prototype,"data",void 0);_.N([_.C({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],IX);
_.p(IX,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(LVu!==void 0)return LVu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return LVu=f},{mode:1});var nt$;var Ug=function(){return _.I.apply(this,arguments)||this};
_.q(Ug,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Ug.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Ug.prototype,"data",void 0);_.N([_.C({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],Ug);
_.p(Ug,"ytd-banner-and-box-hero-image-renderer",function(){if(nt$!==void 0)return nt$;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return nt$=f},{mode:1});var sEO;var Cq=function(){var f=_.I.apply(this,arguments)||this;f.modern=_.K("web_modern_buttons");return f};
_.q(Cq,_.I);Cq.prototype.computeIcon=function(){var f,S,B=(f=this.data)==null?void 0:(S=f.icon)==null?void 0:S.iconType;if(B)return _.F_(B)};
Cq.prototype.computeButtonShape=function(){var f;return{buttonText:_.ac((f=this.data)==null?void 0:f.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.y3.Object.defineProperties(Cq.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"}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Cq.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Cq.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Cq.prototype,"modern",void 0);_.N([_.n({type:_.K("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.k("data.style"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Cq.prototype,"buttonColor",null);
_.N([_.C({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],Cq);
_.p(Cq,"ytd-call-to-action-button-renderer",function(){if(sEO!==void 0)return sEO;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return sEO=f},{mode:1});var DUX;var pq=function(){return _.I.apply(this,arguments)||this};
_.q(pq,_.I);pq.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.m9(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.bF(this.data.leftThumbnail.thumbnails,216)+")")};
pq.prototype.onLeftThumbnailChanged=pq.prototype.onLeftThumbnailChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],pq.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],pq.prototype,"data",void 0);_.N([_.JO("data.leftThumbnail"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pq.prototype,"onLeftThumbnailChanged",null);_.N([_.C({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],pq);
_.p(pq,"ytd-collage-hero-image-renderer",function(){if(DUX!==void 0)return DUX;var f=document.createElement("template");_.Y(f,'\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>');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return DUX=f},{mode:1});var IFu;var At=function(){return _.I.apply(this,arguments)||this};
_.q(At,_.I);At.prototype.computeStyle=function(f){return f};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],At.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],At.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Z("design:type",String)],At.prototype,"componentStyle",void 0);_.N([_.C({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],At);
_.p(At,"ytd-single-hero-image-renderer",function(){if(IFu!==void 0)return IFu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return IFu=f},{mode:1});var UUn;var N$=function(){return _.I.apply(this,arguments)||this};
_.q(N$,_.I);_.e=N$.prototype;
_.e.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:_.K("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.e.computeSubtitle=function(f){if(this.data){var S;if(this.data.upcomingEventData){f=_.ac(f.subtitle);var B=Number(this.data.upcomingEventData.startTime);isNaN(B)||(S=_.uC(_.UR(f,B)))}else S=f.subtitle;return S}};
_.e.onHeroTap=function(f){f.preventDefault();var S=this.data&&this.data.navigationEndpoint;!S||!_.lF(_.ct(f),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.lF(_.ct(f),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.K("kevlar_watchcard_hero_video_renderer_killswitch")?_.ew(this.hostElement,"yt-navigate",{navigationEndpoint:S}):this.ytComponentBehavior.resolveCommand(S))};
_.e.computeHeroTabIndex=function(f){return f&&f.simpleText?-1:0};
_.e.computeHeroRole=function(f){return f&&f.simpleText?"":"link"};
_.e.computeIsReminderButtonPresent=function(f){return!(!f||!f.reminderButton)};
_.e.computeHideBottomItems=function(f){return!(this.computeIsReminderButtonPresent(f)||f.subtitle)};
_.e.dataChanged=function(){var f=this.get("data.buttons.buttonRenderer.serviceEndpoint"),S;((S=_.H(f==null?void 0:f.commandMetadata,_.O2))==null?0:S.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(f)};
N$.prototype.dataChanged=N$.prototype.dataChanged;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],N$.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],N$.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],N$.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],N$.prototype,"data",void 0);
_.N([_.n({computed:"computeSubtitle(data)"}),_.Z("design:type",String)],N$.prototype,"subtitle",void 0);_.N([_.n({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],N$.prototype,"isReminderButtonPresent",void 0);_.N([_.n({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],N$.prototype,"hideBottomItems",void 0);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],N$.prototype,"dataChanged",null);_.N([_.C({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],N$);
_.p(N$,"ytd-watch-card-hero-video-renderer",function(){if(UUn!==void 0)return UUn;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return UUn=f},{mode:1});var Cw2;var M$=function(){return _.I.apply(this,arguments)||this};
_.q(M$,_.I);_.e=M$.prototype;_.e.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"}}}};
_.e.computeTitleBadges=function(f){return f?[f]:[]};
_.e.computeHeaderStyle=function(f){return f?f.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.e.computeAvatarAriaLabel=function(f){if(f){var S,B,G,g;return(g=(S=f.avatar)==null?void 0:(B=S.accessibility)==null?void 0:(G=B.accessibilityData)==null?void 0:G.label)!=null?g:_.ac(f==null?void 0:f.title)}};
_.e.computeAvatarHeight=function(f){return f==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.e.computeBadgeRowClass=function(f){return(f==null?0:f[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],M$.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],M$.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],M$.prototype,"data",void 0);_.N([_.n({computed:"computeTitleBadges(data.titleBadge)"}),_.Z("design:type",Array)],M$.prototype,"titleBadges",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.Z("design:type",String)],M$.prototype,"headerStyle",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.Z("design:type",String)],M$.prototype,"badgeRowClass",void 0);_.N([_.C({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],M$);
_.p(M$,"ytd-watch-card-rich-header-renderer",function(){if(Cw2!==void 0)return Cw2;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Cw2=f},{mode:1});var p3B;var AIB;var Zh=function(){return _.I.apply(this,arguments)||this};
_.q(Zh,_.I);Zh.prototype.onMetadataTap=function(f){var S=this.data&&this.data.navigationEndpoint;S&&!_.lF(_.ct(f),this.hostElement,["A".toString()])&&_.ew(this.hostElement,"yt-navigate",{endpoint:S})};
_.y3.Object.defineProperties(Zh.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 f;if(this.data.upcomingEventData){var S=_.ac(this.data.subtitle),B=Number(this.data.upcomingEventData.startTime);isNaN(B)||(f=_.uC(_.UR(S,B)))}else f=this.data.subtitle;return f}}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Zh.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Zh.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.k("data.style"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Zh.prototype,"isCondensed",null);_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Zh.prototype,"subtitle",null);
_.N([_.C({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],Zh);
_.p(Zh,"ytd-watch-card-compact-video-renderer",function(){if(AIB!==void 0)return AIB;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return AIB=f},{mode:1});var N7u;var tt=function(){return _.I.apply(this,arguments)||this};
_.q(tt,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],tt.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],tt.prototype,"data",void 0);_.N([_.C({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],tt);
_.p(tt,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(N7u!==void 0)return N7u;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return N7u=f},{mode:1});var up=function(){return _.I.apply(this,arguments)||this};
_.q(up,_.I);up.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}}}}};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],up.prototype,"ytRendererStamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],up.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],up.prototype,"data",void 0);_.N([_.C({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],up);
_.p(up,"ytd-vertical-watch-card-list-renderer",function(){if(p3B!==void 0)return p3B;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return p3B=f},{mode:1});var M$O;var aX=function(){var f=_.I.apply(this,arguments)||this;f.ariaExpanded="false";return f};
_.q(aX,_.I);_.e=aX.prototype;_.e.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.e.dataChanged=function(){var f;this.currentSeasonIndex=((f=this.data)==null?void 0:f.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.e.computeEpisodesInfo=function(f,S,B){if(f!==void 0&&S.length===f.length)return f[B]};
_.e.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.e.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.e.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.e.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.e.getUppercaseSimpleString=function(f){return this.ytRendererBehavior.getSimpleString(f).toUpperCase()};
_.e.updateCurrentSeasonIndexFromBinding=function(f){this.currentSeasonIndex=f.detail.value};
aX.prototype.onIronOverlayClosed=aX.prototype.onIronOverlayClosed;aX.prototype.currentSeasonIndexChanged=aX.prototype.currentSeasonIndexChanged;aX.prototype.dataChanged=aX.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],aX.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],aX.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],aX.prototype,"data",void 0);
_.N([_.n(),_.Z("design:type",String)],aX.prototype,"label",void 0);_.N([_.n({value:0}),_.Z("design:type",Number)],aX.prototype,"currentSeasonIndex",void 0);_.N([_.n({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.Z("design:type",Object)],aX.prototype,"episodesInfo",void 0);_.N([_.n({value:"false"}),_.Z("design:type",Object)],aX.prototype,"ariaExpanded",void 0);_.N([_.vF("#lists"),_.Z("design:type",Object)],aX.prototype,"lists",void 0);
_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],aX.prototype,"dataChanged",null);_.N([_.HF("currentSeasonIndex"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],aX.prototype,"currentSeasonIndexChanged",null);_.N([_.Vg("iron-overlay-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],aX.prototype,"onIronOverlayClosed",null);
_.N([_.C({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],aX);
_.p(aX,"ytd-watch-card-section-dropdown-renderer",function(){if(M$O!==void 0)return M$O;var f=document.createElement("template");_.Y(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return M$O=f},{mode:1});var Z6M;var Wk=function(){var f=_.I.apply(this,arguments)||this;f.isSearch=!1;return f};
_.q(Wk,_.I);Wk.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}}}}};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Wk.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Wk.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Wk.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],Wk.prototype,"isSearch",void 0);_.N([_.C({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],Wk);
_.p(Wk,"ytd-watch-card-section-sequence-renderer",function(){if(Z6M!==void 0)return Z6M;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);
return Z6M=f},{mode:1});var QEu=_.$K({buttonViewModel:_.I8});_.Su(YSn);_.TD(YSn,"ytd-button-banner-view-model",{propNames:["data"]});var ck=function(){var f=_.I.apply(this,arguments)||this;f.isSearch=!1;return f};
_.q(ck,_.I);
ck.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"}}}};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],ck.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],ck.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],ck.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,value:!0}),_.Z("design:type",Boolean)],ck.prototype,"rounded",void 0);_.N([_.n(),_.Z("design:type",Object)],ck.prototype,"isSearch",void 0);
_.N([_.C({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],ck);
_.p(ck,"ytd-universal-watch-card-renderer",function(){if(EtM!==void 0)return EtM;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return EtM=f},{mode:1});var t$n;_.eq(_.oS(function(f){var S=f.data;var B;f=!((B=_.oy().resolve(_.fN(_.yU)))==null||!B());B={};return _.T("overview-message-view-model",{class:_.Pw("ytwOverviewMessageViewModelHost",(B.ytwOverviewMessageViewModelDarkBackground=f,B.ytwOverviewMessageViewModelLightBackground=!f,B))},_.T(_.v,{cond:function(){return S().primaryImage},
then:function(G){return _.T(_.f9,{data:G,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.T(_.v,{cond:function(){return S().primaryText},
then:function(){return _.T("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.T(_.oY,{text:function(){return S().primaryText}}))}}),_.T(_.v,{cond:function(){return S().secondaryText},
then:function(){return _.T("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.T(_.oY,{text:function(){return S().secondaryText}}))}}))},"Mi"),"overview-message-view-model",{props:{data:_.W4}});_.TD(_.c86,"ytd-overview-answer-view-model",{propNames:["data"]});var lp=function(){return _.I.apply(this,arguments)||this};
_.q(lp,_.I);lp.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"}}}};
lp.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],lp.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],lp.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Ak),_.Z("design:type",Object)],lp.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],lp.prototype,"data",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],lp.prototype,"isSearch",void 0);
_.N([_.C({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],lp);
_.p(lp,"ytd-secondary-search-container-renderer",function(){if(t$n!==void 0)return t$n;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);
return t$n=f},{mode:1});var u5Y;var fZ=function(){var f=_.I.apply(this,arguments)||this;f.renderSecondarySearchContainer=!1;f.isSearch=!1;f.isSearchDova=_.K("dova_on_search");return f};
_.q(fZ,_.I);_.e=fZ.prototype;_.e.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"}}}};
_.e.created=function(){var f=this;this.boundStampSecondarySearchContainerIfFits=function(){f.stampSecondarySearchContainerIfFits()};
_.k5("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.e.computeIsSearchFrictionPage=function(f){var S,B,G,g,b;f=f==null?void 0:(S=f.primaryContents)==null?void 0:(B=S.sectionListRenderer)==null?void 0:(G=B.contents)==null?void 0:(g=G[0])==null?void 0:(b=g.itemSectionRenderer)==null?void 0:b.contents;if(!f)return!1;S=_.m(f);for(B=S.next();!B.done;B=S.next())if(G=void 0,(G=B.value)==null?0:G.searchFrictionViewModel)return!0;return!1};
_.e.computeShowSecondaryColumn=function(f,S){return!!(S&&S.secondaryContents&&f)};
_.e.activeChanged=function(){var f=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.Fc(this,this.debounceStampSecondarySearchContainerIfFits)),_.AO(function(){f.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.Fc(this,this.debounceStampSecondarySearchContainerIfFits))};
_.e.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.e.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.e.debounceStampSecondarySearchContainerIfFits=function(){_.NJ(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.e.onRetrieveLocation=function(f,S){S.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);f.stopPropagation()};
_.e.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
fZ.prototype.dataChanged=fZ.prototype.dataChanged;fZ.prototype.onRetrieveLocation=fZ.prototype.onRetrieveLocation;fZ.prototype.persistentGuideChanged=fZ.prototype.persistentGuideChanged;fZ.prototype.activeChanged=fZ.prototype.activeChanged;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],fZ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],fZ.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.Iu.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],fZ.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.r(_.Ld),_.Z("design:type",Object)],fZ.prototype,"ironResizableBehavior",void 0);_.N([_.n(),_.Z("design:type",Boolean)],fZ.prototype,"active",void 0);_.N([_.n(),_.Z("design:type",Object)],fZ.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,value:function(){return _.K("enable_desktop_search_bigger_thumbs")}}),
_.Z("design:type",Boolean)],fZ.prototype,"useBiggerThumbs",void 0);_.N([_.n({reflectToAttribute:!0,value:function(){return _.gO("desktop_search_bigger_thumbs_style")}}),
_.Z("design:type",String)],fZ.prototype,"biggerThumbsStyle",void 0);_.N([_.n(),_.Z("design:type",Object)],fZ.prototype,"renderSecondarySearchContainer",void 0);_.N([_.n({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.Z("design:type",Boolean)],fZ.prototype,"showSecondaryColumn",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.Z("design:type",Boolean)],fZ.prototype,"isSearchFrictionPage",void 0);
_.N([_.n(),_.Z("design:type",Object)],fZ.prototype,"isSearch",void 0);_.N([_.n(),_.Z("design:type",Object)],fZ.prototype,"isSearchDova",void 0);_.N([_.JO("active"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],fZ.prototype,"activeChanged",null);_.N([_.JO("guidePersistentAndVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],fZ.prototype,"persistentGuideChanged",null);
_.N([_.Vg("yt-retrieve-location"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],fZ.prototype,"onRetrieveLocation",null);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],fZ.prototype,"dataChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],fZ);
_.p(fZ,"ytd-two-column-search-results-renderer",function(){if(u5Y!==void 0)return u5Y;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return u5Y=f},{mode:1});var oW=function(){var f=_.I.apply(this,arguments)||this;f.hasSearchHeader=!1;f.hasSecondaryContent=!1;f.hasBiggerThumbs=_.K("enable_desktop_search_bigger_thumbs");f.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return f};
_.q(oW,_.I);_.e=oW.prototype;_.e.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:_.ky(["aa","eocs"])}}};
_.e.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.e.loadPage_=function(f){this.initCsi();f&&(this.data=f,_.k5("REFINEMENTS_TUPLE",["FromSearchResponse",f.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.uP(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.e.initCsi=function(){_.QS("results",["ol","cpt"])};
_.e.updateTitle=function(){var f=_.pS(window.location.href,"q");f||(f=_.pS(window.location.href,"search_query"));_.ew(this.hostElement,"yt-update-title",f||"")};
_.e.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.e.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.K("web_srp_data_changed_terminate_imp_killswitch")||_.bW(this.hostElement,"yt-terminate-video-preview-action")};
_.e.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.e.computeHasSearchHeader=function(f){var S;f=f==null?void 0:(S=f.header)==null?void 0:S.searchHeaderRenderer;return!!f&&(!!f.searchFilterButton||!!f.chipBar)};
_.e.computeHasSecondaryContent=function(f){var S,B;return!!(f==null?0:(S=f.contents)==null?0:(B=S.twoColumnSearchResultsRenderer)==null?0:B.secondaryContents)};
_.y3.Object.defineProperties(oW,{template:{configurable:!0,enumerable:!0,get:function(){if(rIZ===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);rIZ=f}f=rIZ;return f}}});
oW.prototype.onReloadContinuationFinish=oW.prototype.onReloadContinuationFinish;oW.prototype.dataChanged=oW.prototype.dataChanged;_.N([_.r(_.Yu.YtPageBehavior),_.Z("design:type",Object)],oW.prototype,"ytPageBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],oW.prototype,"actionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],oW.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],oW.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Ak),_.Z("design:type",Object)],oW.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],oW.prototype,"data",void 0);_.N([_.n({value:!0}),_.Z("design:type",Boolean)],oW.prototype,"monitorScroll",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],oW.prototype,"hasSearchHeader",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],oW.prototype,"hasSecondaryContent",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],oW.prototype,"hasBiggerThumbs",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],oW.prototype,"dataChanged",null);
_.N([_.Vg("yt-reload-continuation-finish"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],oW.prototype,"onReloadContinuationFinish",null);_.N([_.C({is:"ytd-search"})],oW);_.b_.registerService(_.l1Q,oW);
_.Eb();
}catch(e){_._DumpException(e)}
try{
_.xA("h8y2qb");
var OEe=function(f){if(f=_.lGV(f)){var S;(S=f.sources)!=null&&S[0]?(S=_.o4x(f),S=S<1?"VERTICAL":S>1?"HORIZONTAL":"SQUARE"):S=void 0;return S}},rq=function(f){_.$_.call(this,"upload");
this.opts.query=f},EFn=function(f,S){return _.T(x3n,{data:f,
onYtNavigate:S})},LF2=function(f,S){return _.w9(f.entities,"pageHeaderEntity",S)},nFu=function(f,S){return f.map(function(B){if(B.tabRenderer)return kvB(B.tabRenderer);
if(B.expandableTabRenderer&&S){var G=B.expandableTabRenderer;return{customTabRenderable:function(){return S(G)}}}return{}})},kvB=function(f){return{identifier:f.tabIdentifier,
aTagConfig:_.AZ({innertubeCommand:f.endpoint,forceNewState:!0}),title:f.title,selected:f.selected,disabled:f.unselectable,icon:f.icon}},s7e=function(f){return _.ef({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:f})},D3Z=function(f){if(!_.gb(document,"gtm-noscript")){var S=document.createElement("noscript");
S.id="gtm-noscript";S.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+f+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(S)}};_.Rm(rq,_.$_);rq.prototype.JSC$8118_setLabel=function(f){rq.superClass_.JSC$8118_setLabel.call(this,f);return this};
rq.prototype.addUploadMetadata=function(f,S){rq.superClass_.addUploadMetadata.call(this,f,S);return this};var IjX=function(f){if(f!=="youtubebanner"&&f!=="youtube-channel-banner")throw Error("Wl");rq.call(this,f)};
_.q(IjX,rq);IjX.prototype.JSC$8118_setLabel=function(f){rq.prototype.JSC$8118_setLabel.call(this,f);return this};
IjX.prototype.addUploadMetadata=function(f,S){rq.prototype.addUploadMetadata.call(this,f,S);return this};var U3Y=[_.Ld,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(f){_.HZ(f).path[0]!==this&&(this.resetLayout(),f.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var f=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.zw(this._layoutDebouncer,_.On,f);_.RH(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var f=this;requestAnimationFrame(function(){f.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(f){this.resizerShouldNotify(f)&&this._notifyDescendant(f)},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 CMz=[_.Pkg,{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(f,S){var B=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[f];if(!B)throw new ReferenceError(this._getUndefinedMsg(f));f=this._boundEffect(B,S||{});f.setUp();return f},
_effectsChanged:function(f,S,B){this._tearDownEffects();f&&B&&(f.split(" ").forEach(function(G){var g;G!==""&&((g=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[G])?this._effects.push(this._boundEffect(g,S[G])):console.warn(this._getUndefinedMsg(G)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(f,S){S=S||{};var B=parseFloat(S.startsAt||0),G=parseFloat(S.endsAt||1),g=G-B,b=function(){};
G=B===0&&G===1?f.run:function(z,X){f.run.call(this,Math.max(0,(z-B)/g),X)};
return{setUp:f.setUp?f.setUp.bind(this,S):b,run:f.run?G.bind(this):b,tearDown:f.tearDown?f.tearDown.bind(this):b}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(f){f.setUp()!==!1&&this._effectsRunFn.push(f.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(f){f.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(f,S){this._effectsRunFn&&this._effectsRunFn.forEach(function(B){B(f,S)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var f=this._clampedScrollTop;this._updateScrollState(f);this.threshold>0&&this._setThresholdTriggered(f>=this.threshold)}},
_getDOMRef:function(f){console.warn("_getDOMRef","`"+f+"` is undefined")},
_getUndefinedMsg:function(f){return"Scroll effect `"+f+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+f+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Xl`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(f){var S={};f=parseFloat(f.scalar);S.background=this._getDOMRef("background");S.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");S.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");S.deltaBg=S.backgroundFrontLayer.offsetHeight-S.background.offsetHeight;S.deltaBg===0?(isNaN(f)&&(f=.8),S.deltaBg=(this._dHeight||0)*f):(isNaN(f)&&(f=
1),S.deltaBg*=f);this._fxParallaxBackground=S},
run:function(f){var S=this._fxParallaxBackground;this.transform("translate3d(0px, "+S.deltaBg*Math.min(1,f)+"px, 0px)",S.backgroundFrontLayer);S.backgroundRearLayer&&this.transform("translate3d(0px, "+S.deltaBg*Math.min(1,f)+"px, 0px)",S.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var pTu;var AP$;var NJX=function(){};
_.e=NJX.prototype;_.e._scrollTargetChanged=function(){};
_.e.scroll=function(){};
_.e._isValidScrollTarget=function(){};
_.e._toggleScrollListener=function(){};
_.e.toggleScrollListener=function(){};
_.e.createEffect=function(){};
_.e._effectsChanged=function(){};
_.e._layoutIfDirty=function(){};
_.e._boundEffect=function(){};
_.e._setUpEffect=function(){};
_.e._tearDownEffects=function(){};
_.e._runEffects=function(){};
_.e._scrollHandler=function(){};
_.e._scrollStateChanged=function(){};
_.e._getUndefinedMsg=function(){};
_.e.notifyResize=function(){};
_.e.assignParentResizable=function(){};
_.e.stopResizeNotificationsFor=function(){};
_.e._subscribeIronResize=function(){};
_.e._unsubscribeIronResize=function(){};
_.e.resizerShouldNotify=function(){};
_.e._onDescendantIronResize=function(){};
_.e._fireResize=function(){};
_.e._onIronRequestResizeNotifications=function(){};
_.e._parentResizableChanged=function(){};
_.e._notifyDescendant=function(){};
_.e._requestResizeNotifications=function(){};
_.e._findParent=function(){};
_.e._appResetLayoutHandler=function(){};
_.e.resetLayout=function(){};
_.e._notifyLayoutChanged=function(){};
_.e._notifyDescendantResize=function(){};
_.e._setThresholdTriggered=function(){};
NJX=_.OW({_template:function(){if(AP$!==void 0)return AP$;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;pTu===void 0&&(pTu=document.createElement("template"));var G=pTu;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return AP$=f},
is:"tp-yt-app-header",behaviors:[CMz,U3Y],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 f=_.HZ(this.$.slot).getDistributedNodes(),S=0,B;B=f[S];S++)if(B.nodeType===Node.ELEMENT_NODE)if(B.hasAttribute("sticky")){this._stickyElRef=B;break}else this._stickyElRef||(this._stickyElRef=B);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var f=this._clampedScrollTop,S=this._height===0||f===0,B=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;S||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();S?this._updateScrollState(f,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=B}},
_updateScrollState:function(f,S){if(this._height!==0){var B=0,G=this._top;var g=this._maxHeaderTop;var b=f-this._lastScrollTop,z=Math.abs(b),X=f>this._lastScrollTop,w=performance.now();this._mayMove()&&(B=this._clamp(this.reveals?G+b:f,0,g));f>=this._dHeight&&(B=this.condenses&&!this.fixed?Math.max(this._dHeight,B):B,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&z<100){if(w-this._initTimestamp>300||this._wasScrollingDown!==X)this._initScrollTop=f,this._initTimestamp=w;f>=g&&
(Math.abs(this._initScrollTop-f)>30||z>10?(X&&f>=g?B=g:!X&&f>=this._dHeight&&(B=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((B-G)/(b/(w-this._lastTimestamp)),0,300)+"ms"):B=this._top)}g=this._dHeight===0?f>0?1:0:B/this._dHeight;S||(this._lastScrollTop=f,this._top=B,this._wasScrollingDown=X,this._lastTimestamp=w);if(S||g!==this._progress||G!==B||f===0)this._progress=g,this._runEffects(g,B),this._transformHeader(B)}},
_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(f){this.translate3d(0,-f+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&f>=this._stickyElTop?Math.min(f,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(f,S,B){return Math.min(B,Math.max(S,f))},
_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),_.HZ(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(f){switch(f){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.HZ(this).querySelector("[main-title]");case "condensedTitle":return _.HZ(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var M4u;var ZEZ;_.OW({_template:function(){if(ZEZ!==void 0)return ZEZ;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;M4u===void 0&&(M4u=document.createElement("template"));var G=M4u;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return ZEZ=f},
is:"tp-yt-app-header-layout",behaviors:[U3Y],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.HZ(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var f=this.header;if(this.isAttached&&f){this.$.wrapper.classList.remove("initializing");f.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)f.style.left=
"",f.style.right="";else{var S=this.getBoundingClientRect(),B=document.documentElement.clientWidth-S.right;f.style.left=S.left+"px";f.style.right=B+"px"}S=this.$.contentContainer.style;B=f.offsetHeight;f.fixed&&!f.condenses&&this.hasScrollingRegion?(S.marginTop=B+"px",S.paddingTop=""):(S.paddingTop=B+"px",S.marginTop="")}}});var t4B=new _.u("replaceFeedContentAction");var uPe=new _.u("alertCommand");var ajB=new _.u("manageLabsStateCommand");var yPM=new _.u("inlineFormRenderer");var jk=new _.u("playlistSidebarPrimaryInfoRenderer");var WFu=new _.u("productDetailsThumbnailRenderer"),cPn=new _.u("productDetailsVariantRenderer"),lju=new _.u("productDetailsVariantOptionRenderer"),foX=new _.u("productDetailsOffersContainerRenderer"),oxu=new _.u("productDetailsOfferRenderer");var SGZ=new _.u("shoppingFlaggingRenderer");var ByX=new _.u("playlistBylineRenderer");var GAu=new _.u("insertChannelTabCommand");var OY=function(){return _.dv.apply(this,arguments)||this};
_.q(OY,_.dv);_.e=OY.prototype;_.e.activeChanged=function(){if(this.active){var f=_.m9(this.hostElement).querySelector("#header");f&&_.ew(f,"iron-resize");window.addEventListener("scroll",_.Fc(this,this.onScroll))}else window.removeEventListener("scroll",_.Fc(this,this.onScroll)),_.ew(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.e.guideVisibleChanged=function(){var f=_.m9(this.hostElement).querySelector("#header");f&&_.ew(f,"iron-resize")};
_.e.onScroll=function(){var f=this;_.NJ(this,"onScroll",function(){var S=_.m9(f.hostElement).querySelector("#header");S&&S.polymerController&&(S=S.polymerController.getScrollState().progress===1?"standard":"seamed",_.ew(f.hostElement,"yt-request-panel-mode-change",{mode:S}))},10)};
_.e.tabsChanged=function(){if(this.tabs){for(var f=null,S=0,B=this.tabs.length;S<B;++S){var G=this.tabs[S].tabRenderer;if(G&&G.selected){f=S;break}}this.selected=f}};
_.e.onTabsActivate=function(f){_.ew(this.hostElement,"yt-navigate",{endpoint:this.tabs[f.detail.selected].tabRenderer.endpoint})};
OY.prototype.tabsChanged=OY.prototype.tabsChanged;OY.prototype.guideVisibleChanged=OY.prototype.guideVisibleChanged;OY.prototype.activeChanged=OY.prototype.activeChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],OY.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Iu.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],OY.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.n(),_.Z("design:type",Array)],OY.prototype,"tabs",void 0);
_.N([_.n(),_.Z("design:type",Object)],OY.prototype,"selected",void 0);_.N([_.n(),_.Z("design:type",Boolean)],OY.prototype,"active",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],OY.prototype,"disableHeaderFluidWidth",void 0);_.N([_.JO("active"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],OY.prototype,"activeChanged",null);
_.N([_.JO("guidePersistentAndVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],OY.prototype,"guideVisibleChanged",null);_.N([_.JO("tabs"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],OY.prototype,"tabsChanged",null);_.N([_.iu()],OY);var gxY=[_.c.YtRendererBehavior,_.Iu.YtdGuideStateAwareBehavior,OY.prototype];var eIY=2/3,bee=_.Eo(130749),mq$=function(f,S){var B=this;this.element=f;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){B.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:eIY,moveAction:function(G){B.moveAction(G)},
triggerAction:function(){B.element.isReloading=!0;_.M1(_.ik(),{visualElement:bee});_.JZ.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:B.element}})}}}};
_.wY(_.ik(),bee,this.layer);this.gesture=new _.wq(f,S,this.refreshConfig,"pan-down");this.attach()};
_.e=mq$.prototype;_.e.attach=function(){this.gesture.attach()};
_.e.detach=function(){this.gesture.detach()};
_.e.reset=function(){this.element.close()};
_.e.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.e.moveAction=function(f){this.element.rotation=f*360};var zI2=_.Eo(130750),xu=function(f,S,B,G,g){var b=this;this.element=f;this.parent=B;this.channelHeader=G;this.ytdReduxDispatch=g;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){b.tabsStartAtInPx=b.channelHeader.clientHeight-48;var z;(z=b.selectedTab)!=null&&z.title&&(z=_.oy().resolve(_.fN(_.o8)))&&(z=z.getCurrentPage(),b.lastVisitedTabScrollPosition=z.getScrollTop(),b.previousTab&&
((b.lastVisitedTabScrollPosition===void 0?0:b.lastVisitedTabScrollPosition<b.channelHeader.clientHeight-48)?b.scrollPositionForTabs.has(b.selectedTab.title)&&b.scrollPositionForTabs.delete(b.selectedTab.title):b.scrollPositionForTabs.set(b.selectedTab.title,z.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:RIB(),triggerAction:function(){b.navigate(b.previousTab)},
moveAction:function(z,X){b.moveAction(z,X)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-RIB(),triggerAction:function(){b.navigate(b.nextTab)},
moveAction:function(z,X){b.moveAction(z,X)}}}};
_.wY(_.ik(),zI2,this.layer);this.gesture=new _.wq(f,S,this.tabConfig);this.attach()};
xu.prototype.attach=function(){this.gesture.attach()};
xu.prototype.detach=function(){this.gesture.detach()};
xu.prototype.tabsChanged=function(f){if(f){var S=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;f=_.m(f);for(var B=f.next();!B.done;B=f.next()){B=B.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=B);var G=void 0;if((G=B)==null?0:G.selected)this.previousTab=S,this.selectedTab=B;S=B}S=this.gesture;f=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}});
S.config=f;this.scrollPositionNeedsUpdate=!0}};
xu.prototype.moveAction=function(f,S){if(!this.tabsElement){var B;this.tabsElement=(B=this.parent.header)==null?void 0:B.tabsElement;S==="right"&&this.previousTab?_.DuL(_.H4.instance,this.previousTab.endpoint,{},""):S==="left"&&this.nextTab&&_.DuL(_.H4.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}B=this.tabsElement._pos;S==="right"&&(f*=-1);this.tabsElement._positionBar(B.width,B.left*1+B.width*f)};
var RIB=function(){var f,S;return(S=(f=_.oy().resolve(_.o8).getCurrentPage())==null?void 0:f.clientWidth)!=null?S:0};
xu.prototype.navigate=function(f){this.element.data=void 0;if(f=f==null?void 0:f.endpoint)this.ytdReduxDispatch(s7e(!0)),_.M1(_.ik(),{visualElement:zI2}),_.JZ.instance.resolveCommand({navigateAction:{endpoint:f}},{form:{element:this.element}})};var Xbu;var wbu;var EY=function(){return _.I.apply(this,arguments)||this};
_.q(EY,_.I);EY.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],EY.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],EY.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],EY.prototype,"data",void 0);_.N([_.C({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],EY);
_.p(EY,"ytd-labs-edit-renderer",function(){if(wbu!==void 0)return wbu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return wbu=f},{mode:1});var hIz;var Lh=function(){var f=_.I.apply(this,arguments)||this;f.dark=!1;f.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";f.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return f};
_.q(Lh,_.I);Lh.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Lh.prototype.ready=function(){var f=document.documentElement.hasAttribute("dark");this.setBackgroundImage(f);this.dark=f};
Lh.prototype.onDarkModeToggledAction=function(f){this.setBackgroundImage(f);this.dark=f};
Lh.prototype.setBackgroundImage=function(f){_.hO(this.hostElement,{"--yt-labs-header-background":"url("+(f?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Lh.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Lh.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],Lh.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Lh.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Lh.prototype,"dark",void 0);
_.N([_.C({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],Lh);
_.p(Lh,"ytd-labs-header-renderer",function(){if(hIz!==void 0)return hIz;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return hIz=f},{mode:1});var Tyu;var ku=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return f};
_.q(ku,_.I);ku.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"}}}}}};
ku.prototype.onYtToggleButton=function(f){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",f.detail.toggled)};
ku.prototype.onManageLabsState=function(f){if(f=_.H(f,ajB))f.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?f.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&f.labsItemId===this.data.labsItemId&&(f.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.bW(this.hostElement,"yt-check-labs-opted-in-state").some(function(S){return S})&&this.data.confirmationDialogCommand?_.Xh(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.oy().resolve(_.S7).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&f.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.oy().resolve(_.S7).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
ku.prototype.onCheckLabsOptedInState=function(){var f=this.get("data.primaryButton.toggleButtonRenderer");return f?f.isToggled:!1};
_.y3.Object.defineProperties(ku.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
ku.prototype.onYtToggleButton=ku.prototype.onYtToggleButton;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],ku.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],ku.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],ku.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],ku.prototype,"data",void 0);
_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ku.prototype,"itemStyle",null);_.N([_.Vg("yt-toggle-button"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],ku.prototype,"onYtToggleButton",null);_.N([_.C({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],ku);
_.p(ku,"ytd-labs-item-renderer",function(){if(Tyu!==void 0)return Tyu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Tyu=f},{mode:1});var Fez;var VYz;var nh=function(){return _.I.apply(this,arguments)||this};
_.q(nh,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],nh.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],nh.prototype,"data",void 0);_.N([_.C({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],nh);
_.p(nh,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(VYz!==void 0)return VYz;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return VYz=f},{mode:1});var Jnu;var sY=function(){return _.I.apply(this,arguments)||this};
_.q(sY,_.I);sY.prototype.observeSuperchatChip=function(){if(this.data){var f={"--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)};_.hO(this.hostElement,f)}};
sY.prototype.colorFromDecimal=function(f){return _.AK(Number(f||0))};
sY.prototype.observeSuperchatChip=sY.prototype.observeSuperchatChip;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],sY.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],sY.prototype,"data",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],sY.prototype,"observeSuperchatChip",null);_.N([_.C({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],sY);
_.p(sY,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(Jnu!==void 0)return Jnu;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return Jnu=f},{mode:1});var Dk=function(){return _.I.apply(this,arguments)||this};
_.q(Dk,_.I);Dk.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"}}}};
_.y3.Object.defineProperties(Dk.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Dk.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Dk.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.kP),_.Z("design:type",Object)],Dk.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Dk.prototype,"data",void 0);_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Dk.prototype,"hideMessageBlock",null);
_.N([_.C({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],Dk);
_.p(Dk,"ytd-live-chat-history-entry-renderer",function(){if(Fez!==void 0)return Fez;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Fez=f},{mode:1});var PLe;var I3=function(){return _.I.apply(this,arguments)||this};
_.q(I3,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],I3.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],I3.prototype,"data",void 0);_.N([_.C({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],I3);
_.p(I3,"ytd-channel-options-renderer",function(){if(PLe!==void 0)return PLe;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return PLe=f},{mode:1});var vxz;var UY=function(){return _.I.apply(this,arguments)||this};
_.q(UY,_.I);UY.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],UY.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],UY.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],UY.prototype,"data",void 0);_.N([_.C({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],UY);
_.p(UY,"ytd-settings-email-item-renderer",function(){if(vxz!==void 0)return vxz;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return vxz=f},{mode:1});var Keo;var Ch=function(){return _.I.apply(this,arguments)||this};
_.q(Ch,_.I);Ch.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"}}}};
Ch.prototype.getExpansionIcon=function(f){return f?"COLLAPSE":"EXPAND"};
Ch.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.y3.Object.defineProperties(Ch.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Ch.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Ch.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Ch.prototype,"data",void 0);_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ch.prototype,"expanded",void 0);_.N([_.k("expanded"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Ch.prototype,"emailListExpanded",null);
_.N([_.vF("#options"),_.Z("design:type",Object)],Ch.prototype,"options",void 0);_.N([_.C({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],Ch);
_.p(Ch,"ytd-settings-email-list-renderer",function(){if(Keo!==void 0)return Keo;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Keo=f},{mode:1});var dqY;var ph=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return f};
_.q(ph,_.I);ph.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"}}}};
ph.prototype.handleSignalActionSubmitForm=function(){var f,S=(f=this.formRenderer)==null?void 0:f.getForm();S&&this.data.serviceEndpoint&&_.oy().resolve(_.S7).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},S,{element:this.hostElement})})};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],ph.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],ph.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],ph.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],ph.prototype,"data",void 0);_.N([_.vF("yt-form-renderer"),_.Z("design:type",Object)],ph.prototype,"formRenderer",void 0);
_.N([_.C({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],ph);
_.p(ph,"ytd-settings-gaia-link-renderer",function(){if(dqY!==void 0)return dqY;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return dqY=f},{mode:1});var ie2;var AB=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return f};
_.q(AB,_.I);AB.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.VNO()&&this.set("data.hidden",!1)};
AB.prototype.onSwitchReady=function(){var f=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.K("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.FrB().then(function(S){S&&(Notification.permission==="default"?f.set("data.hidden",!1):Notification.permission==="granted"&&_.o7("NotificationsDisabled").then(function(B){B||_.bW(f.hostElement,"yt-toggle-settings-switch",[f.data.id,!B]);f.set("data.hidden",!1)}).catch(function(){}))})})};
AB.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}}}}};
AB.prototype.handleUpdateOptionsCommand=function(f){(f=_.H(f,_.c$i))&&this.data&&this.data.id===f.id&&(this.set("data.hidden",f.hidden),f.text!==void 0&&this.set("data.text",f.text),f.clearOptions&&this.set("data.options",[]))};
AB.prototype.onSwitchReady=AB.prototype.onSwitchReady;AB.prototype.dataChanged=AB.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],AB.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],AB.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],AB.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],AB.prototype,"data",void 0);
_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],AB.prototype,"dataChanged",null);_.N([_.Vg("yt-settings-switch-ready"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],AB.prototype,"onSwitchReady",null);_.N([_.C({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],AB);
_.p(AB,"ytd-settings-options-renderer",function(){if(ie2!==void 0)return ie2;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return ie2=f},{mode:1});var He2;var NP=function(){return _.I.apply(this,arguments)||this};
_.q(NP,_.I);NP.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
NP.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
NP.prototype.onYtExpanderMoreTapped=NP.prototype.onYtExpanderMoreTapped;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],NP.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],NP.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],NP.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],NP.prototype,"data",void 0);
_.N([_.Vg("yt-expander-more-tapped"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NP.prototype,"onYtExpanderMoreTapped",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],NP);
_.p(NP,"ytd-product-details-description-renderer",function(){if(He2!==void 0)return He2;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return He2=f},{mode:1});var qG2;var MP=function(){var f=_.I.apply(this,arguments)||this;f.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";f.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";f.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";f.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return f};
_.q(MP,_.I);MP.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.y3.Object.defineProperties(MP.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var f,S;return((f=this.data)==null?void 0:(S=f.offerData)==null?void 0:S.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var f,S;return((f=this.data)==null?void 0:f.purchaseButtonRenderers)!==void 0&&((S=this.data)==null?void 0:S.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var f,S;return!((f=this.data)==null||!f.formattedFromMerchantText)&&(!((S=this.data)==null||!S.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],MP.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],MP.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],MP.prototype,"ytComponentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],MP.prototype,"data",void 0);
_.N([_.n({type:_.K("kevlar_property_type_migration_killswitch")?String:void 0}),_.Z("design:type",Object)],MP.prototype,"shippingIcon",void 0);_.N([_.n({type:_.K("kevlar_property_type_migration_killswitch")?String:void 0}),_.Z("design:type",Object)],MP.prototype,"shippingAddressIcon",void 0);_.N([_.n({type:_.K("kevlar_property_type_migration_killswitch")?String:void 0}),_.Z("design:type",Object)],MP.prototype,"googleGuaranteeIcon",void 0);
_.N([_.n({type:_.K("kevlar_property_type_migration_killswitch")?String:void 0}),_.Z("design:type",Object)],MP.prototype,"returnPolicyIcon",void 0);_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],MP.prototype,"showAdditionalFees",null);_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],MP.prototype,"showMultiPurchaseButtons",null);
_.N([_.k("data","showMultiPurchaseButtons"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],MP.prototype,"showPurchaseData",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],MP);
_.p(MP,"ytd-product-details-hero-offer-renderer",function(){if(qG2!==void 0)return qG2;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return qG2=f},{mode:1});var $q2;var Qnu;var Zk=function(){return _.I.apply(this,arguments)||this};
_.q(Zk,_.I);_.e=Zk.prototype;_.e.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.e.onKeyDown=function(f){f=f.keyCode;f!==13&&f!==32||this.handleSelection()};
_.e.onMouseEnterImage=function(){var f;((f=this.data)==null?void 0:f.thumbnailDetails)!==void 0&&_.mU(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.e.onMouseLeaveImage=function(){_.mU(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.e.handleSelection=function(){this.data&&_.ew(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.y3.Object.defineProperties(Zk.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.isSelected)}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Zk.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Zk.prototype,"data",void 0);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Zk.prototype,"isSelected",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],Zk);
_.p(Zk,"ytd-product-details-thumbnail-renderer",function(){if(Qnu!==void 0)return Qnu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Qnu=f},{mode:1});var tB=function(){var f=_.I.apply(this,arguments)||this;var S={};f.actionMap=(S["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",S["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",S);f.selectedThumbnailIndex=0;f.selectItem=function(B){B.target.onKeyDown(B)};
return f};
_.q(tB,_.I);_.e=tB.prototype;_.e.handlePreviewImageSelect=function(f){this.hoverThumbnail=f};
_.e.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.e.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.e.onThumbnailSelected=function(f,S){this.selectedThumbnailIndex=S};
_.e.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.e.updateOffset=function(){var f=_.m9(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-f));this.ytdHorizontalListBehavior.reposition_()};
_.y3.Object.defineProperties(tB.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)==null?0:f.imageRenderer){var S,B;return((S=this.data)==null?void 0:(B=S.imageRenderer)==null?void 0:B.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var f;if((f=this.data)==null?0:f.imageRenderer){var S;return(S=_.H(this.data.imageRenderer[this.selectedThumbnailIndex],WFu))==null?void 0:S.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var f=this,S,B,G,g=(G=(S=this.data)==null?void 0:(B=S.imageRenderer)==null?void 0:B.map(function(b,z){return{productDetailsThumbnailRenderer:Object.assign({},_.H(b,WFu),{index:z,isSelected:z===f.selectedThumbnailIndex})}}))!=null?G:[];
return Object.assign({},this.data,{imageRenderer:g})}}});
tB.prototype.updateOffset=tB.prototype.updateOffset;tB.prototype.dataChanged=tB.prototype.dataChanged;tB.prototype.onThumbnailSelected=tB.prototype.onThumbnailSelected;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],tB.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],tB.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.o_.YtdHorizontalListBehavior),_.Z("design:type",Object)],tB.prototype,"ytdHorizontalListBehavior",void 0);
_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],tB.prototype,"componentBehavior",void 0);_.N([_.r([_.b3.YtActionHandlerBehavior]),_.Z("design:type",Object)],tB.prototype,"actionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],tB.prototype,"data",void 0);_.N([_.n({value:"$.items.children"}),_.Z("design:type",String)],tB.prototype,"itemsPath",void 0);_.N([_.n({value:3}),_.Z("design:type",Number)],tB.prototype,"initialCount",void 0);
_.N([_.vF("#items"),_.Z("design:type",Object)],tB.prototype,"items",void 0);_.N([_.n(),_.Z("design:type",Object)],tB.prototype,"selectedThumbnailIndex",void 0);_.N([_.n(),_.Z("design:type",Object)],tB.prototype,"hoverThumbnail",void 0);_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],tB.prototype,"showThumbnails",null);
_.N([_.Vg("ytd-product-details-thumbnail-renderer-selected"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Number]),_.Z("design:returntype")],tB.prototype,"onThumbnailSelected",null);_.N([_.k("data","selectedThumbnailIndex","hoverThumbnail"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],tB.prototype,"thumbnailDetails",null);_.N([_.k("data","selectedThumbnailIndex"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],tB.prototype,"populatedData",null);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tB.prototype,"dataChanged",null);_.N([_.Vg("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tB.prototype,"updateOffset",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],tB);
_.p(tB,"ytd-product-details-image-carousel-renderer",function(){if($q2!==void 0)return $q2;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return $q2=f},{mode:_.X_("kevlar_poly_si_batch_j079")?1:2});var YG$;var uZ=function(){return _.I.apply(this,arguments)||this};
_.q(uZ,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],uZ.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],uZ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],uZ.prototype,"componentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],uZ.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],uZ);
_.p(uZ,"ytd-product-details-offer-renderer",function(){if(YG$!==void 0)return YG$;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return YG$=f},{mode:1});var rnu;var a3=function(){var f=_.I.apply(this,arguments)||this;f.isOffersHidden=!0;return f};
_.q(a3,_.I);a3.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var f,S=_.H((f=this.data)==null?void 0:f.viewOffersButton,_.IR);S&&this.ytRendererBehavior.logExplicitClick(S)};
a3.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.y3.Object.defineProperties(a3.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var f,S,B,G;return(B=_.H((f=this.data)==null?void 0:(S=f.offers)==null?void 0:S[0],oxu))==null?void 0:(G=B.offerData)==null?void 0:G.vendorLogoUrl}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],a3.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],a3.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],a3.prototype,"componentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],a3.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],a3.prototype,"isOffersHidden",void 0);
_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],a3.prototype,"firstOfferVendorLogoUrl",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],a3);
_.p(a3,"ytd-product-details-offers-container-renderer",function(){if(rnu!==void 0)return rnu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return rnu=f},{mode:1});var jne;var Oe2;var yS=function(){return _.I.apply(this,arguments)||this};
_.q(yS,_.I);yS.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
yS.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.mU(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
yS.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.mU(this,"ytd-product-details-variant-image-unselect")};
_.y3.Object.defineProperties(yS.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 f;return((f=this.data)==null?void 0:f.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var f,S,B;return((f=this.data)==null?void 0:f.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((S=this.data)==null?void 0:S.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((B=this.data)==null?void 0:B.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var f;if(((f=this.data)==null?void 0:f.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var f,S;return this.isUnavailable?(f=this.data)==null?void 0:f.variantOptionUnavailableAccessibilityLabel:(S=this.data)==null?void 0:S.variantOptionAccessibilityLabel}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],yS.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],yS.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],yS.prototype,"componentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],yS.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",String)],yS.prototype,"displayType",void 0);
_.N([_.k("displayType","data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],yS.prototype,"isImageButton",null);_.N([_.k("displayType","data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],yS.prototype,"isPillButton",null);_.N([_.k("data"),_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],yS.prototype,"isActive",null);
_.N([_.k("data"),_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],yS.prototype,"isUnavailable",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],yS.prototype,"thumbnailDetails",null);_.N([_.k("isUnavailable","data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],yS.prototype,"accessibilityLabel",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],yS);
_.p(yS,"ytd-product-details-variant-option-renderer",function(){if(Oe2!==void 0)return Oe2;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return Oe2=f},{mode:1});var xqX;var W$=function(){var f=_.I.apply(this,arguments)||this;f.variantsExpanded=!1;f.hideShowMoreLessVariantButton=!0;f.initialized=!1;f.computeVariantsDebouncer=null;f.computeVariants=function(S){S=S===void 0?!1:S;f.variantsExpanded||f.showOptions()||!S||(f.variantsExpanded=!0);if(f.variantsExpanded){S=_.m(f.items.children);for(var B=S.next();!B.done;B=S.next())B.value.hidden=!1}f.initialized=!0};
return f};
_.q(W$,_.I);_.e=W$.prototype;_.e.ready=function(){var f=this;setTimeout(function(){f.computeVariants(!0)})};
_.e.showOptions=function(){for(var f=_.m(this.items.children),S=f.next();!S.done;S=f.next())S.value.hidden=!0;var B=this.container.getBoundingClientRect().width,G=0,g=f=0;S=!1;for(var b=_.m(this.items.children),z=b.next();!z.done;z=b.next()){z=z.value;z.hidden=!1;var X=z.getBoundingClientRect().width;if(G+X<B)G+=X;else if(++g<2)G=X;else break;f+=1;z.hasAttribute("is-active")&&(S=!0)}for(B=f;B<this.items.children.length;B++)this.items.children[B].hidden=!0;this.hideShowMoreLessVariantButton=f===this.items.children.length;
return S};
_.e.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.zw(this.computeVariantsDebouncer,_.Wy.after(100),this.computeVariants)};
_.e.onShowMoreLessVariantsButtonClick=function(){var f;(f=this.data)!=null&&f.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.e.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.y3.Object.defineProperties(W$.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var f,S,B=(f=this.data)==null?void 0:(S=f.variantOptionRenderers)==null?void 0:S.find(function(b){return _.H(b,lju).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),G,g;
return(g=(G=_.H(B,lju))==null?void 0:G.name)!=null?g:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.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"}}}});
W$.prototype.debouncedComputeVariants=W$.prototype.debouncedComputeVariants;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],W$.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],W$.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],W$.prototype,"componentBehavior",void 0);_.N([_.r(_.Ld),_.Z("design:type",Object)],W$.prototype,"ironResizableBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],W$.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],W$.prototype,"variantsExpanded",void 0);_.N([_.n(),_.Z("design:type",Object)],W$.prototype,"hideShowMoreLessVariantButton",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],W$.prototype,"initialized",void 0);_.N([_.vF("#items"),_.Z("design:type",HTMLDivElement)],W$.prototype,"items",void 0);_.N([_.vF("#container"),_.Z("design:type",HTMLDivElement)],W$.prototype,"container",void 0);
_.N([_.vF("#more-variants-button"),_.Z("design:type",HTMLElement)],W$.prototype,"moreVariantsButton",void 0);_.N([_.k("data"),_.Z("design:type",String),_.Z("design:paramtypes",[])],W$.prototype,"selectedOptionName",null);_.N([_.JO("data","variantsExpanded"),_.Vg("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],W$.prototype,"debouncedComputeVariants",null);
_.N([_.k("data"),_.Z("design:type",String),_.Z("design:paramtypes",[])],W$.prototype,"displayType",null);_.N([_.k("displayType"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],W$.prototype,"variantItemsClassname",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],W$);
_.p(W$,"ytd-product-details-variant-renderer",function(){if(xqX!==void 0)return xqX;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return xqX=f},{mode:1});var c$=function(){return _.I.apply(this,arguments)||this};
_.q(c$,_.I);
c$.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"}}}};
_.y3.Object.defineProperties(c$.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var f,S,B=(S=_.H((f=this.data)==null?void 0:f.offersContainerRenderer,foX))==null?void 0:S.offers;return B!==void 0&&(B==null?void 0:B.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 f,S,B;return((B=(f=this.data)==null?void 0:(S=f.variants)==null?void 0:S.map(function(G){var g,b;G=(b=(g=_.H(G,cPn))==null?void 0:g.variantOptionRenderers)==null?void 0:b.find(function(X){var w;return((w=_.H(X,lju))==null?void 0:w.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var z;return(z=_.H(G,lju))==null?void 0:z.name}).filter(function(G){return typeof G==="string"}))!=null?B:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var f,S,B,G=(S=_.H((f=this.data)==null?void 0:f.shoppingFlaggingRenderer,SGZ))==null?void 0:(B=S.reportButton)==null?void 0:B.buttonRenderer;if(G)return{text:G.text,command:G.command,icon:{iconType:"FLAG"},accessibilityData:G.accessibilityData,trackingParams:G.trackingParams,loggingDirectives:G.loggingDirectives}}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],c$.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],c$.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],c$.prototype,"componentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],c$.prototype,"data",void 0);_.N([_.vF("#image-carousel-renderer"),_.Z("design:type",Object)],c$.prototype,"imageCarouselRenderer",void 0);
_.N([_.vF("#hero-offer-renderer"),_.Z("design:type",Object)],c$.prototype,"productDetailsHeroOfferRenderer",void 0);_.N([_.vF("#variants"),_.Z("design:type",Object)],c$.prototype,"productDetailsVariantRenderer",void 0);_.N([_.vF("#offers"),_.Z("design:type",Object)],c$.prototype,"productDetailsOffersContainerRenderer",void 0);_.N([_.vF("#description-renderer"),_.Z("design:type",Object)],c$.prototype,"productDetailsDescriptionRenderer",void 0);
_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],c$.prototype,"showPurchaseData",null);_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],c$.prototype,"showHeroOfferRenderer",null);_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],c$.prototype,"showBrandText",null);_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],c$.prototype,"showOffers",null);
_.N([_.k("showOffers","showPurchaseData"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],c$.prototype,"showBuySeparator",null);_.N([_.k("showOffers","showPurchaseData"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],c$.prototype,"showBuyCard",null);_.N([_.k("data"),_.Z("design:type",String),_.Z("design:paramtypes",[])],c$.prototype,"selectedVariantsText",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],c$.prototype,"shoppingReportingButtonData",null);
_.N([_.C({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],c$);
_.p(c$,"ytd-product-details-renderer",function(){if(jne!==void 0)return jne;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return jne=f},{mode:1});var ExX;var Le2;var kAe;var lZ=function(){return _.I.apply(this,arguments)||this};
_.q(lZ,_.I);lZ.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.y3.Object.defineProperties(lZ.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],lZ.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],lZ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],lZ.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",String)],lZ.prototype,"formattedAmount",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],lZ.prototype,"ariaLabel",void 0);
_.N([_.n({reflectToAttribute:!0}),_.k("data.style"),_.Z("design:type",String),_.Z("design:paramtypes",[])],lZ.prototype,"vcBalanceWidgetStyle",null);_.N([_.nP({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],lZ);
_.p(lZ,"yt-vc-balance-renderer",function(){if(kAe===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;Le2===void 0&&(Le2=document.createElement("template"));var G=Le2;B.call(S,G.content.cloneNode(!0),f.content.firstChild);kAe=f}f=kAe;return f},{mode:2});_.Dd("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var fq=function(){return _.I.apply(this,arguments)||this};
_.q(fq,_.I);_.y3.Object.defineProperties(fq.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:""}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],fq.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],fq.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],fq.prototype,"data",void 0);_.N([_.n({selectorArgs:["data.vcBalanceEntityKey"],selector:function(f,S){return _.w9(f.entities,"vcBalanceEntity",S)}}),
_.Z("design:type",Object)],fq.prototype,"vcBalanceEntity",void 0);_.N([_.k("vcBalanceEntity"),_.Z("design:type",String),_.Z("design:paramtypes",[])],fq.prototype,"formattedAmount",null);_.N([_.k("vcBalanceEntity"),_.Z("design:type",String),_.Z("design:paramtypes",[])],fq.prototype,"vcBalanceAriaLabel",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],fq);
_.p(fq,"ytd-vc-balance-renderer",function(){if(ExX!==void 0)return ExX;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return ExX=f},{mode:1});var nx2;var oX=function(){var f=_.I.apply(this,arguments)||this;f.rotation=0;f.isReloading=!1;return f};
_.q(oX,_.I);oX.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
oX.prototype.reset=function(){this.hostElement.style.opacity=""};
oX.prototype.close=function(){var f=this;return _.R(function(S){if(S.nextAddress==1)return _.h(S,f.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);f.hostElement.style.opacity="0";_.TT(S)})};
oX.prototype.rotationChanged=oX.prototype.rotationChanged;_.N([_.n(),_.Z("design:type",Object)],oX.prototype,"rotation",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],oX.prototype,"isReloading",void 0);_.N([_.vF("#icon"),_.Z("design:type",HTMLElement)],oX.prototype,"icon",void 0);_.N([_.JO("rotation"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],oX.prototype,"rotationChanged",null);
_.N([_.C({disableElementRegistration:!0,is:"ytd-refresh"})],oX);
_.p(oX,"ytd-refresh",function(){if(nx2!==void 0)return nx2;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return nx2=f},{mode:1});var sno;var SF=function(){return _.I.apply(this,arguments)||this};
_.q(SF,_.I);SF.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"}}}};
SF.prototype.dataChanged=function(){if(this.data){var f=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var S=_.bF(this.data.banner.thumbnails,this.hostElement.clientWidth);S&&(S.indexOf("//")===0&&(S="https:"+S),this.hasBannerArt=!0,_.hO(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+S+")"}))}this.hasBannerArt!==f&&_.m9(this.hostElement).querySelector("#header").fire("iron-resize")}};
SF.prototype.updateSelectedFromBinding=function(f){this.selected=f.detail.value};
SF.prototype.dataChanged=SF.prototype.dataChanged;_.N([_.r(gxY),_.Z("design:type",Object)],SF.prototype,"ytdTabbedHeaderBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],SF.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.sk),_.Z("design:type",Object)],SF.prototype,"ytdGridStateAwareBehavior",void 0);_.N([_.r(_.Iu.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],SF.prototype,"ytdGuideStateAwareBehavior",void 0);
_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],SF.prototype,"componentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],SF.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Number)],SF.prototype,"selected",void 0);_.N([_.n(),_.Z("design:type",Boolean)],SF.prototype,"active",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],SF.prototype,"hasBannerArt",void 0);
_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],SF.prototype,"dataChanged",null);_.N([_.C({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],SF);
_.p(SF,"ytd-interactive-tabbed-header-renderer",function(){if(sno!==void 0)return sno;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return sno=f},{mode:1});var Dqo;var Bk=function(){return _.I.apply(this,arguments)||this};
_.q(Bk,_.I);Bk.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Bk.prototype.computeActionsAlignment=function(f){return(f==null?void 0:f.actionsAlignment)||""};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Bk.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Bk.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Bk.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.Z("design:type",String)],Bk.prototype,"actionsAlignment",void 0);_.N([_.C({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],Bk);
_.p(Bk,"ytd-page-footer-renderer",function(){if(Dqo!==void 0)return Dqo;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Dqo=f},{mode:1});var Ion;var UqX;var GL=function(){var f=_.I.apply(this,arguments)||this;f.isEditing=!1;f.useSlot=!1;f.isMultiline=!1;return f};
_.q(GL,_.I);_.e=GL.prototype;_.e.onKeydown=function(f){if(f.keyCode===13&&!this.isMultiline)this.onSave();else if(f.keyCode===27)this.onCancel()};
_.e.computeComponentStyle=function(f){return(f==null?0:f.style)?f.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.e.computeisMultiline=function(f){if(this.multilineOverride!==void 0)return this.multilineOverride;var S,B;return!!(f==null?0:(S=f.formField)==null?0:(B=S.textInputFormFieldRenderer)==null?0:B.isMultiline)};
_.e.computeTextDisplayed=function(f,S){if(f)return f;if(S)return S};
_.e.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.e.onSave=function(){if(this.textForm.validate()){this.textForm.save();var f=this.textForm.value;if(f)this.set("data.textDisplayed",_.uC(f));else{var S;((S=this.data)==null?0:S.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.AW("inline-form-changed",this.data));this.isEditing=!1}};
_.e.onCancel=function(){var f=_.ac(this.data.textDisplayed);f===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(f);this.isEditing=!1};
GL.prototype.onKeydown=GL.prototype.onKeydown;_.N([_.r(_.Px.YtEventForwardingBehavior),_.Z("design:type",Object)],GL.prototype,"ytEventForwardingBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],GL.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],GL.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],GL.prototype,"data",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],GL.prototype,"isEditing",void 0);_.N([_.n(),_.Z("design:type",Object)],GL.prototype,"useSlot",void 0);_.N([_.n(),_.Z("design:type",Boolean)],GL.prototype,"multilineOverride",void 0);_.N([_.n(),_.Z("design:type",Boolean)],GL.prototype,"enableOverlayTheme",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.Z("design:type",String)],GL.prototype,"componentStyle",void 0);
_.N([_.n({computed:"computeisMultiline(data)"}),_.Z("design:type",Object)],GL.prototype,"isMultiline",void 0);_.N([_.vF("#text-form"),_.Z("design:type",Object)],GL.prototype,"textForm",void 0);_.N([_.Vg("keydown"),_.Z("design:type",Function),_.Z("design:paramtypes",[KeyboardEvent]),_.Z("design:returntype")],GL.prototype,"onKeydown",null);_.N([_.C({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],GL);
_.p(GL,"ytd-inline-form-renderer",function(){if(UqX!==void 0)return UqX;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return UqX=f},{mode:1});var CL2;var gl=function(){var f=_.I.apply(this,arguments)||this;f.previousSelectValue=void 0;f.selectedItemMessage=void 0;return f};
_.q(gl,_.I);gl.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
gl.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var f,S,B,G,g=(f=this.data)==null?void 0:(S=f.dropdown)==null?void 0:(B=S.dropdownRenderer)==null?void 0:(G=B.entries)==null?void 0:G.map(function(X){return X.privacyDropdownItemRenderer});
f=_.m(g!=null?g:[]);for(S=f.next();!S.done;S=f.next())if((S=S.value)&&S.int32Value===this.selectedValue){this.selectedItemMessage=S.itemMessage;break}}else this.selectedItemMessage=void 0;var b;(b=this.onValueChanged)==null||b.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var z;(z=this.data)!=null&&z.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
gl.prototype.onValueChangedForSelectedValue=function(f){this.selectedValue=f.detail.value};
gl.prototype.selectedValueChanged=gl.prototype.selectedValueChanged;_.N([_.r(_.Px.YtEventForwardingBehavior),_.Z("design:type",Object)],gl.prototype,"ytEventForwardingBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],gl.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],gl.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],gl.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],gl.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",String)],gl.prototype,"theme",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Number)],gl.prototype,"selectedValue",void 0);_.N([_.n(),_.Z("design:type",Function)],gl.prototype,"onValueChanged",void 0);
_.N([_.HF("selectedValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],gl.prototype,"selectedValueChanged",null);_.N([_.C({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],gl);
_.p(gl,"ytd-dropdown-form-field-renderer",function(){if(CL2!==void 0)return CL2;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return CL2=f},{mode:_.X_("kevlar_poly_si_batch_j025")?1:2});var pbB;var eF=function(){return _.I.apply(this,arguments)||this};
_.q(eF,_.I);_.y3.Object.defineProperties(eF.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var f=[],S=_.m(this.data||[]),B=S.next();!B.done;B=S.next())(B=_.H(B.value,ByX))&&f.push(B);return f}}});
_.N([_.n(),_.Z("design:type",Array)],eF.prototype,"data",void 0);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],eF.prototype,"byline",null);_.N([_.C({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],eF);
_.p(eF,"ytd-playlist-byline-renderer",function(){if(pbB!==void 0)return pbB;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return pbB=f},{mode:1});var AnM;var bp=function(){var f=_.I.apply(this,arguments)||this;f.rtlBullet=_.K("web_playlist_stats_rtl_bullet_icon_killswitch");f.modern=_.K("web_modern_buttons");f.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return f};
_.q(bp,_.I);_.e=bp.prototype;_.e.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"}}}}};
_.e.attached=function(){};
_.e.computeIsCustomThumbnail=function(f){return f?!!f.playlistCustomThumbnailRenderer:!1};
_.e.onYtNavigate=function(f,S){if(S&&S.actions&&S.actions.indexOf("shuffle")>-1){f=_.oy().resolve(_.Dr);var B=S.tempData||{};B.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);S.tempData=B;f.isShuffleNextPlaylist=!0}};
_.e.onUpdatePlaylistAction=function(f){var S;f=(S=_.H(f,_.r$m))==null?void 0:S.updatedRenderer;if(S=_.H(f,jk))this.data=S};
_.e.computeStyleType=function(f){return f?f.toLowerCase().replace(/_/g,"-"):""};
_.e.computeThumbnailWidth=function(f){return f==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.e.computeHideThumbnailAria=function(f){if(f==null?0:f.thumbnailOverlays)for(var S=0;S<f.thumbnailOverlays.length;S++){var B=void 0;if((B=f.thumbnailOverlays[S])==null?0:B.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
bp.prototype.onYtNavigate=bp.prototype.onYtNavigate;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],bp.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],bp.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],bp.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],bp.prototype,"ytComponentBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],bp.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],bp.prototype,"rtlBullet",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.Z("design:type",String)],bp.prototype,"styleType",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.Z("design:type",Number)],bp.prototype,"thumbnailWidth",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],bp.prototype,"modern",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.Z("design:type",Boolean)],bp.prototype,"isCustomThumbnail",void 0);_.N([_.Vg("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event,Object]),_.Z("design:returntype")],bp.prototype,"onYtNavigate",null);_.N([_.C({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],bp);
_.p(bp,"ytd-playlist-sidebar-primary-info-renderer",function(){if(AnM!==void 0)return AnM;var f=document.createElement("template");_.Y(f,'\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>');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return AnM=f},{mode:1});var NyZ;var mc=function(){return _.I.apply(this,arguments)||this};
_.q(mc,_.I);mc.prototype.computeOwnerVisibility=function(f){return!(!f.videoOwner&&!f.button)};
mc.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"}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],mc.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],mc.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],mc.prototype,"data",void 0);_.N([_.C({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],mc);
_.p(mc,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(NyZ!==void 0)return NyZ;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return NyZ=f},{mode:1});var MYB;var zL=function(){var f=_.I.apply(this,arguments)||this;f.expanded=!1;f.isCompact=!1;return f};
_.q(zL,_.I);_.e=zL.prototype;_.e.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.e.dataChanged=function(){this.data&&_.pC(_.m9(this.text),_.iMm(_.$Ai,_.ac(this.data.text||null)))};
_.e.computeAutoScrollEnabled=function(f,S){return f&&!S};
_.e.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.e.toggleOnTap=function(){this.expanded=!this.expanded};
zL.prototype.expandedChanged=zL.prototype.expandedChanged;zL.prototype.dataChanged=zL.prototype.dataChanged;_.N([_.r(_.uZn),_.Z("design:type",Object)],zL.prototype,"ytdAutoScrollBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],zL.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],zL.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],zL.prototype,"expanded",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],zL.prototype,"isCompact",void 0);_.N([_.n({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.Z("design:type",Boolean)],zL.prototype,"autoScrollEnabled",void 0);_.N([_.vF("#text"),_.Z("design:type",Object)],zL.prototype,"text",void 0);_.N([_.vF("#expander-icon"),_.Z("design:type",Object)],zL.prototype,"expanderIcon",void 0);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zL.prototype,"dataChanged",null);_.N([_.JO("expanded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zL.prototype,"expandedChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],zL);
_.p(zL,"ytd-channel-legal-info-renderer",function(){if(MYB!==void 0)return MYB;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return MYB=f},{mode:1});var Zeu;var tYX=_.Jf("DOWNLOAD",{},"Download"),uQu=_.Jf("DOWNLOADING",{},"Downloading"),ao2=_.Jf("DOWNLOADED",{},"Downloaded"),RX=function(){var f=_.I.apply(this,arguments)||this;f.downloadProgress=0;f.isDownloadComplete=!1;f.transferState="TRANSFER_STATE_UNKNOWN";return f};
_.q(RX,_.I);_.e=RX.prototype;_.e.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.e.dataChanged=function(){var f;(f=this.data)!=null&&f.tooltip||(f=_.DK(_.W2().getState(),this.playlistId),this.updateButtonState(f))};
_.e.computePlaylistId=function(f){return f};
_.e.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.e.updateButtonState=function(f){if(this.data&&(this.data.tooltip!==uQu||!_.d9(f))){this.isDownloadComplete=!1;switch(f){case "TRANSFER_STATE_UNKNOWN":f=tYX;var S="OFFLINE_DOWNLOAD";var B="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":f=ao2;S="OFFLINE_PIN";B="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":f=uQu;S="OFFLINE_DOWNLOADING_ZERO";B="ACTION_REMOVE_WITH_PROMPT";
break;default:f=tYX,S="OFFLINE_DOWNLOAD",B="ACTION_ADD"}var G=Object.assign({},this.data);G.tooltip=f;G.accessibilityData={accessibilityData:{label:f}};G.icon={iconType:S};G.size="SIZE_DEFAULT";_.H(G.command,_.JD)&&(_.H(G.command,_.JD).action=B);this.set("data",G)}};
_.e.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var f="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?f="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?f="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?f="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?f="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?f="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(f="OFFLINE_PIN",this.isDownloadComplete=!0);var S;f!==((S=this.data.icon)==null?void 0:S.iconType)&&(S=Object.assign({},this.data),S.tooltip=uQu,S.accessibilityData={accessibilityData:{label:uQu}},S.icon={iconType:f},_.H(S.command,_.JD)&&(_.H(S.command,_.JD).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",S))}};
RX.prototype.updateProgress=RX.prototype.updateProgress;RX.prototype.onTransferStateChanged=RX.prototype.onTransferStateChanged;RX.prototype.dataChanged=RX.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],RX.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],RX.prototype,"ytdReduxBehavior",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],RX.prototype,"forceIconButton",void 0);
_.N([_.n({value:!0}),_.Z("design:type",Boolean)],RX.prototype,"forceIconOnly",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],RX.prototype,"overrides",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],RX.prototype,"buttonTooltipPosition",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],RX.prototype,"styleActionButton",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],RX.prototype,"disableTextTransform",void 0);
_.N([_.n({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.Z("design:type",String)],RX.prototype,"playlistId",void 0);_.N([_.n(),_.Z("design:type",Object)],RX.prototype,"data",void 0);_.N([_.n({selector:_.VRN,selectorArgs:["playlistId"]}),_.Z("design:type",Object)],RX.prototype,"downloadProgress",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],RX.prototype,"isDownloadComplete",void 0);
_.N([_.n({selector:_.DK,selectorArgs:["playlistId"]}),_.Z("design:type",String)],RX.prototype,"transferState",void 0);_.N([_.n({value:!0}),_.Z("design:type",Boolean)],RX.prototype,"showTooltips",void 0);_.N([_.n({value:!0}),_.Z("design:type",Boolean)],RX.prototype,"sendCommandWhenDisabled",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],RX.prototype,"disabled",void 0);
_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],RX.prototype,"dataChanged",null);_.N([_.HF("transferState"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],RX.prototype,"onTransferStateChanged",null);_.N([_.HF("downloadProgress"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],RX.prototype,"updateProgress",null);
_.N([_.C({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],RX);
_.p(RX,"ytd-download-playlist-button-renderer",function(){if(Zeu!==void 0)return Zeu;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Zeu=f},{mode:1});var yne;_.eq(_.j7$,"thumbnail-overlay-button-view-model",{props:{data:_.W4,lockupExperiments:_.W4}});var XJ=function(){var f=_.I.apply(this,arguments)||this;f.isSquare=!1;f.isVertical=!1;return f};
_.q(XJ,_.I);XJ.prototype.computeIsSquare=function(f){return f!=null&&f.thumbnail?OEe(f.thumbnail)==="SQUARE":!1};
XJ.prototype.computeIsVertical=function(f){return f!=null&&f.thumbnail?OEe(f.thumbnail)==="VERTICAL":!1};
XJ.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],XJ.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],XJ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.Z("design:type",Object)],XJ.prototype,"isSquare",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.Z("design:type",Object)],XJ.prototype,"isVertical",void 0);
_.N([_.n(),_.Z("design:type",Object)],XJ.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],XJ);
_.p(XJ,"ytd-hero-playlist-thumbnail-renderer",function(){if(yne!==void 0)return yne;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return yne=f},{mode:1});var wl=function(){var f=_.I.apply(this,arguments)||this;f.isDarkTheme=!1;f.isUltraWide=!1;f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return f};
_.q(wl,_.I);_.e=wl.prototype;_.e.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.oy();var f;(f=_.oy().resolve(_.fN(_.Mh)))!=null&&(f.headerElement=this.hostElement)};
_.e.detached=function(){var f;(f=_.oy().resolve(_.fN(_.Mh)))!=null&&(f.headerElement=void 0)};
_.e.onUpdateHeader=function(f){(f=f.detail)&&this.set("data",f)};
_.e.computeTextDisplayed=function(f){if(f)return f.textDisplayed?f.textDisplayed:f.placeholder};
_.e.gradientColorToLinearGradientStop=function(f){var S=this.isDarkTheme?f.darkThemeColor:f.lightThemeColor;return S?_.AK(S)+" "+((f==null?void 0:f.startLocation)||0)*100+"%":"transparent"};
_.e.onWindowResize=function(){var f;((f=this.data)==null?0:f.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.e.onIronResize=function(f){this.isUltraWide=!f.detail.value};
_.e.onDarkModeToggledAction=function(f){this.isDarkTheme=f};
_.e.onUpdatePlaylistName=function(f){var S=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},f.detail.value));_.ui(this,function(){var B;(B=S.editableTitle)==null||B.resize()})};
_.e.onUpdatePlaylistDescription=function(f){var S=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},f.detail.value));_.ui(this,function(){var B;(B=S.editableDescriptionInlineExpander)==null||B.resize()})};
_.e.getCinematicData=function(f){return _.H(f==null?void 0:f.cinematicContainer,_.H$)};
_.y3.Object.defineProperties(wl.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 f,S=(f=this.getCinematicData(this.data))==null?void 0:f.config;return(f=this.isDarkTheme?S==null?void 0:S.darkThemeBackgroundColor:S==null?void 0:S.lightThemeBackgroundColor)?"background-color:"+_.pn(f)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var f;return _.H((f=this.data)==null?void 0:f.descriptionForm,yPM)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var f=this,S,B,G;return"background:linear-gradient(to bottom, "+(((G=(S=this.getCinematicData(this.data))==null?void 0:(B=S.gradientColorConfig)==null?void 0:B.map(function(g){return f.gradientColorToLinearGradientStop(g)}))==null?void 0:G.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var f;return _.ac((f=this.data)==null?void 0:f.descriptionTapText)}}});
wl.prototype.onUpdateHeader=wl.prototype.onUpdateHeader;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],wl.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],wl.prototype,"actionHandlerBehavior",void 0);_.N([_.vF("#description-inline-expander"),_.Z("design:type",Object)],wl.prototype,"descriptionInlineExpander",void 0);
_.N([_.vF("#editable-description-inline-expander"),_.Z("design:type",Object)],wl.prototype,"editableDescriptionInlineExpander",void 0);_.N([_.n(),_.Z("design:type",Object)],wl.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],wl.prototype,"isUltraWide",void 0);_.N([_.vF("#editable-title-display"),_.Z("design:type",Object)],wl.prototype,"editableTitle",void 0);_.N([_.k("isUltraWide"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],wl.prototype,"maxDescriptionLines",null);
_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],wl.prototype,"noCinematicData",null);_.N([_.Vg("yt-new-playlist-header"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],wl.prototype,"onUpdateHeader",null);_.N([_.k("data","isDarkTheme"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],wl.prototype,"backgroundStyle",null);
_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],wl.prototype,"descriptionFormData",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],wl.prototype,"getDropdownTheme",null);_.N([_.k("data","isDarkTheme"),_.Z("design:type",String),_.Z("design:paramtypes",[])],wl.prototype,"gradientStyle",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],wl.prototype,"descriptionTapText",null);
_.N([_.C({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],wl);
_.p(wl,"ytd-playlist-header-renderer",function(){if(Ion!==void 0)return Ion;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Ion=f},{mode:_.X_("kevlar_poly_si_batch_j078")?1:2});var WeZ;var cn$;var ht=function(){return _.I.apply(this,arguments)||this};
_.q(ht,_.I);ht.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],ht.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],ht.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],ht.prototype,"data",void 0);_.N([_.C({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],ht);
_.p(ht,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(cn$!==void 0)return cn$;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return cn$=f},{mode:1});var TL=function(){return _.I.apply(this,arguments)||this};
_.q(TL,_.I);
TL.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}}}}};
TL.prototype.computeUsePremiumShowStyle=function(f){if(!f||!f.items)return!1;for(var S=0;S<f.items.length;S++)if(_.H(f.items[S],jk)){var B=void 0;return((B=_.H(f.items[S],jk))==null?void 0:B.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],TL.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],TL.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],TL.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.Z("design:type",Boolean)],TL.prototype,"usePremiumShowStyle",void 0);
_.N([_.C({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],TL);
_.p(TL,"ytd-playlist-sidebar-renderer",function(){if(WeZ!==void 0)return WeZ;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return WeZ=f},{mode:1});var loM;var fF2;var otY=function(f,S,B,G,g,b,z,X){this.minWidth=f;this.minHeight=S;this.recommendedWidth=B;this.recommendedHeight=G;this.JSC$19565_maxFileSize=g;this.title=b;this.bannerGalleryTitle=z;this.channelId=X;this.picker_=null;f=_.wl1("yt-banner");S=f.addView;B=(new IjX("youtubebanner")).addUploadMetadata("silo_id","19");B.opts.ytMaxFileSize=this.JSC$19565_maxFileSize;G=this.recommendedHeight;B.opts.ytRecWidth=this.recommendedWidth;B.opts.ytRecHeight=G;S.call(f,B);f.addView(new _.rH);S=f.addView;B=new _.rH;
B.opts.type="ytbanner";S.call(f,B.JSC$8118_setLabel(this.bannerGalleryTitle));S=f.setTitle(this.title).setSize(1E3);S.urlParamMap_.set("thumbs","orig");B=this.minWidth;G=this.minHeight;if(isNaN(B)||isNaN(G))throw Error("lb`"+B+"`"+G);S.urlParamMap_.set("minSize",B+"x"+G);S.urlParamMap_.set("cropMode","ytcb");this.builder_=f};
otY.prototype.open=function(){var f=this;return new _.TM(function(S,B){_.Rv7(f.builder_,function(G){G.action=="picked"?S(G):G.action=="cancel"&&B(Error("Yl"))});
f.picker_&&f.picker_.dispose();f.picker_=f.builder_.build();f.picker_.setVisible(!0)})};
otY.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var SSu=function(f){this.channelId=f},B7n=function(f,S){var B="";
S.viewToken&&(B=S.viewToken[2].type);var G=S.docs[0];S=G.crop;f={channel_id:f.channelId,fife_url:G.thumbnails[0].url,photo_id:G.id,is_gallery_image:B=="ytbanner"};S&&(f.crop_top=S.top,f.crop_right=S.right,f.crop_bottom=S.bottom,f.crop_left=S.left);return _.DQ1("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:f})};var FJ=function(){var f=_.I.apply(this,arguments)||this;f.ariaLabel=null;return f};
_.q(FJ,_.I);_.e=FJ.prototype;_.e.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.e.detached=function(){this.picker&&this.picker.dispose()};
_.e.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.e.computeAriaLabel=function(f){return f};
_.e.onTap=function(){var f=this,S;if((S=this.data)==null||!S.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new otY(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 B;(B=this.picker)==null||B.open().then(function(G){f.handleBannerPicked(G)},function(){})}};
_.e.handleBannerPicked=function(f){var S=this;this.uploader||(this.uploader=new SSu(this.data.channelId||""));this.message=this.data.uploadingText;B7n(this.uploader,f).then(function(B){S.handleBannerUploadSucceeded(B)},function(B){S.handleBannerUploadFailed(B)})};
_.e.handleBannerUploadSucceeded=function(f){f&&f.errors?this.handleBannerUploadFailed(f):(_.ew(this.hostElement,"yt-banner-updated",f),this.message=null)};
_.e.handleBannerUploadFailed=function(f){this.message=f&&f.errors&&f.errors.length?f.errors[0]:null};
FJ.prototype.dataChanged=FJ.prototype.dataChanged;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],FJ.prototype,"componentBehavior",void 0);_.N([_.r(_.nd),_.Z("design:type",Object)],FJ.prototype,"ironButtonState",void 0);_.N([_.n(),_.Z("design:type",Object)],FJ.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.Z("design:type",Object)],FJ.prototype,"ariaLabel",void 0);
_.N([_.n(),_.Z("design:type",Object)],FJ.prototype,"message",void 0);_.N([_.n(),_.Z("design:type",Object)],FJ.prototype,"picker",void 0);_.N([_.n(),_.Z("design:type",Object)],FJ.prototype,"uploader",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],FJ.prototype,"dataChanged",null);_.N([_.C({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],FJ);
_.p(FJ,"ytd-channel-banner-editor-renderer",function(){if(fF2!==void 0)return fF2;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return fF2=f},{mode:1});var G3o;var gtM=_.f4(["#"]),Vt=function(){return _.I.apply(this,arguments)||this};
_.q(Vt,_.I);Vt.prototype.computeHrefWithDefault=function(f){return this.ytComponentBehavior.computeHref_(f,!0)||_.$6(gtM)};
Vt.prototype.dataChanged=function(){var f=this.data;f&&f.targetId&&_.fD8(_.Qh(),f.targetId,this.moreIcon)};
Vt.prototype.dataChanged=Vt.prototype.dataChanged;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Vt.prototype,"ytComponentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Vt.prototype,"data",void 0);_.N([_.vF("#more-icon"),_.Z("design:type",Object)],Vt.prototype,"moreIcon",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Vt.prototype,"dataChanged",null);
_.N([_.C({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],Vt);
_.p(Vt,"ytd-channel-tagline-renderer",function(){if(G3o!==void 0)return G3o;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return G3o=f},{mode:1});var eTu;var Jt=function(){return _.I.apply(this,arguments)||this};
_.q(Jt,_.I);_.e=Jt.prototype;_.e.ready=function(){var f=this;_.m9(this.hostElement).querySelector("#form").addEventListener("submit",function(S){f.onSubmit(S)})};
_.e.onDataChanged=function(){var f;((f=this.data)==null?0:f.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.e.onIconButtonKeydown=function(f){f.keyCode===13&&this.iconButton.click()};
_.e.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.e.openOnClickHandler=function(){this.input.focus()};
_.e.onSubmit=function(f){f.preventDefault();return!1};
_.e.submitOnEnterKeyUp=function(f){var S;if(f.keyCode===13&&((S=this.data)==null?0:S.expandedText)){f=this.data.endpoint;S=_.$v.unsafeClone(f);var B;((B=_.H(S==null?void 0:S.commandMetadata,_.oD))==null?0:B.url)?(_.H(S.commandMetadata,_.oD).url=_.D0(_.H(S.commandMetadata,_.oD).url,"query",this.data.expandedText),_.H(S,_.d3)&&(_.H(S,_.d3).query=this.data.expandedText),_.ew(this.hostElement,"yt-navigate",{endpoint:S,tempData:{disableCache:!0}})):(B=new _.dO("Error: Trying to navigate to an endpoint without url",
f),_.xH(B))}};
_.e.updateDataExpandedTextFromBinding=function(f){this.set("data.expandedText",f.detail.value)};
_.y3.Object.defineProperties(Jt.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.K("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
Jt.prototype.onDataChanged=Jt.prototype.onDataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Jt.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.qKu),_.Z("design:type",Object)],Jt.prototype,"ytdExpandableInputBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Jt.prototype,"data",void 0);_.N([_.vF("#input"),_.Z("design:type",Object)],Jt.prototype,"input",void 0);_.N([_.vF("#icon-button"),_.Z("design:type",HTMLElement)],Jt.prototype,"iconButton",void 0);
_.N([_.n(),_.Z("design:type",String),_.Z("design:paramtypes",[])],Jt.prototype,"searchIcon",null);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Jt.prototype,"onDataChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],Jt);
var x3n=_.RS()(Jt,"ytd-expandable-tab-renderer",function(){if(eTu===void 0){var f=document.createElement("template");_.Y(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-tab-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon-button" label="[[data.title]]" on-click="openOnClick_" on-keydown="onIconButtonKeydown" class="style-scope ytd-expandable-tab-renderer">\n  <yt-icon icon="[[searchIcon]]" class="style-scope ytd-expandable-tab-renderer"></yt-icon>\n</yt-icon-button>\n<form id="form" action="[[data.endpoint.commandMetadata.webCommandMetadata.url]]" class="style-scope ytd-expandable-tab-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[data.title]]" max-length="100" name="query" no-label-float="" value="[[data.expandedText]]" on-keyup="submitOnEnterKeyUp" on-value-changed="updateDataExpandedTextFromBinding" class="style-scope ytd-expandable-tab-renderer">\n   </tp-yt-paper-input>\n</form>\n');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);eTu=f}f=eTu;return f},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var b6O;var Pk=function(){var f=_.I.apply(this,arguments)||this;f.avatarSize=80;f.ariaLabel=_.Jf("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return f};
_.q(Pk,_.I);Pk.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Pk.prototype.computeHref=function(f){var S;return((S=_.H(f,_.pg))==null?0:S.url)?this.componentBehavior.computeHref_(f):null};
Pk.prototype.onTap=function(){var f,S;(f=this.data)==null||!f.editAvatarServiceEndpoint||((S=_.H(this.data.editAvatarServiceEndpoint,_.pg))==null?0:S.url)||_.oy().resolve(_.S7).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.N([_.r(_.nd),_.Z("design:type",Object)],Pk.prototype,"ironButtonState",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Pk.prototype,"componentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Pk.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],Pk.prototype,"avatarSize",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",String)],Pk.prototype,"ariaLabel",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],Pk);
_.p(Pk,"ytd-channel-avatar-editor",function(){if(b6O!==void 0)return b6O;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return b6O=f},{mode:1});var mUu=_.oS(function(f){var S=f.data;var B=f.noPadding;var G=f.enableBanner;var g=f.cinematicContainerTopbarOffset;var b=f.allowCinematicContainerOverflow;var z=f.displayAsSidebar;f=f.className;_.jp(function(){S().tagManagerId&&(_.Oj(S().tagManagerId,_.nL("GL")),D3Z(S().tagManagerId))},"xVTVTe");
var X=_.v8(LF2,function(){return S().pageHeaderEntityKey});
return _.T("yt-page-header-renderer",{class:_.Pw("page-header-renderer-wiz",f)},_.T(_.xK,{data:function(){var w;return((w=X())==null?0:w.header)?X().header:(z==null?0:z())&&S().sidebarContent?S().sidebarContent:S().content}},{pageHeaderViewModel:function(w){return _.T(_.tv1,{data:w.data,
noPadding:B,enableBanner:G,cinematicContainerTopbarOffset:g,allowCinematicContainerOverflow:b,displayAsSidebar:function(){return(z==null?void 0:z())&&S().enableSidebarView}})}}))},"Ki");
mUu.idomCompat=!0;_.eq(mUu,"yt-page-header-renderer",{props:{data:_.W4,noPadding:_.W4,enableBanner:_.W4,cinematicContainerTopbarOffset:_.W4,allowCinematicContainerOverflow:_.W4,displayAsSidebar:_.W4,className:_.W4}});_.eq(_.Mv6,"yt-image-banner-view-model",{props:{data:_.W4,isPositionRelative:_.W4}});_.eq(_.za1,"yt-tab-group-shape",{props:{shape:_.W4}});var vk=function(){var f=_.I.apply(this,arguments)||this;f.expandableCustomTabRenderable=function(S){return EFn(S,function(){return void f.onSearchNavigate()})};
f.isRichGrid=!1;f.isConstrainedList=!1;f.richGridMiniMode=!1;f.richGridStyle="RICH_GRID_STYLE_UNKNOWN";f.isRichGridShorts=!1;f.responsiveSizing="COMPACT";f.disableGridStateAware=!1;f.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return f};
_.q(vk,_.I);_.e=vk.prototype;_.e.computeHeaderDisabled=function(f,S){return S||!f||this.tabsHidden};
_.e.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.e.computeIsRichGridShorts=function(f){return f==="RICH_GRID_STYLE_SHORTS_GRID"||f==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.e.computeImageBannerViewModel=function(){var f,S;return _.H((S=_.H((f=this.data)==null?void 0:f.content,_.dGi))==null?void 0:S.banner,_.VR$)};
_.e.computeHasCinematicContainer=function(){var f,S;return!((S=_.H((f=this.data)==null?void 0:f.content,_.dGi))==null||!S.background)};
_.e.handleHeaderResize=function(){var f=_.m9(this.hostElement).querySelector("#header");f&&_.ew(f,"iron-resize")};
_.e.handleInsertTabCommand=function(f){var S=_.H(f,GAu);S&&(S.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(B){return B.tabRenderer&&B.tabRenderer.tabIdentifier===S.tabIdentifier})||this.splice("tabs",S.tabIndex||-1,0,S.tab))};
_.e.handleRefreshChannelTabAction=function(f){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===f&&_.ew(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.e.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.hO(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.e.observerRichGridSlimItemsPerRow=function(){_.hO(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.e.updateCssVars=function(){this.richGridItemsPerRow&&_.hO(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.Gt("rich_grid_max_item_width",500))+16)-16+"px"})};
_.e.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.hO(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.e.onDataChanged=function(){this.handleHeaderResize()};
_.e.onWindowResize=function(){this.handleHeaderResize()};
_.e.onFocusedChanged=function(f){(f=_.lt(f))&&f.is==="tp-yt-paper-tab"&&f.hasRipple()&&(f.getRipple().holdDown=!f.pointerDown&&f.focused)};
_.e.updateSelectedFromBinding=function(f){this.ytdTabbedHeaderBehavior.selected=f.detail.value};
_.e.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.y3.Object.defineProperties(vk.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:nFu(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.imageBannerViewModel)==null?void 0:f.style)==="IMAGE_BANNER_STYLE_INSET"}}});
vk.prototype.onDataChanged=vk.prototype.onDataChanged;vk.prototype.updateCssVarsForResponsiveGrid=vk.prototype.updateCssVarsForResponsiveGrid;vk.prototype.updateCssVars=vk.prototype.updateCssVars;vk.prototype.observerRichGridSlimItemsPerRow=vk.prototype.observerRichGridSlimItemsPerRow;vk.prototype.observerRichGridItemsPerRow=vk.prototype.observerRichGridItemsPerRow;_.N([_.r(_.sk),_.Z("design:type",Object)],vk.prototype,"ytdGridStateAwareBehavior",void 0);
_.N([_.r(gxY),_.Z("design:type",Object)],vk.prototype,"ytdTabbedHeaderBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],vk.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],vk.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Iu.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],vk.prototype,"ytdGuideStateAwareBehavior",void 0);
_.N([_.r(_.Ek),_.Z("design:type",Object)],vk.prototype,"ytdReduxBehavior",void 0);_.N([_.vF("#tabs"),_.Z("design:type",Object)],vk.prototype,"tabsElement",void 0);_.N([_.n(),_.Z("design:type",Array)],vk.prototype,"tabs",void 0);_.N([_.n(),_.Z("design:type",Object)],vk.prototype,"expandableCustomTabRenderable",void 0);_.N([_.k("tabs.*"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],vk.prototype,"tabGroupShape",null);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],vk.prototype,"isRichGrid",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],vk.prototype,"isConstrainedList",void 0);_.N([_.n({reflectToAttribute:!0,selector:_.xr}),_.Z("design:type",Object)],vk.prototype,"richGridMiniMode",void 0);_.N([_.n({selector:function(f){return f.ui.richGridStyle}}),
_.Z("design:type",Object)],vk.prototype,"richGridStyle",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.Z("design:type",Object)],vk.prototype,"isRichGridShorts",void 0);_.N([_.n({selector:_.EA}),_.Z("design:type",Number)],vk.prototype,"richGridItemsPerRow",void 0);_.N([_.n({selector:function(f){return f.ui.richGridContainerWidth}}),
_.Z("design:type",Number)],vk.prototype,"richGridContainerWidth",void 0);_.N([_.n({selector:_.BUW}),_.Z("design:type",Number)],vk.prototype,"richGridSlimItemsPerRow",void 0);_.N([_.n(),_.Z("design:type",Object)],vk.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],vk.prototype,"responsiveSizing",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],vk.prototype,"disableGridStateAware",void 0);
_.N([_.n({computed:"computeImageBannerViewModel(data)"}),_.Z("design:type",Object)],vk.prototype,"imageBannerViewModel",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.Z("design:type",Boolean)],vk.prototype,"hasCinematicContainer",void 0);_.N([_.n({selector:_.RKu,reflectToAttribute:!0}),_.Z("design:type",Boolean)],vk.prototype,"guideIsVisibleButNotPersistent",void 0);
_.N([_.n({reflectToAttribute:!0}),_.k("imageBannerViewModel"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],vk.prototype,"hasBanner",null);_.N([_.n({reflectToAttribute:!0}),_.k("imageBannerViewModel"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],vk.prototype,"hasInsetBanner",null);_.N([_.n({computed:"computeTabsHidden(tabs)",value:!0}),_.Z("design:type",Boolean)],vk.prototype,"tabsHidden",void 0);
_.N([_.JO("richGridItemsPerRow","isRichGrid"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vk.prototype,"observerRichGridItemsPerRow",null);_.N([_.JO("richGridSlimItemsPerRow"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vk.prototype,"observerRichGridSlimItemsPerRow",null);
_.N([_.JO("richGridItemsPerRow","richGridMiniMode"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vk.prototype,"updateCssVars",null);_.N([_.JO("richGridContainerWidth"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vk.prototype,"updateCssVarsForResponsiveGrid",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vk.prototype,"onDataChanged",null);
_.N([_.C({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],vk);
_.p(vk,"ytd-tabbed-page-header",function(){if(loM!==void 0)return loM;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return loM=f},{mode:1});var zTM;var Kq=function(){return _.I.apply(this,arguments)||this};
_.q(Kq,_.I);Kq.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.hO(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.y3.Object.defineProperties(Kq.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var f,S;return this.componentBehavior.computeIcon_(((S=_.H((f=this.data)==null?void 0:f.badge,_.z2j))==null?void 0:S.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var f,S;return(S=_.H((f=this.data)==null?void 0:f.badge,_.z2j))==null?void 0:S.label}}});
Kq.prototype.observerRichGridItemsPerRow=Kq.prototype.observerRichGridItemsPerRow;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Kq.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Kq.prototype,"componentBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],Kq.prototype,"ytdReduxBehavior",void 0);_.N([_.n({reflectToAttribute:!0,selector:_.xr}),_.Z("design:type",Boolean)],Kq.prototype,"richGridMiniMode",void 0);
_.N([_.n({selector:_.EA}),_.Z("design:type",Number)],Kq.prototype,"richGridItemsPerRow",void 0);_.N([_.n(),_.Z("design:type",Object)],Kq.prototype,"data",void 0);_.N([_.JO("richGridItemsPerRow"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Kq.prototype,"observerRichGridItemsPerRow",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Kq.prototype,"badgeIconName",null);
_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Kq.prototype,"badgeLabel",null);_.N([_.C({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],Kq);
_.p(Kq,"ytd-member-hub-profile-renderer",function(){if(zTM!==void 0)return zTM;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return zTM=f},{mode:1});var RTu;var dl=function(){return _.I.apply(this,arguments)||this};
_.q(dl,_.I);dl.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],dl.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],dl.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],dl.prototype,"data",void 0);_.N([_.C({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],dl);
_.p(dl,"ytd-settings-sidebar-renderer",function(){if(RTu!==void 0)return RTu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return RTu=f},{mode:1});var X3u;var ip=function(){var f=_.I.apply(this,arguments)||this;f.expandableCustomTabRenderable=function(S){return EFn(S,function(){return void f.onSearchNavigate()})};
return f};
_.q(ip,_.I);ip.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
ip.prototype.onSearchNavigate=function(){this.selected=void 0};
ip.prototype.onTabsChange=function(){var f,S=(f=this.tabs)==null?void 0:f.findIndex(function(B){var G;return B==null?void 0:(G=B.tabRenderer)==null?void 0:G.selected});
S!==void 0&&(this.selected=S)};
ip.prototype.onTabsActive=function(f){if(this.tabs!==void 0){var S,B;(f=(S=this.tabs[f.detail.selected])==null?void 0:(B=S.tabRenderer)==null?void 0:B.endpoint)&&_.ew(this.hostElement,"yt-navigate",{endpoint:f})}};
_.y3.Object.defineProperties(ip.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:nFu(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
ip.prototype.onTabsChange=ip.prototype.onTabsChange;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],ip.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.sk),_.Z("design:type",Object)],ip.prototype,"ytdGridStateAwareBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],ip.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Iu.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],ip.prototype,"ytdGuideStateAwareBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],ip.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Array)],ip.prototype,"tabs",void 0);_.N([_.n(),_.Z("design:type",Number)],ip.prototype,"selected",void 0);_.N([_.k("tabs.*"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ip.prototype,"tabGroupShape",null);_.N([_.n(),_.Z("design:type",Object)],ip.prototype,"expandableCustomTabRenderable",void 0);
_.N([_.k("tabs"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ip.prototype,"tabsEnabled",null);_.N([_.HF("tabs"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ip.prototype,"onTabsChange",null);_.N([_.C({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],ip);
_.p(ip,"ytd-topic-channel-details-renderer",function(){if(X3u!==void 0)return X3u;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return X3u=f},{mode:1});var w32;var Hk=function(){var f=_.I.apply(this,arguments)||this;f.disableGridStateAware=!1;return f};
_.q(Hk,_.I);Hk.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]]"}}}}}};
Hk.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
Hk.prototype.updateCssVars=function(){_.hO(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.Gt("rich_grid_max_item_width",500))+16)-16+"px"})};
Hk.prototype.updateCssVars=Hk.prototype.updateCssVars;Hk.prototype.activeChanged=Hk.prototype.activeChanged;_.N([_.r(_.Iu.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],Hk.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],Hk.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Hk.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Hk.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Hk.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Array)],Hk.prototype,"tabs",void 0);_.N([_.n(),_.Z("design:type",Boolean)],Hk.prototype,"active",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Hk.prototype,"disableGridStateAware",void 0);
_.N([_.n({selector:_.EA}),_.Z("design:type",Number)],Hk.prototype,"richGridItemsPerRow",void 0);_.N([_.n({selector:_.xr}),_.Z("design:type",Boolean)],Hk.prototype,"richGridMiniMode",void 0);_.N([_.vF("ytd-carousel-item-renderer"),_.Z("design:type",Object)],Hk.prototype,"carousel",void 0);_.N([_.JO("active"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Hk.prototype,"activeChanged",null);
_.N([_.JO("richGridItemsPerRow","richGridMiniMode"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Hk.prototype,"updateCssVars",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],Hk);
_.p(Hk,"ytd-carousel-header-renderer",function(){if(w32!==void 0)return w32;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return w32=f},{mode:1});var hTu;var T7n=_.f4(["https://www.google-analytics.com/analytics.js"]),q$=function(){var f=_.I.apply(this,arguments)||this;f.scriptAnalyticsAdded=!1;return f};
_.q(q$,_.I);q$.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var f,S=(f=this.data)==null?void 0:f.tagManagerId;S&&(_.Oj(S,_.nL("GL")),D3Z(S))};
q$.prototype.sendGoogleAnalyticsPageview=function(f){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var B=_.qb.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(B)};
var S=window.ga;S("set","page",window.location.pathname);S.l=+new Date;S("set","forceSSL",!0);S("create",f,"'auto'");S("send","pageview")};
q$.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var f=_.Ja("SCRIPT");f.name="ga-analytics";var S=_.Sr(T7n);_.CC(f,S);f.async=!0;_.m9(this.hostElement).appendChild(f)};
q$.prototype.dataChanged=q$.prototype.dataChanged;_.N([_.n(),_.Z("design:type",Object)],q$.prototype,"data",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],q$.prototype,"dataChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],q$);
_.p(q$,"ytd-channel-metadata-renderer",function(){if(hTu!==void 0)return hTu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return hTu=f},{mode:1});var FV2;var V$M;var $E=function(){return _.I.apply(this,arguments)||this};
_.q($E,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],$E.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],$E.prototype,"data",void 0);_.N([_.C({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],$E);
_.p($E,"ytd-sub-feed-option-renderer",function(){if(V$M!==void 0)return V$M;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return V$M=f},{mode:1});var JIn;var Qt=function(){return _.I.apply(this,arguments)||this};
_.q(Qt,_.I);Qt.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Qt.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Qt.prototype,"ytRendererStamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Qt.prototype,"data",void 0);_.N([_.C({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],Qt);
_.p(Qt,"ytd-sub-feed-selector-renderer",function(){if(JIn!==void 0)return JIn;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return JIn=f},{mode:1});var YE=function(){return _.I.apply(this,arguments)||this};
_.q(YE,_.I);
YE.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}}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],YE.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],YE.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],YE.prototype,"data",void 0);_.N([_.C({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],YE);
_.p(YE,"ytd-browse-feed-actions-renderer",function(){if(FV2!==void 0)return FV2;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return FV2=f},{mode:1});var Pwz;var vto;var rl=function(){return _.I.apply(this,arguments)||this};
_.q(rl,_.I);rl.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],rl.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],rl.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],rl.prototype,"data",void 0);_.N([_.C({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],rl);
_.p(rl,"ytd-mini-channel-renderer",function(){if(vto!==void 0)return vto;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return vto=f},{mode:1});var KVM;var jF=function(){return _.I.apply(this,arguments)||this};
_.q(jF,_.I);jF.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],jF.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],jF.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],jF.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],jF);
_.p(jF,"ytd-vertical-channel-section-renderer",function(){if(KVM!==void 0)return KVM;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return KVM=f},{mode:1});var Og=function(){return _.I.apply(this,arguments)||this};
_.q(Og,_.I);Og.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Og.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Og.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Og.prototype,"data",void 0);_.N([_.C({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],Og);
_.p(Og,"ytd-browse-secondary-contents-renderer",function(){if(Pwz!==void 0)return Pwz;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);
return Pwz=f},{mode:1});var dUe;var xE=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};f.notActive=!1;f.isConstrainedList=!1;return f};
_.q(xE,_.I);_.e=xE.prototype;
_.e.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(f){var S;return(f==null?void 0:(S=f.webComponentHint)==null?void 0:S.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}}}}};
_.e.getPath=function(f,S){var B="data.tabs.#"+S+".";f.tabs[S].tabRenderer?B+="tabRenderer.":f.tabs[S].expandableTabRenderer&&(B+="expandableTabRenderer.");return B+"content.sectionListRenderer"};
_.e.computeDisplayedContent=function(f){this.unlinkPaths("content");if(f&&f.tabs)for(var S=f.tabs.length,B=0;B<S;B++){var G=f.tabs[B].tabRenderer||f.tabs[B].expandableTabRenderer;if(G.selected&&G.content)return this.linkPaths("content",this.getPath(f,B)),G.content}return null};
_.e.computeHasSecondaryColumnData=function(f){return!!f&&!!f.secondaryContents};
_.e.onRetrieveLocation=function(f,S){S.locationRetrieved(S.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);f.stopPropagation()};
_.e.onYtServiceRequestSent=function(f,S){_.K("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(S)};
_.e.onYtServiceRequestCompleted=function(f,S){_.K("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(S)};
_.e.onReplaceFeedContentAction=function(f){if(!_.K("replace_feed_content_action_killswitch")&&!this.notActive){var S;(f=(S=_.H(f,t4B))==null?void 0:S.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(f)}};
_.e.handleServiceRequestActions=function(f){if(f=f.actions){f=_.m(f);for(var S=f.next();!S.done;S=f.next()){S=S.value;var B=void 0;((B=_.H(S,t4B))==null?0:B.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.H(S,t4B).items)}}};
xE.prototype.onYtServiceRequestCompleted=xE.prototype.onYtServiceRequestCompleted;xE.prototype.onYtServiceRequestSent=xE.prototype.onYtServiceRequestSent;xE.prototype.onRetrieveLocation=xE.prototype.onRetrieveLocation;_.N([_.r(_.sk),_.Z("design:type",Object)],xE.prototype,"ytdGridStateAwareBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],xE.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],xE.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],xE.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],xE.prototype,"data",void 0);_.N([_.n({computed:"computeDisplayedContent(data)"}),_.Z("design:type",Object)],xE.prototype,"content",void 0);
_.N([_.n({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],xE.prototype,"hasSecondaryColumnData",void 0);_.N([_.n({value:function(){return window.outerHeight>1024?3:2}}),
_.Z("design:type",Number)],xE.prototype,"initialCount",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",String)],xE.prototype,"pageSubtype",void 0);_.N([_.vF("ytd-section-list-renderer"),_.Z("design:type",Object)],xE.prototype,"listRenderer",void 0);_.N([_.n(),_.Z("design:type",Object)],xE.prototype,"notActive",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],xE.prototype,"isConstrainedList",void 0);
_.N([_.n(),_.Z("design:type",String)],xE.prototype,"responsiveSizing",void 0);_.N([_.Vg("yt-retrieve-location"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],xE.prototype,"onRetrieveLocation",null);_.N([_.Vg("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.N1]),_.Z("design:returntype")],xE.prototype,"onYtServiceRequestSent",null);
_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.cw]),_.Z("design:returntype")],xE.prototype,"onYtServiceRequestCompleted",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],xE);
_.p(xE,"ytd-two-column-browse-results-renderer",function(){if(dUe!==void 0)return dUe;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return dUe=f},{mode:2});var i6u;var H6Y;var Eg=function(){var f=_.I.apply(this,arguments)||this;f.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"]);f.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"]);f.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return f};
_.q(Eg,_.I);_.e=Eg.prototype;_.e.attached=function(){this.requestElementsPerRow()};
_.e.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_]]"}}}}}};
_.e.onUpdateElementsPerRowAction=function(f){f&&this.elementsPerRow!==f&&(this.elementsPerRow=f)};
_.e.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.e.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.e.computeAlertStyle_=function(f){return f};
_.e.observerElementsPerRow=function(){this.elementsPerRow&&_.hO(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.e.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.e.requestElementsPerRow=function(){_.ew(this.hostElement,"yt-request-elements-per-row")};
Eg.prototype.onIsVisibleChanged_=Eg.prototype.onIsVisibleChanged_;Eg.prototype.observerElementsPerRow=Eg.prototype.observerElementsPerRow;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Eg.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Eg.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],Eg.prototype,"actionHandlerBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],Eg.prototype,"data",void 0);_.N([_.n({value:6,reflectToAttribute:!0}),_.Z("design:type",Number)],Eg.prototype,"elementsPerRow",void 0);_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Eg.prototype,"wrapButtons",void 0);_.N([_.n({value:_.nL("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.Z("design:type",Boolean)],Eg.prototype,"isMusic",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.Z("design:type",String)],Eg.prototype,"alertStyle",void 0);_.N([_.n({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.Z("design:type",Function)],Eg.prototype,"dismissBoundButtonTap_",void 0);_.N([_.n({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.Z("design:type",Function)],Eg.prototype,"acceptBoundButtonTap_",void 0);_.N([_.JO("elementsPerRow"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Eg.prototype,"observerElementsPerRow",null);_.N([_.JO("data.isVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Eg.prototype,"onIsVisibleChanged_",null);_.N([_.nP({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],Eg);
_.p(Eg,"yt-alert-with-actions-renderer",function(){if(H6Y===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;i6u===void 0&&(i6u=document.createElement("template"));var G=i6u;B.call(S,G.content.cloneNode(!0),f.content.firstChild);H6Y=f}f=H6Y;return f},{mode:2});_.eq(_.oS(function(f){function S(P){var d={};return _.T(_.oY,{text:P,className:_.Pw("ytPersonalGreetingViewModelHeadline",(d.ytPersonalGreetingViewModelHeadlineSmall=function(){return X()===48},d))})}
function B(P,d){return _.T("span",{el:P,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},S(d))}
var G=_.tE("yt-personal-greeting-view-model"),g=_.tE("span"),b=_.tE("span"),z=function(){return f.data().canvasPromoData},X=function(){var P;
return(P=f.data().bannerHeight)!=null?P:56},w=_.XjK(G,{throttleMs:100}),F=_.XjK(g,{throttleMs:100}),V=_.XjK(b,{throttleMs:100}),J=function(){return F.width()-w.width()>1};
_.a8(G,function(){var P;return(P=f.data())==null?void 0:P.rendererContext},void 0,void 0,void 0,!0);
return _.T("yt-personal-greeting-view-model",{el:G,"aria-hidden":J,class:_.Pw(f.className,"ytPersonalGreetingViewModelHost"),style:_.Qj({height:(0,_.$4)(function(){return J()?0:X()})})},_.T(_.v,{cond:function(){return f.data().avatar&&!(V.width()+(f.data().avatar?48:0)-w.width()>1)},
then:function(){return _.T(_.xK,{data:function(){return f.data().avatar}},{decoratedAvatarViewModel:function(P){return _.T(_.rn,{data:P.data,
className:_.Pw("ytPersonalGreetingViewModelAvatar")})}})}}),_.T("h1",null,S(function(){var P;
return(z==null?void 0:(P=z())==null?void 0:P.headline)||(V.width()+(f.data().avatar?48:0)-w.width()>1?f.data().shorterGreeting:f.data().greeting)})),B(b,function(){return f.data().greeting}),B(g,function(){return f.data().shorterGreeting}))},"Li"),"yt-personal-greeting-view-model",{props:{data:_.W4,
className:_.W4}});var Lq=function(){var f=_.I.apply(this,arguments)||this;f.hidden=!1;f.isConstrainedList=!1;f.darkerDarkTheme=_.K("web_darker_dark_theme");f.responsiveSizing="COMPACT";f.attachedPlayers=_.K("kevlar_channel_trailer_multi_attach")?[]:void 0;f.player=null;f.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return f};
_.q(Lq,_.I);_.e=Lq.prototype;
_.e.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}}}}};
_.e.created=function(){var f=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){f.disposeMastheadAd()}]};
_.e.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new mq$(this.refresh,this.contents))};
_.e.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.e.activeChanged=function(){var f=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=f)};
_.e.tabsChanged=function(){var f=this,S,B;if(this.pageSubtype==="channels"||_.K("kevlar_tab_gestures_for_tabbed_header_data")&&((S=this.data)==null?0:(B=S.header)==null?0:B.carouselHeaderRenderer))this.tabGestures=new xu(this.contents,this.contents,this.hostElement,this.header,function(z){f.ytdReduxBehavior.dispatch(z)});
var G,g,b;S=(G=this.data)==null?void 0:(g=G.contents)==null?void 0:(b=g.twoColumnBrowseResultsRenderer)==null?void 0:b.tabs;this.tabGestures&&this.tabGestures.tabsChanged(S)};
_.e.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.e.engagementPanelsChanged=function(){var f=_.oy().resolve(_.ir);if(f){if(this.engagementPanels)for(var S=_.m(this.engagementPanels),B=S.next();!B.done;B=S.next()){var G=void 0;(B=(G=B.value.identifier)==null?void 0:G.tag)&&f.panelMap.delete(B)}this.engagementPanels=[];var g;S=_.m(((g=this.data)==null?void 0:g.panels)||[]);for(g=S.next();!g.done;g=S.next()){g=_.H(g.value,_.U4z);var b=B=void 0,z=void 0,X=void 0;if(G=((B=g)==null?void 0:B.targetId)||((b=g)==null?void 0:b.panelIdentifier)||((z=g)==
null?void 0:(X=z.identifier)==null?void 0:X.tag))b=B=void 0,(b=(B=f).registerPanelContent)==null||b.call(B,G,{engagementPanelSectionListRenderer:g}),this.engagementPanels.push(g)}}};
_.e.onStampFinished=function(){var f=this;_.ui(this,function(){if(f.tabGestures){var S=f.tabGestures;if(S.scrollPositionNeedsUpdate){var B=_.oy().resolve(_.fN(_.o8)),G;if((G=S.selectedTab)!=null&&G.title&&B&&(G=B.getCurrentPage())){if(S.scrollPositionForTabs.has(S.selectedTab.title)){var g,b;B=(b=(g=B.getCurrentPage())==null?void 0:g.clientHeight)!=null?b:0;g=S.scrollPositionForTabs.get(S.selectedTab.title);G.setScrollTop(g);B>g+100&&(S.scrollPositionNeedsUpdate=!1)}else G.setScrollTop(Math.min(S.lastVisitedTabScrollPosition!==
void 0?S.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,S.tabsStartAtInPx)),S.scrollPositionNeedsUpdate=!1;S.ytdReduxDispatch(s7e(!1))}}}})};
_.e.loadPage_=function(f){this.initCsi();f&&(this.data=f);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.e.getTitle=function(f){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",f))return this.get("microformat.microformatDataRenderer.title",f);if(this.get("header.feedTabbedHeaderRenderer.title",f))return _.ac(this.get("header.feedTabbedHeaderRenderer.title",f));if(this.get("header.interactiveTabbedHeaderRenderer.title",f))return this.get("header.interactiveTabbedHeaderRenderer.title",f);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
f))return _.ac(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",f));var S,B;return _.K("enable_page_header_page_title")&&(f==null?0:(S=f.header)==null?0:(B=S.pageHeaderRenderer)==null?0:B.pageTitle)?f.header.pageHeaderRenderer.pageTitle:""};
_.e.updateTitle=function(f){_.ew(this.hostElement,"yt-update-title",this.getTitle(f))};
_.e.initCsi=function(){_.QS(this.pageSubtype||"browse",["ol","cpt"])};
_.e.getPlayer=function(){if(_.K("kevlar_channel_trailer_multi_attach")){for(var f=_.m(this.attachedPlayers),S=f.next();!S.done;S=f.next())if(S=S.value,S.isConnected||_.CS(this.hostElement,S))return S;return null}return this.player};
_.e.getPlayerContainer=function(){return null};
_.e.onPlayerAttached=function(f,S){_.K("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(S):this.player=S};
_.e.onPlayerDetached=function(f,S){_.K("kevlar_channel_trailer_multi_attach")?(f=this.attachedPlayers.indexOf(S),f<0||this.attachedPlayers.splice(f,1)):this.player=null};
_.e.getServiceTrackingParams=function(){var f,S;return((f=this.data)==null?void 0:(S=f.responseContext)==null?void 0:S.serviceTrackingParams)||[]};
_.e.setMastheadAd=function(f){f&&f.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=f&&f.mastheadAd};
_.e.dataChanged=function(){var f=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.KFe();_.ui(this,function(){_.mU(f.hostElement,"ytd-update-grid-state-action")})};
_.e.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.e.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var f=this.data.alerts;return f&&f.find(function(S){return!!S.alertWithActionsRenderer})}};
_.e.computeGreetingData=function(){if(this.data&&this.data.alerts){var f=this.data.alerts;return f&&f.find(function(S){return!!S.personalGreetingViewModel})}};
_.e.computeHasMemberHubProfileRenderer=function(f){var S;return!!(f==null?0:(S=f.header)==null?0:S.memberHubProfileRenderer)};
_.e.handleAlertCommand=function(f){this.get("alertCommand.alert.alertWithActionsRenderer",f)&&(f=_.H(f,uPe),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",f.alert))};
_.e.handleYtPlaylistDeletionRedirect=function(f){f=this.get("playlistDeletionRedirectCommand.redirectEndpoint",f);_.ew(this.hostElement,"yt-navigate",{endpoint:f})};
_.e.computeFluidWidth=function(f,S,B){if(S==="mini_app"||B)return!0;var G,g,b;f=f==null?void 0:(G=f.contents)==null?void 0:(g=G.twoColumnBrowseResultsRenderer)==null?void 0:(b=g.tabs)==null?void 0:b.find(function(w){var F;return w==null?void 0:(F=w.tabRenderer)==null?void 0:F.selected});
if(!f)return!1;var z,X;return!!((z=f.tabRenderer)==null?0:(X=z.content)==null?0:X.richGridRenderer)&&!["channel","channels","playables"].includes(S)};
_.e.computeHeaderFluidWidth=function(f){return f==="hashtag-landing-page"};
_.e.computeHasSidebar=function(f){var S;return!!(f.sidebar||((S=f.header)==null?0:S.playlistHeaderRenderer))};
_.e.computeHasPageHeaderSidebar=function(f){var S,B;return!!((S=f.header)==null?0:(B=S.pageHeaderRenderer)==null?0:B.enableSidebarView)};
_.e.computeUseUnifiedShowPageLayout=function(f){if(!f||this.pageSubtype!=="show"||!f.sidebar||!f.sidebar.playlistSidebarRenderer)return!1;f=f.sidebar.playlistSidebarRenderer;if(!f.items)return!1;for(var S=0;S<f.items.length;S++)if(_.H(f.items[S],jk)){var B=void 0;return((B=_.H(f.items[S],jk))==null?void 0:B.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.e.computeIsConstrainedList=function(f){return _.K("web_enable_constrained_list_subscriptions_channels")&&f==="subscriptions-channels"};
_.e.computeResponsiveSizing=function(f){return f==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.y3.Object.defineProperties(Lq.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var f,S;return((f=this.data)==null?0:(S=f.header)==null?0:S.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var f,S;if(!((f=this.data)==null?0:(S=f.sidebar)==null?0:S.playlistSidebarRenderer))return!1;var B;return(B=this.data)!=null&&B.header?!1:!0}}});
_.y3.Object.defineProperties(Lq,{template:{configurable:!0,enumerable:!0,get:function(){if(Xbu===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);Xbu=f}f=Xbu;return f}}});
Lq.prototype.dataChanged=Lq.prototype.dataChanged;Lq.prototype.onPlayerDetached=Lq.prototype.onPlayerDetached;Lq.prototype.onPlayerAttached=Lq.prototype.onPlayerAttached;Lq.prototype.onStampFinished=Lq.prototype.onStampFinished;Lq.prototype.engagementPanelsChanged=Lq.prototype.engagementPanelsChanged;Lq.prototype.scrollAtTopChanged=Lq.prototype.scrollAtTopChanged;Lq.prototype.tabsChanged=Lq.prototype.tabsChanged;Lq.prototype.activeChanged=Lq.prototype.activeChanged;
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],Lq.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.a5),_.Z("design:type",Object)],Lq.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Lq.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],Lq.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.Yu.YtPageBehavior),_.Z("design:type",Object)],Lq.prototype,"ytPageBehavior",void 0);
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Lq.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Iu.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],Lq.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Lq.prototype,"ytComponentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Lq.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Lq.prototype,"hidden",void 0);
_.N([_.n(),_.Z("design:type",Object)],Lq.prototype,"mastheadAdData",void 0);_.N([_.n({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.Z("design:type",Object)],Lq.prototype,"alertBannerData",void 0);_.N([_.n({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.Z("design:type",Object)],Lq.prototype,"greetingData",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",String)],Lq.prototype,"pageSubtype",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.Z("design:type",Boolean)],Lq.prototype,"hasMemberHubProfileRenderer",void 0);_.N([_.n({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],Lq.prototype,"hasSidebar",void 0);_.N([_.n({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],Lq.prototype,"hasPageHeaderSidebar",void 0);
_.N([_.n({reflectToAttribute:!0,value:!0}),_.Z("design:type",Boolean)],Lq.prototype,"roundedContainer",void 0);_.N([_.n({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],Lq.prototype,"useUnifiedShowPageLayout",void 0);_.N([_.n({computed:"computeIsConstrainedList(pageSubtype)"}),_.Z("design:type",Object)],Lq.prototype,"isConstrainedList",void 0);
_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Lq.prototype,"usePlaylistHeaderRenderer",null);_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Lq.prototype,"useOldPlaylistSidebarRenderer",null);_.N([_.n({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.Z("design:type",Boolean)],Lq.prototype,"fluidWidth",void 0);_.N([_.n({selector:function(f){return f.ui.scrollAtTop}}),
_.Z("design:type",Boolean)],Lq.prototype,"scrollAtTop",void 0);_.N([_.n({selector:_.XVZ}),_.Z("design:type",Boolean)],Lq.prototype,"tabGesturesIsActive",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Lq.prototype,"darkerDarkTheme",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.Z("design:type",Boolean)],Lq.prototype,"disableHeaderFluidWidth",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.Z("design:type",String)],Lq.prototype,"responsiveSizing",void 0);_.N([_.vF("ytd-two-column-browse-results-renderer"),_.Z("design:type",HTMLElement)],Lq.prototype,"contents",void 0);_.N([_.vF("#header"),_.Z("design:type",HTMLElement)],Lq.prototype,"header",void 0);_.N([_.vF("ytd-refresh"),_.Z("design:type",Object)],Lq.prototype,"refresh",void 0);
_.N([_.JO("active"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Lq.prototype,"activeChanged",null);_.N([_.JO("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Lq.prototype,"tabsChanged",null);_.N([_.JO("scrollAtTop"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Lq.prototype,"scrollAtTopChanged",null);
_.N([_.n(),_.Z("design:type",Object)],Lq.prototype,"engagementPanels",void 0);_.N([_.JO("data.panels"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Lq.prototype,"engagementPanelsChanged",null);_.N([_.Vg("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Lq.prototype,"onStampFinished",null);
_.N([_.Vg("yt-player-attached"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Element]),_.Z("design:returntype")],Lq.prototype,"onPlayerAttached",null);_.N([_.Vg("yt-player-detached"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Element]),_.Z("design:returntype")],Lq.prototype,"onPlayerDetached",null);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Lq.prototype,"dataChanged",null);
_.N([_.C({is:"ytd-browse"})],Lq);_.b_.registerService(_.cNj,Lq);
_.Eb();
}catch(e){_._DumpException(e)}
try{
_.xA("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 Bb=function(f){if(!f)return"browse";var S=f.page,B=f.url,G,g,b,z=(G=f.response)==null?void 0:(g=G.responseContext)==null?void 0:(b=g.webResponseContextExtensionData)==null?void 0:b.pageTheme;if(z)S=z.toLowerCase().replace(/_/g,"-");else if(S!=="watch"&&S!=="learning_journey_watch"){var X,w;if((S==="browse"||S==="settings")&&((X=f.response)==null?0:(w=X.sidebar)==null?0:w.settingsSidebarRenderer))S="WEB_PAGE_TYPE_SETTINGS";else{var F,V;S==="browse"&&((F=f.response)==null?0:(V=F.metadata)==null?
0:V.channelMetadataRenderer)?S="channel":B&&(S=_.JK(B)||S)}}return S},iNz=function(){var f=_.U6("yt.aba.att");
return f?f:_.c5.instance!==void 0?_.c5.instance.bVV.bind(_.c5.instance):null},HNO=function(f,S){var B;
return _.R(function(G){return(B=iNz())?G.return(B(f,S,6E4)):G.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},qZY=function(f,S,B,G,g){S=S===void 0?[]:S;
g=g?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:g}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.B2(f),dialogMessages:S.map(function(b){return _.B2(b)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.B2(B),serviceEndpoint:g}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.B2(G)}}}}}},$HY=function(f){var S=!!_.A0().queueProxy;
var B,G,g;f=f==null?void 0:(B=f.response)==null?void 0:(G=B.currentVideoEndpoint)==null?void 0:(g=G.watchEndpoint)==null?void 0:g.playlistId;return!(!S&&!f)},Qy2=function(f,S){var B=_.Pn();
if($HY(f))return B.playlistWatchPageActivation=!0;switch(Bb(S)){case "yts-products":return B.productDetailsPageActivation=!0;case "mini_app":return B.miniAppPageActivation=!0;case "playables":return B.playablesDestPageActivation=!0;default:return!1}},YZZ=function(f,S,B){for(var G=typeof f==="string"?f.split(""):f,g=f.length-1;g>=0;--g)g in G&&S.call(B,G[g],g,f)},rYe=function(f,S){S=_.JsN(f,S);
S>=0&&_.ts(f,S)},jyn=function(f){return Array.prototype.concat.apply([],arguments)},ON2=function(f){var S=0;
S=S===void 0?0:S;if(!_.PO(f))throw _.XL("uint64");var B=typeof f;switch(S){case 512:switch(B){case "string":return _.Rj1(f);case "bigint":return String((0,_.k$)(64,f));default:return _.mNW(f)}case 1024:switch(B){case "string":return _.X7x(f);case "bigint":return _.Zv((0,_.k$)(64,f));default:return _.zjN(f)}case 0:switch(B){case "string":return _.Rj1(f);case "bigint":return _.Zv((0,_.k$)(64,f));default:return _.bi1(f)}default:return _.mu(S,"Unknown format requested type for int64")}},xHB=function(f){f!=
null&&(f=f.JSC$6864_value_||"",f=typeof f==="string"?f:new Uint8Array(f));
return f},E0u=function(f){for(var S=_.qb.apply(1,arguments),B=f[0],G=0;G<f.length-1;G++)B+=String(S[G]),B+=f[G+1];
S=document.implementation.createHTMLDocument("");G=S.createElement("style");S.head.appendChild(G);S=G.sheet;S.insertRule(B,0);if(S.cssRules.length===1&&(B=S.cssRules[0],B instanceof CSSStyleRule))return new _.Za(B.cssText.replace(/</g,"\\3C "))},LEe=function(f,S){if(/-[a-z]/.test(S))return null;
if(_.CmN&&f.dataset){if(_.mAx()&&!(S in f.dataset))return null;f=f.dataset[S];return f===void 0?null:f}return f.getAttribute("data-"+_.Fv(S))},n0z=function(){var f=kt2;
_.U6("yt.ads.biscotti.getId_")||_.WL("yt.ads.biscotti.getId_",f)},sye=function(f){_.WL("yt.ads.biscotti.lastId_",f)},Izn=function(){var f={};
for(_.QP=new DHY(f.handleError===void 0?_.EU:f.handleError,f.logEvent===void 0?_.jD:f.logEvent);_.Y0.length>0;)switch(f=_.Y0.shift(),f.type){case "ERROR":_.QP.logError(f.payload);break;case "EVENT":_.QP.logEvent(f.eventType,f.payload)}},UHB=function(f,S,B){return _.x5W(function(G){return B?G.userIdentifier!==void 0&&!f.includes(G.userIdentifier)&&B.includes(G.publicName):G.userIdentifier!==void 0&&!f.includes(G.userIdentifier)},S)},Ca2=function(f){var S,B;
return _.R(function(G){if(G.nextAddress==1)return S=_.vL("YtIdbMeta hasAnyMeta other"),_.h(G,_.x5W(function(g){return g.userIdentifier!==void 0&&g.userIdentifier!==S},f),2);
B=G.yieldResult;return G.return(B.length>0)})},AYz=function(f,S){pLM||(pLM=_.xJ.addLowPriorityJob(function(){var B,G,g,b,z;
return _.R(function(X){switch(X.nextAddress){case 1:return _.h(X,_.cL(),2);case 2:B=X.yieldResult;if(!B)return X.return();G=!0;_.zT(X,3);return _.h(X,UHB(f,B,S),5);case 5:g=X.yieldResult;if(!g.length){G=!1;X.jumpTo(6);break}b=g[0];return _.h(X,_.pN(b.actualName),7);case 7:return _.h(X,_.Zz(b.actualName,B),6);case 6:_.CN(X,4);break;case 3:z=_.hm(X),_.rO(z),G=!1;case 4:_.xJ.cancelJob(pLM),pLM=0,G&&AYz(f,S),_.TT(X)}})}))},NO$=function(){var f;
return _.R(function(S){return S.nextAddress==1?_.h(S,_.cL(),2):(f=S.yieldResult)?S.return(Ca2(f)):S.return(!1)})},M7Y=function(f){var S=100;
S=S===void 0?500:S;var B,G,g,b,z,X;return _.R(function(w){return w.nextAddress==1?(B=_.nL("INNERTUBE_CONTEXT_CLIENT_NAME",0),G=[B,(0,_.fO)()-2592E6],g=[B,(0,_.fO)()],b=IDBKeyRange.bound(G,g),_.h(w,_.GFT(f),2)):w.nextAddress!=3?(z=w.yieldResult,X=[],_.h(w,_.MH(z,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(F){X.length=0;return _.oJ(F.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:b,direction:"prev"},function(V){if(V.getValue()&&X.length<S)return X.push(V.getValue()),
V.delete().then(function(){return V.continue()})})}),3)):w.return(X)})},ZN2=function(){var f;
return _.R(function(S){if(S.nextAddress==1)return _.h(S,_.cL(),2);f=S.yieldResult;if(!f||!_.KN()&&!_.K("nwl_init_require_datasync_id_killswitch")||!_.HnW())return S.jumpTo(0);_.$oM=!0;_.qtj.isNwlInitialized=_.$oM;return _.h(S,_.gHi().awaitInitialization(),0)})},GA=function(f,S){_.ptQ[f]=!0;
var B=_.SD();B&&B.publish.apply(B,arguments);_.ptQ[f]=!1},ulo=function(){if(_.vrx()&&!t7u){var f=function(B){B=B.data;
if(B.op==="serializedGelBatch"){var G=_.AO1.get(B.key);G&&(_.MdN(B.serializedBatch,G.client,G.resolve,G.networklessOptions,G.isIsolated,G.useVSSEndpoint,G.dangerousLogToVisitorSession,G.requestsOutstanding),_.AO1.delete(B.key))}},S=_.PCQ();
S&&(S.addEventListener("message",f),S.onerror=function(){_.AO1.clear()});
t7u=!0}},gy=function(){this.relativeTimeStart_=_.zd()},azo=function(f,S){f!=null&&this.append.apply(this,arguments)},yYZ=function(){return _.sf("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},WE2=function(f,S,B){B=B===void 0?!1:B;
var G,g,b,z,X;return _.R(function(w){switch(w.nextAddress){case 1:_.JY("SOCS",f,34128E3,"youtube.com",!0);if(_.P_)return g=fetch(S,{method:"POST",mode:_.N5(S),credentials:_.A2(S),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),b=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.N5("/upgrade_visitor_cookie?eom=1"),credentials:_.A2("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),_.h(w,Promise.all([g,b]).then(function(F){return F[1]}),5);
fetch(S,{method:"POST",mode:_.N5(S),credentials:_.A2(S),cache:"no-store",headers:{"Content-Type":"text/plain"}});return _.h(w,fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.N5("/upgrade_visitor_cookie?eom=1"),credentials:_.A2("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:G=w.yieldResult;w.jumpTo(3);break;case 5:G=z=w.yieldResult;case 3:if(!G.ok)throw Error("nf");return _.h(w,G.text(),7);case 7:X=w.yieldResult,
!X.includes('"state_switch":true')&&!B||X.includes("skip_reload_for_test")||window.location.reload(),_.TT(w)}})},cY2=function(f){return _.R(function(S){return S.nextAddress==1?_.h(S,WE2(f.socsCookie,f.savePreferenceUrl,!0),2):S.return()})},lzn=function(f){return _.R(function(S){return S.nextAddress==1?_.h(S,WE2(f.socsCookie,f.savePreferenceUrl),2):S.return()})},oJ2=function(f){f=f.xhr.responseText;
if(!_.Gj(f,")]}'"))throw new eY;f=JSON.parse(f.substr(4));if((f.type||1)>1)throw new eY;f=f.id;sye(f);bL=_.ue(f);fX$(18E5,2);return f},BZu=function(f,S){S=new S4o(S);
sye("");bL=_.EZ$(S);f>0&&fX$(12E4,f-1);throw S;},fX$=function(f,S){_.mE(function(){_.g0u().then(oJ2,function(B){return BZu(S,B)}).thenCatch(_.d8)},f)},kt2=function(){var f=_.mHZ();
if(f!==void 0)return _.xe(f);bL||(bL=_.g0u().then(oJ2).thenCatch(function(S){return BZu(2,S)}));
return bL},GV2=function(){var f=document;
return _.DN(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(S){return"on"+S.toLowerCase()in f})},gJZ=function(f){f.addEventListener("click",function(S){var B=S.target;
B&&B.getAttribute("href")&&(B=B.getAttribute("href"),_.LC(window,B,"_blank"),S.preventDefault(),S.stopImmediatePropagation())})},e0o=function(f){var S,B,G,g=(G=(B=((S=f.mainDownloadsListEntity)!=null?S:{})[_.WpK])==null?void 0:B.refresh)!=null?G:"",b;
f=(b=f.refresh)==null?void 0:b[g];g=f!=null?f:{};return(g==null?0:g.refreshTime)?Number(g==null?void 0:g.refreshTime):0},bOo=function(f,S){var B=_.QI(f);
return S.every(function(G){var g;G=G==null?void 0:(g=G.playbackDataEntity)==null?void 0:g.key;if(!G)return!1;g=_.XV(_.mW(G).entityId,"mainVideoEntity");return!!B[g]})},m7o=function(f){f=_.H2(f.entities);
return _.kwV(f).length},z02=function(f,S){if(S){var B;
f=(B=_.w9(f.entities,"downloadQualityPickerEntity",S))!=null?B:void 0}else f=void 0;return f},wUB=function(){R02||(_.tR=_.ZWx,R02=new XUu);
return R02},h0O=function(f){var S=document.getElementsByTagName("ytd-enforcement-message-view-model");
S.length===0||getComputedStyle(S[0]).display==="none"?f(0,"p.h_"):f(1,"p.h_")},TZM=function(){me=0;
var f=[_.$G(!0)];zA&&_.mU(zA,"yt-window-resized",f)},FNz=function(){me||(me=_.xJ.addLowPriorityJob(TZM,200))},Jy2=function(){Rn=0;
VC$=_.p9m(document);var f=[VC$];zA&&_.mU(zA,"yt-window-scrolled",f)},PPZ=function(){Rn||(Rn=_.xJ.addLowPriorityJob(Jy2,200))},KNY=function(f){f=f===void 0?null:f;
vJo.push(_.cU(window,"resize",FNz));vJo.push(_.cU(window,"scroll",PPZ));f&&(zA=f)},iOZ=function(){var f={isWide:_.VP.get("wide","0")==="1"},S=_.K2();
if(S=S.getFlag(165)||S.getFlag(174))f.theme=_.xG(!0);if(_.ekM()){var B=_.Ot()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";f.systemTheme=B}!S&&_.K("parent_tools_enable_app_settings")&&_.Mp(window.location.href).theme!==void 0&&(f.theme=_.xG());if((S=XQ)?!_.$v.equals(S,f):f)S={currentValue:f},d7z&&(S.timeSinceLastSnapshotSecs=Math.round(((0,_.fO)()-d7z)/1E3)),XQ&&(S.previousValue=XQ),_.jD("appSettingsCaptured",S),XQ=f,d7z=(0,_.fO)()},HOe=function(f){_.R(function(S){if(S.nextAddress==1)return _.h(S,
f.delete("yt-appshell-assets"),2);
_.TT(S)})},q4e=function(f){return _.AY((0,_.zRX)(),f)},QJu=function(){var f;
_.R(function(S){return S.nextAddress==1?_.h(S,wy.getInstance(),2):(f=S.yieldResult)?_.h(S,$72(f),0):S.jumpTo(0)})},ryo=function(){var f;
_.R(function(S){return S.nextAddress==1?_.h(S,hn.getInstance(),2):(f=S.yieldResult)?_.h(S,Y4o(f),0):S.jumpTo(0)})},jJO=function(f){HOe(f);
QJu();ryo()},OOY=function(f){var S,B;
return _.R(function(G){if(G.nextAddress==1)return _.h(G,_.rWx(f),2);if(S=G.yieldResult){var g;a:{if(S.headers&&(g=S.headers.get("date"))&&(g=Date.parse(g),!isNaN(g))){g=Math.round((0,_.fO)()-g);break a}g=-1}B=g;if(B>-1)return G.return(B)}return G.return(-1)})},x7Y=function(){var f=_.S1.caches,S=_.s6("IS_SHELL_LOAD"),B,G;
_.R(function(g){if(g.nextAddress==1)return B=-1,S?_.h(g,OOY(f),3):(G=_.Qp(),B=Math.round((0,_.fO)()-G),g.jumpTo(2));g.nextAddress!=2&&(B=g.yieldResult);B>=0&&B<2147483648&&_.EL({appInstallDataAgeMs:B});_.TT(g)})},EJB=function(f){var S=_.NR(_.S1.location.href),B={};
"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(G){var g=S.JSC$8076_queryData_.getValues(G);if(g==null?0:g.length)B[G]=g});
return _.Bd(f,new Map(Object.entries(B)))},LNo=function(f){f=f.match(/(.*)::.*::.*/);
if(f!==null)return f[1]},kVu=function(f){if(_.tyQ()){var S=Object.keys(window.localStorage);
S=_.m(S);for(var B=S.next();!B.done;B=S.next()){B=B.value;var G=LNo(B);G===void 0||f.includes(G)||self.localStorage.removeItem(B)}}},nJX=function(){if(!_.tyQ())return!1;
var f=_.vL(),S=Object.keys(window.localStorage);S=_.m(S);for(var B=S.next();!B.done;B=S.next())if(B=LNo(B.value),B!==void 0&&B!==f)return!0;return!1},sJu=function(f){return _.a7("NotificationsDisabled",f)},D72=function(){return Notification.permission!="granted"?Promise.resolve():_.wVO().then(function(f){return f?f.pushManager.getSubscription().then(function(S){if(S)return Promise.resolve();
S={userVisibleOnly:!0,applicationServerKey:_.Rg("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return f.pushManager.subscribe(S).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},IXZ=function(f){return _.wVO().then(function(S){if(!S||!S.active)return Promise.reject(new _.dO("serviceworker.postMessage",f,S));
try{return S.active.postMessage(f),Promise.resolve()}catch(B){return Promise.reject(B)}})},U7u=function(){IXZ({type:"notifications_register",
data:_.nL("ID_TOKEN")})},CPu=function(){if(!_.s6("LOGGED_IN"))return Promise.resolve(!1);
var f=_.gO("service_worker_push_force_notification_prompt_tag");return f?_.o7("PromptTags").then(function(S){if(!S)return!0;var B=[];try{B=JSON.parse(S)}catch(G){return!1}return B&&B.indexOf(f)==-1}):Promise.resolve(!1)},pUM=function(){var f=_.Gt("service_worker_push_prompt_delay_microseconds");
return f?_.o7("PromptTime").then(function(S){return Promise.resolve(Date.now()-f>(S||0))}):Promise.resolve(!0)},AyO=function(){var f=_.Gt("service_worker_push_logged_out_prompt_watches");
return f==-1?Promise.resolve(!1):_.o7("WatchCount").then(function(S){return S>=f})},NZX=function(){var f=_.gb(document,"yt-push-prompt-modal-bg");
f&&_.Pv(f)},MCn=function(){return _.Gt("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.o7("PromptCount").then(function(f){f||(f=0);
return Promise.resolve(f<_.Gt("service_worker_push_prompt_cap"))})},ZOZ=function(f){return _.s6("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.s6("LOGGED_IN")&&(f===void 0?0:f)?CPu().then(function(S){if(S)return!0;
S=[MCn(),pUM()];_.s6("LOGGED_IN")||S.push(AyO());return Promise.all(S).then(function(B){return B.every(function(G){return G})})}):Promise.resolve(!1)},tCu=function(){_.o7("PromptCount").then(function(f){return _.a7("PromptCount",f+1)}).then(function(){return _.a7("PromptTime",Date.now())}).then(function(){var f=_.gO("service_worker_push_force_notification_prompt_tag");
if(f)return _.o7("PromptTags").then(function(S){var B=[];if(S)try{B=JSON.parse(S)}catch(G){return!1}B||(B=[]);B.push(f);return _.a7("PromptTags",JSON.stringify(B))})})},aXo=function(){u3z||NZX()},yyz=function(f){f.style.zIndex=2147483648;
f.style.pointerEvents="auto";f.style.backgroundColor="rgba(0, 0, 0, 0.6)";f.style.width="100%";f.style.height="100vh";f.style.position="absolute";f.style.top="0";f.style.left="0";f.style.border="none"},WN2=function(){var f=_.gb(document,"yt-push-prompt-modal-bg");
u3z=_.K("service_worker_push_prompt_modal_ignore_click");f?yyz(f):(f=_.js("div",{id:"yt-push-prompt-modal-bg"}),yyz(f),document.body.appendChild(f),_.DoQ(document,"click",aXo))},cyO=function(){var f=arguments;
_.K("service_worker_push_prompt_modal_enable")&&WN2();return Notification.requestPermission().then(function(S){NZX();var B=document.getElementById("ticker");B&&(B.className=B.classList.remove("show"));if(S=="granted")return D72().then(function(){sJu(!1);U7u();return Promise.resolve(!0)});
S=="denied"&&U7u();return Promise.resolve(!1)}).catch(function(){NZX();
return Promise.reject.apply(Promise,_.$d(f))})},lXe=function(f){f=f===void 0?!1:f;
var S=_.XlV().client;if(S&&S.browserVersion){var B=S.browserVersion,G=S.browserName=="CHROME"&&_.FG(B,"50.0.0")<0;S=S.browserName=="OPERA"&&_.FG(B,"42.0.0")<0;if(G||S)return Promise.resolve()}return _.FrB().then(function(g){if(!g)return Promise.resolve();g=D72().then(function(){return IXZ({type:"notifications_check_registration",data:_.nL("ID_TOKEN")})});
return Notification.permission!="default"?g.catch(function(){}):g.then(function(){return ZOZ(f)}).then(function(b){if(b)return tCu(),cyO().then(function(){})}).catch(function(){})})},f0B=function(f){return _.hKe(f)?lXe():Promise.resolve()},oHO=function(f){var S=f.installing||f.waiting;
return f.active||!S?Promise.resolve(f):new Promise(function(B){var G=function(g){g=g.target;if(g.state==="activated"||g.state==="redundant")S.removeEventListener("statechange",G),B(f)};
S.addEventListener("statechange",G)})},SUo=function(){var f=new _.YT1("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.J9(f,{mainAppWeb:_.ut()});var S=_.QCN;_.K("service_worker_forward_exp_params")&&(S=EJB(S));try{var B=_.h9Q(S).catch(function(){_.PY(f,"FAILURE");return new Promise(function(){})});
_.K("service_worker_push_enabled")&&B.then(function(G){_.PY(f,"SUCCESS");return G}).then(oHO).then(f0B)}catch(G){if(_.PY(f,"FAILURE"),G.name!=="SecurityError")throw G;
}},BCZ=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&SUo()},GMY=function(f,S){var B={};
S&&(B.serializedYpcFamilyCreateLoggingParams=S);_.jD(f,B);_.OU()},gHY=function(f,S){var B={};
B.serializedYpcRefundFlowLoggingParams=S;f&&(B.eventType=f);_.jD("ypcRefundFlowEvent",B);_.OU()},e_u=function(f){f&&_.F4j("transactionFlowSucceeded",f)},bg2=function(f){f&&_.LG("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",f,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},m6u=function(f){var S,B,G,g,b,z,X;
_.R(function(w){if(w.nextAddress==1)return _.h(w,_.c41(),2);if(w.nextAddress!=3){if(!w.yieldResult)return w.return(!1);S=[];return _.h(w,_.wm.keys(),3)}B=w.yieldResult;G=_.m(B);for(g=G.next();!g.done;g=G.next())b=g.value,z=_.y4Q(b),X=z.datasyncId,!X||f.includes(X)||S.push(_.wm.delete(b));return w.return(Promise.all(S).then(function(F){return F.some(function(V){return V})}))})},z_Y=function(){var f,S,B,G,g,b,z;
return _.R(function(X){if(X.nextAddress==1)return _.h(X,_.c41(),2);if(X.nextAddress!=3){if(!X.yieldResult)return X.return(!1);f=_.vL("cache contains other");return _.h(X,_.wm.keys(),3)}S=X.yieldResult;B=_.m(S);for(G=B.next();!G.done;G=B.next())if(g=G.value,b=_.y4Q(g),(z=b.datasyncId)&&z!==f)return X.return(!0);return X.return(!1)})},R_B=function(){var f=_.oy().resolve(_.fN(_.KBj));
return f?f.getCurrentTime():0},XD2=function(){var f,S,B,G,g,b,z,X,w,F,V,J,P,d;
return _.R(function(Q){switch(Q.nextAddress){case 1:f={},S=_.uIG(),B=_.m(Object.entries(S)),G=B.next();case 4:if(G.done){Q.jumpTo(3);break}g=G.value;b=_.m(g);z=b.next().value;X=b.next().value;w=z;F=X;if(!F){Q.jumpTo(5);break}return _.h(Q,F(),8);case 8:f[w]=Q.yieldResult;case 5:G=B.next();Q.jumpTo(4);break;case 2:V=_.m(void 0),J=V.next();case 9:if(J.done){Q.jumpTo(3);break}P=J.value;d=S[P];if(!d){Q.jumpTo(10);break}return _.h(Q,d(),13);case 13:f[P]=Q.yieldResult;case 10:J=V.next();Q.jumpTo(9);break;
case 3:return Q.return(f)}})},wD2=function(){var f;
_.R(function(S){if(S.nextAddress==1)return _.h(S,XD2(),2);f=S.yieldResult;return _.h(S,navigator.clipboard.writeText(JSON.stringify(f,null,2)),0)})},h_z=function(f,S){return _.w9(f.entities,"superThanksSelectedTierEntity",S)},TCe=function(f){var S;
return(S=f.sharedUi)==null?void 0:S.currentPageType},Fmu=function(f,S){return{popup:{searchSuggestionReportDialog:{searchQuery:f,
title:_.Jf("SBOX_INAPPROPRIATE_TITLE"),suggestions:S,categoryLabel:_.Jf("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.Jf("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.Jf("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.Jf("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.Jf("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.Jf("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.Jf("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.Jf("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.Jf("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.Jf("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},VDB=function(f){var S,B,G,g,b,z,X,w,F,V,J,P,d,Q,x,E,U,A,t;
return _.R(function(M){switch(M.nextAddress){case 1:return _.h(M,_.FV(),2);case 2:return(S=M.yieldResult)?_.h(M,_.Y9x(S),3):M.return();case 3:B=M.yieldResult;if(!B)return M.return();g=((G=B.offlineVideos)==null?void 0:G.length)||0;z=((b=B.offlinePlaylists)==null?void 0:b.length)||0;if(g===0&&z===0)return M.return();X=0;if(B.offlineVideos)for(w=_.m(B.offlineVideos),F=w.next();!F.done;F=w.next())V=F.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===V.videoState&&(X+=1);f.offline_videos_count=g.toString();_.K("kevlar_log_offline_current_network_type_ks")||
(f.offline_current_network_type=(J=_.gcM())!=null?J:"CONN_INVALID");_.K("kevlar_log_updated_time_for_smart_downloads")&&(P=_.W2().getState().entities,d=_.OA(P),Q=e0o(P),f.offline_smart_downloads_last_sync_time_ms=d.toString(),f.offline_smart_downloads_next_sync_time_ms=Q.toString());f.offline_videos_playable=X.toString();f.offline_playlists_count=z.toString();if(!_.K("woffle_used_state_report")){M.jumpTo(4);break}B.offlineVideos&&(x=B.offlineVideos.reduce(function(a,l){l.downloadedBytes&&(a+=Number(l.downloadedBytes));
return a},0).toString())&&(f.offline_used_disk_space_bytes=x);
if(!((E=navigator)==null?0:(U=E.storage)==null?0:U.estimate)){M.jumpTo(4);break}return _.h(M,navigator.storage.estimate(),6);case 6:A=M.yieldResult,f.offline_free_disk_space_bytes=(((t=A)==null?void 0:t.quota)||0).toString();case 4:f.offline_client_state=JSON.stringify(B),_.TT(M)}})},JEn=function(f){f=f.match(/(.*)::.*::.*/);
if(f!==null)return f[1]},PsB=function(f){if(_.EDN()){var S=Object.keys(window.sessionStorage);
S=_.m(S);for(var B=S.next();!B.done;B=S.next()){B=B.value;var G=JEn(B);G===void 0||f.includes(G)||self.sessionStorage.removeItem(B)}}},vHn=function(){if(!_.EDN())return!1;
var f=_.vL(),S=Object.keys(window.sessionStorage);S=_.m(S);for(var B=S.next();!B.done;B=S.next())if(B=JEn(B.value),B!==void 0&&B!==f)return!0;return!1},TA=function(f,S,B){(_.K("desktop_keyboard_shortcut_usage_log")||B&&_.K("web_shorts_keyboard_shortcut_usage_log"))&&(S?_.fe.get(f):_.lM.get(f))&&(f=S?_.SY.get(f):_.on.get(f))&&_.uW(_.xc(),f)},KmZ=function(){var f,S;
return typeof CSS!=="undefined"&&((S=(f=CSS).supports)==null?void 0:S.call(f,"selector(:has(*))"))},d6e=function(f){return f.visibility!=="hidden"&&f.display!=="none"},HgO=function(f){if(KmZ()||f.tagName!=="DETAILS"?!f.matches(igY):f.querySelector("summary")!==null)return-1;
f=f.getAttribute("tabindex")||"0";return Number(f)},qUz=function(f){return f.some(function(S){return HgO(S)>0})},$6u=function(f){if(f.textContent)return!0;
if(f instanceof HTMLInputElement){if(!f.labels)return!1;f=_.m(f.labels);for(var S=f.next();!S.done;S=f.next())if(S.value.textContent)return!0}return!1},Qru=function(f){return f.sort(function(S,B){return HgO(B)-HgO(S)})},YUM=function(f){f=Array.from(f.querySelectorAll(igY)).filter(function(S){return(d6e(S.style)?d6e(window.getComputedStyle(S)):!1)&&$6u(S)});
return qUz(f)?Qru(f):f},rEu=function(f){f=YUM(f);
f.length>0&&f[0].focus()},jr$=function(f,S){S.stack&&(f.stack+="\n"+S.stack);
return f},EHu=function(f){var S=FQ(f,"Content-Type");
if(!S)return null;S=S.toLowerCase();if(S.startsWith("application/json"))return S.startsWith("application/json+protobuf")?new Og$:new _.mp;if(S.startsWith("application/x-protobuf")){f=FQ(f,"Content-Transfer-Encoding");if(!f)return new VQ;if(f.toLowerCase()=="base64")return new x6u}return null},pDM=function(f,S,B,G){var g=new LmB(function(X,w){return kMB.has(w)?X.sentinel==="gal"&&X.event!==void 0:!1},function(X){X.event?(X=nHz(X.event),X=!X||sr$(G,X)?!0:_.$W(f.lastEvent,Jn,2,Pb)?!_.$W(X,vb,1,Pb)&&
!_.$W(X,Jn,2,Pb):!_.$W(X,vb,1,Pb)&&!_.$W(X,Jn,3,Pb)):X=!0;
return X});
B=_.Bd(f.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",D6z(B)]]));if(f.nestedOrigins!==void 0)for(var b=_.m(f.nestedOrigins),z=b.next();!z.done;z=b.next())B=_.Bd(B,new Map([["origin",z.value]]));return I02(g,B,S).then(function(X){X=U6o(X.event);if(_.$W(X,vb,1,Pb)){var w,F=(w=_.UH(X,vb,1,Pb))==null?void 0:_.sH(w,2);F&&G.JSC$17199_logErrorEvent(Cso(F));w=_.UH(X,vb,1,Pb);_.sH(w,2)===4?(X=_.UH(X,vb,1,Pb),X={statusCode:11,statusMessage:_.n4(X,
3)}):(X=_.UH(X,vb,1,Pb),X={statusCode:12,statusMessage:_.n4(X,3)});return X}_.$W(X,Jn,3,Pb)?(X=_.UH(X,Jn,3,Pb),X={statusCode:1,consentLanguageKeys:_.n4(X,2)}):X={statusCode:1};return X}).catch(function(X){return X.errorCode!==void 0?{statusCode:X.errorCode,
statusMessage:X.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},ZgB=function(f){var S={};
if(f===void 0||f===null)return S;f.getToken()!==void 0&&AE2(f.getToken())&&AE2(f.getToken()).length>0&&(S.scopes=new Set(AE2(f.getToken())));f.getToken()!==void 0&&NCY(f.getToken())&&NCY(f.getToken()).length>0&&(S.capabilities=new Set(NCY(f.getToken())));_.n4(f,3)!==void 0&&(S.consistencyKey=_.n4(f,3));f.getName()!==void 0&&f.getName()!==""&&(S.linkName=f.getName());_.qa(f,MDM,4)&&(f=_.BU(f,MDM,4),f=Object.assign({},_.n4(f,1)&&{userId:_.n4(f,1)},_.n4(f,2)&&{displayName:_.n4(f,2)},_.n4(f,3)&&{email:_.n4(f,
3)},_.n4(f,5)&&{username:_.n4(f,5)},_.n4(f,4)&&{profilePicture:_.n4(f,4)}),S.profile=f);return S},tDB=function(f,S){var B=f.flowParams;
return{serviceId:B.serviceId,sessionId:B.sessionId,currentFlow:f.currentFlow,googleScopesString:S,linkingSessionSerialized:f.session.serialize(),consentLanguageKeys:B.consentLanguageKeys,callerState:f.callerState,dynamicUrlParameters:B.dynamicUrlParameters,partnerConfigMinReadTimestamp:B.partnerConfigMinReadTimestamp}},cEe=function(f){var S=f.googleScopes!==void 0?Array.from(f.googleScopes).join(","):"";
uXn(tDB(f,S));S=a0u(f);return S===null?Promise.resolve(yE$):S.start().then(function(B){var G,g=(G=B.link)==null?void 0:G.consistencyKey;return B.statusCode===1&&f.googleScopes!==void 0&&f.googleScopes.size>0&&g!==void 0?(G=f.flowParams,Wmu(G.serviceId,G.sessionId,f.googleScopes,g,G.galService,f.config,B)):B})},l0u=function(f){var S=a0u(f);
return S===null?Promise.resolve(Ke({statusCode:7,statusMessage:"Failed to create flow object"},f.callerState)):S.complete().then(function(B){var G,g=(G=B.link)==null?void 0:G.consistencyKey;return B.statusCode===1&&f.googleScopes!==void 0&&f.googleScopes.size>0&&g!==void 0?(G=f.flowParams,Wmu(G.serviceId,G.sessionId,f.googleScopes,g,G.galService,f.config,B)):Ke(B,f.callerState)},function(B){return Ke({statusCode:12,
statusMessage:"Failed to complete the flow: "+B.message},f.callerState)})},Wmu=function(f,S,B,G,g,b,z){return fcY(g,{serviceId:f,
sessionId:S,googleScopes:B,consistencyKey:G}).then(function(){return z},function(X){return g.deleteLink({serviceId:f,
sessionId:S,accountLinkingEntryPoint:b.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+X.message}},function(w){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+w.message}})})},a0u=function(f){switch(f.currentFlow){case 1:var S=f.flowParams;
f=_.BU(f.session,o2M,1);return dy.createOAuthFlow(S,f);case 2:case 3:return S=f.flowParams,f=_.BU(f.session,SlB,6),iL.createStreamlinedFlow(S,f);default:return null}},B0M=function(f,S){f===2&&(f=3);
var B=0;Hb.indexOf(f)!==-1&&(B=Hb.indexOf(f)+1);for(f=B;f<Hb.length;f++)if(S.has(Hb[f]))return Hb[f]},eY2=function(f){var S=f.serviceId;
var B=f.sessionId;var G=f.config;var g=f.galService;var b=f.capabilities;var z=f.scopes;var X=f.loginHint;var w=f.callerState;var F=f.consentLanguageKeys;var V=f.linkName;var J=f.dynamicUrlParameters;var P=f.partnerConfigMinReadTimestamp;f=G.dataUsageNoticeConfig?G.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return g.startLinkingSession({serviceId:S,sessionId:B,capabilities:b,scopes:z,loginHint:X,callerState:w,supportedFlows:G$M(G.supportedFlows),completionUrl:G.completionUrl,accountLinkingEntryPoint:G.accountLinkingEntryPoint,
consentLanguageKeys:F,dataUsageNoticeConfig:f,linkName:V,dynamicUrlParameters:J,partnerConfigMinReadTimestamp:P}).then(function(d){return new g2M(S,B,G,g,d,void 0,w,F,J,P)})},XSu=function(f,S,B){a:{var G=new b_o;
if(G.storage!==null)try{var g=G.storage.get("SAVED_SESSION");if(g===void 0){var b=null;break a}if(g.serviceId===f){b=g;break a}}catch(z){}b=null}if(b===null)return Promise.resolve({statusCode:2});mC2(f);G=zYX(b.linkingSessionSerialized);return RYu(new g2M(f,b.sessionId,S,B,G,b.googleScopesString!==""&&b.googleScopesString!==void 0?new Set(b.googleScopesString.split(",")):void 0,b.callerState,b.consentLanguageKeys,b.dynamicUrlParameters,b.partnerConfigMinReadTimestamp),b.currentFlow,b.consentLanguageKeys)},
uXn=function(f){var S=new b_o;
S.storage!==null&&S.storage.set("SAVED_SESSION",f)},mC2=function(f){var S=new b_o;
if(S.storage!==null){var B=S.storage.get("SAVED_SESSION");B!==void 0&&B.serviceId===f&&S.storage.remove("SAVED_SESSION")}},G$M=function(f){var S=new Set;
f=_.m(f);for(var B=f.next();!B.done;B=f.next())B=B.value,B!==1&&wS2.has(B)&&S.add(wS2.get(B));return S},Ke=function(f,S){S!==void 0&&(f.callerState=S);
return f},hYO=function(f){switch(f){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},Vun=function(f){return new T02(f,new FIZ(f))},v2o=function(f,S){S=S===void 0?!1:S;
var B=document.createElement("div");f&&(B.style.transform="scaleX(-1)");B.style.backgroundColor=S?"rgba(138,180,248,.24)":"#e8f0fe";B.style.height="4px";B.style.overflow="hidden";B.style.position="absolute";B.style.top="0";B.style.width="100%";B.style.zIndex="1500";B.setAttribute("aria-label","Loading");B.setAttribute("aria-live","polite");f=document.createElement("style");f.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  }";
B.appendChild(f);f=JLu();f.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";f.style.left="-145.166611%";var G=PiZ(S);G.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";f.appendChild(G);B.appendChild(f);f=JLu();f.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";f.style.left="-54.888891%";S=PiZ(S);S.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
f.appendChild(S);B.appendChild(f);return B},JLu=function(){var f=document.createElement("div");
f.style.height="100%";f.style.position="absolute";f.style.transformOrigin="top left";f.style.width="100%";return f},PiZ=function(f){var S=document.createElement("span");
S.style.borderTop=f?"4px solid #669df6":"4px solid #4285f4";S.style.display="inline-block";S.style.position="absolute";S.style.width="100%";return S},KIZ=function(f){return f==null?void 0:_.uLX(f).valueOf()},qlu=function(f){var S=document.body,B=!1,G=function(){B||(B=!0,dCo(g,b),setTimeout(function(){S.removeChild(b);
S.removeChild(g)},150))},g=i_n(f,getComputedStyle(S).direction==="rtl",G),b=H_2(G);
dCo(g,b);S.appendChild(b);S.appendChild(g);window.requestAnimationFrame(function(){b.style.opacity="1";g.style.opacity="1";g.style.transform="translate(-50%, -50%) scale(1)";g.children[0].focus()})},i_n=function(f,S,B){var G=document.createElement("div");
G.style.position="fixed";G.style.alignItems="center";G.style.backgroundColor=f?"rgb(32, 33, 36)":"white";G.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";G.style.display="flex";G.style.flexDirection="column";G.style.justifyContent="center";G.style.left="50%";G.style.top="50%";G.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";G.style.zIndex="2002";document.body.clientWidth>=660?(G.style.borderRadius="8px",G.style.minHeight="220px",
G.style.maxHeight="90%",G.style.maxWidth="90%",G.style.minWidth="540px"):(G.style.height="100%",G.style.width="100%");G.setAttribute("aria-label","Error");G.setAttribute("aria-modal","true");G.setAttribute("role","alertdialog");G.addEventListener("keydown",function(b){b.key==="Escape"&&B()});
S=$CX(f,S,B);G.appendChild(QfZ(S));G.appendChild(S);var g=document.createElement("img");g.src=f?"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";g.style.height="72px";g.style.width="72px";g.style.color="#9aa0a6";g.setAttribute("alt","");G.appendChild(g);g=document.createElement("h1");g.textContent="Something went wrong.  Try again.";
g.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";g.style.lineHeight="24px";g.style.fontSize="16px";g.style.textAlign="center";g.style.letterSpacing="0.1px";g.style.color=f?"rgb(232,234,237)":"#3c4043";G.appendChild(g);G.appendChild(QfZ(S));return G},$CX=function(f,S,B){var G=document.createElement("button");
G.style.backgroundColor="transparent";G.style.border="none";G.style.borderRadius="50%";G.style.cursor="pointer";G.style.outline="none";G.style.padding="12px";G.setAttribute("aria-label","Close dialog");G.style.position="absolute";G.style.top="0";S?G.style.right="0":G.style.left="0";G.addEventListener("focus",function(){G.style.backgroundColor=f?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
G.addEventListener("blur",function(){G.style.backgroundColor="transparent"});
G.addEventListener("mouseenter",function(){G.style.backgroundColor=f?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
G.addEventListener("mouseleave",function(){G.style.backgroundColor="transparent"});
G.addEventListener("click",B);G.addEventListener("keydown",function(g){g.key!=="Enter"&&g.key!=="Space"||B()});
S=document.createElement("img");S.src=f?"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";S.style.display="block";S.style.height="24px";S.style.width="24px";S.setAttribute("alt","");G.appendChild(S);return G},QfZ=function(f){var S=document.createElement("div");
S.setAttribute("tabindex","0");S.setAttribute("aria-hidden","true");S.addEventListener("focus",function(){return void f.focus()});
return S},H_2=function(f){var S=document.createElement("div");
S.style.backgroundColor="rgba(32,33,36,0.6)";S.style.bottom="0";S.style.left="0";S.style.position="fixed";S.style.right="0";S.style.top="0";S.style.transition=" opacity 150 ms linear";S.style.zIndex="2001";S.addEventListener("click",f);return S},dCo=function(f,S){S.style.opacity="0";
f.style.opacity="0";f.style.transform="translate(-50%, -50%) scale(0.8)"},Ylu=function(f,S){f.sandbox&&f.sandbox.add&&(f.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),f.sandbox.add("allow-downloads"));
f.src=S},qq=function(f){rLu.call(this,f)},$x=function(f,S){S=S===void 0?!1:S;
this.parsedImageUrl_=null;f instanceof jfu||(O_e==void 0&&(O_e=new xCz),f=O_e.parse(f.toString(),S));f=this.parsedImageUrl_=f;f.JSC$17411_parsedOptions_==void 0&&((S=f.getOptions())||(S=""),f.JSC$17411_parsedOptions_=(new E22).parse(S));rLu.call(this,f.JSC$17411_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;f=this.parsedImageUrl_;S=f.uri_.JSC$8076_port_;this.JSC$17413_domain_=f.uri_.JSC$8076_domain_+(S?":"+S:"");this.JSC$17413_query_=this.parsedImageUrl_.uri_.JSC$8076_queryData_.toString()},
LIo=function(f){this.mode=4;
this.data=f;this.parsedData=[];f=0;for(var S=this.data.length;f<S;f++){var B=[],G=this.data.charCodeAt(f);G>65536?(B[0]=240|(G&1835008)>>>18,B[1]=128|(G&258048)>>>12,B[2]=128|(G&4032)>>>6,B[3]=128|G&63):G>2048?(B[0]=224|(G&61440)>>>12,B[1]=128|(G&4032)>>>6,B[2]=128|G&63):G>128?(B[0]=192|(G&1984)>>>6,B[1]=128|G&63):B[0]=G;this.parsedData.push(B)}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))},k$n=function(f){this.typeNumber=0;
this.errorCorrectLevel=f===void 0?2:f;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},QQ=function(f,S){if(f.length==void 0)throw Error("tk`"+f.length+"`"+S);
for(var B=0;B<f.length&&f[B]==0;)B++;this.num=Array(f.length-B+S);for(S=0;S<f.length-B;S++)this.num[S]=f[S+B]},n2u=function(f,S){this.totalCount=f;
this.dataCount=S},sf$=function(){this.buffer=[];
this.length=0},DCu=function(){var f=!1;
if(_.w9N()){f=_.Js();var S="";_.FxN()?(S=/Windows (?:NT|Phone) ([0-9.]+)/,S=(f=S.exec(f))?f[1]:"0.0"):_.kQ()?(S=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,S=(f=S.exec(f))&&f[1].replace(/_/g,".")):_.TWQ()?(S=/Mac OS X ([0-9_.]+)/,S=(f=S.exec(f))?f[1].replace(/_/g,"."):"10"):_.wW(_.Js(),"KaiOS")?(S=/(?:KaiOS)\/(\S+)/i,S=(f=S.exec(f))&&f[1]):_.w9N()?(S=/Android\s+([^\);]+)(\)|;)/,S=(f=S.exec(f))&&f[1]):_.V11()&&(S=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,S=(f=S.exec(f))&&f[1]);f=S||""}return f},N0u=function(f,
S){this.JSC$17436__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(S)for(var B in S)this.JSC$17436__htOption[B]=S[B];this.JSC$17436__htOption.useSVG&&(IcX=UCY);this.JSC$17436__android=DCu();this.JSC$17436__el=f;this._oQRCode=null;this._oDrawing=new IcX(this.JSC$17436__el,this.JSC$17436__htOption);this.JSC$17436__htOption.text&&(f=this.JSC$17436__htOption.text,this._oQRCode=new k$n(this.JSC$17436__htOption.correctLevel),Cin(this._oQRCode,f),S=this._oQRCode,pSu(S,!1,ALo(S)),this.JSC$17436__el.title=
f,this._oDrawing.draw(this._oQRCode),this.makeImage())},Muo=function(f,S,B,G,g){f.save();
var b=new Path2D;b.roundRect(S,B,G*7,G*7,G*2);b.roundRect(S+G,B+G,G*5,G*5,G*1.3);b.roundRect(S+2*G,B+2*G,G*3,G*3,G);f.clip(b,"evenodd");f.fillStyle=g;f.fillRect(0,0,f.canvas.width,f.canvas.height);f.restore()},Yx=function(f,S){if(typeof f!=="function")throw Error("wk");
return _.S1.setTimeout(function(){f()},S)},ry=function(){},tuZ=function(f,S,B,G,g){(new ry).debug("TestLoadImageWithRetries: "+g);
if(G==0)B(!1);else{var b=g||0;G--;Z_o(f,S,function(z){z?B(!0):_.S1.setTimeout(function(){tuZ(f,S,B,G,b)},b)})}},Z_o=function(f,S,B){var G=new ry;
G.debug("TestLoadImage: loading "+f);var g=new Image;g.onload=function(){try{G.debug("TestLoadImage: loaded"),ujz(g),B(!0)}catch(b){}};
g.onerror=function(){try{G.debug("TestLoadImage: error"),ujz(g),B(!1)}catch(b){}};
g.onabort=function(){try{G.debug("TestLoadImage: abort"),ujz(g),B(!1)}catch(b){}};
g.ontimeout=function(){try{G.debug("TestLoadImage: timeout"),ujz(g),B(!1)}catch(b){}};
_.S1.setTimeout(function(){if(g.ontimeout)g.ontimeout()},S);
g.src=f},ujz=function(f){f.onload=null;
f.onerror=null;f.onabort=null;f.ontimeout=null},aco=function(){this.front_=[];
this.back_=[]},yLZ=function(f,S){_.qR.call(this);
this.delay_=new _.Qf(this.JSC$17562_onTick_,0,this);_.ha(this,this.delay_);this.JSC$17560_interval_=5E3;this.nextTickTime_=0;if(typeof f==="function")S&&(f=(0,_.$A)(f,S));else if(f&&typeof f.handleEvent==="function")f=(0,_.$A)(f.handleEvent,f);else throw Error("Da");this.JSC$17562_listener_=f},jY=function(f,S,B,G,g,b,z,X,w,F,V,J,P,d){B=B===void 0?!1:B;
G=G===void 0?function(){return""}:G;
g=g===void 0?!1:g;b=b===void 0?!1:b;z=z===void 0?!1:z;X=X===void 0?function(){return _.wh({})}:X;
w=w===void 0?!1:w;V=V===void 0?!1:V;J=J===void 0?!1:J;P=P===void 0?!1:P;d=d===void 0?!1:d;this.JSC$17563_pathPrefix_=f;this.defaultQueryParams_=S;this.pubsub_=new _.Tt;this.reconnectTimer_=new yLZ(this.safeReconnect_,this);this.JSC$17563_channel_=null;this.JSC$17563_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$17563_pendingMessages_=[];this.enableAsyncTest_=B;this.JSC$17563_getXsrfToken_=G;this.useAsyncBrowserChannelHandler_=b;this.getAuthorizationHeader_=
X;this.getAuthorizationHeaderSync_=F;this.enableCachedUpdateAuthorizationHeader_=z;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.wh();this.enableLoungeTokenRefresh_=g;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=w;this.disableMdxAuthForNonPlaybackMessages_=V;this.disableMdxAuthForAdMessages_=J;this.enableMdxAuthForConnectionOnly_=P;this.disableMdxAuthForShortsMessages_=d;this.JSC$17563_channelOpenedCounter=new WIB;this.JSC$17563_channelClosedCounter=new cL2;this.channelMessageSentCounter=
new lce;this.JSC$17563_channelMessageReceivedCounter=new fTY;this.JSC$17563_channelErrorCounter=new oc2;this.pendingMapsOnClosedCounter=new SfM;this.undeliveredMapsOnClosedCounter=new Bie},OG=function(f){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;f=f||document.location.href;var S=Number(_.u0(f)[4]||null)||"";S&&(this.port=":"+S);this.domain=_.aj(f)||"";f=_.Js();f.search("MSIE")>=0&&_.FG(f.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},xx=function(f){f=f||{};
this.name=f.name||"";this.id=f.id||f.screenId||"";this.token=f.token||f.loungeToken||"";this.uuid=f.uuid||f.dialId||"";this.idType=f.screenIdType||"normal"},GlY=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(f){var S=Math.random()*16|0;
return(f=="x"?S:S&3|8).toString(16)})},gcY=function(f){return _.Yv(f,function(S){return{key:S.id,
name:S.name}})},eSM=function(f,S){return _.DN(f,function(B){return B||S?!B!=!S?!1:B.id==S.id:!0})},Le=function(f,S){return _.DN(f,function(B){return EG(B,S)})},XZz=function(){var f=bkX(),S=m5M();
if(zS$()){var B=f,G=_.dAG(B,S);G<0&&_.Kx1(B,-(G+1),0,S)}f=RSo(f);if(f.length==0)try{_.oc1("remote_sid")}catch(g){}else try{_.JY("remote_sid",f.join(","),-1)}catch(g){}},bkX=function(){var f=_.wQ("yt-remote-connected-devices")||[];
f.sort(_.gN);return f},RSo=function(f){if(f.length==0)return[];
var S=f[0].indexOf("#"),B=S==-1?f[0]:f[0].substring(0,S);return _.Yv(f,function(G,g){return g==0?G:G.substring(B.length)})},wZo=function(f){_.Xw("yt-remote-connected-devices",f,86400)},m5M=function(){if(hSZ)return hSZ;
var f=_.wQ("yt-remote-device-id");f||(f=GlY(),_.Xw("yt-remote-device-id",f,31536E3));for(var S=bkX(),B=1,G=f;_.As(S,G);)B++,G=f+"#"+B;return hSZ=G},Ti$=function(){return _.wQ("yt-remote-session-browser-channel")},zS$=function(){return _.wQ("yt-remote-session-screen-id")},J2u=function(f){f.length>5&&(f=f.slice(f.length-5));
var S=_.Yv(FjM(),function(G){return G.loungeToken}),B=_.Yv(f,function(G){return G.loungeToken});
_.NPQ(B,function(G){return!_.As(S,G)})&&Veu();
_.Xw("yt-remote-local-screens",f,31536E3)},FjM=function(){return _.wQ("yt-remote-local-screens")||[]},Veu=function(){_.Xw("yt-remote-lounge-token-expiration",!0,86400)},kx=function(f){f||(_.hi("yt-remote-session-screen-id"),_.hi("yt-remote-session-video-id"));
XZz();f=bkX();_.uK(f,m5M());wZo(f)},vcu=function(){PTz();
return ne?!!ne.get("yt-remote-use-staging-server"):!1},PTz=function(){if(!ne){var f=_.RST();
f&&(ne=new _.ia(f))}},Hko=function(f,S,B,G,g){B=B===void 0?function(){return""}:B;
var b=function(){return new jY(sG(f,"/bc"),S,!1,B,G)};
return _.K("enable_mdx_web_channel_desktop")?new Kj2(function(){return new d5u(sG(f,"/wc"),S,B)}):new ikO(b,g)},YfX=function(){var f=qfu;
$5e();Do.push(f);Q4e()},In=function(f,S){$5e();
var B=r2z(f,String(S));Do.length==0?j4O(B):(Q4e(),_.AA(Do,function(G){G(B)}))},UG=function(f){In("CP",f)},$5e=function(){Do||(Do=_.U6("yt.mdx.remote.debug.handlers_")||[],_.WL("yt.mdx.remote.debug.handlers_",Do))},j4O=function(f){var S=(Ce+1)%50;
Ce=S;Ok2[S]=f;x5e||(x5e=S==49)},Q4e=function(){var f=Do;
if(Ok2[0]){var S=x5e?Ce:-1,B={};do B={record$jscomp$13:void 0},S=(S+1)%50,B.record$jscomp$13=Ok2[S],_.AA(f,function(G){return function(g){g(G.record$jscomp$13)}}(B));
while(S!=Ce);Ok2=Array(50);Ce=-1;x5e=!1}},r2z=function(f,S){var B=(Date.now()-EcB)/1E3;
B.toFixed&&(B=B.toFixed(3));var G=[];G.push("[",B+"s","] ");G.push("[","yt.mdx.remote","] ");G.push(f+": "+S,"\n");return G.join("")},pe=function(f){_.cT.call(this);
this.JSC$17587_logName_=f;this.screens=[]},Nq=function(f){pe.call(this,"LocalScreenService");
this.JSC$17594_http_=f;this.loungeTokenRefreshTimer_=NaN;An(this);this.info("Initializing with "+Lj2(this.screens))},Mq=function(f,S){S=S===void 0?!1:S;
pe.call(this,"ScreenService");this.JSC$17600_http_=f;this.disableAutomaticScreenCache_=S;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};kln(this)},Zo=function(f,S,B){_.cT.call(this);
this.JSC$17604_logName_=B;this.JSC$17604_screenService_=f;this.receiver_=S;this.screen_=null},y2n=function(f,S,B){B.disableCastApi?tn("Cannot initialize because disabled by Mdx config."):ncM()?s4Y(f,B)&&(D52(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?ITY(S):(window.__onGCastApiAvailable=function(G,g){G?ITY(S):(uL("Failed to load cast API: "+g),U5O(!1),D52(!1),_.hi("yt-remote-cast-available"),_.hi("yt-remote-cast-receiver"),CTu(),S(!1))},B.loadCastApiSetupScript?_.I4("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?pZu()>=60&&A2e():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?Niu():pZu()>=89?Me2():(Zkn(),teO(uvB.map(aT$))))):tn("Cannot initialize because not running Chrome")},CTu=function(){tn("dispose");
var f=an();f&&f.dispose();_.WL("yt.mdx.remote.cloudview.instance_",null);WjO(!1);_.AKW(c22);c22.length=0},lTM=function(){return!!_.wQ("yt-remote-cast-installed")},fu$=function(){var f=_.wQ("yt-remote-cast-receiver");
return f?f.friendlyName:null},oTM=function(){tn("clearCurrentReceiver");
_.hi("yt-remote-cast-receiver")},SLM=function(){return lTM()?an()?an().getCastSession():(uL("getCastSelector: Cast is not initialized."),null):(uL("getCastSelector: Cast API is not installed!"),null)},GZz=function(f,S){Bhu()?an().setConnectedScreenStatus(f,S):uL("setConnectedScreenStatus called before ready.")},ncM=function(){var f=_.Js().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.v_||f},s4Y=function(f,S){var B=!1;
an()||(f=new yQ(f,S),f.subscribe("yt-remote-cast2-availability-change",function(G){_.Xw("yt-remote-cast-available",G);GA("yt-remote-cast2-availability-change",G)}),f.subscribe("yt-remote-cast2-receiver-selected",function(G){tn("onReceiverSelected: "+G.friendlyName);
_.Xw("yt-remote-cast-receiver",G);GA("yt-remote-cast2-receiver-selected",G)}),f.subscribe("yt-remote-cast2-receiver-resumed",function(G){tn("onReceiverResumed: "+G.friendlyName);
_.Xw("yt-remote-cast-receiver",G);GA("yt-remote-cast2-receiver-resumed",G)}),f.subscribe("yt-remote-cast2-session-change",function(G){tn("onSessionChange: "+gTo(G));
G||_.hi("yt-remote-cast-receiver");GA("yt-remote-cast2-session-change",G)}),_.WL("yt.mdx.remote.cloudview.instance_",f),B=!0);
tn("cloudview.createSingleton_: "+B);return B},an=function(){return _.U6("yt.mdx.remote.cloudview.instance_")},ITY=function(f){U5O(!0);
D52(!1);an().init(!1,function(S){S?(WjO(!0),_.N3T("yt-remote-cast2-api-ready")):(uL("Failed to initialize cast API."),U5O(!1),_.hi("yt-remote-cast-available"),_.hi("yt-remote-cast-receiver"),CTu());f(S)})},tn=function(f){In("cloudview",f)},uL=function(f){In("cloudview",f)},U5O=function(f){tn("setCastInstalled_ "+f);
_.Xw("yt-remote-cast-installed",f)},Bhu=function(){return!!_.U6("yt.mdx.remote.cloudview.apiReady_")},WjO=function(f){tn("setApiReady_ "+f);
_.WL("yt.mdx.remote.cloudview.apiReady_",f)},D52=function(f){_.WL("yt.mdx.remote.cloudview.initializing_",f)},Wb=function(f){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(f)},eLu=function(){var f,S;
return _.R(function(B){if(B.nextAddress==1)return(_.QeA()||_.K("use_new_nwl"))&&_.inV().isNetworkAvailable()?_.h(B,_.cL(),2):B.return();if(B.nextAddress!=3)return(f=B.yieldResult)?_.h(B,M7Y(f),3):B.return();S=B.yieldResult;if(!S.length)return B.return();S.forEach(function(G){var g={timestamp:G.timestamp};G=G.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:G.appShellAssetLoadReport,options:g}:G.clientError?{payloadName:"clientError",payload:G.clientError,options:g}:void 0;G&&
_.jD(G.payloadName,G.payload,G.options)});
S.length===100&&_.xJ.addLowPriorityJob(eLu);_.TT(B)})},b2X=function(f){if(f.playerResponse){if(f=f.playerResponse,f.messages&&f.messages.length>0&&(f=f.messages.find(function(S){return!(!S||!S.mealbarPromoRenderer)}))&&f.mealbarPromoRenderer)return f.mealbarPromoRenderer}else if(f.response&&(f=f.response)&&f.overlay&&f.overlay.mealbarPromoRenderer)return f.overlay.mealbarPromoRenderer},mEu=function(f){if(f.response){var S=f.response;
if(S&&S.overlay&&S.overlay.tooltipRenderer)return S.overlay.tooltipRenderer}if(f.playerResponse&&(f=f.playerResponse,f.messages&&f.messages.length>0&&(f=f.messages.find(function(B){return!(!B||!B.tooltipRenderer)}))&&f.tooltipRenderer))return f.tooltipRenderer},RLY=function(f){if(!zLO&&(f=f||_.nL("ZWIEBACK_PING_URLS"))&&f.length){zLO=!0;
for(var S=0;S<f.length;S++)_.pO(f[S])}},wKM=function(f){if(_.$v.get(_.nL("PLAYER_VARS",{}),"privembed",!1)!="1"){f&&n0z();
try{XK$().then(function(){},function(){}),_.mE(wKM,18E5)}catch(S){_.Dt(S)}}},hLO=function(){var f=_.K2(),S=f.getFlag(119),B=window.devicePixelRatio>1;
document.body&&_.Z2(document.body,"exp-invert-logo")&&(B&&!_.Z2(document.body,"inverted-hdpi")?_.oa(document.body,"inverted-hdpi"):!B&&_.Z2(document.body,"inverted-hdpi")&&_.lk(document.body,"inverted-hdpi"));S!=B&&(_.dh(0,119,B),f.save())},ThX=function(f){return f.filter(function(S){return"ypcGetCartEndpoint"in S||"ypcFixInstrumentEndpoint"in S})},FUM=function(f){return f.filter(function(S){return!_.H(S,_.VEX)})},Jfn=function(f){f=_.m(f);
for(var S=f.next(),B={};!S.done;B={setter$jscomp$6:void 0},S=f.next()){var G=S.value;S=G.params;G=G.service;S&&G&&(B.setter$jscomp$6=VwB[G],B.setter$jscomp$6&&S.forEach(function(g){return function(b){var z=b.key;b=b.value;z&&b&&(0,g.setter$jscomp$6)(z,b)}}(B)))}},vTO=function(f,S){var B,G,g,b,z,X,w;
_.R(function(F){switch(F.nextAddress){case 1:B=_.kG.getInstance();G=_.JZ.instance;g=_.Zd.instance;if(!g)return PWZ(f,G,S),F.return();_.zT(F,2);f.onLoadingCommand&&G.resolveCommand(f.onLoadingCommand);return _.h(F,B.getCurrentPositionFromGeolocation(),4);case 4:b=F.yieldResult;if(!f.resolveLocationCommand){F.jumpTo(5);break}z=B.createLocationInfo(b);return _.h(F,_.uF(g,f.resolveLocationCommand,{locationInfo:z}),6);case 6:X=F.yieldResult;if(!X||"error"in X&&X.error||X.errorMetadata)return PWZ(f,G,S),
F.return();var V;if(X==null?0:(V=X.onResponseReceivedActions)==null?0:V.length){V=_.m(X.onResponseReceivedActions);for(var J=V.next();!J.done;J=V.next())G.resolveCommand(J.value)}(_.H(f.onSuccessCommand,_.t2)||_.H(f.onSuccessCommand,_.d3))&&_.ew(S.hostElement,"yt-navigate",{endpoint:f.onSuccessCommand,reload:!0});case 5:_.CN(F,0);break;case 2:w=_.hm(F);if(w instanceof GeolocationPositionError&&w.code===GeolocationPositionError.PERMISSION_DENIED)return f.onDeniedCommand&&G.resolveCommand(f.onDeniedCommand),
F.return();PWZ(f,G,S);_.TT(F)}})},PWZ=function(f,S,B){f.onFailureCommand&&(S.resolveCommand(f.onFailureCommand),_.bW(B.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},dE$=function(f,S){var B=_.H(f,_.jmL);
if(B&&S){f=B.videoIds||[B.videoId];var G;S=(G=_.ew(S,"yt-lockup-requested",{videoIds:f}).detail)==null?void 0:G.returnValue;var g;B.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?g=S?S:f.map(function(b){return{videoId:b,navigationEndpoint:B.videoCommand}}):S&&(g=S);
g&&(G=g.map(function(b){var z=Object,X=z.assign;var w=b.navigationEndpoint;if(!_.H(w,_.QW)){var F=_.H(w,_.t2);if(F){if(delete F.index,delete F.playlistId,F=_.H(w==null?void 0:w.commandMetadata,_.oD),F==null?0:F.url){var V=F.url;V=_.cZ(V,"list");V=_.cZ(V,"index");F.url=V}}else w=void 0}return X.call(z,{},b,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:w})}),KUo(G,B))}},i2u=function(f){var S=_.A0();
if(f=_.H(f,_.O4g))f.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&S.clearQueue(),f.closeMiniplayer&&_.oy().resolve(_.N_).close(!0)},qLu=function(f){H2e(_.A0(),f)},$EY=function(f){var S;
(f=(S=_.H(f,_.YHN))==null?void 0:S.setVideoIds)&&f.forEach(function(B){_.j_m(_.A0(),B)})},YLM=function(f){QDu(_.A0(),f)},rfz=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(f){return!1}},jD$=function(){var f,S;
return(S=(f=window).matchMedia)==null?void 0:S.call(f,"(prefers-reduced-motion: reduce)").matches},O2Y=function(f){var S=_.oy().resolve(_.fN(_.zI));
if(S){var B={beforeTransition:function(){f.style.viewTransitionName="miniplayer-page-transition"},
afterTransition:function(){f.style.viewTransitionName=""}};
cb(S,"slide",B);cb(S,"zoom",B)}},xEu=function(f,S,B){return{horizontalAlignment:f.x+B.width/2<S.width/2?"west":"east",
verticalAlignment:f.y+B.height/2<S.height/2?"north":"south"}},kZM=function(f,S,B,G,g){g=g===void 0?new _.ru(0,0):g;
return ETM(LUe(f,S,B,G),g)},LUe=function(f,S,B,G){return new _.ru(f==="west"?16:B.width-G.width-16,S==="north"?16:B.height-G.height-16)},nTu=function(f,S){var B=0;
f&&(B+=76);S&&(B+=285);return B},sDX=function(f){var S=["h",
"m","s"],B=_.aT(S);B.reverse();var G={};f=(f.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(z){var X=(z.match(/[hms]/)||[""])[0];return X?(G[X]=parseInt(z.match(/\d+/)[0],10),!1):!0});
for(f.reverse();f.length&&B.length;){var g=B.shift();g in G||(G[g]=parseInt(f.shift(),10))}if(f.length||G.s>59||G.m>59||G.h>9)return null;var b="";S.forEach(function(z){G[z]&&(b+=""+G[z]+z)});
return b||null},DEz=function(f){f=f.data;
return _.T("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.T("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.T(_.f9,{data:{thumbnails:[{url:f.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.T("div",{class:"profile-badge-view-model-wiz__content"},_.T("div",{class:"profile-badge-view-model-wiz__badge-description"},f.badgeDesc),f.badgeSubtitle?_.T("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},f.badgeSubtitle):null))},Iuo=function(f){f=
f.data;
var S=_.tE("yt-comment-interaction-view-model");_.gFN(S,f.rendererContext);return _.T("yt-comment-interaction-view-model",{el:S,class:"yt-comment-interaction-view-model-wiz"},_.T("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":f.onTapA11yLabel,"on:keydown":_.lQG(),tabindex:0},_.T("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.T("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},f.headerPrefix,' "',f.videoTitle),_.T("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.T("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.T("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},f.commentContent),_.T("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.T(_.f9,{data:{thumbnails:[{url:f.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},CWX=function(f){f=f.data;
return _.T("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},UEu(f.avatar),_.T("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},f.channelName))},Afu=function(f){f=f.data;
var S;return _.T("div",{class:"yt-profile-info-view-model-wiz__activity"},_.T("div",{class:"yt-profile-info-view-model-wiz__header"},_.T("div",{class:"yt-profile-info-view-model-wiz__section-title"},f.commentsInteractionTitle)),(S=f.comments)==null?void 0:S.map(function(B){return _.T("div",{class:"yt-profile-info-view-model-wiz__activity"},pKe(B))}))},NhZ=function(f){f=f.data;
var S=_.AZ({elementsCommand:f.subscriptionsAccessButtonCommand}),B=_.tE("a");_.nFx(B,_.CH(f.subscriptionsAccessButtonCommand));var G;return _.T("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.T("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.T("a",{el:B,"on:click":_.iF(function(g){if(S==null?0:S.onclick)S.onclick(g);return!1}),
class:"yt-profile-info-view-model-wiz__another-header"},_.T("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},f.sharedSubscriptionsTitle),_.T("div",null,pKe(f.subscriptionsAccessButton)))),_.T("div",{class:"yt-profile-info-view-model-wiz__subs"},(G=f.sharedSubscriptions)==null?void 0:G.slice(0,5).map(function(g){return _.T("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",pKe(g))})))},Mwu=function(f){f=f.data;
var S;return _.T("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.T("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.T("h2",{class:"yt-profile-info-view-model-wiz__section-title"},f.sharedSubscriptionsTitle)),_.T("div",{class:"yt-profile-info-view-model-wiz__subs"},(S=f.sharedSubscriptions)==null?void 0:S.slice(0,5).map(function(B){return _.T("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",pKe(B))})))},Z2u=function(f){f=f.data;
return _.T("div",{class:"yt-profile-info-view-model-wiz__activity"},[f.profileBadgeInfoYtWide,f.profileBadgeInfoChannelWide].map(function(S){var B,G,g,b,z;return S?_.T(_.gg,null,_.T("div",{class:"yt-profile-info-view-model-wiz__header"},_.T("div",{class:"yt-profile-info-view-model-wiz__section-title"},S==null?void 0:S.profileSectionTitle),_.T("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.T("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},S==null?void 0:(B=S.commentBadge)==
null?void 0:B.commentDesc),(S==null?0:(G=S.commentBadge)==null?0:G.blackHeartDesc)?_.T("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.T("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.T(_.f9,{data:{thumbnails:[{url:S==null?void 0:(g=S.commentBadge)==null?void 0:g.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.T("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},S==null?void 0:(b=
S.commentBadge)==null?void 0:b.blackHeartDesc))),_.T("div",{class:"yt-profile-info-view-model-wiz__badge"},S==null?void 0:(z=S.badges)==null?void 0:z.map(function(X){return _.T(DEz,{data:X})}))):null}))},twB=function(f){f=f.data;
return _.T("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.T(Z2u,{data:f}),f.comments?_.T(Afu,{data:f}):null,f.sharedSubscriptionsTitle?f.subscriptionsAccessButtonCommand?_.T(NhZ,{data:f}):_.T(Mwu,{data:f}):null)},au2=function(f){var S=f.data;
f=S?uhu(S.profileIdentityInfo):void 0;S=S?uhu(S.profileInfo):void 0;return _.T("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},f,S)},yfY=function(f,S){var B=_.zF1(S,{},f,!0);
return new Promise(function(G,g){B.listenOnce("n",function(){g(Error("hl`"+B.JSC$25985_getErrorDescription()))});
B.listenOnce("l",function(){var b=B.getResponseCode();if(b!==200)g(Error("il`"+S+"`"+f.type+"`"+f.size+"`"+b));else try{G(JSON.parse(B.getResponseText()).encryptedBlobId)}catch(z){g(z)}});
B.run()})},WUO=function(f){return f.substring(f.indexOf(":")+1,f.indexOf(";"))},cfo=function(f){return new Promise(function(S,B){var G=new FileReader;
G.onloadend=function(){try{var g=new Uint8Array(G.result);g.length<8&&B(void 0);var b=g.subarray(0,8);g="";for(var z=0;z<b.length;z++)g+=("0"+b[z].toString(16)).substr(-2);g.startsWith("ffd8ff")?S("image/jpeg"):g.startsWith("47494638")?S("image/gif"):g.startsWith("89504e470d0a1a0a")?S("image/png"):g.startsWith("424d")?S("image/bmp"):S(void 0)}catch(X){B(X)}};
G.onerror=B;G.readAsArrayBuffer(f)})},luZ=function(f){return new Promise(function(S,B){var G=new Image;
G.crossOrigin="anonymous";G.onload=function(){var g=document.createElement("canvas");g.width=G.naturalWidth;g.height=G.naturalHeight;var b=g.getContext("2d");if(!b)throw Error("jl");b.drawImage(G,0,0);b=WUO(f);g.toBlob(function(z){z?S(z):B()},b)};
G.src=f})},ore=function(f,S){var B;
if(((B=_.H(f,_.QW))==null?void 0:B.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var G;_.ew((G=S.hostElement)!=null?G:S,"yt-shorts-reset");_.LYX(_.oy().resolve(_.dQ),f).then(function(b){fK2(b,S,f)})}else{var g;
_.RD((g=S.hostElement)!=null?g:S,[f]).then(function(b){b&&fK2(b.data,S,f)})}},fK2=function(f,S,B){if(f){var G=_.H(f.replacementEndpoint,_.QW);
if(G){f.sequenceContinuation&&(G.sequenceParams=f.sequenceContinuation);var g;_.ew((g=S.hostElement)!=null?g:S,"yt-navigate",{endpoint:f.replacementEndpoint})}else if((f==null?void 0:f.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(f==null?0:f.watchStatus)&&_.H(f.watchStatus,_.XEo)){var b;_.ew((b=S.hostElement)!=null?b:S,"yt-navigate",{endpoint:B})}}},SAZ=function(f){var S=_.oy().resolve(_.C5),B=TCe(S.getState())||"";
S=_.pTG(S.getState())||"";B=B==="ytd-browse"&&S==="home";return _.K("web_guide_entry_enable_cache_for_non_home_pages")?(f=(f==null?void 0:f.navigationEndpoint)&&_.Pt(f.navigationEndpoint)==="home",{disableCache:B&&f}):{disableCache:B}},B9n=function(f){if(!f)return!1;
try{if(f.host&&f.host.tagName==="YT-FORMATTED-STRING"&&f.host.id==="contenteditable-textarea"||f.nodeType===Node.ELEMENT_NODE&&f.tagName==="YTD-COMMENT-INPUT")return!0}catch(S){return!1}return B9n(f.parentNode)},lL=function(f){return f?f.tagName==="A"&&f.href&&f.classList.contains("yt-simple-endpoint"):!1},Gco=function(f){return f?f.tagName==="IMG"&&f.classList.contains("emoji"):!1},gro=function(f,S,B){if(!f)return null;
var G=lL(f);if(G&&B)return S=f.pathname.substring(f.pathname.indexOf("/channel/")+9),document.createTextNode("@"+S);if(G&&!B)return document.createTextNode("");if(Gco(f))return B=f.alt,f=f.dataset.emojiId,!f&&S&&(S=_.He(S,B))&&S.isCustomEmoji&&(f=S.emojiId),f?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+f+">"):document.createTextNode(B);G=f.cloneNode(!1);for(var g=0;g<f.childNodes.length;++g){var b=gro(f.childNodes[g],S,B);b&&G.appendChild(b)}return G},f6=function(f){return f?lL(f)?f:f6(f.lastChild):
null},exz=function(f){return f?lL(f)?f:exz(f.firstChild):null},bJM=function(f){if(!f)return null;
for(var S=f.previousSibling;S;)if(S.nodeType===Node.ELEMENT_NODE&&S.nodeName==="BR")S=S.previousSibling;else if(S.nodeType===Node.TEXT_NODE&&/\s+/.test(S.textContent))S=S.previousSibling;else break;(S=f6(S))?f=S:f=(f=f.parentNode)?f6(f.previousElementSibling):null;return f},mzn=function(f){if(!f)return null;
for(var S=f.nextSibling;S;)if(S.nodeType===Node.ELEMENT_NODE&&S.nodeName==="BR")S=S.nextSibling;else if(S.nodeType===Node.TEXT_NODE&&/\s+/.test(S.textContent))S=S.nextSibling;else break;return(S=exz(S))?S:mzn(f.parentNode)},zxu=function(f){var S=_.$V(),B=S.JSC$9306_getStartNode();
if(!B9n(B.parentNode))return null;S=S.JSC$9306_getStartOffset();if(B.nodeType===Node.TEXT_NODE){var G=_.kv(B,lL);if(G){if(f&&S===0||!f&&S===B.length)return G}else{if(f&&S===B.length)return!B||B.nodeName==="BR"||B.nextElementSibling&&_.Q1(B.nextElementSibling,"display")==="block"?null:exz(B.nextElementSibling);if(!f&&S===0)return B?f6(B.previousElementSibling):null}}if(B.nodeType===Node.ELEMENT_NODE)if(f){if(0<=S&&S<B.childNodes.length)return exz(B.childNodes[S])}else if(0<S&&S<=B.childNodes.length)return f6(B.childNodes[S-
1]);return null},RxM=function(f,S,B){if(!f)return null;
if(f.nodeType===Node.TEXT_NODE)if(B){var G=bJM(f);if(G&&!/^\s+\S/.test(f.wholeText.substr(0,S)))return G}else if((G=mzn(f))&&!/\S\s+/.test(f.wholeText.substr(S,f.wholeText.length)))return G;return f.nodeType===Node.ELEMENT_NODE?B?bJM(f.childNodes[S]):mzn(f.childNodes[S]):RxM(f.parentNode,S,B)},X2e=function(f){if(f.hasChildNodes())switch(f.tagName){case "DIV":case "A":case "SPAN":var S="";
for(f=f.firstChild;f;f=f.nextSibling)S+=X2e(f);return S;default:return""}else switch(f.nodeType){case 3:return f.textContent;default:return""}},w2$=function(f){f=f.data;
return _.T("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.T("div",null,_.T(_.oY,{text:f.title})),f.subtitle?_.T("div",{class:"ytd-menu-title-renderer__subtitle"},_.T(_.oY,{text:f.subtitle})):null)},hxu=function(f){switch(f){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"}},T9u=function(f){return f.map(function(S){return{settingsRadioOptionRenderer:{title:_.g9(S.name),
asideText:_.g9(S.approximateSize),id:hxu(S.format)}}})},VfX=function(f){if(f&&f.length!==0)return f.filter(FWO()).map(function(S){return{settingsRadioOptionRenderer:{title:S.name,
asideText:S.approximateSize,id:hxu(S.formatType)}}})},oE=function(f){if(f)return f.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},JRZ=function(f,S){f=new Set(f!=null?f:[]);
if(f.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(f.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(f.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(f.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(f.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(S)return"YOUTUBE_ENTITY_TYPE_DEFAULT"},PC$=function(f){var S=f.indexOf("(");
return S!==-1?f.substring(S+1,f.length-1):f},vru=function(f){switch(f){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},dzX=function(f,S,B,G,g,b){var z=_.$v.clone(KW2);
z.locale=_.nL("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;z.report={description:g||"<empty>"};g=_.nL("SBOX_SETTINGS",{});S=S.join(",");var X=Date.now();f={choice_cc:G,choice_id_cc:B,choices_sc:S,gl:g.REQUEST_DOMAIN,hl:g.REQUEST_LANGUAGE,query:f,time:X};b&&(f.choice_additional_comment_cc=b);_.FZv(z,f)},iJo=function(f){var S=new Map;
S.set("authuser",_.nL("SESSION_INDEX","0"));return _.Bd(f,S)},qAY=function(f){var S;
return _.R(function(B){switch(B.nextAddress){case 1:if(!f||!HJO(f))return B.return(null);S=null;switch(_.nL("INNERTUBE_CLIENT_NAME")){case "WEB":return B.jumpTo(2);case "WEB_REMIX":S=f.getPlayer()}B.jumpTo(3);break;case 2:return _.h(B,f.getPlayerPromise(),4);case 4:S=B.yieldResult;B.jumpTo(3);break;case 3:return B.return(S)}})},HJO=function(f){return["ytd-player",
"ytmusic-player"].includes(String(f.tagName||"").toLowerCase())},$z$=function(f){f=Math.round(f);
return f%2?f-1:f},Qcn=function(f){f=Math.round(f);
return f%2===0?f-1:f},YAZ=function(f){var S,B,G;
if(f=(S=f.createPlaylistDialogFormSchema)==null?void 0:(B=S.fieldSchemas)==null?void 0:(G=B.title)==null?void 0:G.validationSchema)for(S=[f.syncStep,f.asyncStep].filter(function(g){return g!==void 0}),S=_.m(S),B=S.next();!B.done;B=S.next()){B=B.value.rules;
if(!B)break;B=_.m(B);for(B=B.next();!B.done;B=B.next())return _.H(B.value,_.Ooo)}},jcX=function(f){var S,B,G;
if(f=(S=f.createPlaylistDialogFormSchema)==null?void 0:(B=S.fieldSchemas)==null?void 0:(G=B.visibility)==null?void 0:G.validationSchema)for(S=[f.syncStep,f.asyncStep].filter(function(g){return g!==void 0}),S=_.m(S),B=S.next();!B.done;B=S.next()){B=B.value.rules;
if(!B)break;B=_.m(B);for(G=B.next();!G.done;G=B.next())if(G=_.H(G.value,rRX))return S=void 0,(S=G.translations)==null?void 0:S.visibilityNotValidErrorMessage}},OJ$=function(){var f,S;
return(S=(f=_.oy().resolve(_.fN(_.yU)))==null?void 0:f())!=null?S:!1},xze=function(f){var S=21;
if(!f)return S;S+=f.headerTitle?27:0;S+=f.headerTitle&&f.hasHeaderActionHeader?4:0;return S+=f.headerTitle&&f.headerSubtitle?16:0},ErX=function(f){var S=0;
if(!f)return S;S+=f.hasFooterPrimaryButton||f.hasFooterSecondaryButton?48:0;S+=f.footerTrailingLabel||f.footerLeadingLabel?30:0;return S+=f.hasFooterPrimaryButton||f.hasFooterSecondaryButton||!f.footerTrailingLabel&&!f.footerLeadingLabel?0:12},LW$=function(f){var S=new _.Tt,B=f;
return{subscribe:function(G){S.subscribe("changed",G)},
dispatch:function(G,g){var b=B;G==="Touch Start"?B=Object.assign({},b,{isAnimating:!1,initialY:g.event.touches[0].clientY}):G==="Touch Move"?(G=Math.min(g.fullContentWrapperHeight,g.contentHeightMap[g.contentWrapperId]+xze(g.header)-ErX(g.footer)),B=Object.assign({},b,{currentY:Math.max(g.contentScrollable?-1*(b.initialY-24):0,g.event.touches[0].clientY-b.initialY),maxHeightForContentWrapper:Math.min(G,Math.max(0,(b.isFullScreen?G:g.contentWrapperHeight)-b.currentY))})):B=G==="Snap To Full Screen"?
Object.assign({},b,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:g.maxHeight}):G==="Snap To Neutral Position"?Object.assign({},b,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:g.maxHeight}):G==="Close Sheet"?Object.assign({},b,{isAnimating:!0,currentY:g.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:g.maxHeight}):b;S.publish("changed",B)}}},kcu=function(f){return _.iF(function(S){f(S);
return!1})},nro=function(){_.oy().resolve(_.H0).closeSheet()},scM=function(f){var S,B,G,g,b,z,X,w,F,V,J;
return{headerTitle:(S=f.headerTitle)==null?void 0:S.call(f),headerSubtitle:(B=f.headerSubtitle)==null?void 0:B.call(f),headerActionHeader:f.headerActionHeader,footerPrimaryButton:f.footerPrimaryButton,footerSecondaryButton:f.footerSecondaryButton,footerButtonType:(G=f.footerButtonType)==null?void 0:G.call(f),footerLeadingLabel:(g=f.footerLeadingLabel)==null?void 0:g.call(f),footerTrailingLabel:(b=f.footerTrailingLabel)==null?void 0:b.call(f),shouldShowIcons:(z=f.shouldShowIcons)==null?void 0:z.call(f),
skipContentClick:(X=f.skipContentClick)==null?void 0:X.call(f),additionalClassName:(w=f.additionalClassName)==null?void 0:w.call(f),onClosedCallback:f.onClosedCallback,focusOnClose:(F=f.focusOnClose)==null?void 0:F.call(f),isDisabled:(V=f.isDisabled)==null?void 0:V.call(f),disabledCommand:(J=f.disabledCommand)==null?void 0:J.call(f),headerFn:f.headerFn,contentFn:f.contentFn,footerFn:f.footerFn,hasHeaderFn:f.hasHeaderFn(),hasContentFn:f.hasContentFn(),hasFooterFn:f.hasFooterFn(),hasFooterPrimaryButton:f.hasFooterPrimaryButton(),
hasFooterSecondaryButton:f.hasFooterSecondaryButton(),hasHeaderActionHeader:f.hasHeaderActionHeader()}},DzZ=function(f){switch(f){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""}},IK$=function(f){switch(f){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""}},Uzz=function(f){switch(f){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""}},CCB=function(f,S,B){S.forEach(function(G){_.TE(_.oy().resolve(_.Qz),G)});
_.bW(f,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",B])},Mf2=function(f,S,B,G){var g=_.H(B,_.NG).commandLifeCycleConfig;
g&&g.onStartCommand&&_.Xh(f,[g.onStartCommand],S);_.We(S);var b=_.Zd.instance;b&&_.t3(b,B)?_.uF(b,B,G).then(function(z){if(!z||(z==null?0:z.error))return z=_.H(B,_.NG).serializedTransactionFlowLoggingParams,_.ce(S),_.xe(new S$("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",z));_.ce(S);return{data:z}}).then(function(z){_.ce(S);
p2M(z.data);var X=z.data.command;X&&_.Xh(f,[X],S);X=ARB(B,z.data);if(!X){var w=z.data;z=!1;if(w&&w.command&&_.H(w.command,_.hf)){var F;w=((F=_.H(w.command,_.hf))==null?void 0:F.commands)||[];for(F=0;F<w.length;F++)if(_.H(w[F],_.lS1)){z=!0;break}}z||_.xk('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!X&&g&&g.onSuccessCommand?_.Xh(f,[g.onSuccessCommand],S):X&&g&&g.onFailureCommand&&_.Xh(f,[g.onFailureCommand],S)},function(){_.ce(S);
g&&g.onFailureCommand&&_.Xh(f,[g.onFailureCommand],S);N9o(B)}):_.xH(Error("Al"),"ERROR")},ZJ2=function(f,S,B){var G=[S];
B&&G.push(B);return _.RD(f,G).then(function(g){var b=_.H(S,_.NG).serializedTransactionFlowLoggingParams,z=g.data,X=ARB(S,z);X?g=_.xe(new S$(X,b)):p2M(z);return g},function(){var g=_.H(S,_.NG).serializedTransactionFlowLoggingParams;
N9o(S);return _.xe(new S$("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",g))})},ARB=function(f,S){f=_.H(f,_.NG).serializedTransactionFlowLoggingParams;
var B=null;switch(S.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":B="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":B="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":B="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}B?_.yW(B,f):e_u(f);return B},N9o=function(f){_.yW("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.H(f,_.NG).serializedTransactionFlowLoggingParams)},
p2M=function(f){if(f.trackingParams){var S=_.xc(),B=_.Of();
S&&B&&_.Af(S,B,_.Ye(f.trackingParams))}},tf2=function(f,S,B){var G=_.Zd.instance,g=_.fqV(_.nL("YPC_MB_URL")),b=(new _.cb9).init(),z=_.lsM(),X=_.H(B,_.aSj).languageCode;
X===void 0?_.xH(Error("Ei"),"ERROR"):_.rX([b,g]).then(function(){var w={ctk:payments.business.integration.ClientTokenFactory.createClientToken(X,z)};G&&_.t3(G,B)?_.uF(G,B,w).then(function(F){return{data:F}}).then(function(F){_.ew(S,"yt-service-request-completed",F);
F.code!=="ERROR"&&(F=F.data.command)&&_.Xh(f,[F],S)}):_.xH(Error("Al"),"ERROR")})},yRZ=function(f,S,B,G){var g=_.Zd.instance;
g&&_.t3(g,B)?_.uF(g,B,G).then(function(b){return{data:b}}).then(function(b){uVe(f,S,B,b)},function(){aK2(B)}):(g=_.oy().resolve(_.fN(_.st)))&&g.requestDataForServiceEndpoint(B,G).then(function(b){uVe(f,S,B,b)},function(){aK2(B)})},uVe=function(f,S,B,G){_.ew(S,"yt-service-request-completed",G);
if(G.code&&G.code=="ERROR")aK2(B);else{(G=G.data.commands)&&_.Xh(f,G,S);var g;(f=(g=_.H(B,_.oZL))==null?void 0:g.serializedYpcPauseFlowLoggingParams)&&f&&_.LG("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",f)}},aK2=function(f){var S;
(f=(S=_.H(f,_.oZL))==null?void 0:S.serializedYpcPauseFlowLoggingParams)&&f&&_.LG("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",f,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},lKe=function(f,S,B){var G=_.Zd.instance;
G&&_.t3(G,B)?_.uF(G,B).then(function(g){return{data:g}}).then(function(g){WWe(f,S,B,g)},function(){cRn(B)}):(G=_.oy().resolve(_.fN(_.st)))&&G.requestDataForServiceEndpoint(B).then(function(g){WWe(f,S,B,g)},function(){cRn(B)})},WWe=function(f,S,B,G){_.ew(S,"yt-service-request-completed",G);
G.code&&G.code=="ERROR"?cRn(B):((G=G.data.commands)&&_.Xh(f,G,S),(f=_.H(B,_.SX8).serializedYpcResumeFlowLoggingParams)&&f&&_.LG("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",f))},cRn=function(f){(f=_.H(f,_.SX8).serializedYpcResumeFlowLoggingParams)&&f&&_.LG("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",f,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},fUn=function(f){f=f===void 0?{}:f;
_.oy().resolve(_.v7m).showFeedbackDialog(f.customProductData,f.feedbackContent,f.onFeedbackSubmitted,f.bucket)},oGu=function(f){f=f===void 0?{}:f;
_.oy().resolve(_.v7m).showHelpDialog(f.helpContext,f.articleId,f.productData)},StB=function(){oGu()},B3z=function(){fUn()},gGe=function(f,S,B){var G,g,b,z,X,w,F;
return _.R(function(V){switch(V.nextAddress){case 1:G=_.H(f,GFo);if((g=G)==null?0:g.productId){w={productId:G.productId,bucket:G.bucket,enableAnonymousFeedback:(X=G.enableAnonymousFeedback)!=null?X:!0,allowNonLoggedInFeedback:!0};F={feedbackChoice:B.feedbackChoice};if(!_.K("web_collect_offline_state")){V.jumpTo(8);break}_.zT(V,9);return _.h(V,VDB(F),11)}z={bucket:(b=G)==null?void 0:b.bucket};if(!_.K("web_collect_offline_state")){V.jumpTo(4);break}z.customProductData={};_.zT(V,5);return _.h(V,VDB(z.customProductData),
7);case 7:_.CN(V,4);break;case 5:_.hm(V);case 4:fUn(z);V.jumpTo(0);break;case 11:_.CN(V,8);break;case 9:_.hm(V);case 8:_.MiA(F),_.NTM("GFEEDBACK",F),G.productId==="5295751"&&(F.client_attestation=Number(_.nL("CATSTAT",0))),G.productId==="5295751"&&(F.client_time=Date.now()/1E3/3600),G.productId==="5295751"&&(F.original_playback_id=_.Cro||""),_.FZv(w,F),_.TT(V)}})},e7n=function(f){if(f=_.H(f,_.xhj)){var S={bucket:f.bucketIdentifier};
f.additionalDatas&&(S.customProductData={},f.additionalDatas.forEach(function(B){if(B=B.userFeedbackEndpointProductSpecificValueData)S.customProductData[B.key]=B.value}));
fUn(S)}},bn$=function(f){var S=_.AE.getInstance();
var B=_.Jf("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var G=_.Jf("DELETE",void 0,"Delete"),g=_.Jf("CANCEL",void 0,"Cancel");B=qZY(B,void 0,G,g,{signal:"DELETE_ALL_DOWNLOADS"});_.sc(S,[{openPopupAction:B}],f)},z72=function(){return _.R(function(f){return f.nextAddress==1?_.h(f,_.oy().resolve(_.fG),2):_.h(f,moo(),0)})},R72=function(f){var S,B;
return _.R(function(G){return G.nextAddress==1?(B=(S=_.H(f,_.UU))==null?void 0:S.targetId)?_.h(G,_.oy().resolve(_.fG),3):G.jumpTo(0):_.h(G,_.oy().resolve(_.lV).deleteVideo(B),0)})},wtn=function(f){var S,B;
return _.R(function(G){return G.nextAddress==1?(B=(S=_.H(f,_.UU))==null?void 0:S.targetId)?_.h(G,_.oy().resolve(_.fG),3):G.jumpTo(0):_.h(G,Xt2(_.oy().resolve(_.lV),B),0)})},T3u=function(f){var S,B;
return _.R(function(G){return(B=(S=_.H(f,_.UU))==null?void 0:S.targetId)?_.h(G,h7$(B),0):G.jumpTo(0)})},Vaz=function(){_.K("kevlar_woffle_refresh_dl_load_killswitch")||FdO()},Ptu=function(){_.K("kevlar_woffle")&&_.Ln.instance&&JKM()},Kd$=function(f){var S;
if((S=_.H(f,_.V5))==null||!S.videoId)return!1;vG2(_.oy().resolve(_.lV),_.H(f,_.V5),f.clickTrackingParams);return!0},inu=function(f){var S;
if((S=_.H(f,_.JD))==null||!S.playlistId)return!1;don(_.oy().resolve(_.lV),_.H(f,_.JD),f.clickTrackingParams);return!0},qtn=function(f){var S=_.H(f,_.tx$);
(S==null?void 0:S.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(S==null?void 0:S.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||Hne(_.oy().resolve(_.lV),_.H(f,_.tx$))},Qe2=function(f){f=_.H(f,_.Kni);
var S;(f==null?0:(S=f.actions)==null?0:S.length)&&$oY(f)},jez=function(f){var S,B;
return _.R(function(G){S=_.H(f,Yte);return(B=S)!=null&&B.localWatchHistoryCommandType?_.h(G,rKe(S),0):G.return()})},OnY=function(f){setTimeout(function(){requestAnimationFrame(f)},80)},xou=function(f){return Object.entries(f).map(function(S){return S.join(":")}).join(";")},Ldz=function(f){var S,B,G;
_.R(function(g){if(g.nextAddress==1)return _.h(g,EGo(),2);S=g.yieldResult;B=_.JZ.instance;switch(S){case "granted":G=f.getLocationCommand;break;case "denied":G=f.openDeniedDialogAction;break;case "prompt":G=f.openCollectionDialogAction;break;default:G=f.openCollectionDialogAction}G&&B.resolveCommand(G);_.TT(g)})},EGo=function(){var f,S;
return _.R(function(B){if(B.nextAddress==1)return f="prompt",navigator.permissions?_.h(B,navigator.permissions.query({name:"geolocation"}),3):B.jumpTo(2);B.nextAddress!=2&&(S=B.yieldResult,f=S.state);return B.return(f)})},nGu=function(){_.R(function(f){return _.h(f,_.kFu(),0)})},seZ=function(){var f,S,B;
return _.R(function(G){if(G.nextAddress==1)return f=_.oy().resolve(_.DU),f?_.h(G,_.uF(f,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.Lg(Error("Dl")),G.return(void 0));if(S=G.yieldResult){if(S.errorMetadata)return _.Lg(Error("El`"+S.errorMetadata.status+"`"+S.error)),G.return(void 0);B=S.datasyncIds;_.v16=B.length;return G.return(B)}_.Lg(Error("Fl"));return G.return(void 0)})},Do$=function(){seZ().then(function(f){f&&(AYz(f),m6u(f),kVu(f),PsB(f))})},IUu=function(f){_.xJ.addLowPriorityJob(function(){var S,
B,G,g,b;
return _.R(function(z){switch(z.nextAddress){case 1:if(_.K("ytidb_clear_optimizations_killswitch")){z.jumpTo(2);break}S=_.vL("clear");if(S.startsWith("V")&&S.endsWith("||")){var X=[S];AYz(X);m6u(X);kVu(X);PsB(X);return z.return()}B=nJX();G=vHn();return _.h(z,z_Y(),3);case 3:return g=z.yieldResult,_.h(z,NO$(),4);case 4:if(b=z.yieldResult,!(B||G||g||b))return z.return();case 2:f.isNetworkAvailable()?Do$():f.listenOnce("publicytnetworkstatus-online",Do$),_.TT(z)}})})},B3=function(f){f={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.uC(f)}}}};_.JZ.instance&&_.JZ.instance.resolveCommand(f)},Uo2=function(f){if(f){var S=_.ik();
_.Rh(S,3854,void 0,{layer:0,parentLayer:4});switch(f){case 1:var B=238708;break;case 2:B=238715;break;case 3:B=238710;break;case 6:B=238709}B&&(f=_.dR(S,{veType:B}))&&_.h0(S,f)}},CtM=function(f){if(f){var S=_.ik();
_.Rh(S,3854,void 0,{layer:0,parentLayer:4});switch(f){case 1:var B=238714;break;case 2:B=238711;break;case 8:B=238709;break;case 7:B=238713;break;case 3:case 4:case 5:B=238712}B&&(f=_.dR(S,{veType:B}))&&_.h0(S,f)}},pt$=function(f){switch(f.latencyType){case 0:_.L2("consent_primitive_flow");
_.kT("cpit",f.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.kT("cpist",f.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.kT("cprtif",f.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.kT("cprtli",f.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.kT("cprt",f.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.kT("cpdt",f.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.kT("cpjct",f.timestampEpochMillis,"consent_primitive_flow")}},
cKB=function(f,S){var B,G,g,b,z,X,w,F,V,J,P,d,Q,x,E,U,A,t,M,a;
return _.R(function(l){switch(l.nextAddress){case 1:_.zT(l,2);(G=(B=_.H(f,AKe))==null?void 0:B.serializedConsentRequest)||(G=(g=_.H(f,N3o))==null?void 0:g.serializedConsentRequest);G&&(b=Mau(_.Rg(G)));if(b===void 0)return l.return();z=Zn2(b);z.latencyCallback=pt$;S&&tao(z,function(){S.then(function(mx){mx.pauseVideo();(new u2O).increment()})});
return((X=_.H(f,AKe))==null?void 0:X.consentAction)==="CONSENT_ACTION_PREWARM"||((w=_.H(f,N3o))==null?void 0:w.consentAction)==="CONSENT_ACTION_PREWARM"?_.h(l,aUB(z),5):_.h(l,yKo(z),6);case 6:F=l.yieldResult;V=_.rp(F,G3);if(V===1){if(((J=_.UH(F,g7,1,G3))==null?void 0:_.sH(J,1))===1||((P=_.UH(F,g7,1,G3))==null?void 0:_.sH(P,1))===2||((d=_.UH(F,g7,1,G3))==null?void 0:_.sH(d,1))===3)_.H(f,N3o)?B3(_.Jf("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
B3(_.Jf("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));Uo2((Q=_.UH(F,g7,1,G3))==null?void 0:_.sH(Q,1),_.oK(F,WdX,3,_.SI()))}else V===2?(((x=e$(F))==null?void 0:_.sH(x,1))===5?_.H(f,N3o)?B3(_.Jf("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):B3(_.Jf("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((E=e$(F))==null?void 0:_.sH(E,1))===1||((U=e$(F))==null?void 0:_.sH(U,1))===4?B3(_.Jf("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((A=e$(F))==null?void 0:_.sH(A,1))===7&&((t=b)==null?void 0:(M=_.BU(t,bw,4))==null?void 0:_.sH(M,4))!==1&&B3(_.Jf("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),CtM((a=e$(F))==null?void 0:_.sH(a,1))):B3(_.Jf("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));l.jumpTo(5);break;case 5:_.CN(l,0);break;case 2:_.hm(l),B3(_.Jf("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.TT(l)}})},fen=function(){if(!lUe.has("Worker")){lUe.set("Worker",
!0);
var f={api:"BROWSER_API_WEB_WORKER"};f.available="Worker"in window?!0:!1;_.jD("apiTest",f)}},obz=function(f){return typeof f==="undefined"?"-1":String(Math.ceil(f/1048576))},gb2=function(f,S){SWu(new BvY(_.H(S,GYZ).addToken,_.H(S,GYZ).commonToken)).then(function(){_.ew(f,"yt-invoke-instrument-manager-action-completed")},function(B){_.ew(f,"yt-invoke-instrument-manager-action-error",B)})},eu$=function(f){return _.Ma(f)},bPu=function(f){var S=1;
f=f.split(":");for(var B=[];S>0&&f.length;)B.push(f.shift()),S--;f.length&&B.push(f.join(":"));return B},mJn=function(f,S){S=f.aspectRatio()<=S.aspectRatio()?S.width/f.width:S.height/f.height;
f.scale(S)},zuz=function(f,S){S=f.aspectRatio()>S.aspectRatio()?S.width/f.width:S.height/f.height;
return f.scale(S)},RuY=function(f){var S=new _.hq;
return _.C4(S,11,f)},XFY=function(f){var S={};
f=f.getAllResponseHeaders().split("\r\n");for(var B=0;B<f.length;B++)if(!_.bK(f[B])){var G=bPu(f[B]),g=G[0];G=G[1];if(typeof G==="string"){G=G.trim();var b=S[g]||[];S[g]=b;b.push(G)}}return _.$v.map(S,function(z){return z.join(", ")})},FQ=function(f,S){return f.JSC$7841_xhr_?f.JSC$7841_xhr_.getResponseHeader(S):null},wFO=function(f,S){if(f.isDisposed())throw Error("Ja");
f.kA.sX("n");var B=_.sT(f.kA,function(){return f.wTD([S.rU,S.qU4,S.kr6,S.m7y])},"n");
f.kA.ocV(B.length);f.kA.sE();return B},mV=function(f,S,B){Array.isArray(B)||(B=[String(B)]);
_.ur$(f.JSC$8076_queryData_,S,B);return f},JKM=function(){var f=_.Ln.instance;
_.R(function(S){return f.deferredInstallPrompt?_.h(S,f.deferredInstallPrompt.prompt(),0):S.jumpTo(0)})},huu=function(f,S,B){if(_.W9(f))_.AA(f,S,B);
else for(f=_.GVN(f);;){var G=f.next();if(G.done)break;S.call(B,G.value,void 0,f)}},Tvz={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}"]},R5M,Xs2,wsX,h5M,TRY,FTY,VP2,JZe,Pko,h7$,Xt2,moo,ve2,KT2,dBu,iHX,HHn,qnX,don,vG2,$BX,QSz,YnB,FdO,Hne,rZu,$oY,jSO,rKe,OHu,xBu,EeX,LTn,cb,kiu,neu,sSu,DB2,
Iwz,UBn,Ckz,pse,AZO,H2e,KUo,NRZ,T3,F5,Vn,JI,MPu,ZHn,tP2,u_Y,awu,yZu,WTu,cZu,lwO,fdn;Tvz={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 F92=function(f,S){var B=[];huu(S,function(G){try{var g=_.gi.prototype.getWrapper.call(this,G,!0)}catch(b){if(b=="Storage: Invalid value was encountered")return;throw b;}g===void 0?B.push(G):_.BZL(g)&&B.push(G)},f);
return B},VdY=function(f,S){F92(f,S).forEach(function(B){_.gi.prototype.remove.call(this,B)},f)},JOu=function(f){var S=_.Z6;
S._minimumZ=Math.max(S._minimumZ,f)},Puo=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],vbX=function(f,S){_.cd(f.oy);f.oy=S},K9e=function(f,S,B,G){f.setState(5);
var g=!!f.aoV&&Puo.includes(_.aj(f.aoV)||"");try{var b=new _.D2({program:S,globalName:B,lF:{disable:!_.K("att_web_record_metrics")||!_.K("att_skip_metrics_for_cookieless_domains_ks")&&g,oB:"aGIf"}});b.rO9.then(function(){f.setState(6);G&&G(S)});
vbX(f,b)}catch(z){f.setState(7),z instanceof Error&&_.Lg(z)}},dJ2=function(f,S,B,G,g,b){var z=z===void 0?"trayride":z;
B?(f.setState(2),_.I4(B,function(){if(window[z])K9e(f,G,z,g);else{f.setState(3);var X=_.pET(B),w=document.getElementById(X);w&&(_.ZnA(X),w.parentNode.removeChild(w));_.Lg(new _.dO("BL:ULB",B))}},b)):S?(b=_.Ja("SCRIPT"),S instanceof _.sQ?_.UQ(b,S):b.textContent=S,b.nonce=_.k6(document),document.head.appendChild(b),document.head.removeChild(b),window[z]?K9e(f,G,z,g):(f.setState(4),_.Lg(new _.dO("BL:ULBJ")))):_.Lg(new _.dO("BL:ULV"))},iPu=function(){this.state=1;
this.oy=null;this.aoV=void 0};
_.e=iPu.prototype;_.e.initialize=function(f,S,B,G){this.aoV=G;if(f.program){var g;G=(g=f.interpreterUrl)!=null?g:null;if(f.interpreterSafeScript)g=_.T9V(f.interpreterSafeScript);else{var b;g=(b=f.interpreterScript)!=null?b:null}f.interpreterSafeUrl&&(G=_.E4(f.interpreterSafeUrl).toString());dJ2(this,g,G,f.program,S,B)}else _.Lg(Error("lf"))};
_.e.isInitialized=function(){return!!this.oy};
_.e.getState=function(){return this.state};
_.e.isLoading=function(){return this.state===2};
_.e.invoke=function(f){f=f===void 0?{}:f;var S;this.oy?S=wFO(this.oy,{rU:f}):S=null;return S};
_.e.dispose=function(){vbX(this,null);this.setState(8)};
_.e.setState=function(f){this.state=f};
var HPn=function(f,S){return f.oy.snapshot(S)},qW2=function(f,S){var B=_.Gt("botguard_async_snapshot_timeout_ms",3E3);
S=S===void 0?{}:S;B=B===void 0?3E3:B;return f.oy?new Promise(function(G,g){var b=!1,z=_.xJ.addJob(function(){b=!0;g(Error("mf"))},1,B);
f.oy?HPn(f,{rU:S}).then(function(X){_.xJ.cancelJob(z);b||G(X)}).catch(function(X){_.xJ.cancelJob(z);
b||g(X)}):(_.xJ.cancelJob(z),G(null))}):Promise.resolve(null)},$JX=["att/log"],Qlu;
Qlu={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var YWo={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},rOu=function(f,S){return _.P2(f,{mode:"readwrite",enableRetries:!0},function(B){return _.vRV(B,S,"settingEntity")})},jlY=function(f,S,B){return _.P2(f,{mode:"readonly",
enableRetries:!0},function(G){return _.$rj(G,S,B)})},OP$=function(f){if(!f.storage)return!1;
a:{if(f.storage){try{var S=f.storage.get("TLPQtimestamp")}catch(B){}f=Number(S);if(!isNaN(f))break a}f=void 0}return f?Date.now()-f<864E5:!1},xJn=function(f){if(f.storage){try{var S=f.storage.get("TLPQindex")}catch(B){}f=Number(S);
if(!isNaN(f))return f}},Eb$=function(f,S){f.queueProxy&&S.forEach(function(B){if(B.videoId&&B.trackingParams&&f.queueProxy instanceof _.kZ){var G=_.xc();
f.queueProxy.attributionData.set(B.videoId,{enqueueingVe:_.Ye(B.trackingParams).getAsJson(),enqueueingCsn:G?G:void 0,clientEnqueueingTimeMs:Math.floor((0,_.fO)()).toString()})}})},L9z=function(f){var S=_.gaX(f);
S!=f.currentSnapState_&&(f.currentSnapState_=S,f.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},z3=function(f){this.JSC$11108_networkManager_=f;
this.partCallbacks_=[]};
z3.prototype.getCacheKeyForEndpoint=function(f){return _.ci1(f,!1)};
z3.prototype.onPartsCallback_=function(f){this.partCallbacks_.forEach(function(S){f&&S(f)})};
var RE=function(f,S,B){z3.call(this,f);this.player_=S;this.autoplayData_=B};
_.q(RE,z3);RE.prototype.getCacheKeyForEndpoint=function(f){return _.ci1(f,!!this.autoplayData_)};
RE.prototype.getTempData=function(f,S){S=S.timeBeforeNextVideo;f={itct:f.clickTrackingParams,lact:_.or(),pbis:S,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(f.autonav=1);return f};
RE.prototype.getXhrParams=function(f){return Object.assign({pbj:"prefetch"},f)};
RE.prototype.getParams=function(f){f={frags:f.fragmentsRequested.join(",")};_.K("kevlar_droppable_prefetchable_requests")&&(f.prefetch=1);return f};
var kYM=function(f){f.playerEvents_.forEach(function(S){f.player.removeEventListener(S.eventName,S.callback)});
f.playerEvents_.length=0},X5=function(f,S,B){this.player=f;
this.JSC$11118_taskManager=S;this.prefetchDelay=B;this.completionResolver_=null;this.playerEvents_=[]};
X5.prototype.start=function(){var f=this;this.completionResolver_=_.aa();_.jA(this.completionResolver_.promise,function(){kYM(f);f.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var nbz=function(f,S,B){f.player.addEventListener(S,B);f.playerEvents_.push({eventName:S,callback:B})},sl$={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},DJu={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},Ieu=function(f,S,B){X5.call(this,f,S,B);this.cueId_="playbackTrigger-"+Math.random()};
_.q(Ieu,X5);
Ieu.prototype.prepareTrigger=function(f){var S=this,B=this.player.getDuration(),G=this.player.getVideoData(),g=G.isLive&&G.hasProgressBarBoundaries;if(g&&G.progressBarEndPositionUtcTimeMillis){var b=G.progressBarEndPositionUtcTimeMillis/1E3;isNaN(b)||(B=b)}var z=0;this.prefetchDelay>=0?g?G.progressBarStartPositionUtcTimeMillis&&(G=G.progressBarStartPositionUtcTimeMillis/1E3,isNaN(G)||(z=G+this.prefetchDelay)):z=this.prefetchDelay:z=B+this.prefetchDelay;g?this.player.addUtcCueRange(this.cueId_,z,B):
this.player.addCueRange(this.cueId_,z,B);_.jA(f.promise,function(){S.player.removeCueRange(S.cueId_)});
nbz(this,"onCueRangeEnter",function(X){X==S.cueId_&&f.resolve(B-z)})};
var UJ2=function(f,S){f.fragmentConfiguration_[S].requiredKeys.every(function(B){return!!f.prefetchedData_[B]})&&(f.validatedFragments_.push(S),S=f.missingFragments_.indexOf(S),S!==-1&&f.missingFragments_.splice(S,1))},Cuu=function(f){f.prefetchedFragments_.forEach(function(S){UJ2(f,S)})},pFX=function(f,S,B){this.pageFragments_=f;
this.prefetchedFragments_=S;this.fragmentConfiguration_=DJu;this.prefetchedData_=B;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;Cuu(this)},AOB=function(){},NvZ=function(f){this.JSC$11132_playlistManager_=f};
_.q(NvZ,AOB);NvZ.prototype.getPrefetchEndpoint=function(){return this.JSC$11132_playlistManager_.getAutoplayEndpoint()};
var MdM=function(f){this.autonavEndpoints_=f};
_.q(MdM,AOB);MdM.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var ZPM=function(f,S,B,G,g){this.autonavEndpoints=f;this.foregroundTrigger=S;this.backgroundTrigger=B;this.pageType=G;this.isInPlaylist=g},tdM=function(f,S){if(f.webPrefetchData&&f.webPrefetchData.navigationEndpoints&&f.webPrefetchData.navigationEndpoints.length){f=f.webPrefetchData.navigationEndpoints;
var B=_.H(f[0],_.t2);if(B.watchEndpointSupportedPrefetchConfig&&B.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var G=B.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;B=G.playbackRelativeSecondsPrefetchCondition;B=typeof B==="number"&&Math.abs(B)<S.videoDuration?B:void 0;G=G.countdownUiRelativeSecondsPrefetchCondition;G=typeof G!=="number"||_.K("prefetch_job_config_cleanup_ks")&&S.inPlaylist?void 0:G;if(typeof G==="number")return new ZPM(f,S.makeUpNextTrigger(G),S.makePlaybackTrigger(G),
"watch",S.inPlaylist);if(typeof B==="number")return new ZPM(f,S.makePlaybackTrigger(B),null,"watch",S.inPlaylist)}}},uco=function(f){return f.prefetchJobConfig_.backgroundTrigger?_.Ij(_.IRN)()==0?f.prefetchJobConfig_.backgroundTrigger:f.prefetchJobConfig_.foregroundTrigger:f.prefetchJobConfig_.foregroundTrigger},aeu=function(f){_.qM(document,"visibilitychange",f.onVisibilityChange_,!1,f)},w7=function(f){z3.call(this,f)};
_.q(w7,z3);w7.prototype.getCacheKeyForEndpoint=function(f){return z3.prototype.getCacheKeyForEndpoint.call(this,f)};
w7.prototype.getTempData=function(){return{}};
w7.prototype.getXhrParams=function(f){return f};
w7.prototype.getParams=function(){return{}};
var yOO=function(f,S,B){var G=f.prefetchDelay*1E3;if(Math.abs(G)>S)B.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var g=G,b=S-G;G<0&&(g=S+G,b=Math.abs(G));var z=f.JSC$11118_taskManager.addJob(function(){B.resolve(b/1E3)},10,g);
B.promise.thenCatch(function(){f.JSC$11118_taskManager.cancelJob(z)})}},W9O=function(f,S,B){X5.call(this,f,S,B)};
_.q(W9O,X5);W9O.prototype.prepareTrigger=function(f){var S=this;nbz(this,"onAutonavCoundownStarted",function(B){yOO(S,B,f)})};
var cOu=function(f){f.pendingPrefetchJob_&&(f.pendingPrefetchJob_.cancel(),f.pendingPrefetchJob_=null)},leu=function(f,S,B){if(!f.triggeredTargets.has(S)){var G=_.lyX(f,S);
G.action=B;_.WYL(f,S,G)}},fwM=function(f){_.IJm();
_.lRT("cpt")&&_.Lg(Error("lh"));_.S1.requestAnimationFrame(function(){_.S1.setTimeout(function(){_.kT("cpt");var S=_.Du("vpl"),B=_.Du("cpt");S&&B&&_.kT("ol",Math.max(S,B))})});
try{_.kT("fr_s"),f()}catch(S){_.xH(S)}_.S1.requestAnimationFrame(function(){_.kT("bcp")})},oeY=function(f,S){f.serviceEndpointHandlers.push(S)},SnM=function(f,S){S=f.pendingPages_.indexOf(S);
S>-1&&f.pendingPages_.splice(S,1)},BR2=function(f,S){var B=_.eMN.indexOf(S);
B>-1&&_.eMN.splice(B,1);f.targetPage_==S?(f.abort(),_.mnL(f)):SnM(f,S)},GiB=function(f,S,B,G){S={challenge:S};
B&&(S.webResponse=B);return _.sX(f.innertubeTransportService,S,_.lC($JX),G)},geu=function(f,S,B){if(!S.challenge)throw Error("ni");
if(S.botguardData&&S.botguardData.program){var G=new iPu;G.initialize(S.botguardData,function(){qW2(G,{atr_challenge:S.challenge}).then(function(g){if(!g)throw Error("oi");return GiB(f,S.challenge,g,B)}).catch(function(g){_.Lg(g);
return GiB(f,S.challenge,void 0,B)})},void 0)}else GiB(f,S.challenge,void 0,B)},e5o=function(f,S,B){var G={};
S.ids&&(G.ids=[].concat(_.$d(S.ids)));S.engagementType&&(G.engagementType=S.engagementType);return _.sX(f.innertubeTransportService,G,_.lC(_.pnm),B).then(function(g){if(!g)throw new _.dO("GetAttestationChallenge returned falsy");geu(f,g,B)}).thenCatch(function(g){_.xH(g)})},bHX=function(f,S,B){return new _.TM(function(G,g){var b;
return _.R(function(z){if(z.nextAddress==1){var X=S.engagementType,w=S.ids,F={};w=_.m(w!=null?w:[]);for(var V=w.next();!V.done;V=w.next())V=V.value,V.encryptedVideoId?F.encryptedVideoId=V.encryptedVideoId:V.externalChannelId?F.externalChannelId=V.externalChannelId:V.commentId?F.commentId=V.commentId:V.externalOwnerId?F.externalOwnerId=V.externalOwnerId:V.artistId?F.artistId=V.artistId:V.playlistId?F.playlistId=V.playlistId:V.externalPostId?F.externalPostId=V.externalPostId:V.shareId&&(F.shareId=V.shareId);
return _.h(z,HNO(X,F),2)}b=z.yieldResult;if(!b.challenge)return _.Lg(Error("pi")),e5o(f,S,B).then(G,g),z.return();X=b;F={challenge:X.challenge};F.webResponse=X.webResponse;F.engagementType=S.engagementType;F.ids=S.ids;_.sX(f.innertubeTransportService,F,_.lC($JX),B).then(G,g);_.TT(z)})})},QDu=function(f,S){var B,G,g,b;
_.R(function(z){if(z.nextAddress==1){B=_.H(S,_.EW7);if(!(B&&B.listId&&f.response&&f.response.playingVideoId)||f.listId!==B.listId)return z.return();f.index===void 0&&(f.index=0);return _.h(z,_.bfm(f.JSC$10863_playlistNetworkManager,B.listId,f.index,f.response.playingVideoId),2)}G=z.yieldResult;if(!G)return z.return();g=G.playlistId;b=G.playlistPanelRenderer;f.setPlaylistData(g,b,G.autoplayRenderer);_.TT(z)})},mBn=function(f,S,B){var G=f.getParams(B),g=_.qns(S,G),b=f.getTempData(S,B);
b.endpoint=JSON.stringify(S);_.K("enable_unknown_lact_fix_on_html5")&&(_.oy().resolve(_.k8),b.lact=_.or());var z={headers:{"X-YouTube-STS":_.nL("STS"),"x-youtube-csoc":1}};_.WZ(g,b);return new _.TM(function(X,w){var F=f.getXhrParams(G),V;_.K("kevlar_cache_on_ttl_player")&&(V=_.H4.instance);V&&_.jA6(V,S)?_.DuL(V,S,b,window.location.href).then(function(J){J?X(J):w()},w):_.SNm(f.JSC$11108_networkManager_,S,F,f.onPartsCallback_.bind(f),z).then(function(J){J?X(J):w()},w)})},z5$=function(f,S){f.triggerPromise_=
S.start();
f.triggerPromise_.then(function(B){var G=f.prefetchEndpointProvider_.getPrefetchEndpoint();if(G){var g=sl$[f.prefetchJobConfig_.pageType].prefetchedFragments;f.prefetchRequestPromise_=mBn(f.JSC$11144_networkPrefetchRequest_,G,{fragmentsRequested:g,timeBeforeNextVideo:B});f.prefetchResponseCacheKey_=f.JSC$11144_networkPrefetchRequest_.getCacheKeyForEndpoint(G);aeu(f);f.prefetchRequestPromise_.then(function(b){f.storePrefetchedDataCallback_(f.prefetchResponseCacheKey_,b);if(_.K("web_prefetch_preload_video")&&
g.length===1&&g[0]==="pl"&&b&&!b.playerAds&&!b.adPlacements){var z=_.H(G,_.QW),X=z!=null,w={raw_player_response:b,watch_endpoint:z};(b=_.oy().resolve(X?_.Al7:_.ms))&&G&&b.then(function(F){X&&_.K("web_queue_preload_video")?(w.prefer_gapless=!0,F.queueNextVideo(w)):F.preloadVideoByPlayerVars(w)})}})}})},hI=function(f,S,B,G){this.prefetchEndpointProvider_=f;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=S;this.prefetchJobConfig_=B;this.JSC$11144_networkPrefetchRequest_=G;this.prefetchResponseCacheKey_=null};
hI.prototype.enqueue=function(){this.triggerPromise_||(z5$(this,uco(this)),_.jP(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
hI.prototype.resolve=function(){this.cancel()};
hI.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.");aeu(this)};
hI.prototype.onVisibilityChange_=function(){var f=this;_.Ij(_.IRN)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){f.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||z5$(this,uco(this))};
R5M=function(f,S,B,G,g){S&&(S==null?0:S.videoId)&&B&&B.entries&&_.K("kevlar_enable_shorts_prefetch_in_sequence")&&(cOu(f),S=B.entries.map(function(b){var z;return(z=_.H(b.command,_.QW))==null?void 0:z.videoId}).indexOf(S.videoId),B=B.entries[S+1],B!=null&&B.command&&!_.H(B==null?void 0:B.command,_.s2)&&(G=new ZPM([B.command],new Ieu(G,_.xJ,1),null,"shorts",!1),f.pendingPrefetchJob_=new hI(new MdM(G.autonavEndpoints),function(){return!1},G,new w7(g)),f.pendingPrefetchJob_.enqueue()))};
Xs2=function(f,S,B,G,g,b){var z=_.fD.getInstance();if(!_.K("block_all_player_prefetch_requests")){cOu(f);var X=!!B.getPlaylistId(),w=B.getVideoData().isLive&&B.getVideoData().hasProgressBarBoundaries;if((z.getState()==2||X||w)&&(!B.getVideoData().isLive||w)){z={inPlaylist:X,videoDuration:B.getDuration(),makeUpNextTrigger:function(V){return new W9O(B,_.xJ,V)},
makePlaybackTrigger:function(V){return new Ieu(B,_.xJ,V)}};
var F=tdM(S,z);F&&(f.pendingPrefetchJob_=new hI(F.isInPlaylist?new NvZ(g):new MdM(F.autonavEndpoints),function(V,J){J=new pFX(sl$[F.pageType].pageFragments,sl$[F.pageType].prefetchedFragments,J);return _.pxN(J)?(f.prefetchCache_.set(V,J),!0):!1},F,new RE(G,B,b,g)),f.pendingPrefetchJob_.enqueue())}}};
wsX=function(){var f=_.A0();f.signals.parkOrScheduleJob(function(){var S=f.storage;if(S.storage)if(OP$(S)){var B=S.getPlaylistId();S=xJn(S);B=!!B&&S!==void 0}else S.clear(),B=!1;else B=!1;if(B){B=f.pageManager.isOnWatch();a:{var G=f.storage;if(G.storage&&OP$(G)&&(S=G.getPlaylistId(),G=xJn(G),S&&G!==void 0)){B={recoverPlaylistCommand:{listId:S,index:G,openMiniplayer:!B,openListPanel:B,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}B=void 0}B&&_.sc(f.JSC$10863_actionRouter,[B],null)}},0,"ma")};
h5M=function(f,S,B,G,g,b){var z=_.Eo(7111);_.Xo(f.JSC$16189_screenManager,z,b?_.Ye(b):void 0);_.h0(f.JSC$16189_screenManager,z,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:G,offlineId:S,offlineabilityFormatType:B,isDefaultFormatType:g==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:g}})};
TRY=function(f,S,B,G,g){var b,z,X,w,F;return _.R(function(V){if(V.nextAddress==1)return _.h(V,f.JSC$16189_playerApiPromise,2);b=V.yieldResult;h5M(f,S,B,"OFFLINE_OBJECT_TYPE_PLAYLIST",G,g);if(X=_.EPg[f.entityTypeMap.listEntityType])F={},z=(F[X]={maximumDownloadQuality:(w=B)!=null?w:void 0},F);return _.h(V,b.queueOfflineAction(S,f.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",z),0)})};
FTY=function(f,S){var B,G,g,b;return _.R(function(z){if(z.nextAddress==1)return _.h(z,f.JSC$16189_persistentStorePromiseAccessor(),2);if(z.nextAddress!=3){B=z.yieldResult;if(!B)return _.Lg(new _.dO("PES is undefined")),z.return();G=_.XV(S,"downloadStatusEntity");return _.h(z,jlY(B,G,"downloadStatusEntity"),3)}g=z.yieldResult;return z.return((b=g)==null?void 0:b.downloadState)})};
VP2=function(f,S,B,G,g){var b,z,X,w,F,V;return _.R(function(J){switch(J.nextAddress){case 1:return _.h(J,f.JSC$16189_playerApiPromise,2);case 2:b=J.yieldResult;h5M(f,S,B,"OFFLINE_OBJECT_TYPE_VIDEO",G,g);if(X=_.EPg[f.entityTypeMap.singleEntityType])F={},z=(F[X]={maximumDownloadQuality:(w=B)!=null?w:void 0},F);return _.h(J,FTY(f,S),3);case 3:V=J.yieldResult;if(V!=="DOWNLOAD_STATE_USER_DELETED"){J.jumpTo(4);break}return _.h(J,f.deleteVideo(S),4);case 4:return _.h(J,b.queueOfflineAction(S,f.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",z),0)}})};
JZe=function(f,S,B,G,g){return _.R(function(b){return b.nextAddress==1?_.h(b,f.deleteVideo(S,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):_.h(b,VP2(f,S,B,G,g),0)})};
Pko=function(f,S,B){var G,g;return _.R(function(b){if(b.nextAddress==1)return _.h(b,f.JSC$16189_playerApiPromise,2);G=b.yieldResult;g=_.XV(S,"mainVideoDownloadStateEntity");return _.h(b,G.updateDownloadState(g,B),0)})};
h7$=function(f){var S=_.oy().resolve(_.lV);return _.R(function(B){if(B.nextAddress==1)return S.previousDownloadStateForVideo[f]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&S.previousDownloadStateForVideo[f]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?B.jumpTo(2):_.h(B,S.resumeVideoDownload(f),2);if(B.nextAddress!=4)return _.h(B,Pko(S,f,S.previousDownloadStateForVideo[f]),4);delete S.previousDownloadStateForVideo[f];_.TT(B)})};
Xt2=function(f,S){var B;return _.R(function(G){if(G.nextAddress==1)return _.h(G,f.JSC$16189_playerApiPromise,2);B=G.yieldResult;return _.h(G,B.queueOfflineAction(S,f.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
moo=function(){var f=_.oy().resolve(_.lV),S,B;return _.R(function(G){if(G.nextAddress==1)return _.h(G,f.JSC$16189_playerApiPromise,2);if(G.nextAddress!=3)return S=G.yieldResult,B={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},_.h(G,S.queueOfflineAction("!*$_ALL_ENTITIES_!*$",f.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",B),3);var g=f.JSC$16189_commandHandler,b=g.resolveCommand,z=_.Jf("DELETING_ALL",void 0,"Downloads are being deleted");
b.call(g,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.B2(z)}},popupType:"TOAST"}});_.TT(G)})};
ve2=function(f,S){var B,G,g,b,z,X;return _.R(function(w){if(w.nextAddress==1)return _.h(w,f.JSC$16189_persistentStorePromiseAccessor(),2);if(w.nextAddress!=3)return B=w.yieldResult,B?_.h(w,jlY(B,_.Yr,"downloadsPageViewConfigurationEntity"),3):(_.Lg(new _.dO("PES is undefined")),w.return());g=(G=w.yieldResult)!=null?G:{};X=(z=(b=g)==null?void 0:b.downloadsUpsellBannerVisibility)!=null?z:{};return X.visibleWithConnection?_.h(w,S.refreshAllStaleEntities(0),0):w.jumpTo(0)})};
KT2=function(f){var S,B;return _.R(function(G){if(G.nextAddress==1)return _.h(G,f.JSC$16189_prefStorage,2);S=G.yieldResult;return G.return((B=S)==null?void 0:B.get("sdois"))})};
dBu=function(f){var S,B,G,g,b,z;return _.R(function(X){if(X.nextAddress==1)return _.h(X,f.JSC$16189_persistentStorePromiseAccessor(),2);if(X.nextAddress!=3){S=X.yieldResult;if(!S)return _.Lg(new _.dO("PES is undefined")),X.return();B=_.XV("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return _.h(X,jlY(S,B,"settingEntity"),3)}G=X.yieldResult;return X.return((z=(g=G)==null?void 0:(b=g.settingOptionValue)==null?void 0:b.boolValue)!=null?z:!1)})};
iHX=function(f,S){var B,G,g,b;return _.R(function(z){switch(z.nextAddress){case 1:return((B=S)==null?void 0:B.formatType)===void 0?z.return():_.h(z,f.JSC$16189_prefStorage,2);case 2:G=z.yieldResult;if(G===void 0)return z.return();if(((g=S)==null?void 0:g.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return _.h(z,G.set("lmqf",S.formatType),8);if(((b=S)==null?void 0:b.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){z.jumpTo(0);break}return _.h(z,G.set("lmqf",S.formatType),
6);case 6:return _.h(z,G.set("lmqflst",Math.floor((0,_.fO)())),0);case 8:return _.h(z,G.remove("lmqflst"),0)}})};
HHn=function(f){var S,B;return _.R(function(G){switch(G.nextAddress){case 1:return _.h(G,f.JSC$16189_prefStorage,2);case 2:S=G.yieldResult;if(!S){G.jumpTo(3);break}return _.h(G,S.get("lmqflst"),4);case 4:if(B=G.yieldResult,B!==void 0)return G.return(B);case 3:return G.return(0)}})};
qnX=function(f){var S,B;return _.R(function(G){switch(G.nextAddress){case 1:return _.h(G,f.JSC$16189_prefStorage,2);case 2:S=G.yieldResult;if(S===void 0){G.jumpTo(3);break}return _.h(G,S.get("lmqf"),4);case 4:if(B=G.yieldResult,B!==void 0)return G.return(B);case 3:return G.return("SD")}})};
don=function(f,S,B){var G,g,b,z,X,w,F,V;_.R(function(J){switch(J.nextAddress){case 1:return _.h(J,iHX(f,(G=S)==null?void 0:G.actionParams),2);case 2:g=S.playlistId;if(!g)return J.return();if(S.action==="ACTION_ADD")return((z=S.actionParams)==null?0:z.formatType)?_.h(J,TRY(f,g,S.actionParams.formatType,(V=S.actionParams)==null?void 0:V.settingsAction,B),0):_.h(J,f.offlineWebClientEligibility,14);if(S.action==="ACTION_REMOVE_WITH_PROMPT"){var P=f.JSC$16189_commandHandler,d=P.resolveCommand,Q=_.nL("INNERTUBE_CLIENT_NAME");
var x=Q==="WEB_REMIX"?_.Jf("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Jf("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var E=Q==="WEB_REMIX"?[_.Jf("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];Q=Q==="WEB_REMIX"?_.Jf("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Jf("DELETE",void 0,"Delete");var U=_.Jf("CANCEL",void 0,"Cancel");x=qZY(x,E,Q,U,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:g});d.call(P,{openPopupAction:x});
return J.return()}if(S.action==="ACTION_REMOVE")return _.h(J,Xt2(f,g),0);if(S.action!=="ACTION_SYNC"){J.jumpTo(0);break}return _.h(J,f.JSC$16189_playerApiPromise,9);case 9:return b=J.yieldResult,_.h(J,b.queueOfflineAction(g,f.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return X=J.yieldResult,_.h(J,qnX(f),15);case 15:return w=J.yieldResult,_.h(J,HHn(f),16);case 16:F=J.yieldResult,S.onAddCommand&&f.JSC$16189_commandHandler.resolveCommand(S.onAddCommand,{form:{preferredFormatType:w,
offlineWebClientEligibility:X,lastOfflineQualitySettingsSavedMs:F.toString()}}),J.jumpTo(0)}})};
vG2=function(f,S,B){var G,g,b,z,X,w,F,V,J,P,d,Q,x,E;_.R(function(U){switch(U.nextAddress){case 1:return _.h(U,iHX(f,(G=S)==null?void 0:G.actionParams),2);case 2:g=S.videoId;if(!g)return U.return();if(S.action==="ACTION_REMOVE_WITH_PROMPT"){var A=f.JSC$16189_commandHandler,t=A.resolveCommand,M=_.nL("INNERTUBE_CLIENT_NAME");var a=M==="WEB_REMIX"?_.Jf("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Jf("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var l=M==="WEB_REMIX"?[_.Jf("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];M=M==="WEB_REMIX"?_.Jf("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Jf("DELETE",void 0,"Delete");var mx=_.Jf("CANCEL",void 0,"Cancel");a=qZY(a,l,M,mx,{signal:"DELETE_DOWNLOAD",targetId:g});t.call(A,{openPopupAction:a});return U.return()}if(S.action==="ACTION_ADD")return((P=S.actionParams)==null?0:P.formatType)?_.h(U,VP2(f,g,S.actionParams.formatType,(E=S.actionParams)==null?void 0:E.settingsAction,B),0):_.h(U,f.offlineWebClientEligibility,
23);if(S.action==="ACTION_RETRY")return _.h(U,qnX(f),19);if(S.action==="ACTION_PAUSE")return _.h(U,f.pauseVideoDownload(g),0);if(S.action==="ACTION_RESUME")return _.h(U,f.resumeVideoDownload(g),0);if(S.action!=="ACTION_REMOVE"){U.jumpTo(0);break}return _.h(U,FTY(f,g),13);case 13:return b=U.yieldResult,f.previousDownloadStateForVideo[g]=(z=b)!=null?z:"DOWNLOAD_STATE_UNKNOWN",_.h(U,Pko(f,g,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(f.previousDownloadStateForVideo[g]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
f.previousDownloadStateForVideo[g]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){U.jumpTo(15);break}return _.h(U,f.pauseVideoDownload(g),15);case 15:A=_.Jf("DELETED_VIDEO",void 0,"Video deleted from downloads.");t=_.Jf("UNDO_ACTION",void 0,"Undo");a=_.Jf("CLOSE",void 0,"Close");X={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.B2(A),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.B2(t),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:g}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:A+" "+t}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:g}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:a}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};f.JSC$16189_commandHandler.resolveCommand(X);
U.jumpTo(0);break;case 19:w=U.yieldResult;w==="UNKNOWN_FORMAT_TYPE"&&(w="SD");F="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((V=S.actionParams)==null?0:V.formatType)w=S.actionParams.formatType,F=(J=S.actionParams)==null?void 0:J.settingsAction;return _.h(U,JZe(f,g,w,F,B),20);case 20:return U.return();case 23:return d=U.yieldResult,_.h(U,qnX(f),24);case 24:return Q=U.yieldResult,_.h(U,HHn(f),25);case 25:x=U.yieldResult,S.onAddCommand&&f.JSC$16189_commandHandler.resolveCommand(S.onAddCommand,
{form:{preferredFormatType:Q,offlineWebClientEligibility:d,lastOfflineQualitySettingsSavedMs:x.toString()}}),U.jumpTo(0)}})};
$BX=function(f,S){var B,G,g,b,z,X,w;return _.R(function(F){if(F.nextAddress==1)return _.h(F,f.JSC$16189_persistentStorePromiseAccessor(),2);B=F.yieldResult;if(!B)return _.Lg(new _.dO("PES is undefined")),F.return();if((G=S)==null||!G.settingItemId)return F.return();g=S;b=g.settingItemId;z=g.boolValue;X=_.XV(b,"settingEntity");w={key:X,settingOptionValue:{boolValue:z}};return _.h(F,rOu(B,w),0)})};
QSz=function(f,S){var B,G,g,b,z,X,w;return _.R(function(F){switch(F.nextAddress){case 1:return _.h(F,f.JSC$16189_prefStorage,2);case 2:return B=F.yieldResult,G=_.K2(),_.h(F,f.JSC$16189_persistentStorePromiseAccessor(),3);case 3:return g=F.yieldResult,B?g?_.h(F,B.get("sdois"),4):(_.Lg(new _.dO("PES is undefined")),F.return()):(_.Lg(new _.dO("prefStorage is undefined")),F.return());case 4:b=F.yieldResult;X=(z=S)==null?void 0:z.boolValue;X===void 0||_.K("kevlar_set_sd_enabled_flag_killswitch")||_.dh(0,
197,!0);b===void 0&&X===void 0&&(X=!1);if(X===void 0){F.jumpTo(0);break}return _.h(F,B.set("sdois",X),6);case 6:return _.K("kevlar_set_sd_enabled_flag_killswitch")||(_.dh(0,196,X),G.save()),w={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:X},_.h(F,$BX(f,w),0)}})};
YnB=function(f,S,B){var G,g,b,z,X;return _.R(function(w){switch(w.nextAddress){case 1:return _.h(w,KT2(f),2);case 2:return G=w.yieldResult,_.h(w,QSz(f,B),3);case 3:return _.h(w,KT2(f),4);case 4:return g=w.yieldResult,b=g!==G,_.h(w,dBu(f),5);case 5:z=w.yieldResult&&!_.K("kevlar_modern_downloads_page");if((X=!g&&!z)||b)return _.h(w,S.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);w.jumpTo(0)}})};
FdO=function(){var f=_.oy().resolve(_.lV),S;_.R(function(B){switch(B.nextAddress){case 1:return _.h(B,f.JSC$16189_playerApiPromise,2);case 2:S=B.yieldResult;if(!_.K("kevlar_force_refresh_smart_downloads")){B.jumpTo(3);break}return _.h(B,S.refreshAllStaleEntities(0),4);case 4:return B.return();case 3:return _.h(B,S.refreshAllStaleEntities(),5);case 5:return _.h(B,YnB(f,S),6);case 6:if(_.K("enable_download_pep_for_premium_countries"))return _.h(B,ve2(f,S),0);B.jumpTo(0)}})};
Hne=function(f,S){var B,G;_.R(function(g){switch(g.nextAddress){case 1:return _.h(g,f.JSC$16189_playerApiPromise,2);case 2:B=g.yieldResult;switch((G=S)==null?void 0:G.settingItemId){case "SMART_DOWNLOADS_ENABLED":return g.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return g.jumpTo(4)}g.jumpTo(0);break;case 3:return _.h(g,YnB(f,B,S),6);case 6:g.jumpTo(0);break;case 4:return _.h(g,$BX(f,S),7);case 7:g.jumpTo(0)}})};
rZu=function(f,S){var B,G,g;return _.R(function(b){if(b.nextAddress==1)return _.h(b,f.JSC$16189_persistentStorePromiseAccessor(),2);if(b.nextAddress!=3){B=b.yieldResult;if(!B)return _.Lg(new _.dO("PES is undefined")),b.return(!1);if(!S)return b.return(!1);G=_.XV(S,"mainVideoEntity");return _.h(b,jlY(B,G,"mainVideoEntity"),3)}g=b.yieldResult;return b.return(g!==void 0)})};
$oY=function(f){var S=_.oy().resolve(_.lV),B,G,g,b,z,X,w,F,V,J,P;_.R(function(d){switch(d.nextAddress){case 1:return _.h(d,S.JSC$16189_playerApiPromise,2);case 2:B=d.yieldResult;g=(G=f)==null?void 0:G.actions;if(!g)return d.return();b=_.m(g);z=b.next();case 3:if(z.done){d.jumpTo(0);break}X=z.value;F=w=void 0;if(!(((w=X)==null?0:w.entityKey)&&((F=X)==null?0:F.actionType))){d.jumpTo(4);break}V=_.mW(X.entityKey);J=V.entityId;P=V.entityType;return _.h(d,B.queueOfflineAction(J,P,X.actionType),4);case 4:z=
b.next(),d.jumpTo(3)}})};
jSO=function(f,S){var B,G,g,b,z;return _.R(function(X){if(X.nextAddress==1)return _.h(X,f.JSC$16189_prefStorage,2);if(X.nextAddress!=3)return(B=X.yieldResult)?_.h(X,B.get("psi"),3):X.return();G=X.yieldResult;z={isPaused:S,lastSyncTimestamp:(b=(g=G)==null?void 0:g.lastSyncTimestamp)!=null?b:"0"};return _.h(X,B.set("psi",z),0)})};
rKe=function(f){var S=_.oy().resolve(_.lV),B,G,g,b,z,X,w,F;return _.R(function(V){switch(V.nextAddress){case 1:return _.h(V,S.JSC$16189_playerApiPromise,2);case 2:B=V.yieldResult;g=((G=f)==null?void 0:G.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((X=f)==null?void 0:X.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":b="!*$_ALL_ENTITIES_!*$";z="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return V.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return V.jumpTo(4)}V.jumpTo(5);break;case 3:return _.h(V,jSO(S,g),6);case 6:V.jumpTo(5);break;case 4:return _.h(V,rZu(S,(w=f)==null?void 0:w.videoId),7);case 7:V.yieldResult&&(b=(F=f)==null?void 0:F.videoId,z="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");V.jumpTo(5);break;case 5:if(b&&z)return _.h(V,B.queueOfflineAction(b,"videoPlaybackPositionEntity",z),0);V.jumpTo(0)}})};
OHu=function(f,S){var B;S!==1||((B=f.currentPersistentToast)==null?0:B.isOpened())?f.openToast():f.currentPersistentToast=void 0};
xBu=function(f,S){var B;return(B=f.transitionTasksMap.get(S))!=null?B:[]};
EeX=function(f,S){var B=[];f.elementTasksMap.forEach(function(G){(G=G.get(S))&&B.push(G)});
return B};
LTn=function(f,S,B,G){G=G===void 0?{}:G;var g=f.defaultViewTransitionOptions;return Object.assign({},g,G,{beforeTransition:function(){B.forEach(function(w){w.beforeTransition()});
var b;(b=g.beforeTransition)==null||b.call(g);var z,X;(X=(z=G).beforeTransition)==null||X.call(z);S.forEach(function(w){w.beforeTransition()})},
afterTransition:function(){B.forEach(function(w){w.afterTransition()});
var b;(b=g.afterTransition)==null||b.call(g);var z,X;(X=(z=G).afterTransition)==null||X.call(z);S.forEach(function(w){w.afterTransition()})}})};
cb=function(f,S,B){f.transitionTasksMap.has(S)?f.transitionTasksMap.get(S).push(B):(f=new _.dO("Transition task registered for unknown transition type",S),_.xH(f))};
kiu=function(f,S,B){if(f.transitionTasksMap.has(S)){var G=f.transitionTasksMap.get(S).filter(function(g){return g!==B});
f.transitionTasksMap.set(S,G)}};
neu=function(f,S){var B=xBu(f,S);B=_.m(B);for(var G=B.next();!G.done;G=B.next())G=G.value,G.runOnce&&kiu(f,S,G);f.elementTasksMap.forEach(function(g,b){g.forEach(function(z,X){z.runOnce&&S===X&&(g.delete(X),g.size===0&&f.elementTasksMap.delete(b))})})};
sSu=function(f,S,B){var G,g,b,z,X,w,F,V,J;_.R(function(P){if(P.nextAddress==1){if(f.config.disableAllTransitions)return P.return(S());if((G=B)==null||!G.transitionType)return P.return(_.Ia$(S,(g=B)==null?void 0:g.viewTransitionOptions));b=B;z=b.transitionType;X=b.viewTransitionOptions;w=f.config.transitionConfigs.get(z);if(!w)return P.return(S());F=xBu(f,z);V=EeX(f,z);J=_.Ia$(S,LTn(w,F,V,X));return _.h(P,J,2)}neu(f,z);_.TT(P)})};
DB2=function(){var f,S,B,G;return _.R(function(g){if(g.nextAddress==1)return f=navigator,(S=f.storage)!=null&&S.persisted?_.h(g,(B=f.storage)==null?void 0:B.persisted(),2):g.return("PERSISTED_STATE_NOT_SUPPORTED");G=g.yieldResult;return g.return(G?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
Iwz=function(){var f,S,B,G;return _.R(function(g){if(g.nextAddress==1)return f=navigator,(S=f.storage)!=null&&S.persist?_.h(g,(B=f.storage)==null?void 0:B.persist(),2):g.return("PERSISTED_STATE_NOT_SUPPORTED");G=g.yieldResult;return g.return(G?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
UBn=function(){var f,S;return _.R(function(B){switch(B.nextAddress){case 1:return f="PERSISTED_STATE_NOT_SUPPORTED",_.zT(B,2),_.h(B,DB2(),4);case 4:f=B.yieldResult;if(f!=="PERSISTED_STATE_NOT_GRANTED"){B.jumpTo(5);break}return _.h(B,Iwz(),6);case 6:f=B.yieldResult;case 5:_.CN(B,3);break;case 2:S=_.hm(B),S instanceof Error&&_.xH(S);case 3:return _.jD("persistentStorageStateChecked",{persistedState:f}),B.return(f)}})};
Ckz=function(f,S){var B=[],G=!1;S=_.m(S);for(var g=S.next();!g.done;g=S.next()){g=f.moduleRegistry[g.value];var b=void 0,z=void 0;((b=g)==null?0:b.isFetching)&&((z=g)==null?0:z.resolver)?(B.push(g.resolver.promise),G=!0):(g=new _.w3,g.resolve(void 0),B.push(g.promise))}return G?Promise.all(B):void 0};
pse=function(f,S,B){if(f.isInitialized()){var G=Bb(B),g=G==="watch";G=G==="shorts";var b=Bb(S)==="watch";if(g)b||(f.backgroundPageData=S),f.watchPipMode&&b||f.deactivate(B.endpoint);else if(G){if(Bb(S)!=="shorts"){var z;(z=f.getPlayerElement())==null||z.pause()}}else b&&!f.watchPipMode&&(Qy2(S,B)?(f.watchWhileMode&&_.CdM(f,!1),_.kXO(f,S)):f.isMiniplayerActive()&&f.watchWhileMode&&f.deactivate());b&&_.Arn(f);f.shortsPipMode&&!G&&(window.focus(),f.deactivate());if(f.pictureInPictureEnabled())if(G&&
f.shortsPipEnabled||g&&f.watchPipEnabled)_.nBT(f.handleMediaSessionPipActivation);else if(!f.isMiniplayerActive()&&(f.shortsPipEnabled||f.watchPipEnabled)&&window.documentPictureInPicture&&_.xQ()&&_.X91("Chromium")>=120){f=_.k_s().mediaSession;try{f.setActionHandler("enterpictureinpicture",null)}catch(X){}}}};
AZO=function(f,S){var B,G;_.R(function(g){if(g.nextAddress==1){if(!f||!f.navigationEndpoint)return g.return();_.Pn().lockupActivation=!0;var b;S?b=_.uC(_.Jf("QUEUE",void 0,"Queue")):b=f.longBylineText;G=(B=b)&&f.title?{miniplayerTitle:f.title,miniplayerSubtitle:B,playlistData:null}:void 0;return _.h(g,_.CI7(_.oy().resolve(_.N_),f.navigationEndpoint,!0,G),2)}_.Pn().userActivation=!0;_.TT(g)})};
H2e=function(f,S){var B,G,g,b,z,X;_.R(function(w){if(w.nextAddress==1){B=_.H(S,_.xa1);if(!B||!B.listId)return w.return();f.index=B.index||f.index||0;G=f.response&&f.response.playingVideoId||void 0;return _.h(w,_.bfm(f.JSC$10863_playlistNetworkManager,B.listId,f.index,G),2)}g=w.yieldResult;if(!g)return w.return();b=g.playlistId;z=g.playlistPanelRenderer;!f.queueProxy&&b&&z&&b.startsWith("TLPQ")&&(f.queueProxy=new _.kZ(f.JSC$10863_playlistNetworkManager,b,f.setPlaylistData.bind(f),f.clearQueue.bind(f),
_.NYQ(z),f.storage));if(B.openMiniplayer&&(X=_.MEV(z))&&!f.pageManager.isOnWatch()){var F=X,V=B.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";f.isMiniplayerActive()?f.openToast(F):AZO(F,V)}f.setPlaylistData(b,z,g.autoplayRenderer);_.TT(w)})};
KUo=function(f,S){var B=_.A0();B.index===void 0&&(B.index=0);B.temporaryItems.push.apply(B.temporaryItems,_.$d(f));if((S.videoId||S.videoIds)&&B.index!==void 0&&S.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!B.queueProxy){var G=[];if(B.response){var g=_.oy().resolve(_.N_).isMiniplayerActive();if(B.response.playlistPanelRenderer&&B.response.playlistId&&!B.response.playlistId.startsWith("TLPQ")){if(B.pageManager.isOnWatch()||g)G=_.NYQ(B.response.playlistPanelRenderer)}else B.response.playingVideoId&&
!S.openMiniplayer?G.push(B.response.playingVideoId):g&&B.response.playingVideoId&&S.openMiniplayer&&G.push(B.response.playingVideoId)}B.queueProxy=new _.kZ(B.JSC$10863_playlistNetworkManager,"",B.setPlaylistData.bind(B),B.clearQueue.bind(B),G,B.storage);B.queueProxy.JSC$10809_setCurrentIndex(B.index)}B.queueProxy.addVideos(S.videoIds||[S.videoId],S)}Eb$(B,f);B.response&&_.Nw(B,_.Mw(B,B.response.autoplayRenderer));B.pageManager.isOnWatch()?B.isMiniplayerActive()&&B.openToast(f[0]):(f=f[0],S=S.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",B.isMiniplayerActive()?B.openToast(f):AZO(f,S))};
NRZ=function(f){var S=_.Xu(f);if(S=="object"||S=="array"){if(typeof f.clone==="function")return f.clone();if(typeof Map!=="undefined"&&f instanceof Map)return new Map(f);if(typeof Set!=="undefined"&&f instanceof Set)return new Set(f);S=S=="array"?[]:{};for(var B in f)S[B]=NRZ(f[B]);return S}return f};
T3=function(f,S){return _.aN9(_.H_(f,S,void 0,_.ih))};
F5=function(f,S){return _.q2(_.H_(f,S,void 0,_.ih))};
Vn=function(f,S){return _.TNT(_.H_(f,S,void 0,_.ih))};
JI=function(f,S){return _.H_(f,S,void 0,_.ih,_.Ro)};
MPu=_.Nk(function(f,S,B){if(f.nextWireType_!==0)return!1;_.Mk(S,B,_.Na(f.decoder_,_.S2));return!0},_.yH,_.t$);
ZHn=_.Nk(function(f,S,B,G){if(f.nextWireType_!==0)return!1;_.YW(S,B,G,_.Na(f.decoder_,_.S2));return!0},_.yH,_.t$);
tP2=_.Nk(function(f,S,B){if(f.nextWireType_!==1)return!1;var G=f.decoder_;f=_.ZI(G);G=_.ZI(G);f=_.fY(f,G);_.Mk(S,B,f);return!0},_.ZYT,_.LJ1);
u_Y=_.Nk(function(f,S,B){if(f.nextWireType_!==5)return!1;_.Mk(S,B,_.ZI(f.decoder_));return!0},function(f,S,B){S=_.$$(S);
S!=null&&(_.tr(f,B,5),_.aO(f.encoder_,S))},_.E7T);
awu=_.Nk(function(f,S,B){if(f.nextWireType_!==0)return!1;f=_.wh1(f.decoder_);_.Mk(S,B,f===!1?void 0:f);return!0},_.t2G,_.rdW);
yZu=_.Nk(function(f,S,B){if(f.nextWireType_!==2)return!1;f=_.P2M(f);_.Mk(S,B,f===""?void 0:f);return!0},_.yX1,_.jWx);
WTu=_.Nk(function(f,S,B){if(f.nextWireType_!==2)return!1;f=_.v71(f);_.Mk(S,B,f===_.kX()?void 0:f);return!0},_.cXT,_.sWj);
cZu=_.D29(function(f,S,B){if(f.nextWireType_!==0&&f.nextWireType_!==2)return!1;S=_.QH(S,S[_.dN]|0,B);f.nextWireType_==2?_.KJK(f,eu$,S):S.push(_.Ma(f.decoder_));return!0},function(f,S,B){S=_.soj(_.q2,S,!0);
if(S!=null&&S.length){B=_.hBx(f,B);for(var G=0;G<S.length;G++)_.AXK(f.encoder_,S[G]);_.Tej(f,B)}},_.DYW);
lwO=_.Nk(function(f,S,B){if(f.nextWireType_!==0)return!1;f=_.Ma(f.decoder_);_.Mk(S,B,f===0?void 0:f);return!0},_.lZs,_.DYW);
fdn=_.Nk(function(f,S,B,G){if(f.nextWireType_!==0)return!1;_.YW(S,B,G,_.Ma(f.decoder_));return!0},_.lZs,_.DYW);
_.Za=function(f){this.privateDoNotAccessOrElseWrappedStyleSheet=f};
_.Za.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var ETM=function(f,S){return new _.ru(f.x+S.x,f.y+S.y)},o8z=function(f){return f.previousElementSibling!==void 0?f.previousElementSibling:_.aN7(f.previousSibling,!1)},Sou=function(f,S){var B=[];
for(S=S||0;S<f.length;S+=2)_.DNv(f[S],f[S+1],B);return B.join("&")},BmM=function(f,S){var B=arguments.length==2?Sou(arguments[1],0):Sou(arguments,1);
return _.sg8(f,B)},GDn=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(GDn,_.s7);GDn.prototype.getValue=function(){var f=_.H_(this,2);if(Array.isArray(f)||f instanceof _.s7)throw Error("aa");return _.Q9(this,2)};
var WIB=function(){var f=_.md();this.JSC$7962_streamzService=f;f.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.eI("channel_type"))};
WIB.prototype.increment=function(f){this.JSC$7962_streamzService.JSC$7832_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",f)};
var cL2=function(){var f=_.md();this.JSC$7965_streamzService=f;f.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.eI("channel_type"))};
cL2.prototype.increment=function(f){this.JSC$7965_streamzService.JSC$7832_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",f)};
var fTY=function(){var f=_.md();this.JSC$7968_streamzService=f;f.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.eI("channel_type"))};
fTY.prototype.increment=function(f){this.JSC$7968_streamzService.JSC$7832_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",f)};
var lce=function(){var f=_.md();this.JSC$7971_streamzService=f;f.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
lce.prototype.increment=function(){this.JSC$7971_streamzService.JSC$7832_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var oc2=function(){var f=_.md();this.JSC$7974_streamzService=f;f.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.eI("channel_type"),_.eI("error_type"))};
oc2.prototype.increment=function(f,S){this.JSC$7974_streamzService.JSC$7832_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",f,S)};
var SfM=function(){var f=_.md();this.JSC$7977_streamzService=f;f.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
SfM.prototype.increment=function(){this.JSC$7977_streamzService.JSC$7832_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var Bie=function(){var f=_.md();this.JSC$7980_streamzService=f;f.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
Bie.prototype.increment=function(){this.JSC$7980_streamzService.JSC$7832_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var u2O=function(){var f=_.md();this.JSC$7986_streamzService=f;f.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
u2O.prototype.increment=function(){this.JSC$7986_streamzService.JSC$7832_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var g82=function(f){return f.getCount&&typeof f.getCount=="function"?f.getCount():_.W9(f)||typeof f==="string"?f.length:_.$v.getCount(f)},edu=function(f,S){if(typeof f.every=="function")return f.every(S,void 0);
if(_.W9(f)||typeof f==="string")return Array.prototype.every.call(f,S,void 0);for(var B=_.IMX(f),G=_.oI(f),g=G.length,b=0;b<g;b++)if(!S.call(void 0,G[b],B&&B[b],f))return!1;return!0},b9$=function(f,S,B,G){var g=new _.uT(null);
f&&_.Sz(g,f);S&&_.Bz(g,S);B&&_.Ga(g,B);G&&_.gH(g,G);return g},m12=function(){var f=_.k0&&_.FG(_.cjm,10)>=0,S;
if(S=_.QXx)S=_.FG(_.W8N,10)>=0;var B=_.v_&&_.FG(_.cjm,85)>=0;return _.Fx||f||S||B},zd2=function(f){var S=_.J17(f);
return S&&m12()?-f.scrollLeft:S&&_.DL(f,"overflowX")!="visible"?f.scrollWidth-f.clientWidth-f.scrollLeft:f.scrollLeft},Rdn=function(f,S){S=Math.max(S,0);
_.J17(f)?m12()?f.scrollLeft=-S:f.scrollLeft=f.scrollWidth-S-f.clientWidth:f.scrollLeft=S},pLM=0,t7u=!1;
gy.prototype.set=function(f){this.relativeTimeStart_=f};
gy.prototype.reset=function(){this.set(_.zd())};
gy.prototype.get=function(){return this.relativeTimeStart_};
var Xw2=null,wwu=function(){Xw2||(Xw2=new gy)},hdZ=function(){Xw2||(Xw2=new gy)};
_.Rm(hdZ,wwu);_.e=azo.prototype;_.e.JSC$9315_buffer_="";_.e.set=function(f){this.JSC$9315_buffer_=""+f};
_.e.append=function(f,S,B){this.JSC$9315_buffer_+=String(f);if(S!=null)for(var G=1;G<arguments.length;G++)this.JSC$9315_buffer_+=arguments[G];return this};
_.e.clear=function(){this.JSC$9315_buffer_=""};
_.e.getLength=function(){return this.JSC$9315_buffer_.length};
_.e.toString=function(){return this.JSC$9315_buffer_};
var Tme=function(){var f={type:"unit",style:"narrow"};this.listType_=f&&f.type?f.type:"conjunction";this.listStyle_=f&&f.style?f.style:"long";this.listSymbols_=Tvz;f=0;switch(this.listStyle_){case "short":f=1;break;case "narrow":f=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[f];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[f];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[f];this.listEndPattern_=
this.listSymbols_.AND_END[f];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[f];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[f];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[f];this.listEndPattern_=this.listSymbols_.OR_END[f];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[f],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[f],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[f],this.listEndPattern_=this.listSymbols_.UNIT_END[f]}};
Tme.prototype.format=function(f){return Fyu(this,f)};
var Fyu=function(f,S){var B=S.length;switch(B){case 0:return"";case 1:return String(S[0]);case 2:return f.listTwoPattern_.replace("{0}",String(S[0])).replace("{1}",String(S[1]))}for(var G=f.listStartPattern_.replace("{0}",String(S[0])).replace("{1}",String(S[1])),g=2;g<B-1;++g)G=f.listMiddlePattern_.replace("{0}",G).replace("{1}",String(S[g]));return f.listEndPattern_.replace("{0}",G).replace("{1}",String(S[B-1]))},XUu=function(){var f={style:1};
this.style_=(f==null?void 0:f.style)||0;this.durationSymbols_=_.kJN||_.nrg},VqB=function(f,S){switch(S){default:case "years":return f.durationSymbols_.YEAR;
case "months":return f.durationSymbols_.MONTH;case "weeks":return f.durationSymbols_.WEEK;case "days":return f.durationSymbols_.DAY;case "hours":return f.durationSymbols_.HOUR;case "minutes":return f.durationSymbols_.MINUTE;case "seconds":return f.durationSymbols_.SECOND}},P3=function(f,S,B){a:{B=VqB(f,B);
switch(f.style_){case 1:if(B.LONG!=void 0){f=B.LONG;break a}case 2:if(B.NARROW!=void 0){f=B.NARROW;break a}default:f=B.SHORT;break a}f=void 0}return f?(new _.GFg("{DURATION_VALUE,plural,"+f+"}")).format({DURATION_VALUE:S}):""};
XUu.prototype.format=function(f){var S=[],B=f.years,G=f.months,g=f.weeks,b=f.days,z=f.hours,X=f.minutes;f=f.seconds;B!=null&&S.push(P3(this,B,"years"));G!=null&&S.push(P3(this,G,"months"));g!=null&&S.push(P3(this,g,"weeks"));b!=null&&S.push(P3(this,b,"days"));z!=null&&S.push(P3(this,z,"hours"));X!=null&&S.push(P3(this,X,"minutes"));f!=null&&S.push(P3(this,f,"seconds"));return(new Tme).format(S)};
var J3X=!1,S4o=function(f){_.fM.call(this,f.message||f.description||f.name);this.isMissing=f instanceof eY;this.isTimeout=f instanceof _.uM&&f.errorCode=="net.timeout";this.isCanceled=f instanceof _.y1};
_.q(S4o,_.fM);S4o.prototype.name="BiscottiError";var eY=function(){_.fM.call(this,"Biscotti ID is missing from server")};
_.q(eY,_.fM);eY.prototype.name="BiscottiMissingError";var bL=null,XK$=function(){try{var f=_.U6("yt.ads.biscotti.getId_");return f?f():kt2()}catch(S){return _.xe(S)}},R02,PFu=function(f,S){return _.ef({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:f,command:S}})},v8O=function(f){return _.ef({type:"SET_GUIDE_IS_EXPANDED",
payload:f})},Kye=function(f){return _.ef({type:"SET_ONLINE_STATUS",
payload:f})},d1$=function(f,S){return _.ef({type:"SET_TRANSCRIPTION_STATE",
payload:{high:f,low:S}})},i9z=function(f){return _.ef({type:"SET_OVERLAY_STATE",
payload:f})},H9o=0,qo$=function(f,S,B){var G=this;
this.priority=S;this.delay=B;this.jobId=0;this.completionCallback=_.d8;this.wrappedJob=function(){f();G.completionCallback()};
this.id=++H9o};
qo$.prototype.enqueue=function(f){this.completionCallback=f;this.jobId=_.xJ.addJob(this.wrappedJob,this.priority,this.delay)};
var v3=function(){_.gF.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.q(v3,_.gF);v3.prototype.addJob=function(f,S,B){f=new qo$(f,S,B);this.taskIdToTask.set(f.id,f);this.isActive?$1o(this,f):this.suspendedTasks.add(f);return f.id};
var $1o=function(f,S){f.scheduledTasks.add(S);S.enqueue(function(){f.scheduledTasks.delete(S)})};
v3.prototype.cancelJob=function(f){(f=this.taskIdToTask.get(f))&&(this.scheduledTasks.delete(f)?_.xJ.cancelJob(f.jobId):this.suspendedTasks.delete(f))};
v3.prototype.pause=function(){var f=this;this.isActive=!1;this.scheduledTasks.forEach(function(S){_.xJ.cancelJob(S.jobId);f.suspendedTasks.add(S)});
this.scheduledTasks.clear()};
v3.prototype.start=function(){var f=this;this.isActive=!0;this.suspendedTasks.forEach(function(S){$1o(f,S)});
this.suspendedTasks.clear()};
v3.prototype.reset=function(){this.scheduledTasks.forEach(function(f){_.xJ.cancelJob(f.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var K6=function(f,S){this.JSC$10992_networkService_=f;this.pageRequestPromise=S};
K6.prototype.fetchData=function(f){Qaz(this,this.JSC$10992_networkService_.fetchData(f))};
K6.prototype.postData=function(f,S){Qaz(this,this.JSC$10992_networkService_.postData(f,S))};
K6.prototype.requestDataForServiceEndpoint=function(f,S){Qaz(this,this.JSC$10992_networkService_.requestDataForServiceEndpoint(f,S))};
var Qaz=function(f,S){S.then(f.pageRequestPromise.onSuccess,f.pageRequestPromise.onFailure,f.pageRequestPromise)};
K6.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var d7=function(f){this.buildNetworkRequest_=f;this.pendingRequests_=new Set};
d7.prototype.reset=function(){this.pendingRequests_.forEach(function(f){f.cancel()});
this.pendingRequests_.clear()};
d7.prototype.fetchData=function(f){var S=Yoo(this);S.fetchData(f);return S.pageRequestPromise};
d7.prototype.postData=function(f,S){var B=Yoo(this);B.postData(f,S);return B.pageRequestPromise};
d7.prototype.requestDataForServiceEndpoint=function(f,S){var B=Yoo(this);B.requestDataForServiceEndpoint(f,S);return B.pageRequestPromise};
var Yoo=function(f){var S=f.buildNetworkRequest_();f.pendingRequests_.add(S);var B=function(){f.pendingRequests_.delete(S)};
S.pageRequestPromise.then(B,B);return S},r3O=function(f){var S=new v3;
this.JSC$10999_networkService_=f;this.JSC$10999_taskManager_=S;this.JSC$10999_networkManager_=new d7(this.networkRequestFactory_.bind(this))};
_.e=r3O.prototype;_.e.networkRequestFactory_=function(){return new K6(this.JSC$10999_networkService_,new _.Gb(this.JSC$10999_taskManager_))};
_.e.reset=function(){this.JSC$10999_taskManager_.reset();this.JSC$10999_networkManager_.reset()};
_.e.start=function(){this.JSC$10999_taskManager_.start()};
_.e.pause=function(){this.JSC$10999_taskManager_.pause()};
_.e.getTaskManager=function(){return this.JSC$10999_taskManager_};
_.e.getNetworkManager=function(){return this.JSC$10999_networkManager_};
var VC$=null,vJo=[],me=0,Rn=0,zA=null,jaZ=!1,XQ=null,d7z=void 0,O9M=function(){var f=(0,_.KYm)();f&&VdY(f,f.mechanism.__iterator__(!0))},hn=function(f){this.token=f};
hn.getInstance=function(){var f;return _.R(function(S){if(S.nextAddress==1)return _.h(S,_.cL(),2);f=S.yieldResult;if(!f)return S.return();hn.instance||(hn.instance=new hn(f));return S.return(hn.instance)})};
var Y4o=function(f){var S;return _.R(function(B){if(B.nextAddress==1)return _.h(B,q4e(f.token),2);S=B.yieldResult;return B.return(S.clear("resource-manifest-assets"))})},wy=function(f){this.token=f};
wy.getInstance=function(){var f;return _.R(function(S){if(S.nextAddress==1)return _.h(S,_.cL(),2);f=S.yieldResult;if(!f)return S.return();wy.instance||(wy.instance=new wy(f));return S.return(wy.instance)})};
var $72=function(f){var S;return _.R(function(B){if(B.nextAddress==1)return _.h(B,q4e(f.token),2);S=B.yieldResult;return _.h(B,S.clear("auth"),0)})},u3z=!1,x12=function(f){_.fM.call(this,f)};
_.q(x12,_.uQL);var E8n="a[href] a[tabindex] area[href] iframe [tabindex] [contentEditable] summary input:not([disabled]) select:not([disabled]) textarea:not([disabled]) button:not([disabled]) object:not([disabled])".split(" ");KmZ()&&E8n.push("details:not(:has(summary))");var igY=E8n.join(",");var pZu=function(){var f=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return f?parseInt(f[1],10):0},LyX=function(f){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+f)!=-1||document.currentScript.src.indexOf("&"+f)!=-1)},kD2=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},teO=function(f){f.length?n8$(f.shift(),function(){teO(f)}):Niu()},aT$=function(f){return"chrome-extension://"+f+"/cast_sender.js"},n8$=function(f,
S,B){var G=document.createElement("script");
G.onerror=S;B&&(G.onload=B);_.CC(G,_.YA(f));(document.head||document.documentElement).appendChild(G)},saX=function(){var f=pZu(),S=[];
if(f>1){var B=f-1;S.push("//www.gstatic.com/eureka/clank/"+f+"/cast_sender.js");S.push("//www.gstatic.com/eureka/clank/"+B+"/cast_sender.js")}return S},Niu=function(){var f=kD2();
f&&f(!1,"No cast extension found")},Zkn=function(){if(D1Y){var f=2,S=kD2(),B=function(){f--;
f==0&&S&&S(!0)};
window.__onGCastApiAvailable=B;n8$("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",Niu,B)}},A2e=function(){Zkn();
var f=saX();f.push("//www.gstatic.com/eureka/clank/cast_sender.js");teO(f)},Me2=function(){Zkn();
var f=saX();f.push.apply(f,_.$d(uvB.map(aT$)));f.push("//www.gstatic.com/eureka/clank/cast_sender.js");teO(f)},D1Y=LyX("loadCastFramework")||LyX("loadCastApplicationFramework"),uvB=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var Id$=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(Id$,_.s7);var U12=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(U12,_.s7);var CFO=function(){var f=new U12;return _.p4(f,1,3)};var iw=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(iw,_.s7);var MDM=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(MDM,_.s7);var pwo=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(pwo,_.s7);pwo.prototype.getToken=function(){return _.n4(this,1)};
pwo.prototype.setToken=function(f){return _.oQ(this,1,f)};
var AE2=function(f){return _.dI(f,3,_.CY,_.SI())},NCY=function(f){return _.dI(f,6,_.CY,_.SI())};var H3=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(H3,_.s7);H3.prototype.getToken=function(){return _.BU(this,pwo,2)};
H3.prototype.setToken=function(f){return _.SZ(this,2,f)};
H3.prototype.getName=function(){return _.n4(this,6)};
var A3M=_.fC(H3);var NmY=function(f,S,B){this.requestMessage=f;this.methodDescriptor=S;this.metadata=B};
NmY.prototype.getMetadata=function(){return this.metadata};var MqB=function(f,S){S=S===void 0?{}:S;this.responseMessage=f;this.metadata=S;this.status=null};
MqB.prototype.getMetadata=function(){return this.metadata};
MqB.prototype.getStatus=function(){return this.status};var qU=function(f,S,B,G,g){this.name=f;this.methodType="unary";this.requestType=S;this.responseType=B;this.requestSerializeFn=G;this.responseDeserializeFn=g},Z9u=function(f,S,B){B=B===void 0?{}:B;
return new NmY(S,f,B)};
qU.prototype.getName=function(){return this.name};var $t=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q($t,_.s7);$t.prototype.setHeader=function(f){return _.SZ(this,1,f)};
$t.prototype.hasHeader=function(){return _.qa(this,iw,1)};var tqY=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(tqY,_.s7);var udO=new qU("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",$t,tqY,function(f){return f.serialize()},_.fC(tqY));var Qn=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(Qn,_.s7);Qn.prototype.setHeader=function(f){return _.SZ(this,1,f)};
Qn.prototype.hasHeader=function(){return _.qa(this,iw,1)};var adZ=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(adZ,_.s7);var y3e=new qU("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",Qn,adZ,function(f){return f.serialize()},_.fC(adZ));var Yt=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(Yt,_.s7);Yt.prototype.setHeader=function(f){return _.SZ(this,1,f)};
Yt.prototype.hasHeader=function(){return _.qa(this,iw,1)};var WyM=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(WyM,_.s7);WyM.prototype.getLink=function(){return _.BU(this,H3,1)};var c3u=new qU("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",Yt,WyM,function(f){return f.serialize()},_.fC(WyM));var r7=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(r7,_.s7);r7.prototype.setHeader=function(f){return _.SZ(this,1,f)};
r7.prototype.hasHeader=function(){return _.qa(this,iw,1)};var ldn=new qU("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",r7,H3,function(f){return f.serialize()},A3M);var fPB=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(fPB,_.s7);var oK2=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(oK2,_.s7);oK2.prototype.getUrl=function(){return _.n4(this,2)};
oK2.prototype.setUrl=function(f){return _.oQ(this,2,f)};var SRY=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(SRY,_.s7);var Bbu=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(Bbu,_.s7);var GGz=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(GGz,_.s7);var SlB=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(SlB,_.s7);var o2M=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(o2M,_.s7);var gKY=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(gKY,_.s7);var zYX=_.fC(gKY);var e$z=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(e$z,_.s7);var j$=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(j$,_.s7);j$.prototype.setHeader=function(f){return _.SZ(this,1,f)};
j$.prototype.hasHeader=function(){return _.qa(this,iw,1)};
j$.prototype.getCompletionUrl=function(){return _.n4(this,6)};
j$.prototype.getDeviceId=function(){return _.n4(this,11)};var bFM=new qU("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",j$,gKY,function(f){return f.serialize()},zYX);var ml2=new Set(["SAPISIDHASH","APISIDHASH"]);var z$u=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(z$u,_.s7);z$u.prototype.getMessage=function(){return _.n4(this,2)};
var R$o=_.fC(z$u);var OS=function(f,S){this.xhrNodeReadableStream_=f.nodeReadableStream;this.grpcResponseDeserializeFn_=S;this.JSC$17126_xhr_=f.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$17126_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&X8$(this)},JD2=function(f,S){var B=new w8o;
_.jP(f.JSC$17126_xhr_,"complete",function(){if(f.JSC$17126_xhr_.isSuccess()){var G=f.JSC$17126_xhr_.getResponseText();var g;if(g=S)g=f.JSC$17126_xhr_,g.JSC$7841_xhr_&&g.isComplete()?(g=g.JSC$7841_xhr_.getResponseHeader("Content-Type"),g=g===null?void 0:g):g=void 0,g=g==="text/plain";if(g){if(!atob)throw Error("Nj");G=atob(G)}try{var b=f.grpcResponseDeserializeFn_(G)}catch(X){xt(f,jr$(new _.xo(13,"Error when deserializing response data; error: "+X+(", response: "+G)),B));return}G=_.X9(f.JSC$17126_xhr_.getStatus());
h$u(f,Tb2(f));G==0?Fsu(f,b):xt(f,jr$(new _.xo(G,"Xhr succeeded but the status code is not 200"),B))}else{G=f.JSC$17126_xhr_.getResponseText();b=Tb2(f);if(G){var z=VWz(f,G);G=z.code;g=z.details;z=z.metadata}else G=2,g="Rpc failed due to xhr error. uri: "+String(f.JSC$17126_xhr_.JSC$7841_lastUri_)+", error code: "+f.JSC$17126_xhr_.JSC$7841_lastErrorCode_+", error: "+f.JSC$17126_xhr_.getLastError(),z=b;h$u(f,b);xt(f,jr$(new _.xo(G,g,z),B))}})},X8$=function(f){f.xhrNodeReadableStream_.on("data",function(S){if("1"in
S){var B=S["1"];
try{var G=f.grpcResponseDeserializeFn_(B)}catch(g){xt(f,new _.xo(13,"Error when deserializing response data; error: "+g+(", response: "+B)))}G&&Fsu(f,G)}if("2"in S)for(S=VWz(f,S["2"]),B=0;B<f.onStatusCallbacks_.length;B++)f.onStatusCallbacks_[B](S)});
f.xhrNodeReadableStream_.on("end",function(){h$u(f,Tb2(f));for(var S=0;S<f.onEndCallbacks_.length;S++)f.onEndCallbacks_[S]()});
f.xhrNodeReadableStream_.on("error",function(){if(f.JSC$17126_onErrorCallbacks_.length!=0){var S=f.JSC$17126_xhr_.JSC$7841_lastErrorCode_;S!==0||f.JSC$17126_xhr_.isSuccess()||(S=6);var B=-1;switch(S){case 0:var G=2;break;case 7:G=10;break;case 8:G=4;break;case 6:B=f.JSC$17126_xhr_.getStatus();G=_.X9(B);break;default:G=14}h$u(f,Tb2(f));S=_.JJv(S)+", error: "+f.JSC$17126_xhr_.getLastError();B!=-1&&(S+=", http status code: "+B);xt(f,new _.xo(G,S))}})},Tb2=function(f){var S={},B=XFY(f.JSC$17126_xhr_);
Object.keys(B).forEach(function(G){S[G]=B[G]});
return S},VWz=function(f,S){var B=2,G={};
try{var g=R$o(S);B=_.Bv(g,1);var b=g.getMessage();_.oK(g,GDn,3,_.SI()).length&&(G["grpc-web-status-details-bin"]=S)}catch(z){f.JSC$17126_xhr_&&f.JSC$17126_xhr_.getStatus()===404?(B=5,b="Not Found: "+String(f.JSC$17126_xhr_.JSC$7841_lastUri_)):(B=14,b="Unable to parse RpcStatus: "+z)}return{code:B,details:b,metadata:G}};
OS.prototype.on=function(f,S){f=="data"?this.onDataCallbacks_.push(S):f=="metadata"?this.onMetadataCallbacks_.push(S):f=="status"?this.onStatusCallbacks_.push(S):f=="end"?this.onEndCallbacks_.push(S):f=="error"&&this.JSC$17126_onErrorCallbacks_.push(S);return this};
var ES=function(f,S){S=f.indexOf(S);S>-1&&f.splice(S,1)};
OS.prototype.removeListener=function(f,S){f=="data"?ES(this.onDataCallbacks_,S):f=="metadata"?ES(this.onMetadataCallbacks_,S):f=="status"?ES(this.onStatusCallbacks_,S):f=="end"?ES(this.onEndCallbacks_,S):f=="error"&&ES(this.JSC$17126_onErrorCallbacks_,S);return this};
OS.prototype.cancel=function(){this.JSC$17126_xhr_.abort()};
var Fsu=function(f,S){for(var B=0;B<f.onDataCallbacks_.length;B++)f.onDataCallbacks_[B](S)},h$u=function(f,S){for(var B=0;B<f.onMetadataCallbacks_.length;B++)f.onMetadataCallbacks_[B](S)},xt=function(f,S){for(var B=0;B<f.JSC$17126_onErrorCallbacks_.length;B++)f.JSC$17126_onErrorCallbacks_[B](S)};
OS.prototype.cancel=OS.prototype.cancel;OS.prototype.removeListener=OS.prototype.removeListener;OS.prototype.on=OS.prototype.on;var w8o=function(){var f=Error.call(this);this.message=f.message;"stack"in f&&(this.stack=f.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.q(w8o,Error);var L6=function(f){this.JSC$17135_worker_=f.worker||null;this.JSC$17135_streamBinaryChunks_=f.streamBinaryChunks||!1;this.JSC$17135_credentialsMode_=void 0};
_.Rm(L6,_.aLx);L6.prototype.createInstance=function(){var f=new kt(this.JSC$17135_worker_,this.JSC$17135_streamBinaryChunks_);this.JSC$17135_credentialsMode_&&f.setCredentialsMode(this.JSC$17135_credentialsMode_);return f};
L6.prototype.setCredentialsMode=function(f){this.JSC$17135_credentialsMode_=f};
var kt=function(f,S){_.$o.call(this);this.JSC$17139_worker_=f;this.JSC$17139_streamBinaryChunks_=S;this.JSC$17139_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$17139_responseHeaders_=null;this.JSC$17139_method_="GET";this.JSC$17139_url_="";this.inProgress_=!1;this.JSC$17139_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.Rm(kt,_.$o);kt.prototype.open=function(f,S){if(this.readyState!=0)throw this.abort(),Error("Oj");this.JSC$17139_method_=f;this.JSC$17139_url_=S;this.readyState=1;n6(this)};
kt.prototype.send=function(f){if(this.readyState!=1)throw this.abort(),Error("Pj");if(this.abortController_.signal.aborted)throw this.abort(),Error("Qj");this.inProgress_=!0;var S={headers:this.requestHeaders_,method:this.JSC$17139_method_,credentials:this.JSC$17139_credentialsMode_,cache:void 0,signal:this.abortController_.signal};f&&(S.body=f);(this.JSC$17139_worker_||_.S1).fetch(new Request(this.JSC$17139_url_,S)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
kt.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort();this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,sS(this));this.readyState=0};
kt.prototype.handleResponse_=function(f){if(this.inProgress_&&(this.fetchResponse_=f,this.JSC$17139_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$17139_responseHeaders_=f.headers,this.readyState=2,n6(this)),this.inProgress_&&(this.readyState=3,n6(this),this.inProgress_)))if(this.responseType==="arraybuffer")f.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.S1.ReadableStream!==
"undefined"&&"body"in f){this.currentReader_=f.body.getReader();if(this.JSC$17139_streamBinaryChunks_){if(this.responseType)throw Error("Rj");this.response=[]}else this.response=this.responseText="",this.JSC$17139_textDecoder_=new TextDecoder;Pxu(this)}else f.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var Pxu=function(f){f.currentReader_.read().then(f.handleDataFromStream_.bind(f)).catch(f.handleSendFailure_.bind(f))};
kt.prototype.handleDataFromStream_=function(f){if(this.inProgress_){if(this.JSC$17139_streamBinaryChunks_&&f.value)this.response.push(f.value);else if(!this.JSC$17139_streamBinaryChunks_){var S=f.value?f.value:new Uint8Array(0);if(S=this.JSC$17139_textDecoder_.decode(S,{stream:!f.done}))this.response=this.responseText+=S}f.done?sS(this):n6(this);this.readyState==3&&Pxu(this)}};
kt.prototype.handleResponseText_=function(f){this.inProgress_&&(this.response=this.responseText=f,sS(this))};
kt.prototype.handleResponseArrayBuffer_=function(f){this.inProgress_&&(this.response=f,sS(this))};
kt.prototype.handleSendFailure_=function(){this.inProgress_&&sS(this)};
var sS=function(f){f.readyState=4;f.fetchResponse_=null;f.currentReader_=null;f.JSC$17139_textDecoder_=null;n6(f)};
kt.prototype.setRequestHeader=function(f,S){this.requestHeaders_.append(f,S)};
kt.prototype.getResponseHeader=function(f){return this.JSC$17139_responseHeaders_?this.JSC$17139_responseHeaders_.get(f.toLowerCase())||"":""};
kt.prototype.getAllResponseHeaders=function(){if(!this.JSC$17139_responseHeaders_)return"";for(var f=[],S=this.JSC$17139_responseHeaders_.entries(),B=S.next();!B.done;)B=B.value,f.push(B[0]+": "+B[1]),B=S.next();return f.join("\r\n")};
kt.prototype.setCredentialsMode=function(f){this.JSC$17139_credentialsMode_=f};
var n6=function(f){f.onreadystatechange&&f.onreadystatechange.call(f)};
Object.defineProperty(kt.prototype,"withCredentials",{get:function(){return this.JSC$17139_credentialsMode_==="include"},
set:function(f){this.setCredentialsMode(f?"include":"same-origin")}});var vKn=function(f){var S="";_.$v.forEach(f,function(B,G){S+=G;S+=":";S+=B;S+="\r\n"});
return S},Ksn=function(f,S,B){if(_.$v.isEmpty(B))return f;
B=vKn(B);if(typeof f==="string")return _.MF(f,_.pL(S),B);_.ZL(f,S,B);return f};var dlO=function(){this.isInputValid_=!0;this.JSC$17144_streamPos_=0;this.leftoverInput_=""};
dlO.prototype.isInputValid=function(){return this.isInputValid_};var VQ=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$17147_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
VQ.prototype.isInputValid=function(){return this.state_!=3};
var DF=function(f,S,B,G){f.state_=3;f.errorMessage_="The stream is broken @"+f.JSC$17147_streamPos_+"/"+B+". Error: "+G+". With input:\n"+S;throw Error(f.errorMessage_);};
VQ.prototype.acceptsBinaryInput=function(){return!0};
VQ.prototype.parse=function(f){function S(w){w&128&&DF(b,z,X,"invalid tag");(w&7)!=2&&DF(b,z,X,"invalid wire type");b.tag_=w>>>3;b.tag_!=1&&b.tag_!=2&&b.tag_!=15&&DF(b,z,X,"unexpected tag");b.state_=1;b.length_=0;b.countLengthBytes_=0}
function B(w){b.countLengthBytes_++;b.countLengthBytes_==5&&w&240&&DF(b,z,X,"message length too long");b.length_|=(w&127)<<(b.countLengthBytes_-1)*7;w&128||(b.state_=2,b.countMessageBytes_=0,typeof Uint8Array!=="undefined"?b.messageBuffer_=new Uint8Array(b.length_):b.messageBuffer_=Array(b.length_),b.length_==0&&g())}
function G(w){b.messageBuffer_[b.countMessageBytes_++]=w;b.countMessageBytes_==b.length_&&g()}
function g(){if(b.tag_<15){var w={};w[b.tag_]=b.messageBuffer_;b.result_.push(w)}b.state_=0}
for(var b=this,z=f instanceof Array?f:new Uint8Array(f),X=0;X<z.length;){switch(b.state_){case 3:DF(b,z,X,"stream already broken");break;case 0:S(z[X]);break;case 1:B(z[X]);break;case 2:G(z[X]);break;default:throw Error("Tj`"+b.state_);}b.JSC$17147_streamPos_++;X++}f=b.result_;b.result_=[];return f.length>0?f:null};var x6u=function(){this.errorMessage_=null;this.JSC$17150_streamPos_=0;this.base64Decoder_=new dlO;this.pbParser_=new VQ};
x6u.prototype.isInputValid=function(){return this.errorMessage_===null};
var iF2=function(f,S,B){f.errorMessage_="The stream is broken @"+f.JSC$17150_streamPos_+". Error: "+B+". With input:\n"+S;throw Error(f.errorMessage_);};
x6u.prototype.acceptsBinaryInput=function(){return!1};
x6u.prototype.parse=function(f){this.errorMessage_!==null&&iF2(this,f,"stream already broken");var S=null;try{var B=this.base64Decoder_;if(!B.isInputValid_)throw B.isInputValid_=!1,Error("Sj`"+B.JSC$17144_streamPos_+"`stream already broken`"+f);B.leftoverInput_+=f;var G=Math.floor(B.leftoverInput_.length/4);if(G==0)var g=null;else{try{var b=_.gIQ(B.leftoverInput_.slice(0,G*4))}catch(w){var z=B.leftoverInput_,X=w.message;B.isInputValid_=!1;throw Error("Sj`"+B.JSC$17144_streamPos_+"`"+X+"`"+z);}B.JSC$17144_streamPos_+=
G*4;B.leftoverInput_=B.leftoverInput_.slice(G*4);g=b}S=g===null?null:this.pbParser_.parse(g)}catch(w){iF2(this,f,w.message)}this.JSC$17150_streamPos_+=f.length;return S};var Og$=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$17153_streamPos_=0;this.result_=[];this.statusParsed_=!1};
Og$.prototype.isInputValid=function(){return this.errorMessage_===null};
Og$.prototype.acceptsBinaryInput=function(){return!1};
Og$.prototype.parse=function(f){function S(w){b.state_=6;b.errorMessage_="The stream is broken @"+b.JSC$17153_streamPos_+"/"+z+". Error: "+w+". With input:\n";throw Error(b.errorMessage_);}
function B(){b.jsonStreamParser_=new _.mp({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function G(w){if(w)for(var F=0;F<w.length;F++){var V={};V[1]=w[F];b.result_.push(V)}}
function g(w){if(w){(b.statusParsed_||w.length>1)&&S("extra status: "+w);b.statusParsed_=!0;var F={};F[2]=w[0];b.result_.push(F)}}
for(var b=this,z=0;z<f.length;){var X;if(X=b.state_!==2){a:{for(;z<f.length;){if(!_.bH(f[z])){X=!0;break a}z++;b.JSC$17153_streamPos_++}X=!1}X=!X}if(X)return null;switch(b.state_){case 6:S("stream already broken");break;case 0:f[z]==="["?(b.state_=1,z++,b.JSC$17153_streamPos_++):S("unexpected input token");break;case 1:f[z]==="["?(b.state_=2,B()):f[z]===","||f.slice(z,z+5)=="null,"?b.state_=3:f[z]==="]"?(b.state_=5,z++,b.JSC$17153_streamPos_++):S("unexpected input token");break;case 2:X=b.jsonStreamParser_.parse(f.substring(z));
G(X);b.jsonStreamParser_.done()?(b.state_=3,X=b.jsonStreamParser_.JSC$9442_buffer_,b.JSC$17153_streamPos_+=f.length-z-X.length,f=X,z=0):(b.JSC$17153_streamPos_+=f.length-z,z=f.length);break;case 3:f[z]===","||f.slice(z,z+5)=="null,"?(b.state_=4,B(),b.jsonStreamParser_.parse("["),z+=f[z]===","?1:5,b.JSC$17153_streamPos_++):f[z]==="]"&&(b.state_=5,z++,b.JSC$17153_streamPos_++);break;case 4:X=b.jsonStreamParser_.parse(f.substring(z));g(X);b.jsonStreamParser_.done()?(b.state_=5,X=b.jsonStreamParser_.JSC$9442_buffer_,
b.JSC$17153_streamPos_+=f.length-z-X.length,f=X,z=0):(b.JSC$17153_streamPos_+=f.length-z,z=f.length);break;case 5:S("extra input after stream end")}}return b.result_.length>0?(f=b.result_,b.result_=[],f):null};var HFO=function(f){this.JSC$17156_xhr_=f;this.JSC$17156_parser_=null;this.status_=this.JSC$17156_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$17156_textDecoder_=null;this.JSC$17156_eventHandler_=new _.BZ(this);this.JSC$17156_eventHandler_.listen(this.JSC$17156_xhr_,"readystatechange",this.JSC$17158_readyStateChangeHandler_)},IE=function(f,S){f.status_!=S&&(f.status_=S,f.statusHandler_&&f.statusHandler_())},US=function(f){f.JSC$17156_eventHandler_.removeAll();
if(f.JSC$17156_xhr_){var S=f.JSC$17156_xhr_;f.JSC$17156_xhr_=null;S.abort();S.dispose()}};
HFO.prototype.getStatus=function(){return this.status_};
HFO.prototype.JSC$17158_readyStateChangeHandler_=function(f){f=f.target;try{if(f==this.JSC$17156_xhr_)a:{var S=_.ko(this.JSC$17156_xhr_),B=this.JSC$17156_xhr_.JSC$7841_lastErrorCode_,G=this.JSC$17156_xhr_.getStatus(),g=this.JSC$17156_xhr_.getResponseText();f=[];if(this.JSC$17156_xhr_.getResponse()instanceof Array){var b=this.JSC$17156_xhr_.getResponse();b.length>0&&b[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,f=b)}if(!(S<3||S==3&&!g&&f.length==0))if(G=G==200||G==206,S==4&&(B==8?IE(this,
7):B==7?IE(this,8):G||IE(this,3)),this.JSC$17156_parser_||(this.JSC$17156_parser_=EHu(this.JSC$17156_xhr_),this.JSC$17156_parser_==null&&IE(this,5)),this.status_>2)US(this);else{if(f.length>this.JSC$17156_pos_){var z=f.length;B=[];try{if(this.JSC$17156_parser_.acceptsBinaryInput())for(var X=0;X<z;X++){var w=this.JSC$17156_parser_.parse(Array.from(f[X]));w&&(B=B.concat(w))}else{w="";if(!this.JSC$17156_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Uj");this.JSC$17156_textDecoder_=new TextDecoder}for(X=
0;X<z;X++)w+=this.JSC$17156_textDecoder_.decode(f[X],{stream:S==4&&X==z-1});B=this.JSC$17156_parser_.parse(w)}f.splice(0,z);B&&this.dataHandler_(B)}catch(V){IE(this,5);US(this);break a}}else if(g.length>this.JSC$17156_pos_){X=g.slice(this.JSC$17156_pos_);this.JSC$17156_pos_=g.length;try{var F=this.JSC$17156_parser_.parse(X);F!=null&&this.dataHandler_&&this.dataHandler_(F)}catch(V){IE(this,5);US(this);break a}}S==4?(g.length!=0||this.hasStreamingResponseData_?IE(this,2):IE(this,4),US(this)):IE(this,
1)}}}catch(V){IE(this,6),US(this)}};var qRe=function(f){f=this.xhrReader_=f;var S=(0,_.$A)(this.onData_,this);f.dataHandler_=S;f=this.xhrReader_;S=(0,_.$A)(this.onStatusChange_,this);f.statusHandler_=S;this.JSC$17160_callbackMap_={};this.callbackOnceMap_={}};
_.e=qRe.prototype;_.e.on=function(f,S){var B=this.JSC$17160_callbackMap_[f];B||(B=[],this.JSC$17160_callbackMap_[f]=B);B.push(S);return this};
_.e.addListener=function(f,S){this.on(f,S);return this};
_.e.removeListener=function(f,S){var B=this.JSC$17160_callbackMap_[f];B&&_.uK(B,S);(f=this.callbackOnceMap_[f])&&_.uK(f,S);return this};
_.e.once=function(f,S){var B=this.callbackOnceMap_[f];B||(B=[],this.callbackOnceMap_[f]=B);B.push(S);return this};
_.e.onData_=function(f){var S=this.JSC$17160_callbackMap_.data;S&&$lM(f,S);(S=this.callbackOnceMap_.data)&&$lM(f,S);this.callbackOnceMap_.data=[]};
var $lM=function(f,S){for(var B={},G=0;G<f.length;B={message$jscomp$970:void 0},G++)B.message$jscomp$970=f[G],S.forEach(function(g){return function(b){try{b(g.message$jscomp$970)}catch(z){}}}(B))};
qRe.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:Q8z(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Q8z(this,"error");break;case 8:Q8z(this,"close");break;case 2:Q8z(this,"end")}};
var Q8z=function(f,S){var B=f.JSC$17160_callbackMap_[S];B&&B.forEach(function(G){try{G()}catch(g){}});
(B=f.callbackOnceMap_[S])&&B.forEach(function(G){G()});
f.callbackOnceMap_[S]=[]};var YRu=function(){var f={format:"jspb"};f=f===void 0?{}:f;this.suppressCorsPreflight=f.suppressCorsPreflight||_.U6("suppressCorsPreflight",f)||!1;this.withCredentials=f.withCredentials||_.U6("withCredentials",f)||!1;this.streamInterceptors=f.streamInterceptors||[];this.unaryInterceptors=f.unaryInterceptors||[];this.workerScope=f.workerScope;this.chunkedServerStreaming=f.useFetchDownloadStreams||!1},OFo=function(f,S,B,G,g,b){b=b===void 0?{}:b;
var z=S.substring(0,S.length-g.name.length),X,w=(X=b)==null?void 0:X.signal;return rDO(function(F){return new Promise(function(V,J){if(w==null?0:w.aborted){var P=new _.xo(1,"Aborted");P.cause=w.reason;J(P)}else{var d={},Q=j8$(f,F,z);Q.on("error",function(x){return void J(x)});
Q.on("metadata",function(x){d=x});
Q.on("data",function(x){var E=d;E=E===void 0?{}:E;V(new MqB(x,E))});
w&&w.addEventListener("abort",function(){Q.cancel();var x=new _.xo(1,"Aborted");x.cause=w.reason;J(x)})}})},f.unaryInterceptors).call(f,Z9u(g,B,G)).then(function(F){return F.responseMessage})},C6=function(f,S,B,G,g,b){b=b===void 0?{}:b;
return OFo(f,S,B,G,g,b)};
YRu.prototype.serverStreaming=function(f,S,B,G){var g=this,b=f.substring(0,f.length-G.name.length);return xlB(function(z){var X=z.methodDescriptor,w=z.getMetadata(),F=EKo(g,!1);w=Lsu(g,w,F,b+X.getName());var V=kGu(F,X.responseDeserializeFn,!0);z=X.requestSerializeFn(z.requestMessage);F.send(w,"POST",z);return V},this.streamInterceptors).call(this,Z9u(G,S,B))};
var j8$=function(f,S,B){var G=S.methodDescriptor,g=S.getMetadata(),b=EKo(f,!0);f=Lsu(f,g,b,B+G.getName());B=kGu(b,G.responseDeserializeFn,!1);JD2(B,g["X-Goog-Encode-Response-If-Executable"]==="base64");S=G.requestSerializeFn(S.requestMessage);b.send(f,"POST",S);return B},EKo=function(f,S){S=f.chunkedServerStreaming&&!S;
return f.workerScope||S?new _.L8(new L6({worker:f.workerScope,streamBinaryChunks:S})):new _.L8},Lsu=function(f,S,B,G){S["Content-Type"]="application/json+protobuf";
S["X-User-Agent"]="grpc-web-javascript/0.1";var g=S.Authorization;if(g&&ml2.has(g.split(" ")[0])||f.withCredentials)B.JSC$7841_withCredentials_=!0;if(f.suppressCorsPreflight)G=Ksn(G,"$httpHeaders",S);else for(f=_.m(Object.keys(S)),g=f.next();!g.done;g=f.next())g=g.value,B.headers.set(g,S[g]);return G},kGu=function(f,S,B){if(B){B=new HFO(f);
var G=new qRe(B)}return new OS({xhr:f,nodeReadableStream:G},S)},xlB=function(f,S){return S.reduce(function(B,G){return function(g){return G.intercept(g,B)}},f)},rDO=function(f,S){return S.reduce(function(B,G){return function(g){return G.intercept(g,B)}},f)};var nK2=function(f){this.client_=new YRu;this.hostname_=f==void 0?f:f.replace(/\/+$/,"")};
_.e=nK2.prototype;_.e.JSC$17178_depositGoogleCredential=function(f,S,B){return C6(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",f,S||{},y3e,B)};
_.e.deleteLink=function(f,S,B){return C6(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",f,S||{},udO,B)};
_.e.JSC$17178_finishOAuth=function(f,S,B){return C6(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",f,S||{},c3u,B)};
_.e.getLink=function(f,S,B){return C6(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",f,S||{},ldn,B)};
_.e.startLinkingSession=function(f,S,B){return C6(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",f,S||{},bFM,B)};var s8e=[0,awu,1,cZu,[0,_.c_,[0,yZu,-1]],[0,WTu],[0,lwO,-1]];var Dl2=function(){this.storage=new Map},Ulo=function(f,S,B,G,g){if(!f.storage.has(S))return null;
f=_.m(f.storage.get(S));for(S=f.next();!S.done;S=f.next())if(S=S.value,!g||S.linkName===g)if(B&&S.scopes&&IP$(S.scopes,B)||G&&S.capabilities&&IP$(S.capabilities,G))return S;return null},CxB=function(f,S,B){if(!B)f.storage.delete(S);
else if(f.storage.has(S)){var G=f.storage.get(S).filter(function(g){return g.linkName!==B});
G.length>0?f.storage.set(S,G):f.storage.delete(S)}},IP$=function(f,S){S=_.m(S);
for(var B=S.next();!B.done;B=S.next())if(!f.has(B.value))return!1;return!0};var p8u=function(){var f=_.nL("LINK_GAL_DOMAIN");this.alsDomain1p=_.nL("LINK_GAL_DOMAIN");this.alsDomain3p=f;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},ADo=function(f,S){f.apiKey=S;
return f};
p8u.prototype.build=function(){var f={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Vj");f.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Wj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Xj");f.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(f.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)f.apiKey=
this.apiKey,f.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Yj");f.oauthToken=this.oauthToken;f.alsDomain=this.alsDomain3p}f.clientXd3=this.clientXd3;f.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(f.authUser=this.authUser);this.bucket!==void 0&&(f.bucket=this.bucket);this.completionUrl!==void 0&&(f.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(f.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(f.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(f.locale=this.locale);f.loggerType=this.loggerType;f.clientEnvironment=this.clientEnvironment;f.colorScheme=this.colorScheme;f.showCloseOption=this.showCloseOption;return f};var Jn=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(Jn,_.s7);var Nbn=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(Nbn,_.s7);var MWu=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(MWu,_.s7);var vb=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(vb,_.s7);var ZFY=function(f){return _.sH(f,1)};var tWu=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(tWu,_.s7);var U6o=_.fC(tWu),Pb=[1,2,3,4,5];var nHz=function(f){try{return U6o(f)}catch(S){return null}},u$e=function(){},sr$=function(f,S){switch(_.rp(S,Pb)){case 4:return(S=_.UH(S,MWu,4,Pb))&&f.logStateTransition(_.sH(S,1)),!0;
case 5:return(S=_.UH(S,Nbn,5,Pb))&&f.logInternalEvent(_.sH(S,1)),!0}return!1},Cso=function(f){switch(f){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.mu(f)}};var LmB=function(f,S){var B=this;this.validator=f;this.messageListener=S;this.dismissCallback=function(){aPX(B,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$17207_receiveMessage=function(G){G.type==="message"&&(G=G.event_,G!==null&&(new URL(B.iframe.src)).origin===G.origin&&B.validator(G.data,G.origin)&&!B.messageListener(G.data)&&(B.JSC$17207_resolveCb!==void 0&&B.JSC$17207_resolveCb(G.data),yDY(B)))}},I02=function(f,S,B){f.uiHandler!==void 0&&aPX(f,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(G,g){f.JSC$17207_resolveCb=G;f.JSC$17207_rejectCb=g;f.iframe=document.createElement("iframe");_.x6(f.iframe,S);f.uiHandler=B.displayContent(f.iframe,f.dismissCallback);_.jP(window,"message",f.JSC$17207_receiveMessage,!1,f)})},aPX=function(f,S){f.JSC$17207_rejectCb!==void 0&&f.JSC$17207_rejectCb(S);
yDY(f)},yDY=function(f){f.uiHandler!==void 0&&f.uiHandler.hideContent();
_.qM(window,"message",f.JSC$17207_receiveMessage,!1,f);f.JSC$17207_resolveCb=void 0;f.JSC$17207_rejectCb=void 0;f.uiHandler=void 0;f.iframe=void 0};var Wsu=function(f){if(f===2){var S;f=((S=window)==null?0:S.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return f},D6z=function(f){f=Wsu(f);
switch(f){case 0:return"light";case 1:return"dark";default:_.mu(f)}};var kMB=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),cDu=function(f,S){this.JSC$17219_linkingSession=f;this.noticeConfig=S;this.displayInfoMap=new Map;var B=new Map;if(_.qa(this.JSC$17219_linkingSession,SRY,7))for(f=_.BU(this.JSC$17219_linkingSession,SRY,7),f=_.oK(f,oK2,1,_.SI()),f=_.m(f),S=f.next();!S.done;S=f.next())S=S.value,B.set(_.sH(S,1),_.zvQ(_.BU(S,_.RNj,3)));if(B.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){S=this.noticeConfig.enabledDataUsageNoticeUis;f=S.has(0)?B.get(1):void 0;S=S.has(1)?B.get(2):void 0;B=f!==void 0&&S!==void 0?B.get(3):void 0;var G=this.noticeConfig.nestedOrigins;var g=new tWu;var b=new Jn;g=_.Bo(g,2,Pb,b);b=new tWu;var z=new Jn;b=_.Bo(b,3,Pb,z);z=[];f!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:f,lastEvent:g,nestedOrigins:G}]),z.push({trustedUrl:f,lastEvent:g,nestedOrigins:G}));S!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:S,lastEvent:b,nestedOrigins:G}]),z.push({trustedUrl:S,lastEvent:b,nestedOrigins:G}));B!==void 0?this.displayInfoMap.set(3,[{trustedUrl:B,lastEvent:b,nestedOrigins:G}]):this.displayInfoMap.set(3,z)}};var lPo=function(f){var S=new Dl2;this.galService=f;this.galCache=S};
lPo.prototype.getLink=function(f){var S=f.serviceId;var B=f.scopes;var G=f.capabilities;var g=f.linkName;var b=this,z;return _.R(function(X){if(G!==void 0&&B!==void 0)throw Error("Zj");z=Ulo(b.galCache,S,B,G,g);return z!==null?X.return(z):X.return(b.galService.getLink({serviceId:S,sessionId:Math.floor(Math.random()*2147483648),scopes:B,capabilities:G,linkName:g}).then(function(w){w=ZgB(w);var F=b.galCache;F.storage.has(S)?F.storage.get(S).push(w):F.storage.set(S,[w]);return w}))})};
lPo.prototype.deleteLink=function(f,S,B){var G=this;return _.R(function(g){CxB(G.galCache,f,B);return g.return(G.galService.deleteLink({serviceId:f,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:S,linkName:B}).then(function(){return!0}))})};var oV$=function(f,S){var B=this;this.validator=f;this.msgHandler=S;this.closedPopupTimeout=this.JSC$17241_rejectCb=this.JSC$17241_resolveCb=this.popup=null;this.JSC$17241_receiveMessage=function(G){if(G!==null&&(G=G.event_,G.source===B.popup)){var g=G.data;if(B.validator(g,G.origin)){var b;(b=B.msgHandler)!=null&&b.call(B,g)||(B.JSC$17241_resolveCb!==null&&B.JSC$17241_resolveCb(g),fpX(B))}}}};
oV$.prototype.open=function(f,S){var B=this;this.popup!==null&&SC2(this);return new Promise(function(G,g){B.JSC$17241_resolveCb=G;B.JSC$17241_rejectCb=g;B.popup=_.LC(window,f,"",S);_.jP(window,"message",B.JSC$17241_receiveMessage,!1,B);B5u(B)})};
var SC2=function(f,S){f.JSC$17241_rejectCb!==null&&f.JSC$17241_rejectCb(S);fpX(f)},fpX=function(f){f.closedPopupTimeout&&(f.closedPopupTimeout.cancel(),f.closedPopupTimeout=null);
f.popup&&f.popup.close();_.qM(window,"message",f.JSC$17241_receiveMessage,!1,f);f.popup=null;f.JSC$17241_resolveCb=null;f.JSC$17241_rejectCb=null},B5u=function(f){f.closedPopupTimeout=_.woN(100).then(function(){f.popup?f.popup.closed?GNu(f):B5u(f):SC2(f,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},GNu=function(f){f.closedPopupTimeout=_.woN(100).then(function(){SC2(f,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var gVu=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),eoZ=function(f,S,B,G,g,b,z,X,w,F){var V=this;this.serviceId=f;this.sessionId=S;this.galService=B;this.oauthDetails=G;this.galLogger=g;this.interactionMode=b;this.redirectServiceUrl=z;this.consentLanguageKeys=X;this.dynamicUrlParameters=w;this.partnerConfigMinReadTimestamp=F;this.started=!1;this.JSC$17247_dataValidator=function(J,
P){var d=gVu.has(P);d||V.redirectServiceUrl===void 0||(d=V.redirectServiceUrl===P);return d?J.sentinel==="gdi":!1}};
eoZ.prototype.complete=function(){var f=this,S;return _.R(function(B){if(f.interactionMode!==1)return B.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));S=dy.getRedirectStateFromUri();return S===null?B.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):B.return(byO(f,S))})};
eoZ.prototype.start=function(){var f=this,S;return _.R(function(B){if(f.started)return B.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.n4(f.oauthDetails,1))return B.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(f.interactionMode===1)return dy.setLocation(_.n4(f.oauthDetails,1)),B.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));f.started=!0;f.galLogger.logStateTransition(5);
S=dy.getPostMessagePopup(f.JSC$17247_dataValidator);return B.return(S.open(_.n4(f.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(G){f.started=!1;var g=f.galLogger;if((G==null?void 0:G.error)!==void 0)throw g.logInternalEvent(59),Error("$j");if((G==null?void 0:G.redirect_state)===void 0)throw g.logInternalEvent(131),Error("ak");return byO(f,G.redirect_state)}).catch(function(G){f.started=
!1;
return G.errorCode!==void 0?{statusCode:G.errorCode,statusMessage:G.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var byO=function(f,S){return _.R(function(B){return B.return(mVu(f.galService,{serviceId:f.serviceId,sessionId:f.sessionId,dynamicUrlParameters:f.dynamicUrlParameters,redirectState:S,consentLanguageKeys:f.consentLanguageKeys,partnerConfigMinReadTimestamp:f.partnerConfigMinReadTimestamp}).then(function(G){var g={statusCode:1,link:ZgB(G.getLink())};xHB(_.Q9(G,3))!==void 0&&(g.callerState=xHB(_.Q9(G,3)));f.galLogger.logInternalEvent(134);return g}))})},dy={getPostMessagePopup:function(f){return new oV$(f)},
getRedirectStateFromUri:function(){var f=_.NR(dy.getLocation()).fragment_;return(new _.za(f)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(f){_.tJ(window.location,_.io(f))},
createOAuthFlow:function(f,S){return new eoZ(f.serviceId,f.sessionId,f.galService,S,f.galLogger,f.interactionMode,f.redirectServiceUrl,f.consentLanguageKeys,f.dynamicUrlParameters,f.partnerConfigMinReadTimestamp)}};var zo2=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(zo2,_.s7);var Rou=_.fC(zo2);var XeM=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),we2=function(f,S,B,G,g,b,z,X,w){var F=this;this.serviceId=f;this.sessionId=S;this.galService=B;this.gsiWebFlowDetails=G;this.colorScheme=g;this.showCloseOption=b;this.galLogger=z;this.interactionMode=X;this.redirectServiceUrl=w;this.started=!1;this.JSC$17259_dataValidator=function(V,J){var P=XeM.has(J);P||F.redirectServiceUrl===
void 0||(P=F.redirectServiceUrl===J);return P?V.sentinel==="gal":!1};
this.logEventProcessor=function(V){return V.result?(V=nHz(V.result))?sr$(F.galLogger,V):!1:!1}};
we2.prototype.complete=function(){var f=this,S,B;return _.R(function(G){if(f.interactionMode!==1)return G.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));S=iL.getRedirectStateFromUri();if(S===void 0)return f.galLogger.JSC$17199_logErrorEvent(131),G.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return B=hon(f,S),G.return(T5M(f,B))}catch(g){return G.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
we2.prototype.start=function(){var f=this,S;return _.R(function(B){if(f.started)return B.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.n4(f.gsiWebFlowDetails,1))return B.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(f.interactionMode===1)return iL.setLocation(Fvz(f,_.n4(f.gsiWebFlowDetails,1))),B.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
f.started=!0;S=iL.getPostMessagePopup(f.JSC$17259_dataValidator,f.logEventProcessor);return B.return(S.open(Fvz(f,_.n4(f.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(G){f.started=!1;if((G==null?void 0:G.result)===void 0)throw f.galLogger.JSC$17199_logErrorEvent(131),Error("ak");G=hon(f,G.result);return T5M(f,G)}).catch(function(G){f.started=!1;
return G.errorCode!==void 0?{statusCode:G.errorCode,statusMessage:G.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var Fvz=function(f,S){f=["result_channel",f.interactionMode===1?"2":"1","color_scheme",D6z(f.colorScheme),"show_close_option",f.showCloseOption];return BmM(S,f)},T5M=function(f,S){if(S!==null&&_.qa(S,vb,2)){var B,G=S==null?void 0:(B=_.BU(S,vb,2))==null?void 0:_.sH(B,2);
G&&f.galLogger.JSC$17199_logErrorEvent(Cso(G));return ZFY(_.BU(S,vb,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 f.galService.getLink({serviceId:f.serviceId,sessionId:f.sessionId,consistencyKey:_.n4(S,1)}).then(function(g){g=ZgB(g);f.galLogger.logInternalEvent(134);return{statusCode:1,link:g}})},hon=function(f,S){S=Rou(S);
if(!_.qa(S,vb,2)&&_.n4(S,1)==="")throw f.galLogger.JSC$17199_logErrorEvent(5),Error("bk");return S},iL={getPostMessagePopup:function(f,S){return new oV$(f,S)},
getRedirectStateFromUri:function(){return _.MR(_.NR(iL.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(f){_.tJ(window.location,_.io(f))},
createStreamlinedFlow:function(f,S){return new we2(f.serviceId,f.sessionId,f.galService,S,f.colorScheme,f.showCloseOption,f.galLogger,f.interactionMode,f.redirectServiceUrl)}};var b_o=function(){var f=_.XZK("GAL");this.storage=f?new _.ia(f):null};var p6=function(){};
_.q(p6,u$e);p6.prototype.logStateTransition=function(){};
p6.prototype.logInternalEvent=function(){};
p6.prototype.JSC$17199_logErrorEvent=function(){};var V3M=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(V3M,_.s7);V3M.prototype.getCompletionUrl=function(){return _.n4(this,15)};var AI=function(f,S,B,G,g,b){this.serviceId=f;this.environment=S;this.sessionId=B;this.colorSchemeSelected=G;this.colorThemeDisplayed=g;this.JSC$17272_transport=b;this.currentState=1};
_.q(AI,u$e);AI.prototype.logStateTransition=function(f){var S=Jp2(this);S=_.GV(S,3,this.currentState);S=_.GV(S,1,f);this.currentState=f;f=RuY(1);this.dispatch(S,f)};
AI.prototype.logInternalEvent=function(f){f=RuY(f);this.dispatch(Jp2(this),f)};
AI.prototype.JSC$17199_logErrorEvent=function(f){var S=Jp2(this);S=_.GV(S,1,10);f=RuY(f);this.dispatch(S,f)};
var Jp2=function(f){var S=new V3M;S=_.GV(S,1,f.currentState);S=_.Jx(S,7,f.serviceId);var B,G;var g=((B=window)==null?0:(G=B.location)==null?0:G.href)?_.NR(window.location.href).JSC$8076_domain_:"NO_PACKAGE_NAME";B=_.Jx(S,8,g);B=_.GV(B,6,f.environment);B=_.Jx(B,5,"100");B=_.GV(B,11,f.colorSchemeSelected);return _.GV(B,12,f.colorThemeDisplayed)};
AI.prototype.dispatch=function(f,S){S===void 0&&(S=new _.hq);var B=S;f=f.serialize();B=_.Jx(B,8,f);_.is(B,12,this.sessionId);this.JSC$17272_transport.dispatch(S)};var P1z=function(f,S){this.loggerType=f;this.sessionIndex=S!=null?S:0},vV$;
P1z.prototype.create=function(f,S,B,G,g){switch(this.loggerType){case 0:return new p6;case 1:return vV$||(vV$=(new _.wj(555,this.sessionIndex.toString())).build()),new AI(f,S,B,G,g,vV$);default:_.mu(this.loggerType,"unknown logger type")}};var Hb=[6,2,3,1],wS2=new Map([[4,1],[1,6],[2,2],[3,3]]),yE$={statusCode:7,statusMessage:"Failed to create flow object"},g2M=function(f,S,B,G,g,b,z,X,w,F){this.serviceId=f;this.sessionId=S;this.config=B;this.galService=G;this.JSC$17279_linkingSession=g;this.googleScopes=b;this.callerState=z;this.consentLanguageKeys=X;this.dynamicUrlParameters=w;this.partnerConfigMinReadTimestamp=F;this.currentFlow=0;G=this.JSC$17279_linkingSession;g=new Set;_.qa(G,o2M,1)&&g.add(1);_.qa(G,GGz,2)&&_.qa(G,SlB,6)&&g.add(2);
_.qa(G,Bbu,3)&&_.qa(G,SlB,6)&&g.add(3);_.qa(G,fPB,4)&&g.add(6);this.supportedFlows=g;G=B.loggerType;g=B.clientEnvironment;a:{b=B.colorScheme;switch(b){case 0:b=1;break a;case 1:b=2;break a;case 2:b=3;break a;default:_.mu(b)}b=void 0}a:{z=B.colorScheme;z=Wsu(z);switch(z){case 0:z=1;break a;case 1:z=2;break a;default:_.mu(z)}z=void 0}this.galLogger=(new P1z(G,B.authUser)).create(f,g,S,b,z)},dVu=function(f){return new Promise(function(S){var B,G,g,b,z,X,w,F,V,J;
return _.R(function(P){switch(P.nextAddress){case 1:B=B0M(f.currentFlow,f.supportedFlows),G=!1,g=new cDu(f.JSC$17279_linkingSession,f.config.dataUsageNoticeConfig);case 2:if(B===void 0){P.jumpTo(4);break}_.zT(P,5);var d=g,Q=B,x=void 0;G?Q===1&&(x=d.displayInfoMap.get(2)):Q===2||Q===3?x=d.displayInfoMap.get(1):Q===1&&(x=d.displayInfoMap.get(3));b=x?x:[];z=f.consentLanguageKeys;X=_.m(b);w=X.next();case 7:if(w.done)return f.currentFlow=B,_.h(P,cEe(Kvz(f,z)),11);F=w.value;return _.h(P,pDM(F,f.config.dataUsageNoticeConfig.uiAdapter,
f.config.colorScheme,f.galLogger),10);case 10:V=P.yieldResult;if(V.statusCode!==1)return mC2(f.serviceId),f.currentFlow=0,S(Ke({statusCode:V.statusCode,statusMessage:V.statusMessage},f.callerState)),P.return();V.consentLanguageKeys!==void 0&&(z=V.consentLanguageKeys);w=X.next();P.jumpTo(7);break;case 11:J=P.yieldResult;if(J.statusCode!==10)return J.statusCode!==6&&(mC2(f.serviceId),f.currentFlow=0),J.statusCode!==1&&f.callerState!==void 0&&(J.callerState=f.callerState),S(J),P.return();_.CN(P,6);break;
case 5:_.hm(P);case 6:B=B0M(f.currentFlow,f.supportedFlows);G=!0;P.jumpTo(2);break;case 4:mC2(f.serviceId),f.currentFlow=0,S(Ke({statusCode:12,statusMessage:"Linking failed"},f.callerState)),_.TT(P)}})})},RYu=function(f,S,B){f.currentFlow=S;
return l0u(Kvz(f,B)).then(function(G){return G.statusCode===10&&f.config.interactionMode===1&&B0M(f.currentFlow,f.supportedFlows)!==void 0?dVu(f):G})},Kvz=function(f,S){return{flowParams:{serviceId:f.serviceId,
sessionId:f.sessionId,galService:f.galService,galLogger:f.galLogger,interactionMode:f.config.interactionMode,redirectServiceUrl:f.config.redirectServiceUrl,colorScheme:f.config.colorScheme,consentLanguageKeys:S,dynamicUrlParameters:f.dynamicUrlParameters,showCloseOption:f.config.showCloseOption,partnerConfigMinReadTimestamp:f.partnerConfigMinReadTimestamp},currentFlow:f.currentFlow,config:f.config,session:f.JSC$17279_linkingSession,googleScopes:f.googleScopes,callerState:f.callerState}};var T02=function(f,S){this.config=f;this.galService=S.getService();this.JSC$17292_galRepository=S.JSC$17310_galRepository};
T02.prototype.getLink=function(f,S){return iy2(this,f,S)};
var iy2=function(f,S,B){return f.JSC$17292_galRepository.getLink({serviceId:S,scopes:void 0,capabilities:void 0,linkName:B}).then(function(G){return{statusCode:1,link:G}}).catch(function(G){return{statusCode:hYO(G.code),
statusMessage:G.message}})};
T02.prototype.deleteLink=function(f,S){return this.JSC$17292_galRepository.deleteLink(f,this.config.accountLinkingEntryPoint,S).then(function(){return{statusCode:1}}).catch(function(B){return{statusCode:hYO(B.code),
statusMessage:B.message}})};
T02.prototype.startLinkingSession=function(f){var S=f.serviceId;var B=f.sessionId;return eY2({serviceId:S,sessionId:B!==void 0?B:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:f.loginHint,callerState:f.callerState,consentLanguageKeys:f.consentLanguageKeys,linkName:f.linkName,dynamicUrlParameters:f.dynamicUrlParameters,partnerConfigMinReadTimestamp:f.partnerConfigMinReadTimestamp})};var NU=function(f,S,B,G,g,b,z){this.apiKey=S;this.authUser=B;this.oauthToken=G;this.bucket=g;this.locale=b;this.galSdkEventHandler=z;if(G===void 0){if(S===void 0)throw Error("ck");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new nK2(f)};
NU.prototype.deleteLink=function(f){var S=f.serviceId;var B=f.sessionId;var G=f.accountLinkingEntryPoint;var g=f.linkName;var b=this,z;return _.R(function(X){var w=(new $t).setHeader(MU(b,B));var F=Hy2({serviceId:S,linkName:g});w=_.SZ(w,2,F);z=_.p4(w,3,G);return X.return(b.makeRequest(b.galServiceClient.deleteLink,z,[1,3],[2,4]))})};
var mVu=function(f,S){var B=S.serviceId;var G=S.sessionId;var g=S.dynamicUrlParameters;var b=S.redirectState;var z=S.consentLanguageKeys;var X=S.partnerConfigMinReadTimestamp;var w;return _.R(function(F){var V=(new Yt).setHeader(MU(f,G,g));V=_.oQ(V,2,B);w=_.oQ(V,4,b);z!==void 0&&_.oQ(w,5,z);X!==void 0&&_.SZ(w,6,X);return F.return(f.makeRequest(f.galServiceClient.JSC$17178_finishOAuth,w,[1,3],[2,4]))})};
NU.prototype.getLink=function(f){var S=f.serviceId;var B=f.sessionId;var G=f.scopes;var g=f.capabilities;var b=f.consistencyKey;var z=f.linkName;var X=this,w;return _.R(function(F){var V=(new r7).setHeader(MU(X,B)),J=Hy2({serviceId:S,scopes:G,capabilities:g,linkName:z});w=_.SZ(V,2,J);b!==void 0&&(V=CFO(),V=_.oQ(V,2,b),_.SZ(w,3,V));return F.return(X.makeRequest(X.galServiceClient.getLink,w,[1,3],[2,4]))})};
var fcY=function(f,S){var B=S.serviceId;var G=S.sessionId;var g=S.googleScopes;var b=S.consistencyKey;var z;return _.R(function(X){var w=(new Qn).setHeader(MU(f,G));w=_.oQ(w,2,B);var F=Array.from(g.values());w=_.qk(w,3,F,_.su);F=CFO();F=_.oQ(F,2,b);z=_.SZ(w,4,F);return X.return(f.makeRequest(f.galServiceClient.JSC$17178_depositGoogleCredential,z,[1,3],[2,4]))})};
NU.prototype.startLinkingSession=function(f){var S=f.serviceId;var B=f.sessionId;var G=f.scopes;var g=f.capabilities;var b=f.loginHint;var z=f.supportedFlows;var X=f.completionUrl;var w=f.usePingPong;var F=f.twoWayLinking;var V=f.accountLinkingEntryPoint;var J=f.callerState;var P=f.consentLanguageKeys;var d=f.googleScopes;var Q=f.dataUsageNoticeConfig;var x=f.linkName;var E=f.dynamicUrlParameters;var U=f.partnerConfigMinReadTimestamp;var A=this,t,M;return _.R(function(a){if(g!==void 0&&G!==void 0)throw Error("Zj");
var l=(new j$).setHeader(MU(A,B,E));t=_.oQ(l,2,S);x!==void 0&&_.oQ(t,14,x);if(g!==void 0){l=t;var mx=Array.from(g.values());_.qk(l,5,mx,_.su)}else G!==void 0&&(l=t,mx=Array.from(G.values()),_.qk(l,3,mx,_.su));X!==void 0&&_.oQ(t,6,X);w!==void 0&&_.Yc(t,15,w);z!==void 0&&(l=t,mx=Array.from(z.values()),_.qk(l,4,mx,_.de));if(F!==void 0){if(F&&(!d||d.size===0))throw Error("dk");_.Yc(t,8,F)}V!==void 0&&_.p4(t,9,V);b!==void 0&&_.oQ(t,13,b);J!==void 0&&(l=t,mx=(new TextEncoder).encode(J),_.$g(l,12,_.ni(mx,
!1),_.kX()));P!==void 0&&_.oQ(t,16,P);U!==void 0&&_.SZ(t,18,U);if(Q!==void 0&&Q.size>0||d!==void 0&&d.size>0)M=new e$z,d!==void 0&&d.size>0&&(l=M,mx=Array.from(d.values()),_.qk(l,1,mx,_.su)),Q!==void 0&&(Q.has(0)&&_.bYW(M,2,_.de,1,_.iz),Q.has(1)&&_.bYW(M,2,_.de,2,_.iz)),_.SZ(t,17,M);return a.return(A.makeRequest(A.galServiceClient.startLinkingSession,t,[1],[2]))})};
NU.prototype.getMetadata=function(){var f=this,S,B;return _.R(function(G){S={};f.useFpa?(S["X-Goog-Api-Key"]=f.apiKey,S["X-Goog-AuthUser"]=f.authUser!==void 0?f.authUser.toString():"0",(B=_.DzN([]))&&(S.Authorization=B)):S.Authorization="Bearer "+f.oauthToken;f.locale&&(S["accept-language"]=f.locale);return G.return(S)})};
NU.prototype.makeRequest=function(f,S,B,G){var g=this,b;return _.R(function(z){if(z.nextAddress==1)return _.h(z,g.getMetadata(),2);b=z.yieldResult;qCe(g,B);return z.return(f.bind(g.galServiceClient)(S,b).finally(function(){qCe(g,G)}))})};
var qCe=function(f,S){f.galSdkEventHandler!==void 0&&S.forEach(function(B){f.galSdkEventHandler.onEvent(B)})},MU=function(f,S,B){var G=new iw;
S=_.$g(G,2,_.HO(S),0);S=_.p4(S,5,3);B=_.qk(S,8,B,_.su);f.bucket!==void 0&&_.oQ(B,1,f.bucket);return B},Hy2=function(f){var S=f.serviceId;
var B=f.scopes;var G=f.capabilities;f=f.linkName;if(G!==void 0&&B!==void 0)throw Error("Zj");var g=new Id$;S=_.oQ(g,1,S);G!==void 0?(B=Array.from(G.values()),_.qk(S,5,B,_.su)):B!==void 0&&(B=Array.from(B.values()),_.qk(S,3,B,_.su));f!==void 0&&_.oQ(S,6,f);return S};var FIZ=function(f){this.galService=new NU(f.alsDomain,f.apiKey,f.authUser,f.oauthToken,f.bucket,f.locale,f.galSdkEventHandler);this.JSC$17310_galRepository=new lPo(this.galService)};
FIZ.prototype.getService=function(){return this.galService};var $VB=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q($VB,_.s7);var QYB=function(f){var S=new $VB;return _.GV(S,1,f)};
$VB.prototype.setErrorMessage=function(f){return _.Jx(this,2,f)};var YCu=[0,_.fb,_.W_,_.fb];var ZF=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(ZF,_.s7);var rpY=[0,[1,2,3],_.lh,[0,MPu,u_Y,-1],_.lh,[0,tP2,-1],_.aAV];var jYZ=[0,_.am,1,_.fb,_.W_,-1,1,_.cdK,_.uh,_.fb,-1,rpY];var OyO=[0,_.fb,[0,_.cdK,_.uh,[0,_.W_]],_.y9,[0,_.fb,-1]];var bw=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(bw,_.s7);var xVX=[0,_.W_,_.fb,-2,_.am,_.fb,_.am,_.fb,-2,1,_.y9];var EVn=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(EVn,_.s7);var LvB=[0,_.am];var kNM=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(kNM,_.s7);var nVe=[0,_.fb,OyO,LvB,xVX,jYZ];var Mau=_.WQ(kNM,nVe);var sY2=[0,s8e];var WdX=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(WdX,_.s7);var DV2=[0,[1,3],fdn,_.fb,fdn];var g7=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(g7,_.s7);var Ipo=[0,_.fb];var UVo=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(UVo,_.s7);var e$=function(f){return _.UH(f,$VB,2,G3)},C1O=function(f){var S=new UVo;
return _.Bo(S,2,G3,f)},G3=[1,
2];var pe2=[0,G3,_.lh,Ipo,_.lh,YCu,_.c_,DV2,1,_.fb,sY2];var ApM=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(ApM,_.s7);var M3z=function(f){var S=new ApM;return _.Bo(S,3,N5o,f)},N5o=[2,
3];var tI=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(tI,_.s7);var Zyu=function(f,S){return _.SZ(f,2,S)},t3o=function(f,S){return _.SZ(f,8,S)},u8n=function(f,S){return _.SZ(f,3,S)};var apz=[0,_.fb,pe2,nVe,_.eBi,[0,[5,6],[0,_.fb,-2],[0,_.am,_.fb,_.W_],[0,rpY],[0,_.W_,_.fb,-1,_.g$6,_.fb],_.lh,[0,[0,_.am],_.fb,-1],_.lh,[0,[3,4],_.fb,-1,_.lh,[0,[0,_.fb,_.y9]],_.lh,[0,[0,[0,[1,2],_.lh,[0],_.lh,[0]]]]]],_.eBi,-1,[0,N5o,_.fb,_.lh,Ipo,_.lh,YCu,_.c_,DV2,[0,s8e]]];var ypn=_.WQ(tI,apz),Wve=_.cQ(apz);var cpY=function(){_.qR.call(this)};
_.q(cpY,_.qR);cpY.prototype.init=function(){};
new cpY;var lp$=_.f4(["data-"]),fWB=_.f4(["aria-"]),oju=_.f4(["aria-"]),uw=function(f,S){this.isLatencyMeasurementExperiment=f===void 0?!1:f;this.enableDialogA11yFix=S===void 0?!1:S;this.JSC$17339_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.EXL(_.S1.location.href)},tao=function(f,S){f.onConsentPrimitiveShownCallback=S},Sye=function(f,S){return f.overriddenIframeLoadTimeout?f.overriddenIframeLoadTimeout:S!==void 0?S:5E3},aUB=function(f){if(f.prewarmPromise!==void 0)return f.prewarmPromise;
f.prewarmPromise=new Promise(function(S,B){aE(f,1);BLO(f,GqB(f,!0),gjZ(f));f.iframe?f.prewarmChannel||eF2(f,f.iframe,S):B(Error("ek"))});
f.prewarmPromise.finally(function(){f.prewarmPromise=void 0});
return f.prewarmPromise};
uw.prototype.showPrimitive=function(){var f=this;if(this.consentPromise!==void 0)return this.consentPromise;var S=Date.now();bzY(this,S);this.consentPromise=new Promise(function(B,G){aE(f,0,S);var g=f.isDarkTheme();f.isLatencyMeasurementExperiment||f.initialLoadingStrategy===1||f.initialLoadingStrategy===2||(f.loadingBar||(f.loadingBar=v2o(getComputedStyle(document.body).direction==="rtl",g),f.loadingBar.style.position="fixed",f.loadingBar.style.zIndex="15000"),document.body.appendChild(f.loadingBar));
BLO(f,GqB(f),gjZ(f));f.iframe?f.channel||m_X(f,f.iframe,B,G):(zFX(f),G(Error("ek")))});
this.consentPromise.finally(function(){f.consentPromise=void 0});
return this.consentPromise};
var m_X=function(f,S,B,G){var g,b;_.R(function(z){switch(z.nextAddress){case 1:aE(f,3);g=!1;setTimeout(function(){if(!g){zFX(f);RFB(f);XYu(f);var X=QYB(7).setErrorMessage("Timeout connecting to iframe");B(t3o(Zyu(new tI,C1O(X)),M3z(X)))}},Sye(f,wYO(f)));
if(!f.prewarmPromise){z.jumpTo(2);break}_.zT(z,3);return _.h(z,f.prewarmPromise,5);case 5:_.CN(z,2);break;case 3:_.hm(z),b=QYB(4).setErrorMessage("Error while prewarming."),B(t3o(Zyu(new tI,C1O(b)),M3z(b)));case 2:f.prewarmChannel&&f.prewarmChannel.send(Wve(u8n(new tI,f.consentPrimitiveRequest))),f.channel=_.Bq({destination:f.JSC$17339_win,iframe:S,origin:hFM(f),channelName:"cpw",onEstablished:function(){g=!0;zFX(f);f.isLatencyMeasurementExperiment||(f.JSC$17339_previousBodyOverflow=document.body.style.overflow,
f.JSC$17339_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,f.JSC$17339_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",f.enableDialogA11yFix&&window.addEventListener("blur",f.focusChangeListener));var X=f.iframe;X.style.bottom="0";X.style.position="fixed";X.style.right="0";X.style.border="none";X.style.left="0";X.style.top=
"0";X.style.zIndex="5000";X.style.pointerEvents="";X.style.visibility="";f.initialLoadingStrategy===2||f.initialLoadingStrategy===3?aE(f,4):aE(f,6);var w;(w=f.onConsentPrimitiveShownCallback)==null||w.call(f)},
onMessage:function(X){X=ypn(X.data);switch(_.sH(X,1)){case 1:RFB(f);var w=KIZ(_.BU(X,_.MV,7));w&&(f.initialLoadingStrategy!==2&&f.initialLoadingStrategy!==3||aE(f,6,w),aE(f,5,w));if(w=KIZ(_.BU(X,_.MV,6)))aE(f,7,w),aE(f,8);var F,V;((F=_.BU(X,UVo,2))==null?void 0:_.rp(F,G3))!==0&&((V=_.BU(X,ApM,8))==null?void 0:_.rp(V,N5o))!==0||G(Error("fk"));B(X);break;case 2:XYu(f)}}}),_.TT(z)}})},eF2=function(f,S,B){f.prewarmChannel=_.Bq({destination:f.JSC$17339_win,
iframe:S,origin:hFM(f),channelName:"pwcp",onEstablished:function(){aE(f,2);B()}})},hFM=function(f){var S=_.RP(f.src).toString();
return S&&S.indexOf("://")<0&&S.indexOf("//")!==0?f.origin:_.EXL(S)},GqB=function(f,S){S=S===void 0?!1:S;
var B,G=new Map([["origin",f.origin],["hl",(B=TLu(f))!=null?B:null]]);S&&G.set("pw","1");S=_.m([["cpr",f.consentPrimitiveRequest.serialize()]]);for(B=S.next();!B.done;B=S.next()){var g=_.m(B.value);B=g.next().value;g=g.next().value;G.set(B,g)}f.isDarkTheme()&&G.set("color_scheme","dark");return _.Bd(f.src,G)},zFX=function(f){f.isLatencyMeasurementExperiment||f.loadingBar&&document.body.removeChild(f.loadingBar)};
uw.prototype.getSrc=function(){var f=_.aj(this.origin),S;var B=(S=_.BU(this.consentPrimitiveRequest,EVn,3))==null?void 0:_.Bv(S,1);S="consent.google.com";B=B?"/u/"+encodeURIComponent(B.toString()):"";(f==null?0:f.endsWith("youtube.com"))?S="consent.youtube.com":(f=f==null?void 0:f.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(S="consent.google."+((f[1]?"co.":"")+encodeURIComponent(f[2])));return _.zC("https://"+S+"/signedin"+B+"/landing")};
var BLO=function(f,S,B){f.iframe||(f.iframe=document.createElement("iframe"),f.iframe.style.width="100%",f.iframe.style.height="100%",B!==112496729&&(f.iframe.style.colorScheme="auto"),f.isLatencyMeasurementExperiment&&(f.iframe.style.display="none"),_.x6(f.iframe,S),f.iframe.setAttribute("jsname","C5o1O"),FZZ(f.iframe),document.body.appendChild(f.iframe))},FZZ=function(f){f.style.bottom="-200vh";
f.style.position="fixed";f.style.right="-200vw";f.style.border="";f.style.left="";f.style.top="";f.style.zIndex="";f.style.pointerEvents="none";f.style.visibility="hidden"},RFB=function(f){f.iframe&&(f.isLatencyMeasurementExperiment||(f.JSC$17339_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=f.JSC$17339_previousHtmlOverscroll),f.JSC$17339_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=f.JSC$17339_previousBodyOverscroll),f.JSC$17339_previousBodyOverflow!==
void 0&&(document.body.style.overflow=f.JSC$17339_previousBodyOverflow),f.enableDialogA11yFix&&VOe(f,!1)),FZZ(f.iframe))};
uw.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(VOe(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var VOe=function(f,S){var B,G,g=(B=f.iframe)==null?void 0:(G=B.parentElement)==null?void 0:G.children;if(g)for(B=0;B<g.length;B++)G=g[B],G!==f.iframe&&(S?(G.hasAttribute("aria-hidden")&&_.AJ([_.fo(lp$)],G,"data-old-aria-hidden",G.getAttribute("aria-hidden")),_.AJ([_.fo(fWB)],G,"aria-hidden","true")):(G.removeAttribute("aria-hidden"),G.hasAttribute("data-old-aria-hidden")&&(_.AJ([_.fo(oju)],G,"aria-hidden",G.getAttribute("data-old-aria-hidden")),G.removeAttribute("data-old-aria-hidden"))))},aE=function(f,
S,B){var G;
(G=f.latencyCallback)==null||G.call(f,{latencyType:S,timestampEpochMillis:B!=null?B:Date.now()})};var J9n=function(f,S,B){uw.call(this,S,B===void 0?!1:B);this.consentPrimitiveRequest=f;f=TLu(this);_.TOu(f);this.src=this.getSrc();var G;this.initialLoadingStrategy=(G=_.BU(this.consentPrimitiveRequest,bw,4))==null?void 0:_.sH(G,4)},PGz;
_.q(J9n,uw);var Zn2=function(f){var S=_.K("enable_primitive_dialog_aria_hide_siblings");f={request:f,enableDialogA11yFix:S===void 0?!1:S};PGz||(PGz=new J9n(f.request,f.isLatencyMeasurementExperiment||_.sH(f.request,1)===2,f.enableDialogA11yFix));return PGz},TLu=function(f){var S;
return(S=_.BU(f.consentPrimitiveRequest,bw,4))==null?void 0:_.n4(S,1)},bzY=function(f,S){if(!_.qa(f.consentPrimitiveRequest,ZF,5)){var B=f.consentPrimitiveRequest,G=new ZF;
_.SZ(B,5,G)}var g;if((g=_.BU(f.consentPrimitiveRequest,ZF,5))==null||_.w7W(_.H_(g,8))==null){var b;(b=_.BU(f.consentPrimitiveRequest,ZF,5))!=null&&_.is(b,8,S)}},gjZ=function(f){var S;
return(S=_.BU(f.consentPrimitiveRequest,ZF,5))==null?void 0:_.Bv(S,1)};
J9n.prototype.isDarkTheme=function(){var f;return((f=_.BU(this.consentPrimitiveRequest,bw,4))==null?void 0:_.sH(f,2))===2};
var wYO=function(f){var S;return((S=_.BU(f.consentPrimitiveRequest,bw,4))==null?void 0:_.Bv(S,5))||void 0},XYu=function(f){f.channel=void 0;
f.prewarmChannel=void 0;f.iframe&&(document.body.contains(f.iframe)&&document.body.removeChild(f.iframe),f.iframe=void 0);PGz=void 0},yKo=function(f){return uw.prototype.showPrimitive.call(f).then(function(S){return _.BU(S,UVo,2)})};for(var yn={},vju=(yn[64]="ma",yn[73]="ogb",yn[89]="cr",yn[21]="test",yn[0]="unkn",yn[137]="con",yn[155]="hl",yn[78]="yt",yn[171]="lp",yn[172]="ap",yn[177]="amo",yn[178]="pqe",yn[74]="gg",yn[1]="gm",yn[140]="am",yn[193]="sc",yn),KZu=_.m(Object.keys(vju)),d_B=KZu.next();!d_B.done;d_B=KZu.next());var izu=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(izu,_.s7);var HzX=[0,[2,3,4],_.fb,ZHn,fdn,_.aAV];var qyM=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(qyM,_.s7);var $_B=_.WQ(qyM,[0,lwO,_.W_,_.fb,_.W_,_.fb,HzX]);var QQX=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(QQX,_.s7);QQX.prototype.getCommand=function(){return _.sH(this,1)};
var Yy2=function(){var f=new QQX;return _.p4(f,1,0)};var r9u=_.cQ([0,lwO,_.W_,[0,_.fb,_.W_,-1]]);var jQn=new _.vE("s"),OzX=new _.vE("t"),x_o=new _.vE("u"),EjO=new _.vE("v"),LZn=function(f,S,B){_.K8.call(this,jQn);this.mediaKey=f;this.photoUrl=S;this.photoSource=B};
_.q(LZn,_.K8);var kqB=function(){_.K8.call(this,OzX)};
_.q(kqB,_.K8);var njZ=function(f){f=f===void 0?!1:f;_.K8.call(this,x_o);this.isError=f};
_.q(njZ,_.K8);var sQB=function(){_.K8.call(this,EjO)};
_.q(sQB,_.K8);var D_u=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,pYO=function(f){if(typeof f=="string"){if(f.charAt(0)==".")return IWZ(f.substr(1));if(f.charAt(0)=="["){var S=D_u.exec(f);f=f.indexOf("=")==-1?void 0:S[3];return U_z(S[1],f)}return CGn(f)}return f},IWZ=function(f){return function(S){return S.getAttribute&&_.Z2(S,f)}},U_z=function(f,S){return function(B){return S!==void 0?B.getAttribute&&B.getAttribute(f)==S:B.hasAttribute&&B.hasAttribute(f)}},CGn=function(f){f=f.toUpperCase();
return function(S){return(S=S.tagName)&&S.toUpperCase()==f}},A9u=function(){return!0};var W3=function(f,S){this.JSC$17367_key_=f;this.JSC$17367_value_=S},c3=function(f){throw Error("gk`"+f.JSC$17367_key_);
},NLY=function(f,S){return new TypeError("hk`"+S+"`"+f.JSC$17367_key_+"`"+f.JSC$17367_value_+"`"+typeof f.JSC$17367_value_)};
W3.prototype.string=function(f){if(arguments.length==0)var S=MO2(this);else{var B;S=(B=Zz2(this))!=null?B:f}return S};
var MO2=function(f){var S=Zz2(f);S===null&&c3(f);return S},Zz2=function(f){var S=f.JSC$17367_value_;
if(S==null)return null;if(typeof S==="string")return S;throw NLY(f,"string");};
W3.prototype.bool=function(f){if(arguments.length==0){var S=this.optionalBool();S===null&&c3(this)}else{var B;S=(B=this.optionalBool())!=null?B:f}return S};
W3.prototype.optionalBool=function(){var f=this.JSC$17367_value_;if(f==null)return null;if(typeof f==="boolean")return f;if(typeof f==="string"){f=f.toLowerCase();if(f==="true"||f==="1")return!0;if(f==="false"||f==="0")return!1}throw NLY(this,"boolean");};
W3.prototype.number=function(f){if(arguments.length==0){var S=tOO(this);S===null&&c3(this)}else{var B;S=(B=tOO(this))!=null?B:f}return S};
var tOO=function(f){var S=f.JSC$17367_value_;if(S==null)return null;if(typeof S==="number")return S;if(typeof S==="string"){var B=Number(S);if(!isNaN(B)&&(B!==0||S.trim().length!==0))return B}throw NLY(f,"number");};
W3.prototype.toString=function(){return MO2(this)};
W3.prototype.array=function(f){if(arguments.length==0){var S=ugB(this);S===null&&c3(this);return S}S=ugB(this);return S==null?f:S};
var ugB=function(f){var S=f.JSC$17367_value_;if(S==null)return null;Array.isArray(S)||(typeof S!=="string"?S=[S]:(S=S.trim(),S=S==""?[]:S.split(",").map(function(B){return B.trim()})));
return aWe(f,S)},aWe=function(f,S){var B=f.JSC$17367_key_+"[";
return Array.from(S,function(G,g){return new W3(B+g+"]",G)})};
W3.prototype.object=function(f){var S=this.JSC$17367_value_;if(S==null)return f===void 0&&c3(this),f;if(typeof S==="object"&&S.constructor===Object){f={};var B=this.JSC$17367_key_+".",G;for(G in S)f[G]=new W3(B+G,S[G]);return f}throw NLY(this,"object");};var lw=function(f){this.list_=y9Y(f)},y9Y=function(f){if(f instanceof lw)f=f.list_;
else if(f[0]instanceof lw){for(var S=new Set,B=0;B<f.length;B++)for(var G=_.m(f[B].list_),g=G.next();!g.done;g=G.next())S.add(g.value);f=S}return[].concat(_.$d(f))};
_.e=lw.prototype;_.e.each=function(f,S,B){((B===void 0?0:B)?YZZ:_.AA)(this.list_,f,S);return this};
_.e.size=function(){return this.list_.length};
_.e.isEmpty=function(){return this.list_.length===0};
_.e.get=function(f){return this.list_[f]||null};
_.e.el=function(){return this.list_[0]||null};
_.e.map=function(f,S){return _.Yv(this.list_,f,S)};
_.e.equals=function(f){return this===f||_.m6(this.list_,f.list_)};
_.e.first=function(){return this.list_.length==0?null:new fU(this.list_[0])};
_.e.find=function(f){var S=[];this.each(function(B){B=B.querySelectorAll(String(f));for(var G=0;G<B.length;G++)S.push(B[G])});
return new lw(S)};
_.e.parent=function(){var f=[];this.each(function(S){(S=S.parentElement||null)&&!_.As(f,S)&&f.push(S)});
return new lw(f)};
_.e.children=function(){var f=[];this.each(function(S){S=_.nb(S);for(var B=0;B<S.length;B++)f.push(S[B])});
return new lw(f)};
_.e.filter=function(f){f=_.wp(this.list_,pYO(f));return new lw(f)};
_.e.closest=function(f){var S=[],B=pYO(f),G=function(g){return _.aJ(g)&&B(g)};
this.each(function(g){(g=_.kv(g,G,!0))&&!_.As(S,g)&&S.push(g)});
return new lw(S)};
_.e.next=function(f){return WZB(this,_.ysm,f)};
_.e.prev=function(f){return WZB(this,o8z,f)};
var WZB=function(f,S,B){var G=[];var g=B?pYO(B):A9u;f.each(function(b){(b=S(b))&&g(b)&&G.push(b)});
return new lw(G)};
lw.prototype.setClass=function(f){return this.each(function(S){_.MM(S,f)})};
var c9B=function(f,S){return f.each(function(B){_.oa(B,S)})},lWY=function(f,S){return f.each(function(B){_.lk(B,S)})};
lw.prototype.toggleClass=function(f,S){return S===!0?c9B(this,f):S===!1?lWY(this,f):this.each(function(B){_.Z2(B,f)?_.lk(B,f):_.oa(B,f)})};
lw.prototype.setText=function(f){return this.each(function(S){_.sJ(S,f)})};
var fIY=function(f){f.each(function(S){S.removeAttribute("aria-hidden")})};
lw.prototype.getStyle=function(f){if(this.list_.length>0){var S=this.list_[0],B=S.style[_.Vw(f)];return typeof B!=="undefined"?B:S.style[_.zjv(S,f)]||""}};
lw.prototype.getData=function(f){if(this.list_.length===0)return new W3(f,null);var S=LEe(this.list_[0],f);return new W3(f,S)};
lw.prototype.focus=function(f){try{f?this.el().focus(f):this.el().focus()}catch(S){}return this};
lw.prototype.click=function(){var f=_.OI(this.el());if(f.createEvent){var S=f.createEvent("MouseEvents");S.initMouseEvent("click",!0,!0,f.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(S)}else f=f.createEventObject(),f.clientX=0,f.clientY=0,f.screenX=0,f.screenY=0,f.altKey=!1,f.ctrlKey=!1,f.shiftKey=!1,f.button=0,this.el().fireEvent("onclick",f)};
var oZ=function(f,S,B,G){function g(X,w,F){var V=w;w&&w.parentNode&&(V=w.cloneNode(!0));X(V,F)}
G=G===void 0?!1:G;if(f.list_.length==1){var b=f.list_[0],z=function(X){return S(X,b)};
B instanceof lw?B.each(z,void 0,G):Array.isArray(B)?(G?YZZ:_.AA)(B,z):z(B);return f}return f.each(function(X){B instanceof lw?B.each(function(w){g(S,w,X)}):Array.isArray(B)?_.AA(B,function(w){g(S,w,X)}):g(S,B,X)})};
_.e=lw.prototype;_.e.append=function(f){return oZ(this,function(S,B){S&&B.appendChild(S)},f)};
_.e.appendTo=function(f){(new lw([f])).append(this);return this};
_.e.remove=function(){return oZ(this,function(f,S){_.Pv(S)},null)};
_.e.empty=function(){return oZ(this,function(f,S){_.EJ(S)},null)};
_.e.after=function(f,S){return oZ(this,function(B,G){B&&_.kU(B,G)},f,!(S===void 0||S))};
_.e.before=function(f){return oZ(this,function(S,B){S&&_.Lb(S,B)},f)};
_.e.replaceWith=function(f){return oZ(this,function(S,B){S&&_.t1m(S,B)},f)};
_.e.toggle=function(f){return this.each(function(S){_.ta(S,f)})};
_.e.show=function(){return this.toggle(!0)};
_.e.hide=function(){return this.toggle(!1)};
_.e.trigger=function(f,S,B,G){return oW$(this,f,S,B,G)};
var oW$=function(f,S,B,G,g){return f.each(function(b){_.V9s(_.OI(b)).triggerWizEventInternal(b,S,B,G,g)})},fU=function(f,S){f instanceof lw&&(S=f.list_,f=null);
this.list_=y9Y(f!=null?[f]:S)};
_.Rm(fU,lw);_.e=fU.prototype;_.e.children=function(){return new lw(Array.prototype.slice.call(_.nb(this.list_[0])))};
_.e.each=function(f,S){f.call(S,this.list_[0],0);return this};
_.e.size=function(){return 1};
_.e.el=function(){return this.list_[0]};
_.e.first=function(){return this};var SH=function(f,S){S=S===void 0?window:S;this.hostId=f;this.JSC$17378_win=S;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$17378_previousHtmlOverscroll=this.JSC$17378_previousBodyOverscroll=this.JSC$17378_previousBodyOverflow="";this.eventTarget=new _.$o;this.JSC$17378_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
GdO=function(f){var S=SH2(SH2(SH2(new BpY(78),"po"),"hppp"),"hhc");
S.authUser=Number(_.nL("SESSION_INDEX","0"));S.colorScheme=f;return S};
SH.prototype.getOrigin=function(){return this.origin?this.origin:_.Ga(_.Bz(_.Sz(new _.uT,this.JSC$17378_win.location.protocol),this.JSC$17378_win.location.hostname),this.JSC$17378_win.location.port).toString()};
SH.prototype.getTargetOrigin=function(){return _.Ga(_.Bz(_.Sz(new _.uT,this.scheme),this.domain),this.port)};
SH.prototype.preloadIframe=function(f){var S=this;if(this.iframeLoadPromise===void 0){var B=document.createElement("iframe");this.iframe=B;Ylu(B,f);this.iframeLoadPromise=new Promise(function(G,g){var b=!1,z=function(X){X.stopPropagation();B.removeEventListener("error",z);B.removeEventListener("securitypolicyviolation",z);g(Error("ik",{cause:X}))};
B.addEventListener("error",z);B.addEventListener("securitypolicyviolation",z);setTimeout(function(){b||g(Error("jk"))},3E4);
gWY(S,B,function(){b=!0;B.removeEventListener("error",z);B.removeEventListener("securitypolicyviolation",z);G()})});
eh2(this);f=this.getTargetOrigin().toString();B.setAttribute("allow","camera "+f+"; display-capture "+f);this.parentElement.appendChild(B)}return this.iframeLoadPromise};
var zhX=function(f,S){var B,G;return _.R(function(g){if(g.nextAddress==1)return B=v2o(getComputedStyle(f.parentElement).direction==="rtl"),f.parentElement.appendChild(B),document.activeElement instanceof HTMLElement&&(f.elementToFocusAfterClose=document.activeElement),_.zT(g,2),_.h(g,f.preloadIframe(S),4);if(g.nextAddress!=2){f.parentElement.removeChild(B);f.JSC$17378_previousBodyOverflow=f.parentElement.style.overflow;f.JSC$17378_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
f.JSC$17378_previousBodyOverscroll=f.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";f.parentElement.style.overscrollBehavior="contain";f.parentElement.style.overflow="hidden";var b=f.iframe;b.style.bottom="0";b.style.border="none";b.style.height="100%";b.style.left="0";b.style.position=f.iframePosition;b.style.right="0";b.style.top="0";b.style.width="100%";b.style.zIndex="2202";b.setAttribute("aria-hidden","false");b.setAttribute("aria-modal","true");
f.opened=!0;b4Y(f);return _.CN(g,0)}G=_.hm(g);f.parentElement.removeChild(B);qlu(f.isDarkTheme());ma2(f,!1);throw Error("kk",{cause:G});})},ma2=function(f,S){S=S===void 0?!0:S;
f.iframe!==void 0&&(RhB(f),document.documentElement.style.overscrollBehavior=f.JSC$17378_previousHtmlOverscroll,f.parentElement.style.overscrollBehavior=f.JSC$17378_previousBodyOverscroll,f.parentElement.style.overflow=f.JSC$17378_previousBodyOverflow,f.elementToFocusAfterClose!==void 0&&(f.elementToFocusAfterClose.focus(),f.elementToFocusAfterClose=void 0),S?eh2(f):(f.parentElement.removeChild(f.iframe),f.iframe=void 0,f.iframeLoadPromise=void 0,f.mainChannel=void 0),f.opened=!1)},RhB=function(f){f.backgroundElementsAriaHiddenIsNull&&
(fIY(f.backgroundElementsAriaHiddenIsNull),f.backgroundElementsAriaHiddenIsNull=void 0);
f.backgroundElementsAriaHiddenIsFalse&&(f.backgroundElementsAriaHiddenIsFalse.each(function(S){S.setAttribute("aria-hidden","false")}),f.backgroundElementsAriaHiddenIsFalse=void 0);
f.backgroundElementsWithoutInert&&(f.backgroundElementsWithoutInert.each(function(S){S.removeAttribute("inert")}),f.backgroundElementsWithoutInert=void 0)},b4Y=function(f){f.backgroundElementsAriaHiddenIsNull=(new fU(f.iframe.parentElement)).children().filter(function(S){return S.getAttribute("aria-hidden")===null&&S!==f.iframe});
f.backgroundElementsAriaHiddenIsNull.each(function(S){S.setAttribute("aria-hidden","true")});
f.backgroundElementsAriaHiddenIsFalse=(new fU(f.iframe.parentElement)).children().filter(function(S){return S.getAttribute("aria-hidden")==="false"&&S!==f.iframe});
f.backgroundElementsAriaHiddenIsFalse.each(function(S){S.setAttribute("aria-hidden","true")});
f.backgroundElementsWithoutInert=(new fU(f.iframe.parentElement)).children().filter(function(S){return!S.hasAttribute("inert")&&S!==f.iframe});
f.backgroundElementsWithoutInert.each(function(S){S.setAttribute("inert","true")})},eh2=function(f){f=f.iframe;
f.style.bottom="-1000px";f.style.position="fixed";f.style.right="-1000px";f.style.border="";f.style.height="";f.style.left="";f.style.top="";f.style.width="";f.style.zIndex="";f.setAttribute("aria-hidden","true");f.setAttribute("aria-modal","false")};
SH.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var BpY=function(f,S){SH.call(this,vju[f],S);this.options=[];this.style=""};
_.q(BpY,SH);var X_u=function(f){f.style="youtube";return f},w_B=function(f,S){f.eventTarget.listen(x_o,S);
return f},hhn=function(f,S){f.eventTarget.listen(jQn,S);
return f},SH2=function(f,S){f.options.push(S);
return f},Tpn=function(f){var S=[f.getOrigin()];
f.ancestorOrigins&&S.push.apply(S,_.$d(f.ancestorOrigins));var B=new _.uT(f.JSC$17378_win.location.href),G=f.startUrl?f.startUrl:f.options.includes("po")?"profile-picture/art":"profile-picture";S=mV(_.gH(f.getTargetOrigin(),G),"origin",S);f.startUrl&&_.ZL(S,"startPath",f.startUrl);f.authUser>0&&_.ZL(S,"authuser",f.authUser);f.pageId!==void 0&&_.ZL(S,"pageId",f.pageId);_.ZL(S,"hostId",f.hostId);f.jsMode!==void 0&&_.ZL(S,"jsmode",f.jsMode);f.rectangleRatio!==void 0&&_.ZL(S,"rectangleRatio",f.rectangleRatio);
f.options.length>0&&_.ZL(S,"opts",f.options.join(","));try{for(var g=_.m(["utm_source","utm_medium","utm_campaign","utm_content"]),b=g.next();!b.done;b=g.next()){var z=b.value;_.MR(B,z)&&_.ZL(S,z,_.MR(B,z))}var X,w=(X=f.hl)!=null?X:_.MR(B,"hl");w!==void 0&&_.ZL(S,"hl",w)}catch(F){if(!(F instanceof URIError))throw F;}f.colorScheme&&_.ZL(S,"theme",f.colorScheme);f.style&&_.ZL(S,"style",f.style);return S},FGz=function(f,S){f.mainChannel=_.Bq({destination:f.JSC$17378_win,
iframe:S,origin:f.getTargetOrigin().toString(),channelName:"ow",onMessage:function(B){B=$_B(B.data);if(S===f.iframe)switch(_.sH(B,1)){case 1:f.eventTarget.dispatchEvent(new njZ);ma2(f);break;case 2:f.eventTarget.dispatchEvent(new LZn(_.n4(B,4),_.n4(B,2),_.sH(B,5),_.BU(B,izu,6)));break;case 0:var G;f.eventTarget.dispatchEvent(new kqB(_.n4(B,2),(G=_.sH(B,3))!=null?G:0));break;case 3:f.eventTarget.dispatchEvent(new njZ(!0));ma2(f,!1);break;case 4:f.eventTarget.dispatchEvent(new sQB)}}})},gWY=function(f,
S,B){_.Bq({destination:f.JSC$17378_win,
iframe:S,origin:_.Ga(_.Bz(_.Sz(new _.uT,f.scheme),f.domain),f.port).toString(),channelName:"owi",onMessage:function(G){S===f.iframe&&(B!==void 0&&B(),FGz(f,S),f.opened&&f.mainChannel.send(r9u(Yy2())),G.reply(),gWY(f,S))}})};
BpY.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?SH.prototype.preloadIframe.call(this,Tpn(this).toString()):this.iframeLoadPromise};
BpY.prototype.openPicker=function(f){var S=this;return _.R(function(B){if(B.nextAddress==1)return S.startUrl=f?f:S.options.includes("po")?"profile-picture/art":"profile-picture",_.h(B,zhX(S,Tpn(S).toString()),2);if(S.mainChannel){var G=S.mainChannel,g=G.send;var b=Yy2();b=_.Jx(b,2,S.startUrl);g.call(G,r9u(b))}_.TT(B)})};var VTo=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(VTo,_.s7);_.e=VTo.prototype;_.e.getSize=function(){return F5(this,1)};
_.e.setSize=function(f){return _.C4(this,1,f)};
_.e.getWidth=function(){return F5(this,12)};
_.e.getHeight=function(){return F5(this,13)};
_.e.setCenterCrop=function(f){return _.b5(this,20,f)};
_.e.getHtml=function(){return _.EH(this,4)};
_.e.getToken=function(){return _.Vf(this,24)};
_.e.setToken=function(f){return _.Jx(this,24,f)};
_.e.getBackgroundColor=function(){return F5(this,87)};
_.e.hasBackgroundColor=function(){return _.q2(_.H_(this,87))!=null};
_.e.getStoryboardLevel=function(){return F5(this,109)};var Ba=function(f){this.JSC$17386_value_=void 0;this.childNodes_={};if(f){var S=_.IMX(f);f=_.oI(f);for(var B=0;B<S.length;B++)this.set(S[B],f[B])}};
Ba.prototype.set=function(f,S){J$2(this,f,S,!1)};
Ba.prototype.add=function(f,S){J$2(this,f,S,!0)};
var J$2=function(f,S,B,G){for(var g=0;g<S.length;g++){var b=S.charAt(g);f.childNodes_[b]||(f.childNodes_[b]=new Ba);f=f.childNodes_[b]}if(G&&f.JSC$17386_value_!==void 0)throw Error("lk`"+S);f.JSC$17386_value_=B},PhM=function(f,S){for(var B=0;B<S.length;B++)if(f=f.childNodes_[S.charAt(B)],!f)return;
return f};
Ba.prototype.get=function(f){return(f=PhM(this,f))?f.JSC$17386_value_:void 0};
Ba.prototype.getValues=function(){var f=[];vWZ(this,f);return f};
var vWZ=function(f,S){f.JSC$17386_value_!==void 0&&S.push(f.JSC$17386_value_);for(var B in f.childNodes_)vWZ(f.childNodes_[B],S)};
Ba.prototype.getKeys=function(f){var S=[];if(f){for(var B=this,G=0;G<f.length;G++){var g=f.charAt(G);if(!B.childNodes_[g])return[];B=B.childNodes_[g]}KGY(B,f,S)}else KGY(this,"",S);return S};
var KGY=function(f,S,B){f.JSC$17386_value_!==void 0&&B.push(S);for(var G in f.childNodes_)KGY(f.childNodes_[G],S+G,B)};
_.e=Ba.prototype;_.e.containsKey=function(f){return this.get(f)!==void 0};
_.e.containsValue=function(f){if(this.JSC$17386_value_===f)return!0;for(var S in this.childNodes_)if(this.childNodes_[S].containsValue(f))return!0;return!1};
_.e.clear=function(){this.childNodes_={};this.JSC$17386_value_=void 0};
_.e.remove=function(f){for(var S=this,B=[],G=0;G<f.length;G++){var g=f.charAt(G);if(!S.childNodes_[g])throw Error("mk`"+f);B.push([S,g]);S=S.childNodes_[g]}f=S.JSC$17386_value_;for(delete S.JSC$17386_value_;B.length>0;)if(G=B.pop(),S=G[0],G=G[1],S.childNodes_[G].isEmpty())delete S.childNodes_[G];else break;return f};
_.e.clone=function(){return new Ba(this)};
_.e.getCount=function(){return g82(this.getValues())};
_.e.isEmpty=function(){return this.JSC$17386_value_===void 0&&_.$v.isEmpty(this.childNodes_)};var E22=function(){if(!daY){var f=daY=new Ba,S;for(S in i42)f.add(S,i42[S])}},daY,GO=function(f,S){this.types=f;
this.setters=S},i42={a:new GO([3,
0],[function(f,S){_.b5(f,21,S)},
function(f,S){_.C4(f,56,S)}]),
al:new GO([3],[function(f,S){_.b5(f,74,S)}]),
b:new GO([3,0],[function(f,S){_.b5(f,23,S)},
function(f,S){_.C4(f,38,S)}]),
ba:new GO([0],[function(f,S){_.C4(f,85,S)}]),
bc:new GO([0],[function(f,S){_.C4(f,87,S)}]),
br:new GO([0],[function(f,S){_.C4(f,86,S)}]),
c:new GO([3,0],[function(f,S){_.b5(f,2,S)},
function(f,S){_.C4(f,39,S)}]),
cc:new GO([3],[function(f,S){_.b5(f,51,S)}]),
ci:new GO([3],[function(f,S){_.b5(f,32,S)}]),
ckm:new GO([3],[function(f,S){_.b5(f,104,S)}]),
cp:new GO([0],[function(f,S){_.C4(f,92,S)}]),
cr:new GO([3],[function(f,S){_.b5(f,108,S)}]),
cv:new GO([0],[function(f,S){_.C4(f,94,S)}]),
d:new GO([3],[function(f,S){_.b5(f,3,S)}]),
dc:new GO([5],[function(f,S){_.Jx(f,99,S)}]),
df:new GO([3],[function(f,S){_.b5(f,80,S)}]),
dv:new GO([3],[function(f,S){_.b5(f,90,S)}]),
e:new GO([0],[function(f,S){_.C4(f,15,S)}]),
em:new GO([0],[function(f,S){_.C4(f,107,S)}]),
f:new GO([4],[function(f,S){_.Jx(f,16,S)}]),
fg:new GO([3],[function(f,S){_.b5(f,34,S)}]),
fh:new GO([3],[function(f,S){_.b5(f,30,S)}]),
fm:new GO([3],[function(f,S){_.b5(f,84,S)}]),
fo:new GO([2],[function(f,S){_.gZ(f,79,_.zn(S))}]),
ft:new GO([3],[function(f,S){_.b5(f,50,S)}]),
fv:new GO([3],[function(f,S){_.b5(f,31,S)}]),
g:new GO([3],[function(f,S){_.b5(f,14,S)}]),
gce:new GO([4],[function(f,S){_.Jx(f,112,S)}]),
gd:new GO([3],[function(f,S){_.b5(f,83,S)}]),
gm:new GO([3],[function(f,S){_.b5(f,105,S)}]),
h:new GO([3,0],[function(f,S){_.b5(f,4,S)},
function(f,S){_.C4(f,13,S)}]),
i:new GO([3],[function(f,S){_.b5(f,22,S)}]),
ic:new GO([0],[function(f,S){_.C4(f,71,S)}]),
id:new GO([3],[function(f,S){_.b5(f,70,S)}]),
il:new GO([3],[function(f,S){_.b5(f,96,S)}]),
ip:new GO([3],[function(f,S){_.b5(f,54,S)}]),
iv:new GO([0],[function(f,S){_.is(f,75,S)}]),
j:new GO([1],[function(f,S){S=S==null?S:ON2(S);_.gZ(f,29,S)}]),
k:new GO([3,0],[function(f,S){_.b5(f,17,S)},
function(f,S){_.C4(f,42,S)}]),
l:new GO([0],[function(f,S){_.C4(f,44,S)}]),
lf:new GO([3],[function(f,S){_.b5(f,65,S)}]),
lo:new GO([3],[function(f,S){_.b5(f,97,S)}]),
m:new GO([0],[function(f,S){_.C4(f,63,S)}]),
md:new GO([3],[function(f,S){_.b5(f,91,S)}]),
mm:new GO([4],[function(f,S){_.Jx(f,81,S)}]),
mo:new GO([3],[function(f,S){_.b5(f,73,S)}]),
mp:new GO([0],[function(f,S){_.C4(f,115,S)}]),
mv:new GO([3],[function(f,S){_.b5(f,66,S)}]),
n:new GO([3],[function(f,S){f.setCenterCrop(S)}]),
nc:new GO([3],[function(f,S){_.b5(f,55,S)}]),
nd:new GO([3],[function(f,S){_.b5(f,53,S)}]),
ng:new GO([3],[function(f,S){_.b5(f,95,S)}]),
ngm:new GO([3],[function(f,S){_.b5(f,106,S)}]),
no:new GO([3],[function(f,S){_.b5(f,37,S)}]),
ns:new GO([3],[function(f,S){_.b5(f,40,S)}]),
nt0:new GO([4],[function(f,S){_.Jx(f,36,S)}]),
ntm:new GO([3],[function(f,S){_.b5(f,114,S)}]),
nu:new GO([3],[function(f,S){_.b5(f,46,S)}]),
nw:new GO([3],[function(f,S){_.b5(f,48,S)}]),
o:new GO([1,3],[function(f,S){S=S==null?S:ON2(S);_.gZ(f,7,S)},
function(f,S){_.b5(f,27,S)}]),
p:new GO([3,0],[function(f,S){_.b5(f,19,S)},
function(f,S){_.C4(f,43,S)}]),
pa:new GO([3],[function(f,S){_.b5(f,61,S)}]),
pc:new GO([0],[function(f,S){_.C4(f,88,S)}]),
pd:new GO([3],[function(f,S){_.b5(f,60,S)}]),
pf:new GO([3],[function(f,S){_.b5(f,67,S)}]),
pg:new GO([3],[function(f,S){_.b5(f,72,S)}]),
pi:new GO([2],[function(f,S){_.gZ(f,76,_.zn(S))}]),
pp:new GO([3],[function(f,S){_.b5(f,52,S)}]),
pt:new GO([4],[function(f,S){_.Jx(f,111,S)}]),
q:new GO([4],[function(f,S){_.Jx(f,28,S)}]),
r:new GO([3,0],[function(f,S){_.b5(f,6,S)},
function(f,S){_.C4(f,26,S)}]),
ra:new GO([3],[function(f,S){_.b5(f,103,S)}]),
rf:new GO([3],[function(f,S){_.b5(f,100,S)}]),
rg:new GO([3],[function(f,S){_.b5(f,59,S)}]),
rh:new GO([3],[function(f,S){_.b5(f,49,S)}]),
rj:new GO([3],[function(f,S){_.b5(f,57,S)}]),
ro:new GO([2],[function(f,S){_.gZ(f,78,_.zn(S))}]),
rp:new GO([3],[function(f,S){_.b5(f,58,S)}]),
rw:new GO([3],[function(f,S){_.b5(f,35,S)}]),
rwa:new GO([3],[function(f,S){_.b5(f,64,S)}]),
rwu:new GO([3],[function(f,S){_.b5(f,41,S)}]),
s:new GO([3,0],[function(f,S){_.b5(f,33,S)},
function(f,S){f.setSize(S)}]),
sb:new GO([0],[function(f,S){_.C4(f,110,S)}]),
sc:new GO([0],[function(f,S){_.C4(f,89,S)}]),
sg:new GO([3],[function(f,S){_.b5(f,82,S)}]),
sl:new GO([0],[function(f,S){_.C4(f,109,S)}]),
sm:new GO([3],[function(f,S){_.b5(f,93,S)}]),
t:new GO([4],[function(f,S){f.setToken(S)}]),
tm:new GO([3],[function(f,S){_.b5(f,113,S)}]),
u:new GO([3],[function(f,S){_.b5(f,18,S)}]),
ut:new GO([3],[function(f,S){_.b5(f,45,S)}]),
v:new GO([0],[function(f,S){_.C4(f,62,S)}]),
vb:new GO([0],[function(f,S){_.is(f,68,S)}]),
vf:new GO([4],[function(f,S){_.Jx(f,102,S)}]),
vl:new GO([0],[function(f,S){_.is(f,69,S)}]),
vm:new GO([3],[function(f,S){_.b5(f,98,S)}]),
w:new GO([0],[function(f,S){_.C4(f,12,S)}]),
x:new GO([0],[function(f,S){_.C4(f,9,S)}]),
y:new GO([0],[function(f,S){_.C4(f,10,S)}]),
ya:new GO([2],[function(f,S){_.gZ(f,77,_.zn(S))}]),
z:new GO([0],[function(f,S){_.C4(f,11,S)}])};
E22.prototype.parse=function(f){var S=new VTo,B=new VTo;if(f=="")f=!0;else{f=f.split("-");for(var G=!0,g=0;g<f.length;g++){var b=f[g];if(b.length==0)G=!1;else{var z=b,X=!1;var w=z;var F=z.charAt(0);F!=F.toLowerCase()&&(X=!0,w=z.charAt(0).toLowerCase()+z.substring(1));var V=daY;for(F=1;F<=w.length;++F){var J=V,P=w.substring(0,F);if(P.length==0?J.isEmpty():!PhM(J,P))break}w=F==1?null:(w=V.get(w.substring(0,F-1)))?{option:z.substring(0,F-1),value:z.substring(F-1),signed:X,attributes:w}:null;if(w){z=
[];X=[];F=!1;for(V=0;V<w.attributes.types.length;V++){J=w.attributes.types[V];var d=w.value;P=g;if(w.signed&&J==1)for(var Q=d.length;Q<12&&P<f.length-1;)d+="-"+f[P+1],Q=d.length,++P;else if(J==2)for(;P<f.length-1&&f[P+1].match(/^[\d\.]/);)d+="-"+f[P+1],++P;Q=w.attributes.setters[V];d=H4Y(this,J)(w.option,d,S,B,Q);if(d===null){F=!0;g=P;break}else z.push(J),X.push(d)}if(!F)for(w=0;w<X.length;w++)V=z[w],d=X[w],qHZ(this,V)(b,d);G=G&&F}else G=!1}}f=G}return new Fbn(S,B,f)};
var gf=function(f,S,B,G,g,b){g(B,S);f=f.charAt(0);b=b(f==f.toUpperCase());g(G,b)};
_.e=E22.prototype;_.e.parseAndSetIntOption_=function(f,S,B,G,g){if(S=="")return 0;isFinite(S)&&(S=String(S));S=typeof S==="string"?/^\s*-?0x/i.test(S)?parseInt(S,16):parseInt(S,10):NaN;if(isNaN(S))return 1;gf(f,S,B,G,g,Number);return null};
_.e.logIntParseError_=function(){};
_.e.parseAndSetFloatOption_=function(f,S,B,G,g){if(S=="")return 0;var b=Number(S);S=b==0&&_.bK(S)?NaN:b;if(isNaN(S))return 1;gf(f,S,B,G,g,Number);return null};
_.e.logFloatParseError_=function(){};
_.e.parseAndSetBoolOption_=function(f,S,B,G,g){if(S!="")return 2;gf(f,!0,B,G,g,Boolean);return null};
_.e.logBoolParseError_=function(){};
_.e.parseAndSetStringOption_=function(f,S,B,G,g){if(S=="")return 0;gf(f,S,B,G,g,function(b){return b?"1":""});
return null};
_.e.logStringParseError_=function(){};
_.e.parseAndSetUint64Base64Option_=function(f,S,B,G,g){if(S=="")return 0;gf(f,S,B,G,g,function(b){return b?1:0});
return null};
var H4Y=function(f,S){switch(S){case 0:return(0,_.$A)(f.parseAndSetIntOption_,f);case 2:return(0,_.$A)(f.parseAndSetFloatOption_,f);case 3:return(0,_.$A)(f.parseAndSetBoolOption_,f);case 4:return(0,_.$A)(f.parseAndSetStringOption_,f);case 1:return(0,_.$A)(f.parseAndSetUint64Base64Option_,f);default:return function(){}}},qHZ=function(f,S){switch(S){case 0:return(0,_.$A)(f.logIntParseError_,f);
case 2:return(0,_.$A)(f.logFloatParseError_,f);case 3:return(0,_.$A)(f.logBoolParseError_,f);case 4:case 1:return(0,_.$A)(f.logStringParseError_,f);default:return function(){}}},Fbn=function(f,S,B){this.valueProto_=f;
this.signatureFlagProto_=S;this.JSC$17398_valid_=B};
Fbn.prototype.isValid=function(){return this.JSC$17398_valid_};var rLu=function(f){this.JSC$17399_parser_=null;this.JSC$17399_components_=[];this.JSC$17399_parsedOptions_=null;Vzu(this,f)},JVu=function(f){f.JSC$17399_parser_==null&&(f.JSC$17399_parser_=new E22);
return f.JSC$17399_parser_},Vzu=function(f,S){f.JSC$17399_parsedOptions_=S?typeof S==="string"?JVu(f).parse(S):S:JVu(f).parse("")},eH=function(f,S){return f==S?!1:!0};
_.e=rLu.prototype;_.e.JSC$17401_setCrop=function(f){f=f||void 0;var S=this.JSC$17399_parsedOptions_,B=S.valueProto_;eH(f,_.EH(B,2),_.EH(S.signatureFlagProto_,2))&&_.b5(B,2,f);return this};
_.e.JSC$17401_setCircleCrop=function(f){f=f||void 0;var S=this.JSC$17399_parsedOptions_,B=S.valueProto_;eH(f,T3(B,51),T3(S.signatureFlagProto_,51))&&_.b5(B,51,f);return this};
_.e.JSC$17401_setImageCrop=function(f){f=f||void 0;var S=this.JSC$17399_parsedOptions_,B=S.valueProto_;eH(f,T3(B,32),T3(S.signatureFlagProto_,32))&&_.b5(B,32,f);return this};
_.e.JSC$17401_setHeight=function(f){var S=this.JSC$17399_parsedOptions_,B=S.valueProto_;eH(f,B.getHeight(),S.signatureFlagProto_.getHeight())&&_.C4(B,13,f);return this};
_.e.setCenterCrop=function(f){f=f||void 0;var S=this.JSC$17399_parsedOptions_,B=S.valueProto_;eH(f,_.EH(B,20),_.EH(S.signatureFlagProto_,20))&&B.setCenterCrop(f);return this};
_.e.JSC$17401_setSmartCrop=function(f){f=f||void 0;var S=this.JSC$17399_parsedOptions_,B=S.valueProto_;eH(f,_.EH(B,19),_.EH(S.signatureFlagProto_,19))&&_.b5(B,19,f);return this};
_.e.JSC$17401_setPad=function(f){f=f||void 0;var S=this.JSC$17399_parsedOptions_,B=S.valueProto_;eH(f,T3(B,60),T3(S.signatureFlagProto_,60))&&_.b5(B,60,f);return this};
_.e.JSC$17401_setSmartCropUseFace=function(f){f=f||void 0;var S=this.JSC$17399_parsedOptions_,B=S.valueProto_;eH(f,_.EH(B,67),_.EH(S.signatureFlagProto_,67))&&_.b5(B,67,f);return this};
_.e.JSC$17401_setSmartCropNoClip=function(f){f=f||void 0;var S=this.JSC$17399_parsedOptions_,B=S.valueProto_;eH(f,_.EH(B,52),_.EH(S.signatureFlagProto_,52))&&_.b5(B,52,f);return this};
_.e.setSize=function(f){var S=this.JSC$17399_parsedOptions_,B=S.valueProto_;eH(f,B.getSize(),S.signatureFlagProto_.getSize())&&B.setSize(f);return this};
_.e.setToken=function(f){f=f||void 0;var S=this.JSC$17399_parsedOptions_,B=S.valueProto_;eH(f,B.getToken(),S.signatureFlagProto_.getToken())&&B.setToken(f);return this};
_.e.JSC$17401_setWidth=function(f){var S=this.JSC$17399_parsedOptions_,B=S.valueProto_;eH(f,B.getWidth(),S.signatureFlagProto_.getWidth())&&_.C4(B,12,f);return this};
_.e.clearOptions=function(){Vzu(this,"");return this};
_.e.build=function(){this.JSC$17399_components_.length=0;var f=this.JSC$17399_parsedOptions_,S=f.valueProto_;f=f.signatureFlagProto_;bN(this,"s",S.getSize(),f.getSize());bN(this,"w",S.getWidth(),f.getWidth());ml(this,"c",_.EH(S,2),_.EH(f,2));ml(this,"d",_.EH(S,3),_.EH(f,3));bN(this,"h",S.getHeight(),f.getHeight());ml(this,"s",T3(S,33),T3(f,33));ml(this,"h",S.getHtml(),f.getHtml());ml(this,"p",_.EH(S,19),_.EH(f,19));ml(this,"pp",_.EH(S,52),_.EH(f,52));ml(this,"pf",_.EH(S,67),_.EH(f,67));ml(this,"n",
_.EH(S,20),_.EH(f,20));bN(this,"r",F5(S,26),F5(f,26));ml(this,"r",_.EH(S,6),_.EH(f,6));ml(this,"o",T3(S,27),T3(f,27));var B=_.xW(S,7,_.ih);zO(this,"o",B,_.xW(f,7,_.ih));B=_.xW(S,29,_.ih);zO(this,"j",B,_.xW(f,29,_.ih));bN(this,"x",F5(S,9),F5(f,9));bN(this,"y",F5(S,10),F5(f,10));bN(this,"z",F5(S,11),F5(f,11));ml(this,"g",_.EH(S,14),_.EH(f,14));bN(this,"e",F5(S,15),F5(f,15));zO(this,"f",_.Vf(S,16),_.Vf(f,16));ml(this,"k",T3(S,17),T3(f,17));ml(this,"u",T3(S,18),!0);ml(this,"ut",T3(S,45),!0);ml(this,"i",
T3(S,22),!0);ml(this,"a",T3(S,21),T3(f,21));ml(this,"b",_.EH(S,23),_.EH(f,23));bN(this,"b",F5(S,38),F5(f,38));bN(this,"c",F5(S,39),F5(f,39),16,8);zO(this,"q",_.Vf(S,28),_.Vf(f,28));ml(this,"fh",T3(S,30),T3(f,30));ml(this,"fv",T3(S,31),T3(f,31));ml(this,"fg",_.EH(S,34),_.EH(f,34));ml(this,"ci",T3(S,32),T3(f,32));zO(this,"t",S.getToken(),f.getToken());zO(this,"nt0",_.Vf(S,36),_.Vf(f,36));ml(this,"rw",_.EH(S,35),_.EH(f,35));ml(this,"rwu",_.EH(S,41),_.EH(f,41));ml(this,"rwa",_.EH(S,64),_.EH(f,64));ml(this,
"nw",_.EH(S,48),_.EH(f,48));ml(this,"rh",_.EH(S,49),_.EH(f,49));ml(this,"no",_.EH(S,37),_.EH(f,37));ml(this,"ns",T3(S,40),T3(f,40));bN(this,"k",F5(S,42),F5(f,42));bN(this,"p",F5(S,43),F5(f,43));bN(this,"l",F5(S,44),F5(f,44));bN(this,"v",F5(S,62),F5(f,62));ml(this,"nu",T3(S,46),T3(f,46));ml(this,"ft",T3(S,50),T3(f,50));ml(this,"cc",T3(S,51),T3(f,51));ml(this,"nd",T3(S,53),T3(f,53));ml(this,"ip",T3(S,54),T3(f,54));ml(this,"nc",T3(S,55),T3(f,55));bN(this,"a",F5(S,56),F5(f,56));ml(this,"rj",T3(S,57),
T3(f,57));ml(this,"rp",T3(S,58),T3(f,58));ml(this,"rg",T3(S,59),T3(f,59));ml(this,"pd",T3(S,60),T3(f,60));ml(this,"pa",T3(S,61),T3(f,61));bN(this,"m",F5(S,63),F5(f,63));bN(this,"vb",Vn(S,68),Vn(f,68));bN(this,"vl",Vn(S,69),Vn(f,69));ml(this,"lf",T3(S,65),T3(f,65));ml(this,"mv",T3(S,66),T3(f,66));ml(this,"id",T3(S,70),T3(f,70));bN(this,"ic",F5(S,71),!0);ml(this,"pg",_.EH(S,72),_.EH(f,72));ml(this,"mo",T3(S,73),T3(f,73));ml(this,"al",T3(S,74),T3(f,74));bN(this,"iv",Vn(S,75),Vn(f,75));bN(this,"pi",JI(S,
76),JI(f,76));bN(this,"ya",JI(S,77),JI(f,77));bN(this,"ro",JI(S,78),JI(f,78));bN(this,"fo",JI(S,79),JI(f,79));ml(this,"df",T3(S,80),T3(f,80));zO(this,"mm",_.Vf(S,81),_.Vf(f,81));ml(this,"sg",T3(S,82),T3(f,82));ml(this,"gd",T3(S,83),T3(f,83));ml(this,"fm",T3(S,84),T3(f,84));bN(this,"ba",F5(S,85),F5(f,85));bN(this,"br",F5(S,86),F5(f,86));bN(this,"bc",S.getBackgroundColor(),f.getBackgroundColor(),16,8);bN(this,"pc",F5(S,88),F5(f,88),16,8);bN(this,"sc",F5(S,89),F5(f,89),16,8);ml(this,"dv",T3(S,90),T3(f,
90));ml(this,"md",T3(S,91),T3(f,91));bN(this,"cp",F5(S,92),F5(f,92));ml(this,"sm",T3(S,93),T3(f,93));bN(this,"cv",F5(S,94),F5(f,94));ml(this,"ng",T3(S,95),T3(f,95));ml(this,"il",T3(S,96),T3(f,96));ml(this,"lo",T3(S,97),T3(f,97));ml(this,"vm",T3(S,98),T3(f,98));zO(this,"dc",_.Vf(S,99),_.Vf(f,99));ml(this,"rf",T3(S,100),T3(f,100));zO(this,"vf",_.Vf(S,102),_.Vf(f,102));ml(this,"ra",_.EH(S,103),_.EH(f,103));ml(this,"ckm",T3(S,104),T3(f,104));ml(this,"gm",T3(S,105),T3(f,105));ml(this,"ngm",T3(S,106),T3(f,
106));bN(this,"em",F5(S,107),F5(f,107));ml(this,"cr",T3(S,108),T3(f,108));bN(this,"sl",S.getStoryboardLevel(),f.getStoryboardLevel());bN(this,"sb",F5(S,110),F5(f,110));zO(this,"pt",_.Vf(S,111),_.Vf(f,111));zO(this,"gce",_.Vf(S,112),_.Vf(f,112));ml(this,"tm",T3(S,113),T3(f,113));ml(this,"ntm",T3(S,114),T3(f,114));bN(this,"mp",F5(S,115),F5(f,115));return this.JSC$17399_components_.join("-")};
var bN=function(f,S,B,G,g,b){if(B!=null){var z=g==void 0||g!=10&&g!=16?10:g;B=Number(B).toString(z);g=new azo;g.append(z==16?"0x":"");z=g.append;b==void 0?b="":(b-=B.length,b=b<=0?"":(0,_.ELG)("0",b));z.call(g,b);g.append(B);Pln(f,S,g.toString(),!!Number(G))}},ml=function(f,S,B,G){B&&Pln(f,S,"",!!G)},zO=function(f,S,B,G){B&&Pln(f,S,String(B),!!Number(G))},Pln=function(f,S,B,G){G&&(S=S.charAt(0).toUpperCase()+S.substring(1));
f.JSC$17399_components_.push(S+B)};_.Rm(qq,rLu);_.e=qq.prototype;_.e.JSC$17401_setCrop=function(f){f&&RZ(this);return qq.superClass_.JSC$17401_setCrop.call(this,f)};
_.e.JSC$17401_setHeight=function(f){f=f==null||f<0?void 0:f;f!=null&&this.setSize();return qq.superClass_.JSC$17401_setHeight.call(this,f)};
_.e.JSC$17401_setImageCrop=function(f){f&&RZ(this);return qq.superClass_.JSC$17401_setImageCrop.call(this,f)};
_.e.JSC$17401_setCircleCrop=function(f){f&&RZ(this);return qq.superClass_.JSC$17401_setCircleCrop.call(this,f)};
_.e.setSize=function(f){_.og(f)&&(f=Math.max(f.width,f.height));f=f==null||f<0?void 0:f;f!=null&&(this.JSC$17401_setWidth(),this.JSC$17401_setHeight());return qq.superClass_.setSize.call(this,f)};
_.e.JSC$17401_setSmartCrop=function(f){f&&RZ(this);return qq.superClass_.JSC$17401_setSmartCrop.call(this,f)};
_.e.JSC$17401_setSmartCropNoClip=function(f){f&&RZ(this);return qq.superClass_.JSC$17401_setSmartCropNoClip.call(this,f)};
_.e.JSC$17401_setSmartCropUseFace=function(f){f&&RZ(this);return qq.superClass_.JSC$17401_setSmartCropUseFace.call(this,f)};
_.e.setCenterCrop=function(f){f&&RZ(this);return qq.superClass_.setCenterCrop.call(this,f)};
_.e.JSC$17401_setPad=function(f){f&&RZ(this);return qq.superClass_.JSC$17401_setPad.call(this,f)};
_.e.JSC$17401_setWidth=function(f){f=f==null||f<0?void 0:f;f!=null&&this.setSize();return qq.superClass_.JSC$17401_setWidth.call(this,f)};
var v_Z=function(f){f.clearOptions();var S=f.JSC$17399_parsedOptions_,B=S.valueProto_;eH(!0,_.EH(B,3),_.EH(S.signatureFlagProto_,3))&&_.b5(B,3,!0);return f},RZ=function(f){f.setCenterCrop();
f.JSC$17401_setCircleCrop();f.JSC$17401_setCrop();f.JSC$17401_setImageCrop();f.JSC$17401_setPad();f.JSC$17401_setSmartCrop();f.JSC$17401_setSmartCropNoClip();f.JSC$17401_setSmartCropUseFace()};
qq.prototype.build=function(){var f=this.JSC$17399_parsedOptions_.valueProto_;T3(f,18)||T3(f,45)?f.getSize()||this.setSize(0):(f=this.JSC$17399_parsedOptions_.valueProto_,f.getSize()||f.getWidth()||f.getHeight()||(this.setSize(),this.JSC$17401_setHeight(),this.JSC$17401_setWidth(),RZ(this)));return qq.superClass_.build.call(this)};var Kbu=/^[^\/]*\/\//,XA=function(f,S){S=S===void 0?!1:S;this.original_=f;this.originalPrefix_="";(f=this.original_.match(Kbu))&&f[0]?(this.originalPrefix_=f[0],f=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):f="http://"+this.original_;this.uri_=_.NR(f,!0);this.isFreeformUrl_=S;this.JSC$17405_valid_=!0;this.obfuscated_=!1},di2=function(f,S){f.JSC$17407_pathPrefix_=f.JSC$17407_pathPrefix_?f.JSC$17407_pathPrefix_+("/"+S):S},wf=function(f){if(f.JSC$17407_components_==
void 0){var S=f.uri_.getPath().substring(1);
f.JSC$17407_pathPrefix_=null;if(f.isFreeformUrl_){f.JSC$17407_components_=[];if((S.match(/=/g)||[]).length>1)return f.JSC$17405_valid_=!1,f.JSC$17407_components_;var B=S.indexOf("=");B!=-1?(f.JSC$17407_components_.push(S.substr(0,B)),f.JSC$17407_components_.push(S.substr(B+1))):f.JSC$17407_components_.push(S);return f.JSC$17407_components_}f.JSC$17407_components_=S.split("/");S=f.JSC$17407_components_.length;S>2&&f.JSC$17407_components_[0]=="u"&&(di2(f,f.JSC$17407_components_[0]+"/"+f.JSC$17407_components_[1]),
f.JSC$17407_components_.shift(),f.JSC$17407_components_.shift(),S-=2);if(S==0||S==4||S>7)return f.JSC$17405_valid_=!1,f.JSC$17407_components_;if(S==2)di2(f,f.JSC$17407_components_[0]);else if(f.JSC$17407_components_[0]=="image")di2(f,f.JSC$17407_components_[0]);else if(S==7||S==3)return f.JSC$17405_valid_=!1,f.JSC$17407_components_;if(S<=3){f.obfuscated_=!0;S==3&&(di2(f,f.JSC$17407_components_[1]),f.JSC$17407_components_.shift(),--S);--S;B=f.JSC$17407_components_[S];var G=B.indexOf("=");G!=-1&&(f.JSC$17407_components_[S]=
B.substr(0,G),f.JSC$17407_components_.push(B.substr(G+1)))}}return f.JSC$17407_components_};
XA.prototype.isValid=function(){wf(this);return this.JSC$17405_valid_};
XA.prototype.isObfuscated=function(){wf(this);return this.obfuscated_};
var iun=function(f){wf(f);return f.isFreeformUrl_},hz=function(f){wf(f);
f.JSC$17407_pathPrefix_==void 0&&(f.JSC$17407_pathPrefix_=null);return f.JSC$17407_pathPrefix_},Hun=function(f){switch(wf(f).length){case 7:return!0;
case 6:return hz(f)==null;case 5:return!1;case 3:return!0;case 2:return hz(f)==null;case 1:return!1;default:return!1}},TO=function(f,S){if(iun(f))a:{switch(S){case 7:S=0;
break;case 4:if(!Hun(f)){f=null;break a}S=1;break;default:f=null;break a}f=wf(f)[S]}else if(f.isObfuscated())a:{var B=hz(f)!=null?1:0;switch(S){case 6:S=B;break;case 4:if(!Hun(f)){f=null;break a}S=1+B;break;default:f=null;break a}f=wf(f)[S]}else a:{B=hz(f)!=null?1:0;switch(S){case 0:S=B;break;case 1:S=1+B;break;case 2:S=2+B;break;case 3:S=3+B;break;case 4:if(!Hun(f)){f=null;break a}S=4+B;break;case 5:S=Hun(f)?1:0;S=4+B+S;break;default:f=null;break a}f=wf(f)[S]}return f};
XA.prototype.getOptions=function(){this.options_==void 0&&(this.options_=TO(this,4));return this.options_};var xCz=function(){};
xCz.prototype.parse=function(f,S){return new jfu(f,S===void 0?!1:S)};
var jfu=function(f,S){XA.call(this,f,S===void 0?!1:S)};
_.q(jfu,XA);_.Rm($x,qq);var O_e;$x.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
$x.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var f=$x.superClass_.build.call(this),S=[];hz(this.parsedImageUrl_)!=null&&S.push(hz(this.parsedImageUrl_));var B=iun(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var G=this.parsedImageUrl_;G.obfuscatedData_==void 0&&(G.obfuscatedData_=TO(G,6));S.push(G.obfuscatedData_+(f?"="+f:""))}else if(B){G=S.push;var g=this.parsedImageUrl_;g.freeformUrlPath_===void 0&&(g.freeformUrlPath_=TO(g,
7));G.call(S,g.freeformUrlPath_);f&&S.push(f)}else G=S.push,g=this.parsedImageUrl_,g.obfuscatedGaiaId_==void 0&&(g.obfuscatedGaiaId_=TO(g,0)),G.call(S,g.obfuscatedGaiaId_),G=S.push,g=this.parsedImageUrl_,g.photoId_==void 0&&(g.photoId_=TO(g,1)),G.call(S,g.photoId_),G=S.push,g=this.parsedImageUrl_,g.imageVersion_==void 0&&(g.imageVersion_=TO(g,2)),G.call(S,g.imageVersion_),G=S.push,g=this.parsedImageUrl_,g.signature_==void 0&&(g.signature_=TO(g,3)),G.call(S,g.signature_),f&&S.push(f),f=S.push,G=this.parsedImageUrl_,
G.filename_==void 0&&(G.filename_=TO(G,5)),f.call(S,G.filename_);S=B?S.join("="):S.join("/");S=_.NR(this.protocolPrefix_+this.JSC$17413_domain_+"/"+S+(this.JSC$17413_query_?"?"+this.JSC$17413_query_:"")).toString();S.startsWith("%3a//")&&(S=S.replace("%3a//","://"));return S};var qEz=_.f4(["viewBox"]),$iz=_.f4(["width"]),QIu=_.f4(["height"]),YEM=_.f4(["fill"]),rVu=_.f4(["id"]),jIM=_.f4(["x"]),Oue=_.f4(["y"]);LIo.prototype.getLength=function(){return this.parsedData.length};
LIo.prototype.write=function(f){for(var S=0,B=this.parsedData.length;S<B;S++)f.put(this.parsedData[S],8)};
var Cin=function(f,S){var B=new LIo(S);f.dataList.push(B);B=f.errorCorrectLevel;var G=1,g=encodeURI(S).toString().replace(/%[0-9a-fA-F]{2}/g,"a");S=g.length+(g.length!=S?3:0);g=0;for(var b=FA.length;g<=b;g++){var z=0;switch(B){case 1:z=FA[g][0];break;case 0:z=FA[g][1];break;case 3:z=FA[g][2];break;case 2:z=FA[g][3]}if(S<=z)break;else G++}if(G>FA.length)throw Error("vk");f.typeNumber=G;f.dataCache=null};
k$n.prototype.isDark=function(f,S){if(f<0||this.moduleCount<=f||S<0||this.moduleCount<=S)throw Error("nk`"+f+"`"+S);return this.modules[f][S]};
for(var pSu=function(f,S,B){f.moduleCount=f.typeNumber*4+17;f.modules=Array(f.moduleCount);for(var G=0;G<f.moduleCount;G++){f.modules[G]=Array(f.moduleCount);for(var g=0;g<f.moduleCount;g++)f.modules[G][g]=null}xiB(f,0,0);xiB(f,f.moduleCount-7,0);xiB(f,0,f.moduleCount-7);G=E_2[f.typeNumber-1];for(g=0;g<G.length;g++)for(var b=0;b<G.length;b++){var z=G[g],X=G[b];if(f.modules[z][X]==null)for(var w=-2;w<=2;w++)for(var F=-2;F<=2;F++)f.modules[z+w][X+F]=w==-2||w==2||F==-2||F==2||w==0&&F==0?!0:!1}for(G=
8;G<f.moduleCount-8;G++)f.modules[G][6]==null&&(f.modules[G][6]=G%2==0);for(G=8;G<f.moduleCount-8;G++)f.modules[6][G]==null&&(f.modules[6][G]=G%2==0);G=f.errorCorrectLevel<<3|B;for(g=G<<10;VY(g)-VY(1335)>=0;)g^=1335<<VY(g)-VY(1335);G=(G<<10|g)^21522;for(g=0;g<15;g++)b=!S&&(G>>g&1)==1,g<6?f.modules[g][8]=b:g<8?f.modules[g+1][8]=b:f.modules[f.moduleCount-15+g][8]=b;for(g=0;g<15;g++)b=!S&&(G>>g&1)==1,g<8?f.modules[8][f.moduleCount-g-1]=b:g<9?f.modules[8][15-g-1+1]=b:f.modules[8][15-g-1]=b;f.modules[f.moduleCount-
8][8]=!S;if(f.typeNumber>=7){G=f.typeNumber;for(g=G<<12;VY(g)-VY(7973)>=0;)g^=7973<<VY(g)-VY(7973);G=G<<12|g;for(g=0;g<18;g++)b=!S&&(G>>g&1)==1,f.modules[Math.floor(g/3)][g%3+f.moduleCount-8-3]=b;for(g=0;g<18;g++)b=!S&&(G>>g&1)==1,f.modules[g%3+f.moduleCount-8-3][Math.floor(g/3)]=b}if(f.dataCache==null){g=f.typeNumber;b=f.dataList;S=f.errorCorrectLevel;G=Lbu(g,S);if(G==void 0)throw Error("uk`"+g+"`"+S);z=G.length/3;S=[];for(X=0;X<z;X++){w=G[X*3];F=G[X*3+1];for(var V=G[X*3+2],J=0;J<w;J++)S.push(new n2u(F,
V))}G=new sf$;for(z=0;z<b.length;z++)X=b[z],G.put(X.mode,4),G.put(X.getLength(),kaX(X.mode,g)),X.write(G);for(z=g=0;z<S.length;z++)g+=S[z].dataCount;if(G.length>g*8)throw Error("ok`"+G.length+"`"+g*8);for(G.length+4<=g*8&&G.put(0,4);G.length%8!=0;)n_M(G,!1);for(;!(G.length>=g*8);){G.put(236,8);if(G.length>=g*8)break;G.put(17,8)}b=g=F=0;z=Array(S.length);X=Array(S.length);for(w=0;w<S.length;w++){J=S[w].dataCount;var P=S[w].totalCount-J;g=Math.max(g,J);b=Math.max(b,P);z[w]=Array(J);for(V=0;V<z[w].length;V++)z[w][V]=
255&G.buffer[V+F];F+=J;V=P;J=new QQ([1],0);for(P=0;P<V;P++)J=J.multiply(new QQ([1,sIB(P)],0));V=J;J=(new QQ(z[w],V.getLength()-1)).mod(V);X[w]=Array(V.getLength()-1);for(V=0;V<X[w].length;V++)P=V+J.getLength()-X[w].length,X[w][V]=P>=0?J.get(P):0}for(V=G=0;V<S.length;V++)G+=S[V].totalCount;G=Array(G);for(V=F=0;V<g;V++)for(w=0;w<S.length;w++)V<z[w].length&&(G[F++]=z[w][V]);for(V=0;V<b;V++)for(w=0;w<S.length;w++)V<X[w].length&&(G[F++]=X[w][V]);f.dataCache=G}S=f.dataCache;G=-1;g=f.moduleCount-1;b=7;z=
0;for(X=f.moduleCount-1;X>0;X-=2)for(X==6&&X--;;){for(w=0;w<2;w++)f.modules[g][X-w]==null&&(F=!1,z<S.length&&(F=(S[z]>>>b&1)==1),Diz(B,g,X-w)&&(F=!F),f.modules[g][X-w]=F,b--,b==-1&&(z++,b=7));g+=G;if(g<0||f.moduleCount<=g){g-=G;G=-G;break}}},xiB=function(f,S,B){for(var G=-1;G<=7;G++)if(!(S+G<=-1||f.moduleCount<=S+G))for(var g=-1;g<=7;g++)B+g<=-1||f.moduleCount<=B+g||(f.modules[S+G][B+g]=0<=G&&G<=6&&(g==0||g==6)||0<=g&&g<=6&&(G==0||G==6)||2<=G&&G<=4&&2<=g&&g<=4?!0:!1)},ALo=function(f){for(var S=0,
B=0,G=0;G<8;G++){pSu(f,!0,G);
var g=f;for(var b=g.moduleCount,z=0,X=0;X<b;X++)for(var w=0;w<b;w++){for(var F=0,V=g.isDark(X,w),J=-1;J<=1;J++)if(!(X+J<0||b<=X+J))for(var P=-1;P<=1;P++)w+P<0||b<=w+P||(J!=0||P!=0)&&V==g.isDark(X+J,w+P)&&F++;F>5&&(z+=3+F-5)}for(X=0;X<b-1;X++)for(w=0;w<b-1;w++)if(F=0,g.isDark(X,w)&&F++,g.isDark(X+1,w)&&F++,g.isDark(X,w+1)&&F++,g.isDark(X+1,w+1)&&F++,F==0||F==4)z+=3;for(X=0;X<b;X++)for(w=0;w<b-6;w++)g.isDark(X,w)&&!g.isDark(X,w+1)&&g.isDark(X,w+2)&&g.isDark(X,w+3)&&g.isDark(X,w+4)&&!g.isDark(X,w+5)&&
g.isDark(X,w+6)&&(z+=40);for(w=0;w<b;w++)for(X=0;X<b-6;X++)g.isDark(X,w)&&!g.isDark(X+1,w)&&g.isDark(X+2,w)&&g.isDark(X+3,w)&&g.isDark(X+4,w)&&!g.isDark(X+5,w)&&g.isDark(X+6,w)&&(z+=40);for(w=F=0;w<b;w++)for(X=0;X<b;X++)g.isDark(X,w)&&F++;g=z+=Math.abs(100*F/b/b-50)/5*10;if(G==0||S>g)S=g,B=G}return B},E_2=[[],
[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]],VY=function(f){for(var S=0;f!=0;)S++,f>>>=1;return S},Diz=function(f,S,B){switch(f){case 0:return(S+B)%2==0;
case 1:return S%2==0;case 2:return B%3==0;case 3:return(S+B)%3==0;case 4:return(Math.floor(S/2)+Math.floor(B/3))%2==0;case 5:return S*B%2+S*B%3==0;case 6:return(S*B%2+S*B%3)%2==0;case 7:return(S*B%3+(S+B)%2)%2==0;default:throw Error("pk`"+f);}},kaX=function(f,S){if(1<=S&&S<10)switch(f){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("qk`"+f);}else if(S<27)switch(f){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("qk`"+f);}else if(S<41)switch(f){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("qk`"+f);}else throw Error("rk`"+S);},Jz=function(f){if(f<1)throw Error("sk`"+f);
return IRZ[f]},sIB=function(f){for(;f<0;)f+=255;
for(;f>=256;)f-=255;return Pa[f]},Pa=Array(256),IRZ=Array(256),Uiu=0;Uiu<8;Uiu++)Pa[Uiu]=1<<Uiu;
for(var va=8;va<256;va++)Pa[va]=Pa[va-4]^Pa[va-5]^Pa[va-6]^Pa[va-8];for(var ClZ=0;ClZ<255;ClZ++)IRZ[Pa[ClZ]]=ClZ;QQ.prototype.get=function(f){return this.num[f]};
QQ.prototype.getLength=function(){return this.num.length};
QQ.prototype.multiply=function(f){for(var S=Array(this.getLength()+f.getLength()-1),B=0;B<this.getLength();B++)for(var G=0;G<f.getLength();G++)S[B+G]^=sIB(Jz(this.get(B))+Jz(f.get(G)));return new QQ(S,0)};
QQ.prototype.mod=function(f){if(this.getLength()-f.getLength()<0)return this;for(var S=Jz(this.get(0))-Jz(f.get(0)),B=Array(this.getLength()),G=0;G<this.getLength();G++)B[G]=this.get(G);for(G=0;G<f.getLength();G++)B[G]^=sIB(Jz(f.get(G))+S);return(new QQ(B,0)).mod(f)};
var pzu=[[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]],Lbu=function(f,S){switch(S){case 1:return pzu[(f-1)*4];case 0:return pzu[(f-1)*4+1];case 3:return pzu[(f-1)*4+2];case 2:return pzu[(f-1)*4+3]}};
sf$.prototype.get=function(f){return(this.buffer[Math.floor(f/8)]>>>7-f%8&1)==1};
sf$.prototype.put=function(f,S){for(var B=0;B<S;B++)n_M(this,(f>>>S-B-1&1)==1)};
var n_M=function(f,S){var B=Math.floor(f.length/8);f.buffer.length<=B&&f.buffer.push(0);S&&(f.buffer[B]|=128>>>f.length%8);f.length++},FA=[[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]],UCY=function(){var f=function(S,B){this.JSC$17433__el=S;this.JSC$17433__htOption=B};
f.prototype.draw=function(S){function B(V,J){V=document.createElementNS("http://www.w3.org/2000/svg",V);for(var P in J)J.hasOwnProperty(P)&&(P==="href"?_.UcX(V,J[P]):_.AJ([_.fo(qEz),_.fo($iz),_.fo(QIu),_.fo(YEM),_.fo(rVu),_.fo(jIM),_.fo(Oue)],V,P,J[P]));return V}
var G=this.JSC$17433__htOption,g=this.JSC$17433__el,b=S.moduleCount;this.clear();var z=B("svg",{viewBox:"0 0 "+String(b)+" "+String(b),width:"100%",height:"100%",fill:G.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});g.appendChild(z);z.appendChild(B("rect",{fill:G.colorLight,width:"100%",height:"100%"}));z.appendChild(B("rect",{fill:G.colorDark,width:"1",height:"1",id:"template"}));for(var X=0;X<b;X++)for(var w=0;w<b;w++)if(S.isDark(X,w)){var F=B("use",{x:String(X),y:String(w),href:"#template"});
z.appendChild(F)}};
f.prototype.clear=function(){for(;this.JSC$17433__el.hasChildNodes();)this.JSC$17433__el.removeChild(this.JSC$17433__el.lastChild)};
return f}(),IcX=document.documentElement.tagName.toLowerCase()==="svg"?UCY:typeof CanvasRenderingContext2D!="undefined"?function(){var f=function(S,B){this._bIsPainted=!1;
DCu();this.JSC$17433__htOption=B;this._elCanvas=document.createElement("canvas");this._elCanvas.width=B.width;this._elCanvas.height=B.height;S.appendChild(this._elCanvas);this.JSC$17433__el=S;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$17433__el.appendChild(this._elImage);this._bSupportDataURI=null};
f.prototype._onMakeImage=function(){var S=this._elCanvas.toDataURL("image/png");this._elImage.src=S;this._elImage.style.display="block";this._elCanvas.style.display="none"};
f.prototype._safeSetDataURI=function(S,B){var G=this;G._fFail=B;G._fSuccess=S;G._bSupportDataURI===null?(S=_.Ja("IMG"),B=function(){G._bSupportDataURI=!1;G._fFail&&G._fFail.call(G)},S.onabort=B,S.onerror=B,S.onload=function(){G._bSupportDataURI=!0;
G._fSuccess&&G._fSuccess.call(G)},S.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):G._bSupportDataURI===!0&&G._fSuccess?G._fSuccess.call(G):G._bSupportDataURI===!1&&G._fFail&&G._fFail.call(G)};
f.prototype.draw=function(S){var B=this._oContext,G=this.JSC$17433__htOption,g=S.moduleCount,b=G.width/g,z=G.height/g,X=Math.round(b),w=Math.round(z);this._elImage.style.display="none";this.clear();for(var F=0;F<g;F++)for(var V=0;V<g;V++){var J=S.isDark(F,V),P=V*b,d=F*z;B.strokeStyle=J?G.colorDark:G.colorLight;B.lineWidth=1;B.fillStyle=J?G.colorDark:G.colorLight;B.fillRect(P,d,b,z);B.strokeRect(Math.floor(P)+.5,Math.floor(d)+.5,X,w);B.strokeRect(Math.ceil(P)-.5,Math.ceil(d)-.5,X,w)}this._bIsPainted=
!0};
f.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
f.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
f.prototype.round=function(S){return S?Math.floor(S*1E3)/1E3:S};
return f}():function(){var f=function(S,B){this.JSC$17433__el=S;
this.JSC$17433__htOption=B};
f.prototype.draw=function(S){for(var B=this.JSC$17433__htOption,G=this.JSC$17433__el,g=S.moduleCount,b=Math.floor(B.width/g),z=Math.floor(B.height/g),X=['<table style="border:0;border-collapse:collapse;">'],w=0;w<g;w++){X.push("<tr>");for(var F=0;F<g;F++)X.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+b+"px;height:"+z+"px;background-color:"+(S.isDark(w,F)?B.colorDark:B.colorLight)+';"></td>');X.push("</tr>")}X.push("</table>");S=X.join("");S=_.iMm(_.qV7,S);_.pC(G,S);
S=G.childNodes[0];g=(B.width-S.offsetWidth)/2;b=(B.height-S.offsetHeight)/2;g>0&&b>0&&(S.style.margin=b+"px "+g+"px")};
f.prototype.clear=function(){this.JSC$17433__el.textContent=""};
return f}();
N0u.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$17436__android||this.JSC$17436__android>=3)&&this._oDrawing.makeImage()};
N0u.prototype.clear=function(){this._oDrawing.clear()};
_.S1.QRCode=N0u;var AVn={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var KU=function(){};
KU.prototype.stringify=function(f){return _.S1.JSON.stringify(f,void 0)};
KU.prototype.parse=function(f){return _.S1.JSON.parse(f,void 0)};var NHo=function(){_.K8.call(this,"z")};
_.Rm(NHo,_.K8);var MzX=function(){_.K8.call(this,"y")};
_.Rm(MzX,_.K8);var ZuY=null,tzY=function(){return ZuY=ZuY||new _.$o},uHB=function(f){_.K8.call(this,"serverreachability",f)};
_.Rm(uHB,_.K8);var df=function(f){var S=tzY();S.dispatchEvent(new uHB(S,f))},aRu=function(f){_.K8.call(this,"statevent",f)};
_.Rm(aRu,_.K8);var iN=function(f){var S=tzY();S.dispatchEvent(new aRu(S,f))},yVY=function(f,S,B,G){_.K8.call(this,"timingevent",f);
this.size=S;this.rtt=B;this.retries=G};
_.Rm(yVY,_.K8);var WbB=function(f,S,B){var G=tzY();G.dispatchEvent(new yVY(G,f,S,B))},Ha=function(f,S){if(typeof f!=="function")throw Error("wk");
return _.S1.setTimeout(function(){f()},S)};var qZ=function(){this.redactEnabled_=!0};
qZ.prototype.disableRedact=function(){this.redactEnabled_=!1};
var cVe=function(f,S,B,G,g,b){f.info(function(){if(f.redactEnabled_)if(b){var z="";for(var X=b.split("&"),w=0;w<X.length;w++){var F=X[w].split("=");if(F.length>1){var V=F[0];F=F[1];var J=V.split("_");z=J.length>=2&&J[1]=="type"?z+(V+"="+F+"&"):z+(V+"=redacted&")}}}else z=null;else z=b;return"XMLHTTP REQ ("+G+") [attempt "+g+"]: "+S+"\n"+B+"\n"+z})},lRo=function(f,S,B,G,g,b,z){f.info(function(){return"XMLHTTP RESP ("+G+") [ attempt "+g+"]: "+S+"\n"+B+"\n"+b+" "+z})},$S=function(f,S,B,G){f.info(function(){return"XMLHTTP TEXT ("+
S+"): "+f7z(f,B)+(G?" "+G:"")})},o9M=function(f,S){f.info(function(){return"TIMEOUT: "+S})};
qZ.prototype.debug=function(){};
qZ.prototype.info=function(){};
qZ.prototype.warning=function(){};
var f7z=function(f,S){if(!f.redactEnabled_)return S;if(!S)return null;try{var B=JSON.parse(S);if(B)for(var G=0;G<B.length;G++)if(Array.isArray(B[G])){var g=B[G];if(!(g.length<2)){var b=g[1];if(Array.isArray(b)&&!(b.length<1)){var z=b[0];if(z!="noop"&&z!="stop"&&z!="close")for(var X=1;X<b.length;X++)b[X]=""}}}return(0,_.ET)(B)}catch(w){return f.debug("Exception parsing expected JS array - probably was not JS"),S}};var QY=function(f,S,B,G,g){this.JSC$17458_channel_=f;this.JSC$17458_channelDebug_=S;this.sid_=B;this.JSC$17458_rid_=G;this.JSC$17458_retryId_=g||1;this.JSC$17458_eventHandler_=new _.BZ(this);this.timeout_=45E3;this.JSC$17458_extraHeaders_=null;this.JSC$17458_successful_=!1;this.JSC$17458_postData_=this.JSC$17458_requestUri_=this.JSC$17458_baseUri_=this.JSC$17458_type_=this.JSC$17458_requestStartTime_=this.JSC$17458_watchDogTimeoutTime_=this.JSC$17458_watchDogTimerId_=null;this.JSC$17458_pendingMessages_=
[];this.JSC$17458_xmlHttp_=null;this.JSC$17458_xmlHttpChunkStart_=0;this.JSC$17458_lastError_=this.JSC$17458_verb_=null;this.JSC$17458_lastStatusCode_=-1;this.JSC$17458_cancelled_=!1;this.JSC$17458_readyStateChangeThrottleMs_=0;this.JSC$17458_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new ScY},ScY=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},BFY=function(f,S){switch(f){case 0:return"Non-200 return code ("+S+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},G6$={},g9X={};
QY.prototype.setTimeout=function(f){this.timeout_=f};
var bTu=function(f,S,B){f.JSC$17458_type_=1;f.JSC$17458_baseUri_=_.XH(S.clone());f.JSC$17458_postData_=B;f.decodeChunks_=!0;eC2(f,null)},eC2=function(f,S){f.JSC$17458_requestStartTime_=Date.now();
msO(f);f.JSC$17458_requestUri_=f.JSC$17458_baseUri_.clone();mV(f.JSC$17458_requestUri_,"t",f.JSC$17458_retryId_);f.JSC$17458_xmlHttpChunkStart_=0;var B=f.JSC$17458_channel_.JSC$17477_supportsCrossDomainXhrs_;f.fetchResponseState_=new ScY;f.JSC$17458_xmlHttp_=zCu(f.JSC$17458_channel_,B?S:null,!f.JSC$17458_postData_);f.JSC$17458_readyStateChangeThrottleMs_>0&&(f.JSC$17458_readyStateChangeThrottle_=new _.S3((0,_.$A)(f.JSC$17462_xmlHttpHandler_,f,f.JSC$17458_xmlHttp_),f.JSC$17458_readyStateChangeThrottleMs_));
f.JSC$17458_eventHandler_.listen(f.JSC$17458_xmlHttp_,"readystatechange",f.JSC$17462_readyStateChangeHandler_);S=f.JSC$17458_extraHeaders_?_.$v.clone(f.JSC$17458_extraHeaders_):{};f.JSC$17458_postData_?(f.JSC$17458_verb_||(f.JSC$17458_verb_="POST"),S["Content-Type"]="application/x-www-form-urlencoded",f.JSC$17458_xmlHttp_.send(f.JSC$17458_requestUri_,f.JSC$17458_verb_,f.JSC$17458_postData_,S)):(f.JSC$17458_verb_="GET",f.JSC$17458_xmlHttp_.send(f.JSC$17458_requestUri_,f.JSC$17458_verb_,null,S));df(1);
cVe(f.JSC$17458_channelDebug_,f.JSC$17458_verb_,f.JSC$17458_requestUri_,f.JSC$17458_rid_,f.JSC$17458_retryId_,f.JSC$17458_postData_)};
QY.prototype.JSC$17462_readyStateChangeHandler_=function(f){f=f.target;var S=this.JSC$17458_readyStateChangeThrottle_;S&&_.ko(f)==3?(this.JSC$17458_channelDebug_.debug("Throttling readystatechange."),S.fire()):this.JSC$17462_xmlHttpHandler_(f)};
QY.prototype.JSC$17462_xmlHttpHandler_=function(f){try{f==this.JSC$17458_xmlHttp_?RC2(this):this.JSC$17458_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(S){this.JSC$17458_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),Xy2(this)}finally{}};
var RC2=function(f){var S=_.ko(f.JSC$17458_xmlHttp_),B=f.JSC$17458_xmlHttp_.JSC$7841_lastErrorCode_,G=f.JSC$17458_xmlHttp_.getStatus();if(!(S<3||S==3&&!Xy2(f))){f.JSC$17458_cancelled_||S!=4||B==7||(B==8||G<=0?df(3):df(2));wyu(f);var g=f.JSC$17458_xmlHttp_.getStatus();f.JSC$17458_lastStatusCode_=g;B=hCz(f);Xy2(f)||f.JSC$17458_channelDebug_.debug(function(){return"No response text for uri "+f.JSC$17458_requestUri_+" status "+g});
f.JSC$17458_successful_=g==200;lRo(f.JSC$17458_channelDebug_,f.JSC$17458_verb_,f.JSC$17458_requestUri_,f.JSC$17458_rid_,f.JSC$17458_retryId_,S,g);if(f.JSC$17458_successful_){if(f.decodeInitialResponse_&&!f.initialResponseDecoded_)if(G=TFe(f))$S(f.JSC$17458_channelDebug_,f.JSC$17458_rid_,G,"Initial handshake response via X-HTTP-Initial-Response"),f.initialResponseDecoded_=!0,FnO(f,G);else{f.JSC$17458_successful_=!1;f.JSC$17458_lastError_=3;iN(12);f.JSC$17458_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
f.JSC$17458_rid_+")");YS(f);rf(f);return}f.decodeChunks_?Vn2(f,S,B):($S(f.JSC$17458_channelDebug_,f.JSC$17458_rid_,B,null),FnO(f,B));S==4&&YS(f);f.JSC$17458_successful_&&!f.JSC$17458_cancelled_&&(S==4?J_$(f.JSC$17458_channel_,f):(f.JSC$17458_successful_=!1,msO(f)))}else XFY(f.JSC$17458_xmlHttp_),g==400&&B.indexOf("Unknown SID")>0?(f.JSC$17458_lastError_=3,iN(12),f.JSC$17458_channelDebug_.warning("XMLHTTP Unknown SID ("+f.JSC$17458_rid_+")")):(f.JSC$17458_lastError_=0,iN(13),f.JSC$17458_channelDebug_.warning("XMLHTTP Bad status "+
g+" ("+f.JSC$17458_rid_+")")),YS(f),rf(f)}},TFe=function(f){return f.JSC$17458_xmlHttp_&&(f=FQ(f.JSC$17458_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.bK(f)?f:null},hCz=function(f){if(!P6u(f))return f.JSC$17458_xmlHttp_.getResponseText();
var S=f.JSC$17458_xmlHttp_.getResponse();if(S==="")return"";var B="",G=S.length,g=_.ko(f.JSC$17458_xmlHttp_)==4;if(!f.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return YS(f),rf(f),"";f.fetchResponseState_.textDecoder=new _.S1.TextDecoder}for(var b=0;b<G;b++)f.fetchResponseState_.responseArrivedForFetch=!0,B+=f.fetchResponseState_.textDecoder.decode(S[b],{stream:!(g&&b==G-1)});S.length=0;f.fetchResponseState_.responseBuffer+=B;f.JSC$17458_xmlHttpChunkStart_=0;return f.fetchResponseState_.responseBuffer},
Xy2=function(f){return f.JSC$17458_xmlHttp_?f.fetchResponseState_.responseArrivedForFetch?!0:!(!f.JSC$17458_xmlHttp_.getResponseText()&&!f.JSC$17458_xmlHttp_.getResponse()):!1},P6u=function(f){return f.JSC$17458_xmlHttp_?f.JSC$17458_verb_=="GET"&&f.JSC$17458_type_!=2&&f.JSC$17458_channel_.usesFetchStreams_:!1},Vn2=function(f,S,B){for(var G=!0,g;!f.JSC$17458_cancelled_&&f.JSC$17458_xmlHttpChunkStart_<B.length;)if(g=v9$(f,B),g==g9X){S==4&&(f.JSC$17458_lastError_=4,iN(14),G=!1);
$S(f.JSC$17458_channelDebug_,f.JSC$17458_rid_,null,"[Incomplete Response]");break}else if(g==G6$){f.JSC$17458_lastError_=4;iN(15);$S(f.JSC$17458_channelDebug_,f.JSC$17458_rid_,B,"[Invalid Chunk]");G=!1;break}else $S(f.JSC$17458_channelDebug_,f.JSC$17458_rid_,g,null),FnO(f,g);P6u(f)&&f.JSC$17458_xmlHttpChunkStart_!=0&&(f.fetchResponseState_.responseBuffer=f.fetchResponseState_.responseBuffer.slice(f.JSC$17458_xmlHttpChunkStart_),f.JSC$17458_xmlHttpChunkStart_=0);S!=4||B.length!=0||f.fetchResponseState_.responseArrivedForFetch||
(f.JSC$17458_lastError_=1,iN(16),G=!1);f.JSC$17458_successful_=f.JSC$17458_successful_&&G;G?B.length>0&&!f.firstByteReceived_&&(f.firstByteReceived_=!0,S=f.JSC$17458_channel_,S.JSC$17477_backChannelRequest_==f&&S.detectBufferingProxy_&&!S.bpDetectionDone_&&(S.JSC$17477_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+B.length),KnY(S),S.bpDetectionDone_=!0,iN(11))):($S(f.JSC$17458_channelDebug_,f.JSC$17458_rid_,B,"[Invalid Chunked Response]"),YS(f),rf(f))},v9$=function(f,S){var B=
f.JSC$17458_xmlHttpChunkStart_,G=S.indexOf("\n",B);
if(G==-1)return g9X;B=Number(S.substring(B,G));if(isNaN(B))return G6$;G+=1;if(G+B>S.length)return g9X;S=S.slice(G,G+B);f.JSC$17458_xmlHttpChunkStart_=G+B;return S};
QY.prototype.cancel=function(){this.JSC$17458_cancelled_=!0;YS(this)};
var msO=function(f){f.JSC$17458_watchDogTimeoutTime_=Date.now()+f.timeout_;dsM(f,f.timeout_)},dsM=function(f,S){if(f.JSC$17458_watchDogTimerId_!=null)throw Error("xk");
f.JSC$17458_watchDogTimerId_=Ha((0,_.$A)(f.JSC$17462_onWatchDogTimeout_,f),S)},wyu=function(f){f.JSC$17458_watchDogTimerId_&&(_.S1.clearTimeout(f.JSC$17458_watchDogTimerId_),f.JSC$17458_watchDogTimerId_=null)};
QY.prototype.JSC$17462_onWatchDogTimeout_=function(){this.JSC$17458_watchDogTimerId_=null;var f=Date.now();f-this.JSC$17458_watchDogTimeoutTime_>=0?(o9M(this.JSC$17458_channelDebug_,this.JSC$17458_requestUri_),this.JSC$17458_type_!=2&&(df(3),iN(17)),YS(this),this.JSC$17458_lastError_=2,rf(this)):(this.JSC$17458_channelDebug_.warning("WatchDog timer called too early"),dsM(this,this.JSC$17458_watchDogTimeoutTime_-f))};
var rf=function(f){f.JSC$17458_channel_.state_==0||f.JSC$17458_cancelled_||J_$(f.JSC$17458_channel_,f)},YS=function(f){wyu(f);
_.cd(f.JSC$17458_readyStateChangeThrottle_);f.JSC$17458_readyStateChangeThrottle_=null;f.JSC$17458_eventHandler_.removeAll();if(f.JSC$17458_xmlHttp_){var S=f.JSC$17458_xmlHttp_;f.JSC$17458_xmlHttp_=null;S.abort();S.dispose()}};
QY.prototype.getLastError=function(){return this.JSC$17458_lastError_};
var FnO=function(f,S){try{var B=f.JSC$17458_channel_;if(B.state_!=0&&(B.JSC$17477_backChannelRequest_==f||iTz(B.forwardChannelRequestPool_,f)))if(!f.initialResponseDecoded_&&iTz(B.forwardChannelRequestPool_,f)&&B.state_==3){try{var G=B.wireCodec_.JSC$17472_parser_.parse(S)}catch(X){G=null}if(Array.isArray(G)&&G.length==3){S=G;if(S[0]==0)a:if(B.JSC$17477_channelDebug_.debug("Server claims our backchannel is missing."),B.JSC$17477_backChannelTimerId_)B.JSC$17477_channelDebug_.debug("But we are currently starting the request.");
else{if(B.JSC$17477_backChannelRequest_)if(B.JSC$17477_backChannelRequest_.JSC$17458_requestStartTime_+3E3<f.JSC$17458_requestStartTime_)HTO(B),qc2(B);else break a;else B.JSC$17477_channelDebug_.warning("We do not have a BackChannel established");$so(B);iN(18)}else{B.JSC$17477_lastPostResponseArrayId_=S[1];var g=B.JSC$17477_lastPostResponseArrayId_-B.JSC$17477_lastArrayId_;if(0<g){var b=S[2];B.JSC$17477_channelDebug_.debug(b+" bytes (in "+g+" arrays) are outstanding on the BackChannel");b<37500&&
B.enableStreaming_&&B.JSC$17477_backChannelRetryCount_==0&&!B.JSC$17477_deadBackChannelTimerId_&&(B.JSC$17477_deadBackChannelTimerId_=Ha((0,_.$A)(B.JSC$17479_onBackChannelDead_,B),6E3))}}if(QNo(B.forwardChannelRequestPool_)<=1&&B.forwardChannelFlushedCallback_){try{B.forwardChannelFlushedCallback_()}catch(X){}B.forwardChannelFlushedCallback_=void 0}}else B.JSC$17477_channelDebug_.debug("Bad POST response data returned"),jH(B,11)}else if((f.initialResponseDecoded_||B.JSC$17477_backChannelRequest_==
f)&&HTO(B),!_.bK(S)){var z=B.wireCodec_.JSC$17472_parser_.parse(S);B.onInput_(z,f)}df(4)}catch(X){}};var YcZ=function(f,S){this.JSC$17465_mapId=f;this.map=S;this.context=null};var r_M=function(f){this.maxPoolSizeConfigured_=f||10;_.S1.PerformanceNavigationTiming?(f=_.S1.performance.getEntriesByType("navigation"),f=f.length>0&&(f[0].nextHopProtocol=="hq"||f[0].nextHopProtocol=="h2")):f=!!(_.S1.chrome&&_.S1.chrome.loadTimes&&_.S1.chrome.loadTimes()&&_.S1.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$17468_maxSize_=f?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$17468_maxSize_>1&&(this.requestPool_=new Set);this.JSC$17468_request_=null;this.JSC$17468_pendingMessages_=
[]},jNM=function(f){return f.JSC$17468_request_?!0:f.requestPool_?f.requestPool_.size>=f.JSC$17468_maxSize_:!1},QNo=function(f){return f.JSC$17468_request_?1:f.requestPool_?f.requestPool_.size:0},iTz=function(f,S){return f.JSC$17468_request_?f.JSC$17468_request_==S:f.requestPool_?f.requestPool_.has(S):!1},OTn=function(f,S){f.requestPool_?f.requestPool_.add(S):f.JSC$17468_request_=S},xsu=function(f,S){f.JSC$17468_request_&&f.JSC$17468_request_==S?f.JSC$17468_request_=null:f.requestPool_&&f.requestPool_.has(S)&&
f.requestPool_.delete(S)};
r_M.prototype.cancel=function(){this.JSC$17468_pendingMessages_=E9n(this);if(this.JSC$17468_request_)this.JSC$17468_request_.cancel(),this.JSC$17468_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var f=_.m(this.requestPool_.values()),S=f.next();!S.done;S=f.next())S.value.cancel();this.requestPool_.clear()}};
var E9n=function(f){if(f.JSC$17468_request_!=null)return f.JSC$17468_pendingMessages_.concat(f.JSC$17468_request_.JSC$17458_pendingMessages_);if(f.requestPool_!=null&&f.requestPool_.size!==0){var S=f.JSC$17468_pendingMessages_;f=_.m(f.requestPool_.values());for(var B=f.next();!B.done;B=f.next())S=S.concat(B.value.JSC$17458_pendingMessages_);return S}return _.aT(f.JSC$17468_pendingMessages_)},Ln2=function(f,S){f.JSC$17468_pendingMessages_=f.JSC$17468_pendingMessages_.concat(S)};var k6u=function(f,S){var B=new qZ;B.debug("TestLoadImage: loading "+f);if(_.S1.Image){var G=new Image;G.onload=_.vK(OD,B,"TestLoadImage: loaded",!0,S,G);G.onerror=_.vK(OD,B,"TestLoadImage: error",!1,S,G);G.onabort=_.vK(OD,B,"TestLoadImage: abort",!1,S,G);G.ontimeout=_.vK(OD,B,"TestLoadImage: timeout",!1,S,G);_.S1.setTimeout(function(){if(G.ontimeout)G.ontimeout()},1E4);
G.src=f}else S(!1)},n9u=function(f,S){var B=new qZ,G=new AbortController,g=setTimeout(function(){G.abort();
OD(B,"TestPingServer: timeout",!1,S)},1E4);
fetch(f,{signal:G.signal}).then(function(b){clearTimeout(g);b.ok?OD(B,"TestPingServer: ok",!0,S):OD(B,"TestPingServer: server error",!1,S)}).catch(function(){clearTimeout(g);
OD(B,"TestPingServer: error",!1,S)})},OD=function(f,S,B,G,g){try{f.debug(S),g&&(g.onload=null,g.onerror=null,g.onabort=null,g.ontimeout=null),G(B)}catch(b){}};var sNO=function(){this.JSC$17472_parser_=new KU};var xS=function(f,S,B){return B&&B.internalChannelParams?B.internalChannelParams[f]||S:S},ED=function(f){this.serverVersion_=0;
this.JSC$17477_outgoingMaps_=[];this.JSC$17477_channelDebug_=new qZ;this.JSC$17477_hostPrefix_=this.JSC$17477_backChannelUri_=this.JSC$17477_forwardChannelUri_=this.JSC$17477_path_=this.JSC$17477_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$17477_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$17477_extraHeaders_=null;this.JSC$17477_nextMapId_=this.JSC$17477_nextRid_=0;this.JSC$17477_failFast_=xS("failFast",!1,f);this.enableStreaming_=this.JSC$17477_deadBackChannelTimerId_=
this.JSC$17477_backChannelTimerId_=this.JSC$17477_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$17477_lastPostResponseArrayId_=this.JSC$17477_lastArrayId_=-1;this.JSC$17477_backChannelAttemptId_=this.JSC$17477_backChannelRetryCount_=this.JSC$17477_forwardChannelRetryCount_=0;this.JSC$17477_baseRetryDelayMs_=xS("baseRetryDelayMs",5E3,f);this.JSC$17477_retryDelaySeedMs_=xS("retryDelaySeedMs",1E4,f);this.JSC$17477_forwardChannelMaxRetries_=
xS("forwardChannelMaxRetries",2,f);this.JSC$17477_forwardChannelRequestTimeoutMs_=xS("forwardChannelRequestTimeoutMs",2E4,f);this.JSC$17477_xmlHttpFactory_=f&&f.xmlHttpFactory||void 0;this.networkTestUrl_=f&&f.networkTestUrl||void 0;this.usesFetchStreams_=f&&f.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$17477_supportsCrossDomainXhrs_=f&&f.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new r_M(f&&f.concurrentRequestLimit);this.wireCodec_=new sNO;this.fastHandshake_=
f&&f.fastHandshake||!1;this.encodeInitMessageHeaders_=f&&f.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$17477_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=f&&f.blockingHandshake||!1;f&&f.disableRedact&&this.JSC$17477_channelDebug_.disableRedact();f&&f.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
f&&f.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;f&&f.longPollingTimeout&&f.longPollingTimeout>0&&(this.longPollingTimeout_=f.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
ED.prototype.JSC$17479_channelVersion_=8;ED.prototype.state_=1;
ED.prototype.connect=function(f,S,B,G){this.JSC$17477_channelDebug_.debug("connect()");iN(0);this.JSC$17477_path_=f;this.JSC$17477_extraParams_=S||{};B&&G!==void 0&&(this.JSC$17477_extraParams_.OSID=B,this.JSC$17477_extraParams_.OAID=G);this.enableStreaming_=this.allowStreamingMode_;this.JSC$17477_channelDebug_.debug("connectChannel_()");f=DsM(this,null,this.JSC$17477_path_);this.JSC$17477_channelDebug_.debug("GetForwardChannelUri: "+f);this.JSC$17477_forwardChannelUri_=f;I7$(this)};
ED.prototype.disconnect=function(){this.JSC$17477_channelDebug_.debug("disconnect()");Usu(this);if(this.state_==3){var f=this.JSC$17477_nextRid_++,S=this.JSC$17477_forwardChannelUri_.clone();_.ZL(S,"SID",this.sid_);_.ZL(S,"RID",f);_.ZL(S,"TYPE","terminate");LU(this,S);f=new QY(this,this.JSC$17477_channelDebug_,this.sid_,f);f.JSC$17458_type_=2;f.JSC$17458_baseUri_=_.XH(S.clone());S=!1;if(_.S1.navigator&&_.S1.navigator.sendBeacon)try{S=_.S1.navigator.sendBeacon(f.JSC$17458_baseUri_.toString(),"")}catch(B){}!S&&
_.S1.Image&&((new Image).src=f.JSC$17458_baseUri_,S=!0);S||(f.JSC$17458_xmlHttp_=zCu(f.JSC$17458_channel_,null),f.JSC$17458_xmlHttp_.send(f.JSC$17458_baseUri_));f.JSC$17458_requestStartTime_=Date.now();msO(f)}C62(this)};
var qc2=function(f){f.JSC$17477_backChannelRequest_&&(KnY(f),f.JSC$17477_backChannelRequest_.cancel(),f.JSC$17477_backChannelRequest_=null)},Usu=function(f){qc2(f);
f.JSC$17477_backChannelTimerId_&&(_.S1.clearTimeout(f.JSC$17477_backChannelTimerId_),f.JSC$17477_backChannelTimerId_=null);HTO(f);f.forwardChannelRequestPool_.cancel();f.JSC$17477_forwardChannelTimerId_&&(typeof f.JSC$17477_forwardChannelTimerId_==="number"&&_.S1.clearTimeout(f.JSC$17477_forwardChannelTimerId_),f.JSC$17477_forwardChannelTimerId_=null)};
ED.prototype.getState=function(){return this.state_};
var I7$=function(f){jNM(f.forwardChannelRequestPool_)||f.JSC$17477_forwardChannelTimerId_||(f.JSC$17477_forwardChannelTimerId_=!0,_.Yo(f.JSC$17479_onStartForwardChannelTimer_,f),f.JSC$17477_forwardChannelRetryCount_=0)},A_e=function(f,S){if(QNo(f.forwardChannelRequestPool_)>=f.forwardChannelRequestPool_.JSC$17468_maxSize_-(f.JSC$17477_forwardChannelTimerId_?1:0))return!1;
if(f.JSC$17477_forwardChannelTimerId_)return f.JSC$17477_channelDebug_.debug("Use the retry request that is already scheduled."),f.JSC$17477_outgoingMaps_=S.JSC$17458_pendingMessages_.concat(f.JSC$17477_outgoingMaps_),!0;if(f.state_==1||f.state_==2||f.JSC$17477_forwardChannelRetryCount_>=(f.JSC$17477_failFast_?0:f.JSC$17477_forwardChannelMaxRetries_))return!1;f.JSC$17477_channelDebug_.debug("Going to retry POST");f.JSC$17477_forwardChannelTimerId_=Ha((0,_.$A)(f.JSC$17479_onStartForwardChannelTimer_,
f,S),pyY(f,f.JSC$17477_forwardChannelRetryCount_));f.JSC$17477_forwardChannelRetryCount_++;return!0};
ED.prototype.JSC$17479_onStartForwardChannelTimer_=function(f){if(this.JSC$17477_forwardChannelTimerId_)if(this.JSC$17477_forwardChannelTimerId_=null,this.JSC$17477_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!f){this.JSC$17477_channelDebug_.debug("open_()");this.JSC$17477_nextRid_=Math.floor(Math.random()*1E5);f=this.JSC$17477_nextRid_++;var S=new QY(this,this.JSC$17477_channelDebug_,"",f),B=this.JSC$17477_extraHeaders_;this.initHeaders_&&(B?(B=_.$v.clone(B),_.$v.extend(B,this.initHeaders_)):
B=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(S.JSC$17458_extraHeaders_=B,B=null);var G;if(this.fastHandshake_)a:{for(var g=G=0;g<this.JSC$17477_outgoingMaps_.length;g++){b:{var b=this.JSC$17477_outgoingMaps_[g];if("__data__"in b.map&&(b=b.map.__data__,typeof b==="string")){b=b.length;break b}b=void 0}if(b===void 0)break;G+=b;if(G>4096){G=g;break a}if(G===4096||g===this.JSC$17477_outgoingMaps_.length-1){G=g+1;break a}}G=1E3}else G=1E3;G=NF2(this,S,G);
g=this.JSC$17477_forwardChannelUri_.clone();_.ZL(g,"RID",f);_.ZL(g,"CVER",22);this.httpSessionIdParam_&&_.ZL(g,"X-HTTP-Session-Id",this.httpSessionIdParam_);LU(this,g);B&&(this.encodeInitMessageHeaders_?G="headers="+_.pL(vKn(B))+"&"+G:this.httpHeadersOverwriteParam_&&Ksn(g,this.httpHeadersOverwriteParam_,B));OTn(this.forwardChannelRequestPool_,S);this.blockingHandshake_&&_.ZL(g,"TYPE","init");this.fastHandshake_?(_.ZL(g,"$req",G),_.ZL(g,"SID","null"),S.decodeInitialResponse_=!0,bTu(S,g,null)):bTu(S,
g,G);this.state_=2}}else this.state_==3&&(f?Mnu(this,f):this.JSC$17477_outgoingMaps_.length==0?this.JSC$17477_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):jNM(this.forwardChannelRequestPool_)||(Mnu(this),this.JSC$17477_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var Mnu=function(f,S){var B;S?B=S.JSC$17458_rid_:B=f.JSC$17477_nextRid_++;var G=f.JSC$17477_forwardChannelUri_.clone();_.ZL(G,"SID",f.sid_);_.ZL(G,"RID",B);_.ZL(G,"AID",f.JSC$17477_lastArrayId_);LU(f,G);f.httpHeadersOverwriteParam_&&f.JSC$17477_extraHeaders_&&Ksn(G,f.httpHeadersOverwriteParam_,f.JSC$17477_extraHeaders_);B=new QY(f,f.JSC$17477_channelDebug_,f.sid_,B,f.JSC$17477_forwardChannelRetryCount_+1);f.httpHeadersOverwriteParam_===null&&(B.JSC$17458_extraHeaders_=f.JSC$17477_extraHeaders_);S&&
(f.JSC$17477_outgoingMaps_=S.JSC$17458_pendingMessages_.concat(f.JSC$17477_outgoingMaps_));S=NF2(f,B,1E3);B.setTimeout(Math.round(f.JSC$17477_forwardChannelRequestTimeoutMs_*.5)+Math.round(f.JSC$17477_forwardChannelRequestTimeoutMs_*.5*Math.random()));OTn(f.forwardChannelRequestPool_,B);bTu(B,G,S)},LU=function(f,S){f.JSC$17477_extraParams_&&_.$v.forEach(f.JSC$17477_extraParams_,function(B,G){_.ZL(S,G,B)});
f.handler_&&_.$v.forEach({},function(B,G){_.ZL(S,G,B)})},NF2=function(f,S,B){B=Math.min(f.JSC$17477_outgoingMaps_.length,B);
var G=f.handler_?(0,_.$A)(f.handler_.JSC$17483_badMapError,f.handler_,f):null;a:{for(var g=f.JSC$17477_outgoingMaps_,b=-1;;){var z=["count="+B];b==-1?B>0?(b=g[0].JSC$17465_mapId,z.push("ofs="+b)):b=0:z.push("ofs="+b);for(var X=!0,w=0;w<B;w++){var F=g[w].JSC$17465_mapId,V=g[w].map;F-=b;if(F<0)b=Math.max(0,g[w].JSC$17465_mapId-100),X=!1;else try{F="req"+F+"_"||"";try{var J=V instanceof Map?V:Object.entries(V);for(var P=_.m(J),d=P.next();!d.done;d=P.next()){var Q=_.m(d.value),x=Q.next().value,E=Q.next().value,
U=E;_.og(E)&&(U=(0,_.ET)(E));z.push(F+x+"="+encodeURIComponent(U))}}catch(A){throw z.push(F+"type="+encodeURIComponent("_badmap")),A;}}catch(A){G&&G(V)}}if(X){J=z.join("&");break a}}J=void 0}f=f.JSC$17477_outgoingMaps_.splice(0,B);S.JSC$17458_pendingMessages_=f;return J},ZT2=function(f){f.JSC$17477_backChannelRequest_||f.JSC$17477_backChannelTimerId_||(f.JSC$17477_backChannelAttemptId_=1,_.Yo(f.JSC$17479_onStartBackChannelTimer_,f),f.JSC$17477_backChannelRetryCount_=0)},$so=function(f){if(f.JSC$17477_backChannelRequest_||
f.JSC$17477_backChannelTimerId_||f.JSC$17477_backChannelRetryCount_>=3)return!1;
f.JSC$17477_channelDebug_.debug("Going to retry GET");f.JSC$17477_backChannelAttemptId_++;f.JSC$17477_backChannelTimerId_=Ha((0,_.$A)(f.JSC$17479_onStartBackChannelTimer_,f),pyY(f,f.JSC$17477_backChannelRetryCount_));f.JSC$17477_backChannelRetryCount_++;return!0};
ED.prototype.JSC$17479_onStartBackChannelTimer_=function(){this.JSC$17477_backChannelTimerId_=null;tne(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$17477_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$17477_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$17477_backChannelRequest_+" "+this.handshakeRttMs_);else{var f=2*this.handshakeRttMs_;this.JSC$17477_channelDebug_.info("BP detection timer enabled: "+f);this.bpDetectionTimerId_=Ha((0,_.$A)(this.onBpDetectionTimer_,
this),f)}};
ED.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$17477_channelDebug_.info("BP detection timeout reached.");if(this.JSC$17477_backChannelRequest_.JSC$17458_xmlHttp_!=null){var f=this.JSC$17477_backChannelRequest_.JSC$17458_xmlHttp_.getResponseText();f&&this.JSC$17477_channelDebug_.warning("Timer should have been cancelled : "+f)}this.JSC$17477_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;iN(10);qc2(this);tne(this)}else this.JSC$17477_channelDebug_.warning("Invalid operation.")};
var KnY=function(f){f.bpDetectionTimerId_!=null&&(f.JSC$17477_channelDebug_.debug("Cancel the BP detection timer."),_.S1.clearTimeout(f.bpDetectionTimerId_),f.bpDetectionTimerId_=null)},tne=function(f){f.JSC$17477_channelDebug_.debug("Creating new HttpRequest");
f.JSC$17477_backChannelRequest_=new QY(f,f.JSC$17477_channelDebug_,f.sid_,"rpc",f.JSC$17477_backChannelAttemptId_);f.httpHeadersOverwriteParam_===null&&(f.JSC$17477_backChannelRequest_.JSC$17458_extraHeaders_=f.JSC$17477_extraHeaders_);f.JSC$17477_backChannelRequest_.JSC$17458_readyStateChangeThrottleMs_=0;var S=f.JSC$17477_backChannelUri_.clone();_.ZL(S,"RID","rpc");_.ZL(S,"SID",f.sid_);_.ZL(S,"AID",f.JSC$17477_lastArrayId_);_.ZL(S,"CI",f.enableStreaming_?"0":"1");!f.enableStreaming_&&f.longPollingTimeout_&&
_.ZL(S,"TO",f.longPollingTimeout_);_.ZL(S,"TYPE","xmlhttp");LU(f,S);f.httpHeadersOverwriteParam_&&f.JSC$17477_extraHeaders_&&Ksn(S,f.httpHeadersOverwriteParam_,f.JSC$17477_extraHeaders_);f.backChannelRequestTimeoutMs_&&f.JSC$17477_backChannelRequest_.setTimeout(f.backChannelRequestTimeoutMs_);var B=f.JSC$17477_backChannelRequest_,G=f.JSC$17477_hostPrefix_;B.JSC$17458_type_=1;B.JSC$17458_baseUri_=_.XH(S.clone());B.JSC$17458_postData_=null;B.decodeChunks_=!0;eC2(B,G);f.JSC$17477_channelDebug_.debug("New Request created")};
ED.prototype.JSC$17479_onBackChannelDead_=function(){this.JSC$17477_deadBackChannelTimerId_!=null&&(this.JSC$17477_deadBackChannelTimerId_=null,qc2(this),$so(this),iN(19))};
var HTO=function(f){f.JSC$17477_deadBackChannelTimerId_!=null&&(_.S1.clearTimeout(f.JSC$17477_deadBackChannelTimerId_),f.JSC$17477_deadBackChannelTimerId_=null)},J_$=function(f,S){f.JSC$17477_channelDebug_.debug("Request complete");
var B=null;if(f.JSC$17477_backChannelRequest_==S){HTO(f);KnY(f);f.JSC$17477_backChannelRequest_=null;var G=2}else if(iTz(f.forwardChannelRequestPool_,S))B=S.JSC$17458_pendingMessages_,xsu(f.forwardChannelRequestPool_,S),G=1;else return;if(f.state_!=0)if(S.JSC$17458_successful_)G==1?(WbB(S.JSC$17458_postData_?S.JSC$17458_postData_.length:0,Date.now()-S.JSC$17458_requestStartTime_,f.JSC$17477_forwardChannelRetryCount_),I7$(f)):ZT2(f);else{var g=S.JSC$17458_lastStatusCode_,b=S.getLastError();if(b==3||
b==0&&g>0)f.JSC$17477_channelDebug_.debug("Not retrying due to error type"),g>200&&(f.errorResponseStatusCode_=S.JSC$17458_lastStatusCode_);else{f.JSC$17477_channelDebug_.debug(function(){return"Maybe retrying, last error: "+BFY(b,f.errorResponseStatusCode_)});
if(G==1&&A_e(f,S)||G==2&&$so(f))return;f.JSC$17477_channelDebug_.debug("Exceeded max number of retries")}B&&B.length>0&&Ln2(f.forwardChannelRequestPool_,B);f.JSC$17477_channelDebug_.debug("Error: HTTP request failed");switch(b){case 1:jH(f,5);break;case 4:jH(f,10);break;case 3:jH(f,6);break;default:jH(f,2)}}},pyY=function(f,S){var B=f.JSC$17477_baseRetryDelayMs_+Math.floor(Math.random()*f.JSC$17477_retryDelaySeedMs_);
f.isActive()||(f.JSC$17477_channelDebug_.debug("Inactive channel"),B*=2);return B*S};
ED.prototype.onInput_=function(f,S){for(var B=0;B<f.length;B++){var G=f[B];this.JSC$17477_lastArrayId_=G[0];G=G[1];if(this.state_==2)if(G[0]=="c"){this.sid_=G[1];this.JSC$17477_hostPrefix_=G[2];var g=G[3];g!=null&&(this.JSC$17479_channelVersion_=g,this.JSC$17477_channelDebug_.info("VER="+this.JSC$17479_channelVersion_));g=G[4];g!=null&&(this.serverVersion_=g,this.JSC$17477_channelDebug_.info("SVER="+this.serverVersion_));G=G[5];G!=null&&typeof G==="number"&&G>0&&(this.backChannelRequestTimeoutMs_=
G*=1.5,this.JSC$17477_channelDebug_.info("backChannelRequestTimeoutMs_="+G));if(G=S.JSC$17458_xmlHttp_){var b=FQ(G,"X-Client-Wire-Protocol");b&&(g=this.forwardChannelRequestPool_,!g.requestPool_&&(_.XG(b,"spdy")||_.XG(b,"quic")||_.XG(b,"h2"))&&(g.JSC$17468_maxSize_=g.maxPoolSizeConfigured_,g.requestPool_=new Set,g.JSC$17468_request_&&(OTn(g,g.JSC$17468_request_),g.JSC$17468_request_=null)));this.httpSessionIdParam_&&((G=FQ(G,"X-HTTP-Session-Id"))?(this.httpSessionId_=G,_.ZL(this.JSC$17477_forwardChannelUri_,
this.httpSessionIdParam_,G)):this.JSC$17477_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$17483_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-S.JSC$17458_requestStartTime_,this.JSC$17477_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));G=S;g=DsM(this,this.JSC$17477_supportsCrossDomainXhrs_?this.JSC$17477_hostPrefix_:null,this.JSC$17477_path_);this.JSC$17477_channelDebug_.debug("GetBackChannelUri: "+
g);this.JSC$17477_backChannelUri_=g;G.initialResponseDecoded_?(this.JSC$17477_channelDebug_.debug("Upgrade the handshake request to a backchannel."),xsu(this.forwardChannelRequestPool_,G),g=G,(b=this.backChannelRequestTimeoutMs_)&&g.setTimeout(b),g.JSC$17458_watchDogTimerId_&&(wyu(g),msO(g)),this.JSC$17477_backChannelRequest_=G):ZT2(this);this.JSC$17477_outgoingMaps_.length>0&&I7$(this)}else G[0]!="stop"&&G[0]!="close"||jH(this,7);else this.state_==3&&(G[0]=="stop"||G[0]=="close"?G[0]=="stop"?jH(this,
7):this.disconnect():G[0]!="noop"&&this.handler_&&this.handler_.JSC$17483_channelHandleArray(G),this.JSC$17477_backChannelRetryCount_=0)}};
var jH=function(f,S){f.JSC$17477_channelDebug_.info("Error code "+S);if(S==2){var B=(0,_.$A)(f.testNetworkCallback_,f),G=f.networkTestUrl_,g=!G;G=new _.uT(G||"//www.google.com/images/cleardot.gif");_.S1.location&&_.S1.location.protocol=="http"||_.Sz(G,"https");_.XH(G);g?k6u(G.toString(),B):n9u(G.toString(),B)}else iN(2);f.onError_(S)};
ED.prototype.testNetworkCallback_=function(f){f?(this.JSC$17477_channelDebug_.info("Successfully pinged google.com"),iN(2)):(this.JSC$17477_channelDebug_.info("Failed to ping google.com"),iN(1))};
ED.prototype.onError_=function(f){this.JSC$17477_channelDebug_.debug("HttpChannel: error - "+f);this.state_=0;this.handler_&&this.handler_.JSC$17483_channelError(f);C62(this);Usu(this)};
var C62=function(f){f.state_=0;f.nonAckedMapsAtChannelClose_=[];if(f.handler_){var S=E9n(f.forwardChannelRequestPool_);if(S.length!=0||f.JSC$17477_outgoingMaps_.length!=0)f.JSC$17477_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+S.length+", outgoing: "+f.JSC$17477_outgoingMaps_.length}),_.c9(f.nonAckedMapsAtChannelClose_,S),_.c9(f.nonAckedMapsAtChannelClose_,f.JSC$17477_outgoingMaps_),f.forwardChannelRequestPool_.JSC$17468_pendingMessages_.length=0,_.aT(f.JSC$17477_outgoingMaps_),
f.JSC$17477_outgoingMaps_.length=0;
f.handler_.JSC$17483_channelClosed()}},un2=function(f){if(f.state_==0)return f.nonAckedMapsAtChannelClose_;
var S=[];_.c9(S,E9n(f.forwardChannelRequestPool_));_.c9(S,f.JSC$17477_outgoingMaps_);return S},DsM=function(f,S,B){var G=_.NR(B);
G.JSC$8076_domain_!=""?(S&&_.Bz(G,S+"."+G.JSC$8076_domain_),_.Ga(G,G.JSC$8076_port_)):(G=_.S1.location,G=b9$(G.protocol,S?S+"."+G.hostname:G.hostname,+G.port,B));S=f.httpSessionIdParam_;B=f.httpSessionId_;S&&B&&_.ZL(G,S,B);_.ZL(G,"VER",f.JSC$17479_channelVersion_);LU(f,G);return G},zCu=function(f,S,B){if(S&&!f.JSC$17477_supportsCrossDomainXhrs_)throw Error("yk");
S=f.usesFetchStreams_&&!f.JSC$17477_xmlHttpFactory_?new _.L8(new L6({streamBinaryChunks:B})):new _.L8(f.JSC$17477_xmlHttpFactory_);S.JSC$7841_withCredentials_=f.JSC$17477_supportsCrossDomainXhrs_;return S};
ED.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var a7Y=function(){};
_.e=a7Y.prototype;_.e.JSC$17483_channelOpened=function(){};
_.e.JSC$17483_channelHandleArray=function(){};
_.e.JSC$17483_channelError=function(){};
_.e.JSC$17483_channelClosed=function(){};
_.e.isActive=function(){return!0};
_.e.JSC$17483_badMapError=function(){};var y_e=function(){},nU=function(f,S){_.$o.call(this);
this.JSC$17486_channel_=new ED(S);this.JSC$17486_url_=f;this.messageUrlParams_=S&&S.messageUrlParams||null;f=S&&S.messageHeaders||null;S&&S.clientProtocolHeaderRequired&&(f?_.$v.set(f,"X-Client-Protocol","webchannel"):f=_.$v.create("X-Client-Protocol","webchannel"));this.JSC$17486_channel_.JSC$17477_extraHeaders_=f;f=S&&S.initMessageHeaders||null;S&&S.messageContentType&&(f?_.$v.set(f,"X-WebChannel-Content-Type",S.messageContentType):f=_.$v.create("X-WebChannel-Content-Type",S.messageContentType));
S&&S.clientProfile&&(f?_.$v.set(f,"X-WebChannel-Client-Profile",S.clientProfile):f=_.$v.create("X-WebChannel-Client-Profile",S.clientProfile));this.JSC$17486_channel_.initHeaders_=f;(f=S&&S.httpHeadersOverwriteParam)&&!_.bK(f)&&(this.JSC$17486_channel_.httpHeadersOverwriteParam_=f);this.supportsCrossDomainXhr_=S&&S.supportsCrossDomainXhr||!1;this.sendRawJson_=S&&S.sendRawJson||!1;(S=S&&S.httpSessionIdParam)&&!_.bK(S)&&(this.JSC$17486_channel_.httpSessionIdParam_=S,_.$v.containsKey(this.messageUrlParams_,
S)&&_.$v.remove(this.messageUrlParams_,S));this.channelHandler_=new kS(this)};
_.Rm(nU,_.$o);nU.prototype.open=function(){this.JSC$17486_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$17486_channel_.JSC$17477_supportsCrossDomainXhrs_=!0);this.JSC$17486_channel_.connect(this.JSC$17486_url_,this.messageUrlParams_||void 0)};
nU.prototype.close=function(){this.JSC$17486_channel_.disconnect()};
nU.prototype.send=function(f){var S=this.JSC$17486_channel_;if(typeof f==="string"){var B={};B.__data__=f;f=B}else this.sendRawJson_&&(B={},B.__data__=(0,_.ET)(f),f=B);S.JSC$17477_outgoingMaps_.push(new YcZ(S.JSC$17477_nextMapId_++,f));S.state_==3&&I7$(S)};
nU.prototype.disposeInternal=function(){this.JSC$17486_channel_.handler_=null;delete this.channelHandler_;this.JSC$17486_channel_.disconnect();delete this.JSC$17486_channel_;nU.superClass_.disposeInternal.call(this)};
var Wnu=function(f){NHo.call(this);f.__headers__&&(this.headers=f.__headers__,this.statusCode=f.__status__,delete f.__headers__,delete f.__status__);var S=f.__sm__;S?this.data=(this.metadataKey=_.$v.getAnyKey(S))?_.$v.get(S,this.metadataKey):S:this.data=f};
_.Rm(Wnu,NHo);var c_O=function(f){MzX.call(this);this.status=1;this.errorCode=f};
_.Rm(c_O,MzX);var kS=function(f){this.JSC$17493_channel_=f};
_.Rm(kS,a7Y);kS.prototype.JSC$17483_channelOpened=function(){this.JSC$17493_channel_.dispatchEvent("w")};
kS.prototype.JSC$17483_channelHandleArray=function(f){this.JSC$17493_channel_.dispatchEvent(new Wnu(f))};
kS.prototype.JSC$17483_channelError=function(f){this.JSC$17493_channel_.dispatchEvent(new c_O(f))};
kS.prototype.JSC$17483_channelClosed=function(){this.JSC$17493_channel_.dispatchEvent("x")};
var l7e=function(f,S){this.transportChannel_=f;this.JSC$17496_channel_=S},f9X=function(f){return un2(f.JSC$17496_channel_).map(function(S){var B=f.transportChannel_;
S=S.map;"__data__"in S?(S=S.__data__,B=B.sendRawJson_?(0,_.VZ1)(S):S):B=S;return B})};var sD=function(f){oRY.dispatchEvent(new SeZ(oRY,f))},oRY=new _.$o,SeZ=function(f){_.K8.call(this,"statevent",f)};
_.q(SeZ,_.K8);var DO=function(f,S,B,G,g){this.JSC$17501_channel_=f;this.JSC$17501_channelDebug_=S;this.sid_=B;this.JSC$17501_rid_=G;this.JSC$17501_retryId_=g||1;this.timeout_=45E3;this.JSC$17501_eventHandler_=new _.BZ(this);this.pollingTimer_=new _.Se;this.pollingTimer_.setInterval(250)};
_.e=DO.prototype;_.e.JSC$17503_extraHeaders_=null;_.e.JSC$17503_successful_=!1;_.e.JSC$17503_watchDogTimerId_=null;_.e.JSC$17503_watchDogTimeoutTime_=null;_.e.JSC$17503_requestStartTime_=null;_.e.JSC$17503_type_=null;_.e.JSC$17503_baseUri_=null;_.e.JSC$17503_requestUri_=null;_.e.JSC$17503_postData_=null;_.e.JSC$17503_xmlHttp_=null;_.e.JSC$17503_xmlHttpChunkStart_=0;_.e.trident_=null;_.e.JSC$17503_verb_=null;_.e.JSC$17503_lastError_=null;_.e.JSC$17503_lastStatusCode_=-1;_.e.sendClose_=!0;
_.e.JSC$17503_cancelled_=!1;_.e.JSC$17503_readyStateChangeThrottleMs_=0;_.e.JSC$17503_readyStateChangeThrottle_=null;var B1$=function(f,S){switch(f){case 0:return"Non-200 return code ("+S+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},Gw2={},gRn={};
DO.prototype.setTimeout=function(f){this.timeout_=f};
var bsY=function(f,S,B){f.JSC$17503_type_=1;f.JSC$17503_baseUri_=_.XH(S.clone());f.JSC$17503_postData_=B;f.decodeChunks_=!0;ezu(f,null)},mIn=function(f,S,B,G,g){f.JSC$17503_type_=1;
f.JSC$17503_baseUri_=_.XH(S.clone());f.JSC$17503_postData_=null;f.decodeChunks_=B;g&&(f.sendClose_=!1);ezu(f,G)},ezu=function(f,S){f.JSC$17503_requestStartTime_=Date.now();
zzX(f);f.JSC$17503_requestUri_=f.JSC$17503_baseUri_.clone();mV(f.JSC$17503_requestUri_,"t",f.JSC$17501_retryId_);f.JSC$17503_xmlHttpChunkStart_=0;f.JSC$17503_xmlHttp_=f.JSC$17501_channel_.JSC$17510_createXhrIo(f.JSC$17501_channel_.JSC$17510_shouldUseSecondaryDomains()?S:null);f.JSC$17503_readyStateChangeThrottleMs_>0&&(f.JSC$17503_readyStateChangeThrottle_=new _.S3((0,_.$A)(f.JSC$17503_xmlHttpHandler_,f,f.JSC$17503_xmlHttp_),f.JSC$17503_readyStateChangeThrottleMs_));f.JSC$17501_eventHandler_.listen(f.JSC$17503_xmlHttp_,
"readystatechange",f.JSC$17503_readyStateChangeHandler_);S=f.JSC$17503_extraHeaders_?_.$v.clone(f.JSC$17503_extraHeaders_):{};f.JSC$17503_postData_?(f.JSC$17503_verb_="POST",S["Content-Type"]="application/x-www-form-urlencoded",f.JSC$17503_xmlHttp_.send(f.JSC$17503_requestUri_,f.JSC$17503_verb_,f.JSC$17503_postData_,S)):(f.JSC$17503_verb_="GET",f.sendClose_&&!_.V9&&(S.Connection="close"),f.JSC$17503_xmlHttp_.send(f.JSC$17503_requestUri_,f.JSC$17503_verb_,null,S));f.JSC$17501_channel_.notifyServerReachabilityEvent(1);
S=f.JSC$17501_channelDebug_;var B=f.JSC$17503_postData_;if(B){var G="";B=B.split("&");for(var g=0;g<B.length;g++){var b=B[g].split("=");if(b.length>1){var z=b[0];b=b[1];var X=z.split("_");G=X.length>=2&&X[1]=="type"?G+(z+"="+b+"&"):G+(z+"=redacted&")}}}else G=null;S.info("XMLHTTP REQ ("+f.JSC$17501_rid_+") [attempt "+f.JSC$17501_retryId_+"]: "+f.JSC$17503_verb_+"\n"+f.JSC$17503_requestUri_+"\n"+G)};
DO.prototype.JSC$17503_readyStateChangeHandler_=function(f){f=f.target;var S=this.JSC$17503_readyStateChangeThrottle_;S&&_.ko(f)==3?(this.JSC$17501_channelDebug_.debug("Throttling readystatechange."),S.fire()):this.JSC$17503_xmlHttpHandler_(f)};
DO.prototype.JSC$17503_xmlHttpHandler_=function(f){try{if(f==this.JSC$17503_xmlHttp_)a:{var S=_.ko(this.JSC$17503_xmlHttp_),B=this.JSC$17503_xmlHttp_.JSC$7841_lastErrorCode_,G=this.JSC$17503_xmlHttp_.getStatus();if(_.V9&&!_.J$("420+")){if(S<4)break a}else if(S<3||S==3&&!this.JSC$17503_xmlHttp_.getResponseText())break a;this.JSC$17503_cancelled_||S!=4||B==7||(B==8||G<=0?this.JSC$17501_channel_.notifyServerReachabilityEvent(3):this.JSC$17501_channel_.notifyServerReachabilityEvent(2));Rzu(this);var g=
this.JSC$17503_xmlHttp_.getStatus();this.JSC$17503_lastStatusCode_=g;var b=this.JSC$17503_xmlHttp_.getResponseText();b||this.JSC$17501_channelDebug_.debug("No response text for uri "+this.JSC$17503_requestUri_+" status "+g);this.JSC$17503_successful_=g==200;this.JSC$17501_channelDebug_.info("XMLHTTP RESP ("+this.JSC$17501_rid_+") [ attempt "+this.JSC$17501_retryId_+"]: "+this.JSC$17503_verb_+"\n"+this.JSC$17503_requestUri_+"\n"+S+" "+g);if(this.JSC$17503_successful_){S==4&&IZ(this);if(this.decodeChunks_){for(f=
!0;!this.JSC$17503_cancelled_&&this.JSC$17503_xmlHttpChunkStart_<b.length;){var z=XG2(this,b);if(z==gRn){S==4&&(this.JSC$17503_lastError_=4,sD(15),f=!1);UD(this.JSC$17501_channelDebug_,this.JSC$17501_rid_,null,"[Incomplete Response]");break}else if(z==Gw2){this.JSC$17503_lastError_=4;sD(16);UD(this.JSC$17501_channelDebug_,this.JSC$17501_rid_,b,"[Invalid Chunk]");f=!1;break}else UD(this.JSC$17501_channelDebug_,this.JSC$17501_rid_,z,null),wGZ(this,z)}S==4&&b.length==0&&(this.JSC$17503_lastError_=1,
sD(17),f=!1);this.JSC$17503_successful_=this.JSC$17503_successful_&&f;f||(UD(this.JSC$17501_channelDebug_,this.JSC$17501_rid_,b,"[Invalid Chunked Response]"),IZ(this),hzM(this))}else UD(this.JSC$17501_channelDebug_,this.JSC$17501_rid_,b,null),wGZ(this,b);this.JSC$17503_successful_&&!this.JSC$17503_cancelled_&&(S==4?this.JSC$17501_channel_.JSC$17510_onRequestComplete(this):(this.JSC$17503_successful_=!1,zzX(this)))}else g==400&&b.indexOf("Unknown SID")>0?(this.JSC$17503_lastError_=3,sD(13),this.JSC$17501_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$17501_rid_+")")):(this.JSC$17503_lastError_=0,sD(14),this.JSC$17501_channelDebug_.warning("XMLHTTP Bad status "+g+" ("+this.JSC$17501_rid_+")")),IZ(this),hzM(this)}else this.JSC$17501_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(X){this.JSC$17501_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var XG2=function(f,S){var B=f.JSC$17503_xmlHttpChunkStart_,G=S.indexOf("\n",B);if(G==-1)return gRn;B=Number(S.substring(B,G));if(isNaN(B))return Gw2;G+=1;if(G+B>S.length)return gRn;S=S.slice(G,G+B);f.JSC$17503_xmlHttpChunkStart_=G+B;return S};
DO.prototype.cancel=function(){this.JSC$17503_cancelled_=!0;IZ(this)};
var zzX=function(f){f.JSC$17503_watchDogTimeoutTime_=Date.now()+f.timeout_;T1O(f,f.timeout_)},T1O=function(f,S){if(f.JSC$17503_watchDogTimerId_!=null)throw Error("xk");
f.JSC$17503_watchDogTimerId_=Yx((0,_.$A)(f.JSC$17503_onWatchDogTimeout_,f),S)},Rzu=function(f){f.JSC$17503_watchDogTimerId_&&(_.S1.clearTimeout(f.JSC$17503_watchDogTimerId_),f.JSC$17503_watchDogTimerId_=null)};
DO.prototype.JSC$17503_onWatchDogTimeout_=function(){this.JSC$17503_watchDogTimerId_=null;var f=Date.now();f-this.JSC$17503_watchDogTimeoutTime_>=0?(this.JSC$17501_channelDebug_.info("TIMEOUT: "+this.JSC$17503_requestUri_),this.JSC$17503_type_!=2&&this.JSC$17501_channel_.notifyServerReachabilityEvent(3),IZ(this),this.JSC$17503_lastError_=2,sD(18),hzM(this)):(this.JSC$17501_channelDebug_.warning("WatchDog timer called too early"),T1O(this,this.JSC$17503_watchDogTimeoutTime_-f))};
var hzM=function(f){f.JSC$17501_channel_.JSC$17510_isClosed()||f.JSC$17503_cancelled_||f.JSC$17501_channel_.JSC$17510_onRequestComplete(f)},IZ=function(f){Rzu(f);
_.cd(f.JSC$17503_readyStateChangeThrottle_);f.JSC$17503_readyStateChangeThrottle_=null;f.pollingTimer_.stop();f.JSC$17501_eventHandler_.removeAll();if(f.JSC$17503_xmlHttp_){var S=f.JSC$17503_xmlHttp_;f.JSC$17503_xmlHttp_=null;S.abort();S.dispose()}f.trident_&&(f.trident_=null)};
DO.prototype.getLastError=function(){return this.JSC$17503_lastError_};
var wGZ=function(f,S){try{f.JSC$17501_channel_.JSC$17510_onRequestData(f,S),f.JSC$17501_channel_.notifyServerReachabilityEvent(4)}catch(B){}};var UD=function(f,S,B,G){var g=f.info;a:if(B&&B!="y2f%"){try{var b=JSON.parse(B);if(b)for(var z=0;z<b.length;z++)if(Array.isArray(b[z])){var X=b[z];if(!(X.length<2)){var w=X[1];if(Array.isArray(w)&&!(w.length<1)){var F=w[0];if(F!="noop"&&F!="stop")for(var V=1;V<w.length;V++)w[V]=""}}}var J=(0,_.ET)(b);break a}catch(P){f.debug("Exception parsing expected JS array - probably was not JS");J=B;break a}J=void 0}else J=B;g.call(f,"XMLHTTP TEXT ("+S+"): "+J+(G?" "+G:""))};
ry.prototype.debug=function(f){this.info(f)};
ry.prototype.info=function(){};
ry.prototype.warning=function(){};var Fw2=function(f,S){this.JSC$17508_channel_=f;this.JSC$17508_channelDebug_=S;this.JSC$17508_parser_=new KU};
_.e=Fw2.prototype;_.e.JSC$17510_extraHeaders_=null;_.e.JSC$17510_request_=null;_.e.receivedIntermediateResult_=!1;_.e.JSC$17510_path_=null;_.e.state_=null;_.e.JSC$17510_lastStatusCode_=-1;_.e.JSC$17510_hostPrefix_=null;_.e.blockedPrefix_=null;
_.e.connect=function(f){this.JSC$17510_path_=f;f=Vbu(this.JSC$17508_channel_,this.JSC$17510_path_);sD(3);Date.now();var S=this.JSC$17508_channel_.firstTestResults_;S!=null?(this.JSC$17510_hostPrefix_=S[0],(this.blockedPrefix_=S[1])?(this.state_=1,JoZ(this)):(this.state_=2,P8u(this))):(mV(f,"MODE","init"),this.JSC$17510_request_=new DO(this,this.JSC$17508_channelDebug_),this.JSC$17510_request_.JSC$17503_extraHeaders_=this.JSC$17510_extraHeaders_,mIn(this.JSC$17510_request_,f,!1,null,!0),this.state_=
0)};
var JoZ=function(f){var S=vRu(f.JSC$17508_channel_,f.blockedPrefix_,"/mail/images/cleardot.gif");_.XH(S);tuZ(S.toString(),5E3,(0,_.$A)(f.checkBlockedCallback_,f),3,2E3);f.notifyServerReachabilityEvent(1)};
Fw2.prototype.checkBlockedCallback_=function(f){if(f)this.state_=2,P8u(this);else{sD(4);var S=this.JSC$17508_channel_;S.JSC$17511_channelDebug_.debug("Test Connection Blocked");S.JSC$17515_lastStatusCode_=S.connectionTest_.JSC$17510_lastStatusCode_;CU(S,9)}f&&this.notifyServerReachabilityEvent(2)};
var P8u=function(f){f.JSC$17508_channelDebug_.debug("TestConnection: starting stage 2");var S=f.JSC$17508_channel_.secondTestResults_;S!=null?(f.JSC$17508_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+S?"Buffered":"Unbuffered"),sD(5),S?(sD(11),pU(f.JSC$17508_channel_,f,!1)):(sD(12),pU(f.JSC$17508_channel_,f,!0))):(f.JSC$17510_request_=new DO(f,f.JSC$17508_channelDebug_),f.JSC$17510_request_.JSC$17503_extraHeaders_=f.JSC$17510_extraHeaders_,S=Kwu(f.JSC$17508_channel_,
f.JSC$17510_hostPrefix_,f.JSC$17510_path_),sD(5),mV(S,"TYPE","xmlhttp"),mIn(f.JSC$17510_request_,S,!1,f.JSC$17510_hostPrefix_,!1))};
_.e=Fw2.prototype;_.e.JSC$17510_createXhrIo=function(f){return this.JSC$17508_channel_.JSC$17510_createXhrIo(f)};
_.e.abort=function(){this.JSC$17510_request_&&(this.JSC$17510_request_.cancel(),this.JSC$17510_request_=null);this.JSC$17510_lastStatusCode_=-1};
_.e.JSC$17510_isClosed=function(){return!1};
_.e.JSC$17510_onRequestData=function(f,S){this.JSC$17510_lastStatusCode_=f.JSC$17503_lastStatusCode_;if(this.state_==0)if(this.JSC$17508_channelDebug_.debug("TestConnection: Got data for stage 1"),S){try{var B=this.JSC$17508_parser_.parse(S)}catch(G){dIz(this.JSC$17508_channel_,this);return}this.JSC$17510_hostPrefix_=B[0];this.blockedPrefix_=B[1]}else this.JSC$17508_channelDebug_.debug("TestConnection: Null responseText"),dIz(this.JSC$17508_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(sD(7),Date.now()):S=="11111"?(sD(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$17510_lastStatusCode_=200,this.JSC$17510_request_.cancel(),this.JSC$17508_channelDebug_.debug("Test connection succeeded; using streaming connection"),sD(12),pU(this.JSC$17508_channel_,this,!0)):(sD(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.e.JSC$17510_onRequestComplete=function(){this.JSC$17510_lastStatusCode_=this.JSC$17510_request_.JSC$17503_lastStatusCode_;this.JSC$17510_request_.JSC$17503_successful_?this.state_==0?(this.JSC$17508_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,JoZ(this)):(this.state_=2,P8u(this))):this.state_==2&&(this.JSC$17508_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$17508_channelDebug_.debug("Test connection succeeded; using streaming connection"),
sD(12),pU(this.JSC$17508_channel_,this,!0)):(this.JSC$17508_channelDebug_.debug("Test connection failed; not using streaming"),sD(11),pU(this.JSC$17508_channel_,this,!1))):(this.JSC$17508_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?sD(9):this.state_==2&&sD(10),dIz(this.JSC$17508_channel_,this,this.JSC$17510_request_.getLastError()))};
_.e.JSC$17510_shouldUseSecondaryDomains=function(){return this.JSC$17508_channel_.JSC$17510_shouldUseSecondaryDomains()};
_.e.isActive=function(){return this.JSC$17508_channel_.isActive()};
_.e.notifyServerReachabilityEvent=function(f){this.JSC$17508_channel_.notifyServerReachabilityEvent(f)};var Az=function(f,S,B){this.state_=1;this.JSC$17511_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$17511_channelDebug_=new ry;this.JSC$17511_parser_=new KU;this.firstTestResults_=f||null;this.secondTestResults_=S!=null?S:null;this.asyncTest_=B||!1},isO=function(f,S){this.JSC$17513_mapId=f;
this.map=S;this.context=null};
_.e=Az.prototype;_.e.JSC$17515_extraHeaders_=null;_.e.JSC$17515_extraParams_=null;_.e.forwardChannelRequest_=null;_.e.JSC$17515_backChannelRequest_=null;_.e.JSC$17515_path_=null;_.e.JSC$17515_forwardChannelUri_=null;_.e.JSC$17515_backChannelUri_=null;_.e.JSC$17515_hostPrefix_=null;_.e.JSC$17515_nextRid_=0;_.e.JSC$17515_nextMapId_=0;_.e.handler_=null;_.e.JSC$17515_forwardChannelTimerId_=null;_.e.JSC$17515_backChannelTimerId_=null;_.e.JSC$17515_deadBackChannelTimerId_=null;_.e.connectionTest_=null;
_.e.useChunked_=null;_.e.JSC$17515_lastArrayId_=-1;_.e.JSC$17515_lastPostResponseArrayId_=-1;_.e.JSC$17515_lastStatusCode_=-1;_.e.JSC$17515_forwardChannelRetryCount_=0;_.e.JSC$17515_backChannelRetryCount_=0;_.e.JSC$17515_channelVersion_=8;var Hsu={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},qe2=function(f,S,B,G){_.K8.call(this,"timingevent",f);this.size=S;this.rtt=B;this.retries=G};
_.Rm(qe2,_.K8);var $IB=function(f){_.K8.call(this,"serverreachability",f)};
_.Rm($IB,_.K8);Az.prototype.connect=function(f,S,B,G,g){this.JSC$17511_channelDebug_.debug("connect()");sD(0);this.JSC$17515_path_=S;this.JSC$17515_extraParams_=B||{};G&&g!==void 0&&(this.JSC$17515_extraParams_.OSID=G,this.JSC$17515_extraParams_.OAID=g);this.asyncTest_?(Yx((0,_.$A)(this.connectTest_,this,f),100),QHu(this)):this.connectTest_(f)};
Az.prototype.disconnect=function(){this.JSC$17511_channelDebug_.debug("disconnect()");YeX(this);if(this.state_==3){var f=this.JSC$17515_nextRid_++,S=this.JSC$17515_forwardChannelUri_.clone();_.ZL(S,"SID",this.sid_);_.ZL(S,"RID",f);_.ZL(S,"TYPE","terminate");NZ(this,S);f=new DO(this,this.JSC$17511_channelDebug_,this.sid_,f);f.JSC$17503_type_=2;f.JSC$17503_baseUri_=_.XH(S.clone());(new Image).src=f.JSC$17503_baseUri_.toString();f.JSC$17503_requestStartTime_=Date.now();zzX(f)}roe(this)};
Az.prototype.connectTest_=function(f){this.JSC$17511_channelDebug_.debug("connectTest_()");this.connectionTest_=new Fw2(this,this.JSC$17511_channelDebug_);this.connectionTest_.JSC$17510_extraHeaders_=this.JSC$17515_extraHeaders_;this.connectionTest_.JSC$17508_parser_=this.JSC$17511_parser_;this.connectionTest_.connect(f)};
var QHu=function(f){f.JSC$17511_channelDebug_.debug("connectChannel_()");f.JSC$17515_ensureInState_(1,0);f.JSC$17515_forwardChannelUri_=Vbu(f,f.JSC$17515_path_);jHX(f)},YeX=function(f){f.connectionTest_&&(f.connectionTest_.abort(),f.connectionTest_=null);
f.JSC$17515_backChannelRequest_&&(f.JSC$17515_backChannelRequest_.cancel(),f.JSC$17515_backChannelRequest_=null);f.JSC$17515_backChannelTimerId_&&(_.S1.clearTimeout(f.JSC$17515_backChannelTimerId_),f.JSC$17515_backChannelTimerId_=null);OsX(f);f.forwardChannelRequest_&&(f.forwardChannelRequest_.cancel(),f.forwardChannelRequest_=null);f.JSC$17515_forwardChannelTimerId_&&(_.S1.clearTimeout(f.JSC$17515_forwardChannelTimerId_),f.JSC$17515_forwardChannelTimerId_=null)},xIO=function(f,S){if(f.state_==0)throw Error("Ak");
f.JSC$17511_outgoingMaps_.length==1E3&&f.JSC$17511_parser_.stringify(S);f.JSC$17511_outgoingMaps_.push(new isO(f.JSC$17515_nextMapId_++,S));f.state_!=2&&f.state_!=3||jHX(f)};
Az.prototype.JSC$17510_isClosed=function(){return this.state_==0};
Az.prototype.getState=function(){return this.state_};
var jHX=function(f){f.forwardChannelRequest_||f.JSC$17515_forwardChannelTimerId_||(f.JSC$17515_forwardChannelTimerId_=Yx((0,_.$A)(f.JSC$17515_onStartForwardChannelTimer_,f),0),f.JSC$17515_forwardChannelRetryCount_=0)};
Az.prototype.JSC$17515_onStartForwardChannelTimer_=function(f){this.JSC$17515_forwardChannelTimerId_=null;ERu(this,f)};
var ERu=function(f,S){f.JSC$17511_channelDebug_.debug("startForwardChannel_");if(f.state_==1){if(!S){f.JSC$17511_channelDebug_.debug("open_()");f.JSC$17515_nextRid_=Math.floor(Math.random()*1E5);S=f.JSC$17515_nextRid_++;var B=new DO(f,f.JSC$17511_channelDebug_,"",S);B.JSC$17503_extraHeaders_=f.JSC$17515_extraHeaders_;var G=LwO(f),g=f.JSC$17515_forwardChannelUri_.clone();_.ZL(g,"RID",S);_.ZL(g,"CVER","1");NZ(f,g);bsY(B,g,G);f.forwardChannelRequest_=B;f.state_=2}}else f.state_==3&&(S?kwu(f,S):f.JSC$17511_outgoingMaps_.length==
0?f.JSC$17511_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):f.forwardChannelRequest_||(kwu(f),f.JSC$17511_channelDebug_.debug("startForwardChannel_ finished, sent request")))},kwu=function(f,S){if(S)if(f.JSC$17515_channelVersion_>6){f.JSC$17511_outgoingMaps_=f.pendingMaps_.concat(f.JSC$17511_outgoingMaps_);
f.pendingMaps_.length=0;var B=f.JSC$17515_nextRid_-1;S=LwO(f)}else B=S.JSC$17501_rid_,S=S.JSC$17503_postData_;else B=f.JSC$17515_nextRid_++,S=LwO(f);var G=f.JSC$17515_forwardChannelUri_.clone();_.ZL(G,"SID",f.sid_);_.ZL(G,"RID",B);_.ZL(G,"AID",f.JSC$17515_lastArrayId_);NZ(f,G);B=new DO(f,f.JSC$17511_channelDebug_,f.sid_,B,f.JSC$17515_forwardChannelRetryCount_+1);B.JSC$17503_extraHeaders_=f.JSC$17515_extraHeaders_;B.setTimeout(1E4+Math.round(1E4*Math.random()));f.forwardChannelRequest_=B;bsY(B,G,S)},
NZ=function(f,S){f.handler_&&(f=f.handler_.JSC$17522_getAdditionalParams())&&_.$v.forEach(f,function(B,G){_.ZL(S,G,B)})},LwO=function(f){var S=Math.min(f.JSC$17511_outgoingMaps_.length,1E3),B=["count="+S];
if(f.JSC$17515_channelVersion_>6&&S>0){var G=f.JSC$17511_outgoingMaps_[0].JSC$17513_mapId;B.push("ofs="+G)}else G=0;for(var g={},b=0;b<S;g={mapId$jscomp$3:void 0},b++){g.mapId$jscomp$3=f.JSC$17511_outgoingMaps_[b].JSC$17513_mapId;var z=f.JSC$17511_outgoingMaps_[b].map;g.mapId$jscomp$3=f.JSC$17515_channelVersion_<=6?b:g.mapId$jscomp$3-G;try{_.$v.forEach(z,function(X){return function(w,F){B.push("req"+X.mapId$jscomp$3+"_"+F+"="+encodeURIComponent(w))}}(g))}catch(X){B.push("req"+g.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}f.pendingMaps_=f.pendingMaps_.concat(f.JSC$17511_outgoingMaps_.splice(0,S));
return B.join("&")},nRY=function(f){f.JSC$17515_backChannelRequest_||f.JSC$17515_backChannelTimerId_||(f.JSC$17515_backChannelAttemptId_=1,f.JSC$17515_backChannelTimerId_=Yx((0,_.$A)(f.JSC$17515_onStartBackChannelTimer_,f),0),f.JSC$17515_backChannelRetryCount_=0)},DIZ=function(f){if(f.JSC$17515_backChannelRequest_||f.JSC$17515_backChannelTimerId_||f.JSC$17515_backChannelRetryCount_>=3)return!1;
f.JSC$17511_channelDebug_.debug("Going to retry GET");f.JSC$17515_backChannelAttemptId_++;f.JSC$17515_backChannelTimerId_=Yx((0,_.$A)(f.JSC$17515_onStartBackChannelTimer_,f),sHu(f,f.JSC$17515_backChannelRetryCount_));f.JSC$17515_backChannelRetryCount_++;return!0};
Az.prototype.JSC$17515_onStartBackChannelTimer_=function(){this.JSC$17515_backChannelTimerId_=null;this.JSC$17511_channelDebug_.debug("Creating new HttpRequest");this.JSC$17515_backChannelRequest_=new DO(this,this.JSC$17511_channelDebug_,this.sid_,"rpc",this.JSC$17515_backChannelAttemptId_);this.JSC$17515_backChannelRequest_.JSC$17503_extraHeaders_=this.JSC$17515_extraHeaders_;this.JSC$17515_backChannelRequest_.JSC$17503_readyStateChangeThrottleMs_=0;var f=this.JSC$17515_backChannelUri_.clone();_.ZL(f,
"RID","rpc");_.ZL(f,"SID",this.sid_);_.ZL(f,"CI",this.useChunked_?"0":"1");_.ZL(f,"AID",this.JSC$17515_lastArrayId_);NZ(this,f);_.ZL(f,"TYPE","xmlhttp");mIn(this.JSC$17515_backChannelRequest_,f,!0,this.JSC$17515_hostPrefix_,!1);this.JSC$17511_channelDebug_.debug("New Request created")};
var pU=function(f,S,B){f.JSC$17511_channelDebug_.debug("Test Connection Finished");f.useChunked_=f.secondTestResults_==null?B:!f.secondTestResults_;f.JSC$17515_lastStatusCode_=S.JSC$17510_lastStatusCode_;f.asyncTest_||QHu(f)},dIz=function(f,S){f.JSC$17511_channelDebug_.debug("Test Connection Failed");
f.JSC$17515_lastStatusCode_=S.JSC$17510_lastStatusCode_;CU(f,2)};
Az.prototype.JSC$17510_onRequestData=function(f,S){if(this.state_!=0&&(this.JSC$17515_backChannelRequest_==f||this.forwardChannelRequest_==f))if(this.JSC$17515_lastStatusCode_=f.JSC$17503_lastStatusCode_,this.forwardChannelRequest_==f&&this.state_==3)if(this.JSC$17515_channelVersion_>7){try{var B=this.JSC$17511_parser_.parse(S)}catch(G){B=null}if(Array.isArray(B)&&B.length==3)if(S=B,S[0]==0)a:if(this.JSC$17511_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$17515_backChannelTimerId_)this.JSC$17511_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$17515_backChannelRequest_)if(this.JSC$17515_backChannelRequest_.JSC$17503_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$17503_requestStartTime_)OsX(this),this.JSC$17515_backChannelRequest_.cancel(),this.JSC$17515_backChannelRequest_=null;else break a;else this.JSC$17511_channelDebug_.warning("We do not have a BackChannel established");DIZ(this);sD(19)}else this.JSC$17515_lastPostResponseArrayId_=S[1],f=this.JSC$17515_lastPostResponseArrayId_-this.JSC$17515_lastArrayId_,0<
f&&(S=S[2],this.JSC$17511_channelDebug_.debug(S+" bytes (in "+f+" arrays) are outstanding on the BackChannel"),S<37500&&this.useChunked_&&this.JSC$17515_backChannelRetryCount_==0&&!this.JSC$17515_deadBackChannelTimerId_&&(this.JSC$17515_deadBackChannelTimerId_=Yx((0,_.$A)(this.JSC$17515_onBackChannelDead_,this),6E3)));else this.JSC$17511_channelDebug_.debug("Bad POST response data returned"),CU(this,11)}else S!="y2f%"&&(this.JSC$17511_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
CU(this,11));else this.JSC$17515_backChannelRequest_==f&&OsX(this),_.bK(S)||(f=this.JSC$17511_parser_.parse(S),this.onInput_(f))};
Az.prototype.JSC$17515_onBackChannelDead_=function(){this.JSC$17515_deadBackChannelTimerId_!=null&&(this.JSC$17515_deadBackChannelTimerId_=null,this.JSC$17515_backChannelRequest_.cancel(),this.JSC$17515_backChannelRequest_=null,DIZ(this),sD(20))};
var OsX=function(f){f.JSC$17515_deadBackChannelTimerId_!=null&&(_.S1.clearTimeout(f.JSC$17515_deadBackChannelTimerId_),f.JSC$17515_deadBackChannelTimerId_=null)};
Az.prototype.JSC$17510_onRequestComplete=function(f){this.JSC$17511_channelDebug_.debug("Request complete");if(this.JSC$17515_backChannelRequest_==f){OsX(this);this.JSC$17515_backChannelRequest_=null;var S=2}else if(this.forwardChannelRequest_==f)this.forwardChannelRequest_=null,S=1;else return;this.JSC$17515_lastStatusCode_=f.JSC$17503_lastStatusCode_;if(this.state_!=0)if(f.JSC$17503_successful_)if(S==1){S=f.JSC$17503_postData_?f.JSC$17503_postData_.length:0;f=Date.now()-f.JSC$17503_requestStartTime_;
var B=oRY;B.dispatchEvent(new qe2(B,S,f,this.JSC$17515_forwardChannelRetryCount_));jHX(this);this.handler_&&this.handler_.JSC$17522_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else nRY(this);else{B=f.getLastError();if(B==3||B==7||B==0&&this.JSC$17515_lastStatusCode_>0)this.JSC$17511_channelDebug_.debug("Not retrying due to error type");else{this.JSC$17511_channelDebug_.debug("Maybe retrying, last error: "+B1$(B,this.JSC$17515_lastStatusCode_));var G;if(G=S==1)this.forwardChannelRequest_||
this.JSC$17515_forwardChannelTimerId_||this.state_==1||this.JSC$17515_forwardChannelRetryCount_>=2?G=!1:(this.JSC$17511_channelDebug_.debug("Going to retry POST"),this.JSC$17515_forwardChannelTimerId_=Yx((0,_.$A)(this.JSC$17515_onStartForwardChannelTimer_,this,f),sHu(this,this.JSC$17515_forwardChannelRetryCount_)),this.JSC$17515_forwardChannelRetryCount_++,G=!0);if(G||S==2&&DIZ(this))return;this.JSC$17511_channelDebug_.debug("Exceeded max number of retries")}this.JSC$17511_channelDebug_.debug("Error: HTTP request failed");
switch(B){case 1:CU(this,5);break;case 4:CU(this,10);break;case 3:CU(this,6);break;case 7:CU(this,12);break;default:CU(this,2)}}};
var sHu=function(f,S){var B=5E3+Math.floor(Math.random()*1E4);f.isActive()||(f.JSC$17511_channelDebug_.debug("Inactive channel"),B*=2);return B*S};
Az.prototype.onInput_=function(f){for(var S=0;S<f.length;S++){var B=f[S];this.JSC$17515_lastArrayId_=B[0];B=B[1];this.state_==2?B[0]=="c"?(this.sid_=B[1],this.JSC$17515_hostPrefix_=B[2],B=B[3],B!=null?this.JSC$17515_channelVersion_=B:this.JSC$17515_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$17522_channelOpened(),this.JSC$17515_backChannelUri_=Kwu(this,this.JSC$17515_hostPrefix_,this.JSC$17515_path_),nRY(this)):B[0]=="stop"&&CU(this,7):this.state_==3&&(B[0]=="stop"?CU(this,7):
B[0]!="noop"&&this.handler_&&this.handler_.JSC$17522_channelHandleArray(B),this.JSC$17515_backChannelRetryCount_=0)}};
Az.prototype.JSC$17515_ensureInState_=function(f){if(!_.As(arguments,this.state_))throw Error("Bk`"+this.state_);};
var CU=function(f,S){f.JSC$17511_channelDebug_.info("Error code "+S);if(S==2||S==9){var B=null;f.handler_&&(B=null);var G=(0,_.$A)(f.testGoogleComCallback_,f);B||(B=new _.uT("//www.google.com/images/cleardot.gif"),_.XH(B));Z_o(B.toString(),1E4,G)}else sD(2);f.onError_(S)};
Az.prototype.testGoogleComCallback_=function(f){f?(this.JSC$17511_channelDebug_.info("Successfully pinged google.com"),sD(2)):(this.JSC$17511_channelDebug_.info("Failed to ping google.com"),sD(1),this.onError_(8))};
Az.prototype.onError_=function(f){this.JSC$17511_channelDebug_.debug("HttpChannel: error - "+f);this.state_=0;this.handler_&&this.handler_.JSC$17522_channelError(f);roe(this);YeX(this)};
var roe=function(f){f.state_=0;f.JSC$17515_lastStatusCode_=-1;if(f.handler_)if(f.pendingMaps_.length==0&&f.JSC$17511_outgoingMaps_.length==0)f.handler_.JSC$17522_channelClosed();else{f.JSC$17511_channelDebug_.debug("Number of undelivered maps, pending: "+f.pendingMaps_.length+", outgoing: "+f.JSC$17511_outgoingMaps_.length);var S=_.aT(f.pendingMaps_),B=_.aT(f.JSC$17511_outgoingMaps_);f.pendingMaps_.length=0;f.JSC$17511_outgoingMaps_.length=0;f.handler_.JSC$17522_channelClosed(S,B)}},Vbu=function(f,
S){S=vRu(f,null,S);
f.JSC$17511_channelDebug_.debug("GetForwardChannelUri: "+S);return S},Kwu=function(f,S,B){S=vRu(f,f.JSC$17510_shouldUseSecondaryDomains()?S:null,B);
f.JSC$17511_channelDebug_.debug("GetBackChannelUri: "+S);return S},vRu=function(f,S,B){var G=_.NR(B);
if(G.JSC$8076_domain_!="")S&&_.Bz(G,S+"."+G.JSC$8076_domain_),_.Ga(G,G.JSC$8076_port_);else{var g=window.location;G=b9$(g.protocol,S?S+"."+g.hostname:g.hostname,+g.port,B)}f.JSC$17515_extraParams_&&_.$v.forEach(f.JSC$17515_extraParams_,function(b,z){_.ZL(G,z,b)});
_.ZL(G,"VER",f.JSC$17515_channelVersion_);NZ(f,G);return G};
Az.prototype.JSC$17510_createXhrIo=function(f){if(f)throw Error("yk");f=new _.L8;f.JSC$7841_withCredentials_=!1;return f};
Az.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
Az.prototype.notifyServerReachabilityEvent=function(f){var S=oRY;S.dispatchEvent(new $IB(S,f))};
Az.prototype.JSC$17510_shouldUseSecondaryDomains=function(){return!1};
new hdZ;var I9$=function(){};
_.e=I9$.prototype;_.e.JSC$17522_channelOpened=function(){};
_.e.JSC$17522_channelHandleArray=function(){};
_.e.JSC$17522_channelSuccess=function(){};
_.e.JSC$17522_channelError=function(){};
_.e.JSC$17522_channelClosed=function(){};
_.e.JSC$17522_getAdditionalParams=function(){return{}};
_.e.isActive=function(){return!0};var UIO=function(f){f.front_.length===0&&(f.front_=f.back_,f.front_.reverse(),f.back_=[])};
_.e=aco.prototype;_.e.enqueue=function(f){this.back_.push(f)};
_.e.peek=function(){UIO(this);return _.sV(this.front_)};
_.e.getCount=function(){return this.front_.length+this.back_.length};
_.e.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.e.clear=function(){this.front_=[];this.back_=[]};
_.e.contains=function(f){return _.As(this.front_,f)||_.As(this.back_,f)};
_.e.remove=function(f){var S=this.front_;var B=Array.prototype.lastIndexOf.call(S,f,S.length-1);B>=0?(_.ts(S,B),S=!0):S=!1;return S||_.uK(this.back_,f)};
_.e.getValues=function(){for(var f=[],S=this.front_.length-1;S>=0;--S)f.push(this.front_[S]);S=this.back_.length;for(var B=0;B<S;++B)f.push(this.back_[B]);return f};var MZ=function(f){this.JSC$17526_map_=new _.XY;this.size=0;f&&this.addAll(f)},C8n=function(f){var S=typeof f;
return S=="object"&&f||S=="function"?"o"+_.Sm(f):S.charAt(0)+f};
_.e=MZ.prototype;_.e.getCount=function(){return this.JSC$17526_map_.size};
_.e.add=function(f){this.JSC$17526_map_.set(C8n(f),f);this.size=this.JSC$17526_map_.size};
_.e.addAll=function(f){f=_.oI(f);for(var S=f.length,B=0;B<S;B++)this.add(f[B]);this.size=this.JSC$17526_map_.size};
_.e.removeAll=function(f){f=_.oI(f);for(var S=f.length,B=0;B<S;B++)this.remove(f[B]);this.size=this.JSC$17526_map_.size};
_.e.delete=function(f){f=this.JSC$17526_map_.remove(C8n(f));this.size=this.JSC$17526_map_.size;return f};
_.e.remove=function(f){return this.delete(f)};
_.e.clear=function(){this.JSC$17526_map_.clear();this.size=0};
_.e.isEmpty=function(){return this.JSC$17526_map_.size===0};
_.e.has=function(f){return this.JSC$17526_map_.containsKey(C8n(f))};
_.e.contains=function(f){return this.JSC$17526_map_.containsKey(C8n(f))};
_.e.getValues=function(){return this.JSC$17526_map_.getValues()};
_.e.values=function(){return this.JSC$17526_map_.values()};
_.e.clone=function(){return new MZ(this)};
_.e.equals=function(f){return this.getCount()==g82(f)&&pGZ(this,f)};
var pGZ=function(f,S){var B=g82(S);if(f.getCount()>B)return!1;!(S instanceof MZ)&&B>5&&(S=new MZ(S));return edu(f,function(G){var g=S;return g.contains&&typeof g.contains=="function"?g.contains(G):g.containsValue&&typeof g.containsValue=="function"?g.containsValue(G):_.W9(g)||typeof g==="string"?_.As(g,G):_.$v.containsValue(g,G)})};
MZ.prototype.__iterator__=function(){return this.JSC$17526_map_.__iterator__(!1)};
MZ.prototype[Symbol.iterator]=function(){return this.values()};var AoY={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(f){return(this._clampValue(f)-this.min)/(this.max-this.min)},
_clampValue:function(f){return Math.min(this.max,Math.max(this.min,this._calcStep(f)))},
_calcStep:function(f){f=parseFloat(f);if(!this.step)return f;f=Math.round((f-this.min)/this.step);return this.step<1?f/(1/this.step)+this.min:f*this.step+this.min},
_validateValue:function(){var f=this._clampValue(this.value);this.value=this.oldValue=isNaN(f)?this.oldValue:f;return this.value!==f},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var N1n;var Mb2;_.OW({_template:function(){if(Mb2!==void 0)return Mb2;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;N1n===void 0&&(N1n=document.createElement("template"));var G=N1n;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return Mb2=f},
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(){_.ui(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(f){f.keyCode===27&&(f.preventDefault(),this.close())},
_track:function(f){if(!this.persistent&&!this.disableSwipe)switch(f.preventDefault(),f.detail.state){case "start":this._trackStart(f);break;case "track":this._trackMove(f);break;case "end":this._trackEnd(f)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var f=this.$.contentContainer.getBoundingClientRect();this._savedWidth=f.width;this._translateOffset=this.position==="left"?f.left:f.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(f){this._trackDetails&&(this._translateDrawer(f.detail.dx+this._translateOffset),this._trackDetails.push({dx:f.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(f){if(this._trackDetails){var S=f.detail.dx+this._translateOffset,B=this.getWidth();S=this.position==="left"?S>=0||S<=-B:S<=0||S>=B;if(!S){var G=this._trackDetails;this._trackDetails=null;this._flingDrawer(f,G);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}B/=2;f.detail.dx<-B?this.opened=this.position==="right":f.detail.dx>B&&(this.opened=this.position==="left");S?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(f,S){for(var B=Date.now(),G=B-100,g,b=0,z=S.length-1;b<=z;){var X=b+z>>1,w=S[X];w.timeStamp>=G?(g=w,z=X-1):b=X+1}return g?(f.detail.dx-g.dx)/(B-g.timeStamp||1):0},
_flingDrawer:function(f,S){S=this._calculateVelocity(f,S);if(!(Math.abs(S)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;f=f.detail.dx+this._translateOffset;var B=this.getWidth(),G=this.position==="left",g=S>0;g?(S=Math.max(S,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(S=Math.min(S,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");S=this._FLING_INITIAL_SLOPE*(!g&&G?-(f+B):g&&!G?B-f:-f)/S;this._styleTransitionDuration(S);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,S)}},
_styleTransitionDuration:function(f){this.style.transitionDuration=f+"ms";this.$.contentContainer.style.transitionDuration=f+"ms";this.$.scrim.style.transitionDuration=f+"ms"},
_styleTransitionTimingFunction:function(f){this.$.contentContainer.style.transitionTimingFunction=f;this.$.scrim.style.transitionTimingFunction=f},
_translateDrawer:function(f){var S=this.getWidth();this.position==="left"?(f=Math.max(-S,Math.min(f,0)),this.$.scrim.style.opacity=1+f/S):(f=Math.max(0,Math.min(f,S)),this.$.scrim.style.opacity=1-f/S);this.translate3d(f+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var f=this._drawerState;f===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;f!==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=""),f!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var f=_.HZ(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"])');f.length>0?(this._firstTabStop=f[0],this._lastTabStop=f[f.length-1]):
this._lastTabStop=this._firstTabStop=null;(f=this.getAttribute("tabindex"))&&parseInt(f,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(f){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||f.keyCode!==9||(f.shiftKey?this._firstTabStop&&_.HZ(f).localTarget===this._firstTabStop&&(f.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.HZ(f).localTarget===this._lastTabStop&&(f.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(f,S){this.toggleClass("visible",f&&!S,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 Zse;var tbO;_.OW({_template:function(){if(tbO!==void 0)return tbO;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;Zse===void 0&&(Zse=document.createElement("template"));var G=Zse;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return tbO=f},
is:"tp-yt-paper-progress",behaviors:[AoY],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(f){this.toggleClass("indeterminate",f,this.$.primaryProgress)},
_transformProgress:function(f,S){f.style.transform=f.style.webkitTransform="scaleX("+S/100+")"},
_mainRatioChanged:function(f){this._transformProgress(this.$.primaryProgress,f)},
_progressChanged:function(f,S,B,G,g){f=this._clampValue(f);S=this._clampValue(S);var b=this._calcRatio(f)*100,z=this._calcRatio(S)*100;this._setSecondaryRatio(b);this._transformProgress(this.$.secondaryProgress,b);this._transformProgress(this.$.primaryProgress,z);this.secondaryProgress=f;g?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",S);this.setAttribute("aria-valuemin",B);this.setAttribute("aria-valuemax",G)},
_disabledChanged:function(f){this.setAttribute("aria-disabled",f?"true":"false")},
_hideSecondaryProgress:function(f){return f===0}});var ubX;var a9e;var yoY=function(){};
_.e=yoY.prototype;_.e.registered=function(){};
_.e.addOwnKeyBinding=function(){};
_.e.removeOwnKeyBindings=function(){};
_.e.keyboardEventMatchesKeys=function(){};
_.e._collectKeyBindings=function(){};
_.e._prepKeyBindings=function(){};
_.e._addKeyBinding=function(){};
_.e._resetKeyEventListeners=function(){};
_.e._listenKeyEventListeners=function(){};
_.e._unlistenKeyEventListeners=function(){};
_.e._onKeyBindingEvent=function(){};
_.e._triggerKeyHandler=function(){};
_.e._tapHandler=function(){};
_.e._focusChanged=function(){};
_.e._detectKeyboardFocus=function(){};
_.e._userActivate=function(){};
_.e._upHandler=function(){};
_.e._spaceKeyDownHandler=function(){};
_.e._spaceKeyUpHandler=function(){};
_.e._asyncClick=function(){};
_.e._pressedChanged=function(){};
_.e._ariaActiveAttributeChanged=function(){};
_.e._activeChanged=function(){};
_.e._controlStateChanged=function(){};
_.e._changedButtonState=function(){};
_.e._focusBlurHandler=function(){};
_.e._disabledChanged=function(){};
_.e._changedControlState=function(){};
_.e._buttonStateChanged=function(){};
_.e._downHandler=function(){};
_.e.ensureRipple=function(){};
_.e.getRipple=function(){};
_.e.hasRipple=function(){};
_.e._noinkChanged=function(){};
_.e._calcRatio=function(){};
_.e._clampValue=function(){};
_.e._calcStep=function(){};
_.e._validateValue=function(){};
_.e._update=function(){};
_.e._setImmediateValue=function(){};
_.e._setExpand=function(){};
_.e._setDragging=function(){};
_.e._setTransiting=function(){};
_.e._setMarkers=function(){};
_.e._setPressed=function(){};
_.e._setPointerDown=function(){};
_.e._setReceivedFocusFromKeyboard=function(){};
_.e._setFocused=function(){};
_.e._setRatio=function(){};
yoY=_.OW({_template:function(){if(a9e!==void 0)return a9e;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;ubX===void 0&&(ubX=document.createElement("template"));var G=ubX;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return a9e=f},
is:"tp-yt-paper-slider",behaviors:[_.qx,_.rx,_.SRi,AoY],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&&_.x2(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(f,S,B){this.setAttribute("aria-valuemin",S);this.setAttribute("aria-valuemax",B);this.setAttribute("aria-valuenow",f);this._positionKnob(this._calcRatio(f)*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(f){this._setImmediateValue(this._calcStep(this._calcKnobPosition(f)));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(f){return(this.max-this.min)*f/100+this.min},
_onTrack:function(f){f.stopPropagation();switch(f.detail.state){case "start":this._trackStart(f);break;case "track":this._trackX(f);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(f){this.dragging||this._trackStart(f);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,f.detail.dx*(this._isRTL?-1:1)));f=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(f);f=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(f+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var f=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;f.transform=f.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(f){this._expandKnob();f.preventDefault();this.focus()},
_bartrack:function(f){this._allowBarEvent(f)&&this._onTrack(f)},
_barclick:function(f){this._w=this.$.sliderBar.offsetWidth;var S=this.$.sliderBar.getBoundingClientRect();S=(f.detail.x-S.left)/this._w*100;this._isRTL&&(S=100-S);var B=this.ratio;this._setTransiting(!0);this._positionKnob(S);B===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
f.preventDefault();this.focus()},
_bardown:function(f){this._allowBarEvent(f)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(f))},
_knobTransitionEnd:function(f){f.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(f,S,B,G){G||this._setMarkers([]);S=Math.round((B-S)/this.step);S>f&&(S=f);if(S<0||!isFinite(S))S=0;this._setMarkers(Array(S))},
_mergeClasses:function(f){return Object.keys(f).filter(function(S){return f[S]}).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(f){return!this.ignoreBarTouch||f.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(f){this._isRTL?this._incrementKey(f):this._decrementKey(f)},
_rightKey:function(f){this._isRTL?this._decrementKey(f):this._incrementKey(f)},
_incrementKey:function(f){this.disabled||(f.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),f.preventDefault())},
_decrementKey:function(f){this.disabled||(f.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),f.preventDefault())},
_changeValue:function(f){this.value=f.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(f){f.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.oKN._createRipple.call(this)},
_focusedChanged:function(f){f&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=f?"":"none",this._ripple.holdDown=f)}});var WwZ;var coO;var ZO=null,l92=function(){};
_.e=l92.prototype;_.e.fit=function(){};
_.e._discoverInfo=function(){};
_.e.resetFit=function(){};
_.e.refit=function(){};
_.e.position=function(){};
_.e.constrain=function(){};
_.e._sizeDimension=function(){};
_.e.__sizeDimension=function(){};
_.e.center=function(){};
_.e.__getNormalizedRect=function(){};
_.e.__getOffscreenArea=function(){};
_.e.__getPosition=function(){};
_.e.notifyResize=function(){};
_.e.assignParentResizable=function(){};
_.e.stopResizeNotificationsFor=function(){};
_.e._subscribeIronResize=function(){};
_.e._unsubscribeIronResize=function(){};
_.e.resizerShouldNotify=function(){};
_.e._onDescendantIronResize=function(){};
_.e._fireResize=function(){};
_.e._onIronRequestResizeNotifications=function(){};
_.e._parentResizableChanged=function(){};
_.e._notifyDescendant=function(){};
_.e._requestResizeNotifications=function(){};
_.e._findParent=function(){};
_.e.toggle=function(){};
_.e.open=function(){};
_.e.close=function(){};
_.e.cancel=function(){};
_.e.invalidateTabbables=function(){};
_.e._ensureSetup=function(){};
_.e._canceledChanged=function(){};
_.e._withBackdropChanged=function(){};
_.e._prepareRenderOpened=function(){};
_.e._finishRenderOpened=function(){};
_.e._finishRenderClosed=function(){};
_.e._preparePositioning=function(){};
_.e._finishPositioning=function(){};
_.e._applyFocus=function(){};
_.e._onCaptureClick=function(){};
_.e._onCaptureFocus=function(){};
_.e._onCaptureEsc=function(){};
_.e._onCaptureTab=function(){};
_.e._onIronResize=function(){};
_.e._onNodesChange=function(){};
_.e.__ensureFirstLastFocusables=function(){};
_.e.__openedChanged=function(){};
_.e.__deraf=function(){};
_.e.__updateScrollObservers=function(){};
_.e.__addScrollListeners=function(){};
_.e.__removeScrollListeners=function(){};
_.e.__isValidScrollAction=function(){};
_.e.__onCaptureScroll=function(){};
_.e.__saveScrollPosition=function(){};
_.e.__restoreScrollPosition=function(){};
_.e._setCanceled=function(){};
l92=_.OW({_template:function(){if(coO!==void 0)return coO;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;WwZ===void 0&&(WwZ=document.createElement("template"));var G=WwZ;B.call(S,G.content.cloneNode(!0),f.content.firstChild);return coO=f},
is:"tp-yt-paper-toast",behaviors:[_.uH],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(){_.qI._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.A5.requestAvailability()},
show:function(f){typeof f=="string"&&(f={text:f});for(var S in f)S.indexOf("_")===0?_.qI._warn('The property "'+S+'" is private and was not set.'):S in this?this[S]=f[S]:_.qI._warn('The property "'+S+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(f){f&&f.target===this&&f.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(ZO&&ZO!==this&&ZO.close(),ZO=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):ZO===this&&(ZO=null);_.t5._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(f){this.positionTarget=f},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var f6u=new _.u("disablePersonalizationAction");var AKe=new _.u("showDmaConsentFlowCommand");var N3o=new _.u("showMmgNoticeCommand");var omB=new _.u("saveConsentAction");var Sde=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gI(f)};
_.q(Sde,_.s7);var Bx2=_.ld(Sde);var Ge$=new _.u("updateTopbarAvatarAction");var gm$=new _.u("channelHandleValidationResultRenderer");var e62=new _.u("generateHandleFromNameResultRenderer");var bdM=new _.u("channelHandleInputRenderer");var mxM=new _.u("copyLinkRenderer");var z6u=new _.u("timedCommand");var R6z=new _.u("clearCookieAction");var XuM=new _.u("getMultiPageMenuAction");var wuz=new _.u("addToGuideSectionAction"),h6z=new _.u("removeFromGuideSectionAction");var TxY=new _.u("updateNotificationsUnseenCountAction");var Fpu=new _.u("resetChannelUnreadCountCommand");var Vxn=new _.u("resetSubscriptionsUnreadDotCommand");var J5n=new _.u("selectLanguageCommand");var GFo=new _.u("sendFeedbackAction");var PHM=new _.u("uploadImageToScottyCommand");var vmX=new _.u("registerPromoCommand");var KpX=new _.u("setPushNotificationsEnabledCommand");var dx2=new _.u("desktopTopbarRenderer");var idY=new _.u("surveyFollowUpRenderer");var Hdz=new _.u("handlesClaimingRadioOptionRenderer");var qdo=new _.u("hotkeyDialogRenderer");var $xu=new _.u("modifyReportFormCommand");var QVu=new _.u("accountLinkCommand");var Ydu=new _.u("accountUnlinkCommand");var r5z=new _.u("logAccountLinkingEventCommand");var jVZ=new _.u("guideCollapsibleEntryRenderer");var OdZ=new _.u("guideDownloadsEntryRenderer");var tz=new _.u("guideEntryRenderer");var xxM=new _.u("getLocationCommand");var Emz=new _.u("locationCollectionCommand");var LpM=new _.u("storiesItemViewModel");var kez=new _.u("addToRemoteQueueAction");var nmu=new _.u("insertInRemoteQueueAction");var sVO=new _.u("removeFromRemoteQueueAction");var Dxu=new _.u("notificationRenderer");var Yte=new _.u("localWatchHistoryCommand");var I6O=new _.u("pdgBuyFlowHeaderRenderer");var UxM=new _.u("pdgColorSliderRenderer");var CHu=new _.u("pdgCommentOptionRenderer");var puM=new _.u("pdgCommentPreviewRenderer");var A5z=new _.u("superVodSelectableItemButtonRenderer");var Nxz=new _.u("switchButtonRenderer");var Mxu=new _.u("upsellDialogRenderer");var Zde=new _.u("feedbackQuestionRenderer"),txM=new _.u("feedbackOptionRenderer");var uYz=new _.u("sponsorshipsTierRenderer"),a6u=new _.u("sponsorshipsPromotionChannelRenderer");var y5Y=new _.u("simpleSurveyMessageRenderer");var GYZ=new _.u("invokeInstrumentManagerAction");var Wpz=new _.u("logYpcFlowDismissCommand");var c5O=new _.u("logYpcFlowStartCommand");var l6o=new _.u("unlimitedCreateFamilyEndpoint");var fSZ=new _.u("iconBadgeRenderer");var rRX=new _.u("collaborativePlaylistVisibilityValidationRule");var ofu=function(f){_.K8.call(this,"channelMessage");this.message=f};
_.q(ofu,_.K8);var S2n=function(f){_.K8.call(this,"channelError");this.error=f};
_.q(S2n,_.K8);var BUe={AUTOPLAY:"atp",SKA_SKIPPABLE_ADS:"ska",QUEUE_SUPPORT:"que",MULTI_USER_SESSIONS:"mus",SINGLE_USER_SESSIONS:"sus",HAS_DISPLAY:"dsp",SCREEN_EXTENDED_QUEUE_SUPPORT:"seq",MIC:"mic",DPAD:"dpa",MULTISTATE_LOOP_MODE:"mlm",DISCONNECT_STRATEGY_DEFFERRED_TO_RECEIVER:"dsdtr",NATIVE_BROWSE:"ntb",VARIABLE_SPEED:"vsp",ENABLE_VIDEO_SOURCE_CLIENT_NAME:"scn",RECEIVER_PLAYLIST_EXPANSION:"rpe",DISABLE_CURRENTINDEX_IN_NOWPLAYING:"dcn",DISABLE_CURRENTINDEX_IN_PLAYLISTMODIFIED:"dcp",PAUSE_AT_START:"pas",DISABLE_QUEUE_FOR_RECEIVER_ONLY_SESSION:"drq",
ONUSERACTIVITY_POLLING_FREQUENCY:"opf",ENABLE_LOUNGE_STATUS_PLAYBACK:"els",ENABLE_IDENTITY_SWITCH_TO_GUEST:"isg",SERVER_QUEUES:"svq",MULTIVIEW_PLAYBACK:"mvp",ACTIVE_DEVICE_STORE_WRITES:"ads",STREAM_TRANSFER_CREATE_PLAYLIST:"stcp",SHORTS_ACTIVE_DEVICE_STORE_WRITES:"sads",DISABLE_LOGGED_OUT_CASTING:"dloc",DUAL_CTT_WRITES:"dcw",ACTIVE_STREAM_WRITES_FOR_CONNECTED_REMOTES:"asw",ACTIVE_PLAYBACK_WRITES_FOR_CONNECTED_REMOTES:"apw"},G9u={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",
GAMING:"g",UNPLUGGED:"up"},gfO={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},eGz={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},bWO={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var uN=function(f){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 _.XY;this.localChannelEncryptionKey=this.remoteControllerUrl="";this.deviceContext=void 0;this.model=this.brand="";this.year=0;this.chipset=this.osVersion=this.os="";this.mdxDialServerType=
"MDX_DIAL_SERVER_TYPE_UNKNOWN";this.pairingType="unknown";this.castUserId=void 0;f&&(this.id=f.id||f.name,this.name=f.name,this.clientName=f.clientName?f.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=f.app,this.type=f.type||"REMOTE_CONTROL",this.username=f.user||"",this.avatar=f.userAvatarUri||"",this.obfuscatedGaiaId=f.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=f.ownerObfuscatedGaiaId||"",this.castUserId=f.castUserId||"",this.theme=f.theme||"u",mGO(this,f.capabilities||""),zGO(this,
f.compatibleSenderThemes||""),RG2(this,f.experiments||""),this.remoteControllerUrl=f.remoteControllerUrl||"",this.localChannelEncryptionKey=f.localChannelEncryptionKey||"",this.deviceContext=f.deviceContext,this.brand=f.brand||"",this.model=f.model||"",this.year=f.year||0,this.os=f.os||"",this.osVersion=f.osVersion||"",this.chipset=f.chipset||"",this.mdxDialServerType=f.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=f.pairingType||"unknown",f=f.deviceInfo)&&(f=JSON.parse(f),this.brand=
f.brand||"",this.model=f.model||"",this.year=f.year||0,this.os=f.os||"",this.osVersion=f.osVersion||"",this.chipset=f.chipset||"",this.clientName=f.clientName?f.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=f.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
uN.prototype.copy=function(){var f={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&&(f.brand=this.brand);
this.model&&(f.model=this.model);this.year&&(f.year=this.year);this.os&&(f.os=this.os);this.osVersion&&(f.osVersion=this.osVersion);this.chipset&&(f.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(f.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(f.mdxDialServerType=this.mdxDialServerType);f=new uN(f);f.connected=this.connected;f.remoteControllerUrl=this.remoteControllerUrl;f.localChannelEncryptionKey=this.localChannelEncryptionKey;f.deviceContext=
this.deviceContext;f.castUserId=this.castUserId;return f};
uN.prototype.equals=function(f){return f?this.id==f.id:!1};
var mGO=function(f,S){f.capabilities.clear();_.wp(S.split(","),_.vK(_.$v.contains,BUe)).forEach(function(B){f.capabilities.add(B)})},zGO=function(f,S){f.compatibleSenderThemes.clear();
_.wp(S.split(","),_.vK(_.$v.contains,G9u)).forEach(function(B){f.compatibleSenderThemes.add(B)})},RG2=function(f,S){f.experiments.clear();
S.split(",").forEach(function(B){f.experiments.add(B)})};var X12=function(f,S){this.action=f;this.params=S||{}};_.Rm(yLZ,_.qR);_.e=yLZ.prototype;_.e.JSC$17562_onTick_=function(){this.JSC$17560_interval_=Math.min(3E5,this.JSC$17560_interval_*2);this.JSC$17562_listener_();this.nextTickTime_&&this.start()};
_.e.start=function(){var f=this.JSC$17560_interval_+15E3*Math.random(),S=this.delay_;S.isActive()||S.start(f);this.nextTickTime_=Date.now()+f};
_.e.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.e.isActive=function(){return this.delay_.isActive()};
_.e.reset=function(){this.delay_.stop();this.JSC$17560_interval_=5E3};_.Rm(jY,I9$);_.e=jY.prototype;_.e.subscribe=function(f,S,B){return this.pubsub_.subscribe(f,S,B)};
_.e.unsubscribe=function(f,S,B){return this.pubsub_.unsubscribe(f,S,B)};
_.e.unsubscribeByKey=function(f){return this.pubsub_.unsubscribeByKey(f)};
_.e.publish=function(f,S){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.e.dispose=function(){this.JSC$17563_disposed_||(this.JSC$17563_disposed_=!0,_.cd(this.pubsub_),this.disconnect(),_.cd(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$17563_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.wh({})})};
_.e.isDisposed=function(){return this.JSC$17563_disposed_};
_.e.connect=function(f,S,B){var G=this,g,b,z,X;return _.R(function(w){if(w.nextAddress==1)return _.Xz(w,2),G.useAsyncBrowserChannelHandler_?_.h(w,G.connectPromise_,2):w.jumpTo(2);_.Rs(w);if(G.JSC$17563_disposed_||G.JSC$17563_channel_&&G.JSC$17563_channel_.getState()==2)return w.return();G.sCookie_="";G.reconnectTimer_.stop();G.connectionParams_=f||null;G.connectUi_=S||0;g=G.JSC$17563_pathPrefix_+"/test";b=G.JSC$17563_pathPrefix_+"/bind";z=new Az(B?B.firstTestResults:null,B?B.secondTestResults:null,
G.enableAsyncTest_);if(X=G.JSC$17563_channel_)X.handler_=null;z.handler_=G;G.JSC$17563_channel_=z;if(G.useAsyncBrowserChannelHandler_)return G.connectPromise_=w1u(G).then(function(){return hGu(G,g,b,X,B)}),w.return(G.connectPromise_.then(function(){G.connectPromise_=_.wh()}));
hGu(G,g,b,X,B);return _.wz(w,0)})};
var hGu=function(f,S,B,G,g){TU2(f);if(f.JSC$17563_channel_){var b=_.nL("ID_TOKEN"),z=f.JSC$17563_channel_.JSC$17515_extraHeaders_||{};b?z["x-youtube-identity-token"]=b:delete z["x-youtube-identity-token"];f.JSC$17563_channel_.JSC$17515_extraHeaders_=z}FkM(f);G?(G.getState(),f.JSC$17563_channel_.connect(S,B,f.defaultQueryParams_,G.sid_,G.JSC$17515_lastArrayId_)):g?f.JSC$17563_channel_.connect(S,B,f.defaultQueryParams_,g.sessionId,g.arrayId):f.JSC$17563_channel_.connect(S,B,f.defaultQueryParams_)};
jY.prototype.disconnect=function(f){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.wh())}finally{this.disconnectUi_=f||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),TU2(this),this.JSC$17563_channel_&&(this.JSC$17563_channel_.getState()==3&&ERu(this.JSC$17563_channel_),this.JSC$17563_channel_.disconnect()),this.disconnectUi_=0}};
jY.prototype.sendMessage=function(f,S){var B=this,G;return _.R(function(g){switch(g.nextAddress){case 1:_.Xz(g,2);if(!B.useAsyncBrowserChannelHandler_){g.jumpTo(2);break}return _.h(g,B.connectPromise_,2);case 2:_.Rs(g);if(B.JSC$17563_disposed_)return g.return();G={_sc:f};S&&_.$v.extend(G,S);if(B.reconnectTimer_.isActive()||(B.JSC$17563_channel_?B.JSC$17563_channel_.getState():0)==2){B.JSC$17563_pendingMessages_.push(G);g.jumpTo(6);break}if(!B.isChannelOpened()){g.jumpTo(6);break}_.Xz(g,8);if(!B.useAsyncBrowserChannelHandler_||
VRM(B,f)){g.jumpTo(8);break}return _.h(g,w1u(B),8);case 8:_.Rs(g,0,0,1);B.isChannelOpened()&&(VRM(B,f)||FkM(B),TU2(B),xIO(B.JSC$17563_channel_,G));_.wz(g,6,1);break;case 6:_.wz(g,0)}})};
var VRM=function(f,S){return f.enableMdxAuthForConnectionOnly_?!0:f.disableMdxAuthForAdMessages_?Object.values(gfO).includes(S):f.disableMdxAuthForNonPlaybackMessages_?!Object.values(eGz).includes(S):f.disableMdxAuthForShortsMessages_?Object.values(bWO).includes(S):!1};
jY.prototype.JSC$17522_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$17563_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)JvO(this);else{var f=this.JSC$17563_pendingMessages_;this.JSC$17563_pendingMessages_=[];var S=f.length;FkM(this);PeB(this,f,S);vfY(this)}else vfY(this)};
var JvO=function(f){var S,B;_.R(function(G){if(G.nextAddress==1)return _.Xz(G,2),_.h(G,w1u(f),2);_.Rs(G);S=f.JSC$17563_pendingMessages_;f.JSC$17563_pendingMessages_=[];B=S.length;PeB(f,S,B);vfY(f);return _.wz(G,0)})},PeB=function(f,S,B){for(var G=0;G<B;++G)xIO(f.JSC$17563_channel_,S[G]);
vfY(f)},vfY=function(f){f.publish("handlerOpened");
f.JSC$17563_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.e=jY.prototype;_.e.JSC$17522_channelError=function(f){var S=f==2&&this.JSC$17563_channel_.JSC$17515_lastStatusCode_==401;f==4||S||this.reconnectTimer_.start();this.publish("handlerError",f,S);S=Object.keys(Hsu).find(function(B){return Hsu[B]===f});
this.JSC$17563_channelErrorCounter.increment("BROWSER_CHANNEL",S!=null?S:"UNKNOWN")};
_.e.JSC$17522_channelClosed=function(f,S){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(S)for(var B=S.length,G=0;G<B;++G){var g=S[G].map;g&&this.JSC$17563_pendingMessages_.push(g)}this.JSC$17563_channelClosedCounter.increment("BROWSER_CHANNEL");f&&this.pendingMapsOnClosedCounter.JSC$7977_streamzService.JSC$7832_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",f.length);S&&this.undeliveredMapsOnClosedCounter.JSC$7980_streamzService.JSC$7832_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
S.length)};
_.e.JSC$17522_channelSuccess=function(f,S){S!=null&&f!=null&&this.channelMessageSentCounter.increment()};
_.e.JSC$17522_getAdditionalParams=function(){var f={v:2};this.sCookie_&&(f.gsessionid=this.sCookie_);this.connectUi_!=0&&(f.ui=""+this.connectUi_);this.disconnectUi_!=0&&(f.ui=""+this.disconnectUi_);this.connectionParams_&&_.$v.extend(f,this.connectionParams_);return f};
_.e.JSC$17522_channelHandleArray=function(f){f[0]=="S"?this.sCookie_=f[1]:f[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$17563_channel_.disconnect()):this.publish("handlerMessage",new X12(f[0],f[1]));this.JSC$17563_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.e.isChannelOpened=function(){return!!this.JSC$17563_channel_&&this.JSC$17563_channel_.getState()==3};
var TU2=function(f){if(f.JSC$17563_channel_){var S=f.JSC$17563_getXsrfToken_(),B=f.JSC$17563_channel_.JSC$17515_extraHeaders_||{};S?B["x-youtube-lounge-xsrf-token"]=S:delete B["x-youtube-lounge-xsrf-token"];f.JSC$17563_channel_.JSC$17515_extraHeaders_=B}},w1u=function(f){if(f.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.wh();
if(!f.enableCachedUpdateAuthorizationHeader_)return KkX(f);f.updateAuthorizationHeaderPromise_===null&&(f.updateAuthorizationHeaderPromise_=KkX(f));return f.updateAuthorizationHeaderPromise_},KkX=function(f){return _.jA(f.getAuthorizationHeader_().then(function(S){dGY(f,S)}).thenCatch(function(){}),function(){f.updateAuthorizationHeaderPromise_=null})},dGY=function(f,S){if(f.JSC$17563_channel_){var B=f.JSC$17563_channel_.JSC$17515_extraHeaders_||{};
S&&Object.keys(S).length>0?B=Object.assign({},B,S):delete B.Authorization;f.JSC$17563_channel_.JSC$17515_extraHeaders_=B}},FkM=function(f){f.getAuthorizationHeaderSync_&&!f.useAsyncBrowserChannelHandler_&&dGY(f,f.getAuthorizationHeaderSync_())};
_.e=jY.prototype;_.e.setLoungeToken=function(f){(this.defaultQueryParams_.loungeIdToken=f)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$17563_channel_){var S=this.JSC$17563_channel_.JSC$17515_extraHeaders_||{};f?S["X-YouTube-LoungeId-Token"]=f:delete S["X-YouTube-LoungeId-Token"];this.JSC$17563_channel_.JSC$17515_extraHeaders_=S}};
_.e.getDeviceId=function(){return this.defaultQueryParams_.id};
_.e.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.e.reconnect=function(){var f=this.reconnectTimer_;f.delay_.fire();f.start()};
_.e.safeReconnect_=function(){var f=this.JSC$17563_channel_,S=0;f.JSC$17515_backChannelRequest_&&S++;f.forwardChannelRequest_&&S++;S==0&&this.connect(this.connectionParams_,this.connectUi_)};var sG=function(f,S){var B=f.basePath;f.supportCors&&(B=f.scheme+"://"+f.domain+f.port+f.basePath);return _.tA(B+S,{})};
OG.prototype.sendRequest=function(f,S,B,G,g,b,z){f={format:b?"RAW":"JSON",method:f,context:this,timeout:5E3,withCredentials:!!z,onSuccess:_.vK(this.JSC$17568_onSuccess_,G,!b),onError:_.vK(this.onError_,g),onTimeout:_.vK(this.JSC$17568_onTimeout_,g)};B&&(f.postParams=B,f.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.wO(S,f)};
OG.prototype.JSC$17568_onSuccess_=function(f,S,B,G){S?f(G):f({text:B.responseText})};
OG.prototype.onError_=function(f,S){f(Error("Ck`"+S.status))};
OG.prototype.JSC$17568_onTimeout_=function(f){f(Error("Dk"))};var EG=function(f,S){return!!S&&(f.id==S||f.uuid==S)},iWu=function(f){return{name:f.name,
screenId:f.id,loungeToken:f.token,dialId:f.uuid,screenIdType:f.idType}},HWY=function(f){return new xx(f)},q2o=function(f){return Array.isArray(f)?_.Yv(f,HWY):[]},gTo=function(f){if(!f)return"null";
var S=f.token?".."+f.token.slice(-6):"-",B=f.uuid?".."+f.uuid.slice(-6):"-";return'{name:"'+f.name+'",id:'+f.id.substr(0,6)+"..,token:"+(S+",uuid:"+B+",idType:"+f.idType+"}")},Lj2=function(f){return Array.isArray(f)?"["+_.Yv(f,gTo).join(",")+"]":"null"};var hSZ="",ne=null;var ikO=function(f,S){_.$o.call(this);var B=this;this.handler=f();this.handler.subscribe("handlerOpened",this.JSC$17575_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(G,g){B.onError(g)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=S};
_.q(ikO,_.$o);_.e=ikO.prototype;_.e.connect=function(f,S,B){this.handler.connect(f,S,B)};
_.e.disconnect=function(f){this.handler.disconnect(f)};
_.e.reconnect=function(){this.handler.reconnect()};
_.e.getDeviceId=function(){return this.handler.getDeviceId()};
_.e.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.e.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.e.JSC$17575_onOpened=function(){this.dispatchEvent("channelOpened");var f=this.handler,S=this.currentScreenId;_.Xw("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!f.JSC$17563_channel_.useChunked_,sessionId:f.JSC$17563_channel_.sid_,arrayId:f.JSC$17563_channel_.JSC$17515_lastArrayId_});_.Xw("yt-remote-session-screen-id",S);f=bkX();S=m5M();_.As(f,S)||f.push(S);wZo(f);XZz()};
_.e.onClosed=function(){this.dispatchEvent("channelClosed")};
_.e.onMessage=function(f){this.dispatchEvent(new ofu(f))};
_.e.onError=function(f){this.dispatchEvent(new S2n(f?1:0))};
_.e.sendMessage=function(f,S){this.handler.sendMessage(f,S)};
_.e.setLoungeToken=function(f){this.handler.setLoungeToken(f)};
_.e.dispose=function(){this.handler.dispose()};var d5u=function(f,S,B){var G=this;B=B===void 0?function(){return""}:B;
var g=g===void 0?new y_e:g;var b=b===void 0?new _.Tt:b;this.pathPrefix=f;this.defaultQueryParams=S;this.getXsrfToken=B;this.JSC$17578_pubsub=b;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new yLZ(function(){var z;((z=G.channel)==null?void 0:QNo((new l7e(z,z.JSC$17486_channel_)).JSC$17496_channel_.forwardChannelRequestPool_))===0&&G.connect(G.connectionParams,G.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$17578_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$17578_channelOpenedCounter=new WIB;this.JSC$17578_channelClosedCounter=new cL2;this.JSC$17578_channelMessageReceivedCounter=new fTY;this.JSC$17578_channelErrorCounter=new oc2};
d5u.prototype.connect=function(f,S){f=f===void 0?{}:f;S=S===void 0?0:S;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=f,this.connectUi=S,$GZ(this),(f=_.nL("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=f: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 nU(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,QRB(this))};
var QRB=function(f){_.jP(f.channel,"w",function(){f.channelState=3;f.reconnectTimer.reset();f.connectionParams=null;f.connectUi=0;for(var S=_.m(f.nonAckedMessagesOnChannelClosed),B=S.next();!B.done;B=S.next())B=B.value,f.channel&&f.channel.send(B);f.nonAckedMessagesOnChannelClosed=[];f.publish("webChannelOpened");f.JSC$17578_channelOpenedCounter.increment("WEB_CHANNEL")});
_.jP(f.channel,"x",function(){f.channelState=0;f.reconnectTimer.isActive()||f.publish("webChannelClosed");var S,B=(S=f.channel)==null?void 0:f9X(new l7e(S,S.JSC$17486_channel_));B&&(f.nonAckedMessagesOnChannelClosed=[].concat(_.$d(B)));f.JSC$17578_channelClosedCounter.increment("WEB_CHANNEL")});
_.jP(f.channel,"z",function(S){var B=S.data;B[0]==="gracefulReconnect"?(f.reconnectTimer.start(),f.channel&&f.channel.close()):f.publish("webChannelMessage",new X12(B[0],B[1]));f.lastStatusCode=S.statusCode;f.JSC$17578_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.jP(f.channel,"y",function(){f.lastStatusCode===401||f.reconnectTimer.start();f.publish("webChannelError");f.JSC$17578_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.e=d5u.prototype;_.e.disconnect=function(f){this.disconnectUi=f===void 0?0:f;this.reconnectTimer.stop();$GZ(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.e.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.e.reconnect=function(){var f=this.reconnectTimer;f.delay_.fire();f.start()};
_.e.sendMessage=function(f,S){this.channel&&($GZ(this),f=Object.assign({},{_sc:f},S),this.channel.send(f))};
_.e.setLoungeToken=function(f){f||this.reconnectTimer.stop();f?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=f:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var $GZ=function(f){var S=f.getXsrfToken();S?f.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=S:delete f.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.e=d5u.prototype;_.e.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.e.publish=function(f){return this.JSC$17578_pubsub.publish.apply(this.JSC$17578_pubsub,[f].concat(_.$d(_.qb.apply(1,arguments))))};
_.e.subscribe=function(f,S,B){return this.JSC$17578_pubsub.subscribe(f,S,B)};
_.e.unsubscribe=function(f,S,B){return this.JSC$17578_pubsub.unsubscribe(f,S,B)};
_.e.unsubscribeByKey=function(f){return this.JSC$17578_pubsub.unsubscribeByKey(f)};
_.e.dispose=function(){this.JSC$17578_disposed||(this.JSC$17578_disposed=!0,_.cd(this.JSC$17578_pubsub),this.disconnect(),_.cd(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.e.isDisposed=function(){return this.JSC$17578_disposed};var Kj2=function(f){_.$o.call(this);this.webChannelService=f();this.webChannelService.subscribe("webChannelOpened",this.JSC$17586_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.q(Kj2,_.$o);_.e=Kj2.prototype;_.e.connect=function(f,S){this.webChannelService.connect(f,S)};
_.e.disconnect=function(f){this.webChannelService.disconnect(f)};
_.e.reconnect=function(){this.webChannelService.reconnect()};
_.e.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.e.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.e.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.e.JSC$17586_onOpened=function(){this.dispatchEvent("channelOpened")};
_.e.onClosed=function(){this.dispatchEvent("channelClosed")};
_.e.onMessage=function(f){this.dispatchEvent(new ofu(f))};
_.e.onError=function(){this.dispatchEvent(new S2n(this.webChannelService.lastStatusCode===401?1:0))};
_.e.sendMessage=function(f,S){this.webChannelService.sendMessage(f,S)};
_.e.setLoungeToken=function(f){this.webChannelService.setLoungeToken(f)};
_.e.dispose=function(){this.webChannelService.dispose()};var EcB=Date.now(),Do=null,Ok2=Array(50),Ce=-1,x5e=!1;_.Rm(pe,_.cT);pe.prototype.getScreens=function(){return this.screens};
pe.prototype.contains=function(f){return!!eSM(this.screens,f)};
pe.prototype.get=function(f){return f?Le(this.screens,f):null};
var Y2u=function(f,S){var B=f.get(S.uuid)||f.get(S.id);if(B)return f=B.name,B.id=S.id||B.id,B.name=S.name,B.token=S.token,B.uuid=S.uuid||B.uuid,B.name!=f;f.screens.push(S);return!0},rvu=function(f,S){var B=f.screens.length!=S.length;
f.screens=_.wp(f.screens,function(b){return!!eSM(S,b)});
for(var G=S.length,g=0;g<G;g++)B=Y2u(f,S[g])||B;return B},jRO=function(f,S){var B=f.screens.length;
f.screens=_.wp(f.screens,function(G){return!(G||S?!G!=!S?0:G.id==S.id:1)});
return f.screens.length<B};
pe.prototype.info=function(f){In(this.JSC$17587_logName_,f)};var OWY=function(f,S,B,G,g){_.cT.call(this);this.JSC$17590_http_=f;this.pairingCode_=S;this.deviceId_=B;this.friendlyName_=G;this.enableShortLivedLoungeToken_=g;this.pollIndex_=0;this.JSC$17590_xhr_=null;this.JSC$17590_timer_=NaN};
_.q(OWY,_.cT);_.e=OWY.prototype;_.e.start=function(){!this.JSC$17590_xhr_&&isNaN(this.JSC$17590_timer_)&&this.poll_()};
_.e.stop=function(){this.JSC$17590_xhr_&&(this.JSC$17590_xhr_.abort(),this.JSC$17590_xhr_=null);isNaN(this.JSC$17590_timer_)||(_.Ry(this.JSC$17590_timer_),this.JSC$17590_timer_=NaN)};
_.e.disposeInternal=function(){this.stop();_.cT.prototype.disposeInternal.call(this)};
_.e.poll_=function(){this.JSC$17590_timer_=NaN;this.JSC$17590_xhr_=_.wO(sG(this.JSC$17590_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.$A)(this.JSC$17592_onSuccess_,this),onError:(0,_.$A)(this.onError_,this),onTimeout:(0,_.$A)(this.JSC$17592_onTimeout_,this)})};
_.e.JSC$17592_onSuccess_=function(f,S){this.JSC$17590_xhr_=null;f=S.screen||{};f.dialId=this.deviceId_;f.name=this.friendlyName_;S=-1;this.enableShortLivedLoungeToken_&&f.shortLivedLoungeToken&&f.shortLivedLoungeToken.value&&f.shortLivedLoungeToken.refreshIntervalMs&&(f.screenIdType="shortLived",f.loungeToken=f.shortLivedLoungeToken.value,S=f.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new xx(f),S)};
_.e.onError_=function(f){this.JSC$17590_xhr_=null;f.status&&f.status==404?this.pollIndex_>=xGM.length?this.publish("pairingFailed",Error("Ek")):(f=xGM[this.pollIndex_],this.JSC$17590_timer_=_.mE((0,_.$A)(this.poll_,this),f),this.pollIndex_++):this.publish("pairingFailed",Error("Fk`"+f.status))};
_.e.JSC$17592_onTimeout_=function(){this.JSC$17590_xhr_=null;this.publish("pairingFailed",Error("Gk"))};
var xGM=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.Rm(Nq,pe);_.e=Nq.prototype;_.e.start=function(){An(this)&&this.publish("screenChange");!_.wQ("yt-remote-lounge-token-expiration")&&Efu(this);_.Ry(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.mE((0,_.$A)(this.start,this),1E4)};
_.e.add=function(f,S){An(this);Y2u(this,f);Lko(this,!1);this.publish("screenChange");S(f);f.token||Efu(this)};
_.e.remove=function(f,S){var B=An(this);jRO(this,f)&&(Lko(this,!1),B=!0);S(f);B&&this.publish("screenChange")};
_.e.updateName=function(f,S,B,G){var g=An(this),b=this.get(f.id);b?(b.name!=S&&(b.name=S,Lko(this,!1),g=!0),B(f)):G(Error("Hk"));g&&this.publish("screenChange")};
_.e.disposeInternal=function(){_.Ry(this.loungeTokenRefreshTimer_);Nq.superClass_.disposeInternal.call(this)};
var Efu=function(f){if(f.screens.length){var S=_.Yv(f.screens,function(G){return G.id}),B=sG(f.JSC$17594_http_,"/pairing/get_lounge_token_batch");
f.JSC$17594_http_.sendRequest("POST",B,{screen_ids:S.join(",")},(0,_.$A)(f.handleLoungeTokens_,f),(0,_.$A)(f.handleLoungeTokenError_,f))}};
Nq.prototype.handleLoungeTokens_=function(f){An(this);var S=this.screens.length;f=f&&f.screens||[];for(var B=f.length,G=0;G<B;++G){var g=f[G],b=this.get(g.screenId);b&&(b.token=g.loungeToken,--S)}Lko(this,!S);S&&In(this.JSC$17587_logName_,"Missed "+S+" lounge tokens.")};
Nq.prototype.handleLoungeTokenError_=function(f){In(this.JSC$17587_logName_,"Requesting lounge tokens failed: "+f)};
var An=function(f){if(_.K("deprecate_pair_servlet_enabled"))return rvu(f,[]);var S=q2o(FjM());S=_.wp(S,function(B){return!B.uuid});
return rvu(f,S)},Lko=function(f,S){J2u(_.Yv(f.screens,iWu));
S&&Veu()};var aZ=function(f,S){_.cT.call(this);this.getScreensToCheck_=S;S=(S=_.wQ("yt-remote-online-screen-ids")||"")?S.split(","):[];for(var B={},G=this.getScreensToCheck_(),g=G.length,b=0;b<g;++b){var z=G[b].id;B[z]=_.As(S,z)}this.screenIdSet_=B;this.JSC$17597_http_=f;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;k9X("Initialized with "+(0,_.ET)(this.screenIdSet_))};
_.q(aZ,_.cT);aZ.prototype.isOnline=function(f){return!!this.screenIdSet_[f]};
aZ.prototype.start=function(){var f=parseInt(_.wQ("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.zd()-144E5<f?0:f)?nfz(this):(this.fastCheckEndTime_=_.zd()+3E5,_.Xw("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
aZ.prototype.isEmpty=function(){return _.$v.isEmpty(this.screenIdSet_)};
aZ.prototype.update=function(){k9X("Updating availability on schedule.");var f=this.getScreensToCheck_(),S=_.$v.filter(this.screenIdSet_,function(B,G){return B&&!!Le(f,G)},this);
sR2(this,S)};
var DGu=function(f,S,B){var G=sG(f.JSC$17597_http_,"/pairing/get_screen_availability");f.JSC$17597_http_.sendRequest("POST",G,{lounge_token:S.token},(0,_.$A)(function(g){g=g.screens||[];for(var b=g.length,z=0;z<b;++z)if(g[z].loungeToken==S.token){B(g[z].status=="online");return}B(!1)},f),(0,_.$A)(function(){B(!1)},f))};
aZ.prototype.disposeInternal=function(){_.Ry(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.cT.prototype.disposeInternal.call(this)};
var sR2=function(f,S){a:if(_.$v.getCount(S)!=_.$v.getCount(f.screenIdSet_))var B=!1;else{B=_.$v.getKeys(S);for(var G=B.length,g=0;g<G;++g)if(!f.screenIdSet_[B[g]]){B=!1;break a}B=!0}B||(k9X("Updated online screens: "+(0,_.ET)(f.screenIdSet_)),f.screenIdSet_=S,f.publish("screenChange"));IS$(f)},nfz=function(f){isNaN(f.refreshTimer_)||_.Ry(f.refreshTimer_);
f.refreshTimer_=_.mE((0,_.$A)(f.requestScreenAvailability_,f),f.fastCheckEndTime_>0&&f.fastCheckEndTime_<_.zd()?2E4:1E4)};
aZ.prototype.requestScreenAvailability_=function(){_.Ry(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var f=UGo(this);if(_.$v.getCount(f)){var S=sG(this.JSC$17597_http_,"/pairing/get_screen_availability"),B={lounge_token:_.$v.getKeys(f).join(",")};this.currentRequest_=this.JSC$17597_http_.sendRequest("POST",S,B,(0,_.$A)(this.onScreenAvailability_,this,f),(0,_.$A)(this.onScreenAvailabilityError_,this))}else sR2(this,{}),nfz(this)};
aZ.prototype.onScreenAvailability_=function(f,S){this.currentRequest_=null;var B=_.$v.getKeys(UGo(this));if(_.m6(B,_.$v.getKeys(f))){S=S.screens||[];B={};for(var G=S.length,g=0;g<G;++g)B[f[S[g].loungeToken]]=S[g].status=="online";sR2(this,B);nfz(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
aZ.prototype.onScreenAvailabilityError_=function(f){this.warn_("Screen availability failed: "+f);this.currentRequest_=null;nfz(this)};
var k9X=function(f){In("OnlineScreenService",f)};
aZ.prototype.warn_=function(f){In("OnlineScreenService",f)};
var UGo=function(f){var S={};_.AA(f.getScreensToCheck_(),function(B){B.token?S[B.token]=B.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return S},IS$=function(f){f=_.$v.getKeys(_.$v.filter(f.screenIdSet_,function(S){return S}));
f.sort(_.gN);f.length?_.Xw("yt-remote-online-screen-ids",f.join(","),60):_.hi("yt-remote-online-screen-ids")};_.Rm(Mq,pe);_.e=Mq.prototype;_.e.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.e.add=function(f,S,B){this.localScreenService_.add(f,S,B)};
_.e.remove=function(f,S,B){this.localScreenService_.remove(f,S,B);this.onlineScreenService_.update()};
_.e.updateName=function(f,S,B,G){this.localScreenService_.contains(f)?this.localScreenService_.updateName(f,S,B,G):(f="Updating name of unknown screen: "+f.name,In(this.JSC$17587_logName_,f),G(Error(f)))};
_.e.getScreens=function(f){return f?this.screens:jyn(this.screens,_.wp(this.automaticScreens_,function(S){return!this.contains(S)},this))};
_.e.JSC$17602_getOnlineScreens=function(){return _.wp(this.getScreens(!0),function(f){return this.onlineScreenService_.isOnline(f.id)},this)};
var p12=function(f,S,B,G,g,b){f.info("getAutomaticScreenByIds "+B+" / "+S);B||(B=f.deviceToScreenId_[S]);var z=f.getScreens(),X=B?Le(z,B):null;B&&(f.disableAutomaticScreenCache_||X)||(X=Le(z,S));if(X){X.uuid=S;var w=yY(f,X);DGu(f.onlineScreenService_,w,function(F){g(F?w:null)})}else B?Ce2(f,B,(0,_.$A)(function(F){var V=yY(this,new xx({name:G,
screenId:B,loungeToken:F,dialId:S||""}));DGu(this.onlineScreenService_,V,function(J){g(J?V:null)})},f),b):g(null)};
Mq.prototype.JSC$17602_getScreenByPollingPairingCode=function(f,S,B,G,g,b){var z=this;this.info("getDialScreenByPairingCode "+f+" / "+S);var X=new OWY(this.JSC$17600_http_,f,S,B,G);X.subscribe("pairingComplete",function(w,F){_.cd(X);g(yY(z,w),F)});
X.subscribe("pairingFailed",function(w){_.cd(X);b(w)});
X.start();return(0,_.$A)(X.stop,X)};
var AvM=function(f,S){for(var B=f.screens.length,G=0;G<B;++G)if(f.screens[G].name==S)return f.screens[G];return null};
Mq.prototype.JSC$17602_getScreenByPairingCode=function(f,S,B,G){_.wO(sG(this.JSC$17600_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:f},timeout:5E3,onSuccess:(0,_.$A)(function(g,b){g=new xx(b.screen||{});if(!g.name||AvM(this,g.name)){a:{b=g.name;for(var z=2,X=S(b,z);AvM(this,X);){z++;if(z>20)break a;X=S(b,z)}b=X}g.name=b}B(yY(this,g))},this),
onError:(0,_.$A)(function(g){G(Error("Ik`"+g.status))},this),
onTimeout:(0,_.$A)(function(){G(Error("Jk"))},this)})};
var NU2=function(f,S,B){DGu(f.onlineScreenService_,S,B)};
Mq.prototype.disposeInternal=function(){_.cd(this.localScreenService_);_.cd(this.onlineScreenService_);Mq.superClass_.disposeInternal.call(this)};
var Ce2=function(f,S,B,G){f.info("requestLoungeToken_ for "+S);var g={postParams:{screen_ids:S},method:"POST",context:f,onSuccess:function(b,z){b=z&&z.screens||[];b[0]&&b[0].screenId==S?B(b[0].loungeToken):G(Error("Kk"))},
onError:function(){G(Error("Lk"))}};
_.wO(sG(f.JSC$17600_http_,"/pairing/get_lounge_token_batch"),g)},MRY=function(f){f.screens=f.localScreenService_.getScreens();
for(var S=_.$v.transpose(f.deviceToScreenId_),B=f.screens.length,G=0;G<B;++G){var g=f.screens[G];g.uuid=S[g.id]||""}f.info("Updated manual screens: "+Lj2(f.screens))};
Mq.prototype.handleScreenChange_=function(){MRY(this);this.publish("screenChange");this.onlineScreenService_.update()};
var kln=function(f){ZWu(f);f.localScreenService_=new Nq(f.JSC$17600_http_);f.localScreenService_.subscribe("screenChange",(0,_.$A)(f.handleScreenChange_,f));MRY(f);f.disableAutomaticScreenCache_||(f.automaticScreens_=q2o(_.wQ("yt-remote-automatic-screen-cache")||[]));ZWu(f);f.info("Initializing automatic screens: "+Lj2(f.automaticScreens_));f.onlineScreenService_=new aZ(f.JSC$17600_http_,(0,_.$A)(f.getScreens,f,!0));f.onlineScreenService_.subscribe("screenChange",(0,_.$A)(function(){this.publish("onlineScreenChange")},
f))},yY=function(f,S){var B=f.get(S.id);
B?(B.uuid=S.uuid,S=B):((B=Le(f.automaticScreens_,S.uuid))?(B.id=S.id,B.token=S.token,S=B):f.automaticScreens_.push(S),f.disableAutomaticScreenCache_||tRn(f));ZWu(f);f.deviceToScreenId_[S.uuid]=S.id;_.Xw("yt-remote-device-id-map",f.deviceToScreenId_,31536E3);return S},tRn=function(f){f=_.wp(f.automaticScreens_,function(S){return S.idType!="shortLived"});
_.Xw("yt-remote-automatic-screen-cache",_.Yv(f,iWu))},ZWu=function(f){f.deviceToScreenId_=_.wQ("yt-remote-device-id-map")||{}};
Mq.prototype.dispose=Mq.prototype.dispose;_.Rm(Zo,_.cT);var Wa=function(f,S){f.screen_=S;f.publish("sessionScreen",f.screen_)},u1e=function(f,S){f.screen_&&(f.screen_.token=S,yY(f.JSC$17604_screenService_,f.screen_));
f.publish("sessionScreen",f.screen_)};
Zo.prototype.onSessionStopped=function(f){this.isDisposed()||(f&&(ca(this,""+f),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
Zo.prototype.info=function(f){In(this.JSC$17604_logName_,f)};
var ca=function(f,S){In(f.JSC$17604_logName_,S)};
Zo.prototype.JSC$17606_getCastSession=function(){return null};
Zo.prototype.setDisplayStatus=function(f){var S=this.receiver_;f?(S.displayStatus=new chrome.cast.ReceiverDisplayStatus(f,[]),S.displayStatus.showStop=!0):S.displayStatus=null;chrome.cast.setReceiverDisplayStatus(S,(0,_.$A)(function(){this.info("Updated receiver status for "+S.friendlyName+": "+f)},this),(0,_.$A)(function(){ca(this,"Failed to update receiver status for: "+S.friendlyName)},this))};
Zo.prototype.disposeInternal=function(){this.setDisplayStatus("");Zo.superClass_.disposeInternal.call(this)};var lN=function(f,S,B){Zo.call(this,f,S,"CastSession");var G=this;this.config_=B;this.JSC$17609_session_=null;this.JSC$17609_boundSessionUpdate_=(0,_.$A)(this.JSC$17611_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.$A)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.mE(function(){aSB(G,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$17609_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$17609_isInitLoungeToken_=!1;this.JSC$17609_lastLoungeTokenRefreshError_="unknown"};
_.q(lN,Zo);_.e=lN.prototype;
_.e.setCastSession=function(f){if(this.JSC$17609_session_){if(this.JSC$17609_session_==f)return;ca(this,"Overriding cast session with new session object");yvu(this);this.JSC$17609_isInitLoungeToken_=!1;this.JSC$17609_lastLoungeTokenRefreshError_="unknown";this.JSC$17609_session_.removeUpdateListener(this.JSC$17609_boundSessionUpdate_);this.JSC$17609_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$17609_session_=f;this.JSC$17609_session_.addUpdateListener(this.JSC$17609_boundSessionUpdate_);this.JSC$17609_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);WkY(this,"getMdxSessionStatus")};
_.e.launchWithParams=function(f){this.info("launchWithParams no-op for Cast: "+(0,_.ET)(f))};
_.e.stop=function(){if(this.JSC$17609_session_)this.JSC$17609_session_.stop((0,_.$A)(function(){this.onSessionStopped()},this),(0,_.$A)(function(){this.onSessionStopped(Error("Mk"))},this));
else this.onSessionStopped(Error("Nk"))};
_.e.setDisplayStatus=function(){};
_.e.disposeInternal=function(){this.info("disposeInternal");yvu(this);this.JSC$17609_session_&&(this.JSC$17609_session_.removeUpdateListener(this.JSC$17609_boundSessionUpdate_),this.JSC$17609_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$17609_session_=null;Zo.prototype.disposeInternal.call(this)};
var lSX=function(f,S){_.Ry(f.getLoungeTokenTimeoutKey_);f.getLoungeTokenTimeoutKey_=0;S==0?cvu(f):f.getLoungeTokenTimeoutKey_=_.mE(function(){cvu(f)},S)},cvu=function(f){WkY(f,"getLoungeToken");
_.Ry(f.onLoungeTokenTimeoutKey_);f.onLoungeTokenTimeoutKey_=_.mE(function(){fro(f,null)},3E4)},WkY=function(f,S){f.info("sendYoutubeMessage_: "+S+" "+(0,_.ET)(void 0));
var B={};B.type=S;f.JSC$17609_session_?f.JSC$17609_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",B,function(){},(0,_.$A)(function(){ca(this,"Failed to send message: "+S+".")},f)):ca(f,"Sending yt message without session: "+(0,_.ET)(B))};
lN.prototype.onYoutubeMessage_=function(f,S){if(!this.isDisposed())if(S)if(S=(0,_.Qw)(S),_.og(S))switch(f=""+S.type,S=S.data||{},this.info("onYoutubeMessage_: "+f+" "+(0,_.ET)(S)),f){case "mdxSessionStatus":aSB(this,S);break;case "loungeToken":fro(this,S);break;default:ca(this,"Unknown youtube message: "+f)}else ca(this,"Unable to parse message.");else ca(this,"No data in message.")};
var oZu=function(f,S){if(S)f.info("onConnectedScreenId_: Received screenId: "+S),f.screen_&&f.screen_.id==S||f.getScreen_(S,function(B){Wa(f,B)},function(){return f.onSessionStopped()},5);
else f.onSessionStopped(Error("Ok"))},BY2=function(f,S,B){f.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(S));
var G=new xx(S);SXu(f,G,function(g){g?(f.JSC$17609_isInitLoungeToken_=!0,yY(f.JSC$17604_screenService_,G),Wa(f,G),f.JSC$17609_lastLoungeTokenRefreshError_="unknown",lSX(f,B)):(_.Dt(Error("Pk`"+JSON.stringify(S))),f.onSessionStopped())},5)},aSB=function(f,S){_.Ry(f.sessionStatusTimeoutKey_);
f.sessionStatusTimeoutKey_=0;if(S)f.config_.enableCastLoungeToken&&S.loungeToken?S.deviceId?f.screen_&&f.screen_.uuid==S.deviceId||(S.loungeTokenRefreshIntervalMs?BY2(f,{name:f.receiver_.friendlyName,screenId:S.screenId,loungeToken:S.loungeToken,dialId:S.deviceId,screenIdType:"shortLived"},S.loungeTokenRefreshIntervalMs):(_.Dt(Error("Rk`"+JSON.stringify(S))),oZu(f,S.screenId))):(_.Dt(Error("Qk`"+JSON.stringify(S))),oZu(f,S.screenId)):oZu(f,S.screenId);else f.onSessionStopped(Error("Ok"))},fro=function(f,
S){_.Ry(f.onLoungeTokenTimeoutKey_);
f.onLoungeTokenTimeoutKey_=0;var B=null;if(S)if(S.loungeToken){var G;((G=f.screen_)==null?void 0:G.token)==S.loungeToken&&(B="staleLoungeToken")}else B="missingLoungeToken";else B="noLoungeTokenResponse";B?(f.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(S)+", error: "+B)),f.JSC$17609_lastLoungeTokenRefreshError_=B,lSX(f,3E4)):(u1e(f,S.loungeToken),f.JSC$17609_isInitLoungeToken_=!1,f.JSC$17609_lastLoungeTokenRefreshError_="unknown",lSX(f,S.loungeTokenRefreshIntervalMs))};
lN.prototype.getScreen_=function(f,S,B,G){_.Ry(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;p12(this.JSC$17604_screenService_,this.receiver_.label,f,this.receiver_.friendlyName,(0,_.$A)(function(g){g?S(g):G>=0?(ca(this,"Screen "+f+" appears to be offline. "+G+" retries left."),this.getScreenTimeoutKey_=_.mE((0,_.$A)(this.getScreen_,this,f,S,B,G-1),300)):B(Error("Sk"))},this),B)};
var SXu=function(f,S,B,G){_.Ry(f.JSC$17609_checkScreenAvailabilityTimeoutKey_);f.JSC$17609_checkScreenAvailabilityTimeoutKey_=0;NU2(f.JSC$17604_screenService_,S,function(g){g||G<0?B(g):f.JSC$17609_checkScreenAvailabilityTimeoutKey_=_.mE(function(){SXu(f,S,B,G-1)},300)})};
lN.prototype.JSC$17606_getCastSession=function(){return this.JSC$17609_session_};
lN.prototype.JSC$17611_onSessionUpdate_=function(f){this.isDisposed()||f||(ca(this,"Cast session died."),this.onSessionStopped())};
var yvu=function(f){_.Ry(f.getScreenTimeoutKey_);f.getScreenTimeoutKey_=0;_.Ry(f.JSC$17609_checkScreenAvailabilityTimeoutKey_);f.JSC$17609_checkScreenAvailabilityTimeoutKey_=0;_.Ry(f.sessionStatusTimeoutKey_);f.sessionStatusTimeoutKey_=0;_.Ry(f.onLoungeTokenTimeoutKey_);f.onLoungeTokenTimeoutKey_=0;_.Ry(f.getLoungeTokenTimeoutKey_);f.getLoungeTokenTimeoutKey_=0};var f$=function(f,S,B,G){Zo.call(this,f,S,"DialSession");this.config_=G;this.JSC$17613_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$17613_theme_=B;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$17613_deferredLaunchDeadlineTimer_=NaN;this.JSC$17613_boundSessionUpdate_=(0,_.$A)(this.JSC$17615_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$17613_checkScreenAvailabilityTimeoutKey_=0;this.JSC$17613_isInitLoungeToken_=!1;this.JSC$17613_lastLoungeTokenRefreshError_="unknown"};
_.q(f$,Zo);f$.prototype.setCastSession=function(f){this.JSC$17613_session_=f;this.JSC$17613_session_.addUpdateListener(this.JSC$17613_boundSessionUpdate_)};
f$.prototype.launchWithParams=function(f){this.connectData_=f;this.deferredLaunch_()};
f$.prototype.stop=function(){GE$(this);if(this.JSC$17613_session_)this.JSC$17613_session_.stop((0,_.$A)(this.onSessionStopped,this,null),(0,_.$A)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
f$.prototype.disposeInternal=function(){GE$(this);this.JSC$17613_session_&&this.JSC$17613_session_.removeUpdateListener(this.JSC$17613_boundSessionUpdate_);this.JSC$17613_session_=null;Zo.prototype.disposeInternal.call(this)};
var gZe=function(f){var S;return!!(f.config_.enableDialLoungeToken&&((S=f.JSC$17613_session_)==null?0:S.getDialAppInfo))},efX=function(f){f.cancelPolling_=f.JSC$17604_screenService_.JSC$17602_getScreenByPollingPairingCode(f.reversePairingCode_,f.receiver_.label,f.receiver_.friendlyName,gZe(f),function(S,B){f.cancelPolling_=function(){};
f.JSC$17613_isInitLoungeToken_=!0;Wa(f,S);S.idType=="shortLived"&&B>0&&oq(f,B)},function(S){f.cancelPolling_=function(){};
f.onSessionStopped(S)})};
f$.prototype.JSC$17615_onSessionUpdate_=function(f){this.isDisposed()||f||(ca(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var bDo=function(f){var S={};S.pairingCode=f.reversePairingCode_;S.theme=f.JSC$17613_theme_;vcu()&&(S.env_useStageMdx=1);return _.hY(S)},mwe=function(f){return new Promise(function(S){f.reversePairingCode_=GlY();
if(f.connectData_){var B=new chrome.cast.DialLaunchResponse(!0,bDo(f));S(B);efX(f)}else f.deferredLaunch_=function(){_.Ry(f.JSC$17613_deferredLaunchDeadlineTimer_);f.deferredLaunch_=function(){};
f.JSC$17613_deferredLaunchDeadlineTimer_=NaN;var G=new chrome.cast.DialLaunchResponse(!0,bDo(f));S(G);efX(f)},f.JSC$17613_deferredLaunchDeadlineTimer_=_.mE(function(){f.deferredLaunch_()},100)})},Rfo=function(f,S,B){f.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(S));
var G=new xx(S);return(new Promise(function(g){zfX(f,G,function(b){b?(f.JSC$17613_isInitLoungeToken_=!0,yY(f.JSC$17604_screenService_,G),Wa(f,G),oq(f,B)):_.Dt(Error("Uk`"+JSON.stringify(S)));g(b)},5)})).then(function(g){return g?new chrome.cast.DialLaunchResponse(!1):mwe(f)})},Xno=function(f,S){var B=f.launchData_.receiver.label,G=f.receiver_.friendlyName;
return(new Promise(function(g){p12(f.JSC$17604_screenService_,B,S,G,function(b){b&&b.token&&Wa(f,b);g(b)},function(b){ca(f,"Failed to get DIAL screen: "+b);
g(null)})})).then(function(g){return g&&g.token?new chrome.cast.DialLaunchResponse(!1):mwe(f)})},zfX=function(f,S,B,G){_.Ry(f.JSC$17613_checkScreenAvailabilityTimeoutKey_);
f.JSC$17613_checkScreenAvailabilityTimeoutKey_=0;NU2(f.JSC$17604_screenService_,S,function(g){g||G<0?B(g):f.JSC$17613_checkScreenAvailabilityTimeoutKey_=_.mE(function(){zfX(f,S,B,G-1)},300)})},oq=function(f,S){f.info("getDialAppInfoWithTimeout_ "+S);
gZe(f)&&(_.Ry(f.getDialAppInfoTimeoutKey_),f.getDialAppInfoTimeoutKey_=0,S==0?wn$(f):f.getDialAppInfoTimeoutKey_=_.mE(function(){wn$(f)},S))},wn$=function(f){gZe(f)&&f.JSC$17613_session_.getDialAppInfo(function(S){f.info("getDialAppInfo dialLaunchData: "+JSON.stringify(S));
S=S.extraData||{};var B=null;if(S.loungeToken){var G;((G=f.screen_)==null?void 0:G.token)==S.loungeToken&&(B="staleLoungeToken")}else B="missingLoungeToken";B?(f.JSC$17613_lastLoungeTokenRefreshError_=B,oq(f,3E4)):(f.JSC$17613_isInitLoungeToken_=!1,f.JSC$17613_lastLoungeTokenRefreshError_="unknown",u1e(f,S.loungeToken),oq(f,S.loungeTokenRefreshIntervalMs))},function(S){f.info("getDialAppInfo error: "+S);
f.JSC$17613_lastLoungeTokenRefreshError_="noLoungeTokenResponse";oq(f,3E4)})},GE$=function(f){_.Ry(f.JSC$17613_checkScreenAvailabilityTimeoutKey_);
f.JSC$17613_checkScreenAvailabilityTimeoutKey_=0;_.Ry(f.getDialAppInfoTimeoutKey_);f.getDialAppInfoTimeoutKey_=0;f.cancelPolling_();f.cancelPolling_=function(){};
_.Ry(f.JSC$17613_deferredLaunchDeadlineTimer_)};var SV=function(f,S){Zo.call(this,f,S,"ManualSession");this.JSC$17617_deferredLaunchDeadlineTimer_=_.mE((0,_.$A)(this.launchWithParams,this,null),150)};
_.q(SV,Zo);SV.prototype.stop=function(){this.onSessionStopped()};
SV.prototype.setCastSession=function(){};
SV.prototype.launchWithParams=function(){_.Ry(this.JSC$17617_deferredLaunchDeadlineTimer_);this.JSC$17617_deferredLaunchDeadlineTimer_=NaN;var f=Le(this.JSC$17604_screenService_.getScreens(),this.receiver_.label);if(f)Wa(this,f);else this.onSessionStopped(Error("Vk"))};
SV.prototype.disposeInternal=function(){_.Ry(this.JSC$17617_deferredLaunchDeadlineTimer_);this.JSC$17617_deferredLaunchDeadlineTimer_=NaN;Zo.prototype.disposeInternal.call(this)};var yQ=function(f,S){_.cT.call(this);this.config_=S;this.JSC$17620_screenService_=f;this.JSC$17620_appId_=S.appId||"233637DE";this.JSC$17620_theme_=S.theme||"cl";this.disableDial_=S.disableCastApi||!1;this.forceMirroring_=S.forceMirroring||!1;this.JSC$17620_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.$A)(this.onReceiverAction_,this)};
_.q(yQ,_.cT);
yQ.prototype.init=function(f,S){chrome.cast.timeout.requestSession=3E4;var B=new chrome.cast.SessionRequest(this.JSC$17620_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.K("desktop_enable_cast_connect")&&(B.androidReceiverCompatible=!0);this.disableDial_||(B.dialRequest=new chrome.cast.DialRequest("YouTube"));var G=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;f=f||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var g=(0,_.$A)(this.onReceiverUpdated_,
this);B=new chrome.cast.ApiConfig(B,(0,_.$A)(this.onSessionEstablished_,this),g,G,f);B.customDialLaunchCallback=(0,_.$A)(this.onDialLaunchRequested_,this);chrome.cast.initialize(B,(0,_.$A)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),YfX(),this.JSC$17620_screenService_.subscribe("onlineScreenChange",(0,_.$A)(this.JSC$17622_onScreenChange_,this)),this.customReceivers_=hfo(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.$A)(function(b){this.warn_("Failed to set initial custom receivers: "+(0,_.ET)(b))},this)),this.publish("yt-remote-cast2-availability-change",Bj(this)),S(!0))},this),(0,_.$A)(function(b){this.warn_("Failed to initialize API: "+(0,_.ET)(b));
S(!1)},this))};
yQ.prototype.setConnectedScreenStatus=function(f,S){Gg("Setting connected screen ID: "+f+" -> "+S);if(this.JSC$17620_session_){var B=this.JSC$17620_session_.screen_;if(!f||B&&B.id!=f)Gg("Unsetting old screen status: "+this.JSC$17620_session_.receiver_.friendlyName),mO(this,null)}if(f&&S){if(!this.JSC$17620_session_){f=Le(this.JSC$17620_screenService_.getScreens(),f);if(!f){Gg("setConnectedScreenStatus: Unknown screen.");return}if(f.idType=="shortLived"){Gg("setConnectedScreenStatus: Screen with id type to be short lived.");
return}B=TYX(this,f);B||(Gg("setConnectedScreenStatus: Connected receiver not custom..."),B=new chrome.cast.Receiver(f.uuid?f.uuid:f.id,f.name),B.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(B),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.$A)(function(G){this.warn_("Failed to set initial custom receivers: "+(0,_.ET)(G))},this)));
Gg("setConnectedScreenStatus: new active receiver: "+B.friendlyName);mO(this,new SV(this.JSC$17620_screenService_,B),!0)}this.JSC$17620_session_.setDisplayStatus(S)}else Gg("setConnectedScreenStatus: no screen.")};
var TYX=function(f,S){return S?_.DN(f.customReceivers_,function(B){return EG(S,B.label)},f):null};
yQ.prototype.setLaunchParams=function(f){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$17620_session_?this.JSC$17620_session_.launchWithParams(f):this.warn_("Setting connection data without a session")};
yQ.prototype.JSC$17622_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$17620_session_?(this.JSC$17620_session_.stop(),mO(this,null)):Gg("Stopping non-existing session")};
yQ.prototype.requestSession=function(){chrome.cast.requestSession((0,_.$A)(this.onSessionEstablished_,this),(0,_.$A)(this.onSessionRequestFailed_,this))};
yQ.prototype.disposeInternal=function(){this.JSC$17620_screenService_.unsubscribe("onlineScreenChange",(0,_.$A)(this.JSC$17622_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.uK(_.U6("yt.mdx.remote.debug.handlers_")||[],qfu);_.cd(this.JSC$17620_session_);_.cT.prototype.disposeInternal.call(this)};
var Gg=function(f){In("Controller",f)};
yQ.prototype.warn_=function(f){In("Controller",f)};
var qfu=function(f){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(f)},Bj=function(f){return f.hasCastReceiver_||!!f.customReceivers_.length||!!f.JSC$17620_session_},mO=function(f,S,B){S!=f.JSC$17620_session_&&(_.cd(f.JSC$17620_session_),(f.JSC$17620_session_=S)?(B?f.publish("yt-remote-cast2-receiver-resumed",S.receiver_):f.publish("yt-remote-cast2-receiver-selected",S.receiver_),S.subscribe("sessionScreen",(0,_.$A)(f.onSessionScreen_,f,S)),S.subscribe("sessionFailed",
function(){return FiM(f,S)}),S.screen_?f.publish("yt-remote-cast2-session-change",S.screen_):B&&f.JSC$17620_session_.launchWithParams(null)):f.publish("yt-remote-cast2-session-change",null))},FiM=function(f,S){f.JSC$17620_session_==S&&f.publish("yt-remote-cast2-session-failed")};
_.e=yQ.prototype;_.e.onSessionScreen_=function(f,S){this.JSC$17620_session_==f&&(S||mO(this,null),this.publish("yt-remote-cast2-session-change",S))};
_.e.onReceiverAction_=function(f,S){if(!this.isDisposed())if(f)switch(f.friendlyName=chrome.cast.unescape(f.friendlyName),Gg("onReceiverAction_ "+f.label+" / "+f.friendlyName+"-- "+S),S){case chrome.cast.ReceiverAction.CAST:if(this.JSC$17620_session_)if(this.JSC$17620_session_.receiver_.label!=f.label)Gg("onReceiverAction_: Stopping active receiver: "+this.JSC$17620_session_.receiver_.friendlyName),this.JSC$17620_session_.stop();else{Gg("onReceiverAction_: Casting to active receiver.");this.JSC$17620_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$17620_session_.screen_);break}switch(f.receiverType){case chrome.cast.ReceiverType.CUSTOM:mO(this,new SV(this.JSC$17620_screenService_,f));break;case chrome.cast.ReceiverType.DIAL:mO(this,new f$(this.JSC$17620_screenService_,f,this.JSC$17620_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:mO(this,new lN(this.JSC$17620_screenService_,f,this.config_));break;default:this.warn_("Unknown receiver type: "+f.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$17620_session_&&
this.JSC$17620_session_.receiver_.label==f.label?this.JSC$17620_session_.stop():this.warn_("Stopping receiver w/o session: "+f.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.e.onDialLaunchRequested_=function(f){if(this.isDisposed())return Promise.reject(Error("Wk"));var S=f.receiver;S.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+S.friendlyName),S.receiverType=chrome.cast.ReceiverType.DIAL);var B=this.JSC$17620_session_?this.JSC$17620_session_.receiver_:null;if(!B||B.label!=S.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+S.friendlyName),Promise.reject(Error("Xk"));if(B&&B.label==S.label&&B.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$17620_session_.screen_)return Gg("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$17620_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+B.receiverType+'" to "dial" for '+S.friendlyName);mO(this,new f$(this.JSC$17620_screenService_,S,this.JSC$17620_theme_,this.config_))}S=this.JSC$17620_session_;S.launchData_=f;S.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(f=S.launchData_.extraData||{},B=f.screenId||null,gZe(S)&&f.loungeToken?f.loungeTokenRefreshIntervalMs?f=Rfo(S,{name:S.receiver_.friendlyName,screenId:f.screenId,loungeToken:f.loungeToken,dialId:S.launchData_.receiver.label,screenIdType:"shortLived"},f.loungeTokenRefreshIntervalMs):(_.Dt(Error("Tk`"+JSON.stringify(f))),f=Xno(S,B)):f=Xno(S,B)):f=mwe(S);return f};
_.e.onSessionEstablished_=function(f){var S=this;if(!this.isDisposed()&&!this.forceMirroring_){Gg("New cast session ID: "+f.sessionId);var B=f.receiver;if(B.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$17620_session_)if(B.receiverType==chrome.cast.ReceiverType.CAST)Gg("Got resumed cast session before resumed mdx connection."),B.friendlyName=chrome.cast.unescape(B.friendlyName),mO(this,new lN(this.JSC$17620_screenService_,B,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var G=this.JSC$17620_session_.receiver_,g=Le(this.JSC$17620_screenService_.getScreens(),G.label);g&&EG(g,B.label)&&G.receiverType!=chrome.cast.ReceiverType.CAST&&B.receiverType==chrome.cast.ReceiverType.CAST&&(Gg("onSessionEstablished_: manual to cast session change "+B.friendlyName),_.cd(this.JSC$17620_session_),this.JSC$17620_session_=new lN(this.JSC$17620_screenService_,B,this.config_),this.JSC$17620_session_.subscribe("sessionScreen",(0,_.$A)(this.onSessionScreen_,this,this.JSC$17620_session_)),
this.JSC$17620_session_.subscribe("sessionFailed",function(){return FiM(S,S.JSC$17620_session_)}),this.JSC$17620_session_.launchWithParams(null));
this.JSC$17620_session_.setCastSession(f)}}};
_.e.JSC$17622_getCastSession=function(){return this.JSC$17620_session_?this.JSC$17620_session_.JSC$17606_getCastSession():null};
_.e.onSessionRequestFailed_=function(f){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.ET)(f)),f.code!=chrome.cast.ErrorCode.CANCEL&&mO(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.e.onReceiverUpdated_=function(f){Gg("Receiver availability updated: "+f);if(!this.isDisposed()){var S=Bj(this);this.hasCastReceiver_=f==chrome.cast.ReceiverAvailability.AVAILABLE;Bj(this)!=S&&this.publish("yt-remote-cast2-availability-change",Bj(this))}};
var hfo=function(f){var S=f.JSC$17620_screenService_.JSC$17602_getOnlineScreens(),B=f.JSC$17620_session_&&f.JSC$17620_session_.receiver_;f=_.Yv(S,function(G){B&&EG(G,B.label)&&(B=null);var g=G.uuid?G.uuid:G.id,b=TYX(this,G);b?(b.label=g,b.friendlyName=G.name):(b=new chrome.cast.Receiver(g,G.name),b.receiverType=chrome.cast.ReceiverType.CUSTOM);return b},f);
B&&(B.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(B=new chrome.cast.Receiver(B.label,B.friendlyName),B.receiverType=chrome.cast.ReceiverType.CUSTOM),f.push(B));return f};
yQ.prototype.JSC$17622_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=hfo(this),Gg("Updating custom receivers: "+(0,_.ET)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.$A)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",Bj(this)))};
yQ.prototype.setLaunchParams=yQ.prototype.setLaunchParams;yQ.prototype.setConnectedScreenStatus=yQ.prototype.setConnectedScreenStatus;yQ.prototype.stopSession=yQ.prototype.JSC$17622_stopSession;yQ.prototype.getCastSession=yQ.prototype.JSC$17622_getCastSession;yQ.prototype.requestSession=yQ.prototype.requestSession;yQ.prototype.init=yQ.prototype.init;yQ.prototype.dispose=yQ.prototype.dispose;var c22=[];var VE$=function(f){f.audioTrackId=null;f.trackData=null;f.playerState=-1;f.hasPrevious=!1;f.hasNext=!1;f.playerTime_=0;f.playerTimeAt_=_.zd();f.seekableStart_=0;f.seekableEnd_=0;f.duration_=0;f.loadedTime=0;f.liveIngestionTime_=NaN;f.isLive_=!1};
_.e=Wb.prototype;
_.e.reset=function(f){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;f&&(this.index=f.index,this.listId=f.listId,this.videoId=f.videoId,this.playerState=f.playerState,this.volume=f.volume,this.muted=f.muted,this.audioTrackId=f.audioTrackId,this.trackData=f.trackData,this.hasPrevious=f.hasPrevious,this.hasNext=f.hasNext,this.playerTime_=f.playerTime,this.playerTimeAt_=f.playerTimeAt,this.seekableStart_=f.seekableStart,this.seekableEnd_=f.seekableEnd,this.duration_=f.duration,this.loadedTime=
f.loadedTime,this.liveIngestionTime_=f.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.e.stopPlayer=function(){this.index=-1;this.videoId="";VE$(this)};
_.e.isPlaying=function(){return this.playerState==1};
_.e.isBuffering=function(){return this.playerState==3};
_.e.isAdPlaying=function(){return this.playerState==1081};
var zg=function(f,S){f.playerTime_=S;f.playerTimeAt_=_.zd()},J0o=function(f){switch(f.playerState){case 1:case 1081:return(_.zd()-f.playerTimeAt_)/1E3+f.playerTime_;
case -1E3:return 0}return f.playerTime_};
Wb.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.zd()-this.playerTimeAt_)/1E3:0):this.duration_};
var POY=function(f,S,B){var G=f.videoId;f.videoId=S;f.index=B;S!=G&&VE$(f)},vZB=function(f){var S={};
S.index=f.index;S.listId=f.listId;S.videoId=f.videoId;S.playerState=f.playerState;S.volume=f.volume;S.muted=f.muted;S.audioTrackId=f.audioTrackId;S.trackData=_.$v.unsafeClone(f.trackData);S.hasPrevious=f.hasPrevious;S.hasNext=f.hasNext;S.playerTime=f.playerTime_;S.playerTimeAt=f.playerTimeAt_;S.seekableStart=f.seekableStart_;S.seekableEnd=f.seekableEnd_;S.duration=f.duration_;S.loadedTime=f.loadedTime;S.liveIngestionTime=f.liveIngestionTime_;return S};
Wb.prototype.clone=function(){return new Wb(vZB(this))};var Rq=function(f,S){_.cT.call(this);var B=this;this.state_=0;this.connection_=f;this.contextSubscriptions_=[];this.actionQueue_=new aco;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.$A)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.$A)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.$A)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.$A)(this.onCloudviewAvailabilityChange_,this);var G=0;f?(G=f.getProxyState(),
G!=3&&(f.subscribe("proxyStateChange",this.setState_,this),KiM(this))):G=3;G!=0&&(S?this.setState_(G):_.mE(function(){B.setState_(G)},0));
(f=SLM())&&dwY(this,f);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.q(Rq,_.cT);Rq.prototype.getState=function(){return this.state_};
Rq.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
Rq.prototype.reconnect=function(){this.connection_.reconnect()};
var Xm=function(f){return new Wb(f.connection_.getPlayerContextData())};
_.e=Rq.prototype;_.e.play=function(){wr(this)?(this.castMedia_?this.castMedia_.play(null,_.d8,iDu(this,"play")):hC(this,"play"),HDu(this,1,J0o(Xm(this))),this.publish("remotePlayerChange")):Tg(this,this.play)};
_.e.pause=function(){wr(this)?(this.castMedia_?this.castMedia_.pause(null,_.d8,iDu(this,"pause")):hC(this,"pause"),HDu(this,2,J0o(Xm(this))),this.publish("remotePlayerChange")):Tg(this,this.pause)};
_.e.seekTo=function(f){if(wr(this)){if(this.castMedia_){var S=Xm(this),B=new chrome.cast.media.SeekRequest;B.currentTime=f;S.isPlaying()||S.isBuffering()?B.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:B.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(B,_.d8,iDu(this,"seekTo",{newTime:f}))}else hC(this,"seekTo",{newTime:f});HDu(this,3,f);this.publish("remotePlayerChange")}else Tg(this,_.vK(this.seekTo,f))};
_.e.stop=function(){if(wr(this)){this.castMedia_?this.castMedia_.stop(null,_.d8,iDu(this,"stopVideo")):hC(this,"stopVideo");var f=Xm(this);f.stopPlayer();Fm(this,f);this.publish("remotePlayerChange")}else Tg(this,this.stop)};
_.e.setVolume=function(f,S){if(wr(this)){var B=Xm(this);if(this.castSession_){if(B.volume!=f){var G=Math.round(f)/100;this.castSession_.setReceiverVolumeLevel(G,(0,_.$A)(function(){UG("set receiver volume: "+G)},this),(0,_.$A)(function(){this.warn_("failed to set receiver volume.")},this))}B.muted!=S&&this.castSession_.setReceiverMuted(S,(0,_.$A)(function(){UG("set receiver muted: "+S)},this),(0,_.$A)(function(){this.warn_("failed to set receiver muted.")},this))}else{var g={volume:f,
muted:S};B.volume!=-1&&(g.delta=f-B.volume);hC(this,"setVolume",g)}B.muted=S;B.volume=f;Fm(this,B)}else Tg(this,_.vK(this.setVolume,f,S))};
_.e.setAudioTrack=function(f,S){wr(this)?(S=S.getLanguageInfo().getId(),hC(this,"setAudioTrack",{videoId:f,audioTrackId:S}),f=Xm(this),f.audioTrackId=S,Fm(this,f)):Tg(this,_.vK(this.setAudioTrack,f,S))};
_.e.addVideo=function(f){wr(this)?hC(this,"addVideo",{videoId:f}):Tg(this,_.vK(this.addVideo,f))};
_.e.addPlaylist=function(f){wr(this)?hC(this,"addVideos",{listId:f}):Tg(this,_.vK(this.addPlaylist,f))};
_.e.addVideos=function(f){f.length==0?this.warn_("Ignore add videos request due to empty list"):wr(this)?hC(this,"addVideos",{videoIds:f.join(",")}):Tg(this,_.vK(this.addVideos,f))};
_.e.JSC$17632_removeVideo=function(f){wr(this)?hC(this,"removeVideo",{videoId:f}):Tg(this,_.vK(this.JSC$17632_removeVideo,f))};
_.e.JSC$17632_insertVideo=function(f){wr(this)?hC(this,"insertVideo",{videoId:f}):Tg(this,_.vK(this.JSC$17632_insertVideo,f))};
_.e.playVideo=function(f,S,B,G,g,b,z){G=G===void 0?null:G;g=g===void 0?null:g;b=b===void 0?null:b;z=z===void 0?null:z;var X=Xm(this),w={videoId:f};B!==void 0&&(w.currentIndex=B);POY(X,f,B||0);S!==void 0&&(zg(X,S),w.currentTime=S);G&&(w.listId=G);g&&(w.playerParams=g);b&&(w.clickTrackingParams=b);z&&(w.locationInfo=(0,_.ET)(z));hC(this,"setPlaylist",w);G||Fm(this,X)};
_.e.nextVideo=function(f,S){if(wr(this)){if(f&&S){var B=Xm(this);POY(B,f,S);Fm(this,B)}hC(this,"next")}else Tg(this,_.vK(this.nextVideo,f,S))};
_.e.clearPlaylist=function(){if(wr(this)){hC(this,"clearPlaylist");var f=Xm(this);f.reset();Fm(this,f);this.publish("remotePlayerChange")}else Tg(this,this.clearPlaylist)};
_.e.dispose=function(){if(this.state_!=3){var f=this.state_;this.state_=3;this.publish("proxyStateChange",f,this.state_)}_.cT.prototype.dispose.call(this)};
_.e.disposeInternal=function(){qXu(this);this.connection_=null;this.actionQueue_.clear();dwY(this,null);_.cT.prototype.disposeInternal.call(this)};
var KiM=function(f){_.AA("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(S){this.contextSubscriptions_.push(this.connection_.subscribe(S,_.vK(this.onProxyEvent_,S),this))},f)},qXu=function(f){_.AA(f.contextSubscriptions_,function(S){this.connection_.unsubscribeByKey(S)},f);
f.contextSubscriptions_.length=0},wr=function(f){return f.getState()==1},Tg=function(f,S){f.actionQueue_.getCount()<50&&f.actionQueue_.enqueue(S)},HDu=function(f,S,B){var G=Xm(f);
zg(G,B);G.playerState!=-1E3&&(G.playerState=S);Fm(f,G)},hC=function(f,S,B){f.connection_.sendMessage(S,B)},Fm=function(f,S){qXu(f);
f.connection_.setPlayerContextData(vZB(S));KiM(f)};
Rq.prototype.setState_=function(f){if((f!=this.state_||f==2)&&this.state_!=3&&f!=0){var S=this.state_;this.state_=f;this.publish("proxyStateChange",S,f);if(f==1)for(;!this.actionQueue_.isEmpty();)f=this.actionQueue_,UIO(f),f.front_.pop().apply(this);else f==3&&this.dispose()}};
Rq.prototype.onProxyEvent_=function(f,S){this.publish(f,S)};
var dwY=function(f,S){f.castSession_&&(f.castSession_.removeUpdateListener(f.boundCastStatusListener_),f.castSession_.removeMediaListener(f.boundCastMediaListener_),f.onCastMediaChange_(null));f.castSession_=S;if(f.castSession_&&(UG("Setting cast session: "+f.castSession_.sessionId),f.castSession_.addUpdateListener(f.boundCastStatusListener_),f.castSession_.addMediaListener(f.boundCastMediaListener_),f.castSession_.media.length))f.onCastMediaChange_(f.castSession_.media[0])};
Rq.prototype.onCastStatusUpdate_=function(f){if(!f)this.onCastMediaChange_(null),dwY(this,null);else if(this.castSession_.receiver.volume){f=this.castSession_.receiver.volume;var S=Xm(this),B=Math.round(100*f.level||0);if(S.volume!=B||S.muted!=f.muted)UG("Cast volume update: "+f.level+(f.muted?" muted":"")),S.volume=B,S.muted=!!f.muted,Fm(this,S)}};
Rq.prototype.onCastMediaChange_=function(f){UG("Cast media: "+!!f);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=f)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),$wM(this),this.publish("remotePlayerChange")};
var $wM=function(f){var S=f.castMedia_.media,B=f.castMedia_.customData;if(S&&B){var G=Xm(f);S.contentId!=G.videoId&&UG("Cast changing video to: "+S.contentId);G.videoId=S.contentId;G.playerState=B.playerState;zg(G,f.castMedia_.getEstimatedTime());Fm(f,G)}else UG("No cast media video. Ignoring state update.")};
Rq.prototype.onCastMediaUpdate_=function(f){if(f)$wM(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
Rq.prototype.onCloudviewAvailabilityChange_=function(){var f=SLM();f&&dwY(this,f)};
Rq.prototype.warn_=function(f){In("CP",f)};
var iDu=function(f,S,B){return(0,_.$A)(function(G){this.warn_("Failed to "+S+" with cast v2 channel. Error code: "+G.code);G.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+S+" using MDx browser channel."),hC(this,S,B))},f)};var JC=function(f,S,B,G){G=G===void 0?!1:G;_.cT.call(this);var g=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$17639_http_=f;this.enableConnectWithInitialState_=G;this.listeners_.push(_.cU(window,"beforeunload",function(){g.JSC$17642_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new Wb;this.currentScreenId_=S.id;this.currentScreenIdType_=S.idType;this.channelService=Hko(this.JSC$17639_http_,B,this.JSC$17642_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){Qhu(g)});
this.channelService.listen("channelClosed",function(){VV("Channel closed");isNaN(g.connectTimerId_)?kx(!0):kx();g.dispose()});
this.channelService.listen("channelError",function(b){kx();isNaN(g.getReconnectTimeout_())?(b==1&&g.currentScreenIdType_=="shortLived"&&g.publish("browserChannelAuthError",b),VV("Channel error: "+b+" without reconnection"),g.dispose()):(g.reconnecting_=!0,VV("Channel error: "+b+" with reconnection in "+g.getReconnectTimeout_()+" ms"),YXB(g,2))});
this.channelService.listen("channelMessage",function(b){r0$(g,b)});
this.channelService.setLoungeToken(S.token);this.subscribe("remoteQueueChange",function(){var b=g.playerContext_.videoId;zS$()&&_.Xw("yt-remote-session-video-id",b)})};
_.q(JC,_.cT);
JC.prototype.connect=function(f,S){if(S){var B=S.listId,G=S.videoId,g=S.videoIds,b=S.playerParams,z=S.clickTrackingParams,X=S.index,w={videoId:G},F=S.currentTime,V=S.locationInfo;S=S.loopMode;F!==void 0&&(w.currentTime=F<=5?0:F);b&&(w.playerParams=b);V&&(w.locationInfo=V);z&&(w.clickTrackingParams=z);B&&(w.listId=B);g&&g.length>0&&(w.videoIds=g.join(","));X!==void 0&&(w.currentIndex=X);this.enableConnectWithInitialState_&&(w.loopMode=S||"LOOP_MODE_OFF");B&&(this.playerContext_.listId=B);this.playerContext_.videoId=
G;this.playerContext_.index=X||0;this.playerContext_.state=3;zg(this.playerContext_,F);this.autoplayMode_="UNSUPPORTED";B=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";VV("Connecting with "+B+" and params: "+(0,_.ET)(w));this.channelService.connect({method:B,params:(0,_.ET)(w)},f,Ti$())}else VV("Connecting without params"),this.channelService.connect({},f,Ti$());jhB(this)};
JC.prototype.setLoungeToken=function(f){this.channelService.setLoungeToken(f)};
JC.prototype.dispose=function(){this.isDisposed()||(_.WL("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),YXB(this,3));_.cT.prototype.dispose.call(this)};
JC.prototype.disposeInternal=function(){ODz(this);xw$(this);EZM(this);_.Ry(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.Ry(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.seN(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.cT.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var Li2=function(f){return _.DN(f.connectedDevices_,function(S){return S.type=="LOUNGE_SCREEN"})},VV=function(f){In("conn",f)},YXB=function(f,S){f.publish("proxyStateChange",S)},jhB=function(f){f.connectTimerId_=_.mE(function(){VV("Connecting timeout");
f.JSC$17642_disconnect_(1)},2E4)},ODz=function(f){_.Ry(f.connectTimerId_);
f.connectTimerId_=NaN},EZM=function(f){_.Ry(f.reconnectedCheckScreenTimeout_);
f.reconnectedCheckScreenTimeout_=NaN},kEX=function(f){xw$(f);
f.playingSyncTimerId_=_.mE(function(){Pj(f,"getNowPlaying")},2E4)},xw$=function(f){_.Ry(f.playingSyncTimerId_);
f.playingSyncTimerId_=NaN},Qhu=function(f){VV("Channel opened");
f.reconnecting_&&(f.reconnecting_=!1,EZM(f),f.reconnectedCheckScreenTimeout_=_.mE(function(){VV("Timing out waiting for a screen.");f.JSC$17642_disconnect_(1)},15E3))},shO=function(f,S){var B=null;
if(S){var G=Li2(f);G&&(B={clientName:G.clientName,deviceMake:G.brand,deviceModel:G.model,osVersion:G.osVersion})}_.WL("yt.mdx.remote.remoteClient_",B);S&&(ODz(f),EZM(f));B=f.channelService.isChannelOpened()&&isNaN(f.connectTimerId_);S==B?S&&(YXB(f,1),Pj(f,"getSubtitlesTrack")):S?(f.getOtherConnectedRemoteId_()&&f.playerContext_.reset(),YXB(f,1),Pj(f,"getNowPlaying"),nZu(f)):f.JSC$17642_disconnect_(1)},Dw2=function(f,S){var B=S.params.videoId;
delete S.params.videoId;B==f.playerContext_.videoId&&(_.$v.isEmpty(S.params)?f.playerContext_.trackData=null:f.playerContext_.trackData=S.params,f.publish("remotePlayerChange"))},Irn=function(f,S,B){var G=S.params.videoId||S.params.video_id,g=parseInt(S.params.currentIndex,10);
f.playerContext_.listId=S.params.listId||f.playerContext_.listId;POY(f.playerContext_,G,g);f.publish("remoteQueueChange",B)},Uwn=function(f,S){S.params=S.params||{};
Irn(f,S,"NOW_PLAYING_MAY_CHANGE");f.onStateChange_(S);f.publish("autoplayDismissed")};
JC.prototype.onStateChange_=function(f){var S=parseInt(f.params.currentTime||f.params.current_time,10);zg(this.playerContext_,isNaN(S)?0:S);S=parseInt(f.params.state,10);S=isNaN(S)?-1:S;S==-1&&this.playerContext_.playerState==-1E3&&(S=-1E3);this.playerContext_.playerState=S;S=Number(f.params.loadedTime);this.playerContext_.loadedTime=isNaN(S)?0:S;S=Number(f.params.duration);this.playerContext_.duration_=isNaN(S)?0:S;S=this.playerContext_;var B=Number(f.params.liveIngestionTime);S.liveIngestionTime_=
B;S.isLive_=isNaN(B)?!1:!0;S=this.playerContext_;B=Number(f.params.seekableStartTime);f=Number(f.params.seekableEndTime);S.seekableStart_=isNaN(B)?0:B;S.seekableEnd_=isNaN(f)?0:f;this.playerContext_.playerState==1?kEX(this):xw$(this);this.publish("remotePlayerChange")};
JC.prototype.onAdStateChange_=function(f){if(this.playerContext_.playerState!=-1E3){var S=1085;switch(parseInt(f.params.adState,10)){case 1:S=1081;break;case 2:S=1084;break;case 0:S=1083}this.playerContext_.playerState=S;f=parseInt(f.params.currentTime,10);zg(this.playerContext_,isNaN(f)?0:f);this.publish("remotePlayerChange")}};
var COM=function(f,S){var B=S.params.muted=="true";f.playerContext_.volume=parseInt(S.params.volume,10);f.playerContext_.muted=B;f.publish("remotePlayerChange")},pnz=function(f,S){f.autoplayVideoId_=S.params.videoId;
f.publish("nowAutoplaying",parseInt(S.params.timeout,10))},A0M=function(f,S){f.autoplayVideoId_=S.params.videoId||null;
f.publish("autoplayUpNext",f.autoplayVideoId_)},NY$=function(f,S){f.autoplayMode_=S.params.autoplayMode;
f.publish("autoplayModeChange",f.autoplayMode_);f.autoplayMode_=="DISABLED"&&f.publish("autoplayDismissed")},MEu=function(f,S){var B=S.params.hasNext=="true";
f.playerContext_.hasPrevious=S.params.hasPrevious=="true";f.playerContext_.hasNext=B;f.publish("previousNextChange")};
JC.prototype.isCapabilitySupportedOnConnectedDevices_=function(f){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var S=_.m(this.connectedDevices_),B=S.next();!B.done;B=S.next())if(!B.value.capabilities.has(f))return!1;return!0};
var r0$=function(f,S){S=S.message;S.params?VV("Received: action="+S.action+", params="+(0,_.ET)(S.params)):VV("Received: action="+S.action+" {}");switch(S.action){case "loungeStatus":S=(0,_.Qw)(S.params.devices);f.connectedDevices_=_.Yv(S,function(G){return new uN(G)});
S=!!_.DN(f.connectedDevices_,function(G){return G.type=="LOUNGE_SCREEN"});
shO(f,S);S=f.isCapabilitySupportedOnConnectedDevices_("mlm");f.publish("multiStateLoopEnabled",S);break;case "loungeScreenDisconnected":rYe(f.connectedDevices_,function(G){return G.type=="LOUNGE_SCREEN"});
shO(f,!1);break;case "remoteConnected":var B=new uN((0,_.Qw)(S.params.device));_.DN(f.connectedDevices_,function(G){return G.equals(B)})||_.ZN(f.connectedDevices_,B);
break;case "remoteDisconnected":B=new uN((0,_.Qw)(S.params.device));rYe(f.connectedDevices_,function(G){return G.equals(B)});
break;case "gracefulDisconnect":break;case "playlistModified":Irn(f,S,"QUEUE_MODIFIED");break;case "nowPlaying":Uwn(f,S);break;case "onStateChange":f.onStateChange_(S);break;case "onAdStateChange":f.onAdStateChange_(S);break;case "onVolumeChanged":COM(f,S);break;case "onSubtitlesTrackChanged":Dw2(f,S);break;case "nowAutoplaying":pnz(f,S);break;case "autoplayDismissed":f.publish("autoplayDismissed");break;case "autoplayUpNext":A0M(f,S);break;case "onAutoplayModeChanged":NY$(f,S);break;case "onHasPreviousNextChanged":MEu(f,
S);break;case "requestAssistedSignIn":f.publish("assistedSignInRequested",S.params.authCode);break;case "onLoopModeChanged":f.publish("loopModeChange",S.params.loopMode);break;default:VV("Unrecognized action: "+S.action)}};
_.e=JC.prototype;_.e.getProxyState_=function(){var f=3;this.isDisposed()||(f=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(f=1):f=2);return f};
_.e.JSC$17642_disconnect_=function(f){VV("Disconnecting with "+f);_.WL("yt.mdx.remote.remoteClient_",null);ODz(this);this.publish("beforeDisconnect",f);f==1&&kx();this.channelService.disconnect(f);this.dispose()};
_.e.getPlayerContextData_=function(){var f=this.playerContext_;this.clientVideoId_&&(f=this.playerContext_.clone(),POY(f,this.clientVideoId_,f.index));return vZB(f)};
_.e.setPlayerContextData_=function(f){var S=this,B=new Wb(f);B.videoId&&B.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=B.videoId,_.Ry(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.mE(function(){if(S.clientVideoId_){var g=S.clientVideoId_;S.clientVideoId_=null;S.playerContext_.videoId!=g&&Pj(S,"getNowPlaying")}},5E3));
var G=[];this.playerContext_.listId==B.listId&&this.playerContext_.videoId==B.videoId&&this.playerContext_.index==B.index||G.push("remoteQueueChange");this.playerContext_.playerState==B.playerState&&this.playerContext_.volume==B.volume&&this.playerContext_.muted==B.muted&&J0o(this.playerContext_)==J0o(B)&&(0,_.ET)(this.playerContext_.trackData)==(0,_.ET)(B.trackData)||G.push("remotePlayerChange");this.playerContext_.reset(f);_.AA(G,function(g){this.publish(g)},this)};
_.e.getOtherConnectedRemoteId_=function(){var f=this.channelService.getDeviceId(),S=_.DN(this.connectedDevices_,function(B){return B.type=="REMOTE_CONTROL"&&B.id!=f});
return S?S.id:""};
_.e.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.e.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.e.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.e.JSC$17642_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var nZu=function(f){_.Ry(f.idleDisconnectTimerId_);f.idleDisconnectTimerId_=_.mE(function(){f.JSC$17642_disconnect_(1)},864E5)},Pj=function(f,S,B){B?VV("Sending: action="+S+", params="+(0,_.ET)(B)):VV("Sending: action="+S);
f.channelService.sendMessage(S,B)};
JC.prototype.sendMessageWithUserAction_=function(f,S){Pj(this,f,S);nZu(this)};
JC.prototype.JSC$17642_getXsrfToken_=function(){var f=_.VP.get("SAPISID","")||_.VP.get("__Secure-1PAPISID",void 0)||"",S=_.VP.get("__Secure-3PAPISID","")||"";if(!f&&!S)return"";f=_.oO(_.Hv(f),2);S=_.oO(_.Hv(S),2);return _.oO(_.Hv(","+f+","+S),2)};
JC.prototype.subscribe=JC.prototype.subscribe;JC.prototype.unsubscribeByKey=JC.prototype.unsubscribeByKey;JC.prototype.getProxyState=JC.prototype.getProxyState_;JC.prototype.disconnect=JC.prototype.JSC$17642_disconnect_;JC.prototype.getPlayerContextData=JC.prototype.getPlayerContextData_;JC.prototype.setPlayerContextData=JC.prototype.setPlayerContextData_;JC.prototype.getOtherConnectedRemoteId=JC.prototype.getOtherConnectedRemoteId_;JC.prototype.getReconnectTimeout=JC.prototype.getReconnectTimeout_;
JC.prototype.getAutoplayMode=JC.prototype.getAutoplayMode_;JC.prototype.getAutoplayVideoId=JC.prototype.getAutoplayVideoId_;JC.prototype.reconnect=JC.prototype.JSC$17642_reconnect_;JC.prototype.sendMessage=JC.prototype.sendMessageWithUserAction_;JC.prototype.getXsrfToken=JC.prototype.JSC$17642_getXsrfToken_;JC.prototype.isCapabilitySupportedOnConnectedDevices=JC.prototype.isCapabilitySupportedOnConnectedDevices_;var ZDB=function(f){pe.call(this,"ScreenServiceProxy");this.instance_=f;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.$A)(this.JSC$17645_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.$A)(this.onOnlineScreenChange_,this)))};
_.q(ZDB,pe);_.e=ZDB.prototype;_.e.getScreens=function(f){return this.instance_.$_gs(f)};
_.e.contains=function(f){return!!this.instance_.$_c(f)};
_.e.get=function(f){return this.instance_.$_g(f)};
_.e.start=function(){this.instance_.$_st()};
_.e.add=function(f,S,B){this.instance_.$_a(f,S,B)};
_.e.remove=function(f,S,B){this.instance_.$_r(f,S,B)};
_.e.updateName=function(f,S,B,G){this.instance_.$_un(f,S,B,G)};
_.e.disposeInternal=function(){for(var f=this.subscriptionKeys_.length,S=0;S<f;++S)this.instance_.$_ubk(this.subscriptionKeys_[S]);this.subscriptionKeys_.length=0;this.instance_=null;pe.prototype.disposeInternal.call(this)};
_.e.JSC$17645_onScreenChange_=function(){this.publish("screenChange")};
_.e.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
Mq.prototype.$_st=Mq.prototype.start;Mq.prototype.$_gspc=Mq.prototype.JSC$17602_getScreenByPairingCode;Mq.prototype.$_gsppc=Mq.prototype.JSC$17602_getScreenByPollingPairingCode;Mq.prototype.$_c=Mq.prototype.contains;Mq.prototype.$_g=Mq.prototype.get;Mq.prototype.$_a=Mq.prototype.add;Mq.prototype.$_un=Mq.prototype.updateName;Mq.prototype.$_r=Mq.prototype.remove;Mq.prototype.$_gs=Mq.prototype.getScreens;Mq.prototype.$_gos=Mq.prototype.JSC$17602_getOnlineScreens;Mq.prototype.$_s=Mq.prototype.subscribe;
Mq.prototype.$_ubk=Mq.prototype.unsubscribeByKey;var lr$=function(f){PTz();if(!ne||!ne.get("yt-remote-disable-remote-module-for-dev")){f=_.nL("MDX_CONFIG")||f;O9M();XZz();vj||(vj=new OG(f?f.loungeApiHost:void 0),vcu()&&(vj.basePath="/api/loungedev"));K$||(K$=_.U6("yt.mdx.remote.deferredProxies_")||[],_.WL("yt.mdx.remote.deferredProxies_",K$));tEz();var S=dr();if(!S){var B=new Mq(vj,f?f.disableAutomaticScreenCache||!1:!1);_.WL("yt.mdx.remote.screenService_",B);S=dr();var G={};f&&(G={appId:f.appId,disableDial:f.disableDial,theme:f.theme,loadCastApiSetupScript:f.loadCastApiSetupScript,
disableCastApi:f.disableCastApi,enableDialLoungeToken:f.enableDialLoungeToken,enableCastLoungeToken:f.enableCastLoungeToken,forceMirroring:f.forceMirroring});_.WL("yt.mdx.remote.enableConnectWithInitialState_",f?f.enableConnectWithInitialState||!1:!1);y2n(B,function(b){b?iD()&&GZz(iD(),"YouTube TV"):B.subscribe("onlineScreenChange",function(){GA("yt-remote-receiver-availability-change")})},G)}if(f&&!_.U6("yt.mdx.remote.initialized_")){_.WL("yt.mdx.remote.initialized_",!0);
Hj("Initializing: "+(0,_.ET)(f));qd.push(_.eD("yt-remote-cast2-api-ready",function(){GA("yt-remote-api-ready")}));
qd.push(_.eD("yt-remote-cast2-availability-change",function(){GA("yt-remote-receiver-availability-change")}));
qd.push(_.eD("yt-remote-cast2-receiver-selected",function(){uoO();GA("yt-remote-auto-connect","cast-selector-receiver")}));
qd.push(_.eD("yt-remote-cast2-receiver-resumed",function(){GA("yt-remote-receiver-resumed","cast-selector-receiver")}));
qd.push(_.eD("yt-remote-cast2-session-change",arz));qd.push(_.eD("yt-remote-connection-change",function(b){b?GZz(iD(),"YouTube TV"):y0u()||(GZz(null,null),oTM())}));
qd.push(_.eD("yt-remote-cast2-session-failed",function(){GA("yt-remote-connection-failed")}));
G=WiO();f.isAuto&&(G.id+="#dial");var g=f.capabilities||[];g.length>0&&(G.capabilities=g);G.name=f.device;G.app=f.app;(f=f.theme)&&(G.theme=f);Hj(" -- with channel params: "+(0,_.ET)(G));G?(_.Xw("yt-remote-session-app",G.app),_.Xw("yt-remote-session-name",G.name)):(_.hi("yt-remote-session-app"),_.hi("yt-remote-session-name"));_.WL("yt.mdx.remote.channelParams_",G);S.start();iD()||c0n()}}},ok$=function(){var f=dr().instance_.$_gos();
var S=fCu();S&&$h()&&(eSM(f,S)||f.push(S));return gcY(f)},Sj2=function(){var f=ok$(),S=fCu();
S||(S=y0u());return _.DN(f,function(B){return S&&EG(S,B.key)?!0:!1})},fCu=function(){var f=iD();
if(!f)return null;var S=dr().getScreens();return Le(S,f)},arz=function(f){Hj("remote.onCastSessionChange_: "+gTo(f));
if(f){var S=fCu();S&&S.id==f.id?(GZz(S.id,"YouTube TV"),f.idType=="shortLived"&&(f=f.token)&&(S=$h())&&S.setLoungeToken(f)):(S&&BQu(),GbX(f,1))}else $h()&&BQu()},BQu=function(){Bhu()?an().stopSession():uL("stopSession called before API ready.");
var f=$h();f&&(f.disconnect(1),gkB(null))},eHu=function(){var f=$h();
return f&&f.getProxyState()!=3?new Rq($h(),void 0):null},Hj=function(f){In("remote",f)},dr=function(){if(!b5Y){var f=_.U6("yt.mdx.remote.screenService_");
b5Y=f?new ZDB(f):null}return b5Y},iD=function(){return _.U6("yt.mdx.remote.currentScreenId_")},mm2=function(f){_.WL("yt.mdx.remote.currentScreenId_",f)},uoO=function(){_.WL("yt.mdx.remote.connectData_",null)},$h=function(){return _.U6("yt.mdx.remote.connection_")},gkB=function(f){var S=$h();
uoO();f||mm2("");_.WL("yt.mdx.remote.connection_",f);K$&&(_.AA(K$,function(B){B(f)}),K$.length=0);
S&&!f?GA("yt-remote-connection-change",!1):!S&&f&&GA("yt-remote-connection-change",!0)},y0u=function(){var f=zS$();
if(!f)return null;var S=dr();if(!S)return null;S=S.getScreens();return Le(S,f)},GbX=function(f,S){mm2(f.id);
f=new JC(vj,f,WiO(),_.U6("yt.mdx.remote.enableConnectWithInitialState_")||!1);f.connect(S,_.U6("yt.mdx.remote.connectData_"));f.subscribe("beforeDisconnect",function(B){GA("yt-remote-before-disconnect",B)});
f.subscribe("beforeDispose",function(){$h()&&gkB(null)});
f.subscribe("browserChannelAuthError",function(){var B=fCu();B&&B.idType=="shortLived"&&(Bhu()?an().handleBrowserChannelAuthError():uL("refreshLoungeToken called before API ready."))});
gkB(f)},c0n=function(){var f=y0u();
f?(Hj("Resume connection to: "+gTo(f)),GbX(f,0)):(kx(),oTM(),Hj("Skipping connecting because no session screen found."))},vj=null,K$=null,b5Y=null,tEz=function(){var f=WiO();
if(_.$v.isEmpty(f)){f=m5M();var S=_.wQ("yt-remote-session-name")||"",B=_.wQ("yt-remote-session-app")||"";f={device:"REMOTE_CONTROL",id:f,name:S,app:B,mdxVersion:3};f.authuser=String(_.nL("SESSION_INDEX","0"));(S=_.nL("DELEGATED_SESSION_ID"))&&(f.pageId=String(S));_.WL("yt.mdx.remote.channelParams_",f)}},WiO=function(){return _.U6("yt.mdx.remote.channelParams_")||{}},qd=[];var zHX=new _.s4("yt-menu"),RHX=function(){},w4e=function(f,S,B){f=S=="right-click"?B.rightClickMenuPopupHint:B.menuPopupHint;
if(!(X4O(S)>10))return S=S||"default",zHX.set(S+"-impression",X4O(S)+1),f},X4O=function(f){return parseInt(zHX.get((f||"default")+"-impression")||0,10)};
_.mG(RHX);var hHu=function(){this.contexts_=new WeakMap;this.JSC$17651_networkService_=this.activeContext_=null},TQB=function(f,S,B){var G=f.contexts_.get(S);
G||(G=new r3O(f.JSC$17651_networkService_),f.contexts_.set(S,G));f.activeContext_=G;B&&f.activeContext_.reset();f.activeContext_.start();return f.activeContext_};var QV=function(){};
QV.prototype.enqueue=function(){var f=this,S;return _.R(function(B){if(f.isCounterfactual())return(S=f.getCounterfactualData())&&f.shouldLogCounterfactualImpression()&&f.sendImpressionEndpoints(S),B.return();f.doEnqueue();_.TT(B)})};
QV.prototype.sendImpressionEndpoints=function(f){_.AE.getInstance().triggerOptionalAction("yt-service-request",{},f[0])};var Yh=function(f,S){this.renderer=f;this.page=S};
_.q(Yh,QV);Yh.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
Yh.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
Yh.prototype.shouldLogCounterfactualImpression=function(){return!0};
Yh.prototype.doEnqueue=function(){var f=_.SW(this.page);f&&f.pause();this.renderer.impressionCommand&&_.AE.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.sc(_.AE.getInstance(),[this.renderer.promoCommand],this.page)};var FQn=function(f,S){this.renderer=f;this.resolver=_.aa();this.JSC$17663_enforcementCounter=new _.IEj;S?this.JSC$17663_playerManager=_.SW(S):this.JSC$17663_playerManager=null;_.VW(1,!0)};
_.q(FQn,QV);_.e=FQn.prototype;_.e.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var f=[];this.renderer.impressionEndpoints.forEach(function(S){(S=_.CH(S))&&f.push(S)});
return f}};
_.e.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.e.shouldLogCounterfactualImpression=function(){var f=_.l4N();f?(this.JSC$17663_enforcementCounter.increment("POPUP"),_.VW(3)):_.VW(2);return f};
_.e.cancel=function(){this.resolver.promise.cancel()};
_.e.doEnqueue=function(){var f=this;_.l4N()?(this.JSC$17663_enforcementCounter.increment("POPUP"),_.VW(3),VjY(this)):this.JSC$17663_playerManager?(this.resolver.promise.then(function(){VjY(f)}),JiO(this.resolver,this.JSC$17663_playerManager)):_.VW(2)};
var JiO=function(f,S){var B=_.aa();S.getPlayerPromise().then(function(G){B.resolve(G)});
B.promise.then(function(G){G.addEventListener("onAbnormalityDetected",f.resolve);_.jA(f.promise,function(){G.removeEventListener("onAbnormalityDetected",f.resolve)})});
f.promise.thenCatch(function(){B.promise.cancel()})},VjY=function(f){_.VW(3);
var S={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:f.renderer}};S=_.AE.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:S},{});Promise.all(S).then(function(){P_X();f.JSC$17663_playerManager&&f.JSC$17663_playerManager.pause()})},P_X=function(){h0O(function(f,S){_.RPX(f,S);
f===0?_.VW(7):_.VW(4)})};var vku=function(f,S){this.renderer=f;this.page=S;this.resolver=_.aa()};
_.q(vku,QV);_.e=vku.prototype;_.e.cancel=function(){this.resolver.promise.cancel()};
_.e.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.e.isCounterfactual=function(){return!this.renderer.isVisible};
_.e.shouldLogCounterfactualImpression=function(){return!0};
_.e.doEnqueue=function(){var f=this;this.resolver.promise.then(function(){var B={popup:{mealbarPromoRenderer:f.renderer},popupType:"MEALBAR"};_.AE.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:B},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var S=_.SW(this.page);S&&KQ$(this.resolver,S)}break;default:this.resolver.resolve()}};
var KQ$=function(f,S){var B=_.aa();S.getPlayerPromise().then(function(G){B.resolve(G)});
B.promise.then(function(G){G.addEventListener("onAdEnd",f.resolve);_.jA(f.promise,function(){G.removeEventListener("onAdEnd",f.resolve)})});
f.promise.thenCatch(function(){B.promise.cancel()})};var dmu=function(f,S){this.renderer=f;this.page=S};
_.q(dmu,QV);_.e=dmu.prototype;_.e.cancel=function(){this.JSC$17671_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17671_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17671_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.e.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.e.isCounterfactual=function(){return!this.renderer.isVisible};
_.e.shouldLogCounterfactualImpression=function(){return!0};
_.e.doEnqueue=function(){var f=this,S,B;((S=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(B=S.playbackUpsellDialogTriggerConditionData)==null?void 0:B.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$17671_downloadedVideosCountSelectorUnsubscriber=_.KD(_.W2(),m7o,function(G,g){G>g&&(i5u(f),f.cancel())}):i5u(this)};
var i5u=function(f){var S={popup:{upsellDialogRenderer:f.renderer},popupType:"MODAL"};_.AE.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:S},{});(f=_.SW(f.page))&&f.pause()};var rr={},H5z=(rr.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",rr.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",rr.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",rr.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",rr.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",rr.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",rr.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",rr),qju=function(f,S){this.renderer=f;this.targetManager=
S};
_.q(qju,QV);_.e=qju.prototype;_.e.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$17678_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17678_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17678_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.e.getCounterfactualData=function(){if(this.isCounterfactual()){var f;return(f=this.renderer.promoConfig)==null?void 0:f.impressionEndpoints}};
_.e.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.e.shouldLogCounterfactualImpression=function(){return!0};
_.e.doEnqueue=function(){var f=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$17678_downloadedVideosCountSelectorUnsubscriber=_.KD(_.W2(),m7o,function(S,B){f.renderer.targetId&&S>B&&(leu(f.targetManager,f.renderer.targetId,$mZ(f)),f.cancel())});
break;default:leu(this.targetManager,this.renderer.targetId,$mZ(this))}};
var $mZ=function(f){var S;if((S=f.renderer.suggestedPosition)==null?0:S.type)var B=H5z[f.renderer.suggestedPosition.type];B||(B="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:f.renderer},popupType:"HINT",position:B}}};var QvX=function(){this.previousPage=null},YjO;
QvX.prototype.registerPromoCommand=function(f,S){rin(this,void 0,void 0,_.H(f.roadblock,Mxu),void 0,void 0,S)};
var rin=function(f,S,B,G,g,b,z){f.previousPage!==z&&f.pendingTooltipPromo&&f.pendingTooltipPromo.cancel();f.previousPage=z;g?(f.pendingEnforcementPromo&&f.pendingEnforcementPromo.cancel(),f.pendingEnforcementPromo=new FQn(g,z),f.pendingEnforcementPromo.enqueue()):b?(f.pendingCommandWrapperPromo=new Yh(b,z),f.pendingCommandWrapperPromo.enqueue()):G?(f.pendingRoadblockPromo&&f.pendingRoadblockPromo.cancel(),f.pendingRoadblockPromo=new dmu(G,z),f.pendingRoadblockPromo.enqueue()):S?(f.pendingMealbarPromo&&
f.pendingMealbarPromo.cancel(),f.pendingMealbarPromo=new vku(S,z),f.pendingMealbarPromo.enqueue()):B&&(f.pendingTooltipPromo&&f.pendingTooltipPromo.cancel(),f.pendingTooltipPromo=new qju(B,_.Qh()),f.pendingTooltipPromo.enqueue())},jvB=function(){YjO||(YjO=new QvX);
return YjO};var zLO=!1;var BvY=function(f,S){var B=_.nL("SESSION_INDEX");this.actionToken_=f;this.commonToken_=S;this.sessionIndex_=B},SWu=function(f){var S=_.aa(),B=_.U6("payments.business.integration.bootstrap"),G=_.U6("payments.business.integration"),g=G.Style.create().withMaterialDesignStyle(),b=G.mashupMode.popup("instrument-manager");
B.asMashupMode(b).usingUserIndex(f.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(g).inStandaloneContext(G.standaloneContextAuthId.forUserId()).instrumentManager(f.actionToken_,f.commonToken_.length>0?f.commonToken_:void 0,function(z){var X=z.instrumentId;X?S.resolve(X):(X=_.U6("payments.business.integration.scenario.InstrumentManager"),S.reject(z.errorCode&&z.errorCode===X.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(z){_.Dt(z);
S.reject("instrumentManagerLoadError")});
return S.promise};var S$=function(f,S,B){this.payloadName="transactionFlowFailed";this.payload={errorType:f,serializedTransactionFlowLoggingParams:S,isUserDismiss:B===void 0?!1:B}};
_.WL("yt.ypc.shared.YpcTransactionFlowError",S$);var jV=function(){return _.dv.apply(this,arguments)||this};
_.q(jV,_.dv);jV.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
jV.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
jV.prototype.onErrorMessageDismiss=jV.prototype.onErrorMessageDismiss;_.N([_.n({readOnly:!0,observer:"errorRendererChanged"}),_.Z("design:type",Object)],jV.prototype,"errorRenderer",void 0);_.N([_.Vg("yt-live-chat-error-message-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],jV.prototype,"onErrorMessageDismiss",null);_.N([_.iu()],jV);var O5Y=[jV.prototype];var xm$;var EkY;var LQ$=new _.s4("yt-live-chat"),kbY=new Map;kbY.set("timestamp_toggle","show-timestamps");kbY.set("reactions_toggle","allow-reactions");var OP=function(){return _.I.apply(this,arguments)||this};
_.q(OP,_.I);_.e=OP.prototype;_.e.menuItemIdentifierChanged=function(){var f;(f=this.data)!=null&&f.menuItemIdentifier&&(f=kbY.get(this.data.menuItemIdentifier))&&(_.K("enable_lwe_web_mute")?(f=LQ$.get(f),this.isToggled=!(f===void 0?!this.data.isToggled:!f)):this.isToggled=LQ$.get(f))};
_.e.onFocus=function(){this.toggleButton.focus()};
_.e.onTap=function(){var f=this.data.command;f&&this.componentBehavior.resolveCommand(f)};
_.e.computeText=function(f,S,B){return this.componentBehavior.getSimpleString(f?B:S)};
_.e.computeIcon=function(f,S,B){return(f=f?B:S)&&f.iconType?_.F_(f.iconType):""};
OP.prototype.onTap=OP.prototype.onTap;OP.prototype.onFocus=OP.prototype.onFocus;OP.prototype.menuItemIdentifierChanged=OP.prototype.menuItemIdentifierChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],OP.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],OP.prototype,"componentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],OP.prototype,"data",void 0);
_.N([_.n({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.Z("design:type",String)],OP.prototype,"icon",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],OP.prototype,"isToggled",void 0);_.N([_.vF("tp-yt-paper-toggle-button"),_.Z("design:type",Object)],OP.prototype,"toggleButton",void 0);_.N([_.JO("data.menuItemIdentifier"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],OP.prototype,"menuItemIdentifierChanged",null);
_.N([_.Vg("focus"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],OP.prototype,"onFocus",null);_.N([_.Vg("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],OP.prototype,"onTap",null);_.N([_.nP({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],OP);
_.p(OP,"yt-live-chat-toggle-renderer",function(){if(EkY===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;xm$===void 0&&(xm$=document.createElement("template"));var G=xm$;B.call(S,G.content.cloneNode(!0),f.content.firstChild);EkY=f}f=EkY;return f},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var nke=new _.Sn("NAVIGATION_PROGRESS_TOKEN");_.k5("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var sv$={},VwB=(sv$.CSI=function(f,S){var B={};B[f]=S;f=_.Ij(_.UiV)(B);Object.keys(f).length>0&&_.EL(f)},sv$.ECATCHER=function(f){return function(S,B){_.nL(f)[S]=B}}("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"),sv$);var Dmo={},ICu={},Umz=(ICu[Emz.name]=!0,ICu),xh=function(){var f=_.dv.apply(this,arguments)||this;f._noAccessors=!0;f.tabGesturesIsActive=!1;f.actionRouterIsRoot=!0;f.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"};f.pageTitle="";f.titleSuffix="YouTube";f.unseenNotificationCount=
0;f.hasNavigated=!1;f.hasSetScrollTopForNavigation=!1;f.pagePreparer=null;f.zwiebackInitJobId=0;f.dataUpdatePromise=null;f.loadDepsPromise=_.wh();f.hasPendingNavigation=!1;f.pendingPlayerOnResponseReceivedActions=[];return f};
_.q(xh,_.dv);xh.prototype.attached=function(){C_Z(this);document.addEventListener("yt-navigate-cache",_.Fc(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var f=EP();f.init();f.dispatchElement=this.hostElement};
var C_Z=function(f,S){S=S===void 0?0:S;var B=_.oy().resolve(_.fN(_.$k));if(B)p4X(f,B);else{if(S>=5)throw Error("Yk");setTimeout(function(){C_Z(f,S+1)},0)}},p4X=function(f,S){S.addEventListener("yt-navigate-start",_.Fc(f,f.onYtNavigateStart));
S.addEventListener("yt-navigate-finish",_.Fc(f,f.onYtNavigateFinish));S.addEventListener("yt-navigate-error",_.Fc(f,f.onYtNavigateError));S.addEventListener("yt-page-data-fetched",_.Fc(f,f.onYtPageDataFetched))};
_.e=xh.prototype;_.e.detached=function(){var f=_.oy().resolve(_.$k);f.removeEventListener("yt-navigate-start",_.Fc(this,this.onYtNavigateStart));f.removeEventListener("yt-navigate-finish",_.Fc(this,this.onYtNavigateFinish));f.removeEventListener("yt-navigate-error",_.Fc(this,this.onYtNavigateError));f.removeEventListener("yt-page-data-fetched",_.Fc(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.Fc(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.e.setPageOffset=function(f,S){f?_.bW(this.hostElement,"yt-set-page-offset",[f,S]):_.xH(Error("Zk"))};
_.e.setPageOffsetForNavigation=function(f,S){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(f,S))};
_.e.onYtNavigateSetPageOffset=function(f,S){this.setPageOffsetForNavigation(S.page,S.offset)};
_.e.getPageOffset=function(){var f=_.m9(this.hostElement).querySelector("#page-manager").getCurrentPage(),S=0;f&&(S=_.bW(this.hostElement,"yt-get-page-offset",[f])[0]);return S};
_.e.onYtHistoryPop=function(f,S){if(_.s6("DISABLE_WARM_LOADS"))f.preventDefault(),window.location.reload();else{var B=_.oy().resolve(_.$k);B.hasPendingNavigation()&&f.preventDefault();B.cancelPendingNavigation();_.mU(this.hostElement,"yt-pending-navigation-cancelled");S.errorMsg&&(f=S.errorMsg.split(" - "),S=Error(f[0]),f.length==2&&f[1]&&(_.kH(S,f[1]),_.Lg(S)),window.location.reload())}};
_.e.onYtHistoryLoad=function(f,S){var B=this;if(_.s6("DISABLE_WARM_LOADS"))window.location.reload();else{(f=S.endpoint)&&Object.keys(f).length||(f=null);var G=S.historyEntry,g=_.oy().resolve(_.$k),b=_.oy().resolve(_.o8),z=null;G&&G.rootData&&(z=G.rootData);var X=z&&Aie(z);!z||X||z.filler?f?(g.navigate(f,!0),NQX(this,f)):(S.legacyBorder||X||(S.JSC$26686_savedComponentState==null&&z==null?_.Lg(new _.dO("Incomplete history entry",S.forward)):_.EU(new _.dO("Malformed history entry",S.JSC$26686_savedComponentState,
S.forward,z))),window.location.reload()):(_.yVM({isHot:!0}),_.EL({webInfo:{navigationReason:"h"}}),_.BwT(),_.kT("srt"),_.kT("pdc"),this.cancelPendingTasks(),MjO(this,S.forward,z),z.player&&(z.player.loaded=!1),NQX(this,f),_.MSj(g,f||{},z,2,{},!1,S).then(function(){B.setPageOffset(b.getCurrentPage(),G.scrollTop||0)}))}};
_.e.initHistoryManager=function(f){if(!this.hasNavigated){this.hasNavigated=!0;var S=_.m9(this.hostElement).querySelector("#page-manager").getCurrentData();f=isNaN(f)?this.getPageOffset():f;var B=_.oy().resolve(_.$k).currentEndpoint;this.replaceState(B,S,f)}};
_.e.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.e.onYtNavigateStart=function(f,S){this.cancelPendingTasks();S.noProgressBar||(f=_.oy().resolve(_.fN(nke)))&&f.start();f=this.hasPendingNavigation?null:this.data;var B=_.oy().resolve(_.o8),G,g,b;_.K("kevlar_use_vimio_behavior")&&!((G=S.endpoint)==null?0:(g=G.commandMetadata)==null?0:(b=g.webCommandMetadata)==null?0:b.ignoreNavigation)&&(G=B.getCurrentPage())&&G.disconnectVisibilityRoot();B.prepareForNavigation(S.pageType,S.endpoint);_.K("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.G7(1,
"pcl"),_.gP(this.pagePreparer,B.preparePage.bind(B,S.pageType,S.endpoint)));G=this.getPageOffset();this.initHistoryManager(G);S.reload||this.hasPendingNavigation?this.replaceState(S.endpoint,f,G):(f==null?void 0:f.page)==="watch"&&S.pageType==="watch"&&_.K("kevlar_replace_watch_to_watch_history_state")?this.replaceState(S.endpoint,f,G):(f==null?void 0:f.page)!=="shorts"||S.pageType!=="shorts"||S.endpoint.reelWatchEndpoint.sequenceParams||_.K("short_to_short_back_nav_killswitch")?S.type!="navigate-back"&&
S.type!="navigate-forward"&&(S.pageType==="shorts"&&_.ew(this.hostElement,"yt-shorts-reset"),this.saveAndPush(S.url,S.endpoint,f,G)):this.replaceState(S.endpoint,f,0);this.hasPendingNavigation=!0};
var Z5o=function(f){f.hasPendingNavigation=!1;(f=_.oy().resolve(_.fN(nke)))&&f.finish()};
xh.prototype.onYtNavigateError=function(f,S){Z5o(this);f=this.get("endpoint.commandMetadata.webCommandMetadata.url",S);var B=_.Mp(window.location.href);f&&!B.pbjreload&&(S=S.navigationErrorReason||"10",_.K("kevlar_parent_on_pbjreload")&&(B={csn:_.xc()},this.get("data.endpoint.clickTrackingParams")&&(B.itct=this.data.endpoint.clickTrackingParams),_.WZ(f,B)),_.tK(_.Zt(f,{pbjreload:S})))};
xh.prototype.onYtNavigateCache=function(f,S){var B=this,G=S.url,g=S.endpoint,b=S.data;f=!!S.miniplayer;S=!!S.skipHistory;if(G&&g&&b){var z=this.getPageOffset(),X=this.data||null;S||this.saveAndPush(G,g,X,z);G=_.MSj(_.oy().resolve(_.$k),g,b,f?4:3,{},f);f&&G.then(function(){B.dataUpdatePromise&&B.dataUpdatePromise.then(function(){var w=_.oy().resolve(_.o8);B.setPageOffset(w.getCurrentPage(),0)})})}};
xh.prototype.onYtNavigateFinish=function(f,S){var B=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){tj2(B,S.fromHistory)})};
var tj2=function(f,S){Z5o(f);if(f.pendingPlayerOnResponseReceivedActions){for(var B=_.m(f.pendingPlayerOnResponseReceivedActions),G=B.next();!G.done;G=B.next())_.Ps(G.value,f.hostElement);f.pendingPlayerOnResponseReceivedActions=[]}B=_.oy().resolve(_.o8);!S&&f.hasNavigated&&((S=B.getCurrentPage())?S.is==="ytd-shorts"||f.tabGesturesIsActive||f.setPageOffsetForNavigation(S,0):_.Lg(Error("$k")));_.AO(function(){_.AO(function(){_.kT("pda")})})};
xh.prototype.onYtNavigate=function(f){if(!f.detail.endpoint){var S=new _.dO("Error: Missing yt-navigate endpoint from target:",f.target,f.target.nodeName);_.xH(S)}if(S=_.K("cold_missing_history"))S=EP(),S.init(!1),S=!(S.browserHistory.boundHistoryReplaceState&&S.browserHistory.boundHistoryPushState);if(S){_.k5("DISABLE_WARM_LOADS",!0);S=new _.dO("Failed to initialize history manager",this.getDebugString());var B=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
B?_.Lg(S):_.xH(S)}S=f.detail.endpoint;var G,g;_.K("debug_forward_web_query_parameters")&&((G=S.commandMetadata)==null?0:(g=G.webCommandMetadata)==null?0:g.url)&&(S=JSON.parse(JSON.stringify(S)),S.commandMetadata.webCommandMetadata.url=_.n2V(S.commandMetadata.webCommandMetadata.url,window.location.search));f={type:0,command:S,form:{params:f.detail.params,tempData:f.detail.tempData||{},requestType:f.detail.type,createScreenConfig:f.detail.createScreenConfig,reload:f.detail.reload?f.detail.reload:!1,
requestForm:f.detail}};_.K("kevlar_yt_navigate_command_handler")?(G=_.oy().resolve(_.S7),f.form.skipDefaultElement=!0,G.resolveCommand(S,{form:f.form})):this.handleNavigate(f)};
xh.prototype.handleNavigate=function(f){this.hasSetScrollTopForNavigation=!1;var S=_.oy().resolve(_.$k),B=f.form||{};S.navigate(f.command,B.reload,B.params,B.tempData,B.requestType,B.createScreenConfig,B.ignoreConfirmation,B.requestForm)&&NQX(this,f.command,B.tempData)};
xh.prototype.onYtPageDataFetched=function(f,S){try{_.IJm().reset();this.data=S.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.oy().resolve(_.o8).updatePageData(this.data);var B=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);B&&Jfn(B);var G=this.get("response.responseContext.serviceTrackingParams",this.data);G&&Jfn(G);var g=
this.get("playerResponse.onResponseReceivedActions",this.data);g&&(g=uwB(this,g));g&&_.Xh(this.hostElement,g,this.hostElement);var b=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),z=this.get("response.responseContext.consistencyTokenJar",this.data);if(b||z){var X=_.Rk9(),w=(0,_.$v.getValues)(X.tokenJars);b&&X.replace(w,b);z&&X.replace(w,z)}}catch(F){_.xH(F)}};
var NQX=function(f,S,B){try{f.onYtEndpointChangeHandler(S,B)}catch(G){_.xH(G)}};
_.e=xh.prototype;_.e.onYtEndpointChangeHandler=function(){};
_.e.setPageTitle=function(f){f=(this.pageTitle=f)?f+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+f};
_.e.onYtUpdateTitle=function(f,S){this.setPageTitle(S)};
_.e.setUnseenNotificationCount=function(f){this.unseenNotificationCount=f;this.setPageTitle(this.pageTitle)};
_.e.handleUpdateNotificationsUnseenCountAction=function(f){_.H(f,TxY)&&((f=_.H(f,TxY).unseenCount)?this.setUnseenNotificationCount(f):this.setUnseenNotificationCount(0))};
_.e.handleClearCookieAction=function(f){var S;(f=(S=_.H(f,R6z))==null?void 0:S.cookieName)&&_.oc1(f)};
_.e.onYtUpdateUnseenNotificationCount=function(f,S){this.setUnseenNotificationCount(S)};
_.e.loadData=function(f){var S=this;this.loadDepsPromise.then(function(){var B=_.oy().resolve(_.fN(_.$k));B||_.xH(Error("al"));if(f&&f.response){if(!f.endpoint){var G=_.Ck(window.document.location.href)||"/",g="";if(G==="/"||G.startsWith("/?"))g="WEB_PAGE_TYPE_BROWSE";f.endpoint={commandMetadata:{webCommandMetadata:{url:G,webPageType:g,rootVe:3854}}}}_.MSj(B,f.endpoint,f,5,{})}else f.endpoint?B.navigate(f.endpoint):B.navigate(_.vn);_.xJ.cancelJob(S.zwiebackInitJobId);S.zwiebackInitJobId=_.xJ.addLowPriorityJob(RLY)})};
var EP=function(){return _.oy().resolve(_.XS)};
xh.prototype.getDebugString=function(){return EP().getDebugString()};
xh.prototype.getThirdPartyManipulationSuspected=function(){return EP().getThirdPartyManipulationSuspected()};
xh.prototype.replaceState=function(f,S,B){EP().saveAndReplace(f,S,B)};
xh.prototype.saveAndPush=function(f,S,B,G){EP().saveAndPush(f,S,B,G)};
var Aie=function(f){return _.H(f.endpoint,_.t2)||_.H(f.endpoint,_.QW)?!0:!f||isNaN(f.expirationTime)?!1:(0,_.fO)()>f.expirationTime},MjO=function(f,S,B){var G=f.get("response.trackingParams",B),g=_.Of(),b=_.xc();
if(G&&g&&b&&(G=f.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",B),!G&&B.rootVe&&(G=B.rootVe),g=S?"forwardButton":"backButton",S=f.get("playerResponse.topbar.desktopTopbarRenderer."+g+".buttonRenderer.command.clickTrackingParams",f.data),f=f.get("response.topbar.desktopTopbarRenderer."+g+".buttonRenderer.command.clickTrackingParams",f.data),S=(f=S||f)?_.Ye(f):void 0,f=_.ik(),g=[_.wh(B)],_.Rh(f,G,S,{dataPromises:g,csnToClone:B.csn}),B.graftedVes))for(B=
_.m(B.graftedVes),G=B.next();!G.done;G=B.next())_.Xo(f,G.value)};
xh.prototype.onStoreGraftedVeAction=function(f){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(f)):_.Lg(Error("bl"))};
var uwB=function(f,S){return S.filter(function(B){for(var G in B)if(Umz[G])return f.pendingPlayerOnResponseReceivedActions.push(B),!0;return!1})};
_.y3.Object.defineProperties(xh.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
xh.prototype.onStoreGraftedVeAction=xh.prototype.onStoreGraftedVeAction;xh.prototype.loadData=xh.prototype.loadData;xh.prototype.onYtUpdateUnseenNotificationCount=xh.prototype.onYtUpdateUnseenNotificationCount;xh.prototype.handleClearCookieAction=xh.prototype.handleClearCookieAction;xh.prototype.handleUpdateNotificationsUnseenCountAction=xh.prototype.handleUpdateNotificationsUnseenCountAction;xh.prototype.setUnseenNotificationCount=xh.prototype.setUnseenNotificationCount;
xh.prototype.onYtUpdateTitle=xh.prototype.onYtUpdateTitle;xh.prototype.setPageTitle=xh.prototype.setPageTitle;xh.prototype.onYtEndpointChangeHandler=xh.prototype.onYtEndpointChangeHandler;xh.prototype.onYtPageDataFetched=xh.prototype.onYtPageDataFetched;xh.prototype.handleNavigate=xh.prototype.handleNavigate;xh.prototype.onYtNavigate=xh.prototype.onYtNavigate;xh.prototype.onYtNavigateFinish=xh.prototype.onYtNavigateFinish;xh.prototype.onYtNavigateCache=xh.prototype.onYtNavigateCache;
xh.prototype.onYtNavigateError=xh.prototype.onYtNavigateError;xh.prototype.onYtNavigateStart=xh.prototype.onYtNavigateStart;xh.prototype.cancelPendingTasks=xh.prototype.cancelPendingTasks;xh.prototype.initHistoryManager=xh.prototype.initHistoryManager;xh.prototype.onYtHistoryLoad=xh.prototype.onYtHistoryLoad;xh.prototype.onYtHistoryPop=xh.prototype.onYtHistoryPop;xh.prototype.onYtNavigateSetPageOffset=xh.prototype.onYtNavigateSetPageOffset;xh.prototype.setPageOffset=xh.prototype.setPageOffset;
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],xh.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],xh.prototype,"data",void 0);_.N([_.Vg("yt-navigate-set-page-offset"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],xh.prototype,"onYtNavigateSetPageOffset",null);
_.N([_.Vg("yt-history-pop"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],xh.prototype,"onYtHistoryPop",null);_.N([_.Vg("yt-history-load"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event,_.Xcj]),_.Z("design:returntype")],xh.prototype,"onYtHistoryLoad",null);_.N([_.Vg("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],xh.prototype,"onYtNavigate",null);
_.N([_.Vg("yt-update-title"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event,String]),_.Z("design:returntype")],xh.prototype,"onYtUpdateTitle",null);_.N([_.Vg("yt-update-unseen-notification-count"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event,Number]),_.Z("design:returntype")],xh.prototype,"onYtUpdateUnseenNotificationCount",null);_.N([_.iu()],xh);Dmo.YtdAppBehavior=[_.b3.YtActionHandlerBehavior,xh.prototype];var L$=function(){var f=_.dv.apply(this,arguments)||this;f._noAccessors=!0;return f};
_.q(L$,_.dv);L$.prototype.ready=function(){var f=this;_.m9(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){f.onChange_()})};
L$.prototype.dataChanged_=function(){_.m9(this.hostElement).querySelector("#checkbox").checked=!1};
L$.prototype.onChange_=function(){var f=_.m9(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.ew(this.hostElement,"yt-dismissal-reason-"+f,this.data.feedbackToken)};
L$.prototype.dataChanged_=L$.prototype.dataChanged_;_.N([_.n(),_.Z("design:type",Object)],L$.prototype,"data",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],L$.prototype,"dataChanged_",null);_.N([_.iu()],L$);var aCM=[L$.prototype];var kh=function(){var f=_.dv.apply(this,arguments)||this;f.timeoutJobId=0;f.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return f};
_.q(kh,_.dv);kh.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
kh.prototype.startTimeout=function(){var f=this,S=this.data&&this.data.displayDurationSeconds;S&&!this.timeoutJobId&&(this.timeoutJobId=_.q6(_.xJ,function(){_.bW(f.hostElement,"yt-close-popup-action",[f.is]);f.timeoutJobId=0},S*1E3))};
kh.prototype.cancelTimeout=function(){_.xJ.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
kh.prototype.ytdHatsSurveyBehaviorDataChanged=kh.prototype.ytdHatsSurveyBehaviorDataChanged;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],kh.prototype,"ytActionHandlerBehavior",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],kh.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.N([_.iu()],kh);var yiY=[_.b3.YtActionHandlerBehavior,kh.prototype];var WQZ=function(f,S){var B;return((B=f.prefixMapping)==null?0:B[S])?f.prefixMapping[S]:f.SHARED_RENDERERS_.hasOwnProperty(S)?"yt":f.prefix},n$={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}};n$.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.K("kevlar_mealbar_above_player"),modern:_.K("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"}};
n$.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};n$.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};n$.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
n$.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)"}};
n$.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};
n$.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};
n$.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};
n$.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};n$.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"}};
n$.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};n$.TOAST={component:null,properties:{}};var ci2=new function(f,S,B){this.supportedPopups=f;this.navigationEndpointPopupMap=S;this.popupTypeMap=B;this.supportedPopups=f;this.navigationEndpointPopupMap=S;this.popupTypeMap=B}({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:_.K("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"}),lC2=new function(){this.prefix="ytd";this.prefixMapping=void 0;this.SHARED_RENDERERS_=
{aboutThisAdRenderer:!0,bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,
ypcUpgradeDialogRenderer:!0,loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$17730_popupConfig=n$;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 ff2=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.jt.getInstance()},sP=function(f,S){var B=f.pageNameToElement.get(S);
if(!B){switch(S){case "watch":var G=_.K("web_watch_force_learning_journey_for_testing")?_.Bl("ytd-watch-learning-journey"):_.K("kevlar_watch_fixie")?_.Bl("ytd-watch-fixie"):_.K("kevlar_watch_grid")?_.Bl("ytd-watch-grid"):_.Bl("ytd-watch-flexy");break;case "learning_journey_watch":G=_.Bl("ytd-watch-learning-journey");break;case "shorts":G=_.Bl("ytd-shorts");break;case "search":G=_.Bl("ytd-search");break;case "channel":G=_.Bl("ytd-browse");G.pageSubtype="channels";break;case "trending":G=_.Bl("ytd-browse");
G.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":G=
_.Bl("ytd-browse");G.pageSubtype=S;break;case "browse":G=_.Bl("ytd-browse");break;default:_.Lg(new _.dO("Error getting page element for type",S))}B=G;f.pageNameToElement.set(S,B)}return B};
ff2.prototype.preparePage=function(f,S,B){B&&(f=_.Pt(B)||f);if(f!=="watch"&&f!=="learning_journey_watch"){var G=this.elementPoolPopulator,g=f;g!=G.targetPage_&&G.pendingPages_.indexOf(g)>-1&&(G.targetPage_&&(G.pendingPages_.unshift(G.targetPage_),G.abort()),SnM(G,g),_.b0m(G,g))}if((G=sP(this,f))||!_.H(B,_.pg)){G.isAttached||G===S||(G.hidden=!0);if(!G.data&&(f!=="watch"&&f!=="learning_journey_watch"||!_.K("swatcheroo_page_pool_dont_provide_filler_data"))){var b;if(f=(b=_.nL("FILLER_DATA",{})[f])==
null?void 0:b.response)G.data=f}return G}};var oN2=function(f){this.JSC$28577_clientRoot=f;this.playlistHandlerActionMap={"yt-add-to-playlist-command":dE$,"yt-end-playlist-command":i2u,"yt-recover-playlist-command":qLu,"yt-refresh-playlist-command":YLM,"yt-playlist-remove-videos-action":$EY};_.N6(_.AE.getInstance(),this.playlistHandlerActionMap,this.JSC$28577_clientRoot);wsX()},S0u;var D8=function(f,S,B){this.apiKey=f;this.endpoint=S;this.confidenceThreshold=B===void 0?.5:B;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=S==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||S==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
S==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||S==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new y_e};
_.e=D8.prototype;
_.e.start=function(f){if(this.state===0)if(this.isOnline()){f.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=f.supportsHttpHeadersOverwriteParam);f.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=f.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.L2("voice_assistant");_.n2("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=f.languageCode||"en-US";this.supportsCrossDomainXhr=f.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=f.youtubeAssistantRequest||null;this.listeningHandler=f.listeningHandler||this.listeningHandler;this.audioDetectedHandler=f.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=f.stopHandler||this.stopHandler;this.completeHandler=f.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=f.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=f.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
f.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=f.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=f.accessToken;this.additionalHeaders=f.additionalHeaders||{};var S;this.prefetchResponseTimeoutMs=(S=f.prefetchResponseTimeoutMs)!=null?S:this.prefetchResponseTimeoutMs;BPu(this);this.startAudio();G72(this)}else this.errorHandler("OFFLINE")};
_.e.stop=function(f){var S=f===void 0?{}:f;f=S.logCancel===void 0?!0:S.logCancel;var B=S.logMicClosed===void 0?!0:S.logMicClosed;var G=S.handleError===void 0?!0:S.handleError;S=S.handleStop===void 0?!0:S.handleStop;this.state!==0&&(f&&Iq("voz_cx"),UP(this,{logMicClosed:B,handleStop:S}),G&&this.errorHandler("ABORTED"))};
_.e.getState=function(){return this.state};
_.e.isSupported=function(){return!0};
_.e.stopAudio=function(f){(f===void 0||f)&&Iq("voz_mf")};
_.e.startAudio=function(){Iq("voz_vp");return _.wh(null)};
var gNe=function(f,S){f.channelOpen&&(f.state!==2&&(f.state=2,Iq("voz_ss"),f.listeningHandler()),S=new Uint8Array(S),S='{ "audioIn": "'+_.oO(S)+'" }',f.channel.send(S))},UP=function(f,S){var B=S===void 0?{}:S;
S=B.logMicClosed===void 0?!0:B.logMicClosed;B=B.handleStop===void 0?!0:B.handleStop;f.vozEndOfDataTimeout>-1&&(clearTimeout(f.vozEndOfDataTimeout),f.vozEndOfDataTimeout=-1);ekY(f);f.stopAudio(S);f.channel&&(f.channelOpen=!1,f.manuallyClosedChannel=!0,f.channel.close(),f.channel=void 0);f.transcribedSpeechResults=[];f.state=0;B&&f.stopHandler()},BPu=function(f){var S={httpHeadersOverwriteParam:f.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},f.additionalHeaders,f.accessToken&&f.isUsingVoz?{Authorization:"Bearer "+f.accessToken}:{"x-goog-api-key":f.apiKey}),supportsCrossDomainXhr:f.supportsCrossDomainXhr};f.channel=new nU(f.endpoint,S);f.channel.open();_.jP(f.channel,"w",function(){var B=f.channel,G=B.send,g=f.isUsingVoz?"PLACEHOLDER":"example";g={config:{dialogStateIn:{languageCode:f.languageCode},deviceConfig:{deviceId:g,deviceModelId:g},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!f.isUsingVoz)g.config.requestType=4;else if(f.isUsingVoz&&f.youtubeAssistantRequest){var b=JSON.stringify(f.youtubeAssistantRequest);g.config.internalIn={youtubeAssistantS3InputJson:b}}G.call(B,g);f.channelOpen=!0;f.manuallyClosedChannel=!1});
_.jP(f.channel,"x",function(){f.manuallyClosedChannel||(f.channelOpen=!1,f.channel=void 0,UP(f))});
_.jP(f.channel,"z",function(B){if(B.data){ekY(f);for(var G=0;G<B.data.length;G++){var g=f,b=B.data[G],z=b.speechResults;if(z)a:{var X=[];b=[];var w=!1;z=_.m(z);for(var F=z.next();!F.done;F=z.next()){F=F.value;if(F.noSpeech){UP(g);g.errorHandler("NO_SPEECH");break a}F.transcript!==void 0&&F.stability!==void 0&&(F.stability<g.confidenceThreshold&&(w=!0),w?b.push(F.transcript):X.push(F.transcript))}if(X.length!==0||b.length!==0)X=X.join(" "),b=b.join(" "),g.receivedEndOfUtterance&&!g.isUsingVoz?g.isUsingVoz||
g.completeHandler([X,b]):(w=g,z=X,F=b,Iq("voz_sf"),w.transcriptionUpdateHandler(z,F),w.transcribedSpeechResults=[z,F]),g.receivedEndOfUtterance&&(Iq("voz_eou"),g.transcriptionCompleteHandler([X,b]),g.isUsingVoz&&(g.prefetchResponseTimeoutMs===0?UP(g,{logMicClosed:!1,handleStop:!0}):g.prefetchResponseTimeoutMs>0&&bV2(g)))}else g.isUsingVoz&&(b==null?0:b.internalOut)?(b=JSON.parse(b.internalOut.youtubeAssistantS3OutputJson),b.userHasOptedInToVaa||b.vaaConsent?g.vaaConsentUpdateHandler(!!b.userHasOptedInToVaa,
!!b.vaaConsent):(mfu(g),b&&(X=g.transcribedSpeechResults,Iq("voz_rqf"),g.completeHandler(X,b)))):b.eventType==="END_OF_UTTERANCE"?g.receivedEndOfUtterance=!0:(Iq("voz_err"),g.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.Lg(Error("cl")))}}});
_.jP(f.channel,"y",function(B){UP(f);switch(B.status){case 1:B="WEBCHANNEL_NETWORK_ERROR";break;case 2:B="WEBCHANNEL_SERVER_ERROR";break;default:B="WEBCHANNEL_UNKNOWN_ERROR"}f.errorHandler(B);f.logError(Error(B))})};
D8.prototype.logError=function(f){_.xH(f)};
D8.prototype.isOnline=function(){return!0};
var bV2=function(f){mfu(f);f.prefetchResponseSetTimeoutId=setTimeout(function(){UP(f,{logMicClosed:!1,handleStop:!0})},f.prefetchResponseTimeoutMs)},mfu=function(f){f.prefetchResponseSetTimeoutId>-1&&(clearTimeout(f.prefetchResponseSetTimeoutId),f.prefetchResponseSetTimeoutId=-1)},G72=function(f){ekY(f);
f.noResponseReceivedTimeout=window.setTimeout(function(){UP(f);f.errorHandler("NO_SPEECH")},11E3)},ekY=function(f){f.noResponseReceivedTimeout>-1&&(window.clearTimeout(f.noResponseReceivedTimeout),f.noResponseReceivedTimeout=-1)},Iq=function(f){_.kT(f,void 0,"voice_assistant")};var C$=function(){D8.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.q(C$,D8);C$.prototype.isSupported=function(){return rfz()};
C$.prototype.startAudio=function(){var f=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.xe(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(G){zk2(f,G)};
this.processor.connect(this.audioContext.destination);var S=function(G){f.stream=G;if(!f.audioContext)return _.wh(null);G=f.audioContext.createMediaStreamSource(G);f.processor&&G.connect(f.processor);return _.wh(null)},B={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?S(this.stream):(B=navigator.mediaDevices.getUserMedia(B))?B.then(S).catch(function(G){UP(f);G.name&&G.name==="NotAllowedError"?f.errorHandler("NO_MICROPHONE_PERMISSION"):(f.errorHandler("AUDIO_ERROR"),f.logError(G));return _.xe(null)}):(UP(this),this.errorHandler("AUDIO_ERROR"),_.Lg(Error("dl")));
return D8.prototype.startAudio.call(this)};
C$.prototype.stopAudio=function(f){f=f===void 0?!0:f;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(S){S.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;D8.prototype.stopAudio.call(this,f)};
C$.prototype.isOnline=function(){return navigator.onLine};
var zk2=function(f,S){if(f.audioContext)if(window.OfflineAudioContext){var B=f.audioContext.sampleRate,G=S.inputBuffer.getChannelData(0);S=new window.OfflineAudioContext(1,G.length,16E3);for(var g=S.createBuffer(1,G.length,B),b=g.getChannelData(0),z=0,X=0;X<G.length;X++)b[X]=G[X],z+=b[X]*b[X];!f.audioDetected&&Math.sqrt(z/G.length)>.01&&(f.audioDetected=!0,f.audioDetectedHandler());G=S.createBufferSource();G.buffer=g;G.connect(S.destination);G.start(0);S.oncomplete=function(w){w=w.renderedBuffer.getChannelData(0);
for(var F=Math.floor(16384E3/B),V=new Int16Array(F),J=0;J<F;++J)V[J]=Math.max(-1,Math.min(1,w[J]))*32767;gNe(f,V.buffer)};
S.startRendering()}else RkO(f,S)},RkO=function(f,S){var B=f.audioContext.sampleRate,G=S.inputBuffer.getChannelData(0),g=Math.floor((B+8E3)/16E3);
B=G.length/g;S=new Float32Array(B);for(var b=0;b<B;++b)S[b]=G[b*g];G=new Int16Array(B);for(g=0;g<B;++g)G[g]=Math.max(-1,Math.min(1,S[g]))*32767;gNe(f,G.buffer)};var Xlu={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var wlB=function(){this.JSC$17795_audioEnabled=!0;this.audioFeedbackHolder={}};
wlB.prototype.isPlaying=function(f){return f.currentTime>0&&!f.paused&&!f.ended&&f.readyState>2};
var hk$=function(f){for(var S=_.m(Object.values(Xlu)),B=S.next();!B.done;B=S.next())B=B.value,f.audioFeedbackHolder[B]=new Audio,f.audioFeedbackHolder[B].src="/s/search/audio/"+B+".mp3",f.audioFeedbackHolder[B].load()},p$=function(f,S){if(f.JSC$17795_audioEnabled!==!1&&S in f.audioFeedbackHolder){for(var B=_.m(Object.values(f.audioFeedbackHolder)),G=B.next();!G.done;G=B.next())G=G.value,f.isPlaying(G)&&G.pause();
f.audioFeedbackHolder[S].currentTime=0;f.audioFeedbackHolder[S].play().catch(function(){})}};var TP2=function(f,S){var B=this;this.store=f;this.service=S;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){B.setState("offline");B.stop()};
this.audioPlayer=new wlB;var G;(G=this.audioPlayer)==null||hk$(G)};
_.e=TP2.prototype;_.e.getService=function(){return this.service};
_.e.isEnabled=function(){return!!this.service};
_.e.isSupported=function(){var f;return(f=this.service)==null?void 0:f.isSupported()};
_.e.start=function(){var f=this,S,B,G,g,b,z,X,w,F,V,J,P,d;return _.R(function(Q){switch(Q.nextAddress){case 1:f.store.dispatch(d1$("",""));if(!navigator.onLine)return f.setState("offline"),Q.return();window.addEventListener("offline",f.handleOfflineEvent);f.stream=null;if(!f.permissionsSupported){Q.jumpTo(2);break}_.zT(Q,3);return _.h(Q,F$z(f),5);case 5:S=Q.yieldResult;if(!S)return(B=f.audioPlayer)==null||p$(B,"failure"),Q.return();f.service.stream=f.stream;f.setState("listening");_.CN(Q,2);break;
case 3:_.hm(Q),f.permissionsSupported=!1;case 2:G={context:_.mEV(_.SC())},G.youtubeAssistantParams={searchParams:{inlineSearchResponse:f.enableInlineSearchResponse}},g=function(x,E){f.store.dispatch(i9z("transcribing"));f.store.dispatch(d1$(x,E))},b=function(){var x;
(x=f.audioPlayer)==null||p$(x,"open");f.setState("listening")},z=function(){f.setState("transcribing")},X=function(x){f.setErrorState(x)},w=function(x,E){var U;
(U=f.audioPlayer)==null||p$(U,"success");E&&(_.K("kevlar_voice_search_inline_search")&&(f.responseProcessor=_.oy().resolve(_.R8T),f.responseProcessor&&(U=E.navigationAction,x=E.prefetchedSearchResponse,U&&x&&(U=(new _.hUN).JSC$11063_getStoreKey(U),_.uG(f.responseProcessor,x,U)))),f.JSC$17813_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",E))},F=function(){window.removeEventListener("offline",f.handleOfflineEvent)},V=_.Jfj(!1),J=V.Authorization!=null,P=f.enableFirstPartyAuth||
f.enableFPAForSignedInUsers&&J?V:{"X-Goog-Visitor-Id":V["X-Goog-Visitor-Id"]},d={completeHandler:w,
errorHandler:X,listeningHandler:b,audioDetectedHandler:z,stopHandler:F,transcriptionUpdateHandler:g,youtubeAssistantRequest:G,languageCode:Vy2(),additionalHeaders:P,supportsCrossDomainXhr:f.enableFirstPartyAuth||f.enableFPAForSignedInUsers&&J,supportsHttpHeadersOverwriteParam:!f.disableHttpHeadersOverwrite},f.service.start(d),_.TT(Q)}})};
_.e.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.e.reset=function(){this.store.dispatch(_.ef({type:"RESET_VOICE_SEARCH_STATE"}))};
_.e.setState=function(f){this.store.dispatch(i9z(f))};
_.e.setErrorState=function(f){switch(f){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var S;(S=this.audioPlayer)==null||p$(S,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)F$z(this);else{var B;(B=this.audioPlayer)==null||p$(B,"failure");this.setState("permission-denied")}break;case "ABORTED":var G;(G=this.audioPlayer)==null||p$(G,"no_input");break;default:var g;(g=this.audioPlayer)==
null||p$(g,"no_input");this.setState("timeout")}};
var F$z=function(f){var S,B;return _.R(function(G){switch(G.nextAddress){case 1:return _.h(G,navigator.permissions.query({name:"microphone"}),2);case 2:S=G.yieldResult;if(S.state==="granted")return G.return(!0);if(S.state==="denied")return f.setState("permission-denied"),G.return(!1);f.setState("permission");B={audio:{sampleSize:16,channelCount:1},video:!1};_.zT(G,3);return _.h(G,navigator.mediaDevices.getUserMedia(B),5);case 5:return f.stream=G.yieldResult,G.return(!0);case 3:return _.hm(G),f.setState("permission-denied"),
G.return(!1)}})},Vy2=function(){var f=_.nL("INNERTUBE_CONTEXT_HL"),S=_.nL("INNERTUBE_CONTEXT_GL");
return f.indexOf("-")>-1?f:f+"-"+S};var JW2=function(f,S,B){TP2.call(this,S,B);this.JSC$17813_actionRouter=f;this.enableInlineSearchResponse=_.K("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.K("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.K("kevlar_voice_search_enable_fpa_signedin_users")},P3Z;
_.q(JW2,TP2);
var vNY=function(){if(!P3Z){var f="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.K("kevlar_voice_search_auth_enabled")||_.K("kevlar_voice_search_use_yt_endpoint")?f="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.K("kevlar_voice_search_use_fp_endpoint")&&(f="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");P3Z=
new JW2(_.AE.getInstance(),_.W2(),new C$(_.nL("VOZ_API_KEY"),f,.5))}return P3Z};var K$M=function(f){this.JSC$17817_clientRoot=f;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$17817_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)]]));f=_.m(this.eventListeners);for(var S=f.next();!S.done;S=f.next()){var B=_.m(S.value);S=B.next().value;B=B.next().value;B=_.m(B);for(var G=B.next();!G.done;G=B.next()){var g=
_.m(G.value);G=g.next().value;g=g.next().value;S.addEventListener(G,g)}}_.N6(_.AE.getInstance(),this.autonavPauseActionMap,this.JSC$17817_clientRoot)},df$,iV$=function(f){return _.K("kevlar_autonav_popup_filtering")?(f=_.lt(f))?f.hasAttribute("prevent-autonav"):!0:!0};
_.e=K$M.prototype;_.e.onIronOverlayOpened=function(f){iV$(f)&&(this.autonavPauseReasons.overlayOpen=!0,AC(this))};
_.e.onIronOverlayClosed=function(f){iV$(f)&&(this.autonavPauseReasons.overlayOpen=!1,AC(this))};
_.e.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;AC(this)};
_.e.onYtAutonavPauseBlur=function(){var f=this;_.xJ.addJob(function(){f.isInBackground()||(f.autonavPauseReasons.inputBoxFocus=!1,AC(f))},8,0)};
_.e.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;AC(this)};
_.e.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;AC(this)};
_.e.onYtAutonavPauseScroll=function(){var f=_.oy().resolve(_.o8);f.isOnWatch()&&(f=f.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=f.getBoundingClientRect().top<-200,AC(this))};
_.e.onYtAutonavPauseUserEngagement=function(f){var S=this;if(_.K("user_engagement_enable_autoplay_pause_feature")){var B=Number(f.lowEngagementThresholdMs);isNaN(B)||B<=0||f.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.yu("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.oy().resolve(_.k8),_.or()<B?_.q6(_.xJ,function(){_.yu("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.wL2()?(this.userEngagementCsn=_.xc(),_.q6(_.xJ,function(){_.yu("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
S.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,AC(this)):_.yu("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.dBG(Error("el`"+JSON.stringify(f)))};
_.e.onYtAutonavPausePlayer=function(f){this.autonavPauseReasons.requestedByPlayer=!!f.detail;AC(this)};
_.e.onYtAutonavVisibilityChanged=function(){var f=this,S,B,G;return _.R(function(g){if(g.nextAddress==1)return(S=_.B8())?_.h(g,S.getPlayerPromise(),2):g.return();B=g.yieldResult;G=B.isMuted()||B.getVolume()===0;f.autonavPauseReasons.backgroundAndMute=f.isInBackground()&&G;AC(f);_.TT(g)})};
_.e.onYtAutonavPausePlayerEnded=function(){_.oy().resolve(_.k8);var f=144E5;_.K("user_engagement_enable_autoplay_pause_feature")||_.K("is_part_of_any_user_engagement_experiment")||(f=45E5);this.autonavPauseReasons.longIdle=_.or()>f;HVz(this);AC(this)};
_.e.onYtUserActivity=function(){var f=this;this.autonavPauseReasons.userEngagement&&(_.q6(_.xJ,function(){_.yu("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",f.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,AC(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.q6(_.xJ,function(){_.yu("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",f.userEngagementCsn);_.OU()}),this.autonavPauseReasons.youthereLactExperiment=!1,AC(this));
this.autonavPauseReasons.longIdle&&!_.K("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,AC(this))};
_.e.isInBackground=function(){var f=window.document.visibilityState;return!(!f||f==="visible")};
var AC=function(f){for(var S=!1,B=_.m(Object.values(f.autonavPauseReasons)),G=B.next();!G.done;G=B.next())G=G.value,S=S||G;S?_.fD.getInstance().pause(f.autonavPauseReasons):(f=_.fD.getInstance(),f.autonavState_==3?(f.setState(2,!1,!1),f.autonavPauseReason_=void 0):f.autonavState_==1&&(f.disabledAutonavPauseReason_=void 0))},HVz=function(f){var S=!1;
if(_.K("enable_autoplay_pause_by_lact")){_.oy().resolve(_.k8);S=_.Gt("autoplay_pause_by_lact_sec")*1E3;var B=_.Gt("autoplay_pause_by_lact_sampling_fraction");(S=_.or()>=S&&Math.random()<B)&&!_.wL2()&&(_.q6(_.xJ,function(){_.yu("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),S=!1)}S!==f.autonavPauseReasons.youthereLactExperiment&&(f.autonavPauseReasons.youthereLactExperiment=S)&&(f.userEngagementCsn=_.xc(),_.q6(_.xJ,function(){_.yu("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",f.userEngagementCsn)}));
f.autonavPauseReasons.userEngagement&&_.q6(_.xJ,function(){_.yu("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",f.userEngagementCsn)})};
K$M.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.yu("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.OU(),this.autonavPauseReasons.youthereLactExperiment=!1,AC(this));this.autonavPauseReasons.userEngagement&&(_.yu("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,AC(this))};
K$M.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var Nd=function(){var f=_.I.apply(this,arguments)||this;f.miniGuideVisible=!1;f.guideOpened=_.K("disable_initial_guide_state_fix")?!1:f.canFitPersistentGuide(f.initialBodyClientWidth);f.guideUserStateOpened=f.getInitialGuideUserStateOpened();f.isFullscreenShorts=!1;f.miniGuideWidthThreshold=_.Gt("kevlar_mini_guide_width_threshold",791);f.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");f.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
f.persistentGuideBlockedPagePathRegex=new RegExp(f.persistentGuideBlockedPagesPatterns.join("|"));f.animationTransitionDuration=0;f.lateDataResolver=_.aa();f.initialGuideDataFetchFailed=!1;f.initialLoad=!0;f.guideRenderers=new Set;f.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts"};return f};
_.q(Nd,_.I);_.e=Nd.prototype;_.e.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.e.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.e.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.e.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.e.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.e.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.e.ready=function(){_.oy().addProvider({provide:_.DV,useValue:this.hostElement})};
_.e.attached=function(){var f=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.Fc(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.Fc(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.Fc(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.Fc(this,this.onYtGuideShow));_.ui(this,function(){f.animationTransitionDuration=200})};
_.e.detached=function(){document.removeEventListener("yt-navigate-finish",_.Fc(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.Fc(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.Fc(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.Fc(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.Fc(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.Fc(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.Fc(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.e.getData=function(){return this.data};
_.e.load=function(){var f=this,S,B,G,g;return _.R(function(b){switch(b.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=f.lateDataResolver.resolve.bind(f),b.return(f.lateDataResolver.promise);if(window.ytInitialGuideData)return S=_.aa(),S.resolve(window.ytInitialGuideData),b.return(S.promise);G=!1;_.zT(b,2);return _.h(b,f.fetchGuideData(),4);case 4:B=b.yieldResult;_.CN(b,3);break;case 2:g=_.hm(b),g.message==="Returned error"&&(G=!0);
case 3:if(B)return b.return(B);f.onYtGuideClose();G||(f.initialGuideDataFetchFailed=!0);return b.return(f.lateDataResolver.promise)}})};
_.e.fetchGuideData=function(){var f=this,S,B,G,g,b,z,X;return _.R(function(w){if(w.nextAddress==1)return S=_.oy(),f.guidePromise||(B=S.resolve(_.DU),f.guidePromise=_.uF(B,YWo)),_.h(w,f.guidePromise,2);if(w.nextAddress!=3)return G=w.yieldResult,g=S.resolve(_.M8),_.h(w,g(),3);(b=w.yieldResult)&&((z=G)==null?void 0:(X=z.responseContext)==null?void 0:X.maxAgeSeconds)!==0&&b.put("service:guide:fallback",new _.br({innertubeResponse:G}));return w.return(G)})};
_.e.initializeGuideDataIfEmpty=function(){var f=this,S,B;return _.R(function(G){if(G.nextAddress==1){if(!f.initialGuideDataFetchFailed||f.data)return G.return();_.zT(G,2);return _.h(G,f.fetchGuideData(),4)}if(G.nextAddress!=2)return(S=G.yieldResult)&&f.lateDataResolver.resolve(S),_.CN(G,0);B=_.hm(G);_.Lg(B);_.TT(G)})};
_.e.initializeGuideData=function(){var f=this,S;return _.R(function(B){switch(B.nextAddress){case 1:return _.J9(yYZ(),{mainAppWeb:_.ut()}),_.zT(B,2),_.h(B,f.load(),4);case 4:f.data=B.yieldResult;_.CN(B,3);break;case 2:_.hm(B),_.PY(yYZ(),"FAILURE");case 3:S=f.data&&f.data.items&&f.data.items.length>0?"SUCCESS":"FAILURE",_.PY(yYZ(),S),_.TT(B)}})};
_.e.setGuideData=function(f){var S=this,B,G;return _.R(function(g){if(g.nextAddress==1)return S.disabled?g.return():S.data?(f.data=S.data,S.guideRenderers.add(f),g.return()):_.h(g,S.initializeGuideData(),2);S.graftGuideToPage();B=_.s6("IS_HOMEPAGE_COLD")?"eop":void 0;_.K("disable_element_pool_populator")?S.setGuideDataAfterInit(f):(G=new _.G7(1,B),_.gP(G,S.setGuideDataAfterInit.bind(S,f)));_.TT(g)})};
_.e.setGuideDataAfterInit=function(f){f.data=this.data;f.markDirty();this.guideRenderers.add(f);_.AO(function(){_.kT("gle")});
_.ui(this,function(){_.kT("gpe")})};
_.e.graftGuideToPage=function(){if(this.data){var f=this.data&&this.data.trackingParams;f&&(f=_.Ye(f),_.wY(_.ik(),f))}};
_.e.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.Fc(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.e.onDrawerOpenedChanged=function(f,S){!S.value&&this.guideOpened&&(this.guideOpened=!1)};
_.e.onYtGuideToggle=function(f){var S=this.guideOpened;this.guideOpened=!S;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var B=_.K2();_.dh(0,109,!this.guideUserStateOpened);B.save()}this.updateGuideDrawerElementState();if(this.guideElement){var G;this.guideOpened&&((G=f.detail)==null?0:G.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.Fc(this,this.onAppDrawerTransitionedFromKeyInput));this.guideElement.addEventListener("app-drawer-transitioned",_.Fc(this,
this.onAppDrawerTransitioned))}S||this.initializeGuideDataIfEmpty()};
_.e.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Fc(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.uP(this.guideElement)};
_.e.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Fc(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(v8O(this.guideOpened))};
_.e.guidePersistentAndVisibleChanged=function(){_.mU(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.e.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.ef({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.e.miniGuideVisibleChanged=function(){_.mU(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.e.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(v8O(this.guideOpened)),this.initialLoad=!1);_.mU(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.e.activeEndpointChanged=function(){_.mU(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.e.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.e.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()};
_.e.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var f=this.canFitPersistentGuide(this.cachedClientWidth);f?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=f}this.updateGuideDrawerElementState()};
_.e.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.e.getGuideOpened=function(){return this.guideOpened};
_.e.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.e.getActiveEndpoint=function(){return this.activeEndpoint};
_.e.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.e.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&&_.ew(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.e.computeGuidePersistentAndVisible=function(){var f=this;_.NJ(this,"computeGuidePersistentAndVisible",function(){f.guidePersistentAndVisible=f.guideOpened&&f.guidePersistent;f.guideIsVisibleButNotPersistent=!(!f.guideOpened||f.guidePersistent)})};
_.e.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.e.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.e.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.e.startLoadingWatch=function(){this.closeGuide()};
_.e.startLoadingShorts=function(){_.K("web_hide_guide_on_shorts")&&this.closeGuide()};
_.e.onYtNavigateFinish=function(f,S){if(!_.Td||S){this.activeEndpoint=S.endpoint;this.pageType=S.pageType;this.pageUrl=S.response.url;var B,G;f=(G=_.H((B=S.endpoint)==null?void 0:B.commandMetadata,_.oD))==null?void 0:G.url;!this.pageUrl&&f&&(this.pageUrl=f);_.K("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.e.getVisibleGuideRenderer=function(){for(var f=_.m(this.guideRenderers),S=f.next();!S.done;S=f.next())if(S=S.value,this.miniGuideVisible&&S.is==="ytd-mini-guide-renderer"||this.guideOpened&&S.is==="ytd-guide-renderer")return S;return null};
_.e.markGuideRendererDirty=function(f){if(f){typeof f.markDirty==="function"&&f.markDirty();f=_.m([].concat(_.$d(_.m9(f).children)));for(var S=f.next();!S.done;S=f.next())this.markGuideRendererDirty(S.value)}};
_.e.persistentGuideEnabled=function(f,S){if(!S||f==="watch"||f==="settings"||f==="shorts"&&this.isFullscreenShorts||_.K("reels_web_disable_persistent_guide_shorts")&&f==="shorts")return!1;var B=_.Xl(S)||"";return _.K("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(G){return B===G}):!this.persistentGuideBlockedPagePathRegex.test(B)};
_.e.canFitPersistentGuide=function(f){var S=_.Gt("kevlar_persistent_guide_width_threshold",1312);return S===-1||_.K("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:f>S};
_.e.canFitMiniGuide=function(f){return this.miniGuideWidthThreshold===-1?!1:f>this.miniGuideWidthThreshold};
_.e.onResize=function(){var f=this;_.NJ(this,"calculateGuideState",function(){f.onResizeDebounced()})};
_.e.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.e.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.e.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.e.getInitialGuideUserStateOpened=function(){return!_.K2().getFlag(109)};
_.y3.Object.defineProperties(Nd.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.nL("initialBodyClientWidth")||window.innerWidth}}});
Nd.prototype.onResize=Nd.prototype.onResize;Nd.prototype.observeForMiniGuideVisible=Nd.prototype.observeForMiniGuideVisible;Nd.prototype.computeGuidePersistentAndVisible=Nd.prototype.computeGuidePersistentAndVisible;Nd.prototype.cachedClientWidthChanged=Nd.prototype.cachedClientWidthChanged;Nd.prototype.resetGuide=Nd.prototype.resetGuide;Nd.prototype.activeEndpointChanged=Nd.prototype.activeEndpointChanged;Nd.prototype.guideOpenedChanged=Nd.prototype.guideOpenedChanged;
Nd.prototype.miniGuideVisibleChanged=Nd.prototype.miniGuideVisibleChanged;Nd.prototype.guideIsVisibleButNotPersistentChanged=Nd.prototype.guideIsVisibleButNotPersistentChanged;Nd.prototype.guidePersistentAndVisibleChanged=Nd.prototype.guidePersistentAndVisibleChanged;Nd.prototype.onGuideElementChanged=Nd.prototype.onGuideElementChanged;Nd.prototype.onGuidePersistentChanged=Nd.prototype.onGuidePersistentChanged;Nd.prototype.onRenderGuideChanged=Nd.prototype.onRenderGuideChanged;
Nd.prototype.onActiveEndpointChanged=Nd.prototype.onActiveEndpointChanged;Nd.prototype.onMiniGuideVisibleChanged=Nd.prototype.onMiniGuideVisibleChanged;Nd.prototype.onGuideIsVisibleButNotPersistentChanged=Nd.prototype.onGuideIsVisibleButNotPersistentChanged;Nd.prototype.onGuidePersistendAndVisibleChanged=Nd.prototype.onGuidePersistendAndVisibleChanged;_.N([_.r(_.Ld),_.Z("design:type",Object)],Nd.prototype,"ironResizableBehavior",void 0);
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],Nd.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Nd.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],Nd.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Nd.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Boolean)],Nd.prototype,"disabled",void 0);
_.N([_.n(),_.Z("design:type",Boolean)],Nd.prototype,"guidePersistentAndVisible",void 0);_.N([_.JO("guidePersistentAndVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Nd.prototype,"onGuidePersistendAndVisibleChanged",null);_.N([_.n(),_.Z("design:type",Boolean)],Nd.prototype,"guideIsVisibleButNotPersistent",void 0);
_.N([_.JO("guideIsVisibleButNotPersistent"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Nd.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.N([_.n(),_.Z("design:type",Object)],Nd.prototype,"miniGuideVisible",void 0);_.N([_.JO("miniGuideVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Nd.prototype,"onMiniGuideVisibleChanged",null);_.N([_.n(),_.Z("design:type",Boolean)],Nd.prototype,"forceMiniGuideClose",void 0);
_.N([_.n(),_.Z("design:type",Object)],Nd.prototype,"activeEndpoint",void 0);_.N([_.JO("activeEndpoint"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Nd.prototype,"onActiveEndpointChanged",null);_.N([_.n(),_.Z("design:type",Boolean)],Nd.prototype,"renderGuide",void 0);_.N([_.JO("renderGuide"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Nd.prototype,"onRenderGuideChanged",null);
_.N([_.n(),_.Z("design:type",Object)],Nd.prototype,"guideOpened",void 0);_.N([_.n(),_.Z("design:type",Boolean)],Nd.prototype,"guidePersistent",void 0);_.N([_.JO("guidePersistent"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Nd.prototype,"onGuidePersistentChanged",null);_.N([_.n(),_.Z("design:type",Object)],Nd.prototype,"guideUserStateOpened",void 0);_.N([_.n(),_.Z("design:type",String)],Nd.prototype,"pageUrl",void 0);
_.N([_.n(),_.Z("design:type",String)],Nd.prototype,"pageType",void 0);_.N([_.n(),_.Z("design:type",Number)],Nd.prototype,"cachedClientWidth",void 0);_.N([_.n(),_.Z("design:type",Object)],Nd.prototype,"guideElement",void 0);_.N([_.n({selector:_.Ky}),_.Z("design:type",Object)],Nd.prototype,"isFullscreenShorts",void 0);_.N([_.JO("guideElement"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Nd.prototype,"onGuideElementChanged",null);
_.N([_.JO("guidePersistentAndVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Nd.prototype,"guidePersistentAndVisibleChanged",null);_.N([_.HF("guideIsVisibleButNotPersistent"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Nd.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.N([_.JO("miniGuideVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Nd.prototype,"miniGuideVisibleChanged",null);_.N([_.HF("guideOpened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Nd.prototype,"guideOpenedChanged",null);_.N([_.JO("activeEndpoint"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Nd.prototype,"activeEndpointChanged",null);
_.N([_.HF("pageUrl"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Nd.prototype,"resetGuide",null);_.N([_.HF("cachedClientWidth"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Nd.prototype,"cachedClientWidthChanged",null);_.N([_.JO("guideOpened","guidePersistent"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Nd.prototype,"computeGuidePersistentAndVisible",null);
_.N([_.HF("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Nd.prototype,"observeForMiniGuideVisible",null);_.N([_.Vg("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Nd.prototype,"onResize",null);_.N([_.C({disableElementRegistration:!0,is:"yt-guide-manager"})],Nd);var q0n=_.p(Nd,"yt-guide-manager",void 0,{mode:_.X_("kevlar_poly_si_batch_j081")?1:2});var Md=function(){var f=_.I.apply(this,arguments)||this;f.JSC$17827_keyboardInUse=!1;f.boundHandleCapturedKeydownEvent=function(S){f.handleCapturedKeydownEvent(S)};
return f};
_.q(Md,_.I);_.e=Md.prototype;_.e.attached=function(){this.listenToDocument(document)};
_.e.listenToDocument=function(f){f.addEventListener("keydown",_.Fc(this,this.onKeyDownEvent));f.addEventListener("keyup",_.Fc(this,this.onKeyUpEvent));f.addEventListener("mousedown",_.Fc(this,this.onMouseDownEvent));_.K("desktop_keyboard_capture_keydown_killswitch")||f.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);f.addEventListener("yt-page-data-updated",_.Fc(this,this.onPageUpdate))};
_.e.detached=function(){this.unlistenFromDocument(document)};
_.e.unlistenFromDocument=function(f){f.removeEventListener("keydown",_.Fc(this,this.onKeyDownEvent));f.removeEventListener("keyup",_.Fc(this,this.onKeyUpEvent));f.removeEventListener("mousedown",_.Fc(this,this.onMouseDownEvent));_.K("desktop_keyboard_capture_keydown_killswitch")||f.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);f.removeEventListener("yt-page-data-updated",_.Fc(this,this.onPageUpdate))};
_.e.ready=function(){_.oy().addProvider({provide:_.R5,useValue:this})};
_.e.isKeyBoardInUse=function(){return this.JSC$17827_keyboardInUse};
_.e.handleCapturedKeydownEvent=function(f){if(f.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(f)};
_.e.onMouseDownEvent=function(){this.JSC$17827_keyboardInUse=!1};
_.e.onPageUpdate=function(){if(_.K("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.K("web_shorts_keyboard_shortcut_usage_log")){_.on.clear();for(var f=_.m(_.lM),S=f.next();!S.done;S=f.next()){var B=_.m(S.value);S=B.next().value;B=B.next().value;B=_.Eo(B);_.on.set(S,B);_.Af(_.xc(),_.Of(),B)}_.SY.clear();f=_.m(_.fe);for(S=f.next();!S.done;S=f.next())B=_.m(S.value),S=B.next().value,B=B.next().value,B=_.Eo(B),_.SY.set(S,B),_.Af(_.xc(),_.Of(),B);_.NE(_.xc(),_.Of(),[].concat(_.$d(_.SY.values()),
_.$d(_.on.values())));_.Zu(_.xc(),[].concat(_.$d(_.SY.values()),_.$d(_.on.values())))}};
_.e.onMiniplayerActiveChange=function(){var f;(f=_.oy().resolve(_.N_).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(f.document):this.unlistenFromDocument(f.document))};
_.e.ignoreKeyEvent=function(f){if(f.ctrlKey||f.altKey)if(_.K("kevlar_macro_markers_keyboard_shortcut")){if(f.keyCode!==37&&f.keyCode!==39)return!0}else return!0;var S=_.ct(f)||[];return _.JYn(S)?!0:f.defaultPrevented?(TA(f.keyCode,f.shiftKey,this.isShortsPage),!0):f.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(f):!1};
_.e.isSpacebarClick=function(f){var S=f||window.event;var B;S.composedPath&&typeof S.composedPath==="function"?B=S.composedPath():B=S.path;B&&B.length?S=B[0]:(S=S||window.event,S=S.target||S.srcElement,S.nodeType==3&&(S=S.parentNode));return S&&f.keyCode===32&&(f=S.tagName==="BUTTON"||S.tagName==="A"||S.tagName==="INPUT",S=(S=S.getAttribute("role"))&&(S==="option"||S==="button"||S.indexOf("menuitem")===0),f||S)?!0:!1};
_.e.onKeyDownEvent=function(f){if(!this.ignoreKeyEvent(f)&&(f.keyCode===191&&(f.shiftKey||f.metaKey?f.repeat!=null&&f.repeat||(this.openHotkeyDialog(),TA(f.keyCode,f.shiftKey,this.isShortsPage)):(this.focusSearchBox(),f.preventDefault())),!f.metaKey)){var S=_.oy().resolve(_.N_);switch(f.keyCode){case 9:this.JSC$17827_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(f);break;case 84:S.pipController.getWindow()&&window.focus();this.toggleTheaterMode(f.keyCode,f.shiftKey);break;case 73:S.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(f.keyCode,f.shiftKey);break;case 70:if(this.isShortsPage&&_.K("web_fullscreen_shorts")){_.v0Z();break}this.isMiniplayerActive()?S.pipController.getWindow()&&(S.close(!0),window.focus()):this.passEventToPlayer(f);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(f.keyCode,f.shiftKey):this.closeMiniplayer(f.keyCode,f.shiftKey)||this.passEventToPlayer(f);break;case 13:f.shiftKey&&_.K("web_ephemeral_actions")&&_.oy().resolve(_.TI).activate(f);break;
default:this.passEventToPlayer(f)}}};
_.e.onKeyUpEvent=function(f){if(!this.ignoreKeyEvent(f))if(_.K("web_speedmaster_spacebar_control")&&f.keyCode===32)this.handlePlayerSpaceKey(f,!0);else{var S=this.getPlayerManager();S&&(S=S.getPlayer())&&S.handleGlobalKeyUp(f.keyCode,f.shiftKey,f.ctrlKey,f.altKey,f.metaKey,f.key,f.code)}};
_.e.getPlayerManager=function(){var f=_.B8(),S=_.oy().resolve(_.fN(_.o8));return f&&S&&S.isOnWatch()?f:null};
_.e.passEventToPlayer=function(f,S){var B=this,G,g,b;return _.R(function(z){if(z.nextAddress==1)return!_.K("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&B.isMiniplayerActive()?G=_.oy().resolve(_.N_).getPlayerElement():B.inlinePreviewIsActive?(g=_.mU(B.hostElement,"yt-get-inline-preview-player-action"))&&g[0]&&(G=g[0]):G=_.B8(),G?_.h(z,G.getPlayerPromise(),3):z.jumpTo(0);b=z.yieldResult;S?b.handleGlobalKeyUp(f.keyCode,f.shiftKey,f.ctrlKey,f.altKey,f.metaKey,f.key,f.code,f.repeat):b.handleGlobalKeyDown(f.keyCode,
f.shiftKey,f.ctrlKey,f.altKey,f.metaKey,f.key,f.code,f.repeat);f.keyCode!==38&&f.keyCode!==40&&TA(f.keyCode,f.shiftKey,B.isShortsPage);_.TT(z)})};
_.e.focusSearchBox=function(){_.ew(this.hostElement,"yt-focus-searchbox")};
_.e.openHotkeyDialog=function(){_.ew(this.hostElement,"yt-open-hotkey-dialog")};
_.e.isMiniplayerActive=function(){return _.oy().resolve(_.N_).isMiniplayerActive()};
_.e.closeMiniplayer=function(f,S){return this.isMiniplayerActive()?(_.oy().resolve(_.N_).close(),TA(f,S,this.isShortsPage),!0):!1};
_.e.toggleTheaterMode=function(f,S){var B=_.CF(_.W2().getState()),G=this.getPlayerManager(),g=_.K("disable_theater_mode_keyboard")||_.s6("START_IN_FULL_WINDOW_MODE");G&&!g&&(B=!B,_.Sw()&&_.K("external_fullscreen")&&(B=!0),_.bW(this.hostElement,"yt-toggle-theater-mode",[B]),TA(f,S,this.isShortsPage))};
_.e.toggleMiniplayer=function(f,S){var B=this.getPlayerManager();if(this.isMiniplayerActive()){var G;((G=_.oy().resolve(_.fN(_.o8)))==null?0:G.isOnWatch())?_.oy().resolve(_.N_).close(!0):_.i$(_.oy().resolve(_.N_));TA(f,S,this.isShortsPage)}else B&&(_.bW(this.hostElement,"yt-activate-miniplayer-from-watch-action"),TA(f,S,this.isShortsPage))};
_.e.handlePlayerSpaceKey=function(f,S){var B=!!_.B8()||this.isMiniplayerActive();B=_.K("disable_space_scroll_fix")||B;_.K("global_spacebar_pause")&&!this.isKeyBoardInUse()&&B&&(f.preventDefault(),this.passEventToPlayer(f,S))};
_.e.isPresentingTheaterMode=function(){return _.K("web_watch_enable_tm_esc_key")?_.CF(_.W2().getState())&&!_.Sw():!1};
Md.prototype.onMiniplayerActiveChange=Md.prototype.onMiniplayerActiveChange;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Md.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],Md.prototype,"ytdReduxBehavior",void 0);_.N([_.n({selector:_.bW9}),_.Z("design:type",Boolean)],Md.prototype,"inlinePreviewIsActive",void 0);_.N([_.n({selector:_.FEO}),_.Z("design:type",Boolean)],Md.prototype,"isShortsPage",void 0);
_.N([_.n({selector:_.LJ}),_.Z("design:type",Boolean)],Md.prototype,"miniplayerIsActive",void 0);_.N([_.JO("miniplayerIsActive"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Md.prototype,"onMiniplayerActiveChange",null);_.N([_.C({disableElementRegistration:!0,is:"yt-hotkey-manager"})],Md);_.p(Md,"yt-hotkey-manager",void 0,{mode:_.X_("kevlar_poly_si_batch_j081")?1:2});var Z8=function(){var f=_.I.apply(this,arguments)||this;f.loopStateEntityKey_=null;f.playlistLoopStateEntity_=null;f.isShuffleNextPlaylist=!1;f.PLAYER_EVENTS_=new Map;f.playerListenersSetup_=!1;f.videoSkipJob_=0;f.canAutoAdvance_=!1;f.playerManager_=null;f.TEST_ONLY={};return f};
_.q(Z8,_.I);_.e=Z8.prototype;_.e.ready=function(){_.oy().addProvider({provide:_.Dr,useValue:this.hostElement})};
_.e.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_)};
_.e.attached=function(){document.addEventListener("yt-navigate-start",_.Fc(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.Fc(this,this.onYtNavigateFinish_))};
_.e.detached=function(){document.removeEventListener("yt-navigate-start",_.Fc(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.Fc(this,this.onYtNavigateFinish_))};
_.e.updatePlaylistEventListeners=function(f,S){S&&!this.playerListenersSetup_?(this.playerManager_=f,this.registerPlaylistEventListeners_(f)):!S&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(f))};
_.e.setPlayer=function(f){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=f};
_.e.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.e.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.e.registerPlaylistEventListeners_=function(f){var S=this;f.getPlayerPromise().then(function(B){S.playerListenersSetup_||(S.ytPlayerListenerBehavior.listenToPlayerEvents(B,S.PLAYER_EVENTS_),S.playerListenersSetup_=!0)})};
_.e.removePlaylistEventListeners_=function(f){var S=this;f.getPlayerPromise().then(function(B){S.playerListenersSetup_&&(S.ytPlayerListenerBehavior.unlistenFromPlayerEvents(B,S.PLAYER_EVENTS_),S.playerListenersSetup_=!1)})};
_.e.setPlaylistComponent=function(f){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.Fc(this,this.onPlaylistYtNavigate_)),f&&(f.data&&this.playlistComponent.data&&f.data.playlistId==this.playlistComponent.data.playlistId?(f.loopOn=this.playlistComponent.loopOn,f.shuffleOn=this.playlistComponent.shuffleOn):(f.loopOn=!1,f.shuffleOn=!1),this.isShuffleNextPlaylist&&(f.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=f;this.playlistComponent.addEventListener("yt-navigate",
_.Fc(this,this.onPlaylistYtNavigate_))};
_.e.setAutoplayRenderer=function(f){this.autoplayData=f};
_.e.setPlaylistData=function(f){this.currentPlaylistData_=f;_.ew(this.hostElement,"yt-playlist-data-updated");_.$v.isEmpty(f)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(f)};
_.e.setPlayerPlaybackControlData=function(f){this.playerManager_&&this.playerManager_.updatePlayerComponents(f.playlistPanelRenderer)};
_.e.getPlaylistData=function(){return this.currentPlaylistData_};
_.e.getTempData_=function(f,S){if(this.playlistComponent==null)return null;f={};this.playlistComponent.shuffleOn&&(f.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(f.loop_on=this.playlistComponent.loopOn);S&&(f.autonav="1",_.oy().resolve(_.k8),S=_.or(),S>0&&(f.lact=S),this.playerManager_&&(S=this.playerManager_.getPlayer())&&S.shouldSendVisibilityState()&&(S=S.getVisibilityState(),S!=0&&(f.vis=S)));_.K("enable_unknown_lact_fix_on_html5")&&(_.oy().resolve(_.k8),f.lact=
_.or());return f};
_.e.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.e.setLoopStateEntityKey_=function(f){var S;this.loopStateEntityKey_=((S=this.getPlaylistLoopData_(f))==null?void 0:S.playlistLoopStateEntityKey)||null};
_.e.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.e.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.e.skipVideo=function(){var f=this,S=_.K("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||S)S=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.H8(_.xJ,function(){f.onPlaylistNext();f.videoSkipJob_=0},S)};
_.e.cancelVideoSkip=function(){this.videoSkipJob_&&(_.xJ.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.e.isInBackground_=function(){var f=window.document.visibilityState;return!(!f||f=="visible")};
_.e.onPlaylistIndex_=function(f){this.playlistComponent&&(f=this.playlistComponent.data.contents[f].playlistPanelVideoRenderer.navigationEndpoint,_.ew(this.hostElement,"yt-navigate",{endpoint:f,tempData:this.getTempData_(f)}))};
_.e.onPlayerStateChange_=function(f){if(f=f==0&&this.playlistComponent&&this.canAutoAdvance_)f=_.fD.getInstance(),f=!(f.autonavState_===3?f.autonavPauseReason_&&f.autonavPauseReason_.inputBoxFocus===!0:f.autonavState_===1&&f.disabledAutonavPauseReason_&&f.disabledAutonavPauseReason_.inputBoxFocus===!0);f&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.e.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.e.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.e.navigateToAutoplayWatchEndpoint_=function(f,S,B){var G=this.playlistComponent.data.currentIndex,g=this.getNumPlayableVideos_();f=="NORMAL"&&S=="autoplayVideo"&&G+1>=g&&B||!(f=this.getVideoEndpoint_(f,S))||(B=this.getTempData_(f,B),_.ew(this.hostElement,"yt-navigate",{endpoint:f,tempData:B}))};
_.e.getNumPlayableVideos_=function(){for(var f=0,S=_.m(this.playlistComponent.data.contents||[]),B=S.next();!B.done;B=S.next())B.value.playlistPanelVideoRenderer&&(f+=1);return f};
_.e.getVideoEndpoint_=function(f,S){if(this.autoplayData&&this.autoplayData.sets)for(var B=0,G=this.autoplayData.sets.length;B<G;B++){var g=this.autoplayData.sets[B];if(g.mode==f){if(g[S])return g[S];break}}else f=new _.dO("AutoplayData is undefined in playlist manager","Mode: "+f+" endpoint: "+S),_.Lg(f)};
_.e.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.e.onPlaylistYtNavigate_=function(f){if(f.detail.endpoint){f.stopPropagation();var S=f.detail;S.tempData=this.getTempData_(f.detail.endpoint);_.ew(this.hostElement,"yt-navigate",S)}};
_.e.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.e.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.e.playlistLoopStateEntityChanged_=function(f){var S=this,B,G,g;return _.R(function(b){if(b.nextAddress==1){if(!f)return b.return();B=f.state==="PLAYLIST_LOOP_STATE_ONE";return S.playerManager_?_.h(b,S.playerManager_.getPlayerPromise(),3):b.jumpTo(2)}b.nextAddress!=2&&(G=b.yieldResult,G.setLoopVideo(B));g=f.state==="PLAYLIST_LOOP_STATE_ALL";S.playlistComponent&&(S.playlistComponent.loopOn=g);_.TT(b)})};
_.e.getPlaylistLoopData_=function(f){var S,B;if(f=f==null?void 0:(S=f.playlistButtons)==null?void 0:(B=S.menuRenderer)==null?void 0:B.topLevelButtons)for(S=_.m(f),B=S.next();!B.done;B=S.next())if(B=B.value,B.playlistLoopButtonRenderer)return B.playlistLoopButtonRenderer};
_.e.getLoopStateCommand_=function(f){var S=this.getPlaylistData(),B;S=((B=this.getPlaylistLoopData_(S))==null?void 0:B.states)||[];var G;f=(G=_.H(S[f?1:2],_.XqX))==null?void 0:G.button;var g;return(g=_.H(f,_.IR))==null?void 0:g.command};
_.e.onPlayerLoopChange_=function(f){this.playlistLoopStateEntity_&&(f?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(f=this.getLoopStateCommand_(f))&&this.ytComponentBehavior.resolveCommand(f)};
_.e.onSleepTimerSettingsChanged_=function(f){this.canAutoAdvance_=f!=="End of video"};
Z8.prototype.onPlaylistLoopStateEntityChanged=Z8.prototype.onPlaylistLoopStateEntityChanged;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Z8.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.Nr.YtPlayerListenerBehavior),_.Z("design:type",_.Mr)],Z8.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],Z8.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Z8.prototype,"loopStateEntityKey_",void 0);
_.N([_.n({selectorArgs:["loopStateEntityKey_"],selector:_.dW1}),_.Z("design:type",Object)],Z8.prototype,"playlistLoopStateEntity_",void 0);_.N([_.JO("playlistLoopStateEntity_"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Z8.prototype,"onPlaylistLoopStateEntityChanged",null);_.N([_.C({disableElementRegistration:!0,is:"yt-playlist-manager"})],Z8);_.p(Z8,"yt-playlist-manager",void 0,{mode:_.X_("kevlar_poly_si_batch_j081")?1:2});var $fX,Q5e=function(){if($fX!==void 0)return $fX;var f=document.createElement("template");_.Y(f,"\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");f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return $fX=f};var tC=function(){var f=_.I.apply(this,arguments)||this;f.lastCallback=null;f.getAccountLinkPromises={};f.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);f.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return f};
_.q(tC,_.I);_.e=tC.prototype;_.e.getLocation=function(){return window.location.href};
_.e.getCompletionUrl=function(){return _.yw(this.getLocation())};
_.e.containsRedirectState=function(f){return(f=_.Lz(_.fnN(f)))?(new URLSearchParams(f)).get("redirect_state")!==null:!1};
_.e.createGalConfig=function(f,S){var B=new p8u;f=B=S?this.getPopupOrRedirectSetting(B,_.nL("LINK_API_KEY"),_.nL("LINK_API_KEY_REDIRECT"),f):ADo(B,_.nL("LINK_API_KEY"));f.authUser=_.nL("SESSION_INDEX")||0;f.supportedFlows=new Set([4]);return f.build()};
_.e.getPopupOrRedirectSetting=function(f,S,B,G){this.isGalInteractionPopupMode(G)?(f.interactionMode=0,f=ADo(f,S)):(f.interactionMode=1,S=this.getCompletionUrl(),f.completionUrl=S,f=ADo(f,B));return f};
_.e.isGalInteractionPopupMode=function(f){if(this.redirectModeProviderAllowlist.has(f))switch(f){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.e.getStatusEntityKeyForProviderId=function(f){return _.XV(f+":all","accountLinkStatusEntity")};
_.e.findNestedPropValue=function(f,S){var B=!1,G=null;JSON.stringify(f,function(g,b){B||g!==S||(B=!0,G=b);return B?null:b});
return G};
_.e.findAccountLinkButtonViewModel=function(f,S){var B=null,G=!1;JSON.stringify(f,function(g,b){G||b.accountLinkStatusEntityKey!==S||b.accountLinkStatusSecondaryEntityKey||(G=!0,B=b);return G?null:b});
return B};
_.e.executeLinkingSuccessOrFailureCommands=function(f,S,B){var G=null,g;(S==null?0:(g=S.url)==null?0:g.includes("account_sharing"))?G=S==null?void 0:S.response:G=S==null?void 0:S.response;(S=this.findAccountLinkButtonViewModel(G,f))?(f=B?this.findNestedPropValue(S,"onSuccessCommand"):this.findNestedPropValue(S,"onFailureCommand"))?_.TZ([f],this.hostElement):_.CL(Error("fl")):_.CL(Error("gl`"+f))};
_.e.handleInitializeRequest=function(f,S){var B=this,G=Vun(this.createGalConfig(f,!0));this.containsRedirectState(this.getLocation())?XSu(f,G.config,G.galService).then(function(g){var b=B.getStatusEntityKeyForProviderId(f);if(g.statusCode===1)S&&B.executeLinkingSuccessOrFailureCommands(b,S,!0),g=B.getLocation().indexOf("#"),g!==-1&&window.history.pushState(null,"",B.getLocation().substring(0,g));else return S&&B.executeLinkingSuccessOrFailureCommands(b,S,!1),Promise.reject(Error(g.statusMessage))}).catch(function(g){_.Lg(g);
_.jD("gamingAccountLinkStatusChanged",{serviceId:f,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(g)}):this.getAccountLinkPromises[f]=G.startLinkingSession({serviceId:f})};
_.e.handleAccountLinkCommand=function(f){_.H(f,QVu)&&this.handleLinkRequest(_.H(f,QVu))};
_.e.handleLinkRequest=function(f){var S=this,B=f.thirdPartyId;if(B)if(this.isGalInteractionPopupMode(B)){var G=function(){S.closeAndFire("ytd-gaming-account-link-setting-renderer",f.onFailureCommand)},g=function(){S.closeAndFire("ytd-gaming-account-link-setting-renderer",f.onSuccessCommand)};
this.lastCallback=g;this.getAccountLinkPromises[B].then(function(b){dVu(b).then(function(z){z.statusCode===1?g():G()})}).catch(function(){G()})}else this.getAccountLinkPromises[B].then(function(b){dVu(b).then(function(z){if(z.statusCode!==1)return Promise.reject(Error(z.statusMessage))})}).catch(function(b){_.Lg(b);
_.jD("gamingAccountLinkStatusChanged",{serviceId:B,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(b)})};
_.e.closeAndFire=function(f,S){_.bW(this.hostElement,"yt-close-popup-action",[f]);S&&_.TZ([S],this.hostElement)};
_.e.handleAccountUnlinkCommand=function(f){_.H(f,Ydu)&&this.handleUnlinkRequest(_.H(f,Ydu))};
_.e.handleUnlinkRequest=function(f){var S=this,B=f.thirdPartyId;if(B){var G=function(){S.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",f.onFailureCommand)},g=function(){S.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",f.onSuccessCommand)};
this.lastCallback=g;var b=Vun(this.createGalConfig(B,!1));this.unlinkUserGal(b,B).then(function(z){z.statusCode===1?g():G()}).catch(function(){G()})}};
_.e.unlinkUserGal=function(f,S){return f.deleteLink(S)};
_.e.handleLogAccountLinkingEventCommand=function(f){_.K("enable_gel_log_commands")&&_.H(f,r5z)&&(f=_.H(f,r5z).event)&&_.jD("gamingAccountLinkStatusChanged",f)};
_.y3.Object.defineProperties(tC,{template:{configurable:!0,enumerable:!0,get:function(){return Q5e()}}});
_.N([_.r(_.JW.YtOpenPopupBehavior),_.Z("design:type",Object)],tC.prototype,"ytOpenPopupBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],tC.prototype,"ytActionHandlerBehavior",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-third-party-manager"})],tC);_.p(tC,"ytd-third-party-manager",function(){return Q5e()},{mode:_.X_("kevlar_poly_si_batch_j081")?1:2});var Y02,rWu=function(){return Y02!==void 0?Y02:Y02=document.createElement("template")};
document.head.appendChild(rWu().content);var j52,OVz=function(){if(j52!==void 0)return j52;var f=document.createElement("template");_.Y(f,"\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");f.content.insertBefore(rWu().content.cloneNode(!0),f.content.firstChild);f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return j52=f};var xfu=_.f4(["\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      "]),uD=function(){var f=_.I.apply(this,arguments)||this;f.currentPage=void 0;f.renderLoadingStateJobId=0;f.updatePageDataJobId=0;f.pageDisposeJobsets=new WeakMap;f.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"};f.applyZoomTransition=_.gO("web_page_transition_type")==="zoom";f.applySlideTransition=_.gO("web_page_transition_type")==="slide"||_.K("enable_plj_landing_page");f.TEST_ONLY=void 0;return f};
_.q(uD,_.I);_.e=uD.prototype;_.e.ready=function(){var f=_.oy();f.addProvider({provide:_.o8,useValue:this});f.addProvider({provide:_.nE8,useValue:this})};
_.e.created=function(){this.pagePool=new ff2;this.contextSwitcher=new hHu};
_.e.attached=function(){_.ew(this.hostElement,"attached");var f=_.oy().resolve(_.fN(_.st));f&&(this.contextSwitcher.JSC$17651_networkService_=f);this.viewTransitionCoordinator=_.oy().resolve(_.fN(_.zI));this.setupPageTransitionAnimation()};
_.e.getPageOffset=function(f){return f.getScrollTop()};
_.e.setPageOffset=function(f,S){try{f.setScrollTop(S)}catch(B){}};
_.e.setPageOffsetForNavigation=function(f,S){_.ew(this.hostElement,"yt-navigate-set-page-offset",{page:f,offset:S===void 0?0:S})};
_.e.pauseActiveContext=function(){var f=this.contextSwitcher;f.activeContext_&&f.activeContext_.pause()};
_.e.getModuleNameForType=function(f){return f==="watch"?_.K("kevlar_watch_fixie")?"watchFixie":_.K("kevlar_watch_grid")?"watchGrid":"watchFlexy":f==="shorts"||f==="search"?f:"browse"};
_.e.attachPage=function(f){var S,B=!_.K("pc_is_attached_ks")&&(f==null?void 0:(S=f.polymerController)==null?void 0:S.isAttached);if(!f.isAttached&&!B)try{_.m9(this.hostElement).appendChild(f)}catch(g){var G;_.Lg(new _.dO("Error attaching page element for component",{origin:(G=this.currentPage)==null?void 0:G.is,component:f.is}))}};
_.e.setActivePage=function(f){var S=this,B=!1,G=function(){var g=S.isOnWatch(),b=S.currentPage;if(f)if(f!==S.currentPage){b&&(b.hidden=!0,b.active=!1,b.removeAttribute("role"));S.currentPage=f;var z,X=_.Pt((z=S.data)==null?void 0:z.endpoint);b&&_.ew(S.hostElement,"yt-page-type-changed",{oldPageType:b.is,newPageType:f.is,newPageSubtype:X});_.al().dispatch(_.ef({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:f.is}));_.al().dispatch(_.ef({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:X||""}));f.hidden=
!1;S.attachPage(f);f.active=!0;f.setAttribute("role","main");b&&S.setPageOffsetForNavigation(f,0);_.K("kevlar_remove_page_dom_on_switch")&&!g&&b&&_.m9(S.hostElement).removeChild(b)}else B=!0;else g=new _.dO("Unable to set active page",b?b.is:"unknown origin",(X=S.data)==null?void 0:X.endpoint),_.xH(g)};
this.viewTransitionCoordinator?sSu(this.viewTransitionCoordinator,G,this.viewTransitionConfigForSetActivePage(this.currentPage,f)):G();return B};
_.e.viewTransitionConfigForSetActivePage=function(f,S){return _.K("web_thumbnail_to_watch_transition")&&(f==null?void 0:f.is)==="ytd-browse"&&this.isWatchPage(S)?{viewTransitionOptions:{shouldWrap:!0}}:(this.applySlideTransition||this.applyZoomTransition)&&(f==null?void 0:f.is)==="ytd-browse"&&(S==null?void 0:S.is)==="ytd-browse"&&f!==S?this.applySlideTransition?{transitionType:"slide"}:{transitionType:"zoom"}:(f==null?void 0:f.is)!=="ytd-browse"||(S==null?void 0:S.is)!=="ytd-watch-learning-journey"&&
(S==null?void 0:S.tagName.toLowerCase())!=="ytd-watch-learning-journey"?{viewTransitionOptions:{shouldWrap:!1}}:{transitionType:"learning-journey"}};
_.e.updatePageData=function(f){var S=this,B=this.data;this.updatePageDataJobId&&_.xJ.cancelJob(this.updatePageDataJobId);this.data=f;return new _.TM(function(G){var g=function(){f.filler?S.performDataUpdate(f,B):fwM(function(){S.performDataUpdate(f,B)});
var w=_.UX();_.CD(w,"cr")||w.processSignal("cr");G()},b=function(){f&&f.page==="watch"?S.updatePageDataJobId=_.H8(_.xJ,g):g()};
if(_.K("kevlar_enable_mss_page_modules_client")&&f){var z=_.oy().resolve(_.ZW),X=S.getModuleNameForType(f.page);(z=Ckz(z,[X]))?z.then(b):b()}else b()})};
_.e.isDownloadsPage=function(f){var S,B;return(f==null?void 0:(S=f.endpoint)==null?void 0:(B=S.browseEndpoint)==null?void 0:B.browseId)==="FEdownloads"};
_.e.setPlayerSyncInterval=function(f){var S;return _.R(function(B){if(B.nextAddress==1)return _.h(B,_.oy().resolve(_.ms),2);S=B.yieldResult;S.setUpPositionSyncInterval(f);_.TT(B)})};
_.e.performDataUpdate=function(f,S){_.K("kevlar_early_popup_close")||_.bW(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var B=!f.filler;B&&(_.kT("lps"),_.K("config_age_report_killswitch")||x7Y());var G=Bb(f),g,b=!1;if(_.K("kevlar_remove_page_dom_on_switch")){var z=S&&Bb(S);G===z&&(g=this.getCurrentPage())}g||(g=sP(this.pagePool,G));B&&BR2(this.pagePool.elementPoolPopulator,G);B&&!this.renderLoadingStateJobId&&(b=this.setActivePage(g));if(g){z=G==="watch";var X=
G==="shorts",w=G==="learning_journey_watch";_.K("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(g);if(z||X||w)g.playerData=f.playerResponse;if(X){f.reelWatchSequenceResponse?g.reelWatchSequenceResponse=f.reelWatchSequenceResponse:f.cachedReelWatchSequenceResponse?g.reelWatchSequenceResponse=f.cachedReelWatchSequenceResponse:_.K("web_enable_cached_reel_sequence_fix")&&g.cachedReelWatchSequenceResponse&&!g.reelWatchSequenceResponse&&(g.reelWatchSequenceResponse=g.cachedReelWatchSequenceResponse);
g.currentEndpoint=f.endpoint;var F;g.isPreviousPageShorts=!!(S==null?0:(F=S.endpoint)==null?0:F.reelWatchEndpoint);f.cachedReelWatchSequenceResponse=f.reelWatchSequenceResponse||f.cachedReelWatchSequenceResponse||(S==null?void 0:S.cachedReelWatchSequenceResponse);g.cachedReelWatchSequenceResponse=f.cachedReelWatchSequenceResponse}F=this.isDownloadsPage(f);var V=this.isDownloadsPage(S);F&&!V?this.setPlayerSyncInterval(6E5):!F&&V&&this.setPlayerSyncInterval();_.K("block_all_player_prefetch_requests")||
this.preparePrefetchRequest(f,g,B,z,X,w);pse(_.oy().resolve(_.N_),S,f);_.WX(_.oy().resolve(_.k8));_.K("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(g);B?(B=typeof g.loadPage,B==="function"?(g.pageContext=TQB(this.contextSwitcher,g,g.data!==f.response),B=function(){g.loadPage(f.response)},(this.applySlideTransition||this.applyZoomTransition)&&this.viewTransitionCoordinator&&g.is==="ytd-browse"&&b&&(G==="learning"||this.isDifferentBrowseId(f==null?void 0:f.endpoint,
S==null?void 0:S.endpoint))?this.applySlideTransition?sSu(this.viewTransitionCoordinator,B,{transitionType:"slide"}):sSu(this.viewTransitionCoordinator,B,{transitionType:"zoom"}):B()):_.EU(new _.dO("b/38014653 ",[G,
g.is,g.nodeName,B,g.isAttached,S&&Bb(S),this.hostElement.children.length])),_.kT("pdl")):(g.hidden=!0,f.response.filler=!0,g.data=f.response,this.attachPage(g));_.ew(this.hostElement,"yt-page-data-updated",{pageType:G})}_.q6(_.xJ,function(){_.K("logging_avoid_blocking_during_navigation")&&_.tdN().transition("none");var J=jvB(),P=g;if(f){var d=b2X(f),Q=mEu(f),x;a:{if(f.playerResponse){var E=f.playerResponse,U;if((x=E.auxiliaryUi)==null?0:(U=x.messageRenderers)==null?0:U.upsellDialogRenderer){x=E.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(f.response&&(x=f.response,(E=x.overlay)==null?0:E.upsellDialogRenderer)){x=x.overlay.upsellDialogRenderer;break a}x=void 0}var A;var t;U=(A=f.playerResponse)==null?void 0:(t=A.auxiliaryUi)==null?void 0:t.messageRenderers;A=(U==null?void 0:U.enforcementMessageViewModel)||(U==null?void 0:U.bkaEnforcementMessageViewModel);A=(A==null?void 0:A.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?A:void 0;var M;a:{if(f.response&&(t=f.response,(M=t.overlay)==null?0:M.commandWrapperPromoRenderer)){M=
t.overlay.commandWrapperPromoRenderer;break a}M=void 0}rin(J,d,Q,x,A,M,P)}})};
_.e.preparePrefetchRequest=function(f,S,B,G,g,b){var z,X,w,F,V,J,P,d,Q,x,E,U,A,t,M;return _.R(function(a){if(a.nextAddress==1)return!B||!(G||g||b)||_.K("kevlar_disable_background_prefetch")&&_.Ij(_.IRN)()===0?a.return():(z=_.SW(S))?_.h(a,z.getPlayerPromise(),2):a.return();X=a.yieldResult;w=_.oy().resolve(_.fN(_.st));if(!w)return a.return();if(g)return F=_.RQ(_.qm),R5M(F,(V=f.endpoint)==null?void 0:V.reelWatchEndpoint,S.reelWatchSequenceResponse,X,w),a.return();d=(J=f.response)==null?void 0:(P=J.responseContext)==
null?void 0:P.webResponseContextExtensionData;if(!d)return a.return();A=(Q=f.response)==null?void 0:(x=Q.contents)==null?void 0:(E=x.twoColumnWatchNextResults)==null?void 0:(U=E.autoplay)==null?void 0:U.autoplay;t=_.oy().resolve(_.Dr);M=_.RQ(_.qm);Xs2(M,d,X,w,t,A);_.TT(a)})};
_.e.movePlayerToWatch=function(f){var S=this,B,G;return _.R(function(g){B=sP(S.pagePool,"watch");G=B.getPlayerContainer();f.appendTo(G);_.TT(g)})};
_.e.movePlayerToShorts=function(f){var S=this,B,G,g;return _.R(function(b){B=sP(S.pagePool,"shorts");G=B.getPlayerContainer();(g=f)==null||g.appendTo(G,void 0,!0);_.TT(b)})};
_.e.getPlayerFromWatch=function(){var f=sP(this.pagePool,"watch");return _.SW(f)};
_.e.getPlayerFromShorts=function(){var f=sP(this.pagePool,"shorts");return _.SW(f)};
_.e.startLoadingWatch=function(){var f=sP(this.pagePool,"watch");this.renderLoadingStateJobId?(_.xJ.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(f)};
_.e.startLoadingShorts=function(){var f=sP(this.pagePool,"shorts");this.setActivePage(f)};
_.e.startLoadingLearningJourney=function(){var f=sP(this.pagePool,"learning_journey_watch");this.setActivePage(f)};
_.e.getCurrentPage=function(){return this.currentPage};
_.e.getDestinationPageType=function(){return this.destinationPageType};
_.e.getCurrentData=function(){return this.data};
_.e.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.e.isOnShorts=function(){var f;return((f=this.currentPage)==null?void 0:f.is)==="ytd-shorts"};
_.e.isWatchPage=function(f){return!!f&&(f.is==="ytd-watch-flexy"||f.is==="ytd-watch-fixie"||f.is==="ytd-watch-grid")};
_.e.preparePage=function(f,S){var B=this,G=function(){var z=B.pagePool.preparePage(f,B.currentPage,S);z&&B.attachPage(z)},g=function(z){_.kH(z,S);
_.Lg(z)};
if(_.K("kevlar_enable_mss_page_modules_client")){var b=this.getModuleNameForType(f);if(b=Ckz(_.oy().resolve(_.ZW),[b])){b.then(G.bind(this)).catch(g.bind(this));return}}try{G()}catch(z){g(z)}};
_.e.lazyPrepareCriticalPages=function(f,S){f=_.Pt(S)||f;_.K("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(f).then(this.maybePrepareWatchPage.bind(this,f)):this.maybePrepareWatchPage(f)};
_.e.maybePrepareWatchPage=function(f){f!=="watch"&&_.q6(_.xJ,this.preparePage.bind(this,"watch"))};
_.e.downloadPageModules=function(f){f=this.getModuleNameForType(f);var S=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);S.delete(f);var B=_.oy().resolve(_.ZW);B.JSC$16412_loadModules(f);return B.JSC$16412_loadModules.apply(B,_.$d(S))};
_.e.renderPageLoadingState=function(f,S){this.preparePage(f,S);var B=sP(this.pagePool,f);B.loadingData&&(B.loadingData.endpoint=S);B.loading=!0;this.setActivePage(B);f!=="watch"&&f!=="learning_journey_watch"||_.ew(this.hostElement,"yt-guide-close")};
_.e.prepareForNavigation=function(f,S){var B=this;if(this.currentPage&&this.data){var G=_.Pt(S)||f;this.destinationPageType=G;Bb(this.data)==G&&_.ew(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((f==="watch"||f==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.xJ.cancelJob(this.renderLoadingStateJobId);_.oy().resolve(_.N_).deactivate(S);var g=this.data;this.renderLoadingStateJobId=_.OR(_.xJ,function(){if(B.data!=
g){var b=sP(B.pagePool,f);B.setActivePage(b)}else B.renderPageLoadingState(f,S);B.renderLoadingStateJobId=0},150)}};
_.e.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var f=new _.G7(1);this.currentPage.pageDisposeJobs.forEach(function(S){_.gP(f,S)});
this.pageDisposeJobsets.set(this.currentPage,f)}};
_.e.flushPageDisposeJobset=function(f){var S=this.pageDisposeJobsets.get(f);S&&(S.flushJobs(),this.pageDisposeJobsets.delete(f))};
_.e.onYtStopOldPlayer=function(f,S){S=S===void 0?!1:S;var B,G=_.e7("kevlar_new_stop_old_player_logic_pages");if(_.K("kevlar_check_current_page_on_stop_old_player")&&(G.length===0||this.currentPage&&G.includes(this.currentPage.is)))if(this.data&&(B=Bb(this.data)),Bb(f)===B&&this.currentPage&&Bb(this.currentPage.data)!==B)var g=_.SW(this.currentPage);else B=Bb(this.data),g=sP(this.pagePool,B),g=_.SW(g);else this.data&&(B=Bb(this.data),g=sP(this.pagePool,B),g=_.SW(g));if(g)if(f=Bb(f),G=sP(this.pagePool,
f),G=_.SW(G),g==G)S&&!_.K("kevlar_disable_preemptive_player_reset")&&g.resetForNewPlayback();else if(S=B==="watch"&&f!=="watch",!S||f==="shorts"||_.fVj()&&!$HY(this.data)&&f!=="yts-products"&&f!="mini_app"&&f!="playables")B=_.oy().resolve(_.N_),S&&B.isMiniplayerActive()&&B.pipController.getWindow()||g.stop()};
_.e.setupPageTransitionAnimation=function(){var f=this;if((this.applyZoomTransition||this.applySlideTransition)&&this.viewTransitionCoordinator){cb(this.viewTransitionCoordinator,"slide",{beforeTransition:function(){f.hostElement.style.viewTransitionName="page-manager-slide"},
afterTransition:function(){f.hostElement.style.viewTransitionName=""}});
cb(this.viewTransitionCoordinator,"zoom",{beforeTransition:function(){f.hostElement.style.viewTransitionName="page-manager-zoom"},
afterTransition:function(){f.hostElement.style.viewTransitionName=""}});
var S=_.Gt("web_page_transition_exit_ms"),B=_.Gt("web_page_transition_wait_ms"),G=_.Gt("web_page_transition_enter_ms");if(!isNaN(S)||!isNaN(B)||!isNaN(G))if(S=E0u(xfu,S,B,G))B=document.createElement("style"),B.textContent=_.HXQ(S),document.head.appendChild(B)}};
_.e.isDifferentBrowseId=function(f,S){f=_.H(f,_.d3);S=_.H(S,_.d3);return(f==null?void 0:f.browseId)!==(S==null?void 0:S.browseId)};
_.y3.Object.defineProperties(uD,{template:{configurable:!0,enumerable:!0,get:function(){return OVz()}}});
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],uD.prototype,"ytActionHandlerBehavior",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-page-manager"})],uD);_.p(uD,"ytd-page-manager",function(){return OVz()},{mode:_.X_("kevlar_poly_si_batch_j081")?1:2});var aq=function(f,S,B){B=B===void 0?!1:B;_.qR.call(this);this.draggableElement=f;this.callbacks=S;this.allowClicks=B;this.dragOccurred=!1;this.internalDragger=new _.UE(this.draggableElement);this.dragDelay=new _.li(this.delayedDrag.bind(this));ENz(this);this.allowClicks&&(_.en1(this.internalDragger,5),f.addEventListener("click",_.Fc(this,this.validateClick),{capture:!0}))};
_.q(aq,_.qR);var ENz=function(f){_.jP(f.internalDragger,"earlycancel",function(){f.allowClicks&&(f.dragOccurred=!1)});
_.jP(f.internalDragger,"start",function(S){var B,G;(G=(B=f.callbacks).onStartDrag)==null||G.call(B,S);!S.defaultPrevented&&f.allowClicks&&(f.dragOccurred=!0)});
_.jP(f.internalDragger,"beforedrag",function(S){S.preventDefault();f.lastOffset=new _.ru(S.clientX-f.internalDragger.startX,S.clientY-f.internalDragger.startY);f.dragDelay.start()});
_.jP(f.internalDragger,"end",function(){f.dragDelay.stop();var S,B;(B=(S=f.callbacks).onEndDrag)==null||B.call(S);f.lastOffset=void 0})};
aq.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
aq.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.Fc(this,this.validateClick),{capture:!0})};
aq.prototype.validateClick=function(f){this.dragOccurred&&(this.dragOccurred=!1,f.stopPropagation(),f.preventDefault())};var yV=function(f,S){_.qR.call(this);this.JSC$17852_resizeContainer=f;this.callbacks=S;this.aspectRatio=16/9;this.JSC$17852_resizers=[];f=_.m(this.JSC$17852_resizeContainer.children);for(S=f.next();!S.done;S=f.next())L$$(this,S.value)};
_.q(yV,_.qR);yV.prototype.disposeInternal=function(){for(var f=_.m(this.JSC$17852_resizers),S=f.next();!S.done;S=f.next())S.value.dispose();f=_.m(this.JSC$17852_resizeContainer.children);for(S=f.next();!S.done;S=f.next())S.value.setAttribute("disabled","");this.JSC$17852_resizers.length=0};
yV.prototype.setSize=function(f){this.currentMiniplayerSize=f};
yV.prototype.setAspectRatio=function(f){this.aspectRatio=f};
yV.prototype.update=function(f,S){for(var B=_.m(this.JSC$17852_resizeContainer.children),G=B.next();!G.done;G=B.next()){G=G.value;var g=G.getAttribute("alignment");_.Xc(G,"disabled",g===f||g===S)}};
var L$$=function(f,S){var B=S.getAttribute("alignment"),G=new aq(S,{onStartDrag:function(g){if(S.hasAttribute("disabled"))g.preventDefault();else{f.dragStartSize=f.currentMiniplayerSize;var b,z;(z=(b=f.callbacks).onStartResize)==null||z.call(b)}},
onDrag:function(g){if(f.dragStartSize){B!=="north"&&B!=="west"||g.scale(-1);var b=B==="north"||B==="south";g=b?g.y:g.x;b&&f.aspectRatio>=1?g*=f.aspectRatio:!b&&f.aspectRatio<1&&(g/=f.aspectRatio);f.callbacks.onResize(f.dragStartSize+g)}}});
f.JSC$17852_resizers.push(G)};var k7e,nN$=function(){return k7e!==void 0?k7e:k7e=document.createElement("template")};
document.head.appendChild(nN$().content);var s52;var Dfu=_.oS(function(f){var S=_.tE("yt-draggable"),B=f.onDrag,G=f.onDragStart,g=f.onDragEnd,b=_.lu(f,{allowClicks:!1,dragThreshold:5}),z=b.dragThreshold,X=b.allowClicks;f=b.children;b=b.className;var w=void 0,F=void 0,V=new _.ru(0,0),J=!1;_.j9(function(){w=new _.UE(S.value);F=new _.li(d);P(w,F);if(X()){_.en1(w,z());var x;(x=S.value)==null||x.addEventListener("click",Q,{capture:!0})}_.Ov(function(){var E;(E=w)==null||E.dispose();if(X()){var U;(U=S.value)==null||U.removeEventListener("click",Q,{capture:!0})}})});
var P=function(x,E){_.jP(x,"earlycancel",function(){X()&&(J=!1)});
_.jP(x,"start",function(U){G==null||G(U);U.defaultPrevented||X()&&(J=!0)});
_.jP(x,"beforedrag",function(U){w&&F&&(U.preventDefault(),V=new _.ru(U.clientX-w.startX,U.clientY-w.startY),F.start())});
_.jP(x,"end",function(){E.stop();g==null||g();V=new _.ru(0,0)})},d=function(){V&&B(V)},Q=function(x){J&&(J=!1,x.stopPropagation(),x.preventDefault())};
return _.T("yt-draggable",{el:S,class:_.Pw("ytDraggableComponentHost",b)},f)},"og");var If2=_.oS(function(f){var S=_.m(_.hj(0,void 0,"CvAwBd")),B=S.next().value,G=S.next().value;S=function(g){var b={},z={};return _.T(Dfu,{className:_.Pw("ytdMiniplayerComponentResizer",(b.ytdMiniplayerComponentResizerDisabled=function(){return g===f.horizontalAlignment()||g===f.verticalAlignment()},b.ytdMiniplayerComponentResizerNorth=g==="north",b.ytdMiniplayerComponentResizerEast=g==="east",b.ytdMiniplayerComponentResizerSouth=g==="south",b.ytdMiniplayerComponentResizerWest=g==="west",b)),
onDragStart:function(){G(f.currentMiniplayerSize());if(f.onResizeStart)f.onResizeStart()},
onDrag:function(X){g!=="north"&&g!=="west"||X.scale(-1);var w;X=(w=g==="north"||g==="south")?X.y:X.x;var F=f.currentAspectRatio();w&&F>=1?X*=F:!w&&F<1&&(X/=F);w=X;f.onResize(B()+w)}},_.T("div",{class:_.Pw("ytdMiniplayerComponentResizerCorner",(z.ytdMiniplayerComponentResizerNorthCorner=g==="north",z.ytdMiniplayerComponentResizerEastCorner=g==="east",z.ytdMiniplayerComponentResizerSouthCorner=g==="south",z.ytdMiniplayerComponentResizerWestCorner=g==="west",z))}))};
return _.T("div",{class:"ytdMiniplayerComponentResizers"},S("north"),S("east"),S("south"),S("west"))},"pg");var UfO=16/9,C3e=_.oS(function(){var f=_.tE("ytd-miniplayer"),S=_.m(_.hj(new _.Xr(NaN,NaN),void 0,"YeKki")),B=S.next().value,G=S.next().value;S=_.m(_.hj(!1,void 0,"DcXgUd"));var g=S.next().value,b=S.next().value;S=_.m(_.hj(!1,void 0,"aDeXOc"));var z=S.next().value,X=S.next().value;S=_.m(_.hj(!1,void 0,"JpZfjb"));var w=S.next().value,F=S.next().value;S=_.m(_.hj(!1,void 0,"EmCWpc"));var V=S.next().value,J=S.next().value;S=_.m(_.hj(!1,void 0,"ovvtt"));var P=S.next().value,d=S.next().value;S=_.m(_.hj(!1,
void 0,"wPIoNd"));var Q=S.next().value,x=S.next().value;S=_.m(_.hj(UfO,void 0,"AmisJf"));var E=S.next().value,U=S.next().value,A=_.m(_.hj(!1,void 0,"uNKP1c"));S=A.next().value;var t=A.next().value;A=_.m(_.hj(!1,void 0,"n9hvIf"));var M=A.next().value,a=A.next().value;A=_.m(_.hj(void 0,void 0,"Sjx4Dc"));var l=A.next().value,mx=A.next().value;A=_.m(_.hj(_.nL("HTML_DIR")==="rtl"?"west":"east",void 0,"Qv2TXd"));var zj=A.next().value,VN=A.next().value;A=_.m(_.hj("south",void 0,"jyzxy"));var $Q=A.next().value,
OV=A.next().value;A=_.m(_.hj(400,void 0,"JFUs2d"));var rW=A.next().value,MA=A.next().value,UV=_.oy().resolve(_.N_).miniplayerPropSignalMap[0],W7=UV.data,c7=UV.externalPlaylistData;A=UV.toastData;var Q$=UV.playabilityStatus,To=UV.isReadyToResume,Ci=UV.isDisabled,VM=UV.watchWhile,Go=UV.playerVe,Io=UV.expandVe,uz=UV.closeVe,RT=UV.readyToResumeVe,P7=UV.readyToResumeCloseVe,O8=UV.repositionVe,ao=UV.resizeVe;UV=_.m(_.$8(To));var H7=UV.next().value,um=UV.next().value,CQ=!1,t1=!1,em;_.j9(function(){G(_.$G());
f.value.addEventListener("animationend",function(pi){pi.target===f.value&&(d(!1),x(!1))});
O2Y(f.value)});
_.Z0("yt-window-resized",function(pi){pi&&G(pi)});
var Ig=function(){em&&U(em.getVideoAspectRatio())},vO=function(){if(em){var pi=em.getPlayerState()===1;
H7()&&pi&&um(!1)}},v7=function(){var pi=Io();
if(pi){var Y$=_.xc(3);Y$&&_.uW(Y$,pi)}},YX=function(){var pi=uz(),Y$=P7();
pi&&_.uW(_.xc(3),pi);To()&&Y$&&_.uW(_.xc(3),Y$)};
_.Z0("yt-activate-miniplayer",function(pi){var Y$;return _.R(function(fX){if(fX.nextAddress==1)return g()?fX.return():_.h(fX,(Y$=_.oy().resolve(_.N_).getPlayerElement())==null?void 0:Y$.getPlayerPromise(),2);em=fX.yieldResult;if(!em)return fX.return();!M()&&_.K("kevlar_watch_while_v2")&&(OV(pi&&!_.K("kevlar_watch_while_bottom_align")?"north":"south"),VN(_.nL("HTML_DIR")==="rtl"?"west":"east"));var RO=em;RO.addEventListener("onVideoDataChange",Ig);RO.addEventListener("onStateChange",vO);RO.addEventListener("onExpandMiniplayer",
v7);RO.addEventListener("onCloseMiniplayer",YX);U(em.getVideoAspectRatio());b(!0);jD$()||d(!0);_.TT(fX)})});
_.Z0("yt-deactivate-miniplayer",function(pi){return _.R(function(Y$){if(!g())return Y$.return();b(!1);um(!1);x(pi);J(!1);X(!1);if(em){var fX=em;fX.removeEventListener("onVideoDataChange",Ig);fX.removeEventListener("onStateChange",vO);fX.removeEventListener("onExpandMiniplayer",v7);fX.removeEventListener("onCloseMiniplayer",YX)}jD$()||d(!0);_.TT(Y$)})});
var we=function(){return!(VM()&&_.K("kevlar_watch_while_modern"))},bo=function(){var pi;
return!((pi=c7())==null||!pi.contents)},bz=function(){var pi=rW();
var Y$=B();Y$=Math.min(Math.min(Y$.width,Y$.height)-32,720);var fX=E(),RO=we(),m8=bo()&&z(),wu=Math.min(pi,Y$);pi=new _.Xr(192,RO?116:192);fX=zuz(new _.Xr(m8?UfO:fX,1),new _.Xr(wu,RO?wu-76:wu));pi.width<=fX.width&&pi.height<=fX.height||(mJn(fX,pi),fX.width=Math.min(fX.width,Y$),fX.height=Math.min(fX.height,Y$));return new _.Xr(fX.width,_.Uy(192,fX.height+nTu(RO,m8),720))},KQ=function(){var pi=bz(),Y$=we(),fX=bo()&&z();
return new _.Xr(pi.width,pi.height-nTu(Y$,fX))},pk=function(){var pi=function(Y$){Y$.target===f.value&&V()&&(J(!1),f.value.removeEventListener("transitionend",pi))};
jD$()||(f.value.addEventListener("transitionend",pi),J(!0));X(!z())};
_.jp(function(){var pi=Go(),Y$=_.xc(3),fX=_.Of(3);if(Y$&&fX&&pi){_.Af(Y$,fX,pi);fX=O8();var RO=ao(),m8=Io(),wu=uz(),z1=P7();m8&&wu&&z1&&(_.NE(Y$,pi,[m8,wu,z1]),_.Zu(Y$,[m8,wu]));fX&&RO&&_.NE(Y$,pi,[fX,RO])}},"yiTJkc");
_.jp(function(){var pi=RT();if(pi){var Y$=_.xc(0),fX=_.Of(0);Y$&&fX&&(_.Af(Y$,fX,pi),_.Zu(Y$,[pi]))}},"fy89qe");
UV={};return _.T("ytd-miniplayer",{el:f,class:_.Pw("ytdMiniplayerComponentHost",(UV.ytdMiniplayerComponentVisible=function(){return g()||P()},UV.ytdMiniplayerComponentAnimatingSnap=w,UV.ytdMiniplayerComponentAnimatingPlaylistExpand=V,UV.ytdMiniplayerComponentAnimatingFade=P,UV),function(){if(P()){var pi=$Q();
var Y$=g(),fX=Q();pi=Y$?pi==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":fX?pi==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":pi==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else pi="";return pi}),
style:_.Qj({top:function(){return $Q()==="north"?"16px":""},
right:function(){return zj()==="east"?"16px":""},
bottom:function(){return $Q()==="south"?"16px":""},
left:function(){return zj()==="west"?"16px":""},
width:function(){return bz().width+"px"},
height:function(){return bz().height+"px"},
transform:function(){var pi=l();return pi?"translate("+pi.x+"px, "+pi.y+"px)":""}})},_.T("div",{class:"ytdMiniplayerComponentContent"},_.T(Dfu,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(pi){var Y$=kZM(zj(),$Q(),B(),bz(),l()),fX=KQ();Math.abs(pi.clientY-(Y$.y+fX.height))>15?(t(!0),pi=_.xc(3),Y$=O8(),CQ||(CQ=!0,pi&&Y$&&_.Zu(pi,[Y$])),pi&&Y$&&_.uW(pi,Y$)):pi.preventDefault()},
onDrag:function(pi){mx(pi)},
onDragEnd:function(){var pi=xEu(kZM(zj(),$Q(),B(),bz(),l()),B(),bz()),Y$=LUe(zj(),$Q(),B(),bz()),fX=LUe(pi.horizontalAlignment,pi.verticalAlignment,B(),bz());fX=new _.ru(fX.x-Y$.x,fX.y-Y$.y);var RO;Y$=Y$.y+(((RO=l())==null?void 0:RO.y)||0)+bz().height/2;var m8=function(){zj()===pi.horizontalAlignment&&$Q()===pi.verticalAlignment||a(!0);VN(pi.horizontalAlignment);OV(pi.verticalAlignment);mx(void 0)},wu=function(z1){z1.target===f.value&&w()&&(F(!1),m8(),f.value.removeEventListener("transitionend",wu))};
t(!1);$Q()==="south"&&Y$>B().height?(m8(),_.oy().resolve(_.N_).close()):(f.value.addEventListener("transitionend",wu),F(!0),mx(fX))}},_.T(_.v,{cond:g,
then:function(){return _.T(_.U22,{isDisabled:Ci,playabilityStatus:Q$,size:KQ})}}),_.T(_.v,{cond:we,
then:function(){return _.T(_.D2O,{isReadyToResume:H7,data:W7,expanded:z,onExpandClick:pk,playlistData:c7})}}),_.T(_.v,{cond:S,
then:function(){return _.T("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.T(_.v,{cond:function(){return bo()&&z()||V()},
then:function(){return _.T(_.g7m,{className:"ytdMiniplayerComponentPlaylistPanel",data:c7,hideHeaderText:!0,withinMiniplayer:!0})}}),_.T("div",{class:"ytdMiniplayerComponentToast"},_.T(_.CzO,{toastData:A}))),_.T(If2,{onResize:function(pi){MA(_.Uy(192,pi,720))},
onResizeStart:function(){var pi=_.xc(3),Y$=ao();t1||(t1=!0,pi&&Y$&&_.Zu(pi,[Y$]));pi&&Y$&&_.uW(pi,Y$)},
currentAspectRatio:E,currentMiniplayerSize:rW,horizontalAlignment:zj,verticalAlignment:$Q}))},"qg");_.K("ytd_miniplayer_to_wiz")&&_.eq(C3e,"ytd-miniplayer",{});_.eq(_.CzO,"ytd-miniplayer-toast",{props:{toastData:_.W4}});var pl2=16/9,AWu=new _.Xr(400,400/pl2),Wj=function(){var f=_.I.apply(this,arguments)||this;f.active=!1;f.hasNoData=!1;f.enabled=!1;f.expanded=!1;f.readyToResume=!1;f.isDisabled=!1;f.externalPlaylistData={};f.premiumBadges=[];f.watchWhile=!1;f.playerState=null;f.verticalAttachment="south";f.horizontalAttachment=_.nL("HTML_DIR")==="rtl"?"west":"east";f.isAnimatingFade=!1;f.isAnimatingSnap=!1;f.isAnimatingExpand=!1;f.isDragging=!1;f.playerHidden=!1;f.hasPlaylistData=!1;f.closed=!1;f.expandedClosed=!1;
f.isForReadyToResume=!1;f.watchResponse=null;f.player=null;f.playerVe=null;f.expandVe=null;f.closeVe=null;f.readyToResumeCloseVe=null;f.disabledInitialStateIsPlaying=!1;f.PLAYER_EVENTS=new Map;f.aspectRatio=pl2;f.currentMiniplayerSize=400;f.userSetSize=!1;f.userSetPosition=!1;f.userHasDragged=!1;f.maxMiniplayerSize=720;f.transform=new _.ru(0,0);f.windowDimensions=new _.Xr(NaN,NaN);f.dimensions=AWu;f.screenLayer=3;f.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return f};
_.q(Wj,_.I);_.e=Wj.prototype;_.e.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()};
_.e.ready=function(){this.setUpDragging();this.setUpResizing()};
_.e.attached=function(){this.onWindowResized(_.$G());this.hostElement.addEventListener("animationend",_.Fc(this,this.resetFadingAnimation))};
_.e.detached=function(){this.hostElement.removeEventListener("animationend",_.Fc(this,this.resetFadingAnimation))};
_.e.resetFadingAnimation=function(f){f.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.e.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.e.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.e.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var f=_.xc(this.screenLayer);this.readyToResumeCloseVe&&f&&_.Zu(f,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.e.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var f=_.xc(0),S=_.Of(0);f&&S&&(_.Af(f,S,this.readyToResumeVe),_.Zu(f,[this.readyToResumeVe]))}};
_.e.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var f=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=f===-1||f===1||f===3)&&this.player.pauseVideo()}};
_.e.activate=function(f,S){S=S===void 0?!1:S;var B=this,G;return _.R(function(g){if(g.nextAddress==1)return B.setInitialActivatePositioning(S),B.enabled=!0,B.active=!0,B.expanded=!1,B.closed=!1,B.expandedClosed=!1,B.watchWhileHidden||(B.isAnimatingFade=!0),_.oy().resolve(_.Dr).setPlaylistComponent(B.JSC$17863_playlistPanel),f.appendTo(B.playerContainer),_.h(g,f.getPlayerPromise(),2);G=g.yieldResult;G.setSizeStyle(!1,!0);B.ytPlayerListenerBehavior.listenToPlayerEvents(G,B.PLAYER_EVENTS);B.player=G;
B.watchWhile&&_.K("kevlar_watch_while_minimum_size")&&B.setMiniplayerSize(192);B.setAspectRatio(B.player.getVideoAspectRatio());B.onIsDisabledChanged();_.TT(g)})};
_.e.setInitialActivatePositioning=function(f){if(!this.userSetPosition&&_.K("kevlar_watch_while_v2")){this.verticalAttachment=f&&!_.K("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.nL("HTML_DIR")==="rtl"?"west":"east";var S;(S=this.JSC$17863_resizers)==null||S.update(this.horizontalAttachment,this.verticalAttachment)}};
_.e.deactivate=function(f,S){var B=this;return _.R(function(G){if(!B.active)return G.return();f||(B.expanded?B.expandedClosed=!0:B.closed=!0);B.active=!1;B.isForReadyToResume=!1;S&&_.K("kevlar_watch_while_counterfactual")||(B.isAnimatingFade=!0);B.player&&B.ytPlayerListenerBehavior.unlistenFromPlayerEvents(B.player,B.PLAYER_EVENTS);B.player=null;_.TT(G)})};
_.e.onMetadataTap=function(f){this.expandVe&&(f===void 0||f)&&(f=_.xc(this.screenLayer))&&_.uW(f,this.expandVe);_.i$(_.oy().resolve(_.N_))};
_.e.onDisabledTap=function(f){f.target===_.m9(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.e.onPlaylistExpandTap=function(f){if(this.hasPlaylistData){f=_.ct(f)||[];f=_.m(f);for(var S=f.next();!S.done;S=f.next()){S=S.value;if(S===this.hostElement)break;if(S.classList&&S.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.e.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.Fc(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.e.animatedResizePlaylist=function(f){f.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.Fc(this,this.animatedResizePlaylist)))};
_.e.getExpandIcon=function(f){return f?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.e.onPlayerVideoDataChange=function(){var f,S=(f=this.player)==null?void 0:f.getVideoAspectRatio();S&&S!==this.aspectRatio&&this.setAspectRatio(S)};
_.e.setAspectRatio=function(f){if(this.active){this.aspectRatio=f;this.updateDimensionsAndResize();var S;(S=this.JSC$17863_resizers)==null||S.setAspectRatio(f)}};
_.e.updateDimensionsAndResize=function(){var f=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),S=this.expanded?pl2:this.aspectRatio,B=new _.Xr(192,this.showInfoBar?116:192);f=zuz(new _.Xr(S,1),new _.Xr(f,this.showInfoBar?f-76:f));B.width<=f.width&&B.height<=f.height||(mJn(f,B),f.width=Math.min(f.width,this.maxMiniplayerSize),f.height=Math.min(f.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&S<=1?Math.max(f.width,f.height)+76:Math.max(f.width,f.height)));this.dimensions=
new _.Xr(f.width,this.clamp(f.height+this.getNonPlayerHeight()));this.resize()};
_.e.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var f=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=f.height+"px";var S;(S=this.player)==null||S.setInternalSize(f.width,f.height)};
_.e.getPlayerSize=function(f){var S=Math.max(0,f.height-this.getNonPlayerHeight());return new _.Xr(f.width,S)};
_.e.getNonPlayerHeight=function(){var f=0;this.showInfoBar&&(f+=76);this.expanded&&(f+=285);return f};
_.e.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.oy().resolve(_.N_).close()};
_.e.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.e.logClosingClick=function(){this.closeVe&&_.uW(_.xc(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.uW(_.xc(this.screenLayer),this.readyToResumeCloseVe)};
_.e.onPlayerExpandMiniplayer=function(){if(this.expandVe){var f=_.xc(this.screenLayer);f&&_.uW(f,this.expandVe)}};
_.e.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var f=this.playerState===1;this.continueWatching&&f&&(this.continueWatching=!1);this.premiumBadges.length&&f&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.e.getScreenLayer=function(){return this.screenLayer};
_.e.logMiniplayer=function(){var f=_.xc(this.screenLayer),S=_.Of(this.screenLayer);f&&S&&this.playerVe&&(_.Af(f,S,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.NE(f,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.Zu(f,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.NE(f,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.e.computePlaylistData=function(f,S){return S};
_.e.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.e.computeExpandButtonHidden=function(f,S,B){return!f||!S||B};
_.e.computePlaylistIndexHidden=function(f,S){return!f||S};
_.e.computePlaylistPanelHidden=function(f,S){return!S&&!f};
_.e.computeExpandButtonLabel=function(f){return f?_.Jf("MINIPLAYER_COLLAPSE_LABEL"):_.Jf("MINIPLAYER_EXPAND_LABEL")};
_.e.computeDisabledStateCloseButtonLabel=function(){return _.Jf("MINIPLAYER_CLOSE",void 0,"Close")};
_.e.onWindowResized=function(f){f&&(f=this.windowDimensions=f,this.maxMiniplayerSize=Math.min(Math.min(f.width,f.height)-32,720),this.updateDimensionsAndResize())};
_.e.setUpResizing=function(){var f=this;this.JSC$17863_resizers||(this.JSC$17863_resizers=new yV(this.JSC$17863_resizeContainer,{onStartResize:function(){f.handleResizeStart()},
onResize:function(S){f.handleResize(S)}}),this.JSC$17863_resizers.setSize(this.currentMiniplayerSize),this.JSC$17863_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.e.handleResizeStart=function(){var f=_.xc(this.screenLayer);this.userSetSize||(this.userSetSize=!0,f&&this.resizeVe&&_.Zu(f,[this.resizeVe]));f&&this.resizeVe&&_.uW(f,this.resizeVe)};
_.e.handleResize=function(f){this.setMiniplayerSize(f);this.updateDimensionsAndResize()};
_.e.setUpDragging=function(){var f=this;this.JSC$17863_dragger||(this.JSC$17863_dragger=new aq(this.draggableContainer,{onStartDrag:function(S){!f.isSafeToDrag(S)||f.isAnimatingSnap?S.preventDefault():f.handleDragStart()},
onDrag:function(S){f.transform=S;f.setTransform(f.transform)},
onEndDrag:function(){f.handleDragEnd()}},!0))};
_.e.handleDragStart=function(){this.isDragging=!0;var f=_.xc(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,f&&this.repositionVe&&_.Zu(f,[this.repositionVe]));f&&this.repositionVe&&_.uW(f,this.repositionVe)};
_.e.handleDragEnd=function(){this.isDragging=!1;var f=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&f>this.windowDimensions.height&&_.oy().resolve(_.N_).close();this.animateSnapToCorner()};
_.e.animateSnapToCorner=function(){var f=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),S=this.getNearestAttachments();S=this.getGlobalPositionFromAttachments(S.horizontalAttachment,S.verticalAttachment);f=new _.ru(S.x-f.x,S.y-f.y);this.isAnimatingSnap=!0;this.setTransform(f);this.hostElement.addEventListener("transitionend",_.Fc(this,this.endSnapAnimation))};
_.e.endSnapAnimation=function(f){f.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.Fc(this,this.endSnapAnimation)),this.endDrag())};
_.e.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.e.setTransform=function(f){this.hostElement.style.transform=f?"translate("+f.x+"px, "+f.y+"px)":""};
_.e.getGlobalPositionFromAttachments=function(f,S){return new _.ru(f==="west"?16:this.windowDimensions.width-this.dimensions.width-16,S==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.e.updateAttachments=function(){var f=this.getNearestAttachments();if(this.horizontalAttachment!==f.horizontalAttachment||this.verticalAttachment!==f.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=f.horizontalAttachment;this.verticalAttachment=f.verticalAttachment;var S;(S=this.JSC$17863_resizers)==null||S.update(this.horizontalAttachment,this.verticalAttachment)};
_.e.getNearestAttachments=function(){var f=this.getCurrentGlobalPosition();return{horizontalAttachment:f.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:f.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.e.getCurrentGlobalPosition=function(){var f=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return ETM(f,this.transform)};
_.e.isSafeToDrag=function(f){var S=this.playerContainer.getBoundingClientRect();return Math.abs(f.clientY-(S.y+S.height))>15};
_.e.setMiniplayerSize=function(f){this.currentMiniplayerSize=this.clamp(f);var S;(S=this.JSC$17863_resizers)==null||S.setSize(this.currentMiniplayerSize)};
_.e.clamp=function(f){return _.Uy(192,f,720)};
_.e.registerViewTransitionTasks=function(){var f=this,S=_.oy().resolve(_.fN(_.zI));if(S){var B={beforeTransition:function(){f.hostElement&&(f.hostElement.style.viewTransitionName="miniplayer-page-transition")},
afterTransition:function(){f.hostElement&&(f.hostElement.style.viewTransitionName="")}};
cb(S,"slide",B);cb(S,"zoom",B)}};
_.y3.Object.defineProperties(Wj.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.K("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:_.Jf("CONTINUE_WATCHING",void 0,"Continue watching")};var f;if((f=this.externalPlaylistData)==null?0:f.contents)return this.externalPlaylistData.titleText;var S;return(S=this.data)==null?void 0:S.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.externalPlaylistData)==null?0:f.contents){var S;return(S=_.MEV(this.externalPlaylistData))==null?void 0:S.title}var B;return(B=this.data)==null?void 0:B.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var f,S,B,G;return((f=this.externalPlaylistData)==null?void 0:f.currentIndex)!==void 0&&((S=this.externalPlaylistData)==null?0:S.totalVideos)&&!((B=this.data)==null?0:(G=B.playlistData)==null?0:G.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.fYG(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.K("kevlar_watch_while_counterfactual")}}});
Wj.prototype.onIsDisabledChanged=Wj.prototype.onIsDisabledChanged;Wj.prototype.readyToResumeVeChanged=Wj.prototype.readyToResumeVeChanged;Wj.prototype.premiumBrandingChanged=Wj.prototype.premiumBrandingChanged;Wj.prototype.onPlayerVeChange=Wj.prototype.onPlayerVeChange;Wj.prototype.hasPlaylistDataChanged=Wj.prototype.hasPlaylistDataChanged;_.N([_.r(_.Nr.YtPlayerListenerBehavior),_.Z("design:type",_.Mr)],Wj.prototype,"ytPlayerListenerBehavior",void 0);
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],Wj.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Wj.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Wj.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],Wj.prototype,"ytdReduxBehavior",void 0);_.N([_.vF("#draggable"),_.Z("design:type",HTMLDivElement)],Wj.prototype,"draggableContainer",void 0);
_.N([_.vF("#resize-container"),_.Z("design:type",HTMLDivElement)],Wj.prototype,"JSC$17863_resizeContainer",void 0);_.N([_.vF("#video-container"),_.Z("design:type",HTMLDivElement)],Wj.prototype,"videoContainer",void 0);_.N([_.vF("#player-container"),_.Z("design:type",HTMLDivElement)],Wj.prototype,"playerContainer",void 0);_.N([_.vF("#playlist"),_.Z("design:type",HTMLDivElement)],Wj.prototype,"JSC$17863_playlistPanel",void 0);_.N([_.n(),_.Z("design:type",Object)],Wj.prototype,"data",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Wj.prototype,"active",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Wj.prototype,"hasNoData",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Wj.prototype,"enabled",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Wj.prototype,"expanded",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Wj.prototype,"readyToResume",void 0);
_.N([_.n(),_.Z("design:type",Object)],Wj.prototype,"isDisabled",void 0);_.N([_.n(),_.Z("design:type",Object)],Wj.prototype,"externalPlaylistData",void 0);_.N([_.n(),_.Z("design:type",Array)],Wj.prototype,"premiumBadges",void 0);_.N([_.n(),_.Z("design:type",Object)],Wj.prototype,"toastData",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Wj.prototype,"watchWhile",void 0);_.N([_.n(),_.Z("design:type",Boolean)],Wj.prototype,"premiumBranding",void 0);
_.N([_.n(),_.Z("design:type",Object)],Wj.prototype,"playerState",void 0);_.N([_.n(),_.Z("design:type",Boolean)],Wj.prototype,"continueWatching",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",String)],Wj.prototype,"verticalAttachment",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",String)],Wj.prototype,"horizontalAttachment",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Wj.prototype,"isAnimatingFade",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Wj.prototype,"isAnimatingSnap",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Wj.prototype,"isAnimatingExpand",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Wj.prototype,"isDragging",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Wj.prototype,"playerHidden",void 0);
_.N([_.n({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.Z("design:type",Object)],Wj.prototype,"playlistData",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.Z("design:type",Object)],Wj.prototype,"hasPlaylistData",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Wj.prototype,"closed",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Wj.prototype,"expandedClosed",void 0);
_.N([_.n({selector:_.gf9}),_.Z("design:type",Boolean)],Wj.prototype,"isSingleOptionSurveyActive",void 0);_.N([_.n({reflectToAttribute:!0,selector:_.kr}),_.Z("design:type",Boolean)],Wj.prototype,"isWatchPage",void 0);_.N([_.n({reflectToAttribute:!0}),_.k("watchWhile"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Wj.prototype,"showInfoBar",null);_.N([_.k("premiumBadges","showInfoBar"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Wj.prototype,"showOverlayPremiumBadges",null);
_.N([_.n(),_.Z("design:type",Object)],Wj.prototype,"watchResponse",void 0);_.N([_.n(),_.Z("design:type",Object)],Wj.prototype,"miniplayerRenderer",void 0);_.N([_.n(),_.Z("design:type",Object)],Wj.prototype,"playabilityStatus",void 0);_.N([_.n(),_.Z("design:type",Object)],Wj.prototype,"playerVe",void 0);_.N([_.n(),_.Z("design:type",Object)],Wj.prototype,"expandVe",void 0);_.N([_.n(),_.Z("design:type",Object)],Wj.prototype,"closeVe",void 0);
_.N([_.n(),_.Z("design:type",Object)],Wj.prototype,"readyToResumeCloseVe",void 0);_.N([_.n(),_.Z("design:type",_.je)],Wj.prototype,"readyToResumeVe",void 0);_.N([_.n(),_.Z("design:type",_.je)],Wj.prototype,"resizeVe",void 0);_.N([_.n(),_.Z("design:type",_.je)],Wj.prototype,"repositionVe",void 0);_.N([_.JO("hasPlaylistData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Wj.prototype,"hasPlaylistDataChanged",null);
_.N([_.JO("playerVe"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Wj.prototype,"onPlayerVeChange",null);_.N([_.JO("premiumBranding"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Wj.prototype,"premiumBrandingChanged",null);_.N([_.JO("readyToResumeVe"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Wj.prototype,"readyToResumeVeChanged",null);
_.N([_.JO("isDisabled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Wj.prototype,"onIsDisabledChanged",null);_.N([_.k("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Wj.prototype,"miniplayerSubtitle",null);_.N([_.k("data.miniplayerTitle","externalPlaylistData"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Wj.prototype,"miniplayerTitle",null);
_.N([_.k("externalPlaylistData","continueWatching"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Wj.prototype,"playlistIndexMessage",null);_.N([_.n({reflectToAttribute:!0}),_.k("playabilityStatus"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Wj.prototype,"showErrorScreen",null);_.N([_.n({reflectToAttribute:!0}),_.k("watchWhile"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Wj.prototype,"watchWhileHidden",null);
_.K("ytd_miniplayer_to_wiz")||_.p(Wj,"ytd-miniplayer",function(){if(s52===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(nN$().content.cloneNode(!0),f.content.firstChild);f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);s52=f}f=s52;return f},{mode:2});var NP$;var cj=function(){var f=_.I.apply(this,arguments)||this;f.useListItemStyles=_.K("web_list_item_style_for_menu_items");f.systemIcons=_.K("kevlar_system_icons");return f};
_.q(cj,_.I);_.e=cj.prototype;_.e.ready=function(){this.hostElement.addEventListener("tap",_.Fc(this,this.onEndpointTapExtra))};
_.e.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.e.onFocus=function(){var f;(f=_.m9(this.hostElement).querySelector("tp-yt-paper-item"))==null||f.focus()};
_.e.onEndpointTapExtra=function(f){_.ew(this.hostElement,"iron-activate");var S=this.data.navigationEndpoint;S&&_.H(S,_.xhj)&&(f.stopPropagation(),_.Xh(this.hostElement,[S],this.hostElement))};
_.e.computeIcon=function(f){return f&&f.iconType?_.F_(f.iconType):""};
_.e.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.e.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.e.forceUpdateStylesOnLegacyBrowsers=function(){_.K("kevlar_legacy_browsers")&&_.hO(this.hostElement)};
cj.prototype.forceUpdateStylesOnLegacyBrowsers=cj.prototype.forceUpdateStylesOnLegacyBrowsers;cj.prototype.onFocus=cj.prototype.onFocus;_.N([_.r(_.a5),_.Z("design:type",Object)],cj.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.r(_.mY8.YtConditionalRendererBehavior),_.Z("design:type",Object)],cj.prototype,"ytConditionalRendererBehavior",void 0);_.N([_.r(_.Pl.YtEndpointBehavior),_.Z("design:type",Object)],cj.prototype,"ytEndpointBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],cj.prototype,"data",void 0);_.N([_.n({computed:"computeIcon(data.icon)",value:""}),_.Z("design:type",String)],cj.prototype,"icon",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],cj.prototype,"useIcons",void 0);_.N([_.n({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],cj.prototype,"hasSeparator",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],cj.prototype,"useListItemStyles",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],cj.prototype,"systemIcons",void 0);_.N([_.Vg("focus"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cj.prototype,"onFocus",null);_.N([_.JO("useIcons","hasSeparator"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cj.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.p(cj,"ytd-menu-navigation-item-renderer",function(){if(NP$===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);NP$=f}f=NP$;return f},{mode:1});var Myz;var ZVX=_.uC(_.Jf("DOWNLOAD",{},"Download")),ty$=_.uC(_.Jf("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),uDz=_.uC(_.Jf("RETRY",{},"Retry")),afY=_.uC(_.Jf("PAUSE_DOWNLOADING",{},"Pause downloading")),yWB=_.uC(_.Jf("RESUME_DOWNLOAD",{},"Resume download")),lD=function(){var f=_.I.apply(this,arguments)||this;f.primaryText=ZVX;f.primaryIconType="OFFLINE_DOWNLOAD";f.hasSecondaryContent=!1;f.hasSeparator=!1;f.transferState="TRANSFER_STATE_UNKNOWN";f.isVideoDeletedByUser=!1;f.isHidden=!1;f.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return f};
_.q(lD,_.I);_.e=lD.prototype;_.e.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.e.onFocus=function(){this.primaryEntry.focus()};
_.e.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.e.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.e.getRemoveAction=function(){return"ACTION_REMOVE"};
_.e.sendOfflineAction=function(f){var S=this.data.serviceEndpoint;if(S){var B=_.H(S,_.V5);B&&f&&(B.action=f);this.ytComponentBehavior.resolveCommand(S)}};
_.e.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=ZVX,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=ZVX;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=uDz;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=ty$;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=yWB;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=ty$;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
afY;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=ty$;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=ty$;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=ZVX,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.e.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.e.isSecondaryEntryHidden=function(f,S){return f?!0:!S};
_.e.computeHasSeparator=function(){var f;return!((f=this.data)==null||!f.hasSeparator)};
lD.prototype.showHideButton=lD.prototype.showHideButton;lD.prototype.onTransferStateChange=lD.prototype.onTransferStateChange;lD.prototype.onFocus=lD.prototype.onFocus;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],lD.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],lD.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],lD.prototype,"ytComponentBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],lD.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],lD.prototype,"primaryText",void 0);_.N([_.n(),_.Z("design:type",String)],lD.prototype,"primaryIconType",void 0);_.N([_.n(),_.Z("design:type",String)],lD.prototype,"primaryAction",void 0);_.N([_.n(),_.Z("design:type",Object)],lD.prototype,"secondaryText",void 0);_.N([_.n(),_.Z("design:type",String)],lD.prototype,"secondaryIconType",void 0);
_.N([_.n(),_.Z("design:type",String)],lD.prototype,"secondaryAction",void 0);_.N([_.n(),_.Z("design:type",Object)],lD.prototype,"hasSecondaryContent",void 0);_.N([_.n({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.Z("design:type",Object)],lD.prototype,"hasSeparator",void 0);_.N([_.n({selector:_.sA,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.Z("design:type",String)],lD.prototype,"transferState",void 0);
_.N([_.n({selector:_.q2T,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.Z("design:type",Object)],lD.prototype,"isVideoDeletedByUser",void 0);_.N([_.n(),_.Z("design:type",Object)],lD.prototype,"isHidden",void 0);_.N([_.n({selector:_.Pe1,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.Z("design:type",Object)],lD.prototype,"offlineabilityState",void 0);_.N([_.vF("#primary-entry"),_.Z("design:type",Object)],lD.prototype,"primaryEntry",void 0);
_.N([_.Vg("focus"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],lD.prototype,"onFocus",null);_.N([_.HF("transferState","isVideoDeletedByUser"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],lD.prototype,"onTransferStateChange",null);_.N([_.HF("offlineabilityState"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],lD.prototype,"showHideButton",null);
_.p(lD,"ytd-menu-service-item-download-renderer",function(){if(Myz===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);Myz=f}f=Myz;return f},{mode:1});var W$M;var fa=function(){var f=_.I.apply(this,arguments)||this;f.useIcons=!1;f.systemIcons=_.K("kevlar_system_icons");f.useListItemStyles=_.K("web_list_item_style_for_menu_items");return f};
_.q(fa,_.I);_.e=fa.prototype;_.e.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.e.onFocus=function(){var f;(f=_.m9(this.hostElement).querySelector("tp-yt-paper-item"))==null||f.focus()};
_.e.onTap=function(){_.mU(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var f=this.data.serviceEndpoint,S=this.data.command;if(f){var B,G=(B=this.data)==null?void 0:B.trackingParams;B=!!_.H(f,_.Fn7);G&&B&&_.W2().dispatch(_.ef({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:G}}));this.ytComponentBehavior.resolveCommand(f)||_.oy().resolve(_.S7).resolveCommand(f,{form:{element:this.hostElement}})}S&&(this.ytComponentBehavior.resolveCommand(S)||_.Xh(this.hostElement,
[S],this.hostElement))};
_.e.computeIcon=function(f){return f&&f.iconType?_.F_(f.iconType):""};
_.e.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.e.computeHasSeparator=function(){var f;return!((f=this.data)==null||!f.hasSeparator)};
_.e.forceUpdateStylesOnLegacyBrowsers=function(){_.K("kevlar_legacy_browsers")&&_.hO(this.hostElement)};
_.e.computeIsSelected=function(){var f;return!((f=this.data)==null||!f.isSelected)};
fa.prototype.forceUpdateStylesOnLegacyBrowsers=fa.prototype.forceUpdateStylesOnLegacyBrowsers;fa.prototype.onTap=fa.prototype.onTap;fa.prototype.onFocus=fa.prototype.onFocus;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],fa.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.a5),_.Z("design:type",Object)],fa.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],fa.prototype,"ytComponentBehavior",void 0);
_.N([_.r(_.mY8.YtConditionalRendererBehavior),_.Z("design:type",Object)],fa.prototype,"ytConditionalRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],fa.prototype,"data",void 0);_.N([_.n({computed:"computeIcon(data.icon)",value:""}),_.Z("design:type",String)],fa.prototype,"icon",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],fa.prototype,"useIcons",void 0);
_.N([_.n({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],fa.prototype,"hasSeparator",void 0);_.N([_.n({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],fa.prototype,"isSelected",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],fa.prototype,"systemIcons",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],fa.prototype,"useListItemStyles",void 0);
_.N([_.Vg("focus"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],fa.prototype,"onFocus",null);_.N([_.Vg("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],fa.prototype,"onTap",null);_.N([_.JO("useIcons","hasSeparator"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],fa.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.p(fa,"ytd-menu-service-item-renderer",function(){if(W$M===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);W$M=f}f=W$M;return f},{mode:2});var cWM;var oi=function(){return _.I.apply(this,arguments)||this};
_.q(oi,_.I);_.e=oi.prototype;_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e.onDataChanged=function(){var f=this;_.ui(this,function(){f.postbox.openDialog();f.focus();_.ew(f.hostElement,"yt-refit")})};
_.e.focus=function(){this.postbox.focus()};
_.e.closePopup=function(){_.bW(this.hostElement,"yt-close-popup-action")};
_.e.onYtCommentboxDismiss=function(){this.closePopup()};
oi.prototype.onYtCommentboxDismiss=oi.prototype.onYtCommentboxDismiss;oi.prototype.onDataChanged=oi.prototype.onDataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],oi.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],oi.prototype,"data",void 0);_.N([_.n({value:function(){return _.Jf("SBOX_INAPPROPRIATE_CANCEL")}}),
_.Z("design:type",String)],oi.prototype,"closeButtonAriaLabel",void 0);_.N([_.vF("#postbox"),_.Z("design:type",Object)],oi.prototype,"postbox",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],oi.prototype,"onDataChanged",null);_.N([_.Vg("yt-commentbox-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],oi.prototype,"onYtCommentboxDismiss",null);
_.N([_.C({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],oi);
_.p(oi,"ytd-backstage-post-dialog-popup-renderer",function(){if(cWM!==void 0)return cWM;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return cWM=f},{mode:1});var lf$;var Si=function(){return _.I.apply(this,arguments)||this};
_.q(Si,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Si.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Si.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],Si);
_.p(Si,"ytd-sender-id-section-renderer",function(){if(lf$!==void 0)return lf$;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);
return lf$=f},{mode:1});var fVB;var oPM;var SkY;var BR=function(){return _.I.apply(this,arguments)||this};
_.q(BR,_.I);BR.prototype.closePopup=function(){_.bW(this.hostElement,"yt-close-popup-action")};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],BR.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],BR.prototype,"data",void 0);_.N([_.nP({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],BR);
_.p(BR,"yt-community-post-section-renderer",function(){if(SkY===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;oPM===void 0&&(oPM=document.createElement("template"));var G=oPM;B.call(S,G.content.cloneNode(!0),f.content.firstChild);SkY=f}f=SkY;return f},{mode:2});var BDM;var GJ2;var gPz;var e9Y;var bRu;var mrM;var GP=function(){return _.I.apply(this,arguments)||this};
_.q(GP,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],GP.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],GP.prototype,"data",void 0);_.N([_.nP({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],GP);
_.p(GP,"yt-share-start-time-with-context-renderer",function(){if(mrM===void 0){var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;bRu===void 0&&(bRu=document.createElement("template"));var G=bRu;B.call(S,G.content.cloneNode(!0),f.content.firstChild);mrM=f}f=mrM;return f},{mode:2});var gT=function(){return _.I.apply(this,arguments)||this};
_.q(gT,_.I);gT.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],gT.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],gT.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],gT.prototype,"data",void 0);_.N([_.nP({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],gT);
_.p(gT,"yt-share-panel-title-v15-renderer",function(){if(e9Y===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;gPz===void 0&&(gPz=document.createElement("template"));var G=gPz;B.call(S,G.content.cloneNode(!0),f.content.firstChild);e9Y=f}f=e9Y;return f},{mode:2});var ei=function(){return _.I.apply(this,arguments)||this};
_.q(ei,_.I);ei.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"}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],ei.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],ei.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],ei.prototype,"data",void 0);_.N([_.nP({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],ei);
_.p(ei,"yt-share-panel-header-renderer",function(){if(GJ2===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;BDM===void 0&&(BDM=document.createElement("template"));var G=BDM;B.call(S,G.content.cloneNode(!0),f.content.firstChild);GJ2=f}f=GJ2;return f},{mode:2});var z9u;var R9Y;var bU=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-open-popup-action":"onOpen"};return f};
_.q(bU,_.I);_.e=bU.prototype;_.e.attached=function(){this.onOpen()};
_.e.updateTimeSecs=function(f){this.currentTimeSecs=f};
_.e.computeTimeString=function(f){f=f.toString();var S=Math.floor(Number(f)/3600),B=Math.floor(Number(f)%3600%60);return(S>0?S+":":"")+_.es(Math.floor(Number(f)%3600/60),S>0?2:1)+":"+_.es(B,2)};
_.e.computeTimeStringA11y=function(f){f=_.QR1({seconds:f});var S=f.hours===void 0?0:f.hours,B=f.minutes===void 0?0:f.minutes,G=f.seconds===void 0?0:f.seconds;f=[];if(S>0){var g=wUB().format({hours:S});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.CJ)||S>9999)g=g.replace(S.toString(),_.Y2x(S)),_.CJ==="km"&&(g=g.replace(".",","));f.push(g)}B>0&&f.push(wUB().format({minutes:B}));G>0&&f.push(wUB().format({seconds:G}));S="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");B=_.CJ==
"am"?"{0}\u1363 ":_.CJ=="fa"?"{0}\u060c\u200f ":_.CJ=="my"?"{0} - ":_.CJ=="ne"?"{0},":_.CJ=="th"?"{0} ":_.CJ=="ur"?"{0}\u060c ":_.CJ=="ar"||_.CJ=="ar-XB"?"{0} \u0648":_.CJ=="ja"||_.CJ=="zh-CN"||_.CJ=="zh-HK"||_.CJ=="zh-TW"?"{0}\u3001":"{0}, ";G=_.CJ=="am"?"\u1363 ":_.CJ=="fa"?"\u060c\u200f ":_.CJ=="my"?" - ":_.CJ=="th"?" ":_.CJ=="ur"?"\u060c ":_.CJ=="ar"||_.CJ=="ar-XB"?" \u0648":_.CJ=="ja"||_.CJ=="zh-CN"||_.CJ=="zh-HK"||_.CJ=="zh-TW"?"\u3001":", ";g=_.CJ=="am"?" \u12a5\u1293 {0}":_.CJ=="as"?" \u0986\u09f0\u09c1 {0}":
_.CJ=="az"?" v\u0259 {0}":_.CJ=="bn"?" \u098f\u09ac\u0982 {0}":_.CJ=="cs"?" a\u00a0{0}":_.CJ=="de"?" und {0}":_.CJ=="el"?" \u03ba\u03b1\u03b9 {0}":_.CJ=="eu"?" eta {0}":_.CJ=="fa"?"\u060c \u0648 {0}":_.CJ=="fil"?", at {0}":_.CJ=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.CJ=="hi"?", \u0914\u0930 {0}":_.CJ=="hu"?" \u00e9s {0}":_.CJ=="hy"?" \u0587 {0}":_.CJ=="id"?", dan {0}":_.CJ=="iw"?" \u05d5-{0}":_.CJ=="ja"?"\u3001{0}":_.CJ=="ka"?" \u10d3\u10d0 {0}":_.CJ=="km"?" \u1793\u17b7\u1784 {0}":_.CJ=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.CJ=="ko"?" \ubc0f {0}":_.CJ=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.CJ=="lt"?" ir {0}":_.CJ=="lv"?" un {0}":_.CJ=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.CJ=="mr"?" \u0906\u0923\u093f {0}":_.CJ=="ms"?" dan {0}":_.CJ=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.CJ=="ne"?" \u0930 {0}":_.CJ=="or"?", \u0b13 {0}":_.CJ=="pa"?" \u0a05\u0a24\u0a47 {0}":_.CJ=="ro"?" \u0219i {0}":_.CJ=="si"?", \u0dc3\u0dc4 {0}":_.CJ=="sk"?" a {0}":_.CJ=="sl"?" in {0}":_.CJ=="sq"?" dhe {0}":_.CJ=="sv"?" och {0}":
_.CJ=="sw"?" na {0}":_.CJ=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.CJ=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.CJ=="th"?" \u0e41\u0e25\u0e30{0}":_.CJ=="tr"?" ve {0}":_.CJ=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.CJ=="uz"?" va {0}":_.CJ=="vi"?" v\u00e0 {0}":_.CJ=="zh-HK"?"\u53ca{0}":_.CJ=="zu"?", ne-{0}":_.CJ=="af"||_.CJ=="nl"?" en {0}":_.CJ=="ar"||_.CJ=="ar-XB"?" \u0648{0}":_.CJ=="be"||_.CJ=="uk"?" \u0456 {0}":_.CJ=="en-GB"||_.CJ=="en-IN"?" and {0}":_.CJ=="en"||_.CJ=="en-XA"?
", and {0}":_.CJ=="et"||_.CJ=="fi"?" ja {0}":_.CJ=="fr"||_.CJ=="fr-CA"?" et {0}":_.CJ=="zh-CN"||_.CJ=="zh-TW"?"\u548c{0}":_.CJ=="da"||_.CJ=="is"||_.CJ=="no"?" og {0}":_.CJ=="es"||_.CJ=="es-419"||_.CJ=="es-US"?" y {0}":_.CJ=="kk"||_.CJ=="lo"||_.CJ=="mn"?", {0}":_.CJ=="bg"||_.CJ=="mk"||_.CJ=="ru"||_.CJ=="sr"?" \u0438 {0}":_.CJ=="gl"||_.CJ=="it"||_.CJ=="pt-BR"||_.CJ=="pt-PT"?" e {0}":" i {0}";var b=_.CJ=="am"?"{0} \u12a5\u1293 {1}":_.CJ=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.CJ=="az"?"{0} v\u0259 {1}":
_.CJ=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.CJ=="de"?"{0} und {1}":_.CJ=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.CJ=="eu"?"{0} eta {1}":_.CJ=="fa"?"{0} \u0648 {1}":_.CJ=="fil"?"{0} at {1}":_.CJ=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.CJ=="hi"?"{0} \u0914\u0930 {1}":_.CJ=="hu"?"{0} \u00e9s {1}":_.CJ=="hy"?"{0} \u0587 {1}":_.CJ=="iw"?"{0} \u05d5-{1}":_.CJ=="ja"?"{0}\u3001{1}":_.CJ=="ka"?"{0} \u10d3\u10d0 {1}":_.CJ=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.CJ=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.CJ=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.CJ=="ko"?"{0} \ubc0f {1}":_.CJ=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.CJ=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.CJ=="lt"?"{0} ir {1}":_.CJ=="lv"?"{0} un {1}":_.CJ=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.CJ=="mn"?"{0}, {1}":_.CJ=="mr"?"{0} \u0906\u0923\u093f {1}":_.CJ=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.CJ=="ne"?"{0} \u0930 {1}":_.CJ=="or"?"{0} \u0b13 {1}":_.CJ=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.CJ=="ro"?"{0} \u0219i {1}":_.CJ==
"si"?"{0} \u0dc3\u0dc4 {1}":_.CJ=="sl"?"{0} in {1}":_.CJ=="sq"?"{0} dhe {1}":_.CJ=="sv"?"{0} och {1}":_.CJ=="sw"?"{0} na {1}":_.CJ=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.CJ=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.CJ=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.CJ=="tr"?"{0} ve {1}":_.CJ=="ur"?"{0} \u0627\u0648\u0631 {1}":_.CJ=="uz"?"{0} va {1}":_.CJ=="vi"?"{0} v\u00e0 {1}":_.CJ=="zh-HK"?"{0}\u53ca{1}":_.CJ=="zu"?"{0} ne-{1}":_.CJ=="af"||_.CJ=="nl"?"{0} en {1}":_.CJ=="ar"||_.CJ==
"ar-XB"?"{0} \u0648{1}":_.CJ=="be"||_.CJ=="uk"?"{0} \u0456 {1}":_.CJ=="cs"||_.CJ=="sk"?"{0} a\u00a0{1}":_.CJ=="et"||_.CJ=="fi"?"{0} ja {1}":_.CJ=="fr"||_.CJ=="fr-CA"?"{0} et {1}":_.CJ=="id"||_.CJ=="ms"?"{0} dan {1}":_.CJ=="zh-CN"||_.CJ=="zh-TW"?"{0}\u548c{1}":_.CJ=="da"||_.CJ=="is"||_.CJ=="no"?"{0} og {1}":_.CJ=="es"||_.CJ=="es-419"||_.CJ=="es-US"?"{0} y {1}":_.CJ=="bg"||_.CJ=="mk"||_.CJ=="ru"||_.CJ=="sr"?"{0} \u0438 {1}":_.CJ=="en"||_.CJ=="en-GB"||_.CJ=="en-IN"||_.CJ=="en-XA"?"{0} and {1}":_.CJ==
"gl"||_.CJ=="it"||_.CJ=="pt-BR"||_.CJ=="pt-PT"?"{0} e {1}":"{0} i {1}";_.CJ==="sq"?(g=g.replace("dhe","e"),b=b.replace("dhe","e")):_.CJ==="th"?(G=G.replace("{0}"," {0}"),b=b.replace("{0}","{0} "),b=b.replace("{1}"," {1}")):_.CJ==="ne"?G=",":_.CJ==="zh-CN"?G="":S.includes(_.CJ)&&(G=" ");return f.length<2?f.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(_.CJ)?f.length===2?
b.replace("{0}",f[0]).replace("{1}",f[1]):B.replace("{0}",f[0])+f.slice(1,-1).join(G)+g.replace("{0}",f[f.length-1]):f.join(G)};
_.e.getTimeParam=function(){return sDX(this.timeString)};
_.e.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var f={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},S;_.TE(_.ik(),(S=this.data)==null?void 0:S.trackingParams,f,7)};
_.e.onChangeStartAtTimestamp=function(){for(var f=this.startAtTimestamp.value.split(":"),S=0,B=1,G=f.length-1;G>=0;G--)S+=Number(f[G])*B,B*=60;this.updateTimeSecs(S);this.setTimestamp()};
_.e.onOpen=function(){var f=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var S=_.B8();S?S.getPlayerPromise().then(function(B){B=B.getCurrentTime();f.updateTimeSecs(B)}):R_B()&&this.updateTimeSecs(R_B())};
_.e.setTimestamp=function(){var f=Math.floor(this.currentTimeSecs);_.bW(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!f,timestamp:f||""}])};
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],bU.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],bU.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],bU.prototype,"data",void 0);_.N([_.n({value:!1,notify:!0}),_.Z("design:type",Boolean)],bU.prototype,"isStartAtChecked",void 0);_.N([_.n(),_.Z("design:type",Number)],bU.prototype,"currentTimeSecs",void 0);
_.N([_.n({computed:"computeTimeString(currentTimeSecs)"}),_.Z("design:type",String)],bU.prototype,"timeString",void 0);_.N([_.n({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.Z("design:type",String)],bU.prototype,"timeStringA11y",void 0);_.N([_.vF("#start-at-timestamp"),_.Z("design:type",Object)],bU.prototype,"startAtTimestamp",void 0);_.N([_.nP({is:"yt-start-at-renderer",disableElementRegistration:!0})],bU);
_.p(bU,"yt-start-at-renderer",function(){if(R9Y===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;z9u===void 0&&(z9u=document.createElement("template"));var G=z9u;B.call(S,G.content.cloneNode(!0),f.content.firstChild);R9Y=f}f=R9Y;return f},{mode:2});var XXu;var wXB;var h9$=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"]]),TDZ=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"]]),F4n=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var Vt2={};Vt2.YtBindingExpressionsBehavior={identity:_.IT,msg:function(f,S){S=S===void 0?{}:S;return _.Jf(f,S,f)},
msgPlural:function(f,S){return _.PK(f,S)},
getMusicIconFromType:function(f){if(_.K("music_web_enable_icon_wil"))f=_.F_(f);else if(TDZ.has(f))f="yt-sys-icons:"+TDZ.get(f);else{var S=h9$.get(f)||_.F_(f).split(":")[1];S=_.KDN(S);var B;f=((B=F4n.get(f))!=null?B:"yt-sys-icons:")+S}return f}};var Jlo;var PEY;var vPM;var K4X=document.head,drB=K4X.appendChild,iRO;if(vPM===void 0){var HRe=document.createElement("template");_.Y(HRe,'\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>');vPM=HRe}iRO=vPM;drB.call(K4X,iRO.content);var mh=function(){var f=_.I.apply(this,arguments)||this;f.screenLayer=7;return f};
_.q(mh,_.I);mh.prototype.getScreenLayer=function(){return this.screenLayer};
mh.prototype.onTap=function(f){f&&f.detail&&(f.detail.x||f.detail.y)&&_.m9(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.RD(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(f=this.getScreenLayer(),_.ew(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:f}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.y3.Object.defineProperties(mh.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()}}});
mh.prototype.onTap=mh.prototype.onTap;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],mh.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],mh.prototype,"ytComponentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],mh.prototype,"data",void 0);_.N([_.k("data.title"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],mh.prototype,"title",null);
_.N([_.k("data.serviceName"),_.Z("design:type",String),_.Z("design:paramtypes",[])],mh.prototype,"icon",null);_.N([_.Vg("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],mh.prototype,"onTap",null);_.N([_.nP({is:"yt-share-target-renderer",disableElementRegistration:!0})],mh);
_.p(mh,"yt-share-target-renderer",function(){if(PEY===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;Jlo===void 0&&(Jlo=document.createElement("template"));var G=Jlo;B.call(S,G.content.cloneNode(!0),f.content.firstChild);PEY=f}f=PEY;return f},{mode:2});var qke;var $rB;var zP=function(){var f=_.I.apply(this,arguments)||this;f.SHARE_TARGET_WIDTH=70;f.SHARE_TARGET_MARGIN_RIGHT=8;f.PAGE_SCROLL_SPEED=9;f.actionMap={"yt-share-panel-reset-action":"onReset_"};return f};
_.q(zP,_.I);_.e=zP.prototype;_.e.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.e.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.m9(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.m9(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.e.onReset_=function(){if(_.m9(this.hostElement).querySelector("#list")){var f=_.m9(this.hostElement).querySelector("#list");var S=_.m9(this.hostElement).querySelector("#list");var B=S.offsetLeft,G=S.offsetParent;G||_.X76(S)!="fixed"||(G=_.OI(S).documentElement);if(G){if(_.Fx&&!_.J$(58)){var g=_.vX$(G);B+=g.left}else Number(_.sXV)>=8&&!(Number(_.sXV)>=9)&&(g=_.vX$(G),B-=g.left);S=_.J17(G)?G.clientWidth-(B+S.offsetWidth):B}else S=B;Rdn(f,S);this.updateScrollButtons_()}};
_.e.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.e.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.e.onScrollWheel_=function(f){f.stopPropagation();f.preventDefault();var S=zd2(_.m9(this.hostElement).querySelector("#list"));f=Math.abs(f.deltaX)>Math.abs(f.deltaY)?f.deltaX:f.deltaY;Rdn(_.m9(this.hostElement).querySelector("#list"),S+f);this.updateScrollButtons_()};
_.e.smoothScrollByOnePage_=function(f){var S=_.m9(this.hostElement).querySelector("#list"),B=(Math.floor(S.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,G=zd2(S),g=B*(f?1:-1),b=this.PAGE_SCROLL_SPEED,z=this.updateScrollButtons_.bind(this),X=0,w;(function V(){X+=b;w=X/B*2;Rdn(S,G+g*(w<1?w*w:-w*w+4*w-2));X<B?window.requestAnimationFrame(V):z()})()};
_.e.updateScrollButtons_=function(){var f=zd2(_.m9(this.hostElement).querySelector("#list")),S=_.m9(this.hostElement).querySelector("#list").scrollWidth-_.m9(this.hostElement).querySelector("#list").clientWidth;_.m9(this.hostElement).querySelector("#scroll-button-back").hidden=f<=0;_.m9(this.hostElement).querySelector("#scroll-button-forward").hidden=f>=S};
zP.prototype.onScrollWheel_=zP.prototype.onScrollWheel_;zP.prototype.onDataChanged_=zP.prototype.onDataChanged_;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],zP.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],zP.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(Vt2.YtBindingExpressionsBehavior),_.Z("design:type",Object)],zP.prototype,"ytBindingExpressionsBehavior",void 0);
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],zP.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],zP.prototype,"data",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zP.prototype,"onDataChanged_",null);_.N([_.Vg("wheel"),_.Z("design:type",Function),_.Z("design:paramtypes",[WheelEvent]),_.Z("design:returntype")],zP.prototype,"onScrollWheel_",null);
_.N([_.nP({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],zP);
_.p(zP,"yt-third-party-share-target-section-renderer",function(){if($rB===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;qke===void 0&&(qke=document.createElement("template"));var G=qke;B.call(S,G.content.cloneNode(!0),f.content.firstChild);$rB=f}f=$rB;return f},{mode:2});var Ri=function(){return _.I.apply(this,arguments)||this};
_.q(Ri,_.I);Ri.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"}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Ri.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Ri.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Ri.prototype,"data",void 0);_.N([_.nP({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],Ri);
_.p(Ri,"yt-third-party-network-section-renderer",function(){if(wXB===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;XXu===void 0&&(XXu=document.createElement("template"));var G=XXu;B.call(S,G.content.cloneNode(!0),f.content.firstChild);wXB=f}f=wXB;return f},{mode:2});_.eq(_.oS(function(f){return _.T("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.T("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.T(_.xK,{data:function(){return f.data().firstPartyItems}},{listItemViewModel:_.Y4})))},"rg"),"first-party-network-section-view-model",{props:{data:_.W4}});var QuM=_.f4(["data:image/svg+xml;charset=UTF-8;base64,",""]),Xe=function(){var f=_.I.apply(this,arguments)||this;f.screenLayer=7;f.qrCodeEnabled=_.K("web_enable_sharing_qr_code");f.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return f};
_.q(Xe,_.I);_.e=Xe.prototype;_.e.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"}}}};
_.e.attached=function(){this.JSC$17915_scroller&&(this.JSC$17915_scroller.dialogElement=this.hostElement.parentNode,this.JSC$17915_scroller.attached&&typeof this.JSC$17915_scroller.attached==="function"&&this.JSC$17915_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.e.onDataChanged=function(){var f=this,S;(S=this.data)!=null&&S.contents&&(this.hostElement.setAttribute("links-only","true"),_.Xc(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.ui(this,function(){_.ew(f.hostElement,"yt-refit");f.focusSharePanelHeader()}))};
_.e.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.e.handleSetTimestamp=function(f){var S=this.shortUrl();f.isSet&&(S=_.MF(S,"t",f.timestamp));this.maybeRenderQrCode(S)};
_.e.shortUrl=function(){var f,S=(f=this.data)==null?void 0:f.contents;if(S)for(f=0;f<S.length;f++){var B=void 0,G=void 0;if((B=S[f])==null?0:(G=B.thirdPartyNetworkSection)==null?0:G.copyLinkContainer){var g=G=B=void 0;return(g=_.H((B=S[f])==null?void 0:(G=B.thirdPartyNetworkSection)==null?void 0:G.copyLinkContainer,mxM))==null?void 0:g.shortUrl}}};
_.e.maybeRenderQrCode=function(f){var S=this,B,G,g,b,z,X,w,F,V;return _.R(function(J){if(J.nextAddress==1){B=_.m9(S.hostElement).querySelector("#qr-code");if(!S.qrCodeEnabled||!f)return B&&(B.style.display="none"),J.return();G=_.O31(_.oy().resolve(_.VU),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});g=document.createElement("div");return typeof G==="function"?(G(g),J.jumpTo(2)):_.h(J,G,3)}J.nextAddress!=2&&(b=J.yieldResult,b(g));w=(z=g)==null?void 0:(X=z.firstChild)==null?void 0:X.firstChild;
F=document.createElement("img");V=_.$6(QuM,btoa(w.outerHTML));F.onload=function(){var P={canvas:B,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:F},d=new k$n;Cin(d,f);pSu(d,!1,ALo(d));var Q=d.modules,x=Object.assign({},AVn,P);Q=structuredClone(Q);P=Q.length;var E,U=(E=x.canvas)!=null?E:document.createElement("canvas");E=x.cellSize;d=x.logo;var A,t=(A=x.logoSize)!=null?A:Math.floor(P/4);P%2!==t%2&&t++;var M=x.logoPadding,a=x.backgroundColor;A=P*E;var l=
x.width,mx=0;l&&(mx=x.padding,mx=Math.ceil(mx*A/(l-mx*2)),U.style.width=l+"px",U.style.height=l+"px");U.width!==A+mx*2&&(U.width=A+mx*2);U.height!==A+mx*2&&(U.height=A+mx*2);A=U.getContext("2d");x.autoClear&&A.clearRect(0,0,U.width,U.height);A.fillStyle=a;A.beginPath();A.roundRect(0,0,U.width,U.height,x.borderRadius);A.fill();A.save();A.translate(mx,mx);if(d)for(U=Math.floor(P-t)/2-M,M=Math.floor(P+t)/2+M,a=U;a<M;a++)for(l=U;l<M;l++)Q[a][l]=!1;for(U=0;U<P;U++)for(M=0;M<P;M++)(U<7&&M<7||U<7&&M>=P-
7||U>=P-7&&M<7)&&(Q[U][M]=!1);var zj;U=(zj=x.markerColor)!=null?zj:x.color;Muo(A,0,0,E,U);Muo(A,E*(P-7),0,E,U);Muo(A,0,E*(P-7),E,U);switch(x.cellStyle){case 0:zj=Q;Q=zj.length;U=x.cellSize;A.beginPath();for(M=0;M<Q;M++)for(a=0;a<Q;a++)zj[M][a]&&A.rect(M*U,a*U,U,U);A.fillStyle=x.color;A.fill();break;case 1:zj=Q;Q=zj.length;U=x.cellSize;M=U*x.relativeCircleSize;A.fillStyle=x.color;A.beginPath();for(x=0;x<Q;x++)for(a=0;a<Q;a++)zj[x][a]&&(A.beginPath(),A.ellipse((x+.5)*U,(a+.5)*U,M/2,M/2,0,0,2*Math.PI),
A.fill());A.fill();break;case 2:zj=Q;Q=zj.length;U=x.cellSize;A.fillStyle=x.color;x=[[1,1],[-1,1],[-1,-1],[1,-1]];A.beginPath();for(M=0;M<Q;M++)for(a=0;a<Q;a++)if(zj[M][a])A.roundRect(M*U,a*U,U,U,U/2),M+1<Q&&zj[M+1][a]&&A.rect(M*U+U/2,a*U,U,U),a+1<Q&&zj[M][a+1]&&A.rect(M*U,a*U+U/2,U,U);else{l=M*U+U/2;mx=a*U+U/2;for(var VN=0;VN<4;VN++){var $Q=_.m(x[VN]),OV=$Q.next().value;$Q=$Q.next().value;M+OV>=0&&M+OV<Q&&a+$Q>=0&&a+$Q<Q&&zj[M+OV][a]&&zj[M][a+$Q]&&zj[M+OV][a+$Q]&&(OV=VN*Math.PI/2,$Q=U/2,A.moveTo(l+
$Q*Math.cos(OV),mx+$Q*Math.sin(OV)),A.arc(l,mx,U/2,OV,OV+Math.PI/2,!1),A.lineTo(l+$Q*(Math.cos(OV)-Math.sin(OV)),mx+$Q*(Math.cos(OV)+Math.sin(OV))),A.lineTo(l+$Q*Math.cos(OV),mx+$Q*Math.sin(OV)))}}A.fill()}d&&A.drawImage(d,(P-t)*E/2,(P-t)*E/2,t*E,t*E);A.restore();B.style.removeProperty("display")};
F.src=_.Ve(V);_.TT(J)})};
_.e.hasCommunityPostRenderer=function(){var f,S,B,G;return!!((f=this.data)==null?0:(S=f.header)==null?0:(B=S.sharePanelHeaderRenderer)==null?0:(G=B.communityPost)==null?0:G.communityPostSectionRenderer)};
_.e.onTapClose=function(){_.bW(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.e.getScreenLayer=function(){return this.screenLayer};
_.e.logSharePanelPage=function(){if(!_.K("enable_share_panel_navigation_logging_fix_on_web")){var f;if((f=this.data)!=null&&f.trackingParams){f=this.data.trackingParams;var S=this.parentClickTrackingParams;S=S?_.Ye(S):void 0;var B=_.ik();_.Rh(B,21760,S,{layer:7,parentLayer:0});B.graftServerVe(f,void 0,7);_.W2().dispatch(_.ef({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
Xe.prototype.onDataChanged=Xe.prototype.onDataChanged;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Xe.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Xe.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],Xe.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],Xe.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],Xe.prototype,"data",void 0);_.N([_.n({value:_.Jf("SBOX_INAPPROPRIATE_CANCEL")}),_.Z("design:type",String)],Xe.prototype,"closeButtonAriaLabel",void 0);_.N([_.vF("yt-share-panel-header-renderer"),_.Z("design:type",HTMLElement)],Xe.prototype,"header",void 0);_.N([_.n({selector:function(f){return f.share.parentClickTrackingParams}}),
_.Z("design:type",String)],Xe.prototype,"parentClickTrackingParams",void 0);_.N([_.n(),_.Z("design:type",Object)],Xe.prototype,"qrCodeEnabled",void 0);_.N([_.vF("#scroller"),_.Z("design:type",Object)],Xe.prototype,"JSC$17915_scroller",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Xe.prototype,"onDataChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],Xe);
_.p(Xe,"ytd-unified-share-panel-renderer",function(){if(fVB!==void 0)return fVB;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return fVB=f},{mode:1});var Yku;var wT=function(){var f=_.I.apply(this,arguments)||this;f.modernModal=_.K("kevlar_sign_in_modal_modernization");return f};
_.q(wT,_.I);wT.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
wT.prototype.computeShouldHideOldButtons=function(){var f;return!((f=this.data)==null?0:f.button)};
_.y3.Object.defineProperties(wT.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var f,S;if(this.modernModal&&((f=this.data)==null?0:(S=f.button)==null?0:S.buttonRenderer))return Object.assign({},this.data.button.buttonRenderer,{style:"STYLE_MONO_FILLED"});var B,G;return(B=this.data)==null?void 0:(G=B.button)==null?void 0:G.buttonRenderer}}});
_.N([_.n(),_.Z("design:type",Object)],wT.prototype,"data",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],wT.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Px.YtEventForwardingBehavior),_.Z("design:type",Object)],wT.prototype,"ytEventForwardingBehavior",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],wT.prototype,"modernModal",void 0);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],wT.prototype,"buttonRendererData",null);
_.N([_.C({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],wT);
_.p(wT,"ytd-modal-with-title-and-button-renderer",function(){if(Yku!==void 0)return Yku;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Yku=f},{mode:1});var rl$;var hT=function(){return _.I.apply(this,arguments)||this};
_.q(hT,_.I);hT.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AW("page-changed",this.page))};
hT.prototype.pageChangedForBinding=hT.prototype.pageChangedForBinding;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],hT.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],hT.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",String)],hT.prototype,"page",void 0);_.N([_.JO("page"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hT.prototype,"pageChangedForBinding",null);
_.N([_.C({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],hT);
_.p(hT,"ytd-account-item-section-header-renderer",function(){if(rl$!==void 0)return rl$;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return rl$=f},{mode:1});var juu;var TP=function(){return _.I.apply(this,arguments)||this};
_.q(TP,_.I);TP.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"}}}};
TP.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],TP.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],TP.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Ak),_.Z("design:type",Object)],TP.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],TP.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!1}),_.Z("design:type",Function)],TP.prototype,"onAccountItemTap",void 0);
_.N([_.C({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],TP);
_.p(TP,"ytd-account-item-section-renderer",function(){if(juu!==void 0)return juu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return juu=f},{mode:1});var OR2;var xrY;var Fe=function(){return _.I.apply(this,arguments)||this};
_.q(Fe,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Fe.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Fe.prototype,"data",void 0);_.N([_.C({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],Fe);
_.p(Fe,"ytd-accounts-dialog-header-renderer",function(){if(xrY!==void 0)return xrY;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return xrY=f},{mode:1});var EPo;var VE=function(){return _.I.apply(this,arguments)||this};
_.q(VE,_.I);VE.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],VE.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],VE.prototype,"data",void 0);_.N([_.C({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],VE);
_.p(VE,"ytd-google-account-header-renderer",function(){if(EPo!==void 0)return EPo;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return EPo=f},{mode:1});var JT=function(){return _.I.apply(this,arguments)||this};
_.q(JT,_.I);JT.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"}}}};
JT.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AW("page-changed",this.page))};
JT.prototype.pageChangedForBinding=JT.prototype.pageChangedForBinding;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],JT.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],JT.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],JT.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",String)],JT.prototype,"page",void 0);
_.N([_.JO("page"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],JT.prototype,"pageChangedForBinding",null);_.N([_.C({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],JT);
_.RS()(JT,"ytd-account-section-list-renderer",function(){if(OR2===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);OR2=f}f=OR2;return f},{allowedProps:["data"],
mode:1});var L4O;var PR=function(){var f=_.I.apply(this,arguments)||this;f.enableHandlesAccountMenuSwitcher=_.K("enable_handles_account_menu_switcher");return f};
_.q(PR,_.I);PR.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
PR.prototype.dataChanged=PR.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],PR.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],PR.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],PR.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.N([_.vF("#avatar"),_.Z("design:type",Object)],PR.prototype,"avatar",void 0);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],PR.prototype,"dataChanged",null);_.N([_.C({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],PR);
_.RS()(PR,"ytd-active-account-header-renderer",function(){if(L4O===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);L4O=f}f=L4O;return f},{allowedProps:["data"],
mode:1});var kJ2;var nP2;var vR=function(){return _.I.apply(this,arguments)||this};
_.q(vR,_.I);vR.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
vR.prototype.onBackTap=function(){_.ew(this.hostElement,"yt-menu-back-tapped")};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],vR.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],vR.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],vR.prototype,"data",void 0);_.N([_.C({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],vR);
_.RS()(vR,"ytd-simple-menu-header-renderer",function(){if(nP2===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);nP2=f}f=nP2;return f},{allowedProps:["data"],
mode:2});var suo;var Ka=function(){return _.I.apply(this,arguments)||this};
_.q(Ka,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Ka.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Ka.prototype,"data",void 0);_.N([_.C({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],Ka);
_.p(Ka,"ytd-comment-video-thumbnail-header-renderer",function(){if(suo!==void 0)return suo;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return suo=f},{mode:1});var DrO;var dT=function(){return _.I.apply(this,arguments)||this};
_.q(dT,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],dT.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],dT.prototype,"data",void 0);_.N([_.C({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],dT);
_.p(dT,"ytd-abuse-type-selector-renderer",function(){if(DrO!==void 0)return DrO;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return DrO=f},{mode:1});var IVu;var iU=function(){return _.I.apply(this,arguments)||this};
_.q(iU,_.I);iU.prototype.attached=function(){var f=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){f.additionalContextInput.focusTextInput()})};
iU.prototype.handleAdditionalContextChanged=function(){var f=this;_.NJ(this,"ytd-report-channel-additional-context-update",function(){f.ytdReduxBehavior.dispatch(_.ef({type:"ADDITIONAL_CONTEXT_UPDATED",payload:f.additionalContext}))},300)};
iU.prototype.updateAdditionalContextFromBinding=function(f){this.additionalContext=f.detail.value};
iU.prototype.handleAdditionalContextChanged=iU.prototype.handleAdditionalContextChanged;_.N([_.r(_.Ek),_.Z("design:type",Object)],iU.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",String)],iU.prototype,"additionalContext",void 0);_.N([_.n({selector:function(f){return f.reportChannelAbuse.additionalContext}}),
_.Z("design:type",String)],iU.prototype,"additionalContextRedux",void 0);_.N([_.n(),_.Z("design:type",Object)],iU.prototype,"data",void 0);_.N([_.vF("yt-text-input-form-field-renderer"),_.Z("design:type",Object)],iU.prototype,"additionalContextInput",void 0);_.N([_.JO("additionalContext"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],iU.prototype,"handleAdditionalContextChanged",null);
_.N([_.C({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],iU);
_.p(iU,"ytd-report-channel-modal-additional-context-renderer",function(){if(IVu!==void 0)return IVu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return IVu=f},{mode:1});var Uru;var HR=function(){var f=_.I.apply(this,arguments)||this;f.nextButtonDisabled=null;f.submitEndpoint=null;f.navigationEndpoint=null;f.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return f};
_.q(HR,_.I);_.e=HR.prototype;_.e.computeNextButtonData=function(f,S,B){var G={};S&&(G.navigationEndpoint=S);B&&(G.serviceEndpoint=B);f&&f.buttonRenderer&&_.$v.extend(G,f.buttonRenderer);return G};
_.e.handleReportChannelModalDisableNextButtonAction=function(f){this.setNextButtonIsDisabled(f)};
_.e.handleReportFormEndpointUpdateAction=function(f){this.setNextButtonIsDisabled(!!f.disableSubmitButton);this.resetEndpointData();f.submitEndpoint?this.submitEndpoint=f.submitEndpoint:f.submitNavigationEndpoint&&(this.navigationEndpoint=f.submitNavigationEndpoint)};
_.e.handleSignalActionSubmitForm=function(){var f,S=Object.keys(((f=this.reportChannelAbuseForm)==null?void 0:f.selectedVideoIds)||{}),B;f=((B=this.reportChannelAbuseForm)==null?void 0:B.additionalContext)||"";var G;B=((G=this.reportChannelAbuseForm)==null?void 0:G.impersonatedChannelUrl)||"";var g;if((g=this.data)==null?0:g.submitEndpoint){S={impersonated_channel_url:B,text:f,video_ids:S};var b;_.oy().resolve(_.S7).resolveCommand((b=this.data)==null?void 0:b.submitEndpoint,{form:Object.assign({},
S,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.e.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.e.onYtServiceRequestError=function(f){this.setNextButtonIsDisabled(!1);_.g5(this.hostElement,f.detail.error.message)};
_.e.setNextButtonIsDisabled=function(f){this.set("data.nextButton.buttonRenderer.isDisabled",f)};
_.e.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
HR.prototype.onYtServiceRequestError=HR.prototype.onYtServiceRequestError;HR.prototype.onYtServiceRequestCompleted=HR.prototype.onYtServiceRequestCompleted;_.N([_.n(),_.Z("design:type",Object)],HR.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],HR.prototype,"nextButtonDisabled",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],HR.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],HR.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],HR.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],HR.prototype,"submitEndpoint",void 0);_.N([_.n(),_.Z("design:type",Object)],HR.prototype,"navigationEndpoint",void 0);_.N([_.n({selector:function(f){return f.reportChannelAbuse}}),
_.Z("design:type",Object)],HR.prototype,"reportChannelAbuseForm",void 0);_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],HR.prototype,"onYtServiceRequestCompleted",null);_.N([_.Vg("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],HR.prototype,"onYtServiceRequestError",null);
_.N([_.C({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],HR);
_.p(HR,"ytd-report-channel-modal-footer-renderer",function(){if(Uru!==void 0)return Uru;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Uru=f},{mode:1});var CEB;var qQ=function(){var f=_.I.apply(this,arguments)||this;f.boundOnTapDismissButton=function(){f.closePopup()};
return f};
_.q(qQ,_.I);qQ.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
qQ.prototype.handleDataChanged=function(){_.ty(this.hostElement)};
qQ.prototype.closePopup=function(){_.bW(this.hostElement,"yt-close-popup-action")};
qQ.prototype.handleDataChanged=qQ.prototype.handleDataChanged;_.N([_.n(),_.Z("design:type",Object)],qQ.prototype,"boundOnTapDismissButton",void 0);_.N([_.n(),_.Z("design:type",Object)],qQ.prototype,"data",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],qQ.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],qQ.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qQ.prototype,"handleDataChanged",null);_.N([_.C({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],qQ);
_.p(qQ,"ytd-report-channel-modal-header-renderer",function(){if(CEB!==void 0)return CEB;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return CEB=f},{mode:1});var pXe;var $z=function(){var f=_.I.apply(this,arguments)||this;f.autoValidate=!1;f.invalid=!1;f.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return f};
_.q($z,_.I);_.e=$z.prototype;_.e.attached=function(){var f=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){f.channelUrlInput.focusTextInput()})};
_.e.disableNextButton=function(f){_.bW(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[f])};
_.e.handleImpersonatedChannelUrlChanged=function(){var f=this;this.disableNextButton(!0);this.invalid=!1;_.NJ(this,"ytd-report-channel-impersonated-channel-update",function(){var S=f.impersonatedChannelUrl.trim();f.ytdReduxBehavior.dispatch(_.ef({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:S}));var B;((B=f.data)==null?0:B.submitEndpoint)&&S&&_.oy().resolve(_.S7).resolveCommand(f.data.submitEndpoint,{form:{impersonated_channel_url:S,element:f.hostElement}})},500)};
_.e.handleModifyReportFormCommand=function(f){this.invalid=this.get("modifyReportFormCommand.action",f)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.e.updateInvalidFromBinding=function(f){this.invalid=f.detail.value};
_.e.updateImpersonatedChannelUrlFromBinding=function(f){this.impersonatedChannelUrl=f.detail.value};
$z.prototype.handleImpersonatedChannelUrlChanged=$z.prototype.handleImpersonatedChannelUrlChanged;_.N([_.r(_.Ek),_.Z("design:type",Object)],$z.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],$z.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],$z.prototype,"autoValidate",void 0);_.N([_.n(),_.Z("design:type",Object)],$z.prototype,"invalid",void 0);
_.N([_.n(),_.Z("design:type",String)],$z.prototype,"impersonatedChannelUrl",void 0);_.N([_.n({selector:function(f){return f.reportChannelAbuse.impersonatedChannelUrl}}),
_.Z("design:type",String)],$z.prototype,"impersonatedChannelUrlRedux",void 0);_.N([_.n(),_.Z("design:type",Object)],$z.prototype,"data",void 0);_.N([_.vF("#text-input"),_.Z("design:type",Object)],$z.prototype,"channelUrlInput",void 0);_.N([_.JO("impersonatedChannelUrl"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$z.prototype,"handleImpersonatedChannelUrlChanged",null);
_.N([_.C({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],$z);
_.p($z,"ytd-report-channel-modal-impersonation-renderer",function(){if(pXe!==void 0)return pXe;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return pXe=f},{mode:1});var AlO;var NDu;var QE=function(){return _.I.apply(this,arguments)||this};
_.q(QE,_.I);QE.prototype.onCheckboxToggled=function(f){var S,B,G=(B=_.H((S=this.data)==null?void 0:S.video,_.CW))==null?void 0:B.videoId;G&&this.ytdReduxBehavior.dispatch(f.target.checked?_.ef({type:"VIDEO_SELECTED",payload:G}):_.ef({type:"VIDEO_UNSELECTED",payload:G}))};
QE.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.y3.Object.defineProperties(QE.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var f,S=(f=this.data)==null?void 0:f.video;if(!S)return{};var B;f=(B=_.H(S,_.CW))==null?void 0:B.navigationEndpoint;if(!f)return S;_.H(f==null?void 0:f.commandMetadata,_.oD)&&(_.H(f.commandMetadata,_.oD).ignoreNavigation=!0);return S}}});
_.N([_.n({reflectToAttribute:!0,selector:function(f,S){return S in f.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.Z("design:type",Boolean)],QE.prototype,"checked",void 0);_.N([_.n(),_.Z("design:type",Object)],QE.prototype,"data",void 0);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QE.prototype,"video",null);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],QE.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],QE.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.r(_.Ek),_.Z("design:type",Object)],QE.prototype,"ytdReduxBehavior",void 0);_.N([_.C({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],QE);
_.p(QE,"ytd-selectable-video-renderer",function(){if(NDu!==void 0)return NDu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return NDu=f},{mode:1});var Yz=function(){var f=_.I.apply(this,arguments)||this;f.monitorScroll=!0;return f};
_.q(Yz,_.I);Yz.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Yz.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Yz.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Yz.prototype,"data",void 0);_.N([_.C({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],Yz);
_.p(Yz,"ytd-selectable-video-list-renderer",function(){if(AlO!==void 0)return AlO;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return AlO=f},{mode:1});var MtZ;_.Dd("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var rT=function(){return _.I.apply(this,arguments)||this};
_.q(rT,_.I);rT.prototype.onChange=function(f){if(f=_.lt(f).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.K("kevlar_command_handler_migration_killswitch"))_.Xh(this.hostElement,f,this.hostElement);else{f=_.m(f);for(var S=f.next();!S.done;S=f.next())this.ytComponentBehavior.resolveCommand(S.value)}};
rT.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
rT.prototype.updateDataToggledFromBinding=function(f){this.set("data.toggled",f.detail.value)};
_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],rT.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],rT.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],rT.prototype,"data",void 0);_.N([_.n({computed:"isEnabled(data)"}),_.Z("design:type",Boolean)],rT.prototype,"enabled",void 0);_.N([_.C({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],rT);
_.p(rT,"ytd-toggle-item-renderer",function(){if(MtZ!==void 0)return MtZ;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return MtZ=f},{mode:1});var ZRz;var ttu;var usu;var ji=function(){var f=_.I.apply(this,arguments)||this;f.setVisible=!1;f.boundOnSubmitButtonClick=function(){f.onSubmitButtonClick()};
f.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return f};
_.q(ji,_.I);ji.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}}}}}};
ji.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
ji.prototype.onSubmitButtonClick=function(){var f;((f=this.data)==null?0:f.submitEndpoint)&&!_.K("enable_ytc_refunds_submit_form_signal_action")&&_.RD(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
ji.prototype.handleSignalActionSubmitForm=function(){var f;((f=this.data)==null?0:f.submitEndpoint)&&_.RD(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.y3.Object.defineProperties(ji.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.hiddenByDefault)&&!this.setVisible}}});
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],ji.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],ji.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],ji.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],ji.prototype,"setVisible",void 0);_.N([_.n(),_.Z("design:type",Object)],ji.prototype,"data",void 0);
_.N([_.n(),_.Z("design:type",Object)],ji.prototype,"surveyFeedbackData",void 0);_.N([_.n(),_.Z("design:type",Object)],ji.prototype,"boundOnSubmitButtonClick",void 0);_.N([_.n({reflectToAttribute:!0}),_.k("data","setVisible"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ji.prototype,"visibilityHidden",null);_.N([_.nP({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],ji);
_.p(ji,"yt-flow-footer-renderer",function(){if(usu===void 0){var f=document.createElement("template");_.Y(f,'\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>');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;ttu===void 0&&(ttu=document.createElement("template"));var G=ttu;B.call(S,G.content.cloneNode(!0),f.content.firstChild);usu=f}f=usu;return f},{mode:2});var Oz=function(){return _.I.apply(this,arguments)||this};
_.q(Oz,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Oz.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],Oz.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Oz.prototype,"data",void 0);_.N([_.n({selector:function(f){return f.ypc.surveyFeedbackData}}),
_.Z("design:type",Object)],Oz.prototype,"surveyFeedbackData",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],Oz);
_.p(Oz,"ytd-flow-footer-renderer",function(){if(ZRz!==void 0)return ZRz;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return ZRz=f},{mode:_.X_("kevlar_poly_si_batch_j025")?1:2});var aVB;var ylX;var xz=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return f};
_.q(xz,_.I);_.e=xz.prototype;_.e.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.Ia("multiPageMenuSectionItems")}}};
_.e.handleHideEnclosingAction_=function(f){if(this.data&&this.data.items)for(var S=0;S<this.data.items.length;S++){var B=this.data.items[S].notificationRenderer;if(B&&B.notificationId==f.hideEnclosingAction.notificationId){this.splice("data.items",S,1);_.bW(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.e.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.Xc(this.hostElement,"hidden",!0)};
_.e.updateMenu_=function(f){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&f&&!f.doNotRefreshInbox){f=this.data.continuations;for(var S=0;S<f.length;S++)if(f[S].invalidationContinuationData){var B=void 0;var G=(B=f[S].invalidationContinuationData)==null?void 0:B.continuation;break}f=_.$v.clone(this.data.continuationUpdateEndpoint||null);f.continuation=G;f.click_tracking_params=this.data.trackingParams;_.RD(this.hostElement,[f])}};
_.e.onServiceRequestCompleted_=function(f,S){if(this.data&&(f=S.actions)){S=0;for(var B=f.length;S<B;S++){var G=_.H(f[S],_.H4i);if(!G)break;if((G.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||G.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&G.continuationItems&&this.data.items){var g=this.data.items.length-1;this.data.items[g].continuationItemRenderer&&this.splice.apply(this,["data.items",g,1].concat(G.continuationItems))}}}};
xz.prototype.onServiceRequestCompleted_=xz.prototype.onServiceRequestCompleted_;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],xz.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],xz.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],xz.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],xz.prototype,"data",void 0);
_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.cw]),_.Z("design:returntype")],xz.prototype,"onServiceRequestCompleted_",null);_.N([_.nP({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],xz);
_.RS()(xz,"yt-multi-page-menu-section-renderer",function(){if(ylX===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;aVB===void 0&&(aVB=document.createElement("template"));var G=aVB;B.call(S,G.content.cloneNode(!0),f.content.firstChild);ylX=f}f=ylX;return f},{allowedProps:["data"],
mode:2});var W42;var clM;var Ez=function(){return _.I.apply(this,arguments)||this};
_.q(Ez,_.I);Ez.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.y3.Object.defineProperties(Ez.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.progress)==null?0:this.data.progress*100}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Ez.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Ez.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Ez.prototype,"data",void 0);_.N([_.k("data.progress"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Ez.prototype,"showProgressBar",null);
_.N([_.k("data.progress"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],Ez.prototype,"progress",null);_.N([_.nP({is:"yt-flow-header-renderer",disableElementRegistration:!0})],Ez);
_.p(Ez,"yt-flow-header-renderer",function(){if(clM===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;W42===void 0&&(W42=document.createElement("template"));var G=W42;B.call(S,G.content.cloneNode(!0),f.content.firstChild);clM=f}f=clM;return f},{mode:2});var lVu;var f3u;var La=function(){return _.I.apply(this,arguments)||this};
_.q(La,_.I);La.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],La.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],La.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],La.prototype,"data",void 0);_.N([_.nP({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],La);
_.p(La,"yt-post-confirmation-flow-step-renderer",function(){if(f3u===void 0){var f=document.createElement("template");_.Y(f,'\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>');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;lVu===void 0&&(lVu=document.createElement("template"));var G=lVu;B.call(S,G.content.cloneNode(!0),f.content.firstChild);f3u=f}f=f3u;return f},{mode:2});var oqZ;var Siu;var kz=function(){return _.I.apply(this,arguments)||this};
_.q(kz,_.I);
kz.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"}}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],kz.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],kz.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],kz.prototype,"data",void 0);_.N([_.nP({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],kz);
_.p(kz,"yt-refund-confirmation-flow-step-renderer",function(){if(Siu===void 0){var f=document.createElement("template");_.Y(f,'\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>');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;oqZ===void 0&&(oqZ=document.createElement("template"));var G=oqZ;B.call(S,G.content.cloneNode(!0),f.content.firstChild);Siu=f}f=Siu;return f},{mode:2});_.Su(DEz);_.Su(Iuo);var UEu=_.$K({avatarViewModel:_.Ya});_.Su(CWX);var pKe=_.$K({commentInteractionViewModel:Iuo,sharedSubscriptionViewModel:CWX,buttonViewModel:_.I8});_.Su(Afu);_.Su(NhZ);_.Su(Mwu);_.Su(Z2u);_.Su(twB);var uhu=_.$K({profileIdentityInfoViewModel:_.ym2,profileInfoViewModel:twB});_.Su(au2);_.TD(au2,"yt-profile-card-view-model",{propNames:["data"]});var na=function(){var f=_.I.apply(this,arguments)||this;f.enableFocusFix=_.K("music_web_enable_focus_on_setting_menu_fix")&&_.s6("IS_MOBILE_WEB",!1);f.covered=!1;f.hideMenu=!1;f.isCommentNotificationOnProfileCard=!1;f.scrolledByTouch=!1;f.disableBackdropFilter=_.K("web_disable_backdrop_filter");f.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return f};
_.q(na,_.I);_.e=na.prototype;
_.e.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"}}}};
_.e.ready=function(){var f=this;this.JSC$18024_containerElement.addEventListener("scroll",function(){f.ytRendererBehavior.markDirty()})};
_.e.attributeChanged=function(f,S){f==="menu-style"&&_.bW(this.hostElement,"yt-multi-page-menu-closed-action",[S])};
_.e.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Fc(this,this.focusOnStampFinished))};
_.e.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.Fc(this,this.focusOnStampFinished))};
_.e.reset=function(){this.closeJobId&&(_.xJ.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.e.focusOnStampFinished=function(f){f.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Fc(this,this.focusOnStampFinished)),this.doFocus())};
_.e.doFocus=function(){var f=_.n8X(this.sectionsElement);f.length&&f[0].focus()};
_.e.computeMenuStyle=function(f){return f?f.toLowerCase().replace(/_/g,"-"):""};
_.e.computeIsCommentNotificationOnProfileCard=function(f){return _.K("enable_profile_cards_on_comments")&&f.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.e.computeHideMenu=function(f,S){return f||!(!S||!S.showLoadingSpinner)};
_.e.onPopupClosed=function(){this.isPopUpOpen=!1;_.bW(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.e.onPopupOpened=function(f,S){this.isPopUpOpen=!0;S.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.ew(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.ef({type:"CHANNEL_REPORT_RESET"})))};
_.e.onYtNavigate=function(f,S){this.shouldCloseOnNavigateEvent(S.endpoint)&&_.bW(this.hostElement,"yt-close-all-popups-action")};
_.e.handleEndpoint=function(f){f=_.H(f,_.kf);!this.isCommentNotificationOnProfileCard&&f&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$18024_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.e.handleActions=function(f){for(var S=0,B=f.length;S<B;S++){var G=_.H(f[S],XuM);G&&this.handleGetMultiPageMenuAction(G);(G=_.H(f[S],_.H4i))&&this.handleAppendContinuationItemsAction(G)}};
_.e.onServiceRequestSentOrCompleted=function(f,S){f.detail&&f.detail.endpoint&&this.handleEndpoint(f.detail.endpoint);S.actions&&this.handleActions(S.actions)};
_.e.handleGetMultiPageMenuAction=function(f){var S=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.m9(this.submenuElement).appendChild(S);(f=f.menu.multiPageMenuRenderer)&&this.logSubmenu(f);S.data=f;S.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.e.handleAppendContinuationItemsAction=function(f){if(this.data&&f.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&f.continuationItems&&this.data.sections){var S=this.data.sections.length-1;this.data.sections[S].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),S--);if(this.data.sections[S].multiPageMenuNotificationSectionRenderer&&f.continuationItems){f=_.m(f==null?void 0:f.continuationItems);for(var B=f.next();!B.done;B=f.next())if(B=B.value,_.H(B,Dxu)){var G=
void 0,g=void 0,b=void 0,z=void 0,X=void 0;((G=this)==null?0:(g=G.data)==null?0:(b=g.sections)==null?0:(z=b[S])==null?0:(X=z.multiPageMenuNotificationSectionRenderer)==null?0:X.items)&&this.push("data.sections."+S+".multiPageMenuNotificationSectionRenderer.items",B)}else if(_.H(B,_.R28)||_.H(B,_.zq))this.push("data.sections",B),S++}}};
_.e.logSubmenu=function(f){if(!_.K("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var S=this.ytRendererBehavior.getScreenLayer(),B=_.xc(S),G=_.Of(S);if((f=f.trackingParams)&&B&&G){var g=_.Ye(f);_.K("combine_ve_grafts")?_.ik().graftServerVe(f,G,S):_.Af(B,G,g)}}};
_.e.emptySubmenuContainer=function(){for(var f=_.m9(this.submenuElement);f.firstChild;)f.removeChild(f.firstChild)};
_.e.onMenuBackTap=function(f){_.ew(this.hostElement,"yt-submenu-closed");f.stopPropagation()};
_.e.onSubmenuClosed=function(f){_.lt(f)!==this.hostElement&&(this.covered=!1,_.ew(this.hostElement,"yt-refit"),f.stopPropagation())};
_.e.onRetrieveLocation=function(f,S){S.hasComments&&(S.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),f.stopPropagation())};
_.e.shouldCloseOnNavigateEvent=function(f){if(!f)return!0;if(_.H(f,_.ms7)||_.H(f,_.zC8)||_.H(f,_.bT8)||_.H(f,_.pg))return!1;var S;return((S=_.H(f==null?void 0:f.commandMetadata,_.oD))==null?0:S.ignoreNavigation)?!1:!0};
_.e.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.e.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.e.refitAfterRender=function(){var f=this;_.ui(this,function(){_.ew(f.hostElement,"yt-refit")})};
na.prototype.refitAfterRender=na.prototype.refitAfterRender;na.prototype.onRetrieveLocation=na.prototype.onRetrieveLocation;na.prototype.onSubmenuClosed=na.prototype.onSubmenuClosed;na.prototype.onMenuBackTap=na.prototype.onMenuBackTap;na.prototype.onServiceRequestSentOrCompleted=na.prototype.onServiceRequestSentOrCompleted;na.prototype.onYtNavigate=na.prototype.onYtNavigate;na.prototype.onPopupOpened=na.prototype.onPopupOpened;na.prototype.onPopupClosed=na.prototype.onPopupClosed;
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],na.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Px.YtEventForwardingBehavior),_.Z("design:type",Object)],na.prototype,"ytEventForwardingBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],na.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],na.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],na.prototype,"data",void 0);
_.N([_.n(),_.Z("design:type",Object)],na.prototype,"enableFocusFix",void 0);_.N([_.n(),_.Z("design:type",Object)],na.prototype,"covered",void 0);_.N([_.n({computed:"computeHideMenu(covered, data)"}),_.Z("design:type",Object)],na.prototype,"hideMenu",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.Z("design:type",String)],na.prototype,"menuStyle",void 0);
_.N([_.n({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.Z("design:type",Object)],na.prototype,"isCommentNotificationOnProfileCard",void 0);_.N([_.n(),_.Z("design:type",Boolean)],na.prototype,"isPopUpOpen",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],na.prototype,"scrolledByTouch",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],na.prototype,"disableBackdropFilter",void 0);
_.N([_.vF("#sections"),_.Z("design:type",HTMLElement)],na.prototype,"sectionsElement",void 0);_.N([_.vF("#spinner"),_.Z("design:type",HTMLElement)],na.prototype,"spinnerElement",void 0);_.N([_.vF("#header"),_.Z("design:type",HTMLElement)],na.prototype,"headerElement",void 0);_.N([_.vF("#container"),_.Z("design:type",HTMLElement)],na.prototype,"JSC$18024_containerElement",void 0);_.N([_.vF("#submenu"),_.Z("design:type",HTMLElement)],na.prototype,"submenuElement",void 0);
_.N([_.Vg("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],na.prototype,"onPopupClosed",null);_.N([_.Vg("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],na.prototype,"onPopupOpened",null);_.N([_.Vg("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],na.prototype,"onYtNavigate",null);
_.N([_.Vg("yt-service-request-completed"),_.Vg("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.cw]),_.Z("design:returntype")],na.prototype,"onServiceRequestSentOrCompleted",null);_.N([_.Vg("yt-menu-back-tapped"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],na.prototype,"onMenuBackTap",null);
_.N([_.Vg("yt-submenu-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],na.prototype,"onSubmenuClosed",null);_.N([_.Vg("yt-retrieve-location"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],na.prototype,"onRetrieveLocation",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],na.prototype,"refitAfterRender",null);
_.N([_.C({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],na);
_.p(na,"ytd-multi-page-menu-renderer",function(){if(kJ2!==void 0)return kJ2;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return kJ2=f},{mode:1});var BEn;var sz=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return f};
_.q(sz,_.I);_.e=sz.prototype;_.e.created=function(){this.showTooltips=!0};
_.e.computeAccessibility_=function(f){return this.get("accessibility.accessibilityData",f)||null};
_.e.onTap=function(){var f=_.mU(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(f&&f.length===1&&f[0])_.bW(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var S;if((S=this.data)==null?0:S.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var B;((B=this.data)==null?0:B.menuRequest)&&_.RD(this.hostElement,[this.data.menuRequest])}}};
_.e.handleTopbarMenuClosedAction=function(f){var S,B;(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(f)===((S=this.data)==null?void 0:(B=S.icon)==null?void 0:B.iconType)&&this.toggleIconState(!1)};
_.e.toggleIconState=function(f){_.K("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=f)};
_.e.handleUpdateTopbarAvatarAction=function(f){var S;f=(S=_.H(f,Ge$))==null?void 0:S.avatarUrl;var B,G;S=(B=this.data)==null?void 0:(G=B.avatar)==null?void 0:G.thumbnails;f&&S&&(B={thumbnails:[Object.assign({},S[0],{url:f})]},this.set("data.avatar",B))};
_.y3.Object.defineProperties(sz.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.m9(this.hostElement).querySelector("#button")}}});
sz.prototype.onTap=sz.prototype.onTap;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],sz.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],sz.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.a5),_.Z("design:type",Object)],sz.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.r(_.pIX.YtButtonBehavior),_.Z("design:type",Object)],sz.prototype,"ytButtonBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],sz.prototype,"data",void 0);
_.N([_.vF("yt-icon-button#button"),_.Z("design:type",Object)],sz.prototype,"iconButton",void 0);_.N([_.Vg("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],sz.prototype,"onTap",null);_.N([_.C({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],sz);
_.p(sz,"ytd-topbar-menu-button-renderer",function(){if(BEn!==void 0)return BEn;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return BEn=f},{mode:1});var G5u;var D4=function(){return _.I.apply(this,arguments)||this};
_.q(D4,_.I);D4.prototype.getSelected=function(){return this.reasons.selected};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],D4.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],D4.prototype,"data",void 0);_.N([_.vF("#reasons"),_.Z("design:type",Object)],D4.prototype,"reasons",void 0);_.N([_.C({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],D4);
_.p(D4,"ytd-ad-feedback-content",function(){if(G5u!==void 0)return G5u;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return G5u=f},{mode:1});var gqO;var Ii=function(){return _.I.apply(this,arguments)||this};
_.q(Ii,_.I);_.e=Ii.prototype;_.e.onPopupOpened=function(){_.bW(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.e.computeConfirmButton=function(f){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:f.confirmLabel}};
_.e.computeCancelButton=function(f){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:f.cancelLabel}};
_.e.onConfirmTap=function(){var f=this.content.getSelected();f!==void 0&&(f=this.data.reasons[f].endpoint)&&(_.oy().resolve(_.S7).resolveCommand(f,{form:{element:this.hostElement}}),_.bW(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.e.sendFeedbackSubmitToastAction=function(){var f;(f=this.data)!=null&&f.completionMessage&&_.bW(this.hostElement,"yt-open-popup-action",[_.fn(this.data.completionMessage),this])};
_.e.onCancelTap=function(){_.bW(this.hostElement,"yt-close-popup-action")};
Ii.prototype.onPopupOpened=Ii.prototype.onPopupOpened;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Ii.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Ii.prototype,"data",void 0);_.N([_.vF("#content"),_.Z("design:type",Object)],Ii.prototype,"content",void 0);_.N([_.Vg("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Ii.prototype,"onPopupOpened",null);
_.N([_.C({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],Ii);
_.p(Ii,"ytd-ad-feedback-renderer",function(){if(gqO!==void 0)return gqO;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return gqO=f},{mode:1});var eiY;var Uz=function(){return _.I.apply(this,arguments)||this};
_.q(Uz,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Uz.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Uz.prototype,"data",void 0);_.N([_.C({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],Uz);
_.p(Uz,"ytd-ad-info-dialog-content",function(){if(eiY!==void 0)return eiY;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return eiY=f},{mode:1});var bfz;var Ca=function(){return _.I.apply(this,arguments)||this};
_.q(Ca,_.I);Ca.prototype.computeConfirmButton=function(f){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:f.confirmLabel}};
Ca.prototype.onConfirmTap=function(){_.bW(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
Ca.prototype.computeShouldShowTitle=function(){var f;return!((f=this.data)==null||!f.title)};
Ca.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.oy().resolve(_.S7).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
Ca.prototype.onPopupClosed=Ca.prototype.onPopupClosed;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Ca.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Ca.prototype,"data",void 0);_.N([_.Vg("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Ca.prototype,"onPopupClosed",null);_.N([_.C({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],Ca);
_.p(Ca,"ytd-ad-info-dialog-renderer",function(){if(bfz!==void 0)return bfz;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return bfz=f},{mode:1});var mjY;var pa=function(){var f=_.I.apply(this,arguments)||this;f.actionButtonClass="action-button";f.dismissButtonId="dismiss-button";f.dialogDismiss=!0;return f};
_.q(pa,_.I);_.e=pa.prototype;_.e.computeInPlayer=function(f){return(f==null?void 0:f.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.e.computedLogo=function(){var f,S;return this.isDarkTheme()?(f=this.data)==null?void 0:f.logoDark:(S=this.data)==null?void 0:S.logo};
_.e.computedHeaderImage=function(){var f,S;return this.isDarkTheme()?(f=this.data)==null?void 0:f.headerImageDark:(S=this.data)==null?void 0:S.headerImage};
_.e.computeLogoIconId=function(){var f,S,B,G=(f=this.computedLogo())==null?void 0:(S=f.sources)==null?void 0:(B=S[0])==null?void 0:B.height;return G&&G%31===0?"logo-icon-with-padding":"logo-icon"};
_.e.computeLogoIconHeight=function(){var f,S,B,G=(f=this.computedLogo())==null?void 0:(S=f.sources)==null?void 0:(B=S[0])==null?void 0:B.height;return G&&G%31===0?"31":"24"};
_.e.onPopupClosed=function(){_.oy().resolve(_.BM).dispose()};
_.e.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.e.onShow=function(){this.inPlayer&&_.VW(6)};
_.e.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var f=0;f<this.data.impressionEndpoints.length;f++){var S=_.H(this.data.impressionEndpoints[f],_.Un);S&&this.ytComponentBehavior.resolveCommand(S)}};
_.e.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.bW(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.y3.Object.defineProperties(pa.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var f,S;return!((f=this.data)==null||!f.headerImageDark)&&!((S=this.data)==null||!S.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.secondaryButton)}}});
pa.prototype.onPopupClosed=pa.prototype.onPopupClosed;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],pa.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],pa.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.ti.YtVisibilityBehavior),_.Z("design:type",Object)],pa.prototype,"ytVisibilityBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],pa.prototype,"data",void 0);
_.N([_.n(),_.Z("design:type",Object)],pa.prototype,"actionButtonClass",void 0);_.N([_.n(),_.Z("design:type",Object)],pa.prototype,"dismissButtonId",void 0);_.N([_.n(),_.Z("design:type",Object)],pa.prototype,"dialogDismiss",void 0);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],pa.prototype,"hasHeaderImage",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],pa.prototype,"hasPremiumButton",null);
_.N([_.n({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.Z("design:type",Boolean)],pa.prototype,"inPlayer",void 0);_.N([_.vF("#dismiss-button"),_.Z("design:type",HTMLElement)],pa.prototype,"dismissButton",void 0);_.N([_.Vg("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],pa.prototype,"onPopupClosed",null);_.N([_.C({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],pa);
_.p(pa,"ytd-enforcement-message-view-model",function(){if(mjY!==void 0)return mjY;var f=document.createElement("template");_.Y(f,'\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>');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return mjY=f},{mode:1});var zio;var Ri2;var AT=function(){var f=_.I.apply(this,arguments)||this;f.TEST_ONLY={immediateValidation:function(){f.immediateValidation()},
onValidationResponse:function(S){f.onValidationResponse(S)},
onGenerateHandleFromNameResponse:function(S){f.onGenerateHandleFromNameResponse(S)}};
return f};
_.q(AT,_.I);_.e=AT.prototype;_.e.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.e.validate=function(){this.immediateValidation()};
_.e.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.e.setHandleInputValue=function(f){this.handleDir=this.getHandleDir(f);this.handleInput.value=f;this.validationState={status:"PENDING"};this.immediateValidation()};
_.e.getHandleDir=function(f){var S=f===""&&!1;return(S=_.qZi.test.call(_.qZi,f))?"rtl":"ltr"};
_.e.onDataChanged=function(){var f,S;this.handleDir=this.getHandleDir((S=(f=this.data)==null?void 0:f.handle)!=null?S:"");var B;this.validationState=((B=this.data)==null?0:B.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var G;((G=this.data)==null?0:G.validateOnInit)&&this.immediateValidation()};
_.e.stopPropagation=function(f){f.stopPropagation()};
_.e.onInput=function(){var f;this.handleDir=this.getHandleDir((f=this.handleInput.value)!=null?f:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.e.onFocusout=function(f){this.handleInput.contains(f.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.e.delayedValidation=function(){var f,S;this.debouncedValidation((S=(f=this.data)==null?void 0:f.validationDelayMs)!=null?S:1E3)};
_.e.immediateValidation=function(){this.debouncedValidation(0)};
_.e.debouncedValidation=function(f){var S=this;_.NJ(this,"debouncedValidation",function(){var B,G=S.staticValidation((B=S.handleInput.value)!=null?B:"");if(G!==void 0)S.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:G};else{var g;if((g=S.data)!=null&&g.validateChannelHandleCommand){S.validationState={status:"LOADING"};var b;S.ytComponentBehavior.resolveCommand(S.data.validateChannelHandleCommand,{form:{handle:(b=S.handleInput.value)!=null?b:""},commandController:{onSuccess:function(z,
X){S.onValidationResponse(X)},
onServerError:function(z,X){S.onValidationServerError(X)}}})}else S.handleUnexpectedValidationError(new _.dO("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",S.data))}},f)};
_.e.staticValidation=function(f){var S;if(((S=this.data)==null?void 0:S.channelHandleStaticValidationParams)!==void 0){S=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(f)&&S.validValueRegexpErrorMessage!==void 0)return S.validValueRegexpErrorMessage;if(S.minLength!==void 0&&f.length<S.minLength&&S.minLengthErrorMessage!==void 0)return S.minLengthErrorMessage;if(S.maxLength!==void 0&&f.length>S.maxLength&&S.maxLengthErrorMessage!==void 0)return S.maxLengthErrorMessage}};
_.e.onValidationResponse=function(f){var S=_.H(f.result,gm$);S===void 0?this.handleUnexpectedValidationError(new _.dO("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",f)):this.handleValidationResultRenderer(S)};
_.e.onValidationServerError=function(f){this.handleUnexpectedValidationError(new _.dO("ValidateChannelHandle request failed.",f))};
_.e.handleValidationResultRenderer=function(f){if(f.handle===void 0)this.handleUnexpectedValidationError(new _.dO("ChannelHandleValidationResultRenderer does not contain handle.",f));else if(f.handle===this.handleInput.value)switch(f.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:f.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:f.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.dO("Unrecognized ChannelHandleValidationResult",f));break;default:_.mu(f.result)}};
_.e.handleUnexpectedValidationError=function(f){var S;this.validationState={status:"UNKNOWN",handle:(S=this.handleInput.value)!=null?S:""};_.Lg(f)};
_.e.stopEventPropagation=function(f){f.stopPropagation()};
_.e.updateHandleOnChannelNameInputChange=function(f){if(!this.wasEdited){var S,B;this.debouncedGenerateHandleFromName(f,(B=(S=this.data)==null?void 0:S.validationDelayMs)!=null?B:1E3)}};
_.e.debouncedGenerateHandleFromName=function(f,S){var B=this;_.NJ(this,"debouncedGenerateHandleFromName",function(){var G;(G=B.data)!=null&&G.validateChannelHandleCommand?B.ytComponentBehavior.resolveCommand(B.data.validateChannelHandleCommand,{form:{name:f},commandController:{onSuccess:function(g,b){B.onGenerateHandleFromNameResponse(b)},
onServerError:function(g,b){_.Lg(new _.dO("Error calling GenerateHandleFromName",b))}}}):_.Lg(new _.dO("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",B.data))},S)};
_.e.onGenerateHandleFromNameResponse=function(f){this.wasEdited||((f=_.H(f.result,e62))?this.setHandleInputValue(f.handle):_.Lg(new _.dO("Invalid results when generate handle from name")))};
_.y3.Object.defineProperties(AT.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var f;if(f=this.validationState)f=this.validationState,f=f.status==="OK"||f.status==="UNKNOWN";if(f)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var f;if(((f=this.validationState)==null?void 0:f.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 f,S=(f=this.channelHandleEntity)==null?void 0:f.handleEdit;this.handleDir=this.getHandleDir(S!=null?S:"");return S}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var f,S;if(((f=this.data)==null?void 0:(S=f.channelHandleStaticValidationParams)==null?void 0:S.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
AT.prototype.stopEventPropagation=AT.prototype.stopEventPropagation;AT.prototype.onDataChanged=AT.prototype.onDataChanged;AT.prototype.applyHandleEdit=AT.prototype.applyHandleEdit;AT.prototype.onValueChanged=AT.prototype.onValueChanged;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],AT.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],AT.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],AT.prototype,"data",void 0);
_.N([_.n(),_.Z("design:type",Boolean)],AT.prototype,"wasEdited",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",String)],AT.prototype,"handleDir",void 0);_.N([_.vF("#handle-input"),_.Z("design:type",Object)],AT.prototype,"handleInput",void 0);_.N([_.n(),_.k("validationState"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],AT.prototype,"value",null);
_.N([_.JO("value"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],AT.prototype,"onValueChanged",null);_.N([_.k("validationState"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],AT.prototype,"errorIndicator",null);_.N([_.n({reflectToAttribute:!0}),_.k("errorIndicator"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],AT.prototype,"borderErrorIndicator",null);
_.N([_.n({selectorArgs:["data.channelHandleEntityKey"],selector:function(f,S){return _.w9(f.entities,"channelHandle",S)}}),
_.Z("design:type",Object)],AT.prototype,"channelHandleEntity",void 0);_.N([_.k("channelHandleEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],AT.prototype,"handleEdit",null);_.N([_.JO("handleEdit"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],AT.prototype,"applyHandleEdit",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],AT.prototype,"onDataChanged",null);
_.N([_.k("data.channelHandleStaticValidationParams.validValueRegexp"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],AT.prototype,"validValueRegexp",null);_.N([_.Vg("yt-service-request-sent"),_.Vg("yt-service-request-completed"),_.Vg("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],AT.prototype,"stopEventPropagation",null);_.N([_.C({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],AT);
_.p(AT,"ytd-channel-handle-input-renderer",function(){if(Ri2!==void 0)return Ri2;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return Ri2=f},{mode:_.X_("kevlar_poly_si_batch_j025")?1:2});var NQ=function(){var f=_.I.apply(this,arguments)||this;f.data=null;f.errorMessage=null;f.isLoading=!0;f.hideContainer=!1;f.enableNewChannelCreationOnIdForAll=_.K("enable_new_channel_creation_for_id4all");f.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"};f.testOnly={setErrorMessage:function(S){f.resetErrorState();
f.setErrorState(S)}};
return f};
_.q(NQ,_.I);_.e=NQ.prototype;_.e.created=function(){this.logScreenVe()};
_.e.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")};
_.e.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var f;((f=this.zeroStepErrorMessageEntity)==null?0:f.value)&&this.set("errorMessage",_.uC(this.zeroStepErrorMessageEntity.value))};
_.e.onCreateTap=function(){var f=this;if(this.data&&this.data.channelCreationEndpoint){var S,B;if(!((S=this.data.createChannelButton)==null?0:(B=S.buttonRenderer)==null?0:B.isDisabled)){var G;if((G=this.nameInput)!=null&&G.value){this.setLoadingState();var g,b;S=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(g=this.handleInput)==null?void 0:g.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((b=this.handleInput)==null?void 0:b.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:S,commandController:{onSuccess:function(z,X){f.onChannelCreationEndpointSuccess(X);f.obakeImageSource&&_.jD("channelCreatedWithObakeImage",{imageSourceType:f.obakeImageSource})},
onServerError:function(){f.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.e.endpointRequiresServiceRequestAction=function(f){return!!_.H(f,_.DW)||!!_.H(f,Ge$)};
_.e.isNavigateAction=function(f){var S;return!!_.H(f,_.M4)||!!_.H((S=_.H(f,z6u))==null?void 0:S.command,_.M4)};
_.e.isPlaylistAction=function(f){return!!_.H(f,_.nW)||!!_.H(f,_.pW)};
_.e.onChannelCreationEndpointSuccess=function(f){if(f.createChannelError){var S;this.setErrorState((S=f.createChannelError)==null?void 0:S.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.K("enable_secondary_channel_creation_form")&&f.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(f.navigationEndpoint);if(f.actions){S=_.m(f.actions);for(var B=S.next();!B.done;B=S.next())if(B=B.value,this.endpointRequiresServiceRequestAction(B)&&this.ytComponentBehavior.resolveCommand(B),
this.isNavigateAction(B)){var G=void 0;B=_.H((G=_.H(B,z6u))==null?void 0:G.command,_.M4);G=void 0;this.isPlaylistAction((G=B)==null?void 0:G.endpoint)&&(_.bW(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),G=void 0,this.ytComponentBehavior.resolveCommand((G=B)==null?void 0:G.endpoint))}}f.actions&&f.actions.some(function(g){var b;return _.H(g,_.M4)||_.H((b=_.H(g,z6u))==null?void 0:b.command,_.M4)})||_.bW(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.e.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.e.onCancelTap=function(){var f,S,B;if(!((f=this.data)==null?0:(S=f.cancelButton)==null?0:(B=S.buttonRenderer)==null?0:B.isDisabled)){var G,g,b;f=(G=this.data)==null?void 0:(g=G.cancelButton)==null?void 0:(b=g.buttonRenderer)==null?void 0:b.command;if(!f||!_.H(f,_.zMQ)){var z;this.nameInput&&((z=this.data)==null?0:z.name)&&(this.nameInput.value=this.data.name);var X;this.handleInput&&((X=this.data)==null?0:X.channelHandleInput)&&(this.handleInput.data=_.H(this.data.channelHandleInput,bdM));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.e.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.e.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.e.onClearProfilePhotoTap=function(){var f,S,B;((f=this.data)==null?0:(S=f.clearProfilePhotoButton)==null?0:(B=S.buttonRenderer)==null?0:B.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.e.onEditAvatarTap=function(){var f,S,B;((f=this.data)==null?0:(S=f.editAvatarButton)==null?0:(B=S.buttonRenderer)==null?0:B.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.e.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)};
_.e.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var f;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((f=this.data)==null?0:f.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.e.setErrorState=function(f){this.resetErrorState();if(f)this.set("errorMessage",f);else{var S;if((S=this.zeroStepErrorMessageEntity)==null?0:S.value)this.set("errorMessage",_.uC(this.zeroStepErrorMessageEntity.value));else{var B;((B=this.data)==null?0:B.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.e.fetchImageBlobWithAlr=function(f,S){S=S===void 0?5:S;var B=this,G,g,b,z,X;return _.R(function(w){switch(w.nextAddress){case 1:return _.h(w,fetch(f,{method:"GET",mode:"cors"}),2);case 2:G=w.yieldResult;if(G.ok){w.jumpTo(3);break}if(S===0)throw Error();g=B.addJitter(Math.pow(2,5-S));return _.h(w,new Promise(function(F){setTimeout(F,g*1E3)}),4);
case 4:return w.return(B.fetchImageBlobWithAlr(f,S-1));case 3:if(!G.headers.get("content-type").split(";").some(function(F){return F.trim()==="text/plain"})){w.jumpTo(5);
break}b=B;z=b.fetchImageBlobWithAlr;return _.h(w,G.text(),6);case 6:return w.return(z.call(b,w.yieldResult,S-1));case 5:return _.h(w,G.blob(),7);case 7:return X=w.yieldResult,w.return(X)}})};
_.e.addJitter=function(f){var S=f*.3*Math.random();Math.random()>.5&&(S*=-1);return f+S};
_.e.openProfilePicturePicker=function(){var f=this,S,B,G,g,b;return _.R(function(z){if(z.nextAddress==1){S=f.data.scottyUploadUrl;if(!S)return z.return();B=document.documentElement.hasAttribute("dark");G=document.body.style.colorScheme;B&&(document.body.style.colorScheme="dark");g=w_B(hhn(X_u(GdO(B?"dark":"light")),function(X){var w,F,V,J,P;return _.R(function(d){if(d.nextAddress==1)return w=_.MF(v_Z(new $x(X.photoUrl,!1)).build(),"alr","yes"),f.obakeImageSource=f.pictureChangeSourceToObakeImageSourceType(X.photoSource),
_.zT(d,2),f.setLoadingState(),_.h(d,f.fetchImageBlobWithAlr(w),4);if(d.nextAddress!=2)return F=d.yieldResult,V=new FileReader,V.addEventListener("load",function(){var Q,x,E,U,A,t;return _.R(function(M){if(M.nextAddress==1){if(F.size>15728640)return f.setErrorState((Q=f.data)==null?void 0:Q.imageSizeErrorMessage),_.Lg(Error("kl")),M.return();if(!V.result)return f.setErrorState((x=f.data)==null?void 0:x.genericImageLoadErrorMessage),_.Lg(Error("ll")),M.return();E=V.result;_.zT(M,2);return _.h(M,yfY(F,
S),4)}if(M.nextAddress!=2)return U=M.yieldResult,f.handleImageUpdatedAction(E,U),f.resetErrorState(),_.CN(M,0);A=_.hm(M);f.setErrorState((t=f.data)==null?void 0:t.uploadErrorMessage);if(A instanceof Error)_.xH(A);else{var a=new _.dO(JSON.stringify(A));_.xH(a)}_.TT(M)})}),V.readAsDataURL(F),_.CN(d,0);
J=_.hm(d);f.setErrorState((P=f.data)==null?void 0:P.genericImageLoadErrorMessage);J instanceof Error?_.xH(J):_.EU(new _.dO(JSON.stringify(J)));_.TT(d)})}),function(){f.hideContainer=!1;
document.body.style.colorScheme=G});
_.zT(z,2);return _.h(z,g.openPicker(),4)}if(z.nextAddress!=2)return _.CN(z,0);_.hm(z);f.setErrorState((b=f.data)==null?void 0:b.selectImageErrorMessage);_.TT(z)})};
_.e.pictureChangeSourceToObakeImageSourceType=function(f){switch(f){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.e.logScreenVe=function(){_.Rh(_.ik(),124448)};
_.e.graftServerVe=function(){var f=_.Of(),S,B,G=(S=this.data)==null?void 0:(B=S.loggingDirectives)==null?void 0:B.trackingParams;G&&f&&(this.channelCreationFormVe=_.ik().graftServerVe(G,f),f={visualElement:this.channelCreationFormVe},_.KH().reportShown(f))};
_.e.isNameChanged=function(f){var S;return((S=this.data)==null?void 0:S.name)!==f};
_.e.isHandleChanged=function(f){var S,B=_.H((S=this.data)==null?void 0:S.channelHandleInput,bdM);return B&&f?B.handle!==f:!1};
_.e.handleImageUpdatedAction=function(f,S){this.hideContainer=!1;this.previewDataUrl=f;this.encryptedBlobId=S};
_.e.handleImageSelectionErrorAction=function(f){this.hideContainer=!1;this.setErrorState(f)};
_.e.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.e.showContainer=function(){this.hideContainer=!1};
_.e.maybeWipeZeroStepErrorMessage=function(){var f,S=(f=this.data)==null?void 0:f.zeroStepErrorMessageEntityKey,B;S&&((B=this.zeroStepErrorMessageEntity)==null?0:B.value)&&this.ytdReduxBehavior.dispatch(_.KF("stringEntity",S,{key:S,value:""}))};
_.y3.Object.defineProperties(NQ.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 f;return((f=this.photoThumbnail)==null?0:f.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 f;return!((f=this.data)==null||!f.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.descriptionInfo}}});
NQ.prototype.dataChanged=NQ.prototype.dataChanged;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],NQ.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],NQ.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],NQ.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],NQ.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],NQ.prototype,"errorMessage",void 0);
_.N([_.n(),_.Z("design:type",Object)],NQ.prototype,"isLoading",void 0);_.N([_.n(),_.Z("design:type",String)],NQ.prototype,"previewDataUrl",void 0);_.N([_.n(),_.Z("design:type",Number)],NQ.prototype,"obakeImageSource",void 0);_.N([_.n(),_.Z("design:type",Object)],NQ.prototype,"hideContainer",void 0);_.N([_.vF("#title-input"),_.Z("design:type",Object)],NQ.prototype,"nameInput",void 0);_.N([_.vF("#handle-input"),_.Z("design:type",Object)],NQ.prototype,"handleInput",void 0);
_.N([_.n(),_.Z("design:type",Boolean)],NQ.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.N([_.n({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.tK1}),_.Z("design:type",Object)],NQ.prototype,"zeroStepErrorMessageEntity",void 0);_.N([_.k("data","data.isDefaultProfilePhoto","previewDataUrl"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],NQ.prototype,"photoThumbnail",null);
_.N([_.k("data","data.isDefaultProfilePhoto","photoThumbnail"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],NQ.prototype,"userSetPhotoThumbnailUrl",null);_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],NQ.prototype,"hideProfilePhotoButtonLayer",null);_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],NQ.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.N([_.HF("data","zeroStepErrorMessageEntity"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NQ.prototype,"dataChanged",null);_.N([_.n({reflectToAttribute:!0}),_.k("data.descriptionInfo","zeroStepErrorMessageEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],NQ.prototype,"description",null);_.N([_.C({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],NQ);
_.p(NQ,"ytd-channel-creation-dialog-renderer",function(){if(zio!==void 0)return zio;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return zio=f},{mode:1});var X0Y;var MQ=function(){var f=_.I.apply(this,arguments)||this;f.isLoading=!1;f.isDisabled=!1;return f};
_.q(MQ,_.I);MQ.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
MQ.prototype.updateDisabled=function(){var f;this.isDisabled=this.isLoading||((f=this.handleInput)==null?void 0:f.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
MQ.prototype.onSaveClick=function(){var f=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var S;((S=this.data)==null?void 0:S.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 B;if((B=f.data)==null?0:B.nextEndpoint){var G;f.ytComponentBehavior.resolveCommand((G=f.data)==null?void 0:G.nextEndpoint)}else f.isLoading=
!1,f.closeDialog()},
onServerError:function(){f.isLoading=!1;f.handleInput.validate();var B;f.errorMessage=(B=f.data)==null?void 0:B.errorMessage}}}))}};
MQ.prototype.closeDialog=function(){_.bW(this.hostElement,"yt-close-popup-action",[this.is])};
MQ.prototype.updateDisabled=MQ.prototype.updateDisabled;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],MQ.prototype,"ytComponentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],MQ.prototype,"data",void 0);_.N([_.vF("#handle-input"),_.Z("design:type",Object)],MQ.prototype,"handleInput",void 0);_.N([_.JO("isLoading"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],MQ.prototype,"updateDisabled",null);
_.N([_.C({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],MQ);
_.p(MQ,"ytd-channel-handle-edit-dialog-renderer",function(){if(X0Y!==void 0)return X0Y;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return X0Y=f},{mode:1});var w0n;var Z4=function(){return _.I.apply(this,arguments)||this};
_.q(Z4,_.I);Z4.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Z4.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Z4.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Z4.prototype,"data",void 0);_.N([_.C({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],Z4);
_.p(Z4,"ytd-channel-switcher-footer-renderer",function(){if(w0n!==void 0)return w0n;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return w0n=f},{mode:1});var hie;var TE$;var tT=function(){return _.I.apply(this,arguments)||this};
_.q(tT,_.I);tT.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
tT.prototype.onIronChange=tT.prototype.onIronChange;_.N([_.n(),_.Z("design:type",Object)],tT.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!1}),_.Z("design:type",Function)],tT.prototype,"onDontAskAgainChanged",void 0);_.N([_.vF("#checkbox"),_.Z("design:type",Object)],tT.prototype,"checkbox",void 0);_.N([_.Vg("iron-change"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tT.prototype,"onIronChange",null);
_.N([_.C({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],tT);
_.p(tT,"ytd-identity-prompt-footer-renderer",function(){if(TE$!==void 0)return TE$;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return TE$=f},{mode:1});var uU=function(){var f=_.I.apply(this,arguments)||this;f.dontAskAgain=!1;f.showPopup=!1;f.boundDontAskAgainChanged=function(S){f.dontAskAgainChanged(S)};
f.boundOnAccountItemTap=function(S){f.onAccountItemTap(S)};
return f};
_.q(uU,_.I);_.e=uU.prototype;
_.e.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]]"}}}}}};
_.e.ready=function(){var f=this;_.m9(this.hostElement).querySelector("#container").addEventListener("scroll",function(){f.ytRendererBehavior.markDirty()})};
_.e.dontAskAgainChanged=function(f){this.dontAskAgain=f};
_.e.onAccountItemTap=function(f){if(f){var S={};this.dontAskAgain&&(S={dont_ask_again:this.dontAskAgain});_.tK(f,S)}};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.e.redirectOnlyAccount=function(f){f.sections&&f.sections.length>0&&(f=_.H(f.sections[0],_.KZ8),(f==null?0:f.contents)&&(f==null?void 0:f.contents.length)<=1?(f=_.Mp(window.location.href),(f==null?0:f.next)&&_.FIN(f.next)?_.tK(f.next):_.tK("/")):this.showPopup=!0)};
uU.prototype.dataChanged=uU.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],uU.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],uU.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],uU.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!1}),_.Z("design:type",Object)],uU.prototype,"dontAskAgain",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],uU.prototype,"showPopup",void 0);_.N([_.n({reflectToAttribute:!1}),_.Z("design:type",Object)],uU.prototype,"boundDontAskAgainChanged",void 0);_.N([_.n({reflectToAttribute:!1}),_.Z("design:type",Object)],uU.prototype,"boundOnAccountItemTap",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],uU.prototype,"dataChanged",null);
_.N([_.C({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],uU);
_.p(uU,"ytd-channel-switcher-renderer",function(){if(hie!==void 0)return hie;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return hie=f},{mode:1});var FX$;var ai=function(){return _.I.apply(this,arguments)||this};
_.q(ai,_.I);_.y3.Object.defineProperties(ai.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.N([_.n(),_.Z("design:type",Object)],ai.prototype,"data",void 0);_.N([_.k("data"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],ai.prototype,"steps",null);_.N([_.C({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],ai);
_.p(ai,"ytd-channel-transfer-stepper-renderer",function(){if(FX$!==void 0)return FX$;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return FX$=f},{mode:1});var VGu;var yE=function(){var f=_.I.apply(this,arguments)||this;f.data=null;f.isError=!1;f.isLoading=!1;return f};
_.q(yE,_.I);_.e=yE.prototype;_.e.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"}}}};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.e.computeProfileName=function(f){return f?f.givenNameValue+" "+f.familyNameValue:""};
_.e.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)};
_.e.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)};
yE.prototype.onYtServiceRequestError=yE.prototype.onYtServiceRequestError;yE.prototype.onYtServiceRequestSent=yE.prototype.onYtServiceRequestSent;yE.prototype.dataChanged=yE.prototype.dataChanged;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],yE.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],yE.prototype,"data",void 0);
_.N([_.n({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.Z("design:type",String)],yE.prototype,"profileName",void 0);_.N([_.n(),_.Z("design:type",Object)],yE.prototype,"isError",void 0);_.N([_.n(),_.Z("design:type",Object)],yE.prototype,"isLoading",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],yE.prototype,"dataChanged",null);
_.N([_.Vg("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.N1]),_.Z("design:returntype")],yE.prototype,"onYtServiceRequestSent",null);_.N([_.Vg("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.N1]),_.Z("design:returntype")],yE.prototype,"onYtServiceRequestError",null);_.N([_.C({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],yE);
_.p(yE,"ytd-channel-warm-welcome-cont-renderer",function(){if(VGu!==void 0)return VGu;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return VGu=f},{mode:1});var Jgu;var WR=function(){var f=_.I.apply(this,arguments)||this;f.data=null;return f};
_.q(WR,_.I);WR.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
WR.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],WR.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],WR.prototype,"data",void 0);_.N([_.C({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],WR);
_.p(WR,"ytd-channel-warm-welcome-renderer",function(){if(Jgu!==void 0)return Jgu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Jgu=f},{mode:1});var PrX;var cR=function(){return _.I.apply(this,arguments)||this};
_.q(cR,_.I);_.y3.Object.defineProperties(cR.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.authorThumbnail)||{}}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],cR.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],cR.prototype,"data",void 0);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],cR.prototype,"thumbnailDetails",null);_.N([_.C({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],cR);
_.p(cR,"ytd-comment-preview-renderer",function(){if(PrX!==void 0)return PrX;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return PrX=f},{mode:1});var vqY;var lU=function(){return _.I.apply(this,arguments)||this};
_.q(lU,_.I);lU.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.y3.Object.defineProperties(lU.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.submitButton}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],lU.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],lU.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],lU.prototype,"data",void 0);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],lU.prototype,"submitButton",null);_.N([_.C({is:"ytd-notice-renderer",disableElementRegistration:!0})],lU);
_.p(lU,"ytd-notice-renderer",function(){if(vqY!==void 0)return vqY;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return vqY=f},{mode:1});var KXO;var f7=function(){return _.I.apply(this,arguments)||this};
_.q(f7,_.I);f7.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],f7.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],f7.prototype,"data",void 0);_.N([_.C({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],f7);
_.p(f7,"ytd-preview-comment-dialog-content",function(){if(KXO!==void 0)return KXO;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return KXO=f},{mode:1});var dje;var o9=function(){return _.I.apply(this,arguments)||this};
_.q(o9,_.I);o9.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
o9.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],o9.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],o9.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],o9.prototype,"data",void 0);_.N([_.C({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],o9);
_.p(o9,"ytd-preview-comment-dialog-renderer",function(){if(dje!==void 0)return dje;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return dje=f},{mode:1});var ifo;var Hfz=_.K("web_button_rework")&&_.s6("BUTTON_REWORK")||_.K("web_button_rework_with_live"),SM=function(){var f=_.I.apply(this,arguments)||this;f.closeLabel=_.Jf("CLOSE");f.selectedAmountIndex=1;f.privacyCheckboxValue=!1;f.useAmsterdamStyle=Hfz;f.amountPlaceholderIndex=-1;return f};
_.q(SM,_.I);_.e=SM.prototype;_.e.onAmountClick=function(f){this.selectedAmountIndex=_.m9(this.hostElement).querySelector("#amounts").indexForElement(f.currentTarget)};
_.e.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.bW(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.e.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.bW(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.bW(this.hostElement,"yt-close-popup-action",[this.is]);var f;(f=_.B8())==null||f.getPlayerPromise().then(function(S){S.pauseVideo()})}};
_.e.donationCallback=function(f){f.success?(this.hostElement.hasAttribute("live-chat")&&f.response&&f.response.data&&f.response.data.actions&&_.bW(this.hostElement,"yt-live-chat-open-popup",[f.response.data.actions[0]]),_.bW(this.hostElement,"yt-close-popup-action",[this.is]),_.bW(this.hostElement,"yt-live-chat-close-buy-flow")):f.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(f.errorMessageRenderer)};
_.e.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.m9(this.hostElement).querySelector("#custom-amount-input").focus()};
_.e.updateConfirmationDialogTextWithAmount=function(f){var S=this.getConfirmDialogRuns();S&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(S),"text"],this.getFormattedAmount(f))};
_.e.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.e.getAmountPlaceholderIndex=function(f){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=f.findIndex(function(S){return S.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.e.getFormattedAmount=function(f){var S;return(new _.pJ(4,((S=this.data)==null?void 0:S.currencyCode)||"")).format(f)};
_.e.isAmountValid=function(f){if(f==="")return!1;f=Number(f)*1E6;var S=this.get("minAmountMicros",this.data),B=this.get("maxAmountMicros",this.data);return S&&f<S||B&&f>B?!1:!0};
_.e.setInputError=function(){this.shouldShowValidationError?_.m9(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.m9(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.e.setInitialCheckboxValue=function(){var f;this.privacyCheckboxValue=!((f=this.data)==null||!f.privacyCheckboxInitialState)};
_.e.updateCustomAmountInputFromBinding=function(f){this.customAmountInput=f.detail.value};
_.e.updatePrivacyCheckboxValueFromBinding=function(f){this.privacyCheckboxValue=f.detail.value};
_.y3.Object.defineProperties(SM.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var f=this,S,B;return((S=this.data)==null?void 0:(B=S.suggestedAmounts)==null?void 0:B.map(function(G,g){return{buttonRenderer:{style:f.selectedAmountIndex===g?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:G.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 f;return!((f=this.data)==null||!f.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 f=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(f&&this.amountMicros!==null)return Object.assign({},f,{ypcGetCartEndpoint:Object.assign({},f.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 f=this.get("confirmLargeAmount",this.data);if(f&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),f}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var f=this.get("donateButton.buttonRenderer",this.data);if(f)return Object.assign({},f,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
SM.prototype.setInitialCheckboxValue=SM.prototype.setInitialCheckboxValue;SM.prototype.setInputError=SM.prototype.setInputError;SM.prototype.setFocusOnCustomAmountInput=SM.prototype.setFocusOnCustomAmountInput;_.N([_.r(O5Y),_.Z("design:type",Object)],SM.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],SM.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],SM.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],SM.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],SM.prototype,"closeLabel",void 0);_.N([_.n(),_.Z("design:type",Object)],SM.prototype,"selectedAmountIndex",void 0);_.N([_.n(),_.Z("design:type",String)],SM.prototype,"customAmountInput",void 0);_.N([_.n(),_.Z("design:type",Object)],SM.prototype,"privacyCheckboxValue",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],SM.prototype,"useAmsterdamStyle",void 0);_.N([_.JO("customAmount"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],SM.prototype,"setFocusOnCustomAmountInput",null);_.N([_.k("data","selectedAmountIndex"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],SM.prototype,"suggestedAmountButtons",null);
_.N([_.k("data","selectedAmountIndex"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],SM.prototype,"isCustomAmountSelected",null);_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],SM.prototype,"showPrivacyCheckbox",null);_.N([_.k("data","selectedAmountIndex","customAmount"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],SM.prototype,"amountMicros",null);
_.N([_.k("isCustomAmountSelected","customAmountInput"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],SM.prototype,"customAmount",null);_.N([_.k("customAmount"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],SM.prototype,"shouldShowValidationError",null);_.N([_.k("customAmount"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],SM.prototype,"isDonateButtonEnabled",null);
_.N([_.k("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],SM.prototype,"donateCommand",null);_.N([_.k("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],SM.prototype,"donateCommandWithConfirmation",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],SM.prototype,"largeDonationThreshold",null);
_.N([_.k("customAmount","donateCommand","amountMicros"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],SM.prototype,"confirmLargeAmountCommand",null);_.N([_.k("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],SM.prototype,"donateButtonRenderer",null);_.N([_.JO("shouldShowValidationError"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],SM.prototype,"setInputError",null);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],SM.prototype,"setInitialCheckboxValue",null);_.N([_.C({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],SM);
_.p(SM,"ytd-donation-amount-picker-renderer",function(){if(ifo!==void 0)return ifo;var f=document.createElement("template");_.Y(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" aria-label="[[getSimpleString(data.pickerTitle)]]" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" label="[[closeLabel]]" on-click="onCloseClick" class="style-scope ytd-donation-amount-picker-renderer">\n          <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-amount-picker-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n    </div>\n    <div id="campaign-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-img-shadow>\n      <div id="text-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="campaign-title" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignTitle)]]</div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignSubtitle)]]</div>\n        <div id="description-column" class="style-scope ytd-donation-amount-picker-renderer">\n          <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n          <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n        </div>\n      </div>\n    </div>\n    <div id="live-chat-description-column" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n      <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n    </div>\n  </div>\n  <div id="bottom-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="nonprofit-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.nonprofitTitle)]]\n          <yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-amount-picker-renderer" icon="check_circle" default-to-filled="true">\n          </yt-icon>\n        </div>\n        <yt-formatted-string id="nonprofit-subtitle" text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-amount-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="amount-selector" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="suggested-amount-buttons-row" class="style-scope ytd-donation-amount-picker-renderer">\n        <template id="amounts" is="dom-repeat" items="[[suggestedAmountButtons]]" class="style-scope ytd-donation-amount-picker-renderer">\n          <ytd-button-renderer class="suggested-amount style-scope ytd-donation-amount-picker-renderer" data="[[item.buttonRenderer]]" on-click="onAmountClick"></ytd-button-renderer>\n        </template>\n      </div>\n      <div id="custom-amount-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <tp-yt-paper-input id="custom-amount-input" allowed-pattern="[0-9]" always-float-label="" error-message="[[getSimpleString(data.amountError)]]" hidden="[[!isCustomAmountSelected]]" label="[[getSimpleString(data.customAmountLabel)]]" use-v2-underline="" value="[[customAmountInput]]" on-value-changed="updateCustomAmountInputFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n          <div prefix="" slot="prefix" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.currencySymbol)]]\u00a0</div>\n        </tp-yt-paper-input>\n      </div>\n    </div>\n\n    <tp-yt-paper-checkbox id="privacy-checkbox" checked="[[privacyCheckboxValue]]" hidden="[[!showPrivacyCheckbox]]" on-checked-changed="updatePrivacyCheckboxValueFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-formatted-string split-lines="" text="[[data.privacyCheckboxText]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-formatted-string>\n    </tp-yt-paper-checkbox>\n\n    <div id="button-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <ytd-button-renderer data="[[donateButtonRenderer]]" on-click="onDonateButtonClick" class="style-scope ytd-donation-amount-picker-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return ifo=f},{mode:1});var qiz;var BP=function(){return _.I.apply(this,arguments)||this};
_.q(BP,_.I);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],BP.prototype,"ytComponentBehavior",void 0);_.N([_.n({}),_.Z("design:type",Object)],BP.prototype,"data",void 0);_.N([_.C({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],BP);
_.p(BP,"ytd-donation-post-transaction-content",function(){if(qiz!==void 0)return qiz;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return qiz=f},{mode:1});var $jO;var Gm=function(){return _.I.apply(this,arguments)||this};
_.q(Gm,_.I);Gm.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Gm.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Gm.prototype,"ytRendererBehavior",void 0);_.N([_.n({}),_.Z("design:type",Object)],Gm.prototype,"data",void 0);_.N([_.C({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],Gm);
_.p(Gm,"ytd-donation-post-transaction-renderer",function(){if($jO!==void 0)return $jO;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return $jO=f},{mode:1});var Q_Z;var YiM;var gs=function(){return _.I.apply(this,arguments)||this};
_.q(gs,_.I);gs.prototype.computeIsStreamingProvider=function(f){return!!f.isStreamingShelf};
gs.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],gs.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],gs.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],gs.prototype,"data",void 0);_.N([_.n({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],gs.prototype,"isStreamingProvider",void 0);
_.N([_.C({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],gs);
_.p(gs,"ytd-media-provider-renderer",function(){if(YiM!==void 0)return YiM;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return YiM=f},{mode:1});var rg2;var eM=function(){return _.I.apply(this,arguments)||this};
_.q(eM,_.I);eM.prototype.observeLightsourcePalette=function(){var f,S=(f=this.data)==null?void 0:f.vibrantsourceColorPaletteData;S&&_.n9(this.hostElement,S)};
eM.prototype.observeLightsourcePalette=eM.prototype.observeLightsourcePalette;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],eM.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],eM.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],eM.prototype,"data",void 0);
_.N([_.JO("data.vibrantsourceColorPaletteData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],eM.prototype,"observeLightsourcePalette",null);_.N([_.C({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],eM);
_.p(eM,"ytd-streaming-pop-up-dialog",function(){if(rg2!==void 0)return rg2;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return rg2=f},{mode:1});var bI=function(){return _.I.apply(this,arguments)||this};
_.q(bI,_.I);bI.prototype.onPopupOpened_=function(){var f;((f=this.data)==null?0:f.serviceEndpoint)&&_.oy().resolve(_.S7).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
bI.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
bI.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"}}}}};
bI.prototype.onPopupOpened_=bI.prototype.onPopupOpened_;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],bI.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],bI.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Ak),_.Z("design:type",Object)],bI.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],bI.prototype,"data",void 0);
_.N([_.Vg("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],bI.prototype,"onPopupOpened_",null);_.N([_.C({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],bI);
_.p(bI,"ytd-brandconnect-popup-renderer",function(){if(Q_Z!==void 0)return Q_Z;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Q_Z=f},{mode:1});var j_2;var mP=function(){return _.I.apply(this,arguments)||this};
_.q(mP,_.I);_.e=mP.prototype;_.e.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e.dataChanged=function(){for(var f=0;f<this.getOptionRenderers().length;f++)this.notifyPath("data.options."+f+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+f+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.e.updateSubmitButton=function(f){this.set("data.submitButton.buttonRenderer.isDisabled",!f)};
_.e.computeAlt=function(f){return _.ac(f)};
_.e.onDismissTap=function(){_.bW(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.oy().resolve(_.S7).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.e.getOptionRenderers=function(f){return(f=f||this.data)&&f.options?f.options.reduce(function(S,B){B.checkboxSurveyOptionRenderer&&S.push(B.checkboxSurveyOptionRenderer);return S},[]):[]};
_.e.onOptionChange=function(f){var S=this,B=!1;if(f.detail.checked)for(var G=this.getOptionRenderers().find(function(X){return X.value===f.detail.value}),g=this.getOptionRenderers(),b=0;b<g.length;b++){var z=g[b];
this.notifyPath("data.options."+b+".checkboxSurveyOptionRenderer.checked");z.checked&&((G==null?0:G.isExclusiveOption)?!z.isExclusiveOption:z.isExclusiveOption)?this.set("data.options."+b+".checkboxSurveyOptionRenderer.checked",!1):z.checked&&(B=!0)}else B=this.getOptionRenderers().some(function(X,w){S.notifyPath("data.options."+w+".checkboxSurveyOptionRenderer.checked");return X.checked});
this.updateSubmitButton(B)};
_.e.onSubmitTap=function(){var f=this.getOptionRenderers().filter(function(b){return b.checked});
if(f.length!==0){var S=f.map(function(b){return b.responseEndpoint});
f=[];for(var B=1;B<S.length;B++){var G=void 0,g=(G=_.H(S[B],_.IQ))==null?void 0:G.feedbackToken;g&&f.push(g)}S=[S[0]];f.length&&S.push({extra_feedback_tokens:f});_.RD(this.hostElement,S);_.bW(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);f=this.data&&this.data.submitActions||[];if(_.K("kevlar_command_handler_migration_killswitch"))_.Xh(this.hostElement,f,this.hostElement);else for(f=_.m(f),S=f.next();!S.done;S=f.next())this.ytComponentBehavior.resolveCommand(S.value)}};
mP.prototype.onOptionChange=mP.prototype.onOptionChange;mP.prototype.dataChanged=mP.prototype.dataChanged;_.N([_.r(_.Px.YtEventForwardingBehavior),_.Z("design:type",Object)],mP.prototype,"ytEventForwardingBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],mP.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],mP.prototype,"ytComponentBehavior",void 0);
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],mP.prototype,"ytRendererBehavior",void 0);_.N([_.r(yiY),_.Z("design:type",Object)],mP.prototype,"ytdHatsSurveyBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],mP.prototype,"data",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mP.prototype,"dataChanged",null);
_.N([_.Vg("ytd-checkbox-survey-option-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],mP.prototype,"onOptionChange",null);_.N([_.C({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],mP);
_.p(mP,"ytd-checkbox-survey-renderer",function(){if(j_2!==void 0)return j_2;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return j_2=f},{mode:1});var OfY;var xjM;var zm=function(){return _.I.apply(this,arguments)||this};
_.q(zm,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],zm.prototype,"ytRendererBehavior",void 0);_.N([_.r(aCM),_.Z("design:type",Object)],zm.prototype,"ytdDismissalReasonBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],zm.prototype,"data",void 0);_.N([_.C({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],zm);
_.p(zm,"ytd-dismissal-reason-text-renderer",function(){if(xjM!==void 0)return xjM;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return xjM=f},{mode:1});var Equ;var R9=function(){return _.I.apply(this,arguments)||this};
_.q(R9,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],R9.prototype,"ytRendererBehavior",void 0);_.N([_.r(aCM),_.Z("design:type",Object)],R9.prototype,"ytdDismissalReasonBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],R9.prototype,"data",void 0);_.N([_.C({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],R9);
_.p(R9,"ytd-dismissal-reason-video-renderer",function(){if(Equ!==void 0)return Equ;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Equ=f},{mode:1});var Xk=function(){var f=_.I.apply(this,arguments)||this;f.darkerDarkTheme=_.K("web_darker_dark_theme");return f};
_.q(Xk,_.I);_.e=Xk.prototype;_.e.created=function(){this.selectedFeedbackTokens=new MZ};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.e.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.e.onDismissalReasonSelected=function(f,S){_.ew(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(S);this.hasReasonsSelected=!0};
_.e.onDismissalReasonDeselected=function(f,S){_.ew(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(S);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.e.onCancelTap=function(){_.bW(this.hostElement,"yt-close-popup-action")};
_.e.onSubmitTap=function(){var f=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(f={feedback_tokens:f},_.oy().resolve(_.S7).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},f,{element:this.hostElement})}));_.bW(this.hostElement,"yt-close-popup-action")};
Xk.prototype.onDismissalReasonDeselected=Xk.prototype.onDismissalReasonDeselected;Xk.prototype.onDismissalReasonSelected=Xk.prototype.onDismissalReasonSelected;Xk.prototype.dataChanged=Xk.prototype.dataChanged;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Xk.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Xk.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Xk.prototype,"data",void 0);
_.N([_.n(),_.Z("design:type",Boolean)],Xk.prototype,"hasReasonsSelected",void 0);_.N([_.n(),_.Z("design:type",MZ)],Xk.prototype,"selectedFeedbackTokens",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Xk.prototype,"darkerDarkTheme",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Xk.prototype,"dataChanged",null);
_.N([_.Vg("yt-dismissal-reason-selected"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,String]),_.Z("design:returntype")],Xk.prototype,"onDismissalReasonSelected",null);_.N([_.Vg("yt-dismissal-reason-deselected"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,String]),_.Z("design:returntype")],Xk.prototype,"onDismissalReasonDeselected",null);_.N([_.C({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],Xk);
_.p(Xk,"ytd-dismissal-follow-up-renderer",function(){if(OfY!==void 0)return OfY;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return OfY=f},{mode:1});var LXe;var ws=function(){return _.I.apply(this,arguments)||this};
_.q(ws,_.I);_.e=ws.prototype;_.e.onCheckedChange=function(){this.multiselect||_.ew(this.hostElement,"yt-feedback-single-select-changed");_.m9(this.hostElement).querySelector("#freeform").focus();_.ew(this.hostElement,"yt-refit")};
_.e.showTextBox=function(f,S){return f&&S};
_.e.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))};
_.e.updateDataCheckedFromBinding=function(f){this.set("data.checked",f.detail.value)};
_.e.updateDataResultTextFromBinding=function(f){this.set("data.resultText",f.detail.value)};
ws.prototype.dataChanged=ws.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],ws.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],ws.prototype,"data",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],ws.prototype,"multiselect",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ws.prototype,"dataChanged",null);
_.N([_.C({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],ws);
_.p(ws,"ytd-feedback-option-renderer",function(){if(LXe!==void 0)return LXe;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return LXe=f},{mode:1});var k5O;var hb=function(){return _.I.apply(this,arguments)||this};
_.q(hb,_.I);hb.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
hb.prototype.onSingleSelectCheckedChanged=function(f){f=_.lt(f);for(var S=0;S<this.data.options.length;S++)if(f.data!==_.H(this.data.options[S],txM)){var B="data.options."+S+".feedbackOptionRenderer.checked";this.notifyPath(B);this.set(B,!1)}};
hb.prototype.onSingleSelectCheckedChanged=hb.prototype.onSingleSelectCheckedChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],hb.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],hb.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],hb.prototype,"data",void 0);
_.N([_.Vg("yt-feedback-single-select-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],hb.prototype,"onSingleSelectCheckedChanged",null);_.N([_.C({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],hb);
_.p(hb,"ytd-feedback-question-renderer",function(){if(k5O!==void 0)return k5O;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return k5O=f},{mode:1});var nqB;var Tm=function(){return _.I.apply(this,arguments)||this};
_.q(Tm,_.I);Tm.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
Tm.prototype.getSelectedFeedbackResults=function(){for(var f={},S=0;S<this.data.questions.length;S++)for(var B=_.H(this.data.questions[S],Zde),G=0;G<B.options.length;G++){var g=_.H(B.options[G],txM);g&&g.checked&&(f[g.optionKey]=g.resultText)}return f};
Tm.prototype.onKeyUp=function(){var f=this;_.Xd(_.xJ,function(){_.ew(f.hostElement,"yt-refit")});
_.xJ.start()};
Tm.prototype.submitSurvey=function(){var f=this.getSelectedFeedbackResults();Object.keys(f).length>0&&this.data.submitFeedbackEndpoint&&(f={survey_results:f,is_feedback_token_unencrypted:!0},_.oy().resolve(_.S7).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},f,{element:this.hostElement})}))};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Tm.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Tm.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Tm.prototype,"data",void 0);_.N([_.C({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],Tm);
_.p(Tm,"ytd-feedback-survey-renderer",function(){if(nqB!==void 0)return nqB;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return nqB=f},{mode:1});var s_$;var Dj$;var Fk=function(){return _.I.apply(this,arguments)||this};
_.q(Fk,_.I);Fk.prototype.computeAlt=function(f){return _.ac(f)};
Fk.prototype.submitResponse=function(){var f,S;(f=this.data)!=null&&f.feedbackToken&&((S=this.data)==null?void 0:S.nextStageIndex)!==void 0&&(_.mU(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.mU(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
Fk.prototype.onClick=function(){this.submitResponse()};
Fk.prototype.onClick=Fk.prototype.onClick;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Fk.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Fk.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Fk.prototype,"vertical",void 0);_.N([_.Vg("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Fk.prototype,"onClick",null);
_.N([_.C({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],Fk);
_.p(Fk,"ytd-single-select-answer-option-renderer",function(){if(Dj$!==void 0)return Dj$;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Dj$=f},{mode:1});var I3e;var V_=function(){var f=_.I.apply(this,arguments)||this;f.darkerDarkTheme=_.K("web_darker_dark_theme");f.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return f};
_.q(V_,_.I);V_.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
V_.prototype.dataChanged=function(){var f,S;this.vertical=((S=(f=this.data)==null?void 0:f.answerOrientation)!=null?S:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
V_.prototype.submitFeedback=function(f){var S;((S=this.data)==null?0:S.responseEndpoint)&&f&&_.RD(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[f]}])};
V_.prototype.dataChanged=V_.prototype.dataChanged;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],V_.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.Px.YtEventForwardingBehavior),_.Z("design:type",Object)],V_.prototype,"eventForwardingBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],V_.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],V_.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],V_.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],V_.prototype,"vertical",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],V_.prototype,"darkerDarkTheme",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],V_.prototype,"dataChanged",null);_.N([_.C({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],V_);
_.p(V_,"ytd-single-select-question-renderer",function(){if(I3e!==void 0)return I3e;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return I3e=f},{mode:1});var Jb=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return f};
_.q(Jb,_.I);_.e=Jb.prototype;_.e.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"}}}};
_.e.dataChanged=function(){this.jumpToStage(0)};
_.e.jumpToStage=function(f){var S,B;if((S=this.data)==null?0:(B=S.stages)==null?0:B[f])this.currentStage=this.data.stages[f],this.refitAfterRender()};
_.e.computeAlt=function(f){return _.ac(f)};
_.e.computeSimpleMessage=function(f){var S;return(S=_.H(f,y5Y))==null?void 0:S.messageText};
_.e.computeHideDismiss=function(f){var S;return(S=_.H(f,idY))==null?void 0:S.hideParentDismissButton};
_.e.onDismissTap=function(){_.bW(this.hostElement,"yt-close-popup-action");_.H(this.currentStage,y5Y)||this.data.dismissalEndpoint&&_.oy().resolve(_.S7).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.e.refitAfterRender=function(){var f=this;_.ui(this,function(){_.ew(f.hostElement,"yt-refit")})};
Jb.prototype.dataChanged=Jb.prototype.dataChanged;_.N([_.r(_.Px.YtEventForwardingBehavior),_.Z("design:type",Object)],Jb.prototype,"eventForwardingBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Jb.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Jb.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],Jb.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.r(yiY),_.Z("design:type",Object)],Jb.prototype,"ytdHatsSurveyBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Jb.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],Jb.prototype,"currentStage",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Jb.prototype,"dataChanged",null);_.N([_.C({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],Jb);
_.p(Jb,"ytd-multi-stage-survey-renderer",function(){if(s_$!==void 0)return s_$;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return s_$=f},{mode:1});var Uju;var PP=function(){return _.I.apply(this,arguments)||this};
_.q(PP,_.I);PP.prototype.computeAlt=function(f){return _.ac(f)};
PP.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.oy().resolve(_.S7).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.bW(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.IEB(!1)))};
PP.prototype.onTap=function(){this.vertical&&this.submitResponse()};
PP.prototype.onTap=PP.prototype.onTap;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],PP.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],PP.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],PP.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],PP.prototype,"vertical",void 0);
_.N([_.Vg("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],PP.prototype,"onTap",null);_.N([_.C({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],PP);
_.p(PP,"ytd-single-option-survey-option-renderer",function(){if(Uju!==void 0)return Uju;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Uju=f},{mode:1});var Crn;var vP=function(){return _.I.apply(this,arguments)||this};
_.q(vP,_.I);_.e=vP.prototype;_.e.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e.dataChanged=function(){var f,S;this.vertical=(((f=this.data)==null?void 0:(S=f.surveyOrientation)==null?void 0:S.type)||"HORIZONTAL")==="VERTICAL"};
_.e.computeAlt=function(f){return _.ac(f)};
_.e.onDismissTap=function(){_.bW(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.oy().resolve(_.S7).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.IEB(!1))};
vP.prototype.dataChanged=vP.prototype.dataChanged;_.N([_.r(_.Px.YtEventForwardingBehavior),_.Z("design:type",Object)],vP.prototype,"eventForwardingBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],vP.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],vP.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(yiY),_.Z("design:type",Object)],vP.prototype,"ytdHatsSurveyBehavior",void 0);
_.N([_.r(_.Ek),_.Z("design:type",Object)],vP.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],vP.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],vP.prototype,"vertical",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vP.prototype,"dataChanged",null);_.N([_.C({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],vP);
_.p(vP,"ytd-single-option-survey-renderer",function(){if(Crn!==void 0)return Crn;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return Crn=f},{mode:1});var p0n;var K7=function(){var f=_.I.apply(this,arguments)||this;f.darkerDarkTheme=_.K("web_darker_dark_theme");return f};
_.q(K7,_.I);K7.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
K7.prototype.onDismissTap=function(){_.bW(this.hostElement,"yt-close-popup-action")};
K7.prototype.onNavigate=function(){_.bW(this.hostElement,"yt-close-popup-action")};
K7.prototype.onNavigate=K7.prototype.onNavigate;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],K7.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Px.YtEventForwardingBehavior),_.Z("design:type",Object)],K7.prototype,"ytEventForwardingBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],K7.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],K7.prototype,"darkerDarkTheme",void 0);
_.N([_.Vg("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],K7.prototype,"onNavigate",null);_.N([_.C({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],K7);
_.p(K7,"ytd-survey-follow-up-renderer",function(){if(p0n!==void 0)return p0n;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return p0n=f},{mode:1});var Ago;var NEe;var MGu;var ds=function(){var f=_.I.apply(this,arguments)||this;f.polymer2="Element"in Polymer;return f};
_.q(ds,_.I);_.e=ds.prototype;_.e.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.e.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.e.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.e.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AW("minutes-changed",this.minutes))};
_.e.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AW("seconds-changed",this.seconds))};
_.e.updateMinutesFromBinding=function(f){this.minutes=f.detail.value};
_.e.updateSecondsFromBinding=function(f){this.seconds=f.detail.value};
ds.prototype.secondsChangedForBinding=ds.prototype.secondsChangedForBinding;ds.prototype.minutesChangedForBinding=ds.prototype.minutesChangedForBinding;ds.prototype.secondsChanged=ds.prototype.secondsChanged;_.N([_.n(),_.Z("design:type",String)],ds.prototype,"minutes",void 0);_.N([_.n(),_.Z("design:type",String)],ds.prototype,"seconds",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],ds.prototype,"polymer2",void 0);
_.N([_.vF("#seconds"),_.Z("design:type",Object)],ds.prototype,"secondsEl",void 0);_.N([_.JO("seconds"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ds.prototype,"secondsChanged",null);_.N([_.JO("minutes"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ds.prototype,"minutesChangedForBinding",null);
_.N([_.JO("seconds"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ds.prototype,"secondsChangedForBinding",null);_.N([_.nP({is:"yt-timestamp-input",disableElementRegistration:!0})],ds);
_.p(ds,"yt-timestamp-input",function(){if(MGu===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;NEe===void 0&&(NEe=document.createElement("template"));var G=NEe;B.call(S,G.content.cloneNode(!0),f.content.firstChild);MGu=f}f=MGu;return f},{mode:2});var iI=function(){return _.I.apply(this,arguments)||this};
_.q(iI,_.I);_.e=iI.prototype;_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$18196_scroller.dialogElement=this.hostElement.parentNode};
_.e.dataChanged=function(){var f=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.GG().getPlayerPromise().then(function(S){S=S.getCurrentTime();f.minutes=Math.floor(S/60).toString();f.seconds=(Math.floor(S)%60).toString()})};
_.e.onTapSubmit=function(f){f.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(f={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(f.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(f.minutes=this.minutes,f.seconds=this.seconds),_.oy().resolve(_.S7).resolveCommand(this.serviceEndpoint,{form:Object.assign({},f,{element:this.hostElement})}))};
_.e.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.e.onYtServiceRequestCompleted=function(f,S){S=S.actions;if(Array.isArray(S))for(var B=0,G=S.length;B<G;B++)_.H(S[B],_.jR)&&(f.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(S[B]))};
_.e.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.e.toggleSubmitButton=function(f){this.set("submitButton.isDisabled",!f)};
_.e.handleInput=function(){var f=this.issueType,S=this.affiliation,B=this.minutes,G=this.seconds;B=!this.showTimestamp||!!B&&!!G;this.toggleSubmitButton(!!this.descriptionText&&!!f&&!!S&&B)};
_.e.computeServiceEndpoint=function(f){return this.get("submitButton.buttonRenderer.serviceEndpoint",f)};
_.e.computeSubmitButton=function(f){(f=this.get("submitButton.buttonRenderer",f))&&(f=Object.assign({},f,{serviceEndpoint:void 0}));return f};
_.e.computeShowTimestamp=function(f){return!!f};
_.e.onValueChangedForIssueType=function(f){this.issueType=f.detail.value};
_.e.onValueChangedForAffiliation=function(f){this.affiliation=f.detail.value};
_.e.updateDescriptionTextFromBinding=function(f){this.descriptionText=f.detail.value};
_.e.updateFullNameTextFromBinding=function(f){this.fullNameText=f.detail.value};
_.e.updateMinutesFromBinding=function(f){this.minutes=f.detail.value};
_.e.updateSecondsFromBinding=function(f){this.seconds=f.detail.value};
iI.prototype.handleInput=iI.prototype.handleInput;iI.prototype.onYtServiceRequestError=iI.prototype.onYtServiceRequestError;iI.prototype.onYtServiceRequestCompleted=iI.prototype.onYtServiceRequestCompleted;iI.prototype.onYtServiceRequestSent=iI.prototype.onYtServiceRequestSent;iI.prototype.dataChanged=iI.prototype.dataChanged;_.N([_.r(_.JW.YtOpenPopupBehavior),_.Z("design:type",Object)],iI.prototype,"ytOpenPopupBehavior",void 0);
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],iI.prototype,"ytRendererBehavior",void 0);_.N([_.vF("#scroller"),_.Z("design:type",Object)],iI.prototype,"JSC$18196_scroller",void 0);_.N([_.vF("#description"),_.Z("design:type",HTMLInputElement)],iI.prototype,"description",void 0);_.N([_.vF("#full-name"),_.Z("design:type",Object)],iI.prototype,"fullName",void 0);_.N([_.n(),_.Z("design:type",Object)],iI.prototype,"data",void 0);
_.N([_.n({computed:"computeShowTimestamp(data.timestampLabel)"}),_.Z("design:type",Boolean)],iI.prototype,"showTimestamp",void 0);_.N([_.n({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.Z("design:type",Object)],iI.prototype,"serviceEndpoint",void 0);_.N([_.n({computed:"computeSubmitButton(data)"}),_.Z("design:type",Object)],iI.prototype,"submitButton",void 0);_.N([_.n(),_.Z("design:type",String)],iI.prototype,"descriptionText",void 0);
_.N([_.n(),_.Z("design:type",Number)],iI.prototype,"issueType",void 0);_.N([_.n(),_.Z("design:type",Number)],iI.prototype,"affiliation",void 0);_.N([_.n(),_.Z("design:type",String)],iI.prototype,"fullNameText",void 0);_.N([_.n(),_.Z("design:type",String)],iI.prototype,"minutes",void 0);_.N([_.n(),_.Z("design:type",String)],iI.prototype,"seconds",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],iI.prototype,"dataChanged",null);
_.N([_.Vg("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.N1]),_.Z("design:returntype")],iI.prototype,"onYtServiceRequestSent",null);_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.cw]),_.Z("design:returntype")],iI.prototype,"onYtServiceRequestCompleted",null);
_.N([_.Vg("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],iI.prototype,"onYtServiceRequestError",null);_.N([_.JO("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],iI.prototype,"handleInput",null);_.N([_.C({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],iI);
_.p(iI,"ytd-legal-report-details-form-renderer",function(){if(Ago!==void 0)return Ago;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return Ago=f},{mode:1});var Zfu;var HP=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return f};
_.q(HP,_.I);HP.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
HP.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var f=this.formRenderer.getForm();f&&this.data.submitEndpoint&&(_.oy().resolve(_.S7).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},f,{element:this.hostElement})}),_.bW(this.hostElement,"yt-close-popup-action"))}};
HP.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.bW(this.hostElement,"yt-close-popup-action"))};
HP.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
HP.prototype.onPopupClosed=HP.prototype.onPopupClosed;_.N([_.r(_.Px.YtEventForwardingBehavior),_.Z("design:type",Object)],HP.prototype,"ytEventForwardingBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],HP.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],HP.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],HP.prototype,"ytRendererBehavior",void 0);
_.N([_.vF("yt-form-renderer"),_.Z("design:type",Object)],HP.prototype,"formRenderer",void 0);_.N([_.n(),_.Z("design:type",Object)],HP.prototype,"data",void 0);_.N([_.Vg("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],HP.prototype,"onPopupClosed",null);_.N([_.C({is:"ytd-form-popup-content",disableElementRegistration:!0})],HP);
_.p(HP,"ytd-form-popup-content",function(){if(Zfu!==void 0)return Zfu;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return Zfu=f},{mode:1});var tGY;var qg=function(){return _.I.apply(this,arguments)||this};
_.q(qg,_.I);qg.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
qg.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
qg.prototype.onPopupOpened=function(){_.ew(this.hostElement,"yt-invalidate-popup-tabbables")};
qg.prototype.onYtServiceRequestCompleted=function(f,S){S.data&&S.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.ew(this.hostElement,"yt-invalidate-popup-tabbables"))};
qg.prototype.onYtServiceRequestCompleted=qg.prototype.onYtServiceRequestCompleted;qg.prototype.onPopupOpened=qg.prototype.onPopupOpened;_.N([_.r(_.Px.YtEventForwardingBehavior),_.Z("design:type",Object)],qg.prototype,"ytEventForwardingBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],qg.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],qg.prototype,"ytRendererBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],qg.prototype,"data",void 0);_.N([_.Vg("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qg.prototype,"onPopupOpened",null);_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.cw]),_.Z("design:returntype")],qg.prototype,"onYtServiceRequestCompleted",null);_.N([_.C({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],qg);
_.p(qg,"ytd-form-popup-renderer",function(){if(tGY!==void 0)return tGY;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return tGY=f},{mode:1});var uSY;var $I=function(){var f=_.I.apply(this,arguments)||this;f.isLoading=!1;return f};
_.q($I,_.I);_.e=$I.prototype;_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");gJZ(this.hostElement)};
_.e.onYtServiceRequestSent=function(){this.isLoading=!0};
_.e.onYtServiceRequestCompleted=function(){_.bW(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.e.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.Xh(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.e.closePopupHandler=function(){this.fireOnCloseActions()};
_.e.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var f=this.get("data.headerImage.thumbnails");f&&(f=_.bF(f,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+f+")")}};
_.e.onYtNavigate=function(f){(f=_.lt(f))&&f.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
$I.prototype.onYtNavigate=$I.prototype.onYtNavigate;$I.prototype.onHeaderImageChanged=$I.prototype.onHeaderImageChanged;$I.prototype.closePopupHandler=$I.prototype.closePopupHandler;$I.prototype.onYtServiceRequestCompleted=$I.prototype.onYtServiceRequestCompleted;$I.prototype.onYtServiceRequestSent=$I.prototype.onYtServiceRequestSent;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],$I.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.Px.YtEventForwardingBehavior),_.Z("design:type",Object)],$I.prototype,"ytEventForwardingBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],$I.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],$I.prototype,"isLoading",void 0);_.N([_.vF("#header"),_.Z("design:type",HTMLDivElement)],$I.prototype,"header",void 0);_.N([_.vF("#confirm-button"),_.Z("design:type",_.Hl)],$I.prototype,"confirmButton",void 0);
_.N([_.Vg("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],$I.prototype,"onYtServiceRequestSent",null);_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],$I.prototype,"onYtServiceRequestCompleted",null);
_.N([_.Vg("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],$I.prototype,"closePopupHandler",null);_.N([_.JO("data.headerImage"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$I.prototype,"onHeaderImageChanged",null);_.N([_.Vg("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],$I.prototype,"onYtNavigate",null);
_.N([_.C({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],$I);
_.p($I,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(uSY!==void 0)return uSY;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return uSY=f},{mode:1});var a3u;var Q_=function(){var f=_.I.apply(this,arguments)||this;f.isLoading=!1;return f};
_.q(Q_,_.I);_.e=Q_.prototype;_.e.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"}}}};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);gJZ(this.hostElement)};
_.e.onYtServiceRequestCompleted=function(){_.bW(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.e.onYtServiceRequestError=function(f){_.g5(this.hostElement,f.detail.error.message)};
_.e.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.e.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.bW(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.e.onDataChanged=function(){this.isLoading=!1;var f=this.get("data.headerImage.thumbnails");f&&(f=_.bF(f,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+f+")");f=_.xc();var S=_.Of(),B=this.get("data.trackingParams");B&&S&&f&&_.Af(f,S,_.Ye(B))};
_.y3.Object.defineProperties(Q_.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
Q_.prototype.onDataChanged=Q_.prototype.onDataChanged;Q_.prototype.onDomChange=Q_.prototype.onDomChange;Q_.prototype.onYtServiceRequestError=Q_.prototype.onYtServiceRequestError;Q_.prototype.onYtServiceRequestCompleted=Q_.prototype.onYtServiceRequestCompleted;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Q_.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Q_.prototype,"ytRendererBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],Q_.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Q_.prototype,"isLoading",void 0);_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Q_.prototype,"hasDescription",null);_.N([_.vF("tp-yt-paper-dialog-scrollable"),_.Z("design:type",Object)],Q_.prototype,"scrollable",void 0);_.N([_.vF("#header"),_.Z("design:type",HTMLElement)],Q_.prototype,"header",void 0);
_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Q_.prototype,"onYtServiceRequestCompleted",null);_.N([_.Vg("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Q_.prototype,"onYtServiceRequestError",null);
_.N([_.Vg("dom-change"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Q_.prototype,"onDomChange",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Q_.prototype,"onDataChanged",null);_.N([_.C({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],Q_);
_.p(Q_,"ytd-gaming-account-link-setting-renderer",function(){if(a3u!==void 0)return a3u;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return a3u=f},{mode:1});var ygu;var WXu;var YI=function(){var f=_.I.apply(this,arguments)||this;f.isHeader=!1;f.getEndpointForm=function(){return SAZ(f.data)};
return f};
_.q(YI,_.I);_.e=YI.prototype;_.e.triggerHintActions=function(){var f=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var S=_.mU(f.hostElement,"yt-get-opened-popups-action");!(S&&S.length===1?S[0]:[]).some(function(B){B=B.openPopupAction.popupType;return B==="SURVEY"||B==="MEALBAR"||B==="HINT"})&&f.data.hintActions&&f.guideOpened&&(_.Xh(f.hostElement,f.data.hintActions,f.hostElement),f.data.hintActions=void 0)})};
_.e.getBadgeIconType=function(f){return f&&f.liveBroadcasting?"live":null};
_.e.onDown=function(){this.interaction.triggerDown()};
_.e.onUp=function(){this.interaction.triggerUp()};
_.e.onTap=function(f){if(this.data.serviceEndpoint){var S;_.K("shorts_controller_retrieve_seedless_sequence_v2")&&((S=_.H(this.data.serviceEndpoint,_.QW))==null?void 0:S.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):ore(this.data.serviceEndpoint,this);f.preventDefault()}else this.data.navigationEndpoint&&!_.lF(_.ct(f),this.hostElement,["A".toString()])&&_.ew(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.e.computeActive=function(f,S){if(!f)return!1;var B=f.navigationEndpoint;f=f.serviceEndpoint;if(!B&&!f||!S)return!1;if(B){f=(f=_.Pt(S))&&["subscriptions","filteredsubscriptions"].includes(f);if(_.H(B,_.d3)&&_.H(S,_.d3)&&!f){var G=_.H(B,_.d3).browseId;S=_.H(S,_.d3).browseId;return G!==void 0&&S!==void 0&&(G===S||G==="VLWL"&&S==="FEwatch_later"||G==="FEwatch_later"&&S==="VLWL")}var g;B=(g=_.H(B.commandMetadata,_.oD))==null?void 0:g.url;S=(G=_.H(S.commandMetadata,_.oD))==null?void 0:G.url;return!(!B||
!S||B!==S&&B!==_.Xl(S))}return this.isActiveShortsTab(f,S)};
_.e.isActiveShortsTab=function(f,S){S=!!_.H(S,_.QW)||!!_.H(S,_.s2);return(!!_.H(f,_.QW)||!!_.H(f,_.s2))&&S};
_.e.computeIsPrimary=function(f){return!!f};
_.y3.Object.defineProperties(YI.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 f=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&f)return f}}});
YI.prototype.onTap=YI.prototype.onTap;YI.prototype.onUp=YI.prototype.onUp;YI.prototype.onDown=YI.prototype.onDown;YI.prototype.triggerHintActions=YI.prototype.triggerHintActions;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],YI.prototype,"componentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],YI.prototype,"rendererBehavior",void 0);_.N([_.r(_.Sy.YtTaskEmitterBehavior),_.Z("design:type",Object)],YI.prototype,"taskEmitterBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],YI.prototype,"activeEndpoint",void 0);_.N([_.n(),_.Z("design:type",Object)],YI.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Boolean)],YI.prototype,"guideOpened",void 0);_.N([_.n(),_.Z("design:type",String)],YI.prototype,"type",void 0);_.N([_.vF("yt-interaction"),_.Z("design:type",Object)],YI.prototype,"interaction",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],YI.prototype,"isHeader",void 0);
_.N([_.n({reflectToAttribute:!0}),_.k("data","activeEndpoint"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],YI.prototype,"active",null);_.N([_.n({reflectToAttribute:!0}),_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],YI.prototype,"isPrimary",null);_.N([_.n({reflectToAttribute:!0}),_.k("data.count","data.presentationStyle","data.badges.*"),_.Z("design:type",String),_.Z("design:paramtypes",[])],YI.prototype,"lineEndStyle",null);
_.N([_.k("lineEndStyle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],YI.prototype,"ariaLabel",null);_.N([_.JO("data.hintActions","guideOpened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],YI.prototype,"triggerHintActions",null);_.N([_.Vg("down"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],YI.prototype,"onDown",null);
_.N([_.Vg("up"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],YI.prototype,"onUp",null);_.N([_.Vg("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],YI.prototype,"onTap",null);_.N([_.C({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],YI);
_.p(YI,"ytd-guide-entry-renderer",function(){if(WXu!==void 0)return WXu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return WXu=f},{mode:1});var rs=function(){var f=_.I.apply(this,arguments)||this;f.userToggled=!1;return f};
_.q(rs,_.I);_.e=rs.prototype;_.e.getItemsPath=function(){return"data.expandableItems"};
_.e.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.e.onExpanderItemTapped=function(f){var S=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.K("kevlar_guide_expandable_items_killswitch")&&_.ui(this,function(){_.uP(S.expandableItems)});
f.preventDefault()};
_.e.onCollapserItemTapped=function(f){var S=this;this._setExpanded(!1);this.userToggled=!0;f.preventDefault();this.expandableItems&&!_.K("kevlar_guide_collapsible_items_killswitch")&&_.ui(this,function(){_.ty(S.hostElement)})};
_.e.observeActiveEndpoint=function(){for(var f=this.activeEndpoint,S=this.data,B=this.expandableItems.children,G=0,g=B.length;G<g;G++)B[G].activeEndpoint=f;S&&S.autoExpandCommand&&f&&!this.userToggled&&(B=this.data.autoExpandCommand,S=!(!_.H(B,_.d3)||!_.H(f,_.d3)||_.H(B,_.d3).browseId!==_.H(f,_.d3).browseId),f=this.get("commandMetadata.webCommandMetadata.url",f),B=this.get("commandMetadata.webCommandMetadata.url",B),S=S||!!(f&&B&&f.includes(B)),this._setExpanded(S),S&&this.ytLazyListBehavior.fillRemainingListItems())};
rs.prototype.observeActiveEndpoint=rs.prototype.observeActiveEndpoint;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],rs.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],rs.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.ff.YtLazyListBehavior),_.Z("design:type",Object)],rs.prototype,"ytLazyListBehavior",void 0);_.N([_.vF("#expandable-items"),_.Z("design:type",HTMLElement)],rs.prototype,"expandableItems",void 0);
_.N([_.n(),_.Z("design:type",Object)],rs.prototype,"data",void 0);_.N([_.n({readOnly:!0,reflectToAttribute:!0}),_.Z("design:type",Boolean)],rs.prototype,"expanded",void 0);_.N([_.n({value:0}),_.Z("design:type",Number)],rs.prototype,"initialCount",void 0);_.N([_.n(),_.Z("design:type",Object)],rs.prototype,"activeEndpoint",void 0);_.N([_.JO("data","activeEndpoint","canShowMore"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],rs.prototype,"observeActiveEndpoint",null);
_.N([_.C({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],rs);
_.p(rs,"ytd-guide-collapsible-entry-renderer",function(){if(ygu!==void 0)return ygu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return ygu=f},{mode:_.X_("kevlar_poly_si_batch_j079")?1:2});var cgu;var l3$;var jM=function(){var f=_.I.apply(this,arguments)||this;f.allVideosCount=0;f.renderGuideEntry=!1;return f};
_.q(jM,_.I);jM.prototype.observeRenderEntry=function(){var f;this.renderGuideEntry=!((f=this.data)==null||!f.alwaysShow)||!!this.allVideosCount};
jM.prototype.observeRenderEntry=jM.prototype.observeRenderEntry;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],jM.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],jM.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],jM.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],jM.prototype,"activeEndpoint",void 0);_.N([_.n({selector:_.hGV}),_.Z("design:type",Object)],jM.prototype,"allVideosCount",void 0);
_.N([_.n(),_.Z("design:type",Object)],jM.prototype,"renderGuideEntry",void 0);_.N([_.HF("allVideosCount","data.alwaysShow"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],jM.prototype,"observeRenderEntry",null);_.N([_.C({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],jM);
_.p(jM,"ytd-guide-downloads-entry-renderer",function(){if(l3$===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);l3$=f}f=l3$;return f},{mode:1});var O_=function(){var f=_.I.apply(this,arguments)||this;f.youtab=_.K("web_enable_youtab");f.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return f};
_.q(O_,_.I);_.e=O_.prototype;_.e.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]]"}}}}}};
_.e.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var f=this.sectionItems.children,S=0,B=f.length;S<B;S++)f[S].activeEndpoint=this.activeEndpoint}};
_.e.handleAddToGuideSectionAction=function(f){var S=_.H(f,wuz);if(S&&this.data&&(f=S.items,S=S.handlerData,f&&S&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(S)>-1)){S=0;for(var B=f.length;S<B;S++)f[S].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,f[S])}};
_.e.handleRemoveFromGuideSectionAction=function(f){var S=_.H(f,h6z);S&&this.data&&(f=S.guideEntryId,S=S.handlerData,f&&S&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(S)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(f,this.data.sectionItems),this.removeFromCollapsedSection(f,this.data.sectionItems)))};
_.e.removeFromExpandedSection=function(f,S){f=this.getEntryIndexMatchingId(f,S);f!==-1&&this.splice("data.sectionItems",f,1)};
_.e.removeFromCollapsedSection=function(f,S){var B=S.findIndex(function(G){return!!_.H(G,jVZ)});
B&&B!==-1&&S[B]&&_.H(S[B],jVZ)&&(S=_.H(S[B],jVZ).expandableItems)&&(f=this.getEntryIndexMatchingId(f,S),f!==-1&&this.splice("data.sectionItems."+B+".guideCollapsibleEntryRenderer.expandableItems",f,1))};
_.e.getEntryIndexMatchingId=function(f,S){var B=this;return S.findIndex(function(G){return B.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",G)===f})};
O_.prototype.activeEndpointChanged=O_.prototype.activeEndpointChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],O_.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],O_.prototype,"actionHandlerBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],O_.prototype,"ytRendererstamperBehavior",void 0);_.N([_.vF("#section-items"),_.Z("design:type",HTMLDivElement)],O_.prototype,"sectionItems",void 0);
_.N([_.vF("#header-entry"),_.Z("design:type",Object)],O_.prototype,"headerEntry",void 0);_.N([_.n(),_.Z("design:type",Object)],O_.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],O_.prototype,"activeEndpoint",void 0);_.N([_.n(),_.Z("design:type",Object)],O_.prototype,"youtab",void 0);_.N([_.JO("activeEndpoint"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],O_.prototype,"activeEndpointChanged",null);
_.N([_.C({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],O_);
_.p(O_,"ytd-guide-collapsible-section-entry-renderer",function(){if(cgu===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);cgu=f}f=cgu;return f},{mode:1});var fy2;var oaY;var xI=function(){var f=_.I.apply(this,arguments)||this;f.modernTypography=_.K("web_modern_typography");f.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 f};
_.q(xI,_.I);_.e=xI.prototype;
_.e.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}}}}};
_.e.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var f=_.mU(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);f&&f.length===1&&f[0]&&_.mU(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.e.handleResetChannelUnreadCountCommand=function(f){var S;(f=(S=_.H(f,Fpu))==null?void 0:S.channelId)&&this.data&&this.data.items&&(S=this.getPathToEntryMatchingId(f))&&(this.set(S+".guideEntryRenderer.count",0),this.set(S+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.e.handleResetSubscriptionsUnreadDotCommand=function(f){var S,B=(S=_.H(f,Vxn))==null?void 0:S.targetId,G;B&&(G=this.data)!=null&&G.items&&(f=this.data.items.findIndex(function(g){var b;return((b=g.guideEntryRenderer)==null?void 0:b.targetId)===B}),f<0||this.set("data.items."+f+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.e.getPathToEntryMatchingId=function(f){if(this.data&&this.data.items){var S=this.getEntryIndexMatchingId(f,this.data.items);if(S>-1)return"data.items."+S;for(var B=0;B<this.data.items.length;B++)if(S=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[B]))if(S=this.getEntryIndexMatchingId(f,S),S>-1)return"data.items."+B+".guideCollapsibleEntryRenderer.expandableItems."+S}};
_.e.handleAddToGuideSectionAction=function(f){var S=this;if(_.H(f,wuz)){var B=_.H(f,wuz).items;f=_.H(f,wuz).handlerData;var G,g;B&&f&&((G=this.data)==null?void 0:(g=G.handlerDatas)==null?void 0:g.indexOf(f))>-1&&(B=B.filter(function(b){return(b=S.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",b))&&!S.isGuideItemPresent(b)}),this.unshift.apply(this,["data.items"].concat(_.$d(B))))}};
_.e.isGuideItemPresent=function(f){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(f,this.data.items)!==-1)return!0;var S=this.data.items.find(function(B){return!!B.guideCollapsibleEntryRenderer});
if((S==null?0:S.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(f,S.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.e.getEntryIndexMatchingId=function(f,S){var B=this;return S.findIndex(function(G){return B.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",G)===f})};
_.e.handleRemoveFromGuideSectionAction=function(f){if(_.H(f,h6z)){var S=_.H(f,h6z).guideEntryId;f=_.H(f,h6z).handlerData;var B,G;S&&f&&((B=this.data)==null?void 0:(G=B.handlerDatas)==null?void 0:G.indexOf(f))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(S,this.data.items),this.removeFromCollapsedSection(S,this.data.items))}};
_.e.removeFromExpandedSection=function(f,S){f=this.getEntryIndexMatchingId(f,S);f!==-1&&this.splice("data.items",f,1)};
_.e.removeFromCollapsedSection=function(f,S){var B=S.findIndex(function(G){return!!G.guideCollapsibleEntryRenderer});
B!==-1&&(S=S[B].guideCollapsibleEntryRenderer.expandableItems)&&(f=this.getEntryIndexMatchingId(f,S),f!==-1&&this.splice("data.items."+B+".guideCollapsibleEntryRenderer.expandableItems",f,1))};
_.e.activeEndpointChanged=function(){for(var f=_.m9(this.hostElement).querySelector("#items").children,S=0,B=f.length;S<B;S++)f[S].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.e.guideOpenedChanged=function(){for(var f=_.m9(this.hostElement).querySelector("#items").children,S=0,B=f.length;S<B;S++)f[S].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
xI.prototype.guideOpenedChanged=xI.prototype.guideOpenedChanged;xI.prototype.activeEndpointChanged=xI.prototype.activeEndpointChanged;xI.prototype.persistentGuideChanged=xI.prototype.persistentGuideChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],xI.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],xI.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],xI.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.ff.YtLazyListBehavior),_.Z("design:type",Object)],xI.prototype,"ytLazyListBehavior",void 0);_.N([_.r(_.Iu.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],xI.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],xI.prototype,"ytComponentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],xI.prototype,"data",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],xI.prototype,"modernTypography",void 0);_.N([_.n(),_.Z("design:type",String)],xI.prototype,"type",void 0);_.N([_.n({value:20}),_.Z("design:type",Number)],xI.prototype,"initialCount",void 0);_.N([_.n({value:10}),_.Z("design:type",Number)],xI.prototype,"targetFramerate",void 0);_.N([_.n({value:!0}),_.Z("design:type",Boolean)],xI.prototype,"autoFill",void 0);_.N([_.n({value:50}),_.Z("design:type",Number)],xI.prototype,"renderDelay",void 0);
_.N([_.JO("guidePersistentAndVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xI.prototype,"persistentGuideChanged",null);_.N([_.HF("activeEndpoint"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xI.prototype,"activeEndpointChanged",null);_.N([_.HF("guideOpened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xI.prototype,"guideOpenedChanged",null);
_.N([_.C({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],xI);
_.p(xI,"ytd-guide-section-renderer",function(){if(oaY!==void 0)return oaY;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return oaY=f},{mode:_.X_("kevlar_poly_si_batch_j073")?1:2});var Sru;var E_=function(){return _.I.apply(this,arguments)||this};
_.q(E_,_.I);_.y3.Object.defineProperties(E_.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],E_.prototype,"rendererBehaviors",void 0);_.N([_.n(),_.Z("design:type",Object)],E_.prototype,"data",void 0);_.N([_.n(),_.k("data.signInButton.buttonRenderer.style"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],E_.prototype,"alignByText",null);_.N([_.C({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],E_);
_.p(E_,"ytd-guide-signin-promo-renderer",function(){if(Sru===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);Sru=f}f=Sru;return f},{mode:1});var L7=function(){var f=_.I.apply(this,arguments)||this;f.showFooter=!1;return f};
_.q(L7,_.I);L7.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}}}}};
L7.prototype.attached=function(){var f=this,S;return _.R(function(B){if(B.nextAddress==1){S=_.oy().resolve(_.fN(_.DV));if(!S)return B.jumpTo(0);S.setGuideData(f.hostElement);return _.h(B,0,3)}f.ytLazyListBehavior.initialCount=2;return B.return()})};
L7.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
L7.prototype.dataChanged=L7.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],L7.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],L7.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.ff.YtLazyListBehavior),_.Z("design:type",Object)],L7.prototype,"ytLazyListBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],L7.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],L7.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],L7.prototype,"showFooter",void 0);_.N([_.n({value:!0}),_.Z("design:type",Boolean)],L7.prototype,"autoFill",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],L7.prototype,"dataChanged",null);_.N([_.C({is:"ytd-guide-renderer",disableElementRegistration:!0})],L7);
_.p(L7,"ytd-guide-renderer",function(){if(fy2!==void 0)return fy2;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return fy2=f},{mode:_.X_("kevlar_poly_si_batch_j073")?1:2});var Bn$;var kI=function(){var f=_.I.apply(this,arguments)||this;f.systemIcons=_.K("kevlar_system_icons");f.frostedGlass=_.K("web_frosted_glass");f.getEndpointForm=function(){return SAZ(f.data)};
return f};
_.q(kI,_.I);_.e=kI.prototype;_.e.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.e.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.ac(this.data.formattedTitle))};
_.e.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.e.onDown=function(){this.interaction.triggerDown()};
_.e.onUp=function(){this.interaction.triggerUp()};
_.e.onTap=function(f){if(this.data.serviceEndpoint){var S;_.K("shorts_controller_retrieve_seedless_sequence_v2")&&((S=_.H(this.data.serviceEndpoint,_.QW))==null?void 0:S.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):ore(this.data.serviceEndpoint,this);f.preventDefault()}else{var B;((B=this.data)==null?0:B.navigationEndpoint)&&!_.lF(_.ct(f),this.hostElement,["A".toString()])&&_.ew(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.e.computeActive=function(f,S){if(!f)return!1;var B=f.navigationEndpoint;f=f.serviceEndpoint;if(!B&&!f||!S)return!1;if(B){f=_.H(B,_.d3);var G=_.H(S,_.d3);if(f&&G)return f.browseId===G.browseId&&f.params===G.params;var g;B=(g=_.H(B.commandMetadata,_.oD))==null?void 0:g.url;var b;S=(b=_.H(S.commandMetadata,_.oD))==null?void 0:b.url;return!(!B||!S||B!==S&&B!==_.Xl(S))}return this.isActiveShortsTab(f,S)};
_.e.isActiveShortsTab=function(f,S){S=!!_.H(S,_.QW)||!!_.H(S,_.s2);return(!!_.H(f,_.QW)||!!_.H(f,_.s2))&&S};
_.e.computeTitle=function(f,S){return S?"":_.ac(f)};
_.y3.Object.defineProperties(kI.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
kI.prototype.onTap=kI.prototype.onTap;kI.prototype.onUp=kI.prototype.onUp;kI.prototype.onDown=kI.prototype.onDown;kI.prototype.onActiveStateChange=kI.prototype.onActiveStateChange;kI.prototype.dataChanged=kI.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],kI.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],kI.prototype,"ytComponentBehavior",void 0);
_.N([_.r(_.nd),_.Z("design:type",Object)],kI.prototype,"ironButtonState",void 0);_.N([_.n(),_.Z("design:type",Object)],kI.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],kI.prototype,"activeEndpoint",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],kI.prototype,"noLabels",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.Z("design:type",Boolean)],kI.prototype,"isActive",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],kI.prototype,"systemIcons",void 0);_.N([_.vF("yt-interaction"),_.Z("design:type",Object)],kI.prototype,"interaction",void 0);_.N([_.k("isActive"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],kI.prototype,"ariaSelected",null);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],kI.prototype,"frostedGlass",void 0);
_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],kI.prototype,"dataChanged",null);_.N([_.JO("isActive"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],kI.prototype,"onActiveStateChange",null);_.N([_.Vg("down"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],kI.prototype,"onDown",null);
_.N([_.Vg("up"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],kI.prototype,"onUp",null);_.N([_.Vg("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],kI.prototype,"onTap",null);_.N([_.C({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],kI);
_.p(kI,"ytd-mini-guide-entry-renderer",function(){if(Bn$!==void 0)return Bn$;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Bn$=f},{mode:_.X_("kevlar_poly_si_batch_j063")?1:2});var G0M;var n7=function(){var f=_.I.apply(this,arguments)||this;f.allVideosCount=0;f.noLabels=_.K("kevlar_mini_guide_no_labels");f.frostedGlass=_.K("web_frosted_glass");return f};
_.q(n7,_.I);_.e=n7.prototype;_.e.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.e.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.e.visibleChanged=function(){if(this.visible&&!this.data){var f=_.oy().resolve(_.fN(_.DV));f&&f.setGuideData(this.hostElement)}};
_.e.dataChanged=function(){var f=[],S;if((S=this.data)!=null&&S.items){S=_.m(this.data.items);for(var B=S.next();!B.done;B=S.next()){B=B.value;var G=void 0;if((G=B.guideSectionRenderer)==null?0:G.items)for(G=void 0,B=_.m((G=B.guideSectionRenderer)==null?void 0:G.items),G=B.next();!G.done;G=B.next())if(G=G.value,G.guideEntryRenderer)G=G.guideEntryRenderer,G.isPrimary&&f.push({guideEntryRenderer:G});else if(G.guideCollapsibleSectionEntryRenderer){var g=void 0;((g=_.H(G.guideCollapsibleSectionEntryRenderer.headerEntry,
tz))==null?0:g.isPrimary)&&f.push({guideEntryRenderer:_.H(G.guideCollapsibleSectionEntryRenderer.headerEntry,tz)});if(G=G.guideCollapsibleSectionEntryRenderer.sectionItems)for(G=_.m(G),g=G.next();!g.done;g=G.next()){var b=g.value;g=_.H(b,OdZ);var z=void 0;((z=_.H(b,tz))==null?0:z.isPrimary)?f.push({guideEntryRenderer:_.H(b,tz)}):g&&(b=void 0,_.H((b=g)==null?void 0:b.entryRenderer,tz)&&(g.alwaysShow||this.allVideosCount)&&f.push({guideEntryRenderer:_.H(g.entryRenderer,tz)}))}}}}this.miniGuideItems=
f};
_.e.activeEndpointChanged=function(){for(var f=this.items.children,S=0;S<f.length;S++)f[S].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
n7.prototype.activeEndpointChanged=n7.prototype.activeEndpointChanged;n7.prototype.dataChanged=n7.prototype.dataChanged;n7.prototype.visibleChanged=n7.prototype.visibleChanged;_.N([_.r(_.Ek),_.Z("design:type",Object)],n7.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],n7.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],n7.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.r(_.Iu.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],n7.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],n7.prototype,"ytComponentBehavior",void 0);_.N([_.vF("#items"),_.Z("design:type",Object)],n7.prototype,"items",void 0);_.N([_.n(),_.Z("design:type",Object)],n7.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Boolean)],n7.prototype,"visible",void 0);
_.N([_.n(),_.Z("design:type",Object)],n7.prototype,"miniGuideItems",void 0);_.N([_.n({selector:_.hGV}),_.Z("design:type",Object)],n7.prototype,"allVideosCount",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],n7.prototype,"noLabels",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],n7.prototype,"frostedGlass",void 0);_.N([_.HF("visible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],n7.prototype,"visibleChanged",null);
_.N([_.HF("data","allVideosCount"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],n7.prototype,"dataChanged",null);_.N([_.HF("activeEndpoint"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],n7.prototype,"activeEndpointChanged",null);_.N([_.C({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],n7);
_.p(n7,"ytd-mini-guide-renderer",function(){if(G0M===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);G0M=f}f=G0M;return f},{mode:1});var ga$;var eE2=/^[\x00-\x7F]+$/,s_=function(){var f=_.I.apply(this,arguments)||this;f.darkerDarkTheme=_.K("web_darker_dark_theme");return f};
_.q(s_,_.I);_.y3.Object.defineProperties(s_.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var f,S=_.ac((f=this.data)==null?void 0:f.handle);if(S)return _.uC("@"+S)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var f=_.ac(this.displayHandle),S,B=_.ac((S=this.data)==null?void 0:S.handleUrl);if(f&&B)return _.uC(B+f)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var f=_.ac(this.displayHandle);if(f&&!eE2.test(f)){var S;return(S=this.data)==null?void 0:S.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var f=_.ac(this.displayHandleUrl),S,B=_.ac((S=this.data)==null?void 0:S.urlInfoText);if(f&&B)return _.uC(B+" "+f)}}});
_.N([_.n(),_.Z("design:type",Object)],s_.prototype,"data",void 0);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],s_.prototype,"displayHandle",null);_.N([_.k("displayHandle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],s_.prototype,"displayHandleUrl",null);_.N([_.k("displayHandle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],s_.prototype,"warningText",null);
_.N([_.k("displayHandleUrl"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],s_.prototype,"urlInfoTextWithUrl",null);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],s_.prototype,"darkerDarkTheme",void 0);_.N([_.C({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],s_);
_.p(s_,"ytd-handles-claiming-confirm-dialog-content",function(){if(ga$!==void 0)return ga$;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return ga$=f},{mode:1});var btu;var Ds=function(){var f=_.I.apply(this,arguments)||this;f.okButtonOverride={style:"mono",type:"outline",size:"M"};return f};
_.q(Ds,_.I);Ds.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Ds.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Ds.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Ds.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Ds.prototype,"okButtonOverride",void 0);_.N([_.n(),_.Z("design:type",Object)],Ds.prototype,"data",void 0);_.N([_.C({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],Ds);
_.p(Ds,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(btu!==void 0)return btu;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return btu=f},{mode:1});var muo;var zEn=/^[\x00-\x7F]+$/,I9=function(){var f=_.I.apply(this,arguments)||this;f.isLoading=!1;f.darkerDarkTheme=_.K("web_darker_dark_theme");return f};
_.q(I9,_.I);I9.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var f;this.selectedHandle=(f=this.handleInput)==null?void 0:f.value;this.onSelectedHandleChanged(this.selectedHandle);_.mU(this.hostElement,"yt-refit-popups-action")}};
_.y3.Object.defineProperties(I9.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.uC("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.uC(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!zEn.test(this.selectedHandle)){var f;return(f=this.data)==null?void 0:f.warningText}}}});
_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],I9.prototype,"ytComponentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],I9.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",String)],I9.prototype,"selectedHandle",void 0);_.N([_.n(),_.Z("design:type",Object)],I9.prototype,"isLoading",void 0);_.N([_.n(),_.Z("design:type",Function)],I9.prototype,"onSelectedHandleChanged",void 0);_.N([_.vF("#channel-handle-input"),_.Z("design:type",Object)],I9.prototype,"handleInput",void 0);
_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],I9.prototype,"handleUrlPrefix",null);_.N([_.k("selectedHandle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],I9.prototype,"displayHandle",null);_.N([_.k("selectedHandle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],I9.prototype,"displayHandleUrl",null);_.N([_.k("selectedHandle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],I9.prototype,"warningText",null);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],I9.prototype,"darkerDarkTheme",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],I9.prototype,"ytRendererBehavior",void 0);_.N([_.C({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],I9);
_.p(I9,"ytd-handles-claiming-edit-dialog-content",function(){if(muo!==void 0)return muo;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return muo=f},{mode:1});var REX;var U_=function(){var f=_.I.apply(this,arguments)||this;f.actionButtonOverride={style:"mono",type:"filled",size:"M"};f.cancelButtonOverride={style:"mono",type:"text",size:"M"};f.selectButtonDisabled=!1;f.isLoading=!1;f.hasSelectedHandleEventListener=!1;f.selectedHandleChanged=function(S){f.selectedHandle=S};
return f};
_.q(U_,_.I);_.e=U_.prototype;_.e.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.e.onDataChanged=function(){var f,S;this.selectedHandle=(S=_.H((f=this.data)==null?void 0:f.inputField,bdM))==null?void 0:S.handle};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e.onCancel=function(){this.selectedHandle="";_.bW(this.hostElement,"yt-close-popup-action",[this.is])};
_.e.onSelectHandle=function(){var f=this;if(this.selectedHandle!==void 0){var S;((S=this.data)==null?void 0:S.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(B,G){if(G.newHandleUpdateStatus!==void 0&&G.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&G.newHandleUpdateStatus.errorMessage)_.g5(f.hostElement,_.ac(G.newHandleUpdateStatus.errorMessage)),
f.isLoading=!1;else{var g;if((g=f.data)==null?0:g.onChannelUpdateSuccess){B=f.data.onChannelUpdateSuccess;var b,z;if(G=(b=_.H(B,_.jR))==null?void 0:(z=b.popup)==null?void 0:z.handlesClaimingConfirmDialogRenderer)G.handle=_.uC(f.selectedHandle);f.ytComponentBehavior.resolveCommand(B);_.bW(f.hostElement,"yt-close-popup-action",[f.is])}else f.isLoading=!1}},
onServerError:function(){var B;f.content&&((B=f.content)==null?0:B.handleInput)&&f.content.handleInput.validate();f.isLoading=!1;_.g5(f.hostElement,_.Jf("TRY_AGAIN_LATER"))}}}))}};
_.e.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
U_.prototype.onDataChanged=U_.prototype.onDataChanged;U_.prototype.onSelectedHandleChanged=U_.prototype.onSelectedHandleChanged;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],U_.prototype,"ytComponentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],U_.prototype,"actionButtonOverride",void 0);_.N([_.n(),_.Z("design:type",Object)],U_.prototype,"cancelButtonOverride",void 0);_.N([_.n(),_.Z("design:type",Object)],U_.prototype,"data",void 0);
_.N([_.n(),_.Z("design:type",String)],U_.prototype,"selectedHandle",void 0);_.N([_.n(),_.Z("design:type",Object)],U_.prototype,"selectButtonDisabled",void 0);_.N([_.n(),_.Z("design:type",Object)],U_.prototype,"isLoading",void 0);_.N([_.n(),_.Z("design:type",Object)],U_.prototype,"hasSelectedHandleEventListener",void 0);_.N([_.n(),_.Z("design:type",Object)],U_.prototype,"handleInput",void 0);
_.N([_.JO("selectedHandle"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],U_.prototype,"onSelectedHandleChanged",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],U_.prototype,"onDataChanged",null);_.N([_.vF("ytd-handles-claiming-edit-dialog-content"),_.Z("design:type",Object)],U_.prototype,"content",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],U_.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],U_.prototype,"ytRendererstamperBehavior",void 0);_.N([_.C({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],U_);
_.p(U_,"ytd-handles-claiming-edit-dialog-renderer",function(){if(REX!==void 0)return REX;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return REX=f},{mode:1});var XxY;var C7=function(){return _.I.apply(this,arguments)||this};
_.q(C7,_.I);_.y3.Object.defineProperties(C7.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)==null?0:f.handle){var S;return _.uC("@"+_.ac((S=this.data)==null?void 0:S.handle))}}}});
_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],C7.prototype,"formattedHandle",null);_.N([_.n(),_.Z("design:type",Object)],C7.prototype,"data",void 0);_.N([_.C({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],C7);
_.p(C7,"ytd-handles-claiming-radio-option-renderer",function(){if(XxY!==void 0)return XxY;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return XxY=f},{mode:1});var wxO;var hEu=/^[\x00-\x7F]+$/,p7=function(){var f=_.I.apply(this,arguments)||this;f.initialRadioIndex="-1";f.isLoading=!1;f.darkerDarkTheme=_.K("web_darker_dark_theme");f.maybeSubmitFeedback=function(){f.feedbackSurveyRenderer.submitSurvey()};
return f};
_.q(p7,_.I);p7.prototype.updateSelectedHandleIndexFromBinding=function(f){this.selectedRadioIndex=+f.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(f)};
p7.prototype.selectedHandleChanged=function(f){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var S;this.selectedHandle=(S=this.handleInput)==null?void 0:S.value;this.onSelectedHandleChanged(f)}};
_.y3.Object.defineProperties(p7.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var f;return(((f=this.data)==null?void 0:f.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var f;return this.ytRendererBehavior.getSimpleString((f=this.data)==null?void 0:f.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.uC("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.uC(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!hEu.test(this.selectedHandle)){var f;return(f=this.data)==null?void 0:f.warningText}}}});
_.N([_.n(),_.Z("design:type",Object)],p7.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],p7.prototype,"initialRadioIndex",void 0);_.N([_.n(),_.Z("design:type",Number)],p7.prototype,"selectedRadioIndex",void 0);_.N([_.n(),_.Z("design:type",String)],p7.prototype,"selectedHandle",void 0);_.N([_.n(),_.Z("design:type",Object)],p7.prototype,"isLoading",void 0);_.N([_.n(),_.Z("design:type",Function)],p7.prototype,"onSelectedHandleChanged",void 0);
_.N([_.n(),_.Z("design:type",Function)],p7.prototype,"onSelectedRadioIndexChanged",void 0);_.N([_.vF("#channel-handle-input"),_.Z("design:type",Object)],p7.prototype,"handleInput",void 0);_.N([_.vF("ytd-feedback-survey-renderer"),_.Z("design:type",Object)],p7.prototype,"feedbackSurveyRenderer",void 0);_.N([_.k("data"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],p7.prototype,"radioButtonLength",null);
_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],p7.prototype,"handleUrlPrefix",null);_.N([_.k("selectedHandle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],p7.prototype,"displayHandle",null);_.N([_.k("selectedHandle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],p7.prototype,"displayHandleUrl",null);_.N([_.k("selectedHandle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],p7.prototype,"warningText",null);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],p7.prototype,"darkerDarkTheme",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],p7.prototype,"ytRendererBehavior",void 0);_.N([_.C({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],p7);
_.p(p7,"ytd-handles-claiming-select-dialog-content",function(){if(wxO!==void 0)return wxO;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return wxO=f},{mode:1});var Tn2;var Ab=function(){var f=_.I.apply(this,arguments)||this;f.actionButtonOverride={style:"mono",type:"filled",size:"M"};f.cancelButtonOverride={style:"mono",type:"text",size:"M"};f.initialRadioIndex="-1";f.selectButtonDisabled=!1;f.isLoading=!1;f.selectedRadioIndexChanged=function(S){f.selectedRadioIndex=Number(S.detail.value)};
f.selectedHandleChanged=function(S){f.selectedHandle=S.detail.value};
f.darkerDarkTheme=_.K("web_darker_dark_theme");return f};
_.q(Ab,_.I);_.e=Ab.prototype;_.e.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.e.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.e.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.mU(this.hostElement,"yt-refit-popups-action")};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.bW(this.hostElement,"yt-close-popup-action",[this.is])};
_.e.onSelectHandle=function(){var f=this;if(this.selectedHandle!==void 0){var S;((S=this.data)==null?void 0:S.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(B,G){if(G.newHandleUpdateStatus!==void 0&&G.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&G.newHandleUpdateStatus.errorMessage)_.g5(f.hostElement,_.ac(G.newHandleUpdateStatus.errorMessage)),
f.isLoading=!1;else{var g;if((g=f.data)==null?0:g.onChannelUpdateSuccess){B=f.data.onChannelUpdateSuccess;G=_.H(B,_.jR);var b;if(G==null?0:(b=G.popup)==null?0:b.handlesClaimingConfirmDialogRenderer)G.popup.handlesClaimingConfirmDialogRenderer.handle=_.uC(f.selectedHandle);f.ytComponentBehavior.resolveCommand(B);_.bW(f.hostElement,"yt-close-popup-action",[f.is])}else f.isLoading=!1}},
onServerError:function(){if(f.selectedRadioIndex===f.radioButtonLength){var B;f.content&&((B=f.content)==null?0:B.handleInput)&&f.content.handleInput.validate()}f.isLoading=!1;_.g5(f.hostElement,_.Jf("TRY_AGAIN_LATER"))}}}))}};
_.e.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var f,S;this.selectedHandle=(f=this.content)==null?void 0:(S=f.handleInput)==null?void 0:S.value}else this.selectedRadioIndex>=0&&((f=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(f==null?void 0:f.handle):this.selectedHandle=void 0)};
_.e.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.e.getRadioItem=function(f){if(this.radioButtonLength>f&&f>=0)return _.H(this.data.radioButton[f],Hdz)};
_.y3.Object.defineProperties(Ab.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var f;return(((f=this.data)==null?void 0:f.radioButton)||[]).length}}});
Ab.prototype.onSelectedHandleChanged=Ab.prototype.onSelectedHandleChanged;Ab.prototype.onSelectedHandleIndexChanged=Ab.prototype.onSelectedHandleIndexChanged;Ab.prototype.onDataChanged=Ab.prototype.onDataChanged;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Ab.prototype,"ytComponentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Ab.prototype,"actionButtonOverride",void 0);_.N([_.n(),_.Z("design:type",Object)],Ab.prototype,"cancelButtonOverride",void 0);
_.N([_.n(),_.Z("design:type",Object)],Ab.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],Ab.prototype,"initialRadioIndex",void 0);_.N([_.n(),_.Z("design:type",Number)],Ab.prototype,"selectedRadioIndex",void 0);_.N([_.n(),_.Z("design:type",String)],Ab.prototype,"selectedHandle",void 0);_.N([_.n(),_.Z("design:type",Object)],Ab.prototype,"selectButtonDisabled",void 0);_.N([_.n(),_.Z("design:type",Object)],Ab.prototype,"isLoading",void 0);
_.N([_.k("data"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],Ab.prototype,"radioButtonLength",null);_.N([_.vF("ytd-handles-claiming-select-dialog-content"),_.Z("design:type",Object)],Ab.prototype,"content",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ab.prototype,"onDataChanged",null);
_.N([_.JO("selectedRadioIndex"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ab.prototype,"onSelectedHandleIndexChanged",null);_.N([_.JO("selectedHandle"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ab.prototype,"onSelectedHandleChanged",null);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Ab.prototype,"darkerDarkTheme",void 0);
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Ab.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Ab.prototype,"ytRendererstamperBehavior",void 0);_.N([_.C({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],Ab);
_.p(Ab,"ytd-handles-claiming-select-dialog-renderer",function(){if(Tn2!==void 0)return Tn2;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Tn2=f},{mode:1});var FYo;var VLB;var Ng=function(){return _.I.apply(this,arguments)||this};
_.q(Ng,_.I);Ng.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Ng.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Ng.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Ng.prototype,"data",void 0);_.N([_.C({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],Ng);
_.p(Ng,"ytd-hotkey-dialog-section-option-renderer",function(){if(VLB!==void 0)return VLB;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return VLB=f},{mode:1});var JHe;var Mg=function(){return _.I.apply(this,arguments)||this};
_.q(Mg,_.I);Mg.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Mg.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Mg.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Mg.prototype,"data",void 0);_.N([_.C({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],Mg);
_.p(Mg,"ytd-hotkey-dialog-section-renderer",function(){if(JHe!==void 0)return JHe;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return JHe=f},{mode:1});var Zs=function(){var f=_.I.apply(this,arguments)||this;f.darkerDarkTheme=_.K("web_darker_dark_theme");return f};
_.q(Zs,_.I);Zs.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Zs.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Zs.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Zs.prototype,"darkerDarkTheme",void 0);_.N([_.C({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],Zs);
_.p(Zs,"ytd-hotkey-dialog-content",function(){if(FYo!==void 0)return FYo;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return FYo=f},{mode:1});var PQe;var tb=function(){return _.I.apply(this,arguments)||this};
_.q(tb,_.I);tb.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var f=document.querySelector("ytd-hotkey-dialog-content #scrollable");f&&(f.dialogElement=this.hostElement.parentElement)};
tb.prototype.onCloseTap=function(){_.bW(this.hostElement,"yt-close-popup-action")};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],tb.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],tb.prototype,"data",void 0);_.N([_.C({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],tb);
_.p(tb,"ytd-hotkey-dialog-renderer",function(){if(PQe!==void 0)return PQe;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return PQe=f},{mode:1});var va$;var uI=function(){return _.I.apply(this,arguments)||this};
_.q(uI,_.I);uI.prototype.onYtServiceRequestError=function(){if(this.blocked){var f;var S=(f=this.data)==null?void 0:f.defaultServiceEndpoint}else{var B;S=(B=this.data)==null?void 0:B.toggledServiceEndpoint}var G;(S=(G=_.H(S,_.hrX))==null?void 0:G.onFailureAction)&&this.ytComponentBehavior.resolveCommand(S);this.updateBlockState(!this.blocked)};
uI.prototype.onYtToggleButton=function(f){this.updateBlockState(f.detail.toggled)};
uI.prototype.updateBlockState=function(f){if(f!==this.blocked){var S=this.blockedEntityKey;S&&this.ytdReduxBehavior.dispatch(_.KF("blockStateEntity",S,{key:S,blocked:f}));this.set("data.isToggled",f)}};
_.y3.Object.defineProperties(uI.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)}}});
uI.prototype.onYtToggleButton=uI.prototype.onYtToggleButton;uI.prototype.onYtServiceRequestError=uI.prototype.onYtServiceRequestError;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],uI.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],uI.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],uI.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],uI.prototype,"blockedEntityKey",void 0);
_.N([_.n({selectorArgs:["blockedEntityKey"],selector:function(f,S){return _.w9(f.entities,"blockStateEntity",S)}}),
_.Z("design:type",Object)],uI.prototype,"blockStateEntity",void 0);_.N([_.k("data","blockStateEntity"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],uI.prototype,"blocked",null);_.N([_.Vg("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],uI.prototype,"onYtServiceRequestError",null);
_.N([_.Vg("yt-toggle-button"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],uI.prototype,"onYtToggleButton",null);_.N([_.C({is:"ytd-block-button",disableElementRegistration:!0})],uI);
_.p(uI,"ytd-block-button",function(){if(va$!==void 0)return va$;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return va$=f},
{mode:1});var KYz;var duz;var a9=function(){return _.I.apply(this,arguments)||this};
_.q(a9,_.I);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],a9.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],a9.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],a9.prototype,"data",void 0);_.N([_.C({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],a9);
_.p(a9,"ytd-kids-blocklist-picker-item-renderer",function(){if(duz!==void 0)return duz;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return duz=f},{mode:1});var y_=function(){return _.I.apply(this,arguments)||this};
_.q(y_,_.I);y_.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],y_.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],y_.prototype,"data",void 0);_.N([_.C({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],y_);
_.p(y_,"ytd-kids-blocklist-picker-content",function(){if(KYz!==void 0)return KYz;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return KYz=
f},{mode:_.X_("kevlar_poly_si_batch_j025")?1:2});var itz;var WP=function(){var f=_.I.apply(this,arguments)||this;f.hasAnyRequestSucceeded=!1;f.hasAnyRequestFailed=!1;f.numPendingRequests=0;return f};
_.q(WP,_.I);_.e=WP.prototype;_.e.attached=function(){this.hostElement.setAttribute("dialog","")};
_.e.onDoneButtonTap=function(){_.bW(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.e.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.e.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.e.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.e.onPopupClosed=function(f){var S,B;if(((S=f.detail)==null?void 0:(B=S.popup)==null?void 0:B.is)==="tp-yt-paper-dialog"){var G;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((G=this.data)==null?0:G.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.fn(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
WP.prototype.onPopupClosed=WP.prototype.onPopupClosed;WP.prototype.onYtServiceRequestError=WP.prototype.onYtServiceRequestError;WP.prototype.onYtServiceRequestCompleted=WP.prototype.onYtServiceRequestCompleted;WP.prototype.onYtServiceRequestSent=WP.prototype.onYtServiceRequestSent;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],WP.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],WP.prototype,"ytRendererBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],WP.prototype,"data",void 0);_.N([_.Vg("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],WP.prototype,"onYtServiceRequestSent",null);_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],WP.prototype,"onYtServiceRequestCompleted",null);
_.N([_.Vg("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],WP.prototype,"onYtServiceRequestError",null);_.N([_.Vg("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],WP.prototype,"onPopupClosed",null);_.N([_.C({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],WP);
_.p(WP,"ytd-kids-blocklist-picker-renderer",function(){if(itz!==void 0)return itz;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return itz=f},{mode:1});var Ht2;var qru;var cP=function(){return _.I.apply(this,arguments)||this};
_.q(cP,_.I);cP.prototype.setTip=function(f){var S=this;this.data&&(this.tip=w4e(RHX.getInstance(),f,this.data),_.ui(this,function(){_.ew(S.hostElement,"yt-refit")}))};
cP.prototype.clearTip=function(){this.tip=void 0};
cP.prototype.computeHidden=function(f){return!f};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],cP.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],cP.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.Z("design:type",Boolean)],cP.prototype,"hidden",void 0);_.N([_.n(),_.Z("design:type",Object)],cP.prototype,"tip",void 0);_.N([_.C({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],cP);
_.p(cP,"ytd-menu-popup-tip-renderer",function(){if(qru!==void 0)return qru;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);
return qru=f},{mode:1});var $uu;var lI=function(){var f=_.I.apply(this,arguments)||this;f.useIcons=!1;f.systemIcons=_.K("kevlar_system_icons");f.useListItemStyles=_.K("web_list_item_style_for_menu_items");return f};
_.q(lI,_.I);_.e=lI.prototype;_.e.onFocus=function(){var f;(f=_.m9(this.hostElement).querySelector("tp-yt-paper-item"))==null||f.focus()};
_.e.onTap=function(){var f=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(f&&_.H(f,_.hf))this.componentBehavior.resolveCommand(f),this.updateToggledStateInEntity();else if(f){this.componentBehavior.resolveCommand(f)||_.oy().resolve(_.S7).resolveCommand(f,{form:{element:this.hostElement}});var S;((S=_.H(f,_.Fh))==null?void 0:S.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.e.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.e.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.e.updateToggledStateInEntity=function(){var f=this.data.toggleMenuServiceItemEntityKey,S=!this.data.isToggled;f&&this.ytdReduxBehavior.dispatch(_.KF("toggleMenuServiceItemEntity",f,{key:f,isToggled:S}))};
_.e.computeIcon=function(f,S,B){return(f=f?B:S)&&f.iconType?_.F_(f.iconType):""};
_.e.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.e.isIconActive=function(f){return!_.K("toggle_menu_active_icon_killswitch")&&f};
_.y3.Object.defineProperties(lI.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var f,S,B;return((f=this.data)==null?0:f.isToggled)?(S=this.data)==null?void 0:S.toggledText:(B=this.data)==null?void 0:B.defaultText}}});
lI.prototype.toggledStateEntityChanged=lI.prototype.toggledStateEntityChanged;lI.prototype.onYtServiceRequestCompleted=lI.prototype.onYtServiceRequestCompleted;lI.prototype.onTap=lI.prototype.onTap;lI.prototype.onFocus=lI.prototype.onFocus;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],lI.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],lI.prototype,"componentBehavior",void 0);
_.N([_.r(_.Ek),_.Z("design:type",Object)],lI.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],lI.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],lI.prototype,"useIcons",void 0);_.N([_.n({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.Z("design:type",String)],lI.prototype,"icon",void 0);
_.N([_.n({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(f,S){return _.w9(f.entities,"toggleMenuServiceItemEntity",S)}}),
_.Z("design:type",Object)],lI.prototype,"toggleMenuServiceItemEntity",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],lI.prototype,"systemIcons",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],lI.prototype,"useListItemStyles",void 0);_.N([_.Vg("focus"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],lI.prototype,"onFocus",null);
_.N([_.k("data.isToggled"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],lI.prototype,"toggleButtonText",null);_.N([_.Vg("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],lI.prototype,"onTap",null);_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],lI.prototype,"onYtServiceRequestCompleted",null);
_.N([_.JO("toggleMenuServiceItemEntity.isToggled","data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],lI.prototype,"toggledStateEntityChanged",null);_.N([_.C({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],lI);
_.p(lI,"ytd-toggle-menu-service-item-renderer",function(){if($uu!==void 0)return $uu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return $uu=f},{mode:1});var QA2;var f1=function(){return _.I.apply(this,arguments)||this};
_.q(f1,_.I);f1.prototype.onFocus=function(){var f;(f=_.m9(this.hostElement).querySelector("tp-yt-paper-item"))==null||f.focus()};
_.y3.Object.defineProperties(f1.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.io(this.data.iconUrl)}}});
f1.prototype.onFocus=f1.prototype.onFocus;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],f1.prototype,"rendererBehavior",void 0);_.N([_.r(_.Pl.YtEndpointBehavior),_.Z("design:type",Object)],f1.prototype,"ytEndpointBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],f1.prototype,"data",void 0);_.N([_.Vg("focus"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],f1.prototype,"onFocus",null);
_.N([_.k("data.iconUrl"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],f1.prototype,"imageSource",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],f1);
_.p(f1,"ytd-menu-custom-icon-item-renderer",function(){if(QA2!==void 0)return QA2;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return QA2=f},{mode:_.X_("kevlar_poly_si_batch_j028")?1:2});_.eq(_.Y4,"yt-list-item-view-model",{props:{data:_.W4,isMenuItem:_.W4,isCompact:_.W4,onTap:_.gm,trailingAccessory:_.gm,hideSelectionTextChevron:_.W4,disabled:_.W4,inPopup:_.W4,disableHorizontalPadding:_.W4,isOverlay:_.W4,isToggled:_.W4}});var oG=function(){var f=_.I.apply(this,arguments)||this;f.disableBackdropFilter=_.K("web_disable_backdrop_filter");return f};
_.q(oG,_.I);_.e=oG.prototype;
_.e.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"}}}};
_.e.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.e.computeAriaLabel=function(f){return f};
_.e.onPopupOpened=function(){this.items.selected=0;for(var f=_.m(_.m9(this.items).children),S=f.next();!S.done;S=f.next())S.value.popupPositionTarget=this.positionTarget;if(f=this.popupTip||void 0)f.setTip(this.source||""),this.source=void 0;this.veData&&(f=_.xc())&&_.Zu(f,[this.veData])};
_.e.onPopupClosed=function(){var f=this.popupTip||void 0;f&&f.clearTip()};
_.e.onIronActivate=function(f){this.shouldPersist(f)||_.bW(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(f=_.xc())&&_.uW(f,this.veData)};
_.e.shouldPersist=function(f){var S,B;if(((S=f.detail)==null?void 0:S.selected)===void 0||(B=this.data)==null||!B.items)return!1;var G,g;return!((g=(G=this.data.items[f.detail.selected])==null?void 0:G.toggleMenuServiceItemRenderer)==null||!g.persistentOnMenuPopup)};
_.e.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(f){return f.menuNavigationItemRenderer?!!f.menuNavigationItemRenderer.icon:f.menuServiceItemRenderer?!!f.menuServiceItemRenderer.icon:f.menuConditionalServiceItemRenderer?!!f.menuConditionalServiceItemRenderer.icon:f.menuConditionalNavigationItemRenderer?!!f.menuConditionalNavigationItemRenderer.icon:f.toggleMenuServiceItemRenderer?!!f.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
oG.prototype.onPopupClosed=oG.prototype.onPopupClosed;oG.prototype.onPopupOpened=oG.prototype.onPopupOpened;_.N([_.r(_.Px.YtEventForwardingBehavior),_.Z("design:type",Object)],oG.prototype,"ytEventForwardingBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],oG.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],oG.prototype,"ytRendererBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],oG.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],oG.prototype,"veData",void 0);_.N([_.n({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.Z("design:type",String)],oG.prototype,"ariaLabel",void 0);_.N([_.n({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],oG.prototype,"useIcons",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],oG.prototype,"disableBackdropFilter",void 0);_.N([_.vF("#items"),_.Z("design:type",Object)],oG.prototype,"items",void 0);_.N([_.vF("ytd-menu-popup-tip-renderer"),_.Z("design:type",Object)],oG.prototype,"popupTip",void 0);_.N([_.Vg("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],oG.prototype,"onPopupOpened",null);
_.N([_.Vg("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],oG.prototype,"onPopupClosed",null);_.N([_.C({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],oG);
_.p(oG,"ytd-menu-popup-renderer",function(){if(Ht2!==void 0)return Ht2;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Ht2=f},{mode:1});var Yre;var rHX=_.oS(function(f){f=_.lu(f,{icon:void 0});var S=f.data;f=f.icon;var B=function(){return S().iconBadgeText},G={},g=_.Pw("yt-spec-icon-badge-shape",function(){a:switch(S().iconBadgeType){case "notification":var b="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":b="yt-spec-icon-badge-shape--type-cart";break a;default:b=""}return b},function(){a:switch(S().iconBadgeStyle){case "overlay":var b="yt-spec-icon-badge-shape--style-overlay";
break a;default:b=""}return b},(G["yt-spec-icon-badge-shape--text-size-small"]=function(){var b=B();
return!!((b==null?0:b.length)&&b.length>2)},G));
return _.T("yt-icon-badge-shape",null,_.T(_.v,{cond:f,then:function(b){return _.T("div",{class:g},_.T("div",{class:"yt-spec-icon-badge-shape__icon"},_.T(_.Y8,{icon:b})),_.T(_.v,{cond:B,then:function(z){return _.T("div",{class:"yt-spec-icon-badge-shape__badge"},z)}}))}}))},"sg");
rHX.idomCompat=!0;_.eq(rHX,"yt-icon-badge-shape",{props:{data:_.W4,icon:_.W4}});var SU=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};f.unseenCount=0;f.isOverlay=!1;return f};
_.q(SU,_.I);_.e=SU.prototype;_.e.attached=function(){var f=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(S){f.onServiceWorkerMessage(S)})};
_.e.onDataChanged=function(){this.isAttached&&!this.JSC$18327_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$18327_lastData=this.data};
_.e.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.e.computeIcon=function(){var f,S;return(f=this.data)==null?void 0:(S=f.icon)==null?void 0:S.iconType};
_.e.onServiceWorkerMessage=function(f){f.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.e.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.H(this.data.updateUnseenCountEndpoint,_.Fh)&&_.H(this.data.updateUnseenCountEndpoint,_.Fh).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.e.handleUpdateNotificationsUnseenCountAction=function(f){var S=this;f=_.H(f,TxY);f!=null&&f.unseenCount&&f.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(f.unseenCount),_.xJ.addLowPriorityJob(function(){S.data.updateUnseenCountEndpoint&&S.ytComponentBehavior.resolveCommand(S.data.updateUnseenCountEndpoint)},f.timeoutMs))};
_.e.onClick=function(){_.ew(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var f=_.mU(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),S=this.data.menuRequest;f&&f.length===1&&f[0]?_.bW(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):S&&this.ytComponentBehavior.resolveCommand(S)};
_.e.handleTopbarMenuClosedAction=function(f){f==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.e.toggleIconState=function(f){this.iconButton&&(this.iconButton.pressed=f)};
_.e.sendUnseenCountRequest=function(f){var S=this;_.q6(_.xJ,function(){S.ytComponentBehavior.resolveCommand(f)})};
_.e.updateCountUI=function(f){this.set("unseenCount",f<9?f:"9+")};
_.y3.Object.defineProperties(SU.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
SU.prototype.handleUpdateNotificationsUnseenCountAction=SU.prototype.handleUpdateNotificationsUnseenCountAction;SU.prototype.onDataChanged=SU.prototype.onDataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],SU.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],SU.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.a5),_.Z("design:type",Object)],SU.prototype,"ytdOpenPopupBehavior",void 0);
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],SU.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],SU.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],SU.prototype,"unseenCount",void 0);_.N([_.n(),_.Z("design:type",Object)],SU.prototype,"isOverlay",void 0);_.N([_.n({value:!0}),_.Z("design:type",Boolean)],SU.prototype,"showTooltips",void 0);_.N([_.vF("yt-icon-button"),_.Z("design:type",Object)],SU.prototype,"iconButton",void 0);
_.N([_.k("unseenCount"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],SU.prototype,"showNotificationCount",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],SU.prototype,"onDataChanged",null);_.N([_.Vg("yt-update-notifications-unseen-count-action"),_.Z("design:type",Function),_.Z("design:paramtypes",[Object]),_.Z("design:returntype")],SU.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.N([_.C({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],SU);
_.p(SU,"ytd-notification-topbar-button-renderer",function(){if(Yre!==void 0)return Yre;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Yre=f},{mode:_.X_("kevlar_poly_si_batch_j025")?1:2});var jAu;var Bi=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return f};
_.q(Bi,_.I);Bi.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}}}}}};
Bi.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
Bi.prototype.onDarkModeToggled=function(f){this.dark=f};
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],Bi.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Bi.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Bi.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Bi.prototype,"data",void 0);_.N([_.n({value:!0,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Bi.prototype,"dark",void 0);
_.N([_.C({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],Bi);
_.p(Bi,"yt-pdg-buy-flow-header-renderer",function(){if(jAu!==void 0)return jAu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return jAu=f},{mode:1});var Ot2;var xu2;var G_=function(){var f=_.I.apply(this,arguments)||this;f.immediateValue=0;f.isDarkTheme=!1;f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return f};
_.q(G_,_.I);_.e=G_.prototype;_.e.created=function(){_.A5.requestAvailability()};
_.e.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.e.dataChanged=function(){var f=_.m9(this.hostElement).querySelector("#color-slider");f.immediateValue&&this.updateSliderKnobAndGradientStyles(f.immediateValue);this.data.notches[0].knobColorArgb&&_.hO(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.AK(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.nL("HTML_DIR")==="rtl"&&_.m9(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.e.onSliderImmediateChange=function(){var f=_.m9(this.hostElement).querySelector("#color-slider");f.dragging&&(f.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(f.immediateValue),this.updateSliderKnobAndGradientStyles(f.immediateValue)),this.updateSliderAria())};
_.e.onSliderChange=function(){var f=_.m9(this.hostElement).querySelector("#color-slider");f.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(f.immediateValue),this.updateSliderKnobAndGradientStyles(f.immediateValue));this.updateSliderAria()};
_.e.updateSliderAria=function(){var f=_.m9(this.hostElement).querySelector("#color-slider"),S=_.m9(this.hostElement).querySelector("#color-slider");S=_.ac(this.data.notches[S.immediateValue].tierValue);_.EV()&&_.ew(this.hostElement,"iron-announce",{text:S});f.setAttribute("aria-valuetext",S)};
_.e.updateSuperThanksSelectedTierEntity=function(f){if(f!==this.immediateValue){var S,B,G=this==null?void 0:(S=this.data)==null?void 0:(B=S.superThanksSelectedTierEntity)==null?void 0:B.key;G&&G.length>0&&this.ytdReduxBehavior.dispatch(_.KF("superThanksSelectedTierEntity",G,{key:G,index:f}))}};
_.e.onDarkModeToggledAction=function(f){this.isDarkTheme=f};
_.e.updateSliderKnobAndGradientStyles=function(f){this.immediateValue=f;f=this.data.notches[f];if(f==null?0:f.knobColorArgb)var S={"--ytd-pdg-color-slider-knob-color":_.AK(f.knobColorArgb)};(f==null?0:f.linearGradientCssStyle)&&S!==null&&(S=Object.assign({},S,{"--ytd-pdg-color-slider-active-color":f==null?void 0:f.linearGradientCssStyle}));S!==null&&_.hO(this.hostElement,S)};
G_.prototype.onSliderChange=G_.prototype.onSliderChange;G_.prototype.onSliderImmediateChange=G_.prototype.onSliderImmediateChange;G_.prototype.dataChanged=G_.prototype.dataChanged;_.N([_.n(),_.Z("design:type",Object)],G_.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],G_.prototype,"immediateValue",void 0);_.N([_.n(),_.Z("design:type",Number)],G_.prototype,"maxMarkers",void 0);
_.N([_.n({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:h_z}),_.Z("design:type",Object)],G_.prototype,"superThanksSelectedTierEntity",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],G_.prototype,"isDarkTheme",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],G_.prototype,"ytdReduxBehavior",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],G_.prototype,"dataChanged",null);
_.N([_.Vg("immediate-value-change"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],G_.prototype,"onSliderImmediateChange",null);_.N([_.Vg("change"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],G_.prototype,"onSliderChange",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],G_);
_.p(G_,"ytd-pdg-color-slider-renderer",function(){if(xu2!==void 0)return xu2;var f=document.createElement("template");_.Y(f,'\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>');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return xu2=f},{mode:1});var EaY;var LY$;var Pi=null;
_.OW({is:"ytd-comment-input",_template:function(){if(LY$!==void 0)return LY$;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return LY$=f},
behaviors:[_.uSM.YtHostElementBehavior,_.qx,_.Nm.YtComponentBehavior,_.ey.YtRendererstamperBehavior,_.PfX.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 _.I5}},
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",_.Fc(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;_.Tw();this.focus()},
detached:function(){document.removeEventListener("tap",_.Fc(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(f){f=f.detail;f=f.isCustomEmoji?f.shortcuts[0]:f.emojiId;var S=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(S,f);this.maybeUpdateTextDirection_();_.ew(this.hostElement,"input")},
getInputRange_:function(){var f=_.$V();if(f){f=f.getBrowserRangeObject();for(var S=f.commonAncestorContainer;S;){if(S===this.getEditableTextArea_())return f;S=S.parentNode}}f=this.getEditableTextArea_();f=_.IH(f,f.childNodes.length);f.select();return f.getBrowserRangeObject()},
insertTextWithEmojis_:function(f,S,B){(S=this.emojiManager.createDocumentFragment(S,!0,!1,B===void 0?!0:B))&&S.childNodes.length!==0&&(f.collapsed||f.deleteContents(),B=S.lastChild,f.insertNode(S),_.sD1(B).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var f=_.$V();if(f){var S=f.JSC$9306_getStartNode(),B=f.JSC$9306_getEndNode();if(B9n(S)&&B9n(B)){var G=f.JSC$9306_getStartOffset(),g;if(_.P_&&S.nodeType===Node.ELEMENT_NODE&&(g=_.IN6(S)))_.IH(g,0).select();else{g=lL(S)?S:_.kv(S,lL);var b=lL(B)?B:_.kv(B,lL);if(g||b)if(f.isCollapsed()){if(S.nodeType===Node.TEXT_NODE){f=!0;G===S.length&&(f=!1);if(Pi==="end"||Pi==="right")f=!1;S=S.parentNode;f=[].concat(_.$d(S.parentNode.childNodes)).indexOf(S)+(f?0:1);_.IH(S.parentNode,f).select()}}else g?
g.previousSibling&&g.previousSibling.length>0?_.Ue(B,f.JSC$9306_getEndOffset(),g.previousSibling,g.previousSibling.length-1).select():(S=document.createTextNode("\u200b"),g.parentNode.insertBefore(S,g),_.Ue(B,f.JSC$9306_getEndOffset(),S,0).select()):b&&(b.nextSibling&&b.nextSibling.length>0?_.Ue(S,f.JSC$9306_getStartOffset(),b.nextSibling,1).select():(B=document.createTextNode("\u200b"),b.parentNode.insertBefore(B,b.nextSibling),_.Ue(S,f.JSC$9306_getStartOffset(),B,B.length).select()));Pi=null}}else Pi=
null}else Pi=null},
leftKeyPressed_:function(){Pi="left"},
rightKeyPressed_:function(){Pi="right"},
endKeyPressed_:function(){Pi="end"},
maybeDeleteChip_:function(){var f=zxu(!0);if(f){var S=_.$V(),B=S.JSC$9306_getStartNode();S=S.JSC$9306_getStartOffset();_.Ee(B,S,f,f.childNodes.length).select()}},
maybeBackspaceChip_:function(){var f=zxu(!1);if(f){var S=_.$V(),B=S.JSC$9306_getStartNode();S=S.JSC$9306_getStartOffset();_.Ee(B,S,f,0).select()}},
maybeBackspaceChipWordMode_:function(f){var S=_.$V();if(S.isCollapsed()){var B=S.JSC$9306_getStartNode();S=S.JSC$9306_getStartOffset();var G=RxM(B,S,!0);G&&(_.Ee(B,S,G,0).select(),document.execCommand("delete"),f.preventDefault(),f.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(f){var S=_.$V();if(S.isCollapsed()){var B=S.JSC$9306_getStartNode();S=S.JSC$9306_getStartOffset();var G=RxM(B,S,!1);G&&(_.Ee(B,S,G,G.childNodes.length).select(),document.execCommand("delete"),f.preventDefault(),f.stopImmediatePropagation())}},
onContentClick:function(f){f.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(f){f.defaultPrevented||f.currentTarget.tagName==="YTD-COMMENT-INPUT"&&lL(f.target)&&f.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.m9(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.m9(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(f,S){f=gro(f,this.emojiManager,S).cloneNode(!0);for(S=f.firstChild;S;)if(S.nodeType!==1)S=S.nextSibling;else switch(S.tagName){case "BR":var B=_.OJ();_.t1m(B,S);S=B.nextSibling;break;case "DIV":(B=S.lastChild)&&S.nextSibling&&_.kU(_.OJ(),B);S.previousSibling&&(S.previousSibling.nodeType===1||S.previousSibling.nodeType===3&&!S.previousSibling.textContent.endsWith("\n"))&&_.Lb(_.OJ(),S);B&&B.nodeName==="BR"&&_.Pv(B);B=S;S.hasChildNodes()?(S=S.firstChild,
_.uGo(B)):(S=S.nextSibling,_.Pv(B));break;default:S=S.nextSibling}return X2e(f)},
setTextAreaValue:function(f){f||(f="");var S=this.getEditableFormattedString_();S.text="";this.getEditableTextArea_().innerText="";typeof f==="string"&&(f={runs:[{text:f}]});S.text=f},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Pi=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var f=this.getEditableTextArea_();f&&(_.IH(f,f.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.nL("HTML_DIR")==="rtl"){var f=this.getEditableTextArea_(),S=this.getTextAreaValue()!==""?"auto":"rtl";f.setAttribute("dir",S)}},
handleInputEvent_:function(){var f=null;if(this.isEmojiButtonDisplayed){var S=this.getInputRange_();S&&(f=this.emojiInput.retrieveTextBeforeRange(S))}this.insertText_(f,!0);this.updateCharCount_();f=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=f.scrollHeight>f.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var f=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:f})},
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(f){this.isEmojiButtonDisplayed&&(f.preventDefault(),f.stopImmediatePropagation(),f=f.clipboardData.getData("text/plain"),this.insertText_(f,!1,!1),_.ew(this.hostElement,"input"))},
insertText_:function(f,S,B){S=S===void 0?!1:S;B=B===void 0?!0:B;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&f){var G=this.getInputRange_().cloneRange();this.emojiManager&&G&&(S&&this.emojiInput.offsetStartOfRangeBy(G,f.length),this.insertTextWithEmojis_(G,f,B),Gco(this.getEditableTextArea_().lastChild)||(G=this.getInputRange_().cloneRange()),G&&(this.emojiInput.updateSuggestions(G,f),this.updateSuggestionOffset_(G)))}},
getSimpleString:_.ac,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(f){return f?"focused":"not-focused"},
computePlaceholderText_:function(f){return this.getSimpleString(f)},
computeEditableText_:function(f){return this.getSimpleString(f)},
onPrefilledContentDismissed_:function(f){f.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(f,S){f?this.fire("yt-autonav-pause-focus"):S!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(f){var S=this.getEditableTextArea_();[].concat(_.$d(f.dataTransfer.items)).forEach(function(B){B.kind==="string"&&B.type.match("^text/plain")&&B.getAsString(function(G){S.appendChild(document.createTextNode(G))})});
f.preventDefault()},
preventDefault_:function(f){f.preventDefault()},
onSuggestionInsert_:function(f){this.insertTextWithEmojis_(f.detail.range,f.detail.text)},
onEmojiSuggestionClick_:function(f){this.emojiInput.insertSuggestion(f.detail)},
updateSuggestionOffset_:function(f){if(this.emojiInput&&_.m9(this.emojiInput).querySelector("#dropdown")){var S=this.getEditableTextArea_().getBoundingClientRect().bottom,B=f.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(S-B)+5;S=this.getEditableTextArea_().getBoundingClientRect().left;f=f.getBoundingClientRect().left-S;_.m9(this.emojiInput).querySelector("#dropdown").style.marginLeft=f+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.s4("yt-post"));return this.localStorage}});var vi=function(){var f=_.I.apply(this,arguments)||this;f.currentCommentOptionIndex=0;f.isEmojiPickerDisplayed=!1;f.emojiManager=_.I5;f.isUgcEmpty=!1;f.userGeneratedCommentChangedHandler=function(){_.ew(f.hostElement,"ytd-pdg-user-generated-comment-changed");f.isEmojiYtdCommentInputEnabled&&(f.isUgcEmpty=!f.ytdCommentInputEl.getTextAreaValue())};
f.pasteHandler=function(S){S.preventDefault();S.stopImmediatePropagation();var B;if(S=(B=S.clipboardData)==null?void 0:B.getData("text/plain"))B=document.getSelection().getRangeAt(0),B.collapsed||B.deleteContents(),S=document.createTextNode(S),B.insertNode(S),B.selectNodeContents(S),B.collapse(!1),S=window.getSelection(),S.removeAllRanges(),S.addRange(B)};
f.onDocumentClick=function(S){if(f.isEmojiPickerDisplayed){var B,G,g;!(S.target instanceof Node)||(B=S.composedPath())!=null&&B.includes(f.editableTextEl)||(G=S.composedPath())!=null&&G.includes(f.emojiButtonEl)||(g=S.composedPath())!=null&&g.includes(f.emojiPickerEl)||(f.isEmojiPickerDisplayed=!1)}};
return f};
_.q(vi,_.I);_.e=vi.prototype;_.e.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.e.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.e.detached=function(){var f;(f=this.contentEl)==null||f.removeEventListener("input",this.userGeneratedCommentChangedHandler);var S;(S=this.contentEl)==null||S.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.e.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.e.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var f;this.contentEl.textContent=this.rendererBehavior.getSimpleString((f=this.data)==null?void 0:f.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.e.reloadEmojis=function(){this.emojiPickerEl&&_.H(this.emojiPicker,_.qT6)&&this.emojiPickerEl.updateEmojiCategories()};
_.e.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.hO(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.e.handleBackgroundColorStyling=function(){var f;if((f=this.currentCommentOption)==null?0:f.commentBackgroundColorArgb){var S;_.hO(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.AK((S=this.currentCommentOption)==null?void 0:S.commentBackgroundColorArgb)})}else _.hO(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.e.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var f;(f=this.contentEl)==null||f.focus()}};
_.e.onEditButtonClick=function(f){var S=document.getSelection();S&&this.contentEl&&(f.stopPropagation(),f.preventDefault(),S.selectAllChildren(this.contentEl),S.collapseToEnd())};
_.e.onContentDrop=function(f){var S=this;if(f.dataTransfer){f=_.m(f.dataTransfer.items);for(var B=f.next();!B.done;B=f.next())B=B.value,B.kind==="string"&&B.type.match("^text/plain")&&B.getAsString(function(G){var g;(g=S.contentEl)==null||g.appendChild(document.createTextNode(G))})}};
_.e.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.e.getUserGeneratedCommentText=function(){var f,S=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(f=this.contentEl)==null?void 0:f.textContent;return S?S.trim():""};
_.e.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.e.onEmojiSelect=function(f){this.ytdCommentInputEl.onEmojiSelect(f)};
_.y3.Object.defineProperties(vi.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.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 f;return!((f=this.currentCommentOption)==null||!f.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var f;if(_.H((f=this.currentCommentOption)==null?void 0:f.chipRenderer,_.Ds$)){var S;return _.H((S=this.currentCommentOption)==null?void 0:S.chipRenderer,_.Ds$)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var f,S;return((f=this.data)==null?0:f.commentOptionRenderers)?_.H((S=this.data)==null?void 0:S.commentOptionRenderers[this.superThanksSelectedTierEntity.index],CHu):void 0}var B,G;return((B=this.data)==null?0:B.commentOptionRenderers)?_.H((G=this.data)==null?void 0:G.commentOptionRenderers[this.currentCommentOptionIndex],CHu):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var f;return this.rendererBehavior.getSimpleString((f=this.data)==null?void 0:f.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var f;return this.rendererBehavior.getSimpleString((f=this.data)==null?void 0:f.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var f,S;return(S=_.H((f=this.data)==null?void 0:f.commentDialog,_.VTg))==null?void 0:S.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var f,S;return(S=_.H((f=this.data)==null?void 0:f.commentDialog,_.VTg))==null?void 0:S.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var f,S;return(S=_.H((f=this.data)==null?void 0:f.commentDialog,_.VTg))==null?void 0:S.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var f,S,B=(S=_.H((f=this.data)==null?void 0:f.commentDialog,_.VTg))==null?void 0:S.emojiPicker;if(!_.H(B,_.qT6)||!_.H(B,_.qT6).categories)return!1;f=function(b){return b.emojiPickerCategoryRenderer?b.emojiPickerCategoryRenderer.emojiIds&&b.emojiPickerCategoryRenderer.emojiIds.length>0:b.emojiPickerUpsellCategoryRenderer?b.emojiPickerUpsellCategoryRenderer.emojis&&b.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var G,g;return((G=_.H(B,_.qT6))==null?0:(g=G.categories)==null?0:g.find(f))?!0:!1}}});
vi.prototype.onEmojiSelect=vi.prototype.onEmojiSelect;vi.prototype.dataChanged=vi.prototype.dataChanged;vi.prototype.currentCommentOptionChanged=vi.prototype.currentCommentOptionChanged;_.N([_.r(_.Ek),_.Z("design:type",Object)],vi.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],vi.prototype,"rendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],vi.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.vF("#content-dom-if"),_.Z("design:type",_.EW)],vi.prototype,"contentDomIfEl",void 0);_.N([_.vF("#content-no-emojis"),_.Z("design:type",HTMLElement)],vi.prototype,"contentEl",void 0);_.N([_.vF("#container"),_.Z("design:type",HTMLElement)],vi.prototype,"containerEl",void 0);_.N([_.vF("#comment-chip-container"),_.Z("design:type",HTMLElement)],vi.prototype,"paidCommentChipContainerEl",void 0);_.N([_.vF("#text-input"),_.Z("design:type",HTMLElement)],vi.prototype,"editableTextEl",void 0);
_.N([_.vF("#emoji-button"),_.Z("design:type",HTMLElement)],vi.prototype,"emojiButtonEl",void 0);_.N([_.vF("#emoji-picker > yt-emoji-picker-renderer"),_.Z("design:type",Object)],vi.prototype,"emojiPickerEl",void 0);_.N([_.vF("#text-input > ytd-comment-input"),_.Z("design:type",Object)],vi.prototype,"ytdCommentInputEl",void 0);_.N([_.n(),_.Z("design:type",Object)],vi.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],vi.prototype,"currentCommentOptionIndex",void 0);
_.N([_.n({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:h_z}),_.Z("design:type",Object)],vi.prototype,"superThanksSelectedTierEntity",void 0);_.N([_.n(),_.Z("design:type",Object)],vi.prototype,"isEmojiPickerDisplayed",void 0);_.N([_.n(),_.Z("design:type",Object)],vi.prototype,"emojiManager",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],vi.prototype,"isUgcEmpty",void 0);
_.N([_.JO("currentCommentOption"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vi.prototype,"currentCommentOptionChanged",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vi.prototype,"dataChanged",null);_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],vi.prototype,"isEmojiYtdCommentInputEnabled",null);
_.N([_.k("data.title"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],vi.prototype,"title",null);_.N([_.k("data.authorText"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],vi.prototype,"channelName",null);_.N([_.k("data.commentOptionRenderers","currentCommentOption"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],vi.prototype,"shouldShowPaidCommentChipRenderer",null);
_.N([_.k("data.commentOptionRenderers","currentCommentOption"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],vi.prototype,"paidCommentChipRenderer",null);_.N([_.k("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],vi.prototype,"currentCommentOption",null);
_.N([_.k("data.defaultCommentText","superThanksSelectedTierEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],vi.prototype,"commentText",null);_.N([_.k("data.placeholderText"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],vi.prototype,"placeholderText",null);_.N([_.k("data.commentDialog.commentDialogRenderer.editableText"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],vi.prototype,"editableText",null);
_.N([_.k("data.commentDialog.commentDialogRenderer.emojiButton"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],vi.prototype,"emojiButton",null);_.N([_.k("data.commentDialog.commentDialogRenderer.emojiPicker"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],vi.prototype,"emojiPicker",null);
_.N([_.k("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],vi.prototype,"isEmojiButtonDisplayed",null);_.N([_.Vg("yt-emoji-select"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],vi.prototype,"onEmojiSelect",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],vi);
_.p(vi,"ytd-pdg-comment-preview-renderer",function(){if(EaY!==void 0)return EaY;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return EaY=f},{mode:2});var k0M;var K1=function(){var f=_.I.apply(this,arguments)||this;f.selected=!1;return f};
_.q(K1,_.I);_.e=K1.prototype;_.e.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.e.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.e.dataChanged=function(){this.data&&(_.zY(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.hO(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.AK(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.AK(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.e.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.e.onClick=function(){this.logClick()};
_.e.onKeyboardSelect=function(){_.ew(this.hostElement,"tap");this.onClick()};
_.e.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
K1.prototype.onClick=K1.prototype.onClick;K1.prototype.selectedChanged=K1.prototype.selectedChanged;K1.prototype.dataChanged=K1.prototype.dataChanged;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],K1.prototype,"componentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],K1.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.qx),_.Z("design:type",Object)],K1.prototype,"ironA11yKeysBehavior",void 0);
_.N([_.r(_.Ze),_.Z("design:type",Object)],K1.prototype,"ironSelectableBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],K1.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],K1.prototype,"shownThumbnail",void 0);_.N([_.n(),_.Z("design:type",Object)],K1.prototype,"basePriceText",void 0);_.N([_.n(),_.Z("design:type",Object)],K1.prototype,"purchaseCommand",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],K1.prototype,"selected",void 0);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],K1.prototype,"dataChanged",null);_.N([_.JO("selected"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],K1.prototype,"selectedChanged",null);_.N([_.Vg("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],K1.prototype,"onClick",null);
_.N([_.C({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],K1);
_.p(K1,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(k0M!==void 0)return k0M;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return k0M=f},{mode:1});var dk=function(){var f=_.I.apply(this,arguments)||this;f.selectedItemIndex=0;f.buyButtonDisabled=!1;return f};
_.q(dk,_.I);_.e=dk.prototype;
_.e.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]]"}}}}}};
_.e.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var f;var S=(f=_.H(this.data.colorSlider,UxM))==null?void 0:f.notches[this.selectedItemIndex].purchaseCommand}else{var B;S=(B=_.H(this.data.selectableItemButtons[this.selectedItemIndex],A5z))==null?void 0:B.purchaseCommand}if(S){f=_.H(S,_.VEX);f.productData||(f.productData={});var G;f.productData={pdgData:{commentMessageText:(G=this.commentPreviewRenderer)==null?void 0:G.getUserGeneratedCommentText()}};
_.ew(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(S)}}};
_.e.dataChanged=function(){if(this.data){_.I5.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.uB1(_.I5,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.I5.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var f;this.buyButtonDisabled=!((f=_.H(this.data.commentPreview,puM))==null||!f.placeholderText);this.updatePriceSelectorStatus();var S;if((S=this.data)==null?0:S.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;f=[];this.data.preloadImages&&(f=this.data.preloadImages);
f=f.map(function(B){return _.bF(B.thumbnails,1920)});
f=_.m(f);for(S=f.next();!S.done;S=f.next())(S=S.value)&&_.KB1(S).thenCatch(function(){_.Lg(Error("ml"))})}};
_.e.superThanksSelectedTierEntityChanged=function(){var f;(this==null?void 0:(f=this.superThanksSelectedTierEntity)==null?void 0:f.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.e.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.e.updatePriceSelectorStatus=function(){this.isColorSlider?(_.m9(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.m9(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.m9(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.m9(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.e.closeBuyFlow=function(){_.bW(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.e.onUserGeneratedContentChanged=function(){var f;this.buyButtonDisabled=!((f=this.commentPreviewRenderer)==null?0:f.getUserGeneratedCommentText())};
_.e.updateSelectedItemIndexFromBinding=function(f){this.selectedItemIndex=f.detail.value};
_.y3.Object.defineProperties(dk.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.disclaimerText)}}});
dk.prototype.onUserGeneratedContentChanged=dk.prototype.onUserGeneratedContentChanged;dk.prototype.closeBuyFlow=dk.prototype.closeBuyFlow;dk.prototype.selectedItemIndexChanged=dk.prototype.selectedItemIndexChanged;dk.prototype.superThanksSelectedTierEntityChanged=dk.prototype.superThanksSelectedTierEntityChanged;dk.prototype.dataChanged=dk.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],dk.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],dk.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],dk.prototype,"ytComponentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],dk.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],dk.prototype,"selectedItemIndex",void 0);_.N([_.n(),_.Z("design:type",Boolean)],dk.prototype,"isColorSlider",void 0);
_.N([_.n(),_.Z("design:type",Object)],dk.prototype,"buyButtonDisabled",void 0);_.N([_.n({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:h_z}),_.Z("design:type",Object)],dk.prototype,"superThanksSelectedTierEntity",void 0);_.N([_.vF("ytd-pdg-comment-preview-renderer"),_.Z("design:type",Object)],dk.prototype,"commentPreviewRenderer",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],dk.prototype,"ytdReduxBehavior",void 0);
_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],dk.prototype,"dataChanged",null);_.N([_.JO("superThanksSelectedTierEntity"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],dk.prototype,"superThanksSelectedTierEntityChanged",null);_.N([_.JO("selectedItemIndex"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],dk.prototype,"selectedItemIndexChanged",null);
_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],dk.prototype,"closeBuyFlow",null);_.N([_.Vg("ytd-pdg-user-generated-comment-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],dk.prototype,"onUserGeneratedContentChanged",null);_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],dk.prototype,"isDisclaimerTextShown",null);
_.N([_.C({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],dk);
_.p(dk,"yt-super-vod-buy-flow-content-renderer",function(){if(Ot2!==void 0)return Ot2;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Ot2=f},{mode:1});var naM;var iq=function(){var f=_.I.apply(this,arguments)||this;f.lottieAnimationRef={};return f};
_.q(iq,_.I);_.e=iq.prototype;_.e.created=function(){_.A5.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.Fc(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.e.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.ew(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.e.detached=function(){this.autoCloseJobId&&_.xJ.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.Fc(this,this.onPopupIronOverlayOpened))};
_.e.dataChanged=function(){var f=this;this.data&&this.data.autoCloseDelay&&(_.bW(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.Xd(_.xJ,function(){f.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.hO(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.e.onDOMLoadedLottie=function(){var f=this,S,B,G=Number((S=this.data)==null?void 0:(B=S.autoCloseDelay)==null?void 0:B.seconds)||0;this.fadeOutJobId=_.Xd(_.xJ,function(){f.lottiePlayerEl.classList.add("fadeout")},(G-.25)*1E3);
this.autoCloseJobId=_.Xd(_.xJ,function(){f.closePopup()},G*1E3)};
_.e.openPopup=function(){this.ironOverlayBehavior.open()};
_.e.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.bW(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.Xh(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.oy().resolve(_.S7).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.xJ.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.xJ.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.e.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var f,S;(f=this.lottieAnimationRef)==null||(S=f.lottieEl)==null||S.destroy();f=this.data.lottie;var B,G;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:f.url+"_"+Math.random(),path:f.url,autoplay:!0,loop:(G=(B=f.settings)==null?void 0:B.loop)!=null?G:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.y3.Object.defineProperties(iq.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var f,S;return!!((f=this.data)==null?0:(S=f.lottie)==null?0:S.url)}}});
iq.prototype.maybeInitializeLottie=iq.prototype.maybeInitializeLottie;iq.prototype.dataChanged=iq.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],iq.prototype,"rendererBehavior",void 0);_.N([_.r(_.uH),_.Z("design:type",Object)],iq.prototype,"ironOverlayBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],iq.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],iq.prototype,"lottiePlayerProps",void 0);
_.N([_.n(),_.Z("design:type",Object)],iq.prototype,"lottieAnimationRef",void 0);_.N([_.vF("ytd-lottie-player"),_.Z("design:type",HTMLElement)],iq.prototype,"lottiePlayerEl",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],iq.prototype,"dataChanged",null);_.N([_.k("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],iq.prototype,"hasLottieAnimation",null);
_.N([_.JO("data.lottie.url"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],iq.prototype,"maybeInitializeLottie",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],iq);
_.p(iq,"ytd-desktop-image-overlay-renderer",function(){if(naM!==void 0)return naM;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return naM=f},{mode:1});var sAZ;var Hi=function(){return _.I.apply(this,arguments)||this};
_.q(Hi,_.I);_.e=Hi.prototype;_.e.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"}}}}};
_.e.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",_.Fc(this,this.closePopup))};
_.e.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Fc(this,this.closePopup))};
_.e.dataChanged=function(){_.mU(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.H(this.data.header,I6O)&&(this.hasBackgroundBanner=!!_.H(this.data.header,I6O).backgroundBanner)};
_.e.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Fc(this,this.closePopup))};
_.e.closePopup=function(){this.data&&this.data.onCloseCommand&&_.RD(this.hostElement,[this.data.onCloseCommand])};
Hi.prototype.handleBuyflowSelectionSubmitted=Hi.prototype.handleBuyflowSelectionSubmitted;Hi.prototype.dataChanged=Hi.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Hi.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Hi.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Hi.prototype,"data",void 0);
_.N([_.n({value:!0,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Hi.prototype,"hasBackgroundBanner",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Hi.prototype,"dataChanged",null);_.N([_.Vg("yt-pdg-buy-flow-selection-submitted"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Hi.prototype,"handleBuyflowSelectionSubmitted",null);
_.N([_.C({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],Hi);
_.p(Hi,"ytd-pdg-buy-flow-renderer",function(){if(sAZ!==void 0)return sAZ;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return sAZ=f},{mode:1});var Duu;var qK=function(){var f=_.I.apply(this,arguments)||this;f.isOpen=!1;f.isPlaylistCreated=!1;return f};
_.q(qK,_.I);_.e=qK.prototype;_.e.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.e.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.ew(this.hostElement,"yt-refit")};
_.e.onCreateTap=function(){var f=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.RD(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(S,B){if(!_.K("killswitch_ep_in_create_playlist_response")&&(B==null?0:B.actions))for(S=_.m(B.actions),B=S.next();!B.done;B=S.next())B=B.value,_.H(B,_.DW)&&f.ytComponentBehavior.resolveCommand(B)}}]),this.isPlaylistCreated=!0)};
_.e.onKeydown=function(f){if(f.keyCode===13)this.onCreateTap()};
_.e.onServiceRequestCompleted=function(f){f.stopPropagation();_.bW(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.e.computePrivacyBadge=function(f){return f?[{metadataBadgeRenderer:f}]:[]};
qK.prototype.onServiceRequestCompleted=qK.prototype.onServiceRequestCompleted;qK.prototype.onKeydown=qK.prototype.onKeydown;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],qK.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],qK.prototype,"ytComponentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],qK.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],qK.prototype,"isOpen",void 0);
_.N([_.n(),_.Z("design:type",Object)],qK.prototype,"isPlaylistCreated",void 0);_.N([_.n({value:{REQUIRED_LABEL:_.Jf("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Jf("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.Z("design:type",Object)],qK.prototype,"addToStrings",void 0);_.N([_.n({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.Z("design:type",Array)],qK.prototype,"privacyBadge",void 0);
_.N([_.vF("#privacy-input"),_.Z("design:type",Object)],qK.prototype,"privacyInput",void 0);_.N([_.vF("#name-input"),_.Z("design:type",Object)],qK.prototype,"nameInput",void 0);_.N([_.Vg("keydown"),_.Z("design:type",Function),_.Z("design:paramtypes",[KeyboardEvent]),_.Z("design:returntype")],qK.prototype,"onKeydown",null);_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],qK.prototype,"onServiceRequestCompleted",null);
_.N([_.C({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],qK);
_.p(qK,"ytd-add-to-playlist-create-renderer",function(){if(Duu!==void 0)return Duu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Duu=f},{mode:1});var Iyu;var Uuu;var $B=function(){var f=_.I.apply(this,arguments)||this;f.transferState="TRANSFER_STATE_UNKNOWN";return f};
_.q($B,_.I);$B.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
$B.prototype.onCheckboxChange=function(f){var S=this;this.data&&_.NJ(this,"yt-playlist-checkbox-changed",function(){var B=_.lt(f).checked?S.data.addToPlaylistServiceEndpoint:S.data.removeFromPlaylistServiceEndpoint;B&&_.oy().resolve(_.S7).resolveCommand(B,{form:{element:S.hostElement}});_.K("dl_playlist_killswitch")||S.transferState!=="TRANSFER_STATE_UNKNOWN"&&S.transferState!=="TRANSFER_STATE_FAILED"&&S.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:S.data.playlistId,action:"ACTION_SYNC"}})},
100)};
$B.prototype.computeIconType=function(f){return f?"yt-icons:"+f.toLowerCase():null};
$B.prototype.dataChanged=$B.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],$B.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],$B.prototype,"data",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],$B.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],$B.prototype,"ytComponentBehavior",void 0);_.N([_.vF("#checkbox"),_.Z("design:type",HTMLInputElement)],$B.prototype,"checkbox",void 0);
_.N([_.n({selector:_.DK,selectorArgs:["data.playlistId"]}),_.Z("design:type",String)],$B.prototype,"transferState",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$B.prototype,"dataChanged",null);_.N([_.C({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],$B);
_.p($B,"ytd-playlist-add-to-option-renderer",function(){if(Uuu!==void 0)return Uuu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Uuu=f},{mode:1});_.Su(w2$);_.TD(w2$,"ytd-menu-title-renderer",{propNames:["data"]});var QC=function(){var f=_.I.apply(this,arguments)||this;f.addToStrings={ADD_TO_DROPDOWN_LABEL:_.Jf("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};f.closeButtonAriaLabel=_.Jf("SBOX_INAPPROPRIATE_CANCEL");f.dialog=_.K("desktop_add_to_playlist_renderer_dialog_popup");return f};
_.q(QC,_.I);_.e=QC.prototype;_.e.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"}}}};
_.e.onPopupOpened=function(){_.Rl(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.e.onPopupClosed=function(){_.Rl(this.playlists,"scrollable",!1)};
_.e.computeAriaLabel=function(){var f;if(this==null?0:(f=this.data)==null?0:f.actions){f=_.m(this.data.actions);for(var S=f.next();!S.done;S=f.next())if(S=S.value,S.menuTitleRenderer)return _.ac(S.menuTitleRenderer.title)}};
_.e.onTapClose=function(){_.bW(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.y3.Object.defineProperties(QC.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var f;if(this==null?0:(f=this.data)==null?0:f.actions){f=_.m(this.data.actions);for(var S=f.next();!S.done;S=f.next())if(S=S.value,S.menuTitleRenderer)return S.menuTitleRenderer}return!1}}});
QC.prototype.onPopupClosed=QC.prototype.onPopupClosed;QC.prototype.onPopupOpened=QC.prototype.onPopupOpened;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],QC.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Px.YtEventForwardingBehavior),_.Z("design:type",Object)],QC.prototype,"ytEventForwardingBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],QC.prototype,"ytRendererStamperBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],QC.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],QC.prototype,"addToStrings",void 0);_.N([_.n({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.Z("design:type",String)],QC.prototype,"ariaLabel",void 0);_.N([_.n(),_.Z("design:type",String)],QC.prototype,"closeButtonAriaLabel",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],QC.prototype,"dialog",void 0);
_.N([_.vF("#playlists"),_.Z("design:type",HTMLElement)],QC.prototype,"playlists",void 0);_.N([_.vF("ytd-add-to-playlist-create-renderer"),_.Z("design:type",Object)],QC.prototype,"createRenderer",void 0);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QC.prototype,"menuTitleRenderer",null);_.N([_.Vg("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],QC.prototype,"onPopupOpened",null);
_.N([_.Vg("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],QC.prototype,"onPopupClosed",null);_.N([_.C({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],QC);
_.p(QC,"ytd-add-to-playlist-renderer",function(){if(Iyu!==void 0)return Iyu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Iyu=f},{mode:1});var CQo;var YB=function(){var f=_.I.apply(this,arguments)||this;f.isPlaylistEditComplete=!1;f.isCollabEngagementDisabled=!1;f.closeButtonAriaLabel=_.Jf("SBOX_INAPPROPRIATE_CANCEL");f.saveButton={title:_.Jf("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"};f.onValueChanged=function(){f.updateSaveButtonState();f.computeCollabEngagementDisabled()};
return f};
_.q(YB,_.I);_.e=YB.prototype;_.e.attached=function(){this.JSC$18383_scroller&&(this.JSC$18383_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18383_scroller.attached&&typeof this.JSC$18383_scroller.attached==="function"&&this.JSC$18383_scroller.attached())};
_.e.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.e.onPopupClosed=function(){this.reset()};
_.e.close=function(){_.bW(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.e.onClickSave=function(){var f=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var S=[];this.nameInput.value!==null&&S.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&S.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var B=Number(this.privacyInput.value);isNaN(B)||S.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:B})}this.votingInput.value!==null&&(B=this.votingInput.value)&&S.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:B});if(S.length>0){var G;_.H((G=this.data)==null?void 0:G.updateSettingsEndpoint,_.nW).actions=S;var g;if((g=this.data)==null?0:g.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){f.close()}}}),this.isPlaylistEditComplete=!0}}};
_.e.computePrivacyBadge=function(f){return f?[{metadataBadgeRenderer:f}]:[]};
_.e.computeEditorData=function(f){var S,B;return f==null?void 0:(S=f.sections)==null?void 0:(B=S[0])==null?void 0:B.playlistSettingsEditorCasualSectionRenderer};
_.e.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.e.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}}}}}};
_.e.computeAriaLabel=function(){var f,S,B,G=(f=this.data)==null?void 0:(S=f.sections)==null?void 0:(B=S[0])==null?void 0:B.playlistSettingsEditorCasualSectionRenderer;return _.ac(G==null?void 0:G.title)};
_.e.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"}))};
_.e.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.e.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.e.isNameChanged=function(){var f,S,B;return(((f=this.editorData)==null?void 0:(S=f.name)==null?void 0:(B=S.textInputFormFieldRenderer)==null?void 0:B.value)||"")!==(this.nameInput.value||"")};
_.e.isDescriptionChanged=function(){var f,S,B;return(((f=this.editorData)==null?void 0:(S=f.description)==null?void 0:(B=S.textInputFormFieldRenderer)==null?void 0:B.value)||"")!==(this.descriptionInput.value||"")};
_.e.isPrivacyChanged=function(){var f,S,B,G,g,b,z,X;return((z=(f=this.editorData)==null?void 0:(S=f.privacy)==null?void 0:(B=S.dropdownFormFieldRenderer)==null?void 0:(G=B.dropdown)==null?void 0:(g=G.dropdownRenderer)==null?void 0:(b=g.entries)==null?void 0:b.find(function(w){var F;return w==null?void 0:(F=w.privacyDropdownItemRenderer)==null?void 0:F.isSelected}))==null?void 0:(X=z.privacyDropdownItemRenderer)==null?void 0:X.int32Value)!==this.privacyInput.value};
_.e.isVotingChanged=function(){var f,S,B,G,g,b,z,X;return((z=(f=this.editorData)==null?void 0:(S=f.voting)==null?void 0:(B=S.dropdownFormFieldRenderer)==null?void 0:(G=B.dropdown)==null?void 0:(g=G.dropdownRenderer)==null?void 0:(b=g.entries)==null?void 0:b.find(function(w){var F;return w==null?void 0:(F=w.privacyDropdownItemRenderer)==null?void 0:F.isSelected}))==null?void 0:(X=z.privacyDropdownItemRenderer)==null?void 0:X.int32Value)!==this.votingInput.value};
YB.prototype.onPopupClosed=YB.prototype.onPopupClosed;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],YB.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],YB.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.Px.YtEventForwardingBehavior),_.Z("design:type",Object)],YB.prototype,"ytEventForwardingBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],YB.prototype,"ytRendererStamperBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],YB.prototype,"data",void 0);_.N([_.n({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.Z("design:type",Array)],YB.prototype,"privacyBadge",void 0);_.N([_.n({computed:"computeEditorData(data)"}),_.Z("design:type",Object)],YB.prototype,"editorData",void 0);_.N([_.n(),_.Z("design:type",Object)],YB.prototype,"isPlaylistEditComplete",void 0);_.N([_.n(),_.Z("design:type",Object)],YB.prototype,"isCollabEngagementDisabled",void 0);
_.N([_.n({value:{REQUIRED_LABEL:_.Jf("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Jf("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.Z("design:type",Object)],YB.prototype,"addToStrings",void 0);_.N([_.n({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.Z("design:type",String)],YB.prototype,"ariaLabel",void 0);_.N([_.n(),_.Z("design:type",String)],YB.prototype,"closeButtonAriaLabel",void 0);
_.N([_.n(),_.Z("design:type",Object)],YB.prototype,"saveButton",void 0);_.N([_.vF("#name-input"),_.Z("design:type",Object)],YB.prototype,"nameInput",void 0);_.N([_.vF("#description-input"),_.Z("design:type",Object)],YB.prototype,"descriptionInput",void 0);_.N([_.vF("#privacy-input"),_.Z("design:type",Object)],YB.prototype,"privacyInput",void 0);_.N([_.vF("#voting-input"),_.Z("design:type",Object)],YB.prototype,"votingInput",void 0);
_.N([_.vF("#scroller"),_.Z("design:type",Object)],YB.prototype,"JSC$18383_scroller",void 0);_.N([_.Vg("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],YB.prototype,"onPopupClosed",null);_.N([_.n(),_.Z("design:type",Object)],YB.prototype,"onValueChanged",void 0);_.N([_.C({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],YB);
_.p(YB,"ytd-playlist-settings-editor-renderer",function(){if(CQo===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);CQo=f}f=CQo;return f},{mode:1});var px2;_.Dd("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var rk=function(){return _.I.apply(this,arguments)||this};
_.q(rk,_.I);_.e=rk.prototype;_.e.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}}}}}};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e.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 f=this.get("data.nextButton.buttonRenderer.navigationEndpoint");f&&(this.nextNavigationEndpoint=f,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.e.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 f={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",f)}}};
_.e.onPopupOpened=function(f){f.detail!==this&&f.detail!==this.hostElement||!_.K("enable_premium_voluntary_pause")||_.bW(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.e.onNextButtonTap=function(){var f=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);f&&this.ytdOpenPopupBehavior.openPopup(f)};
_.e.updateSelectedResponseIndexFromBinding=function(f){this.selectedResponseIndex=f.detail.value};
rk.prototype.onPopupOpened=rk.prototype.onPopupOpened;rk.prototype.onSelectedResponseIndexChange=rk.prototype.onSelectedResponseIndexChange;rk.prototype.dataChanged=rk.prototype.dataChanged;_.N([_.r(_.a5),_.Z("design:type",Object)],rk.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],rk.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],rk.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],rk.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Number)],rk.prototype,"selectedResponseIndex",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],rk.prototype,"dataChanged",null);_.N([_.JO("selectedResponseIndex"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],rk.prototype,"onSelectedResponseIndexChange",null);
_.N([_.Vg("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],rk.prototype,"onPopupOpened",null);_.N([_.C({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],rk);
_.p(rk,"ytd-red-cancel-survey-renderer",function(){if(px2!==void 0)return px2;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return px2=f},{mode:1});var AHu;var jU=function(){var f=_.I.apply(this,arguments)||this;f.closeButtonAriaLabel=_.Jf("SBOX_INAPPROPRIATE_CANCEL");return f};
_.q(jU,_.I);jU.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
jU.prototype.onClickClose=function(){_.bW(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],jU.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],jU.prototype,"rendererStamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],jU.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",String)],jU.prototype,"closeButtonAriaLabel",void 0);_.N([_.C({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],jU);
_.p(jU,"ytd-search-filter-options-dialog-renderer",function(){if(AHu!==void 0)return AHu;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return AHu=f},{mode:1});var NnX;var FWO=function(){return function(f){f=f.availabilityType;return f===void 0||f==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||f==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var O9=function(){var f=_.I.apply(this,arguments)||this;f.qualityOptions=[];f.upsellOptions=[];f.showUpsellSection=!1;f.darkerDarkTheme=_.K("web_darker_dark_theme");f.rememberSettingsChecked=!1;return f};
_.q(O9,_.I);_.e=O9.prototype;_.e.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}}}}};
_.e.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.e.updateQualityOptions=function(){if(this.formats===void 0)_.bW(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var f=[],S=[];this.showUpsellSection=!1;for(var B=_.m(this.formats),G=B.next();!G.done;G=B.next())(G=G.value)&&(G.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?S.push(G):f.push(G));f.length&&(this.qualityOptions=T9u(f));S.length&&(this.showUpsellSection=!0,this.upsellOptions=T9u(S))}};
_.e.updateRememberString=function(){if(this.downloadQualityPickerEntity)var f=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var S;f=(S=this.data)==null?void 0:S.premiumRememberSettingString}else{var B;f=(B=this.data)==null?void 0:B.rememberSettingString}f=f===void 0?_.Jf("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):f;this.rememberSettingsCheckboxRenderer={title:_.B2(f),disabled:!1}};
_.e.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.y3.Object.defineProperties(O9.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var f;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(f=this.data)==null?void 0:f.qualityFormats}}});
O9.prototype.updateRememberString=O9.prototype.updateRememberString;O9.prototype.updateQualityOptions=O9.prototype.updateQualityOptions;O9.prototype.dataChanged=O9.prototype.dataChanged;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],O9.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],O9.prototype,"ytComponentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],O9.prototype,"data",void 0);
_.N([_.r(_.Ek),_.Z("design:type",Object)],O9.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Boolean)],O9.prototype,"selectedUpsellQuality",void 0);_.N([_.n({computed:"computeIcon_(data.premiumIcon)",value:""}),_.Z("design:type",String)],O9.prototype,"premiumIcon",void 0);_.N([_.n({selector:z02,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.Z("design:type",Object)],O9.prototype,"downloadQualityPickerEntity",void 0);
_.N([_.n(),_.Z("design:type",Array)],O9.prototype,"qualityOptions",void 0);_.N([_.n(),_.Z("design:type",Array)],O9.prototype,"upsellOptions",void 0);_.N([_.n(),_.Z("design:type",Object)],O9.prototype,"showUpsellSection",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],O9.prototype,"darkerDarkTheme",void 0);_.N([_.n(),_.Z("design:type",Object)],O9.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.N([_.vF("#remember-settings"),_.Z("design:type",HTMLInputElement)],O9.prototype,"rememberSettingsCheckbox",void 0);_.N([_.n(),_.Z("design:type",Object)],O9.prototype,"rememberSettingsChecked",void 0);_.N([_.n(),_.Z("design:type",Function)],O9.prototype,"onRememberSettingsCheckedChanged",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],O9.prototype,"dataChanged",null);
_.N([_.JO("downloadQualityPickerEntity"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],O9.prototype,"updateQualityOptions",null);_.N([_.JO("selectedUpsellQuality"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],O9.prototype,"updateRememberString",null);_.N([_.C({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],O9);
_.p(O9,"ytd-download-quality-selector-content",function(){if(NnX!==void 0)return NnX;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return NnX=f},{mode:1});var MLn;var xB=function(){var f=_.I.apply(this,arguments)||this;f.selectedUpsellQuality=!1;f.qualityOptions=[];f.darkerDarkTheme=_.K("web_darker_dark_theme");f.useUpsellDismissAlternate=_.K("use_not_now_dl_upsell_dismiss_cta");f.shouldShowAlternateUpsellDimiss=!1;f.rememberSettings=!1;f.rememberSettingsChecked=!1;f.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};f.rememberSettingsCheckedChanged=function(S){f.rememberSettingsChecked=S};
return f};
_.q(xB,_.I);_.e=xB.prototype;
_.e.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.B2(_.Jf("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.B2(_.Jf("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.B2(_.Jf("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.B2(_.Jf("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.e.updateQualityOptions=function(){this.formats===void 0?_.bW(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=T9u(this.formats)};
_.e.onQualityOptionsSelect=function(f){if(this.qualityOptions&&f){f!==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 S=_.m(this.qualityOptions.entries()),B=S.next();!B.done;B=
S.next()){B=_.m(B.value);var G=B.next().value;B=B.next().value;var g=void 0,b=void 0;if(((g=B)==null?void 0:(b=g.settingsRadioOptionRenderer)==null?void 0:b.id)===f){this.selectedQualityIndex=G;f=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((f=this.formats[G])==null?void 0:f.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.e.onClickSubmit=function(){var f;if((f=this.downloadButtonRenderer)==null||!f.isDisabled){var S,B;f=(B=(S=this.data)==null?void 0:S.onSubmitEndpoint)!=null?B:{};var G,g;if(this.formats&&(((G=_.H(f,_.V5))==null?0:G.videoId)||((g=_.H(f,_.JD))==null?0:g.playlistId))){var b,z,X,w,F,V;S={formatType:(w=(b=this.formats)==null?void 0:(z=b[(X=this.selectedQualityIndex)!=null?X:0])==null?void 0:z.format)!=null?w:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(F=this.getOfflineEndpoint(f))==null?void 0:(V=F.actionParams)==null?void 0:V.settingsAction)};this.getOfflineEndpoint(f).actionParams=S;this.ytComponentBehavior.resolveCommand(f)}_.bW(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.e.onClickUpsell=function(){var f;if((f=this.upsellButtonRenderer)==null||!f.isDisabled){var S,B;f=(B=(S=this.data)==null?void 0:S.upsellEndpoint)!=null?B:{};this.ytComponentBehavior.resolveCommand(f);_.bW(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);S="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var G,g,b,z;S=(z=(G=this.formats)==null?void 0:(g=G[(b=this.selectedQualityIndex)!=null?b:0])==null?void 0:g.format)!=null?z:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:S}})}};
_.e.onClickClose=function(){_.bW(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.e.getOfflineSettingsAction=function(f,S){return f?S===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":S:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.e.getOfflineEndpoint=function(f){return _.H(f,_.V5)?_.H(f,_.V5):_.H(f,_.JD)};
_.y3.Object.defineProperties(xB.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.B2(_.Jf("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var f;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(f=this.data)==null?void 0:f.qualityFormats}}});
xB.prototype.updateQualityOptions=xB.prototype.updateQualityOptions;xB.prototype.dataChanged=xB.prototype.dataChanged;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],xB.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],xB.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],xB.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],xB.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],xB.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Number)],xB.prototype,"selectedQualityIndex",void 0);_.N([_.n(),_.Z("design:type",Object)],xB.prototype,"selectedUpsellQuality",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],xB.prototype,"ytdReduxBehavior",void 0);
_.N([_.n({selector:z02,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.Z("design:type",Object)],xB.prototype,"downloadQualityPickerEntity",void 0);_.N([_.n(),_.Z("design:type",Array)],xB.prototype,"qualityOptions",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],xB.prototype,"darkerDarkTheme",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],xB.prototype,"useUpsellDismissAlternate",void 0);
_.N([_.n(),_.Z("design:type",Object)],xB.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.N([_.n(),_.Z("design:type",Object)],xB.prototype,"downloadButtonRenderer",void 0);_.N([_.n(),_.Z("design:type",Object)],xB.prototype,"upsellButtonRenderer",void 0);_.N([_.n(),_.Z("design:type",Object)],xB.prototype,"cancelButtonRenderer",void 0);_.N([_.n(),_.Z("design:type",Object)],xB.prototype,"upsellCancelButtonRenderer",void 0);_.N([_.n(),_.Z("design:type",Object)],xB.prototype,"rememberSettings",void 0);
_.N([_.n(),_.Z("design:type",Object)],xB.prototype,"rememberSettingsChecked",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xB.prototype,"dataChanged",null);_.N([_.JO("downloadQualityPickerEntity"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xB.prototype,"updateQualityOptions",null);_.N([_.C({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],xB);
_.p(xB,"ytd-download-quality-selector-renderer",function(){if(MLn!==void 0)return MLn;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return MLn=f},{mode:1});var ZtO;var E9=function(){var f=_.I.apply(this,arguments)||this;f.darkerDarkTheme=_.K("web_darker_dark_theme");return f};
_.q(E9,_.I);E9.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
E9.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"}}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],E9.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],E9.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],E9.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],E9.prototype,"darkerDarkTheme",void 0);_.N([_.n({computed:"computeIcon_(data.infoIcon)"}),_.Z("design:type",Object)],E9.prototype,"infoIcon",void 0);
_.N([_.n({computed:"computeIcon_(data.warningIcon)"}),_.Z("design:type",Object)],E9.prototype,"warningIcon",void 0);_.N([_.C({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],E9);
_.p(E9,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(ZtO!==void 0)return ZtO;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return ZtO=f},{mode:1});var tLz;var L1=function(){var f=_.I.apply(this,arguments)||this;f.darkerDarkTheme=_.K("web_darker_dark_theme");return f};
_.q(L1,_.I);L1.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
L1.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"}}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],L1.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],L1.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],L1.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],L1.prototype,"darkerDarkTheme",void 0);_.N([_.C({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],L1);
_.p(L1,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(tLz!==void 0)return tLz;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return tLz=f},{mode:1});var ut$;var kB=function(){var f=_.I.apply(this,arguments)||this;f.darkerDarkTheme=_.K("web_darker_dark_theme");return f};
_.q(kB,_.I);kB.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
kB.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"}}}}};
kB.prototype.onServiceRequestSentOrCompleted=function(f,S){S&&S.actions&&S.actions.length>0&&_.bW(this.hostElement,"yt-close-popup-action",[this.is])};
kB.prototype.onServiceRequestSentOrCompleted=kB.prototype.onServiceRequestSentOrCompleted;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],kB.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],kB.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],kB.prototype,"darkerDarkTheme",void 0);_.N([_.n(),_.Z("design:type",Object)],kB.prototype,"data",void 0);
_.N([_.Vg("yt-service-request-completed"),_.Vg("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.cw]),_.Z("design:returntype")],kB.prototype,"onServiceRequestSentOrCompleted",null);_.N([_.C({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],kB);
_.p(kB,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(ut$!==void 0)return ut$;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return ut$=f},{mode:1});var ayO;var n1=function(){var f=_.I.apply(this,arguments)||this;f.darkerDarkTheme=_.K("web_darker_dark_theme");f.submitButtonDisabled=!0;return f};
_.q(n1,_.I);_.e=n1.prototype;_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.e.onDataChanged=function(){var f,S,B;if(((f=this.data)==null?void 0:(S=f.confirmButton)==null?void 0:(B=S.buttonRenderer)==null?void 0:B.isDisabled)!==void 0){var G,g,b;this.submitButtonDisabled=(G=this.data)==null?void 0:(g=G.confirmButton)==null?void 0:(b=g.buttonRenderer)==null?void 0:b.isDisabled}};
_.e.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.e.updateSubmitButtonDisabledFromBinding=function(f){this.submitButtonDisabled=f.detail.value};
_.e.updateSubmitButtonDisabledFromConfirmCheckbox=function(f){this.submitButtonDisabled=!f.detail.value};
n1.prototype.onDataChanged=n1.prototype.onDataChanged;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],n1.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],n1.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],n1.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],n1.prototype,"darkerDarkTheme",void 0);
_.N([_.n(),_.Z("design:type",Object)],n1.prototype,"submitButtonDisabled",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],n1.prototype,"onDataChanged",null);_.N([_.C({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],n1);
_.p(n1,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(ayO!==void 0)return ayO;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return ayO=f},{mode:1});var yHe;var s9=function(){return _.I.apply(this,arguments)||this};
_.q(s9,_.I);_.y3.Object.defineProperties(s9.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var f,S,B;return((f=this.data)==null?void 0:f.title)+" "+((S=this.data)==null?void 0:S.metadataPrimary)+" "+((B=this.data)==null?void 0:B.metadataSecondary)}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],s9.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],s9.prototype,"ytComponentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],s9.prototype,"data",void 0);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],s9.prototype,"ariaLabel",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],s9);
_.p(s9,"ytd-compact-product-list-item-renderer",function(){if(yHe!==void 0)return yHe;var f=document.createElement("template");_.Y(f,'\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>');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return yHe=f},{mode:1});var WYu;var Dq=function(){return _.I.apply(this,arguments)||this};
_.q(Dq,_.I);Dq.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]]"}}}}}};
_.y3.Object.defineProperties(Dq.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Dq.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Dq.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Dq.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Dq.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],Dq);
_.p(Dq,"ytd-compact-product-list-renderer",function(){if(WYu!==void 0)return WYu;var f=document.createElement("template");_.Y(f,'\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>');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return WYu=f},{mode:1});var cHM;var IG=function(){var f=_.I.apply(this,arguments)||this;f.darkerDarkTheme=_.K("web_darker_dark_theme");return f};
_.q(IG,_.I);_.e=IG.prototype;_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.e.getBackgroundUrl=function(){var f=this.get("data.headerImage.thumbnails");return f?"url("+_.bF(f,this.hostElement.clientWidth)+")":""};
_.e.onDataChanged=function(){var f=this.getBackgroundUrl();f&&(this.header.style.backgroundImage=f);f=_.xc();var S=_.Of(),B=this.get("data.trackingParams");B&&S&&f&&_.Af(f,S,_.Ye(B));f=_.m(this.hostElement.querySelectorAll("yt-img-shadow"));for(S=f.next();!S.done;S=f.next())S.value.onShow()};
_.e.onPopupClosed=function(f){_.lt(f).localName==="ytd-membership-post-cancel-renderer"&&_.bW(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
IG.prototype.onPopupClosed=IG.prototype.onPopupClosed;IG.prototype.onDataChanged=IG.prototype.onDataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],IG.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],IG.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],IG.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],IG.prototype,"darkerDarkTheme",void 0);
_.N([_.vF("#header"),_.Z("design:type",HTMLDivElement)],IG.prototype,"header",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],IG.prototype,"onDataChanged",null);_.N([_.Vg("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],IG.prototype,"onPopupClosed",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],IG);
_.p(IG,"ytd-membership-post-cancel-renderer",function(){if(cHM!==void 0)return cHM;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return cHM=f},{mode:1});var ly$;var U9=function(){var f=_.I.apply(this,arguments)||this;f.darkerDarkTheme=_.K("web_darker_dark_theme");return f};
_.q(U9,_.I);U9.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
U9.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],U9.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],U9.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],U9.prototype,"darkerDarkTheme",void 0);_.N([_.vF("ytd-feedback-survey-renderer"),_.Z("design:type",Object)],U9.prototype,"feedbackSurveyRenderer",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],U9);
_.p(U9,"ytd-sponsorship-confirm-cancel-content",function(){if(ly$!==void 0)return ly$;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return ly$=f},{mode:1});var fDu;var C1=function(){var f=_.I.apply(this,arguments)||this;f.darkerDarkTheme=_.K("web_darker_dark_theme");f.maybeSubmitFeedback=function(){f.content&&f.content.maybeSubmitFeedback()};
return f};
_.q(C1,_.I);_.e=C1.prototype;_.e.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.e.onYtPopupOpened=function(f,S){S===this&&this.data&&this.data.onOpenCommands&&_.Xh(this.hostElement,this.data.onOpenCommands,this.hostElement);_.bW(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.e.onYtPopupClosed=function(f,S){(S&&S.canceled===!0||S&&S.canceled===!1&&S.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.Xh(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.e.onYtServiceRequestCompleted=function(){_.bW(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.e.onYtServiceRequestError=function(f){_.g5(this.hostElement,f.detail.error.message)};
_.e.onDataChanged=function(){if(this.isAttached){var f=this.backgroundUrl;f&&(_.m9(this.hostElement).querySelector("#header").style.backgroundImage=f)}};
_.y3.Object.defineProperties(C1.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var f=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return f?"url("+_.bF(f,this.hostElement.clientWidth)+")":""}}});
C1.prototype.onDataChanged=C1.prototype.onDataChanged;C1.prototype.onYtServiceRequestError=C1.prototype.onYtServiceRequestError;C1.prototype.onYtServiceRequestCompleted=C1.prototype.onYtServiceRequestCompleted;C1.prototype.onYtPopupClosed=C1.prototype.onYtPopupClosed;C1.prototype.onYtPopupOpened=C1.prototype.onYtPopupOpened;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],C1.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],C1.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],C1.prototype,"data",void 0);_.N([_.n({value:function(){return _.Jf("SBOX_INAPPROPRIATE_CANCEL")}}),
_.Z("design:type",String)],C1.prototype,"closeButtonAriaLabel",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],C1.prototype,"darkerDarkTheme",void 0);_.N([_.vF("#scrollable"),_.Z("design:type",Object)],C1.prototype,"scrollable",void 0);_.N([_.vF("ytd-sponsorship-confirm-cancel-content"),_.Z("design:type",Object)],C1.prototype,"content",void 0);
_.N([_.Vg("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],C1.prototype,"onYtPopupOpened",null);_.N([_.Vg("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],C1.prototype,"onYtPopupClosed",null);
_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],C1.prototype,"onYtServiceRequestCompleted",null);_.N([_.Vg("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],C1.prototype,"onYtServiceRequestError",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],C1.prototype,"onDataChanged",null);
_.N([_.C({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],C1);
_.p(C1,"ytd-sponsorship-confirm-cancel-renderer",function(){if(fDu!==void 0)return fDu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return fDu=f},{mode:_.X_("kevlar_poly_si_batch_j081")?1:2});var oMu;var p1=function(){var f=_.I.apply(this,arguments)||this;f.darkerDarkTheme=_.K("web_darker_dark_theme");return f};
_.q(p1,_.I);p1.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],p1.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],p1.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],p1.prototype,"darkerDarkTheme",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],p1);
_.p(p1,"ytd-sponsorships-celebration-content",function(){if(oMu!==void 0)return oMu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return oMu=
f},{mode:1});var Swu;var BKo=_.f4(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),Ac=function(){var f=_.I.apply(this,arguments)||this;f.scriptsAppended=!1;f.buttonOverrides={type:"tonal",style:"overlay-dark"};return f};
_.q(Ac,_.I);_.e=Ac.prototype;
_.e.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:_.K("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}}}}}};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e.onDataChanged=function(){var f;(f=this.header)==null||f.style.setProperty("background-color",this.backgroundColor);if(f=this.headerImageUrl){var S;(S=this.header)==null||S.style.setProperty("background-image",f)}S=_.xc(4);f=_.Of(4);var B=this.get("data.trackingParams");if(B&&f&&S){var G=_.Ye(B);_.Af(S,f,G);_.K("combine_ve_grafts")?_.ik().graftServerVe(B,f,4):_.Af(S,f,G)}S=_.m(this.hostElement.querySelectorAll("yt-img-shadow"));for(f=S.next();!f.done;f=S.next())f.value.onShow();if(S=this.get("data.gtmId"))_.Oj(S,
_.nL("GL","")),this.setupConversionTracking()};
_.e.setupConversionTracking=function(){if(!this.scriptsAppended){var f=document.createElement("script");var S=_.Da(BKo.join(""));_.UQ(f,S);document.head.appendChild(f);f=document.createElement("noscript");f.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(f);this.scriptsAppended=!0}};
_.e.onPopupClosed=function(f){if(_.lt(f).localName==="ytd-sponsorships-celebration-renderer"){_.bW(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var S;this.data&&((S=this.data)==null?0:S.dismissCommand)&&_.JZ.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.y3.Object.defineProperties(Ac.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var f=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.AK(f)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var f=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return f?"url("+_.bF(f,this.hostElement.getBoundingClientRect().width)+")":""}}});
Ac.prototype.onPopupClosed=Ac.prototype.onPopupClosed;Ac.prototype.onDataChanged=Ac.prototype.onDataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Ac.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Ac.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Ac.prototype,"data",void 0);_.N([_.vF("#header"),_.Z("design:type",HTMLElement)],Ac.prototype,"header",void 0);
_.N([_.n(),_.Z("design:type",Object)],Ac.prototype,"scriptsAppended",void 0);_.N([_.n(),_.Z("design:type",Object)],Ac.prototype,"buttonOverrides",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ac.prototype,"onDataChanged",null);_.N([_.Vg("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Ac.prototype,"onPopupClosed",null);
_.N([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],Ac);
_.p(Ac,"ytd-sponsorships-celebration-renderer",function(){if(Swu!==void 0)return Swu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Swu=f},{mode:1});var Gf2;var NK=function(){var f=_.I.apply(this,arguments)||this;f.isToggleChecked=!1;return f};
_.q(NK,_.I);NK.prototype.onDataChanged=function(){var f;this.isToggleChecked=((f=this.data)==null?void 0:f.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
NK.prototype.close=function(){var f;((f=this.data)==null?0:f.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
NK.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var f,S=_.H((f=this.data)==null?void 0:f.switchButton,Nxz);S&&(this.isToggleChecked&&S.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(S.switchOnInnertubeCommand),!this.isToggleChecked&&S.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(S.switchOffInnertubeCommand))};
NK.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
NK.prototype.onDataChanged=NK.prototype.onDataChanged;_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],NK.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],NK.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],NK.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],NK.prototype,"isToggleChecked",void 0);_.N([_.n({value:_.Jf("CLOSE")}),_.Z("design:type",String)],NK.prototype,"closeButtonAriaLabel",void 0);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NK.prototype,"onDataChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],NK);
_.p(NK,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(Gf2!==void 0)return Gf2;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Gf2=f},{mode:1});var gMz;var MK=function(){return _.I.apply(this,arguments)||this};
_.q(MK,_.I);_.e=MK.prototype;_.e.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"}}}}};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e.detached=function(){this.playerElement.stop()};
_.e.onYtServiceRequestCompleted=function(){_.bW(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.e.onYtServiceRequestError=function(f){_.g5(this.hostElement,f.detail.error.message)};
_.e.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.e.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.e.getTier=function(f,S){return!f||!f.tiers||S<0?null:_.H(f.tiers[S],uYz)};
_.e.moreThanOne=function(f){return!!(f&&f.length>1)};
_.e.tierOverviewTap=function(f){var S=this;this.selectedTier=f.model.index;_.ui(this,function(){_.ew(S.hostElement,"yt-refit")})};
_.e.computeSelectedClass=function(f,S){return this.isSelected(f,S)?"selected":""};
_.e.computeButtonAriaPressed=function(f,S){return this.isSelected(f,S)?"true":"false"};
_.e.isSelected=function(f,S){return f===S};
_.e.onDataChanged=function(){_.m9(this.hostElement).querySelector("#header-overlay").style.visibility="";_.m9(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 f=_.m(this.hostElement.querySelectorAll("yt-img-shadow")),
S=f.next();!S.done;S=f.next())S.value.onShow();var B;this.set("selectedTier",(B=this.get("data.targetTierIndex"))!=null?B:0);var G;(f=(G=this.data)==null?void 0:G.onVisible)&&this.ytComponentBehavior.resolveCommand(f)};
_.e.initializeVe=function(f){var S=_.xc(),B=_.Of(),G=this.get("data.trackingParams");B&&S&&(this.screenLayer=4,S=_.Ij(_.zCV)(void 0,69877,{clientScreenNonce:S,visualElement:B},void 0,void 0,void 0),_.Lk(S,69877,4),B=_.Of(4),G&&B&&(G=_.Ye(G),_.Af(S,B,G),f&&(this.offerVideoVe=_.Eo(74659),_.Af(S,G,this.offerVideoVe))))};
_.e.setHeaderBackground=function(){var f=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.m9(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.AK(f);if(f=this.getHeaderImage())f=_.bF(f,screen.width),_.m9(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+f+")"};
_.e.getHeaderImage=function(){var f=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&f?f:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.e.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.e.setupVideoPlayer=function(f){var S=this,B,G,g,b;return _.R(function(z){if(z.nextAddress==1)return B=S.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),G=S.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.K("kevlar_player_update_killswitch")?S.playerElement.update({args:{autoplay:B,video_id:f,player_params:G}}):S.playerElement.loadVideoWithPlayerVars({autoplay:B,video_id:f,player_params:G}),
_.h(z,S.playerElement.getPlayerPromise(),2);g=z.yieldResult;g.addEventListener("onStateChange",function(X){S.onPlayerStateChange(X)});
g.setScreenLayer(S.screenLayer);(b=_.xc(4))&&S.offerVideoVe&&_.ME(b,S.offerVideoVe);B&&(S.pauseOtherPlayers(),S.playerElement.focusOnPlayer(),S.playerElement.getPlayer().hideControls(),_.q6(_.xJ,function(){S.fadeOutHeaderOverlay()},4E3));
_.TT(z)})};
_.e.onPlayerStateChange=function(f){f===1?this.backgroundPlayerElement&&(f=this.backgroundPlayerElement.player_.getPlayerState(),f!==1&&f!==3||this.backgroundPlayerElement.pause()):f===0&&(_.m9(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.m9(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.e.fadeOutHeaderOverlay=function(){_.m9(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.e.onHeaderTap=function(){if(this.offerVideo){_.m9(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var f;((f=this.playerElement.player_)==null?void 0:f.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(f=_.xc(4))&&this.offerVideoVe&&_.uW(f,this.offerVideoVe)}};
_.e.getBackgroundImageLayerClass=function(f){return f?"background-image-layer-with-video":""};
_.e.getHeaderClass=function(f){return f?"header-with-video":""};
_.e.getHeaderOverlayClass=function(f){return f?"header-overlay-with-video":""};
_.e.getTitleContainerClass=function(f,S){return f?"title-container-with-video":S?"title-container-without-video-flexible":"title-container-without-video"};
_.e.tierTitleDisplayStatus=function(f){return this.moreThanOne(f)?"hide":"show"};
_.e.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.oy().resolve(_.N_).getPlayerElement():this.backgroundPlayerElement=_.B8();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var f=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=f===1||f===3;this.backgroundPlayerElement.pause()}};
_.e.isMiniplayerActive=function(){return _.oy().resolve(_.N_).isMiniplayerActive()};
_.e.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AW("selected-tier-changed",this.selectedTier))};
MK.prototype.selectedTierChangedForBinding=MK.prototype.selectedTierChangedForBinding;MK.prototype.onDataChanged=MK.prototype.onDataChanged;MK.prototype.onYtPopupClosed=MK.prototype.onYtPopupClosed;MK.prototype.onYtPopupOpened=MK.prototype.onYtPopupOpened;MK.prototype.onYtServiceRequestError=MK.prototype.onYtServiceRequestError;MK.prototype.onYtServiceRequestCompleted=MK.prototype.onYtServiceRequestCompleted;
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],MK.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],MK.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],MK.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],MK.prototype,"data",void 0);_.N([_.n({value:0}),_.Z("design:type",Number)],MK.prototype,"selectedTier",void 0);
_.N([_.n({value:""}),_.Z("design:type",String)],MK.prototype,"offerVideo",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],MK.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.N([_.n({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.Sm(this)}}),
_.Z("design:type",String)],MK.prototype,"playerId",void 0);_.N([_.vF("tp-yt-paper-dialog-scrollable"),_.Z("design:type",Object)],MK.prototype,"scrollable",void 0);_.N([_.vF("ytd-sponsorships-tier-renderer"),_.Z("design:type",Object)],MK.prototype,"tierRenderer",void 0);_.N([_.vF("#player"),_.Z("design:type",Object)],MK.prototype,"playerElement",void 0);
_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],MK.prototype,"onYtServiceRequestCompleted",null);_.N([_.Vg("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],MK.prototype,"onYtServiceRequestError",null);
_.N([_.Vg("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],MK.prototype,"onYtPopupOpened",null);_.N([_.Vg("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],MK.prototype,"onYtPopupClosed",null);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],MK.prototype,"onDataChanged",null);
_.N([_.JO("selectedTier"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],MK.prototype,"selectedTierChangedForBinding",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],MK);
_.p(MK,"ytd-sponsorships-offer-renderer",function(){if(gMz!==void 0)return gMz;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return gMz=f},{mode:_.X_("kevlar_poly_si_batch_j077")?1:2});var eRO;var Zq=function(){var f=_.I.apply(this,arguments)||this;f.buttonOverrides={type:"filled",style:"mono"};return f};
_.q(Zq,_.I);Zq.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}}}}}};
Zq.prototype.backgroundColorChanged=function(){var f,S,B,G=(S=_.H((f=this.data)==null?void 0:f.content,a6u))==null?void 0:(B=S.backgroundColor)==null?void 0:B.backgroundColor;G&&(f=_.pn(G),_.m9(this.hostElement).querySelector("#banner").style.backgroundColor=f,_.m9(this.hostElement).querySelector("#abstract-art").style.backgroundColor=f)};
Zq.prototype.attached=function(){this.JSC$18469_scroller&&(this.JSC$18469_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18469_scroller.attached&&typeof this.JSC$18469_scroller.attached==="function"&&this.JSC$18469_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Zq.prototype.backgroundColorChanged=Zq.prototype.backgroundColorChanged;_.N([_.n(),_.Z("design:type",Object)],Zq.prototype,"data",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Zq.prototype,"ytRendererstamperBehavior",void 0);_.N([_.vF("#scroller"),_.Z("design:type",Object)],Zq.prototype,"JSC$18469_scroller",void 0);_.N([_.n(),_.Z("design:type",Object)],Zq.prototype,"buttonOverrides",void 0);
_.N([_.JO("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Zq.prototype,"backgroundColorChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],Zq);
_.p(Zq,"ytd-sponsorships-promotion-celebration-renderer",function(){if(eRO!==void 0)return eRO;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return eRO=f},{mode:_.X_("kevlar_poly_si_batch_j077")?1:2});var bpB;var myB;var tc=function(){return _.I.apply(this,arguments)||this};
_.q(tc,_.I);tc.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
tc.prototype.computeIsInitiallyChecked=function(f){return f===1};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],tc.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],tc.prototype,"data",void 0);_.N([_.vF("#checkbox"),_.Z("design:type",Object)],tc.prototype,"checkbox",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],tc);
_.p(tc,"ytd-subscription-toggle-option-renderer",function(){if(myB!==void 0)return myB;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return myB=f},{mode:1});var uq=function(){var f=_.I.apply(this,arguments)||this;f.darkerDarkTheme=_.K("web_darker_dark_theme");f.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return f};
_.q(uq,_.I);uq.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"}}}};
uq.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
uq.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var f=_.m9(this.hostElement).querySelector("#options").selected;f=this.data.options[f].subscriptionRadioOptionRenderer.serviceEndpoint;var S=_.m9(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");S&&f&&f.modifyChannelNotificationPreferenceEndpoint&&(S=S.getValue())&&(f.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[S]);_.oy().resolve(_.S7).resolveCommand(f,{form:{element:this.hostElement}});
_.bW(this.hostElement,"yt-close-popup-action")};
_.y3.Object.defineProperties(uq.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var f=this.data.options,S=0;S<f.length;S++){var B=f[S].subscriptionRadioOptionRenderer;if(B&&B.selected)return S}return null}}});
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],uq.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],uq.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.Px.YtEventForwardingBehavior),_.Z("design:type",Object)],uq.prototype,"eventForwardingBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],uq.prototype,"ytRendererBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],uq.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],uq.prototype,"darkerDarkTheme",void 0);_.N([_.k("data.options"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],uq.prototype,"initialIndex",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],uq);
_.p(uq,"ytd-subscription-notification-options-renderer",function(){if(bpB!==void 0)return bpB;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return bpB=f},{mode:1});var zR$;var aG=function(){return _.I.apply(this,arguments)||this};
_.q(aG,_.I);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],aG.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],aG.prototype,"data",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],aG);
_.p(aG,"ytd-tvfilm-offer-groups-renderer",function(){if(zR$!==void 0)return zR$;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return zR$=f},{mode:1});var RRe;var yC=function(){var f=_.I.apply(this,arguments)||this;f.darkerDarkTheme=_.K("web_darker_dark_theme");return f};
_.q(yC,_.I);_.e=yC.prototype;_.e.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"}}}};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.e.computeThumbnailClass=function(f){return f.thumbnailOverlays?f.isShow?"thumbnail-show":"thumbnail-movie":f.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.e.computeCommerceSectionClass=function(f){return f.offers&&f.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.e.computeTitleClass=function(f){return f.offers&&f.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.e.onDataChanged=function(){[].concat(_.$d(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(f){f.onShow()})};
yC.prototype.onDataChanged=yC.prototype.onDataChanged;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],yC.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],yC.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],yC.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],yC.prototype,"darkerDarkTheme",void 0);
_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],yC.prototype,"onDataChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],yC);
_.p(yC,"ytd-ypc-offers-overlay-renderer",function(){if(RRe!==void 0)return RRe;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return RRe=f},{mode:_.X_("kevlar_poly_si_batch_j028")?1:2});var XmY;var wme=function(){this.usedMethods=new Set};
wme.prototype.add=function(f){this.usedMethods.add(f)};
wme.prototype.reset=function(){this.usedMethods.clear()};var F_2=function(f,S){this.query=f;this.previousSearchQuery=S;this.id=hRM++;if(!TKu){S=_.nL("SBOX_SETTINGS");f="https://"+((S==null?void 0:S.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var B=S==null?void 0:S.REQUEST_LANGUAGE;B&&(f+="&hl="+B);(B=S==null?void 0:S.REQUEST_DOMAIN)&&(f+="&gl="+B);f+="&client=youtube&gs_ri=youtube";(B=S==null?void 0:S.SUGG_EXP_ID)&&(f+="&sugexp="+encodeURIComponent(B));(B=S==null?void 0:S.PSUGGEST_TOKEN)&&(f+="&tok="+B);(S=
S==null?void 0:S.SESSION_INDEX)&&(f+="&authuser="+S);_.K("desktop_enable_visual_suggest")&&(f+="&h=180&w=320&ytvs=1");TKu=f}},VcZ=function(f){var S="q="+encodeURIComponent(f.query);
f.previousSearchQuery&&(S+="&pq="+encodeURIComponent(f.previousSearchQuery));return S},Jko=function(){var f=_.nL("SBOX_SETTINGS"),S={};
if(f==null?0:f.SEND_VISITOR_DATA)S["X-Goog-Visitor-Id"]=f==null?void 0:f.VISITOR_DATA;return S},Pb2=function(f){var S=TKu;
S+="&gs_id="+f.id.toString(36);S+="&q="+encodeURIComponent(f.query);S+="&cp="+f.query.length;f.previousSearchQuery&&(S+="&pq="+encodeURIComponent(f.previousSearchQuery));(f=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(S+="&video_id="+f);return S},hRM=0,TKu="";var vMu=_.Zj.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,K_$=_.Zj.SEARCH_ENTITY_SUGGESTION_MOVIE,dy2=_.Zj.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,ipe=_.Zj.SEARCH_ENTITY_SUGGESTION_TV_SHOW,HpX=function(f,S){this.text=f;this.bold=S},qwY=function(f,S,B){this.input=S;
this.index=B;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=f[0];this.type=f[1];this.subtypes=f[2];var G;this.displayText=oE((G=f[3])==null?void 0:G.b);var g;this.ignoredPrefix=oE((g=f[3])==null?void 0:g.a);var b,z;this.hasNewVideo=((b=f[3])==null?void 0:(z=b.zam)==null?void 0:z.toString())==="true"?!0:!1;var X;this.visualSuggestUrl=(X=f[3])==null?void 0:X.zai;var w;this.entityType=oE((w=f[3])==null?void 0:w.zap);var F;this.entityName=oE((F=f[3])==null?void 0:F.zao);var V;S=oE((V=
f[3])==null?void 0:V.zaf);var J;this.entityMid=(J=f[3])==null?void 0:J.zae;V=JRZ(this.subtypes,this.entityMid);if(S&&V){if(S){J="";switch(V){case "YOUTUBE_ENTITY_TYPE_SONG":J=dy2;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":J=vMu;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":J=ipe;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":J=K_$}V=V==="YOUTUBE_ENTITY_TYPE_SONG"||V==="YOUTUBE_ENTITY_TYPE_ALBUM"?J+" \u2022  \u2022 "+S:S}else V="";this.entitySubtitle=V}var P;this.externalChannelId=(P=f[3])==null?void 0:P.zav;var d;
this.entityThumbnailAttributionUrl=(d=f[3])==null?void 0:d.zaq},QC2=function(f,S){var B=[],G,g=(G=f.displayText)!=null?G:f.text;
(S==null?0:S.useEntityName)&&$yu(f)&&f.entityName&&(g=f.entityName);if(f.type===33)return B.push(new HpX(g,!1)),B;if(g.length>=f.input.length&&g.substring(0,f.input.length)===f.input)B.push(new HpX(f.input,!1)),B.push(new HpX(g.substring(f.input.length),!0));else{var b=new Set(f.input.split(/\s/)),z=g.split(/\s/);B=z.map(function(X,w){return new HpX(X.trim()+(w===z.length-1?"":" "),!b.has(X))})}return B},$yu=function(f){var S=!!JRZ(f.subtypes);
f=!!f.entityMid;return S||f};var Yw2=function(f){this.rawResponse=["",[],{}];this.suggestions=[];try{var S=JSON.parse(PC$(f));if(typeof S==="object"&&S!==null)this.rawResponse=S;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(G){console.log("Suggest: Failed to parse SuggestResponse!");return}var B=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(G,g){return new qwY(G,B,g)})};var rkM=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new wme;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$18506_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},jCu,Op2=function(){jCu||(jCu=new rkM);
return jCu};
rkM.prototype.updateSuggestions=function(f){var S=this;this.availableSuggestions.forEach(function(B){S.previousSuggestions[B]=!0});
this.availableSuggestions=f.map(function(B){var G=B.type.toString();B.subtypes.length>0&&(G+="i"+B.subtypes.join("i"),G+="k"+B.suggestionSources.COMPLETE_SERVER.toString());return G})};
var xyo=function(f,S){var B=Date.now();f.firstEditTime<0&&(f.firstEditTime=B);S&&(f.lastQueryBuildTime=B);f.lastEditTime=B};
rkM.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$18506_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var EMB=function(f){var S="";f.availableSuggestions.forEach(function(g){delete f.previousSuggestions[g]});
for(var B=_.m(Object.keys(f.previousSuggestions)),G=B.next();!G.done;G=B.next())G=G.value,f.previousSuggestions[G]&&(S+=(S?"j":"")+G);return S},L_2=function(f,S){var B=[];
S&&(B[1]=S.toString());B[0]="youtube";B[7]=Date.now()-f.startTime;B[6]=f.sessionNumber;f.zeroPrefixSuggestionCount>=0&&(B[33]=f.zeroPrefixSuggestionCount);B[13]=f.outOfSyncResponseCount;if(f.availableSuggestions.length>0){for(var G=S="",g=0,b=_.m(f.availableSuggestions),z=b.next();!z.done;z=b.next())z=z.value,z!==G&&(g>1&&(S+="l"+g),S+=(G?"j":"")+z,g=0,G=z),g+=1;g>1&&(S+="l"+g);B[3]=S}B[35]=EMB(f);f.selectedSuggestionIndex>=0&&(B[2]=f.selectedSuggestionIndex);var X;if(S=(X=_.nL("SBOX_SETTINGS"))==
null?void 0:X.SUGG_EXP_ID)B[19]=f.normalize(S),X=0,f.experimentTriggeredBeforeFinal&&(X|=1),f.experimentTriggeredFinal&&(X|=2),B[20]=X;B[26]=Array.from(f.inputMethodsTracker.usedMethods).join("j");if(f.JSC$18506_totalRoundTripTime>0){B[15]=f.JSC$18506_totalRoundTripTime;B[14]=f.maxRoundTripTime;X=[];for(g=S=0;g<10;g++)G=f.roundTripTimeHistogram[g],G===0?S++:(S>1?X.push(g+"-"+G):S===1?X.push("0j"+G):X.push(G.toString()),S=0);X=X.join("j");B[16]=X}f.zeroPrefixRoundTripTime>0&&(B[36]=f.zeroPrefixRoundTripTime);
f.lastQueryBuildTime>0&&(B[18]=f.lastQueryBuildTime-f.startTime);f.firstEditTime>0&&(B[4]=f.firstEditTime-f.startTime);f.lastEditTime>0&&(B[5]=f.lastEditTime-f.startTime);return B.join(".")};
rkM.prototype.normalize=function(f){return f.replaceAll(".","-")};
var kfu=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var Wi=function(){var f=_.I.apply(this,arguments)||this;f.microphoneSpinnerActive=!1;f.noAnimations=!1;f.boundExitClick=function(){f.onExitButtonClick()};
f.speechOverlayClassName="";f.isLevelAnimating=!1;f.playCloseDialogAudioFeedback=!0;f.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return f};
_.q(Wi,_.I);_.e=Wi.prototype;_.e.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.e.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=vNY()};
_.e.dataChanged=function(){this.logDialog()};
_.e.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var f;(f=this.manager.audioPlayer)!=null&&(f.JSC$17795_audioEnabled=!1)}this.manager.stop();(f=this.manager.audioPlayer)!=null&&(f.JSC$17795_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.e.handleSpeechQueryCompleteAction=function(f){var S=f.navigationAction;S&&(f.trackingParams&&_.ik().graftServerVe(f.trackingParams,this.dialogVe,5),_.ew(this.hostElement,"yt-navigate",{endpoint:S,tempData:this.getNavigationParams(S),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.e.onExitButtonClick=function(){this.closeDialog()};
_.e.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var f;if((f=this.manager)!=null){var S;(S=f.audioPlayer)==null||p$(S,"failure");f.setState("microphone-off");f.stop()}}else(f=this.manager)==null||f.start()};
_.e.transcriptionChanged=function(){var f,S;(((f=this.transcription)==null?0:f.low)||((S=this.transcription)==null?0:S.high))&&this.setState("transcribing",this.transcription)};
_.e.stateChanged=function(){this.setState(this.state,this.transcription)};
_.e.logDialog=function(){var f;(f=this.data)!=null&&f.trackingParams&&(f=_.ik(),_.Rh(f,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=f.graftServerVe(this.data.trackingParams,void 0,5))};
_.e.getNavigationParams=function(f){var S={};if(_.K("web_yt_searchbox")){var B=Op2();B.inputMethodsTracker.add(6);B=L_2(B,15);S.gs_l=B;var G;S.oq=((G=_.H(f,_.Ht))==null?void 0:G.query)||""}else if(f=window.ytvoicesearchloggingparams){if(f=f())S.oq=f.oq,S.gs_l=f.gs_l}else _.CL(Error("nl"));return S};
_.e.closeDialog=function(){_.bW(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.e.setState=function(f,S){if(this.data){var B=this.data,G={};switch(f){case "listening":G={headerText:B.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:B.microphoneButtonAriaLabel};break;case "timeout":G={headerText:B.promptHeader,microphoneState:"try-again",microphoneLabel:B.promptMicrophoneLabel,microphoneAriaLabel:B.promptMicrophoneLabel};break;case "microphone-off":G={headerText:B.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:B.promptMicrophoneLabel,
microphoneAriaLabel:B.promptMicrophoneLabel};break;case "transcribing":(S==null?0:S.low)||(S==null?0:S.high)?G={transcriptionLow:S==null?void 0:S.low,transcriptionHigh:S==null?void 0:S.high,microphoneState:"speaking",microphoneAriaLabel:B.microphoneButtonAriaLabel}:G={headerText:B.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:B.microphoneButtonAriaLabel};break;case "processing":G={headerText:B.loadingHeader,microphoneState:"processing",microphoneAriaLabel:B.microphoneButtonAriaLabel};
break;case "offline":G={headerText:B.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:B.connectionErrorMicrophoneLabel,microphoneAriaLabel:B.connectionErrorMicrophoneLabel};break;case "permission":G={headerText:B.permissionsHeader,bodyLine1:B.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:B.permissionsSubtext};break;case "permission-denied":G={headerText:B.disabledHeader,bodyLine1:B.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:B.disabledSubtext}}G.className=
f;this.speechOverlayState=G;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.e.setMicrophoneState=function(f){var S=this.isLevelAnimating;this.isLevelAnimating=f==="speaking";!S&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=f==="processing"&&!this.noAnimations};
_.e.setClass=function(f){this.speechOverlayClassName&&_.Rl(this.hostElement,this.speechOverlayClassName,!1);f&&(this.speechOverlayClassName=f,_.Rl(this.hostElement,f,!0))};
_.e.runLevelAnimation=function(){var f=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var S=1+Math.random()*.75,B=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+B/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+S+")");_.xJ.addJob(function(){f.runLevelAnimation()},3,B)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
Wi.prototype.stateChanged=Wi.prototype.stateChanged;Wi.prototype.transcriptionChanged=Wi.prototype.transcriptionChanged;Wi.prototype.onPopupClosed=Wi.prototype.onPopupClosed;Wi.prototype.dataChanged=Wi.prototype.dataChanged;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],Wi.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Wi.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Wi.prototype,"rendererStamperBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],Wi.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.Px.YtEventForwardingBehavior),_.Z("design:type",Object)],Wi.prototype,"eventForwardingBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Wi.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],Wi.prototype,"speechOverlayState",void 0);
_.N([_.n(),_.Z("design:type",Object)],Wi.prototype,"microphoneSpinnerActive",void 0);_.N([_.n({type:_.K("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.Z("design:type",Object)],Wi.prototype,"noAnimations",void 0);_.N([_.n({selector:function(f){var S;return(S=f.voiceSearch)==null?void 0:S.transcription}}),
_.Z("design:type",Object)],Wi.prototype,"transcription",void 0);_.N([_.n({selector:function(f){var S;return(S=f.voiceSearch)==null?void 0:S.overlay}}),
_.Z("design:type",String)],Wi.prototype,"state",void 0);_.N([_.n(),_.Z("design:type",Object)],Wi.prototype,"boundExitClick",void 0);_.N([_.vF("#microphone-levels"),_.Z("design:type",HTMLElement)],Wi.prototype,"level",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Wi.prototype,"dataChanged",null);_.N([_.Vg("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Wi.prototype,"onPopupClosed",null);
_.N([_.HF("transcription"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Wi.prototype,"transcriptionChanged",null);_.N([_.HF("state"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Wi.prototype,"stateChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],Wi);
_.p(Wi,"ytd-voice-search-dialog-renderer",function(){if(XmY!==void 0)return XmY;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return XmY=f},{mode:1});var nMu;var ci=function(){var f=_.I.apply(this,arguments)||this;f.isOverlay=!1;f.hidden=!1;return f};
_.q(ci,_.I);_.e=ci.prototype;_.e.onPopupClosed=function(){this.toggleIconState(!1)};
_.e.computeIcon=function(){var f,S,B;return(S=_.H((f=this.data)==null?void 0:f.icon,fSZ))==null?void 0:(B=S.icon)==null?void 0:B.iconType};
_.e.computeIconBadgeShape=function(){var f;return{iconBadgeType:"cart",iconBadgeText:(f=this.iconBadgeEntity)==null?void 0:f.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.e.onClick=function(){var f;(f=this.data)!=null&&f.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.e.computeHidden=function(f){return!f};
_.e.toggleIconState=function(f){this.iconButton&&(this.iconButton.pressed=f)};
ci.prototype.onPopupClosed=ci.prototype.onPopupClosed;_.N([_.r(_.Ek),_.Z("design:type",Object)],ci.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],ci.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],ci.prototype,"ytComponentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],ci.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],ci.prototype,"isOverlay",void 0);
_.N([_.n({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.Z("design:type",Object)],ci.prototype,"hidden",void 0);_.N([_.n({selectorArgs:["data.iconBadgeEntityKey"],selector:function(f,S){return _.w9(f.entities,"iconBadgeEntity",S)}}),
_.Z("design:type",Object)],ci.prototype,"iconBadgeEntity",void 0);_.N([_.vF("yt-icon-button"),_.Z("design:type",HTMLButtonElement)],ci.prototype,"iconButton",void 0);_.N([_.Vg("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ci.prototype,"onPopupClosed",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],ci);
_.p(ci,"ytd-icon-badge-topbar-button-renderer",function(){if(nMu!==void 0)return nMu;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return nMu=f},{mode:1});var sCu;var lq=function(){var f=_.I.apply(this,arguments)||this;f.premiumOptions=[];f.darkerDarkTheme=_.K("web_darker_dark_theme");return f};
_.q(lq,_.I);lq.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.y3.Object.defineProperties(lq.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],lq.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],lq.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Array)],lq.prototype,"premiumOptions",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],lq.prototype,"darkerDarkTheme",void 0);_.N([_.k("premiumOptions"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],lq.prototype,"hasPremiumOptions",null);
_.N([_.C({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],lq);
_.p(lq,"ytd-offline-promo-content",function(){if(sCu!==void 0)return sCu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return sCu=f},{mode:1});var DyX;var fv=function(){var f=_.I.apply(this,arguments)||this;f.premiumOptions=[];return f};
_.q(fv,_.I);fv.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var f;this.premiumOptions=VfX((f=this.data)==null?void 0:f.formats)};
fv.prototype.onClickSubmit=function(){_.bW(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var f;(f=_.B8())==null||f.pause()};
fv.prototype.attached=function(){this.JSC$18526_scroller&&(this.JSC$18526_scroller.dialogElement=this.hostElement.parentNode)};
_.y3.Object.defineProperties(fv.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
fv.prototype.dataChanged=fv.prototype.dataChanged;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],fv.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],fv.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],fv.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],fv.prototype,"data",void 0);
_.N([_.n({computed:"computeIcon_(data.headersIcon)",value:""}),_.Z("design:type",String)],fv.prototype,"headersIcon",void 0);_.N([_.n(),_.Z("design:type",Array)],fv.prototype,"premiumOptions",void 0);_.N([_.vF("#scroller"),_.Z("design:type",Object)],fv.prototype,"JSC$18526_scroller",void 0);_.N([_.k("headersIcon"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],fv.prototype,"showIcon",null);
_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],fv.prototype,"dataChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],fv);
_.p(fv,"ytd-offline-promo-renderer",function(){if(DyX!==void 0)return DyX;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return DyX=f},{mode:1});var IDu;var o1=function(){var f=_.I.apply(this,arguments)||this;f.playbackPauseInterval=NaN;f.isLoading=!1;f.hasError=!1;f.dialogClass="";f.youtubeLabel=_.Jf("LOGO_ALT_LABEL",{},"YouTube Home");f.logoName="yt-logos-ext:yt-logo-updated";f.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return f};
_.q(o1,_.I);_.e=o1.prototype;_.e.onDataChange=function(){var f;if(this.showEOMV1Text=!((f=this.data)==null||!f.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.e.attached=function(){this.pausePlayer()};
_.e.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.e.handleLangSelect=function(f){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[f.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.e.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.e.handleSaveConsent=function(f){var S=this;this.showLoadingSpinner();this.showLoadingSpinner();cY2(_.H(f,omB)).catch(function(B){_.Lg(new _.dO("Something went wrong when save consent "+(B.message?B.message:B)+"."));S.hideLoadingSpinner();S.showErrorMessage()})};
_.e.handleDisablePersonalization=function(f){var S=this;this.showLoadingSpinner();lzn(_.H(f,f6u)).then(function(){S.dialog.close();S.resumePlayer()}).catch(function(B){_.Lg(new _.dO("Something went wrong when disable personalization "+(B.message?B.message:B)+"."));
S.hideLoadingSpinner();S.showErrorMessage()})};
_.e.showLoadingSpinner=function(){var f=this;this.showSpinnerJobId=_.xJ.addLowPriorityJob(function(){f.isLoading=!0},500)};
_.e.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.xJ.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.e.showErrorMessage=function(){var f=this;this.hasError=!0;_.xJ.addLowPriorityJob(function(){f.hasError=!1},2E3)};
_.e.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.zt(function(){try{var f=_.B8();f&&f.pause()}catch(S){}},100))};
_.e.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var f=_.B8();f&&f.play()}catch(S){}};
_.y3.Object.defineProperties(o1.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)==null||!f.eomV1Text)return[];f=[];for(var S=["SHIELD","WARNING","BAR_CHART"],B=this.data.eomV1Text.essentialCookieMsg.items,G=0;G<S.length&&G<B.length;G++)f.push({icon:S[G],text:B[G]});return f}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)==null||!f.eomV1Text)return[];f=[];for(var S=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],B=this.data.eomV1Text.nonEssentialCookieMsg.items,G=0;G<S.length&&G<B.length;G++)f.push({icon:S[G],text:B[G]});return f}}});
o1.prototype.onDataChange=o1.prototype.onDataChange;_.N([_.n(),_.Z("design:type",Object)],o1.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Boolean)],o1.prototype,"showEOMV1Text",void 0);_.N([_.n(),_.Z("design:type",Object)],o1.prototype,"isLoading",void 0);_.N([_.n(),_.Z("design:type",Object)],o1.prototype,"hasError",void 0);_.N([_.n(),_.Z("design:type",Number)],o1.prototype,"showSpinnerJobId",void 0);_.N([_.n(),_.Z("design:type",Object)],o1.prototype,"dialogClass",void 0);
_.N([_.vF("#dialog"),_.Z("design:type",Object)],o1.prototype,"dialog",void 0);_.N([_.vF("#cb-header"),_.Z("design:type",HTMLElement)],o1.prototype,"header",void 0);_.N([_.vF("#lang-select"),_.Z("design:type",HTMLElement)],o1.prototype,"langSelect",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],o1.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],o1.prototype,"ytComponentBehavior",void 0);
_.N([_.n(),_.Z("design:type",String)],o1.prototype,"youtubeLabel",void 0);_.N([_.n(),_.Z("design:type",Object)],o1.prototype,"logoName",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],o1.prototype,"onDataChange",null);_.N([_.k("data"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],o1.prototype,"eomEssentialCookieMsgItems",null);
_.N([_.k("data"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],o1.prototype,"eomNonEssentialCookieMsgItems",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],o1);
_.p(o1,"ytd-consent-bump-v2-lightbox",function(){if(IDu!==void 0)return IDu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return IDu=f},{mode:1});var Uyn;var Sv=function(){return _.I.apply(this,arguments)||this};
_.q(Sv,_.I);Sv.prototype.ready=function(){if(!_.PL()||J3X)var f=!0;else J3X=!0,f=!1;f||(f=document.querySelector("ytd-app"),f||(f=document.body),this.internalLightBox=_.m9(f).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.N([_.n(),_.Z("design:type",Object)],Sv.prototype,"data",void 0);_.N([_.vF("#lightbox"),_.Z("design:type",Object)],Sv.prototype,"lightBox",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],Sv);
_.p(Sv,"ytd-consent-bump-v2-renderer",function(){if(Uyn!==void 0)return Uyn;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return Uyn=f},{mode:1});var CbY;var pmu;var AkB;var BB=function(){var f=_.I.apply(this,arguments)||this;f.ephemeralActionsEnabled=_.K("web_ephemeral_actions");return f};
_.q(BB,_.I);_.e=BB.prototype;_.e.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&OHu(this.toastManager,this.toastType)};
_.e.open=function(f){this.toast&&(this.ephemeralAction&&_.oy().resolve(_.TI).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=f!=null?f:0,this.toastManager.enqueue(this.toast,f)):this.toast.open())};
_.e.close=function(f){var S;(S=this.toast)==null||S.close();this.toastManager&&f===1&&OHu(this.toastManager,f)};
_.e.refit=function(){var f;(f=this.toast)==null||f.refit()};
_.e.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var f;(f=this.toast)==null||f.close()}};
_.e.setVerticalOffset=function(f){this.toast&&(this.toast.verticalOffset=f,this.toast.fit())};
_.e.computeButtonClass_=function(f){return f?"toast-button":""};
_.e.computeText_=function(f){return _.ac(f)};
_.e.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AW("toast-opened-changed",this.toastOpened))};
_.e.updateToastOpenedFromBinding=function(f){this.toastOpened=f.detail.value};
_.y3.Object.defineProperties(BB.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var f,S,B=(f=this.data)==null?void 0:(S=f.actionButton)==null?void 0:S.buttonRenderer;return(B==null?void 0:B.command)||(B==null?void 0:B.serviceEndpoint)||(B==null?void 0:B.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 f=[],S;((S=this.data)==null?0:S.responseText)&&f.push(_.ac(this.data.responseText));var B;((B=this.data)==null?0:B.subText)&&f.push(_.ac(this.data.subText));var G,g;if((G=this.data)==null?0:(g=G.actionButton)==null?0:g.buttonRenderer){var b,z;f.push(((b=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(z=b.accessibilityData)==null?void 0:z.label)||_.ac(this.data.actionButton.buttonRenderer.text))}return f.filter(function(X){return X}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var f,S;return(S=(f=this.toast)==null?void 0:f.opened)!=null?S:!1}}});
BB.prototype.toastOpenedChangedForBinding=BB.prototype.toastOpenedChangedForBinding;BB.prototype.toastOpenedChanged=BB.prototype.toastOpenedChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],BB.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Px.YtEventForwardingBehavior),_.Z("design:type",Object)],BB.prototype,"ytEventForwardingBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],BB.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],BB.prototype,"duration",void 0);
_.N([_.n(),_.Z("design:type",Number)],BB.prototype,"toastType",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],BB.prototype,"useCloseButton",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],BB.prototype,"closeToastOnActionButtonClick",void 0);_.N([_.n({value:function(){return _.Jf("SBOX_INAPPROPRIATE_CANCEL")}}),
_.Z("design:type",String)],BB.prototype,"closeButtonAriaLabel",void 0);_.N([_.n(),_.Z("design:type",Boolean)],BB.prototype,"toastOpened",void 0);_.N([_.n(),_.Z("design:type",Boolean)],BB.prototype,"hasOpened",void 0);_.N([_.n(),_.Z("design:type",Object)],BB.prototype,"ephemeralActionsEnabled",void 0);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],BB.prototype,"command",null);
_.N([_.k("ephemeralActionsEnabled","labelText","command","duration"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],BB.prototype,"ephemeralAction",null);_.N([_.k("ephemeralAction"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],BB.prototype,"hasEphemeralAction",null);_.N([_.vF("#toast"),_.Z("design:type",Object)],BB.prototype,"toast",void 0);_.N([_.n({value:function(){return{style:"call-to-action-inverse"}}}),
_.Z("design:type",Object)],BB.prototype,"buttonOverrides",void 0);_.N([_.n({value:{style:"mono-inverse"}}),_.Z("design:type",Object)],BB.prototype,"closeButtonOverrides",void 0);_.N([_.n({value:function(){return _.oy().resolve(_.fN(_.m2))}}),
_.Z("design:type",Object)],BB.prototype,"toastManager",void 0);_.N([_.k("data.responseText","data.subText","data.actionButton"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],BB.prototype,"labelText",null);_.N([_.JO("toastOpened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],BB.prototype,"toastOpenedChanged",null);
_.N([_.JO("toastOpened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],BB.prototype,"toastOpenedChangedForBinding",null);_.N([_.nP({is:"yt-notification-action-renderer",disableElementRegistration:!0})],BB);
_.p(BB,"yt-notification-action-renderer",function(){if(AkB===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;pmu===void 0&&(pmu=document.createElement("template"));var G=pmu;B.call(S,G.content.cloneNode(!0),f.content.firstChild);AkB=f}f=AkB;return f},{mode:2});var Gk=function(){var f=_.I.apply(this,arguments)||this;f.duration=4E3;f.downloadingCount=0;f.downloadedCount=0;f.downloadingOnlySmartDownloads=!1;f.sessionTotalDownloads=0;f.sessionDownloaded=0;f.previousSessionsDownloaded=0;f.totalDownloadPercentage=0;f.currentDownloadProgress=0;f.currentDownloadPercentage=0;f.isLeaderTab=!0;f.isFullScreen=!1;f.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};f.boundBeforeUnload=function(S){f.isLeaderTab&&f.downloadingCount>0&&(S.preventDefault(),
S.returnValue=!0)};
return f};
_.q(Gk,_.I);_.e=Gk.prototype;
_.e.open=function(){this.updateDownloadState();if(this.data){var f=this.sessionDownloaded+1,S=this.sessionTotalDownloads>1?_.Jf("VIDEOS_DOWNLOADING_RATIO",{downloaded:f.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+f+"/"+this.sessionTotalDownloads):_.Jf("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(S=this.sessionTotalDownloads>1?_.Jf("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:f.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
f+"/"+this.sessionTotalDownloads):_.Jf("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));f=this.isLeaderTab?_.Jf("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.ac(this.data.responseText)!==S||_.ac(this.data.subText)!==f)this.set("data.responseText",_.uC(S)),this.set("data.subText",_.uC(f)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.e.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.e.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.e.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.e.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var f=this.downloadedCount-this.previousSessionsDownloaded;f<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-f);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.e.handleFullscreenChange=function(f){(this.isFullScreen=f)||this.updatePopup()};
Gk.prototype.updateCurrentDownloadProgress=Gk.prototype.updateCurrentDownloadProgress;Gk.prototype.updatePopup=Gk.prototype.updatePopup;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Gk.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],Gk.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.Px.YtEventForwardingBehavior),_.Z("design:type",Object)],Gk.prototype,"ytEventForwardingBehavior",void 0);
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],Gk.prototype,"actionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Gk.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],Gk.prototype,"duration",void 0);_.N([_.n({selector:function(f){return _.I9Q(f.entities).length}}),
_.Z("design:type",Object)],Gk.prototype,"downloadingCount",void 0);_.N([_.n({selector:m7o}),_.Z("design:type",Object)],Gk.prototype,"downloadedCount",void 0);_.N([_.n({selector:function(f){var S=_.I9Q(f.entities);return bOo(f.entities,S)}}),
_.Z("design:type",Object)],Gk.prototype,"downloadingOnlySmartDownloads",void 0);_.N([_.n(),_.Z("design:type",Object)],Gk.prototype,"sessionTotalDownloads",void 0);_.N([_.n(),_.Z("design:type",Object)],Gk.prototype,"sessionDownloaded",void 0);_.N([_.n(),_.Z("design:type",Object)],Gk.prototype,"previousSessionsDownloaded",void 0);_.N([_.n(),_.Z("design:type",Object)],Gk.prototype,"totalDownloadPercentage",void 0);
_.N([_.n({selector:function(f){var S;f=(S=_.I9Q(f.entities))!=null?S:[];return f.length>0?_.Yes(f.slice(-1)):0}}),
_.Z("design:type",Object)],Gk.prototype,"currentDownloadProgress",void 0);_.N([_.n(),_.Z("design:type",Object)],Gk.prototype,"currentDownloadPercentage",void 0);_.N([_.n({selector:_.Jv9}),_.Z("design:type",Object)],Gk.prototype,"isLeaderTab",void 0);_.N([_.vF("yt-notification-action-renderer"),_.Z("design:type",Object)],Gk.prototype,"notificationActionRenderer",void 0);
_.N([_.HF("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Gk.prototype,"updatePopup",null);_.N([_.HF("currentDownloadProgress"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Gk.prototype,"updateCurrentDownloadProgress",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],Gk);
_.p(Gk,"ytd-video-download-toast-renderer",function(){if(CbY!==void 0)return CbY;var f=document.createElement("template");_.Y(f,'\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>');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return CbY=f},{mode:1});var NKz;var Mco;var g$=function(){return _.I.apply(this,arguments)||this};
_.q(g$,_.I);g$.prototype.computeIsRedLogo=function(f,S){!f&&S&&(f=S);return f==="YOUTUBE_RED_LOGO"||f==="YOUTUBE_PREMIUM_LOGO"};
g$.prototype.computeLogoName=function(f){f=this.componentBehavior.computeIcon_(f);return f===""?"yt-logos-ext:yt-logo-updated":f};
_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],g$.prototype,"componentBehavior",void 0);_.N([_.n({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.Z("design:type",Boolean)],g$.prototype,"isRedLogo",void 0);_.N([_.n({computed:"computeLogoName(data)"}),_.Z("design:type",String)],g$.prototype,"logoName",void 0);_.N([_.n({value:{}}),_.Z("design:type",Object)],g$.prototype,"data",void 0);
_.N([_.n(),_.Z("design:type",Object)],g$.prototype,"logoType",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-logo"})],g$);
_.p(g$,"ytd-logo",function(){if(Mco!==void 0)return Mco;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return Mco=f},{mode:_.X_("kevlar_poly_si_batch_j074")?1:2});var ev=function(){var f=_.I.apply(this,arguments)||this;f.animationRef={};return f};
_.q(ev,_.I);_.e=ev.prototype;_.e.attached=function(){document.addEventListener("yt-navigate-finish",_.Fc(this,this.logYoodle))};
_.e.detached=function(){document.removeEventListener("yt-navigate-finish",_.Fc(this,this.logYoodle))};
_.e.logYoodle=function(){var f,S;if((f=this.data)==null?0:(S=f.loggingDirectives)==null?0:S.trackingParams)this.ytRendererBehavior.markDirty(),_.ik().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.e.computeHideImg=function(f,S){return!!f||!!S};
_.e.computeHideYtdLogo=function(f,S){return!f||!!S};
_.e.computeHideLottie=function(f){return!f};
_.e.computeIsRedLogo=function(f){return f==="YOUTUBE_RED_LOGO"||f==="YOUTUBE_PREMIUM_LOGO"};
_.e.renderLogoEntity=function(){var f=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),S=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),B=this.getLogoTitleText(this.data),G=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==f&&(this.url=f);this.animatedUrl!==S&&(this.animatedUrl=S);this.logoTitleText!==B&&(this.logoTitleText=B);this.lottieUrl!==G&&(this.lottieUrl=G,this.lottiePlayerProps=this.computeLottiePlayerProps(G))};
_.e.getSanitizedThumbnail=function(f){return f&&f.thumbnails?_.CRs(f.thumbnails,122)||"":""};
_.e.getThumbnailUrl=function(f,S){if(!S)return"";var B,G;f=f?(B=S.darkThemeLogo)==null?void 0:B.thumbnail:(G=S.lightThemeLogo)==null?void 0:G.thumbnail;return this.getSanitizedThumbnail(f)};
_.e.getAnimatedThumbnailUrl=function(f,S){return S?this.getSanitizedThumbnail(f?S.darkThemeAnimatedLogo:S.lightThemeAnimatedLogo):""};
_.e.getLogoTitleText=function(f){if(f)return _.ac(f.tooltipText)};
_.e.computeLogoIcon=function(f,S){if(S){var B,G;return f?(B=S.darkThemeLogo)==null?void 0:B.icon:(G=S.lightThemeLogo)==null?void 0:G.icon}};
_.e.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.e.getLottieUrl=function(f,S){var B,G,g,b;return f?S==null?void 0:(B=S.darkThemeLogo)==null?void 0:(G=B.lottieAnimation)==null?void 0:G.url:S==null?void 0:(g=S.lightThemeLogo)==null?void 0:(b=g.lottieAnimation)==null?void 0:b.url};
_.e.computeLottiePlayerProps=function(f){if(f){var S;if((S=this.animationRef)==null?0:S.lottieEl){var B;(B=this.animationRef)==null||B.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:f,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.e.onLottieError=function(){this.data&&this.lottieUrl&&_.ew(this.hostElement,"yoodle-error")};
_.e.onImgError=function(){this.data&&!this.lottieUrl&&_.ew(this.hostElement,"yoodle-error")};
ev.prototype.playAnimation=ev.prototype.playAnimation;ev.prototype.renderLogoEntity=ev.prototype.renderLogoEntity;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],ev.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],ev.prototype,"data",void 0);_.N([_.n({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.Z("design:type",Boolean)],ev.prototype,"hideImg",void 0);
_.N([_.n({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.Z("design:type",Boolean)],ev.prototype,"hideYtdLogo",void 0);_.N([_.n({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.Z("design:type",Boolean)],ev.prototype,"hideLottie",void 0);_.N([_.n({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.Z("design:type",Boolean)],ev.prototype,"isRedLogo",void 0);
_.N([_.n(),_.Z("design:type",Boolean)],ev.prototype,"useDarkThemeYoodle",void 0);_.N([_.n(),_.Z("design:type",String)],ev.prototype,"url",void 0);_.N([_.n(),_.Z("design:type",String)],ev.prototype,"animatedUrl",void 0);_.N([_.n(),_.Z("design:type",String)],ev.prototype,"logoTitleText",void 0);_.N([_.n({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.Z("design:type",Object)],ev.prototype,"logoIcon",void 0);_.N([_.n(),_.Z("design:type",Object)],ev.prototype,"logoType",void 0);
_.N([_.n(),_.Z("design:type",String)],ev.prototype,"lottieUrl",void 0);_.N([_.n(),_.Z("design:type",Object)],ev.prototype,"lottiePlayerProps",void 0);_.N([_.n(),_.Z("design:type",Object)],ev.prototype,"animationRef",void 0);_.N([_.JO("data"),_.JO("useDarkThemeYoodle"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ev.prototype,"renderLogoEntity",null);
_.N([_.Vg("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],ev.prototype,"playAnimation",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],ev);
_.p(ev,"ytd-yoodle-renderer",function(){if(NKz!==void 0)return NKz;var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return NKz=f},{mode:_.X_("kevlar_poly_si_batch_j074")?1:2});var ZpY;var tcX;var bn=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return f};
_.q(bn,_.I);_.e=bn.prototype;_.e.onYoodleError=function(){_.K("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.e.computeLogoName=function(f){f=this.componentBehavior.computeIcon_(f);return f===""?"yt-logos-ext:yt-logo-updated":f};
_.e.computeTitle=function(f,S,B){return B&&(S==null?0:S.tooltipText)?_.ac(S.tooltipText):_.ac(f)};
_.e.computeAriaLabel=function(f,S,B){return B&&(S==null?0:S.tooltipText)?_.ac(f):""};
_.e.computeShowYoodle=function(f,S,B){return!f||!S&&!!B&&!_.$v.isEmpty(B)};
_.e.onNavigateHomeAction=function(){if(_.K("kevlar_miniplayer_navigate_home_from_app_killswitch")){var f;(f=_.m9(this.hostElement).querySelector(".yt-simple-endpoint"))==null||f.click()}};
_.e.computeLogoHref=function(f,S,B){var G;(B==null?0:B.onTapCommand)?G=this.componentBehavior.computeHref_(B.onTapCommand):f&&(G=this.componentBehavior.computeHref_(f));return G?G:S};
_.e.computeCommand=function(f,S){return(S==null?void 0:S.onTapCommand)||f};
_.e.getEndpointForm=function(){if(_.K("kevlar_topbar_disable_cache_only_home")){var f=_.oy().resolve(_.C5),S=TCe(f.getState())||"";f=_.pTG(f.getState())||"";return{disableCache:S==="ytd-browse"&&f==="home"}}return{disableCache:!0}};
bn.prototype.onYoodleError=bn.prototype.onYoodleError;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],bn.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],bn.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],bn.prototype,"componentBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],bn.prototype,"ytdReduxBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],bn.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",String)],bn.prototype,"countryCode",void 0);_.N([_.n({selectorArgs:["data.overrideEntityKey"],selector:function(f,S){return _.w9(f.entities,"logoEntity",S)}}),
_.Z("design:type",Object)],bn.prototype,"logoEntity",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.Z("design:type",Boolean)],bn.prototype,"showYoodle",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],bn.prototype,"yoodleError",void 0);_.N([_.n({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.Z("design:type",String)],bn.prototype,"titleText",void 0);
_.N([_.n({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.Z("design:type",String)],bn.prototype,"ariaLabelText",void 0);_.N([_.n({value:"/"}),_.Z("design:type",String)],bn.prototype,"defaultEndpointUrl",void 0);_.N([_.n({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.Z("design:type",String)],bn.prototype,"endpointUrl",void 0);
_.N([_.n({computed:"computeCommand(data.endpoint, logoEntity)"}),_.Z("design:type",String)],bn.prototype,"command",void 0);_.N([_.n(),_.Z("design:type",Object)],bn.prototype,"logoType",void 0);_.N([_.n({}),_.Z("design:type",Boolean)],bn.prototype,"useDarkThemeYoodle",void 0);_.N([_.Vg("yoodle-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],bn.prototype,"onYoodleError",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],bn);
_.p(bn,"ytd-topbar-logo-renderer",function(){if(tcX!==void 0)return tcX;var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return tcX=f},{mode:_.X_("kevlar_poly_si_batch_j027")?1:2});var u0Y=0;var aD2=_.Zj.SEARCH_APPEND_LABEL,yke=_.Zj.SUGGESTION_NEW_VIDEOS_TEXT,W_o=_.Zj.SUGGESTION_THUMBNAIL_LABEL,ckM=_.Zj.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,lDz=_.oS(function(f){function S(YX){var we,bo;return _.R(function(bz){if(bz.nextAddress==1)return we=new Request(YX),_.zT(bz,2),_.h(bz,fetch(we,{credentials:"include"}),4);if(bz.nextAddress!=2)return Io(!0),_.CN(bz,0);bo=_.hm(bz);_.Lg(bo);_.TT(bz)})}
var B=f.isHighlighted;var G=f.suggestion;var g=f.onClickCallback;var b=f.onHoverUpdateCallback;var z=f.labels;var X=f.queryBuilderFunction;var w=f.onRemoveCallback;var F=f.suggestionIndex;var V=f.generateUniqueId;var J=f.highlightedId;var P=f.useScrollMargin;var d=f.isKeyboardMode;var Q=null,x=null,E=_.tE("div"),U=_.tE("span");f=_.m(_.hj(!1,void 0,"CgAMgc"));var A=f.next().value,t=f.next().value,M=_.us("a",function(YX){YX&&_.Dp(237477,YX,x,function(we){x=we})}),a=_.us("button",function(YX){YX&&_.Dp(237477,
YX,x,function(we){x=we})}),l=_.iF(function(YX){if((YX==null?void 0:YX.button)===2)return YX.preventDefault(),!1;
var we=_.xc();we&&Q&&_.aD(we,Q,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var bo;g(YX,G().text,G().index,G().entityMid,YX==null?void 0:(bo=YX.detail)==null?void 0:bo.wasSelectedByKeyboard);return!1}),mx=function(){return G().type===35},zj=function(){return _.K("desktop_enable_single_suggestion_highlight")},VN=function(){return _.Gt("desktop_suggestions_panel_row_height")||0},$Q=function(){var YX;
return _.K("desktop_enable_new_video_metadata")&&((YX=G())==null?void 0:YX.hasNewVideo)===!0},OV=function(){return _.K("desktop_enable_visual_suggest")},rW=function(){return _.K("desktop_enable_entity_suggest")&&$yu(G())},MA=function(){return G().entitySubtitle},UV=function(){return zj()?(B==null?void 0:B())||P7()&&!(d==null?0:d()):(B==null?void 0:B())||P7()},W7=function(){var YX=_.nL("SBOX_SETTINGS");
return mx()&&!(YX==null?0:YX.HIDE_REMOVE_LINK)},c7=function(){return QC2(G(),{useEntityName:rW()})},Q$,To=!((Q$=_.oy().resolve(_.fN(_.yU)))==null||!Q$()),Ci=function(){return mx()?_.K("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},VM=function(){return z==null?void 0:z().SUGGESTION_DISMISS_LABEL},Go=function(){return z==null?void 0:z().SUGGESTION_DISMISSED_LABEL};
f=_.m(_.hj(!1,void 0,"RcUcKd"));Q$=f.next().value;var Io=f.next().value;f=_.m(_.hj(!1,void 0,"yGR7je"));var uz=f.next().value,RT=f.next().value,P7=uz,O8=_.iF(function(){X(U.value.innerText);return!1}),ao=_.iF(function(YX){YX.preventDefault();
return!1}),H7=_.iF(function(YX){var we=G().text,bo=_.nL("SBOX_SETTINGS"),bz="https://"+(bo.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
bz+="&delq="+encodeURIComponent(we);(we=bo==null?void 0:bo.PSUGGEST_TOKEN)&&(bz+="&tok="+we);(bo=bo==null?void 0:bo.SESSION_INDEX)&&(bz+="&authuser="+bo);S(bz);YX.preventDefault();(YX=_.xc())&&x&&_.aD(YX,x,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");w(F==null?void 0:F());return!1}),um=_.iF(function(){if(zj()&&(d==null?0:d()))return!1;
RT(!0);b(!0);return!1}),CQ=_.iF(function(){RT(!1);
b(!1);return!1}),t1=_.iF(function(){t(!0);
return!1}),em=_.iF(function(){t(!1);
return!1}),Ig=_.iF(function(YX){YX.preventDefault();
var we;(YX=(we=G().entityThumbnailAttributionUrl)!=null?we:"")&&_.mrN(YX);return!1});
f=_.m(_.hj("",void 0,"k9uVge"));var vO=f.next().value,v7=f.next().value;_.Y5(function(){W7()&&v7(V==null?void 0:V(F==null?void 0:F()));E.value&&_.Dp(12453,E.value,Q,function(YX){Q=YX})});
return _.T(_.v,{cond:Q$,then:function(){var YX={};return _.T("div",{class:_.Pw("ytSuggestionComponentRemovedText",(YX.ytSuggestionComponentLargerRemovedText=function(){return OV()},YX)),
style:function(){return VN()>0?"height: "+VN()+"px;":""},
role:"button"},Go)},
else:function(){var YX={},we={};return _.T("div",{class:_.Pw("ytSuggestionComponentSuggestion",(YX.ytSuggestionComponentSuggestionHover=function(){return!zj()},YX.ytSuggestionComponentHighlighted=UV,YX.ytSuggestionComponentPersonalizedSuggestion=mx,YX.ytSuggestionComponentMweb=!1,YX.ytSuggestionComponentLargerSuggestion=function(){return $Q()||OV()},YX.ytSuggestionComponentThumbnailSuggestion=function(){return OV()},YX.ytSuggestionComponentRoundedSuggestion=function(){return _.K("desktop_enable_scrollable_suggestions_panel")&&
_.K("desktop_enable_suggestions_panel_padding")},YX.ytSuggestionComponentThumbnailPadding=function(){return OV()&&!mx()},YX)),
style:function(){return VN()>0?"height: "+VN()+"px;":""},
role:"presentation","on:mousedown":l,"on:mouseover":um,"on:mouseout":CQ,el:E},_.T("div",{class:_.Pw("ytSuggestionComponentText",(we.ytSuggestionComponentScrollMargin=P,we)),"aria-label":function(){return $Q()?G().text+" "+yke:G().text},
id:function(){return V==null?void 0:V(F==null?void 0:F())},
"on:mousedown":l,role:"option"},_.T(_.v,{cond:function(){return G().type!==33},
then:function(){return _.T(_.Y8,{icon:Ci,className:"ytSuggestionComponentIcon"})}}),_.T("div",{class:"ytSuggestionComponentLeftContainer"},_.T("span",{el:U,
role:"button",tabindex:0},_.T(_.dg,{each:c7},function(bo){return bo.bold?_.T("span",{class:"ytSuggestionComponentBold"},bo.text):_.T("span",null,bo.text)})),_.T(_.v,{cond:function(){return rW()&&!!G().entitySubtitle||$Q()},
then:function(){return _.T("div",{class:"ytSuggestionComponentMetadataContainer"},_.T(_.v,{cond:function(){return rW()&&!!G().entitySubtitle},
then:function(){return _.T("div",{class:"ytSuggestionComponentEntitySubtitle"},MA)}}),_.T(_.v,{cond:function(){return $Q()},
then:function(){return _.T("div",{class:"ytSuggestionComponentNewVideoContainer"},_.T("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.T("div",{class:"ytSuggestionComponentNewVideoText"},yke))}}))}}))),_.T("div",{class:"ytSuggestionComponentRightContainer"},_.T(_.v,{cond:function(){return OV()&&G().visualSuggestUrl!==void 0},
then:function(){var bo={};return _.T("div",{class:"ytSuggestionComponentThumbnailContainer"},_.T("img",{"aria-label":W_o,class:_.Pw("ytSuggestionComponentVisualSuggestThumbnail",(bo.ytSuggestionComponentCircularFrame=function(){return rW()&&G().subtypes.includes(790)},bo.ytSuggestionComponentEntitySuggestThumbnail=function(){return rW()},bo)),
src:function(){return G().visualSuggestUrl}}),_.T(_.v,{cond:function(){return rW()&&!!G().entityThumbnailAttributionUrl},
then:function(){var bz={};return _.T("span",{title:ckM,role:"tooltip"},_.T("div",{"on:mouseover":t1,"on:mouseout":em,"on:mousedown":Ig,class:_.Pw("ytSuggestionComponentThumbnailOverlay",(bz.ytSuggestionComponentThumbnailOverlayHidden=function(){return!A()},bz))},_.T(_.Y8,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.T(_.qp,null,_.T(_.i0,{when:function(){return OV()&&W7()}},function(){var bo={};
return _.T("button",{class:_.Pw("ytSuggestionComponentRemoveLinkClearButton",(bo.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return vO()&&vO()===(J==null?void 0:J())},bo.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!UV()},bo)),
el:a,"on:mousedown":H7,"aria-label":VM,id:function(){return vO()}},_.T(_.Y8,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.T(_.i0,{when:function(){return!(OV()&&G().visualSuggestUrl!==void 0)&&W7()}},function(){var bo={};
return _.T("a",{class:_.Pw("ytSuggestionComponentRemoveLink",(bo.ytSuggestionComponentRemoveLinkDark=To,bo.ytSuggestionComponentRemoveLinkSelected=function(){return vO()&&vO()===(J==null?void 0:J())},bo)),
el:M,"on:mousedown":H7,"aria-label":VM,tabindex:0,role:"button",id:function(){return vO()}},VM)}),_.T(_.i0,{when:function(){return!1}},function(){return _.T("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":O8,"on:mousedown":ao,role:"button","aria-label":aD2},_.T(_.Y8,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"tg");var fHn=_.oS(function(){return _.T("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.T("button",{class:"ytdTextInputAssistantButton","on:click":_.iF(function(){Op2().inputMethodsTracker.add(3);var f,S=(f=_.nL("SBOX_SETTINGS"))==null?void 0:f.REQUEST_LANGUAGE;if(S)return _.I4("//www.google.com/textinputassistant/14/"+S+"_tia.js"),!1})},_.T("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"ug");var one=function(){this.cache=new Map},SqB=function(f){for(var S=_.m(f.cache.entries()),B=S.next();!B.done;B=S.next()){var G=_.m(B.value);
B=G.next().value;G=G.next().value;G.suggestions.some(function(g){return g.type===35})&&f.cache.delete(B)}};var BMO=_.Zj.SEARCH,GuO=_.Zj.SEARCH_CLEAR_LABEL,gnO=new _.Sn("FAKE_SUGGEST_RESPONSE");_.eq(_.oS(function(f){function S(){t1||(t1=setTimeout(function(){Ig()},1E3))}
function B(J1,wN,KY){if(J1.trim()){CQ=J1;_.k5("REFINEMENTS_TUPLE",void 0);H7=!0;var TX;wN=L_2(uz,wN);var bm=(TX=f.searchEndpoint)==null?void 0:TX.call(f);TX=Ci.value.value;bm||(bm=Qlu);var JJ;(JJ=_.H(bm.commandMetadata,_.oD))!=null&&JJ.url||(JJ=Error("ol`"+JSON.stringify(bm)),_.xH(JJ),bm=Qlu);JJ=_.$v.unsafeClone(bm);bm=_.D0(_.H(JJ.commandMetadata,_.oD).url,"search_query",J1);_.pS(location.href,"sv")==="1"&&(_.H(JJ,_.Ht).params="EgOAAgE%3D",bm=_.D0(bm,"sv","1"));_.H(JJ,_.Ht)&&(_.H(JJ,_.Ht).query=J1);
bm=bm.replace(/%20/g,"+");_.H(JJ.commandMetadata,_.oD).url=bm;KY=_.K("desktop_enable_entity_suggest")?{entityMid:KY}:{};_.oy().resolve(_.S7).resolveCommand(JJ,{form:{tempData:Object.assign({},{gs_l:wN,oq:TX!=null?TX:J1},KY)}});Ig();Ci.value.value=J1;Ci.value.blur();uz.reset()}}
function G(J1){return _.R(function(wN){return wN.return(new Promise(function(KY){var TX=new XMLHttpRequest;TX.open("GET",Pb2(J1),!0);TX.withCredentials=!0;var bm=_.nL("SBOX_SETTINGS");(bm==null?0:bm.SEND_VISITOR_DATA)&&TX.setRequestHeader("X-Goog-Visitor-Id",bm==null?void 0:bm.VISITOR_DATA);TX.onload=function(){KY(TX.responseText)};
TX.onerror=function(){_.Lg(Error("pl"));KY(null)};
setTimeout(function(){TX.abort()},1E4);
TX.send(null)}))})}
function g(J1){var wN,KY,TX,bm;return _.R(function(JJ){switch(JJ.nextAddress){case 1:return wN={credentials:"include",headers:Jko()},window.AbortController&&(KY=new AbortController,setTimeout(function(){KY.abort("ytsbox-suggest-timeout")},1E4),wN.signal=KY.signal),_.zT(JJ,2),_.h(JJ,fetch(Pb2(J1),wN),4);
case 4:TX=JJ.yieldResult.text();_.CN(JJ,3);break;case 2:return bm=_.hm(JJ),bm!=="ytsbox-abort-last"&&bm!=="ytsbox-suggest-timeout"&&_.Lg(bm),JJ.return(null);case 3:return JJ.return(TX)}})}
function b(J1){var wN,KY,TX;return _.R(function(bm){switch(bm.nextAddress){case 1:if(wN=_.oy().resolve(_.fN(gnO)))return bm.return(wN);KY=Date.now();S();return _.K("yt_searchbox_xhr")?_.h(bm,G(J1),5):_.h(bm,g(J1),4);case 4:TX=bm.yieldResult;bm.jumpTo(3);break;case 5:TX=bm.yieldResult;case 3:if(TX){t1&&(clearTimeout(t1),t1=null);var JJ=uz,vv=KY,kg=J1.query.length===0;vv=Date.now()-vv;kg?JJ.zeroPrefixRoundTripTime=vv:(JJ.JSC$18506_totalRoundTripTime+=vv,JJ.maxRoundTripTime=Math.max(JJ.maxRoundTripTime,
vv),kg=Math.floor(vv/100),kg>=kfu.length?++JJ.roundTripTimeHistogram[9]:++JJ.roundTripTimeHistogram[kfu[kg]])}return bm.return(TX)}})}
function z(J1){var wN,KY,TX;return _.R(function(bm){if(bm.nextAddress==1)return(wN=Io.cache.get(VcZ(J1)))?bm.return(wN):_.h(bm,b(J1),2);KY=bm.yieldResult;if(KY===null)return bm.return(null);TX=new Yw2(KY);J1.query.length===0&&TX.suggestions.length===0||Io.cache.set(VcZ(J1),TX);return bm.return(TX)})}
function X(J1){var wN,KY;return _.R(function(TX){if(TX.nextAddress==1){um=!1;var bm=CQ;bm=_.b69()==="search"?(_.pS(location.href,"search_query")||_.pS(location.href,"q"))===bm:!1;wN=new F_2(J1,bm?CQ:null);return _.h(TX,z(wN),2)}KY=TX.yieldResult;if(KY===null)return TX.return();wN.query.length===0&&(uz.zeroPrefixSuggestionCount=KY.suggestions.length);if(wN.id<=em)return uz.outOfSyncResponseCount++,TX.return();if(document.activeElement!==Ci.value)return TX.return();em=wN.id;var JJ=uz,vv=KY.rawResponse[2]||
{};JJ.experimentTriggeredBeforeFinal||(JJ.experimentTriggeredBeforeFinal=JJ.experimentTriggeredFinal);JJ.experimentTriggeredFinal=!!vv.e;uz.updateSuggestions(KY.suggestions);E(-1);W7([]);KY.suggestions!==d()&&cf(KY.suggestions.length);Q(KY.suggestions);zj(KY.suggestions.length>0&&KY.suggestions[0].type===33);Go&&(Go.hidden=KY.suggestions.length===0,mx()?(Go.style.minWidth="",JJ=Go.style,vv=(bm=d()[0])==null?void 0:bm.ignoredPrefix,JJ.marginLeft=(vv?Math.min(vv.length*6,VM.value.offsetWidth):0).toString()+
"px"):(Go.style.minWidth=VM.value.offsetWidth+"px",Go.style.marginLeft="0"),ye());_.TT(TX)})}
function w(){if(!H7)return!1;var J1=_.nL("REFINEMENTS_TUPLE");return J1?(J1=J1[1].map(function(wN,KY){return new qwY([wN,0,[71]],Ci.value.value,KY)}),d()!==J1&&cf(J1.length),W7([]),Q(J1),uz.updateSuggestions(J1),H7=!1,Go.hidden=J1.length===0,um=J1.length>0,!0):!1}
function F(){var J1=Ci.value.value;(typeof J1==="string"||J1 instanceof String)&&J1!==""?M(!0):M(!1)}
function V(){if(_.b69()==="search"){var J1=window.location.href;try{var wN=_.pS(J1,"search_query")||_.pS(J1,"q")||""}catch(KY){wN=""}wN&&(Ci.value.value=wN,M(!0))}}
var J=_.m(_.hj([],void 0,"kGFAjf")),P=J.next().value;J=J.next().value;var d=P,Q=J;P=_.m(_.hj(-1,void 0,"mLGL9e"));var x=P.next().value,E=P.next().value;P=_.m(_.hj(-1,void 0,"u2rYdc"));var U=P.next().value,A=P.next().value;P=_.m(_.hj(!1,void 0,"W9DFC"));var t=P.next().value,M=P.next().value;P=_.m(_.hj(!1,void 0,"Ip4dNc"));var a=P.next().value,l=P.next().value;J=_.m(_.hj(!1,void 0,"ZNKSQb"));P=J.next().value;J=J.next().value;var mx=P,zj=J;J=_.m(_.hj(!1,void 0,"JBrGLd"));P=J.next().value;var VN=J.next().value;
J=_.m(_.hj(!1,void 0,"P2pD6e"));var $Q=J.next().value,OV=J.next().value;J=_.m(_.hj(1,void 0,"SjP20c"));var rW=J.next().value,MA=J.next().value;J=_.m(_.hj([],void 0,"h4dRaf"));var UV=J.next().value,W7=J.next().value;J=_.m(_.hj(!1,void 0,"TUTzaf"));var c7=J.next().value,Q$=J.next().value;J=_.K("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var To=_.tE("yt-searchbox"),Ci=_.tE("input"),VM=_.tE("div"),Go,Io=
new one,uz=Op2(),RT=_.oy().resolve(_.fN(_.yU)),P7=function(){var J1;return((J1=f.forceDarkMode)==null?void 0:J1.call(f))||!(RT==null||!RT())},O8=function(){return _.K("desktop_enable_scrollable_suggestions_panel")},ao="i"+u0Y++,H7=!1,um=!1,CQ="",t1=null,em=-1,Ig=function(){W7([]);
Q([]);zj(!1);Go&&(Go.hidden=!0);t1&&(clearTimeout(t1),t1=null);E(-1)},vO=function(J1,wN){J1.preventDefault();
Q$(!0);Go&&(Go.hidden=!1);var KY=x();J1=d();var TX=UV();wN=vru(wN);KY+=wN;for(KY>=J1.length?KY=-1:KY<-1&&(KY=J1.length-1);KY!==-1&&(TX.includes(KY)||KY>=J1.length||KY<0);)KY+=wN,KY>=J1.length&&(KY=-1);E(KY);x()>=0&&(Ci.value.value=d()[x()].text,A(0),F(),J1=x(),TX=U(),(TX=document.getElementById(wu[J1][TX]))&&O8()&&(J1===d().length-1?Go.scrollTop=Go.scrollHeight:TX.scrollIntoView({block:"nearest",inline:"start"})))},v7=_.iF(function(J1){if(!(J1.relatedTarget instanceof Element&&J1.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){l(!0);
var wN;(wN=f.focusCallback)==null||wN.call(f,!0);w()||(um?Go.hidden=!1:(_.ew(To.value,"yt-autonav-pause-focus",{}),X(J1.target.value)))}}),YX=_.iF(function(J1){if(!(J1.relatedTarget instanceof Element&&J1.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){l(!1);
var wN;(wN=f.focusCallback)==null||wN.call(f,!1);Go.scrollTop=0;Go.hidden=!0;_.ew(To.value,"yt-autonav-pause-blur",{})}}),we=function(J1){J1=vru(J1);
var wN;((wN=wu[x()])==null?0:wN[U()+J1])&&A(U()+J1)},bo=_.iF(function(J1){var wN=J1.target;
switch(J1.keyCode){case 13:J1.preventDefault();var KY;if((KY=wu[x()])==null?0:KY[U()]){var TX;(TX=document.getElementById(wu[x()][U()]))==null||TX.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}J1=J1.shiftKey?4:3;KY=uz;TX=x();KY.selectedSuggestionIndex=TX;B(wN.value,J1);break;case 27:Go&&(Go.hidden=!0);break;case 40:vO(J1,40);break;case 38:vO(J1,38);break;case 39:we(39);break;case 37:we(37);break;case 229:uz.inputMethodsTracker.add(4);break;default:uz.inputMethodsTracker.add(1),
xyo(uz)}return!1}),bz=_.iF(function(J1){X(J1.target.value);
F();O8()&&Go&&(Go.scrollTop=0);return!1}),KQ=_.iF(function(){uz.inputMethodsTracker.add(2);
xyo(uz);return!1});
_.Y5(function(){if(Go){uz.reset();if(window.ResizeObserver){var J1=new ResizeObserver(function(){mx()||(Go.style.minWidth=VM.value.offsetWidth+"px")});
J1.observe(VM.value);(new ResizeObserver(function(){ye()})).observe(Go);
_.Ov(function(){J1.disconnect()})}V();
window.addEventListener("yt-navigate-finish",V);window.addEventListener("yt-focus-searchbox",function(){Ci.value.focus()});
var wN;VN((wN=_.nL("SBOX_SETTINGS"))==null?void 0:wN.HAS_ON_SCREEN_KEYBOARD)}else _.xH(new _.dO("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var pk=_.iF(function(J1){J1.preventDefault();B(Ci.value.value,12);return!1}),pi=_.iF(function(J1){J1.preventDefault();
var wN,KY;(wN=Ci)==null||(KY=wN.value)==null||KY.focus();var TX,bm;((TX=Ci)==null?void 0:(bm=TX.value)==null?void 0:bm.value)!==""&&(Ci.value.value="",Ci.value.dispatchEvent(new Event("input")));return!1}),Y$=_.iF(function(){var J1=Fmu(Ci.value.value,d().filter(function(wN){return wN.type!==35}).map(function(wN){return{label:wN.text}}));
_.bW(To.value,"yt-open-popup-action",[{openPopupAction:J1},document.body]);return!1}),fX=_.iF(function(){Ci.value.focus();
return!1}),RO=function(J1,wN,KY,TX,bm){uz.selectedSuggestionIndex=KY;
B(wN,bm?3:1,TX)},m8=function(J1){Ci.value.value=J1;
Ci.value.dispatchEvent(new Event("input"));uz.inputMethodsTracker.add(5);xyo(uz,!0)},wu=[[]],z1=function(J1){var wN="searchbox-suggestion"+_.nu(_.qT);
wu[J1].push(wN);return wN},cf=function(J1){if(d()){wu=[[]];
for(var wN=0;wN<J1;wN++)wu.push([])}},ye=function(){if(O8()){var J1=Go,wN=J1.scrollTop;
J1=J1.scrollHeight-J1.clientHeight;OV(wN>=J1);wN=Math.abs(J1-wN);wN<=40?MA(1-(40-wN)/40):MA(1)}},GM=function(){return"opacity: "+rW()*100+"%"},iK=_.iF(function(){ye();
return!1}),nM=_.iF(function(){Q$(!1);
return!1}),pM,FL={},e2={},j0={},hX={};
return _.T("yt-searchbox",{class:_.Pw("ytSearchboxComponentHost",(FL.ytSearchboxComponentMweb=!1,FL.ytSearchboxComponentDesktop=!0,FL["yt-searchbox-filled-query"]=function(){return t()},FL["ytd-masthead"]=function(){return!a()},FL.ytSearchboxComponentHostDark=P7,FL)),
role:"search",el:To,"client-ve-type":10349},_.T("div",{el:VM,"on:click":fX,class:_.Pw("ytSearchboxComponentInputBox",(e2.ytSearchboxComponentInputBoxDark=P7,e2.ytSearchboxComponentInputBoxHasFocus=a,e2))},_.T("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":pk},_.T(_.v,{cond:a,then:function(){return _.T("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.T(_.Y8,{icon:"SEARCH"}))}}),_.T("input",{el:Ci,
class:_.Pw("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":ao,"aria-expanded":!((pM=Go)==null?0:pM.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":YX,"on:focus":v7,"on:input":bz,"on:keydown":bo,"on:paste":KQ,placeholder:f.placeholderText,"aria-activedescendant":function(){var J1;return(J1=wu[x()])==null?void 0:J1[U()]},
"aria-autocomplete":"list",role:"combobox"})),_.T(_.v,{cond:P,then:function(){return _.T("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.T(fHn,null))}}),_.T(_.v,{cond:t,
then:function(){return _.T("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.T("button",{class:"ytSearchboxComponentClearButton","on:click":pi,"aria-label":f.clearButtonAriaLabel||GuO},_.T(_.Y8,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.T(_.Oo,{model:{}})))}})),_.T("button",{class:_.Pw("ytSearchboxComponentSearchButton",(j0.ytSearchboxComponentSearchButtonDark=P7,j0)),
"on:click":pk,"aria-label":BMO,title:f.placeholderText},_.T(_.Y8,{icon:"SEARCH"})),_.T(_.v,{cond:function(){if(rfz()&&_.K("mweb_voice_search")&&f.voiceSearchButton)return f.voiceSearchButton()},
then:function(J1){var wN={};return _.T("div",{class:_.Pw("ytSearchboxComponentVoiceSearchWrapper",(wN.ytSearchboxComponentHideVoiceSearchButton=function(){return t()},wN))},_.T(_.xK,{data:J1},{buttonRenderer:function(KY){return _.T(_.Nu,{data:KY.data,
onButtonClickCallback:function(){}})}}))}}),_.T("div",{el:_.Sq(function(J1){return void(Go=J1)}),
id:ao,class:_.Pw("ytSearchboxComponentSuggestionsContainer",(hX.ytSearchboxComponentSuggestionsContainerDark=P7,hX["yt-searchbox-suggestions-container"]=!1,hX.ytSearchboxComponentSuggestionsContainerScrollable=O8(),hX.ytSearchboxComponentSuggestionsContainerAnimated=J,hX)),"on:scroll":iK,"on:mousemove":nM,role:"listbox",hidden:!0},_.T(_.dg,{each:d},function(J1,wN){return _.T(lDz,{suggestion:J1,isHighlighted:function(){return wN()===x()},
onClickCallback:RO,onHoverUpdateCallback:function(KY){if(_.K("desktop_enable_single_suggestion_highlight")){var TX=wN();KY&&(A(0),E(TX))}},
onRemoveCallback:function(KY){SqB(Io);KY===void 0||KY<0||UV().includes(KY)||W7([].concat(_.$d(UV()),[KY]))},
labels:f.labels,queryBuilderFunction:m8,suggestionIndex:wN,generateUniqueId:z1,highlightedId:function(){var KY;return(KY=wu[x()])==null?void 0:KY[U()]},
useScrollMargin:O8(),isKeyboardMode:c7})}),_.T(_.v,{cond:function(){return!mx()&&d().find(function(J1){return J1.type!==35})&&_.K("searchbox_reporting")},
then:function(){return _.T("button",{class:"ytSearchboxComponentReportButton","on:mousedown":Y$},_.Jf("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.T(_.v,{cond:function(){return!$Q()&&O8()},
then:function(){return _.T("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.T("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:GM}))}})))},"vg"),"yt-searchbox",{props:{searchEndpoint:_.W4,
placeholderText:_.W4,labels:_.W4,voiceSearchButton:_.W4,focusCallback:_.gm,clearButtonAriaLabel:_.W4,forceDarkMode:_.W4}});var mA=function(){var f=_.I.apply(this,arguments)||this;f.menuButtonTargetId="topbar-guide-menu";f.narrow=!1;f.menuStrings={BACK_ALT_LABEL:_.Jf("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.Jf("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.Jf("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.Jf("SBOX_PLACEHOLDER",void 0,"Search")};f.pageDarkTheme=document.documentElement.hasAttribute("dark");f.watchPageScrollTop=0;f.theater=!1;f.fullscreen=!1;f.desktopUnifiedSearchPanelMode=_.K("desktop_enable_unified_search_panel");
f.cinematicTheaterMode=_.K("web_cinematic_theater_mode");f.ytSearchboxFocused=!1;f.searchboxLabels=_.nL("SBOX_LABELS");f.topbarIsAboveChipbar=!1;f.isDarkThemeForced=!1;f.areGhostCardsHidden=!1;f.guideKeyboardToggle=!1;f.voiceSearchManager=vNY();f.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};f.setYtSearchboxFocused=function(S){f.ytSearchboxFocused=S};
return f};
_.q(mA,_.I);_.e=mA.prototype;_.e.computeSimpleText=function(f){return _.ac(f)};
_.e.onDarkChanged=function(){for(var f=_.m(this.buttons||[]),S=f.next();!S.done;S=f.next())S.value.isOverlay=!!this.dark;f=_.m(this.buttonRenderers||[]);for(S=f.next();!S.done;S=f.next())S.value.overrides=this.computeButtonOverride()};
_.e.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.e.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"}}}};
_.e.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var f=_.CD(_.UX(),"aa");_.Rl(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||f||(this.isDarkThemeForced=this.dark=!0);this.logoType?(f=this.hostElement.querySelector("#masthead-logo"))&&(_.K("polymer_on_demand_shady_dom")?f.setAttribute("slot","masthead-logo-old"):_.Pv(f)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.Fc(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.Fc(this,this.onSetTheaterModeEnabled))};
_.e.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.Fc(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.Fc(this,this.onSetTheaterModeEnabled))};
_.e.dataChanged=function(){var f=this.data;f&&(this.voiceEnabled=f.voiceSearchButton?vNY().isSupported():!1,_.fD8(_.Qh(),this.menuButtonTargetId,this.guideButton),f.onReceivedActions&&f.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.Xh(this.hostElement,f.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&f&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.Rl(this.hostElement,"dark",!1),_.Rl(this.hostElement,"theater",!1),
(f=this.hostElement.querySelector("#masthead-logo"))&&(_.K("polymer_on_demand_shady_dom")?f.setAttribute("slot","masthead-logo-old"):_.Pv(f))))};
_.e.computeCenterHidden=function(){var f;return this.data&&!((f=this.data.searchbox)==null?0:f.fusionSearchboxRenderer)};
_.e.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.Rl(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.e.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.e.onWatchScroll=function(f){this.watchPageScrollTop=f.detail||0;this.updateMastheadBackgroundOpacity()};
_.e.onFullscreenChangeAction=function(f){f||(this.watchPageScrollTop=0);this.fullscreen=f;this.updateMastheadBackgroundOpacity()};
_.e.onSetTheaterModeEnabled=function(f){this.theater=f.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.e.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.e.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.e.setBackgroundOpacity=function(f){f=this.calculateBackgroundOpacity(f);this.background.style.opacity=""+f};
_.e.calculateBackgroundOpacity=function(f){var S=this.theater&&this.cinematicTheaterMode?.6:0,B=this.hostElement.clientHeight/2;return Math.min(Math.max(f,0),B)/B*(1-S)+S};
_.e.shouldShowCinematicMastHead=function(){var f=_.K("kevlar_watch_grid")&&!_.K("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(f||this.pageDarkTheme)};
_.e.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.e.focusGuide=function(){this.guideButton.focus()};
_.e.onGuideToggleTap=function(){_.ew(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.e.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.e.onGuideToggleHover=function(){_.ew(this.hostElement,"yt-guide-hover")};
_.e.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.e.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.e.closeOnOutsideClickCondition=function(f){for(f=_.ct(f);f[0];){var S=f.shift();if(S instanceof Element&&S.id==="kbd")return!1}return!0};
_.e.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.e.pausePlayer=function(){var f;(f=_.B8())==null||f.pause();this.pauseMiniplayer()};
_.e.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var f;(f=_.oy().resolve(_.N_).getPlayerElement())==null||f.pause()}};
_.e.isMiniplayerActive=function(){return _.oy().resolve(_.N_).isMiniplayerActive()};
_.e.updateNarrowFromBinding=function(f){this.narrow=f.detail.value};
_.e.onYtSendFeedbackAction=function(){_.bW(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.y3.Object.defineProperties(mA.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.K("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 f;return(f=this.data)==null?void 0:f.voiceSearchButton}}}});
mA.prototype.narrowChanged=mA.prototype.narrowChanged;mA.prototype.onWatchPageChange=mA.prototype.onWatchPageChange;mA.prototype.onRendererStamperFinished=mA.prototype.onRendererStamperFinished;mA.prototype.dataChanged=mA.prototype.dataChanged;mA.prototype.onDarkChanged=mA.prototype.onDarkChanged;_.N([_.r(_.Ld),_.Z("design:type",Object)],mA.prototype,"ironResizableBehavior",void 0);_.N([_.r(_.qKu),_.Z("design:type",Object)],mA.prototype,"ytdExpandableInputBehavior",void 0);
_.N([_.r(_.Iu.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],mA.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],mA.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],mA.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],mA.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],mA.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.Ek),_.Z("design:type",Object)],mA.prototype,"ytdReduxBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],mA.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],mA.prototype,"narrow",void 0);_.N([_.n(),_.Z("design:type",Object)],mA.prototype,"logoType",void 0);_.N([_.n(),_.Z("design:type",Boolean)],mA.prototype,"voiceEnabled",void 0);
_.N([_.n(),_.Z("design:type",Object)],mA.prototype,"menuStrings",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],mA.prototype,"dark",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],mA.prototype,"pageDarkTheme",void 0);_.N([_.n(),_.Z("design:type",Object)],mA.prototype,"watchPageScrollTop",void 0);_.N([_.n({reflectToAttribute:!0,selector:_.kr}),_.Z("design:type",Boolean)],mA.prototype,"isWatchPage",void 0);
_.N([_.n({reflectToAttribute:!0,selector:_.eGK}),_.Z("design:type",Boolean)],mA.prototype,"isShortsPage",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],mA.prototype,"theater",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],mA.prototype,"fullscreen",void 0);_.N([_.n({reflectToAttribute:!0,selector:_.RG1}),_.Z("design:type",String)],mA.prototype,"frostedGlassMode",void 0);_.N([_.n(),_.Z("design:type",Object)],mA.prototype,"ytSearchboxFocused",void 0);
_.N([_.KP("#buttons > *"),_.Z("design:type",Array)],mA.prototype,"buttons",void 0);_.N([_.KP("ytd-button-renderer"),_.Z("design:type",Array)],mA.prototype,"buttonRenderers",void 0);_.N([_.vF("#background"),_.Z("design:type",HTMLDivElement)],mA.prototype,"background",void 0);_.N([_.vF("#guide-button"),_.Z("design:type",Object)],mA.prototype,"guideButton",void 0);_.N([_.vF("#logo"),_.Z("design:type",Object)],mA.prototype,"logo",void 0);
_.N([_.n({computed:"computeButtonOverride(dark)"}),_.Z("design:type",Object)],mA.prototype,"buttonOverrides",void 0);_.N([_.HF("dark"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mA.prototype,"onDarkChanged",null);_.N([_.n({value:function(){return this.onVoiceTap.bind(this)}}),
_.Z("design:type",Function)],mA.prototype,"boundOnTapVoiceButton",void 0);_.N([_.n(),_.Z("design:type",Object)],mA.prototype,"topbarIsAboveChipbar",void 0);_.N([_.n(),_.Z("design:type",String),_.Z("design:paramtypes",[])],mA.prototype,"guideIcon",null);_.N([_.k("voiceEnabled"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],mA.prototype,"shouldShowVoiceSearchButton",null);_.N([_.k("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],mA.prototype,"voiceSearchButton",null);
_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mA.prototype,"dataChanged",null);_.N([_.Vg("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mA.prototype,"onRendererStamperFinished",null);_.N([_.HF("isWatchPage"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mA.prototype,"onWatchPageChange",null);
_.N([_.HF("narrow"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mA.prototype,"narrowChanged",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-masthead"})],mA);
_.p(mA,"ytd-masthead",function(){if(ZpY!==void 0)return ZpY;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return ZpY=f},{mode:_.X_("kevlar_poly_si_batch_j036")?1:2});var eJu;var bI2={},mS2={},zJn={},RJo={},XHu=(RJo.OFFLINE=(bI2["publicytnetworkstatus-online"]="BACK_ONLINE",bI2),RJo.ONLINE=(mS2["publicytnetworkstatus-offline"]="OFFLINE",mS2),RJo.BACK_ONLINE=(zJn["publicytnetworkstatus-offline"]="OFFLINE",zJn.TIMER_TRIGGER="ONLINE",zJn),RJo),zk=function(){var f=_.I.apply(this,arguments)||this;f.currentState="ONLINE";f.scheduledJobId=0;f.bannerString="";f.bannerVe=null;f.networkStatusManagerInstance=new _.N7;return f};
_.q(zk,_.I);_.e=zk.prototype;_.e.attached=function(){var f=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){f.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){f.stateChangeHandler("publicytnetworkstatus-offline")})};
_.e.detached=function(){var f=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){f.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){f.stateChangeHandler("publicytnetworkstatus-offline")})};
_.e.enterState=function(f){var S=this;this.scheduledJobId&&_.xJ.cancelJob(this.scheduledJobId);f==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):f==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.Jf("NO_INTERNET_CONNECTION",void 0,"No internet connection")):f==="BACK_ONLINE"&&(this.bannerString=_.Jf("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.q6(_.xJ,function(){S.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=f};
_.e.stateChangeHandler=function(f){(f=XHu[this.currentState][f])&&this.enterState(f)};
_.e.logVisibility=function(f){var S=_.xc();this.createBannerVe(f);S&&this.bannerVe&&(f?_.Zu(S,[this.bannerVe]):_.tf(S,[this.bannerVe]))};
_.e.createBannerVe=function(f){!this.bannerVe&&f&&(this.bannerVe=_.Eo(37929),_.wY(_.ik(),this.bannerVe))};
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",String)],zk.prototype,"currentState",void 0);_.N([_.n(),_.Z("design:type",Object)],zk.prototype,"scheduledJobId",void 0);_.N([_.n(),_.Z("design:type",Object)],zk.prototype,"bannerString",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-network-status-banner"})],zk);
_.p(zk,"ytd-network-status-banner",function(){if(eJu!==void 0)return eJu;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return eJu=
f},{mode:1});var wHo;var R1=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};f.hidden=!0;f.frostedGlass=_.K("web_frosted_glass");return f};
_.q(R1,_.I);R1.prototype.computeHidden=function(f){return f&&f.status?!1:!0};
R1.prototype.handleUpdatePermissionRoleCommand=function(f){if(f=_.H(f,_.Us6))if(f=_.H(f.renderer,_.I7X))this.data=f};
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],R1.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],R1.prototype,"componentBehavior",void 0);_.N([_.n({value:!0,computed:"computeHidden(data)"}),_.Z("design:type",Object)],R1.prototype,"hidden",void 0);_.N([_.n(),_.Z("design:type",Object)],R1.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],R1.prototype,"frostedGlass",void 0);
_.N([_.C({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],R1);
_.p(R1,"ytd-permission-role-bottom-bar-renderer",function(){if(wHo!==void 0)return wHo;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return wHo=f},{mode:1});var hJY;var TMo;var KW2={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var XW=function(){return _.I.apply(this,arguments)||this};
_.q(XW,_.I);_.e=XW.prototype;_.e.attached=function(){this.JSC$18609_scroller&&(this.JSC$18609_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18609_scroller.attached&&typeof this.JSC$18609_scroller.attached==="function"&&this.JSC$18609_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(B){B.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var f=_.m9(this.hostElement);f.querySelector("tp-yt-paper-radio-group").selected="";var S=f.querySelector("#reason-text");S&&(S.value="");f.querySelector("#description-text").value=""}};
_.e.canSubmit=function(f,S){_.ew(this.hostElement,"yt-invalidate-popup-tabbables");return!(f&&S)};
_.e.onCancel=function(){_.bW(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.e.onSubmit=function(){var f=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(b){return b.active}).map(function(b){return b.innerText.trim()}),S=this.hostElement.querySelector("tp-yt-paper-radio-group"),B=S.selectedItem,G=B.name;
B=B.innerText.trim();var g=S.querySelector("#reason-text");S=void 0;g&&(S=g.value);(g=this.descriptionText.value)&&(g=g.trim());dzX(this.data.searchQuery,f,G,B,g,S);_.bW(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.e.sendFormSubmitToast=function(){var f=_.oe(_.Jf("SBOX_INAPPROPRIATE_TOAST"));_.bW(this.hostElement,"yt-open-popup-action",[f,this])};
_.e.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(f){return f.active})};
_.e.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
XW.prototype.onIronSelect=XW.prototype.onIronSelect;XW.prototype.onIronChange=XW.prototype.onIronChange;XW.prototype.dataChanged=XW.prototype.dataChanged;_.N([_.n(),_.Z("design:type",Object)],XW.prototype,"data",void 0);_.N([_.n({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.Z("design:type",Boolean)],XW.prototype,"submitDisabled",void 0);_.N([_.n(),_.Z("design:type",Boolean)],XW.prototype,"suggestionSelected",void 0);
_.N([_.n(),_.Z("design:type",Boolean)],XW.prototype,"catagorySelected",void 0);_.N([_.vF("#scroller"),_.Z("design:type",Object)],XW.prototype,"JSC$18609_scroller",void 0);_.N([_.vF("#description-text"),_.Z("design:type",Object)],XW.prototype,"descriptionText",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],XW.prototype,"dataChanged",null);
_.N([_.Vg("iron-change"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],XW.prototype,"onIronChange",null);_.N([_.Vg("iron-select"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],XW.prototype,"onIronSelect",null);_.N([_.C({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],XW);
_.p(XW,"ytd-search-suggestion-report-dialog",function(){if(TMo!==void 0)return TMo;var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);return TMo=f},{mode:1});var w$=function(f){var S=f.openPopupAction;var B=f.target;var G=f.container;var g=f.popupContainerConfig;var b=f.getElement;f=f.removeWhenClosed===void 0?!1:f.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=S;this.target=B;this.container=G;this.popupContainerConfig=g;this.getElement=b;this.JSC$18615_popupConfig=this.popupContainerConfig.JSC$17730_popupConfig[this.openPopupAction.popupType];this.rendererName=(S=this.getName())?_.Yn1(S,WQZ(this.popupContainerConfig,
S)):"";_.K("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=f);this.createPopup()};
w$.prototype.updatePopup=function(f){this.openPopupAction=f;this.JSC$18615_popupConfig=this.popupContainerConfig.JSC$17730_popupConfig[this.openPopupAction.popupType];F0B(this);_.K("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
w$.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var Pce=function(f,S,B){(S=S&&f.JSC$18615_popupConfig.narrowProperties?f.JSC$18615_popupConfig.narrowProperties:f.JSC$18615_popupConfig.properties)&&B!==void 0&&(S.isAriaModal=B);VQO(f,S);f.isRtl()&&VQO(f,f.JSC$18615_popupConfig.rtlProperties);JSe(f)};
w$.prototype.createPopup=function(){var f=this.JSC$18615_popupConfig.component;if(this.popupContent=vnB(this,this.rendererName)){if(f){this.popup=vnB(this,f);var S=this.popupContent;_.K("web_enable_wrapper_for_cow_component_in_popup")&&(S=document.createElement("div"),S.appendChild(this.popupContent));_.K("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$18615_popupConfig.slotName&&S.setAttribute("slot",this.JSC$18615_popupConfig.slotName);f=this.popup;var B=this.container.tagName.toLowerCase(),
G=_.fP(S);_.yls(_.Sd(f),_.gv(S,B,G));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.K("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.m9(this.container).appendChild(this.popup)}};
var F0B=function(f){var S,B,G=(S=f.openPopupAction.accessibilityData)==null?void 0:(B=S.accessibilityData)==null?void 0:B.label;G&&(f.popup.ariaLabel=G);var g;((g=f.popupContent.polymerController)!=null?g:f.popupContent).data=(0,_.$v.unsafeClone)(f.openPopupAction.popup[f.getName()]);f.popupContent.duration=K0e(f);f.popupContent.positionType=f.openPopupAction.position;var b=f.openPopupAction.properties;b&&Object.keys(b).forEach(function(z){f.popupContent[z]=b[z]})},VQO=function(f,S){if(S)for(var B=
_.m(Object.keys(S)),G=B.next();!G.done;G=B.next())G=G.value,f.popup[G]=S[G]},JSe=function(f){if(f.openPopupAction.position){var S=f.JSC$18615_popupConfig.positionalProperties&&f.JSC$18615_popupConfig.positionalProperties[f.openPopupAction.position],B=f.JSC$18615_popupConfig.rtlPositionalProperties&&f.JSC$18615_popupConfig.rtlPositionalProperties[f.openPopupAction.position];
S=f.isRtl()&&B?B:S;S.shiftedHorizontalOffset&&(B=f.popup.style.display,f.popup.style.display="block",f.popupContent&&f.popup.positionTarget&&f.popupContent.clientWidth>f.popup.positionTarget.clientWidth&&(S.horizontalOffset=f.popup.positionTarget.clientWidth/2-S.shiftedHorizontalOffset),f.popup.style.display=B);VQO(f,S)}},dSY=function(f,S){if(S)for(var B=_.m(Object.keys(S)),G=B.next();!G.done;G=B.next())G=G.value,f.popup.style[G]=S[G]};
w$.prototype.getName=function(){return _.E6(this.openPopupAction.popup,"renderer")||_.E6(this.openPopupAction.popup,"dialog")||_.E6(this.openPopupAction.popup,"model")||void 0};
var K0e=function(f){f=f.openPopupAction.durationHintMs;return f===0?f:Math.max(4E3,f||4E3)};
w$.prototype.isRtl=function(){return _.nL("HTML_DIR")==="rtl"};
var vnB=function(f,S){f=f.getElement(S,f.target);f==null&&_.Lg(new _.dO("popup getElement returned null",S));return f};var iIY={};
iIY.YtPopupContainerBehavior=[_.Nm.YtComponentBehavior,_.b3.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set;this.isAriaModal=!1},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.GZ(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.gh(this.hostElement)},
closePopup:function(f){var S=this.createCacheKey(void 0,f);this.popups_[S]&&this.handleClosePopupAction_(void 0,f)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.xJ.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.xJ.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(f){f.opened&&f.keepBelowPlayer&&this.ensurePopupBelowPlayer(f)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var f in this.popups_){var S=this.popups_[f];if(S.popup.scrollAction==="refit"){var B=S.popup.positionTarget.getBoundingClientRect(),G=S.popup;B=B.top;var g=S;if(!g.naturalHeight){g.popup.hidden=!1;g.popup.style.position="fixed";g.popup.style.top="0px";g.popup.style.left="0px";var b=g.popup.getBoundingClientRect();g.naturalHeight=b.bottom-b.top;g.popup.refit()}G.hidden=!(B>=g.naturalHeight+60);S.popupContent.clientHeight===0&&S.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(f){this.popupContainerConfig=f},
handleOpenPopupAction:function(f,S){var B=f.openPopupAction,G=_.oy().resolve(_.fN(_.m2))&&B.popupType==="TOAST";G&&!B.uniqueId&&(B.uniqueId=_.O1());if(!_.K("popup_container_parent_target_killswitch")){var g;S=(g=this.getParentTarget(S))!=null?g:S}var b=this.ensurePopup_(B,S);return new _.TM(function(z){b.then(function(X){if(!X)return z();this.maybeCreateNarrowMediaQuery_();var w=this.createCacheKey(X.rendererName,X.openPopupAction.uniqueId);if(B.showOncePerUniqueId){if(this.shownPopupKeys_.has(w))return z();
this.shownPopupKeys_.add(w)}w=this.popups_[w];var F=!(!w||!w.openPopupAction.beReused);F=!!B.reusePopup||F;if(X.popup.opened&&!F){G&&!X.openPopupAction.replacePopup||this.handleClosePopupAction_(X.rendererName,X.openPopupAction.uniqueId);F=B.popupType==="DIALOG"&&!_.K("popup_container_dialog_reopen_killswitch");if(!G&&!F&&w&&w.target==S&&!X.openPopupAction.replacePopup)return z();_.ui(X.popup,function(){this.completeOpenPopupAction_(B,S,X);z()}.bind(this))}else X.popup.opened?X.updatePopup(B):this.completeOpenPopupAction_(B,
S,X),z()}.bind(this))}.bind(this))},
getParentTarget:function(f){if(f&&f instanceof HTMLElement)for(var S=_.m(Object.entries(this.popups_)),B=S.next();!B.done;B=S.next())if(B=_.m(B.value),B.next(),B=B.next().value,B.popup.tagName==="TP-YT-IRON-DROPDOWN"&&f.closest(B.rendererName))return B.target},
completeOpenPopupAction_:function(f,S,B){B.updatePopup(f);f=this.narrowMediaQuery_.queryMatches;var G=this.isAriaModal;B.target=S;var g;S=((g=B.target.polymerController)!=null?g:B.target).popupPositionTarget||B.target;B.JSC$18615_popupConfig.targetContainer&&(S=B.container);B.popup.positionTarget=S;B.popupContent.positionTarget=S;JSe(B);B.JSC$18615_popupConfig.forceFocus&&(B.popupContent.style.outline="none");B.popupContent.tabIndex=-1;B.JSC$18615_popupConfig.narrowProperties&&(B.popup.style.position=
"static");B.JSC$18615_popupConfig.preventAutonav&&B.popup.setAttribute("prevent-autonav",!0);B.JSC$18615_popupConfig.forceCloseOnOutsideClick&&B.popup.setAttribute("force-close-on-outside-click",!0);Pce(B,f,G);dSY(B,B.JSC$18615_popupConfig.styles);B.isRtl()&&dSY(B,B.JSC$18615_popupConfig.rtlStyles);if(!B.openPopupAction.shouldStopParentSignal){var b;g=(b=B.target.polymerController)!=null?b:B.target;(B.popupContent.startForwardingEvents||B.popupContainerConfig.forwardingEnabledPopups.has(B.rendererName))&&
g.parentComponent!==B.popupContent&&B.popupContent!==B.target&&B.target!==document.body&&(B.popupContent.startForwardingEvents?B.popupContent.startForwardingEvents(B.popupContainerConfig.forwardedEvents,B.target):(B.JSC$18615_eventForwarder||(B.JSC$18615_eventForwarder=new _.VG(B.popupContent)),B.JSC$18615_eventForwarder.start(B.popupContainerConfig.forwardedEvents,B.target)))}B=B.popup;B.addEventListener("iron-overlay-opened",_.Fc(this,this.onPopupIronOverlayOpened_));B.addEventListener("iron-overlay-closed",
_.Fc(this,this.onPopupIronOverlayClosed_));B.addEventListener("iron-overlay-canceled",_.Fc(this,this.onPopupIronOverlayCanceled_));B.addEventListener("yt-refit",_.Fc(this,this.refitPopup_));B.addEventListener("yt-invalidate-popup-tabbables",_.Fc(this,this.handleInvalidatePopupTabbables_));B.open()},
getPopupDurationMs_:function(f){return f.durationHintMs===0?f.durationHintMs:Math.max(4E3,f.durationHintMs||4E3)},
handleClosePopupAction_:function(f,S){var B=_.K("web_popup_cache_key_killswitch")||!!S;if(f||B){var G=this.createCacheKey(f,S);f=(f=this.popups_[G])&&f.popup}else f=_.IdX(_.Z6);if(f&&f.close){if(S=_.oy().resolve(_.fN(_.R5)))f.restoreFocusOnClose=S.isKeyBoardInUse();f.close();this.removePopup_(f,G)}},
handleClosePopupCommand_:function(f){f.closePopupCommand&&f.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,f.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(f){var S={},B;for(B in this.popups_)if(S={key$jscomp$1151:S.key$jscomp$1151},S.key$jscomp$1151=B,!f||!f.some(function(b){return function(z){return z==b.key$jscomp$1151}}(S))){var G=this.popups_[S.key$jscomp$1151],g=G.popup;
_.oy().resolve(_.fN(_.m2))&&G.openPopupAction.popupType==="TOAST"||(g&&g.close&&g.close(),this.removePopup_(g,S.key$jscomp$1151))}},
handleClosePopupsAction_:function(f){f.forEach(function(S){var B=this.popups_[S];B&&((B=B.popup)&&B.close&&B.close(),this.removePopup_(B,S))}.bind(this))},
handleGetPopupOpenedAction_:function(f,S){return(S=this.createCacheKey(f,S))&&this.popups_[S]?this.popups_[f].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var f=[],S;for(S in this.popups_){var B=this.popups_[S];B.popup.opened&&f.push(B)}return f},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(f,S){_.K("ytpopup_disable_default_html_caching")&&f&&f.removeWhenClosed&&(_.m9(this.hostElement).removeChild(f),S&&this.popups_[S]&&delete this.popups_[S])},
shouldReusePopup_:function(f){return!(!f||!f.reusePopup)||!(!f||!f.beReused)},
ensurePopup_:function(f,S){this.maybeCreateNarrowMediaQuery_();var B=_.E6(f.popup,"renderer")||_.E6(f.popup,"dialog")||_.E6(f.popup,"model");if(!B)return _.wh();B=_.Yn1(B,WQZ(this.popupContainerConfig,B));return _.wh(this.getAndMaybeCreatePopup_(f,B,S))},
getAndMaybeCreatePopup_:function(f,S,B){var G=this.createCacheKey(S,f.uniqueId);if(this.popups_[G])return this.popups_[G];f=new w$({openPopupAction:f,target:B,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(S)});return this.popups_[G]=f},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(f){return _.K("ytpopup_disable_default_html_caching")?f&&f.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",_.Fc(this,this.openPopupQueryMatchesChanged_)),_.m9(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(f){f=f.detail.value;for(var S in this.popups_)Pce(this.popups_[S],f)},
onPopupIronOverlayClosed_:function(f){var S=f.currentTarget,B=_.VGG(S);B=B.length>0?B[0]:S;if(B.is!=="ytd-reel-watch-while-dialog-renderer"||f.target.is!=="tp-yt-iron-dropdown"){f.detail.popup=S;f.detail.popupRenderer=B;var G,g={context:{openingElement:((G=this.popups_[(B==null?void 0:B.is)||""])==null?void 0:G.target)||void 0}};Object.assign(g,f.detail);var b;_.ew((b=B.hostElement)!=null?b:B,"yt-popup-closed",g);S.removeEventListener("yt-refit",_.Fc(this,this.refitPopup_));S.removeEventListener("yt-invalidate-popup-tabbables",
_.Fc(this,this.handleInvalidatePopupTabbables_));S.removeEventListener("iron-overlay-canceled",_.Fc(this,this.onPopupIronOverlayCanceled_));S.removeEventListener("iron-overlay-closed",_.Fc(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(S)}},
onPopupIronOverlayCanceled_:function(f,S){var B=f.currentTarget,G=_.VGG(B);G=G.length>0?G[0]:B;if(G.is!=="ytd-reel-watch-while-dialog-renderer"||f.target.is!=="tp-yt-iron-dropdown"){var g;_.ew((g=G.hostElement)!=null?g:G,"yt-popup-canceled",f.detail);g=S?_.ct(S):null;(!S||["click","tap"].includes(S.type))&&!B.hasAttribute("force-close-on-outside-click")&&B.positionTarget&&g&&g.includes(B.positionTarget)&&f.preventDefault();B.restoreFocusOnClose=_.qx.keyboardEventMatchesKeys(S,"esc")}},
onPopupIronOverlayOpened_:function(f){f=f.currentTarget;var S=_.VGG(f);S=S.length>0?S[0]:f;var B,G;_.ew((B=S.hostElement)!=null?B:S,"yt-popup-opened",(G=S.hostElement)!=null?G:S);f.keepBelowPlayer&&(this.ensurePopupBelowPlayer(f,!0),this.dynamicallyPositionedElements_.add(f));B=_.oy().resolve(_.fN(_.R5));G=!!S.querySelector("#toast");B&&B.isKeyBoardInUse()&&!G&&(typeof S.focusFirstItem==="function"?S.focusFirstItem():(S=_.n8X(f),S.length&&S[0].focus()));f.removeEventListener("iron-overlay-opened",
_.Fc(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(f){f=f.currentTarget;f.refit&&f.refit()},
refitPopups_:function(){for(var f in this.popups_)this.popups_[f].refit()},
handleInvalidatePopupTabbables_:function(f){f=f.currentTarget;f.invalidateTabbables&&f.invalidateTabbables()},
createCacheKey:function(f,S){return _.K("web_popup_cache_key_killswitch")?S?f+"#"+S:f:S?"#"+S:f},
openSheet:function(f,S){var B=f==null?void 0:f.openPopupActionCommand;!B&&(f==null?0:f.viewModel)&&(B={openPopupAction:{popup:{sheetViewModel:f.viewModel},popupType:"CONTEXTUAL_SHEET"}});B&&this.handleOpenPopupAction(B,S)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var f=this;return _.R(function(S){return S.return(f.handleGetOpenedPopupsAction_().filter(function(B){var G;return((G=B.openPopupAction)==null?void 0:G.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(f,S,B){if(_.K("web_dialog_utils_killswitch")){var G=f==null?void 0:f.openPopupActionCommand,g=(B==null?0:B.ariaLabel)?{accessibilityData:{accessibilityData:{label:B.ariaLabel}}}:void 0;!G&&(f==null?0:f.viewModel)&&(G={openPopupAction:Object.assign({},{popup:{dialogViewModel:f.viewModel},popupType:(B==null?0:B.isModal)?"MODAL":"DIALOG"},g&&g)});G&&this.handleOpenPopupAction(G,S)}else{if(g=f==null?void 0:f.viewModel){var b=B=B===void 0?{}:B;B=b.ariaLabel;g={popup:{dialogViewModel:g},
popupType:b.isModal?"MODAL":"DIALOG"};b={accessibilityData:{label:B}};B&&(g.accessibilityData=b);g={openPopupAction:g}}else g=void 0;if(g=(G=g)!=null?G:f==null?void 0:f.openPopupActionCommand)this.isAriaModal=_.K("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(g,S)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var f=this;return _.R(function(S){return S.return(f.handleGetOpenedPopupsAction_().filter(function(B){var G;return((G=B.openPopupAction)==null?void 0:G.popupType)==="DIALOG"}).length>0)})}}];var HIu;var qqO;var $So=_.f4(["about:blank"]),h8=function(){var f=_.I.apply(this,arguments)||this;f.isMuted=!1;f.pageLoadTimeoutId=void 0;return f};
_.q(h8,_.I);_.e=h8.prototype;_.e.dataChanged=function(){var f=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var S=this.data.url,B=_.E4(S);_.K("enable_yt_ata_iframe_authuser")?(B=_.E4(S),_.x6(this.iframe,iJo(B))):_.x6(this.iframe,B);this.pageLoadTimeoutId=_.q6(_.kj(),function(){return void f.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.Bq({destination:window,iframe:this.iframe,origin:_.EXL(B.toString()),channelName:"ataiframe",onMessage:_.DOA(Sde,function(G){Bx2(G.data)?(G=_.dI(G.data,1,_.iz,_.SI()),G.length!==1?_.Lg(Error("ql")):(G=G[0],G===3?(f.isMuted=!0,f.logStateChanged({adMuteRequested:!0})):G===1&&f.close())):_.Lg(Error("rl"))}),
onEstablished:function(){f.cancelPageLoadTimeout();f.logStateChanged({pageLoadSucceeded:!0})}})}};
_.e.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.kj().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.e.logStateChanged=function(f){var S;if((S=this.data)==null?0:S.trackingParams)f={adsClientData:{aboutThisAdData:f}},_.ik().stateChanged(this.data.trackingParams,f)};
_.e.close=function(){_.bW(this.hostElement,"yt-close-popup-action",[this.is])};
_.e.handlesPopupClosed=function(f,S){var B=this,G,g;return _.R(function(b){if(b.nextAddress==1)return _.nL("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.bW(B.hostElement,"on-about-this-ad-popup-closed",[B.isMuted,S]),b.jumpTo(0)):f&&HJO(f)?_.h(b,qAY(f),4):(B.isMuted&&_.bW(B.hostElement,"yt-mute-ad-action",[B.is,B]),b.jumpTo(0));if(G=b.yieldResult){var z=g=new _.$M(G),X=B.isMuted;z.getOptions().includes("onAboutThisAdPopupClosed")?_.QnL(z,"onAboutThisAdPopupClosed",{isMuted:X,layoutId:S}):_.GN("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.TT(b)})};
_.e.onPopupClosed=function(f){var S=this,B,G;return _.R(function(g){B=_.Sr($So);_.x6(S.iframe,B);S.cancelPageLoadTimeout();if(!S.data)return g.jumpTo(0);S.ytRendererBehavior.markDirty();G=f.detail.context.openingElement;return _.h(g,S.handlesPopupClosed(G,S.data.layoutId),0)})};
_.e.detached=function(){this.cancelPageLoadTimeout()};
_.e.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
h8.prototype.onPopupClosed=h8.prototype.onPopupClosed;h8.prototype.dataChanged=h8.prototype.dataChanged;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],h8.prototype,"ytRendererBehavior",void 0);_.N([_.vF("#iframe"),_.Z("design:type",HTMLIFrameElement)],h8.prototype,"iframe",void 0);_.N([_.n(),_.Z("design:type",Object)],h8.prototype,"data",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],h8.prototype,"dataChanged",null);
_.N([_.Vg("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype",Promise)],h8.prototype,"onPopupClosed",null);_.N([_.nP({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],h8);
_.p(h8,"yt-about-this-ad-renderer",function(){if(qqO===void 0){var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;HIu===void 0&&(HIu=document.createElement("template"));var G=HIu;B.call(S,G.content.cloneNode(!0),f.content.firstChild);qqO=f}f=qqO;return f},{mode:2});var Q6u;var YqM;var Tk=function(f){var S=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=S.message;"stack"in S&&(this.stack=S.stack);this.maxFileSizeMB=f;Object.setPrototypeOf(this,Tk.prototype)};
_.q(Tk,Error);var rSu=function(f,S){var B=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=B.message;"stack"in B&&(this.stack=B.stack);this.minWidth=f;this.minHeight=S;Object.setPrototypeOf(this,rSu.prototype)};
_.q(rSu,Error);var j6z=function(f){this.requirements=f;this.JSC$18643_maxFileSize=f.maxFileSizeMB*1024*1024},OIM=function(f,S){if(S.size>f.JSC$18643_maxFileSize)throw new Tk(f.requirements.maxFileSizeMB);
};var xS2=function(f,S){this.canvas=f;this.imageEditorBuilder=S};
xS2.prototype.addEventListeners=function(f){var S=function(g){En$(f,g)};
this.JSC$18649_mouseDownEvent=S;var B=function(g){L0X(f,g)};
this.JSC$18649_mouseMoveEvent=B;var G=function(){kuz(f)};
this.JSC$18649_mouseUpEvent=G;this.canvas.addEventListener("mousedown",S);this.canvas.addEventListener("mousemove",B);document.addEventListener("mouseup",G)};
xS2.prototype.removeEventListeners=function(){this.JSC$18649_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$18649_mouseDownEvent);this.JSC$18649_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$18649_mouseMoveEvent);this.JSC$18649_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$18649_mouseUpEvent)};
var nnZ=function(f,S){f.removeEventListeners();return new Promise(function(B){var G=new Image;G.crossOrigin="anonymous";G.onload=function(){var g=f.imageEditorBuilder(f.canvas,G);f.addEventListeners(g);B(g)};
G.src=S})},FW=function(f,S,B,G,g,b,z,X){this.canvas=f;
this.image=S;this.requiredRatio=B;this.minImageCropDimension=G;this.minOutputImageResolution=g;this.component=b;this.styleFocusedCorner=X===void 0?!0:X;this.action=2;this.focusedCorner=this.resizeCorner=0;f=this.canvas.getContext("2d");if(!f)throw Error("sl");this.ctx=f;this.canvasMargin=z!=null?z:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;z=this.image;f=this.canvasInnerWidth/z.width;z.height*f>912&&(f=z.width/z.height*912/z.width);z=f;this.scaledImageWidth=this.canvas.width%2?
Qcn(this.image.width*z):$z$(this.image.width*z);this.scaledImageHeight=Math.round(this.image.height*z);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$18652_overlayMarginBottom=this.JSC$18652_overlayMarginTop=this.canvasMargin;this.JSC$18652_overlayMarginRight=this.JSC$18652_overlayMarginLeft=this.horizontalMargin;this.JSC$18652_overlayWidth=this.scaledImageWidth;this.JSC$18652_overlayHeight=this.scaledImageHeight;
f=this.image.width/this.image.height;f>this.requiredRatio?(this.JSC$18652_overlayWidth=this.canvas.width%2?Qcn(this.scaledImageHeight*this.requiredRatio):$z$(this.scaledImageHeight*this.requiredRatio),this.JSC$18652_overlayMarginRight=this.JSC$18652_overlayMarginLeft=(this.canvas.width-this.JSC$18652_overlayWidth)/2):f<this.requiredRatio&&(this.JSC$18652_overlayHeight=this.canvas.height%2?Qcn(this.scaledImageWidth/this.requiredRatio):$z$(this.scaledImageWidth/this.requiredRatio),this.JSC$18652_overlayMarginBottom=
this.JSC$18652_overlayMarginTop=(this.canvas.height-this.JSC$18652_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*z,this.scaledImageWidth);s6$(this)};
FW.prototype.getContext=function(){return this.ctx};
var En$=function(f,S){S={x:Math.round(S.pageX-f.canvas.getBoundingClientRect().left),y:Math.round(S.pageY-f.canvas.getBoundingClientRect().top)};f.dragStart=S;DS2(f,S)!==0?(f.action=1,IHX(f,S),f.resizeCorner=DS2(f,S)):S.x>f.JSC$18652_overlayMarginLeft&&S.x<f.JSC$18652_overlayMarginLeft+f.JSC$18652_overlayWidth&&S.y>f.JSC$18652_overlayMarginTop&&S.y<f.JSC$18652_overlayMarginTop+f.JSC$18652_overlayHeight&&(f.action=0)},USu=function(f,S){switch(S){case 1:return{x:f.JSC$18652_overlayMarginLeft,
y:f.JSC$18652_overlayMarginTop};case 2:return{x:f.JSC$18652_overlayMarginLeft,y:f.JSC$18652_overlayMarginTop+f.JSC$18652_overlayHeight};case 3:return{x:f.JSC$18652_overlayMarginLeft+f.JSC$18652_overlayWidth,y:f.JSC$18652_overlayMarginTop};case 4:return{x:f.JSC$18652_overlayMarginLeft+f.JSC$18652_overlayWidth,y:f.JSC$18652_overlayMarginTop+f.JSC$18652_overlayHeight};default:throw Error("tl");}},pHe=function(f,S){if(f.focusedCorner!==0){f.dragStart=USu(f,f.focusedCorner);
f.action=1;f.resizeCorner=f.focusedCorner;var B=f.dragStart.x,G=f.dragStart.y;switch(S){case 0:f.focusedCorner===1||f.focusedCorner===4?(B-=10,G-=10):(B-=10,G+=10);break;case 1:f.focusedCorner===1||f.focusedCorner===4?(B+=10,G+=10):(B+=10,G-=10);break;case 2:B=f.focusedCorner===1||f.focusedCorner===4?B-10:B+10;G-=10;break;case 3:B=f.focusedCorner===1||f.focusedCorner===4?B+10:B-10;G+=10;break;default:throw Error("ul");}Ccu(f,{x:B,y:G});s6$(f);f.action=2;f.dragStart=void 0}},L0X=function(f,S){S={x:Math.round(S.pageX-
f.canvas.getBoundingClientRect().left),
y:Math.round(S.pageY-f.canvas.getBoundingClientRect().top)};IHX(f,S);switch(f.action){case 1:Ccu(f,S);break;case 0:f.dragStart&&(f.JSC$18652_overlayMarginLeft=Math.max(f.horizontalMargin,Math.min(f.JSC$18652_overlayMarginLeft-(f.dragStart.x-S.x),f.horizontalMargin+f.scaledImageWidth-f.JSC$18652_overlayWidth)),f.JSC$18652_overlayMarginRight=f.canvas.width-f.JSC$18652_overlayMarginLeft-f.JSC$18652_overlayWidth,f.JSC$18652_overlayMarginTop=Math.max(f.canvasMargin,Math.min(f.JSC$18652_overlayMarginTop-
(f.dragStart.y-S.y),f.scaledImageHeight-f.JSC$18652_overlayHeight+f.canvasMargin)),f.JSC$18652_overlayMarginBottom=f.canvas.height-(f.JSC$18652_overlayMarginTop+f.JSC$18652_overlayHeight));break;default:return}s6$(f);f.dragStart=S},kuz=function(f){f.action=2;
f.dragStart=void 0;document.body.style.cursor="auto"},IHX=function(f,S){switch(DS2(f,S)){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:f.action!==1&&(document.body.style.cursor="auto")}},DS2=function(f,S){var B=f.JSC$18652_overlayMarginLeft-5,G=f.JSC$18652_overlayMarginTop-5,g=f.JSC$18652_overlayMarginLeft+f.JSC$18652_overlayWidth-5;
f=f.JSC$18652_overlayMarginTop+f.JSC$18652_overlayHeight-5;return ASz(S,{x:B,y:G})?1:ASz(S,{x:g,y:G})?3:ASz(S,{x:B,y:f})?2:ASz(S,{x:g,y:f})?4:0},ASz=function(f,S){return f.x>=S.x&&f.x<=S.x+10&&f.y>=S.y&&f.y<=S.y+10},Ccu=function(f,S){if(f.dragStart)switch(f.resizeCorner){case 2:Math.abs((f.JSC$18652_overlayMarginLeft+f.JSC$18652_overlayWidth-S.x)/(S.y-f.JSC$18652_overlayMarginTop))>=f.requiredRatio?NM2(f,S.x):MQu(f,S.y);
break;case 1:Math.abs((f.JSC$18652_overlayMarginLeft+f.JSC$18652_overlayWidth-S.x)/(f.JSC$18652_overlayMarginTop+f.JSC$18652_overlayHeight-S.y))>=f.requiredRatio?ZIO(f,S.x):MQu(f,S.y);break;case 4:Math.abs((S.x-f.JSC$18652_overlayMarginLeft)/(S.y-f.JSC$18652_overlayMarginTop))>=f.requiredRatio?NM2(f,S.x):tQX(f,S.y);break;case 3:Math.abs((S.x-f.JSC$18652_overlayMarginLeft)/(f.JSC$18652_overlayMarginTop+f.JSC$18652_overlayHeight-S.y))>=f.requiredRatio?ZIO(f,S.x):tQX(f,S.y);break;default:throw Error("vl");
}},NM2=function(f,S){var B=f.JSC$18652_overlayMarginTop;
f.JSC$18652_overlayMarginBottom=ufB(f,S);f.JSC$18652_overlayHeight=f.canvas.height-f.JSC$18652_overlayMarginBottom-B;f.JSC$18652_overlayWidth=Math.round(f.JSC$18652_overlayHeight*f.requiredRatio);aH2(f)},ZIO=function(f,S){var B=f.JSC$18652_overlayMarginTop+f.JSC$18652_overlayHeight;
f.JSC$18652_overlayMarginTop=ufB(f,S);f.JSC$18652_overlayHeight=B-f.JSC$18652_overlayMarginTop;f.JSC$18652_overlayWidth=Math.round(f.JSC$18652_overlayHeight*f.requiredRatio);aH2(f)},aH2=function(f){switch(f.resizeCorner){case 2:case 1:f.JSC$18652_overlayMarginLeft=f.canvas.width-f.JSC$18652_overlayMarginRight-f.JSC$18652_overlayWidth;
break;case 4:case 3:f.JSC$18652_overlayMarginRight=f.canvas.width-f.JSC$18652_overlayMarginLeft-f.JSC$18652_overlayWidth;break;default:throw Error("vl");}},MQu=function(f,S){var B=f.JSC$18652_overlayMarginLeft+f.JSC$18652_overlayWidth;
f.JSC$18652_overlayMarginLeft=ySu(f,S);f.JSC$18652_overlayWidth=B-f.JSC$18652_overlayMarginLeft;f.JSC$18652_overlayHeight=Math.round(f.JSC$18652_overlayWidth/f.requiredRatio);W0Z(f)},tQX=function(f,S){var B=f.JSC$18652_overlayMarginLeft;
f.JSC$18652_overlayMarginRight=ySu(f,S);f.JSC$18652_overlayWidth=f.canvas.width-f.JSC$18652_overlayMarginRight-B;f.JSC$18652_overlayHeight=Math.round(f.JSC$18652_overlayWidth/f.requiredRatio);W0Z(f)},W0Z=function(f){switch(f.resizeCorner){case 2:case 4:f.JSC$18652_overlayMarginBottom=f.canvas.height-f.JSC$18652_overlayMarginTop-f.JSC$18652_overlayHeight;
break;case 1:case 3:f.JSC$18652_overlayMarginTop=f.canvas.height-f.JSC$18652_overlayMarginBottom-f.JSC$18652_overlayHeight;break;default:throw Error("vl");}},ufB=function(f,S){switch(f.resizeCorner){case 2:S=f.canvas.height-(f.JSC$18652_overlayMarginTop+cS$(f,S));
break;case 4:S=f.canvas.height-(f.JSC$18652_overlayMarginTop+lHu(f,S));break;case 1:S=f.JSC$18652_overlayMarginTop+f.JSC$18652_overlayHeight-cS$(f,S);break;case 3:S=f.JSC$18652_overlayMarginTop+f.JSC$18652_overlayHeight-lHu(f,S);break;default:throw Error("vl");}return Math.max(S,f.canvasMargin)},cS$=function(f,S){S=f.JSC$18652_overlayMarginLeft+f.JSC$18652_overlayWidth-Math.max(S,f.horizontalMargin);
S=S<0?f.JSC$18652_overlayWidth:Math.max(S,f.minOverlayWidth);return Math.round(S/f.requiredRatio)},lHu=function(f,S){S=f.canvas.width-Math.max(f.canvas.width-S,f.horizontalMargin)-f.JSC$18652_overlayMarginLeft;
S=S<0?f.JSC$18652_overlayWidth:Math.max(S,f.minOverlayWidth);return Math.round(S/f.requiredRatio)},ySu=function(f,S){switch(f.resizeCorner){case 2:S=f.canvas.width-f.JSC$18652_overlayMarginRight-fJ2(f,S);
break;case 4:S=f.canvas.width-f.JSC$18652_overlayMarginLeft-fJ2(f,S);break;case 1:S=f.canvas.width-f.JSC$18652_overlayMarginRight-owM(f,S);break;case 3:S=f.canvas.width-f.JSC$18652_overlayMarginLeft-owM(f,S);break;default:throw Error("vl");}return Math.max(S,f.horizontalMargin)},fJ2=function(f,S){S=f.canvas.height-Math.max(f.canvas.height-S,f.canvasMargin)-f.JSC$18652_overlayMarginTop;
return S<0?f.JSC$18652_overlayWidth:Math.max(Math.round(S*f.requiredRatio),f.minOverlayWidth)},owM=function(f,S){S=f.JSC$18652_overlayMarginTop+f.JSC$18652_overlayHeight-Math.max(S,f.canvasMargin);
return S<0?f.JSC$18652_overlayWidth:Math.max(Math.round(S*f.requiredRatio),f.minOverlayWidth)},s6$=function(f){f.ctx.clearRect(0,0,f.canvas.width,f.canvas.height);
f.ctx.drawImage(f.image,0,0,f.image.width,f.image.height,f.horizontalMargin,f.canvasMargin,f.canvas.width-2*f.horizontalMargin,f.scaledImageHeight);f.ctx.fillStyle="rgba(0, 0, 0, 0.7)";f.ctx.fillRect(f.horizontalMargin,f.JSC$18652_overlayMarginTop,f.JSC$18652_overlayMarginLeft-f.horizontalMargin,f.JSC$18652_overlayHeight);f.ctx.fillRect(f.JSC$18652_overlayMarginLeft+f.JSC$18652_overlayWidth,f.JSC$18652_overlayMarginTop,f.JSC$18652_overlayMarginRight-f.horizontalMargin,f.JSC$18652_overlayHeight);f.ctx.fillRect(f.horizontalMargin,
f.canvasMargin,f.scaledImageWidth,f.JSC$18652_overlayMarginTop-f.canvasMargin);f.ctx.fillRect(f.horizontalMargin,f.JSC$18652_overlayMarginTop+f.JSC$18652_overlayHeight,f.scaledImageWidth,f.JSC$18652_overlayMarginBottom-f.canvasMargin);f.drawOverlay();f.component&&_.ew(f.component,"image-updated")};
FW.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$18652_overlayMarginLeft,this.JSC$18652_overlayMarginTop,this.JSC$18652_overlayWidth,this.JSC$18652_overlayHeight);S$u(this)};
var S$u=function(f){var S=f.JSC$18652_overlayMarginLeft-5,B=f.JSC$18652_overlayMarginTop-5,G=f.JSC$18652_overlayMarginLeft+f.JSC$18652_overlayWidth-5,g=f.JSC$18652_overlayMarginTop+f.JSC$18652_overlayHeight-5;f.ctx.fillStyle="#FFF";f.ctx.fillRect(S,B,10,10);f.ctx.strokeRect(S,B,10,10);f.ctx.fillRect(G,B,10,10);f.ctx.strokeRect(G,B,10,10);f.ctx.fillRect(S,g,10,10);f.ctx.strokeRect(S,g,10,10);f.ctx.fillRect(G,g,10,10);f.ctx.strokeRect(G,g,10,10);if(f.focusedCorner!==0&&f.styleFocusedCorner){f.ctx.lineWidth=
4;f.ctx.strokeStyle="#3EA6FF";switch(f.focusedCorner){case 1:--S;--B;break;case 2:--S;B=g-1;break;case 3:S=G-1;--B;break;case 4:S=G-1;B=g-1;break;default:return}f.ctx.strokeRect(S,B,12,12)}};
FW.prototype.crop=function(f,S){S=S===void 0?!0:S;var B=this.image.width/this.scaledImageWidth,G=document.createElement("canvas"),g=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],b=this.JSC$18652_overlayWidth*B,z=this.JSC$18652_overlayHeight*B;G.width=Math.max(b,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);G.height=Math.max(z,g);f&&(G.width=Math.min(G.width,G.height),G.height=Math.min(G.width,G.height));
f=G.getContext("2d");if(!f)throw Error("jl");g=(this.JSC$18652_overlayMarginLeft-this.horizontalMargin)*B;B*=this.JSC$18652_overlayMarginTop-this.canvasMargin;S||(f.fillStyle="white",f.fillRect(0,0,G.width,G.height));f.drawImage(this.image,g,B,b,z,0,0,G.width,G.height);return G};var Ba2=function(f,S,B,G,g){FW.call(this,f,S,B,G,void 0,g,8,!1)};
_.q(Ba2,FW);Ba2.prototype.drawOverlay=function(){var f=this.getContext(),S=this.JSC$18652_overlayWidth,B=this.JSC$18652_overlayHeight,G=this.JSC$18652_overlayMarginTop,g=this.JSC$18652_overlayMarginLeft;f.lineWidth=2;f.strokeStyle="#3EA6FF";f.beginPath();f.arc(g+S/2,G+B/2,S/2,0,2*Math.PI);f.stroke();f.strokeRect(g,G,S,B);S$u(this)};
var GHY={maxFileSizeMB:15,minWidth:98,minHeight:98},gw2=["image/png","image/jpeg","image/gif"],VO=function(){var f=_.I.apply(this,arguments)||this;f.fileSelectorFocusListener=null;f.errorMessage=null;f.isLoading=!0;f.hideContainer=!0;f.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return f};
_.q(VO,_.I);_.e=VO.prototype;_.e.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.e.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.e.computePlaylistThumbnail=function(f){return f==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.e.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.bW(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.e.setErrorState=function(f){this.resetErrorState();f&&(this.errorMessage=f)};
_.e.showPopup=function(){var f=this;this.hideContainer=!1;_.q6(_.xJ,function(){_.ew(f.hostElement,"yt-refit")});
this.isLoading=!1};
_.e.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.e.closePopup=function(){this.resetFileSelector();_.bW(this.hostElement,"yt-close-popup-action",[this.is])};
_.e.onCancelTap=function(){this.isPlaylistThumbnail||_.bW(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.e.openFileSelector=function(){var f=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.q6(_.xJ,function(){setTimeout(function(){if(!f.fileSelector.files||f.fileSelector.files.length===0)f.onCancelTap();f.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(S){S instanceof Error?_.xH(S):_.EU(new _.dO(JSON.stringify(S)))}};
_.e.handleFileSelection=function(){var f=this,S,B,G,g,b,z;return _.R(function(X){switch(X.nextAddress){case 1:_.zT(X,2);if(!f.fileSelector.files||!f.imageEditorCanvas)return f.onCancelTap(),X.return();S=f.fileSelector.files[0];OIM(f.imageChecker,S);_.zT(X,4);return _.h(X,cfo(S),6);case 6:f.mimeType=X.yieldResult;_.CN(X,5,2);break;case 4:_.hm(X,2),_.bW(f.hostElement,"yt-image-selection-error-action",[(B=f.data)==null?void 0:B.genericImageLoadErrorMessage]),f.onCancelTap();case 5:G=new FileReader;G.addEventListener("load",
function(){var w,F;return _.R(function(V){if(V.nextAddress==1){if(!G.result)return _.Lg(Error("ll")),V.return();w=G.result;F=new Image;F.src=w;F.onload=function(){try{var J=f.imageChecker;if(F.width<J.requirements.minWidth||F.height<J.requirements.minHeight)throw new rSu(J.requirements.minWidth,J.requirements.minHeight);}catch(d){if(d instanceof rSu){var P;_.bW(f.hostElement,"yt-image-selection-error-action",[(P=f.data)==null?void 0:P.imageDimensionErrorMessage]);f.logImageDimensionErrorVe()}else d instanceof
Error?_.xH(d):(J=new _.dO(JSON.stringify(d)),_.xH(J));f.onCancelTap()}f.showPopup()};
F.onerror=function(){var J;_.bW(f.hostElement,"yt-image-selection-error-action",[(J=f.data)==null?void 0:J.genericImageLoadErrorMessage]);f.onCancelTap()};
return _.h(V,nnZ(f.imageEditorCanvas,w),2)}f.imageEditor=V.yieldResult;f.updatePositionOfAllCorners();f.addEventListeners(f.imageEditor);_.TT(V)})},!1);
G.readAsDataURL(S);_.CN(X,0);break;case 2:g=_.hm(X),g instanceof Tk?_.bW(f.hostElement,"yt-image-selection-error-action",[(b=f.data)==null?void 0:b.imageSizeErrorMessage]):(g instanceof Error?_.xH(g):_.EU(new _.dO(JSON.stringify(g))),_.bW(f.hostElement,"yt-image-selection-error-action",[(z=f.data)==null?void 0:z.genericImageLoadErrorMessage])),f.onCancelTap(),_.TT(X)}})};
_.e.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var f=_.dR(_.ik(),{veType:232707,visualElement:_.Eo(232707)});f&&(f={visualElement:f},_.KH().reportShown(f))}};
_.e.handleImageSelectionErrorAction=function(f){this.isPlaylistThumbnail&&_.fFA(this.hostElement,f)};
_.e.convertToImageFormatBundle=function(f){var S=this,B,G,g;return _.R(function(b){switch(b.nextAddress){case 1:return B=f.toDataURL(S.outputMimeType,1),_.h(b,luZ(B),2);case 2:G=b.yieldResult;_.zT(b,3);OIM(S.imageChecker,G);_.CN(b,4);break;case 3:g=_.hm(b);if(!(g instanceof Tk))throw g;_.Lg(new _.dO("Output size is bigger than input size for image",S.mimeType,S.outputMimeType,G.size));B=f.toDataURL("image/jpeg",.95);return _.h(b,luZ(B),6);case 6:G=b.yieldResult;case 4:return b.return({dataUrl:B,imageFile:G})}})};
_.e.handleUploadImageToScottyCommand=function(f){var S=this,B,G,g,b,z,X,w,F,V,J;return _.R(function(P){switch(P.nextAddress){case 1:if(!S.imageEditor||!_.H(f,PHM))return P.return();B=_.H(f,PHM).scottyUploadUrl;if(!B){var d=new _.dO("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.xH(d);return P.return()}_.zT(P,2);S.setLoadingState();G=S.imageEditor.crop(!1,!1);return _.h(P,S.convertToImageFormatBundle(G),4);case 4:return g=P.yieldResult,_.h(P,yfY(g.imageFile,B),5);case 5:b=
P.yieldResult;((z=S.data)==null?0:z.onUploadEndpoint)?(X=S.buildUploadServiceEndpoint(b),S.ytComponentBehavior.resolveCommand(X),w=_.H(X,_.nW),((F=w)==null?0:F.params)?S.closePopup():S.resetFileSelector()):(_.bW(S.hostElement,"yt-image-updated-action",[g.dataUrl,b]),S.closePopup());_.CN(P,0);break;case 2:V=_.hm(P),S.setErrorState((J=S.data)==null?void 0:J.uploadErrorMessage),V instanceof Error?_.xH(V):(d=new _.dO(JSON.stringify(V)),_.xH(d)),_.TT(P)}})};
_.e.buildUploadServiceEndpoint=function(f){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",f),this.data.onUploadEndpoint):null};
_.e.dataChanged=function(){var f=this,S;return _.R(function(B){if(B.nextAddress==1){if(!f.data||!f.canvasElement)return B.return();f.data.imageRatio&&f.data.minImageCropWidth||_.EU(new _.dO("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));S=function(G,g){return f.data.imageType==="IMAGE_TYPE_AVATAR"?new Ba2(G,g,f.data.imageRatio,[f.data.minImageCropWidth,f.data.minImageCropWidth/f.data.imageRatio],f.hostElement):new FW(G,g,f.data.imageRatio,[f.data.minImageCropWidth,
f.data.minImageCropWidth/f.data.imageRatio],void 0,f.hostElement,8,!1)};
f.imageEditorCanvas=new xS2(f.canvasElement,S);return f.data.url?_.h(B,nnZ(f.imageEditorCanvas,f.data.url),3):(f.hideContainer=!0,f.openFileSelector(),B.jumpTo(0))}f.imageEditor=B.yieldResult;f.showPopup();f.addEventListeners(f.imageEditor);_.TT(B)})};
_.e.addEventListeners=function(f){this.removeEventListeners();var S=function(g){En$(f,g)};
this.JSC$18660_mouseDownEvent=S;var B=function(g){L0X(f,g)};
this.JSC$18660_mouseMoveEvent=B;var G=function(){kuz(f)};
this.JSC$18660_mouseUpEvent=G;this.topLeftCorner.addEventListener("mousedown",S);this.topLeftCorner.addEventListener("mousemove",B);this.topLeftCorner.addEventListener("mouseup",G);this.topRightCorner.addEventListener("mousedown",S);this.topRightCorner.addEventListener("mousemove",B);this.topRightCorner.addEventListener("mouseup",G);this.bottomLeftCorner.addEventListener("mousedown",S);this.bottomLeftCorner.addEventListener("mousemove",B);this.bottomLeftCorner.addEventListener("mouseup",G);this.bottomRightCorner.addEventListener("mousedown",
S);this.bottomRightCorner.addEventListener("mousemove",B);this.bottomRightCorner.addEventListener("mouseup",G)};
_.e.removeEventListeners=function(){this.JSC$18660_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$18660_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$18660_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$18660_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$18660_mouseDownEvent));this.JSC$18660_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$18660_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$18660_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$18660_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$18660_mouseMoveEvent));this.JSC$18660_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$18660_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$18660_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$18660_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$18660_mouseUpEvent))};
_.e.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var f=document.activeElement;f&&f.shadowRoot&&f.shadowRoot.activeElement;)f=f.shadowRoot.activeElement;switch(f){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};
_.e.updatePositionOfCorner=function(f,S){var B=f.y-S.offsetHeight/2+4;S.style.left=f.x-S.offsetWidth/2+16+"px";S.style.top=B+"px"};
_.e.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var f=_.m([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),S=f.next();!S.done;S=f.next()){S=S.value;var B=USu(this.imageEditor,S.corner);this.updatePositionOfCorner(B,S.div)}};
_.e.onLeft=function(f){this.imageEditor&&this.setFocusInImageEditor()&&(pHe(this.imageEditor,0),this.updatePositionOfAllCorners(),f.preventDefault())};
_.e.onRight=function(f){this.imageEditor&&this.setFocusInImageEditor()&&(pHe(this.imageEditor,1),this.updatePositionOfAllCorners(),f.preventDefault())};
_.e.onUp=function(f){this.imageEditor&&this.setFocusInImageEditor()&&(pHe(this.imageEditor,2),this.updatePositionOfAllCorners(),f.preventDefault())};
_.e.onDown=function(f){this.imageEditor&&this.setFocusInImageEditor()&&(pHe(this.imageEditor,3),this.updatePositionOfAllCorners(),f.preventDefault())};
_.e.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.y3.Object.defineProperties(VO.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&gw2.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var f,S,B;((S=this.data)==null?0:S.imageRatio)&&((B=this.data)==null?0:B.minImageCropWidth)?f={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:f=GHY;return new j6z(f)}}});
VO.prototype.updatePositionOfAllCorners=VO.prototype.updatePositionOfAllCorners;VO.prototype.dataChanged=VO.prototype.dataChanged;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],VO.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],VO.prototype,"ytComponentBehavior",void 0);_.N([_.r(_.qx),_.Z("design:type",Object)],VO.prototype,"ironA11yKeysBehavior",void 0);
_.N([_.vF("#canvas"),_.Z("design:type",HTMLCanvasElement)],VO.prototype,"canvasElement",void 0);_.N([_.vF("#file-selector"),_.Z("design:type",HTMLInputElement)],VO.prototype,"fileSelector",void 0);_.N([_.vF("#top-left-corner"),_.Z("design:type",HTMLDivElement)],VO.prototype,"topLeftCorner",void 0);_.N([_.vF("#top-right-corner"),_.Z("design:type",HTMLDivElement)],VO.prototype,"topRightCorner",void 0);
_.N([_.vF("#bottom-left-corner"),_.Z("design:type",HTMLDivElement)],VO.prototype,"bottomLeftCorner",void 0);_.N([_.vF("#bottom-right-corner"),_.Z("design:type",HTMLDivElement)],VO.prototype,"bottomRightCorner",void 0);_.N([_.n(),_.Z("design:type",Object)],VO.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],VO.prototype,"errorMessage",void 0);_.N([_.n(),_.Z("design:type",Object)],VO.prototype,"isLoading",void 0);_.N([_.n(),_.Z("design:type",Object)],VO.prototype,"hideContainer",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.Z("design:type",Boolean)],VO.prototype,"isPlaylistThumbnail",void 0);_.N([_.HF("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype",Promise)],VO.prototype,"dataChanged",null);_.N([_.Vg("image-updated"),_.Vg("yt-refit"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],VO.prototype,"updatePositionOfAllCorners",null);
_.N([_.nP({is:"yt-image-editor-renderer",disableElementRegistration:!0})],VO);
_.p(VO,"yt-image-editor-renderer",function(){if(YqM===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;Q6u===void 0&&(Q6u=document.createElement("template"));var G=Q6u;B.call(S,G.content.cloneNode(!0),f.content.firstChild);YqM=f}f=YqM;return f},{mode:2});var et$;var bxu;var J8=function(){return _.I.apply(this,arguments)||this};
_.q(J8,_.I);J8.prototype.updateMinutesFromBinding=function(f){this.handleMinutesChanged&&this.handleMinutesChanged(f)};
J8.prototype.updateSecondsFromBinding=function(f){this.handleSecondsChanged&&this.handleSecondsChanged(f)};
J8.prototype.updateDescriptionFromBinding=function(f){this.handleDescriptionChanged&&this.handleDescriptionChanged(f)};
_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],J8.prototype,"ytComponentBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],J8.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",String)],J8.prototype,"minutes",void 0);_.N([_.n(),_.Z("design:type",String)],J8.prototype,"seconds",void 0);_.N([_.n(),_.Z("design:type",String)],J8.prototype,"description",void 0);_.N([_.n(),_.Z("design:type",Function)],J8.prototype,"handleMinutesChanged",void 0);
_.N([_.n(),_.Z("design:type",Function)],J8.prototype,"handleSecondsChanged",void 0);_.N([_.n(),_.Z("design:type",Function)],J8.prototype,"handleDescriptionChanged",void 0);_.N([_.n(),_.Z("design:type",Number)],J8.prototype,"characterLimit",void 0);_.N([_.n(),_.Z("design:type",Number)],J8.prototype,"textNumRows",void 0);_.N([_.nP({is:"yt-report-details-form-content",disableElementRegistration:!0})],J8);
_.p(J8,"yt-report-details-form-content",function(){if(bxu===void 0){var f=document.createElement("template");_.Y(f,'\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>');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;et$===void 0&&(et$=document.createElement("template"));var G=et$;B.call(S,G.content.cloneNode(!0),f.content.firstChild);bxu=f}f=bxu;return f},{mode:2});var mDu;var ztz;var PB=function(){var f=_.I.apply(this,arguments)||this;f.updateMinutesFromBinding=function(S){f.minutes=S.detail.value};
f.updateSecondsFromBinding=function(S){f.seconds=S.detail.value};
f.updateDescriptionFromBinding=function(S){f.description=S.detail.value};
return f};
_.q(PB,_.I);_.e=PB.prototype;_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.e.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"}}}};
_.e.ready=function(){_.m9(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.e.onSubmitYtAction=function(f){var S=f.detail;S.actionName==="yt-service-request"&&(S=S.args[1],S.flagEndpoint&&(f.stopPropagation(),this.refireAction(S)))};
_.e.refireAction=function(f){var S={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(S.vss_id=this.vssId);_.RD(this.hostElement,[f,S]);this.submitDisabled=!0};
_.e.dataChanged=function(){var f=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var S=_.B8();S&&S.getPlayerPromise().then(function(B){var G=B.getOption("cc","track")||B.getOption("captions","track");G&&(f.vssId=G.vss_id);B=B.getCurrentTime();f.minutes=Math.floor(B/60).toString();f.seconds=(Math.floor(B)%60).toString()})};
_.e.updateSubmitButtonState=function(){var f;((f=this.data)==null?0:f.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==="")};
_.e.onYtServiceRequestCompleted=function(){_.bW(this.hostElement,"yt-close-popup-action")};
_.e.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.y3.Object.defineProperties(PB.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.textNumRows)||4}}});
PB.prototype.onYtServiceRequestError=PB.prototype.onYtServiceRequestError;PB.prototype.onYtServiceRequestCompleted=PB.prototype.onYtServiceRequestCompleted;PB.prototype.updateSubmitButtonState=PB.prototype.updateSubmitButtonState;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],PB.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],PB.prototype,"ytRendererBehavior",void 0);
_.N([_.n({observer:"dataChanged"}),_.Z("design:type",Object)],PB.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Boolean)],PB.prototype,"submitDisabled",void 0);_.N([_.n(),_.Z("design:type",String)],PB.prototype,"minutes",void 0);_.N([_.n(),_.Z("design:type",String)],PB.prototype,"seconds",void 0);_.N([_.n(),_.Z("design:type",String)],PB.prototype,"description",void 0);_.N([_.n(),_.Z("design:type",String)],PB.prototype,"vssId",void 0);
_.N([_.n({value:_.nL("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.Z("design:type",Boolean)],PB.prototype,"isMusic",void 0);_.N([_.k("data"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],PB.prototype,"characterLimit",null);_.N([_.k("data"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],PB.prototype,"textNumRows",null);
_.N([_.HF("minutes","seconds","description","submitDisabled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],PB.prototype,"updateSubmitButtonState",null);_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],PB.prototype,"onYtServiceRequestCompleted",null);
_.N([_.Vg("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],PB.prototype,"onYtServiceRequestError",null);_.N([_.nP({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],PB);
_.p(PB,"yt-report-details-form-renderer",function(){if(ztz===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;mDu===void 0&&(mDu=document.createElement("template"));var G=mDu;B.call(S,G.content.cloneNode(!0),f.content.firstChild);ztz=f}f=ztz;return f});var Rtu;var XJX;var wJz;var htX;var vB=function(){return _.I.apply(this,arguments)||this};
_.q(vB,_.I);
vB.prototype.onCheckedChanged_=function(){if(this.data){var f=_.m9(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.bW(this.hostElement,"yt-additional-detail-checkbox-update",[f]):this.data.identifier==="yt-hide-user-checkbox"?_.bW(this.hostElement,"yt-hide-user-checkbox-update",[f]):f&&this.data.enableCommand?_.bW(this.hostElement,"yt-modify-report-form-command",[_.H(this.data.enableCommand,$xu)]):!f&&this.data.disableCommand&&_.bW(this.hostElement,
"yt-modify-report-form-command",[_.H(this.data.enableCommand,$xu)])}};
vB.prototype.onLabelTap_=function(f){f.target.tagName!="A"&&(_.m9(this.hostElement).querySelector("#checkbox").checked=!_.m9(this.hostElement).querySelector("#checkbox").checked)};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],vB.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],vB.prototype,"data",void 0);_.N([_.nP({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],vB);
_.p(vB,"yt-boolean-form-field-v2-renderer",function(){if(htX===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;wJz===void 0&&(wJz=document.createElement("template"));var G=wJz;B.call(S,G.content.cloneNode(!0),f.content.firstChild);htX=f}f=htX;return f});var Kv=function(){var f=_.I.apply(this,arguments)||this;f.canShowAdditionalDetailCheckbox=!1;f.canShowCheckbox=!1;f.keepDropdownFocusedAfterSelection=!0;return f};
_.q(Kv,_.I);Kv.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}}}}};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Kv.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],Kv.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],Kv.prototype,"canShowAdditionalDetailCheckbox",void 0);_.N([_.n(),_.Z("design:type",Object)],Kv.prototype,"canShowCheckbox",void 0);_.N([_.n(),_.Z("design:type",Object)],Kv.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.N([_.nP({is:"yt-report-form-modal-content",disableElementRegistration:!0})],Kv);
_.p(Kv,"yt-report-form-modal-content",function(){if(XJX===void 0){var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;Rtu===void 0&&(Rtu=document.createElement("template"));var G=Rtu;B.call(S,G.content.cloneNode(!0),f.content.firstChild);XJX=f}f=XJX;return f},{mode:2});var Taz;var FDn;var d$=function(){var f=_.I.apply(this,arguments)||this;f.submitting=!1;f.submitButtonDisabled=!0;f.command=null;f.canShowCheckbox=!1;f.canShowAdditionalDetailCheckbox=!1;f.canShowNextButton=!1;f.additionalDetailCheckboxChecked=!1;f.refitJob=0;f.keepDropdownFocusedAfterSelection=!0;f.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 f};
_.q(d$,_.I);_.e=d$.prototype;_.e.created=function(){this.refitJob=0};
_.e.attached=function(){this.JSC$18683_scroller&&(this.JSC$18683_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18683_scroller.attached&&typeof this.JSC$18683_scroller.attached==="function"&&this.JSC$18683_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e.dataChanged=function(f){f&&(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,f.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),f.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.e.onYtPopupOpened=function(){var f=_.B8();f&&f.getPlayerPromise().then(function(S){S.pauseVideo()})};
_.e.onYtNavigate=function(f){_.H(f.detail.endpoint,_.c9j)&&(f.stopPropagation(),this.hideReportForm=!0)};
_.e.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.e.onYtServiceRequestCompleted=function(f,S){var B=S.actions;if(B){if(B.length===1&&_.H(B[0],_.hf)){var G;B=((G=_.H(B[0],_.hf))==null?void 0:G.commands)||[]}G=0;for(var g=B.length;G<g;G++)_.H(B[G],_.jR)&&(f.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(B[G]))}if(S.data&&(f=this.get("feedbackResponses",S.data)))for(S=0;S<f.length;S++)if(f[S].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.e.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.e._onDescendantIronResize=function(f){f.stopPropagation();return!1};
_.e.handleReportFormEndpointUpdateAction=function(f){if(f.submitEndpoint){var S=this.command=f.submitEndpoint;S=_.H(S,_.UFL);if(S==null?0:S.additionalDetailCheckboxChecked)S.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else f.submitNavigationEndpoint?(this.command=f.submitNavigationEndpoint,this.toggleSubmitButton(!1)):f.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:f.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;f.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",f));this.refit()};
_.e.handleConfirmDialogCloseAction=function(f){f.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.e.submitButtonDisabledChanged=function(){var f=this.hostElement.parentElement;f&&f.invalidateTabbables&&f.invalidateTabbables()};
_.e.handleModifyReportFormCommand=function(f){f=this.get("action",f);f==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:f==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:f==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:f==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:f==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:f==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.e.updateDialogStyling=function(){var f,S,B,G,g,b=((g=(f=this.data)==null?void 0:(S=f.optionsSupportedRenderers)==null?void 0:(B=S.optionsRenderer)==null?void 0:(G=B.items)==null?void 0:G.length)!=null?g:0)<=2?0:240;_.hO(this.hostElement,{"--yt-report-form-modal-renderer-min-width":b+"px"})};
_.e.toggleSubmitButton=function(f){this.submitButtonDisabled=!f;this.submitButtonDisabled=f};
_.e.computeSubmitButtonData=function(f,S){var B={};_.H(S,_.c9j)?B.navigationEndpoint=S:B.command=S||void 0;f&&f.buttonRenderer&&_.$v.extend(B,f.buttonRenderer);return B};
_.e.computeNextButtonData=function(f,S){var B={};if(!f||!f.buttonRenderer)return B;_.$v.extend(B,f.buttonRenderer);if(!S)return B;if(_.H(S,_.c9j))B.navigationEndpoint=NRZ(S);else if(B.command=NRZ(S),f=_.H(B.command,_.UFL))f.legalCheckboxChecked=!0;return B};
_.e.computeShowNextButton=function(f,S,B){return!!f&&S&&B};
_.e.refit=function(){var f=this;this.refitJob||(this.refitJob=_.xJ.addLowPriorityJob(function(){_.ew(f.hostElement,"yt-refit");f.refitJob=0}))};
_.e.handleAdditionalDetailCheckboxUpdateAction=function(f){this.additionalDetailCheckboxChecked=f;_.H(this.command,_.UFL).additionalDetailCheckboxChecked=f};
_.y3.Object.defineProperties(d$,{template:{configurable:!0,enumerable:!0,get:function(){if(FDn===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;Taz===void 0&&(Taz=document.createElement("template"));var G=Taz;B.call(S,G.content.cloneNode(!0),f.content.firstChild);FDn=f}f=FDn;return f}}});
d$.prototype.onYtServiceRequestError=d$.prototype.onYtServiceRequestError;d$.prototype.onYtServiceRequestCompleted=d$.prototype.onYtServiceRequestCompleted;d$.prototype.onYtServiceRequestSent=d$.prototype.onYtServiceRequestSent;d$.prototype.onYtNavigate=d$.prototype.onYtNavigate;d$.prototype.onYtPopupOpened=d$.prototype.onYtPopupOpened;_.N([_.r(_.JW.YtOpenPopupBehavior),_.Z("design:type",Object)],d$.prototype,"openPopupBehavior",void 0);
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],d$.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],d$.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.Px.YtEventForwardingBehavior),_.Z("design:type",Object)],d$.prototype,"eventForwardingBehavior",void 0);_.N([_.r(_.Ld),_.Z("design:type",Object)],d$.prototype,"ironResizableBehavior",void 0);_.N([_.n({observer:"dataChanged"}),_.Z("design:type",Object)],d$.prototype,"data",void 0);
_.N([_.n(),_.Z("design:type",Object)],d$.prototype,"submitting",void 0);_.N([_.n({observer:"submitButtonDisabledChanged"}),_.Z("design:type",Object)],d$.prototype,"submitButtonDisabled",void 0);_.N([_.n(),_.Z("design:type",Object)],d$.prototype,"command",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],d$.prototype,"hideReportForm",void 0);_.N([_.n(),_.Z("design:type",Object)],d$.prototype,"canShowCheckbox",void 0);
_.N([_.n(),_.Z("design:type",Object)],d$.prototype,"canShowAdditionalDetailCheckbox",void 0);_.N([_.n(),_.Z("design:type",Object)],d$.prototype,"canShowNextButton",void 0);_.N([_.n(),_.Z("design:type",Object)],d$.prototype,"additionalDetailCheckboxChecked",void 0);_.N([_.n(),_.Z("design:type",Object)],d$.prototype,"refitJob",void 0);_.N([_.n(),_.Z("design:type",Object)],d$.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.N([_.vF("#scroller"),_.Z("design:type",Object)],d$.prototype,"JSC$18683_scroller",void 0);_.N([_.Vg("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],d$.prototype,"onYtPopupOpened",null);_.N([_.Vg("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],d$.prototype,"onYtNavigate",null);
_.N([_.Vg("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.N1]),_.Z("design:returntype")],d$.prototype,"onYtServiceRequestSent",null);_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.cw]),_.Z("design:returntype")],d$.prototype,"onYtServiceRequestCompleted",null);
_.N([_.Vg("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],d$.prototype,"onYtServiceRequestError",null);_.N([_.nP({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],d$);var Vou;var J72;var HB=function(){return _.I.apply(this,arguments)||this};
_.q(HB,_.I);_.e=HB.prototype;_.e.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.e.onVisible=function(){var f,S;(S=_.oy().resolve(_.fN(_.TI)))==null||S.enqueue({label:_.ac((f=this.data)==null?void 0:f.messageTitle),elementToFocus:this.hostElement})};
_.e.onThumbnailLoaded=function(){_.ew(this.hostElement,"yt-refit")};
_.e.onDismissTap=function(){_.bW(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.e.computeAlternateIcon=function(f){return f?f==="BACKSTAGE_ARTWORK"?"backstage:artwork":f:null};
_.e.computeFontFamily=function(f){return f==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.e.computeBackgroundStyle=function(f,S){if(f=this.computeBackgroundImage(f,S))if(f=_.my(f.thumbnails))return'background-image: url("'+f+'");'};
_.e.computeHasFullHeightImage=function(f){return!(!(f&&f.thumbnails&&f.thumbnails.length>0)||this.modern)};
_.e.isModernStyle=function(f){return f.style==="STYLE_MODERN"};
_.e.computeIcon=function(f,S){if(f&&f.icon)return S?f.iconDark:f.icon};
_.e.computeBackgroundImage=function(f,S){if(f&&f.backgroundImage)return S?f.backgroundImageDark:f.backgroundImage};
_.e.computeLogo=function(f,S){if(f&&f.logo)return S?f.logoDark:f.logo};
_.e.computeShouldShowModernIcon=function(f,S){return f&&!!S};
_.e.getLogoContainerClassName=function(f){return this.logoWithPadding(f)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.e.getLogoImageId=function(f){return this.logoWithPadding(f)?"mealbar-logo-with-padding":"mealbar-logo"};
_.e.logoWithPadding=function(f){var S,B,G;return(f=(S=this.computeLogo(f,this.isDarkTheme))==null?void 0:(B=S.thumbnails)==null?void 0:(G=B[0])==null?void 0:G.height)&&f%31===0?!0:!1};
HB.prototype.onThumbnailLoaded=HB.prototype.onThumbnailLoaded;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],HB.prototype,"ytRendererBehavior",void 0);_.N([_.n({}),_.Z("design:type",Object)],HB.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.Z("design:type",Boolean)],HB.prototype,"modern",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],HB.prototype,"isDarkTheme",void 0);
_.N([_.n({computed:"computeIcon(data, isDarkTheme)"}),_.Z("design:type",Object)],HB.prototype,"icon",void 0);_.N([_.n({computed:"computeLogo(data, isDarkTheme)"}),_.Z("design:type",Object)],HB.prototype,"logo",void 0);_.N([_.n({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.Z("design:type",Object)],HB.prototype,"backgroundStyle",void 0);_.N([_.n({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.Z("design:type",Object)],HB.prototype,"alternateIcon",void 0);
_.N([_.n({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.Z("design:type",Boolean)],HB.prototype,"hasFullHeightImage",void 0);_.N([_.n({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.Z("design:type",Boolean)],HB.prototype,"useYoutubeSans",void 0);_.N([_.n({computed:"computeShouldShowModernIcon(modern, icon)"}),_.Z("design:type",Boolean)],HB.prototype,"shouldShowModernIcon",void 0);
_.N([_.Vg("yt-img-shadow-loaded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],HB.prototype,"onThumbnailLoaded",null);_.N([_.nP({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],HB);
_.p(HB,"yt-mealbar-promo-renderer",function(){if(J72===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;Vou===void 0&&(Vou=document.createElement("template"));var G=Vou;B.call(S,G.content.cloneNode(!0),f.content.firstChild);J72=f}f=J72;return f},{mode:2});var PY2;var vwB;var qe=function(){return _.I.apply(this,arguments)||this};
_.q(qe,_.I);_.e=qe.prototype;_.e.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]]"}}}}}};
_.e.computeHasButtons_=function(f){return!(!f.dismissButton&&!f.acceptButton)};
_.e.computeStyle_=function(f){return f||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.e.observeImpressionEndpoints_=function(){var f=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(S){S.clickTrackingParams&&delete S.clickTrackingParams;_.RD(f.hostElement,[S])})};
_.e.onTap_=function(){_.bW(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
qe.prototype.observeImpressionEndpoints_=qe.prototype.observeImpressionEndpoints_;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],qe.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Px.YtEventForwardingBehavior),_.Z("design:type",Object)],qe.prototype,"ytEventForwardingBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],qe.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],qe.prototype,"data",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],qe.prototype,"positionType",void 0);_.N([_.n({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.Z("design:type",Boolean)],qe.prototype,"hasButtons_",void 0);_.N([_.n({value:function(){return this.onTap_.bind(this)}}),
_.Z("design:type",Function)],qe.prototype,"boundOnTap_",void 0);_.N([_.n({value:{style:"mono-inverse"}}),_.Z("design:type",Object)],qe.prototype,"buttonOverride",void 0);_.N([_.JO("data.promoConfig.impressionEndpoints"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qe.prototype,"observeImpressionEndpoints_",null);_.N([_.nP({is:"yt-tooltip-renderer",disableElementRegistration:!0})],qe);
_.p(qe,"yt-tooltip-renderer",function(){if(vwB===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;PY2===void 0&&(PY2=document.createElement("template"));var G=PY2;B.call(S,G.content.cloneNode(!0),f.content.firstChild);vwB=f}f=vwB;return f},{mode:2});var KDZ;var dDn;var ixe={},Hxe=(ixe.WEB_REMIX="music.youtube.com",ixe),$D=function(){var f=_.I.apply(this,arguments)||this;f.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return f};
_.q($D,_.I);_.e=$D.prototype;_.e.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e.created=function(){this.embedHost_=Hxe[_.nL("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.e.ready=function(){_.m9(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.e.computeEmbedCode_=function(f,S,B,G,g){if(!f)return"";var b=f.videoId,z=f.fullListId,X=[];f.attributionId&&X.push("si="+f.attributionId);G||X.push("controls=0");B&&Number(S)>0&&X.push("start="+S);z&&(b="videoseries",X.push("list="+z));B="https://"+(g?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+b;f.clipId&&(X.push("clip="+f.clipId),X.push("clipt="+f.clipTiming));S=X.length>0?B+"?"+X.join("&amp;"):B;f.encryptedEmbedConfig&&X.push("embed_config="+JSON.stringify({enc:f.encryptedEmbedConfig}));
X=X.length>0?B+"?"+X.join("&amp;"):B;_.K("web_sharing_embed_preview_killswitch")?_.m9(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(X,f.previewWidth||854,f.previewHeight||480):(_.EJ(this.videoPreviewContainer),_.m9(this.videoPreviewContainer).appendChild(this.buildIframeElement(X)));return this.getEmbedCode_(S,f.width||560,f.height||315)};
_.e.buildIframeElement=function(f){var S=document.createElement("iframe"),B,G;S.width=""+((G=(B=this.data)==null?void 0:B.previewWidth)!=null?G:854);var g,b;S.height=""+((b=(g=this.data)==null?void 0:g.previewHeight)!=null?b:480);_.Pd9(S,2,f);S.title="YouTube video player";S.frameBorder="0";S.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";S.referrerPolicy="strict-origin-when-cross-origin";S.allowFullscreen=!0;return S};
_.e.computeIsSquareAspectRatio_=function(f){return f.previewHeight&&f.previewWidth?f.previewHeight==f.previewWidth:!1};
_.e.computeShowEmbedOptions_=function(f){return!!f.enablePrivacyModeOptionLabel||!!f.showPlayerControlsOptionLabel};
_.e.getEmbedCode_=function(f,S,B){return'<iframe width="'+S+'" height="'+B+'" src="'+f+'" 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>'};
_.e.handleSignalActionCopyShareEmbedUrl_=function(){_.m9(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.e.handleSetTimestamp_=function(f){this.startAtTimeStamp_=(this.startAtChecked_=f.isSet)?f.timestamp:0};
_.e.closePanel_=function(){_.bW(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.e.onEmbedCode_=function(){_.m9(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.e.onYtPopupClosed_=function(){_.EJ(_.m9(this.hostElement).querySelector("#video-preview"))};
_.e.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.H(this.data.actionButtons[0],_.IR)&&this.ytRendererBehavior.logExplicitClick(_.H(this.data.actionButtons[0],_.IR))};
$D.prototype.onYtPopupClosed_=$D.prototype.onYtPopupClosed_;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],$D.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],$D.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],$D.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],$D.prototype,"data",void 0);
_.N([_.n({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.Z("design:type",String)],$D.prototype,"embedCode_",void 0);_.N([_.n({value:!0}),_.Z("design:type",Boolean)],$D.prototype,"isPlayerControlsOptionChecked_",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],$D.prototype,"isPrivacyModeOptionChecked_",void 0);_.N([_.n({value:!1,notify:!0}),_.Z("design:type",Boolean)],$D.prototype,"startAtChecked_",void 0);
_.N([_.n({value:0}),_.Z("design:type",Number)],$D.prototype,"startAtTimeStamp_",void 0);_.N([_.n({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],$D.prototype,"isSquareAspectRatio_",void 0);_.N([_.vF("#video-preview"),_.Z("design:type",HTMLElement)],$D.prototype,"videoPreviewContainer",void 0);_.N([_.Vg("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$D.prototype,"onYtPopupClosed_",null);
_.N([_.nP({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],$D);
_.p($D,"yt-sharing-embed-renderer",function(){if(dDn===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;KDZ===void 0&&(KDZ=document.createElement("template"));var G=KDZ;B.call(S,G.content.cloneNode(!0),f.content.firstChild);dDn=f}f=dDn;return f},{mode:2});var q$$={};
q$$.YtUnlimitedFamilyInterstitialBehavior=[_.JW.YtOpenPopupBehavior,_.b3.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(f){f=_.mNN(_.lt(f),"yt-button-renderer");return f?f.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(f){this.dialogHistory_.push(f)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var f=this.popFromHistory();if(f){var S={openPopupAction:{popupType:"DIALOG",popup:{}}};S.openPopupAction.popup[f.renderer]=f.data;this.showingPreviousDialog_=!0;this.openPopup(S)}},
handleOpenPopupAction_:function(f){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var S=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(G){return!!f.openPopupAction.popup[G]}),B=this.getElementName_();
S&&this.data&&(this.pushToHistory({renderer:B,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(f){if(f=_.H(f,l6o))this.loading=!0,_.bW(this.hostElement,"yt-open-create-family-dialog",[f,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var f=this.hostElement.nodeName.split("-").slice(1).map(function(S){return""+S[0].toUpperCase()+S.slice(1).toLowerCase()}).join("");
return f[0].toLowerCase()+f.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var $DZ;var QzZ;var QO=function(){return _.I.apply(this,arguments)||this};
_.q(QO,_.I);_.e=QO.prototype;_.e.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}}}}}};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.bW(this.hostElement,"yt-register-create-family-dialog");_.m9(this.hostElement).querySelector("#thumbnail").onShow()};
_.e.fireOnCloseCommand_=function(){var f;((f=this.data)==null?0:f.onCloseCommand)&&_.Xh(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.e.onYtServiceRequestSent_=function(f,S){S&&S.endpoint&&_.H(S.endpoint,_.Fh)||(this.loading=!0)};
_.e.onYtServiceRequestCompleted_=function(){var f=this.hostElement.parentElement;f.close&&f.close();this.loading=!1};
_.e.openPopupHandler_=function(f){if(f.detail==this){var S;((S=this.data)==null?0:S.onOpenCommands)&&_.Xh(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.e.closePopupHandler_=function(f,S){this.fireOnCloseCommand_();if(S&&S.canceled===!0||S&&S.canceled===!1&&S.confirmed===!1){var B;((B=this.data)==null?0:B.onDismissCommands)&&_.Xh(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.e.dataChanged_=function(){this.loading=!1};
QO.prototype.dataChanged_=QO.prototype.dataChanged_;QO.prototype.closePopupHandler_=QO.prototype.closePopupHandler_;QO.prototype.openPopupHandler_=QO.prototype.openPopupHandler_;QO.prototype.onYtServiceRequestCompleted_=QO.prototype.onYtServiceRequestCompleted_;QO.prototype.onYtServiceRequestSent_=QO.prototype.onYtServiceRequestSent_;_.N([_.r(_.Px.YtEventForwardingBehavior),_.Z("design:type",Object)],QO.prototype,"ytEventForwardingBehavior",void 0);
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],QO.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(q$$.YtUnlimitedFamilyInterstitialBehavior),_.Z("design:type",Object)],QO.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],QO.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],QO.prototype,"data",void 0);
_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],QO.prototype,"loading",void 0);_.N([_.Vg("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.N1]),_.Z("design:returntype")],QO.prototype,"onYtServiceRequestSent_",null);_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.cw]),_.Z("design:returntype")],QO.prototype,"onYtServiceRequestCompleted_",null);
_.N([_.Vg("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],QO.prototype,"openPopupHandler_",null);_.N([_.Vg("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],QO.prototype,"closePopupHandler_",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],QO.prototype,"dataChanged_",null);
_.N([_.nP({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],QO);
_.p(QO,"yt-unlimited-family-message-interstitial-renderer",function(){if(QzZ===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;$DZ===void 0&&($DZ=document.createElement("template"));var G=$DZ;B.call(S,G.content.cloneNode(!0),f.content.firstChild);QzZ=f}f=QzZ;return f},{mode:2});var Y$o;var r7u;var YD=function(){return _.I.apply(this,arguments)||this};
_.q(YD,_.I);YD.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"}}}};
YD.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.m9(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(f){f.onShow()});
_.m9(this.hostElement).querySelector("#main-thumbnail").onShow()};
YD.prototype.onButtonTap_=function(f){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(f)};
YD.prototype.computeMainThumbnailWidth_=function(f){return f&&f.length!==0?72:96};
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],YD.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],YD.prototype,"ytRendererBehavior",void 0);_.N([_.r(q$$.YtUnlimitedFamilyInterstitialBehavior),_.Z("design:type",Object)],YD.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],YD.prototype,"data",void 0);
_.N([_.n({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.Z("design:type",Number)],YD.prototype,"mainThumbnailWidth_",void 0);_.N([_.n({value:function(){return this.onButtonTap_.bind(this)}}),
_.Z("design:type",Function)],YD.prototype,"boundButtonTap_",void 0);_.N([_.nP({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],YD);
_.p(YD,"yt-unlimited-family-profile-interstitial-renderer",function(){if(r7u===void 0){var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;Y$o===void 0&&(Y$o=document.createElement("template"));var G=Y$o;B.call(S,G.content.cloneNode(!0),f.content.firstChild);r7u=f}f=r7u;return f},{mode:2});var jzO;var Oxn;var r$=function(){var f=_.I.apply(this,arguments)||this;f.sliderAriaValueText_=null;f.selectedIndex_=0;f.messages={PAUSE_SLIDER:_.Jf("PAUSE_SLIDER",void 0,"Pause Duration")};return f};
_.q(r$,_.I);_.e=r$.prototype;_.e.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_]]"}}}}}};
_.e.onPopupOpened_=function(f){f.detail==this&&_.K("enable_premium_voluntary_pause")&&(_.bW(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e.setDialogData=function(f){this.data=f;this.resetSlider_()};
_.e.dataChanged_=function(){this.data&&this.resetSlider_()};
_.e.onSubmitTap_=function(){if(this.data.confirmCommand){var f=this.data.confirmCommand;_.H(f,_.oZL)&&_.RD(this.hostElement,[f,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.e.onExitButtonTap_=function(){_.bW(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.e.closePopupHandler_=function(f,S){(S&&S.canceled===!0||S.canceled===!1&&S.confirmed===!1)&&this.handleOnDismissCommands_()};
_.e.onSliderChange_=function(){this.selectedIndex_=_.m9(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.e.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.e.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.e.resetSlider_=function(){if(this.data){var f=this.data.defaultEndOptionIndex||0,S=_.m9(this.hostElement).querySelector("#id-pause-slider");if(S.immediateValue<f)for(;S.immediateValue!=f;)S.increment();else if(f<S.immediateValue)for(;S.immediateValue!=f;)S.decrement();this.selectedIndex_=f;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.e.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.Xh(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.e.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.Xh(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.e.onYtServiceRequestSent=function(){this.loading=!0};
_.e.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
r$.prototype.onYtServiceRequestCompleted=r$.prototype.onYtServiceRequestCompleted;r$.prototype.onYtServiceRequestSent=r$.prototype.onYtServiceRequestSent;r$.prototype.closePopupHandler_=r$.prototype.closePopupHandler_;r$.prototype.dataChanged_=r$.prototype.dataChanged_;r$.prototype.onPopupOpened_=r$.prototype.onPopupOpened_;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],r$.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],r$.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],r$.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],r$.prototype,"loading",void 0);_.N([_.n(),_.Z("design:type",Number)],r$.prototype,"selectIndexMax_",void 0);_.N([_.n(),_.Z("design:type",Object)],r$.prototype,"selectedData_",void 0);
_.N([_.n(),_.Z("design:type",Object)],r$.prototype,"sliderAriaValueText_",void 0);_.N([_.n({value:function(){return this.onSubmitTap_.bind(this)}}),
_.Z("design:type",Function)],r$.prototype,"onButtonTap_",void 0);_.N([_.n({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.Z("design:type",Function)],r$.prototype,"onSecondaryTap_",void 0);_.N([_.n(),_.Z("design:type",Object)],r$.prototype,"messages",void 0);_.N([_.Vg("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],r$.prototype,"onPopupOpened_",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],r$.prototype,"dataChanged_",null);
_.N([_.Vg("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],r$.prototype,"closePopupHandler_",null);_.N([_.Vg("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.N1]),_.Z("design:returntype")],r$.prototype,"onYtServiceRequestSent",null);
_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.cw]),_.Z("design:returntype")],r$.prototype,"onYtServiceRequestCompleted",null);_.N([_.nP({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],r$);
_.p(r$,"yt-unplugged-pause-membership-dialog-renderer",function(){if(Oxn===void 0){var f=document.createElement("template");_.Y(f,'\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>');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;jzO===void 0&&(jzO=document.createElement("template"));var G=jzO;B.call(S,G.content.cloneNode(!0),f.content.firstChild);Oxn=f}f=Oxn;return f},{mode:2});var xDO;var Ewn;var jv=function(){return _.I.apply(this,arguments)||this};
_.q(jv,_.I);jv.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.Ia("vcBalanceRenderer")}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],jv.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],jv.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],jv.prototype,"data",void 0);_.N([_.nP({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],jv);
_.p(jv,"yt-vc-offer-layout-header-renderer",function(){if(Ewn===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;xDO===void 0&&(xDO=document.createElement("template"));var G=xDO;B.call(S,G.content.cloneNode(!0),f.content.firstChild);Ewn=f}f=Ewn;return f},{mode:2});var LDO;var kHe;var nwe;var szu;var OF=function(){return _.I.apply(this,arguments)||this};
_.q(OF,_.I);OF.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.y3.Object.defineProperties(OF.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)}}});
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],OF.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],OF.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.e88.YtTappableItemBehavior),_.Z("design:type",Object)],OF.prototype,"ytTappableItemBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],OF.prototype,"data",void 0);
_.N([_.n({reflectToAttribute:!0}),_.k("data.accessibilityText"),_.Z("design:type",String),_.Z("design:paramtypes",[])],OF.prototype,"ariaLabel",null);_.N([_.n({reflectToAttribute:!0}),_.k("data.style"),_.Z("design:type",String),_.Z("design:paramtypes",[])],OF.prototype,"vcOfferStyle",null);_.N([_.k("data.style","data.titleText"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],OF.prototype,"showTitleText",null);_.N([_.nP({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],OF);
_.p(OF,"yt-vc-offer-renderer",function(){if(szu===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;nwe===void 0&&(nwe=document.createElement("template"));var G=nwe;B.call(S,G.content.cloneNode(!0),f.content.firstChild);szu=f}f=szu;return f},{mode:2});var xD=function(){return _.I.apply(this,arguments)||this};
_.q(xD,_.I);xD.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}}}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],xD.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],xD.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],xD.prototype,"data",void 0);_.N([_.nP({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],xD);
_.p(xD,"yt-vc-offer-layout-renderer",function(){if(kHe===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;LDO===void 0&&(LDO=document.createElement("template"));var G=LDO;B.call(S,G.content.cloneNode(!0),f.content.firstChild);kHe=f}f=kHe;return f},{mode:2});var DDO;var IJ2;var UD$;var CYX;var EF=function(){return _.I.apply(this,arguments)||this};
_.q(EF,_.I);EF.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}}}}}};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],EF.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],EF.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],EF.prototype,"data",void 0);_.N([_.nP({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],EF);
_.p(EF,"yt-ypc-offers-modal-top-bar-renderer",function(){if(CYX===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;UD$===void 0&&(UD$=document.createElement("template"));var G=UD$;B.call(S,G.content.cloneNode(!0),f.content.firstChild);CYX=f}f=CYX;return f},{mode:2});var Lv=function(){return _.I.apply(this,arguments)||this};
_.q(Lv,_.I);Lv.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"}}}}};
Lv.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
Lv.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var f=this.scrollable;f.attached&&typeof f.attached==="function"&&f.attached()};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Lv.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],Lv.prototype,"ytRendererstamperBehavior",void 0);_.N([_.vF("#scrollable"),_.Z("design:type",Object)],Lv.prototype,"scrollable",void 0);_.N([_.n(),_.Z("design:type",Object)],Lv.prototype,"data",void 0);_.N([_.nP({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],Lv);
_.p(Lv,"yt-ypc-offers-modal-renderer",function(){if(IJ2===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;DDO===void 0&&(DDO=document.createElement("template"));var G=DDO;B.call(S,G.content.cloneNode(!0),f.content.firstChild);IJ2=f}f=IJ2;return f},{mode:2});var pJn;var A7z;var kD=function(){return _.I.apply(this,arguments)||this};
_.q(kD,_.I);_.e=kD.prototype;_.e.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}}}}}};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.m9(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.e.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.bW(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.e.onYtPopupOpened_=function(f,S){(S==null?void 0:S.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.Xh(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.e.onYtPopupClosed_=function(f,S){this.continueButtonTapped||S&&(S.canceled===!0||S.canceled===!1&&S.confirmed===!1)&&this.data.onDismissCommands&&_.Xh(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.e.onYtServiceRequestError_=function(f){this.set("showSpinner",!1);_.g5(this.hostElement,f.detail.error.message)};
_.e.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.K("enable_ypc_spinners")?_.bW(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
kD.prototype.onYtServiceRequestError_=kD.prototype.onYtServiceRequestError_;kD.prototype.onYtPopupClosed_=kD.prototype.onYtPopupClosed_;kD.prototype.onYtPopupOpened_=kD.prototype.onYtPopupOpened_;kD.prototype.onYtServiceRequestCompleted_=kD.prototype.onYtServiceRequestCompleted_;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],kD.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],kD.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.n(),_.Z("design:type",Object)],kD.prototype,"data",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],kD.prototype,"showSpinner",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],kD.prototype,"continueButtonTapped",void 0);_.N([_.n({value:function(){return this.onContinueTapped_.bind(this)}}),
_.Z("design:type",Function)],kD.prototype,"bindOnContinueTapped_",void 0);_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],kD.prototype,"onYtServiceRequestCompleted_",null);_.N([_.Vg("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],kD.prototype,"onYtPopupOpened_",null);
_.N([_.Vg("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],kD.prototype,"onYtPopupClosed_",null);_.N([_.Vg("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],kD.prototype,"onYtServiceRequestError_",null);_.N([_.nP({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],kD);
_.p(kD,"yt-ypc-upgrade-dialog-renderer",function(){if(A7z===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;pJn===void 0&&(pJn=document.createElement("template"));var G=pJn;B.call(S,G.content.cloneNode(!0),f.content.firstChild);A7z=f}f=A7z;return f},{mode:2});var Nan;var MoB;var nv=function(){return _.I.apply(this,arguments)||this};
_.q(nv,_.I);nv.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
nv.prototype.computeHasButtons_=function(f){return!(!f.dismissButton&&!f.confirmButton)};
nv.prototype.computeStyle_=function(f){return f||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],nv.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Px.YtEventForwardingBehavior),_.Z("design:type",Object)],nv.prototype,"ytEventForwardingBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],nv.prototype,"ytRendererstamperBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],nv.prototype,"data",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],nv.prototype,"positionType",void 0);
_.N([_.n({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.Z("design:type",Boolean)],nv.prototype,"hasButtons_",void 0);_.N([_.n({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],nv.prototype,"style_",void 0);_.N([_.nP({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],nv);
_.p(nv,"yt-bubble-hint-renderer",function(){if(MoB===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;Nan===void 0&&(Nan=document.createElement("template"));var G=Nan;B.call(S,G.content.cloneNode(!0),f.content.firstChild);MoB=f}f=MoB;return f},{mode:2});var ZxM;var toO;var sF=function(){var f=_.WS.apply(this,arguments)||this;f.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return f};
_.q(sF,_.WS);_.e=sF.prototype;_.e.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.e.attached=function(){var f=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){f.$.thumbnail.onShow();f.$["header-image"].onShow()})};
_.e.handleCheckBoxUpdateAction_=function(f){this.canShowCheckboxEnabledConfirmButton=f};
_.e.computeUseOverlayForSpinner_=function(f,S){return!!f&&S};
_.e.computeShowSpinner_=function(f,S){return f||!!S};
_.e.fireOnCloseActions_=function(){var f,S=_.m(((f=this.data)==null?void 0:f.onClosedActions)||[]);for(f=S.next();!f.done;f=S.next())this.ytRendererBehavior.resolveCommand(f.value)};
_.e.fireOnOpenCommands_=function(f){var S,B=(S=this.data)==null?void 0:S.onOpenCommands;if(B)for(f.stopImmediatePropagation(),f=_.m(B),S=f.next();!S.done;S=f.next())this.ytRendererBehavior.resolveCommand(S.value)};
_.e.fireOnDismissCommands_=function(f){var S,B=(S=this.data)==null?void 0:S.onDismissCommands;if(B)for(f.stopImmediatePropagation(),f=_.m(B),S=f.next();!S.done;S=f.next())this.ytRendererBehavior.resolveCommand(S.value)};
_.e.openPopupHandler_=function(f){f.detail==this&&this.fireOnOpenCommands_(f)};
_.e.closePopupHandler_=function(f,S){_.mU(this,"yt-confirm-dialog-close-action",[S]);this.fireOnCloseActions_();(S&&S.canceled===!0||S&&S.canceled===!1&&S.confirmed===!1)&&this.fireOnDismissCommands_(f)};
_.e.onHeaderImageChanged_=function(){var f;((f=this.data)==null?0:f.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.e.computeHasHeaderImageWidth_=function(f){return f!=void 0};
_.e.computeHasLoadingMessage=function(f){return!!f};
_.e.onHeaderImageWidthChanged_=function(){var f,S=(f=this.data)==null?void 0:f.headerImageWidth;if(S){if(f=1.25*S*2+S,this.$.main.style.width=f+"px",S=this.$.scroller.firstElementChild)S.style.minWidth=f+"px"}else this.$.main.style.width="100%"};
_.e.onThumbnailChanged_=function(){var f;((f=this.data)==null?0:f.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")};
_.e.onYtNavigate_=function(f){f=_.lt(f);f instanceof Node&&_.zY(this.$["confirm-button"]).contains(f)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.e.computePrimaryIsCancel_=function(f){return f};
_.e.computeIsCancelButtonHidden_=function(f){return f.skipCancelButton||!f.cancelButton};
_.e.computeIsCheckboxHidden_=function(f){return!f.checkbox};
_.e.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.e.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.e.onYtServiceRequestCompleted_=function(){var f;((f=this.data)==null?0:f.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.y3.Object.defineProperties(sF,{template:{configurable:!0,enumerable:!0,get:function(){if(toO===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;ZxM===void 0&&(ZxM=document.createElement("template"));var G=ZxM;B.call(S,G.content.cloneNode(!0),f.content.firstChild);toO=f}f=toO;return f}}});
sF.prototype.onYtServiceRequestCompleted_=sF.prototype.onYtServiceRequestCompleted_;sF.prototype.onYtServiceRequestSent_=sF.prototype.onYtServiceRequestSent_;sF.prototype.onThumbnailLoaded_=sF.prototype.onThumbnailLoaded_;sF.prototype.onYtNavigate_=sF.prototype.onYtNavigate_;sF.prototype.onThumbnailChanged_=sF.prototype.onThumbnailChanged_;sF.prototype.onHeaderImageWidthChanged_=sF.prototype.onHeaderImageWidthChanged_;sF.prototype.onHeaderImageChanged_=sF.prototype.onHeaderImageChanged_;
sF.prototype.closePopupHandler_=sF.prototype.closePopupHandler_;sF.prototype.openPopupHandler_=sF.prototype.openPopupHandler_;_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],sF.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],sF.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],sF.prototype,"ytRendererBehavior",void 0);
_.N([_.r(_.Px.YtEventForwardingBehavior),_.Z("design:type",Object)],sF.prototype,"ytEventForwardingBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],sF.prototype,"data",void 0);_.N([_.n({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.Z("design:type",Boolean)],sF.prototype,"primaryIsCancel",void 0);_.N([_.n({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.Z("design:type",Boolean)],sF.prototype,"isCancelButtonHidden",void 0);
_.N([_.n({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.Z("design:type",Boolean)],sF.prototype,"isCheckboxHidden",void 0);_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],sF.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.N([_.n({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],sF.prototype,"useOverlayForSpinner_",void 0);
_.N([_.n({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.Z("design:type",Boolean)],sF.prototype,"showSpinner_",void 0);_.N([_.n({value:!1}),_.Z("design:type",Boolean)],sF.prototype,"isActionInProgress_",void 0);_.N([_.n({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.Z("design:type",Boolean)],sF.prototype,"hasHeaderImageWidth_",void 0);
_.N([_.n({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.Z("design:type",Boolean)],sF.prototype,"hasLoadingMessage",void 0);_.N([_.Vg("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],sF.prototype,"openPopupHandler_",null);_.N([_.Vg("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],sF.prototype,"closePopupHandler_",null);
_.N([_.JO("data.headerImage"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],sF.prototype,"onHeaderImageChanged_",null);_.N([_.JO("data.headerImageWidth"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],sF.prototype,"onHeaderImageWidthChanged_",null);_.N([_.JO("data.thumbnail"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],sF.prototype,"onThumbnailChanged_",null);
_.N([_.Vg("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],sF.prototype,"onYtNavigate_",null);_.N([_.Vg("yt-img-shadow-loaded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],sF.prototype,"onThumbnailLoaded_",null);_.N([_.Vg("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.N1]),_.Z("design:returntype")],sF.prototype,"onYtServiceRequestSent_",null);
_.N([_.Vg("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.cw]),_.Z("design:returntype")],sF.prototype,"onYtServiceRequestCompleted_",null);_.N([_.nP({is:"yt-confirm-dialog-renderer",noInjection:!0})],sF);var uCu;var aJu;var DY=function(){return _.I.apply(this,arguments)||this};
_.q(DY,_.I);DY.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.m9(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
DY.prototype.computeConfirmButton_=function(f){var S={text:f.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};f.confirmNavigationEndpoint?S.navigationEndpoint=f.confirmNavigationEndpoint:f.confirmServiceEndpoint&&(S.serviceEndpoint=f.confirmServiceEndpoint);return S};
DY.prototype.computeShowTitle_=function(f){return!(f==null||!f.title)};
_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],DY.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],DY.prototype,"data",void 0);_.N([_.n({computed:"computeShowTitle_(data)"}),_.Z("design:type",Boolean)],DY.prototype,"showTitle",void 0);_.N([_.nP({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],DY);
_.p(DY,"yt-fancy-dismissible-dialog-renderer",function(){if(aJu===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;uCu===void 0&&(uCu=document.createElement("template"));var G=uCu;B.call(S,G.content.cloneNode(!0),f.content.firstChild);aJu=f}f=aJu;return f});var y7X;var WDo;var I1=function(){var f=_.I.apply(this,arguments)||this;f.spinnerActive=!1;return f};
_.q(I1,_.I);I1.prototype.created=function(){JOu(2201)};
I1.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
I1.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
I1.prototype.onIronOverlayClosed=I1.prototype.onIronOverlayClosed;I1.prototype.onIronOverlayOpened=I1.prototype.onIronOverlayOpened;_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],I1.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.uH),_.Z("design:type",Object)],I1.prototype,"tpYtIronOverlayBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],I1.prototype,"data",void 0);_.N([_.n(),_.Z("design:type",Object)],I1.prototype,"spinnerActive",void 0);
_.N([_.Vg("iron-overlay-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],I1.prototype,"onIronOverlayOpened",null);_.N([_.Vg("iron-overlay-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],I1.prototype,"onIronOverlayClosed",null);_.N([_.nP({is:"yt-loading-renderer",disableElementRegistration:!0})],I1);
_.p(I1,"yt-loading-renderer",function(){if(WDo===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;y7X===void 0&&(y7X=document.createElement("template"));var G=y7X;B.call(S,G.content.cloneNode(!0),f.content.firstChild);WDo=f}f=WDo;return f},{mode:2});var c7e;var lJ$;var UF=function(){var f=_.I.apply(this,arguments)||this;f.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);f.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);f.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return f};
_.q(UF,_.I);_.e=UF.prototype;_.e.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.e.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.e.onDarkModeToggledAction=function(f){this.isDarkTheme=f};
_.e.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.e.openPopupHandler_=function(f){f.detail===this.hostElement&&this.hostElement.hidden&&_.bW(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.e.onDismissButtonTap_=function(){var f;this.closeOnDismissButton_.has(((f=this.data)==null?void 0:f.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.bW(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.e.onAcceptButtonTap_=function(){var f;this.closeOnAcceptButton_.has(((f=this.data)==null?void 0:f.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.bW(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.e.computeHasHeader_=function(f){return!!f.headerBackgroundImage};
_.e.computeLayoutStyle_=function(f){return f};
_.e.computePopupSize_=function(f){return f};
_.e.computeIconType_=function(f){return f.dialogIcon&&f.dialogIcon.iconType?f.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":f.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":f.dialogIcon.iconType:""};
_.e.computeIsLogo_=function(f){return!!f.dialogIcon&&!!f.dialogIcon.iconType&&(f.dialogIcon.iconType==="YOUTUBE_LOGO"||f.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||f.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.e.computeHasCustomLogo=function(f){return!(f==null||!f.headerForegroundImage)};
_.e.computeCustomLogo=function(f,S){if(f!=null&&f.headerForegroundImage)return f.headerForegroundImageDark?S?f.headerForegroundImageDark:f.headerForegroundImage:f.headerForegroundImage};
_.e.computeHeaderBackgroundImage=function(f,S){if(f!=null&&f.headerBackgroundImage)return S&&(f==null?0:f.headerBackgroundImageDark)?f.headerBackgroundImageDark:f.headerBackgroundImage};
_.e.shouldShowIconContainer=function(f,S){return f&&!S};
_.e.shouldShowNonYouTubeIcon=function(f,S){return!f&&!S};
_.e.getLogoImageId=function(f){var S,B,G;return(f=(S=this.computeCustomLogo(f,this.isDarkTheme))==null?void 0:(B=S.thumbnails)==null?void 0:(G=B[0])==null?void 0:G.height)&&f%31===0?"custom-logo-with-padding":"custom-logo"};
UF.prototype.openPopupHandler_=UF.prototype.openPopupHandler_;UF.prototype.dataChanged_=UF.prototype.dataChanged_;_.N([_.r(_.ey.YtRendererstamperBehavior),_.Z("design:type",Object)],UF.prototype,"ytRendererstamperBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],UF.prototype,"ytRendererBehavior",void 0);_.N([_.n(),_.Z("design:type",Boolean)],UF.prototype,"isDarkTheme",void 0);
_.N([_.n({computed:"computeCustomLogo(data, isDarkTheme)"}),_.Z("design:type",Object)],UF.prototype,"customLogo",void 0);_.N([_.n({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.Z("design:type",Object)],UF.prototype,"headerBackgroundImage",void 0);_.N([_.n(),_.Z("design:type",Object)],UF.prototype,"data",void 0);_.N([_.n({computed:"computeHasHeader_(data)"}),_.Z("design:type",Boolean)],UF.prototype,"hasHeader",void 0);
_.N([_.n({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.Z("design:type",Object)],UF.prototype,"layoutStyle",void 0);_.N([_.n({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.Z("design:type",Object)],UF.prototype,"popupSize",void 0);_.N([_.n({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],UF.prototype,"hasLogo",void 0);
_.N([_.n({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],UF.prototype,"hasCustomLogo",void 0);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],UF.prototype,"dataChanged_",null);_.N([_.Vg("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],UF.prototype,"openPopupHandler_",null);
_.N([_.nP({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],UF);
_.p(UF,"yt-upsell-dialog-renderer",function(){if(lJ$===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;c7e===void 0&&(c7e=document.createElement("template"));var G=c7e;B.call(S,G.content.cloneNode(!0),f.content.firstChild);lJ$=f}f=lJ$;return f},{mode:2});var fGu=_.oS(function(f){return _.T("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.T(_.v,{cond:f.title,then:function(S){return _.T("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},S)}}))},"wg"),oYB=_.oS(function(f){return _.T("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.T(_.xK,{data:f.closeButton},{buttonViewModel:function(S){return _.T("div",null,_.T(_.I8,{data:S.data}))}}))},"xg"),SaB=_.oS(function(f){var S=
f.data;
return _.T(_.gg,null,_.T("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.T("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.T(_.v,{cond:function(){return!!S().image&&!!S().title},
then:function(){return _.T(_.f9,{data:function(){return S().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.T("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.T(_.v,{cond:function(){return S().title},
then:function(B){return _.T("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},B)}}),_.T(_.v,{cond:function(){return S().primaryGenre},
then:function(B){return _.T("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},B)}}))),_.T(_.v,{cond:function(){var B=S().description;
return B&&B.length<=150},
then:function(){return _.T("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.T("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return S().description}))}}))},"yg"),BSZ=_.oS(function(f){f=f.infoRows;
var S=_.oy().resolve(_.L3),B=_.K("enable_displaying_ppn");return _.T("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.T(_.dg,{each:f},function(G){return _.T("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.T(_.v,{cond:function(){return G.label},
then:function(g){return _.T("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},g)}}),_.T(_.v,{cond:function(){return G.attributedLabel},
then:function(g){return _.T("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.T(_.oY,{text:g,noPreWrap:!0}))}}),_.T(_.v,{cond:function(){return G.value},
then:function(g){return _.T("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},g)}}),_.T(_.v,{cond:function(){return G.attributedValue},
then:function(g){return _.T("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.T(_.oY,{text:g,noPreWrap:!0}))}}))}),_.T(_.v,{cond:function(){return B&&S.clientData.has("post_play_nonce")},
then:function(){return _.T("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.T("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.T("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},S.getData("post_play_nonce")))}}))},"zg"),Gs2=_.oS(function(f){var S=f.data;
return _.T("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.T(fGu,{title:function(){return S().dialogTitle}}),_.T(SaB,{data:S}),_.T(_.v,{cond:function(){return S().infoRow},
then:function(B){return _.T(BSZ,{infoRows:B})}}),_.T(oYB,{closeButton:function(){return S().closeButton}}))},"Ag");
Gs2.idomCompat=!0;_.eq(Gs2,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.W4}});_.eq(_.oS(function(f){var S=f.data;return _.T("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.T(_.f9,{data:function(){return S().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.T("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.T("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.T(_.v,{cond:function(){var B=S().ytLogo;return B?B.iconType:null},
then:function(B){return _.T(_.Y8,{icon:B,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.T("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.T("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.T(_.oY,{text:function(){return S().title}})),_.T("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.T(_.oY,{text:function(){return S().body}})),_.T("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.T(_.oY,{text:function(){return S().verifyStateText}}))),
_.T("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.T("div",null,_.T(_.xK,{data:function(){return S().dismissButton}},{buttonViewModel:_.I8})),_.T("div",null,_.T(_.xK,{data:function(){return S().linkParentButton}},{buttonViewModel:_.I8})))))},"Bg"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.W4}});var gYO=_.oS(function(f){var S=f.data;f=_.cF(function(){return S().agreements},[]);
return _.T("installment-agreements-view-model",{class:_.Pw("ytInstallmentAgreementsViewModelHost")},_.T(_.dg,{each:f},function(B){return _.T("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.T("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.T(_.oY,{text:B.label})),_.T("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.T(_.xK,{data:function(){return B.openButton}},{buttonViewModel:_.I8})))}))},"Cg");
gYO.idomCompat=!0;var eZY=_.oS(function(f){return _.T("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.T("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.T(_.oY,{text:function(){return f.data().inviteMessage}})),_.T("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.T(_.oY,{text:function(){return f.data().attributedAccountSectionHeaderText}})),_.T("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.T(_.xK,{data:function(){return f.data().accountAvatar}},{avatarViewModel:_.Ya}),_.T("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.T(_.oY,{text:function(){return f.data().accountName}}),_.T("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.T(_.oY,{text:function(){return f.data().handle}}))),_.T(_.xK,{data:function(){return f.data().trailingButton}},{buttonViewModel:_.I8})),_.T("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.T(_.oY,{text:function(){return f.data().termsOfService}})))},"Dg");var bcu=_.oS(function(f){var S=_.m(_.$8(function(){var l,mx;return((l=f.data().createPlaylistDialogFormSchema)==null?0:(mx=l.initialValues)==null?0:mx.title)?f.data().createPlaylistDialogFormSchema.initialValues.title:""})),B=S.next().value,G=S.next().value;
S=_.m(_.$8(function(){f.data();return!1}));
var g=S.next().value,b=S.next().value;S=_.m(_.$8(function(){f.data();return!1}));
var z=S.next().value,X=S.next().value;S=_.m(_.$8(function(){var l,mx;return(l=f.data().createPlaylistDialogFormSchema)==null?void 0:(mx=l.initialValues)==null?void 0:mx.visibility}));
var w=S.next().value,F=S.next().value;S=_.m(_.$8(function(){f.data();return!1}));
var V=S.next().value,J=S.next().value;S=_.m(_.$8(function(){var l,mx;return(l=f.data().createPlaylistDialogFormSchema)==null?void 0:(mx=l.initialValues)==null?void 0:mx.isCollaborative}));
var P=S.next().value,d=S.next().value,Q=_.tE("div");_.jp(function(){var l=Q.value.querySelector("textarea");l&&(l.value=B())},"OCauEe");
_.j9(function(){var l;_.$vZ((l=f.data().createPlaylistDialogFormSchema)==null?void 0:l.id,{onSubmit:function(){var mx=B();var zj=w(),VN=P(),$Q=f.data();mx={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:mx,privacyStatus:zj,videoIds:$Q.videoIds,sourcePlaylistId:$Q.sourcePlaylistId,params:VN?$Q.createPlaylistParamsCollaborationEnabled:$Q.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.oy().resolve(_.S7).resolveCommand(mx)},
isValid:function(){return g()&&!z()&&!V()}})});
var x=function(l){if(l!==void 0&&(G(l),!g()&&l.length>0&&b(!0),g())){var mx=YAZ(f.data());if(mx){var zj=mx.minLength;mx=mx.maxLength;zj&&l.length<zj?X(!0):mx&&l.length>mx?X(!0):X(!1)}}},E=function(){var l=!(!P()||w()!=="PRIVATE");
J(l)},U=function(l){l!==void 0&&(F(l),E())},A=function(){if(V())return jcX(f.data())},t=function(){d(!P());
E()},M=function(){return{validate:function(l){if(g()){var mx=YAZ(f.data());
if(mx){var zj=mx.minLength;mx=mx.translations;if(zj&&l.length<zj)return mx==null?void 0:mx.minLengthErrorMessage}}}}},a=function(){var l=YAZ(f.data()),mx=l==null?void 0:l.maxLength,zj;
l=l==null?void 0:(zj=l.translations)==null?void 0:zj.maxLengthErrorMessage;if(mx&&l)return{maxChars:mx,errorMessage:l}};
return _.T("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.T("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:Q},_.T(_.xK,{data:function(){return f.data().playlistTitle}},{textFormFieldViewModel:function(l){return _.T(_.wf$,{data:l.data,
text:B,onInput:x,validation:M,characterLimit:a})},
textFieldViewModel:function(l){return _.T(_.Xfu,{data:l.data,text:B,onInput:x,validation:M,characterLimit:a})}})),_.T("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.T(_.xK,{data:function(){return f.data().playlistVisibility}},{dropdownViewModel:function(l){return _.T(_.q6z,{data:l.data,
onSelected:U,error:A})}})),_.T(_.v,{cond:function(){return!!f.data().playlistCollaborate},
then:function(){return _.T("div",null,_.T(_.xK,{data:function(){return f.data().playlistCollaborate}},{switchListItemViewModel:function(l){return _.T(_.T$o,{data:l.data,
onTap:t})}}))}}))},"Eg");var mL$=_.oS(function(f){var S=_.cF(f.noPadding,!1),B=function(){var g,b;return(b=(g=f.data().logo.accessibilityData)==null?void 0:g.label)!=null?b:""},G={};
return _.T("upsell-view-model",{class:_.Pw("ytUpsellViewModelHost",(G.ytUpsellViewModelHostNoPadding=function(){return S()},G))},_.T("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.T(_.v,{cond:function(){return _.fy(f.data().logo)},
then:function(g){return _.T(_.f9,{data:g,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:B})}})),_.T("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.T(_.oY,{text:function(){return f.data().title}})),_.T("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.T(_.dg,{each:function(){var g;
return(g=f.data().subtitles)!=null?g:[]},
keyBy:"INDEX"},function(g){return _.T("div",{class:"ytUpsellViewModelHostUpsellSubtitleSectionSubtitle"},_.T(_.oY,{text:g}))})),_.T("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.T(_.dg,{each:function(){var g;
return(g=f.data().benefitInfos)!=null?g:[]},
keyBy:"INDEX"},function(g){return _.T(_.v,{cond:function(){return g().info},
then:function(b){return _.T("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.T(_.Y8,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.T(_.oY,{text:b}))}})})),_.T("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.T(_.dg,{each:function(){var g;
return(g=f.data().legalInfos)!=null?g:[]},
keyBy:"INDEX"},function(g){return _.T("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo"},_.T(_.oY,{text:g}))})))},"Fg");var zZM=_.oS(function(f){var S=f.data;f={};f=(f.ytMiniAppScoreChallengeViewModelScoreRadial=!0,f.ytMiniAppScoreChallengeViewModelDarkScoreRadial=OJ$(),f);return _.T("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.T("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return S().title}),_.T("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return S().subtitle}),_.T("div",{class:_.K9(f)},_.T("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return S().score})),_.T("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return S().prompt}))},"Gg");var RZu=function(){this.store=_.al();this.formId=""};var XIO=_.oS(function(f){function S(X){if(X&&(X=_.H(X,_.ix)))return Object.assign({},X,{isSelected:b()})}
var B=_.m(_.$8(function(){var X,w;return(w=(X=_.H(f.data().option,_.ix))==null?void 0:X.isSelected)!=null?w:!1})),G=B.next().value,g=B.next().value,b=G;
_.j9(function(){var X;_.$vZ((X=f.data().formSchema)==null?void 0:X.id,{onSubmit:function(){var w=_.oy().resolve(_.S7),F=!!f.data().selectedCommand,V=!!f.data().unselectedCommand;if(b()){if(F)var J=f.data().selectedCommand}else V&&(J=f.data().unselectedCommand);J=_.CH(J);S(f.data().option)&&!J?(w="",!F&&V?w="selected ":F&&!V&&(w="unselected "),F=new _.dO("No "+w+"command found for SelectionListItemFormViewModel"),_.xH(F)):J&&w.resolveCommand(J)},
isValid:function(){return!0}})});
var z=function(){g(!b())};
_.Ov(function(){var X,w,F=(X=f.data())==null?void 0:(w=X.formSchema)==null?void 0:w.id;F&&_.Hou()().delete(F)});
return _.T("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.T("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.T(_.oY,{text:function(){return f.data().paragraph}})),_.T(_.v,{cond:function(){return S(f.data().option)},
then:function(X){return _.T(_.Y4,{data:X,isCompact:!0,hideSelectionTextChevron:!0,onTap:z,disableHorizontalPadding:!0})}}))},"Hg");var wIZ=_.oS(function(f){var S=f.data;var B=f.disablePadding;var G=f.className;var g=_.tE("yt-dialog-header-view-model"),b=function(){var X=S().imageBanner;a:switch(S().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var w="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:w="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:X,style:w,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},z=function(){return S().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.j9(function(){var X=function(){_.bW(g.value,"yt-refit-popups-action")},w;
(w=g.value)==null||w.addEventListener("image-loaded",X);_.Ov(function(){var F;(F=g.value)==null||F.removeEventListener("image-loaded",X)})});
f={};return _.T("yt-dialog-header-view-model",{el:g,class:_.Pw(G,(f.ytDialogHeaderViewModelHost=!0,f.ytDialogHeaderViewModelHostDisablePadding=B,f))},_.T(_.v,{cond:function(){return S().imageBanner},
then:function(){var X={};return _.T("div",{class:_.Pw(G,(X.ytDialogHeaderViewModelBanner=!0,X.ytDialogHeaderViewModelBannerFullBleed=z,X)),style:_.Qj({"max-height":function(){return S().assetContainerMaxHeight!==void 0?S().assetContainerMaxHeight+"px":void 0}})},_.T(_.oC,{data:b,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.T(_.v,{cond:function(){return S().headerBlock},
then:function(){return _.T("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.T(_.xK,{data:function(){return S().headerBlock}},{contentPreviewImageViewModel:function(X){return _.T(_.oC,{data:X.data,
notifyOnLoaded:!0})}}))}}),_.T(_.v,{cond:function(){return S().customAssetContainer},
then:function(X){return _.T("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.T(_.xK,{data:X},{avatarStackViewModel:_.jL}))}}),_.T(_.v,{cond:function(){return S().customBanner},
then:function(X){return _.T("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.T(_.xK,{data:X},{avatarStackViewModel:_.jL}))}}),_.T(_.v,{cond:function(){return S().headline},
then:function(X){return _.T("h2",null,_.T(_.oY,{text:X,className:"ytDialogHeaderViewModelText"}))}}))},"Ig");
wIZ.idomCompat=!0;var hZe=_.oS(function(f){var S=_.Q$$(function(){return f.data().formId}),B=S.onSubmit,G=S.isValid;
return _.T("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.T(_.xK,{data:function(){return f.data().panelFooter}},{panelFooterViewModel:function(g){return _.T(_.pE,{data:g.data,
disablePadding:!0,disablePrimaryButton:function(){return!G()},
onClickPrimaryButton:function(){B()}})}}))},"Jg");var TSu=_.oS(function(f){var S=function(){var B,G;return(G=(B=_.H(f.data().rendererContext,_.H1))==null?void 0:B.label)!=null?G:""};
return _.T("yt-dialog-image-content-view-model",{class:_.Pw("ytDialogImageContentViewModelHost",f.className)},_.T(_.v,{cond:function(){return _.fy(f.data().image)},
then:function(B){return _.T(_.f9,{data:B,alt:S,className:"ytDialogImageContentViewModelImage",contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"})}}),_.T(_.oY,{text:function(){return f.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Kg");var J6e=_.oS(function(f){var S=_.lu(f,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),B=S.elRefCallback;f=S.iconWiz;var G=S.assetWiz,g=S.assetType,b=S.titleWiz,z=S.leadingActionHeaderWiz,X=S.trailingActionHeaderWiz,w=S.headerPosition,F=S.contentWiz,V=S.buttonLayout,J=S.buttonStyle,P=S.primaryButtonWiz,d=S.secondaryButtonWiz,Q=S.contentAlignment,x=S.isFullscreen,E=S.width,U=S.maxHeight,A=S.isHeaderWizDefined,
t=S.headerWiz,M=S.isFooterWizDefined,a=S.footerWiz;S=_.tE("dialog-layout",function(UV){B==null||B(UV)});
var l=G?function(){return G({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,mx=P?function(){var UV={};
return P({buttonOverrides:function(){return{style:(J==null?void 0:J())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.Pw((UV["yt-spec-dialog-layout__dialog-layout-button"]=!0,UV["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(V==null?void 0:V())===0||(V==null?void 0:V())===2},UV))})}:void 0,zj=d?function(){var UV={};
return d({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.Pw((UV["yt-spec-dialog-layout__dialog-layout-button"]=!0,UV["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(V==null?void 0:V())===0||(V==null?void 0:V())===2},UV))})}:void 0,VN=function(){return(!!b||!!z||!!X)&&w()===0},$Q={},OV={},rW={},MA={};
return _.T("dialog-layout",{el:S,class:_.Pw(($Q["yt-spec-dialog-layout"]=!0,$Q["yt-spec-dialog-layout--dialog-layout-fullscreen"]=x,$Q["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!x()},$Q["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return U()===1},$Q["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(g==null?void 0:g())===1},$Q)),
style:function(){return(E==null?void 0:E())!==void 0?"width: "+E+"px;":""}},f?_.T("div",{class:_.Pw((OV["yt-spec-dialog-layout__dialog-layout-icon"]=!0,OV["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!G&&w()===1},OV["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return Q()===1},OV))},_.T(f,null)):null,_.T(_.v,{cond:A,
then:function(){return t?_.T("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.T(t,null)):null},
else:function(){return _.T(_.gg,null,_.T(_.v,{cond:VN,then:function(){return _.T(F72,{contentAlignment:Q,LeadingActionHeader:z,TrailingActionHeader:X,Title:b,isAboveAsset:!!l})}}),l?_.T("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.T(l,null)):null)}}),_.T("div",{class:_.Pw((rW["yt-spec-dialog-layout__dialog-layout-container"]=!0,rW["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(Q==null?void 0:Q())===1},rW["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!b&&!t||!!l&&(w==null?void 0:w())===0},rW))},_.T(_.v,{cond:function(){return b&&!t&&(w==null?void 0:w())===1},
then:function(){return _.T(F72,{contentAlignment:Q,LeadingActionHeader:z,TrailingActionHeader:X,Title:b,isAboveAsset:!1})}}),F?_.T("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.T("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.T(F,null))):null,_.T(_.v,{cond:M,
then:function(){return a?_.T("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.T(a,null)):null}}),mx||zj?_.T(V6e,{footerClasses:_.Pw((MA["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,MA["yt-spec-dialog-layout__dialog-layout-footer"]=!0,MA["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(V==null?void 0:V())===2},MA["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(V==null?void 0:V())===1},MA)),
PrimaryButton:mx,SecondaryButton:zj}):null))},"Lg"),F72=_.oS(function(f){var S=_.lu(f,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),B=S.contentAlignment,G=S.LeadingActionHeader;f=S.Title;var g=S.TrailingActionHeader,b=S.isAboveAsset,z=S.enableLeadingActionHeader;S={};return _.T("div",{class:_.Pw((S["yt-spec-dialog-layout__dialog-header-container"]=!0,S["yt-spec-dialog-layout__dialog-header"]=!0,S["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=b,S["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(B==null?void 0:B())===1&&z()},S))},_.T(_.v,{cond:function(){return z()},
then:function(){return G?_.T("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.T(G,null)):null}}),f?_.T("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.T(f,null)):null,g?_.T("div",null,_.T(g,null)):null)},"Mg"),V6e=_.oS(function(f){var S=f.footerClasses;
var B=f.PrimaryButton;f=f.SecondaryButton;return _.T("div",{class:S},f?_.T(f,null):null,B?_.T(B,null):null)},"Ng");var Pgz=_.oS(function(f){var S=f.data;return _.T("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.T("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.T(_.xK,{data:function(){return S().avatar}},{avatarViewModel:_.Ya})),_.T("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.T(_.oY,{text:function(){return S().title}})),_.T(_.oY,{text:function(){return S().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Og");var vYM=_.oS(function(f){var S=f.data;return _.T("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.T("div",{class:"ytAccessConfirmationViewModelContent"},_.T(_.xK,{data:function(){return S().dualAvatar}},{dualAvatarViewModel:function(B){return _.T(_.tFm,{data:B.data,
className:"ytAccessConfirmationViewModelAvatar"})}}),_.T("h2",{class:"ytAccessConfirmationViewModelTitle"},_.T(_.oY,{text:function(){return S().title}})),_.T(_.oY,{text:function(){return S().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Pg");var K72=_.oS(function(f){var S=f.data;var B=void 0;f=_.m(_.$8(function(){var F;return((F=_.H(S().content,_.URO))==null?void 0:F.defaultSelectedKey)||""}));
var G=f.next().value,g=f.next().value,b,z=function(){g("");var F;(F=B)!=null&&F.store.dispatch(_.ef({type:"RESET_COMMAND_MAP"}))};
_.j9(function(){B=new RZu;window.addEventListener("yt-popup-closed",z)});
_.jp(function(){if(B&&b!==S().formId){var F=B,V=S();V.formId&&(F.formId=V.formId,F.store.dispatch(_.ef({type:"SET_CURRENT_FORM_ID",payload:{formId:F.formId}})));(b=S().formId)&&G()&&(F=B,V={key:G()},V.command&&F.store.dispatch(PFu(b,V.command)))}},"k6b6Qe");
_.Ov(function(){window.removeEventListener("yt-popup-closed",z)});
var X=function(F,V,J){V.key&&J&&V.key!==G()&&(g(V.key),B&&V.command&&B.store.dispatch(PFu(J,V.command)))},w=function(){if(_.H(S().content,_.URO))return!(G==null?0:G())};
return _.T("yt-dialog-view-model",{class:_.Pw("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.T(J6e,{headerWiz:function(){return _.T("span",{skip:!0},_.T(_.xK,{data:function(){return S().header}},{dialogHeaderViewModel:function(F){return _.T(wIZ,{data:F.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!S().header},
contentWiz:function(){return _.T("span",{skip:!0},_.T(_.xK,{data:function(){return S().customContent?S().customContent:S().content}},{basicContentViewModel:_.EQB,
createPlaylistDialogFormViewModel:bcu,collaborativePlaylistInviteMessageViewModel:eZY,miniAppScoreChallengeViewModel:zZM,radioButtonGroupViewModel:function(F){var V=F.data;return _.T(_.dpM,{data:V,selectedKey:G,onSelected:X,groupName:function(){return V().formId}})},
selectionListItemFormViewModel:XIO,upsellViewModel:function(F){return _.T(mL$,{data:F.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:Pgz,installmentAgreementsViewModel:gYO,accessConfirmationViewModel:vYM,listViewModel:function(F){return _.T(_.ivv,{data:F.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:TSu}))},
footerWiz:function(){return _.T("span",{skip:!0},_.T(_.xK,{data:function(){return S().footer}},{panelFooterViewModel:function(F){return _.T(_.pE,{data:F.data,
disablePadding:!0,disablePrimaryButton:w})},
formPanelFooterViewModel:hZe,formFooterViewModel:function(F){return _.T(_.mpM,{data:F.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!S().footer}}))},"Qg");
K72.idomCompat=!0;_.eq(K72,"yt-dialog-view-model",{props:{data:_.W4},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var dLX=_.oS(function(f){var S=f.data;f={};return _.T("yt-panel-header-view-model",{class:_.Pw("yt-panel-header-view-model-wiz",(f["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!S().shouldHideDivider},f["yt-panel-header-view-model-wiz--compact"]=function(){return!!S().subtitle},f))},_.T("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.T(_.v,{cond:function(){return S().title},
then:function(B){return _.T(_.oY,{text:B,className:"yt-panel-header-view-model-wiz__title"})}}),_.T(_.v,{cond:function(){return S().subtitle},
then:function(B){return _.T(_.oY,{text:B,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.T("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.T(_.xK,{data:function(){return S().trailingButtons}},{buttonViewModel:function(B){return _.T(_.I8,{data:B.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"Rg");
dLX.idomCompat=!0;var ice=_.oS(function(f){var S=_.iF(function(b){var z;if((z=f.skipContentClick)==null?0:z.call(f))return!1;f.onContentWrapperClick(b);return!0}),B,G,g;
return _.T("div",{class:_.Pw("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return f.isAnimating()?"transform: translateY("+f.currentY()+"px);transition: 0.2s":""}},(B=f.header)==null?void 0:B.call(f),_.T("div",{id:f.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.Qj({"max-height":(0,_.$4)(f.maxHeightForContentWrapper)}),"on:scroll":kcu(f.onScroll),"on:touchmove":kcu(function(b){return void b.stopPropagation()})},_.T("div",{el:{onRender:f.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":S},(G=f.body)==null?void 0:G.call(f))),(g=f.footer)==null?void 0:g.call(f))},"Sg");
ice.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var HcY=_.oS(function(f){var S=_.cF(f.leadingLabel),B=_.cF(f.trailingLabel),G=_.cF(f.footerButtonType),g=function(){return S()||B()||f.hasPrimaryButton()||f.hasSecondaryButton()},b={},z=_.Pw("yt-spec-bottom-sheet-layout__primary-button",(b["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return G()===0&&f.hasPrimaryButton()},b["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return G()===1&&f.hasPrimaryButton()},b["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return G()===2&&f.hasPrimaryButton()},b["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return G()===3&&f.hasPrimaryButton()},b));
b={};var X=_.Pw("yt-spec-bottom-sheet-layout__secondary-button",(b["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return G()===1&&f.hasSecondaryButton()},b["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return G()===2&&f.hasSecondaryButton()},b["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return G()===3&&f.hasPrimaryButton()},b));
return _.T(_.v,{cond:f.hasFooterOverride,then:function(){var w;return _.T(_.gg,null,(w=f.footerOverride)==null?void 0:w.call(f))},
else:function(){return _.T(_.v,{cond:g,then:function(){return _.T("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.T(_.v,{cond:function(){return S()||B()},
then:function(){var w={};return _.T("div",{class:_.Pw("yt-spec-bottom-sheet-layout__footer-label-wrapper",(w["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!f.hasPrimaryButton()},w))},_.T(_.v,{cond:S,
then:function(){return _.T("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},S)}}),_.T(_.v,{cond:B,
then:function(){return _.T("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},B)}}))}}),_.T(_.v,{cond:function(){return f.hasPrimaryButton()||f.hasSecondaryButton()},
then:function(){var w={};return _.T("div",{class:_.Pw("yt-spec-bottom-sheet-layout__footer-button-wrapper",(w["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.$Dv,w))},_.T(_.v,{cond:function(){return f.hasSecondaryButton()&&G()!==0},
then:function(){var F;return _.T("div",{class:X},(F=f.secondaryButton)==null?void 0:F.call(f))}}),_.T(_.v,{cond:f.hasPrimaryButton,
then:function(){var F;return _.T("div",{class:z},(F=f.primaryButton)==null?void 0:F.call(f))}}))}}))}})}})},"Tg");
HcY.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var qa2=_.oS(function(f){var S=_.cF(f.title),B=_.cF(f.subtitle);return _.T("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:f.headerId,"on:touchstart":_.iF(function(G){var g;(g=f.touchstart)==null||g.call(f,G);return!1}),
"on:touchmove":_.iF(function(G){var g;(g=f.touchmove)==null||g.call(f,G);return!1}),
"on:touchend":_.iF(function(G){var g;(g=f.touchend)==null||g.call(f,G);return!1})},_.T("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.T(_.v,{cond:f.hasHeaderOverride,
then:function(){var G;return _.T(_.gg,null,(G=f.headerOverride)==null?void 0:G.call(f))},
else:function(){var G={};return _.T("div",{class:_.Pw((G["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,G["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=S,G))},_.T("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.T(_.v,{cond:S,then:function(){return _.T(_.gg,null,_.T("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},S),_.T(_.v,{cond:B,then:function(){return _.T("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
B)}}))}})),_.T(_.v,{cond:function(){return S()&&f.hasActionHeader()},
then:function(){var g;return _.T("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(g=f.actionHeader)==null?void 0:g.call(f))}}))}}))},"Ug");
qa2.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.oS(function(f){function S(l){if(!U&&typeof MutationObserver!=="undefined"){var mx={childList:!0};"MutationObserver"in window&&(U=new MutationObserver(B.bind(void 0,l)),U.observe(l,mx))}}
function B(l){typeof U!=="undefined"&&(A["content-wrapper"]===void 0&&(A["content-wrapper"]=l.children[0].clientHeight),d(A["content-wrapper"]),P()>Q()||x(P()))}
function G(){J(window.innerHeight);P()>Q()||x(P());t.isFullScreen[0]()&&P()>Q()?M().dispatch("Snap To Full Screen",{maxHeight:E()}):M().dispatch("Snap To Neutral Position",{maxHeight:Q()})}
function g(l){document.body.style.overscrollBehavior="none";l.preventDefault();M().dispatch("Touch Start",{event:l})}
function b(l){l.preventDefault();M().dispatch("Touch Move",{event:l,contentScrollable:P()>Q(),fullContentWrapperHeight:E(),contentWrapperHeight:Q(),contentHeightMap:A,contentWrapperId:"content-wrapper",header:scM(f),footer:scM(f)})}
function z(){document.body.style.overscrollBehavior="";t.isFullScreen[0]()?t.currentY[0]()>=60?M().dispatch("Snap To Neutral Position",{maxHeight:Q()}):M().dispatch("Snap To Full Screen",{maxHeight:E()}):t.currentY[0]()>=60?X():t.currentY[0]()<=-60&&P()>Q()?M().dispatch("Snap To Full Screen",{maxHeight:E()}):M().dispatch("Snap To Neutral Position",{maxHeight:Q()})}
function X(){M().dispatch("Close Sheet",{clientHeight:V(),maxHeight:0});setTimeout(function(){nro()},250)}
var w=_.m(_.hj(window.innerHeight,void 0,"NWeFS")),F=w.next().value;w=w.next().value;var V=F,J=w;w=_.m(_.hj(0,void 0,"oxfm4"));F=w.next().value;w=w.next().value;var P=F,d=w;w=_.m(_.$8(function(){var l=scM(f);return.6*V()-xze(l)-ErX(l)}));
F=w.next().value;w=w.next().value;var Q=F,x=w,E=function(){var l=scM(f);return V()-xze(l)-ErX(l)-24-24},U=null,A={},t={initialY:_.hj(0,void 0,"cYBE5c"),
currentY:_.hj(0,void 0,"RndqHc"),isAnimating:_.hj(!1,void 0,"vO9DVd"),isFullScreen:_.hj(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.$8(Q)},M=function(){var l=null;return function(){if(!l){var mx={initialY:t.initialY[0](),currentY:t.currentY[0](),isAnimating:t.isAnimating[0](),isFullScreen:t.isFullScreen[0](),maxHeightForContentWrapper:t.maxHeightForContentWrapper[0]()};l=LW$(mx)}return l}}();
_.j9(function(){window.addEventListener("resize",G);M().subscribe(function(l){t.initialY[1](l.initialY);t.currentY[1](l.currentY);t.isAnimating[1](l.isAnimating);t.isFullScreen[1](l.isFullScreen);t.maxHeightForContentWrapper[1](l.maxHeightForContentWrapper)})});
_.Ov(function(){window.removeEventListener("resize",G);U&&(U.disconnect(),U=null)});
var a=_.Pw({"bottom-sheet-content-without-icon":function(){var l;return!((l=f.shouldShowIcons)==null?0:l.call(f))}});
return _.T("bottom-sheet-layout",null,_.T(ice,{contentWrapperId:"content-wrapper",isAnimating:function(){return t.isAnimating[0]()},
currentY:function(){return t.currentY[0]()},
maxHeightForContentWrapper:function(){return t.maxHeightForContentWrapper[0]()},
shouldShowIcons:f.shouldShowIcons,skipContentClick:f.skipContentClick,onScroll:function(){var l=document.getElementById("header-wrapper"),mx=document.getElementById("content-wrapper");if(l&&mx){var zj={};zj=(zj["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,zj["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,zj);l.className=mx.scrollTop>1?_.K9(zj):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:nro,contentWrapperEl:function(l){S(l);requestAnimationFrame(function(){B(l)})},
header:function(){return _.T(qa2,{touchstart:g,touchmove:b,touchend:z,title:f.headerTitle,subtitle:f.headerSubtitle,headerId:"header-wrapper",headerOverride:f.headerFn,hasHeaderOverride:f.hasHeaderFn,actionHeader:f.headerActionHeader,hasActionHeader:f.hasHeaderActionHeader})},
footer:function(){return _.T(HcY,{footerButtonType:f.footerButtonType,leadingLabel:f.footerLeadingLabel,trailingLabel:f.footerTrailingLabel,primaryButton:f.footerPrimaryButton,hasPrimaryButton:f.hasFooterPrimaryButton,secondaryButton:f.footerSecondaryButton,hasSecondaryButton:f.hasFooterSecondaryButton,footerOverride:f.footerFn,hasFooterOverride:f.hasFooterFn})},
body:function(){return _.T(_.v,{cond:f.hasContentFn,then:function(){var l;return _.T("div",{class:a},(l=f.contentFn)==null?void 0:l.call(f))}})}}))},"Vg").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var $Lo=_.oS(function(f){var S=_.oy().resolve(_.H0);return _.T("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":_.iF(function(){return void S.closeSheet()})},_.T(_.v,{cond:function(){return!!f.header},
then:function(){return _.T("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},f.header())}}),_.T(_.v,{cond:function(){return!!f.content},
then:function(){return _.T("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},f.content())}}),_.T(_.v,{cond:function(){return!!f.footer},
then:function(){return _.T("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},f.footer())}}))},"Wg");
$Lo.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var QM2=_.oS(function(f){f=f.data;var S=_.tE("yt-sheet-view-model",function(G){if(_.K("web_focus_first_element_sheet"))return G.addEventListener("focus",function(){rEu(G)}),function(){G.removeEventListener("focus",function(){rEu(G)})}}),B={};
return _.T("yt-sheet-view-model",{class:_.Pw("yt-sheet-view-model-wiz",(B["yt-sheet-view-model-wiz--contextual"]=!0,B["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.K("web_disable_backdrop_filter"),B)),el:S,tabindex:-1},_.T(_.v,{cond:f,then:function(G){return _.T($Lo,{header:function(){return _.T(_.xK,{data:function(){return G().header}},{panelHeaderViewModel:dLX})},
content:function(){return _.T(_.xK,{data:function(){return G().content}},{listViewModel:function(g){return _.T(_.ivv,{data:g.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:mL$,miniAppScoreChallengeViewModel:zZM})},
footer:function(){return _.T(_.xK,{data:function(){return G().footer}},{panelFooterViewModel:_.pE})}})}}))},"Xg");
QM2.idomCompat=!0;_.eq(QM2,"yt-sheet-view-model",{props:{data:_.W4}});var r6u=_.oS(function(f){var S=function(){var B;return(B=f.data().enableDebuggingFeatures)!=null?B:!1};
return _.T("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.T(_.dg,{each:function(){var B;return(B=f.data().stickers)!=null?B:[]}},function(B){return _.T(Ya2,{data:function(){return B},
debugMode:S})}))},"Yg"),Ya2=_.oS(function(f){var S=_.lu(f,{debugMode:!1}).debugMode,B=_.cF(function(){var w;
return(w=f.data().region)==null?void 0:w.w},0),G=_.cF(function(){var w;
return(w=f.data().region)==null?void 0:w.h},0),g=_.cF(function(){var w;
return(w=f.data().region)==null?void 0:w.x},0),b=_.cF(function(){var w;
return(w=f.data().region)==null?void 0:w.y},0),z=_.iF(function(){var w=f.data().onTap;
w&&_.MB(w)}),X={};
return _.T("div",{class:_.Pw("ytStoriesStickerLayerViewModelSticker",(X.ytStoriesStickerLayerViewModelDebugMode=S,X)),style:_.Qj({width:function(){return 100*B()+"%"},
height:function(){return 100*G()+"%"},
left:function(){return 100*g()+"%"},
top:function(){return 100*b()+"%"},
"flex-direction":function(){return DzZ(f.data().flexDirection)},
"justify-content":function(){return IK$(f.data().justifyContent)},
"align-items":function(){return Uzz(f.data().alignItems)}}),
"on:click":z},_.T(_.xK,{data:function(){return f.data().button||f.data().toggleButton}},{buttonViewModel:function(w){return _.T(_.I8,{data:w.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(w){return _.T(_.ER,{data:w.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Zg");var Ocn=_.oS(function(f){var S=function(){return f.data()},B={},G=_.cF(function(){return S().backgroundColor},0),g=_.cF(function(){return S().actionButtons},[]),b=_.cF(function(){return S().stickerLayer},{}),z=function(){var w,F;
return{animationRef:B,animationConfig:{autoplay:!1,loop:!1,path:(F=(w=S().foregroundAnimation)==null?void 0:w.url)!=null?F:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){f.navigateToNextItemOnLottieComplete()}}}},X=function(){var w,F,V,J,P,d,Q,x;
return{animationConfig:{autoplay:(d=(w=S().backgroundAnimation)==null?void 0:(F=w.settings)==null?void 0:F.autoplay)!=null?d:!1,loop:(Q=(V=S().backgroundAnimation)==null?void 0:(J=V.settings)==null?void 0:J.loop)!=null?Q:!1,path:(x=(P=S().backgroundAnimation)==null?void 0:P.url)!=null?x:"",name:"stories_item_background_animation"}}};
_.jp(function(){if(f.isVisible()){var w;(w=B.lottieEl)==null||w.play();f.animationRef()&&(f.animationRef().lottieEl=B.lottieEl)}else{var F;(F=B.lottieEl)==null||F.stop()}},"Cbnkwd");
return _.T("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.Qj({"background-color":function(){return _.AK(G())+";"}})},_.T("div",{class:"ytStoriesItemViewModelAssetContent"},_.T(_.v,{cond:function(){return!!S().backgroundAnimation},
then:function(){return _.T(_.vw,{data:X,animationName:function(){return X().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.T(_.v,{cond:function(){return!!S().backgroundImage},
then:function(){return _.T(_.f9,{data:function(){return S().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.T(_.v,{cond:function(){return!!S().foregroundAnimation},
then:function(){return _.T(_.vw,{data:z,animationName:function(){return z().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.T(_.v,{cond:function(){return!!S().foregroundImage},
then:function(){return _.T(_.f9,{data:function(){return S().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.T("div",{class:"ytStoriesItemViewModelTopShadow"}),_.T(_.xK,{data:function(){return b()}},{storiesStickerLayerViewModel:r6u})),_.T("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.Qj({"background-color":function(){return _.AK(G())}})},_.T("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.T(_.dg,{each:g},function(w){return _.T(jMu,{data:function(){return w},
pauseAutoNavigation:f.pauseAutoNavigation})}))))},"$g"),xLY={style:"overlay",
type:"outline"},jMu=_.oS(function(f){var S={};return _.T("div",{class:_.Pw("ytStoriesItemViewModelActionButton",(S.ytStoriesItemViewModelStretchedActionButton=function(){return f.data().size==="STORIES_BUTTON_SIZE_STRETCH"},S)),
"on:click":_.iF(f.pauseAutoNavigation)},_.T(_.xK,{data:function(){return f.data().button}},{buttonViewModel:function(B){return _.T(_.I8,{data:B.data,
buttonOverrides:xLY})}}))},"ah");_.eq(_.oS(function(f){var S=function(){var mx;return(mx=f.data().startIndex)!=null?mx:0},B=_.m(_.$8(S)),G=B.next().value,g=B.next().value;
B=_.m(_.hj(!1,void 0,"O8yPf"));var b=B.next().value,z=B.next().value,X=function(){var mx;return(mx=f.data().storyItems)!=null?mx:[]},w={},F=function(){return f.data().dismissButton},V=function(){var mx;
return _.H((mx=_.H(F(),_.Q5))==null?void 0:mx.onTap,_.Un)},J=_.tE("div"),P,d,Q=!1,x=function(){var mx;
(mx=P)==null||mx.cancel();P=E(G()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});P.onfinish=function(){E(G()).style.width="100%";var zj=_.H(X()[G()],LpM),VN,$Q;zj!=null&&zj.foregroundAnimation&&((zj==null?0:(VN=zj.foregroundAnimation)==null?0:VN.url)||(zj==null?0:($Q=zj.foregroundAnimation)==null?0:$Q.payload))||(G()!==X().length-1?(g(G()+1),x()):V()&&_.pH(V()))}},E=function(mx){return J.value.children[mx].children[0]},U=function(){for(var mx=0;mx<G();mx++)E(mx).style.width=
"100%"};
B=_.iF(function(){Q||(b()?z(!1):(G()===X().length-1&&V()&&_.pH(V()),E(G()).style.width="100%",G()!==X().length-1&&(g(G()+1),x())))});
var A=_.iF(function(){Q||(b()?z(!1):(E(G()).style.width="0%",G()!==0?g(G()-1):g(G()),x()))}),t=function(){z(!0)},M=function(){E(G()).style.width="100%";
G()!==X().length-1?(g(G()+1),x()):V()&&_.pH(V())},a=_.iF(function(){Q=!1;
d=setTimeout(function(){z(!0);Q=!0},300)}),l=_.iF(function(){clearTimeout(d);
Q&&b()&&z(!1)});
_.jp(function(){if(b()){var mx;(mx=P)==null||mx.pause();var zj;(zj=w.lottieEl)==null||zj.pause()}else{var VN;(VN=P)==null||VN.play();var $Q;($Q=w.lottieEl)==null||$Q.play()}},"DIHTEd");
_.jp(function(){U();G()===S()&&x()},"ze5F8b");
_.j9(function(){U();x()});
_.Ov(function(){clearTimeout(d)});
return _.T("yt-stories-viewer-view-model",{class:_.Pw("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.T("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.T("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":A,"on:mousedown":a,"on:mouseup":l,"on:mouseleave":l}),_.T("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":B,"on:mousedown":a,"on:mouseup":l,"on:mouseleave":l})),_.T("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},
_.T(_.xK,{data:X},{storiesItemViewModel:function(mx,zj){var VN=mx.data;return _.T(_.v,{cond:function(){return Math.abs(zj()-G())<=1},
then:function(){var $Q={};return _.T("div",{class:_.Pw("ytStoriesViewerViewModelStoryItem",($Q.ytStoriesViewerViewModelActiveStoryItem=function(){return zj()===G()},$Q))},_.T(Ocn,{data:VN,
pauseAutoNavigation:t,navigateToNextItemOnLottieComplete:M,isVisible:function(){return zj()===G()},
animationRef:w}))}})}})),_.T("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:J},_.T(_.dg,{each:X},function(){return _.T("div",{class:"ytStoriesViewerViewModelProgressBar"},_.T("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.T("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.T(_.xK,{data:F},{buttonViewModel:_.I8})))},"bh"),"yt-stories-viewer-view-model",{props:{data:_.W4}});_.eq(_.oS(function(f){var S=f.data;var B=_.tE("yt-gen-ai-feedback-form-view-model"),G=[];return _.T("yt-gen-ai-feedback-form-view-model",{el:B,class:"ytGenAiFeedbackFormViewModelHost"},_.T(_.oY,{text:function(){return S().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.T("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.T(_.xK,{data:function(){return S().feedbackChips}},{toggleButtonViewModel:function(g){var b=g.data;
return _.T(_.ER,{data:b,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(z){var X=b();X=_.H(X,_.YK);X=_.H(X==null?void 0:X.defaultButtonViewModel,_.Q5).trackingParams;z?G.push(X):(z=G.indexOf(X),z>-1&&G.splice(z,1))}})}})),_.T(_.oY,{text:function(){return S().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.T("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.T(_.xK,{data:function(){return S().submitButton}},{buttonViewModel:function(g){return _.T(_.I8,{data:g.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){CCB(B.value,G,S().uniqueId)}})}}),_.T(_.xK,{data:function(){return S().moreFeedbackButton}},{buttonViewModel:function(g){return _.T(_.I8,{data:g.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"ch"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.W4},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var Cv=function(){return _.I.apply(this,arguments)||this};
_.q(Cv,_.I);Cv.prototype.created=function(){JOu(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(lC2);var f=_.oy().resolve(_.w9M);f&&(f.container=this.ytPopupContainerBehavior);if(f=_.oy().resolve(_.H0))f.container=this.ytPopupContainerBehavior;if(f=_.oy().resolve(_.qj)){var S=this.ytPopupContainerBehavior;f.containerWasInjected?_.Lg(Error("dj")):f.container=S}};
Cv.prototype.ensurePopupBelowPlayer=function(f,S){var B=_.oy().resolve(_.fN(_.o8));if(!B||!B.isOnWatch()||!_.B8())return!1;B=B.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.$G().height>B+this.getPopupHeight(f,S)?(f.style.top="auto",f.style.bottom="0px"):(f.style.top=B+"px",f.style.bottom="auto");return!0};
Cv.prototype.getPopupHeight=function(f,S){S&&(f.cachedPopupHeight=0);if(!f.cachedPopupHeight){S=0;var B=f.clientHeight,G=window.getComputedStyle(f);S+=parseInt(G.marginTop,10);S+=parseInt(G.marginBottom,10);f.cachedPopupHeight=B+S}return f.cachedPopupHeight};
Cv.prototype.getElement=function(f){return document.createElement(f)};
_.N([_.r(iIY.YtPopupContainerBehavior),_.Z("design:type",Object)],Cv.prototype,"ytPopupContainerBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Cv.prototype,"ytComponentBehavior",void 0);_.N([_.C({disableElementRegistration:!0,is:"ytd-popup-container"})],Cv);
_.p(Cv,"ytd-popup-container",function(){if(hJY!==void 0)return hJY;var f=document.createElement("template");_.Y(f,"\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");f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);return hJY=f},{mode:1});var EYZ;var L7X={};L7X.YtLogYpcFlowCommandsBehavior=[_.b3.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(f){_.H(f,c5O)&&(f=_.H(f,c5O))&&(f.serializedTransactionFlowLoggingParams?_.VtA(f.serializedTransactionFlowLoggingParams):f.serializedYpcCancelFlowLoggingParams?(f=f.serializedYpcCancelFlowLoggingParams)&&_.LG("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",f):f.serializedYpcResumeFlowLoggingParams?(f=f.serializedYpcResumeFlowLoggingParams)&&_.LG("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",f):f.serializedYpcPauseFlowLoggingParams?(f=f.serializedYpcPauseFlowLoggingParams)&&
_.LG("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",f):f.serializedYpcRefundFlowLoggingParams?(f=f.serializedYpcRefundFlowLoggingParams)&&gHY("YPC_EVENT_TYPE_START",f):f.serializedYpcDeactivateFlowLoggingParams?(f=f.serializedYpcDeactivateFlowLoggingParams)&&_.LG("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",f):f.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(f=f.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.LG("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",f))},
handleLogYpcFlowDismiss_:function(f){_.H(f,Wpz)&&(f=_.H(f,Wpz),f.serializedTransactionFlowLoggingParams?_.JlT(f.serializedTransactionFlowLoggingParams):f.serializedYpcCancelFlowLoggingParams?(f=f.serializedYpcCancelFlowLoggingParams)&&_.LG("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",f):f.serializedYpcResumeFlowLoggingParams?(f=f.serializedYpcResumeFlowLoggingParams)&&_.LG("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",f):f.serializedYpcPauseFlowLoggingParams?(f=
f.serializedYpcPauseFlowLoggingParams)&&_.LG("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",f):f.serializedYpcRefundFlowLoggingParams&&(f=f.serializedYpcRefundFlowLoggingParams)&&gHY("YPC_EVENT_TYPE_CANCEL",f))}}];var ks2={};ks2.YtCancelRecurrenceBehavior=[_.Nm.YtComponentBehavior,_.Fqj,{attached:function(){var f=this;oeY(this,function(S,B){return f.ypcCancelRecurrenceHandler(S,B)})},
ypcCancelRecurrenceHandler:function(f,S){var B=this;if(!S||!S.ypcCancelRecurrenceEndpoint)return!1;if(!S.ypcCancelRecurrenceEndpoint.params)return _.Dt(Error("wl")),!0;_.We(this.hostElement);var G=_.Zd.instance,g=_.oy().resolve(_.fN(_.st));G&&_.t3(G,S)?_.uF(G,S).then(function(b){B.ypcCancelRecurrenceSuccess_(f,S,{data:b})},function(b){B.ypcCancelRecurrenceFailure_(f,S,b)}).thenCatch(function(){_.Dt(Error("xl"))}):g?g.requestDataForServiceEndpoint(S).then(function(b){B.ypcCancelRecurrenceSuccess_(f,
S,b)},function(b){B.ypcCancelRecurrenceFailure_(f,S,b)}).thenCatch(function(){_.Dt(Error("xl"))}):_.Dt(Error("yl"));
return!0},
ypcCancelRecurrenceSuccess_:function(f,S,B){_.ce(this.hostElement);B.data||(B={data:B});B.data&&B.data.actions&&_.Xh(this.hostElement,B.data.actions,this.hostElement);B.data.messageRenderer?bg2(S.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(S=S.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.LG("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",S);_.ew(f,"yt-service-request-completed",B)},
ypcCancelRecurrenceFailure_:function(f,S,B){_.ce(this.hostElement);bg2(S.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.ew(f,"yt-service-request-error",{error:B,params:[f,S]})}}];var nYo=function(f,S){_.fM.call(this,S)};
_.q(nYo,x12);var sM$={};sM$.YtCompleteTransactionBehavior=[_.Nm.YtComponentBehavior,_.Fqj,{attached:function(){var f=this;oeY(this,function(S,B){return f.ypcCompleteTransactionHandler(S,B)})},
completeTransaction:function(f,S){var B=this;S={payments_payload:window.btoa(S.integratorData),buybucket_params:f.data.buybucketParams,offer_params:f.data.offerParams};var G=_.oy().resolve(_.st),g=f.data.completeTransactionEndpoint,b=this.get("ypcCompleteTransactionEndpoint.actions",g);b&&_.Xh(this.hostElement,b,this.hostElement);return(b=_.Zd.instance)&&_.t3(b,g)?_.uF(b,g,S).then(function(z){return!z||(z==null?0:z.error)?(z=B.get("data.serializedTransactionFlowLoggingParams",f),_.xe(new S$("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
z))):{data:z}}).then(function(z){return B.handleCompleteTransactionSuccess_(z,f)},function(){return B.handleCompleteTransactionFailure_(f)}):G.requestDataForServiceEndpoint(g,S).then(function(z){return B.handleCompleteTransactionSuccess_(z,f)},function(){return B.handleCompleteTransactionFailure_(f)})},
handleCompleteTransactionSuccess_:function(f,S){f.data||(f={data:f});if(f.data.messageRenderer)return _.xe(new nYo(f.data.messageRenderer));if(f.data.trackingParams){var B=_.xc(),G=_.Of();B&&G&&_.Af(B,G,_.Ye(f.data.trackingParams))}S=this.get("data.serializedTransactionFlowLoggingParams",S);e_u(S);return _.wh(f)},
handleCompleteTransactionFailure_:function(f){f=this.get("data.serializedTransactionFlowLoggingParams",f);_.yW("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",f);return _.xe(new S$("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",f))},
ypcCompleteTransactionHandler:function(f,S){var B=this;if(!S.ypcCompleteTransactionEndpoint)return!1;if(!S.ypcCompleteTransactionEndpoint.transactionParams)return _.Dt(Error("zl")),!0;S.ypcCompleteTransactionEndpoint&&S.ypcCompleteTransactionEndpoint.gtmData&&_.xk(S.ypcCompleteTransactionEndpoint.gtmData);var G=_.oy().resolve(_.fN(_.st));if(G){_.We(this.hostElement);var g=_.Zd.instance;g&&_.t3(g,S)?_.uF(g,S).then(function(b){return!b||(b==null?0:b.error)?(b=B.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
S),_.xe(new S$("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",b))):{data:b}}).then(function(b){_.ew(f,"yt-service-request-completed");
B.ypcCompleteTransactionSuccess_(S,b)},function(){return B.ypcCompleteTransactionFailure_(S)}):G.requestDataForServiceEndpoint(S).then(function(b){_.ew(f,"yt-service-request-completed");
B.ypcCompleteTransactionSuccess_(S,b)},function(){return B.ypcCompleteTransactionFailure_(S)})}return!0},
ypcCompleteTransactionSuccess_:function(f,S){_.ce(this.hostElement);S.data||(S={data:S});_.bW(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);S.data.messageRenderer||S.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(f):(_.xk('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",f));S.data.actions&&(f=ThX(S.data.actions),S=FUM(S.data.actions),f.length&&_.RD(this.hostElement,
f),S.length&&_.Xh(this.hostElement,S,this.hostElement))},
ypcCompleteTransactionFailure_:function(f){_.ce(this.hostElement);_.bW(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",f,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(f,S,B){if(S=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",S))S={serializedTransactionFlowLoggingParams:S},B&&(S.errorType=B),_.jD(f,S),_.OU()}}];var DLn={};DLn.YtEndpointHandlerWithYpcBehavior=[_.Fqj,_.b3.YtActionHandlerBehavior,[{openWalletDialog:function(f,S,B,G,g,b,z){var X=this,w=_.aa();S=S.replace(/-/g,"+").replace(/_/g,"/");var F=_.K2().get("hl");_.BkV(_.RQ(_.Wt),S,w.resolve,g,function(V){b&&b();w.reject(V)},F,function(V){return X.onServerBackendAnalyticEvent_(f,B,V)},this.onDialogClose_.bind(this),G,z);
return w.promise},
openFixFlowDialog:function(f,S,B,G){f=f.replace(/-/g,"+").replace(/_/g,"/");_.RQ(_.Wt).openFixFlowDialog(f,S,B,G)},
onDialogClose_:function(){_.bW(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(f,S,B){_.ew(f,"yt-commerce-action-init-done");S&&_.RD(this.hostElement,[S,{backend_analytics:B}])}}],
_.JW.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(f,S){f=this.get("data.nativeFlowEndpoint",S);S=this.get("data.fallbackEndpoint",S);f?_.RD(this.hostElement,[f]):S&&_.ew(this.hostElement,"yt-navigate",{endpoint:S})}}],
ks2.YtCancelRecurrenceBehavior,sM$.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 f=this;oeY(this,function(S,B,G){return f.handleYPCEndpoint(S,B,G)});
this.ypcRegisterActionMapJobId_=_.q6(_.xJ,function(){f.registerActionMap(f.buyFlowActionMap_)})},
detached:function(){var f=this;_.xJ.cancelJob(this.ypcRegisterActionMapJobId_);_.q6(_.xJ,function(){f.unregisterActionMap(f.buyFlowActionMap_)})},
handleYPCEndpoint:function(f,S,B){var G=S.ypcGetCartEndpoint;if(G){_.L2("commerce_transaction");var g=G.gtmId;g&&_.Oj(g);(G=G.gtmData)&&_.xk(G)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",S)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(f,S),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",S)!=null?(this.handleYPCFixInstrumentEndpoint_(f,S),!0):S.ypcPauseSubscriptionCommand?(yRZ(this.hostElement,f,S,B),
!0):S.ypcResumeSubscriptionCommand?(lKe(this.hostElement,f,S),!0):S.getPaymentInstrumentsParamsCommand?(tf2(this.hostElement,f,S),!0):S.ypcHandleTransactionEndpoint?(Mf2(this.hostElement,f,S,B),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(f,S){var B=this;_.kT("ttcr",void 0,"commerce_transaction");S=S.ypcGetCartEndpoint;var G=S.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,g=G.encryptedPurchaseParams,b=G.serializedTransactionFlowLoggingParams,z=G.serializedPaymentsClientParams,X=this.createGetCartResponseFromParams_(G,S.offerParams,b);this.changeButtonState(f,!0);_.jA(this.openWalletDialog(f,g,G.ypcLogWalletAnalyticDataEndpoint,b,function(){B.changeButtonState(f,!1)},function(){B.changeButtonState(f,
!1)},z).then(function(w){return B.handleBuyFlowCompleteCallback_(f,X,w)},function(){return B.handleOnLoadError(X)}).then(function(w){return void B.handlePostPurchaseSuccess_(f,X,w)},function(w){return void B.handlePostPurchaseError_(w)}),function(){B.changeButtonState(f,!1);
f instanceof Element&&_.ew(f,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(f,S,B){var G=f.completeTransactionEndpoint,g=f.handleTransactionEndpoint;S={data:{offerParams:window.btoa(S),serializedTransactionFlowLoggingParams:B}};g?S.data.handleTransactionEndpoint=g:S.data.completeTransactionEndpoint=G;f.onCartDismissCommand&&(S.data.onCartDismissCommand=f.onCartDismissCommand);return S},
onGetCartServiceRequestCompleted_:function(f,S){var B=this,G=f.target;if(S&&S.data&&S.data.messageRenderer)_.ce(this.hostElement),this.handleMessageRenderer_(S.data.messageRenderer),this.changeButtonState(G,!1);else{var g=this.get("data.encryptedPurchaseParams",S),b=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",S),z=this.get("data.ypcLogWalletAnalyticDataEndpoint",S),X=this.get("data.serializedPaymentsClientParams",S),w=this.getLoggingParams_(S);if(w||g||b)f.stopPropagation(),_.kT("ttcr",
void 0,"commerce_transaction"),g||_.ce(this.hostElement),this.changeButtonState(G,!1),b?_.bW(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.nL("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:b}}},this]):g&&(this.changeButtonState(G,!0),f=null,f=this.openWalletDialog(G,g,z,w,function(){_.ce(B.hostElement);B.changeButtonState(G,!1)},function(){_.ce(B.hostElement);
B.changeButtonState(G,!1)},X),_.jA(f.then(function(F){return B.handleBuyFlowCompleteCallback_(G,S,F)},function(){return B.handleOnLoadError(S)}).then(function(F){return B.handlePostPurchaseSuccess_(G,S,F)},function(F){return B.handlePostPurchaseError_(F)}),function(){B.changeButtonState(G,!1);
_.ew(G,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(f,S){S&&S.endpoint&&S.endpoint.ypcGetCartEndpoint&&!S.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",S.endpoint.ypcGetCartEndpoint)&&_.Xh(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",S.endpoint.ypcGetCartEndpoint)],f.target),_.We(this.hostElement),this.changeButtonState(f.target,!0))},
onServiceRequestError_:function(f,S){if(S&&S.params&&S.params.length){S=_.m(S.params);for(var B=S.next();!B.done;B=S.next())if((B=B.value)&&B.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",B.ypcGetCartEndpoint)&&_.Xh(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",B.ypcGetCartEndpoint)],f.target);_.ce(this.hostElement);this.changeButtonState(f.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(f,S,B){var G=B.integratorData;return G==null||G===""||B.error!=null?(G=this.getLoggingParams_(S),String(B.error)==="-1"?(S.data.onCartDismissCommand&&_.Xh(this.hostElement,[S.data.onCartDismissCommand],f),_.xe(new S$("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",G,!0))):_.xe(new S$("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",G))):S.data.handleTransactionEndpoint?ZJ2(this.hostElement,S.data.handleTransactionEndpoint,{payments_payload:G,funds_guarantee_callback_client_data:B.integratorClientCallbackData}):
this.completeTransaction(S,B)},
handlePostPurchaseSuccess_:function(f,S,B){S=B.data;var G=!1,g,b;if(S&&((g=S.command)==null?0:(b=g.commandExecutorCommand)==null?0:b.commands)){var z,X;g=(z=S.command)==null?void 0:(X=z.commandExecutorCommand)==null?void 0:X.commands;for(z=0;z<g.length;z++)if(_.H(g[z],_.lS1)){G=!0;break}}G||(S&&S.gtmDatas&&S.gtmDatas.length?_.xk(S.gtmDatas[0]):_.xk('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));B.data&&B.data.actions&&(S=ThX(B.data.actions),B=FUM(B.data.actions),S.length&&
_.RD(this.hostElement,S),B.length&&_.Xh(this.hostElement,B,f))},
handlePostPurchaseError_:function(f){f&&f.payload&&f.payload.isUserDismiss||_.xH(Error("Bl"))},
handleOnLoadError:function(f){f=this.getLoggingParams_(f);return _.xe(new S$("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",f))},
getLoggingParams_:function(f){return this.get("data.serializedTransactionFlowLoggingParams",f)},
handleMessageRenderer_:function(f){var S=_.E6(f,"renderer"),B=_.nL("openPopupConfig");S==="confirmDialogRenderer"&&B&&_.bW(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:B.popupTypeMap[S],popup:f}},this])},
handleYPCFixInstrumentEndpoint_:function(f,S){var B=this,G=S.ypcFixInstrumentEndpoint;S=G.encryptedFixInstrumentParameters;this.logFixFopEvent_(G,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(f,!0);this.openFixFlowDialog(S,function(g,b){B.onFixFlowCompleteCallback_(G,g,b)},function(){return B.changeButtonState(f,!1)},function(){B.changeButtonState(f,!1);
B.logFixFopEvent_(G,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(f,S,B){var G=_.U6("payments.business.integration.scenario.FixInstrument");if(S==G.IntegratorCallbackType.ON_COMPLETE){S="FIX_FOP_EVENT_TYPE_CANCEL";var g=null;B.error!=null?B.error!=G.OnCompleteCallbackError.USER_CANCELLED&&(_.Xh(this.hostElement,[f.errorAction],this.hostElement),S="FIX_FOP_EVENT_TYPE_FAILURE",g="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.Xh(this.hostElement,[f.successAction],this.hostElement),S="FIX_FOP_EVENT_TYPE_SUCCESS");_.Xh(this.hostElement,[f.onFinishAction],
this.hostElement);this.logFixFopEvent_(f,S,g)}},
logFixFopEvent_:function(f,S,B){(f=f.serializedFixFopLoggingParams)?(S={eventType:S,serializedFixFopLoggingParams:f},B!=null&&(S.errorType=B),_.jD("fixFopFlow",S),_.OU()):_.xH(Error("Cl"))},
changeButtonState:function(f,S){_.K("enable_ypc_spinners")&&f&&(f.is==="yt-button-renderer"||f.is==="ytd-button-renderer")&&(f.disabled=S)}}];var IGu=function(f){this.JSC$28878_clientRoot=f;this.feedbackCollectorActionMap={"yt-help-dialog-requested":oGu,"yt-feedback-dialog-requested":fUn,"yt-signal-action-help":StB,"yt-signal-action-send-feedback":B3z,"yt-send-feedback-action":gGe,"yt-user-feedback-endpoint":e7n};_.N6(_.AE.getInstance(),this.feedbackCollectorActionMap,this.JSC$28878_clientRoot)},UL$;var CgY=function(f){this.JSC$28883_clientRoot=f;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":bn$.bind(null,this.JSC$28883_clientRoot),"yt-signal-action-delete-all-downloads":z72,"yt-signal-action-delete-download":R72,"yt-signal-action-delete-playlist-download":wtn,"yt-signal-action-install-pwa":Ptu,"yt-signal-action-refresh-downloads":Vaz,"yt-offline-video-endpoint":Kd$,"yt-offline-playlist-endpoint":inu,"yt-update-local-app-setting-command":qtn,"yt-offline-orchestration-action-command":Qe2,
"yt-signal-action-undo-delete-download":T3u,"yt-local-watch-history-command":jez};_.N6(_.AE.getInstance(),this.downloadManagerActionMap,this.JSC$28883_clientRoot);_.Ln.instance=new _.Ln},pI$;var pv=function(){var f=_.I.apply(this,arguments)||this;f.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_"};f.remoteApi_=null;return f};
_.q(pv,_.I);_.e=pv.prototype;
_.e.ready=function(){_.K("polymer_enable_mdx")&&(lr$({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.K("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.K("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.K("enable_cast_short_lived_lounge_token")}),_.eD("yt-remote-connection-change",this.handleConnectionChange_,this),_.eD("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=eHu())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.e.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.e.handleConnectionChange_=function(f){(this.mdxConnected=f)?(f=Sj2(),!f&&lTM()&&fu$()&&(f={key:"cast-selector-receiver",name:fu$()}),f=f.name):f=null;this.receiverName=f;_.cd(this.remoteApi_);(this.remoteApi_=eHu())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.e.handleReceiverAvailabilityChange_=function(){var f=ok$();lTM()&&_.wQ("yt-remote-cast-available")&&f.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=f.length>0};
_.e.handleRemoteQueueChange_=function(){var f=this.currentVideoId_,S=this.currentListId_,B=Xm(this.remoteApi_);this.currentVideoId_=B.videoId;this.currentListId_=B.listId;this.currentVideoId_&&_.bW(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.K("polymer_enable_mdx_queue")?this.currentListId_:null,f,S])};
_.e.handleAddToQueueAction_=function(f){f=_.H(f,kez);this.remoteApi_&&(f.videoId?this.remoteApi_.addVideo(f.videoId):f.playlistId&&this.remoteApi_.addPlaylist(f.playlistId))};
_.e.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.e.handleInsertInQueueAction_=function(f){f=_.H(f,nmu);this.remoteApi_&&f.videoId&&this.remoteApi_.JSC$17632_insertVideo(f.videoId)};
_.e.handleRemoveFromQueueAction_=function(f){f=_.H(f,sVO);this.remoteApi_&&f.videoId&&this.remoteApi_.JSC$17632_removeVideo(f.videoId)};
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],pv.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n(),_.Z("design:type",Object)],pv.prototype,"appId",void 0);_.N([_.n(),_.Z("design:type",Boolean)],pv.prototype,"mdxConnected",void 0);_.N([_.n(),_.Z("design:type",Boolean)],pv.prototype,"receiverAvailable",void 0);_.N([_.n(),_.Z("design:type",Object)],pv.prototype,"receiverName",void 0);_.N([_.n(),_.Z("design:type",Object)],pv.prototype,"currentVideoId_",void 0);
_.N([_.n(),_.Z("design:type",Object)],pv.prototype,"currentListId_",void 0);_.N([_.nP({is:"yt-mdx-manager",disableElementRegistration:!0})],pv);_.p(pv,"yt-mdx-manager",void 0,{mode:2});var A6M;var NSB;var A8=function(){var f=_.I.apply(this,arguments)||this;f.APP_IDS={ytr:3,ytm:5};f.JSC$18874_timeoutId_=0;f.actionMap={"yt-open-create-family-dialog":"open"};return f};
_.q(A8,_.I);_.e=A8.prototype;_.e.created=function(){JOu(2200)};
_.e.detached=function(){this.observer_&&this.observer_.disconnect()};
_.e.open=function(f,S){var B=this,G=f.serializedYpcFamilyCreateLoggingParams;this.JSC$18874_timeoutId_=setTimeout(this.abort_.bind(this,f.postFlowErrorEndpoint,G),3E4);S&&(this.onReadyCallback_=S);var g=_.m9(this.hostElement).querySelector("#unicorn-iframe");G&&G&&GMY("ypcFamilyCreateFlowStarted",G);_.miN("family_creation",function(){var b=_.U6("gapi.family_creation.render");_.U6("gapi.config.update")("iframes/family_creation/url",B.getFamilyCreationUrlWithUnicornParams_());var z=3;f.appId&&f.appId in
B.APP_IDS&&(z=B.APP_IDS[f.appId]);z={authUser:_.nL("SESSION_INDEX")||0,clientId:z,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.nL("HL"),initialflow:[4,5,6,7],m:B.isMobile?1:0,onFlowComplete:B.onUnicornFlowComplete_.bind(B,f.postFlowSuccessEndpoint,G),onError:B.onUnicornFlowError_.bind(B,f.postFlowErrorEndpoint,G),onReady:B.onUnicornFlowReady_.bind(B,f.referencePcidParams)};b(g,z)})};
_.e.close=function(){_.m9(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.e.onUnicornFlowComplete_=function(f,S){this.close();S&&S&&GMY("ypcFamilyCreateFlowSucceeded",S);_.ew(this.hostElement,"yt-navigate",{endpoint:f})};
_.e.onUnicornFlowError_=function(f,S){this.close();S&&GMY("ypcFamilyCreateFlowCancelled",S);_.ew(this.hostElement,"yt-navigate",{endpoint:f})};
_.e.onUnicornFlowReady_=function(f){var S=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();f&&_.U6("gapi.family_creation.setConfig")(0,f);this.observer_=new MutationObserver(function(){_.m9(S.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.m9(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.m9(this.hostElement).querySelector("#dialog").open()};
_.e.getFamilyCreationUrlWithUnicornParams_=function(){return _.nL("YTR_FAMILY_CREATION_URL")};
_.e.getCurrentUrl_=function(){return document.location.href};
_.e.abort_=function(f,S){this.clearTimeout_();this.onUnicornFlowError_(f,S)};
_.e.clearTimeout_=function(){clearTimeout(this.JSC$18874_timeoutId_)};
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],A8.prototype,"ytActionHandlerBehavior",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],A8.prototype,"isMobile",void 0);_.N([_.n(),_.Z("design:type",Object)],A8.prototype,"onReadyCallback_",void 0);_.N([_.n(),_.Z("design:type",Object)],A8.prototype,"observer_",void 0);_.N([_.nP({is:"yt-create-family-dialog",disableElementRegistration:!0})],A8);
_.p(A8,"yt-create-family-dialog",function(){if(NSB===void 0){var f=document.createElement("template");_.Y(f,'\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');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);var S=f.content,B=S.insertBefore;A6M===void 0&&(A6M=document.createElement("template"));var G=A6M;B.call(S,G.content.cloneNode(!0),f.content.firstChild);NSB=f}f=NSB;return f},{mode:2});var M62;var Zce;var Ne=function(){var f=_.I.apply(this,arguments)||this;f.STEP=1;f.BLOCK_ON=80;f.MIN_PROGESS=0;f.MAX_PROGESS=100;return f};
_.q(Ne,_.I);_.e=Ne.prototype;_.e.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.e.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));_.oy().addProvider({provide:nke,useValue:this})};
_.e.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.e.finish=function(){var f=this;this.progress=this.MAX_PROGESS;OnY(function(){f.progress==f.MAX_PROGESS&&(f.hostElement.hidden=!0)})};
_.e.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.y3.Object.defineProperties(Ne.prototype,{progress:{configurable:!0,enumerable:!0,set:function(f){this.progress_=f;var S="scaleX("+f/this.MAX_PROGESS+")",B=_.m9(this.hostElement).querySelector("#progress").style;B.transform=S;B.webkitTransform=S;this.hostElement.setAttribute("aria-valuenow",String(f))},
get:function(){return this.progress_}}});
_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Ne.prototype,"ytComponentBehavior",void 0);_.N([_.nP({is:"yt-page-navigation-progress",disableElementRegistration:!0})],Ne);
_.p(Ne,"yt-page-navigation-progress",function(){if(Zce===void 0){var f=document.createElement("template");_.Y(f,'\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');f.content.insertBefore(_.W().content.cloneNode(!0),
f.content.firstChild);var S=f.content,B=S.insertBefore;M62===void 0&&(M62=document.createElement("template"));var G=M62;B.call(S,G.content.cloneNode(!0),f.content.firstChild);Zce=f}f=Zce;return f},{mode:2});_.eq(_.oS(function(f){return _.T("yt-tooltip",{class:_.Pw("ytTooltipContainerHost",f.className)},f.data)},"dh"),"yt-tooltip");var t6o={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"},u4n={"font-size":"12px","font-style":"italic"},aGZ={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.kFu=function(){return _.R(function(f){_.TT(f)})};var y6O=_.oS(function(f){var S=function(){return f.data().subtext},B={};
return _.T("snackbar-view-model",{class:_.Pw("snackbarViewModelHost",f.className)},_.T("div",{class:_.Pw("snackbarViewModelEngagementBarWrapper",f.className)},_.T(_.v,{cond:function(){return f.data().image},
then:function(G){return _.T(_.f9,{data:G,alt:"",targetHeight:48,targetWidth:86,preserveHeight:!0,preserveWidth:!0,className:"snackbarViewModelImageContainer"})}}),_.T(_.v,{cond:function(){return f.data().imageContent},
then:function(){return _.T("div",{class:"snackbarViewModelAvatarContainer"},_.T(_.xK,{data:function(){return f.data().imageContent}},{decoratedAvatarViewModel:_.rn}))}}),_.T("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.T("div",{class:_.Pw((B.snackbarViewModelTitle=!0,B.snackbarViewModelTitleWithSubtext=S,B))},_.T(_.oY,{text:function(){return f.data().text}})),_.T(_.v,{cond:S,
then:function(){return _.T("div",{class:"snackbarViewModelSubtext"},_.T(_.oY,{text:function(){return S()}}))}})),_.T(_.v,{cond:function(){return f.data().buttons},
then:function(){return _.T("div",{class:"snackbarViewModelButtonClassWrapper"},_.T(_.xK,{data:function(){return f.data().buttons}},{buttonViewModel:function(G){return _.T(_.I8,{data:G.data,
buttonOverrides:function(){return{style:"mono-inverse"}}})}}))}})))},"eh");_.eq(_.oS(function(){function f(Q,x){d(Q);J("in");F(!0);b=setTimeout(function(){S()},x)}
function S(Q){J("out");Q&&clearTimeout(b)}
function B(){S(!0)}
function G(Q){if(Q){var x=Q.snackbarViewModel,E=Q.durationMs;E||(E=3E3);x&&(Q=_.oy().resolve(_.fN(_.m2)))&&Q.enqueue({isOpened:w,open:function(){f(x,E)},
close:S},0)}}
var g=_.tE("snackbar-container"),b=void 0,z=_.m(_.hj(!1,void 0,"mDc5N")),X=z.next().value;z=z.next().value;var w=X,F=z;X=_.m(_.hj("out",void 0,"FpOs5e"));var V=X.next().value,J=X.next().value;X=_.m(_.hj(void 0,void 0,"jIDRob"));var P=X.next().value,d=X.next().value;X=_.iF(function(){if(V()==="out"){F(!1);d(void 0);var Q=_.oy().resolve(_.fN(_.m2));Q&&OHu(Q,0)}});
_.j9(function(){var Q=_.oy().resolve(_.fN(_.DON));Q&&(Q.showSnackbarFn=G,Q.closeSnackbarFn=B)});
z={};return _.T("snackbar-container",{class:_.Pw("ytSnackbarContainerHost",(z.ytSnackbarContainerOpened=function(){return w()&&V()==="in"},z.ytSnackbarContainerClosed=function(){return w()&&V()==="out"},z)),
el:g,"on:animationend":X},_.T(_.v,{cond:function(){return w()&&!!P()},
then:function(){return _.T(y6O,{data:function(){return P()}})}}))},"fh"),"snackbar-container");_.eq(_.oS(function(){var f=_.Uo(_.QG9);return _.T("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var S;return(S=f())==null?void 0:S.announcement})},"gh"),"yt-ephemeral-actions");var lUe=new Map;var DHY=function(f,S){var B=this;this.handleError=f;this.logEventInternal=S;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){B.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
DHY.prototype.logError=function(f){this.handleError(f)};
DHY.prototype.logEvent=function(f,S){switch(f){case "IDB_DATA_CORRUPTED":_.K("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",S);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",S);break;case "IS_SUPPORTED_COMPLETED":_.K("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",S);break;case "QUOTA_EXCEEDED":W72(this,S);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",S);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":f=Object.assign({},S,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",f)}};
var W72=function(f,S){_.VA.getInstance().estimate().then(function(B){B=Object.assign({},S,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:obz(B==null?void 0:B.usage),deviceStorageQuotaMbytes:obz(B==null?void 0:B.quota)});f.logEventInternal("idbQuotaExceeded",B)})};var Me=function(){var f=_.I.apply(this,arguments)||this;f.tabGesturesIsActive=!1;f.deprecateFullerscreenUi=_.K("web_watch_fullerscreen_deprecation_ui");f.hasDelegation=!1;f.darkerDarkTheme=_.K("web_darker_dark_theme");f.isFrostedGlassInitialized=!1;f.frostedGlassExp=_.K("web_frosted_glass");f.mastheadHiddenFocusWithinKillswitch=_.K("web_masthead_hidden_focus_within_killswitch");f.ephemeralActionsEnabled=_.K("web_ephemeral_actions");f.clientOnlyWizTooltipsEnabled=_.K("enable_client_only_wiz_tooltips");
f.scrollAtTop=!0;f.guideScrollTop=0;f.isTheaterModeSession=_.s6("START_IN_THEATER_MODE");f.iMaxTheaterMode=_.K("web_watch_imax_theater_mode");f.isFullWindowSession=_.s6("START_IN_FULL_WINDOW_MODE");f.hasCreateFamilyDialog=!1;f.mastheadHeight=56;f.networkStatusManager=new _.N7;f.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"};f.dynamicActionMap={"yt-run-attestation-command":function(S){var B=_.Adm.instance,G=_.H(S,_.VON);return G?_.K("use_rta_manager_for_async")&&
iNz()?bHX(B,G,S.clickTrackingParams):e5o(B,G,S.clickTrackingParams):_.xe(Error("mi"))}};
f.isFrostedGlassDisabled=!1;f.isChannelOrPlaylistPage=!1;return f};
_.q(Me,_.I);_.e=Me.prototype;_.e.created=function(){var f=_.oy();_.K("kevlar_clear_duplicate_pref_cookie")&&_.q6(_.xJ,function(){var S=_.VP.get("PREF");S&&!/f\d=/.test(S)&&(S=_.gO("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=S?"PREF=null;domain="+S+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.K("gzip_gel_with_worker")&&_.HJ9();_.K("jspb_serialize_with_worker")&&ulo();_.K("web_worker_availability_check")&&fen();_.K("nwl_init_killswitch")||ZN2().then(function(){_.xJ.addLowPriorityJob(eLu)});
this.pageManagerAttachedPromise=_.aa();this.ytdAppBehavior.loadDepsPromise=_.rX([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.S3(this.onThrottledScroll,200,this);_.K("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);Izn();jaZ=!!_.U6("ytappsettings.initialized");XQ=_.U6("ytappsettings.previousValue");d7z=_.U6("ytappsettings.previousSnapshotTime");jaZ||(jaZ=!0,iOZ());wKM();hLO();_.k5("DEFERRED_DETACH",
_.K("kevlar_tuner_should_defer_detach"));_.k5("REUSE_COMPONENTS",!0);_.k5("STAMPER_STABLE_LIST",!0);_.k5("SCHEDULED_LAZY_LIST",!0);_.k5("openPopupConfig",ci2);_.k5("useClickHandler",!0);_.K("kevlar_shell_cleanup")&&_.xJ.addLowPriorityJob(jJO.bind(this,_.S1.caches));_.s6("IS_SHELL_LOAD")&&_.EL({shellStartupDurationMs:Math.round((0,_.fO)()-_.Qp())});IUu(this.networkStatusManager);_.K("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",xou(t6o)),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!",
xou(u4n)),console.log("%cVisit http://go/join-youtube-web to apply today.",xou(aGZ)));_.jKZ(f.resolve(_.wV),1E3)};
_.e.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var f=GV2();f&&!_.K("external_fullscreen_killswitch")&&document.addEventListener(f,this.setFullscreen.bind(this));(f=window.matchMedia("(prefers-color-scheme: dark)"))&&f.addEventListener&&f.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.e.attached=function(){var f=this;_.UX().processSignal("ci");_.K("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.xOs?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.PY(_.rq9(),"SUCCESS");this.updateIconSet();_.GZ(this.guideInnerContent,!1);_.Qh().initVisibilityObserver();this.guideService.guideElement=this.guide;var S=document.createElement("ytd-miniplayer"),B=_.m9(this.hostElement).querySelector("#content");
_.m9(this.hostElement).insertBefore(S,B);_.UX().processSignal("ma");_.oy().resolve(_.N_).init(S);_.s6("IS_SHELL_LOAD")&&(B=document.createElement("ytd-network-status-banner"),_.m9(this.hostElement).insertBefore(B,S));_.K("kevlar_right_click_on_lockups")&&_.Z6._onCaptureClick&&document.addEventListener("contextmenu",_.Z6._onCaptureClick.bind(_.Z6),!0);var G=function(){var g=_.Bl("yt-page-navigation-progress");_.m9(f.hostElement).appendChild(g)};
setTimeout(function(){_.UX().parkOrScheduleJob(G,0,"eocs",16)},0);
_.K("service_worker_push_enabled")&&_.q6(_.xJ,BCZ);_.N6(_.AE.getInstance(),this.dynamicActionMap,this.hostElement);_.ew(this.hostElement,"ytd-app-attached");_.UX().processSignal("aa");KNY(this.hostElement);_.WL("gapi.load",_.miN);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.q6(_.xJ,
function(){var g=document.createElement("ytd-video-preview");_.m9(_.m9(f.hostElement).querySelector("#video-preview")).appendChild(g)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.q6(_.xJ,function(){nGu();f.registerViewTransitionTasks()});
if(_.Et()&&this.isAppDarkTheme()!==_.Ot())this.onDarkModeToggledAction();else S=_.xG()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==S&&(_.K("enable_dark_theme_only_on_shorts")?_.tK(_.K("enable_dark_theme_only_on_shorts_control")?window.location.href:_.Zt(window.location.href,{theme:"dark"})):_.Lg(new _.dO("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(S0u=new oN2(this.hostElement)),pI$=new CgY(this.hostElement),UL$=new IGu(this.hostElement),df$=new K$M(this.hostElement)};
_.e.getThemeSettingsToLog=function(){var f=_.xG()==="USER_INTERFACE_THEME_DARK";f=_.Et()?_.Ot()?"os-dark":"os-light":f?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:f,cookiesEnabled:_.PL()}};
_.e.detached=function(){_.gh(this.guideInnerContent);_.xJ.cancelJob(me);me=0;_.xJ.cancelJob(Rn);Rn=0;_.seN(vJo);vJo.length=0;VC$=_.yiM=null;_.Qh().dispose();_.K("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.M6(_.AE.getInstance(),S0u.playlistHandlerActionMap,S0u.JSC$28577_clientRoot);_.M6(_.AE.getInstance(),pI$.downloadManagerActionMap,pI$.JSC$28883_clientRoot);_.M6(_.AE.getInstance(),UL$.feedbackCollectorActionMap,UL$.JSC$28878_clientRoot);
for(var f=_.m(df$.eventListeners),S=f.next();!S.done;S=f.next()){var B=_.m(S.value);S=B.next().value;B=B.next().value;B=_.m(B);for(var G=B.next();!G.done;G=B.next()){var g=_.m(G.value);G=g.next().value;g=g.next().value;S.removeEventListener(G,g)}}_.M6(_.AE.getInstance(),df$.autonavPauseActionMap,df$.JSC$17817_clientRoot)};
_.e.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.K2().getFlag(186)};
_.e.computeIsInlinePreviewEnabled=function(f,S,B){return!B&&_.$RX({miniplayerIsActive:f,miniplayerPlaybackState:S})};
_.e.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.ef({type:"SET_FROSTED_GLASS_MODE",payload:!_.K("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"}))};
_.e.computeIsFrostedGlassDisabled=function(f,S,B,G){return f||S||B||G&&_.K("web_frosted_glass_disable_watch")};
_.e.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.K("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.e.computeIsHomePage=function(f,S){if(!f||S==null||!S.endpoint)return!1;var B;return((B=_.H(S.endpoint,_.d3))==null?void 0:B.browseId)==="FEwhat_to_watch"};
_.e.updateIsChannelOrPlaylistPage=function(){if(_.K("web_frosted_glass")){var f,S,B=(S=(f=_.oy().resolve(_.fN(_.o8)))==null?void 0:f.getCurrentPage())==null?void 0:S.pageSubtype;this.isChannelOrPlaylistPage=B?["channel","channels","playlist"].includes(B):!1}};
_.e.scheduleFrostedGlassInitialization=function(){var f=this;_.K("web_frosted_glass")&&_.UX().parkOrScheduleJob(function(){f.isFrostedGlassInitialized=!0},0,_.ky(["eocs",
"cr"]),300)};
_.e.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.aVj(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.ef({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.ef({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.e.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(Kye(!0))};
_.e.onYtSignalActionRequestPersistentStorage=function(){if(!_.K("request_persistent_storage_killswitch")){var f=_.oy().resolve(_.QTu);f.cachedPersistStatePromise||(f.cachedPersistStatePromise=UBn())}};
_.e.handleYtChannelCreationFormEndpoints=function(f){f&&this.ytComponentBehavior.resolveCommand(f)};
_.e.handleShowEngagementPanelEndpoint=function(f){f&&this.ytComponentBehavior.resolveCommand(f)};
_.e.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(Kye(!1))};
_.e.initIconDefs=function(f,S){var B=document.createElement("iron-iconset-svg");B.name=f;f=document.createElementNS("http://www.w3.org/2000/svg","svg");B.appendChild(f);f.appendChild(S);document.body.appendChild(B);return B};
_.e.onWindowResized=function(){_.bW(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var f=_.eEN.getInstance();f.documentWidth_=document.body.clientWidth;L9z(f)};
_.e.onWindowScrolled=function(){var f=_.oy().resolve(_.o8).getCurrentPage();if(f!=null&&f.getScrollTop){var S=this.ytdReduxBehavior,B=S.dispatch;f=f.getScrollTop()<=0;B.call(S,_.ef({type:"SET_SCROLL_AT_TOP",payload:f}))}};
_.e.guideIsVisibleButNotPersistentSelectorChanged=function(){var f=_.oy().resolve(_.o8).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=f.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"),
f.setScrollTop(this.guideScrollTop));_.mU(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.e.getCurrentPageScrollableElementType=function(){var f=_.oy().resolve(_.o8).getCurrentPage();if(f&&f.getPageScrollingElement())return f.getPageScrollingElement().nodeName};
_.e.observeGuideVisibility=function(){var f=_.eEN.getInstance(),S=this.miniGuideVisible;f.guidePersistentAndVisible_=this.guidePersistentAndVisible;f.miniGuideVisible_=S;L9z(f)};
_.e.handleEduDismissAction=function(f){f&&f.eduDismissAction&&(_.bW(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.oai.getInstance(),_.lO.set(f.eduDismissAction.key+"-dismissed",!0))};
_.e.handleEduImpressionAction=function(f){if(f&&f.eduImpressionAction){var S=_.oai.getInstance();f=f.eduImpressionAction.key;S.JSC$10964_eduDisplayedThisLoad_[_.fym[f].setKey||f]=!0;_.lO.set(f+"-impression",parseInt(_.lO.get(f+"-impression")||0,10)+1)}};
_.e.onYtSignalActionConfirmMentionsEdu=function(){_.bW(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.Sj.getInstance();_.ov.set("edu-dismissed",!0)};
_.e.onYtSignalActionRecordMentionsEduImpression=function(){_.Sj.getInstance();var f=_.ov.set,S=parseInt(_.ov.get("edu-impressions"),10);f.call(_.ov,"edu-impressions",(isFinite(S)?S:0)+1)};
_.e.onYtPageManagerAttached=function(f){var S;((S=_.lt(f))==null?void 0:S.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.e.onInvokeInstrumentManagerAction=function(f,S){gb2(S,f)};
_.e.updateIconSet=function(){var f=this.hostElement.querySelector("#masthead");if(f){var S=_.zY(f),B=S.querySelector("g#yt-logo-updated");B&&(f=document.createElementNS("http://www.w3.org/2000/svg","defs"),f.appendChild(B.cloneNode(!0)),(S=S.querySelector("g#yt-logo-red-updated"))&&f.appendChild(S.cloneNode(!0)),this.initIconDefs("yt-logos-ext",f))}};
_.e.updateMastheadData=function(){var f=this,S,B,G,g,b;return _.R(function(z){if(z.nextAddress==1){S=f.data;B=f.hostElement.querySelector("#masthead");if(!B)return z.return();_.ui(f,function(){B.data=f.topbarData});
if(!f.get("response.topbar",S)||f.get("response.topbar.responseContext.maxAgeSeconds",S)===0)return z.jumpTo(0);if(G=_.oy().resolve(_.M8))return _.h(z,G(),6);g=_.oy().resolve(_.eG);return _.h(z,g.put("service:topbar:fallback",new _.br({innertubeResponse:f.get("response.topbar",S)})),0)}return(b=z.yieldResult)?_.h(z,b.put("service:topbar:fallback",new _.br({innertubeResponse:f.get("response.topbar",S)})),0):z.jumpTo(0)})};
_.e.computeTopbarData=function(f){if(!f)return null;var S;return this.isShortsPage&&this.topbarData&&!_.H((S=f.response)==null?void 0:S.topbar,dx2)?this.topbarData:f.response&&"topbar"in f.response?_.H(f.response.topbar,dx2)||null:null};
_.e.onSetTheaterModeEnabled=function(f,S){this.isTheaterModeSession=S.enabled;this.setTheaterModeStyles(S.enabled)};
_.e.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.e.onDarkModeToggledAction=function(){var f=_.Xl(window.location.href);if(!_.bVA(f)){(f=!!_.Mp(window.location.href).themeRefresh)&&_.Lg(new _.dO("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!f){iOZ();f={themeRefresh:1};var S=_.oy().resolve(_.o8);if(S.isOnWatch()){var B,G;S=((B=S.getPlayerFromWatch())==null?void 0:(G=B.getPlayer())==null?void 0:G.getCurrentTime())||0;S>=1&&(f.time_continue=Math.floor(S))}_.PL()||_.xG()!=="USER_INTERFACE_THEME_DARK"||(f.theme="dark");_.tK(_.Zt(window.location.href,
f))}_.K("web_appshell_refresh_trigger")&&_.S1.caches&&this.refreshAppShellResponse();B=_.Ck(window.location.href);_.R_(_.oy().resolve(_.XS),_.cZ(B,"theme"))}};
_.e.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.e.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.e.onPlayerFullscreen=function(f){_.Sw();this.playerFullscreen=f};
_.e.setRestrictedMode=function(f){var S=_.K2();_.dh(0,58,f);S.save();_.oy().resolve(_.$k).reload()};
_.e.onPageChanged=function(f){f.detail.newPageType==="ytd-watch-flexy"||f.detail.newPageType==="ytd-watch-fixie"||f.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.nz("WEB_PAGE_TYPE_WATCH")):f.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.nz("WEB_PAGE_TYPE_SHORTS")):f.detail.newPageType==="ytd-browse"&&f.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.nz("WEB_PAGE_TYPE_MINI_APP")):_.K("web_frosted_glass")&&f.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.nz("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.nz("WEB_PAGE_TYPE_UNKNOWN"));f.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.e.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.e.onGuideToggleTap=function(){_.ew(this.hostElement,"yt-guide-toggle")};
_.e.onGuideToggleHover=function(){_.ew(this.hostElement,"yt-guide-hover")};
_.e.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.e.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.e.setMastheadTheme=function(){var f=_.zY(this.hostElement).querySelector("#masthead");f&&(f.dark=f.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),f.isDarkThemeForced=!1)};
_.e.onRequestPanelModeChange=function(f,S){this.hideHeaderShadow=S.mode!=="seamed"};
_.e.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.e.onDrawerIronSelect=function(f){_.lt(f).id==="guide"&&this.processDrawerIronSelect()};
_.e.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var f="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(f="opened"));_.ew(this.hostElement,"yt-autonav-pause-guide-"+f)};
_.e.onAddElementToApp=function(f){_.m9(this.hostElement).appendChild(f.detail)};
_.e.onThrottledScroll=function(){var f=_.oy().resolve(_.o8).getCurrentPage();f&&(this.scrollAtTop=f.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.e.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.e.setFullscreen=function(){if(_.K("external_fullscreen")||!this.isWatchPage){var f=_.K("kevlar_fullerscreen_root_only_killswitch")?!!_.Sw():!!_.Sw()&&_.Sw()===document.documentElement;f=(this.isWatchPage||_.K("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(f||this.isFullWindowSession);this.fullscreen!==f&&((this.fullscreen=f)&&_.mU(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.W2().dispatch(_.Paz(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.bW(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.e.setFullscreenLoggingForShorts=function(f){var S,B,G;return _.R(function(g){if(g.nextAddress==1)return _.h(g,(S=_.B8())==null?void 0:S.getPlayerPromise(),2);B=g.yieldResult;(G=B)==null||G.setAppFullscreen(f);_.TT(g)})};
_.e.updateMastheadCssHeight=function(){var f=this.mastheadHeight;this.fullscreen&&(f=0);_.hO(this.hostElement,{"--ytd-masthead-height":f+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.e.updateNetworkStatusBannerDisplayStatus=function(){var f="unset";this.fullscreen&&(f="none");_.hO(this.hostElement,{"--ytd-network-status-banner-display":f})};
_.e.updateNetworkStatusBannerCssHeight=function(){var f="unset";this.fullscreen&&(f="0px");_.hO(this.hostElement,{"--ytd-network-status-banner-max-height":f})};
_.e.updateScrollAndMasthead=function(f,S,B,G){this.iMaxTheaterMode||(G=!1);var g=_.oy().resolve(_.o8).getCurrentPage();f||S||G?(document.body.classList.add("no-scroll"),g.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.Fc(this,this.onScroll)),g.setScrollTop(0),_.hO(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.xy()+"px"})):B?_.ew(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.ew(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
g.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.Fc(this,this.onScroll)));this.mastheadHidden=f||S||B;this.updateMastheadCssHeight();_.K("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.e.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.e.onYtNavigateAction=function(f){f=this.get("navigateAction.endpoint",f);_.ew(this.hostElement,"yt-navigate",{endpoint:f})};
_.e.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var f=document.createElement("yt-create-family-dialog");_.m9(this.hostElement).appendChild(f);this.hasCreateFamilyDialog=!0}};
_.e.onSetPushNotificationsEnabledCommand=function(f){var S=this,B=_.H(f,KpX);B&&typeof B.enabled==="boolean"&&(Notification.permission!=="granted"?cyO().then(function(){Notification.permission==="granted"?(sJu(!B.enabled).then(U7u),B.successAction&&_.RD(S.hostElement,[B.successAction])):B.failureAction&&_.RD(S.hostElement,[B.failureAction])}):(sJu(!B.enabled).then(U7u),B.successAction&&_.RD(this.hostElement,[B.successAction])))};
_.e.onYtSignalActionEnableChromeNotifications=function(){lXe(!0)};
_.e.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.H(this.topbarData.hotkeyDialog,qdo)}}})};
_.e.onYtSignalActionShowKeyboardShortcutDialog=function(){_.bW(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.e.onYtEndpointChangeHandler=function(f,S){var B=_.RQ(_.qm);B.pendingPrefetchJob_&&(S=!(!S||S.autonav!="1"),B.pendingPrefetchJob_.resolve(f&&_.WQN(f)?_.ci1(f,S):""),B.pendingPrefetchJob_=null);_.bW(this.hostElement,"yt-pause-active-page-context");_.bW(this.hostElement,"ytd-log-youthere-nav");_.bW(this.hostElement,"yt-prepare-page-dispose")};
_.e.handleCommandWithCommandHandler=function(f,S){_.JZ.instance.resolveCommand(f,{form:{element:S}})};
_.e.onYtTimedCommand=function(f){var S=this;f=_.H(f,z6u);var B=f.command;B&&_.OR(_.xJ,function(){var G=_.H(B,_.is7);G?(_.JZ.instance.resolveCommand(B),S.maybeLogGetAnswerRequestTick(G)):_.Xh(S.hostElement,[B],S.hostElement)},f.timeoutMs||0)};
_.e.maybeLogGetAnswerRequestTick=function(f){f&&f.isFirstRequest&&(_.L2("search_overview_answer"),_.kT("so_rq",void 0,"search_overview_answer"))};
_.e.onYtSignalActionSkipNavigation=function(){var f=_.oy().resolve(_.o8).getCurrentPage();_.uP(f)};
_.e.onYtSignalActionCopyDebugData=function(){wD2()};
_.e.handleEntityUpdateCommand=function(f){_.JR(_.H(f,_.$FX).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.e.logFlowLoggingEventCommand=function(f){if(f=_.H(f,_.IJ1))if(f.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var S=f.flowEventNamespace,B=f.flowEventType,G=f.flowType;G&&S&&B&&_.NQs(_.hK(S,B,f.flowEventMetadata),G)}else{S=_.F2();B=f.flowEventNamespace;G=f.flowEventType;var g=f.flowType;g&&B&&G&&_.TF(S,_.hK(B,G,f.flowEventMetadata),g,f.flowNonce)}};
_.e.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.e.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.e.onTouchStart=function(){var f=_.Yk();_.xc()&&_.M1(f.JSC$11191_screenManager,{visualElement:f.ve})};
_.e.handleSelectLanguageCommand=function(f){if(f=_.H(f,J5n).hl){var S=_.K2();S.set("hl",f);S.save();_.oy().resolve(_.$k).reload()}};
_.e.handleConfirmDialogEndpoint=function(f){(f=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(f))&&this.ytOpenPopupBehavior.openPopup(f)};
_.e.handleOpenPopupNavigationEndpoints=function(f,S){_.K("web_button_rework")&&(f=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(f))&&this.ytOpenPopupBehavior.openPopup(f,S)};
_.e.handleSaveCommandToSessionStorage=function(f){if(f=_.H(f,_.iz6)){var S=f.key;S&&f.command&&window.sessionStorage.setItem(S,JSON.stringify(f.command))}};
_.e.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(f){f&&f.active&&f.active.postMessage({type:"refresh_shell"})}).catch(function(f){f.name!=="SecurityError"&&_.xH(f)})};
_.e.onDeviceThemeChanged=function(){var f=_.Ot();_.dh(_.K2(),185,f);_.K2().save()};
_.e.handleYtRegisterPromoCommand=function(f){if(_.H(f,vmX)){var S=_.oy().resolve(_.o8).getCurrentPage()||this.hostElement;jvB().registerPromoCommand(_.H(f,vmX),S)}};
_.e.onYtNavigateHomeAction=function(){if(!_.K("kevlar_miniplayer_navigate_home_from_app_killswitch")){var f,S,B,G,g=(G=(f=this.topbarData)==null?void 0:(S=f.logo)==null?void 0:(B=S.topbarLogoRenderer)==null?void 0:B.endpoint)!=null?G:_.vn;this.ytComponentBehavior.resolveCommand(g)}};
_.e.onYtLocationCollectionCommand=function(f){Ldz(_.H(f,Emz))};
_.e.onYtGetLocationCommand=function(f){vTO(_.H(f,xxM),this)};
_.e.updateRenderGuideFromBinding=function(f){this.renderGuide=f.detail.value};
_.e.updateGuidePersistentAndVisibleFromBinding=function(f){this.guidePersistentAndVisible=f.detail.value};
_.e.updateMiniGuideVisibleFromBinding=function(f){this.miniGuideVisible=f.detail.value};
_.e.onThemeSelected=function(f,S){var B=_.K2(),G=f||S?f:_.Ot(),g=(G&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!G&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.bVA(_.Xl(window.location.href));_.dh(0,165,f);_.dh(0,174,S);B.save();g&&_.bW(this.hostElement,"yt-dark-mode-toggled-action",[G]);_.bW(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.e.getCurrentTheme=function(){return _.Et()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.xG()};
_.e.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.e.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.e.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.e.handleShowConsentPrimitive=function(f){var S=this,B,G;return _.R(function(g){if(g.nextAddress==1){try{B=(G=_.B8())==null?void 0:G.getPlayerPromise()}catch(b){}return _.h(g,cKB(f,B),2)}_.bW(S.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.TT(g)})};
_.e.handleSelectActiveIdentityEndpointInternal=function(f){_.Mo();f=_.H(f,_.pu$);if(f!=null&&f.supportedTokens){f=_.m(f.supportedTokens);for(var S=f.next();!S.done;S=f.next())S=S.value,S.accountSigninToken&&_.tK(S.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.e.handleUpdatePermissionRoleCommand=function(f){if(f=_.H(f,_.Us6)){var S;this.hasDelegation=!((S=_.H(f.renderer,_.I7X))==null||!S.status)}};
_.e.registerViewTransitionTasks=function(){var f=this,S=_.oy().resolve(_.fN(_.zI));if(S){var B,G=(B=this.guide)==null?void 0:B.querySelector("#scrim"),g,b=(g=this.guide)==null?void 0:g.querySelector("#contentContainer");G&&b&&(B={beforeTransition:function(){var z;(z=f.guide)!=null&&z.persistent||(G.style.viewTransitionName="app-drawer-scrim",b.style.viewTransitionName="app-drawer-container")},
afterTransition:function(){var z;(z=f.guide)!=null&&z.persistent||(G.style.viewTransitionName="",b.style.viewTransitionName="")}},cb(S,"slide",B),cb(S,"zoom",B))}};
_.y3.Object.defineProperties(Me.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.K("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.y3.Object.defineProperties(Me,{template:{configurable:!0,enumerable:!0,get:function(){if(EYZ===void 0){var f=document.createElement("template");_.Y(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<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<template is="dom-if" if="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
f.content.insertBefore(_.W().content.cloneNode(!0),f.content.firstChild);EYZ=f}f=EYZ;return f}}});
Me.prototype.onOpenHotkeyDialog=Me.prototype.onOpenHotkeyDialog;Me.prototype.setFullscreen=Me.prototype.setFullscreen;Me.prototype.onAddElementToApp=Me.prototype.onAddElementToApp;Me.prototype.onDrawerIronSelect=Me.prototype.onDrawerIronSelect;Me.prototype.onGuideOpenButtonHover=Me.prototype.onGuideOpenButtonHover;Me.prototype.onRequestPanelModeChange=Me.prototype.onRequestPanelModeChange;Me.prototype.onPageDataUpdated=Me.prototype.onPageDataUpdated;Me.prototype.onPageChanged=Me.prototype.onPageChanged;
Me.prototype.onSetTheaterModeEnabled=Me.prototype.onSetTheaterModeEnabled;Me.prototype.updateMastheadData=Me.prototype.updateMastheadData;Me.prototype.onYtPageManagerAttached=Me.prototype.onYtPageManagerAttached;Me.prototype.observeGuideVisibility=Me.prototype.observeGuideVisibility;Me.prototype.guideIsVisibleButNotPersistentSelectorChanged=Me.prototype.guideIsVisibleButNotPersistentSelectorChanged;Me.prototype.isInlinePreviewEnabledChanged=Me.prototype.isInlinePreviewEnabledChanged;
Me.prototype.isWatchPageChanged=Me.prototype.isWatchPageChanged;Me.prototype.dispatchFrostedGlassMode=Me.prototype.dispatchFrostedGlassMode;_.N([_.r(_.Ek),_.Z("design:type",Object)],Me.prototype,"ytdReduxBehavior",void 0);_.N([_.r(_.Px.YtEventForwardingBehavior),_.Z("design:type",Object)],Me.prototype,"ytEventForwardingBehavior",void 0);_.N([_.r(_.JW.YtOpenPopupBehavior),_.Z("design:type",Object)],Me.prototype,"ytOpenPopupBehavior",void 0);
_.N([_.r(_.b3.YtActionHandlerBehavior),_.Z("design:type",Object)],Me.prototype,"ytActionHandlerBehavior",void 0);_.N([_.r({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.AE.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.K("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var f;((f=this.actionRouterNode.hostElement)!=null?f:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var f;((f=this.actionRouterNode.hostElement)!=null?f:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(f){this.actionRouter_.handleAction(f.detail)}}),
_.Z("design:type",Object)],Me.prototype,"ytActionRouterBehavior",void 0);_.N([_.r(Dmo.YtdAppBehavior),_.Z("design:type",Object)],Me.prototype,"ytdAppBehavior",void 0);_.N([_.r(_.Pl.YtEndpointBehavior),_.Z("design:type",Object)],Me.prototype,"ytEndpointBehavior",void 0);_.N([_.r(DLn.YtEndpointHandlerWithYpcBehavior),_.Z("design:type",Object)],Me.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.N([_.r(L7X.YtLogYpcFlowCommandsBehavior),_.Z("design:type",Object)],Me.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.N([_.r(_.c.YtRendererBehavior),_.Z("design:type",Object)],Me.prototype,"ytRendererBehavior",void 0);_.N([_.r(_.Nm.YtComponentBehavior),_.Z("design:type",Object)],Me.prototype,"ytComponentBehavior",void 0);_.N([_.n({selector:_.XVZ}),_.Z("design:type",Object)],Me.prototype,"tabGesturesIsActive",void 0);_.N([_.n(),_.Z("design:type",Boolean)],Me.prototype,"renderGuide",void 0);
_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Me.prototype,"guidePersistentAndVisible",void 0);_.N([_.n({selector:_.RKu}),_.Z("design:type",Boolean)],Me.prototype,"guideIsVisibleButNotPersistent",void 0);_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Me.prototype,"standalone",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Me.prototype,"miniGuideVisible",void 0);
_.N([_.n({selector:_.zG9}),_.Z("design:type",Number)],Me.prototype,"miniplayerPlaybackState",void 0);_.N([_.n({selector:_.LJ,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Me.prototype,"miniplayerIsActive",void 0);_.N([_.n({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.Z("design:type",Boolean)],Me.prototype,"isInlinePreviewEnabled",void 0);_.N([_.n(),_.Z("design:type",Boolean)],Me.prototype,"isInlinePreviewDisabled",void 0);
_.N([_.n({reflectToAttribute:!0,value:function(){return _.s6("START_IN_FULL_WINDOW_MODE")}}),
_.Z("design:type",Boolean)],Me.prototype,"mastheadHidden",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Me.prototype,"playerFullscreen",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Me.prototype,"deprecateFullerscreenUi",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Me.prototype,"fullscreen",void 0);_.N([_.n({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Me.prototype,"hideHeaderShadow",void 0);
_.N([_.n({value:{GUIDE_ALT_LABEL:_.Jf("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.Z("design:type",Object)],Me.prototype,"menuStrings",void 0);_.N([_.n({computed:"computeTopbarData(data)"}),_.Z("design:type",Object)],Me.prototype,"topbarData",void 0);_.N([_.n({selector:_.kr}),_.Z("design:type",Boolean)],Me.prototype,"isWatchPage",void 0);_.N([_.n({selector:_.eGK,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Me.prototype,"isShortsPage",void 0);
_.N([_.n({selector:function(f){return f.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.Z("design:type",Boolean)],Me.prototype,"isMiniAppPage",void 0);_.N([_.n({selector:function(f){return f.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.Z("design:type",Boolean)],Me.prototype,"isBrowsePage",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Me.prototype,"scrolling",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Me.prototype,"hasDelegation",void 0);_.N([_.n({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],Me.prototype,"guideScrolledByTouch",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Me.prototype,"darkerDarkTheme",void 0);
_.N([_.n(),_.Z("design:type",Object)],Me.prototype,"isFrostedGlassInitialized",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Me.prototype,"frostedGlassExp",void 0);_.N([_.n({selector:function(f){return f.ui.chipBarIsSticky}}),
_.Z("design:type",Boolean)],Me.prototype,"chipBarIsSticky",void 0);_.N([_.n({computed:"computeIsHomePage(isBrowsePage, data)"}),_.Z("design:type",Boolean)],Me.prototype,"isHomePage",void 0);_.N([_.n({reflectToAttribute:!0}),_.Z("design:type",Object)],Me.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.N([_.n(),_.Z("design:type",Object)],Me.prototype,"ephemeralActionsEnabled",void 0);_.N([_.n(),_.Z("design:type",Object)],Me.prototype,"clientOnlyWizTooltipsEnabled",void 0);
_.N([_.WT("guide"),_.Z("design:type",Object)],Me.prototype,"guide",void 0);_.N([_.WT("guide-service"),_.Z("design:type",q0n)],Me.prototype,"guideService",void 0);_.N([_.WT("guide-inner-content"),_.Z("design:type",HTMLDivElement)],Me.prototype,"guideInnerContent",void 0);_.N([_.n({selector:_.RG1}),_.Z("design:type",String)],Me.prototype,"frostedGlassMode",void 0);
_.N([_.JO("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Me.prototype,"dispatchFrostedGlassMode",null);_.N([_.n({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.Z("design:type",Object)],Me.prototype,"isFrostedGlassDisabled",void 0);
_.N([_.JO("isWatchPage"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Me.prototype,"isWatchPageChanged",null);_.N([_.k("isHomePage","chipBarIsSticky"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Me.prototype,"applyFrostedGlassToChipBar",null);_.N([_.n(),_.Z("design:type",Object)],Me.prototype,"isChannelOrPlaylistPage",void 0);
_.N([_.HF("isInlinePreviewEnabled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Me.prototype,"isInlinePreviewEnabledChanged",null);_.N([_.JO("guideIsVisibleButNotPersistent"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Me.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.N([_.JO("guidePersistentAndVisible","miniGuideVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Me.prototype,"observeGuideVisibility",null);_.N([_.Vg("attached"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],Me.prototype,"onYtPageManagerAttached",null);_.N([_.JO("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype",Promise)],Me.prototype,"updateMastheadData",null);
_.N([_.Vg("yt-set-theater-mode-enabled"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],Me.prototype,"onSetTheaterModeEnabled",null);_.N([_.Vg("yt-page-type-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Me.prototype,"onPageChanged",null);_.N([_.Vg("yt-page-data-updated"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Me.prototype,"onPageDataUpdated",null);
_.N([_.Vg("yt-request-panel-mode-change"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event,Object]),_.Z("design:returntype")],Me.prototype,"onRequestPanelModeChange",null);_.N([_.Vg("yt-guide-hover"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Me.prototype,"onGuideOpenButtonHover",null);_.N([_.Vg("app-drawer-transitioned"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],Me.prototype,"onDrawerIronSelect",null);
_.N([_.Vg("yt-add-element-to-app"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Me.prototype,"onAddElementToApp",null);_.N([_.Vg("yt-set-fullerscreen-styles"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Me.prototype,"setFullscreen",null);_.N([_.Vg("yt-open-hotkey-dialog"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Me.prototype,"onOpenHotkeyDialog",null);
_.N([_.C({is:"ytd-app"})],Me);_.UX().processSignal("eor");
_.Eb();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
